"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_default_b=a||[]};(0,__._F_toggles_initialize)([0x30400, ]);
/*

 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.
*/
/*

 Copyright 2017 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald
 SPDX-License-Identifier: MIT
*/
/*
 @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 2017 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
/*

 Copyright 2019 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
/*

 Copyright Google Inc. 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
*/
/*

 MIT License
 Copyright (c) 2018 Alex Okrushko
 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 The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var h,aaa=function(a,b,c,d,e){var f=Zone.__symbol__(d);if(!b[f]){var g=b[f]=b[d];b[d]=function(k,m,r){m&&m.prototype&&e.forEach(function(w){var x=c+"."+d+"::"+w,D=m.prototype;try{if(D.hasOwnProperty(w)){var H=a.ObjectGetOwnPropertyDescriptor(D,w);H&&H.value?(H.value=a.wrapWithCurrentZone(H.value,x),a._redefineProperty(m.prototype,w,H)):D[w]&&(D[w]=a.wrapWithCurrentZone(D[w],x))}else D[w]&&(D[w]=a.wrapWithCurrentZone(D[w],x))}catch(J){}});return g.call(b,k,m,r)};a.attachOriginToPatched(b[d],g)}},ca=
function(a){return(aa.__Zone_symbol_prefix||"__zone_symbol__")+a},haa=function(){function a(ja){g&&g.mark&&g.mark(ja)}function b(ja,va){g&&g.measure&&g.measure(ja,va)}function c(ja){R||aa[D]&&(R=aa[D].resolve(0));if(R){var va=R[H];va||(va=R.then);va.call(R,ja)}else aa[x](ja,0)}function d(ja){Da===0&&J.length===0&&c(e);ja&&J.push(ja)}function e(){if(!O){for(O=!0;J.length;){var ja=J;J=[];for(var va=0;va<ja.length;va++){var ya=ja[va];try{ya.zone.runTask(ya,null,null)}catch(Sa){pa.onUnhandledError(Sa)}}}pa.microtaskDrainDone();
O=!1}}function f(){}var g=aa.performance;a("Zone");var k=function(ja,va){this._parent=ja;this._name=va?va.name||"unnamed":"<root>";this._properties=va&&va.properties||{};this._zoneDelegate=new r(this,this._parent&&this._parent._zoneDelegate,va)};k.assertZonePatched=function(){if(aa.Promise!==ba.ZoneAwarePromise)throw Error("A");};k.__load_patch=function(ja,va,ya){ya=ya===void 0?!1:ya;if(ba.hasOwnProperty(ja)){if(va=aa[ca("forceDuplicateZoneCheck")]===!0,!ya&&va)throw Error("B`"+ja);}else aa["__Zone_disable_"+
ja]||(ya="Zone:"+ja,a(ya),ba[ja]=va(aa,k,pa),b(ya,ya))};k.prototype.get=function(ja){var va=this.getZoneWith(ja);if(va)return va._properties[ja]};k.prototype.getZoneWith=function(ja){for(var va=this;va;){if(va._properties.hasOwnProperty(ja))return va;va=va._parent}return null};k.prototype.fork=function(ja){if(!ja)throw Error("C");return this._zoneDelegate.fork(this,ja)};k.prototype.wrap=function(ja,va){if(typeof ja!=="function")throw Error("D`"+ja);var ya=this._zoneDelegate.intercept(this,ja,va),
Sa=this;return function(){return Sa.runGuarded(ya,this,arguments,va)}};k.prototype.run=function(ja,va,ya,Sa){ua={parent:ua,zone:this};try{return this._zoneDelegate.invoke(this,ja,va,ya,Sa)}finally{ua=ua.parent}};k.prototype.runGuarded=function(ja,va,ya,Sa){ua={parent:ua,zone:this};try{try{return this._zoneDelegate.invoke(this,ja,va===void 0?null:va,ya,Sa)}catch(ab){if(this._zoneDelegate.handleError(this,ab))throw ab;}}finally{ua=ua.parent}};k.prototype.runTask=function(ja,va,ya){if(ja.zone!=this)throw Error("E`"+
(ja.zone||V).name+"`"+this.name);var Sa=ja.type,ab=ja.data===void 0?{}:ja.data,rb=ab.isPeriodic===void 0?!1:ab.isPeriodic;ab=ab.isRefreshable===void 0?!1:ab.isRefreshable;if(ja.state!=="notScheduled"||Sa!=="eventTask"&&Sa!=="macroTask"){var ac=ja.state!="running";ac&&ja._transitionTo("running","scheduled");var pc=ma;ma=ja;ua={parent:ua,zone:this};try{Sa!="macroTask"||!ja.data||rb||ab||(ja.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,ja,va,ya)}catch(kc){if(this._zoneDelegate.handleError(this,
kc))throw kc;}}finally{va=ja.state,va!=="notScheduled"&&va!=="unknown"&&(Sa=="eventTask"||rb||ab&&va==="scheduling"?ac&&ja._transitionTo("scheduled","running","scheduling"):(Sa=ja._zoneDelegates,this._updateTaskCount(ja,-1),ac&&ja._transitionTo("notScheduled","running","notScheduled"),ab&&(ja._zoneDelegates=Sa))),ua=ua.parent,ma=pc}}};k.prototype.scheduleTask=function(ja){if(ja.zone&&ja.zone!==this)for(var va=this;va;){if(va===ja.zone)throw Error("F`"+this.name+"`"+ja.zone.name);va=va.parent}ja._transitionTo("scheduling",
"notScheduled");va=[];ja._zoneDelegates=va;ja._zone=this;try{ja=this._zoneDelegate.scheduleTask(this,ja)}catch(ya){throw ja._transitionTo("unknown","scheduling","notScheduled"),this._zoneDelegate.handleError(this,ya),ya;}ja._zoneDelegates===va&&this._updateTaskCount(ja,1);ja.state=="scheduling"&&ja._transitionTo("scheduled","scheduling");return ja};k.prototype.scheduleMicroTask=function(ja,va,ya,Sa){return this.scheduleTask(new w("microTask",ja,va,ya,Sa,void 0))};k.prototype.scheduleMacroTask=function(ja,
va,ya,Sa,ab){return this.scheduleTask(new w("macroTask",ja,va,ya,Sa,ab))};k.prototype.scheduleEventTask=function(ja,va,ya,Sa,ab){return this.scheduleTask(new w("eventTask",ja,va,ya,Sa,ab))};k.prototype.cancelTask=function(ja){if(ja.zone!=this)throw Error("G`"+(ja.zone||V).name+"`"+this.name);if(ja.state==="scheduled"||ja.state==="running"){ja._transitionTo("canceling","scheduled","running");try{this._zoneDelegate.cancelTask(this,ja)}catch(va){throw ja._transitionTo("unknown","canceling"),this._zoneDelegate.handleError(this,
va),va;}this._updateTaskCount(ja,-1);ja._transitionTo("notScheduled","canceling");ja.runCount=-1;return ja}};k.prototype._updateTaskCount=function(ja,va){var ya=ja._zoneDelegates;va==-1&&(ja._zoneDelegates=null);for(var Sa=0;Sa<ya.length;Sa++)ya[Sa]._updateTaskCount(ja.type,va)};da.Object.defineProperties(k.prototype,{parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},name:{configurable:!0,enumerable:!0,get:function(){return this._name}}});da.Object.defineProperties(k,{root:{configurable:!0,
enumerable:!0,get:function(){for(var ja=k.current;ja.parent;)ja=ja.parent;return ja}},current:{configurable:!0,enumerable:!0,get:function(){return ua.zone}},currentTask:{configurable:!0,enumerable:!0,get:function(){return ma}}});k.__symbol__=ca;var m={name:"",onHasTask:function(ja,va,ya,Sa){return ja.hasTask(ya,Sa)},onScheduleTask:function(ja,va,ya,Sa){return ja.scheduleTask(ya,Sa)},onInvokeTask:function(ja,va,ya,Sa,ab,rb){return ja.invokeTask(ya,Sa,ab,rb)},onCancelTask:function(ja,va,ya,Sa){return ja.cancelTask(ya,
Sa)}},r=function(ja,va,ya){this._taskCounts={microTask:0,macroTask:0,eventTask:0};this._zone=ja;this._parentDelegate=va;this._forkZS=ya&&(ya&&ya.onFork?ya:va._forkZS);this._forkDlgt=ya&&(ya.onFork?va:va._forkDlgt);this._forkCurrZone=ya&&(ya.onFork?this._zone:va._forkCurrZone);this._interceptZS=ya&&(ya.onIntercept?ya:va._interceptZS);this._interceptDlgt=ya&&(ya.onIntercept?va:va._interceptDlgt);this._interceptCurrZone=ya&&(ya.onIntercept?this._zone:va._interceptCurrZone);this._invokeZS=ya&&(ya.onInvoke?
ya:va._invokeZS);this._invokeDlgt=ya&&(ya.onInvoke?va:va._invokeDlgt);this._invokeCurrZone=ya&&(ya.onInvoke?this._zone:va._invokeCurrZone);this._handleErrorZS=ya&&(ya.onHandleError?ya:va._handleErrorZS);this._handleErrorDlgt=ya&&(ya.onHandleError?va:va._handleErrorDlgt);this._handleErrorCurrZone=ya&&(ya.onHandleError?this._zone:va._handleErrorCurrZone);this._scheduleTaskZS=ya&&(ya.onScheduleTask?ya:va._scheduleTaskZS);this._scheduleTaskDlgt=ya&&(ya.onScheduleTask?va:va._scheduleTaskDlgt);this._scheduleTaskCurrZone=
ya&&(ya.onScheduleTask?this._zone:va._scheduleTaskCurrZone);this._invokeTaskZS=ya&&(ya.onInvokeTask?ya:va._invokeTaskZS);this._invokeTaskDlgt=ya&&(ya.onInvokeTask?va:va._invokeTaskDlgt);this._invokeTaskCurrZone=ya&&(ya.onInvokeTask?this._zone:va._invokeTaskCurrZone);this._cancelTaskZS=ya&&(ya.onCancelTask?ya:va._cancelTaskZS);this._cancelTaskDlgt=ya&&(ya.onCancelTask?va:va._cancelTaskDlgt);this._cancelTaskCurrZone=ya&&(ya.onCancelTask?this._zone:va._cancelTaskCurrZone);this._hasTaskCurrZone=this._hasTaskDlgtOwner=
this._hasTaskDlgt=this._hasTaskZS=null;ja=ya&&ya.onHasTask;var Sa=va&&va._hasTaskZS;if(ja||Sa)this._hasTaskZS=ja?ya:m,this._hasTaskDlgt=va,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,ya.onScheduleTask||(this._scheduleTaskZS=m,this._scheduleTaskDlgt=va,this._scheduleTaskCurrZone=this._zone),ya.onInvokeTask||(this._invokeTaskZS=m,this._invokeTaskDlgt=va,this._invokeTaskCurrZone=this._zone),ya.onCancelTask||(this._cancelTaskZS=m,this._cancelTaskDlgt=va,this._cancelTaskCurrZone=this._zone)};
r.prototype.fork=function(ja,va){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,ja,va):new k(ja,va)};r.prototype.intercept=function(ja,va,ya){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,ja,va,ya):va};r.prototype.invoke=function(ja,va,ya,Sa,ab){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,ja,va,ya,Sa,ab):va.apply(ya,Sa)};r.prototype.handleError=function(ja,va){return this._handleErrorZS?
this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,ja,va):!0};r.prototype.scheduleTask=function(ja,va){var ya=va;if(this._scheduleTaskZS)this._hasTaskZS&&ya._zoneDelegates.push(this._hasTaskDlgtOwner),(ya=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,ja,va))||(ya=va);else if(va.scheduleFn)va.scheduleFn(va);else if(va.type=="microTask")d(va);else throw Error("H");return ya};r.prototype.invokeTask=function(ja,va,ya,Sa){return this._invokeTaskZS?
this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,ja,va,ya,Sa):va.callback.apply(ya,Sa)};r.prototype.cancelTask=function(ja,va){if(this._cancelTaskZS)ja=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,ja,va);else{if(!va.cancelFn)throw Error("I");ja=va.cancelFn(va)}return ja};r.prototype.hasTask=function(ja,va){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,ja,va)}catch(ya){this.handleError(ja,ya)}};r.prototype._updateTaskCount=
function(ja,va){var ya=this._taskCounts,Sa=ya[ja];va=ya[ja]=Sa+va;if(va<0)throw Error("J");Sa!=0&&va!=0||this.hasTask(this._zone,{microTask:ya.microTask>0,macroTask:ya.macroTask>0,eventTask:ya.eventTask>0,change:ja})};da.Object.defineProperties(r.prototype,{zone:{configurable:!0,enumerable:!0,get:function(){return this._zone}}});var w=function(ja,va,ya,Sa,ab,rb){this._zone=null;this.runCount=0;this._zoneDelegates=null;this._state="notScheduled";this.type=ja;this.source=va;this.data=Sa;this.scheduleFn=
ab;this.cancelFn=rb;if(!ya)throw Error("K");this.callback=ya;var ac=this;this.invoke=ja==="eventTask"&&Sa&&Sa.useG?w.invokeTask:function(){return w.invokeTask.call(aa,ac,this,arguments)}};w.invokeTask=function(ja,va,ya){ja||(ja=this);Da++;try{return ja.runCount++,ja.zone.runTask(ja,va,ya)}finally{Da==1&&e(),Da--}};w.prototype.cancelScheduleRequest=function(){this._transitionTo("notScheduled","scheduling")};w.prototype._transitionTo=function(ja,va,ya){if(this._state===va||this._state===ya)this._state=
ja,ja=="notScheduled"&&(this._zoneDelegates=null);else throw Error("L`"+this.type+"`"+this.source+"`"+ja+"`"+va+"`"+(ya?" or '"+ya+"'":"")+"`"+this._state);};w.prototype.toString=function(){return this.data&&typeof this.data.handleId!=="undefined"?this.data.handleId.toString():Object.prototype.toString.call(this)};w.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}};da.Object.defineProperties(w.prototype,{zone:{configurable:!0,
enumerable:!0,get:function(){return this._zone}},state:{configurable:!0,enumerable:!0,get:function(){return this._state}}});var x=ca("setTimeout"),D=ca("Promise"),H=ca("then"),J=[],O=!1,R,V={name:"NO ZONE"},ba={},pa={symbol:ca,currentZoneFrame:function(){return ua},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},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},ua={parent:null,zone:new k(null,null)},ma=null,Da=0;b("Zone","Zone");return k},iaa=function(a,b){return Zone.current.wrap(a,b)},jaa=function(a,b){for(var c=a.length-1;c>=0;c--)typeof a[c]==="function"&&(a[c]=iaa(a[c],b+"_"+c));return a},maa=function(a){for(var b=["getCurrentPosition","watchPosition"],c=a.constructor.name,d={},e=0;e<b.length;d={name$jscomp$127:void 0},e++){d.name$jscomp$127=b[e];var f=a[d.name$jscomp$127];if(f){var g=kaa(a,d.name$jscomp$127);laa(g)&&(a[d.name$jscomp$127]=
function(k){return function(m){var r=function(){return m.apply(this,jaa(arguments,c+"."+k.name$jscomp$127))};ea(r,m);return r}}(d)(f))}}},laa=function(a){return a?a.writable===!1?!1:!(typeof a.get==="function"&&typeof a.set==="undefined"):!0},qaa=function(a,b,c){var d=kaa(a,b);!d&&c&&kaa(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,g=b.slice(2),k=naa[g];k||(k=naa[g]=ca("ON_PROPERTY"+
g));d.set=function(m){var r=this;r||a!==fa||(r=fa);r&&(typeof r[k]==="function"&&r.removeEventListener(g,oaa),f==null||f.call(r,null),r[k]=m,typeof m==="function"&&r.addEventListener(g,oaa,!1))};d.get=function(){var m=this;m||a!==fa||(m=fa);if(!m)return null;var r=m[k];return r?r:e&&(r=e.call(this))?(d.set.call(this,r),typeof m.removeAttribute==="function"&&m.removeAttribute(b),r):null};paa(a,b,d);a[c]=!0}},raa=function(a,b,c){if(b)for(var d=0;d<b.length;d++)qaa(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++)qaa(a,b[d],c)}},saa=function(a){var b=fa[a];if(b){fa[ca(a)]=b;fa[a]=function(){var e=jaa(arguments,a);switch(e.length){case 0:this[ha]=new b;break;case 1:this[ha]=new b(e[0]);break;case 2:this[ha]=new b(e[0],e[1]);break;case 3:this[ha]=new b(e[0],e[1],e[2]);break;case 4:this[ha]=new b(e[0],e[1],e[2],e[3]);break;default:throw Error("M");}};ea(fa[a],b);var c=new b(function(){}),d;for(d in c)a==="XMLHttpRequest"&&d==="responseBlob"||function(e){typeof c[e]===
"function"?fa[a].prototype[e]=function(){return this[ha][e].apply(this[ha],arguments)}:paa(fa[a].prototype,e,{set:function(f){typeof f==="function"?(this[ha][e]=iaa(f,a+"."+e),ea(this[ha][e],f)):this[ha][e]=f},get:function(){return this[ha][e]}})}(d);for(d in b)d!=="prototype"&&b.hasOwnProperty(d)&&(fa[a][d]=b[d])}},ia=function(a,b,c){for(var d=a;d&&!d.hasOwnProperty(b);)d=taa(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&&kaa(d,b);if(laa(f)){var g=
c(e,a,b);d[b]=function(){return g(this,arguments)};ea(d[b],e)}}return e},uaa=function(a,b,c){function d(f){var g=f.data;g.args[g.cbIdx]=function(){f.invoke.apply(this,arguments)};e.apply(g.target,g.args);return f}var e=null;e=ia(a,b,function(f){return function(g,k){var m=c(g,k);return m.cbIdx>=0&&typeof k[m.cbIdx]==="function"?Zone.current.scheduleMacroTask(m.name,k[m.cbIdx],m,d,void 0):f.apply(g,k)}})},ea=function(a,b){a[ca("OriginalDelegate")]=b},vaa=function(a,b,c){if(!c||c.length===0)return b;
c=c.filter(function(e){return e.target===a});if(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)})},yaa=function(a,b){var c=(b?b(a):a)+"false";b=(b?b(a):a)+"true";c=xaa+c;b=xaa+b;ka[a]={};ka[a]["false"]=c;ka[a]["true"]=b},Faa=function(a,b,c,d){function e(V,ba,pa){if(ba=ba||a.event){V=V||ba.target||
a;var ua=V[ka[ba.type][pa?"true":"false"]];if(ua){pa=[];if(ua.length===1)(ba=D(ua[0],V,ba))&&pa.push(ba);else{ua=ua.slice();for(var ma=0;ma<ua.length&&(!ba||ba[zaa]!==!0);ma++){var Da=D(ua[ma],V,ba);Da&&pa.push(Da)}}if(pa.length===1)throw pa[0];ba={};for(V=0;V<pa.length;ba={err$jscomp$16:void 0},V++)ba.err$jscomp$16=pa[V],b.nativeScheduleMicroTask(function(ja){return function(){throw ja.err$jscomp$16;}}(ba))}}}function f(V,ba){function pa(Tb,qc){return qc?typeof Tb==="boolean"?{capture:Tb,passive:!0}:
Tb?typeof Tb==="object"&&Tb.passive!==!1?Object.assign({},Tb,{passive:!0}):Tb:{passive:!0}:Tb}function ua(Tb){if(typeof Tb==="object"&&Tb!==null){var qc=Object.assign({},Tb);Tb.signal&&(qc.signal=Tb.signal);return qc}return Tb}if(!V)return!1;var ma=!0;ba&&ba.useG!==void 0&&(ma=ba.useG);var Da=ba&&ba.vh,ja=!0;ba&&ba.chkDup!==void 0&&(ja=ba.chkDup);var va=!1;ba&&ba.rt!==void 0&&(va=ba.rt);for(var ya=V;ya&&!ya.hasOwnProperty(g);)ya=taa(ya);!ya&&V[g]&&(ya=V);if(!ya||ya[w])return!1;var Sa=ba&&ba.eventNameToString,
ab={},rb=ya[w]=ya[g],ac=ya[ca(k)]=ya[k];V=ya[ca(m)]=ya[m];var pc=ya[ca(r)]=ya[r],kc;ba&&ba.prepend&&(kc=ya[ca(ba.prepend)]=ya[ba.prepend]);var vc=function(Tb){if(!Tb.isRemoved){var qc=ka[Tb.eventName],Sc;qc&&(Sc=qc[Tb.capture?"true":"false"]);if(qc=Sc&&Tb.target[Sc])for(var pd=0;pd<qc.length;pd++)if(qc[pd]===Tb){qc.splice(pd,1);Tb.isRemoved=!0;Tb.removeAbortListener&&(Tb.removeAbortListener(),Tb.removeAbortListener=null);qc.length===0&&(Tb.allRemoved=!0,Tb.target[Sc]=null);break}}if(Tb.allRemoved)return ac.call(Tb.target,
Tb.eventName,Tb.capture?J:H,Tb.options)},tb=function(Tb){return rb.call(ab.target,ab.eventName,Tb.invoke,ab.options)},Qb=function(Tb){return kc.call(ab.target,ab.eventName,Tb.invoke,ab.options)},ib=function(Tb){return ac.call(Tb.target,Tb.eventName,Tb.invoke,Tb.options)};vc=ma?vc:ib;ib=function(Tb,qc){var Sc=typeof qc;return Sc==="function"&&Tb.callback===qc||Sc==="object"&&Tb.originalDelegate===qc};var bc=(ba==null?void 0:ba.diff)||ib,xc=Zone[ca("UNPATCHED_EVENTS")],ud=a[ca("PASSIVE_EVENTS")];ib=
function(Tb,qc,Sc,pd,Uc,ne){Uc=Uc===void 0?!1:Uc;ne=ne===void 0?!1:ne;return function(){var ff=this||a,bf=arguments[0];ba&&ba.transferEventName&&(bf=ba.transferEventName(bf));var Mh=arguments[1];if(!Mh||Aaa&&bf==="uncaughtException")return Tb.apply(this,arguments);var ux=!1;if(typeof Mh!=="function"){if(!Mh.handleEvent)return Tb.apply(this,arguments);ux=!0}if(!Da||Da(Tb,Mh,ff,arguments)){var qp=!!ud&&ud.indexOf(bf)!==-1,Jj=ua(pa(arguments[2],qp)),bn=Jj==null?void 0:Jj.signal;if(bn==null||!bn.aborted){if(xc)for(var Wq=
0;Wq<xc.length;Wq++)if(bf===xc[Wq])return qp?Tb.call(ff,bf,Mh,Jj):Tb.apply(this,arguments);qp=Jj?typeof Jj==="boolean"?!0:Jj.capture:!1;Wq=Jj&&typeof Jj==="object"?Jj.once:!1;var vx=Zone.current,nk=ka[bf];nk||(yaa(bf,Sa),nk=ka[bf]);var Ql=nk[qp?"true":"false"];nk=ff[Ql];var rp=!1;if(nk){if(rp=!0,ja)for(Ql=0;Ql<nk.length;Ql++)if(bc(nk[Ql],Mh))return}else nk=ff[Ql]=[];var wx;Ql=ff.constructor.name;var dM=Baa[Ql];dM&&(wx=dM[bf]);wx||(wx=Ql+qc+(Sa?Sa(bf):bf));ab.options=Jj;Wq&&(ab.options.once=!1);ab.target=
ff;ab.capture=qp;ab.eventName=bf;ab.isExisting=rp;if(rp=ma?Caa:void 0)rp.taskData=ab;bn&&(ab.options.signal=void 0);var Rl=vx.scheduleEventTask(wx,Mh,rp,Sc,pd);if(bn){ab.options.signal=bn;var iB=function(){return Rl.zone.cancelTask(Rl)};Tb.call(bn,"abort",iB,{once:!0});Rl.removeAbortListener=function(){return bn.removeEventListener("abort",iB)}}ab.target=null;rp&&(rp.taskData=null);Wq&&(ab.options.once=!0);typeof Rl.options!=="boolean"&&(Rl.options=Jj);Rl.target=ff;Rl.capture=qp;Rl.eventName=bf;ux&&
(Rl.originalDelegate=Mh);ne?nk.unshift(Rl):nk.push(Rl);if(Uc)return ff}}}};ya[g]=ib(rb,x,ma?function(){if(!ab.isExisting)return rb.call(ab.target,ab.eventName,ab.capture?J:H,ab.options)}:tb,vc,va);kc&&(ya.prependListener=ib(kc,".prependListener:",Qb,vc,va,!0));ya[k]=function(){var Tb=this||a,qc=arguments[0];ba&&ba.transferEventName&&(qc=ba.transferEventName(qc));var Sc=arguments[2];Sc=Sc?typeof Sc==="boolean"?!0:Sc.capture:!1;var pd=arguments[1];if(!pd)return ac.apply(this,arguments);if(!Da||Da(ac,
pd,Tb,arguments)){var Uc=ka[qc],ne;Uc&&(ne=Uc[Sc?"true":"false"]);if(Uc=ne&&Tb[ne])for(var ff=0;ff<Uc.length;ff++){var bf=Uc[ff];if(bc(bf,pd)){Uc.splice(ff,1);bf.isRemoved=!0;Uc.length===0&&(bf.allRemoved=!0,Tb[ne]=null,Sc||typeof qc!=="string"||(Tb[xaa+"ON_PROPERTY"+qc]=null));bf.zone.cancelTask(bf);if(va)return Tb;return}}return ac.apply(this,arguments)}};ya[m]=function(){var Tb=this||a,qc=arguments[0];ba&&ba.transferEventName&&(qc=ba.transferEventName(qc));var Sc=[];Tb=Daa(Tb,Sa?Sa(qc):qc);for(qc=
0;qc<Tb.length;qc++){var pd=Tb[qc];Sc.push(pd.originalDelegate?pd.originalDelegate:pd.callback)}return Sc};ya[r]=function(){var Tb=this||a,qc=arguments[0];if(qc){ba&&ba.transferEventName&&(qc=ba.transferEventName(qc));var Sc=ka[qc];if(Sc){var pd=Tb[Sc["false"]];Tb=Tb[Sc["true"]];if(pd)for(pd=pd.slice(),Sc=0;Sc<pd.length;Sc++){var Uc=pd[Sc];this[k].call(this,qc,Uc.originalDelegate?Uc.originalDelegate:Uc.callback,Uc.options)}if(Tb)for(Tb=Tb.slice(),pd=0;pd<Tb.length;pd++)Sc=Tb[pd],this[k].call(this,
qc,Sc.originalDelegate?Sc.originalDelegate:Sc.callback,Sc.options)}}else{qc=Object.keys(Tb);for(Tb=0;Tb<qc.length;Tb++)(pd=(pd=Eaa.exec(qc[Tb]))&&pd[1])&&pd!=="removeListener"&&this[r].call(this,pd);this[r].call(this,"removeListener")}if(va)return this};ea(ya[g],rb);ea(ya[k],ac);pc&&ea(ya[r],pc);V&&ea(ya[m],V);return!0}for(var g=d&&d.add||"addEventListener",k=d&&d.rm||"removeEventListener",m=d&&d.listeners||"eventListeners",r=d&&d.rmAll||"removeAllListeners",w=ca(g),x="."+g+":",D=function(V,ba,pa){if(!V.isRemoved){var ua=
V.callback;typeof ua==="object"&&ua.handleEvent&&(V.callback=function(ja){return ua.handleEvent(ja)},V.originalDelegate=ua);try{V.invoke(V,ba,[pa])}catch(ja){var ma=ja}var Da=V.options;Da&&typeof Da==="object"&&Da.once&&ba[k].call(ba,pa.type,V.originalDelegate?V.originalDelegate:V.callback,Da);return ma}},H=function(V){return e(this,V,!1)},J=function(V){return e(this,V,!0)},O=[],R=0;R<c.length;R++)O[R]=f(c[R],d);return O},Daa=function(a,b){if(!b){var c=[],d;for(d in a){var e=Eaa.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=ka[b];c||(yaa(b),c=ka[b]);b=a[c["false"]];a=a[c["true"]];return b?a?b.concat(a):b.slice():a?a.slice():[]},Gaa=function(a,b){(a=a.Event)&&a.prototype&&b.patchMethod(a.prototype,"stopImmediatePropagation",function(c){return function(d,e){d[zaa]=!0;c&&c.apply(d,e)}})},Laa=function(){la.__load_patch("util",function(a,b,c){var d=waa(a);c.patchOnProperties=raa;c.patchMethod=ia;c.bindArguments=jaa;c.patchMacroTask=uaa;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=Gaa;c.patchEventTarget=Faa;c.ObjectDefineProperty=paa;c.ObjectGetOwnPropertyDescriptor=kaa;c.ObjectCreate=Haa;c.ArraySlice=Iaa;c.patchClass=saa;c.wrapWithCurrentZone=iaa;c.filterProperties=vaa;c.attachOriginToPatched=ea;c._redefineProperty=Object.defineProperty;c.patchCallbacks=aaa;c.getGlobalObjects=function(){return{globalSources:Baa,zoneSymbolEventNames:ka,eventNames:d,
isBrowser:Jaa,isMix:Kaa,isNode:Aaa,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:xaa,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"}}})},Maa=function(a,b){b.patchMethod(a,"queueMicrotask",function(){return function(c,d){Zone.current.scheduleMicroTask("queueMicrotask",d[0])}})},na=function(a,b,c,d){function e(r){var w=r.data;w.args[0]=function(){return r.invoke.apply(this,arguments)};var x=g.apply(a,w.args);typeof x==="number"?w.handleId=x:(w.handle=
x,w.isRefreshable=typeof x.refresh==="function");return r}function f(r){r=r.data;var w=r.handleId,x;return k.call(a,(x=r.handle)!=null?x:w)}var g=null,k=null;b+=d;c+=d;var m={};g=ia(a,b,function(r){return function(w,x){if(typeof x[0]==="function"){var D={isRefreshable:!1,isPeriodic:d==="Interval",delay:d==="Timeout"||d==="Interval"?x[1]||0:void 0,args:x},H=x[0];x[0]=function(){try{return H.apply(this,arguments)}finally{var pa=D.handle,ua=D.handleId,ma=D.isRefreshable;D.isPeriodic||ma||(ua?delete m[ua]:
pa&&(pa[Naa]=null))}};var J=Zone.current.scheduleMacroTask(b,x[0],D,e,f);if(!J)return J;var O=J.data;w=O.handleId;x=O.handle;var R=O.isRefreshable;O=O.isPeriodic;if(w)m[w]=J;else if(x&&(x[Naa]=J,R&&!O)){var V=x.refresh;x.refresh=function(){var pa=J.zone,ua=J.state;ua==="notScheduled"?(J._state="scheduled",pa._updateTaskCount(J,1)):ua==="running"&&(J._state="scheduling");return V.call(this)}}var ba;return(ba=x!=null?x:w)!=null?ba:J}return r.apply(a,x)}});k=ia(a,c,function(r){return function(w,x){w=
x[0];if(typeof w==="number"){var D=m[w];delete m[w]}else(D=w==null?void 0:w[Naa])?w[Naa]=null:D=w;var H;((H=D)==null?0:H.type)?D.cancelFn&&D.zone.cancelTask(D):r.apply(a,x)}})},Qaa=function(){var a=la;a.__load_patch("timers",function(b){na(b,"set","clear","Timeout");na(b,"set","clear","Interval");na(b,"set","clear","Immediate")});a.__load_patch("requestAnimationFrame",function(b){na(b,"request","cancel","AnimationFrame");na(b,"mozRequest","mozCancel","AnimationFrame");na(b,"webkitRequest","webkitCancel",
"AnimationFrame")});a.__load_patch("blocking",function(b,c){for(var d=["alert","prompt","confirm"],e=0;e<d.length;e++)ia(b,d[e],function(f,g,k){return function(m,r){return c.current.run(f,b,r,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,g=e.TRUE_STR,k=e.FALSE_STR;e=e.ZONE_SYMBOL_PREFIX;for(var m=0;m<c.length;m++){var r=c[m],w=e+(r+k),x=e+(r+g);f[r]={};f[r][k]=
w;f[r][g]=x}(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(){saa("MutationObserver");saa("WebKitMutationObserver")});a.__load_patch("IntersectionObserver",function(){saa("IntersectionObserver")});a.__load_patch("FileReader",function(){saa("FileReader")});a.__load_patch("on_property",function(b,c,d){if((!Aaa||Kaa)&&!Zone[d.symbol("patchEvents")]){c=
b.__Zone_ignore_on_properties;d=[];if(Jaa){var e=window;d=d.concat("Document SVGElement Element HTMLElement HTMLBodyElement HTMLMediaElement HTMLFrameSetElement HTMLFrameElement HTMLIFrameElement HTMLMarqueeElement Worker".split(" "));var f=waa(e),g=taa(e);e&&(f=vaa(e,f,c),raa(e,f,g))}d=d.concat("XMLHttpRequest XMLHttpRequestEventTarget IDBIndex IDBRequest IDBOpenDBRequest IDBDatabase IDBTransaction IDBCursor WebSocket".split(" "));for(e=0;e<d.length;e++)if(f=b[d[e]],g=void 0,(g=f)==null?0:g.prototype)g=
f.prototype,f=waa(f.prototype),g&&(f=vaa(g,f,c),raa(g,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(r){function w(ma){var Da=
ma.data,ja=Da.target;ja[g]=!1;ja[m]=!1;var va=ja[f];J||(J=ja[Oaa],O=ja[Paa]);va&&O.call(ja,"readystatechange",va);va=ja[f]=function(){if(ja.readyState===ja.DONE)if(!Da.aborted&&ja[g]&&ma.state==="scheduled"){var ya=ja[c.__symbol__("loadfalse")];if(ja.status!==0&&ya&&ya.length>0){var Sa=ma.invoke;ma.invoke=function(){for(var ab=ja[c.__symbol__("loadfalse")],rb=0;rb<ab.length;rb++)ab[rb]===ma&&ab.splice(rb,1);Da.aborted||ma.state!=="scheduled"||Sa.call(ma)};ya.push(ma)}else ma.invoke()}else Da.aborted||
ja[g]!==!1||(ja[m]=!0)};J.call(ja,"readystatechange",va);ja[d]||(ja[d]=ma);pa.apply(ja,Da.args);ja[g]=!0;return ma}function x(){}function D(ma){ma=ma.data;ma.aborted=!0;return ua.apply(ma.target,ma.args)}var H=r.XMLHttpRequest;if(H){H=H.prototype;var J=H[Oaa],O=H[Paa];!J&&(r=r.XMLHttpRequestEventTarget)&&(r=r.prototype,J=r[Oaa],O=r[Paa]);var R=ia(H,"open",function(){return function(ma,Da){ma[e]=Da[2]==0;ma[k]=Da[1];return R.apply(ma,Da)}}),V=ca("fetchTaskAborting"),ba=ca("fetchTaskScheduling"),pa=
ia(H,"send",function(){return function(ma,Da){if(c.current[ba]===!0||ma[e])return pa.apply(ma,Da);Da={target:ma,url:ma[k],isPeriodic:!1,args:Da,aborted:!1};var ja=Zone.current.scheduleMacroTask("XMLHttpRequest.send",x,Da,w,D);ma&&ma[m]===!0&&!Da.aborted&&ja.state==="scheduled"&&ja.invoke()}}),ua=ia(H,"abort",function(){return function(ma,Da){var ja=ma[d];if(ja&&typeof ja.type=="string")ja.cancelFn==null||ja.data&&ja.data.aborted||ja.zone.cancelTask(ja);else if(c.current[V]===!0)return ua.apply(ma,
Da)}})}})(b);var d=ca("xhrTask"),e=ca("xhrSync"),f=ca("xhrListener"),g=ca("xhrScheduled"),k=ca("xhrURL"),m=ca("xhrErrorBeforeScheduled")});a.__load_patch("geolocation",function(b){b.navigator&&b.navigator.geolocation&&maa(b.navigator.geolocation)});a.__load_patch("PromiseRejectionEvent",function(b,c){function d(e){return function(f){Daa(b,e).forEach(function(g){var k=b.PromiseRejectionEvent;k&&(k=new k(e,{promise:f.promise,reason:f.rejection}),g.invoke(k))})}}b.PromiseRejectionEvent&&(c[ca("unhandledPromiseRejectionHandler")]=
d("unhandledrejection"),c[ca("rejectionHandledHandler")]=d("rejectionhandled"))});a.__load_patch("queueMicrotask",function(b,c,d){Maa(b,d)})},Raa=function(){la.__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}})})},oa=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,oa);else{var c=Error().stack;c&&
(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b);this.reportErrorToServer=!0},Saa=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");oa.call(this,c+a[d])},qa=function(a,b){if(a)throw Error("N");b.push(65533)},Taa=function(a,b){b=String.fromCharCode.apply(null,b);return a==null?b:a+b},Uaa=function(a,b,c,d){c=b+c;for(var e=[],f=null,g,k,m,r;b<c;)g=a[b++],g<128?e.push(g):g<224?b>=c?qa(d,e):(k=a[b++],g<194||(k&192)!==128?(b--,qa(d,e)):
e.push((g&31)<<6|k&63)):g<240?b>=c-1?qa(d,e):(k=a[b++],(k&192)!==128||g===224&&k<160||g===237&&k>=160||((m=a[b++])&192)!==128?(b--,qa(d,e)):e.push((g&15)<<12|(k&63)<<6|m&63)):g<=244?b>=c-2?qa(d,e):(k=a[b++],(k&192)!==128||(g<<28)+(k-144)>>30!==0||((m=a[b++])&192)!==128||((r=a[b++])&192)!==128?(b--,qa(d,e)):(g=(g&7)<<18|(k&63)<<12|(m&63)<<6|r&63,g-=65536,e.push((g>>10&1023)+55296,(g&1023)+56320))):qa(d,e),e.length>=8192&&(f=Taa(f,e),e.length=0);return Taa(f,e)},Yaa=function(a,b,c,d){var e;d?(e=Vaa)||
(e=Vaa=new TextDecoder("utf-8",{fatal:!0})):(e=Waa)||(e=Waa=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(Xaa===void 0){try{e.decode(new Uint8Array([128]))}catch(g){}try{e.decode(new Uint8Array([97])),Xaa=!0}catch(g){Xaa=!1}}b=!Xaa}b&&(Vaa=void 0);throw f;}},bba=function(a,b){b=b===void 0?!1:b;if(Zaa){if(b&&($aa?!a.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a)))throw Error("O");
a=(aba||(aba=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 g=a.charCodeAt(++e);if(g>=56320&&g<=57343){f=(f-55296)*1024+g-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("O");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},sa=function(a){ra.setTimeout(function(){throw a;},0)},cba=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);e<128?b[c++]=e:(e<2048?b[c++]=e>>6|192:((e&64512)==55296&&d+1<a.length&&(a.charCodeAt(d+1)&64512)==56320?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b},ta=function(a,b){var c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c},dba=function(a){return wa("@ldap.google.com",
a.slice(a.length-16))==0},xa=function(a){return/^[\s\xa0]*$/.test(a)},wa=function(a,b){a=String(a).toLowerCase();b=String(b).toLowerCase();return a<b?-1:a==b?0:1},za=function(a,b){return a.indexOf(b)!=-1},eba=function(a,b){return za(a.toLowerCase(),b.toLowerCase())},gba=function(a,b){var c=0;a=Aa(String(a)).split(".");b=Aa(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&e<d;e++){var f=a[e]||"",g=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];g=/(\d*)(\D*)(.*)/.exec(g)||
["","","",""];if(f[0].length==0&&g[0].length==0)break;c=fba(f[1].length==0?0:parseInt(f[1],10),g[1].length==0?0:parseInt(g[1],10))||fba(f[2].length==0,g[2].length==0)||fba(f[2],g[2]);f=f[3];g=g[3]}while(c==0)}return c},fba=function(a,b){return a<b?-1:a>b?1:0},Ba=function(){var a=ra.navigator;return a&&(a=a.userAgent)?a:""},iba=function(a){if(!hba||!Ca)return!1;for(var b=0;b<Ca.brands.length;b++){var c=Ca.brands[b].brand;if(c&&za(c,a))return!0}return!1},Ea=function(a){return za(Ba(),a)},Fa=function(){return hba?
!!Ca&&Ca.brands.length>0:!1},jba=function(){return Fa()?!1:Ea("Opera")},kba=function(){return Fa()?!1:Ea("Trident")||Ea("MSIE")},lba=function(){return Ea("Firefox")||Ea("FxiOS")},nba=function(){return Ea("Safari")&&!(mba()||(Fa()?0:Ea("Coast"))||jba()||(Fa()?0:Ea("Edge"))||(Fa()?iba("Microsoft Edge"):Ea("Edg/"))||(Fa()?iba("Opera"):Ea("OPR"))||lba()||Ea("Silk")||Ea("Android"))},mba=function(){return Fa()?iba("Chromium"):(Ea("Chrome")||Ea("CriOS"))&&!(Fa()?0:Ea("Edge"))||Ea("Silk")},oba=function(){return Ea("Android")&&
!(mba()||lba()||jba()||Ea("Silk"))},pba=function(){var a=Ba();if(kba()){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},qba=function(){if(Fa()){var a=Ca.brands.find(function(b){return b.brand==="Internet Explorer"});if(!a||!a.version)return NaN;
a=a.version.split(".")}else{a=pba();if(a==="")return NaN;a=a.split(".")}return a.length===0?NaN:Number(a[0])},rba=function(){return hba?!!Ca&&!!Ca.platform:!1},sba=function(){return rba()?Ca.platform==="Android":Ea("Android")},tba=function(){return Ea("iPhone")&&!Ea("iPod")&&!Ea("iPad")},Ga=function(){return tba()||Ea("iPad")||Ea("iPod")},Ha=function(){return rba()?Ca.platform==="macOS":Ea("Macintosh")},uba=function(){return rba()?Ca.platform==="Windows":Ea("Windows")},vba=function(){return rba()?
Ca.platform==="Chrome OS":Ea("CrOS")},wba=function(){var a=Ba(),b="";uba()?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):Ga()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):Ha()?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10"):eba(Ba(),"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1]):sba()?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1]):vba()&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&a[1]);
return b||""},Ia=function(a){return a[a.length-1]},xba=function(a,b){var c=0;Ja(a,function(d,e,f){b.call(void 0,d,e,f)&&++c});return c},zba=function(a,b){b=yba(a,b);return b<0?null:typeof a==="string"?a.charAt(b):a[b]},yba=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},Ka=function(a,b){return Aba(a,b)>=0},Bba=function(a){if(!Array.isArray(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0},La=function(a,b){b=
Aba(a,b);var c;(c=b>=0)&&Cba(a,b);return c},Cba=function(a,b){Array.prototype.splice.call(a,b,1)},Dba=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&&Cba(a,b)},Ma=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[]},Eba=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(Na(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var g=0;g<f;g++)a[e+
g]=d[g]}else a.push(d)}},Gba=function(a,b,c,d){return Array.prototype.splice.apply(a,Fba(arguments,1))},Fba=function(a,b,c){return arguments.length<=2?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},Hba=function(a,b,c){b=b||a;var d=function(m){return m};c=c||d;for(var e=d=0,f=new Set;e<a.length;){var g=a[e++],k=c(g);f.has(k)||(f.add(k),b[d++]=g)}b.length=d},Jba=function(a,b){a.sort(b||Iba)},Kba=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||Iba;Jba(c,function(f,g){return e(f.value,g.value)||f.index-g.index});for(b=0;b<a.length;b++)a[b]=c[b].value},Mba=function(a,b){if(!Na(a)||!Na(b)||a.length!=b.length)return!1;for(var c=a.length,d=Lba,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0},Iba=function(a,b){return a>b?1:a<b?-1:0},Lba=function(a,b){return a===b},Nba=function(a,b){for(var c=new Map,d=0;d<a.length;d++){var e=a[d],f=b(e,d,a);if(f!==void 0){var g=c.get(f);g||(g=[],c.set(f,g));g.push(e)}}return c},Oba=function(){for(var a=
[],b=0;b<5;b+=1)a.push(b);return a},Pba=function(a,b,c){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,c,0,b[0])},Sba=function(a,b){b===void 0&&(b=0);Qba();b=Rba[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var g=a[e],k=a[e+1],m=a[e+2],r=b[g>>2];g=b[(g&3)<<4|k>>4];k=b[(k&15)<<2|m>>6];m=b[m&63];c[f++]=r+g+k+m}r=0;m=d;switch(a.length-e){case 2:r=a[e+1],m=b[(r&15)<<2]||d;case 1:a=a[e],c[f]=b[a>>2]+b[(a&3)<<4|r>>4]+m+d}return c.join("")},Tba=function(a,
b){return b?Sba(cba(a),b):ra.btoa(unescape(encodeURIComponent(a)))},Vba=function(a){var b=[];Uba(a,function(c){b.push(c)});return b},Uba=function(a,b){function c(m){for(;d<a.length;){var r=a.charAt(d++),w=Wba[r];if(w!=null)return w;if(!xa(r))throw Error("Q`"+r);}return m}Qba();for(var d=0;;){var e=c(-1),f=c(0),g=c(64),k=c(64);if(k===64&&e===-1)break;b(e<<2|f>>4);g!=64&&(b(f<<4&240|g>>2),k!=64&&b(g<<6&192|k))}},Qba=function(){if(!Wba){Wba={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),
b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));Rba[c]=d;for(var e=0;e<d.length;e++){var f=d[e];Wba[f]===void 0&&(Wba[f]=e)}}}},Yba=function(a){return Xba[a]||""},$ba=function(a){a=Zba.test(a)?a.replace(Zba,Yba):a;a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b},Oa=function(a){return a!=null&&a instanceof Uint8Array},aca=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},
Pa=function(){return typeof BigInt==="function"},Qa=function(a,b){return(b===void 0?0:b)&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol()},Ta=function(a,b){a[Ra]|=b},bca=function(a){if(4&a)return 512&a?512:1024&a?1024:0},Ua=function(a){Ta(a,34);return a},cca=function(a){Ta(a,8192);return a},dca=function(a){Ta(a,32);return a},eca=function(a){return a.length==0?Va():new Wa(a,Xa)},$a=function(a){return a!=null&&a[Ya]===Za},cb=function(a,b){return b===void 0?a.copyOnWrite!==bb&&!!(2&(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[Ra]|
0)):!!(2&b)&&a.copyOnWrite!==bb},db=function(a,b,c){if(a==null){if(!c)throw Error();}else if(typeof a==="string")a=fca(a);else if(a.constructor!==Wa)if(Oa(a))a=a.length?new Wa(new Uint8Array(a),Xa):Va();else{if(!b)throw Error();a=void 0}return a},gca=function(a){return!Array.isArray(a)||a.length?!1:(a[Ra]|0)&1?!0:!1},eb=function(a,b){if(typeof b!=="number"||b<0||b>=a.length)throw Error();},hca=function(a,b){if(typeof b!=="number"||b<0||b>a.length)throw Error();},ica=function(a,b,c){var d=b&128?0:
-1,e=a.length,f;if(f=!!e)f=a[e-1],f=f!=null&&typeof f==="object"&&f.constructor===Object;var g=e+(f?-1:0);for(b=b&128?1:0;b<g;b++)c(b-d,a[b]);if(f){a=a[e-1];for(var k in a)!isNaN(k)&&c(+k,a[k])}},gb=function(a){return a&128?fb:void 0},jca=function(a){return a},hb=function(a){a.isGuard_doNotManuallySetPrettyPlease=!0;return a},lca=function(){var a=kca;return hb(function(b){for(var c in a)if(b===a[c]&&!/^[0-9]+$/.test(c))return!0;return!1})},nca=function(a){return hb(function(b){return mca(b)?b.every(function(c){return a(c)}):
!1})},jb=function(a){var b=a;if(oca(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(pca(b)&&!Number.isSafeInteger(b))throw Error(String(b));return qca?BigInt(a):a=rca(a)?a?"1":"0":oca(a)?a.trim()||"0":String(a)},sca=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}},tca=function(a){var b=a>>>0;kb=b;lb=(a-b)/4294967296>>>0},mb=function(a){if(a<0){tca(-a);var b=l(uca(kb,
lb));a=b.next().value;b=b.next().value;kb=a>>>0;lb=b>>>0}else tca(a)},vca=function(a,b){var c=b*4294967296+(a>>>0);return Number.isSafeInteger(c)?c:nb(a,b)},wca=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,a==0&&(b=b+1>>>0));a=vca(a,b);return typeof a==="number"?c?-a:a:c?"-"+a:a},yca=function(a,b){return Pa()?jb(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(b))<<BigInt(32))+BigInt.asUintN(32,BigInt(a)))):jb(xca(a,b))},nb=function(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);
else Pa()?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+zca(c)+zca(a));return c},zca=function(a){a=String(a);return"0000000".slice(a.length)+a},xca=function(a,b){b&2147483648?Pa()?a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0)):(b=l(uca(a,b)),a=b.next().value,b=b.next().value,a="-"+nb(a,b)):a=nb(a,b);return a},Aca=function(a){if(a.length<16)mb(Number(a));
else if(Pa())a=BigInt(a),kb=Number(a&BigInt(4294967295))>>>0,lb=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+(a[0]==="-");lb=kb=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)),lb*=1E6,kb=kb*1E6+d,kb>=4294967296&&(lb+=Math.trunc(kb/4294967296),lb>>>=0,kb>>>=0);b&&(b=l(uca(kb,lb)),a=b.next().value,b=b.next().value,kb=a,lb=b)}},uca=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]},Bca=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382=
{});a.__closure__error__context__984382.severity=b},Cca=function(){var a=Error();Bca(a,"incident");sa(a)},ob=function(a){a=Error(a);Bca(a,"warning");return a},pb=function(a,b){if(a!=null){var c;var d=(c=Dca)!=null?c:Dca={};c=d[a]||0;c>=b||(d[a]=c+1,Cca())}},qb=function(a){return[].concat(n(a))},sb=function(a,b){throw Error(b===void 0?"unexpected value "+a+"!":b);},Eca=function(a){if(typeof a!=="number")throw Error("T`"+typeof a+"`"+a);return a},ub=function(a){if(a==null||typeof a==="number")return a;
if(a==="NaN"||a==="Infinity"||a==="-Infinity")return Number(a)},Fca=function(a){return db(a,!1,!1)},vb=function(a){if(typeof a!=="boolean")throw Error("U`"+Gca(a)+"`"+a);return a},wb=function(a){if(a==null||typeof a==="boolean")return a;if(typeof a==="number")return!!a},yb=function(a){switch(typeof a){case "bigint":return!0;case "number":return xb(a);case "string":return Hca.test(a);default:return!1}},zb=function(a){if(!xb(a))throw ob("enum");return a|0},Ica=function(a){return a==null?a:zb(a)},Ab=
function(a){return a==null?a:xb(a)?a|0:void 0},Bb=function(a){if(typeof a!=="number")throw ob("int32");if(!xb(a))throw ob("int32");return a|0},Cb=function(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return xb(a)?a|0:void 0},Jca=function(){if(!xb(0))throw ob("uint32");return 0},Kca=function(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return xb(a)?a>>>0:void 0},Fb=function(a,b){b!=null||(b=Db?1024:0);if(!yb(a))throw ob("int64");
var c=typeof a;switch(b){case 512:switch(c){case "string":return Lca(a);case "bigint":return String(Eb(64,a));default:return Mca(a)}case 1024:switch(c){case "string":return Nca(a);case "bigint":return jb(Eb(64,a));default:return Oca(a)}case 0:switch(c){case "string":return Lca(a);case "bigint":return jb(Eb(64,a));default:return Pca(a)}default:return sb(b,"Unknown format requested type for int64")}},Qca=function(a){var b=a.length;if(a[0]==="-"?b<20||b===20&&a<="-9223372036854775808":b<19||b===19&&
a<="9223372036854775807")return a;Aca(a);return xca(kb,lb)},Rca=function(a){if(a[0]==="-")var b=!1;else b=a.length,b=b<20?!0:b===20&&a<="18446744073709551615";if(b)return a;Aca(a);return nb(kb,lb)},Pca=function(a){a=Gb(a);Hb(a)||(mb(a),a=wca(kb,lb));return a},Sca=function(a){a=Gb(a);a>=0&&Hb(a)||(mb(a),a=vca(kb,lb));return a},Mca=function(a){a=Gb(a);Hb(a)?a=String(a):(mb(a),a=xca(kb,lb));return a},Tca=function(a){a=Gb(a);a>=0&&Hb(a)?a=String(a):(mb(a),a=nb(kb,lb));return a},Lca=function(a){var b=
Gb(Number(a));if(Hb(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Qca(a)},Nca=function(a){var b=Gb(Number(a));if(Hb(b))return jb(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Pa()?jb(Eb(64,BigInt(a))):jb(Qca(a))},Oca=function(a){return Hb(a)?jb(Pca(a)):jb(Mca(a))},Uca=function(a){return Hb(a)?jb(Sca(a)):jb(Tca(a))},Vca=function(a){var b=Gb(Number(a));if(Hb(b)&&b>=0)return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Rca(a)},Wca=function(a){var b=
Gb(Number(a));if(Hb(b)&&b>=0)return jb(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Pa()?jb(Ib(64,BigInt(a))):jb(Rca(a))},Kb=function(a){if(a==null)return a;if(typeof a==="bigint")return Jb(a)?a=Number(a):(a=Eb(64,a),a=Jb(a)?Number(a):String(a)),a;if(yb(a))return typeof a==="number"?Pca(a):Lca(a)},Lb=function(a,b){b=b===void 0?!1:b;var c=typeof a;if(a==null)return a;if(c==="bigint")return String(Eb(64,a));if(yb(a))return c==="string"?Lca(a):b?Mca(a):Pca(a)},Mb=function(a){var b=typeof a;
if(a==null)return a;if(b==="bigint")return jb(Eb(64,a));if(yb(a))return b==="string"?Nca(a):Oca(a)},Xca=function(a){var b=void 0;b!=null||(b=Db?1024:0);if(!yb(a))throw ob("uint64");var c=typeof a;switch(b){case 512:switch(c){case "string":return Vca(a);case "bigint":return String(Ib(64,a));default:return Tca(a)}case 1024:switch(c){case "string":return Wca(a);case "bigint":return jb(Ib(64,a));default:return Uca(a)}case 0:switch(c){case "string":return Vca(a);case "bigint":return jb(Ib(64,a));default:return Sca(a)}default:return sb(b,
"Unknown format requested type for int64")}},Yca=function(a){if(a==null)return a;if(typeof a==="bigint")return a>=0&&Jb(a)?a=Number(a):(a=Ib(64,a),a=Jb(a)?Number(a):String(a)),a;if(yb(a))return typeof a==="number"?Sca(a):Vca(a)},Zca=function(a,b){b=b===void 0?!1:b;var c=typeof a;if(a==null)return a;if(c==="bigint")return String(Ib(64,a));if(yb(a))return c==="string"?Vca(a):b?Tca(a):Sca(a)},$ca=function(a){var b=typeof a;if(a==null)return a;if(b==="bigint")return jb(Ib(64,a));if(yb(a))return b==="string"?
Wca(a):Uca(a)},ada=function(a){if(a==null)return a;var b=typeof a;if(b==="bigint")return String(Eb(64,a));if(yb(a)){if(b==="string")return Lca(a);if(b==="number")return Pca(a)}},bda=function(a){if(a==null)return a;var b=typeof a;if(b==="bigint")return String(Ib(64,a));if(yb(a)){if(b==="string")return Vca(a);if(b==="number")return Sca(a)}},Nb=function(a){if(typeof a!=="string")throw Error();return a},cda=function(a){if(a!=null&&typeof a!=="string")throw Error();return a},Ob=function(a){return a==null||
typeof a==="string"?a:void 0},fda=function(a,b,c,d){if($a(a))return a;if(!Array.isArray(a))return c?d&2?b[dda]||(b[dda]=eda(b)):new b:void 0;c=a[Ra]|0;d=c|d&32|d&2;d!==c&&(a[Ra]=d);return new b(a)},eda=function(a){a=new a;Ua(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a},gda=function(a,b,c){if(b)return vb(a);var d;return(d=wb(a))!=null?d:c?!1:void 0},Pb=function(a,b,c){a=b?Fb(a,1024):Mb(a);return a==null?c?hda:void 0:a},Rb=function(a,b,c){if(b)return Nb(a);var d;return(d=Ob(a))!=
null?d:c?"":void 0},ida=function(a,b,c){a=b?zb(a):Ab(a);return a==null?c?0:void 0:a},jda=function(a,b){if(typeof b==="string")try{b=$ba(b)}catch(c){return!1}return Oa(b)&&aca(a,b)},kda=function(a){switch(a){case "bigint":case "string":case "number":return!0;default:return!1}},mda=function(a,b){if(a[Ya]===Za)a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;else if(!Array.isArray(a))return!1;if(b[Ya]===Za)b=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;else if(!Array.isArray(b))return!1;
return lda(a,b,void 0,2)},Sb=function(a,b,c){return lda(a,b,c,0)},lda=function(a,b,c,d){if(a===b||a==null&&b==null)return!0;if(a instanceof Map)return nda(a,b,c);if(b instanceof Map)return nda(b,a,c);if(a==null||b==null)return!1;if(a instanceof Wa)return oda(a,b);if(b instanceof Wa)return oda(b,a);if(Oa(a))return jda(a,b);if(Oa(b))return jda(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):kda(e)&&kda(f)?""+a===""+b:e==="boolean"&&
f==="number"||e==="number"&&f==="boolean"?!a===!b:!1;if(a[Ya]===Za||b[Ya]===Za)return mda(a,b);if(a.constructor!=b.constructor)return!1;if(a.constructor===Array){f=a[Ra]|0;var g=b[Ra]|0,k=a.length,m=b.length,r=Math.max(k,m);e=(f|g|64)&128?0:-1;if(d===1||(f|g)&1)d=1;else if((f|g)&8192)return pda(a,b);f=k&&a[k-1];g=m&&b[m-1];f!=null&&typeof f==="object"&&f.constructor===Object||(f=null);g!=null&&typeof g==="object"&&g.constructor===Object||(g=null);k=k-e-+!!f;m=m-e-+!!g;for(var w=0;w<r;w++)if(!qda(w-
e,a,f,k,b,g,m,e,c,d))return!1;if(f)for(var x in f){d=a;r=f;w=k;var D=b,H=g,J=m,O=e,R=c,V=+x;if(!(!Number.isFinite(V)||V<w||V<J||qda(V,d,r,w,D,H,J,O,R,2)))return!1}if(g)for(var ba in g)if((x=f&&ba in f)||(x=a,d=f,r=k,w=b,D=g,H=m,J=e,O=c,R=+ba,x=!Number.isFinite(R)||R<r||R<H?!0:qda(R,x,d,r,w,D,H,J,O,2)),!x)return!1;return!0}if(a.constructor===Object)return Sb([a],[b]);throw Error();},qda=function(a,b,c,d,e,f,g,k,m,r){b=rda(a,b,c,d,k);e=rda(a,e,f,g,k);r=r===1;if(e==null&&gca(b)||b==null&&gca(e))return!0;
a=r?m:m==null?void 0:m.getFieldComparisonTypeInfo(a);return lda(b,e,a,0)},rda=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]},sda=function(a){return a},tda=function(a,b,c,d,e,f){a=fda(a,d,c,f);e&&(a=Ub(a));return a},uda=function(a,b,c){if(a.size!=b.size)return!1;var d=!0;a.forEach(function(e,f){Sb(e,b.get(f),c==null?void 0:c.getFieldComparisonTypeInfo(2))||(d=!1)});return d},vda=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},wda=function(a,b,c){if(b==null)return a.size===0;if(!Array.isArray(b)||a.size>b.length)return!1;b=qb(b);Array.prototype.sort.call(b,vda);for(var d=0,e=void 0,f=b.length-1;f>=0;f--){var g=b[f];if(!g||!Array.isArray(g)||g.length!==2)return!1;var k=g[0];if(k!==e){e=void 0;if(!Sb(a.get(k),g[1],(e=c)==null?void 0:e.getFieldComparisonTypeInfo(2)))return!1;e=k;d++}}return d===a.size},pda=function(a,b){if(!Array.isArray(a)||!Array.isArray(b))return!1;a=qb(a);b=qb(b);Array.prototype.sort.call(a,
vda);Array.prototype.sort.call(b,vda);var c=a.length,d=b.length;if(c===0&&d===0)return!0;for(var e=0,f=0;e<c&&f<d;){var g=void 0,k=a[e];if(!Array.isArray(k))return!1;for(var m=k[0];e<c-1&&Sb((g=a[e+1])[0],m);)e++,k=g;var r=void 0;g=b[f];if(!Array.isArray(g))return!1;for(var w=g[0];f<d-1&&Sb((r=b[f+1])[0],w);)f++,g=r;if(!Sb(m,w))return!1;m=void 0;if(!Sb(k[1],g[1],(m=void 0)==null?void 0:m.getFieldComparisonTypeInfo(2)))return!1;e++;f++}return e>=c&&f>=d},xda=function(a){return[a,this.get(a)]},Ada=
function(){return yda||(yda=new Vb(Ua([]),void 0,void 0,void 0,zda))},Bda=function(a){var b=Wb(Xb);return b?a[b]:void 0},Cda=function(a,b){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var c=Wb(Xb);c&&c in a&&(a=a[c])&&delete a[b]},Fda=function(a,b){var c=c===void 0?!1:c;if(Wb(Dda)&&Wb(Xb)&&void 0===Dda){var d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=d[Xb];if(!e)return;if(e=e.reviveUnknownFields)try{e(d,b,Eda);return}catch(f){sa(f)}}c&&Cda(a,b)},Hda=function(a,b){var c=
Wb(Xb),d;c&&((d=a[c])==null?void 0:d[b])!=null&&pb(Gda,3)},Jda=function(a,b){b<100||pb(Ida,1)},Oda=function(a,b,c,d){var e=d!==void 0;d=!!d;var f=Wb(Xb),g;!e&&f&&(g=a[f])&&Kda(g,Jda);f=[];var k=a.length;g=4294967295;var m=!1,r=!!(b&64),w=r?b&128?0:-1:void 0;if(!(b&1)){var x=k&&a[k-1];x!=null&&typeof x==="object"&&x.constructor===Object?(k--,g=k):x=void 0;if(r&&!(b&128)&&!e){m=!0;var D;g=((D=Lda)!=null?D:jca)(g-w,w,a,x,void 0)+w}}b=void 0;for(D=0;D<k;D++){var H=a[D];if(H!=null&&(H=c(H,d))!=null)if(r&&
D>=g){var J=D-w,O=void 0;((O=b)!=null?O:b={})[J]=H}else f[D]=H}if(x)for(var R in x)k=x[R],k!=null&&(k=c(k,d))!=null&&(D=+R,H=void 0,r&&!Number.isNaN(D)&&(H=D+w)<g?f[H]=k:(D=void 0,((D=b)!=null?D:b={})[R]=k));b&&(m?f.push(b):f[g]=b);e&&Wb(Xb)&&(a=Bda(a))&&a instanceof Mda&&(f[Xb]=Nda(a));return f},Pda=function(a){a[0]=Yb(a[0]);a[1]=Yb(a[1]);return a},Yb=function(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return Jb(a)?Number(a):""+a;case "boolean":return a?1:0;
case "object":if(Array.isArray(a)){var b=a[Ra]|0;return a.length===0&&b&1?void 0:Oda(a,b,Yb)}if($a(a))return Qda(a);if(a instanceof Wa)return Rda(a);if(a instanceof Vb)return a=a.size!==0?Sda(a,Pda):void 0,a;return}return a},Vda=function(a,b){if(b){Lda=b==null||b===jca||b[Tda]!==Uda?jca:b;try{return Qda(a)}finally{Lda=void 0}}return Qda(a)},Qda=function(a){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Oda(a,a[Ra]|0,Yb)},Yda=function(a){switch(typeof a){case "boolean":return Wda||
(Wda=[0,void 0,!0]);case "number":return a>0?void 0:a===0?Xda||(Xda=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}},$da=function(a,b){return Zda(a,b[0],b[1])},p=function(a,b,c){return Zda(a,b,c,2048)},Zda=function(a,b,c,d){d=d===void 0?0:d;if(a==null){var e=32;c?(a=[c],e|=128):a=[];b&&(e=e&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("W");e=a[Ra]|0;if(aea&&1&e)throw Error("X");2048&e&&!(2&e)&&bea();if(e&256)throw Error("Y");if(e&64)return(e|d)!==e&&(a[Ra]=
e|d),a;if(c&&(e|=128,c!==a[0]))throw Error("Z");a:{c=a;e|=64;var f=c.length;if(f){var g=f-1,k=c[g];if(k!=null&&typeof k==="object"&&k.constructor===Object){b=e&128?0:-1;g-=b;if(g>=1024)throw Error("aa");for(var m in k)if(f=+m,f<g)c[f+b]=k[m],delete k[m];else break;e=e&-16760833|(g&1023)<<14;break a}}if(b){m=Math.max(b,f-(e&128?0:-1));if(m>1024)throw Error("ba");e=e&-16760833|(m&1023)<<14}}}a[Ra]=e|64|d;return a},bea=function(){if(aea)throw Error("$");pb(cea,5)},dea=function(a,b){if(typeof a==="string")return new Zb($ba(a),
b);if(Array.isArray(a))return new Zb(new Uint8Array(a),b);if(a.constructor===Uint8Array)return new Zb(a,!1);if(a.constructor===ArrayBuffer)return a=new Uint8Array(a),new Zb(a,!1);if(a.constructor===Wa)return b=$b(a)||new Uint8Array(0),new Zb(b,!0,a);if(a instanceof Uint8Array)return a=a.constructor===Uint8Array?a:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),new Zb(a,!1);throw Error();},gea=function(a,b){if(typeof a!=="object")return a;if(Array.isArray(a)){var c=a[Ra]|0;return a.length===0&&
c&1?void 0:eea(a,c,b)}if($a(a))return fea(a);if(a instanceof Vb){b=a.arrayState;if(b&2)return a;if(!a.size)return;c=Ua(Sda(a));if(a.valueCtor)for(a=0;a<c.length;a++){var d=c[a],e=d[1];e==null||typeof e!=="object"?e=void 0:$a(e)?e=fea(e):Array.isArray(e)?e=eea(e,e[Ra]|0,!!(b&32)):e=void 0;d[1]=e}return c}if(a instanceof Wa)return a},eea=function(a,b,c){if(b&2)return a;!c||4096&b||16&b?a=cc(a,b,!1,c&&!(b&16)):(Ta(a,34),b&4&&Object.freeze(a));return a},hea=function(a,b,c){a=new a.constructor(b);c&&(a.copyOnWrite=
bb);a.noLegacyNull=bb;return a},fea=function(a){var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[Ra]|0;return cb(a,c)?a:iea(a,b,c)?hea(a,b):cc(b,c)},cc=function(a,b,c,d){d!=null||(d=!!(34&b));a=Oda(a,b,gea,d);d=32;c&&(d|=2);b=b&16769217|d;a[Ra]=b;return a},Ub=function(a){var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[Ra]|0;return cb(a,c)?iea(a,b,c)?hea(a,b,!0):new a.constructor(cc(b,c,!1)):a},jea=function(a){var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,
c=b[Ra]|0;return cb(a,c)?a:iea(a,b,c)?hea(a,b):new a.constructor(cc(b,c,!0))},dc=function(a){if(a.copyOnWrite!==bb)return!1;var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;b=cc(b,b[Ra]|0);Ta(b,2048);a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=b;a.copyOnWrite=void 0;a.noLegacyNull=void 0;return!0},ec=function(a){if(!dc(a)&&cb(a,a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[Ra]|0))throw Error();},fc=function(a,b){b===void 0&&(b=a[Ra]|0);b&32&&!(b&4096)&&(a[Ra]=
b|4096)},iea=function(a,b,c){return c&2?!0:c&32&&!(c&4096)?(b[Ra]=c|2,a.copyOnWrite=bb,!0):!1},hc=function(a,b,c,d,e){var f=c+(e?0:-1),g=a.length-1;if(g>=1+(e?0:-1)&&f>=g){var k=a[g];if(k!=null&&typeof k==="object"&&k.constructor===Object)return k[c]=d,b}if(f<=g)return a[f]=d,b;if(d!==void 0){var m;g=((m=b)!=null?m:b=a[Ra]|0)>>14&1023||536870912;c>=g?d!=null&&(f={},a[g+(e?0:-1)]=(f[c]=d,f)):a[f]=d}return b},lc=function(a,b,c,d,e,f,g){var k=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,
m=k[Ra]|0;d=cb(a,m)?1:d;e=!!e||d===3;d===2&&dc(a)&&(k=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=k[Ra]|0);var r=kea(k,b,g),w=r===ic?7:r[Ra]|0,x=lea(w,m);var D=x;4&D?f==null?a=!1:(!e&&f===0&&(512&D||1024&D)&&(a.constructor[mea]=(a.constructor[mea]|0)+1)<5&&Cca(),a=f===0?!1:!(f&D)):a=!0;if(a){4&x&&(r=qb(r),w=0,x=jc(x,m),m=hc(k,m,b,r,g));for(var H=D=0;D<r.length;D++){var J=c(r[D]);J!=null&&(r[H++]=J)}H<D&&(r.length=H);c=(x|4)&-513;x=c&=-1025;f&&(x|=f);x&=-4097}x!==w&&(r[Ra]=x,2&x&&Object.freeze(r));
return r=nea(r,x,k,m,b,g,d,a,e)},nea=function(a,b,c,d,e,f,g,k,m){var r=b;g===1||(g!==4?0:2&b||!(16&b)&&32&d)?mc(b)||(b|=!a.length||k&&!(4096&b)||32&d&&!(4096&b||16&b)?2:256,b!==r&&(a[Ra]=b),Object.freeze(a)):(g===2&&mc(b)&&(a=qb(a),r=0,b=jc(b,d),d=hc(c,d,e,a,f)),mc(b)||(m||(b|=16),b!==r&&(a[Ra]=b)));2&b||!(4096&b||16&b)||fc(c,d);return a},kea=function(a,b,c){a=nc(a,b,c);return Array.isArray(a)?a:ic},lea=function(a,b){2&b&&(a|=2);return a|1},mc=function(a){return!!(2&a)&&!!(4&a)||!!(256&a)},oc=function(a){return db(a,
!0,!0)},oea=function(a,b,c,d,e,f){var g=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=g[Ra]|0;var m=cb(a,k);a:{!m&&dc(a)&&(g=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=g[Ra]|0);var r=nc(g,b,f);a=!1;if(r==null){if(m){b=Ada();break a}r=[]}else if(r.constructor===Vb)if(r.arrayState&2&&!m)r=Sda(r);else{b=r;break a}else Array.isArray(r)?a=!!((r[Ra]|0)&2):r=[];if(m){if(!r.length){b=Ada();break a}a||(a=!0,Ua(r))}else if(a){a=!1;cca(r);r=qb(r);for(var w=0;w<r.length;w++){var x=
r[w]=qb(r[w]);Array.isArray(x[1])&&(x[1]=Ua(x[1]))}r=cca(r)}!a&&k&32&&dca(r);d=new Vb(r,c,d,e);k=hc(g,k,b,d,f);a||fc(g,k);b=d}!m&&c&&(b.callToMutableOnAccess=!0);return b},rc=function(a,b,c,d){return oea(a,b,void 0,Rb,c,d)},sc=function(a,b,c,d,e){return oea(a,b,c,d,void 0,e)},tc=function(a,b,c,d,e){ec(a);var f=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=f[Ra]|0;if(c==null)return hc(f,g,b,void 0,e),a;var k=c===ic?7:c[Ra]|0,m=k,r=mc(k),w=r||Object.isFrozen(c);r||(k=0);w||(c=qb(c),m=0,
k=jc(k,g),w=!1);k|=5;var x;r=(x=bca(k))!=null?x:Db?1024:0;k|=r;for(x=0;x<c.length;x++){var D=c[x],H=d(D,r);Object.is(D,H)||(w&&(c=qb(c),m=0,k=jc(k,g),w=!1),c[x]=H)}k!==m&&(w&&(c=qb(c),k=jc(k,g)),c[Ra]=k);hc(f,g,b,c,e);return a},uc=function(a,b,c,d,e){ec(a);var f=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;hc(f,f[Ra]|0,b,(d==="0"?Number(c)===0:c===d)?void 0:c,e);return a},yc=function(a,b,c,d,e,f){return wc(a,b,c,d,void 0,e,f,void 0,!0)},pea=function(a,b,c){if(b&2)throw Error();var d=gb(b),
e=kea(a,c,d),f=e===ic?7:e[Ra]|0,g=lea(f,b);if(2&g||mc(g)||16&g)g===f||mc(g)||(e[Ra]=g),e=qb(e),f=0,g=jc(g,b),hc(a,b,c,e,d);g&=-13;g!==f&&(e[Ra]=g);return e},rea=function(a){var b;return(b=a[qea])!=null?b:a[qea]=new Map},tea=function(a,b,c,d,e){var f=rea(a),g=sea(f,a,b,c,e);g!==d&&(g&&(b=hc(a,b,g,void 0,e)),f.set(c,d));return b},sea=function(a,b,c,d,e){var f=a.get(d);if(f!=null)return f;for(var g=f=0;g<d.length;g++){var k=d[g];nc(b,k,e)!=null&&(f!==0&&(c=hc(b,c,f,void 0,e)),f=k)}a.set(d,f);return f},
uea=function(a,b,c,d,e){var f=!1;d=nc(a,d,e,function(g){var k=fda(g,c,!1,b);f=k!==g&&k!=null;return k});if(d!=null)return f&&!cb(d)&&fc(a,b),d},vea=function(a,b,c,d,e,f,g,k,m){var r=cb(a,c);f=r?1:f;k=!!k||f===3;r=m&&!r;(f===2||r)&&dc(a)&&(b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[Ra]|0);a=kea(b,e,g);var w=a===ic?7:a[Ra]|0,x=lea(w,c);if(m=!(4&x)){var D=a,H=c,J=!!(2&x);J&&(H|=2);for(var O=!J,R=!0,V=0,ba=0;V<D.length;V++){var pa=fda(D[V],d,!1,H);if(pa instanceof d){if(!J){var ua=
cb(pa);O&&(O=!ua);R&&(R=ua)}D[ba++]=pa}}ba<V&&(D.length=ba);x|=4;x=R?x&-4097:x|4096;x=O?x|8:x&-9}x!==w&&(a[Ra]=x,2&x&&Object.freeze(a));if(r&&!(8&x||!a.length&&(f===1||(f!==4?0:2&x||!(16&x)&&32&c)))){mc(x)&&(a=qb(a),x=jc(x,c),c=hc(b,c,e,a,g));d=a;r=x;for(w=0;w<d.length;w++)D=d[w],x=Ub(D),D!==x&&(d[w]=x);r|=8;x=r=d.length?r|4096:r&-4097;a[Ra]=x}return a=nea(a,x,b,c,e,g,f,m,k)},wea=function(a){a==null&&(a=void 0);return a},jc=function(a,b){return a=(2&b?a|2:a&-3)&-273},wc=function(a,b,c,d,e,f,g,k,m,
r){ec(a);b=lc(a,b,f,2,!0,void 0,g);var w;f=(w=bca(b===ic?7:b[Ra]|0))!=null?w:Db?1024:0;if(m)if(Array.isArray(d))for(e=d.length,k=0;k<e;k++)b.push(c(d[k],f));else for(d=l(d),e=d.next();!e.done;e=d.next())b.push(c(e.value,f));else k&&r?(e!=null||(e=b.length-1),eb(b,e),b.splice(e,k)):(k&&hca(b,e),e!=void 0?b.splice(e,k,c(d,f)):b.push(c(d,f)));return a},zc=function(a,b,c,d,e,f,g,k){ec(a);var m=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;a=vea(a,m,m[Ra]|0,c,b,2,d,!0);if(g&&k)f!=null||(f=a.length-
1),eb(a,f),a.splice(f,g),a.length||(a[Ra]&=-4097);else return g?hca(a,f):e=e!=null?e:new c,f!=void 0?a.splice(f,g,e):a.push(e),f=c=a===ic?7:a[Ra]|0,(g=cb(e))?(c&=-9,a.length===1&&(c&=-4097)):c|=4096,c!==f&&(a[Ra]=c),g||fc(m),e},xea=function(a){return Lb(a,!0)},yea=function(a,b){if(b==null)return new a;if(!Array.isArray(b))throw Error();if(Object.isFrozen(b)||Object.isSealed(b)||!Object.isExtensible(b))throw Error();return new a(dca(b))},zea=function(a,b){b=b===void 0?window:b;b=b===void 0?window:
b;return(b=b.WIZ_global_data)&&a in b?b[a]:null},Aea=function(a){var b=b===void 0?window:b;return new Ac(a,zea(a,b))},Bea=function(){la.__load_patch("Error",function(a,b,c){function d(pa){for(var ua={zoneName:pa.zone.name},ma=ua;pa.parent;){pa=pa.parent;var Da={zoneName:pa.zone.name};ua=ua.parent=Da}return ma}function e(pa,ua,ma){ma=ma===void 0?!0:ma;pa=pa.split("\n");for(var Da=0;pa[Da]!==w&&pa[Da]!==x&&pa[Da]!==D&&pa[Da]!==H&&pa[Da]!==J&&Da<pa.length;)Da++;for(;Da<pa.length&&ua;Da++){var ja=pa[Da];
if(ja.trim())switch(r[ja]){case g.zoneJsInternal:pa.splice(Da,1);Da--;break;case g.transition:ua.parent?ua=ua.parent:ua=null;pa.splice(Da,1);Da--;break;default:pa[Da]+=ma?" ["+ua.zone.name+"]":" ["+ua.zoneName+"]"}}return pa.join("\n")}function f(){var pa=this,ua=m.apply(this,arguments),ma=ua.originalStack=ua.stack;if(f.stackRewrite&&ma){var Da=c.currentZoneFrame();if(O==="lazy")ua[c.symbol("zoneFrameNames")]=d(Da);else if(O==="default")try{ua.stack=ua.zoneAwareStack=e(ma,Da)}catch(ja){}}return this instanceof
m&&this.constructor!=m?(Object.keys(ua).concat("stack","message","cause").forEach(function(ja){var va=ua[ja];if(va!==void 0)try{pa[ja]=va}catch(ya){}}),this):ua}var g={zoneJsInternal:0,transition:1},k=c.symbol("zoneJsInternalStackFrames"),m=a[c.symbol("Error")]=a.Error,r={},w,x,D,H,J;a.Error=f;var O=a.__Zone_Error_BlacklistedStackFrames_policy||a.__Zone_Error_ZoneJsInternalStackFrames_policy||"default";f.prototype=m.prototype;f[k]=r;f.stackRewrite=!1;var R=c.symbol("zoneAwareStack");O==="lazy"&&Object.defineProperty(f.prototype,
"zoneAwareStack",{configurable:!0,enumerable:!0,get:function(){this[R]||(this[R]=e(this.originalStack,this[c.symbol("zoneFrameNames")],!1));return this[R]},set:function(pa){this.originalStack=pa;this[R]=e(this.originalStack,this[c.symbol("zoneFrameNames")],!1)}});var V=["stackTraceLimit","captureStackTrace","prepareStackTrace"];(a=Object.keys(m))&&a.forEach(function(pa){V.filter(function(ua){return ua===pa}).length===0&&Object.defineProperty(f,pa,{get:function(){return m[pa]},set:function(ua){m[pa]=
ua}})});m.hasOwnProperty("stackTraceLimit")&&(m.stackTraceLimit=Math.max(m.stackTraceLimit,15),Object.defineProperty(f,"stackTraceLimit",{get:function(){return m.stackTraceLimit},set:function(pa){return m.stackTraceLimit=pa}}));m.hasOwnProperty("captureStackTrace")&&Object.defineProperty(f,"captureStackTrace",{value:function(pa,ua){m.captureStackTrace(pa,ua)}});Object.defineProperty(f,"prepareStackTrace",{get:function(){return m.prepareStackTrace},set:function(pa){return pa&&typeof pa==="function"?
m.prepareStackTrace=function(ua,ma){if(ma)for(var Da=0;Da<ma.length;Da++)if(ma[Da].getFunctionName()==="zoneCaptureStackTrace"){ma.splice(Da,1);break}return pa.call(this,ua,ma)}:m.prepareStackTrace=pa}});if(O!=="disable"){var ba=b.current.fork({name:"detect",onHandleError:function(pa,ua,ma,Da){if(Da.originalStack&&Error===f)for(pa=Da.originalStack.split(/\n/),Da=ma=ua=!1;pa.length;){var ja=pa.shift();if(/:\d+:\d+/.test(ja)||ja==="ZoneAwareError"){var va=ja.split("(")[0].split("@")[0],ya=g.transition;
va.indexOf("ZoneAwareError")!==-1&&(va.indexOf("new ZoneAwareError")!==-1?(w=ja,x=ja.replace("new ZoneAwareError","new Error.ZoneAwareError")):(D=ja,H=ja.replace("Error.",""),ja.indexOf("Error.ZoneAwareError")===-1&&(J=ja.replace("ZoneAwareError","Error.ZoneAwareError"))),r[x]=g.zoneJsInternal);va.indexOf("runGuarded")!==-1?ma=!0:va.indexOf("runTask")!==-1?Da=!0:va.indexOf("run")!==-1?ua=!0:ya=g.zoneJsInternal;r[ja]=ya;if(ua&&ma&&Da){f.stackRewrite=!0;break}}}return!1}}).fork({name:"child",onScheduleTask:function(pa,
ua,ma,Da){return pa.scheduleTask(ma,Da)},onInvokeTask:function(pa,ua,ma,Da,ja,va){return pa.invokeTask(ma,Da,ja,va)},onCancelTask:function(pa,ua,ma,Da){return pa.cancelTask(ma,Da)},onInvoke:function(pa,ua,ma,Da,ja,va,ya){return pa.invoke(ma,Da,ja,va,ya)}});b=Error.stackTraceLimit;Error.stackTraceLimit=100;ba.run(function(){ba.runGuarded(function(){var pa=function(){};ba.scheduleEventTask(k,function(){ba.scheduleMacroTask(k,function(){ba.scheduleMicroTask(k,function(){throw Error();},void 0,function(ua){ua._transitionTo=
pa;ua.invoke()});ba.scheduleMicroTask(k,function(){throw Error();},void 0,function(ua){ua._transitionTo=pa;ua.invoke()})},void 0,function(ua){ua._transitionTo=pa;ua.invoke()},function(){})},void 0,function(ua){ua._transitionTo=pa;ua.invoke()},function(){})})});Error.stackTraceLimit=b}})},Cea=function(){la.__load_patch("ZoneAwarePromise",function(a,b,c){function d(tb){if(tb&&tb.toString===Object.prototype.toString){var Qb=tb.constructor&&tb.constructor.name;return(Qb?Qb:"")+": "+JSON.stringify(tb)}return tb?
tb.toString():Object.prototype.toString.call(tb)}function e(tb){c.onUnhandledError(tb);try{var Qb=b[ua];typeof Qb==="function"&&Qb.call(this,tb)}catch(ib){}}function f(tb){return tb}function g(tb){return kc.reject(tb)}function k(tb,Qb){return function(ib){try{m(tb,Qb,ib)}catch(bc){m(tb,!1,bc)}}}function m(tb,Qb,ib){var bc=Sa();if(tb===ib)throw new TypeError("ha");if(tb[ma]===null){var xc=null;try{if(typeof ib==="object"||typeof ib==="function")xc=ib&&ib.then}catch(ud){return bc(function(){m(tb,!1,
ud)})(),tb}if(Qb!==!1&&ib instanceof kc&&ib.hasOwnProperty(ma)&&ib.hasOwnProperty(Da)&&ib[ma]!==null)r(ib),m(tb,ib[ma],ib[Da]);else if(Qb!==!1&&typeof xc==="function")try{xc.call(ib,bc(k(tb,Qb)),bc(k(tb,!1)))}catch(ud){bc(function(){m(tb,!1,ud)})()}else{tb[ma]=Qb;bc=tb[Da];tb[Da]=ib;tb[ja]===ja&&Qb===!0&&(tb[ma]=tb[ya],tb[Da]=tb[va]);Qb===!1&&ib instanceof Error&&(xc=b.currentTask&&b.currentTask.data&&b.currentTask.data.__creationTrace__)&&J(ib,ab,{configurable:!0,enumerable:!1,writable:!0,value:xc});
for(xc=0;xc<bc.length;)w(tb,bc[xc++],bc[xc++],bc[xc++],bc[xc++]);if(bc.length==0&&Qb==0){tb[ma]=0;Qb=ib;try{throw Error("ia`"+d(ib)+"`"+(ib&&ib.stack?"\n"+ib.stack:""));}catch(ud){Qb=ud}V&&(Qb.throwOriginal=!0);Qb.rejection=ib;Qb.promise=tb;Qb.zone=b.current;Qb.task=b.currentTask;R.push(Qb);c.scheduleMicroTask()}}}return tb}function r(tb){if(tb[ma]===0){try{var Qb=b[rb];Qb&&typeof Qb==="function"&&Qb.call(this,{rejection:tb[Da],promise:tb})}catch(ib){}tb[ma]=!1;for(Qb=0;Qb<R.length;Qb++)tb===R[Qb].promise&&
R.splice(Qb,1)}}function w(tb,Qb,ib,bc,xc){r(tb);var ud=tb[ma],Tb=ud?typeof bc==="function"?bc:f:typeof xc==="function"?xc:g;Qb.scheduleMicroTask("Promise.then",function(){try{var qc=tb[Da],Sc=!!ib&&ja===ib[ja];Sc&&(ib[va]=qc,ib[ya]=ud);var pd=Qb.run(Tb,void 0,Sc&&Tb!==g&&Tb!==f?[]:[qc]);m(ib,!0,pd)}catch(Uc){m(ib,!1,Uc)}},ib)}function x(tb){var Qb=tb.prototype,ib=H(Qb,"then");if(!ib||ib.writable!==!1&&ib.configurable){var bc=Qb.then;Qb[pa]=bc;tb.prototype.then=function(xc,ud){var Tb=this;return(new kc(function(qc,
Sc){bc.call(Tb,qc,Sc)})).then(xc,ud)};tb[vc]=!0}}function D(tb){return function(Qb,ib){Qb=tb.apply(Qb,ib);if(Qb instanceof kc)return Qb;ib=Qb.constructor;ib[vc]||x(ib);return Qb}}var H=Object.getOwnPropertyDescriptor,J=Object.defineProperty,O=c.symbol,R=[],V=a[O("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,ba=O("Promise"),pa=O("then");c.onUnhandledError=function(tb){if(c.showUncaughtError()){var Qb=tb&&tb.rejection;Qb?console.error("Unhandled Promise rejection:",Qb instanceof Error?Qb.message:
Qb,"; Zone:",tb.zone.name,"; Task:",tb.task&&tb.task.source,"; Value:",Qb,Qb instanceof Error?Qb.stack:void 0):console.error(tb)}};c.microtaskDrainDone=function(){for(var tb={};R.length;tb={uncaughtPromiseError$jscomp$1:void 0}){tb.uncaughtPromiseError$jscomp$1=R.shift();try{tb.uncaughtPromiseError$jscomp$1.zone.runGuarded(function(Qb){return function(){if(Qb.uncaughtPromiseError$jscomp$1.throwOriginal)throw Qb.uncaughtPromiseError$jscomp$1.rejection;throw Qb.uncaughtPromiseError$jscomp$1;}}(tb))}catch(Qb){e(Qb)}}};
var ua=O("unhandledPromiseRejectionHandler"),ma=O("state"),Da=O("value"),ja=O("finally"),va=O("parentPromiseValue"),ya=O("parentPromiseState"),Sa=function(){var tb=!1;return function(Qb){return function(){tb||(tb=!0,Qb.apply(null,arguments))}}},ab=O("currentTaskTrace"),rb=O("rejectionHandledHandler"),ac=function(){},pc=a.AggregateError,kc=function(tb){if(!(this instanceof kc))throw Error("ja");this[ma]=null;this[Da]=[];try{var Qb=Sa();tb&&tb(Qb(k(this,!0)),Qb(k(this,!1)))}catch(ib){m(this,!1,ib)}};
kc.toString=function(){return"function ZoneAwarePromise() { [native code] }"};kc.resolve=function(tb){return tb instanceof kc?tb:m(new this(null),!0,tb)};kc.reject=function(tb){return m(new this(null),!1,tb)};kc.withResolvers=function(){var tb={};tb.promise=new kc(function(Qb,ib){tb.resolve=Qb;tb.reject=ib});return tb};kc.any=function(tb){if(!tb||typeof tb[Symbol.iterator]!=="function")return Promise.reject(new pc([],"All promises were rejected"));var Qb=[],ib=0;try{for(var bc=l(tb),xc=bc.next();!xc.done;xc=
bc.next()){var ud=xc.value;ib++;Qb.push(kc.resolve(ud))}}catch(Sc){return Promise.reject(new pc([],"All promises were rejected"))}if(ib===0)return Promise.reject(new pc([],"All promises were rejected"));var Tb=!1,qc=[];return new kc(function(Sc,pd){for(var Uc=0;Uc<Qb.length;Uc++)Qb[Uc].then(function(ne){Tb||(Tb=!0,Sc(ne))},function(ne){qc.push(ne);ib--;ib===0&&(Tb=!0,pd(new pc(qc,"All promises were rejected")))})})};kc.race=function(tb){function Qb(qc){bc(qc)}function ib(qc){xc(qc)}var bc,xc,ud=new this(function(qc,
Sc){bc=qc;xc=Sc});tb=l(tb);for(var Tb=tb.next();!Tb.done;Tb=tb.next())(Tb=Tb.value)&&typeof Tb.then==="function"||(Tb=this.resolve(Tb)),Tb.then(Qb,ib);return ud};kc.all=function(tb){return kc.allWithCallback(tb)};kc.allSettled=function(tb){return(this&&this.prototype instanceof kc?this:kc).allWithCallback(tb,{thenCallback:function(Qb){return{status:"fulfilled",value:Qb}},errorCallback:function(Qb){return{status:"rejected",reason:Qb}}})};kc.allWithCallback=function(tb,Qb){var ib,bc,xc=new this(function(Uc,
ne){ib=Uc;bc=ne}),ud=2,Tb=0,qc=[];tb=l(tb);for(var Sc=tb.next(),pd={};!Sc.done;pd={curValueIndex:void 0},Sc=tb.next()){(Sc=Sc.value)&&typeof Sc.then==="function"||(Sc=this.resolve(Sc));pd.curValueIndex=Tb;try{Sc.then(function(Uc){return function(ne){qc[Uc.curValueIndex]=Qb?Qb.thenCallback(ne):ne;ud--;ud===0&&ib(qc)}}(pd),function(Uc){return function(ne){Qb?(qc[Uc.curValueIndex]=Qb.errorCallback(ne),ud--,ud===0&&ib(qc)):bc(ne)}}(pd))}catch(Uc){bc(Uc)}ud++;Tb++}ud-=2;ud===0&&ib(qc);return xc};da.Object.defineProperty(kc.prototype,
Symbol.toStringTag,{configurable:!0,enumerable:!0,get:function(){return"Promise"}});da.Object.defineProperty(kc.prototype,Symbol.species,{configurable:!0,enumerable:!0,get:function(){return kc}});kc.prototype.then=function(tb,Qb){var ib,bc=(ib=this.constructor)==null?void 0:ib[Symbol.species];bc&&typeof bc==="function"||(bc=this.constructor||kc);ib=new bc(ac);bc=b.current;this[ma]==null?this[Da].push(bc,ib,tb,Qb):w(this,bc,ib,tb,Qb);return ib};kc.prototype.catch=function(tb){return this.then(null,
tb)};kc.prototype.finally=function(tb){var Qb,ib=(Qb=this.constructor)==null?void 0:Qb[Symbol.species];ib&&typeof ib==="function"||(ib=kc);Qb=new ib(ac);Qb[ja]=ja;ib=b.current;this[ma]==null?this[Da].push(ib,Qb,tb,tb):w(this,ib,Qb,tb,tb);return Qb};kc.resolve=kc.resolve;kc.reject=kc.reject;kc.race=kc.race;kc.all=kc.all;ba=a[ba]=a.Promise;a.Promise=kc;var vc=O("thenPatched");c.patchThen=x;ba&&(x(ba),ia(a,"fetch",function(tb){return D(tb)}));Promise[b.__symbol__("uncaughtPromiseErrors")]=R;return kc})},
Dea=function(){la.__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 g=Object.prototype.toString;Object.prototype.toString=function(){return typeof Promise==="function"&&
this instanceof Promise?"[object Promise]":g.call(this)}})},Bc=function(a){for(var b in a)if(a[b]===Bc)return b;throw Error("la");},Cc=function(a){return{token:a.token,providedIn:a.providedIn||null,factory:a.factory,value:void 0}},Dc=function(a){return{providers:a.providers||[],imports:a.imports||[]}},Fea=function(a){var b=Eea;return a.hasOwnProperty(b)&&a[b]||null},Gea=function(a){var b;return(a=(b=a==null?void 0:a[Eea])!=null?b:null)?a:null},Iea=function(a){return a&&a.hasOwnProperty(Hea)?a[Hea]:
null},Jea=function(a,b){return Object.is(a,b)},Fc=function(a){var b=Ec;Ec=a;return b},Hc=function(a){if(Kea)throw Error("la");if(Ec!==null){Ec.consumerOnSignalRead(a);var b=Ec.producersTail;if(b===void 0||b.producer!==a){var c=void 0,d=Ec.recomputing;if(d&&(c=b!==void 0?b.nextProducer:Ec.producers,c!==void 0&&c.producer===a)){Ec.producersTail=c;c.lastReadVersion=a.version;return}var e=a.consumersTail,f;if(!(f=e===void 0||e.consumer!==Ec)){if(d){a:{f=Ec;d=f.producersTail;if(d!==void 0){f=f.producers;
do{if(f===e){d=!0;break a}if(f===d)break;f=f.nextProducer}while(f!==void 0)}d=!1}d=!d}f=d}f&&(d=Gc(Ec),c={producer:a,consumer:Ec,nextProducer:c,prevConsumer:e,lastReadVersion:a.version,nextConsumer:void 0},Ec.producersTail=c,b!==void 0?b.nextProducer=c:Ec.producers=c,d&&Lea(a,c))}}},Oea=function(a){if(!Gc(a)||a.dirty)if(a.dirty||a.lastCleanEpoch!==Mea)(a.producerMustRecompute(a)||Nea(a))&&a.producerRecomputeValue(a),a.dirty=!1,a.lastCleanEpoch=Mea},Pea=function(a){if(a.consumers!==void 0){var b=Kea;
Kea=!0;try{for(var c=a.consumers;c!==void 0;c=c.nextConsumer){var d=c.consumer;d.dirty||(a=void 0,d.dirty=!0,Pea(d),(a=d.consumerMarkedDirty)==null||a.call(d,d))}}finally{Kea=b}}},Qea=function(){var a;return((a=Ec)==null?void 0:a.consumerAllowSignalWrites)!==!1},Ic=function(a){a&&(a.producersTail=void 0,a.recomputing=!0);return Fc(a)},Sea=function(a,b){Fc(b);if(a){a.recomputing=!1;b=a.producersTail;var c=b!==void 0?b.nextProducer:a.producers;if(c!==void 0){if(Gc(a)){do c=Rea(c);while(c!==void 0)}b!==
void 0?b.nextProducer=void 0:a.producers=void 0}}},Nea=function(a){for(a=a.producers;a!==void 0;a=a.nextProducer){var b=a.producer,c=a.lastReadVersion;if(c!==b.version)return!0;Oea(b);if(c!==b.version)return!0}return!1},Tea=function(a){if(Gc(a))for(var b=a.producers;b!==void 0;)b=Rea(b);a.producers=void 0;a.producersTail=void 0;a.consumers=void 0;a.consumersTail=void 0},Lea=function(a,b){var c=a.consumersTail,d=Gc(a);c!==void 0?(b.nextConsumer=c.nextConsumer,c.nextConsumer=b):(b.nextConsumer=void 0,
a.consumers=b);b.prevConsumer=c;a.consumersTail=b;if(!d)for(a=a.producers;a!==void 0;a=a.nextProducer)Lea(a.producer,a)},Rea=function(a){var b=a.producer,c=a.nextProducer,d=a.nextConsumer,e=a.prevConsumer;a.nextConsumer=void 0;a.prevConsumer=void 0;d!==void 0?d.prevConsumer=e:b.consumersTail=e;if(e!==void 0)e.nextConsumer=d;else if(b.consumers=d,!Gc(b))for(a=b.producers;a!==void 0;)a=Rea(a);return c},Gc=function(a){return a.consumerIsAlwaysLive||a.consumers!==void 0},Vea=function(a,b){var c=Object.create(Uea);
c.computation=a;b!==void 0&&(c.equal=b);a=function(){Oea(c);Hc(c);if(c.value===Jc)throw c.error;return c.value};a[Kc]=c;return a},Yea=function(a,b){var c=Object.create(Wea);c.value=a;b!==void 0&&(c.equal=b);a=function(){Hc(c);return c.value};a[Kc]=c;return[a,function(d){return Lc(c,d)},function(d){Qea()||Xea();Lc(c,d(c.value))}]},Lc=function(a,b){Qea()||Xea();a.equal(a.value,b)||(a.value=b,a.version++,Mea++,Pea(a))},$ea=function(a,b,c){var d=Object.create(Zea);d.source=a;d.computation=b;c!=void 0&&
(d.equal=c);a=function(){Oea(d);Hc(d);if(d.value===Jc)throw d.error;return d.value};a[Kc]=d;return a},Mc=function(a){var b=Fc(null);try{return a()}finally{Fc(b)}},Nc=function(a){if(typeof a==="string")return a;if(Array.isArray(a))return"["+a.map(Nc).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},afa=function(a,b){return a?b?a+" "+b:a:b||""},bfa=function(a,b){return"NG0"+Math.abs(a)+
(b?": "+b:"")},Oc=function(a){return typeof a==="string"?a:a==null?"":String(a)},cfa=function(){throw new Pc(-201,!1);},ffa=function(a){var b=new Pc(a,"");b[dfa]=a;b[efa]="";return b},Qc=function(a){var b=gfa;gfa=a;return b},hfa=function(a,b,c){if((a=Fea(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;cfa()},Rc=function(a){var b=ifa;ifa=a;return b},kfa=function(a){return a===jfa||(a==null?void 0:a.name)==="\u0275NotFound"},Tc=
function(a){a.__forward_ref__=Tc;a.toString=function(){return Nc(this())};return a},Vc=function(a){return lfa(a)?a():a},lfa=function(a){return typeof a==="function"&&a.hasOwnProperty(mfa)&&a.__forward_ref__===Tc},nfa=function(a,b){b=b===void 0?0:b;var c=ifa;if(c===void 0)throw new Pc(-203,!1);if(c===null)return hfa(a,void 0,b);b={optional:!!(b&8),host:!!(b&1),self:!!(b&2),skipSelf:!!(b&4)};a=c.retrieve(a,b);if(kfa(a)){if(b.optional)return null;throw a;}return a},Wc=function(a,b){b=b===void 0?0:b;
return(gfa||nfa)(Vc(a),b)},q=function(a,b){return Wc(a,ofa(b))},ofa=function(a){return typeof a==="undefined"||typeof a==="number"?a:0|(a.optional&&8)|(a.host&&1)|(a.self&&2)|(a.skipSelf&&4)},pfa=function(a){for(var b=[],c=0;c<a.length;c++){var d=Vc(a[c]);if(Array.isArray(d)){if(d.length===0)throw new Pc(900,!1);for(var e=void 0,f=0,g=0;g<d.length;g++){var k=d[g],m=k.__NG_DI_FLAG__;typeof m==="number"?m===-1?e=k.token:f|=m:e=k}b.push(Wc(e,f))}else b.push(Wc(d))}return b},qfa=function(a,b){a.__NG_DI_FLAG__=
b;a.prototype.__NG_DI_FLAG__=b;return a},sfa=function(a){return a[rfa]||null},Xc=function(a){return a.hasOwnProperty(tfa)?a[tfa]:null},ufa=function(a,b){a.forEach(function(c){return Array.isArray(c)?ufa(c,b):b(c)})},vfa=function(a,b){return b>=a.length-1?a.pop():a.splice(b,1)[0]},xfa=function(a,b,c){var d=wfa(a,b);if(d>=0)a[d|1]=c;else{d=~d;var e=a.length;if(e==d)a.push(b,c);else if(e===1)a.push(c,a[0]),a[0]=b;else{e--;for(a.push(a[e-1],a[e]);e>d;)a[e]=a[e-2],e--;a[d]=b;a[d+1]=c}}},yfa=function(a,
b){b=wfa(a,b);if(b>=0)return a[b|1]},wfa=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)},Afa=function(){return{"\u0275providers":zfa(!0,Yc.apply(0,arguments)),"\u0275fromNgModule":!0}},zfa=function(a){var b=[],c=new Set,d,e=function(f){b.push(f)};ufa(Yc.apply(1,arguments),function(f){Bfa(f,e,[],c)&&(d||(d=[]),d.push(f))});d!==void 0&&Cfa(d,e);return b},Cfa=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;Dfa(c.providers$jscomp$2,function(f){return function(g){b(g,f.ngModule)}}(c))}},Bfa=function(a,b,c,d){a=Vc(a);if(!a)return!1;var e=null,f=Iea(a),g=!f&&(a[Zc]||null);if(f||g){if(g&&!g.standalone)return!1;e=a}else{var k=a.ngModule;if(f=Iea(k))e=k;else return!1}k=d.has(e);if(g){if(k)return!1;d.add(e);if(g.dependencies)for(f=typeof g.dependencies==="function"?g.dependencies():g.dependencies,f=l(f),k=f.next();!k.done;k=
f.next())Bfa(k.value,b,c,d)}else if(f){if(f.imports!=null&&!k){d.add(e);var m;ufa(f.imports,function(w){Bfa(w,b,c,d)&&(m||(m=[]),m.push(w))});m!==void 0&&Cfa(m,b)}k||(g=Xc(e)||function(){return new e},b({provide:e,useFactory:g,deps:$c},e),b({provide:Efa,useValue:e,multi:!0},e),b({provide:Ffa,useValue:function(){return Wc(e)},multi:!0},e));f=f.providers;if(f!=null&&!k){var r=a;Dfa(f,function(w){b(w,r)})}}else return!1;return e!==a&&a.providers!==void 0},Dfa=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)?Dfa(c,b):b(c)},Hfa=function(a){return a!==null&&typeof a=="object"&&Gfa in a},ad=function(a){return typeof a==="function"},Kfa=function(){Ifa===void 0&&(Ifa=new Jfa);return Ifa},Mfa=function(a){var b=Fea(a);b=b!==null?b.factory:Xc(a);if(b!==null)return b;if(a instanceof bd)throw new Pc(204,!1);if(a instanceof Function)return Lfa(a);throw new Pc(204,!1);},Lfa=function(a){if(a.length>0)throw new Pc(204,!1);var b=Gea(a);
return b!==null?function(){return b.factory(a)}:function(){return new a}},Pfa=function(a){if(Hfa(a))return cd(void 0,a.useValue);a=Nfa(a);return cd(a,Ofa)},Nfa=function(a){var b=void 0;if(ad(a))return b=Vc(a),Xc(b)||Mfa(b);if(Hfa(a))b=function(){return Vc(a.useValue)};else if(a&&a.useFactory)b=function(){return a.useFactory.apply(a,n(pfa(a.deps||[])))};else if(a&&a.useExisting)b=function(d,e){return Wc(Vc(a.useExisting),e!==void 0&&e&8?8:void 0)};else{var c=Vc(a&&(a.useClass||a.provide));if(a.deps)b=
function(){return new (Function.prototype.bind.apply(c,[null].concat(n(pfa(a.deps)))))};else return Xc(c)||Mfa(c)}return b},Qfa=function(a){if(a.destroyed)throw new Pc(205,!1);},cd=function(a,b,c){return{factory:a,value:b,multi:(c===void 0?0:c)?[]:void 0}},Rfa=function(a,b){a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Array.isArray(c)?Rfa(c,b):c&&c&&c.\u0275providers?Rfa(c.\u0275providers,b):b(c)},ed=function(a,b){a instanceof dd?Qfa(a):a=new Sfa(a);a=Rc(a);var c=Qc();try{return b()}finally{Rc(a),
Qc(c)}},fd=function(a){return Array.isArray(a)&&typeof a[1]==="object"},gd=function(a){return Array.isArray(a)&&a[1]===!0},Vfa=function(a){a.type.prototype.ngOnChanges&&(a.setInput=Tfa);return Ufa},Ufa=function(){var a=this.__ngSimpleChanges__||null,b=a==null?void 0:a.current;if(b){var c=a.previous;if(c===hd)a.previous=b;else for(var d in b)c[d]=b[d];a.current=null;this.ngOnChanges(b)}},Tfa=function(a,b,c,d,e){d=this.declaredInputs[d];var f;(f=a.__ngSimpleChanges__||null)||(f=a.__ngSimpleChanges__=
{previous:hd,current:null});var g=f;f=g.current||(g.current={});g=g.previous;var k=g[d];f[d]=new Wfa(k&&k.currentValue,c,g===hd);b!==null?b.applyValueToInputSignal(b,c):a[e]=c},id=function(a){for(;Array.isArray(a);)a=a[0];return a},jd=function(a,b){return id(b[a.index])},Xfa=function(a,b,c,d){c>=a.data.length&&(a.data[c]=null,a.blueprint[c]=null);b[c]=d},kd=function(a,b){a=b[a];return fd(a)?a:a[0]},ld=function(a,b){return b===null||b===void 0?null:a[b]},Yfa=function(a){a[2]&1024||(a[2]|=1024,(a[2]&
128)===128&&md(a))},Zfa=function(a){var b;return!!(a[2]&9216||((b=a[24])==null?0:b.dirty))},$fa=function(a){var b;(b=a[10].changeDetectionScheduler)==null||b.notify(8);a[2]&64&&(a[2]|=1024);Zfa(a)&&md(a)},md=function(a){var b;(b=a[10].changeDetectionScheduler)==null||b.notify(0);for(a=nd(a);a!==null&&!(a[2]&8192);){a[2]|=8192;if((a[2]&128)!==128)break;a=nd(a)}},aga=function(a,b){if((a[2]&256)===256)throw new Pc(911,!1);a[21]===null&&(a[21]=[]);a[21].push(b)},nd=function(a){a=a[3];return gd(a)?a[3]:
a},bga=function(a){var b;return(b=a[7])!=null?b:a[7]=[]},cga=function(a){var b;return(b=a.cleanup)!=null?b:a.cleanup=[]},dga=function(a,b,c,d){b=bga(b);b.push(c);a.firstCreatePass&&cga(a).push(d,b.length-1)},t=function(){return od.lView},qd=function(){return od.tView},u=function(a){od.contextLView=a;return a[8]},v=function(a){od.contextLView=null;return a},rd=function(){for(var a=od.currentTNode;a!==null&&a.type===64;)a=a.parent;return a},ega=function(){var a=od,b=a.currentTNode;return a.isParent?
b:b.parent},td=function(a,b){var c=od;c.currentTNode=a;c.isParent=b},gga=function(a){var b=fga;fga=a;return b},vd=function(){var a=od,b=a.bindingRootIndex;b===-1&&(b=a.bindingRootIndex=a.tView.bindingStartIndex);return b},wd=function(){return od.bindingIndex++},hga=function(a){var b=od,c=b.bindingIndex;b.bindingIndex+=a;return c},iga=function(a){var b=od.currentDirectiveIndex;return b===-1?null:a[b]},kga=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=od=jga();c.currentTNode=b;c.lView=a;return!0},lga=function(a){var b=jga(),c=a[1];od=b;b.currentTNode=c.firstChild;b.lView=a;b.tView=c;b.contextLView=a;b.bindingIndex=c.bindingStartIndex;b.inI18n=!1},jga=function(){var a=od,b=a===null?null:a.child;return b===null?mga(a):b},mga=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},nga=function(){var a=od;od=a.parent;a.currentTNode=null;a.lView=null;return a},oga=function(){var a=nga();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},xd=function(){var a=od;return a.tView.data[a.selectedIndex]},
yd=function(){od.currentNamespace="svg"},zd=function(){od.currentNamespace=null},pga=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,g=d.ngAfterViewInit,k=d.ngAfterViewChecked;d=d.ngOnDestroy;if(e){var m=void 0,r=void 0;((r=(m=a).contentHooks)!=null?r:m.contentHooks=[]).push(-c,e)}f&&(m=e=void 0,((m=(e=a).contentHooks)!=null?m:e.contentHooks=[]).push(c,f),m=e=void 0,((m=(e=a).contentCheckHooks)!=null?
m:e.contentCheckHooks=[]).push(c,f));g&&(e=f=void 0,((e=(f=a).viewHooks)!=null?e:f.viewHooks=[]).push(-c,g));k&&(f=g=void 0,((f=(g=a).viewHooks)!=null?f:g.viewHooks=[]).push(c,k),f=g=void 0,((f=(g=a).viewCheckHooks)!=null?f:g.viewCheckHooks=[]).push(c,k));d!=null&&(g=k=void 0,((g=(k=a).destroyHooks)!=null?g:k.destroyHooks=[]).push(c,d))}},rga=function(a,b,c,d){(a[2]&3)===c&&qga(a,b,c,d)},sga=function(a,b){var c=a[2];(c&3)===b&&(a[2]=(c&16383)+1)},qga=function(a,b,c,d){for(var e=d!=null?d:-1,f=b.length-
1,g=0,k=d!==void 0?a[17]&65535:0;k<f;k++)if(typeof b[k+1]==="number"){if(g=b[k],d!=null&&g>=d)break}else{b[k]<0&&(a[17]+=65536);if(g<e||e==-1){var m=b[k]<0,r=b[k+1],w=a[m?-b[k]:b[k]];m?a[2]>>14<a[17]>>16&&(a[2]&3)===c&&(a[2]+=16384,tga(w,r)):tga(w,r);a[17]=(a[17]&4294901760)+k+2}k++}},tga=function(a,b){Ad(4,a,b);var c=Fc(null);try{b.call(a)}finally{Fc(c),Ad(5,a,b)}},uga=function(a){return a===3||a===4||a===6},Bd=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?vga(a,c,e,b[++d]):vga(a,c,e,null))}return a},vga=function(a,b,c,d){var e=0,f=a.length;if(b===-1)f=-1;else for(;e<a.length;){var g=a[e++];if(typeof g==="number")if(g===b){f=-1;break}else if(g>b){f=e-1;break}}for(;e<a.length;){g=a[e];if(typeof g==="number")break;else if(g===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)},wga=function(a,b){for(a>>=
16;a>0;)b=b[14],a--;return b},xga=function(a){return{toString:a}.toString()},zga=function(a){var b=yga;yga=a;return b},Cga=function(a,b,c){var d;typeof c==="string"?d=c.charCodeAt(0)||0:c.hasOwnProperty(Aga)&&(d=c[Aga]);d==null&&(d=c[Aga]=Bga++);c=d&255;b.data[a+(c>>5)]|=1<<c},Gga=function(a,b){var c=Dga(a,b);if(c!==-1)return c;c=b[1];c.firstCreatePass&&(a.injectorIndex=b.length,Ega(c.data,a),Ega(b,null),Ega(c.blueprint,null));c=Fga(a,b);a=a.injectorIndex;if(c!==-1)for(var d=c&32767,e=wga(c,b),f=
e[1].data,g=0;g<8;g++)b[a+g]=e[d+g]|f[d+g];b[a+8]=c;return a},Ega=function(a,b){a.push(0,0,0,0,0,0,0,0,b)},Dga=function(a,b){return a.injectorIndex===-1||a.parent&&a.parent.injectorIndex===a.injectorIndex||b[a.injectorIndex+8]===null?-1:a.injectorIndex},Fga=function(a,b){if(a.parent&&a.parent.injectorIndex!==-1)return a.parent.injectorIndex;a=0;for(var c=b;c!==null;){b=Hga(c);if(b===null)break;a++;c=c[14];if(b.injectorIndex!==-1)return b.injectorIndex|a<<16}return-1},Iga=function(a){var b=rd();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(uga(e))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},Jga=function(a,b,c,d){c&8&&d===void 0&&(d=null);if((c&3)===0){a=a[9];var e=Qc();try{return a?a.get(b,d,c&8):hfa(b,d,c&8)}finally{Qc(e)}}c&8||d!==void 0?b=d:(cfa(),b=void 0);return b},Lga=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 g=Cd,k=a,m=b;k!==null&&m!==null&&m[2]&2048&&(m[2]&512)===0;){var r=Kga(k,m,c,f|2);if(r!==Cd){f=r;break a}k=k.parent;if(!k){if(k=m[20])if(k=k.get(c,Cd,f),k!==Cd){f=k;break a}k=Hga(m);m=m[14]}}f=g}if(f!==Cd)return f}a=Kga(a,b,c,d);if(a!==Cd)return a}return Jga(b,c,d,e)},Kga=function(a,b,c,d){var e=Cd;if(typeof c==="string")var f=c.charCodeAt(0)||0;else f=c.hasOwnProperty(Aga)?c[Aga]:void 0,f=typeof f==="number"?f>=0?f&255:Mga:f;if(typeof f==="function"){if(!kga(b,a,d))return d&
1?d&8||e!==void 0?b=e:(cfa(),b=void 0):b=Jga(b,c,d,e),b;try{var g=f(d);if(g!=null||d&8)return g;cfa()}finally{nga()}}else if(typeof f==="number"){g=null;var k=Dga(a,b),m=d&1?b[15][5]:null;if(k===-1||d&4){var r=k===-1?Fga(a,b):b[k+8];r===-1||d&2?k=-1:(g=b[1],k=r&32767,b=wga(r,b))}for(;k!==-1;){a=b[1];if(a.data[k+(f>>5)]&1<<f){r=b[1];var w=r.data[k+8],x=Nga(w,r,c,g==null?w.componentOffset>-1&&yga:g!=r&&(w.type&3)!==0,d&1&&m===w);r=x!==null?Oga(b,r,x,w,d):Cd;if(r!==Cd)return r}r=b[k+8];r!==-1&&!(d&2||
d&1&&b[1].data[k+8]===m)&&b[k+(f>>5)]&1<<f?(g=a,k=r&32767,b=wga(r,b)):k=-1}}return e},Nga=function(a,b,c,d,e){var f=a.providerIndexes,g=b.data,k=f&1048575;b=a.directiveStart;a=a.directiveEnd;var m=f>>20;f=e?k+m:a;for(d=d?k:k+m;d<f;d++)if(k=g[d],d<b&&c===k||d>=b&&k.type===c)return d;return e&&(e=g[b])&&e.template&&e.type===c?b:null},Oga=function(a,b,c,d,e){var f=a[c],g=b.data;if(f instanceof Pga){var k=f;if(k.resolving)throw ffa(-200);var m=zga(k.canSeeViewProviders);k.resolving=!0;var r=k.injectImpl?
Qc(k.injectImpl):null;kga(a,d,0);try{if(f=a[c]=k.factory(void 0,e,g,a,d),b.firstCreatePass&&c>=d.directiveStart){var w=g[c],x=w.type.prototype,D=x.ngOnInit,H=x.ngDoCheck;if(x.ngOnChanges){var J=Vfa(w),O;((O=b.preOrderHooks)!=null?O:b.preOrderHooks=[]).push(c,J);var R;((R=b.preOrderCheckHooks)!=null?R:b.preOrderCheckHooks=[]).push(c,J)}if(D){var V;((V=b.preOrderHooks)!=null?V:b.preOrderHooks=[]).push(-c,D)}if(H){var ba;((ba=b.preOrderHooks)!=null?ba:b.preOrderHooks=[]).push(c,H);var pa;((pa=b.preOrderCheckHooks)!=
null?pa:b.preOrderCheckHooks=[]).push(c,H)}}}finally{r!==null&&Qc(r),zga(m),k.resolving=!1,nga()}}return f},Mga=function(){return new Dd(rd(),t())},Ed=function(a){return xga(function(){var b=a.prototype.constructor;b=b[tfa]||Qga(b);for(var c=Object.prototype,d=Object.getPrototypeOf(a.prototype).constructor;d&&d!==c;){var e=d[tfa]||Qga(d);if(e&&e!==b)return e;d=Object.getPrototypeOf(d)}return function(f){return new f}})},Qga=function(a){return lfa(a)?function(){var b=Qga(Vc(a));return b&&b()}:Xc(a)},
Hga=function(a){var b=a[1],c=b.type;return c===2?b.declTNode:c===1?a[5]:null},Rga=function(a){return function(){var b=Yc.apply(0,arguments);if(a){b=a.apply(null,n(b));for(var c in b)this[c]=b[c]}}},Sga=function(a,b){return xga(function(){function c(){function e(k,m,r){for(m=k.hasOwnProperty("__parameters__")?k.__parameters__:Object.defineProperty(k,"__parameters__",{value:[]}).__parameters__;m.length<=r;)m.push(null);(m[r]=m[r]||[]).push(g);return k}var f=Yc.apply(0,arguments);if(this instanceof c)return d.apply(this,
f),this;var g=new (Function.prototype.bind.apply(c,[null].concat(n(f))));e.annotation=g;return e}var d=Rga(b);c.prototype.ngMetadataName=a;return c})},Uga=function(a,b,c,d){a=Tga(a,b===void 0?null:b,c===void 0?null:c,d);a.resolveInjectorInitializers();return a},Tga=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)||$c,Afa(a)];d=d||(typeof a==="object"?void 0:Nc(a));return new dd(c,b||Kfa(),d||null,e)},Vga=function(a){return a.type===4&&a.value!=="ng-template"},
Wga=function(a,b,c){var d=4,e=a.attrs,f;if(e!==null)a:{for(f=0;f<e.length;f++)if(uga(e[f]))break a;f=e.length}else f=0;for(var g=!1,k=0;k<b.length;k++){var m=b[k];if(typeof m==="number"){if(!g&&(d&1)!==0&&(m&1)!==0)return!1;g&&(m&1)===0||(g=!1,d=m|d&1)}else if(!g)if(d&4){if(d=2|d&1,m!==""&&m!==(a.type!==4||c?a.value:"ng-template")||m===""&&b.length===1){if((d&1)===0)return!1;g=!0}}else if(d&8){var r;if(!(r=e===null)){a:{r=void 0;var w=a,x=0;if(c)for(;x<e.length&&typeof e[x]==="string";x+=2){if(w=
e[x]==="class"){b:{w=e[x+1].toLowerCase();for(var D=0,H=w.length;;){D=w.indexOf(m,D);if(D===-1){w=D;break b}if(D===0||w.charCodeAt(D-1)<=32){var J=m.length;if(D+J===H||w.charCodeAt(D+J)<=32){w=D;break b}}D+=1}w=void 0}w=w!==-1}if(w){m=!0;break a}}else if(Vga(w)){m=!1;break a}x=e.indexOf(1,x);if(x>-1)for(;++x<e.length&&typeof(r=e[x])==="string";)if(r.toLowerCase()===m){m=!0;break a}m=!1}r=!m}if(r){if((d&1)===0)return!1;g=!0}}else{r=b[++k];a:if(e===null)m=-1;else if(x=0,c||!Vga(a)){for(w=!1;x<e.length;){H=
e[x];if(H===m){m=x;break a}if(H===3||H===6)w=!0;else if(H===1||H===2){for(H=e[++x];typeof H==="string";)H=e[++x];continue}else if(H===4)break;else if(H===0){x+=4;continue}x+=w?1:2}m=-1}else b:{x=e.indexOf(4);if(x>-1)for(x++;x<e.length;){w=e[x];if(typeof w==="number")break;if(w===m){m=x;break b}x++}m=-1}if(m===-1){if((d&1)===0)return!1;g=!0}else if(r!==""&&(m=m>f?"":e[m+1].toLowerCase(),d&2&&r!==m)){if((d&1)===0)return!1;g=!0}}}return(d&1)===0||g},Xga=function(a,b,c){c=c===void 0?!1:c;for(var d=0;d<
b.length;d++)if(Wga(a,b[d],c))return!0;return!1},Yga=function(a){for(var b=a[0],c=1,d=2,e="",f=!1;c<a.length;){var g=a[c];if(typeof g==="string")if(d&2){var k=a[++c];e+="["+g+(k.length>0?'="'+k+'"':"")+"]"}else d&8?e+="."+g:d&4&&(e+=" "+g);else e!==""&&(g&1)!==0&&(b+=f?":not("+e.trim()+")":e,e=""),d=g,f=f||(d&1)!==0;c++}e!==""&&(b+=f?":not("+e.trim()+")":e);return b},$ga=function(){if(Zga!==void 0)return Zga;if(typeof document!=="undefined")return document;throw new Pc(210,!1);},Fd=function(a,b){fd(b)?
(a.__ngContext__=b[19],aha.set(b[19],b)):a.__ngContext__=b},bha=function(a){for(;a!==null&&!gd(a);)a=a[4];return a},Hd=function(a,b){return new Gd(jd(a,b))},cha=function(a){return a instanceof Gd?a.nativeElement:a},Id=function(a){return a.ownerDocument.defaultView},dha=function(a){return a.ownerDocument},gha=function(a){return a.replace(eha,function(b){return b.replace(fha,"\u200b$1\u200b")})},hha=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 g=
d[f];if(typeof g==="number"){if(g!==0)break;f++;g=d[f++];var k=d[f++],m=d[f++];a.setAttribute(b,k,m,g)}else k=d[++f],g.charCodeAt(0)===64?a.setProperty(b,g,k):a.setAttribute(b,g,k),f++}e!==null&&(e===""?a.removeAttribute(b,"class"):a.setAttribute(b,"class",e));c!==null&&a.setAttribute(b,"style",c)},jha=function(a){return iha(a)?Array.isArray(a)||!(a instanceof Map)&&Symbol.iterator in a:!1},kha=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)},iha=function(a){return a!==null&&(typeof a==="function"||typeof a==="object")},lha=function(a,b,c){return a[b]=c},Kd=function(a,b,c){if(c===Jd||Object.is(a[b],c))return!1;a[b]=c;return!0},Ld=function(a,b,c,d){c=Kd(a,b,c);return Kd(a,b+1,d)||c},mha=function(a,b){var c=fga?64:1088,d;for((d=a[10].changeDetectionScheduler)==null||d.notify(b);a;){a[2]|=c;b=nd(a);if((a[2]&512)!==0&&!b)break;a=b}},nha=function(){return new Md(t())},oha=function(a,b){a&&(b=a.indexOf(b),0<=b&&a.splice(b,
1))},Nd=function(a){return typeof a==="function"},pha=function(a){return a instanceof Od||a&&"closed"in a&&Nd(a.remove)&&Nd(a.add)&&Nd(a.unsubscribe)},Pd=function(){},rha=function(a){qha(function(){throw a;})},Qd=function(a){return a},Rd=function(){return sha(Yc.apply(0,arguments))},sha=function(a){return a.length===0?Qd:a.length===1?a[0]:function(b){return a.reduce(function(c,d){return d(c)},b)}},tha=function(a){var b;return(b=a!=null?a:void 0)!=null?b:Promise},uha=function(a,b){return new Sd(function(c){var d=
0;return b.schedule(function(){d===a.length?c.complete():(c.next(a[d++]),c.closed||this.schedule())})})},vha=function(a,b){if(!a)throw Error("sa");return new Sd(function(c){var d=new Od;d.add(b.schedule(function(){var e=a[Symbol.asyncIterator]();d.add(b.schedule(function(){var f=this;e.next().then(function(g){g.done?c.complete():(c.next(g.value),f.schedule())})}))}));return d})},wha=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},
yha=function(a,b){return new Sd(function(c){var d;c.add(b.schedule(function(){d=a[xha]();wha(c,b,function(){var e=d.next(),f=e.value;e.done?c.complete():(c.next(f),this.schedule())})}));return function(){var e;return Nd((e=d)==null?void 0:e.return)&&d.return()}})},Aha=function(a,b){return new Sd(function(c){var d=new Od;d.add(b.schedule(function(){var e=a[zha]();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})},Bha=function(a,b){return new Sd(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)}))})})})},Cha=function(a){return new TypeError("ta`"+(a!==null&&typeof a==="object"?"an invalid object":"'"+a+"'"))},Eha=function(a,b){if(a!=null){if(Nd(a[zha]))return Aha(a,
b);if(Dha(a))return uha(a,b);if(Nd(a==null?void 0:a.then))return Bha(a,b);if(Symbol.asyncIterator&&Nd(a==null?void 0:a[Symbol.asyncIterator]))return vha(a,b);if(Nd(a==null?void 0:a[xha]))return yha(a,b)}throw Cha(a);},Ud=function(a,b){return b?Eha(a,b):Td(a)},Td=function(a){if(a instanceof Sd)return a;if(a!=null){if(Nd(a[zha]))return Fha(a);if(Dha(a))return Gha(a);if(Nd(a==null?void 0:a.then))return Hha(a);if(Symbol.asyncIterator&&Nd(a==null?void 0:a[Symbol.asyncIterator]))return Iha(a);if(Nd(a==
null?void 0:a[xha]))return Jha(a)}throw Cha(a);},Fha=function(a){return new Sd(function(b){var c=a[zha]();if(Nd(c.subscribe))return c.subscribe(b);throw new TypeError("ua");})},Gha=function(a){return new Sd(function(b){for(var c=0;c<a.length&&!b.closed;c++)b.next(a[c]);b.complete()})},Hha=function(a){return new Sd(function(b){a.then(function(c){b.closed||(b.next(c),b.complete())},function(c){return b.error(c)}).then(null,rha)})},Jha=function(a){return new Sd(function(b){for(var c=a[xha]();!b.closed;){var d=
c.next(),e=d.value;d.done?b.complete():b.next(e)}return function(){return Nd(c==null?void 0:c.return)&&c.return()}})},Iha=function(a){return new Sd(function(b){Kha(a,b).catch(function(c){return b.error(c)})})},Kha=function(a,b){var c,d,e,f,g,k;return y(function(m){switch(m.nextAddress){case 1:Vd(m,2,3);var r=a[Symbol.asyncIterator];f=r!==void 0?r.call(a):new Lha(l(a));case 5:return z(m,f.next(),8);case 8:d=m.yieldResult;if(d.done){m.jumpTo(3);break}g=d.value;b.next(g);m.jumpTo(5);break;case 3:Wd(m);
Xd(m,9);if(!d||d.done||!(e=f.return)){m.jumpTo(9);break}return z(m,e.call(f),9);case 9:Wd(m,0,0,1);if(c)throw c.error;Yd(m,10,1);break;case 10:Yd(m,4);break;case 2:k=Zd(m);c={error:k};m.jumpTo(3);break;case 4:b.complete(),$d(m)}})},Mha=function(a,b){return b?uha(a,b):Gha(a)},Nha=function(a){return Nd(a[a.length-1])?a.pop():void 0},ae=function(a){var b=a[a.length-1];return b&&Nd(b.schedule)?a.pop():void 0},be=function(){var a=Yc.apply(0,arguments),b=ae(a);return b?uha(a,b):Mha(a)},ce=function(a){var b=
Nd(a)?a:function(){return a};return new Sd(function(c){return c.error(b())})},Oha=function(a,b){var c=a.kind,d=a.value;a=a.error;if(typeof c!=="string")throw new TypeError("va");var e,f,g;c==="N"?(e=b.next)==null||e.call(b,d):c==="E"?(f=b.error)==null||f.call(b,a):(g=b.complete)==null||g.call(b)},ee=function(a){return new Promise(function(b,c){var d=new de({next:function(e){b(e);d.unsubscribe()},error:c,complete:function(){c(new Pha)}});a.subscribe(d)})},fe=function(a){return function(b){if(Nd(b==
null?void 0:b.lift))return b.lift(function(c){try{return a(c,this)}catch(d){this.error(d)}});throw new TypeError("wa");}},Qha=function(){return fe(function(a,b){var c=null;a._refCount++;var d=new ge(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())})},Sha=function(){function a(d,e){var f={sync:!1,subscription:null};f.subscription=b.schedule(function(g){e();
var k=g.subscription;g.subscription=null;k?(k.unsubscribe(),d.remove(k)):g.sync=!0},c,f);f.sync?f.subscription.unsubscribe():d.add(f.subscription)}var b=Rha;var c=c===void 0?0:c;return fe(function(d,e){d.subscribe(new ge(e,function(f){return a(e,function(){return e.next(f)})},function(f){return a(e,function(){return e.error(f)})},function(){return a(e,function(){return e.complete()})}))})},A=function(a){return fe(function(b,c){var d=0;b.subscribe(new ge(c,function(e){c.next(a.call(void 0,e,d++))}))})},
Uha=function(a){return A(function(b){return Tha(b)?a.apply(null,n(b)):a(b)})},Zha=function(a){if(a.length===1){var b=a[0];if(Vha(b))return{args:b,keys:null};if(b&&typeof b==="object"&&Wha(b)===Xha)return a=Yha(b),{args:a.map(function(c){return b[c]}),keys:a}}return{args:a,keys:null}},he=function(){var a=Yc.apply(0,arguments),b=ae(a),c=Nha(a);a=Zha(a);var d=a.args,e=a.keys;if(d.length===0)return Ud([],b);b=new Sd($ha(d,b,e?function(f){for(var g={},k=0;k<f.length;k++)g[e[k]]=f[k];return g}:Qd));return c?
b.pipe(Uha(c)):b},$ha=function(a,b,c){c=c===void 0?Qd:c;return function(d){aia(b,function(){for(var e=a.length,f=Array(e),g=e,k=a.map(function(){return!1}),m=!0,r={i$jscomp$210:0};r.i$jscomp$210<e;r={i$jscomp$210:r.i$jscomp$210},r.i$jscomp$210++)aia(b,function(w){return function(){Ud(a[w.i$jscomp$210],b).subscribe(new bia(d,function(x){f[w.i$jscomp$210]=x;m&&(k[w.i$jscomp$210]=!0,m=!k.every(Qd));m||d.next(c(f.slice()))},function(){return--g===0}))}}(r),d)},d)}},aia=function(a,b,c){a?c.add(a.schedule(b)):
b()},cia=function(a,b,c,d){var e=[],f=0,g=0,k=!1,m=function(r){f++;Td(c(r,g++)).subscribe(new ge(b,function(w){b.next(w)},void 0,function(){f--;for(var w={};e.length&&f<d;w={bufferedValue:void 0})w.bufferedValue=e.shift(),m(w.bufferedValue);!k||e.length||f||b.complete()}))};a.subscribe(new ge(b,function(r){return f<d?m(r):e.push(r)},void 0,function(){k=!0;!k||e.length||f||b.complete()}));return function(){e=null}},ie=function(a,b,c){c=c===void 0?Infinity:c;if(Nd(b))return ie(function(d,e){return A(function(f,
g){return b(d,f,e,g)})(Td(a(d,e)))},c);typeof b==="number"&&(c=b);return fe(function(d,e){return cia(d,e,a,c)})},je=function(a){a=a===void 0?Infinity:a;return ie(Qd,a)},ke=function(){var a=Yc.apply(0,arguments);return je(1)(Mha(a,ae(a)))},le=function(a){return new Sd(function(b){Td(a()).subscribe(b)})},me=function(){var a=Yc.apply(0,arguments),b=Nha(a),c=Zha(a);a=c.args;c=c.keys;return b?dia(a,c).pipe(A(function(d){return b.apply(null,n(d))})):dia(a,c)},dia=function(a,b){return new Sd(function(c){var d=
a.length;if(d===0)c.complete();else for(var e=Array(d),f=0,g=0,k={sourceIndex:0};k.sourceIndex<d;k={hasValue$jscomp$2:void 0,sourceIndex:k.sourceIndex},k.sourceIndex++){var m=Td(a[k.sourceIndex]);k.hasValue$jscomp$2=!1;c.add(m.subscribe({next:function(r){return function(w){r.hasValue$jscomp$2||(r.hasValue$jscomp$2=!0,g++);e[r.sourceIndex]=w}}(k),error:function(r){return c.error(r)},complete:function(r){return function(){f++;f!==d&&r.hasValue$jscomp$2||(g===d&&c.next(b?b.reduce(function(w,x,D){return w[x]=
e[D],w},{}):e),c.complete())}}(k)}))}})},oe=function(a,b,c){if(Nd(c)){var d=c;c=void 0}if(d)return oe(a,b,c).pipe(Uha(d));d=l(Nd(a.addEventListener)&&Nd(a.removeEventListener)?eia.map(function(g){return function(k){return a[g](b,k,c)}}):Nd(a.addListener)&&Nd(a.removeListener)?fia.map(gia(a,b)):Nd(a.on)&&Nd(a.off)?hia.map(gia(a,b)):[]);var e=d.next().value,f=d.next().value;return!e&&Dha(a)?ie(function(g){return oe(g,b,c)})(Mha(a)):new Sd(function(g){if(!e)throw new TypeError("xa");var k=function(){var m=
Yc.apply(0,arguments);return g.next(1<m.length?m:m[0])};e(k);return function(){return f(k)}})},gia=function(a,b){return function(c){return function(d){return a[c](b,d)}}},iia=function(a,b){return new Sd(function(c){var d=function(){var f=Yc.apply(0,arguments);return c.next(f.length===1?f[0]:f)},e=a(d);return Nd(b)?function(){return b(d,e)}:void 0})},jia=function(a,b,c){return le(function(){return a()?b:c})},qe=function(a,b,c){a=a===void 0?0:a;c=c===void 0?pe:c;var d=-1;b!=null&&(b&&Nd(b.schedule)?
c=b:d=b);return new Sd(function(e){var f=a instanceof Date&&!isNaN(a)?+a-c.now():a;f<0&&(f=0);var g=0;return c.schedule(function(){e.closed||(e.next(g++),0<=d?this.schedule(void 0,d):e.complete())},f)})},kia=function(a,b){a=a===void 0?0:a;b=b===void 0?pe:b;a<0&&(a=0);return qe(a,a,b)},se=function(){var a=Yc.apply(0,arguments),b=ae(a);var c=typeof a[a.length-1]==="number"?a.pop():Infinity;return a.length?a.length===1?Td(a[0]):je(c)(Mha(a,b)):re},te=function(a){return fe(function(b,c){var d=0;b.subscribe(new ge(c,
function(e){return a.call(void 0,e,d++)&&c.next(e)}))})},nia=function(){var a=Yc.apply(0,arguments);a=a.length===1&&lia(a[0])?a[0]:a;return a.length===1?Td(a[0]):new Sd(mia(a))},mia=function(a){return function(b){for(var c=[],d={i$jscomp$213:0};c&&!b.closed&&d.i$jscomp$213<a.length;d={i$jscomp$213:d.i$jscomp$213},d.i$jscomp$213++)c.push(Td(a[d.i$jscomp$213]).subscribe(new ge(b,function(e){return function(f){if(c){for(var g=0;g<c.length;g++)g!==e.i$jscomp$213&&c[g].unsubscribe();c=null}b.next(f)}}(d))))}},
oia=function(a,b){return new Sd(function(c){var d=a(),e=b(d);(e?Td(e):re).subscribe(c);return function(){d&&d.unsubscribe()}})},ue=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?pia:a.with,e=a.scheduler===void 0?pe:a.scheduler,f=a.meta===void 0?null:a.meta;if(b==null&&c==null)throw new TypeError("za");return fe(function(g,k){var m,r=null,w=0,x=function(H){m=wha(k,e,function(){D.unsubscribe();Td(d({meta:f,lastValue:r,seen:w})).subscribe(k)},
H)};var D=g.subscribe(new ge(k,function(H){var J;(J=m)==null||J.unsubscribe();w++;k.next(r=H);c>0&&x(c)},void 0,void 0,function(){var H;if((H=m)==null||!H.closed){var J;(J=m)==null||J.unsubscribe()}r=null}));x(b!=null?typeof b==="number"?b:+b-e.now():c)})},pia=function(a){throw new qia(a);},sia=function(a){return a in ria?(delete ria[a],!0):!1},ve=function(a){return!!a&&(a instanceof Sd||Nd(a.lift)&&Nd(a.subscribe))},tia=function(){},uia=function(a){function b(){a=tia;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()}},via=function(a){queueMicrotask(function(){return a()});return function(){a=tia}},wia=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}}},yia=function(a){function b(){uia(function(){a.callbackScheduled=!1;xia(a);a.isCheckStableRunning=!0;wia(a);a.isCheckStableRunning=!1})}a.isCheckStableRunning||a.callbackScheduled||(a.callbackScheduled=!0,a.scheduleInRootZone?Zone.root.run(function(){b()}):a._outer.run(function(){b()}),xia(a))},Cia=function(a){var b=zia++,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,g,k,m){if(Aia(m,"__ignore_ng_zone__"))return d.invokeTask(f,
g,k,m);try{return Bia(a),d.invokeTask(f,g,k,m)}finally{(a.shouldCoalesceEventChangeDetection&&g.type==="eventTask"||a.shouldCoalesceRunChangeDetection)&&yia(a),a._nesting--,wia(a)}},onInvoke:function(d,e,f,g,k,m,r){try{return Bia(a),d.invoke(f,g,k,m,r)}finally{!a.shouldCoalesceRunChangeDetection||a.callbackScheduled||Aia(m,"__scheduler_tick__")||yia(a),a._nesting--,wia(a)}},onHasTask:function(d,e,f,g){d.hasTask(f,g);e===f&&(g.change=="microTask"?(a._hasPendingMicrotasks=g.microTask,xia(a),wia(a)):
g.change=="macroTask"&&(a.hasPendingMacrotasks=g.macroTask))},onHandleError:function(d,e,f,g){d.handleError(f,g);a.runOutsideAngular(function(){return a.onError.emit(g)});return!1}})},xia=function(a){a.hasPendingMicrotasks=a._hasPendingMicrotasks||(a.shouldCoalesceEventChangeDetection||a.shouldCoalesceRunChangeDetection)&&a.callbackScheduled===!0?!0:!1},Bia=function(a){a._nesting++;a.isStable&&(a.isStable=!1,a.onUnstable.emit(null))},Aia=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},B=function(a){Dia(qd(),t(),od.selectedIndex+(a===void 0?1:a))},Dia=function(a,b,c){(b[2]&3)===3?(a=a.preOrderCheckHooks,a!==null&&qga(b,a,3,c)):(a=a.preOrderHooks,a!==null&&rga(b,a,0,c));od.selectedIndex=c},Eia=function(a,b,c,d){var e=Fc(null);try{var f=l(a.inputs[c]),g=f.next().value,k=f.next().value,m=f.next().value;f=null;(k&1)!==0&&(f=b[g][Kc]);f!==null&&f.transformFn!==void 0?d=f.transformFn(d):m!==null&&(d=m.call(b,d));a.setInput!==
null?a.setInput(b,f,d,c,g):(a=f,a!==null?a.applyValueToInputSignal(a,d):b[g]=d)}finally{Fc(e)}},Gia=function(){return new Fia(t(),rd())},we=function(a){if(!Hia.has(a)){Hia.add(a);var b,c;(b=performance)==null||(c=b.mark)==null||c.call(b,"mark_feature_usage",{detail:{feature:a}})}},De=function(a,b){var c,d=(c=b==null?void 0:b.injector)!=null?c:q(xe);we("NgAfterNextRender");c=d.get(ye);c.impl!=null||(c.impl=d.get(ze));var e=d.get(Ae,null,{optional:!0});b=(b==null?void 0:b.manualCleanup)!==!0?d.get(Be):
null;d=d.get(Fia,null,{optional:!0});a=new Ce(c.impl,a instanceof Function?[void 0,void 0,a,void 0]:[a.earlyRead,a.write,a.mixedReadWrite,a.read],d==null?void 0:d.view,!0,b,e==null?void 0:e.snapshot(null));c.impl.register(a);return a},Jia=function(a,b,c){var d=a.get(Iia);if(Array.isArray(b)){b=l(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;d.queue.add(e);var f=void 0,g=void 0;(f=c)==null||(g=f.detachedLeaveAnimationFns)==null||g.push(e)}}else d.queue.add(b),c==null||(e=c.detachedLeaveAnimationFns)==
null||e.push(b);d.scheduler&&d.scheduler(a)},Kia=function(a,b,c,d){var e;a=a==null?void 0:(e=a[26])==null?void 0:e.enter;if(b!==null&&a&&a.has(c.index))for(b=l(a),c=b.next();!c.done;c=b.next())c=l(c.value),c.next(),c=c.next().value,Jia(d,c.animateFns)},Ee=function(a,b,c,d,e,f,g,k){if(e!=null){var m=!1;if(gd(e))var r=e;else fd(e)&&(m=!0,e=e[0]);var w=id(e);a===0&&d!==null?(Kia(k,d,f,c),g==null?b.appendChild(d,w):b.insertBefore(d,w,g||null,!0)):a===1&&d!==null?(Kia(k,d,f,c),b.insertBefore(d,w,g||null,
!0)):a===2?Lia(k,f,c,function(x){b.removeChild(null,w,m,x)}):a===3&&Lia(k,f,c,function(){b.destroyNode(w)});r!=null&&Mia(b,a,c,r,f,d,g)}},Nia=function(a,b){var c;(c=b[10].changeDetectionScheduler)==null||c.notify(9);Fe(b[11],2,a.firstChild,b,null,null,!1)},Oia=function(a,b){a=a[9];b=a.indexOf(b);a.splice(b,1)},Qia=function(a,b){if((b[2]&256)!==256){var c=b[11];c.destroyNode&&Fe(c,3,a.firstChild,b,null,null,!1);if(a=b[12])for(;a;){c=null;if(fd(a))c=a[12];else{var d=a[10];d&&(c=d)}if(!c){for(;a&&!a[4]&&
a!==b;)fd(a)&&Pia(a[1],a),a=a[3];a===null&&(a=b);fd(a)&&Pia(a[1],a);c=a&&a[4]}a=c}else Pia(b[1],b)}},Pia=function(a,b){if((b[2]&256)!==256){var c=Fc(null);try{b[2]&=-129;b[2]|=256;b[24]&&Tea(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 Pga)){var g=d[e+1];if(Array.isArray(g))for(var k=0;k<g.length;k+=2){var m=f[g[k]],r=g[k+1];Ad(4,m,r);try{r.call(m)}finally{Ad(5,m,r)}}else{Ad(4,f,g);try{g.call(f)}finally{Ad(5,f,g)}}}}var w=a.cleanup,
x=b[7];if(w!==null)for(d=0;d<w.length-1;d+=2)if(typeof w[d]==="string"){var D=w[d+3];if(D>=0)x[D]();else x[-D].unsubscribe();d+=2}else w[d].call(x[w[d+1]]);x!==null&&(b[7]=null);var H=b[21];if(H!==null)for(b[21]=null,w=0;w<H.length;w++)(0,H[w])();var J=b[23];if(J!==null){b[23]=null;for(var O=l(J),R=O.next();!R.done;R=O.next())R.value.destroy()}b[1].type===1&&b[11].destroy();var V=b[16];if(V!==null&&gd(b[3])){V!==b[3]&&Oia(V,b);var ba=b[18];ba!==null&&ba.detachView(a)}aha.delete(b[19])}finally{Fc(c)}}},
Lia=function(a,b,c,d){var e=a==null?void 0:a[26];e!=null&&e.leave!=void 0&&e.leave.has(b.index)?(a&&Ria.add(a),Jia(c,function(){if(e.leave&&e.leave.has(b.index)){var f=e.leave.get(b.index),g=[];if(f){for(var k=0;k<f.animateFns.length;k++){var m=(0,f.animateFns[k])().promise;g.push(m)}e.detachedLeaveAnimationFns=void 0}e.running=Promise.allSettled(g);Sia(a,d)}else a&&Ria.delete(a),d(!1)},e)):d(!1)},Sia=function(a,b){var c,d=(c=a[26])==null?void 0:c.running;d?d.then(function(){a[26].running=void 0;
Ria.delete(a);b(!0)}):b(!1)},Tia=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:jd(b,c)},Uia=function(a,b,c){return a.type&40?jd(a,c):null},Xia=function(a,b,c,d){a=Tia(a,d.parent,b);var e=b[11],f=Via(d.parent||b[5],d,b);if(a!=null)if(Array.isArray(c))for(var g=0;g<c.length;g++){var k=e,m=a,r=c[g];f!==null?k.insertBefore(m,r,f,!1):k.appendChild(m,r)}else f!==null?e.insertBefore(a,
c,f,!1):e.appendChild(a,c);Wia!==void 0&&Wia(e,d,b,c,a)},Zia=function(a,b){if(b!==null){var c=b.type;if(c&3)return jd(b,a);if(c&4)return Yia(-1,a[b.index]);if(c&8){c=b.child;if(c!==null)return Zia(a,c);a=a[b.index];return gd(a)?Yia(-1,a):id(a)}if(c&128)return Zia(a,b.next);if(c&32)return $ia(b,a)()||id(a[b.index]);c=b!==null?a[15][5].projection[b.projection]:null;if(c!==null){if(Array.isArray(c))return c[0];a=nd(a[15]);return Zia(a,c)}return Zia(a,b.next)}return null},Yia=function(a,b){a=10+a+1;if(a<
b.length){a=b[a];var c=a[1].firstChild;if(c!==null)return Zia(a,c)}return b[7]},Fe=function(a,b,c,d,e,f,g){for(;c!=null;){var k=d[9];if(c.type===128)c=c.next;else{var m=d[c.index],r=c.type;g&&b===0&&(m&&Fd(id(m),d),c.flags|=2);if((c.flags&32)!==32)if(r&8)Fe(a,b,c.child,d,e,f,!1),Ee(b,a,k,e,m,c,f,d);else if(r&32){r=$ia(c,d);for(var w;w=r();)Ee(b,a,k,e,w,c,f,d);Ee(b,a,k,e,m,c,f,d)}else r&16?aja(a,b,d,c,e,f):Ee(b,a,k,e,m,c,f,d);c=g?c.projectionNext:c.next}}},aja=function(a,b,c,d,e,f){var g=c[15],k=g[5].projection[d.projection];
if(Array.isArray(k))for(g=0;g<k.length;g++)Ee(b,a,c[9],e,k[g],d,f,c);else c=g[3],(d.flags&128)===128&&(k.flags|=128),Fe(a,b,k,c,e,f,!0)},Mia=function(a,b,c,d,e,f,g){var k=d[7];k!==id(d)&&Ee(b,a,c,f,k,e,g);for(c=10;c<d.length;c++)e=d[c],Fe(a,b,e[1].firstChild,e,f,k,!1)},bja=function(a,b,c,d,e,f,g,k,m,r,w){d=27+d;e=d+e;for(var x=[],D=0;D<e;D++)x.push(D<d?null:Jd);r=typeof r==="function"?r():r;return x[1]={type:a,blueprint:x,template:c,queries:null,viewQuery:k,declTNode:b,data:x.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 g==="function"?g():g,firstChild:null,schemas:m,consts:r,incompleteFirstPass:!1,ssrId:w}},dja=function(a,
b,c,d,e,f,g,k,m,r,w){var x=b.blueprint.slice();x[0]=e;x[2]=d|1228;if(r!==null||a&&a[2]&2048)x[2]|=2048;x[17]=0;x[3]=x[14]=a;x[8]=c;x[10]=g||a&&a[10];x[11]=k||a&&a[11];x[9]=m||a&&a[9]||null;x[5]=f;x[19]=cja++;x[6]=w;x[20]=r;x[15]=b.type==2?a[15]:x;return x},eja=function(a){var b=16;a.signals?b=4096:a.onPush&&(b=64);return b},fja=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},gja=function(a,b){a[12]?a[13][4]=b:a[12]=b;return a[13]=
b},He=function(a){return a instanceof Ge?a.changingThisBreaksApplicationSecurity:a},Ie=function(a,b){a=a instanceof Ge&&a.getTypeName()||null;if(a!=null&&a!==b){if(a==="ResourceURL"&&b==="URL")return!0;throw Error("Aa`"+b+"`"+a);}return a===b},ija=function(){if(hja===void 0&&(hja=null,Je.trustedTypes))try{hja=Je.trustedTypes.createPolicy("angular",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return hja},jja=function(a){var b;
return((b=ija())==null?void 0:b.createHTML(a))||a},mja=function(a){a=new kja(a);try{var b=!!(new window.DOMParser).parseFromString(jja(""),"text/html")}catch(c){b=!1}return b?new lja(a):a},oja=function(a){a=String(a);return a.match(nja)?a:"unsafe:"+a},Ke=function(a){var b={};a=l(a.split(","));for(var c=a.next();!c.done;c=a.next())b[c.value]=!0;return b},pja=function(){for(var a={},b=l(Yc.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},
qja=function(a){a=a.nodeName;return typeof a==="string"?a:"FORM"},tja=function(a){return a.replace(/&/g,"&amp;").replace(rja,function(b){return"&#"+((b.charCodeAt(0)-55296)*1024+(b.charCodeAt(1)-56320)+65536)+";"}).replace(sja,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")},Bja=function(a,b){var c=null;try{uja=uja||mja(a);var d=b?String(b):"";c=uja.getInertBodyElement(d);a=5;b=d;do{if(a===0)throw Error("Ca");a--;d=b;b=c.innerHTML;c=uja.getInertBodyElement(d)}while(d!==
b);var e=new vja,f=(wja(c)||c).firstChild;d=!0;for(a=[];f;){if(f.nodeType===Node.ELEMENT_NODE){b=e;var g=f,k=qja(g).toLowerCase();if(xja.hasOwnProperty(k)){b.buf.push("<");b.buf.push(k);var m=g.attributes;for(g=0;g<m.length;g++){var r=m.item(g),w=r.name,x=w.toLowerCase();if(yja.hasOwnProperty(x)){var D=r.value;zja[x]&&(D=oja(D));b.buf.push(" ",w,'="',tja(D),'"')}}b.buf.push(">");d=!0}else d=!Aja.hasOwnProperty(k)}else f.nodeType===Node.TEXT_NODE&&e.buf.push(tja(f.nodeValue));if(d&&f.firstChild){a.push(f);
var H=f.firstChild;if(H&&(f.compareDocumentPosition(H)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY)throw Error("Ba`"+H.outerHTML);f=H}else for(;f;){f.nodeType===Node.ELEMENT_NODE&&e.endElement(f);var J,O=f.nextSibling;if(O&&f!==O.previousSibling)throw Error("Ba`"+O.outerHTML);if(J=O){f=J;break}f=a.pop()}}return jja(e.buf.join(""))}finally{if(c)for(c=wja(c)||c;c.firstChild;)c.firstChild.remove()}},wja=function(a){return"content"in a&&a.nodeType===Node.ELEMENT_NODE&&a.nodeName===
"TEMPLATE"?a.content:null},Dja=function(){if(Cja===void 0&&(Cja=null,Je.trustedTypes))try{Cja=Je.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return Cja},Eja=function(a){var b;return((b=Dja())==null?void 0:b.createHTML(a))||a},Fja=function(a){var b;return((b=Dja())==null?void 0:b.createScriptURL(a))||a},Le=function(a){var b=Gja();return b?Eja(b.sanitize(1,a)||""):Ie(a,"HTML")?
Eja(He(a)):Bja($ga(),Oc(a))},Hja=function(a){var b=Gja();return b?b.sanitize(2,a)||"":Ie(a,"Style")?He(a):Oc(a)},Me=function(a){var b=Gja();return b?b.sanitize(4,a)||"":Ie(a,"URL")?He(a):oja(Oc(a))},Ija=function(a){var b=Gja();if(b)return Fja(b.sanitize(5,a)||"");if(Ie(a,"ResourceURL"))return Fja(He(a));throw new Pc(904,!1);},Jja=function(a,b,c){return(c==="src"&&(b==="embed"||b==="frame"||b==="iframe"||b==="media"||b==="script")||c==="href"&&(b==="base"||b==="link")?Ija:Me)(a)},Gja=function(){var a=
t();return a&&a[10].sanitizer},Kja=function(a,b,c,d,e){var f=od.selectedIndex,g=d&2;try{od.selectedIndex=-1,g&&b.length>27&&Dia(a,b,27),Ad(g?2:0,e,c),c(d,e)}finally{od.selectedIndex=f,Ad(g?3:1,e,c)}},Lja=function(a,b,c){var d=c.directiveStart,e=c.directiveEnd;if(c.componentOffset>-1){var f=a.data[d+c.componentOffset],g=jd(c,b);var k=f.tView;k=k===null||k.incompleteFirstPass?f.tView=bja(1,null,f.template,f.decls,f.vars,f.directiveDefs,f.pipeDefs,f.viewQuery,f.schemas,f.consts,f.id):k;f=gja(b,dja(b,
k,null,eja(f),g,c,null,b[10].rendererFactory.createRenderer(g,f),null,null,null));b[c.index]=f}a.firstCreatePass||Gga(c,b);f=c.initialInputs;for(g=d;g<e;g++){k=a.data[g];var m=Oga(b,a,g,c);Fd(m,b);if(f!==null){var r=f[g-d];if(r!==null)for(var w=0;w<r.length;w+=2)Eia(k,m,r[w],r[w+1])}k.template&&(kd(c.index,b)[8]=Oga(b,a,g,c))}if((c.flags&64)===64){e=c.directiveStart;d=c.directiveEnd;f=c.index;c=od.currentDirectiveIndex;try{for(od.selectedIndex=f;e<d;e++){var x=a.data[e],D=b[e];od.currentDirectiveIndex=
e;x.hostBindings===null&&x.hostVars===0&&x.hostAttrs===null||x.hostBindings===null||x.hostBindings(1,D)}}finally{od.selectedIndex=-1,od.currentDirectiveIndex=c}}},Ne=function(a,b,c){c=c===void 0?jd:c;var d=b.localNames;if(d!==null)for(var e=b.index+1,f=0;f<d.length;f+=2){var g=d[f+1];g=g===-1?c(b,a):a[g];a[e++]=g}},Nja=function(a,b,c,d){c=d.get(Mja,!1)||c===3||c===4;return a.selectRootElement(b,c)},Qja=function(a,b,c,d,e,f){Oe(a,b[1],b,c,d)?a.componentOffset>-1&&Oja(b,a.index):(a.type&3&&(c=c==="class"?
"className":c==="for"?"htmlFor":c==="formaction"?"formAction":c==="innerHtml"?"innerHTML":c==="readonly"?"readOnly":c==="tabindex"?"tabIndex":c),Pja(a,b,c,d,e,f))},Pja=function(a,b,c,d,e,f){a.type&3&&(b=jd(a,b),d=f!=null?f(d,a.value||"",c):d,e.setProperty(b,c,d))},Oja=function(a,b){a=kd(b,a);a[2]&16||(a[2]|=64)},Rja=function(a,b){a=a.directiveRegistry;var c=null;if(a)for(var d=0;d<a.length;d++){var e=a[d];Xga(b,e.selectors,!1)&&(c!=null||(c=[]),e.template?c.unshift(e):c.push(e))}return c},Sja=function(a,
b,c,d,e,f,g){f==null?a.removeAttribute(b,e,c):(d=g==null?Oc(f):g(f,d||"",e),a.setAttribute(b,e,d,c))},Tja=function(a,b,c,d,e){var f=27+c,g=b[1];c=e(g,b,a,d,c);b[f]=c;td(a,!0);(f=a.type===2)?(hha(b[11],c,a),od.elementDepthCount!==0&&(a.flags&1)!==1||Fd(c,b),od.elementDepthCount++):Fd(c,b);!Pe||f&&(a.flags&32)===32||Xia(g,b,c,a)},Qe=function(){var a=rd();od.isParent?od.isParent=!1:(a=a.parent,td(a,!1));return a},Uja=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]},Oe=function(a,b,c,d,e){var f,g=(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],Eia(b.data[k],c[k],a[f+1],e),k=!0;if(g)for(g=l(g),a=g.next();!a.done;a=g.next())a=a.value,Eia(b.data[a],c[a],d,e),k=!0;return k},Re=function(a,b,c){return function f(e){var g=a.componentOffset>-1?kd(a.index,b):b;mha(g,5);g=b[8];for(var k=Vja(b,g,c,e),m=f.__ngNextListenerFn__;m;)k=Vja(b,g,m,e)&&k,m=m.__ngNextListenerFn__;
return k}},Vja=function(a,b,c,d){var e=Fc(null);try{return Ad(6,b,c),c(d)!==!1}catch(m){d=m;var f=a[9];if(f){try{var g=f.get(Se,null)}catch(r){g=null}var k;(k=g)==null||k(d)}return!1}finally{Ad(7,b,c),Fc(e)}},Yja=function(a,b,c,d,e,f,g,k){var m=(a.flags&1)===1,r=!1,w=null;!d&&m&&(w=Wja(b,c,f,a.index));w!==null?((w.__ngLastListenerFn__||w).__ngNextListenerFn__=g,w.__ngLastListenerFn__=g,r=!0):(g=jd(a,c),g=d?d(g):g,e=e.listen(g,f,k),f.startsWith("animation")||f.startsWith("transition")||Xja(d?function(x){return d(id(x[a.index]))}:
a.index,b,c,f,k,e,!1));return r},Wja=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&&b.length>c?b[c]:null;typeof f==="string"&&(e+=2)}return null},Xja=function(a,b,c,d,e,f,g){b=b.firstCreatePass?cga(b):null;c=bga(c);var k=c.length;c.push(e,f);b&&b.push(d,a,k,(k+1)*(g?-1:1))},Zja=function(a,b,c,d,e,f){var g=b[1];c=b[c][g.data[c].outputs[d]].subscribe(f);Xja(a.index,g,b,e,f,c,!0)},$ja=function(a,b){var c=a.contentQueries;
if(c!==null){var d=Fc(null);try{for(var e=0;e<c.length;e+=2){var f=c[e],g=c[e+1];if(g!==-1){var k=a.data[g];od.currentQueryIndex=f;k.contentQueries(2,b[g],g)}}}finally{Fc(d)}}},aka=function(a,b,c){od.currentQueryIndex=0;var d=Fc(null);try{b(a,c)}finally{Fc(d)}},bka=function(a,b,c){if((b.flags&4)!==0){var d=Fc(null);try{for(var e=b.directiveEnd,f=b.directiveStart;f<e;f++){var g=a.data[f];g.contentQueries&&g.contentQueries(1,c[f],f)}}finally{Fc(d)}}},dka=function(a,b,c){lga(b);try{var d=a.viewQuery;
d!==null&&aka(1,d,c);var e=a.template;e!==null&&Kja(a,b,e,1,c);a.firstCreatePass&&(a.firstCreatePass=!1);var f;(f=b[18])!=null&&cka(f,a);a.staticContentQueries&&$ja(a,b);a.staticViewQueries&&aka(2,a.viewQuery,c);var g=a.components;if(g!==null)for(c=0;c<g.length;c++){var k=kd(g[c],b),m=k[1];d=m;e=k;for(var r=e.length;r<d.blueprint.length;r++)e.push(d.blueprint[r]);k[0]!==null&&k[6]===null&&(k[6]=null);Ad(18);try{dka(m,k,k[8])}finally{Ad(19,k[8])}}}catch(w){throw a.firstCreatePass&&(a.incompleteFirstPass=
!0,a.firstCreatePass=!1),w;}finally{b[2]&=-5,oga()}},eka=function(a,b,c){var d=c?a.styles:null,e=c?a.classes:null,f=0;if(b!==null)for(var g=0;g<b.length;g++){var k=b[g];if(typeof k==="number")f=k;else if(f==1)e=afa(e,k);else if(f==2){var m=b[++g];d=afa(d,k+": "+m+";")}}c?a.styles=d:a.stylesWithoutHost=d;c?a.classes=e:a.classesWithoutHost=e},Te=function(a,b,c,d,e){var f=a.data[b];f===null?(f=fka(a,b,c,d,e),od.inI18n&&(f.flags|=32)):f.type&64&&(f.type=c,f.value=d,f.attrs=e,a=ega(),f.injectorIndex=a===
null?-1:a.injectorIndex);td(f,!0);return f},fka=function(a,b,c,d,e){var f=od.currentTNode,g=od.isParent,k=a.data,m=g?f:f&&f.parent,r=m?m.injectorIndex:-1,w=0;Ue!==null&&(w|=128);b=k[b]={type:c,index:b,insertBeforeIndex:null,injectorIndex:r,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,fieldIndex:-1,customControlIndex:-1,propertyBindings:null,flags:w,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:m,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&&(g?f.child==null&&b.parent!==null&&(f.child=b):f.next===null&&(f.next=b,b.prev=f));return b},Ve=function(a,b){b=b===void 0?0:b;var c=t();return c===null?Wc(a,
b):Lga(rd(),c,Vc(a),b)},We=function(){throw Error("Ea");},jka=function(a,b,c,d,e){var f=d===null?null:{"":-1},g=e(a,c);if(g!==null){for(var k=g,m=e=null,r=l(g),w=r.next();!w.done;w=r.next())if(w=w.value,w.resolveHostDirectives!==null){m=l(w.resolveHostDirectives(g));k=m.next().value;e=m.next().value;m=m.next().value;break}g=k.length;r=!1;for(w=0;w<g;w++){var x=k[w];if(!r&&x.template){r=!0;var D=void 0,H=a,J=c;J.componentOffset=w;((D=H.components)!=null?D:H.components=[]).push(J.index)}D=Gga(c,b);
Cga(D,a,x.type)}r=a.data.length;c.flags|=1;c.directiveStart=r;c.directiveEnd=r+g;c.providerIndexes=r;for(r=0;r<g;r++)w=k[r],w.providersResolver&&w.providersResolver(w);D=x=!1;r=fja(a,b,g,null);g>0&&(c.directiveToIndex=new Map);for(w=0;w<g;w++){H=k[w];c.mergedAttrs=Bd(c.mergedAttrs,H.hostAttrs);var O=a,R=c,V=b;J=r;O.data[J]=H;var ba=H.factory||(H.factory=Xc(H.type));ba=new Pga(ba,!!H.template);O.blueprint[J]=ba;V[J]=ba;V=fja(O,V,H.hostVars,Jd);if(ba=H.hostBindings){var pa=O.hostBindingOpCodes;pa===
null&&(pa=O.hostBindingOpCodes=[]);O=~R.index;a:{for(R=pa.length;R>0;){var ua=pa[--R];if(typeof ua==="number"&&ua<0){R=ua;break a}}R=0}R!=O&&pa.push(O);pa.push(J,V,ba)}J=r;if(f){if(H.exportAs)for(V=0;V<H.exportAs.length;V++)f[H.exportAs[V]]=J;H.template&&(f[""]=J)}m!==null&&m.has(H)?(V=l(m.get(H)),J=V.next().value,V=V.next().value,c.directiveToIndex.set(H.type,[r,J+c.directiveStart,V+c.directiveStart])):e!==null&&e.has(H)||c.directiveToIndex.set(H.type,r);H.contentQueries!==null&&(c.flags|=4);if(H.hostBindings!==
null||H.hostAttrs!==null||H.hostVars!==0)c.flags|=64;H=H.type.prototype;!x&&(H.ngOnChanges||H.ngOnInit||H.ngDoCheck)&&(J=x=void 0,((J=(x=a).preOrderHooks)!=null?J:x.preOrderHooks=[]).push(c.index),x=!0);D||!H.ngOnChanges&&!H.ngDoCheck||(H=D=void 0,((H=(D=a).preOrderCheckHooks)!=null?H:D.preOrderCheckHooks=[]).push(c.index),D=!0);r++}for(b=c.directiveStart;b<c.directiveEnd;b++)k=a.data[b],e!==null&&e.has(k)?(k=e.get(k),gka(0,c,k,b),gka(1,c,k,b),hka(c,b,!0)):(ika(0,c,k,b),ika(1,c,k,b),hka(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 Pc(-301,!1);a.push(d[c],b)}},ika=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,g=void 0;var k=(g=(f=b).inputs)!=null?g:f.inputs={}}else g=f=void 0,k=(g=(f=b).outputs)!=null?g:f.outputs={};g=f=void 0;(f=k)[g=e]!=null||(f[g]=[]);k[e].push(d);kka(b,e)}},gka=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 g=void 0,k=void 0;var m=(k=(g=b).hostDirectiveInputs)!=null?k:g.hostDirectiveInputs={}}else k=g=void 0,m=(k=(g=b).hostDirectiveOutputs)!=null?k:g.hostDirectiveOutputs={};k=g=void 0;(g=m)[k=f]!=null||(g[k]=[]);m[f].push(d,e);kka(b,f)}},kka=function(a,b){b==="class"?a.flags|=8:b==="style"&&(a.flags|=16)},hka=function(a,b,c){var d=a.attrs,e=a.inputs,f=a.hostDirectiveInputs;if(d===null||!c&&e===null||c&&f===null||Vga(a))a.initialInputs!=null||(a.initialInputs=[]),a.initialInputs.push(null);
else{for(var g=null,k=0;k<d.length;){var m=d[k];if(m===0)k+=4;else{if(m!==5){if(typeof m==="number")break;if(!c&&e.hasOwnProperty(m))for(var r=l(e[m]),w=r.next();!w.done;w=r.next()){if(w.value===b){g!=null||(g=[]);g.push(m,d[k+1]);break}}else if(c&&f.hasOwnProperty(m))for(m=f[m],r=0;r<m.length;r+=2)if(m[r]===b){g!=null||(g=[]);g.push(m[r+1],d[k+1]);break}}k+=2}}a.initialInputs!=null||(a.initialInputs=[]);a.initialInputs.push(g)}},lka=function(a,b,c,d,e,f,g){var k=b[1],m=k.consts;f=ld(m,f);a=Te(k,
a,c,d,f);jka(k,b,a,ld(m,g),e);a.mergedAttrs=Bd(a.mergedAttrs,a.attrs);a.attrs!==null&&eka(a,a.attrs,!1);a.mergedAttrs!==null&&eka(a,a.mergedAttrs,!0);k.queries!==null&&k.queries.elementStart(k,a);return a},mka=function(a,b){pga(a,b);(b.flags&4)!==0&&a.queries.elementEnd(b)},nka=function(a,b,c,d,e,f){var g=b.consts;e=ld(g,e);a=Te(b,a,c,d,e);a.mergedAttrs=Bd(a.mergedAttrs,a.attrs);if(f!=null)for(f=ld(g,f),a.localNames=[],g=0;g<f.length;g+=2)a.localNames.push(f[g],-1);a.attrs!==null&&eka(a,a.attrs,!1);
a.mergedAttrs!==null&&eka(a,a.mergedAttrs,!0);b.queries!==null&&b.queries.elementStart(b,a);return a},oka=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(id(f));if(gd(f)){for(var g=d,k=10;k<f.length;k++){var m=f[k],r=m[1].firstChild;r!==null&&oka(m[1],m,r,g)}f[7]!==f[0]&&g.push(f[7])}f=c.type;if(f&8)oka(a,b,c.child,d);else if(f&32)for(f=$ia(c,b);g=f();)d.push(g);else f&16&&(f=c!==null?b[15][5].projection[c.projection]:null,Array.isArray(f)?d.push.apply(d,
n(f)):(g=nd(b[15]),oka(g[1],g,f,d,!0)))}c=e?c.projectionNext:c.next}return d},pka=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}},qka=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)}},ska=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=fga;try{for(gga(!0),rka(a,d),d=0;Zfa(a);){if(d===100)throw new Pc(103,!1);d++;rka(a,1)}}finally{gga(b)}}finally{var e;(e=c.end)==null||e.call(c)}},tka=function(a,b){for(a=bha(a[12]);a!==null;a=bha(a[4]))for(var c=10;c<a.length;c++){var d=a[c];(d[2]&128)===128&&
rka(d,b)}},rka=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)&&Nea(e)));f||(f=!1);e&&(e.dirty=!1);a[2]&=-9217;if(f){f=c.template;var g=a[8];if((a[2]&256)!==256){var k=a[2];lga(a);b=!0;e=d=null;if(c.type!==2){var m;if((m=a[24])!=null)var r=m;else m=(r=uka.pop())!=null?r:Object.create(vka),m.lView=a,r=m;e=r;d=Ic(e)}else Ec===null?(b=!1,r=(m=a[24])!=null?m:Object.create(wka),r.lView=a,e=r,d=Ic(e)):a[24]&&(Tea(a[24]),a[24]=
null);try{a[17]=0;od.bindingIndex=c.bindingStartIndex;f!==null&&Kja(c,a,f,2,g);if(r=(k&3)===3){var w=c.preOrderCheckHooks;w!==null&&qga(a,w,3,null)}else{var x=c.preOrderHooks;x!==null&&rga(a,x,0,null);sga(a,0)}for(var D=bha(a[12]);D!==null;D=bha(D[4]))if(D[2]&2){var H=D[9];for(w=0;w<H.length;w++)Yfa(H[w])}qka(a);tka(a,0);c.contentQueries!==null&&$ja(c,a);if(r){var J=c.contentCheckHooks;J!==null&&qga(a,J,3)}else{var O=c.contentHooks;O!==null&&rga(a,O,1);sga(a,1)}var R=c.hostBindingOpCodes;if(R!==null)try{for(D=
0;D<R.length;D++){var V=R[D];if(V<0)od.selectedIndex=~V;else{H=V;var ba=R[++D],pa=R[++D];J=od;J.bindingIndex=J.bindingRootIndex=ba;od.currentDirectiveIndex=H;var ua=a[H];Ad(24,ua);try{pa(2,ua)}finally{Ad(25,ua)}}}}finally{od.selectedIndex=-1}var ma=c.components;ma!==null&&xka(a,ma,0);var Da=c.viewQuery;Da!==null&&aka(2,Da,g);if(r){var ja=c.viewCheckHooks;ja!==null&&qga(a,ja,3)}else{var va=c.viewHooks;va!==null&&rga(a,va,2);sga(a,2)}c.firstUpdatePass===!0&&(c.firstUpdatePass=!1);if(a[22]){for(var ya=
l(a[22]),Sa=ya.next();!Sa.done;Sa=ya.next()){var ab=Sa.value;ab()}a[22]=null}pka(a);a[2]&=-73}catch(rb){throw md(a),rb;}finally{e!==null&&(Sea(e,d),b&&(a=e,a.lView[24]!==a&&(a.lView=null,uka.push(a)))),oga()}}}else if(d&8192){R=Fc(null);try{qka(a),tka(a,1),g=c.components,g!==null&&xka(a,g,1),pka(a)}finally{Fc(R)}}},xka=function(a,b,c){for(var d=0;d<b.length;d++){var e=a,f=b[d],g=c;Ad(18);e=kd(f,e);try{(e[2]&128)===128&&rka(e,g)}finally{Ad(19,e[8])}}},yka=function(a,b){b=10+b;if(b<a.length)return a[b]},
Aka=function(a,b,c,d){d=d===void 0?!0:d;var e=b[1],f=10+c,g=a.length;c>0&&(a[f-1][4]=b);c<g-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&&zka(f,b);f=b[18];f!==null&&cka(f,e);$fa(b);b[2]|=128;d&&(c=Yia(c,a),d=b[11],f=d.parentNode(a[7]),f!==null&&(a=a[5],b[0]=f,b[5]=a,Fe(d,1,e.firstChild,b,f,c,!1)));b=b[6];b!==null&&b.firstChild!==null&&(b.firstChild=null)},Cka=function(a){a=Bka(a,0);a!==void 0&&Qia(a[1],a)},Bka=function(a,b){if(!(a.length<=
10)){var c=10+b,d=a[c];if(d){var e=d[16];e!==null&&e!==a&&Oia(e,d);b>0&&(a[c-1][4]=d[4]);a=vfa(a,10+b);Nia(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}},zka=function(a,b){var c=a[9],d=b[3];fd(d)?a[2]|=2:b[15]!==d[3][15]&&(a[2]|=2);c===null?a[9]=[b]:c.push(b)},Dka=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})},Eka=function(a){return Object.keys(a).map(function(b){return{propName:a[b],templateName:b}})},Gka=function(a,b,c){(b=b instanceof Xe?b:b==null?void 0:b.injector)&&a.getStandaloneInjector!==null&&(b=a.getStandaloneInjector(b)||b);return b?new Fka(c,b):c},Ika=function(a){var b=a.get(Ye,null);if(b===null)throw new Pc(407,!1);var c=a.get(Hka,null);a=a.get(Ze,null);return{rendererFactory:b,sanitizer:c,changeDetectionScheduler:a,ngReflect:!1}},Jka=function(a,b){a=(a.selectors[0][0]||"div").toLowerCase();
return b.createElement(a,a==="svg"?"svg":a==="math"?"math":null)},Nka=function(a,b,c,d){if(a)a=["ng-version","0.0.0-PLACEHOLDER"];else{a=b.selectors[0];for(var e=[],f=[],g=1,k=2;g<a.length;){var m=a[g];if(typeof m==="string")k===2?m!==""&&e.push(m,a[++g]):k===8&&f.push(m);else{if((k&1)!==0)break;k=m}g++}f.length&&e.push.apply(e,[1].concat(n(f)));a=e}f=e=null;g=0;if(c)for(c=l(c),k=c.next();!k.done;k=c.next())k=k.value,g+=k[Kka].requiredVars,k.create&&(k.targetIdx=0,m=void 0,((m=e)!=null?m:e=[]).push(k)),
k.update&&(k.targetIdx=0,m=void 0,((m=f)!=null?m:f=[]).push(k));if(d)for(c=0;c<d.length;c++)if(k=d[c],typeof k!=="function")for(k=l(k.bindings),m=k.next();!m.done;m=k.next()){m=m.value;g+=m[Kka].requiredVars;var r=c+1;if(m.create){m.targetIdx=r;var w=void 0;((w=e)!=null?w:e=[]).push(m)}m.update&&(m.targetIdx=r,r=void 0,((r=f)!=null?r:f=[]).push(m))}b=[b];if(d)for(d=l(d),c=d.next();!c.done;c=d.next())c=c.value,b.push((typeof c==="function"?c:c.type)[Lka]||null);return bja(0,null,Mka(e,f),1,g,b,null,
null,null,[a],null)},Mka=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},Oka=function(a){a=a[Kka].kind;return a==="input"||a==="twoWay"},Pka=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)}},Rka=function(a,b,c){return(new Qka({providers:a,parent:b,debugName:c===void 0?null:c,runEnvironmentInitializers:!0})).injector},
C=function(a){return xga(function(){var b=Ska(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(Tka);if(d.standalone){if(!e.cachedInjectors.has(d)){var f=zfa(!1,d.type);f=f.length>0?Rka([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||$c,_:null,schemas:a.schemas||null,tView:null,id:""});b.standalone&&we("NgStandalone");Uka(d);b=a.dependencies;d.directiveDefs=Vka(b,Wka);d.pipeDefs=Vka(b,sfa);d.id=Xka(d);return d})},Wka=function(a){return a[Zc]||a[Lka]||null},$e=function(a){return xga(function(){return{type:a.type,bootstrap:a.bootstrap||$c,declarations:a.declarations||
$c,imports:a.imports||$c,exports:a.exports||$c,transitiveCompileScopes:null,schemas:a.schemas||null,id:a.id||null}})},af=function(a){return xga(function(){var b=Ska(a);Uka(b);return b})},cf=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}},Ska=function(a){var b={},c,d=a.type,e=a.hostBindings||null,f=a.hostVars||0,g=a.hostAttrs||null,k=a.contentQueries||null,m=a.inputs||hd,r=a.exportAs||
null,w=(c=a.standalone)!=null?c:!0;c=a.signals===!0;var x=a.selectors||$c,D=a.viewQuery||null,H=a.features||null;var J=a.inputs;if(J==null)var O=hd;else{var R={};for(O in J)if(J.hasOwnProperty(O)){var V=J[O];if(Array.isArray(V)){var ba=V[0];var pa=V[1];var ua=void 0;var ma=(ua=V[2])!=null?ua:pa;V=V[3]||null}else ma=pa=V,ba=0,V=null;R[pa]=[O,ba,V];b[pa]=ma}O=R}a=a.outputs;if(a==null)var Da=hd;else{J={};for(Da in a)a.hasOwnProperty(Da)&&(J[a[Da]]=Da);Da=J}return{type:d,providersResolver:null,factory:null,
hostBindings:e,hostVars:f,hostAttrs:g,contentQueries:k,declaredInputs:b,inputConfig:m,exportAs:r,standalone:w,signals:c,selectors:x,viewQuery:D,features:H,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:O,outputs:Da,debugInfo:null}},Uka=function(a){var b;(b=a.features)==null||b.forEach(function(c){return c(a)})},Vka=function(a,b){return a?function(){var c=typeof a==="function"?a():a,d=[];c=l(c);for(var e=c.next();!e.done;e=c.next())e=b(e.value),e!==null&&d.push(e);return d}:null},
Xka=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)},Yka=function(a){return!!a&&typeof a.then==="function"},Zka=
function(a){return!!a&&typeof a.subscribe==="function"},ala=function(a){return{"\u0275providers":[{provide:$ka,multi:!0,useValue:a}]}},df=function(a,b){var c,d=(c=b==null?void 0:b.injector)!=null?c:q(xe);b=(b==null?void 0:b.manualCleanup)!==!0?d.get(Be):null;c=d.get(Fia,null,{optional:!0});var e=d.get(Ze);if(c!==null){var f=bla(c.view,e,a);b instanceof Md&&b._lView===c.view&&(b=null)}else f=cla(a,d.get(dla),e);f.injector=d;b!==null&&(f.onDestroyFns=[b.onDestroy(function(){return f.destroy()})]);return new ela(f)},
bla=function(a,b,c){var d=Object.create(fla);d.view=a;d.zone=typeof Zone!=="undefined"?Zone.current:null;d.notifier=b;d.fn=gla(d,c);a[23]!=null||(a[23]=new Set);a[23].add(d);d.consumerMarkedDirty(d);return d},cla=function(a,b,c){var d=Object.create(hla);d.fn=gla(d,a);d.scheduler=b;d.notifier=c;d.zone=typeof Zone!=="undefined"?Zone.current:null;d.scheduler.add(d);d.notifier.notify(12);return d},gla=function(a,b){return function(){var c;b(function(d){var e;return((e=(c=a).cleanupFns)!=null?e:c.cleanupFns=
[]).push(d)})}},ef=function(a){return typeof a==="function"&&a[Kc]!==void 0},ila=function(a){return fe(function(b,c){var d=!1,e=null,f=null,g=!1,k=function(){var r;(r=f)==null||r.unsubscribe();f=null;d&&(d=!1,r=e,e=null,c.next(r));g&&c.complete()},m=function(){f=null;g&&c.complete()};b.subscribe(new ge(c,function(r){d=!0;e=r;f||Td(a(r)).subscribe(f=new ge(c,k,void 0,m))},void 0,function(){g=!0;d&&f&&!f.closed||c.complete()}))})},gf=function(a,b){b=b===void 0?pe:b;return ila(function(){return qe(a,
b)})},jla=function(a){return fe(function(b,c){var d=[];b.subscribe(new ge(c,function(e){return d.push(e)},void 0,function(){c.next(d);c.complete()}));a.subscribe(new ge(c,function(){var e=d;d=[];c.next(e)},void 0,Pd));return function(){d=null}})},hf=function(a){return fe(function(b,c){var d=null,e=!1,f;d=b.subscribe(new ge(c,void 0,function(g){f=Td(a(g,hf(a)(b)));d?(d.unsubscribe(),d=null,f.subscribe(c)):e=!0}));e&&(d.unsubscribe(),d=null,f.subscribe(c))})},kla=function(a,b,c){return function(d,e){var f=
c,g=b,k=0;d.subscribe(new ge(e,function(m){var r=k++;g=f?a(g,m,r):(f=!0,m);e.next(g)},void 0,void 0))}},lla=function(){var a=Yc.apply(0,arguments),b=Nha(a);return b?Rd(lla.apply(null,n(a)),Uha(b)):fe(function(c,d){$ha([c].concat(n(a.length===1&&lia(a[0])?a[0]:a)))(d)})},jf=function(){return lla.apply(null,n(Yc.apply(0,arguments)))},mla=function(a){return Nd()?ie(a,void 0,1):ie(a,1)},ola=function(){return nla.apply(null,n(Yc.apply(0,arguments)))},nla=function(){var a=Yc.apply(0,arguments),b=ae(a);
return fe(function(c,d){je(1)(Mha([c].concat(n(a)),b)).subscribe(d)})},pla=function(a){return fe(function(b,c){var d=!1,e=null,f=null,g=function(){var k;(k=f)==null||k.unsubscribe();f=null;d&&(d=!1,k=e,e=null,c.next(k))};b.subscribe(new ge(c,function(k){var m;(m=f)==null||m.unsubscribe();d=!0;e=k;f=new ge(c,g,void 0,Pd);Td(a(k)).subscribe(f)},void 0,function(){g();c.complete()},function(){e=f=null}))})},kf=function(a,b){b=b===void 0?pe:b;var c=qe(a,b);return pla(function(){return c})},qla=function(a){a=
a===void 0?null:a;return fe(function(b,c){var d=!1;b.subscribe(new ge(c,function(e){d=!0;c.next(e)},void 0,function(){d||c.next(a);c.complete()}))})},rla=function(){return fe(function(a,b){a.subscribe(new ge(b,Pd))})},lf=function(a){return fe(function(b,c){b.subscribe(new ge(c,function(){return c.next(a)}))})},mf=function(a){return a<=0?function(){return re}:fe(function(b,c){var d=0;b.subscribe(new ge(c,function(e){++d<=a&&(c.next(e),a<=d&&c.complete())}))})},sla=function(a){return ie(function(b,
c){return a(b,c).pipe(mf(1),lf(b))})},nf=function(a,b){b=b===void 0?pe:b;var c=qe(a,b);return sla(function(){return c})},tla=function(){return fe(function(a,b){a.subscribe(new ge(b,function(c){return Oha(c,b)}))})},of=function(a){var b=b===void 0?Qd:b;var c;a=(c=a)!=null?c:ula;return fe(function(d,e){var f,g=!0;d.subscribe(new ge(e,function(k){var m=b(k);if(g||!a(f,m))g=!1,f=m,e.next(k)}))})},ula=function(a,b){return a===b},wla=function(a){a=a===void 0?vla:a;return fe(function(b,c){var d=!1;b.subscribe(new ge(c,
function(e){d=!0;c.next(e)},void 0,function(){return d?c.complete():c.error(a())}))})},vla=function(){return new Pha},xla=function(a){return fe(function(b,c){var d=0,e=null,f=!1;b.subscribe(new ge(c,function(g){e||(e=new ge(c,void 0,void 0,function(){e=null;f&&c.complete()}),Td(a(g,d++)).subscribe(e))},void 0,function(){f=!0;!e&&c.complete()}))})},pf=function(a){return fe(function(b,c){b.subscribe(c);c.add(a)})},qf=function(a,b){var c=arguments.length>=2;return function(d){return d.pipe(a?te(function(e,
f){return a(e,f,d)}):Qd,mf(1),c?qla(b):wla(function(){return new Pha}))}},zla=function(a){return fe(function(b,c){function d(m,r){var w=new Sd(function(x){k.activeGroups++;var D=r.subscribe(x);return function(){D.unsubscribe();--k.activeGroups===0&&k.teardownAttempted&&k.unsubscribe()}});w.key=m;return w}var e=new Map,f=function(m){e.forEach(m);m(c)},g=function(m){return f(function(r){return r.error(m)})},k=new yla(c,function(m){try{var r=a(m),w=e.get(r);if(!w){e.set(r,w=new rf);var x=d(r,w);c.next(x)}w.next(m)}catch(D){g(D)}},
g,function(){return f(function(m){return m.complete()})},function(){return e.clear()});b.subscribe(k)})},Ala=function(){return fe(function(a,b){var c=[];a.subscribe(new ge(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}))})},Cla=function(){return fe(function(a,b){a.subscribe(new ge(b,function(c){b.next(new sf("N",c))},function(c){b.next(sf.createError(c));b.complete()},function(){b.next(Bla);
b.complete()}))})},Dla=function(a){var b=Nd(a)?a:function(){return a};return Nd()?fe(function(c,d){var e=b();(void 0)(e).subscribe(d).add(c.subscribe(e))}):function(c){var d=new tf(c,b);Nd(c==null?void 0:c.lift)&&(d.lift=c.lift);d.source=c;d.subjectFactory=b;return d}},uf=function(){return fe(function(a,b){var c,d=!1;a.subscribe(new ge(b,function(e){var f=c;c=e;d&&b.next([f,e]);d=!0}))})},Ela=function(){var a=Yc.apply(0,arguments),b=a.length;if(b===0)throw Error("Ga");return A(function(c){var d=c;
for(c=0;c<b;c++){var e=void 0;d=(e=d)==null?void 0:e[a[c]];if(typeof d==="undefined")return}return d})},Fla=function(){var a=new vf(1,void 0,void 0);return function(b){return Dla(function(){return a})(b)}},Gla=function(){var a=Yc.apply(0,arguments);return a.length?fe(function(b,c){mia([b].concat(n(a)))(c)}):Qd},Hla=function(a){return fe(function(b,c){var d,e=!1,f,g=function(){d=b.subscribe(new ge(c,void 0,function(k){f||(f=new rf,a(f).subscribe(new ge(c,function(){return d?g():e=!0})));f&&f.next(k)}));
e&&(d.unsubscribe(),d=null,e=!1,g())};g()})},Ila=function(a,b){return fe(kla(a,b,arguments.length>=2))},Jla=function(){var a=a||{};var b=a.connector===void 0?function(){return new rf}: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 g=null,k=null,m=0,r=!1,w=!1,x=function(){g=k=null;r=w=!1};return fe(function(D,H){m++;var J;k=(J=k)!=null?J:b();H.add(function(){m--;
if(e&&!m&&!w&&!r){var O=g;x();O==null||O.unsubscribe()}});k.subscribe(H);!g&&m>0&&(g=new de({next:function(O){return k.next(O)},error:function(O){w=!0;var R=k;d&&x();R.error(O)},complete:function(){r=!0;var O=k;c&&x();O.complete()}}),Ud(D).subscribe(g))})(f)}},wf=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 fe(Kla(b))(c)}},Kla=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,g=0,k;return function(m,r){g++;if(f)var w=f.subscribe(r);else f=new vf(b,c,e),w=f.subscribe(r),k=m.subscribe({next:function(x){f.next(x)},error:function(x){var D=f;f=k=void 0;D.error(x)},complete:function(){k=void 0;f.complete()}}),k.closed&&(k=void 0);r.add(function(){g--;w.unsubscribe();d&&g===0&&k&&(k.unsubscribe(),f=k=void 0)})}},xf=function(a){return te(function(b,c){return a<=c})},yf=function(){var a=Yc.apply(0,arguments),
b=ae(a);return fe(function(c,d){(b?ke(a,c,b):ke(a,c)).subscribe(d)})},zf=function(a){return fe(function(b,c){var d=null,e=0,f=!1;b.subscribe(new ge(c,function(g){var k;(k=d)==null||k.unsubscribe();k=e++;Td(a(g,k)).subscribe(d=new ge(c,function(m){return c.next(m)},void 0,function(){d=null;f&&!d&&c.complete()}))},void 0,function(){(f=!0,!d)&&c.complete()}))})},Lla=function(a){return zf(function(){return a})},Af=function(a){return fe(function(b,c){Td(a).subscribe(new ge(c,function(){return c.complete()},
void 0,Pd));!c.closed&&b.subscribe(c)})},Mla=function(a){var b=b===void 0?!1:b;return fe(function(c,d){var e=0;c.subscribe(new ge(d,function(f){var g=a(f,e++);(g||b)&&d.next(f);!g&&d.complete()}))})},Bf=function(a,b){var c=Nd(a)||b?{next:a,error:b,complete:void 0}:a;return c?fe(function(d,e){d.subscribe(new ge(e,function(f){var g;(g=c.next)==null||g.call(c,f);e.next(f)},function(f){var g;(g=c.error)==null||g.call(c,f);e.error(f)},function(){var f;(f=c.complete)==null||f.call(c);e.complete()}))}):
Qd},Ola=function(a,b){b=b===void 0?Nla:b;var c=b.leading;var d=b.trailing;return fe(function(e,f){var g=!1,k=null,m=null,r=!1,w=function(){var J;(J=m)==null||J.unsubscribe();m=null;d&&(H(),r&&f.complete())},x=function(){m=null;r&&f.complete()},D=function(J){return m=Td(a(J)).subscribe(new ge(f,w,void 0,x))},H=function(){g&&(f.next(k),!r&&D(k));g=!1;k=null};e.subscribe(new ge(f,function(J){g=!0;k=J;(!m||m.closed)&&(c?H():D(J))},void 0,function(){r=!0;d&&g&&m&&!m.closed||f.complete()}))})},Cf=function(a){var b=
pe,c={leading:!0,trailing:!0};b=b===void 0?pe:b;c=c===void 0?Nla:c;var d=qe(a,b);return Ola(function(){return d},c)},Df=function(){var a=Yc.apply(0,arguments),b=Nha(a);return fe(function(c,d){for(var e=a.length,f=Array(e),g=a.map(function(){return!1}),k=!1,m={i$jscomp$265:0};m.i$jscomp$265<e;m={i$jscomp$265:m.i$jscomp$265},m.i$jscomp$265++)Td(a[m.i$jscomp$265]).subscribe(new ge(d,function(r){return function(w){f[r.i$jscomp$265]=w;k||g[r.i$jscomp$265]||(g[r.i$jscomp$265]=!0,(k=g.every(Qd))&&(g=null))}}(m),
void 0,Pd));c.subscribe(new ge(d,function(r){k&&(r=[r].concat(n(f)),d.next(b?b.apply(null,n(r)):r))}))})},Pla=function(){Xea=function(){throw new Pc(600,"");}},Qla=function(a,b){return Array.isArray(b)?b.reduce(Qla,a):Object.assign({},a,b)},Rla=function(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)},Sla=function(a,b,c,d){var e=Fc(null);try{var f=b.tView,g,k,m,r=dja(a,f,c,a[2]&4096?4096:16,null,b,null,null,(g=d==null?void 0:d.injector)!=null?g:null,(k=d==null?void 0:d.embeddedViewInjector)!=null?k:null,
(m=d==null?void 0:d.dehydratedView)!=null?m:null);r[16]=a[b.index];var w=a[18];w!==null&&(r[18]=w.createEmbeddedView(f));dka(f,r,c);return r}finally{Fc(e)}},Ef=function(a,b){return!b||b.firstChild===null||(a.flags&128)===128},Ula=function(a){for(var b=[],c=!1,d=null,e=null,f=0;f<a.length;f++){var g=a[f];if(g.hostDirectives!==null){var k=b.length;d!=null||(d=new Map);e!=null||(e=new Map);Tla(g,b,d);e.set(g,[k,b.length-1])}f===0&&g.template&&(c=!0,b.push(g))}for(c=c?1:0;c<a.length;c++)b.push(a[c]);
return[b,d,e]},Tla=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())Vla(Wla(e.value),b,c)}else Vla(d,b,c)}},Vla=function(a,b,c){var d=a.directive[Lka]||null,e=d.declaredInputs,f=a.inputs,g;for(g in f)f.hasOwnProperty(g)&&(e[f[g]]=e[g]);Tla(d,b,c);c.set(d,a);b.push(d)},Wla=function(a){return typeof a==="function"?{directive:Vc(a),inputs:hd,outputs:hd}:{directive:Vc(a.directive),
inputs:Xla(a.inputs),outputs:Xla(a.outputs)}},Xla=function(a){if(a===void 0||a.length===0)return hd;for(var b={},c=0;c<a.length;c+=2)b[a[c]]=a[c+1];return b},Ff=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 Pc(903,!1);e=b.\u0275dir}if(e){if(c){d.push(e);var f=a;f.inputs=Yla(a.inputs);f.declaredInputs=Yla(a.declaredInputs);f.outputs=Yla(a.outputs);(f=e.hostBindings)&&Zla(a,f);f=e.viewQuery;
var g=e.contentQueries;f&&$la(a,f);g&&ama(a,g);f=void 0;g=a;var k=e;for(f in k.inputs)if(k.inputs.hasOwnProperty(f)&&!g.inputs.hasOwnProperty(f)){var m=k.inputs[f];m!==void 0&&(g.inputs[f]=m,g.declaredInputs[f]=k.declaredInputs[f])}f=void 0;g=a.outputs;k=e.outputs;for(f in k)k.hasOwnProperty(f)&&!g.hasOwnProperty(f)&&(g[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++)(g=e[f])&&g.ngInherit&&g(a),g===Ff&&
(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=Bd(e.hostAttrs,b=Bd(b,e.hostAttrs))},Yla=function(a){return a===hd?{}:a===$c?[]:a},$la=function(a,b){var c=a.viewQuery;a.viewQuery=c?function(d,e){b(d,e);c(d,e)}:b},ama=function(a,b){var c=a.contentQueries;a.contentQueries=c?function(d,e,f){b(d,e,f);c(d,e,f)}:b},Zla=function(a,b){var c=a.hostBindings;a.hostBindings=c?function(d,e){b(d,e);c(d,e)}:b},bma=function(a,b,c){var d=b.insertBeforeIndex;
d=Array.isArray(d)?d[0]:d;return d===null?Uia(a,b,c):id(c[d])},cma=function(a,b,c,d,e){var f=b.insertBeforeIndex;if(Array.isArray(f)){var g=null;b.type&3||(g=d,d=e);if(d!==null&&b.componentOffset===-1)for(b=1;b<f.length;b++)a.insertBefore(d,c[f[b]],g,!1)}},dma=function(a,b){a.push(b);if(a.length>1)for(var c=a.length-2;c>=0;c--){var d=a[c];if(d.type&64){var e;if(e=!(b.type&64)||d.index>b.index)e=d.insertBeforeIndex,e=(Array.isArray(e)?e[0]:e)===null;if(e){e=b.index;var f=d.insertBeforeIndex;Array.isArray(f)?
f[0]=e:(f=cma,Via=bma,Wia=f,d.insertBeforeIndex=e)}}}},ema=function(a,b){a=a.data[b];return a===null||typeof a==="string"?null:a.hasOwnProperty("currentCaseLViewIndex")?a:a.value},fma=function(a,b){a=b[a.currentCaseLViewIndex];return a===null?a:a<0?~a:a},gma=function(a,b,c){a.index=0;c=fma(b,c);c!==null?a.removes=b.remove[c]:a.removes=$c},hma=function(a){if(a.index<a.removes.length){var b=a.removes[a.index++];if(b>0)return a.lView[b];a.stack.push(a.index,a.removes);gma(a,a.lView[1].data[~b],a.lView);
return hma(a)}if(a.stack.length===0)return a.lView=void 0,null;a.removes=a.stack.pop();a.index=a.stack.pop();return hma(a)},ima=function(){var a={stack:[],index:-1};return function(b,c){for(a.lView=c;a.stack.length;)a.stack.pop();gma(a,b.value,c);return hma.bind(null,a)}},kma=function(){return jma(rd(),t())},lma=function(a){return a[8]||(a[8]=[])},jma=function(a,b){var c=b[a.index];if(gd(c))var d=c;else d=[c,!0,0,b,null,a,null,null,null,null],b[a.index]=d,gja(b,d);mma(d,b,a,c);return new Gf(d,a,b)},
nma=function(a,b,c,d){if(!a[7]){if(c.type&8)d=id(d);else{d=b[11];var e=d.createComment("");c=jd(c,b);b=d.parentNode(c);c=d.nextSibling(c);d.insertBefore(b,e,c,!1);d=e}a[7]=d}},pma=function(a,b,c,d,e,f,g,k){c.firstCreatePass&&(a.mergedAttrs=Bd(a.mergedAttrs,a.attrs),e=a.tView=bja(2,a,e,f,g,c.directiveRegistry,c.pipeRegistry,null,c.schemas,c.consts,null),c.queries!==null&&(c.queries.template(c,a),e.queries=c.queries.embeddedTView(a)));k&&(a.flags|=k);td(a,!1);k=oma(c,b,a,d);Pe&&Xia(c,b,k,a);Fd(k,b);
a=[k,!0,0,b,null,a,null,k,null,null];b[d+27]=a;gja(b,a)},qma=function(a,b,c,d,e,f,g,k,m,r,w){var x=c+27;if(b.firstCreatePass){if(g=Te(b,x,4,g||null,k||null),r!=null)for(k=ld(b.consts,r),g.localNames=[],x=0;x<k.length;x+=2)g.localNames.push(k[x],-1)}else g=b.data[x];pma(g,a,b,c,d,e,f,m);r!=null&&Ne(a,g,w)},E=function(a,b,c,d,e,f,g,k){var m=t(),r=qd();f=ld(r.consts,f);var w=a+27;r.firstCreatePass?(e=Te(r,w,4,e||null,f||null),jka(r,m,e,ld(r.consts,g),Rja),pga(r,e)):e=r.data[w];pma(e,m,r,a,b,c,d);(e.flags&
1)===1&&Lja(r,m,e);g!=null&&Ne(m,e,k);return E},Hf=function(a,b,c,d,e,f,g,k){var m=t(),r=qd();f=ld(r.consts,f);qma(m,r,a,b,c,d,e,f,void 0,g,k);return Hf},rma=function(a,b){Pe=!0;return b[11].createComment("")},If=function(a,b){var c=t(),d=wd();if(Kd(c,d,b)){var e=qd();d=xd();Oe(d,e,c,a,b)?d.componentOffset>-1&&Oja(c,d.index):(e=jd(d,c),Sja(c[11],e,null,d.value,a,b,null))}return If},Jf=function(a,b,c,d){var e=t(),f=wd();if(Kd(e,f,b)){f=xd();var g=jd(f,e);Sja(e[11],g,d,f.value,a,b,c)}return Jf},xma=
function(){var a=t(),b=qd(),c=rd();b.firstCreatePass&&sma(b,c,a);if(b=tma(c,a))we("NgSignalForms"),c.flags&1024?uma(a,c,b,"value"):c.flags&2048?uma(a,c,b,"checked"):c.flags&4096?vma(b):wma(a,c,b),b.\u0275register()},Cma=function(a){var b=t(),c=xd(),d=wd();Kd(b,d,a)&&Qja(c,b,"field",a,b[11]);if(a=tma(c,b)){if(a.classes){d=yma(b);d.classes!=null||(d.classes={});a.state();for(var e=b[11],f=jd(c,b),g=l(a.classes),k=g.next();!k.done;k=g.next()){var m=l(k.value);k=m.next().value;m=m.next().value;m=m();
var r=d.classes;Object.is(r[k],m)?r=!1:(r[k]=m,r=!0);r&&(m?e.addClass(f,k):e.removeClass(f,k))}}c.flags&1024?zma(c,b,a,"value"):c.flags&2048?zma(c,b,a,"checked"):c.flags&4096?Ama(b,a):Bma(c,b,a)}wd()},sma=function(a,b,c){var d,e=(d=b.inputs)==null?void 0:d.field;if(e&&!(b.componentOffset>-1&&e.includes(b.directiveStart+b.componentOffset))&&(d=e.find(function(f){return Dma in c[f]}),d!==void 0))if(b.fieldIndex=d,a=Ema(a,b),!a&&c[d].\u0275interopControl)b.flags|=4096;else if(!Fma(b)&&!a)throw new Pc(318,
"'<"+b.value+">' is an invalid [field] directive host. The host must be a native form control (such as <input>', '<select>', or '<textarea>') or a custom form control with a 'value' or 'checked' model.");},Ema=function(a,b){for(var c=b.directiveStart;c<b.directiveEnd;c++){var d=a.data[c];if(Gma(d,"value"))return b.flags|=1024,b.customControlIndex=c,!0;if(Gma(d,"checked"))return b.flags|=2048,b.customControlIndex=c,!0}return!1},Fma=function(a){if(a.type!==2)var b=!1;else b=a.value,b=b==="input"||b===
"textarea"||b==="select";if(!b)return!1;a.flags|=8192;a:{if(a.attrs&&a.value==="input")for(b=0;b<a.attrs.length;b+=2){var c=a.attrs[b];if(uga(c))break;if(c==="type"){b=a.attrs[b+1];b=b==="date"||b==="datetime-local"||b==="month"||b==="number"||b==="range"||b==="time"||b==="week";break a}}b=!1}b&&(a.flags|=16384);a.value!=="select"&&(a.flags|=32768);return!0},tma=function(a,b){a=a.fieldIndex;return a===-1?null:b[a]},Gma=function(a,b){var c=a.inputs[b];return c&&(c[1]&1)!==0&&b+"Change"in a.outputs},
uma=function(a,b,c,d){var e=qd(),f=b.customControlIndex;d+="Change";Zja(b,a,f,d,d,Re(b,a,function(g){return c.state().setControlValue(g)}));"touchedChange"in e.data[f].outputs&&Zja(b,a,f,"touchedChange","touchedChange",Re(b,a,function(){return Kf(c.state())}))},vma=function(a){var b=a.\u0275interopControl;b.registerOnChange(function(c){return a.state().setControlValue(c)});b.registerOnTouched(function(){return Kf(a.state())})},wma=function(a,b,c){var d=qd(),e=a[11],f=jd(b,a),g=function(){var k=c.state();
k.setControlValue(Hma(f,k.value))};Yja(b,d,a,void 0,e,"input",g,Re(b,a,g));g=function(){Kf(c.state())};Yja(b,d,a,void 0,e,"blur",g,Re(b,a,g));b.type===2&&b.value==="select"&&typeof MutationObserver==="function"&&(b=Ima(f,c),dga(d,a,b,b.disconnect))},Ima=function(a,b){var c=new MutationObserver(function(d){d.some(function(e){return Jma(e)})&&(a.value=b.state().value())});c.observe(a,{attributes:!0,attributeFilter:["value"],characterData:!0,childList:!0,subtree:!0});return c},Jma=function(a){if(a.type===
"childList"||a.type==="characterData"){if(a.target instanceof Comment)return!1;for(var b=l(a.addedNodes),c=b.next();!c.done;c=b.next())if(!(c.value instanceof Comment))return!0;a=l(a.removedNodes);for(b=a.next();!b.done;b=a.next())if(!(b.value instanceof Comment))return!0;return!1}return a.type==="attributes"&&a.target instanceof HTMLOptionElement?!0:!1},zma=function(a,b,c,d){var e=a.customControlIndex,f=b[e];e=qd().data[e];var g=c.state(),k=yma(b);Kma(e,f,k,g,Lma,d);d=l(Mma);for(var m=d.next();!m.done;m=
d.next())m=m.value,Kma(e,f,k,g,m,Nma[m]);a.flags&8192&&Bma(a,b,c)},Kma=function(a,b,c,d,e,f){if(f in a.inputs){var g,k=(g=d[e])==null?void 0:g.call(d);Lf(c,e,k)&&Eia(a,b,f,k)}},Ama=function(a,b){var c=b.\u0275interopControl;a=yma(a);b=b.state();var d=b.value();Lf(a,Lma,d)&&Mc(function(){return c.writeValue(d)});if(c.setDisabledState){var e=b.disabled();Lf(a,Oma,e)&&Mc(function(){return c.setDisabledState(e)})}},Bma=function(a,b,c){var d=jd(a,b),e=b[11];c=c.state();b=yma(b);var f=c.controlValue();
Lf(b,Lma,f)&&Pma(d,f);f=c.name();Lf(b,Qma,f)&&e.setAttribute(d,"name",f);Rma(e,d,b,c,Oma);Rma(e,d,b,c,Sma);Rma(e,d,b,c,Tma);a.flags&16384&&(Uma(e,d,b,c,Vma),Uma(e,d,b,c,Wma));a.flags&32768&&(Uma(e,d,b,c,Xma),Uma(e,d,b,c,Yma))},Rma=function(a,b,c,d,e){d=d[e]();Lf(c,e,d)&&(c=Nma[e],d?a.setAttribute(b,c,""):a.removeAttribute(b,c))},Uma=function(a,b,c,d,e){var f,g=(f=d[e])==null?void 0:f.call(d);Lf(c,e,g)&&(c=Nma[e],g!==void 0?a.setAttribute(b,c,g.toString()):a.removeAttribute(b,c))},Hma=function(a,b){switch(a.type){case "checkbox":return a.checked;
case "number":case "range":case "datetime-local":if(typeof b()==="number")return a.valueAsNumber;break;case "date":case "month":case "time":case "week":b=b();if(b===null||b instanceof Date)return a.valueAsDate;if(typeof b==="number")return a.valueAsNumber}return a.value},Pma=function(a,b){switch(a.type){case "checkbox":a.checked=b;return;case "radio":a.checked=b===a.value;return;case "number":case "range":case "datetime-local":if(typeof b==="number"){isNaN(b)?a.value="":a.valueAsNumber=b;return}break;
case "date":case "month":case "time":case "week":if(b===null||b instanceof Date){a.valueAsDate=b;return}if(typeof b==="number"){isNaN(b)?a.value="":a.valueAsNumber=b;return}}a.value=b},yma=function(a){var b=od.bindingIndex,c=a[b];c===Jd&&(c=a[b]={});return c},Lf=function(a,b,c){if(Object.is(a[b],c))return!1;a[b]=c;return!0},Zma=function(a,b,c,d,e){return a===c&&Object.is(b,d)?1:Object.is(e(a,b),e(c,d))?-1:0},ena=function(a,b,c,d){var e=void 0,f=void 0,g=0,k=a.length-1;if(Array.isArray(b)){Fc(d);d=
b.length-1;for(Fc(null);g<=k&&g<=d;){var m=a.at(g),r=b[g],w=Zma(g,m,g,r,c);if(w!==0)w<0&&a.updateValue(g,r),g++;else{var x=a.at(k);w=b[d];var D=Zma(k,x,d,w,c);D!==0?(D<0&&a.updateValue(k,w),k--,d--):(m=c(g,m),x=c(k,x),D=c(g,r),Object.is(D,x)?(x=c(d,w),Object.is(x,m)?($ma(a,g,k),a.updateValue(k,w),d--,k--):a.move(k,g),a.updateValue(g,r),g++):(e!=null||(e=new ana),f!=null||(f=bna(a,g,k,c)),cna(a,e,g,D)?(a.updateValue(g,r),g++,k++):f.has(D)?(e.set(m,a.detach(g)),k--):(r=a.create(g,b[g]),a.attach(g,r),
g++,k++)))}}for(;g<=d;)dna(a,e,c,g,b[g]),g++}else if(b!=null){Fc(d);b=b[Symbol.iterator]();Fc(null);for(d=b.next();!d.done&&g<=k;)r=a.at(g),w=d.value,m=Zma(g,r,g,w,c),m!==0?(m<0&&a.updateValue(g,w),g++,d=b.next()):(e!=null||(e=new ana),f!=null||(f=bna(a,g,k,c)),m=c(g,w),cna(a,e,g,m)?(a.updateValue(g,w),g++,k++,d=b.next()):f.has(m)?(r=c(g,r),e.set(r,a.detach(g)),k--):(a.attach(g,a.create(g,w)),g++,k++,d=b.next()));for(;!d.done;)dna(a,e,c,a.length,d.value),d=b.next()}for(;g<=k;)a.destroy(a.detach(k--));
var H;(H=e)==null||H.forEach(function(J){a.destroy(J)})},cna=function(a,b,c,d){return b!==void 0&&b.has(d)?(a.attach(c,b.get(d)),b.delete(d),!0):!1},dna=function(a,b,c,d,e){cna(a,b,d,c(d,e))?a.updateValue(d,e):(b=a.create(d,e),a.attach(d,b))},bna=function(a,b,c,d){for(var e=new Set;b<=c;b++)e.add(d(b,a.at(b)));return e},F=function(a,b,c,d,e,f){we("NgControlFlow");var g=t(),k=qd();f=ld(k.consts,f);qma(g,k,a,b,c,d,e,f,256);return Mf},Mf=function(a,b,c,d,e,f,g,k){we("NgControlFlow");var m=t(),r=qd();
f=ld(r.consts,f);qma(m,r,a,b,c,d,e,f,512,g,k);return Mf},G=function(a,b){we("NgControlFlow");var c=t(),d=wd(),e=c[d]!==Jd?c[d]:-1;e=e!==-1?c[27+e]:void 0;if(Kd(c,d,a)){d=Fc(null);try{if(e!==void 0&&Cka(e),a!==-1){a=27+a;var f=c[a],g=c[1].data[a],k=Sla(c,g,b,{dehydratedView:null});Aka(f,k,0,Ef(g,null))}}finally{Fc(d)}}else e!==void 0&&(c=yka(e,0),c!==void 0&&(c[8]=b))},Nf=function(a){return a},Of=function(a,b){return b},Pf=function(a,b,c,d,e,f,g,k){we("NgControlFlow");var m=t(),r=qd(),w=t();g=k?g.bind(w[15][8]):
g;w[27+a]=new fna(g);qma(m,r,a+1,b,c,d,e,ld(r.consts,f),256)},Qf=function(a){var b=Fc(null),c=od.selectedIndex;try{var d=t(),e=d[1],f=d[c],g=c+1,k=d[g];f.liveCollection===void 0?f.liveCollection=new gna(k,d,e.data[g]):f.liveCollection.reset();var m=f.liveCollection;ena(m,a,f.trackByFn,b);if(m.needsIndexUpdate)for(a=0;a<m.length;a++)yka(m.lContainer,a)[8].$index=a;if(f.hasEmptyBlock){var r=wd(),w=m.length===0;if(Kd(d,r,w)){c+=2;var x=d[c];if(w){var D=e.data[c],H=Sla(d,D,void 0,{dehydratedView:null});
Aka(x,H,0,Ef(D,null))}else{if(e.firstUpdatePass){var J,O=(J=x[6])!=null?J:[],R=x[3][11];d=[];for(var V=l(O),ba=V.next();!ba.done;ba=V.next()){var pa=ba.value;if(pa.data.di!==void 0)d.push(pa);else{O=0;var ua=pa.firstChild;if(ua)for(var ma=pa.data.r;O<ma;){var Da=ua.nextSibling;R.removeChild(null,ua,!1,void 0);ua=Da;O++}}}x[6]=d}Cka(x)}}}}finally{Fc(b)}},Rf=function(a,b,c){var d=t(),e=wd();Kd(d,e,b)&&(e=xd(),Pja(e,d,a,b,d[11],c));return Rf},hna=function(a,b,c){var d=t(),e=wd();if(Kd(d,e,b)){e=qd();
var f=xd();Pja(f,d,a,b,Uja(iga(e.data),f,d),c)}return hna},I=function(a,b,c){var d=t(),e=wd();Kd(d,e,b)&&(e=xd(),Qja(e,d,a,b,d[11],c));return I},K=function(a,b,c,d){var e=t(),f=e[1],g=a+27;c=f.firstCreatePass?lka(g,e,2,b,Rja,c,d):f.data[g];Tja(c,e,a,b,ina);(c.flags&1)===1&&(a=e[1],Lja(a,e,c),bka(a,c,e));d!=null&&Ne(e,c);return K},L=function(){var a=qd(),b=Qe();a.firstCreatePass&&mka(a,b);Ue===b&&(Ue=null);od.elementDepthCount--;b.classesWithoutHost!=null&&(b.flags&8)!==0&&Oe(b,a,t(),"class",b.classesWithoutHost);
b.stylesWithoutHost!=null&&(b.flags&16)!==0&&Oe(b,a,t(),"style",b.stylesWithoutHost);return L},M=function(a,b,c,d){K(a,b,c,d);L();return M},Sf=function(a,b,c,d){var e=t(),f=e[1],g=a+27;c=f.firstCreatePass?nka(g,f,2,b,c,d):f.data[g];Tja(c,e,a,b,ina);d!=null&&Ne(e,c);return Sf},Tf=function(){var a=Qe();Ue===a&&(Ue=null);od.elementDepthCount--;return Tf},Uf=function(a,b,c,d){Sf(a,b,c,d);Tf();return Uf},Vf=function(a,b,c){var d=t(),e=d[1],f=a+27;b=e.firstCreatePass?lka(f,d,8,"ng-container",Rja,b,c):e.data[f];
Tja(b,d,a,"ng-container",jna);(b.flags&1)===1&&(a=d[1],Lja(a,d,b),bka(a,b,d));c!=null&&Ne(d,b);return Vf},Wf=function(){var a=qd(),b=Qe();a.firstCreatePass&&mka(a,b);return Wf},Xf=function(a,b,c){Vf(a,b,c);Wf();return Xf},Yf=function(a,b,c){var d=t(),e=d[1],f=a+27;b=e.firstCreatePass?nka(f,e,8,"ng-container",b,c):e.data[f];Tja(b,d,a,"ng-container",jna);c!=null&&Ne(d,b);return Yf},Zf=function(a){var b=a.toLowerCase().replace(/_/g,"-");if(a=kna(b))return a;b=b.split("-")[0];if(a=kna(b))return a;if(b===
"en")return lna;throw new Pc(701,!1);},kna=function(a){a in mna||(mna[a]=Je.ng&&Je.ng.common&&Je.ng.common.locales&&Je.ng.common.locales[a]);return mna[a]},qna=function(a){var b=qd(),c=t();nna>0&&(a=b.data[a],ona(b,c,Array.isArray(a)?a:a.update,od.bindingIndex-nna-1,pna));nna=pna=0},sna=function(a,b,c,d){for(var e=c[11],f=null,g,k=0;k<b.length;k++){var m=b[k];if(typeof m=="string"){var r=b[++k];c[r]===null&&(c[r]=rna(c,m,Node.TEXT_NODE))}else if(typeof m=="number")switch(m&1){case 0:var w=m>>>17;
f===null&&(f=w,g=e.parentNode(d));w===f?(r=d,w=g):(r=null,w=id(c[w]));w!==null&&(m=(m&131070)>>>1,e.insertBefore(w,c[m],r,!1),m=ema(a,m),m!==null&&typeof m==="object"&&(r=fma(m,c),r!==null&&sna(a,m.create[r],c,c[m.anchorIdx])));break;case 1:m>>>=1,r=b[++k],w=b[++k],Sja(e,id(c[m]),null,null,r,w,null)}else switch(m){case tna:m=b[++k];r=b[++k];c[r]===null&&(m=c[r]=rna(c,m,Node.COMMENT_NODE),Fd(m,c));break;case una:m=b[++k],r=b[++k],c[r]===null&&(m=c[r]=rna(c,m,Node.ELEMENT_NODE),Fd(m,c))}}},ona=function(a,
b,c,d,e){for(var f=0;f<c.length;f++){var g=c[f],k=c[++f];if(g&e){g="";for(var m=f+1;m<=f+k;m++){var r=c[m];if(typeof r=="string")g+=r;else if(typeof r=="number")if(r<0)g+=Oc(b[d-r]);else{var w=r>>>2;switch(r&3){case 1:r=c[++m];var x=c[++m],D=a.data[w];typeof D==="string"?Sja(b[11],b[w],null,D,r,g,x):Qja(D,b,r,g,b[11],x);break;case 0:r=b[w];r!==null&&b[11].setValue(r,g);break;case 2:r=a;w=ema(a,w);x=b;D=w;var H=g;var J=D.cases.indexOf(H);if(J===-1)switch(D.type){case 1:J=(0,Zf(vna)[20])(parseInt(H,
10));J=wna[J];H=J!==void 0?J:"other";J=D.cases.indexOf(H);J===-1&&H!=="other"&&(J=D.cases.indexOf("other"));break;case 0:J=D.cases.indexOf("other")}D=J===-1?null:J;fma(w,x)!==D&&(xna(r,w,x),x[w.currentCaseLViewIndex]=D===null?null:~D,D!==null&&(J=x[w.anchorIdx])&&sna(r,w.create[D],x,J));break;case 3:yna(a,ema(a,w),d,b)}}}}else g=c[f+1],g>0&&(g&3)===3&&(g=ema(a,g>>>2),b[g.currentCaseLViewIndex]<0&&yna(a,g,d,b));f+=k}},yna=function(a,b,c,d){var e=d[b.currentCaseLViewIndex];if(e!==null){var f=pna;e<
0&&(e=d[b.currentCaseLViewIndex]=~e,f=-1);ona(a,d,b.update[e],c,f)}},xna=function(a,b,c){var d=fma(b,c);if(d!==null)for(b=b.remove[d],d=0;d<b.length;d++){var e=b[d];e>0?(e=id(c[e]),e!==null&&c[11].removeChild(null,e,void 0,void 0)):xna(a,ema(a,~e),c)}},zna=function(a,b,c,d,e,f,g){var k=fja(a,d,1,null),m=k<<2;d=ega();b===d&&(d=null);d===null&&(m|=1);g&&(m|=2,$ia===void 0&&($ia=ima()));e.push(m,f===null?"":f);a=fka(a,k,g?32:1,f===null?"":f,null);dma(c,a);c=a.index;td(a,!1);if(d!==null&&b!==d)if(b=d.insertBeforeIndex,
b===null)Via=bma,Wia=cma,d.insertBeforeIndex=[null,c];else{d=Array.isArray(b);if(d!=1)throw Error("qa`Expecting array here` [Expected=> true == "+(d+" <=Actual]"));b.push(c)}return a},Bna=function(a,b,c,d,e){var f=a.length,g=f+1;a.push(null,null);var k=f+2;b=b.split(Ana);for(var m=0,r=0;r<b.length;r++){var w=b[r];r&1?(w=parseInt(w,10),a.push(-1-w),m|=1<<Math.min(w,31)):w!==""&&a.push(w)}a.push(c<<2|(d?1:0));d&&a.push(d,e);a[f]=m;a[g]=a.length-k;return m},Dna=function(a){for(var b,c="",d=0,e=!1,f;(b=
Cna.exec(a))!==null;)e?b[0]==="\ufffd/*"+f+"\ufffd"&&(d=b.index,e=!1):(c+=a.substring(d,b.index+b[0].length),f=b[1],e=!0);return c+=a.slice(d)},Fna=function(a,b,c,d,e,f,g){var k=0,m={type:f.type,currentCaseLViewIndex:fja(b,c,1,null),anchorIdx:g,cases:[],create:[],remove:[],update:[]};d.push(1<<Math.min(f.mainBinding,31),2,-1-f.mainBinding,g<<2|2);var r=b.data[g];r===null?b.data[g]=m:r.value=m;r=f.values;for(var w=[],x=0;x<r.length;x++){for(var D=r[x],H=[],J=0;J<D.length;J++){var O=D[J];typeof O!==
"string"&&(O=H.push(O)-1,D[J]="\x3c!--\ufffd"+O+"\ufffd--\x3e")}J=[];w.push(J);O=b;var R=m,V=c,ba=d,pa=e,ua=D.join("");D=[];var ma=[],Da=[];R.cases.push(f.cases[x]);R.create.push(D);R.remove.push(ma);R.update.push(Da);ua=mja($ga()).getInertBodyElement(ua);ua=wja(ua)||ua;k|=ua?Ena(J,O,R,V,ba,D,ma,Da,ua,pa,H,0):0}k&&d.push(k,1,g<<2|3);a.push({kind:3,index:g,cases:w,currentCaseLViewIndex:m.currentCaseLViewIndex})},Ina=function(a){var b=[],c=[],d=1,e=0;a=a.replace(Gna,function(k,m,r){d=r==="select"?0:
1;e=parseInt(m.slice(1),10);return""});a=Hna(a);for(var f=0;f<a.length;){var g=a[f++].trim();d===1&&(g=g.replace(/\s*(?:=)?(\w+)\s*/,"$1"));g.length&&b.push(g);g=Hna(a[f++]);b.length>c.length&&c.push(g)}return{type:d,mainBinding:e,cases:b,values:c}},Hna=function(a){if(!a)return[];var b=0,c=[],d=[],e=/[{}]/g;e.lastIndex=0;for(var f;f=e.exec(a);){var g=f.index;f[0]=="}"?(c.pop(),c.length==0&&(b=a.substring(b,g),Gna.test(b)?d.push(Ina(b)):d.push(b),b=g+1)):(c.length==0&&(d.push(a.substring(b,g)),b=g+
1),c.push("{"))}d.push(a.substring(b));return d},Ena=function(a,b,c,d,e,f,g,k,m,r,w,x){var D=0;for(m=m.firstChild;m;){var H=fja(b,d,1,null);switch(m.nodeType){case Node.ELEMENT_NODE:var J=m,O=J.tagName.toLowerCase();if(xja.hasOwnProperty(O)){var R=f,V=una,ba=O,pa=r;V!==null&&R.push(V);R.push(ba,H,0|pa<<17|H<<1);b.data[H]=O;J=J.attributes;for(O=0;O<J.length;O++)R=J.item(O),V=R.name.toLowerCase(),R.value.match(Ana)?yja.hasOwnProperty(V)&&(zja[V]?Bna(k,R.value,H,R.name,oja):Bna(k,R.value,H,R.name,null)):
f.push(H<<1|1,R.name,R.value);J={kind:1,index:H,children:[]};a.push(J);D|=Ena(J.children,b,c,d,e,f,g,k,m,H,w,x+1);x===0&&g.push(H)}break;case Node.TEXT_NODE:J=m.textContent||"";O=J.match(Ana);f.push(O?"":J,H,0|r<<17|H<<1);x===0&&g.push(H);O&&(D|=Bna(k,J,H,null,null));a.push({kind:0,index:H});break;case Node.COMMENT_NODE:if(J=Jna.exec(m.textContent||""))J=w[parseInt(J[1],10)],O=f,R=tna,V=r,R!==null&&O.push(R),O.push("",H,0|V<<17|H<<1),Fna(a,b,d,e,r,J,H),J=g,x===0&&(J.push(~H),J.push(H))}m=m.nextSibling}return D},
Mna=function(a,b){var c=c===void 0?-1:c;var d=qd(),e=t();a=27+a;var f=ld(d.consts,b);b=ega();if(d.firstCreatePass){var g=b===null?0:b.index,k=ega(),m=[],r=[],w=[[]],x=[[]];if(c===-1)c=Dna(f);else{var D=f.indexOf(":"+c+"\ufffd")+2+c.toString().length;c=f.search(new RegExp("\ufffd\\/\\*\\d+:"+c+"\ufffd"));c=Dna(f.substring(D,c))}f=c.replace(Kna," ").split(Lna);for(D=0;D<f.length;D++){var H=f[D];if((D&1)===0){var J=Hna(H);for(H=0;H<J.length;H++){var O=J[H];if((H&1)===0){if(O!==""){var R=x[0],V=d,ba=
k,pa=w[0],ua=O.match(Ana);V=zna(V,ba,pa,e,m,ua?null:O,!1).index;ua&&Bna(r,O,V,null,null);R.push({kind:0,index:V})}}else{if(typeof O!=="object")throw Error("Ja`"+c);R=zna(d,k,w[0],e,m,"",!0).index;Fna(x[0],d,e,r,g,O,R)}}}else O=H.charCodeAt(0)===47,J=H.charCodeAt(O?1:0),H=27+Number.parseInt(H.substring(O?2:1)),O?(w.shift(),x.shift(),td(ega(),!1)):(O=w[0],R=fka(d,H,64,null,null),dma(O,R),O=R,w.unshift([]),td(O,!0),J={kind:2,index:H,children:[],type:J===35?0:1},x[0].push(J),x.unshift(J.children))}d.data[a]=
{create:m,update:r,ast:x[0],parentTNodeIndex:g}}d.type===2?e[15][2]|=32:e[2]|=32;a=d.data[a];d=Tia(d,b===e[5]?null:b,e);a=a.create;b=b&&b.type&8?e[b.index]:null;g=e[11];for(k=0;k<a.length;k++)x=a[k++],m=a[k],r=(x&2)===2,w=(x&1)===1,x>>>=2,c=e[x],f=!1,c===null&&(c=e[x]=rna(e,m,r?Node.COMMENT_NODE:Node.TEXT_NODE),f=Pe),w&&d!==null&&f&&g.insertBefore(d,c,b,!1);od.inI18n=!0},$f=function(a,b){Mna(a,b);od.inI18n=!1},ag=function(a){Kd(t(),wd(),a)&&(pna|=1<<Math.min(nna,31));nna++;return ag},bg=function(a){we("NgLet");
var b=qd(),c=t();a+=27;var d=Te(b,a,128,null,null);td(d,!1);Xfa(b,c,a,Nna);return bg},cg=function(a){Xfa(qd(),t(),od.selectedIndex,a);return a},dg=function(a){a=od.contextLView[27+a];if(a===Nna)throw new Pc(314,!1);return a},N=function(a,b,c){var d=t();Ona(qd(),d,d[11],rd(),a,b,c);return N},Pna=function(a,b){var c=rd(),d=t(),e=qd();Ona(e,d,Uja(iga(e.data),c,d),c,a,b);return Pna},eg=function(a,b,c){var d=t(),e=qd(),f=rd();(f.type&3||c)&&Yja(f,e,d,c,d[11],a,b,Re(f,d,b));return eg},Ona=function(a,b,
c,d,e,f,g){var k=!0,m=null;if(d.type&3||g)m!=null||(m=Re(d,b,f)),Yja(d,a,b,g,c,e,f,m)&&(k=!1);if(k){var r;a=(r=d.outputs)==null?void 0:r[e];var w;if((r=(w=d.hostDirectiveOutputs)==null?void 0:w[e])&&r.length)for(w=0;w<r.length;w+=2)c=r[w],g=r[w+1],m!=null||(m=Re(d,b,f)),Zja(d,b,c,g,e,m);if(a&&a.length)for(w=l(a),r=w.next();!r.done;r=w.next())r=r.value,m!=null||(m=Re(d,b,f)),Zja(d,b,r,e,e,m)}},P=function(a){a=a===void 0?1:a;for(var b=od.contextLView;a>0;)b=b[14],a--;return(od.contextLView=b)[8]},fg=
function(a){var b=t()[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,g=null;b:{var k=e.attrs;if(k!=null){var m=k.indexOf(5);if((m&1)===0){k=k[m+1];break b}}k=null}for(m=0;m<f.length;m++){var r=f[m];if(r==="*")g=m;else{if(k===null)r=Xga(e,r,!0);else b:{var w=0;c:for(;w<r.length;w++){var x=r[w];if(k.length===x.length){for(var D=0;D<k.length;D++)if(k[D]!==x[D])continue c;r=!0;break b}}r=
!1}if(r){e=m;break a}}}e=g}else e=0;e!==null&&(d[e]?d[e].projectionNext=b:c[e]=b,d[e]=b)}b=b.next}}},gg=function(a,b,c,d,e,f){b=b===void 0?0:b;var g=t(),k=qd(),m=d?a+1:null;m!==null&&qma(g,k,m,d,e,f,null,c);a=Te(k,27+a,16,null,c||null);a.projection===null&&(a.projection=b);od.isParent=!1;b=!g[6]||Ue!==null;g[15][5].projection[a.projection]===null&&m!==null?(m=27+m,k=k.data[m],m=g[m],g=Sla(g,k,void 0,{dehydratedView:null}),Aka(m,g,0,Ef(k,null))):b&&(a.flags&32)!==32&&(m=g[11],k=Tia(k,a.parent,g),b=
Via(a.parent||g[5],a,g),aja(m,0,g,a,k,b))},Qna=function(){return this._results[Symbol.iterator]()},Sna=function(){return Rna(rd(),t())},Rna=function(a,b){return a.type&4?new hg(b,a,Hd(a,b)):null},Tna=function(a,b,c,d){d=b[18].queries[d];if(d.matches===null){a=a.data;for(var e=c.matches,f=[],g=0;e!==null&&g<e.length;g+=2){var k=e[g];if(k<0)f.push(null);else{var m=f,r=m.push,w=b,x=a[k],D=e[g+1];k=c.metadata.read;D===-1?(k=x,w=k.type&11?Hd(k,w):k.type&4?Rna(k,w):null):D===-2?w=k===Gd?Hd(x,w):k===hg?
Rna(x,w):k===ig?jma(x,w):void 0:w=Oga(w,w[1],D,x);r.call(m,w)}}d.matches=f}return d.matches},Una=function(a,b,c,d){var e=a.queries.queries[c],f=e.matches;if(f!==null)for(a=Tna(a,b,e,c),c=0;c<f.length;c+=2){var g=f[c];if(g>0)d.push(a[c/2]);else{e=f[c+1];g=b[-g];for(var k=10;k<g.length;k++){var m=g[k];m[16]===m[3]&&Una(m[1],m,e,d)}if(g[9]!==null)for(g=g[9],k=0;k<g.length;k++)m=g[k],Una(m[1],m,e,d)}}return d},Xna=function(a,b){var c=t();b=new jg((b&4)===4);dga(a,c,b,b.destroy);var d;return((d=c[18])!=
null?d:c[18]=new Vna).queries.push(new Wna(b))-1},kg=function(a,b,c){var d=qd();d.firstCreatePass&&(Yna(d,new Zna(a,b,c),-1),(b&2)===2&&(d.staticViewQueries=!0));return Xna(d,b)},lg=function(a,b,c,d){var e=qd();if(e.firstCreatePass){var f=rd();Yna(e,new Zna(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 Xna(e,c)},$na=function(a){return a.split(",").map(function(b){return b.trim()})},
Yna=function(a,b,c){a.queries===null&&(a.queries=new aoa);a.queries.track(new mg(b,c))},boa=function(a,b){var c=a[1],d=c.queries.queries[b];return d.crossesNgTemplate?Una(c,a,b,[]):Tna(c,a,d,b)},og=function(a){var b=t(),c=qd(),d=od.currentQueryIndex;od.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=boa(b,d),a.reset(b,cha),ng(a)),!0):!1},pg=function(){return t()[18].queries[od.currentQueryIndex].queryList},qg=
function(a,b){var c=l(Yea(a,b==null?void 0:b.equal));a=c.next().value;b=c.next().value;c=c.next().value;a.set=b;a.update=c;a.asReadonly=coa.bind(a);return a},coa=function(){var a=this,b=this[Kc];if(b.readonlyFn===void 0){var c=function(){return a()};c[Kc]=b;b.readonlyFn=c}return b.readonlyFn},doa=function(a,b){var c=Vea(function(){d._dirtyCounter();var e=d;var f=e._lView,g=e._queryIndex;if(f===void 0||g===void 0||f[2]&4)e=a?void 0:$c;else{var k=f[18].queries[g].queryList;f=boa(f,g);k.reset(f,cha);
e=a?k.first:k._changesDetected||e._flatValue===void 0?e._flatValue=k.toArray():e._flatValue}if(b&&e===void 0)throw new Pc(-951,!1);return e});var d=c[Kc];d._dirtyCounter=qg(0);d._flatValue=void 0;return c},foa=function(a,b){var c=a[Kc];c._lView=t();c._queryIndex=b;c._queryList=c._lView[18].queries[b].queryList;eoa(c._queryList,function(){return c._dirtyCounter.update(function(d){return d+1})})},rg=function(a,b,c){foa(a,kg(b,5,c))},sg=function(a){od.currentQueryIndex+=a===void 0?1:a},Q=function(a){return od.contextLView[27+
a]},goa=function(a,b,c,d){for(var e=a[c+1],f=b===null,g=d?e>>17&32767:(e&131068)>>2,k=!1;g!==0&&(k===!1||f);){var m=a[g+1],r=a[g];if(r===null||b==null||(Array.isArray(r)?r[1]:r)===b||Array.isArray(r)&&typeof b==="string"&&wfa(r,b)>=0)k=!0,a[g+1]=d?m|1:m|2;g=d?m>>17&32767:(m&131068)>>2}k&&(a[c+1]=d?e|2:e|1)},hoa=function(a,b){var c=tg;if(c===b)return-1;for(b=ug=b;b<c&&a.charCodeAt(b)>32;)b++;b=vg=b;return wg(a,b,c)},moa=function(a,b){var c=tg;b=ug=wg(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=vg=b;b=ioa(a,b,c);d=b=joa=wg(a,b,c);for(var e=b=-1,f=-1,g=d,k=g;g<c;){var m=a.charCodeAt(g++);if(m===59)break;else m===34||m===39?k=g=koa(a,m,g,c):d===g-4&&f===85&&e===82&&b===76&&m===40?k=g=koa(a,41,g,c):m>32&&(k=g);f=e;e=b;b=m&-33}b=loa=k;return ioa(a,b,c)},wg=function(a,b,c){for(;b<c&&a.charCodeAt(b)<=32;)b++;return b},ioa=function(a,b,c){b=wg(a,b,c);b<c&&b++;return b},koa=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();},xg=function(a,b,c){noa(a,b,c,!1);return xg},yg=function(a,b){noa(a,b,null,!0);return yg},poa=function(a,b){var c;loa=joa=vg=ug=0;tg=b.length;for(c=moa(b,wg(b,0,tg));c>=0;c=moa(b,c))ooa(a,b.substring(ug,vg),b.substring(joa,loa))},zg=function(a){qoa(roa,soa,a,!0)},soa=function(a,b){var c;loa=joa=vg=ug=0;tg=b.length;for(c=hoa(b,wg(b,0,tg));c>=0;c=hoa(b,c))xfa(a,b.substring(ug,vg),!0)},noa=function(a,b,c,d){var e=t(),f=qd(),g=hga(2);f.firstUpdatePass&&
toa(f,a,g,d);if(b!==Jd&&Kd(e,g,b)){var k=f.data[od.selectedIndex],m=e[11];b!=null&&b!==""&&(typeof c==="string"?b+=c:typeof b==="object"&&(b=Nc(He(b))));uoa(f,k,e,m,a,e[g+1]=b,d,g)}},qoa=function(a,b,c,d){var e=qd(),f=hga(2);e.firstUpdatePass&&toa(e,null,f,d);var g=t();if(c!==Jd&&Kd(g,f,c)){var k=e.data[od.selectedIndex];if((k.flags&(d?8:16))===0||f>=e.expandoStartIndex){var m=g[11],r=g[f+1];if(c==null||c==="")a=$c;else{var w=[];c=He(c);if(Array.isArray(c))for(b=0;b<c.length;b++)a(w,c[b],!0);else if(typeof c===
"object")for(var x in c)c.hasOwnProperty(x)&&a(w,x,c[x]);else typeof c==="string"&&b(w,c);a=w}a=g[f+1]=a;r===Jd&&(r=$c);b=w=0;c=0<r.length?r[0]:null;for(x=0<a.length?a[0]:null;c!==null||x!==null;){var D=w<r.length?r[w+1]:void 0,H=b<a.length?a[b+1]:void 0,J=null,O=void 0;c===x?(w+=2,b+=2,D!==H&&(J=x,O=H)):x===null||c!==null&&c<x?(w+=2,J=c):(b+=2,J=x,O=H);J!==null&&uoa(e,k,g,m,J,O,d,f);c=w<r.length?r[w]:null;x=b<a.length?a[b]:null}}else f=d?k.classesWithoutHost:k.stylesWithoutHost,f!==null&&(c=afa(f,
c?c:"")),Oe(k,e,g,d?"class":"style",c)}},toa=function(a,b,c,d){var e=a.data;if(e[c+1]===null){var f=e[od.selectedIndex];a=c>=a.expandoStartIndex;(f.flags&(d?8:16))!==0&&b===null&&!a&&(b=!1);var g=iga(e),k=d?f.residualClasses:f.residualStyles;if(g===null)(d?f.classBindings:f.styleBindings)===0&&(b=voa(null,e,f,b,d),b=woa(b,f.attrs,d),k=null);else{var m=f.directiveStylingLast;if(m===-1||e[m]!==g)if(b=voa(g,e,f,b,d),k===null)g=d?f.classBindings:f.styleBindings,g=(g&131068)>>2!==0?e[g>>17&32767]:void 0,
g!==void 0&&Array.isArray(g)&&(g=voa(null,e,f,g[1],d),g=woa(g,f.attrs,d),e[(d?f.classBindings:f.styleBindings)>>17&32767]=g);else{k=void 0;g=f.directiveEnd;for(m=1+f.directiveStylingLast;m<g;m++)k=woa(k,e[m].hostAttrs,d);k=woa(k,f.attrs,d)}}k!==void 0&&(d?f.residualClasses=k:f.residualStyles=k);g=b;k=d?f.classBindings:f.styleBindings;b=k>>17&32767;k=(k&131068)>>2;e[c]=g;m=!1;if(Array.isArray(g)){var r=g[1];if(r===null||wfa(g,r)>0)m=!0}else r=g;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);m&&(e[c+1]|=2);goa(e,r,c,!0);goa(e,r,c,!1);a=r;g=d?f.residualClasses:f.residualStyles;g!=null&&typeof a=="string"&&wfa(g,a)>=0&&(e[c+1]|=1);k=b<<17|k<<2;d?f.classBindings=k:f.styleBindings=k}},voa=function(a,b,c,d,e){var f=c.directiveEnd,g=c.directiveStylingLast;for(g===-1?g=c.directiveStart:g++;g<f;){var k=b[g];d=woa(d,k.hostAttrs,
e);if(k===a)break;g++}a!==null&&(c.directiveStylingLast=g);return d},woa=function(a,b,c){var d=c?1:2,e=-1;if(b!==null)for(var f=0;f<b.length;f++){var g=b[f];typeof g==="number"?e=g:e===d&&(Array.isArray(a)||(a=a===void 0?[]:["",a]),xfa(a,g,c?!0:b[++f]))}return a===void 0?null:a},ooa=function(a,b,c){xfa(a,b,He(c))},roa=function(a,b,c){b=String(b);b===""||b.includes(" ")||xfa(a,b,c)},uoa=function(a,b,c,d,e,f,g,k){if(b.type&3){a=a.data;var m=a[k+1];((m&1)===1?xoa(a,b,c,e,(m&131068)>>2,g):void 0)===void 0&&
(f!==void 0||(m&2)==2&&(f=xoa(a,null,c,e,k,g)),b=id(c[od.selectedIndex]),g?f?d.addClass(b,e):d.removeClass(b,e):(g=e.indexOf("-")===-1?void 0:2,f==null?d.removeStyle(b,e,g):(typeof f==="string"&&f.endsWith("!important")&&(f=f.slice(0,-10),g|=1),d.setStyle(b,e,f,g))))}},xoa=function(a,b,c,d,e,f){for(var g=b===null,k=void 0;e>0;){var m=a[e],r=Array.isArray(m),w=r?m[1]:m,x=w===null,D=c[e+1];D===Jd&&(D=x?$c:void 0);w=x?yfa(D,d):w===d?D:void 0;r&&w===void 0&&(w=yfa(m,d));if(w!==void 0&&(k=w,g))return k;
e=a[e+1];e=g?e>>17&32767:(e&131068)>>2}b!==null&&(a=f?b.residualClasses:b.residualStyles,a!=null&&(k=yfa(a,d)));return k},S=function(a,b){b=b===void 0?"":b;var c=t(),d=qd();a+=27;var e=d.firstCreatePass?Te(d,a,1,b,null):d.data[a];Pe=!0;b=c[11].createText(b);c[a]=b;Pe&&Xia(d,c,b,e);td(e,!1)},yoa=function(a,b,c,d){d=d===void 0?"":d;return Kd(a,wd(),c)?b+Oc(c)+d:Jd},zoa=function(a,b,c,d,e,f){f=f===void 0?"":f;a=Ld(a,od.bindingIndex,c,e);hga(2);return a?b+Oc(c)+d+Oc(e)+f:Jd},Ag=function(a){T("",a);return Ag},
T=function(a,b,c){var d=t();a=yoa(d,a,b,c);a!==Jd&&Aoa(d,a);return T},Bg=function(a,b,c,d,e){var f=t();a=zoa(f,a,b,c,d,e);a!==Jd&&Aoa(f,a);return Bg},Boa=function(a,b,c,d,e,f,g,k,m){var r=t();m=m===void 0?"":m;var w=od.bindingIndex;var x=Ld(r,w,b,d);w=Ld(r,w+2,f,k)||x;hga(4);a=w?a+Oc(b)+c+Oc(d)+e+Oc(f)+g+Oc(k)+m:Jd;a!==Jd&&Aoa(r,a);return Boa},Aoa=function(a,b){a[11].setValue(id(a[od.selectedIndex]),b)},Cg=function(a,b,c){ef(b)&&typeof b.set==="function"&&(b=b());var d=t(),e=wd();Kd(d,e,b)&&(e=xd(),
Qja(e,d,a,b,d[11],c));return Cg},Dg=function(a,b){var c=ef(a)&&typeof a.set==="function";c&&a.set(b);return c},Eg=function(a,b){var c=t();Ona(qd(),c,c[11],rd(),a,b);return Eg},Fg=function(a){return Kd(t(),wd(),a)?Oc(a):Jd},Gg=function(a,b,c){return yoa(t(),a,b,c===void 0?"":c)},Hg=function(a,b,c,d,e){return zoa(t(),a,b,c,d,e===void 0?"":e)},Coa=function(a,b,c,d,e,f){var g="",k=t();g=g===void 0?"":g;var m=od.bindingIndex,r=Ld(k,m,b,d);k=Kd(k,m+2,f)||r;hga(3);return k?a+Oc(b)+c+Oc(d)+e+Oc(f)+g:Jd},
Doa=function(a,b,c,d,e){a=Vc(a);if(Array.isArray(a))for(var f=0;f<a.length;f++)Doa(a[f],b,c,d,e);else{f=qd();var g=t(),k=rd(),m=ad(a)?a:Vc(a.provide),r=Nfa(a),w=k.providerIndexes&1048575,x=k.directiveStart,D=k.providerIndexes>>20;if(ad(a)||!a.multi)d=new Pga(r,e),r=Eoa(m,b,e?w:w+D,x),r===-1?(r=Gga(k,g),Cga(r,f,m),Foa(f,a,b.length),b.push(m),k.directiveStart++,k.directiveEnd++,e&&(k.providerIndexes+=1048576),c.push(d),g.push(d)):(c[r]=d,g[r]=d);else{x=Eoa(m,b,w+D,x);w=Eoa(m,b,w,w+D);var H=x>=0&&c[x];
D=w>=0&&c[w];e&&!D||!e&&!H?(x=Gga(k,g),Cga(x,f,m),x=c.length,H=new Pga(e?Goa:Hoa,e),H.multi=[],H.index=x,H.componentProviders=0,d&&!e&&H.componentProviders++,H.multi.push(r),!e&&D&&(c[w].providerFactory=H),Foa(f,a,b.length,0),b.push(m),k.directiveStart++,k.directiveEnd++,e&&(k.providerIndexes+=1048576),c.push(H),g.push(H)):(b=c[e?w:x],!e&&d&&b.componentProviders++,b=b.multi.push(r)-1,Foa(f,a,x>-1?x:w,b));!e&&d&&D&&c[w].componentProviders++}}},Foa=function(a,b,c,d){var e=ad(b),f=!!b.useClass;if(e||
f)if(f=(f?Vc(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)},Eoa=function(a,b,c,d){for(;c<d;c++)if(b[c]===a)return c;return-1},Hoa=function(){return Ioa(this.multi,[])},Goa=function(a,b,c,d,e){var f=this.multi;if(this.providerFactory){var g=this.providerFactory.componentProviders;e=Oga(d,d[1],this.providerFactory.index,e);d=e.slice(0,g);Ioa(f,d);for(f=g;f<e.length;f++)d.push(e[f])}else d=[],
Ioa(f,d);return d},Ioa=function(a,b){for(var c=0;c<a.length;c++)b.push((0,a[c])());return b},Ig=function(a){var b=b===void 0?[]:b;return function(c){c.providersResolver=function(d,e){e=e?e(a):a;var f=qd();f.firstCreatePass&&(d=!!d.template,Doa(b,f.data,f.blueprint,d,!0),Doa(e,f.data,f.blueprint,d,!1))}}},Jg=function(a,b){a=vd()+a;var c=t();return c[a]===Jd?lha(c,a,b()):c[a]},Kg=function(a,b,c){return Joa(t(),vd(),a,b,c)},Lg=function(a,b,c,d){return Koa(t(),vd(),a,b,c,d)},Mg=function(a,b,c,d,e){return Loa(t(),
vd(),a,b,c,d,e)},Ooa=function(a,b,c,d){var e=Moa,f=t(),g=vd()+6,k=Ld(f,g,a,b);return Ld(f,g+2,c,d)||k?lha(f,g+4,e(a,b,c,d)):Noa(f,g+4)},Noa=function(a,b){a=a[b];return a===Jd?void 0:a},Joa=function(a,b,c,d,e,f){b+=c;return Kd(a,b,e)?lha(a,b+1,f?d.call(f,e):d(e)):Noa(a,b+1)},Koa=function(a,b,c,d,e,f,g){b+=c;return Ld(a,b,e,f)?lha(a,b+2,g?d.call(g,e,f):d(e,f)):Noa(a,b+2)},Loa=function(a,b,c,d,e,f,g,k){b+=c;c=Ld(a,b,e,f);return Kd(a,b+2,g)||c?lha(a,b+3,k?d.call(k,e,f,g):d(e,f,g)):Noa(a,b+3)},U=function(a,
b){var c=qd();a+=27;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 g;((g=c.destroyHooks)!=null?g:c.destroyHooks=[]).push(a,b.onDestroy)}}else b=c.data[a];g=b.factory||(b.factory=Xc(b.type));b=Qc(Ve);try{var k=zga(!1),m=g();zga(k);Xfa(c,t(),a,m)}finally{Qc(b)}},W=function(a,b,c){a+=27;var d=t(),e=d[a];return d[1].data[a].pure?Joa(d,vd(),b,e.transform,c,e):e.transform(c)},Ng=function(a,
b,c,d){a+=27;var e=t(),f=e[a];return e[1].data[a].pure?Koa(e,vd(),b,f.transform,c,d,f):f.transform(c,d)},Poa=function(a,b,c,d){a+=27;var e=t(),f=e[a];return e[1].data[a].pure?Loa(e,vd(),b,f.transform,c,0,d,f):f.transform(c,0,d)},Og=function(a,b){return Rna(a,b)},Soa=function(a,b){function c(){Hc(d);if(d.value===Qoa)throw new Pc(-950,null);return d.value}var d=Object.create(Roa);d.value=a;d.transformFn=b==null?void 0:b.transform;c[Kc]=d;return c},Pg=function(){return new Toa},Qg=function(a,b){return Soa(a,
b)},Uoa=function(a){function b(){Hc(c);if(c.value===Qoa)throw new Pc(952,!1);return c.value}var c=Object.create(Roa),d=new Toa;c.value=a;b[Kc]=c;b.asReadonly=coa.bind(b);b.set=function(e){c.equal(c.value,e)||(Lc(c,e),d.emit(e))};b.update=function(e){if(c.value===Qoa)throw new Pc(952,!1);b.set(e(c.value))};b.subscribe=d.subscribe.bind(d);b.destroyRef=d.destroyRef;return b},Voa=function(a){return Uoa(a)},Rg=function(){return doa(!0,!1)},Woa=function(){return doa(!1,!1)},Xoa=function(){return doa(!0,
!1)},Yoa=function(a){var b=rd(),c=t();b.componentOffset>-1&&(a&16)!==16?(a=kd(b.index,c),a=new Sg(a,a)):a=b.type&175?new Sg(c[15],c):null;return a},Zoa=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},cpa=function(a){var b=a.ngZoneFactory;var c=a.scheduleInRootZone;b!=null||(b=function(){return new Tg(Object.assign({},$oa(),{scheduleInRootZone:c}))});return[{provide:apa,useValue:!1},{provide:Tg,useFactory:b},{provide:Ffa,multi:!0,useFactory:function(){var d=
q(Ug,{optional:!0});return function(){return d.initialize()}}},{provide:Ffa,multi:!0,useFactory:function(){var d=q(Vg);return function(){d.initialize()}}},{provide:bpa,useValue:c!=null?c:!1}]},epa=function(){return{"\u0275providers":[{provide:dpa,useValue:!0},cpa({ngZoneFactory:function(){var a=$oa();a.scheduleInRootZone=void 0;a.shouldCoalesceEventChangeDetection&&we("NgZone_CoalesceEvent");return new Tg(a)},scheduleInRootZone:void 0})]}},$oa=function(){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!1,
shouldCoalesceRunChangeDetection:!1}},lpa=function(a){var b=a.moduleRef?a.moduleRef.injector:a.r3Injector,c=b.get(Tg);return c.run(function(){a.moduleRef?a.moduleRef.resolveInjectorInitializers():a.r3Injector.resolveInjectorInitializers();var d=b.get(Se),e;c.runOutsideAngular(function(){e=c.onError.subscribe({next:d})});if(a.moduleRef){var f=function(){return a.moduleRef.destroy()},g=a.platformInjector.get(fpa);g.add(f);a.moduleRef.onDestroy(function(){Rla(a.allPlatformModules,a.moduleRef);e.unsubscribe();
g.delete(f)})}else{var k=function(){return b.destroy()},m=a.platformInjector.get(fpa);m.add(k);b.onDestroy(function(){e.unsubscribe();m.delete(k)})}return gpa(d,c,function(){var r=b.get(Wg),w=r.add(),x=b.get(Xg);hpa(x);return x.donePromise.then(function(){var D=b.get(ipa,"en-US")||"en-US";typeof D==="string"&&(vna=D.toLowerCase().replace(/_/g,"-"));if(!b.get(jpa,!0)){if(!a.moduleRef)return b.get(Yg);a.allPlatformModules.push(a.moduleRef);return a.moduleRef}if(!a.moduleRef)return D=b.get(Yg),a.rootComponent!==
void 0&&D.bootstrap(a.rootComponent),D;var H;(H=kpa)==null||H(a.moduleRef,a.allPlatformModules);return a.moduleRef}).finally(function(){return void r.remove(w)})})})},mpa=function(a,b){var c=a.injector.get(Yg);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 Pc(-403,!1);b.push(a)},gpa=function(a,b,c){try{var d=c();return Yka(d)?d.catch(function(e){b.runOutsideAngular(function(){return a(e)});
throw e;}):d}catch(e){throw b.runOutsideAngular(function(){return a(e)}),e;}},rpa=function(a,b,c){c=c===void 0?[]:c;var d="Platform: "+b,e=new bd(d);return function(f){f=f===void 0?[]:f;if(!npa()&&(f=[].concat(n(c),n(f),[{provide:e,useValue:!0}]),(a==null?void 0:a(f))==null)){f=opa(f,d);if(npa())throw new Pc(400,!1);Pla();ppa=f;f.get(Zg);qpa(f)}f=npa();if(!f)throw new Pc(-401,!1);return f}},opa=function(a,b){a=a===void 0?[]:a;return $g({name:b,providers:[{provide:spa,useValue:"platform"},{provide:fpa,
useValue:new Set([function(){return ppa=null}])}].concat(n(a))})},npa=function(){var a,b;return(b=(a=ppa)==null?void 0:a.get(Zg))!=null?b:null},qpa=function(a){var b=a.get(tpa,null);ed(a,function(){b==null||b.forEach(function(c){return c()})})},ah=function(a,b){return Vea(a,b==null?void 0:b.equal)},wpa=function(a){if(typeof a==="function")return a=$ea(a,upa),vpa(a);a=$ea(a.source,a.computation,a.equal);return vpa(a)},vpa=function(a){var b=a[Kc];a.set=function(c){Oea(b);Lc(b,c);b.dirty=!1;b.lastCleanEpoch=
Mea};a.update=function(c){Oea(b);Qea()||Xea();Lc(b,c(b.value));b.dirty=!1;b.lastCleanEpoch=Mea};a.asReadonly=coa.bind(a);return a},xpa=function(a){switch(a.status){case "loading":return a.extRequest.reload===0?"loading":"reloading";case "resolved":return a.stream().error===void 0?"resolved":"error";default:return a.status}},bh=function(a){return typeof a==="boolean"?a:a!=null&&a!=="false"},ch=function(a,b){b=b===void 0?NaN:b;return isNaN(parseFloat(a))||isNaN(Number(a))?b:Number(a)},zpa=function(a){var b=
q(xe),c=b.get(Ze),d=b.get(ye),e=b.get(Ae,null,{optional:!0});d.impl!=null||(d.impl=b.get(ze));var f=a;typeof f==="function"&&(f={mixedReadWrite:a});a=b.get(Fia,null,{optional:!0});b=new ypa(d.impl,[f.earlyRead,f.write,f.mixedReadWrite,f.read],a==null?void 0:a.view,c,b,e==null?void 0:e.snapshot(null));d.impl.register(b)},Apa=function(a,b){a=a[Zc]||null;var c=b.elementInjector||Kfa();return(new dh(a)).create(c,b.projectableNodes,b.hostElement,b.environmentInjector,b.directives,b.bindings)},Bpa=function(a){var b=
a[Zc]||null;if(!b)return null;var c=new dh(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}}},Cpa=function(a){if(a&&!a.createEmbeddedView)throw new Pc(2020,!1);},Dpa=function(a,b,c){a=Zf(a);b=eh([a[1],a[2]],b);return eh(b,c)},Epa=function(a,b,c){a=Zf(a);b=eh([a[3],a[4]],b);return eh(b,
c)},Fpa=function(a,b,c){a=Zf(a);b=eh([a[5],a[6]],b);return eh(b,c)},Gpa=function(a,b){a=Zf(a)[7];return eh(a,b)},Hpa=function(a,b){a=Zf(a);return eh(a[10],b)},Ipa=function(a,b){a=Zf(a);return eh(a[11],b)},Jpa=function(a,b){a=Zf(a)[12];return eh(a,b)},fh=function(a,b){a=Zf(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},Lpa=function(a){a=Zf(a);if(!a[21])throw new Pc(2303,!1);return(a[21][2]||[]).map(function(b){return typeof b==="string"?Kpa(b):
[Kpa(b[0]),Kpa(b[1])]})},Mpa=function(a,b,c){a=Zf(a);if(!a[21])throw new Pc(2303,!1);b=eh([a[21][0],a[21][1]],b)||[];return eh(b,c)||[]},eh=function(a,b){for(;b>-1;b--)if(typeof a[b]!=="undefined")return a[b];throw new Pc(2304,!1);},Kpa=function(a){var b=l(a.split(":"));a=b.next().value;b=b.next().value;return{hours:+a,minutes:+b}},gh=function(){return new Pc(2100,!1)},Vpa=function(a,b,c,d){var e=Npa(a);b=hh(c,b)||b;a=[];for(var f;b;)if(f=Opa.exec(b)){if(a=a.concat(f.slice(1)),b=a.pop(),!b)break}else{a.push(b);
break}var g=e.getTimezoneOffset();d&&(g=Ppa(d,g),e=Qpa(e,d));var k="";a.forEach(function(m){a:if(Rpa[m])var r=Rpa[m];else{switch(m){case "G":case "GG":case "GGG":r=ih(3,1);break;case "GGGG":r=ih(3,2);break;case "GGGGG":r=ih(3,0);break;case "y":r=jh(0,1,0,!1,!0);break;case "yy":r=jh(0,2,0,!0,!0);break;case "yyy":r=jh(0,3,0,!1,!0);break;case "yyyy":r=jh(0,4,0,!1,!0);break;case "Y":r=Spa(1);break;case "YY":r=Spa(2,!0);break;case "YYY":r=Spa(3);break;case "YYYY":r=Spa(4);break;case "M":case "L":r=jh(1,
1,1);break;case "MM":case "LL":r=jh(1,2,1);break;case "MMM":r=ih(2,1);break;case "MMMM":r=ih(2,2);break;case "MMMMM":r=ih(2,0);break;case "LLL":r=ih(2,1,1);break;case "LLLL":r=ih(2,2,1);break;case "LLLLL":r=ih(2,0,1);break;case "w":r=Tpa(1);break;case "ww":r=Tpa(2);break;case "W":r=Tpa(1,!0);break;case "d":r=jh(2,1);break;case "dd":r=jh(2,2);break;case "c":case "cc":r=jh(7,1);break;case "ccc":r=ih(1,1,1);break;case "cccc":r=ih(1,2,1);break;case "ccccc":r=ih(1,0,1);break;case "cccccc":r=ih(1,3,1);
break;case "E":case "EE":case "EEE":r=ih(1,1);break;case "EEEE":r=ih(1,2);break;case "EEEEE":r=ih(1,0);break;case "EEEEEE":r=ih(1,3);break;case "a":case "aa":case "aaa":r=ih(0,1);break;case "aaaa":r=ih(0,2);break;case "aaaaa":r=ih(0,0);break;case "b":case "bb":case "bbb":r=ih(0,1,1,!0);break;case "bbbb":r=ih(0,2,1,!0);break;case "bbbbb":r=ih(0,0,1,!0);break;case "B":case "BB":case "BBB":r=ih(0,1,0,!0);break;case "BBBB":r=ih(0,2,0,!0);break;case "BBBBB":r=ih(0,0,0,!0);break;case "h":r=jh(3,1,-12);
break;case "hh":r=jh(3,2,-12);break;case "H":r=jh(3,1);break;case "HH":r=jh(3,2);break;case "m":r=jh(4,1);break;case "mm":r=jh(4,2);break;case "s":r=jh(5,1);break;case "ss":r=jh(5,2);break;case "S":r=jh(6,1);break;case "SS":r=jh(6,2);break;case "SSS":r=jh(6,3);break;case "Z":case "ZZ":case "ZZZ":r=Upa(0);break;case "ZZZZZ":r=Upa(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":r=Upa(1);break;case "OOOO":case "ZZZZ":case "zzzz":r=Upa(2);break;default:r=null;break a}Rpa[m]=r}k+=
r?r(e,c,g):m==="''"?"'":m.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return k},Wpa=function(a,b,c){var d=new Date(0);d.setFullYear(a,b,c);d.setHours(0,0,0);return d},hh=function(a,b){var c=Zf(a)[0];Xpa[c]!=null||(Xpa[c]={});if(Xpa[c][b])return Xpa[c][b];var d="";switch(b){case "shortDate":d=Hpa(a,0);break;case "mediumDate":d=Hpa(a,1);break;case "longDate":d=Hpa(a,2);break;case "fullDate":d=Hpa(a,3);break;case "shortTime":d=Ipa(a,0);break;case "mediumTime":d=Ipa(a,1);break;case "longTime":d=Ipa(a,
2);break;case "fullTime":d=Ipa(a,3);break;case "short":d=hh(a,"shortTime");var e=hh(a,"shortDate");d=Ypa(Jpa(a,0),[d,e]);break;case "medium":d=hh(a,"mediumTime");e=hh(a,"mediumDate");d=Ypa(Jpa(a,1),[d,e]);break;case "long":d=hh(a,"longTime");e=hh(a,"longDate");d=Ypa(Jpa(a,2),[d,e]);break;case "full":d=hh(a,"fullTime"),e=hh(a,"fullDate"),d=Ypa(Jpa(a,3),[d,e])}d&&(Xpa[c][b]=d);return d},Ypa=function(a,b){b&&(a=a.replace(/\{([^}]+)}/g,function(c,d){return b!=null&&d in b?b[d]:c}));return a},kh=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},jh=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,g){f=Zpa(a,f);if(c>0||f>-c)f+=c;if(a===3)f===0&&c===-12&&(f=12);else if(a===6)return kh(f,3).substring(0,b);g=fh(g,5);return kh(f,b,g,d,e)}},Zpa=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 Pc(2301,!1);}},ih=function(a,b,c,d){c=c===void 0?0:c;d=d===void 0?!1:d;return function(e,f){return $pa(e,f,a,b,c,d)}},$pa=function(a,b,c,d,e,f){switch(c){case 2:return Fpa(b,e,d)[a.getMonth()];case 1:return Epa(b,e,d)[a.getDay()];case 0:var g=a.getHours(),k=a.getMinutes();return f&&(c=Lpa(b),a=Mpa(b,e,d),c=c.findIndex(function(m){if(Array.isArray(m)){var r=l(m);m=
r.next().value;r=r.next().value;var w=g>=m.hours&&k>=m.minutes,x=g<r.hours||g===r.hours&&k<r.minutes;if(m.hours<r.hours){if(w&&x)return!0}else if(w||x)return!0}else if(m.hours===g&&m.minutes===k)return!0;return!1}),c!==-1)?a[c]:Dpa(b,e,d)[g<12?0:1];case 3:return Gpa(b,d)[a.getFullYear()<=0?0:1];default:throw new Pc(2302,!1);}},Upa=function(a){return function(b,c,d){b=-1*d;c=fh(c,5);var e=b>0?Math.floor(b/60):Math.ceil(b/60);switch(a){case 0:return(b>=0?"+":"")+kh(e,2,c)+kh(Math.abs(b%60),2,c);case 1:return"GMT"+
(b>=0?"+":"")+kh(e,1,c);case 2:return"GMT"+(b>=0?"+":"")+kh(e,2,c)+":"+kh(Math.abs(b%60),2,c);case 3:return d===0?"Z":(b>=0?"+":"")+kh(e,2,c)+":"+kh(Math.abs(b%60),2,c);default:throw new Pc(2310,!1);}}},aqa=function(a){var b=a.getDay();b=b===0?-3:4-b;return Wpa(a.getFullYear(),a.getMonth(),a.getDate()+b)},Tpa=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=aqa(c);e=c.getFullYear();var f=
Wpa(e,0,1).getDay();e=Wpa(e,0,1+(f<=4?4:11)-f);c=1+Math.round((c.getTime()-e.getTime())/6048E5)}return kh(c,a,fh(d,5))}},Spa=function(a,b){b=b===void 0?!1:b;return function(c,d){c=aqa(c).getFullYear();return kh(c,a,fh(d,5),b)}},Ppa=function(a,b){a=a.replace(/:/g,"");a=Date.parse("Jan 01, 1970 00:00:00 "+a)/6E4;return isNaN(a)?b:a},Qpa=function(a,b){var c=a.getTimezoneOffset();b=Ppa(b,c);a=new Date(a.getTime());a.setMinutes(a.getMinutes()+-1*(b-c));return a},Npa=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 Wpa(a,c-1,b===void 0?1:b)}b=parseFloat(a);if(!isNaN(a-b))return new Date(b);if(b=a.match(bqa))return cqa(b)}a=new Date(a);if(!(a instanceof Date)||isNaN(a.valueOf()))throw new Pc(2311,!1);return a},cqa=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},dqa=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},jqa=function(a,b,c,d){var e=e===void 0?!1:e;var f="",g=!1;if(isFinite(a)){g=eqa(a);e&&(g=fqa(g));f=b.minInt;e=b.minFrac;var k=b.maxFrac;if(d){var m=d.match(gqa);if(m===null)throw new Pc(2306,!1);d=m[1];var r=m[3];m=m[5];d!=null&&(f=hqa(d));r!=null&&(e=hqa(r));m!=null?k=hqa(m):r!=null&&e>k&&(k=e)}iqa(g,e,k);e=g.digits;r=g.integerLen;k=g.exponent;d=[];for(g=e.every(function(w){return!w});r<f;r++)e.unshift(0);
for(;r<0;r++)e.unshift(0);r>0?d=e.splice(r,e.length):(d=e,e=[0]);f=[];for(e.length>=b.lgSize&&f.unshift(e.splice(-b.lgSize,e.length).join(""));e.length>b.gSize;)f.unshift(e.splice(-b.gSize,e.length).join(""));e.length&&f.unshift(e.join(""));f=f.join(fh(c,1));d.length&&(f+=fh(c,0)+d.join(""));k&&(f+=fh(c,6)+"+"+k)}else f=fh(c,9);return f=a<0&&!g?b.negPre+f+b.negSuf:b.posPre+f+b.posSuf},fqa=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},eqa=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 g=[0];c=1}else{for(f--;a.charAt(f)==="0";)f--;c-=d;g=[];for(e=0;d<=f;d++,e++)g[e]=Number(a.charAt(d))}c>22&&(g=g.splice(0,21),b=c-1,c=1);return{digits:g,exponent:b,integerLen:c}},iqa=function(a,b,c){if(b>c)throw new Pc(2307,
!1);var d=a.digits,e=d.length-a.integerLen;c=Math.min(Math.max(b,e),c);var f=c+a.integerLen,g=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(g>=5)if(f-1<0){for(g=0;g>f;g--)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 m=c!==0,r=b+a.integerLen;if(b=d.reduceRight(function(w,x,D,H){x+=w;H[D]=x<10?x:x-10;m&&(H[D]===
0&&D>=r?H.pop():m=!1);return x>=10?1:0},0))d.unshift(b),a.integerLen++},hqa=function(a){a=parseInt(a);if(isNaN(a))throw new Pc(2305,!1);return a},kqa=function(a,b){return a?b?a.endsWith("/")?b.startsWith("/")?a+b.slice(1):a+b:b.startsWith("/")?a+b:a+"/"+b:a:b},lqa=function(a){var b=a.search(/#|\?|$/);return a[b-1]==="/"?a.slice(0,b-1)+a.slice(b):a},lh=function(a){return a&&a[0]!=="?"?"?"+a:a},mqa=function(a){return RegExp("^(https?:)?//").test(a)?(a=l(a.split(/\/\/[^\/]+/)),a.next(),a.next().value):
a},nqa=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next())b.value.remove()},oqa=function(a,b){b=b.createElement("style");b.textContent=a;return b},pqa=function(a,b){b=b.createElement("link");b.setAttribute("rel","stylesheet");b.setAttribute("href",a);return b},rqa=function(a,b){return b.map(function(c){return c.replace(qqa,a)})},sqa=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},vqa=function(a){return encodeURIComponent(a).replace(tqa,function(b,c){var d;return(d=uqa[c])!=null?d:b})},wqa=function(a){return""+a},xqa=function(a){return typeof ArrayBuffer!=="undefined"&&a instanceof ArrayBuffer},yqa=function(a){return typeof Blob!=="undefined"&&a instanceof Blob},zqa=function(a){return typeof FormData!=="undefined"&&a instanceof FormData},Aqa=function(a,
b){return b(a)},Bqa=function(a,b){return function(c,d){return b.intercept(c,{handle:function(e){return a(e,d)}})}},Cqa=function(a,b,c){return function(d,e){return ed(c,function(){return b(d,function(f){return a(f,e)})})}},Dqa=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,credentials:a.credentials,transferCache:a.transferCache,timeout:a.timeout,keepalive:a.keepalive,
priority:a.priority,cache:a.cache,mode:a.mode,redirect:a.redirect,integrity:a.integrity,referrer:a.referrer,referrerPolicy:a.referrerPolicy}},Hqa=function(a,b){if(!q(Eqa)||a.method==="GET"||a.method==="HEAD"||Fqa.test(a.url))return b(a);var c=q(mh).getToken(),d=q(Gqa);c==null||a.headers.has(d)||(a=a.clone({headers:a.headers.set(d,c)}));return b(a)},Jqa=function(a){return function(b,c){var d,e=(d=c==null?void 0:c.injector)!=null?d:q(xe);return new Iqa(e,function(){var f=typeof b==="function"?b():b;
if(f!==void 0){typeof f==="string"&&(f={url:f});var g=f.headers instanceof nh?f.headers:new nh(f.headers),k=f.params instanceof oh?f.params:new oh({fromObject:f.params}),m,r;var w=new ph((m=f.method)!=null?m:"GET",f.url,(r=f.body)!=null?r:null,{headers:g,params:k,reportProgress:f.reportProgress,withCredentials:f.withCredentials,keepalive:f.keepalive,cache:f.cache,priority:f.priority,mode:f.mode,redirect:f.redirect,responseType:a,context:f.context,transferCache:f.transferCache,credentials:f.credentials,
referrer:f.referrer,referrerPolicy:f.referrerPolicy,integrity:f.integrity,timeout:f.timeout})}else w=void 0;return w},c==null?void 0:c.defaultValue,c==null?void 0:c.debugName,c==null?void 0:c.parse,c==null?void 0:c.equal)}},Kqa=function(a){return Object.isFrozen(a)&&Object.isFrozen(a.raw)},Lqa=function(a){return a.toString().indexOf("`")===-1},qh=function(a){return{valueOf:a}.valueOf()},Nqa=function(){var a=null;if(!Mqa)return a;try{var b=function(c){return c};a=Mqa.createPolicy("goog#html",{createHTML:b,
createScript:b,createScriptURL:b})}catch(c){}return a},Pqa=function(){Oqa===void 0&&(Oqa=Nqa());return Oqa},sh=function(a){var b=Pqa();a=b?b.createHTML(a):a;return new rh(a)},th=function(a){return a instanceof rh},uh=function(a){if(th(a))return a.privateDoNotAccessOrElseWrappedHtml;throw Error("la");},vh=function(a){return document.createRange().createContextualFragment(uh(sh(a[0])))},Rqa=function(a){if(a instanceof Qqa)return a.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("la");},xh=function(a){var b=
Pqa();a=b?b.createScriptURL(a):a;return new wh(a)},yh=function(a){if(a instanceof wh)return a.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("la");},zh=function(a){return new Sqa(a)},Ah=function(a){return a instanceof Sqa},Tqa=function(a){if(Ah(a))return a.privateDoNotAccessOrElseWrappedUrl;throw Error("la");},Vqa=function(a){return new Uqa(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})},Xqa=function(a,b){b=b===void 0?Wqa:b;if(Ah(a))return a;for(var c=0;c<b.length;++c){var d=
b[c];if(d instanceof Uqa&&d.isValid(a))return zh(a)}},Bh=function(a){var b=b===void 0?Wqa:b;return Xqa(a,b)||Yqa},$qa=function(a){if(!Zqa){a:{var b=document.createElement("a");try{b.href=a}catch(c){a=void 0;break a}a=b.protocol;a=a===":"||a===""?"https:":a}return a}try{b=new URL(a)}catch(c){return"https:"}return b.protocol},bra=function(a){if(ara.test(a))return a},Ch=function(a){return a instanceof Sqa?Tqa(a):bra(a)},dra=function(a){var b=Pqa();a=b?b.createScript(a):a;return new cra(a)},era=function(a){if(a instanceof
cra)return a.privateDoNotAccessOrElseWrappedScript;throw Error("la");},Dh=function(a,b){if(th(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 sh(a)},Fh=function(a){return Eh(a)},
Eh=function(a){var b=Dh("");return sh(a.map(function(c){return uh(Dh(c))}).join(uh(b).toString()))},fra=function(a,b){b.appendChild(a);a=(new XMLSerializer).serializeToString(b);a=a.slice(a.indexOf(">")+1,a.lastIndexOf("</"));return sh(a)},ira=function(a){if(!gra.test(a))throw Error("la");if(hra.indexOf(a.toUpperCase())!==-1)throw Error("la");},Gh=function(a,b,c){ira(a);var d="<"+a;b&&(d+=jra(b));Array.isArray(c)||(c=c===void 0?[]:[c]);kra.indexOf(a.toUpperCase())!==-1?d+=">":(b=Fh(c.map(function(e){return th(e)?
e:Dh(String(e))})),d+=">"+b.toString()+"</"+a+">");return sh(d)},jra=function(a){for(var b="",c=Object.keys(a),d=0;d<c.length;d++){var e=c[d],f=a[e];if(!gra.test(e))throw Error("la");if(f!==void 0&&f!==null){if(/^on./i.test(e))throw Error("la");lra.indexOf(e.toLowerCase())!==-1&&(f=Ah(f)?f.toString():bra(String(f))||"about:invalid#zClosurez");f=e+'="'+Dh(String(f))+'"';b+=" "+f}}return b},mra=function(a,b){return a.createContextualFragment(uh(b))},nra=function(a,b){var c=b.createRange();c.selectNode(b.body);
a=sh(a);return mra(c,a)},ora=function(a){a=a.nodeName;return typeof a==="string"?a:"FORM"},pra=function(a){a=a.nodeType;return a===1||typeof a!=="number"},Hh=function(a,b,c){a.setAttribute(b,c)},Jh=function(a){var b=Yc.apply(1,arguments);if(b.length===0)return xh(a[0]);for(var c=a[0],d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return xh(c)},rra=function(a,b){a=yh(a).toString();var c=a.split(/[?#]/),d=/[?]/.test(a)?"?"+c[1]:"";return qra(c[0],d,/[#]/.test(a)?"#"+(d?c[2]:c[1]):"",b)},qra=
function(a,b,c,d){function e(g,k){g!=null&&(Array.isArray(g)?g.forEach(function(m){return e(m,k)}):(b+=f+encodeURIComponent(k)+"="+encodeURIComponent(g),f="&"))}var f=b.length?"&":"?";d.constructor===Object&&(d=Object.entries(d));Array.isArray(d)?d.forEach(function(g){return e(g[1],g[0])}):d.forEach(e);return xh(a+b+c)},sra=function(a,b){b=Ch(b);b!==void 0&&(a.href=b)},tra=function(a,b){b=Ch(b);b!==void 0&&(a.href=b)},ura=function(a,b){a.href=yh(b)},vra=function(a,b){b=Ch(b);b!==void 0&&(a.formAction=
b)},wra=function(a,b){a.src=yh(b)},xra=function(a,b){b=Ch(b);b!==void 0&&(a.action=b)},yra=function(a,b){a.src=yh(b).toString()},zra=function(a,b){a.srcdoc=uh(b)},Kh=function(a,b){a.setAttribute("sandbox","");for(var c=0;c<b.length;c++)a.sandbox.supports&&!a.sandbox.supports(b[c])||a.sandbox.add(b[c])},Ara=function(a,b){b=Ch(b);b!==void 0&&(a.formAction=b)},Bra=function(a,b){a.data=yh(b)},Dra=function(a){return Cra("script",a)},Cra=function(a,b){b=b===void 0?document:b;var c,d;b=(d=(c=b).querySelector)==
null?void 0:d.call(c,a+"[nonce]");return b==null?"":b.nonce||b.getAttribute("nonce")||""},Era=function(a){var b=Dra(a.ownerDocument);b&&a.setAttribute("nonce",b)},Fra=function(a,b,c){a.src=yh(b);(c==null?0:c.omitNonce)||Era(a)},Sra=function(a,b,c,d){if(a.length===0)throw Error("la");a=a.map(function(f){if(f instanceof Rra)f=f.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("la");return f});var e=c.toLowerCase();if(a.every(function(f){return e.indexOf(f)!==0}))throw Error("Oa`"+c);
b.setAttribute(c,d)},Tra=function(a){if(/^(script|style)$/i.test(a.tagName))throw Error("la");},Ura=function(a,b,c){a.href=yh(b).toString();a.rel=c},Vra=function(a,b,c){return a.parseFromString(uh(b),c)},Xra=function(a,b,c){b=c.sanitize(1,b);(0,Lh.setElementInnerHtml)(a,Wra.sanitize(b||""))},Zra=function(){if(Yra===void 0&&(Yra=null,typeof window!=="undefined")){var a=window;a.trustedTypes!==void 0&&(Yra=a.trustedTypes.createPolicy("angular#components",{createHTML:function(b){return b}}))}return Yra},
$ra=function(a){var b;return((b=Zra())==null?void 0:b.createHTML(a))||a},asa=function(a){return a.buttons===0||a.detail===0},bsa=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)},Nh=function(a){var b=Yc.apply(1,arguments);return b.length?b.some(function(c){return a[c]}):a.altKey||a.shiftKey||a.ctrlKey||a.metaKey},esa=function(){if(csa)return csa;if(typeof document!=="object"||
!document)return csa=new Set(dsa);var a=document.createElement("input");return csa=new Set(dsa.filter(function(b){a.setAttribute("type",b);return a.type===b}))},gsa=function(){if(fsa==null&&typeof window!=="undefined")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return fsa=!0}}))}finally{fsa=fsa||!1}return fsa},Oh=function(a){return gsa()?a:!!a.capture},isa=function(){if(hsa==null){if(typeof document!=="object"||!document||typeof Element!=="function"||
!Element)return hsa=!1;var a;hsa=((a=document.documentElement)==null?0:a.style)&&"scrollBehavior"in document.documentElement.style?!0:(a=Element.prototype.scrollTo)?!/\{\s*\[native code\]\s*\}/.test(a.toString()):!1}return hsa},ksa=function(){if(typeof document!=="object"||!document)return 0;if(jsa==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);jsa=0;a.scrollLeft===0&&(a.scrollLeft=1,jsa=a.scrollLeft===0?1:2);a.remove()}return jsa},msa=function(a){if(lsa==null){var b=typeof document!=="undefined"?document.head:null;lsa=!(!b||!b.createShadowRoot&&!b.attachShadow)}return lsa&&(a=a.getRootNode?a.getRootNode():null,typeof ShadowRoot!=="undefined"&&ShadowRoot&&a instanceof ShadowRoot)?a:null},Ph=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},Qh=function(a){return a.composedPath?a.composedPath()[0]:a.target},nsa=function(){return typeof __karma__!=="undefined"&&!!__karma__||typeof jasmine!=="undefined"&&!!jasmine||typeof jest!=="undefined"&&!!jest||typeof Mocha!=="undefined"&&!!Mocha},Rh=function(a){return Array.isArray(a)?a:[a]},Sh=function(a){return a!=null&&""+a!=="false"},Th=function(a){return a==null?"":typeof a==="string"?a:a+"px"},Uh=function(a){return a instanceof
Gd?a.nativeElement:a},Vh=function(a,b){return isNaN(parseFloat(a))||isNaN(Number(a))?arguments.length===2?b===void 0?0:b:0:Number(a)},osa=function(a){if(!a.hasAttribute("tabindex")||a.tabIndex===void 0)return!1;a=a.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))},psa=function(a){if(!osa(a))return null;a=parseInt(a.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a},qsa=function(a){return{matches:a==="all"||a==="",media:a,addListener:function(){},removeListener:function(){}}},rsa=function(a){return a.map(function(b){return b.split(",")}).reduce(function(b,
c){return b.concat(c)}).map(function(b){return b.trim()})},ssa=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},usa=function(a,b,c){var d=tsa(a,b);c=c.trim();d.some(function(e){return e.trim()===c})||(d.push(c),a.setAttribute(b,d.join(" ")))},Wh=function(a,
b,c){var d=tsa(a,b);c=c.trim();d=d.filter(function(e){return e!==c});d.length?a.setAttribute(b,d.join(" ")):a.removeAttribute(b)},tsa=function(a,b){var c,d;return(d=(c=a.getAttribute(b))==null?void 0:c.match(/\S+/g))!=null?d:[]},vsa=function(a,b){return typeof a==="string"?(b||"")+"/"+a:a},xsa=function(a,b){a.id||(a.id="cdk-describedby-message-"+b+"-"+wsa++)},ysa=function(a){return ve(a)?a:be(a)},zsa=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},Asa=function(a){return a&&typeof a.connect==="function"&&!(a instanceof tf)},Bsa=function(a,b){return a.start==b.start&&a.end==b.end},Dsa=function(a){return new Csa(a.get(Xh),a.get(Yh))},Esa=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})},Fsa=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})},$h=function(a,
b){return new Gsa(a.get(Zh),a.get(Xh),a.get(Tg),b)},di=function(a,b){return new ai(b,a.get(Xh),a.get(Yh),a.get(bi),a.get(ci))},ei=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},Isa=function(a){if(typeof a!=="number"&&a!=null){var b=l(a.split(Hsa));a=b.next().value;return(b=b.next().value)&&b!=="px"?null:parseFloat(a)}return a||null},Jsa=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)}},
ri=function(a,b){a.get(fi).load(gi);var c=a.get(ci),d=a.get(Yh),e=a.get(hi),f=a.get(Yg),g=a.get(ii),k=a.get(ji,null,{optional:!0})||a.get(Ye).createRenderer(null,null),m=new ki(b),r,w,x=(w=(r=a.get(Ksa,null,{optional:!0}))==null?void 0:r.usePopover)!=null?w:!0;m.direction=m.direction||g.value;if("showPopover"in d.body){var D;m.usePopover=(D=b==null?void 0:b.usePopover)!=null?D:x}else m.usePopover=!1;g=d.createElement("div");r=d.createElement("div");g.id=e.getId("cdk-overlay-");g.classList.add("cdk-overlay-pane");
r.appendChild(g);m.usePopover&&(r.setAttribute("popover","manual"),r.classList.add("cdk-overlay-popover"));var H,J;e=m.usePopover?(H=m.positionStrategy)==null?void 0:(J=H.getPopoverInsertionPoint)==null?void 0:J.call(H):null;Lsa(c).appendChild(r);e&&e.nodeType===1?e.after(r):(e==null?void 0:e.type)==="parent"&&e.element.appendChild(r);var O;return new li(new mi(g,f,a),r,g,m,a.get(Tg),a.get(ni),d,a.get(oi),a.get(pi),(O=b==null?void 0:b.disableAnimations)!=null?O:a.get(qi,null,{optional:!0})==="NoopAnimations",
a.get(Xe),k)},Osa=function(){var a;if(((a=q(Msa,{optional:!0}))==null?0:a.animationsDisabled)||q(qi,{optional:!0})==="NoopAnimations")return"di-disabled";Nsa!=null||(Nsa=q(si).matchMedia("(prefers-reduced-motion)").matches);return Nsa?"reduced-motion":"enabled"},ti=function(){return Osa()!=="enabled"},Psa=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)},Qsa=function(a){a&1&&M(0,"mat-pseudo-checkbox",1);
a&2&&(a=P(),I("disabled",a.disabled)("state",a.selected?"checked":"unchecked"))},Rsa=function(a){a&1&&M(0,"mat-pseudo-checkbox",3);a&2&&(a=P(),I("disabled",a.disabled))},Ssa=function(a){a&1&&(K(0,"span",4),S(1),L());a&2&&(a=P(),B(),T("(",a.group.label,")"))},Tsa=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},Usa=function(a,b,c,d){return a<c?a:a+b>c+d?Math.max(0,a-d+b):c},Vsa=function(a){a&1&&M(0,"img",3);a&2&&
(a=P(),I("src",a.iconUrl(),Me))},Wsa=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P();c.removeContextSource.emit(c.linkUrl());return v()});K(1,"mat-icon",7);S(2,"close");L()()}},Xsa=function(){return"https://static.corp.google.com/devtools/codereview/new_logo_only.svg"},Ysa=function(){return"https://www.gstatic.com/images/branding/productlogos/code_search/v2/192px.svg"},Zsa=function(){return"https://static.corp.google.com/devtools/codereview/g3doc_icon.svg"},$sa=function(){return"https://www.gstatic.com/images/branding/productlogos/buganizer/v1/192px.svg"},
ata=function(){return"https://www.gstatic.com/devnotify/snipit.svg"},bta=function(){return"https://static.corp.google.com/yaqs/static/img/logo/yaqs_32x32.svg"},cta=function(){return"https://moma.corp.google.com/images/go_links_logo_192px.svg"},dta=function(){return"https://www.gstatic.com/devopsconsole/images/home/gerrit_2.svg"},eta=function(){return"https://www.gstatic.com/nightwatch/eldar/eldar.png"},fta=function(a){return a==null?void 0:ch(a)},gta=function(){},hta=function(a){var b=qg.apply(null,
[a].concat(n([]))),c=new ui;return{valueSignal:b,get value(){return b()},change:c,ngOnDestroy:function(){c.complete()}}},ita=function(a,b){for(var c=a.length;c--;)b(a[c])},jta=function(){},kta=function(a){return a==null?null:typeof a==="number"?a:a.endsWith("ms")?Vh(a.substring(0,a.length-2)):a.endsWith("s")?Vh(a.substring(0,a.length-1))*1E3:a==="0"?0:null},lta=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},mta=function(a){a&1&&M(0,"span",21)},nta=function(a){a&1&&(K(0,"label",20),gg(1,1),F(2,mta,1,0,"span",21),L());a&2&&(a=P(2),I("floating",a._shouldLabelFloat())("monitorResize",a._hasOutline())("id",a._labelId),Jf("for",a._control.disableAutomaticLabeling?null:a._control.id),B(2),G(!a.hideRequiredMarker&&a._control.required?2:-1))},ota=function(a){a&1&&F(0,nta,3,5,"label",20);a&2&&(a=P(),G(a._hasFloatingLabel()?0:-1))},pta=function(a){a&1&&M(0,"div",7)},qta=function(){},rta=function(a){a&
1&&E(0,qta,0,0,"ng-template",13);a&2&&(P(2),a=Q(1),I("ngTemplateOutlet",a))},sta=function(a){a&1&&(K(0,"div",9),F(1,rta,1,1,null,13),L());a&2&&(a=P(),I("matFormFieldNotchedOutlineOpen",a._shouldLabelFloat()),B(),G(a._forceDisplayInfixLabel()?-1:1))},tta=function(a){a&1&&(K(0,"div",10,2),gg(2,2),L())},uta=function(a){a&1&&(K(0,"div",11,3),gg(2,3),L())},vta=function(){},wta=function(a){a&1&&E(0,vta,0,0,"ng-template",13);a&2&&(P(),a=Q(1),I("ngTemplateOutlet",a))},xta=function(a){a&1&&(K(0,"div",14,4),
gg(2,4),L())},yta=function(a){a&1&&(K(0,"div",15,5),gg(2,5),L())},zta=function(a){a&1&&M(0,"div",16)},Ata=function(a){a&1&&(K(0,"div",18),gg(1,6),L())},Bta=function(a){a&1&&(K(0,"mat-hint",22),S(1),L());a&2&&(a=P(2),I("id",a._hintLabelId),B(),Ag(a.hintLabel))},Cta=function(a){a&1&&(K(0,"div",19),F(1,Bta,2,2,"mat-hint",22),gg(2,7),M(3,"div",23),gg(4,8),L());a&2&&(a=P(),B(),G(a.hintLabel?1:-1))},Eta=function(a){return a==null||Dta(a)===0},Dta=function(a){if(a!=null){if(Array.isArray(a)||typeof a===
"string")return a.length;if(a instanceof Set)return a.size}return null},Fta=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}},Gta=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}},Hta=function(a){return Eta(a.value)?{required:!0}:null},Ita=function(a){return function(b){var c,d,e=(d=(c=b.value)==
null?void 0:c.length)!=null?d:Dta(b.value);return e!==null&&e>a?{maxlength:{requiredLength:a,actualLength:e}}:null}},Kta=function(a){if(!a)return Jta;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(Eta(d.value))return null;d=d.value;return c.test(d)?null:{pattern:{requiredPattern:b,actualValue:d}}}},Jta=function(){return null},Lta=function(a){return a!=null},Mta=function(a){return Yka(a)?
Ud(a):a},Nta=function(a){var b={};a.forEach(function(c){b=c!=null?Object.assign({},b,c):b});return Object.keys(b).length===0?null:b},Ota=function(a,b){return b.map(function(c){return c(a)})},Pta=function(a){return a.map(function(b){return b.validate?function(c){return b.validate(c)}:b})},Qta=function(a){if(!a)return null;var b=a.filter(Lta);return b.length==0?null:function(c){return Nta(Ota(c,b))}},Rta=function(a){return a!=null?Qta(Pta(a)):null},Sta=function(a){if(!a)return null;var b=a.filter(Lta);
return b.length==0?null:function(c){c=Ota(c,b).map(Mta);return me(c).pipe(A(Nta))}},Tta=function(a){return a!=null?Sta(Pta(a)):null},Uta=function(a,b){return a===null?[b]:Array.isArray(a)?[].concat(n(a),[b]):[a,b]},Vta=function(a,b){return Array.isArray(a)?a.includes(b):a===b},Wta=function(a){var b=[vi],c=a?Array.isArray(a)?a:[a]:[];(b?Array.isArray(b)?b:[b]:[]).forEach(function(d){Vta(c,d)||c.push(d)});return c},Xta=function(a,b){return[].concat(n(b.path),[a])},cua=function(a,b,c){c=c===void 0?"whenDisabledForLegacyCode":
c;Yta(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)}Zta(a,b);$ta(a,b);aua(a,b);bua(a,b)},eua=function(a,b){var c=function(){};b.valueAccessor&&(b.valueAccessor.registerOnChange(c),b.valueAccessor.registerOnTouched(c));dua(a,b);a&&(b._invokeOnDestroyCallbacks(),a._registerOnCollectionChange(function(){}))},fua=function(a,b){a.forEach(function(c){c.registerOnValidatorChange&&c.registerOnValidatorChange(b)})},
bua=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)})}},Yta=function(a,b){var c=a._rawValidators;b.validator!==null?gua(a,Uta(c,b.validator)):typeof c==="function"&&gua(a,[c]);c=a._rawAsyncValidators;b.asyncValidator!==null?hua(a,Uta(c,b.asyncValidator)):typeof c==="function"&&hua(a,[c]);c=function(){return wi(a)};fua(b._rawValidators,c);fua(b._rawAsyncValidators,
c)},dua=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(){};fua(b._rawValidators,a);fua(b._rawAsyncValidators,a);return c},Zta=
function(a,b){b.valueAccessor.registerOnChange(function(c){a._pendingValue=c;a._pendingChange=!0;a._pendingDirty=!0;a.updateOn==="change"&&iua(a,b)})},aua=function(a,b){b.valueAccessor.registerOnTouched(function(){a._pendingTouched=!0;a.updateOn==="blur"&&a._pendingChange&&iua(a,b);a.updateOn!=="submit"&&Kf(a)})},iua=function(a,b){a._pendingDirty&&jua(a);a.setValue(a._pendingValue,{emitModelToViewChange:!1});b.viewToModelUpdate(a._pendingValue);a._pendingChange=!1},$ta=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)})},kua=function(a,b){if(!a.hasOwnProperty("model"))return!1;a=a.model;return a.firstChange?!0:!Object.is(b,a.currentValue)},lua=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)})},mua=function(a){if(!a)return null;var b=void 0,c=void 0,
d=void 0;a.forEach(function(e){e.constructor===xi?b=e:Object.getPrototypeOf(e.constructor)===yi?c=e:d=e});return d?d:c?c:b?b:null},zi=function(a){return a!=null&&!Array.isArray(a)&&typeof a==="object"},nua=function(a,b,c){a=a.controls;if(!(b?Object.keys(a):a).length)throw new Pc(1E3,"");if(!a[c])throw new Pc(1001,"");},oua=function(a,b){a._forEachChild(function(c,d){if(b[d]===void 0)throw new Pc(1002,"");})},pua=function(a){return typeof a==="object"&&a!==null&&Object.keys(a).length===2&&"value"in
a&&"disabled"in a},qua=function(a){return!!a&&(a.asyncValidators!==void 0||a.validators!==void 0||a.updateOn!==void 0)},rua=function(a,b){if(a&1){var c=t();K(0,"link-chip",11);N("removeContextSource",function(d){u(c);var e=P(2);return v(e.removeContextSource(d))});L()}a&2&&(a=b.$implicit,I("label",a.label)("iconUrl",a.imgSrc)("linkUrl",a.fullUrl)("showRemoveButton",!0))},tua=function(a){a&1&&(K(0,"div",2),Pf(1,rua,1,4,"link-chip",10,sua),L());a&2&&(P(),a=dg(0),B(),Qf(a))},uua=function(){return Math.random().toString(36).substring(2,
10).padEnd(8,"0")},Ai=function(){var a=function(){throw Error();};Object.setPrototypeOf(a,a.prototype);return a},wua=function(a,b){var c=c===void 0?vua:c;return new Bi(a,b,c)},Aua=function(a,b,c,d,e){b=xua(b,d);b!=null&&(c=yua(a,c),e(b,a),zua(a,c))},Eua=function(a,b,c,d){var e=d[a];if(e)return e;e={};e.binaryFields=d;e.messageMetadata=Yda(d[0]);var f=d[1],g=1;f&&f.constructor===Object&&(e.extensions=f,f=d[++g],typeof f==="function"&&(e.isMessageSet=!0,Bua!=null||(Bua=f),Cua!=null||(Cua=d[g+1]),f=
d[g+=2]));for(var k={};f&&Array.isArray(f)&&f.length&&typeof f[0]==="number"&&f[0]>0;){for(var m=0;m<f.length;m++)k[f[m]]=f;f=d[++g]}for(m=1;f!==void 0;){typeof f==="number"&&(m+=f,f=d[++g]);var r=void 0;if(f instanceof Bi)var w=f;else w=Dua,g--;f=void 0;if((f=w)==null?0:f.$$isMsg){f=d[++g];r=d;var x=g;typeof f==="function"&&(f=f(),r[x]=f);r=f}f=d[++g];x=m+1;typeof f==="number"&&f<0&&(x-=f,f=d[++g]);for(;m<x;m++){var D=k[m];r?c(e,m,w,r,D):b(e,m,w,D)}}return d[a]=e},Gua=function(a){return Array.isArray(a)?
a[0]instanceof Bi?a:[Fua,a]:[a,void 0]},xua=function(a,b){if(a instanceof X)return a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(a))return $da(a,b)},Hua=function(a,b,c,d){var e=c.$$binaryReaderFn;a[b]=d?function(f,g,k){return e(f,g,k,d)}:e},Jua=function(a,b,c,d,e){var f=c.$$binaryReaderFn,g,k;a[b]=function(m,r,w){return f(m,r,w,k||(k=Eua(Iua,Hua,Jua,d).messageMetadata),g||(g=Kua(d)),e)}},Kua=function(a){var b=a[Lua];if(b!=null)return b;var c=Eua(Iua,Hua,Jua,a);b=c.isMessageSet?
function(d,e){return Bua(d,e,c)}:function(d,e){for(;Mua(e)&&e.nextWireType_!=4;){var f=e.nextField_,g=c[f];if(g==null){var k=c.extensions;k&&(k=k[f])&&(k=Nua(k),k!=null&&(g=c[f]=k))}if(g==null||!g(e,d,f)){k=e;g=k.fieldCursor_;Oua(k);if(k.discardUnknownFields)var m=void 0;else{var r=k.decoder_.getCursor()-g;k.decoder_.cursor_=g;m=k.decoder_.readByteString(r)}r=k=g=void 0;var w=d;m&&((g=(k=(r=w[Xb])!=null?r:w[Xb]=new Mda)[f])!=null?g:k[f]=[]).push(m)}}if(d=Bda(d))d.reviveUnknownFields=c.binaryFields[Pua];
return!0};a[Lua]=b;a[Pua]=Qua.bind(a);return b},Qua=function(a,b,c,d){var e=this[Iua],f=this[Lua],g=$da(void 0,e.messageMetadata),k=Bda(a);if(k){var m=!1,r=e.extensions;if(r){e=function(J,O,R){if(R.length!==0)if(r[O])for(J=l(R),O=J.next();!O.done;O=J.next()){O=Rua(O.value);try{m=!0,f(g,O)}finally{O.free()}}else d==null||d(a,O,R)};if(b==null)Kda(k,e);else if(k!=null){var w=k[b];w&&e(k,b,w)}if(m){var x=a[Ra]|0;if(x&2&&x&2048&&(c==null||!c.reviveIntoImmutable))throw Error();var D=gb(x),H=function(J,
O){if(nc(a,J,D)!=null)switch(c==null?void 0:c.resolutionBehavior){case 1:return;default:throw Error();}O!=null&&(x=hc(a,x,J,O,D));delete k[J]};b==null?ica(g,g[Ra]|0,function(J,O){H(J,O)}):H(b,nc(g,b,D))}}}},Nua=function(a){a=Gua(a);var b=a[0].$$binaryReaderFn;if(a=a[1]){var c=Kua(a),d=Eua(Iua,Hua,Jua,a).messageMetadata;return function(e,f,g){return b(e,f,g,d,c)}}return b},Vua=function(a){return Eua(Sua,Tua,Uua,a)},Tua=function(a,b,c){a[b]=c.$$binaryWriterFn},Uua=function(a,b,c,d){var e,f,g=c.$$binaryWriterFn;
a[b]=function(k,m,r){return g(k,m,r,f||(f=Vua(d).messageMetadata),e||(e=Wua(d)))}},Wua=function(a){var b=a[Xua];if(!b){var c=Vua(a);b=function(d,e){return Yua(d,e,c)};a[Xua]=b}return b},Yua=function(a,b,c){ica(a,a[Ra]|0,function(d,e){if(e!=null){var f=Zua(c,d);f?f(b,e,d):d<500||pb($ua,3)}});(a=Bda(a))&&Kda(a,function(d,e,f){Ci(b,b.encoder_.end());for(d=0;d<f.length;d++)Ci(b,$b(f[d])||new Uint8Array(0))})},Zua=function(a,b){var c=a[b];if(c)return c;if(c=a.extensions)if(c=c[b]){c=Gua(c);var d=c[0].$$binaryWriterFn;
if(c=c[1]){var e=Wua(c),f=Vua(c).messageMetadata;c=a.isMessageSet?Cua(f,e):function(g,k,m){return d(g,k,m,f,e)}}else c=d;return a[b]=c}},Di=function(a,b,c){return new Bi(a,b,c)},Ei=function(a,b,c){hc(a,a[Ra]|0,b,c,gb(a[Ra]|0))},ava=function(a,b,c){a.writeInt64(c,ada(b))},bva=function(a,b,c){a.writeBool(c,wb(b))},dva=function(a,b,c){b=Ob(b);b!=null&&cva(a,c,bba(b,!1))},eva=function(a,b,c,d,e){b=xua(b,d);b!=null&&(c=yua(a,c),e(b,a),zua(a,c))},fva=function(a,b,c){b=b==null||typeof b=="string"||b instanceof
Wa?b:void 0;a.writeBytes(c,b)},gva=function(a,b,c){if(a.nextWireType_!==2)return!1;a=a.readByteString();Ei(b,c,a===Va()?void 0:a);return!0},hva=function(a){a!=null&&(a=a.value_||"",a=typeof a==="string"?a:new Uint8Array(a));return a},jva=function(a,b,c,d){c==null||b==null&&(b=c.internalDoNotUse_ctor);if(Fi(a,1).split("/").pop()!=d)return null;d=typeof b==="function"?b:b.constructor;var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ra]|0;b=nc(e,2);if(!c||b==null||Array.isArray(b)||
$a(b)){dc(a)&&(e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ra]|0);a=e;c=f;if(b!=null&&!Array.isArray(b)&&!$a(b))throw Error("gb`"+Gca(b));f=fda(b,d,!0,c);if(!(f instanceof d))throw Error("hb`"+f.constructor.displayName+"`"+d.displayName);(d=!!(2&c))||(f=Ub(f));b!==f&&(hc(a,c,2,f),d||fc(a));b=f}else b=b==null||b instanceof Wa?b:typeof b==="string"?fca(b):void 0,b=c(iva(b!=null?b:Va())),cb(a)?cb(b)||(b=jea(b)):cb(b)&&(b=Ub(b));return b},kva=function(a,b){var c=function(d,e){var f=
{treatNewDataAsImmutable:!0};e&&Object.assign(f,e);d=Rua(d,void 0,void 0,f);try{var g=new a,k=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Kua(b)(k,d);var m=g}finally{d.free()}return m};c.internalDoNotUse_ctor=a;return c},nva=function(a){return function(b){var c=new lva;Yua(b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c,Vua(a));return mva(c)}},ova=function(a){return hb(function(b){return b instanceof a&&!cb(b)})},pva=function(a){return function(b){b=JSON.parse(b);if(!Array.isArray(b))throw Error("ca`"+
Gca(b)+"`"+b);Ua(b);return new a(b)}},Hi=function(a){return function(b){return Gi(a,b)}},qva=function(){var a=(new URLSearchParams(window.location.search)).get("api_url");if(a)return a;a=window.location.hostname;switch(a.includes("-autopush")||a.includes("-nightly")?1:a.includes("-staging")?2:a.includes("localhost")||a.includes("sslproxy")||a.includes("proxy")?0:3){case 1:case 0:return"https://autopush-ml4answers-googleapis.corp.google.com";case 2:return"https://staging-ml4answers-googleapis.corp.google.com";
case 3:return"https://ml4answers-googleapis.corp.google.com";default:return"https://autopush-ml4answers-googleapis.corp.google.com"}},rva=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}},sva=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""}},Ii=function(a){a&&typeof a.dispose=="function"&&a.dispose()},uva=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=++tva;this.removed=this.callOnce=!1},Ji=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Ki=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},vva=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c},wva=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},xva=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},
yva=function(a,b){return a!==null&&b in a},zva=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c},Ava=function(a,b){return(b=zva(a,b))&&a[b]},Bva=function(a){for(var b in a)return!1;return!0},Cva=function(a){for(var b in a)delete a[b]},Dva=function(a,b){b in a&&delete a[b]},Eva=function(a,b,c){if(a!==null&&b in a)throw Error("ib`"+b);a[b]=c},Fva=function(a,b){return a!==null&&b in a?a[b]:void 0},Li=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Hva=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<Gva.length;f++)c=Gva[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},Mi=function(a){this.src=a;this.listeners={};this.typeCount_=0},Iva=function(){this.replacer_=void 0},Jva=function(){},Kva=function(a){return sh(a)},Lva=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,
" ")):"")}}},Mva=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]},Nva=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Nva(a,String(b[d]),c);else b!=null&&c.push(a+(b===""?"":"="+Ni(b)))},Ova=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)Nva(a[b],a[b+1],c);return c.join("&")},Pva=function(a){var b=
[],c;for(c in a)Nva(c,a[c],b);return b.join("&")},Qva=function(a,b){var c=arguments.length==2?Ova(arguments[1],0):Ova(arguments,1);return Mva(a,c)},Rva=function(a,b){b=Pva(b);return Mva(a,b)},Sva=function(a,b,c){c=c!=null?"="+Ni(c):"";return Mva(a,b+c)},Uva=function(a,b){var c=a.search(Tva);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," "))},Vva=function(a,b){b.stack&&(a.stack+="\n"+b.stack);return a},Pi=function(a){Oi.call(this);this.handler_=a;this.keys_={}},Wva=function(){this.isInputValid_=!0;this.streamPos_=0;this.leftoverInput_=""},Qi=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0},Xva=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)},awa=function(a){var b=Yva(a,"Content-Type");if(!b)return null;b=b.toLowerCase();if(b.startsWith("application/json"))return b.startsWith("application/json+protobuf")?new Zva:new Xva;if(b.startsWith("application/x-protobuf")){a=Yva(a,"Content-Transfer-Encoding");
if(!a)return new Qi;if(a.toLowerCase()=="base64")return new $va}return null},cwa=function(a){var b=(new bwa).setDuckieClient(a.getDuckieClient());a.hasSessionId()&&b.setSessionId(a.getSessionId());a.hasText()&&b.setText(a.getText());a.hasDisallowRestrictedContent()&&b.setDisallowRestrictedContent(a.getDisallowRestrictedContent());a.getUserProvidedContextList().length>0&&b.addAllUserProvidedContext(a.getUserProvidedContextList().slice());a.hasConversationHistory()&&b.setConversationHistory(a.getConversationHistory());
a.hasConversationAgent()&&b.setConversationAgent(a.getConversationAgent());a.hasAppProvidedContext()&&b.setAppProvidedContext(a.getAppProvidedContext());return b},ej=function(a){var b={id:a.getMessageId(),sessionId:a.getSessionId(),client:a.getClient(),text:a.getText(),sender:Ri(a,5),isUser:Ri(a,5)===1?!0:!1,createdTimestamp:a.getCreationTimestamp()};a.hasFeedback()&&(b.feedback=a.getFeedback());Si(a,Ti,10)&&(b.rewrite=Y(a,Ti,10));Si(a,dwa,14)&&(b.responseMetadata=Y(a,dwa,14));Ui(a,Vi,13)>0&&(b.relatedResources=
Wi(a,Vi,13,Xi()));Si(a,Yi,17)&&(b.executionMetadata=Y(a,Yi,17));Zi(a,20)&&(b.hasPrivateContent=$i(a,20));Zi(a,19)&&(b.hasRedactions=$i(a,19));a.getUserProvidedContextCount()>0&&(b.userProvidedContext=a.getUserProvidedContextList().map(function(c){a:{var d=aj;ec(c);if(void 0===ewa){if(bj(c,d,2)!==2){c=void 0;break a}}else tea(c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,void 0,d,2);c=cj(c,dj,2)}return c}));Zi(a,18)&&(b.isFallback=$i(a,18));Ui(a,fwa,27)>0&&(b.interactiveElements=Wi(a,fwa,
27,Xi()));return b},jwa=function(a){var b=gwa((new fj).setMessageId(a.id).setSessionId(a.sessionId).setClient(a.client).setText(a.text),a.sender).setCreationTimestamp(a.createdTimestamp);a.feedback&&b.setFeedback(a.feedback);a.rewrite&&hj(b,Ti,10,a.rewrite);a.responseMetadata&&hj(b,dwa,14,a.responseMetadata);a.relatedResources&&ij(b,13,a.relatedResources);a.executionMetadata&&hj(b,Yi,17,a.executionMetadata);a.hasPrivateContent!==void 0&&hwa(b,a.hasPrivateContent);a.hasRedactions!==void 0&&jj(b,19,
a.hasRedactions);a.userProvidedContext&&b.setUserProvidedContextList(a.userProvidedContext.map(function(c){return iwa(new kj,c)}));a.isFallback!==void 0&&jj(b,18,a.isFallback);a.interactiveElements&&ij(b,27,a.interactiveElements);return b},mwa=function(a){var b=a.some(function(c){return lj(c,kwa,4,mj)});a=a.some(function(c){return lj(c,lwa,3,mj)});if(b)return"MOMA";if(a)return"YAQS"},owa=function(a){var b=a.getMessagesList(),c,d={serverId:a.getSessionId(),lastUsedTimestamp:Y(a,nj,4),messages:b.map(ej),
title:(c=a.getTitle())!=null?c:"",modelId:nwa(b),agentId:a.getAgentId(),agentVersion:a.getAgentVersion(),conversationAgentId:a.getConversationAgentId(),conversationAgentModelId:a.getConversationAgentModelId(),sessionState:a.getSessionState()};a.hasPrivacyMode()&&(d.privacyMode=a.getPrivacyMode());if(a=mwa(b.flatMap(function(e){return Wi(e,Vi,13,Xi())})))d.threadSource=a;return d},nwa=function(a){return a.find(function(b){return b.getModelId()==="duckie_on_gemini_flash_32k"})?"duckie_on_gemini_flash_32k":
""},pwa=function(){return pla(function(){return Ud(Promise.resolve(void 0))})},oj=function(a){a||(a=q(Be));var b=new Sd(function(c){if(a.destroyed)c.next();else return a.onDestroy(c.next.bind(c))});return function(c){return c.pipe(Af(b))}},qwa=function(a){var b=q(xe),c=new vf(1),d=df(function(){try{var e=a()}catch(f){Mc(function(){return c.error(f)});return}Mc(function(){return c.next(e)})},{injector:b,manualCleanup:!0});b.get(Be).onDestroy(function(){d.destroy();c.complete()});return c.asObservable()},
swa=function(a,b){var c,d,e=(b==null?0:b.manualCleanup)?null:(d=b==null?void 0:(c=b.injector)==null?void 0:c.get(Be))!=null?d:q(Be);c=rwa(b==null?void 0:b.equal);var f=(b==null?0:b.requireSync)?qg({kind:0},Object.assign({},{equal:c},void 0)):qg({kind:1,value:b==null?void 0:b.initialValue},Object.assign({},{equal:c},void 0));a=a.subscribe({next:function(k){return f.set({kind:1,value:k})},error:function(k){f.set({kind:2,error:k});var m;(m=g)==null||m()},complete:function(){var k;(k=g)==null||k()}});
if((b==null?0:b.requireSync)&&f().kind===0)throw new Pc(601,!1);var g=e==null?void 0:e.onDestroy(a.unsubscribe.bind(a));return ah(function(){var k=f();switch(k.kind){case 1:return k.value;case 2:throw k.error;case 0:throw new Pc(601,!1);}},Object.assign({},{equal:b==null?void 0:b.equal},void 0))},rwa=function(a){a=a===void 0?Object.is:a;return function(b,c){return b.kind===1&&c.kind===1&&a(b.value,c.value)}},twa=function(a,b){return{type:7,name:a,definitions:b,options:{}}},pj=function(a,b){return{type:4,
styles:b===void 0?null:b,timings:a}},qj=function(a){return{type:6,styles:a,offset:null}},rj=function(a,b){return{type:0,name:a,styles:b,options:void 0}},sj=function(a,b){return{type:1,expr:a,animation:b,options:null}},uwa=function(a){a&1&&M(0,"a",1)},vwa=function(a){if(a&1){var b=t();K(0,"div",1)(1,"button",2);N("click",function(){u(b);var c=P();return v(c.action())});S(2);L()()}a&2&&(a=P(),B(2),T(" ",a.data.action," "))},wwa=function(){},xwa=function(a){a&1&&(K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,
"p",5),S(3),L()()());a&2&&(a=P(),B(3),Ag(a.error))},ywa=function(a){var b={sessionId:a.getSessionId(),title:a.getTitle(),client:a.getClient(),sessionState:a.getSessionState()};a.hasAgentId()&&(b.agentId=a.getAgentId());a.hasAgentVersion()&&(b.agentVersion=a.getAgentVersion());a.hasPrivacyMode()&&(b.privacyMode=a.getPrivacyMode());a.hasConversationAgentModelId()&&(b.conversationAgentModelId=a.getConversationAgentModelId());a.hasConversationAgentId()&&(b.conversationAgentId=a.getConversationAgentId());
return b},tj=function(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0},uj=function(a,b){this.width=a;this.height=b},Cwa=function(){for(var a;a=zwa.remove();){try{a.fn.call(a.scope)}catch(b){sa(b)}Awa.put(a)}Bwa=!1},Ewa=function(a){return a?a.__owner?a.__owner:a.parentNode&&a.parentNode.nodeType===11?a.parentNode.host:Dwa(a):null},Fwa=function(a,b,c){for(c||(a=Ewa(a));a&&!b(a);)a=Ewa(a)},Hwa=function(a){if(Gwa.has(a))return Gwa.get(a);throw Error("Cb`"+a);},Jwa=function(a){if(Iwa.has(a))return Iwa.get(a);
throw Error("Db`"+a);},Kwa=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},Lwa=function(){return vj?"Webkit":wj?"Moz":null},Mwa=function(a,b){if(b&&a in b)return a;var c=Lwa();return c?(c=c.toLowerCase(),a=c+xj(a),b===void 0||a in b?a:null):null},zj=function(a){var b=b===void 0?Nwa:b;var c=Owa(a),d=function(e){e=l(e);e.next();e=yj(e);return b(c,e)};return function(){var e=Yc.apply(0,arguments),f=this||ra,g=Pwa.get(f);
g||(g={},Pwa.set(f,g));f=g;g=[this].concat(n(e));e=d?d(g):g;if(Object.prototype.hasOwnProperty.call(f,e))f=f[e];else{var k=l(g);g=k.next().value;k=yj(k);g=a.apply(g,k);f=f[e]=g}return f}},Qwa=function(a){Aj.call(this);this.domHelper_=a||Bj();if(this.eventType_=this.getBrowserEventType_())this.eventKey_=Cj(this.domHelper_.document_,this.eventType_,Dj(this.handleChange_,this))},Ej=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d},Fj=function(a,b,c,d){this.left=a;this.top=b;this.width=
c;this.height=d},Rwa=function(){this.nextPtr_=0;this.maxSize_=50;this.buff_=[]},Swa=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;w=r=0}function b(x){for(var D=g,H=0;H<64;H+=4)D[H/4]=x[H]<<24|x[H+1]<<16|x[H+2]<<8|x[H+3];for(H=16;H<80;H++)x=D[H-3]^D[H-8]^D[H-14]^D[H-16],D[H]=(x<<1|x>>>31)&4294967295;x=e[0];var J=e[1],O=e[2],R=e[3],V=e[4];for(H=0;H<80;H++){if(H<40)if(H<20){var ba=R^J&(O^R);var pa=1518500249}else ba=J^O^R,pa=1859775393;else H<
60?(ba=J&O|R&(J|O),pa=2400959708):(ba=J^O^R,pa=3395469782);ba=((x<<5|x>>>27)&4294967295)+ba+V+pa+D[H]&4294967295;V=R;R=O;O=(J<<30|J>>>2)&4294967295;J=x;x=ba}e[0]=e[0]+x&4294967295;e[1]=e[1]+J&4294967295;e[2]=e[2]+O&4294967295;e[3]=e[3]+R&4294967295;e[4]=e[4]+V&4294967295}function c(x,D){if(typeof x==="string"){x=unescape(encodeURIComponent(x));for(var H=[],J=0,O=x.length;J<O;++J)H.push(x.charCodeAt(J));x=H}D||(D=x.length);H=0;if(r==0)for(;H+64<D;)b(x.slice(H,H+64)),H+=64,w+=64;for(;H<D;)if(f[r++]=
x[H++],w++,r==64)for(r=0,b(f);H+64<D;)b(x.slice(H,H+64)),H+=64,w+=64}function d(){var x=[],D=w*8;r<56?c(k,56-r):c(k,64-(r-56));for(var H=63;H>=56;H--)f[H]=D&255,D>>>=8;b(f);for(H=D=0;H<5;H++)for(var J=24;J>=0;J-=8)x[D++]=e[H]>>J&255;return x}for(var e=[],f=[],g=[],k=[128],m=1;m<64;++m)k[m]=0;var r,w;a();return{reset:a,update:c,digest:d,digestString:function(){for(var x=d(),D="",H=0;H<x.length;H++)D+="0123456789ABCDEF".charAt(Math.floor(x[H]/16))+"0123456789ABCDEF".charAt(x[H]%16);return D}}},Twa=
function(){this.document_=document||{cookie:""}},Zwa=function(a,b){b=b===void 0?Uwa:b;if(!Vwa){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("Nb"));Wwa((a.brands||[]).map(function(e){var f=new Xwa;return Gj(f,1,e.brand).setVersion(e.version)}));typeof a.mobile==="boolean"&&jj(Ywa,2,a.mobile);Vwa=a.getHighEntropyValues(b)}var d=new Set(b);return Vwa.then(function(e){var f=
Ywa.clone();d.has("platform")&&f.setPlatform(e.platform);d.has("platformVersion")&&Gj(f,4,e.platformVersion);d.has("architecture")&&Gj(f,5,e.architecture);d.has("model")&&f.setModel(e.model);d.has("uaFullVersion")&&Gj(f,7,e.uaFullVersion);return f.serialize()}).catch(function(){return Ywa.serialize()})},$wa=function(a){this.currBaseValue_=this.currValue_=this.initialValue_=a},axa=function(a){for(var b=Hj.lastWindowEvent.target;b;){if(b===a)return!0;b=b.parentElement}return!1},bxa=function(a){if(a)return typeof a===
"function"?a():a},cxa=function(a,b){if(a==null)return null;a=a.getRequestHook(b);return a==null?null:a},dxa=function(a){return Object.assign({},{arrays:{},descriptions:{},keys:[],objectMaps:{},objects:{},enums:{},emptyArrayIsUnset:!1},a)},exa=function(a,b){return Ij(b,a)},fxa=function(a,b,c){b[a]=c},gxa=function(){return{}},lxa=function(a,b){var c=new a;return b==null?c:hxa(b,ixa,jxa,kxa,a)},ixa=function(a,b){return b[a]},jxa=function(a,b,c){b.Serializable$values[a]=c},kxa=function(a){if(a==null)throw Error("Qb");
return new a},hxa=function(a,b,c,d,e){e=d(e);for(var f=mxa(a,e),g=f.arrays||{},k=f.objects||{},m=f.objectMaps||{},r=l(f.keys||[]),w=r.next(),x={};!w.done;x={mapMetadata:void 0},w=r.next()){w=w.value;var D=b(w,a);if(D!=null){var H=void 0;if(g.hasOwnProperty(w)){if(f.emptyArrayIsUnset&&D.length===0)continue;H=nxa(D,b,c,d,!0,!0,g[w])}else if(k.hasOwnProperty(w))H=nxa(D,b,c,d,!1,!0,k[w]);else if(m.hasOwnProperty(w))x.mapMetadata=m[w],H=x.mapMetadata.isPropertyArray?D.map(function(J){return function(O){return oxa(O,
J.mapMetadata,b,c,d)}}(x)):oxa(D,x.mapMetadata,b,c,d);else if(Array.isArray(D)){if(f.emptyArrayIsUnset&&D.length===0)continue;H=nxa(D,b,c,d,!0,!1)}else H=D;c(w,e,H)}}return e},oxa=function(a,b,c,d,e){for(var f={},g=l(Object.keys(a)),k=g.next();!k.done;k=g.next()){k=k.value;var m=a[k];m!=null&&(f[k]=nxa(m,c,d,e,b.isValueArray,b.isSerializable,b.ctor))}return f},nxa=function(a,b,c,d,e,f,g){if(f&&g==null)throw Error("Rb");if(a==null)return a;var k;e&&f?k=a.map(function(m){return hxa(m,b,c,d,g)}):e&&
!f?k=a.map(function(m){return m}):!e&&f?k=hxa(a,b,c,d,g):typeof a==="object"?k=JSON.parse(JSON.stringify(a)):k=a;return k},mxa=function(a,b){if(b instanceof Kj)a=dxa(b.getPartialClassMetadata());else if(a instanceof Kj)a=dxa(a.getPartialClassMetadata());else throw Error("Sb");return a},pxa=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}},qxa=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},rxa=function(a){if(!a.ok)throw Error(a.statusText);return a.json()},sxa=function(a,b){return(window.injected||new Map).get(a)||b},uxa=function(a){return function(b,c){if(typeof c==="object")b=txa(a,b,c);else{var d=b.hasOwnProperty(c);b.constructor.createProperty(c,a);b=d?Object.getOwnPropertyDescriptor(b,c):void 0}return b}},xxa=function(a,b,c){if(a.nodeType!==1)return vxa;b=b.toLowerCase();
if(b==="innerhtml"||b==="innertext"||b==="textcontent"||b==="outerhtml")return function(){return uh(Lj)};var d=wxa.get(a.tagName+" "+b);return d!==void 0?d:/^on/.test(b)&&c==="attribute"&&(a=a.tagName.includes("-")?HTMLElement.prototype:a,b in a)?function(){throw Error("Yb");}:vxa},Axa=function(a,b){if(!yxa(a)||!a.hasOwnProperty("raw"))throw Error("ac");return zxa!==void 0?zxa.createHTML(b):b},Nj=function(a,b,c,d){c=c===void 0?a:c;if(b===Mj)return b;var e,f=d!==void 0?(e=c.__directives)==null?void 0:
e[d]:c.__directive;e=Bxa(b)?void 0:b._$litDirective$;var g;if(((g=f)==null?void 0:g.constructor)!==e){var k,m;(k=f)==null||(m=k._$notifyDirectiveConnectionChanged)==null||m.call(k,!1);e===void 0?f=void 0:(f=new e(a),f._$initialize(a,c,d));if(d!==void 0){var r,w;((w=(r=c).__directives)!=null?w:r.__directives=[])[d]=f}else c.__directive=f}f!==void 0&&(b=Nj(a,f._$resolve(a,b.values),f,d));return b},Exa=function(a){this._$disconnectableChildren!==void 0?(Cxa(this),this._$parent=a,Dxa(this)):this._$parent=
a},Gxa=function(a,b,c){c=c===void 0?0:c;var d=this._$committedValue,e=this._$disconnectableChildren;if(e!==void 0&&e.size!==0)if(b===void 0?0:b)if(Array.isArray(d))for(a=c;a<d.length;a++)Fxa(d[a],!1),Cxa(d[a]);else d!=null&&(Fxa(d,!1),Cxa(d));else Fxa(this,a)},Hxa=function(a,b,c){for(var d=0;d<a.length;d++){var e=a[d],f=b[d];if(e[0]===":")c[e.substring(1)]=f;else if(e!==f.path)return!1}return!0},Ixa=function(a,b,c){var d=c.path.split("/"),e=d.indexOf("**");if(e===-1){if(d.length>a.length||c.pathMatch===
"full"&&(b.hasChildren()||d.length<a.length))return null;var f={};a=a.slice(0,d.length);return Hxa(d,a,f)?{consumed:a,posParams:f}:null}if(e!==d.lastIndexOf("**"))return null;f=d.slice(0,e);d=d.slice(e+1);if(f.length+d.length>a.length||c.pathMatch==="full"&&b.hasChildren()&&c.path!=="**")return null;b={};return Hxa(f,a.slice(0,f.length),b)&&Hxa(d,a.slice(a.length-d.length),b)?{consumed:a,posParams:b}:null},Jxa=function(a){return new Promise(function(b,c){a.pipe(qf()).subscribe({next:function(d){return b(d)},
error:function(d){return c(d)}})})},Oj=function(a,b){var c=a?Kxa(a):void 0,d=b?Kxa(b):void 0;if(!c||!d||c.length!=d.length)return!1;for(var e=0;e<c.length;e++)if(d=c[e],!Lxa(a[d],b[d]))return!1;return!0},Kxa=function(a){return[].concat(n(Object.keys(a)),n(Object.getOwnPropertySymbols(a)))},Lxa=function(a,b){if(Array.isArray(a)&&Array.isArray(b)){if(a.length!==b.length)return!1;a=[].concat(n(a)).sort();var c=[].concat(n(b)).sort();return a.every(function(d,e){return c[e]===d})}return a===b},Pj=function(a){return ve(a)?
a:Yka(a)?Ud(Promise.resolve(a)):be(a)},Mxa=function(a){return ve(a)?Jxa(a):Promise.resolve(a)},Pxa=function(a,b,c){return Nxa[c.paths](a.root,b.root,c.matrixParams)&&Oxa[c.queryParams](a.queryParams,b.queryParams)&&!(c.fragment==="exact"&&a.fragment!==b.fragment)},Qxa=function(a,b){return Oj(a,b)},Sxa=function(a,b,c){if(!Qj(a.segments,b.segments)||!Rxa(a.segments,b.segments,c)||a.numberOfChildren!==b.numberOfChildren)return!1;for(var d in b.children)if(!a.children[d]||!Sxa(a.children[d],b.children[d],
c))return!1;return!0},Txa=function(a,b){return Object.keys(b).length<=Object.keys(a).length&&Object.keys(b).every(function(c){return Lxa(a[c],b[c])})},Vxa=function(a,b,c){return Uxa(a,b,b.segments,c)},Uxa=function(a,b,c,d){if(a.segments.length>c.length)return a=a.segments.slice(0,c.length),Qj(a,c)&&!b.hasChildren()&&Rxa(a,c,d)?!0:!1;if(a.segments.length===c.length){if(!Qj(a.segments,c)||!Rxa(a.segments,c,d))return!1;for(var e in b.children)if(!a.children[e]||!Vxa(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 Qj(a.segments,e)&&Rxa(a.segments,e,d)&&a.children.primary?Uxa(a.children.primary,b,c,d):!1},Rxa=function(a,b,c){return b.every(function(d,e){return Oxa[c](a[e].parameters,d.parameters)})},Wxa=function(a,b){return Qj(a,b)&&a.every(function(c,d){return Oj(c.parameters,b[d].parameters)})},Qj=function(a,b){return a.length!==b.length?!1:a.every(function(c,d){return c.path===b[d].path})},Xxa=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},$xa=function(a){return a.segments.map(function(b){return Yxa(b.path)+Zxa(b.parameters)}).join("/")},aya=function(a,b){if(!a.hasChildren())return $xa(a);if(b){b=a.children.primary?aya(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+":"+aya(e,!1))});return c.length>0?b+"("+c.join("//")+")":b}b=Xxa(a,function(d,e){return e==="primary"?[aya(a.children.primary,!1)]:[e+":"+aya(d,!1)]});return Object.keys(a.children).length===1&&a.children.primary!=null?$xa(a)+"/"+b[0]:$xa(a)+"/("+b.join("//")+")"},bya=function(a){return encodeURIComponent(a).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")},cya=function(a){return bya(a).replace(/%3B/gi,";")},Yxa=function(a){return bya(a).replace(/\(/g,
"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")},Zxa=function(a){return Object.entries(a).map(function(b){var c=l(b);b=c.next().value;c=c.next().value;return";"+Yxa(b)+"="+Yxa(c)}).join("")},dya=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 cya(c)+"="+cya(d)}).join("&"):cya(c)+"="+cya(b)}).filter(function(b){return b});return a.length?"?"+a.join("&"):""},fya=function(a){return(a=a.match(eya))?a[0]:""},
gya=function(a){var b={};return a.segments.length>0?new Rj([],(b.primary=a,b)):a},hya=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=hya(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 Rj(a.segments,b);a.numberOfChildren===
1&&a.children.primary&&(b=a.children.primary,a=new Rj(a.segments.concat(b.segments),b.children));return a},Tj=function(a){return a instanceof Sj},iya=function(a){function b(f){for(var g={},k=l(f.children),m=k.next();!m.done;m=k.next()){m=m.value;var r=b(m);g[m.outlet]=r}g=new Rj(f.url,g);f===a&&(c=g);return g}var c,d=b(a.root);d=gya(d);var e;return(e=c)!=null?e:d},pya=function(a,b,c,d,e){for(var f=a;f.parent;)f=f.parent;if(b.length===0)return jya(f,f,f,c,d,e);b=kya(b);if(b.isAbsolute&&b.commands.length===
1&&b.commands[0]=="/")return jya(f,f,new Rj([],{}),c,d,e);var g=f;if(b.isAbsolute)a=new lya(g,!0,0);else if(a)if(a.parent===null)a=new lya(a,!0,0);else{g=a;a=a.segments.length-1+(mya(b.commands[0])?0:1);for(var k=b.numberOfDoubleDots;k>a;){k-=a;g=g.parent;if(!g)throw new Pc(4005,!1);a=g.segments.length}a=new lya(g,!1,a-k)}else a=new lya(g,!1,NaN);b=a.processChildren?nya(a.segmentGroup,a.index,b.commands):oya(a.segmentGroup,a.index,b.commands);return jya(f,a.segmentGroup,b,c,d,e)},mya=function(a){return typeof a===
"object"&&a!=null&&!a.outlets&&!a.segmentPath},qya=function(a){return typeof a==="object"&&a!=null&&a.outlets},rya=function(a,b,c){a||(a="\u0275");var d=new Sj,e={};d.queryParams=(e[a]=b,e);return c.parse(c.serialize(d)).queryParams[a]},jya=function(a,b,c,d,e,f){var g={};d=l(Object.entries(d!=null?d:{}));for(var k=d.next(),m={};!k.done;m={key$jscomp$567:void 0},k=d.next()){var r=l(k.value);k=r.next().value;r=r.next().value;m.key$jscomp$567=k;k=r;g[m.key$jscomp$567]=Array.isArray(k)?k.map(function(w){return function(x){return rya(w.key$jscomp$567,
x,f)}}(m)):rya(m.key$jscomp$567,k,f)}a=a===b?c:sya(a,b,c);a=gya(hya(a));return new Sj(a,g,e)},sya=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:sya(f,b,c)});return new Rj(a.segments,d)},kya=function(a){if(typeof a[0]==="string"&&a.length===1&&a[0]==="/")return new tya(!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 g={};Object.entries(e.outlets).forEach(function(k){var m=
l(k);k=m.next().value;m=m.next().value;g[k]=typeof m==="string"?m.split("/"):m});return[].concat(n(d),[{outlets:g}])}if(e.segmentPath)return[].concat(n(d),[e.segmentPath])}return typeof e!=="string"?[].concat(n(d),[e]):f===0?(e.split("/").forEach(function(k,m){if(m!=0||k!==".")m==0&&k===""?c=!0:k===".."?b++:k!=""&&d.push(k)}),d):[].concat(n(d),[e])},[]);return new tya(c,b,a)},uya=function(a){if(qya(a[0]))return a[0].outlets;var b={};return b.primary=a,b},oya=function(a,b,c){a!=null||(a=new Rj([],
{}));if(a.segments.length===0&&a.hasChildren())return nya(a,b,c);a:{var d=a;for(var e=0,f=b,g={match:!1,pathIndex:0,commandIndex:0};f<d.segments.length;){if(e>=c.length){d=g;break a}var k=d.segments[f],m=c[e];if(qya(m))break;m=""+m;var r=e<c.length-1?c[e+1]:null;if(f>0&&m===void 0)break;if(m&&r&&typeof r==="object"&&r.outlets===void 0){if(m!=k.path||!Oj(r,k.parameters)){d=g;break a}e+=2}else{r={};if(m!=k.path||!Oj(r,k.parameters)){d=g;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 Rj(a.segments.slice(0,d.pathIndex),{}),b.children.primary=new Rj(a.segments.slice(d.pathIndex),a.children),nya(b,0,e)):d.match&&e.length===0?new Rj(a.segments,{}):d.match&&!a.hasChildren()?vya(a,b,c):d.match?nya(a,0,e):vya(a,b,c)},nya=function(a,b,c){if(c.length===0)return new Rj(a.segments,{});var d=uya(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=nya(a.children.primary,b,c),new Rj(a.segments,c.children);Object.entries(d).forEach(function(f){var g=l(f);f=g.next().value;g=g.next().value;typeof g==="string"&&(g=[g]);g!==null&&(e[f]=oya(a.children[f],b,g))});Object.entries(a.children).forEach(function(f){var g=l(f);f=g.next().value;g=g.next().value;d[f]===void 0&&(e[f]=g)});return new Rj(a.segments,e)},vya=function(a,b,c){for(var d=a.segments.slice(0,b),e=0;e<c.length;){var f=c[e];if(qya(f))return a=wya(f.outlets),new Rj(d,a);if(e===
0&&mya(c[0]))d.push(new Uj(a.segments[b].path,xya(c[0]))),e++;else{f=qya(f)?f.outlets.primary:""+f;var g=e<c.length-1?c[e+1]:null;f&&g&&mya(g)?(d.push(new Uj(f,xya(g))),e+=2):(d.push(new Uj(f,{})),e++)}}return new Rj(d,{})},wya=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]=vya(new Rj([],{}),0,d))});return b},xya=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},yya=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=yya(a,c.value))return c;return null},zya=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=zya(a,d.value),d.length)return d.unshift(b),d;return[]},Aya=function(a){var b={};a&&a.children.forEach(function(c){return b[c.value.outlet]=c});return b},Cya=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[Bya]=d.title);return a},
Dya=function(a,b){b.value._routerState=a;b.children.forEach(function(c){return Dya(a,c)})},Eya=function(a){var b=a.children.length>0?" { "+a.children.map(Eya).join(", ")+" } ":"";return""+a.value+b},Fya=function(a){if(a.snapshot){var b=a.snapshot,c=a._futureSnapshot;a.snapshot=c;Oj(b.queryParams,c.queryParams)||a.queryParamsSubject.next(c.queryParams);b.fragment!==c.fragment&&a.fragmentSubject.next(c.fragment);Oj(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(!Oj(d[f],e[f])){d=!1;break a}d=!0}}d||a.urlSubject.next(c.url);Oj(b.data,c.data)||a.dataSubject.next(c.data)}else a.snapshot=a._futureSnapshot,a.dataSubject.next(a._futureSnapshot.data)},Gya=function(a,b){var c=Oj(a.params,b.params)&&Wxa(a.url,b.url),d=!a.parent!==!b.parent;return c&&!d&&(!a.parent||Gya(a.parent,b.parent))},Hya=function(a){var b=a.children&&a.children.map(Hya);a=b?Object.assign({},a,{children:b}):Object.assign({},a);a.component||a.loadComponent||
!b&&!a.loadChildren||!a.outlet||a.outlet==="primary"||(a.component=Iya);return a},Lya=function(a,b,c){a=Jya(a,b._root,c?c._root:void 0);return new Kya(a,b)},Jya=function(a,b,c){if(c&&a.shouldReuseRoute(b.value,c.value.snapshot)){var d=c.value;d._futureSnapshot=b.value;b=Mya(a,b,c);return new Vj(d,b)}d=Nya(b.value);b=b.children.map(function(e){return Jya(a,e)});return new Vj(d,b)},Mya=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 Jya(a,d,f);return Jya(a,d)})},Nya=function(a){return new Wj(new Xj(a.url),new Xj(a.params),new Xj(a.queryParams),new Xj(a.fragment),new Xj(a.data),a.outlet,a.component,a)},Pya=function(a){var b=Tj(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a;a=b.redirectTo;b=b.navigationBehaviorOptions;var c=Oya(0);c.url=a;c.navigationBehaviorOptions=b;return c},Oya=function(a){var b=Error("fc`");b.ngNavigationCancelingError=!0;b.cancellationCode=a;return b},
Qya=function(a){return!!a&&a.ngNavigationCancelingError},Yj=function(){return zf(function(a){return he(a.map(function(b){return b.pipe(mf(1),yf(Rya))})).pipe(A(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c!==!0){if(c===Rya)return Rya;if(c===!1||Tj(c))return c}return!0}),te(function(b){return b!==Rya}),mf(1))})},Sya=function(a){return a.aborted?be(void 0).pipe(mf(1)):new Sd(function(b){var c=function(){b.next();b.complete()};a.addEventListener("abort",c);return function(){return a.removeEventListener("abort",
c)}})},Zj=function(a,b){var c=Symbol(),d=b.get(a,c);return d===c?typeof a!=="function"||Fea(a)!==null?b.get(a):a:d},Vya=function(a,b,c,d,e){e=e===void 0?{canDeactivateChecks:[],canActivateChecks:[]}:e;var f=Aya(b);a.children.forEach(function(g){var k=f[g.value.outlet],m=d.concat([g.value]),r=e;r=r===void 0?{canDeactivateChecks:[],canActivateChecks:[]}:r;var w=g.value,x=k?k.value:null,D=c?c.getContext(g.value.outlet):null;if(x&&w.routeConfig===x.routeConfig){var H=Tya(x,w,w.routeConfig.runGuardsAndResolvers);
H?r.canActivateChecks.push(new Uya(m)):(w.data=x.data,w._resolvedData=x._resolvedData);w.component?Vya(g,k,D?D.children:null,m,r):Vya(g,k,c,m,r);H&&D&&D.outlet&&D.outlet.isActivated&&r.canDeactivateChecks.push(new Wya(D.outlet.component,x))}else x&&Xya(k,D,r),r.canActivateChecks.push(new Uya(m)),w.component?Vya(g,null,D?D.children:null,m,r):Vya(g,null,c,m,r);delete f[g.value.outlet]});Object.entries(f).forEach(function(g){var k=l(g);g=k.next().value;k=k.next().value;return Xya(k,c.getContext(g),e)});
return e},Tya=function(a,b,c){if(typeof c==="function")return ed(b._environmentInjector,function(){return c(a,b)});switch(c){case "pathParamsChange":return!Qj(a.url,b.url);case "pathParamsOrQueryParamsChange":return!Qj(a.url,b.url)||!Oj(a.queryParams,b.queryParams);case "always":return!0;case "paramsOrQueryParamsChange":return!Gya(a,b)||!Oj(a.queryParams,b.queryParams);default:return!Gya(a,b)}},Xya=function(a,b,c){var d=Aya(a),e=a.value;Object.entries(d).forEach(function(f){var g=l(f);f=g.next().value;
g=g.next().value;e.component?b?Xya(g,b.children.getContext(f),c):Xya(g,null,c):Xya(g,b,c)});e.component?b&&b.outlet&&b.outlet.isActivated?c.canDeactivateChecks.push(new Wya(b.outlet.component,e)):c.canDeactivateChecks.push(new Wya(null,e)):c.canDeactivateChecks.push(new Wya(null,e))},Yya=function(a){return typeof a==="function"},Zya=function(a){return a instanceof Pha||(a==null?void 0:a.name)==="EmptyError"},bza=function(a){return ie(function(b){var c=b.targetSnapshot,d=b.currentSnapshot,e=b.guards,
f=e.canActivateChecks;e=e.canDeactivateChecks;return e.length===0&&f.length===0?be(Object.assign({},b,{guardsResult:!0})):$ya(e,c,d).pipe(ie(function(g){return g&&typeof g==="boolean"?aza(c,f,a):be(g)}),A(function(g){return Object.assign({},b,{guardsResult:g})}))})},$ya=function(a,b,c){return Ud(a).pipe(ie(function(d){return cza(d.component,d.route,c,b)}),qf(function(d){return d!==!0},!0))},aza=function(a,b,c){return Ud(b).pipe(mla(function(d){var e=d.route.parent;e!==null&&c&&c(new dza(e));e=be(!0);
var f=d.route;f!==null&&c&&c(new eza(f));f=be(!0);return ke(e,f,fza(a,d.path),gza(a,d.route))}),qf(function(d){return d!==!0},!0))},gza=function(a,b){var c=b.routeConfig?b.routeConfig.canActivate:null;if(!c||c.length===0)return be(!0);c=c.map(function(d){return le(function(){var e=b._environmentInjector,f=Zj(d,e);e=f&&Yya(f.canActivate)?f.canActivate(b,a):ed(e,function(){return f(b,a)});return Pj(e).pipe(qf())})});return be(c).pipe(Yj())},fza=function(a,b){var c=b[b.length-1];b=b.slice(0,b.length-
1).reverse().map(function(d){var e=d.routeConfig?d.routeConfig.canActivateChild:null;return e&&e.length!==0?{node:d,guards:e}:null}).filter(function(d){return d!==null}).map(function(d){return le(function(){var e=d.guards.map(function(f){var g=d.node._environmentInjector,k=Zj(f,g);f=k&&Yya(k.canActivateChild)?k.canActivateChild(c,a):ed(g,function(){return k(c,a)});return Pj(f).pipe(qf())});return be(e).pipe(Yj())})});return be(b).pipe(Yj())},cza=function(a,b,c,d){var e=b&&b.routeConfig?b.routeConfig.canDeactivate:
null;if(!e||e.length===0)return be(!0);e=e.map(function(f){var g=b._environmentInjector,k=Zj(f,g);f=k&&Yya(k.canDeactivate)?k.canDeactivate(a,b,c,d):ed(g,function(){return k(a,b,c,d)});return Pj(f).pipe(qf())});return be(e).pipe(Yj())},iza=function(a,b,c,d){var e=b.canLoad;if(e===void 0||e.length===0)return be(!0);e=e.map(function(f){var g=Zj(f,a);f=g&&Yya(g.canLoad)?g.canLoad(b,c):ed(a,function(){return g(b,c)});f=Pj(f);return d?f.pipe(Af(Sya(d))):f});return be(e).pipe(Yj(),hza())},hza=function(){return Rd(Bf(function(a){if(typeof a!==
"boolean")throw Pya(a);}),A(function(a){return a===!0}))},jza=function(a,b,c,d){var e=b.canMatch;if(!e||e.length===0)return be(!0);e=e.map(function(f){var g=Zj(f,a);f=g&&Yya(g.canMatch)?g.canMatch(b,c):ed(a,function(){return g(b,c)});f=Pj(f);return d?f.pipe(Af(Sya(d))):f});return be(e).pipe(Yj(),hza())},kza=function(a,b,c){if(typeof a==="string")return Promise.resolve(a);var d=b.queryParams,e=b.fragment,f=b.routeConfig,g=b.url,k=b.outlet,m=b.params,r=b.data,w=b.title;return Jxa(Pj(ed(c,function(){return a({params:m,
data:r,queryParams:d,fragment:e,routeConfig:f,url:g,outlet:k,title:w})})))},lza=function(a,b){a.providers&&!a._injector&&(a._injector=Rka(a.providers,b,"Route: "+a.path));var c;return(c=a._injector)!=null?c:b},ak=function(a){return a.outlet||"primary"},mza=function(a,b){var c=a.filter(function(d){return ak(d)===b});c.push.apply(c,n(a.filter(function(d){return ak(d)!==b})));return c},pza=function(a,b,c,d,e){var f=nza(a,b,c);if(!f.matched)return be(f);d=lza(b,d);return jza(d,b,c,e).pipe(A(function(g){return g===
!0?f:Object.assign({},oza)}))},nza=function(a,b,c){if(b.path==="")return b.pathMatch==="full"&&(a.hasChildren()||c.length>0)?Object.assign({},oza):{matched:!0,consumedSegments:[],remainingSegments:c,parameters:{},positionalParamSegments:{}};a=(b.matcher||Ixa)(c,a,b);if(!a)return Object.assign({},oza);var d={},e;Object.entries((e=a.posParams)!=null?e:{}).forEach(function(g){var k=l(g);g=k.next().value;k=k.next().value;d[g]=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:{}}},tza=function(a,b,c,d){if(c.length>0&&qza(a,c,d)){var e=Rj;a=new Rj(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===""&&ak(d)!=="primary"){var f=new Rj([],{});c[ak(d)]=f}c={segmentGroup:new e(b,c),slicedSegments:[]}}else if(c.length===0&&rza(a,c,d)){b=Rj;e=a.segments;f=a.children;
var g={};d=l(d);for(var k=d.next();!k.done;k=d.next())if(k=k.value,sza(a,c,k)&&!f[ak(k)]){var m=new Rj([],{});g[ak(k)]=m}a=Object.assign({},f,g);c={segmentGroup:new b(e,a),slicedSegments:c}}else c={segmentGroup:new Rj(a.segments,a.children),slicedSegments:c};return c},qza=function(a,b,c){return c.some(function(d){return sza(a,b,d)&&ak(d)!=="primary"})},rza=function(a,b,c){return c.some(function(d){return sza(a,b,d)})},sza=function(a,b,c){return(a.hasChildren()||b.length>0)&&c.pathMatch==="full"?!1:
c.path===""},vza=function(a,b,c,d,e,f,g,k){g=g===void 0?"emptyOnly":g;return y(function(m){return m.return((new uza(a,b,c,d,e,g,f,k)).recognize())})},wza=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)})},xza=function(a){return(a=a.value.routeConfig)&&a.path===""},yza=function(a){var b=[],c=new Set;a=l(a);for(var d=a.next(),e={};!d.done;e={node$jscomp$211:void 0},d=a.next())e.node$jscomp$211=d.value,xza(e.node$jscomp$211)?
(d=b.find(function(f){return function(g){return f.node$jscomp$211.value.routeConfig===g.value.routeConfig}}(e)),d!==void 0?(d.children.push.apply(d.children,n(e.node$jscomp$211.children)),c.add(d)):b.push(e.node$jscomp$211)):b.push(e.node$jscomp$211);a=l(c);for(e=a.next();!e.done;e=a.next())e=e.value,d=yza(e.children),b.push(new Vj(e.value,d));return b.filter(function(f){return!c.has(f)})},Aza=function(a,b,c,d,e,f,g){var k=a.get(zza);return ie(function(m){return be(m).pipe(zf(function(r){return k(a,
b,c,d,r.extractedUrl,e,f,g)}),A(function(r){return Object.assign({},m,{targetSnapshot:r.state,urlAfterRedirects:r.tree})}))})},Dza=function(a){return ie(function(b){var c=b.targetSnapshot,d=b.guards.canActivateChecks;if(!d.length)return be(b);var e=new Set(d.map(function(r){return r.route})),f=new Set;d=l(e);for(var g=d.next();!g.done;g=d.next())if(g=g.value,!f.has(g)){g=l(Bza(g));for(var k=g.next();!k.done;k=g.next())f.add(k.value)}var m=0;return Ud(f).pipe(mla(function(r){if(e.has(r))return Cza(r,
c,a);r.data=Cya(r,r.parent,a).resolve;return be(void 0)}),Bf(function(){return m++}),Ala(),ie(function(){return m===f.size?be(b):re}))})},Bza=function(a){var b=a.children.map(function(c){return Bza(c)}).flat();return[a].concat(n(b))},Cza=function(a,b,c){var d=a.routeConfig,e=a._resolve;(d==null?void 0:d.title)!==void 0&&typeof d.title!=="string"&&d.title!==null&&(e[Bya]=d.title);return le(function(){a.data=Cya(a,a.parent,c).resolve;return Eza(e,a,b).pipe(A(function(f){a._resolvedData=f;a.data=Object.assign({},
a.data,f);return null}))})},Eza=function(a,b,c){var d=Kxa(a);if(d.length===0)return be({});var e={};return Ud(d).pipe(ie(function(f){return Fza(a[f],b,c).pipe(qf(),Bf(function(g){e[f]=g}))}),Ala(),A(function(){return e}),hf(function(f){return Zya(f)?re:ce(f)}))},Fza=function(a,b,c){var d=b._environmentInjector,e=Zj(a,d);a=e.resolve?e.resolve(b,c):ed(d,function(){return e(b,c)});return Pj(a)},Gza=function(a){return zf(function(b){var c=a(b);return c?Ud(c).pipe(A(function(){return b})):be(b)})},Mza=
function(a,b,c){var d,e,f,g,k,m;return y(function(r){switch(r.nextAddress){case 1:return z(r,Mxa(ed(b,function(){return a.loadChildren()})),2);case 2:return d=r.yieldResult,z(r,Hza(Iza(d)?d["default"]:d),3);case 3:e=r.yieldResult;if(e instanceof Jza||Array.isArray(e)){f=e;r.jumpTo(4);break}return z(r,Promise.resolve(new Kza(e)),5);case 5:f=r.yieldResult;case 4:return c&&c(a),Array.isArray(f)?k=f:(g=f.create(b).injector,k=g.get(Lza,[],{optional:!0,self:!0}).flat()),m=k.map(Hya),r.return({routes:m,
injector:g})}})},Iza=function(a){return a&&typeof a==="object"&&"default"in a},Hza=function(a){var b;return y(function(c){switch(c.nextAddress){case 1:c.jumpTo(2);break;case 5:bk(c,2);break;case 3:b=Zd(c),console.error(b);case 2:return c.return(a)}})},Pza=function(a,b,c){var d=a.get(Nza),e=a.get(Yh);if(!e.startViewTransition||d.skipNextTransition)return d.skipNextTransition=!1,new Promise(function(r){return setTimeout(r)});var f,g=new Promise(function(r){f=r}),k=e.startViewTransition(function(){f();
return Oza(a)});k.ready.catch(function(){});var m=d.onViewTransitionCreated;m&&ed(a,function(){return m({transition:k,from:b,to:c})});return g},Oza=function(a){return new Promise(function(b){De({read:function(){return setTimeout(b)}},{injector:a})})},Qza=function(a,b){a.events.pipe(te(function(c){return c instanceof ck||c instanceof dk||c instanceof ek||c instanceof fk}),A(function(c){return c instanceof ck||c instanceof fk?0:c instanceof dk&&(c.code===0||c.code===1)?2:1}),te(function(c){return c!==
2}),mf(1)).subscribe(function(){b()})},Rza=function(a,b){return{"\u0275kind":a,"\u0275providers":b}},Sza=function(a){a&1&&(yd(),K(0,"svg",2),M(1,"polygon",3),L())},Tza=function(a){if(a&1){var b=t();Sf(0,"div",0);eg("click",function(){u(b);var c=P();return v(c.closed.emit("click"))})("animationstart",function(c){u(b);var d=P();return v(d._onAnimationStart(c.animationName))})("animationend",function(c){u(b);var d=P();return v(d._onAnimationDone(c.animationName))})("animationcancel",function(c){u(b);
var d=P();return v(d._onAnimationDone(c.animationName))});Sf(1,"div",1);gg(2);Tf()()}a&2&&(a=P(),zg(a._classList),yg("mat-menu-panel-animations-disabled",a._animationsDisabled)("mat-menu-panel-exit-animation",a._panelAnimationState==="void")("mat-menu-panel-animating",a._isAnimating()),Rf("id",a.panelId),Jf("aria-label",a.ariaLabel||null)("aria-labelledby",a.ariaLabelledby||null)("aria-describedby",a.ariaDescribedby||null))},Uza=function(a,b){if(a&1){var c=t();K(0,"link-chip",18);N("removeContextSource",
function(d){u(c);var e=P(3);return v(e.removeContextSource(d))});L()}a&2&&(a=b.$implicit,I("label",Fg(a.label))("iconUrl",Fg(a.imgSrc))("linkUrl",Fg(a.fullUrl))("showRemoveButton",!0))},Vza=function(a){a&1&&(K(0,"span",16),S(1,"Links:"),L(),Pf(2,Uza,1,7,"link-chip",17,Of));a&2&&(P(2),a=dg(0),B(2),Qf(a))},Wza=function(a){a&1&&(K(0,"span",14)(1,"mat-icon",19),S(2,"error"),L(),K(3,"span"),S(4),L()());a&2&&(P(2),a=dg(2),B(4),T(" ",a," "))},Xza=function(a){a&1&&(K(0,"button",20)(1,"mat-icon"),S(2,"add"),
L()());a&2&&(P(3),a=Q(18),I("matMenuTriggerFor",a))},Yza=function(a){a&1&&(K(0,"span",15),F(1,Xza,3,1,"button",20),K(2,"span",21),S(3,"Links:"),L(),K(4,"a",22),S(5),K(6,"mat-icon",23),S(7,"open_in_new"),L()()());a&2&&(a=P(2),B(),G(a.duckieAddKnowledgeMvpEnabled?1:-1),a="Learn more about links "+a.agentName+" can use",B(4),T(" ",a," "))},Zza=function(a){a&1&&(K(0,"div",2),F(1,Vza,4,0)(2,Wza,5,1,"span",14)(3,Yza,8,2,"span",15),L());if(a&2){P();a=dg(0);var b=dg(2);B();G(a&&a.length>0?1:b?2:3)}},$za=
function(a){if(a&1){var b=t();K(0,"button",24);N("click",function(){u(b);var c=P();return v(c.cancelDuckieStream())});K(1,"mat-icon",25);S(2," stop_circle ");L()()}},aAa=function(a){if(a&1){var b=t();K(0,"button",26);U(1,"async");U(2,"async");N("click",function(){u(b);var c=P();return v(c.sendMessage())});K(3,"mat-icon",25);S(4," send ");L()()}a&2&&(a=P(),I("disabled",W(1,2,a.isDuckieThinking$)||!(a.inputText()&&(a.inputText()||"").trim().length>0)),Jf("aria-label",W(2,4,a.isDuckieThinking$)?"Stop Duckie's response":
"Send message"))},bAa=function(a){a&1&&Xf(0,null,0)},cAa=function(a){if(a&1){var b=t();K(0,"message-input",2);N("submitMessage",function(c){u(b);var d=P();return v(d.submitMessage.emit(c))});L()}a&2&&(a=P(),I("inputText",a.inputText())("inputPlaceholder",a.inputPlaceholder()))},dAa=function(a){a&1&&(Sf(0,"span"),S(1),Tf());a&2&&(a=P(),B(),Ag(a.overrideAgentName))},eAa=function(a){a&1&&(Sf(0,"a",2),S(1,"Duckie"),Tf())},fAa=function(a){a&1&&Xf(0,null,0)},gAa=function(a){a&1&&M(0,"reminder-blurb")},
hAa=function(a){a&1&&(K(0,"div",1),M(1,"div",4)(2,"div",5)(3,"div",6),L())},iAa=function(a,b){if(a&1){var c=t();K(0,"button",10);N("click",function(){var d=u(c).$implicit,e=P(2);d=d.prompt;e.draftQuery.set(d);e.sendQuestion(d);return v()});S(1);L()}a&2&&(a=b.$implicit,b=P(2),I("ve",b.ve.ProductionAgentZeroStateSuggestionChip)("veClick",!0),If("aria-label",a.label),B(),T(" ",a.label," "))},kAa=function(a,b){a&1&&(K(0,"div",7)(1,"div",8),S(2),L(),Pf(3,iAa,2,4,"button",9,jAa),L());a&2&&(a=b.$implicit,
b=P(),yg("hidden",b.isLoading()),B(2),Ag(a.title),B(),Qf(a.examples))},gk=function(a,b){lAa[a]=(lAa[a]||0)+1;if(typeof b==="function")return mAa(a,function(){return Object.assign({},b.apply(null,n(Yc.apply(0,arguments))),{type:a})});switch(b?b._as:"empty"){case "empty":return mAa(a,function(){return{type:a}});case "props":return mAa(a,function(c){return Object.assign({},c,{type:a})});default:throw Error("hc");}},hk=function(){return{_as:"props",_p:void 0}},mAa=function(a,b){return Object.defineProperty(b,
"type",{value:a,writable:!1})},nAa=function(a){if(a===null||a===void 0)throw Error("ic`Store Injector");},oAa=function(a){return typeof a==="function"},pAa=function(a,b){return a===b},ik=function(a,b,c){b=b===void 0?pAa:b;c=c===void 0?pAa:c;var d=null,e=null,f;return{memoized:function(){if(f!==void 0)return f.result;if(!d)return e=a.apply(null,arguments),d=arguments,e;a:{var g=arguments;for(var k=d,m=b,r=0;r<g.length;r++)if(!m(g[r],k[r])){g=!0;break a}g=!1}if(!g)return e;g=a.apply(null,arguments);
d=arguments;return c(e,g)?e:e=g},reset:function(){e=d=null},setResult:function(g){f={result:g}},clearResult:function(){f=void 0}}},kk=function(){return jk(ik).apply(null,n(Yc.apply(0,arguments)))},qAa=function(a,b,c,d){if(c===void 0)return b=b.map(function(e){return e(a)}),d.memoized.apply(null,b);b=b.map(function(e){return e(a,c)});return d.memoized.apply(null,[].concat(n(b),[c]))},jk=function(a){var b=b===void 0?{stateFn:qAa}:b;return function(){var c=Yc.apply(0,arguments);if(Array.isArray(c[0])){var d=
l(c);c=d.next().value;d=yj(d);c=[].concat(n(c),n(d))}else c.length===1&&rAa(c[0])&&(c=sAa(c[0]));var e=c.slice(0,c.length-1),f=c[c.length-1],g=e.filter(function(r){return r.release&&typeof r.release==="function"}),k=a(function(){return f.apply(null,Yc.apply(0,arguments))}),m=ik(function(r,w){return b.stateFn.apply(null,[r,e,w,k])});return Object.assign(m.memoized,{release:function(){m.reset();k.reset();g.forEach(function(r){return r.release()})},projector:k.memoized,setResult:m.setResult,clearResult:m.clearResult})}},
rAa=function(a){return!!a&&typeof a==="object"&&Object.values(a).every(function(b){return typeof b==="function"})},sAa=function(a){var b=Object.values(a),c=Object.keys(a);return[].concat(n(b),[function(){var d=Yc.apply(0,arguments);return c.reduce(function(e,f,g){var k={};return Object.assign({},e,(k[f]=d[g],k))},{})}])},tAa=function(a,b){b=b===void 0?{}:b;for(var c=Object.keys(a),d={},e=0;e<c.length;e++){var f=c[e];typeof a[f]==="function"&&(d[f]=a[f])}var g=Object.keys(d);return function(k,m){k=
k===void 0?b:k;for(var r=!1,w={},x=0;x<g.length;x++){var D=g[x],H=k[D],J=(0,d[D])(H,m);w[D]=J;r=r||J!==H}return r?w:k}},uAa=function(a,b){return Object.keys(a).filter(function(c){return c!==b}).reduce(function(c,d){var e={};return Object.assign(c,(e[d]=a[d],e))},{})},vAa=function(){var a=Yc.apply(0,arguments);return function(b){return a.length===0?b:a.slice(0,-1).reduceRight(function(c,d){return d(c)},(0,a[a.length-1])(b))}},wAa=function(a,b){Array.isArray(b)&&b.length>0&&(a=vAa.apply(null,[].concat(n(b),
[a])));return function(c,d){var e=a(c);return function(f,g){f=f===void 0?d:f;return e(f,g)}}},xAa=function(a){var b=Array.isArray(a)&&a.length>0?vAa.apply(null,n(a)):function(c){return c};return function(c,d){c=b(c);return function(e,f){e=e===void 0?d:e;return c(e,f)}}},zAa=function(a,b){return function(c,d){d=b.action(d)?yAa(d):d;c=a(c,d);return b.state()?yAa(c):c}},yAa=function(a){Object.freeze(a);var b=oAa(a);Object.getOwnPropertyNames(a).forEach(function(c){if(!c.startsWith("\u0275")&&Object.prototype.hasOwnProperty.call(a,
c)&&(b?c!=="caller"&&c!=="callee"&&c!=="arguments":1)){c=a[c];if(c instanceof X){if(c.isImmutable())return;throw Error();}(typeof c!=="object"||c===null)&&!oAa(c)||Object.isFrozen(c)||yAa(c)}});return a},BAa=function(a,b){return function(c,d){if(b.action(d)&&!AAa())throw Error("mc`"+d.type);return a(c,d)}},EAa=function(a,b){return function(c,d){if(b.action(d)){var e=CAa(d);DAa(e,"action")}c=a(c,d);b.state()&&(d=CAa(c),DAa(d,"state"));return c}},CAa=function(a,b){b=b===void 0?[]:b;return a!==void 0&&
a!==null||b.length!==0?Object.keys(a).reduce(function(c,d){if(c)return c;var e=a[d];oAa(e)&&e.hasOwnProperty("\u0275cmp")?d=c:e===void 0||e===null||typeof e==="number"||typeof e==="boolean"||typeof e==="string"||Array.isArray(e)?d=!1:(typeof e!=="object"||e===null||Array.isArray(e)?c=!1:(c=Object.getPrototypeOf(e),c=c===Object.prototype||c===null),d=c?CAa(e,[].concat(n(b),[d])):{path:[].concat(n(b),[d]),value:e});return d},!1):{path:["root"],value:a}},DAa=function(a,b){if(a!==!1){var c=a.path.join(".");
b=Error("nc`"+b+"`"+c+"`"+b);b.value=a.value;b.unserializablePath=c;throw b;}},IAa=function(){return[{provide:FAa,multi:!0,deps:[GAa],useFactory:HAa}]},HAa=function(a){if(a.strictActionTypeUniqueness&&(a=Object.entries(lAa).filter(function(b){b=l(b);b.next();return b.next().value>1}).map(function(b){return l(b).next().value}),a.length))throw Error("oc`"+a.map(function(b){return'"'+b+'"'}).join(", "));},JAa=function(a,b){a=a===void 0?{state:void 0}:a;var c=l(b);b=c.next().value;c=c.next().value;return{state:c(a.state,
b),action:b}},lk=function(a,b){var c=Yc.apply(2,arguments);return function(d){if(typeof a==="string"){var e=[b].concat(n(c)).filter(Boolean);d=d.pipe(Ela.apply(null,[a].concat(n(e))))}else if(typeof a==="function")d=d.pipe(A(function(f){return a(f,b)}));else throw new TypeError("pc`"+typeof a);return d.pipe(of())}},KAa=function(a){return typeof a==="function"?a():a},mk=function(){var a=Yc.apply(0,arguments),b=a.pop();a=a.map(function(c){return c.type});return{reducer:b,types:a}},ok=function(a){for(var b=
new Map,c=l(Yc.apply(1,arguments)),d=c.next(),e={};!d.done;e={on:void 0},d=c.next()){e.on=d.value;d=l(e.on.types);for(var f=d.next(),g={};!f.done;g={existingReducer:void 0},f=d.next())f=f.value,g.existingReducer=b.get(f),g.existingReducer?b.set(f,function(k,m){return function(r,w){return k.on.reducer((0,m.existingReducer)(r,w),w)}}(e,g)):b.set(f,e.on.reducer)}return function(k,m){k=k===void 0?a:k;var r=b.get(m.type);return r?r(k,m):k}},pk=function(a){var b=a.actions;return b.length===1?b[0]:LAa(a)},
qk=function(a){return function(b,c){if(c.type===LAa.type&&c.actions.length>0){var d=l(c.actions);c=d.next().value;d=yj(d);b=a(b,c);c=l(d);for(d=c.next();!d.done;d=c.next())b=a(b,d.value);return b}return a(b,c)}},NAa=function(a,b){var c=MAa.get(a);c||(c={timer:0,actions:[]},MAa.set(a,c));c.actions.push(b);c.timer||(c.timer=setTimeout(function(){c.timer=0;a.dispatch(pk({actions:c.actions}));c.actions=[]}))},rk=function(a){var b=l(a);a=b.next().value;b=b.next().value;return{previousValue:a,currentValue:b}},
sk=function(a,b){return{previousValue:a.previousValue&&b(a.previousValue)||null,currentValue:a.currentValue&&b(a.currentValue)||null}},vk=function(a,b,c,d,e,f,g,k){return new tk({getKey:a,getSelector:function(m,r){var w=r.getSelector(c,m),x=d?r.getSelector(d,m):void 0,D=e?r.getSelector(e,m):void 0,H=f?r.getSelector(f,m):void 0,J=g?r.getSelector(g,m):void 0;m=k?r.getSelector(k,m):void 0;return x&&D&&H&&J&&m?he([w,x,D,H,J,m]).pipe(A(function(O){var R=l(O);O=R.next().value;var V=R.next().value;var ba=
R.next().value;var pa=R.next().value;var ua=R.next().value;R=R.next().value;return uk(O,V,ba,pa,ua,R,b)})):x&&D&&H&&J?he([w,x,D,H,J]).pipe(A(function(O){var R=l(O);O=R.next().value;var V=R.next().value;var ba=R.next().value;var pa=R.next().value;R=R.next().value;return uk(O,V,ba,pa,R,b)})):x&&D&&H?he([w,x,D,H]).pipe(A(function(O){var R=l(O);O=R.next().value;var V=R.next().value;var ba=R.next().value;R=R.next().value;return uk(O,V,ba,R,b)})):x&&D?he([w,x,D]).pipe(A(function(O){var R=l(O);O=R.next().value;
var V=R.next().value;R=R.next().value;return uk(O,V,R,b)})):x?he([w,x]).pipe(A(function(O){var R=l(O);O=R.next().value;R=R.next().value;return uk(O,R,b)})):w.pipe(A(function(O){return uk(O,b)}))}})},OAa=function(a,b){return a===b},PAa=function(a,b){if(a!=null&&Object.getPrototypeOf(a)===Object.prototype&&b!=null&&Object.getPrototypeOf(b)===Object.prototype)a:{for(var c in a)if(!(c in b)||a[c]!==b[c]){a=!1;break a}for(var d in b)if(!(d in a)){a=!1;break a}a=!0}else a=Array.isArray(a)&&Array.isArray(b)?
Mba(a,b):a===b;return a},wk=function(a){return"chartGroupId:"+a.chartGroupId+",chartId:"+a.chartId+",xAxisId:"+a.xAxisId},QAa=function(a){return"chartId:"+a.chartId+",layerId:"+a.layerId},xk=function(a){return"chartGroupId:"+a.chartGroupId+",chartId:"+a.chartId+",xAxisId:"+a.xAxisId+",layerId:"+a.layerId},yk=function(a){return"chartId:"+a.chartId},zk=function(a){return"chartGroupId:"+a.chartGroupId},RAa=function(a){return"chartGroupId:"+a.chartGroupId+",chartId:"+a.chartId},SAa=function(){return kk(Ak,
function(a){return a.focus})},TAa=function(){return kk(Ak,function(a){return a.hoverDisabled})},Bk=function(a){var b=a.previousValue;a=a.currentValue;return!a||b&&a.height===b.height&&a.width===b.width&&a.margins.top===b.margins.top&&a.margins.right===b.margins.right&&a.margins.bottom===b.margins.bottom&&a.margins.left===b.margins.left?!1:!0},Ck=function(a){var b=a.previousValue,c=a.currentValue;if(!b||!c)return!b&&c||b&&!c?!0:!1;a=b.width-b.margins.left-b.margins.right;b=b.height-b.margins.top-b.margins.bottom;
var d=c.width-c.margins.left-c.margins.right;c=c.height-c.margins.top-c.margins.bottom;return!a||!d||Math.abs(d/a-1)>=.4||!b||!c||Math.abs(c/b-1)>=.4},UAa=function(a){var b=a.previousValue;if(a=a.currentValue){if(!b)return!1;if(a.height===b.height&&a.width===b.width&&(a.margins.top!==b.margins.top||a.margins.right!==b.margins.right||a.margins.bottom!==b.margins.bottom||a.margins.left!==b.margins.left))return!0}return!1},Dk=function(a){var b=a.chartId;return kk(VAa,function(c){return c.entities[b]})},
XAa=function(a){var b=function(d){return!(typeof d==="string"&&/^\s*$/.test(d))},c=a.findIndex(b);b=WAa(a,b);return c>=0&&b>=0?a.slice(c,b+1):[]},YAa=function(a){for(var b=[],c=0;c<a.subtokens_.length;++c)b.push(a.subtoken(c));b=XAa(b);return b=b.map(function(d){return d instanceof Ek?new Ek(d.toString().trim()):d.trim()})},ZAa=function(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next())a.append(c.value)},$Aa=function(a){if(a instanceof Ek)return new Ek(a.toString().trim());if(a instanceof Fk){a=YAa(a);
if(a.length>0){var b=new Fk(a.shift());ZAa(b,a);return b}return new Fk("")}return a instanceof Gk?(a=YAa(a),a.length>0?(b=new Gk(a.shift()),ZAa(b,a),b):new Gk("")):typeof a==="string"?a.trim():a},bBa=function(a){var b=a.chartId;return kk(aBa,function(c){return c.entities[b]})},cBa=function(a){var b=a.chartId;var c=[];return kk(aBa,function(d){var e=[];if(d=d.entities[b]){d=l(Object.values(d.byLayer.entities));for(var f=d.next();!f.done;f=d.next())if(f=f.value){f=l(Object.values(f.bySeries.entities));
for(var g=f.next();!g.done;g=f.next())(g=g.value)&&g.dataSeriesMetadata&&e.push(g.dataSeriesMetadata)}}return e.length===c.length&&c.every(function(k,m){return k===e[m]})?c:c=e})},fBa=function(a){return kk(cBa({chartId:a.chartId}),function(b){var c={metric:new Set,shortMetric:new Set,aligner:new Set,primaryReducer:new Set,secondaryReducer:new Set,filter:{}};b=l(b);for(var d=b.next();!d.done;d=b.next()){var e=c,f=d.value,g=null;f&&f.metric&&f.metric.type&&(g=f.metric.type);g&&e.metric.add(g);f&&f.shortMetric&&
e.shortMetric.add(f.shortMetric);if(f.requestParams&&(f.requestParams["aggregation.perSeriesAligner"]&&e.aligner.add(f.requestParams["aggregation.perSeriesAligner"]),f.requestParams["aggregation.crossSeriesReducer"]&&e.primaryReducer.add(f.requestParams["aggregation.crossSeriesReducer"]),f.requestParams["secondaryAggregation.crossSeriesReducer"]&&e.secondaryReducer.add(f.requestParams["secondaryAggregation.crossSeriesReducer"]),g&&f.requestParams.filter))for(e.filter[g]||(e.filter[g]={count:0,entries:{}}),
d=e.filter[g].entries,e.filter[g].count++,e=dBa(new Hk(f.requestParams.filter)),f=0;e&&f<e.length;){var k=e[f++],m=e[f++];g=e[f++];k=k&&k.toString();m=m&&m.toString();g=g&&g.toString();k&&m&&g&&(k=k.replace(/\./g,"").replace(/"/g,"")+(eBa[m]||""),d[k]||(d[k]={count:0,set:new Set}),d[k].count++,d[k].set.add(m+g))}}return{metric:c.metric.size,shortMetric:c.shortMetric.size,aligner:c.aligner.size,primaryReducer:c.primaryReducer.size,secondaryReducer:c.secondaryReducer.size,filter:c.filter}})},hBa=function(a){var b=
a.chartGroupId;return kk(gBa,function(c){return c.entities[b]})},iBa=function(){var a=Yc.apply(0,arguments);return function(b){return b.pipe(Df.apply(null,n(a)),A(function(c){c=l(c);c.next();return yj(c)}))}},Ik=function(a){var b=a.run.bind(a);return function(c){return new Sd(function(d){return c.subscribe({next:function(e){b(function(){d.next(e)})},error:function(e){b(function(){d.error(e)})},complete:function(){b(function(){d.complete()})}})})}},jBa=function(a){return a.viewHandler&&a.viewHandlerUsingContext===
void 0},kBa=function(a){return a.viewHandlerUsingContext&&a.viewHandler===void 0},lBa=function(a){return a.componentHandler&&a.componentHandlerUsingContext===void 0},mBa=function(a){return a.componentHandlerUsingContext&&a.componentHandler===void 0},Jk=function(a){return a.chartId},Kk=function(a,b){return function(c,d){d=d.chartId;return c.entities[d]?c:a.addOne(Object.assign({},b,{chartId:d}),c)}},Lk=function(a){return function(b,c){return a.removeOne(c.chartId,b)}},Mk=function(a,b){return function(c,
d){var e=d.previousChartId;var f=d.currentChartId;return e&&f&&c.entities[e]?a.mapOne({id:e,map:function(g){return Object.assign({},g,{chartId:f})}},c):e&&c.entities[e]||c.entities[f]?c:a.addOne(Object.assign({},b,{chartId:f}),c)}},nBa=function(a,b){return function(c,d){var e=d.chartId;var f=d.previousLayerId;var g=d.currentLayerId;d=c.entities[e];if(!d||!f||!d.byLayer.entities[f])return c;f=b.mapOne({id:f,map:function(k){return Object.assign({},k,{layerId:g})}},d.byLayer);return a.upsertOne(Object.assign({},
d,{byLayer:f}),c)}},oBa=function(a){return a.chartGroupId},pBa=function(a,b){return function(c,d){d=d.chartGroupId;return c.entities[d]?c:a.addOne(Object.assign({},b,{chartGroupId:d}),c)}},qBa=function(a){return function(b,c){return a.removeOne(c.chartGroupId,b)}},Nk=function(a){return a.layerId},sBa=function(){var a=Ok,b=rBa;return function(c,d){var e=d.chartId;d=d.yAxisId;return c.entities[e+","+d]?c:a.addOne(Object.assign({},b,{chartId:e,yAxisId:d}),c)}},Pk=function(a,b,c){return c&&b&&c!=="chart_group"?
"chartId:"+b+",xAxisId:"+c:"chartGroupId:"+a},tBa=function(a){return Pk(a.chartGroupId,a.chartId,a.xAxisId)},uBa=function(){},vBa=function(a){if(a.length===3)return a.toUpperCase();a=a.replace(/\//g,"").replace(/_/g,"").replace(/-/g,"");return a=a.charAt(0).toLowerCase()+a.substring(1)},Rk=function(a,b){if(b)a:{a="TimeZoneConstants"in wBa?wBa.TimeZoneConstants["en-US"]:void 0;a=a!=null?a:xBa;if(b){var c,d=(c=a[b])!=null?c:a[vBa(b)];if(d){b=Qk(d);break a}}b=Intl.DateTimeFormat().resolvedOptions().timeZone;
b=(b=a[vBa(b)])?Qk(b):Qk(yBa)}else b=Qk(a!=null?a:yBa);return b},ABa=function(a,b){return typeof a==="object"&&a!==null&&a!==void 0&&typeof b==="object"&&b!==null&&b!==void 0?(a==null?void 0:a.scaleType)===(b==null?void 0:b.scaleType)&&(a==null?void 0:a.min)===(b==null?void 0:b.min)&&(a==null?void 0:a.max)===(b==null?void 0:b.max)&&(a==null?void 0:a.unit)===(b==null?void 0:b.unit)&&(a==null?void 0:a.tickIncrement)===(b==null?void 0:b.tickIncrement)&&(a==null?void 0:a.absoluteMin)===(b==null?void 0:
b.absoluteMin)&&zBa(a==null?void 0:a.ticks,b==null?void 0:b.ticks):a===b},zBa=function(a,b){if(a&&b&&Array.isArray(a)&&Array.isArray(b)){if(a.length!==b.length)return!1;for(var c=0;c<a.length;c++){var d=a[c],e=b[c];if(!d||!e||d.label!==e.label||d.value!==e.value)return!1}return!0}return a===b},BBa=function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},CBa=function(a){return{key:a,coef:1,suffix:a,base:0,scale:0}},DBa=function(a){return{key:a,coef:1,suffix:a,compatibilityKeys:["0"],operators:[],
components:[CBa(a)]}},HBa=function(a){var b=a.match(EBa);if(!b)return CBa(a);var c=b[1]||"";b=b[2]||"";if(!c&&!b)return CBa(a);c&&!b&&(b="1");a=FBa[b];if(c){var d=GBa[c];return Object.assign({},a,{key:b==="1"?c:c+a.key,coef:a.coef*d.coef,suffix:c+(a.suffix||""),scale:d.scale})}return a},Sk=function(a){a=a.trim();a=a.replace(/\s/g,"");a=a.replace("(rate)","/s");a=a.replace(/([^\.\/\{\}]+)(\{[^\{\}]+\})/g,"$1");a=a.replace(/\{[^\{\}]+\}/g,"1");return IBa(a)},IBa=function(a){var b=/^(.*?)(\.|\/)?([^\/\.]*)$/,
c=l(a.match(b)||[]);c.next();var d=c.next().value,e=c.next().value;c=c.next().value;var f=e;if(c){a=JBa[c]||c;c=l(a.match(b)||[]);c.next();b=c.next().value;e=c.next().value;c=c.next().value;b&&(d=(d||"").concat(f||"",b),f=e,a=c);b=HBa(a);if(d&&f){d=IBa(d);var g=HBa(a);a=f==="/"?d.coef/g.coef:d.coef*g.coef;b=f==="/"&&g.base===5;e=d.components.length===1&&d.components[0].base===g.base;if(!b&&e&&(c=KBa(g.scale,g.base,a)))return{key:c.key,coef:c.coef,prefix:c.prefix,suffix:c.suffix,compatibilityKeys:a===
1&&f==="/"?[String(c.base),"1"]:[String(c.base)],operators:[],components:[c]};c=d.compatibilityKeys.map(function(k){return k+f+g.base});return{key:d.key+f+g.key,coef:a,prefix:d.prefix||"",suffix:(d.suffix||"")+f+((g.prefix||"")+(g.suffix||"")),compatibilityKeys:e&&b?c.concat(["1"]):c,operators:d.operators.concat([f]),components:d.components.concat([g])}}return{key:b.key,coef:b.coef,prefix:b.prefix,suffix:b.suffix,compatibilityKeys:[String(b.base)],operators:[],components:[b]}}return DBa(a)},KBa=function(a,
b,c){var d;a=(d=LBa[(a===void 0?1:a)+","+b])!=null?d:[];d=null;a=l(a);for(b=a.next();!b.done;b=a.next())b=HBa(b.value),b.coef===c&&(d=b);return d},MBa=function(a,b,c){c=c===void 0?{}:c;a=Sk(a);if(a.components.length===0)return null;for(var d=null,e=0;e<a.components.length;e++){var f=a.operators[e-1],g=a.components[e];if(!(c.neverScaleRates&&e>0&&f==="/"&&g.base===5)){f=f!=="."&&f?!b:b;var k=LBa[(g.scale||1)+","+g.base];k?(g=k.indexOf(g.key),g=g<0?null:(g=k[g+(f?1:-1)])?HBa(g):null):g=null;if(g){b=
a.components.slice(0,e).concat([g]).concat(a.components.slice(e+1));c="";for(d=0;d<b.length;d++)c+=(a.operators[d-1]||"")+b[d].key;d=Sk(c);break}}}var m,r;return(r=(m=d)==null?void 0:m.key)!=null?r:null},Tk=function(a){return a!==null&&a!=="{not_a_unit}"},Uk=function(a,b){a=Number(a);if(Number.isNaN(a))return NaN;if(a===0)return 0;var c=Infinity;if(b)for(c=0;Math.abs(b)<1;)c++,b*=10;for(b=0;Math.abs(a)<1&&b<c;)b++,a*=10;c=Number(a.toFixed(4));if(b){a=b+4;try{return Number((c/Math.pow(10,b)).toFixed(a))}catch(d){if(d instanceof
RangeError){if(a<0)throw Error("Hc");return 0}throw d;}}return c},NBa=function(a){return/^((.*)[/]\2)|1$/.test(a)},OBa=function(a,b){return a.compatibilityKeys.some(function(c){return b.compatibilityKeys.includes(c)})||NBa(a.key)&&NBa(b.key)},PBa=function(a){a=Sk(a);return NBa(a.key)},QBa=function(a){return(a=a.match(/(\{[^}]*\})/))?a[1]:null},RBa=function(a,b){a=Sk(a);b=Sk(b);return OBa(a,b)?a.components.length<b.components.length:!1},SBa=function(a,b){if(a===b)return!0;if(!Tk(a)||!Tk(b))return!1;
a=Sk(a);b=Sk(b);return OBa(a,b)},Vk=function(a,b){if(a===b)return 1;if(!Tk(a)||!Tk(b))return null;a=Sk(a);b=Sk(b);return OBa(a,b)?a.coef/b.coef:null},Wk=function(a,b,c,d){d=d===void 0?!1:d;return c===null||c===void 0?null:a===b?d?c:Uk(c):Tk(a)&&Tk(b)?(a=Vk(a,b))?d?c*a:Uk(c*a):null:null},TBa=function(a,b){b=b===void 0?{}:b;return MBa(a,!0,b)},UBa=function(a,b){b=b===void 0?{}:b;return MBa(a,!1,b)},$Ba=function(a,b,c){VBa(WBa,3);XBa(WBa,0);WBa.showTrailingZeros_=!1;b=Tk(b)&&Sk(b)||DBa("");var d=a<0?
"-":"";a=(c==null?0:c.ignoreFloatImprecision)?Math.abs(a):Uk(Math.abs(a));if(a===0&&(c==null||!c.forceUnitZero))return{negativeSign:"",unitPrefix:"",integerDigits:"0",decimalSeparator:"",fractionDigits:"",unitSuffix:""};var e=WBa;(c==null?0:c.maximumFractionDigits)&&VBa(e,c.maximumFractionDigits);(c==null?0:c.significantDigits)&&XBa(e,c.significantDigits);if(c==null?0:c.showTrailingZeros)e.showTrailingZeros_=c.showTrailingZeros!=0;if(a!==0&&(a<1E-9||a>1E12)&&(e=YBa,b.coef!==1)){c=b;for(var f=c.coef>
1;c!==null&&c.coef!==1&&(f&&c.coef>1||!f&&c.coef<1);){var g=f?UBa(c.key):TBa(c.key);if(!g)break;c=Sk(g)}f=Vk(b.key,c.key);f!==null&&c&&(a*=f,b=c)}b.components.length>0&&b.components[0].base===3&&b.components[0].coef===1&&a%1!==0&&(e=ZBa);a=e.format(a).split(Xk.DECIMAL_SEP);return{negativeSign:d,unitPrefix:b.prefix||"",integerDigits:a[0]||"",decimalSeparator:a.length===2?Xk.DECIMAL_SEP:"",fractionDigits:a[1]||"",unitSuffix:b.suffix||""}},aCa=function(a){return a.negativeSign+a.unitPrefix+a.integerDigits+
a.decimalSeparator+a.fractionDigits},Yk=function(a,b,c){a=$Ba(a,b,c);return aCa(a)+a.unitSuffix},dCa=function(a,b){var c=Uk(Math.abs(a.min)),d=Uk(Math.abs(a.max)),e=Math.min(c,d);d=Math.max(c,d);var f=b.idealMaxMagnitude-b.idealMinMagnitude;c=a.unit;if(SBa(a.unit,"%"))c="%";else{if(e===0&&d===0)return a;f=Math.log10(d)-Math.log10(e)>f;e=e===0||f?d:e;var g=Math.log10(e);d=a.unit;f=g>b.idealMaxMagnitude?2:g<b.idealMinMagnitude?1:0;if(f===0)return a;for(;bCa(f,g,b,a.unit);){c=d;d=cCa(f,d,b);if(!d)break;
g=Wk(a.unit,d,e);if(g===null)break;g=Math.log10(g)}}b=Wk(a.unit,c,a.min);e=Wk(a.unit,c,a.max);return b===null||e===null?a:{min:b,max:e,unit:c}},bCa=function(a,b,c,d){if((b>c.countPrefixMaxMagnitude||b<c.countPrefixMinMagnitude)&&SBa(d,"1"))return!1;switch(a){case 2:return b>c.idealMinMagnitude;case 1:return b<c.idealMaxMagnitude;default:return!1}},cCa=function(a,b,c){c=c===void 0?{}:c;if(!b)return null;switch(a){case 2:return TBa(b,c);case 1:return UBa(b,c);default:return null}},fCa=function(a,b){return eCa.format(a,
b)},gCa=function(a){return a.includes("%")||a==="ratio"||a==="percent"},iCa=function(a,b){var c="",d="";if(a===null)return{value:c,unit:d};b!==null&&PBa(b)&&(b=QBa(b)||b);if(b===""||b==="{not_a_unit}")b="1";var e=dCa({min:0,max:a,unit:b},hCa).unit;a=Wk(b,e,a);if(a===null)return{value:c,unit:d};d=$Ba(a,e);c=aCa(d);d=d.unitSuffix;return{value:c,unit:d}},jCa=function(a,b,c){if(!a)return null;for(var d=-Infinity,e=Infinity,f=Infinity,g=l(a.series),k=g.next();!k.done;k=g.next()){k=l(k.value.data);for(var m=
k.next();!m.done;m=k.next()){m=m.value;var r=void 0;if(!(b!==null&&((r=m.x0)!=null?r:m.x).valueOf()<b||c!==null&&m.x.valueOf()>c)){var w=r=void 0;d=Math.max(d,m.y,(r=m.y0)!=null?r:d,(w=m.y1)!=null?w:d);w=r=void 0;e=Math.min(e,m.y,(r=m.y0)!=null?r:e,(w=m.y1)!=null?w:e);f=Math.min(f,Math.abs(m.y||f),Math.abs(m.y0||f),Math.abs(m.y1||f))}}}return d===-Infinity||e===Infinity?null:{priority:1,absoluteMin:f,min:e,max:d,unit:a.unit}},kCa=function(a,b){return{x0:b,x1:a,max:-Infinity,min:Infinity,absoluteMin:Infinity}},
lCa=function(a){return a.filter(function(b){return!isNaN(b.y)&&isFinite(b.y)})},mCa=function(a){if(a==null||!a.series)return null;var b=new Map;a=l(a.series);for(var c=a.next();!c.done;c=a.next()){c=lCa(c.value.data);c=l(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=d.x.valueOf(),f=void 0,g=void 0,k=b.get(e)||kCa(e,(g=(f=d.x0)==null?void 0:f.valueOf())!=null?g:void 0),m=g=f=void 0;k.max=Math.max(k.max,d.y,(f=d.y0)!=null?f:-Infinity,(g=d.y1)!=null?g:-Infinity,(m=d.max)!=null?m:-Infinity);
m=g=f=void 0;k.min=Math.min(k.min,d.y,(f=d.y0)!=null?f:Infinity,(g=d.y1)!=null?g:Infinity,(m=d.min)!=null?m:Infinity);k.absoluteMin=Math.min(k.absoluteMin,Math.abs(d.y||Infinity),Math.abs(d.y0||Infinity),Math.abs(d.y1||Infinity),Math.abs(d.min||Infinity));b.set(e,k)}}return b.size===0?null:Array.from(b.values()).sort(function(r,w){return r.x1-w.x1})},Zk=function(a,b,c,d,e,f){if(!a)return null;e&&f&&(c=Wk(f,e,c),d=Wk(f,e,d));e={max:-Infinity,min:Infinity,absoluteMin:Infinity};if(c)a:{f=0;for(var g=
a.length-1,k=Math.floor((f+g)/2);f<g;){if(c<a[k].x1)g=k;else if(c>a[k].x1)f=k+1;else{c=k;break a}k=Math.floor((f+g)/2)}var m;c=(m=k)!=null?m:0}else c=0;if(d)a:{g=0;m=a.length-1;for(f=Math.ceil((g+m)/2);g<m;){k=void 0;if(d<((k=a[f].x0)!=null?k:a[f].x1))m=f-1;else if(g=void 0,d>((g=a[f].x0)!=null?g:a[f].x1))g=f;else{d=f;break a}f=Math.ceil((g+m)/2)}var r;d=(r=f)!=null?r:a.length-1}else d=a.length;a=l(a.slice(c,d+1));for(r=a.next();!r.done;r=a.next())r=r.value,e.max=Math.max(e.max,r.max),e.min=Math.min(e.min,
r.min),e.absoluteMin=Math.min(e.absoluteMin,r.absoluteMin||Infinity);return Object.assign({},{priority:1},e,{unit:b})},$k=function(a,b){return!!(!a&&b||a&&!b||a&&b&&(a.min!==b.min||a.max!==b.max||a.absoluteMin!==b.absoluteMin||a.unit!==b.unit||a.priority!==b.priority))},nCa=function(a){if(!a)return null;var b=a.xAxisUnit||"ms_since_epoch",c=-Infinity,d=Infinity;a=l(a.series);for(var e=a.next();!e.done;e=a.next()){e=l(e.value.data);for(var f=e.next();!f.done;f=e.next()){var g=f.value;f=g.x.valueOf();
var k=void 0;g=(k=g.x0)==null?void 0:k.valueOf();f>c&&(c=f);f<d&&(d=f);g!==void 0&&(g>c&&(c=g),g<d&&(d=g))}}return c===-Infinity||d===Infinity?null:{priority:1,min:d,max:c,unit:b}},oCa=function(a,b,c,d,e,f){return isFinite(a)?f===void 0&&b>d?[b,a]:b===d||f!==void 0&&f.includes(b)?[b,e(c,a)]:[d,c]:[d,c]},pCa=function(a){return!a.min||a.min>0?Object.assign({},a,{min:0}):!a.max||a.max<0?Object.assign({},a,{max:0}):a},qCa=function(a){if(!a)return null;var b=new Set;a=l(a.series);for(var c=a.next();!c.done;c=
a.next()){c=l(c.value.data);for(var d=c.next();!d.done;d=c.next())b.add(d.value.x)}return{categories:[].concat(n(b.values()))}},rCa=function(a){if(!a)return null;for(var b=Infinity,c=-Infinity,d=l(a.series),e=d.next();!e.done;e=d.next()){e=l(e.value.data);for(var f=e.next();!f.done;f=e.next()){f=f.value;var g=void 0;b=Math.min(b,f.y,(g=f.y1)!=null?g:Infinity);g=void 0;c=Math.max(c,f.y,(g=f.y1)!=null?g:-Infinity)}}b=Math.min(0,b);c=Math.max(0,c);return{priority:1,min:b,max:c,unit:a.unit}},sCa=function(a,
b){if(a.length===0)return null;var c=0,d=0,e=Infinity,f=-Infinity;a=l(a);for(var g=a.next();!g.done;g=a.next()){var k=g.value;g=k.priority;var m=k.min,r=k.max;k.unit!=="ms_since_epoch"||b!==void 0&&!b.includes(g)||(k=void 0,m=(k=m)!=null?k:e,k=void 0,r=(k=r)!=null?k:f,e=l(oCa(m,g,e,c,Math.min)),c=e.next().value,e=e.next().value,f=l(oCa(r,g,f,d,Math.max)),d=f.next().value,f=f.next().value)}return e===Infinity||f===-Infinity?null:{min:e,max:f}},uCa=function(a,b,c){var d=sCa(a),e=sCa(a,[0,1]);if(!d)return{max:null,
min:null,ticks:[],tickIncrement:null,scaleType:0,unit:"ms_since_epoch"};a=d.max-d.min;a===0&&(--d.min,d.max+=1,a=2);e&&(e=.01*(e.max-e.min),b.lastUpdateCausedBy===4&&a<e&&(e=Uk((e-(d.max-d.min))/2),d.min-=e,d.max+=e));if(!b.axisWidth||b.axisWidth<0)return Object.assign({},d,{ticks:[],tickIncrement:null,scaleType:0,unit:"ms_since_epoch"});e=Math.max(1,b.axisWidth/75);for(var f=al.FIVE_MINUTES,g=Infinity,k=l(tCa),m=k.next();!m.done;m=k.next()){m=m.value;var r=Math.abs(e-a/m)/e;r>g||(f=m,g=r)}a=f;e=
Rk(b.timezoneOffset,b.timeZoneId);b.shift&&(d.min+=b.shift,d.max+=b.shift);b=c(d,a,e);return Object.assign({},d,{ticks:b,tickIncrement:a,scaleType:0,unit:"ms_since_epoch"})},xCa=function(a,b){return uCa(a,b,function(c,d,e){var f=[],g=bl(e,new Date(c.min))*6E4;var k=c.min-g;k=k+(d-k%d)%d+g;var m;g=(m=vCa[d])==null?void 0:m.format(new Date(k-d),e);for(m=bl(e,new Date(k));k<=c.max;k+=d){var r=bl(e,new Date(k));r!==m&&(m=(r-m)*6E4,m%d!==0&&(k+=m));m=r;r=wCa[d].format(new Date(k),e);var w=void 0,x=(w=
vCa[d])==null?void 0:w.format(new Date(k),e);g&&x&&x!==g?f.push({label:x,value:k}):f.push({label:r,value:k});g=x}return f})},yCa=function(a){return[].concat(n(new Set(a.map(function(b){return b.categories}).flat())))},zCa=function(a){return{categories:yCa(a)}},ACa=function(a,b,c){if(a.length===0)return null;for(var d=0,e=0,f=Infinity,g=-Infinity,k=null,m=l(a),r=m.next();!r.done;r=m.next()){var w=r.value;r=w.unit;w=w.constraints;var x=void 0;!r||k&&!RBa(r,k)||((x=w)==null?0:x.onlyApplyIfUnitCompatible)||
(k=r)}k&&PBa(k)&&(k=QBa(k)||k);m=l(a);for(r=m.next();!r.done;r=m.next()){var D=r.value;r=D.priority;x=D.min;w=D.max;var H=void 0;D=(H=D.unit)!=null?H:k;x=x!==void 0&&x!==null?Wk(D,k,x):null;w=w!==void 0&&w!==null?Wk(D,k,w):null;x!==null&&(f=l(oCa(x,r,f,d,Math.min,b)),d=f.next().value,f=f.next().value);w!==null&&(g=l(oCa(w,r,g,e,Math.max,b)),e=g.next().value,g=g.next().value)}b=Math.max(Math.abs(f),Math.abs(g));if(f===Infinity||g===-Infinity)return null;f=Uk(f,b);g=Uk(g,b);f>g&&(g=f=d=e>d?g:f);d=k;
c&&a.filter(function(J){var O;return!((O=J.constraints)==null?0:O.onlyApplyIfUnitCompatible)}).map(function(J){return J.unit}).filter(function(J){return J!==null}).filter(function(J){return J!=="1"}).some(function(J){return!SBa(J,k)})&&(d=null);return{min:f,max:g,unit:d}},BCa=function(a){var b=a.min,c=a.max,d=Math.abs(c-b),e=c+d*.5;d=b-d*.5;return{min:b>=0&&d<=0?0:d,max:c<=0&&e>=0?0:e,unit:a.unit}},FCa=function(a,b,c){c=c===void 0?40:c;var d=Uk(a.max-a.min);if(d===0)return Uk(a.max)===0?1:Math.pow(10,
Math.floor(Math.log10(a.max)));a=Math.max(2,Math.min(10,Math.floor(b/c)));b=Infinity;c=d;for(var e=1;e<a;e++){var f=d/e,g=f;var k=e===a-1?1:3;var m=Math.floor(Math.log(g)/Math.LN10);g/=Math.pow(10,m);switch(k===void 0?3:k){case 1:k=g>5?10:g>2?5:g>1?2:1;break;case 2:k=g<2?1:g<5?2:g<10?5:10;break;default:k=g>=CCa?10:g>=DCa?5:g>=ECa?2:1}m=k*Math.pow(10,m);f=Math.abs(m-f);f<=b&&(b=f,c=m)}return c},GCa=function(a,b){var c=a.min-(a.min<0?(b-Math.abs(a.min)%b)%b:a.min%b),d=a.max+(a.max<0?Math.abs(a.max)%
b:(b-Math.abs(a.max)%b)%b);if(Uk(c)===Uk(d)){var e=c-b;c=c>=0&&e<0?0:e;d+=b}return{min:Uk(c),max:Uk(d),unit:a.unit}},HCa=function(a){return a},ICa=function(a,b,c,d){d=d===void 0?HCa:d;for(var e=[],f=a.min,g={maximumFractionDigits:9},k={domain:a};f<=a.max;){e.push({label:c(f,a.unit||"1",g,k),value:f});var m=Uk(f+b);if(m===f||m<a.min){e.push({label:c(a.max,a.unit||"1",g,k),value:a.max});break}f=m}return d(e,a.unit)},JCa=function(a){return a.reduce(function(b,c){c=String(c.value).split(".")[1];return Math.max(b,
c?c.length:0)},0)+2},MCa=function(a,b,c,d,e){var f=b===void 0?{}:b;var g=f.axisLength===void 0?500:f.axisLength;b=f.lastUpdateCausedBy===void 0?0:f.lastUpdateCausedBy;f=f.valueFormatter===void 0?Yk:f.valueFormatter;var k=c===void 0?{}:c;c=k.neverScaleRates;var m=k.neverScaleUnits;var r=k.ignoreAllUnitsIfIncompatible;k=k.minYRangePercent;d=d===void 0?HCa:d;e=e===void 0?40:e;var w=ACa(a,[0,1],r),x=w?BCa(w):null;a=ACa(a,void 0,r);if(!a)return{min:null,max:null,unit:null,tickIncrement:null,absoluteMin:void 0,
ticks:[],scaleType:0,maximumFractionDigits:void 0};b===4&&x&&x.unit===a.unit&&(x.min>a.min&&(a.min=x.min),x.max<a.max&&(a.max=x.max));var D;m?D={min:a.min,max:a.max,unit:a.unit}:D=dCa(a,{neverScaleRates:c,idealMaxMagnitude:1,idealMinMagnitude:0,countPrefixMaxMagnitude:KCa,countPrefixMinMagnitude:LCa});w&&(a=Vk(w.unit,D.unit)||1,a=(k!=null?k:.01)*(a*w.max-a*w.min),b===4&&D.max-D.min<a&&(a=Uk((a-(D.max-D.min))/2),D={min:D.min-a,max:D.max+a,unit:D.unit}));a=FCa(D,g,e);g=GCa(D,a);e=ICa(g,a,f,d);c=D.max-
D.min;(b===4||b===2)&&c>0&&(b=e.filter(function(H){return H.value>=D.min&&H.value<=D.max}),d=ICa(D,a,f,d),b.length>=2?(g=D,e=b):d.length>=2&&(g=D,e=d));d=JCa(e);return Object.assign({},g,{ticks:e,scaleType:0,maximumFractionDigits:d})},NCa=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"},OCa=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"},cl=function(a,b,c,d,e){return(e-a)/(b-a)*(d-c)+c},dl=function(a,b,c,d,e){return a===c?b:(b*(c-e)+d*(e-a))/(c-a)},PCa=function(a,b,c,d,e){return c.map(function(f,g){return cl(a,b,c[g],d[g],e)})},QCa=function(a,b,c,d){d=d===void 0?1:d;a*=d;b*=d;c=(c===void 0?.001:c)*d/2;var e=Math.log;d=-e(-(a<0?a:-c));var f=-e(-(b<0?b:-c));a=e(a>0?a:c);b=e(b>0?b:c);return{fakeZero:c,negMin:d,negMax:f,posMin:a,posMax:b,difference:a-f}},RCa=function(a,b,c,d,e,f,g){var k=QCa(a,b,f===
void 0?.001:f,g===void 0?1:g);a=k.negMin;b=k.posMax;f=k.difference;g=Math.log;k=k.posMin;e<0?k=-g(-e)+f:e>0&&(k=g(e));return cl(a+f,b,c,d,k)},el=function(a){var b=a.previousValue;a=a.currentValue;return!(!a||a.min===null||a.max===null||b&&a.min===b.min&&a.max===b.max)},SCa=function(a){var b=a.previousValue;a=a.currentValue;return!((!b||a)&&(!a||b&&(a==null?void 0:a.ticks)===(b==null?void 0:b.ticks)))},fl=function(a){var b=a.previousValue;a=a.currentValue;return!(!a||(b==null?void 0:b.timezoneOffset)===
a.timezoneOffset)},gl=function(a){var b=a.previousValue;a=a.currentValue;return!(!a||(b==null?void 0:b.timeZoneId)===a.timeZoneId)},hl=function(a,b,c,d){var e=a.min,f=a.max;a=a.unit;if(e!==null&&f!==null){var g=d?Vk(a,d)||1:1;return function(k){return cl(e*g,f*g,b,c,k)}}return null},il=function(a,b,c,d){var e=a.min,f=a.max;a=a.unit;if(e!==null&&f!==null){var g=d?Vk(a,d)||1:1;return function(k){return cl(b,c,e*g,f*g,k.valueOf())}}return null},UCa=function(a){if(!a||!a.trim())return"";a=a.startsWith("#")?
a.substring(1):a;if(a.length>8)return"#"+a.slice(0,8);switch(a.length){case 8:return"#"+a;case 7:return"#"+a.slice(0,6);case 6:return"#"+a;case 4:return"#"+TCa(a);case 3:return"#"+TCa(a);case 2:return"#"+a.repeat(3);case 1:return"#"+a.repeat(6);default:return""}},TCa=function(a){return a.split("").map(function(b){return b+b}).join("")},jl=function(a,b){if(typeof a!=="string")return a;if(a.trim().startsWith("light-dark("))return VCa.style.color=a,b.appendChild(VCa),a=getComputedStyle(VCa).color,b.removeChild(VCa),
a;if(!a.startsWith("var(--"))return a;var c=a.match(WCa);if(!c)return a;var d=l(c);d.next();c=d.next().value;d=d.next().value;b=getComputedStyle(b);return b?(a=b.getPropertyValue(c))?a.match(XCa)?UCa(a):a:d===void 0?"":d.match(XCa)?UCa(d):d:a},YCa=function(a,b){var c=a.getTransform&&a.getTransform();c&&c.a===b&&c.b===0&&c.c===0&&c.d===b&&c.e===0&&c.f===0||a.setTransform(b,0,0,b,0,0)},kl=function(a,b,c){var d;b=b===void 0?{}:b;d||(d=ZCa.scaleFactor);b.globalAlpha&&a.globalAlpha!==b.globalAlpha&&(a.globalAlpha=
b.globalAlpha);b.font&&a.font!==b.font&&(a.font=b.font);b.fillStyle&&a.fillStyle!==b.fillStyle&&(a.fillStyle=jl(b.fillStyle,c));b.textAlign&&a.textAlign!==b.textAlign&&(a.textAlign=b.textAlign);b.textBaseline&&a.textBaseline!==b.textBaseline&&(a.textBaseline=b.textBaseline);b.strokeStyle&&a.strokeStyle!==b.strokeStyle&&(a.strokeStyle=jl(b.strokeStyle,c));b.lineWidth&&a.lineWidth!==b.lineWidth&&(a.lineWidth=b.lineWidth);b.lineCap&&a.lineCap!==b.lineCap&&(a.lineCap=b.lineCap);var e=a.getLineDash();
!b.lineDash||(e==null?0:e.length)&&!b.lineDash.some(function(f,g){return e[g]!==f})||a.setLineDash(b.lineDash);b.globalCompositeOperation&&a.globalCompositeOperation!==b.globalCompositeOperation&&(a.globalCompositeOperation=b.globalCompositeOperation);b.filter&&a.filter!==b.filter&&(a.filter=b.filter);YCa(a,d)},ml=function(a,b,c,d,e,f){e=e===void 0?"transparent":e;var g=a.getContext("2d");if(!g)throw Error("Ic");f||(f=ZCa.scaleFactor);var k=Math.floor(d*f),m=Math.floor(c*f);if(a.width!==k||a.height!==
m)a.style.width=d+"px",a.style.height=c+"px",a.width=k,a.height=m;YCa(g,f);ll(a,e,b,f)},ll=function(a,b,c,d,e){b=b===void 0?"transparent":b;var f=a.getContext("2d");if(!f)throw Error("Ic");d||(d=ZCa.scaleFactor);f.save();b==="transparent"?f.clearRect(0,0,a.width/d,a.height/d):(f.fillStyle=jl(b,c),f.globalAlpha=e!=null?e:1,f.fillRect(0,0,a.width/d,a.height/d),f.fill());f.restore()},nl=function(a,b){return(b===void 0?1:b)%2?a.map(function(c){return Math.round(c+.5)-.5}):a.map(function(c){return Math.round(c)})},
ol=function(a,b,c,d){var e=e===void 0?0:e;if(e>0){b=b.split(" ");for(var f="",g=0;g<b.length;g++){var k=f+(f.length>0?" ":"")+b[g];a.measureText(k).width>e&&f.length>0?(a.fillText(f,c,d),f=b[g],d+=10):f=k}a.fillText(f,c,d);return e}a.fillText(b,c,d);return a.measureText(b).width},$Ca=function(a,b,c,d,e,f){e=e===void 0?0:e;f=f===void 0?0:f;a.save();for(var g=b,k=b.length;k>=0;k--){var m=k===b.length?b.slice(0,k):b.slice(0,k)+"...";if(a.measureText(m).width<=e){g=m;break}}a.translate(c,d);f&&a.rotate(f);
a.textAlign="center";a.fillText(g,0,0);a.restore()},aDa=function(a,b,c,d){d=d===void 0?.6:d;c=new Path2D(c);var e=new Path2D;e.addPath(c,{a:d,b:0,c:0,d:d,e:a,f:b});return e},pl=function(a,b,c,d,e){if(!d)return a;b=d.x<b?{x0:d.x,y0:d.y,x1:b,y1:c}:{x0:b,y0:c,x1:d.x,y1:d.y};return b.x0>=e.left-1&&b.x0<=e.right+1&&b.y0>=e.top-1&&b.y0<=e.bottom+1&&(!a||Math.max(a.x0,a.x1)<=b.x0)?b:a},bDa=function(a){var b=a.chartGroupId;return kk(ql,function(c){return c.entities[b]})},dDa=function(a,b){return typeof a===
"object"&&a!==null&&a!==void 0&&typeof b==="object"&&b!==null&&b!==void 0?cDa(a==null?void 0:a.categories,b==null?void 0:b.categories):a===b},cDa=function(a,b){if(a&&a&&Array.isArray(b)&&Array.isArray(b)){if(a.length!==b.length)return!1;for(var c=0;c<a.length;c++)if(a[c]!==b[c])return!1;return!0}return a===b},eDa=function(a){return Pk(a.chartGroupId,a.chartId,a.xAxisId)},fDa=function(a){var b=a.chartGroupId;var c=a.chartId;return"chartGroupId:"+b+",chartId:"+c+",xAxisKey:"+Pk(b,c,a.xAxisId)},rl=function(a){return a.filter(function(b){return!b.ignoreSeriesForHighlighting})},
gDa=function(a){var b=a.previousValue;if(a=a.currentValue){if(!b)return!0;b=b.byLayer.entities;a=Object.values(a.byLayer.entities).filter(function(c){return!!c});b=Object.values(b).filter(function(c){return!!c});if(a.length){if(!b.length)return!0;a=Array.from(new Set(a.reduce(function(c,d){return c.concat(rl(d.selectedSeries)).concat(rl(d.hoveredSeries))},[])));b=Array.from(new Set(b.reduce(function(c,d){return c.concat(rl(d.selectedSeries)).concat(rl(d.hoveredSeries))},[])));return a.length===0&&
b.length>0||b.length===0&&a.length>0}}return!1},hDa=function(a,b){return a.some(function(c){var d=b.find(function(g){return g.seriesId===c.seriesId}),e,f;return d&&((e=c.datumIndices)==null?void 0:e.length)===((f=d.datumIndices)==null?void 0:f.length)?c.datumIndices&&d.datumIndices?c.datumIndices.some(function(g){return!d.datumIndices.find(function(k){return g.index===k.index&&g.bucketIndex===k.bucketIndex})}):!1:!0})},sl=function(a,b){return a.length!==b.length||hDa(a,b)||hDa(b,a)},tl=function(a,
b){var c=a.previousValue,d=a.currentValue;if(d){if(!c)return!0;a=[];var e=[];if(b)a=d.byLayer.entities[b],a=((a==null?void 0:a.selectedSeries)||[]).concat((a==null?void 0:a.hoveredSeries)||[]),e=c.byLayer.entities[b],e=((e==null?void 0:e.selectedSeries)||[]).concat((e==null?void 0:e.hoveredSeries)||[]);else{b=l(Object.values(d.byLayer.entities));for(d=b.next();!d.done;d=b.next())(d=d.value)&&(a=a.concat(d.selectedSeries).concat(d.hoveredSeries));c=l(Object.values(c.byLayer.entities));for(b=c.next();!b.done;b=
c.next())(b=b.value)&&(e=e.concat(b.selectedSeries).concat(b.hoveredSeries))}return sl(rl(a),rl(e))}return!1},iDa=function(a,b){var c=a.previousValue,d=a.currentValue;if(!d||!c)return[];a=[];var e=[];if(b){e=c.byLayer.entities[b];var f;a=((f=d.byLayer.entities[b])==null?void 0:f.selectedSeries)||[];e=(e==null?void 0:e.selectedSeries)||[]}else{b=l(Object.values(d.byLayer.entities));for(f=b.next();!f.done;f=b.next())(f=f.value)&&(a=a.concat(f.selectedSeries));c=l(Object.values(c.byLayer.entities));
for(b=c.next();!b.done;b=c.next())(b=b.value)&&(e=e.concat(b.selectedSeries))}a=a.map(function(k){return k.seriesId});var g=e.map(function(k){return k.seriesId});return a.filter(function(k){return!g.includes(k)})},jDa=function(a,b){return typeof a==="object"&&a!==null&&a!==void 0&&typeof b==="object"&&b!==null&&b!==void 0?ABa(a,b)&&(a==null?void 0:a.maximumFractionDigits)===(b==null?void 0:b.maximumFractionDigits)&&(a==null?void 0:a.bucketWidth)===(b==null?void 0:b.bucketWidth):a===b},kDa=function(a,
b){return typeof a==="object"&&a!==null&&a!==void 0&&typeof b==="object"&&b!==null&&b!==void 0?ABa(a,b)&&(a==null?void 0:a.maximumFractionDigits)===(b==null?void 0:b.maximumFractionDigits):a===b},ul=function(a,b){var c=!1,d=b.pipe(mf(1)).subscribe(function(){c=!0});return function(e,f){if(!c)return d.unsubscribe(),a(e,f)}},vl=function(a){var b=a.timeZone;var c=a.position===void 0?null:a.position;var d=a.tickIncrement===void 0?null:a.tickIncrement;if(a.trackingNow===void 0?0:a.trackingNow)return"Now";
if(!c||d===null)return"";a=new Date(c);b=b!=null?b:Rk();if(!(c=lDa[d])){for(var e=c=Infinity,f=l(tCa),g=f.next();!g.done;g=f.next()){g=g.value;var k=Math.abs(d/g);k<e&&(e=k,c=g)}c=(d=lDa[c])?d:mDa}return c(a,b)},tDa=function(a){var b=Math.abs(a),c=7,d=a/1E3;b/6E4>=1&&(c=6,d=a/6E4);b/36E5>=1&&(c=5,d=a/36E5);b/864E5>=1&&b%864E5===0&&(c=4,d=a/864E5);b/6048E5>=1&&(b%6048E5===0||b/6048E5>3||b/6048E5>1&&b%864E5!==0)&&(c=3,d=a/6048E5);if(b>=nDa[0]){var e=nDa.map(function(f){return a/f}).find(function(f){return Math.abs(f-
Math.round(f))<.05});e!==void 0&&(d=Math.round(e),c=2)}b>=oDa[0]&&(e=oDa.map(function(f){return a/f}).find(function(f){return Math.abs(f-Math.round(f))<pDa}),e!==void 0&&(d=Math.round(e),c=1));b>=qDa[0]&&(b=qDa.map(function(f){return a/f}),c=b.find(function(f){return Math.abs(f-Math.round(f))<rDa}),d=c!==void 0?Math.round(c):b[0],c=0);return(new sDa).format(d,c)},uDa=function(){return kk(Ak,function(a){return a.dashboard})},xDa=function(a,b){if(a&1){var c=t();K(0,"div",7);N("mouseenter",function(){u(c);
P(2).isActionButtonBeingHovered$.next(!0);return v()})("mouseleave",function(){u(c);P(2).isActionButtonBeingHovered$.next(!1);return v()});K(1,"button",8);N("click",function(){u(c);var d=P(2);return v(vDa(d))});yd();K(2,"svg",9);M(3,"path");L()()()}a&2&&(a=b.ngIf,b=P(2),I("ngStyle",Lg(3,wDa,a.left+"px",a.top+"px")),B(2),Jf("fill",b.AC_SYS_COLOR_EXTENSIONS_ON_SURFACE),B(),Jf("d",b.topButtonIconPath))},yDa=function(a){a&1&&(Vf(0),E(1,xDa,4,6,"div",6),U(2,"async"),Wf());a&2&&(a=P(),B(),I("ngIf",W(2,
1,a.actionButtonPosition$)))},zDa=function(a){a&1&&M(0,"mat-icon",14)},ADa=function(a){a&1&&M(0,"mat-icon",15)},GDa=function(a,b){if(a&1){var c=t();K(0,"div",10,0)(2,"div",11);S(3);L();K(4,"div",12)(5,"button",13);U(6,"async");U(7,"async");N("click",function(d){var e=u(c).ngIf,f=P();return v(BDa(f,d,e.locked))});F(8,zDa,1,0,"mat-icon",14)(9,ADa,1,0,"mat-icon",15);L()()()}a&2&&(a=b.ngIf,b=P(),I("ngClass",Mg(13,CDa,a.locked,a.draggable,a.dragging))("ngStyle",Mg(17,DDa,a.top+"px",a.height+"px",a.height/
2+"px")),B(2),I("ngStyle",Lg(21,EDa,a.height/2+"px",a.height/4+"px")),Jf("aria-label","Pin at "+a.label),B(),T(" ",a.label," "),B(),I("ngStyle",Mg(24,FDa,a.height+"px",a.height+"px",a.height*.1+"px")),B(),Jf("aria-label",a.locked?W(6,9,b.xAxisUnpinAriaLabelObservable):W(7,11,b.xAxisPinAriaLabelObservable))("aria-describedby",a.locked?b.xAxisCursorDescribedById:null),B(3),G(a.locked?8:9))},HDa=function(a){return a.button===0&&!(wl&&a.ctrlKey)},xl=function(a,b){a=b==null?void 0:b.byYAxis.entities[a.yAxisId];
var c=b==null?void 0:b.domain;b=b==null?void 0:b.category;var d,e,f,g={x:(e=(d=c==null?void 0:c.hover)!=null?d:(b==null?0:b.hover)?0:null)!=null?e:null,y:(f=a==null?void 0:a.hover)!=null?f:null},k,m,r;d={x:(m=(k=c==null?void 0:c.click)!=null?k:(b==null?0:b.click)?0:null)!=null?m:null,y:(r=a==null?void 0:a.click)!=null?r:null};var w,x,D;k={x:(x=(w=c==null?void 0:c.focus)!=null?w:(b==null?0:b.focus)?0:null)!=null?x:null,y:(D=a==null?void 0:a.focus)!=null?D:null};var H,J,O;w={x:(J=(H=c==null?void 0:
c.multiselectAnchor)!=null?H:(b==null?0:b.multiselectAnchor)?0:null)!=null?J:null,y:(O=a==null?void 0:a.multiselectAnchor)!=null?O:null};return{hover:g.x===null&&g.y===null?null:g,click:d.x===null&&d.y===null?null:d,focus:k.x===null&&k.y===null?null:k,multiselectAnchor:w.x===null&&w.y===null?null:w}},IDa=function(a,b,c,d){if(b&&c){var e=b.getTimezoneOffset()-bl(d,b);a=new Date(b);a.setMinutes(b.getMinutes()+e);e=c.getTimezoneOffset()-bl(d,c);var f=new Date(c);f.setMinutes(c.getMinutes()+e);a=a.getFullYear()===
f.getFullYear()&&a.getMonth()===f.getMonth()&&a.getDate()===f.getDate();e=l(a?[10,6]:[10,10]);a=e.next().value;e=e.next().value;return(new yl(a)).format(b,d)+" - "+(new yl(e)).format(c,d)}return c?(new yl(10)).format(c,d):a?(new yl(10)).format(a,d):""},JDa=function(a,b,c){return b&&c?b+" - "+c:c?""+c:a?""+a:""},KDa=function(a,b){a&1&&(Sf(0,"div",0),gg(1),S(2),gg(3,1),Tf());a&2&&(B(2),T(" ",b," "))},zl=function(a){var b=a.previousValue;a=a.currentValue;return!a||a.min===null||a.max===null||b&&a.min===
b.min&&a.max===b.max&&a.absoluteMin===b.absoluteMin&&a.scaleType===b.scaleType?!1:!0},Al=function(a,b,c,d){d==="{not_a_unit}"&&(d="1");var e=a.unit,f=a.min,g=a.max,k=a.absoluteMin;a=a.scaleType;if(f!==null&&g!==null&&b!==c){var m=Vk(e,d)||1;return a===1&&k!==null?function(r){return RCa(f,g,c,b,r,k,m)}:function(r){return cl(f*m,g*m,c,b,r)}}return null},LDa=function(a,b,c,d){d==="{not_a_unit}"&&(d="1");var e=a.unit,f=a.min,g=a.max,k=a.absoluteMin;a=a.scaleType;if(f!==null&&g!==null){var m=Vk(e,d)||
1;return a===1&&k!==null?function(r){var w=QCa(f,g,k===void 0?.001:k,m===void 0?1:m),x=w.fakeZero,D=w.difference;r=cl(c,b,w.negMin+D,w.posMax,r);return Math.log(x)-r>1E-12?-Math.exp(-(r-D)):r-Math.log(x)>1E-12?Math.exp(r):0}:function(r){return cl(c,b,f*m,g*m,r)}}return null},MDa=function(a){a&1&&(yd(),K(0,"g",14),M(1,"path",15)(2,"path"),L());a&2&&(a=P(3),B(),Jf("d",a.shape),B(),Jf("d",a.shape))},NDa=function(a){a&1&&(yd(),K(0,"svg",11),M(1,"path",12),E(2,MDa,3,2,"g",13),L());a&2&&(a=P(2),B(),Jf("stroke-dasharray",
a.lineDash?a.lineDash:null),B(),I("ngIf",a.shape))},ODa=function(a){a&1&&(yd(),K(0,"g",14),M(1,"path",15)(2,"path"),L());a&2&&(a=P(3),B(),Jf("d",a.shape),B(),Jf("d",a.shape))},PDa=function(a){a&1&&(yd(),K(0,"svg",16),M(1,"path",17)(2,"path",12),E(3,ODa,3,2,"g",13),L());a&2&&(a=P(2),B(3),I("ngIf",a.shape))},QDa=function(a){a&1&&(yd(),K(0,"svg",18),M(1,"path",19)(2,"path",20),L())},RDa=function(a){a&1&&(yd(),K(0,"svg",21),M(1,"path",22)(2,"path",23),L())},SDa=function(a){a&1&&(yd(),K(0,"svg",24),M(1,
"path",25),L())},TDa=function(a){a&1&&(yd(),M(0,"path",29))},UDa=function(a){a&1&&(yd(),K(0,"g",30),M(1,"path",15)(2,"path"),L());a&2&&(a=P(3),B(),Jf("d",a.shape),B(),Jf("d",a.shape))},VDa=function(a){a&1&&(yd(),K(0,"svg",26),E(1,TDa,1,0,"path",27)(2,UDa,3,2,"g",28),L());a&2&&(a=P(2),B(),I("ngIf",!a.shape),B(),I("ngIf",a.shape))},WDa=function(a){a&1&&(yd(),K(0,"svg",31),M(1,"circle",32),L())},YDa=function(a){a&1&&(K(0,"i",3),E(1,NDa,3,2,"svg",4)(2,PDa,4,1,"svg",5)(3,QDa,3,0,"svg",6)(4,RDa,3,0,"svg",
7)(5,SDa,2,0,"svg",8)(6,VDa,3,2,"svg",9)(7,WDa,2,0,"svg",10),L());a&2&&(a=P(),I("ngSwitch",a.keyShape)("ngStyle",Lg(8,XDa,a.color||"#000",a.color||"#000")),B(),I("ngSwitchCase","line"),B(),I("ngSwitchCase","line-with-area"),B(),I("ngSwitchCase","band-max"),B(),I("ngSwitchCase","band-min"),B(),I("ngSwitchCase","threshold"),B(),I("ngSwitchCase","square"))},ZDa=function(a){a&1&&(yd(),K(0,"svg",35)(1,"clipPath"),M(2,"path"),L(),K(3,"g",36),M(4,"path",15)(5,"path",37),L()());a&2&&(a=P(2),B(),Jf("id",a.clipPathId),
B(),Jf("d",a.shape),B(2),Jf("d",a.shape),B(),Jf("d",a.shape)("clip-path","url(#"+a.clipPathId+")"))},$Da=function(a){a&1&&(yd(),K(0,"svg",35)(1,"clipPath"),M(2,"path"),L(),K(3,"g",36),M(4,"path",15)(5,"path",37),L()());a&2&&(a=P(2),B(),Jf("id",a.clipPathId),B(),Jf("d",a.defaultCircleShape),B(2),Jf("d",a.defaultCircleShape),B(),Jf("d",a.defaultCircleShape)("clip-path","url(#"+a.clipPathId+")"))},aEa=function(a){a&1&&(K(0,"i",33),E(1,ZDa,6,5,"svg",34)(2,$Da,6,5,"ng-template",null,1,Og),L());if(a&2){a=
Q(3);var b=P();I("ngStyle",Lg(3,XDa,b.hollow?"#fff":b.color||"#000",b.color||"#000"));B();I("ngIf",b.shape)("ngIfElse",a)}},bEa=function(a){a&1&&(K(0,"button",3)(1,"mat-icon"),S(2,"more_vert"),L()());a&2&&(P(),a=Q(2),I("matMenuTriggerFor",a))},Bl=function(a,b){if((a=a.bucketOptions)&&a.exponentialBuckets&&a.exponentialBuckets.growthFactor){var c=a.exponentialBuckets.scale||1;a=a.exponentialBuckets.growthFactor;return[c*Math.pow(a,b-1),c*Math.pow(a,b)]}return a&&a.linearBuckets&&a.linearBuckets.width?
(c=a.linearBuckets.offset||0,a=a.linearBuckets.width,[c+a*(b-1),c+a*b]):a&&a.explicitBuckets&&a.explicitBuckets.bounds?(a=a.explicitBuckets.bounds,[b>0?a[b-1]:-Infinity,b<a.length?a[b]:Infinity]):[null,null]},cEa=function(a,b){var c=Object.keys(a).sort();c=l(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=b.get(d);e||(e=new Set,b.set(d,e));e.add(a[d])}},dEa=function(a){var b=new Map,c=new Map,d=new Map,e=new Map;a=l(a);for(var f=a.next();!f.done;f=a.next())if(f=f.value)cEa(f.resource&&f.resource.labels||
{},b),cEa(f.metric&&f.metric.labels||{},c),cEa(f.metadata||{},d),cEa(f.labels||{},e);return{resource:b,metric:c,metadata:d,uncategorized:e}},eEa=function(a){var b=a.indexOf(".");return(b=b>=0?[a.slice(0,b),a.slice(b+1)]:null)?b[0]+"."+Cl(b[1]):Cl(a)},fEa=function(a){var b=[];try{var c=dBa(new Hk(a));for(a=0;c&&a<c.length;){var d=c[a++];a++;a++;a++;var e=d&&d.toString();e&&b.push(e)}}catch(f){}return b},gEa=function(a){var b=[];a=l(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.size>1&&b.push([c,d.size])}return b.sort(function(e,f){return f[1]-e[1]}).map(function(e){return e[0]})},hEa=function(a){var b=[];a=l(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.size===1&&b.push([c,d.size])}return b.sort(function(e,f){return f[1]-e[1]}).map(function(e){return e[0]})},iEa=function(){return[[{isDefault:!0,title:"Name",template:"${getName()}",tokenizer:new Dl("${getName()}")}]]},kEa=function(a){var b;return((b=a[0])==
null?0:b.labels)?(b=a.filter(function(c){return!!c}).map(function(c){return c.labels}).reduce(function(c,d){if(!d)return c;d=l(Object.keys(d));for(var e=d.next();!e.done;e=d.next())(e=e.value)&&!c.includes(e)&&c.push(e);return c},[]),b.length===0?[[{isDefault:!0,title:"Name",template:"${name}",tokenizer:new Dl("${name}")}]]:[b.map(function(c){var d=jEa(c);return{isDefault:a.length===1||!a.every(function(e){var f,g,k;return(e==null?void 0:(f=e.labels)==null?void 0:f[c])===((g=a[0])==null?void 0:(k=
g.labels)==null?void 0:k[c])}),title:c,template:"${labels."+d+"}",tokenizer:new Dl("${labels."+d+"}")}})]):[[{isDefault:!0,title:"Name",template:"${name}",tokenizer:new Dl("${name}")}]]},lEa=function(a,b){var c=1,d=[],e=function(ma,Da){d.push({isDefault:!0,title:ma,template:Da,tokenizer:new Dl(Da),uniqueId:c++})},f=function(ma,Da){d.push({isDefault:!1,title:ma,template:Da,tokenizer:new Dl(Da),uniqueId:c++})},g=a.find(function(ma){return!!ma});if(!g)return null;g=g.requestParams;var k=dEa(a);a=k.resource;
var m=k.metric,r=k.metadata;k=k.uncategorized;var w=[];if(g){var x=[],D;if((D=g["secondaryAggregation.groupByFields"])==null?0:D.length)x=g["secondaryAggregation.groupByFields"];else{var H;if((H=g["aggregation.groupByFields"])==null?0:H.length)x=g["aggregation.groupByFields"]}x.forEach(function(ma){ma!=="resource.label.*"&&ma!=="resource.*"&&(ma==="project"&&w.push("resource.labels.project"),ma.indexOf("resource.labels.")===0?w.push(ma):ma.indexOf("resource.label.")===0?w.push("resource.labels."+
ma.substring(15)):ma.indexOf("resource.")===0&&w.push("resource.labels."+ma.substring(9)),ma.indexOf("metric.labels.")===0?w.push(ma):ma.indexOf("metric.label.")===0?w.push("metric.labels."+ma.substring(13)):ma.indexOf("metric.")===0&&w.push("metric.labels."+ma.substring(7)),ma.indexOf("metadata.")===0&&w.push("metadata."+ma.substring(9)))})}var J=gEa(a),O=gEa(m),R=gEa(r);D=gEa(k);var V=hEa(a),ba=hEa(m),pa=hEa(r);H=hEa(k);var ua=function(ma,Da){Da=ma.indexOf(Da);Da!==-1&&delete ma[Da]};w.forEach(function(ma){if(ma.indexOf("resource.labels.")===
0){var Da=Cl(ma.substring(16));ua(J,Da);ua(V,Da);Da==="project"&&(ua(J,"project_id"),ua(V,"project_id"))}ma.indexOf("metric.labels.")===0&&(Da=Cl(ma.substring(14)),ua(O,Da),ua(ba,Da));ma.indexOf("metadata.")===0&&(ma=eEa(ma.substring(9)),ua(R,ma),ua(pa,ma))});if(!b&&J.length===0&&O.length===0&&R.length===0&&D.length===0&&g&&(e("Metric","${shortMetric}"),g.filter&&(b=fEa(g.filter))))for(b=l(b),g=b.next();!g.done;g=b.next())g=g.value,g.indexOf("metric.label.")===0&&(a=Cl(g.substring(13)),e(a,"${metric.labels."+
a+"}"),ua(O,a),ua(ba,a),ua(w,"metric.labels."+a)),g.indexOf("resource.label.")===0&&(a=Cl(g.substring(15)),e(a,"${resource.labels."+a+"}"),ua(J,a),ua(V,a),ua(w,"resource.labels."+a),a==="project"&&(ua(J,"project_id"),ua(V,"project_id"),ua(w,"resource.labels.project_id"))),g.indexOf("metadata.")===0&&(a=eEa(g.substring(9)),e(a,"${metadata."+jEa(a)+"}"),ua(R,a),ua(pa,a),ua(w,"metadata."+a)),g.indexOf("select_slo_")===0&&(e("SLO","${tssData.slo}"),g.includes("recent_loss")&&e("Lookback","${tssData.lookback}"));
w.forEach(function(ma){if(ma==="resource.labels.project"||ma==='resource.labels."project"')e("project","${resource.labels.project_id}");else if(ma==="resource.labels.instance_id"||ma==='resource.labels."instance_id"')e("Name (from instance_id)","${instanceNameOrId()}"),f("instance_id","${resource.labels.instance_id}");else if(ma==="resource.labels.credential_id"||ma==='resource.labels."credential_id"')e("Name (from credential_id)","${credentialNameOrId()}"),f("credential_id","${resource.labels.credential_id}");
else{var Da=ma;Da.indexOf("resource.labels.")===0&&(Da=Cl(Da.substring(16)),ma="resource.labels."+Da);Da.indexOf("metric.labels.")===0&&(Da=Cl(Da.substring(14)),ma="metric.labels."+Da);Da.indexOf("metadata.")===0&&(Da=eEa(Da.substring(9)),ma="metadata."+jEa(Da));e(Da,"${"+ma+"}")}});J.forEach(function(ma){ma==="instance_id"||ma==='"instance_id"'?(e("Name (from instance_id)","${instanceNameOrId()}"),ma=Cl(ma),f(ma,"${resource.labels."+ma+"}")):ma==="credential_id"||ma==='"credential_id"'?(e("Name (from credential_id)",
"${credentialNameOrId()}"),ma=Cl(ma),f(ma,"${resource.labels."+ma+"}")):(ma=Cl(ma),e(ma,"${resource.labels."+ma+"}"))});O.forEach(function(ma){ma=Cl(ma);e(ma,"${metric.labels."+ma+"}")});R.forEach(function(ma){ma=eEa(ma);e(ma,"${metadata."+jEa(ma)+"}")});D.forEach(function(ma){e(ma,"${labels."+ma+"}")});V.forEach(function(ma){ma!=="instance_id"&&ma!=='"instance_id"'||f("Name (from instance_id)","${instanceNameOrId()}");ma!=="credential_id"&&ma!=='"credential_id"'||f("Name (from credential_id)","${credentialNameOrId()}");
ma=Cl(ma);f(ma,"${resource.labels."+ma+"}")});ba.forEach(function(ma){ma=Cl(ma);f(ma,"${metric.labels."+ma+"}")});pa.forEach(function(ma){ma=eEa(ma);f(ma,"${metadata."+jEa(ma)+"}")});H.forEach(function(ma){f(ma,"${labels."+ma+"}")});return d.length===0?null:[d]},jEa=function(a){return a.replace(/\./g,"\\.").replace(/'/g,"\\'")},mEa=function(a,b){if(a.length!==b.length)return!1;for(var c=0;c<b.length;c++)if(a[c]!==b[c])return!1;return!0},nEa=function(a){var b=[],c=[],d=new Map;a.forEach(function(e){if((e==
null?void 0:e.resource)!=null){var f=e.resource.labels;f!=null&&(e=f.monitored_resource_container,f=f.project_id,e!=null&&f!=null&&e.split("/").length===2&&(e==null||b.includes(e)||b.push(e),e="projects/"+f,f==null||c.includes(e)||c.push(e)))}});if(c.length===0||b.length===0)return d;if(mEa(b,c))return d.set("project_id",!0),d.set("monitored_resource_container",!1),d;d.set("monitored_resource_container",!0);d.set("project_id",!1);return d},oEa=function(a){if(a==null)return null;var b=a.resource;return b?
Object.assign({},a,{resource:Object.assign({},b,{labels:Object.assign({},b.labels,b.displayedLabels)})}):a.displayedLabels?Object.assign({},a,{labels:Object.assign({},a.labels,a.displayedLabels)}):a},pEa=function(a){var b;return(b=a.map(function(c){var d;return(d=c==null?void 0:c.dataSeriesMetadata)!=null?d:null}))!=null?b:[]},qEa=function(a,b,c){if(b!==void 0)b={formatter:new Dl(b),labelTables:null,seriesMetadata:null};else if(b=c?kEa(a):lEa(a,!1)){c=nEa(a);a=a?a.map(oEa):null;for(var d="",e=l(b),
f=e.next();!f.done;f=e.next())if(f=f.value){f=l(f);for(var g=f.next();!g.done;g=f.next())if(g=g.value,g.isDefault&&c.get(g.title)!==!1){var k=void 0;d+=((k=g.template)!=null?k:"")+'" "'}}b=d?{formatter:new Dl(d),labelTables:b,seriesMetadata:a}:{formatter:null,labelTables:b,seriesMetadata:a}}else b={formatter:null,labelTables:b,seriesMetadata:a};return b},sEa=function(a,b){var c=c===void 0?rEa:c;var d=b.length-2,e=c(a)/d;return function(f){if(f<=0)return b[0];if(f>=a)return b[b.length-1];f=c(f);var g=
Math.floor(f/e)+1;return PCa(e*(g-1),e*g,b[g],b[g+1],f)}},rEa=function(a){return a},tEa=function(a){a&1&&(K(0,"span"),S(1,"\u2014"),L())},uEa=function(a){a&1&&(K(0,"span"),S(1,"SELECTED"),L())},vEa=function(a,b){a&1&&(K(0,"td",3),S(1),L(),K(2,"td",3),S(3),L());a&2&&(a=P(4),B(),T(" ",b," "),B(2),T(" ",a.valueColumnLabel," "))},wEa=function(a){a&1&&M(0,"td",4)},xEa=function(a){a&1&&(K(0,"tr")(1,"td",3),U(2,"async"),F(3,tEa,2,0,"span")(4,uEa,2,0,"span"),L(),F(5,vEa,4,2),U(6,"async"),F(7,wEa,1,0,"td",
4),L());if(a&2){var b;a=P(3);B();Jf("colspan",W(2,4,a.timeshiftColumnLabelObservable)?2:4);B(2);G(a.chartQuickActionsEnabled?3:4);B(2);G((b=W(6,6,a.timeshiftColumnLabelObservable))?5:-1,b);B(2);G(a.streamActions.length?7:-1)}},yEa=function(a){a&1&&Xf(0)},AEa=function(a){a&1&&E(0,yEa,1,0,"ng-container",11);if(a&2){a=P().$implicit;var b=P(3);I("ngTemplateOutlet",b.seriesRowTemplate)("ngTemplateOutletContext",Lg(2,zEa,a.metadata,a.name))}},BEa=function(a){a&1&&S(0);a&2&&(a=P().$implicit,T(" ",a.name,
" "))},CEa=function(a){a&1&&(K(0,"td",9),S(1),L());a&2&&(a=P().$implicit,B(),T(" ",a.timeshiftDisplayValue||"-"," "))},DEa=function(a){a&1&&Xf(0)},FEa=function(a){a&1&&E(0,DEa,1,0,"ng-container",11);if(a&2){a=P().$implicit;var b=P(3);I("ngTemplateOutlet",b.seriesValueTemplate)("ngTemplateOutletContext",Mg(2,EEa,a.rawValue,a.metadata,a.displayValue))}},GEa=function(a){a&1&&S(0);a&2&&(a=P().$implicit,T(" ",a.displayValue," "))},HEa=function(a){a&1&&(K(0,"td",4),M(1,"ac-series-stream-actions",12),L());
if(a&2){a=P().$implicit;var b=P(3);B();I("streamMetadata",a.metadata)("streamActions",b.streamActions)}},IEa=function(a,b){a&1&&(K(0,"tr")(1,"td",5),M(2,"ac-key",6),L(),K(3,"td",7)(4,"div",8),F(5,AEa,1,5,"ng-container")(6,BEa,1,1),L()(),F(7,CEa,2,1,"td",9),U(8,"async"),K(9,"td",10),F(10,FEa,1,6,"ng-container")(11,GEa,1,1),L(),F(12,HEa,2,2,"td",4),L());if(a&2){a=b.$implicit;b=P(3);B(2);var c;I("color",(c=a.color)!=null?c:"#000000")("drawnAs",a.drawnAs)("shape",a.shape)("condensed",b.condensedShapes)("lineDash",
b.showLineDash?a.lineDash:void 0);B();yg("strong",!b.onlyShowSelectedSeriesInternal||b.chartQuickActionsEnabled);B(2);G(b.seriesRowTemplate?5:6);B(2);G(W(8,13,b.timeshiftColumnLabelObservable)?7:-1);B(2);yg("strong",!b.onlyShowSelectedSeriesInternal||b.chartQuickActionsEnabled);B();G(b.seriesValueTemplate?10:11);B(2);G(b.streamActions.length?12:-1)}},JEa=function(a,b){a&1&&(K(0,"span"),S(1),L());a&2&&(B(),T("",b," above"))},KEa=function(a){a&1&&(K(0,"span"),S(1,"\u2014"),L())},LEa=function(a,b){a&
1&&(K(0,"td",3),S(1),L(),K(2,"td",3),S(3),L());a&2&&(a=P(4),B(),T(" ",b," "),B(2),T(" ",a.valueColumnLabel," "))},MEa=function(a){a&1&&(K(0,"tr",2)(1,"td",13),U(2,"async"),F(3,JEa,2,1,"span"),U(4,"async"),U(5,"async"),Mf(6,KEa,2,0,"span"),L(),F(7,LEa,4,2),U(8,"async"),L());if(a&2){var b,c;a=P(3);B();Jf("colspan",W(2,3,a.timeshiftColumnLabelObservable)?2:4);B(2);G((b=W(4,5,a.streamsAboveCountObservable))?3:W(5,7,a.streamsAboveCountObservable)===0?6:-1,b);B(4);G((c=W(8,9,a.timeshiftColumnLabelObservable))?
7:-1,c)}},NEa=function(a,b){a&1&&(K(0,"td",3),S(1),L(),K(2,"td",3),S(3),L());a&2&&(a=P(4),B(),T(" ",b," "),B(2),T(" ",a.valueColumnLabel," "))},OEa=function(a){a&1&&(K(0,"tr",2)(1,"td",13),U(2,"async"),K(3,"span"),S(4," \u2014 "),L()(),F(5,NEa,4,2),U(6,"async"),L());if(a&2){var b;a=P(3);B();Jf("colspan",W(2,2,a.timeshiftColumnLabelObservable)?2:4);B(4);G((b=W(6,4,a.timeshiftColumnLabelObservable))?5:-1,b)}},QEa=function(a){a&1&&(F(0,xEa,8,8,"tr"),U(1,"async"),Pf(2,IEa,13,15,"tr",null,Nf),U(4,"async"),
F(5,MEa,9,11,"tr",2),U(6,"async"),U(7,"async"),U(8,"async"),U(9,"async"),F(10,OEa,7,6,"tr",2),U(11,"async"),U(12,"async"));if(a&2){var b,c;a=P(2);G(W(1,3,a.showSelectedSeriesHeadersObservable)?0:-1);B(2);var d;Qf((d=W(4,5,a.selectedStreamsObservable))!=null?d:Jg(19,PEa));B(3);G(a.onlyShowSelectedSeriesInternal||a.compact||!(((b=W(6,7,a.selectedStreamsObservable))==null?0:b.length)||W(7,9,a.streamsAboveCountObservable)||W(8,11,a.streamsBelowCountObservable)||W(9,13,a.timeshiftColumnLabelObservable))?
-1:5);B(5);G(a.compact&&(((c=W(11,15,a.selectedStreamsObservable))==null?0:c.length)||W(12,17,a.timeshiftColumnLabelObservable))?10:-1)}},REa=function(a){a&1&&Xf(0)},SEa=function(a){a&1&&E(0,REa,1,0,"ng-container",11);if(a&2){a=P().$implicit;var b=P(3);I("ngTemplateOutlet",b.seriesRowTemplate)("ngTemplateOutletContext",Lg(2,zEa,a.metadata,a.name))}},TEa=function(a){a&1&&S(0);a&2&&(a=P().$implicit,T(" ",a.name," "))},UEa=function(a){a&1&&(K(0,"td",10),S(1),L());a&2&&(a=P().$implicit,yg("strong",a.isInteracted),
B(),T(" ",a.timeshiftDisplayValue||"-"," "))},VEa=function(a){a&1&&Xf(0)},WEa=function(a){a&1&&E(0,VEa,1,0,"ng-container",11);if(a&2){a=P().$implicit;var b=P(3);I("ngTemplateOutlet",b.seriesValueTemplate)("ngTemplateOutletContext",Mg(2,EEa,a.rawValue,a.metadata,a.displayValue))}},XEa=function(a){a&1&&S(0);a&2&&(a=P(2).$implicit,T(" ",a.displayValue," "))},YEa=function(a){a&1&&(S(0),M(1,"br"),S(2),M(3,"br"),S(4));a&2&&(a=P(2).$implicit,T(" max: ",a.maxDisplayValue," "),B(2),T(" mean: ",a.displayValue,
" "),B(2),T(" min: ",a.minDisplayValue," "))},ZEa=function(a){a&1&&F(0,XEa,1,1)(1,YEa,5,3);a&2&&(a=P().$implicit,G(a.minDisplayValue===void 0?0:1))},$Ea=function(a){a&1&&(K(0,"td",4),M(1,"ac-series-stream-actions",12),L());if(a&2){a=P().$implicit;var b=P(3);B();I("streamMetadata",a.metadata)("streamActions",b.streamActions)}},bFa=function(a,b){a&1&&(K(0,"tr")(1,"td",5),M(2,"ac-key",6),L(),K(3,"td",7)(4,"div",15),F(5,SEa,1,5,"ng-container")(6,TEa,1,1),L()(),F(7,UEa,2,3,"td",16),U(8,"async"),K(9,"td",
10),F(10,WEa,1,6,"ng-container")(11,ZEa,2,1),L(),F(12,$Ea,2,2,"td",4),L());if(a&2){a=b.$implicit;b=P(3);B(2);var c;I("color",(c=a.color)!=null?c:"#000000")("drawnAs",a.drawnAs)("shape",a.shape)("condensed",b.condensedShapes)("lineDash",b.showLineDash?a.lineDash:void 0);B();yg("strong",a.isInteracted);B();I("ngStyle",Kg(16,aFa,b.minWidth+"px"));B();G(b.seriesRowTemplate?5:6);B(2);G(W(8,14,b.timeshiftColumnLabelObservable)?7:-1);B(2);yg("strong",a.isInteracted);B();G(b.seriesValueTemplate?10:11);B(2);
G(b.streamActions.length?12:-1)}},cFa=function(a){a&1&&(K(0,"span"),S(1),U(2,"async"),U(3,"async"),L());if(a&2){a=P(4);B();var b,c;T(" ",((b=W(2,1,a.streamsBelowCountObservable))!=null?b:0)+((c=W(3,3,a.streamsAboveCountObservable))!=null?c:0)," additional values ")}},dFa=function(a){a&1&&(K(0,"span"),S(1,"\u2014"),L())},eFa=function(a){a&1&&(K(0,"span"),S(1),U(2,"async"),L());a&2&&(a=P(5),B(),T("",W(2,1,a.streamsBelowCountObservable)," below"))},fFa=function(a){a&1&&(F(0,dFa,2,0,"span"),U(1,"async"),
U(2,"async"),Mf(3,eFa,3,3,"span"));a&2&&(a=P(4),G(W(1,1,a.streamsBelowCountObservable)===0?0:W(2,3,a.streamsBelowCountObservable)?3:-1))},gFa=function(a){a&1&&(K(0,"tr",14)(1,"td",17),F(2,cFa,4,5,"span")(3,fFa,4,5),L()());a&2&&(a=P(3),B(2),G(a.compact?2:3))},hFa=function(a){a&1&&(Pf(0,bFa,13,18,"tr",null,Nf),U(2,"async"),F(3,gFa,4,1,"tr",14),U(4,"async"),U(5,"async"));if(a&2){a=P(2);var b;Qf((b=W(2,1,a.streamsObservable))!=null?b:Jg(7,PEa));B(3);G(W(4,3,a.streamsAboveCountObservable)||W(5,5,a.streamsBelowCountObservable)?
3:-1)}},iFa=function(a){a&1&&(K(0,"div",0)(1,"table")(2,"tbody",1),F(3,QEa,13,20),F(4,hFa,6,8),L()()());a&2&&(a=P(),B(2),yg("compact",a.compact),B(),G(a.hideSelectedSection?-1:3),B(),G(a.onlyShowSelectedSeriesInternal?-1:4))},jFa=function(a,b){return a.stackingIndex!==void 0&&b.stackingIndex!==void 0?b.stackingIndex-a.stackingIndex:a.pxValue!==void 0&&b.pxValue!==void 0?a.pxValue-b.pxValue:a.scaledValue?b.scaledValue?a.valueType===2||b.valueType===2?0:b.scaledValue-a.scaledValue:-1:1},kFa=function(a){a=
a===void 0?1:a;return function(b,c){return(a||1)*(b.name||"").localeCompare(c.name||"")}},lFa=function(a,b){b=(b=b===void 0?1:b)||1;return function(c,d){c=c.labels&&c.labels[a]||"";d=d.labels&&d.labels[a]||"";return(b||1)*c.localeCompare(d,void 0,{numeric:!isNaN(Number(c))&&!isNaN(Number(d))})}},mFa=function(a){var b=(a===void 0?1:a)||1;return function(c,d){var e=Infinity*b,f=Infinity*b;typeof c.rawValue==="number"&&(e=typeof c.pxValue==="number"?-c.pxValue:c.rawValue);typeof d.rawValue==="number"&&
(f=typeof d.pxValue==="number"?-d.pxValue:d.rawValue);return f>e?-1*b:f<e?b:0}},nFa=function(a){var b=(a===void 0?1:a)||1;return function(c,d){c=c.isSelected;return c===d.isSelected?0:c?b:-1*b}},oFa=function(a){a&1&&(K(0,"span"),S(1,":"),L())},pFa=function(a){a&1&&(K(0,"span",12)(1,"span",3),S(2),L(),S(3),L());if(a&2){a=P().$implicit;var b=P(2);B(2);Ag(b.valueLabel);B();T(" ",a.displayValue," ")}},rFa=function(a,b){if(a&1){var c=t();K(0,"div",6)(1,"div",7);N("mouseenter",function(){var d=u(c).$implicit,
e=P(2);return v(e.hover(d))})("mouseleave",function(){var d=u(c).$implicit,e=P(2);return v(qFa(e,d))})("click",function(){var d=u(c).$implicit,e=P(2);return v(e.toggleSelection(d))});K(2,"span",8);M(3,"ac-key",9);S(4);E(5,oFa,2,0,"span",10);L();E(6,pFa,4,2,"span",11);L()()}a&2&&(a=b.$implicit,b=P(2),B(),yg("selected",a.isSelected&&b.enableSelection),B(2),I("color",a.color)("drawnAs",a.drawnAs)("shape",a.shape),B(),T(" ",a.name),B(),I("ngIf",a.displayValue&&!a.hideValue&&!b.hideAllValues),B(),I("ngIf",
!a.hideValue&&!b.hideAllValues))},uFa=function(a){a&1&&(K(0,"div",4),E(1,rFa,7,8,"div",5),U(2,"async"),L());a&2&&(a=P(),I("ve",a.ve.ChartLegendPane)("ngClass",Kg(7,sFa,a.enableScrolling)),Jf("aria-label",a.inlineLegendLabel)("aria-describedby",a.describedById),B(),I("ngForOf",W(2,5,a.streamsObservable)||Jg(9,tFa)))},vFa=function(a){a&1&&(K(0,"li",17),S(1," Loading... "),L())},wFa=function(a){a&1&&(K(0,"li",17),S(1," 0 time series "),L())},yFa=function(a,b){if(a&1){var c=t();K(0,"li",18)(1,"button",
19);N("mouseenter",function(){var e=u(c).$implicit,f=P(2);return v(f.hover(e))})("focusin",function(){var e=u(c).$implicit,f=P(2);return v(f.hover(e))})("mouseleave",function(){var e=u(c).$implicit,f=P(2);return v(qFa(f,e))})("focusout",function(){var e=u(c).$implicit,f=P(2);return v(qFa(f,e))})("click",function(){var e=u(c).$implicit,f=P(2);return v(f.toggleSelection(e))});M(2,"ac-key",20);U(3,"async");K(4,"div",8)(5,"div",21);S(6);L();K(7,"div",22);S(8);L()()()()}if(a&2){a=b.$implicit;b=b.index;
var d=P(2);B();yg("selected",a.isSelected&&d.enableSelection);I("matTooltip",a.name)("matTooltipPosition","right")("matTooltipShowDelay",500)("matTooltipClass","ac-inline-legend-hover-tooltip");Jf("tabindex",d.focusKeyManager.activeItemIndex===b?0:-1)("aria-pressed",a.isSelected&&d.enableSelection);B();I("color",a.color)("drawnAs",a.drawnAs)("shape",a.shape)("condensed",d.condensed)("hollow",xFa(d,a,W(3,15,d.anyStreamInteractedObservable)));B(4);T(" ",a.name," ");B(2);T(" ",a.name," ")}},zFa=function(a){a&
1&&(K(0,"li",23),S(1),U(2,"async"),L());a&2&&(a=P(2),B(),T(" ",W(2,1,a.additionalStreamsObservable)," more "))},AFa=function(a){if(a&1){var b=t();K(0,"ol",13,1);U(2,"async");U(3,"async");N("keydown",function(c){u(b);var d;(d=P().focusKeyManager)==null||d.onKeydown(c);return v()});E(4,vFa,2,0,"li",14);U(5,"async");U(6,"async");E(7,wFa,2,0,"li",14);U(8,"async");U(9,"async");E(10,yFa,9,17,"li",15);U(11,"async");E(12,zFa,3,3,"li",16);U(13,"async");L()}a&2&&(a=P(),yg("scrollable",a.enableScrolling)("narrow",
W(2,16,a.narrowSubject))("column-display",a.useColumnDisplay())("hidden-trivial-legend",W(3,18,a.hideSingleSeriesLegendsObservable)),I("ve",a.ve.ChartLegendPane),Jf("aria-label",a.inlineLegendLabel)("aria-describedby",a.describedById),B(4),I("ngIf",W(5,20,a.isLoadingObservable)===!0&&(W(6,22,a.condensedStreamsObservable)||Jg(32,tFa)).length===0),B(3),I("ngIf",W(8,24,a.isLoadingObservable)!==!0&&(W(9,26,a.condensedStreamsObservable)||Jg(33,tFa)).length===0&&!a.hideSingleSeriesLegends),B(3),I("ngForOf",
W(11,28,a.condensedStreamsObservable))("ngForTrackBy",a.trackByStreamId),B(2),I("ngIf",(W(13,30,a.additionalStreamsObservable)||0)>0))},BFa=function(a,b,c,d,e){if(c.offsets){var f=a.clientX-c.offsets.left,g=a.clientY-c.offsets.top;if(!(g<c.margins.top-1||g>c.height-c.margins.bottom+1||f<c.margins.left-1||f>c.width-c.margins.right+1)){if(e)return{x:e.x+15,y:e.y+15};c=25+b.height;e=25+b.width;f=a.clientY+15;g=a.clientX+15;b=a.clientX-15-b.width;d===3&&b>=0&&(g=b);a.clientY+c>window.innerHeight&&(f=
Math.max(10,a.clientY-c+10));a.clientX+e>window.innerWidth&&(g=Math.max(10,a.clientX-e+10));return{x:g,y:f}}}},DFa=function(a){if(a&1){var b=t();K(0,"button",9,1);N("click",function(){u(b);var c=P(3);CFa(c);El(c.interactionService,"click",Fl.ve.HovercardCloseButton,c.el.nativeElement);return v()})("focus",function(c){u(b);P(3).onFocus(c);return v()});M(2,"mat-icon",10);L()}a&2&&(a=P(3),yg("close-button-small",a.chartQuickActionsEnabled),I("matTooltip",a.closeAriaLabel)("matTooltipClass","close-tooltip"),
Jf("aria-label",a.closeAriaLabel),B(2),yg("close-icon-small",a.chartQuickActionsEnabled))},EFa=function(a){a&1&&(K(0,"span"),$f(1,3),L())},FFa=function(a){a&1&&(Vf(0),M(1,"mat-icon",13),E(2,EFa,2,0,"span",14),U(3,"async"),Wf());a&2&&(a=P(4),B(2),I("ngIf",a.hasSeriesActionType&&W(3,1,a.shouldShowSeriesActionText$)))},GFa=function(a){a&1&&(M(0,"mat-icon",15),K(1,"span"),Mna(2,4),M(3,"b"),od.inI18n=!1,L())},HFa=function(a){a&1&&(K(0,"div",11),E(1,FFa,4,3,"ng-container",12),U(2,"async"),E(3,GFa,4,0,"ng-template",
null,2,Og),L());if(a&2){a=Q(4);var b=P(3);B();I("ngIf",W(2,2,b.isPinned$))("ngIfElse",a)}},IFa=function(a){if(a&1){var b=t();K(0,"ac-hovercard-dialog",6);U(1,"async");U(2,"async");N("focusin",function(e){u(b);var f=P(2);return v(f.onFocusIn(e))});E(3,DFa,3,7,"button",7);U(4,"async");U(5,"async");gg(6);E(7,HFa,5,4,"div",8);U(8,"async");L()}if(a&2){a=P(2);var c,d;I("grabFocusAndUseAsModal",(c=W(1,5,a.grabFocusAndUseAsModalObservable))!=null?c:!1)("isPinned",(d=W(2,7,a.isPinned$))!=null?d:!1)("ariaLabel",
a.ariaLabel());B(3);I("ngIf",W(4,9,a.isPinned$)||W(5,11,a.grabFocusAndUseAsModalObservable));B(4);I("ngIf",W(8,13,a.pinningEnabled$)&&!a.hidePinPrompt)}},JFa=function(a){a&1&&(E(0,IFa,9,15,"ac-hovercard-dialog",5),U(1,"async"));a&2&&(a=P(),I("ngIf",W(1,1,a.showHovercard)&&!a.hideHovercard))},KFa=function(a){return{label:String(a),value:a}},LFa=function(a,b){for(var c=[],d=0;d<a;d++){c.push([]);for(var e=0;e<b;e++)c[d].push({position:{x:0,y:0,height:0,width:0},label:"-"})}return c},MFa=function(a,
b){for(var c=[],d=new Map,e=0;e<a.length;e++){var f=a[e];d.set(f,e);var g=b(f);c.push({label:g.label,value:g.value,metadata:{timeMs:f}})}return{columns:c,xToColIndex:d}},NFa=function(a){var b=a.ticks;a=a.grid.columns;var c=a.map(function(){return!1});c.length>=1&&(c[0]=!0);c.length>=2&&(c[a.length-1]=!0);if(!b||b.length===0)return c;b=l(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;for(var e=Infinity,f=0,g=0;g<a.length;g++){var k=Math.abs(a[g].metadata.timeMs-d.value);if(k<e)e=k,f=g;else break}c[f]=
!0}return c},Gl=function(a,b){var c=1;c=c===void 0?1:c;b=b===void 0?1:b;if(!a)return[null,null];var d=l(a);a=d.next().value;d=d.next().value;var e=null,f=null;a>=c&&(e=a-c);d>=b&&(f=d-b);return[e,f]},OFa=function(a){var b={instanceNameOrId:function(d){var e,f,g=d==null?void 0:(e=d.metric)==null?void 0:(f=e.labels)==null?void 0:f.instance_name,k,m;d=d==null?void 0:(k=d.resource)==null?void 0:(m=k.labels)==null?void 0:m.instance_id;var r;return(r=g!=null?g:d)!=null?r:""}};if(a){var c=new Dl(a);b.getName=
function(d){var e;return(e=c.format(d,OFa()))!=null?e:""}}else b.getName=function(d){var e;return(e=d.name)!=null?e:""};return b},PFa=function(a){return{label:String(a),value:a}},QFa=function(a,b){return function(c){var d=Wk(a,b,c);return{label:d!==null?Yk(d,b):Yk(c,a),value:d!=null?d:void 0}}},RFa=function(a){var b;return(b=a.name)!=null?b:a.id},SFa=function(a,b){a=a.map(function(e){var f;return(f=e.metadata)!=null?f:null});var c=qEa(a).formatter;if(c){var d=OFa(b);return function(e){var f;return c.format((f=
e.metadata)!=null?f:null,d)||RFa(e)}}return RFa},TFa=function(){return{x:0,y:0,height:0,width:0}},UFa=function(a,b,c,d){return function(e){var f=e.x,g=e.x0,k=e.y,m=e.y0,r=e.y1,w=0,x=0;e=Math.round(a(f.valueOf())||0);if((d==null?0:d.centerInOutputPeriod)&&(g!==void 0||(d==null?0:d.outputPeriodMs))&&(g=g==null?void 0:g.valueOf(),g===void 0&&(d==null?0:d.outputPeriodMs)&&(g=f.valueOf()-(d==null?NaN:d.outputPeriodMs)),g!==void 0)){e=Math.round(a((f.valueOf()+g)/2)||0);x=Math.floor(a(f.valueOf())||0);
f=Math.floor(a(g)||0);var D;x=Math.abs(x-f)*((D=d==null?void 0:d.widthMultiplier)!=null?D:1)}k=Math.round(b(k)||0);m!==void 0&&r!==void 0&&(k=Math.round(b((r+m)/2)||0),r=Math.floor(b(r)||0),m=Math.floor(b(m)||0),w=Math.abs(r-m));return e<c.left&&e+x/2<c.left||e>c.right&&e-x/2>c.right||k<c.top&&k+w/2<c.top||k>c.bottom&&k-w/2>c.bottom?{x:e,y:k,height:w,width:x,outOfBounds:!0}:{x:e,y:k,height:w,width:x}}},VFa=function(a){var b=a.data;var c=a.xAxisState;var d=a.yAxisState;var e=a.rowFormatter;var f=a.columnFormatter;
var g=a.valueFormatter;var k=a.positionMap;a=a.audioChartContext;e||(e=RFa);f||(f=KFa);g||(g=PFa);k||(k=TFa);for(var m=[],r=new Set,w=l(b.series),x=w.next();!x.done;x=w.next()){x=x.value;m.push({label:e(x),metadata:{seriesId:x.id}});x=l(x.data);for(var D=x.next();!D.done;D=x.next())D=D.value,k(D).outOfBounds||r.add(D.x.valueOf())}e=Array.from(r);e.sort(function(R,V){return R-V});e=MFa(e,f);f=e.columns;e=e.xToColIndex;r=LFa(m.length,f.length);for(w=0;w<b.series.length;w++){x=r[w];D=l(b.series[w].data);
for(var H=D.next();!H.done;H=D.next()){var J=H.value;H=e.get(J.x.valueOf());if(H!==void 0&&(H=x[H])){H.position=k(J);J=g(J.y);var O=J.value;H.label=J.label;H.value=O}}}return{rows:m,columns:f,values:r,xAxisState:c,yAxisState:d,audioChartContext:a}},Jl=function(a,b,c,d){d=d===void 0?!1:d;var e=a.length>0&&a[a.length-1].x.valueOf()-a[0].x.valueOf()>0,f=Hl(a,b,d?void 0:Il(c));if(f===a.length-1||a.length<2)return f;e=f+(e?1:-1);var g=a[f],k=a[e];if(!g&&!k)return 0;if(!g&&k)return e;if(!k&&g)return f;
a=g.x.valueOf();var m;g=d?void 0:((m=g.x0)==null?void 0:m.valueOf())||(c?a-c:void 0);m=k.x.valueOf();var r;d=d?void 0:((r=k.x0)==null?void 0:r.valueOf())||(c?m-c:void 0);return(g&&b>=g&&b<=a?0:Math.abs(b-a))<=Math.abs(b-(d||m))?f:e},Il=function(a){return function(b){var c;return((c=b.x0)==null?void 0:c.valueOf())||(a?b.x.valueOf()-a:void 0)}},Kl=function(a,b,c,d){b=Math.abs(c.x.valueOf()-b.x.valueOf());return a?d?{gapDetected:b>Math.max(a*2,6E5),gapWidthMs:b}:{gapDetected:b>=a*2,gapWidthMs:b}:{gapDetected:!1,
gapWidthMs:b}},Hl=function(a,b,c){if(a.length>0?a[a.length-1].x.valueOf()-a[0].x.valueOf()>0:1){for(var d=0,e=a.length-1,f=Math.ceil((e+d)/2);d<e;){var g=a[f],k=g.x.valueOf();g=c?c(g):void 0;if(b>k)d=f;else if(b<k&&(g===void 0||b<=g))e=f-1;else break;f=Math.ceil((e+d)/2)}return f||0}d=a.length-1;e=0;for(f=Math.floor((e+d)/2);e<d;){g=a[f];k=g.x.valueOf();g=c?c(g):void 0;if(b>k)d=f;else if(b<k&&(g===void 0||b<=g))e=f+1;else break;f=Math.floor((e+d)/2)}return f},WFa=function(a,b,c){var d=a.data.length>
0&&a.data[a.data.length-1].x.valueOf()-a.data[0].x.valueOf()>0,e=Hl(a.data,b-c);a=Hl(a.data,b+c);return e===a?d?[e,e+1]:[a-1,a]:[Math.min(e,a),Math.max(e,a)]},$Fa=function(a){var b=a.values;b.sort(function(r,w){return r.x-w.x});var c=b.map(function(r){return r.x}),d=b.map(function(r){return r.y}),e=a.earcons||[];e.sort(function(r,w){return r.x-w.x});var f=e.map(function(r){return r.x}),g;f=XFa([].concat(n(c),n(f)),(g=a.xAxis)!=null?g:{});var k,m;return{values:b,earcons:e,xAxis:Object.assign({},f,
{density:(m=(k=a.xAxis)==null?void 0:k.density)!=null?m:YFa([c].concat(n(ZFa(e).values())),f)}),yAxis:Object.assign({},XFa(d,a.yAxis||{}))}},ZFa=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=d.x;d=d.earcon;var e=b.get(d);e===void 0?b.set(d,[c]):e.push(c)}return b},YFa=function(a,b){a=a.map(aGa).filter(function(c){return c!==null});if(a.length===0)return 1;a=Math.min.apply(Math,n(a));return 1+(b.max-b.min)/a},aGa=function(a){a=[].concat(n(new Set(a)));if(a.length<
2)return null;var b=[];a.sort(function(d,e){return d-e});for(var c=0;c<a.length-1;c++)b.push(a[c+1]-a[c]);b.sort(function(d,e){return d-e});a=(b.length-1)/2;return b[Math.ceil(a)]/2+b[Math.floor(a)]/2},XFa=function(a,b){var c=b.min;b=b.max;var d=Math.min.apply(Math,n(a));c=c===void 0?d:c;a=Math.max.apply(Math,n(a));return{min:c,max:b===void 0?a:b}},bGa=function(a,b,c,d,e){return c+(e-a)*(c-d)/(a-b)},cGa=function(a){var b=a.min,c=a.max,d=c===b?function(){return-6}:function(e){return bGa(b,c,-24,12,
e)};return function(e){e=d(e);return 440*Math.pow(2,e/12)}},fGa=function(a){var b=b===void 0?.13:b;var c=dGa(a.xAxis),d=eGa(a.xAxis,b),e=cGa(a.yAxis),f=a.values.map(function(k){var m=k.x;return{frequency:e(k.y),onset:d(m),pan:c(m)}}),g=a.earcons.map(function(k){var m=k.x;return{earcon:k.earcon,onset:d(m),pan:c(m)}});return{notes:f,earcons:g,durationSeconds:(a.xAxis.density-1)*b}},eGa=function(a,b){var c=a.min,d=a.max,e=(a.density-1)*b;return c===d?function(){return 0}:function(f){return bGa(c,d,0,
e,f)}},dGa=function(a){var b=a.min,c=a.max;return b===c?function(){return 0}:function(d){return bGa(b,c,-1,1,d)}},hGa=function(a){var b=gGa,c;return y(function(d){if(d.nextAddress==1){var e=era(b).toString();c=xh(URL.createObjectURL(new Blob([e],{type:"text/javascript"})));return z(d,a.audioWorklet.addModule(c.toString()),2)}URL.revokeObjectURL(c.toString());$d(d)})},iGa=function(a){a=uh(a).toString();var b=new Ll;Gj(b,2,a);return b},jGa=function(a){if(!a)return null;a=Ml(a,2);return a===null||a===
void 0?null:sh(a)},kGa=function(a){if(!a)return null;a=Ml(a,3);return a===null||a===void 0?null:zh(a)},lGa=function(a){if(!a)return null;a=Ml(a,6);var b;a===null||a===void 0?b=null:b=dra(a);return b},mGa=function(a){var b,c,d,e,f,g,k;return y(function(m){if(m.nextAddress==1){b=a.context;for(var r=b.createBuffer(1,5*b.sampleRate,b.sampleRate),w=0;w<1;w++)for(var x=r.getChannelData(w),D=0,H=0;H<x.length;H++)D=(D+.02*(Math.random()*2-1))/1.02,x[H]=D;w=b.createBufferSource();w.buffer=r;w.loop=!0;c=w;
c.start(b.currentTime);d=b.createGain();d.gain.value=0;e=b.createGain();c.connect(d).connect(e);return z(m,hGa(b),2)}f=new AudioWorkletNode(b,"rectifier-worklet");f.channelCountMode="explicit";f.channelCount=1;g=new AudioWorkletNode(b,"threshold-worklet");g.channelCountMode="explicit";g.channelCount=1;k=new AudioWorkletNode(b,"slew-worklet");k.channelCountMode="explicit";k.channelCount=1;a.connect(f).connect(g).connect(k).connect(d.gain);return m.return(e)})},oGa=function(a){if(a&1){var b=t();K(0,
"th",22,2);N("focus",function(c){u(b);var d=P();return v(d.focus(c))})("blur",function(c){u(b);var d=P();return v(d.blur(c))});K(2,"span",16);S(3);L()()}a&2&&(a=P(),Jf("aria-colindex",2)("tabindex",nGa(a)?0:-1),B(3),Ag(a.AUDIO_HEADER))},sGa=function(a,b){if(a&1){var c=t();Vf(0);K(1,"th",23)(2,"button",24,3);N("click",function(){var d=u(c).$implicit,e=P();return v(pGa(e,d.colIndex))})("focus",function(d){u(c);var e=P();return v(e.focus(d))})("blur",function(d){u(c);var e=P();return v(e.blur(d))});
S(4);L()();Wf()}a&2&&(a=b.$implicit,b=P(),B(),I("ngStyle",Lg(7,qGa,a.column.position.x,a.column.position.y)),Jf("aria-colindex",a.colIndex+b.numberOfHeaderColumns+1),B(),Jf("id",a.column.id)("tabindex",a.column.tabindex)("aria-describedby",b.columnToggleDescriptionId)("aria-expanded",rGa(b,a.colIndex+1)),B(2),T(" ",a.column.label," "))},uGa=function(a){a&1&&(Vf(0),M(1,"mat-icon",31),Wf());a&2&&(a=P(3),B(),I("svgIcon",tGa(a)?"ac:music_off":"ac:music_note"))},yGa=function(a){if(a&1){var b=t();K(0,"td",
28)(1,"button",29,5);N("click",function(){u(b);var d=P().$implicit,e=P();vGa(e,d.rowIndex,!0);return v()})("focus",function(d){u(b);var e=P(2);return v(e.focus(d))})("blur",function(d){u(b);var e=P(2);return v(e.blur(d))});K(3,"span");S(4);L();K(5,"span",30);S(6);L();E(7,uGa,2,1,"ng-container",20);L()()}if(a&2){a=P().$implicit;var c=P();I("ngStyle",Lg(10,qGa,a.row.position.x,a.row.position.y));Jf("aria-colindex",2);B();I("disabled",!c.internalAudioValues[a.rowIndex].audioChartOptions);Jf("id",c.internalAudioValues[a.rowIndex].id)("tabindex",
c.internalAudioValues[a.rowIndex].tabindex)("aria-describedby",c.audioChartButtonDescriptionId+"-"+a.rowIndex);B(3);Ag(wGa(c,a.rowIndex));B();Jf("id",c.audioChartButtonDescriptionId+"-"+a.rowIndex);B();T(" ",xGa(c,a.rowIndex)," ");B();I("ngIf",!!c.internalAudioValues[a.rowIndex].audioChartOptions)}},zGa=function(a,b){if(a&1){var c=t();Vf(0);K(1,"td",32)(2,"button",33,6);N("click",function(d){u(c);var e=P(2);d.target instanceof HTMLElement&&e.onGridCellActivate.emit(d.target);return v()})("focus",
function(d){u(c);var e=P(2);return v(e.focus(d))})("blur",function(d){u(c);var e=P(2);return v(e.blur(d))});S(4);L()();Wf()}a&2&&(a=b.$implicit,b=P(2),B(),I("ngStyle",Ooa(a.column.position.x,a.column.position.y,a.column.position.height,a.column.position.width)),Jf("aria-colindex",a.colIndex+b.numberOfHeaderColumns+1),B(),Jf("tabindex",a.column.tabindex)("id",a.column.id)("aria-describedby",b.activateGridCellDescriptionId),B(2),T(" ",a.column.label," "))},BGa=function(a,b){if(a&1){var c=t();K(0,"tr",
25)(1,"th",26)(2,"button",24,4);N("click",function(){var d=u(c).$implicit,e=P();return v(e.toggleRow(d.rowIndex))})("focus",function(d){u(c);var e=P();return v(e.focus(d))})("blur",function(d){u(c);var e=P();return v(e.blur(d))});K(4,"span");S(5);L()()();E(6,yGa,8,13,"td",27)(7,zGa,5,11,"ng-container",18);L()}a&2&&(a=b.$implicit,b=P(),Jf("aria-rowindex",a.rowIndex+2),B(),I("ngStyle",Lg(11,qGa,a.row.position.x,a.row.position.y)),Jf("aria-colindex",1),B(),Jf("id",a.row.id)("tabindex",a.row.tabindex)("aria-describedby",
b.rowToggleDescriptionId)("aria-expanded",AGa(b,a.rowIndex+1)),B(3),Ag(a.row.label),B(),I("ngIf",b.audioChartsEnabled),B(),I("ngForOf",b.shownColumns(b.internalValues[a.rowIndex]))("ngForTrackBy",b.trackColumnById))},CGa=function(a){a&1&&(K(0,"tr")(1,"td",34)(2,"span",16),$f(3,9),L()()())},EGa=function(a){a&1&&(K(0,"tr")(1,"td",34)(2,"span",16),$f(3,10),L()()());a&2&&(a=P(),B(3),ag(DGa(a)),qna(30))},Nl=function(a,b,c,d,e,f,g){f=f===void 0?"default":f;if(!a)return null;var k=b!=null?b:(new Date).valueOf(),
m=Infinity;a=a.series.map(function(r){var w=r.data;if(w.length===0||!b)return{seriesId:r.id,value:null};var x=w[w.length-1].x.valueOf()-w[0].x.valueOf()>0;if(f==="default")var D=Jl(w,b,d,!0);else f==="left_only"?D=Hl(w,b):(D=w.length>0&&w[w.length-1].x.valueOf()-w[0].x.valueOf()>0,D=Hl(w,b)+(D?1:-1));var H=D;if(H<0||H>=w.length)return{seriesId:r.id,value:null};var J=D=w[H],O=!1;if(!g||Math.abs(D.x.valueOf()-b)>g)if(d){var R=w[H+(x?-1:1)];w=w[H+(x?1:-1)];var V,ba;if(b<=((ba=(V=D.x0)==null?void 0:V.valueOf())!=
null?ba:D.x.valueOf())&&R)O=Kl(d,R,D,e).gapDetected;else if(b>=D.x.valueOf()&&w)O=Kl(d,D,w,e).gapDetected;else if(b>D.x.valueOf()&&!w)O=Math.abs(b-D.x.valueOf())>d;else{var pa,ua;if(b<((ua=(pa=D.x0)==null?void 0:pa.valueOf())!=null?ua:D.x.valueOf())&&!R){var ma;V=(ma=D.x0)==null?void 0:ma.valueOf();O=V===void 0?Math.abs(b-D.x.valueOf())>d*2:Math.abs(b-V)>d}}}else g&&(O=!0);O?c==="zero_fill"?J={x:new Date(k),y:0}:J=null:(k=D.x.valueOf(),Math.abs(k-b)<Math.abs(m-b)&&(m=k));return{seriesId:r.id,value:J}});
d===null&&c==="gap_detection"&&(k=m);return{values:a,timeRange:{x:k}}},FGa=function(a,b){return a.x>=b.margins.left&&a.x<=b.width-b.margins.right&&a.y>=b.margins.top&&a.y<=b.height-b.margins.bottom},GGa=function(a){return a.series.length===0||a.series.some(function(b){return b.data.some(function(c){return typeof c.y==="number"})})||a.series.every(function(b){return b.data.length===0})},HGa=function(a){return a.series.length===0||a.series.some(function(b){return b.data.some(function(c){var d;return(d=
c.y)==null?void 0:d.bucketOptions})})||a.series.every(function(b){return b.data.length===0})},JGa=function(a){a=cba(a);var b=0,c=a.length,d={a:-1640531527,b:-1640531527,c:314159265},e;for(e=c;e>=12;e-=12,b+=12)d.a+=Ol(a,b),d.b+=Ol(a,b+4),d.c+=Ol(a,b+8),IGa(d);d.c+=c;switch(e){case 11:d.c+=a[b+10]<<24;case 10:d.c+=(a[b+9]&255)<<16;case 9:d.c+=(a[b+8]&255)<<8;case 8:d.b+=Ol(a,b+4);d.a+=Ol(a,b);break;case 7:d.b+=(a[b+6]&255)<<16;case 6:d.b+=(a[b+5]&255)<<8;case 5:d.b+=a[b+4]&255;case 4:d.a+=Ol(a,b);
break;case 3:d.a+=(a[b+2]&255)<<16;case 2:d.a+=(a[b+1]&255)<<8;case 1:d.a+=a[b]&255}return IGa(d)},IGa=function(a){var b=a.a,c=a.b,d=a.c;b=b-c-d^d>>>13;c=c-d-b^b<<8;d-=b;d=d-c^c>>>13;b-=c;b-=d;b^=d>>>12;c=c-d-b^b<<16;d-=b;d=d-c^c>>>5;b-=c;b-=d;b^=d>>>3;c=c-d-b^b<<10;d-=b;d=d-c^c>>>15;a.a=b;a.b=c;return a.c=d},Ol=function(a,b){return KGa(a[b])+(KGa(a[b+1])<<8)+(KGa(a[b+2])<<16)+(KGa(a[b+3])<<24)},KGa=function(a){return a>127?a-256:a},Pl=function(a){return typeof a==="string"?a:a.length===0?LGa[0]:
a[0].color},MGa=function(a,b){a&1&&(Vf(0),K(1,"div",1),S(2),L(),Wf());a&2&&(a=b.ngIf,B(2),T(" ",a," "))},NGa=function(a,b){a&1&&(Sf(0,"div",0),gg(1),S(2),gg(3,1),Tf());a&2&&(B(2),T(" ",b," "))},OGa=function(a){a&1&&(K(0,"div",1),M(1,"mat-icon",2),K(2,"div",3),S(3),U(4,"async"),L()());a&2&&(a=P(),B(3),Ag(W(4,1,a.nonblockingErrorMessageObservable)))},PGa=function(a,b){a&1&&(Vf(0),K(1,"div")(2,"span",1)(3,"span",2),S(4),L(),M(5,"BR"),K(6,"span",3),S(7),L()()(),Wf());if(a&2){a=b.ngIf;b=P();B(4);var c;
Ag((c=a==null?null:a.label)!=null?c:"");B(3);var d,e;Boa(" ",b.aboveLabel," ",(d=a==null?null:a.lowerBound)!=null?d:"",", ",b.belowLabel," ",(e=a==null?null:a.upperBound)!=null?e:"")}},QGa=function(a){a&1&&(K(0,"button",3)(1,"mat-icon"),S(2,"more_vert"),L()());a&2&&(P(),a=Q(2),I("matMenuTriggerFor",a))},RGa=function(a){a&1&&Xf(0)},TGa=function(a){a&1&&E(0,RGa,1,0,"ng-container",10);if(a&2){a=P().$implicit;var b=P(2);I("ngTemplateOutlet",b.seriesRowTemplate)("ngTemplateOutletContext",Lg(2,SGa,a.metadata,
a.name))}},UGa=function(a){a&1&&S(0);a&2&&(a=P().$implicit,T(" ",a.name," "))},VGa=function(a){a&1&&(K(0,"td",8),S(1),L());a&2&&(a=P().$implicit,yg("strong",a.isInteracted),B(),T(" ",a.timeshiftDisplayValue||"-"," "))},WGa=function(a){a&1&&Xf(0)},YGa=function(a){a&1&&E(0,WGa,1,0,"ng-container",10);if(a&2){a=P().$implicit;var b=P(2);I("ngTemplateOutlet",b.seriesValueTemplate)("ngTemplateOutletContext",Kg(2,XGa,a.rawValue))}},ZGa=function(a){a&1&&S(0);a&2&&(a=P(2).$implicit,T(" ",a.displayValue," "))},
$Ga=function(a){a&1&&(S(0),M(1,"br"),S(2),M(3,"br"),S(4));a&2&&(a=P(2).$implicit,T(" max: ",a.maxDisplayValue," "),B(2),T(" mean: ",a.displayValue," "),B(2),T(" min: ",a.minDisplayValue," "))},aHa=function(a){a&1&&F(0,ZGa,1,1)(1,$Ga,5,3);a&2&&(a=P().$implicit,G(a.minDisplayValue===void 0?0:1))},bHa=function(a){a&1&&(K(0,"td",9),M(1,"ac-streams-legend-actions",11),L());if(a&2){a=P().$implicit;var b=P(2);B();I("streamMetadata",a.metadata)("streamActions",b.streamActions)}},dHa=function(a,b){a&1&&(K(0,
"tr")(1,"td",3),M(2,"ac-key",4),L(),K(3,"td",5)(4,"div",6),F(5,TGa,1,5,"ng-container")(6,UGa,1,1),L()(),F(7,VGa,2,3,"td",7),U(8,"async"),K(9,"td",8),F(10,YGa,1,4,"ng-container")(11,aHa,2,1),L(),F(12,bHa,2,2,"td",9),L());if(a&2){a=b.$implicit;b=P(2);B(2);var c;I("color",(c=a.color)!=null?c:b.AC_SYS_COLOR_CHART_ON_SURFACE)("drawnAs",a.drawnAs)("shape",a.shape)("condensed",b.condensedShapes)("lineDash",b.showLineDash?a.lineDash:void 0);B();yg("strong",a.isInteracted);B();I("ngStyle",Kg(16,cHa,b.minWidth+
"px"));B();G(b.seriesRowTemplate?5:6);B(2);G(W(8,14,b.timeshiftColumnLabelObservable)?7:-1);B(2);yg("strong",a.isInteracted);B();G(b.seriesValueTemplate?10:11);B(2);G(b.streamActions.length?12:-1)}},fHa=function(a){a&1&&(K(0,"cdk-virtual-scroll-viewport",0)(1,"table")(2,"tbody",1),E(3,dHa,13,18,"tr",2),U(4,"async"),L()()());if(a&2){a=P();I("itemSize",20);B(3);var b;I("cdkVirtualForOf",(b=W(4,3,a.streamsObservable))!=null?b:Jg(5,eHa))("cdkVirtualForTrackBy",a.trackByIndex)}},gHa=function(a,b){return a.stackingIndex!==
void 0&&b.stackingIndex!==void 0?b.stackingIndex-a.stackingIndex:a.pxValue!==void 0&&b.pxValue!==void 0?a.pxValue-b.pxValue:a.scaledValue?b.scaledValue?a.valueType===2||b.valueType===2?0:b.scaledValue-a.scaledValue:-1:1},iHa=function(a){a&1&&M(0,"div",5);a&2&&(a=P(),I("ngStyle",Kg(1,hHa,a.childHeight+"px")))},jHa=function(a){a&1&&(K(0,"span",4),S(1),L());a&2&&(a=P(),B(),Ag(a.placeholder))},kHa=function(a){a&1&&gg(0)},lHa=function(a){a&1&&(K(0,"span",11),S(1),L());a&2&&(a=P(2),B(),Ag(a.triggerValue))},
mHa=function(a){a&1&&(K(0,"span",5),F(1,kHa,1,0)(2,lHa,2,1,"span",11),L());a&2&&(a=P(),B(),G(a.customTrigger?1:2))},nHa=function(a){if(a&1){var b=t();K(0,"div",12,1);N("keydown",function(c){u(b);var d=P();return v(d._handleKeydown(c))});gg(2,1);L()}a&2&&(a=P(),zg(Gg("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",a._getPanelTheme())),yg("mat-select-panel-animations-enabled",!a._animationsDisabled),I("ngClass",a.panelClass),Jf("id",a.id+"-panel")("aria-multiselectable",a.multiple)("aria-label",
a.ariaLabel||null)("aria-labelledby",a._getPanelAriaLabelledby()))},oHa=function(a){a&1&&(K(0,"mat-option",10),$f(1,3),L());a&2&&(a=P(),I("value",a.TIMESHIFT_COLUMN_UNIQUE_ID),B(),ag(a.timeshiftName),qna(28))},pHa=function(a){a&1&&(Vf(0),K(1,"mat-option",10),$f(2,4),L(),Wf());a&2&&(a=P(),B(),I("value",a.labelsModel.selectableColumns==null?null:a.labelsModel.selectableColumns[0].uniqueId),B(),ag(a.labelsModel.selectableColumns==null?null:a.labelsModel.selectableColumns[0].title),qna(29))},qHa=function(a,
b){a&1&&(K(0,"mat-option",13),S(1),L());a&2&&(a=b.$implicit,b=P(2),I("value",a.uniqueId)("ve",b.ve.ChartLegendMenuItem)("veClick",!0),B(),T(" ",a.title," "))},rHa=function(a){a&1&&E(0,qHa,2,4,"mat-option",12);a&2&&(a=P(),I("ngForOf",a.labelsModel.selectableColumns))},Sl=function(a){var b=Yc.apply(1,arguments);if(a==null)throw TypeError("Lc");b=l(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c!=null)for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d]);return a},sHa=function(){var a=Tl.supportsDOMEvents;
return typeof a==="function"?a():a},uHa=function(a,b){a=a.filter(function(e){return!tHa[e]});if(a.length>0){var c=a.join(", ");try{var d=Tl.createElement("style");d.setAttribute("type","text/css");d.styleSheet||d.appendChild(document.createTextNode("/*\n  @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n  see http://bit.ly/2sd4HMP\n*/\n@media "+c+" {.fx-query-test{ }}"));b.head.appendChild(d);a.forEach(function(e){return tHa[e]=d})}catch(e){console.error(e)}}},
vHa=function(a){var b={};return a.filter(function(c){return b.hasOwnProperty(c)?!1:b[c]=!0})},wHa=function(a,b){return Sl(a,b?{mqAlias:b.alias,suffix:b.suffix}:{})},yHa=function(a){var b=l(xHa(a));a=b.next().value;b=b.next().value;b=b===void 0?null:b;return{display:"flex","box-sizing":"border-box","flex-direction":a,"flex-wrap":b?b:null}},xHa=function(a){a=a?a.toLowerCase():"";var b=l(a.split(" "));a=b.next().value;b=b.next().value;var c=a;zHa.find(function(d){return d===c})||(c=zHa[0]);return[c,
AHa(b)]},BHa=function(a){a=l(xHa(a));var b=a.next().value;a.next();return b.indexOf("row")>-1},AHa=function(a){if(a)switch(a.toLowerCase()){case "reverse":case "wrap-reverse":case "reverse-wrap":a="wrap-reverse";break;case "no":case "none":case "nowrap":a="nowrap";break;default:a="wrap"}return a},CHa=function(a){for(var b in a){var c=a[b]||"";switch(b){case "display":a.display=c==="flex"?["-webkit-flex","flex"]:c==="inline-flex"?["-webkit-inline-flex","inline-flex"]:c;break;case "align-items":case "align-self":case "align-content":case "flex":case "flex-basis":case "flex-flow":case "flex-grow":case "flex-shrink":case "flex-wrap":case "justify-content":a["-webkit-"+
b]=c;break;case "flex-direction":c=c||"row";a["-webkit-flex-direction"]=c;a["flex-direction"]=c;break;case "order":a.order=a["-webkit-"+b]=isNaN(c)?"0":c}}return a},DHa=function(){var a=Tl.supportsDOMEvents;return typeof a==="function"?a():a},FHa=function(a,b,c){var d=CHa(b);c.forEach(function(e){EHa(d,e,a)})},EHa=function(a,b,c){Object.keys(a).forEach(function(d){for(var e=l(Array.isArray(a[d])?a[d]:[a[d]]),f=e.next();!f.done;f=e.next())c.setStyle(b,d,f.value)})},GHa=function(a,b){var c=c===void 0?
!1:c;var d="";if(a&&DHa())try{var e=d=DHa()?a.style[b]:"";c||(d=e||getComputedStyle(a).getPropertyValue(b))}catch(f){}return d?d.trim():"block"},HHa=function(a){return a.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")},IHa=function(a){return(a.length>0?a.charAt(0):"").toUpperCase()+(a.length>1?a.slice(1):"")},LHa=function(){JHa.forEach(function(a){a.suffix&&a.suffix!==""||(a.suffix=a.alias.replace(KHa,"|").split("|").map(IHa).join(""),a.overlapping=a.overlapping||!1)});return JHa},NHa=function(a){a&
1&&M(0,"mat-icon",22);a&2&&(a=P(),I("ngClass",Kg(1,MHa,!(a.xAxisPinEnabled&&a.hoveredColumn===2&&(a.currentSortColumn.id!==2||(a.currentSortColumn.direction||0)===0)))))},OHa=function(a){a&1&&M(0,"mat-icon",23)},PHa=function(a){a&1&&M(0,"mat-icon",24)},QHa=function(a){a&1&&M(0,"mat-icon",28)},RHa=function(a){a&1&&M(0,"mat-icon",29)},UHa=function(a,b){if(a&1){var c=t();K(0,"span",27);N("click",function(){u(c);var d=P(2);SHa(d,"MAIN",1);THa(d);return v()});S(1);E(2,QHa,1,0,"mat-icon",17)(3,RHa,1,0,
"mat-icon",18);L()}a&2&&(a=b.$implicit,b=P(2),zg(Gg("sortable-column legend-table-cell ",a)),I("fxFlex",Fg(b.columnFlexWidth))("matTooltip",Fg(a)),Jf("aria-label",a),B(),T(" ",a," "),B(),I("ngIf",b.currentSortColumn.id===1&&(b.currentSortColumn.direction||0)>0),B(),I("ngIf",b.currentSortColumn.id===1&&(b.currentSortColumn.direction||0)<0))},VHa=function(a){a&1&&(K(0,"div",25),E(1,UHa,4,11,"span",26),L());a&2&&(a=P(),B(),I("ngForOf",a.columnKeys))},WHa=function(a){a&1&&M(0,"mat-icon",22);if(a&2){var b=
P().index;a=P(2);b=a.labelsModel.selectedColumns[b].uniqueId;I("ngClass",Kg(1,MHa,!(a.hoveredColumn===b&&(a.currentSortColumn.id!==10+b||(a.currentSortColumn.direction||0)===0))))}},XHa=function(a){a&1&&M(0,"mat-icon",28)},YHa=function(a){a&1&&M(0,"mat-icon",29)},cIa=function(a,b){if(a&1){var c=t();K(0,"div",31)(1,"button",32);N("mouseenter",function(){var e=u(c).index,f=P(2);f.hoveredColumn=f.labelsModel.selectedColumns[e].uniqueId;return v()})("mouseleave",function(){u(c);P(2).hoveredColumn=null;
return v()})("click",function(){var e=u(c).index,f=P(2);SHa(f,"LABEL",10+f.labelsModel.selectedColumns[e].uniqueId);THa(f);return v()});S(2);E(3,WHa,1,3,"mat-icon",5)(4,XHa,1,0,"mat-icon",17)(5,YHa,1,0,"mat-icon",18);L()()}if(a&2){a=b.$implicit;b=b.index;var d=P(2);zg(Gg("ac-legend-key sortable-column ",a.toLowerCase().replace(/[^\w]+/g,"-")," ac-a11y-keyboard-focusable ac-table-legend-label-header-container"));I("fxFlex",Gg("",d.labelsModel.labelPercents[b],"%"));Jf("aria-sort",ZHa(d,d.labelsModel.selectedColumns[b].uniqueId))("aria-colindex",
2+b);B();I("matTooltip",Fg(a))("ve",d.ve.ColumnSortButton)("veClick",!0);Jf("title",$Ha(d,d.labelsModel.selectedColumns[b].uniqueId))("aria-label",a);B();T(" ",a," ");B();I("ngIf",!(aIa(d,d.labelsModel.selectedColumns[b].uniqueId)||bIa(d,d.labelsModel.selectedColumns[b].uniqueId)));B();I("ngIf",aIa(d,d.labelsModel.selectedColumns[b].uniqueId));B();I("ngIf",bIa(d,d.labelsModel.selectedColumns[b].uniqueId))}},dIa=function(a){a&1&&(Vf(0),E(1,cIa,6,17,"div",30),Wf());a&2&&(a=P(),B(),I("ngForOf",a.labelsModel.labelHeaders))},
fIa=function(a){a&1&&(K(0,"span",33),S(1),L());a&2&&(a=P(),I("matTooltip",Fg(a.timeshiftName))("ngStyle",Lg(7,eIa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)",a.valueColumnWidth+"px"))("ngClass",a.scale>100?"leftmost-frozen":""),Jf("aria-colindex",a.getColIndexOffsetForTimeshift())("aria-label",a.timeshiftName),B(),T(" ",a.timeshiftName," "))},gIa=function(a){a&1&&(K(0,"span",34),S(1),L());a&2&&(a=P(),I("matTooltip",Fg(a.statsModeSummaryColumnLabel))("ngStyle",Lg(7,eIa,"translateX("+(-1*
a.widthDifference+a.scrollLeft)+"px)",a.valueColumnWidth+"px"))("ngClass",!a.timeshiftName&&a.scale>100?"leftmost-frozen":""),Jf("aria-colindex",a.getColIndexOffsetForStatsMode())("aria-label",a.statsModeSummaryColumnLabel),B(),T(" ",a.statsModeSummaryColumnLabel," "))},hIa=function(a){a&1&&M(0,"mat-icon",22);a&2&&(a=P(),I("ngClass",Kg(1,MHa,!(a.xAxisPinEnabled&&a.hoveredColumn===1E3&&(a.currentSortColumn.id!==1E3||(a.currentSortColumn.direction||0)===0)))))},iIa=function(a){a&1&&M(0,"mat-icon",28)},
jIa=function(a){a&1&&M(0,"mat-icon",29)},lIa=function(a){a&1&&M(0,"span",35);a&2&&(a=P(),I("ngStyle",Kg(1,kIa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)")))},mIa=function(a){a&1&&(K(0,"span",36)(1,"span",37),S(2),L()());a&2&&(a=P(),I("ngStyle",Kg(2,kIa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)")),B(2),T(" ",a.streamActionsMenuTooltip," "))},nIa=function(a){a&1&&(K(0,"div",18)(1,"span",19),S(2),L()());a&2&&(a=P(),B(),I("matTooltip",Fg(a.stream.name)),B(),T(" ",a.stream.name,
" "))},pIa=function(a,b){a&1&&(K(0,"span",20),S(1),L());if(a&2){a=b.$implicit;b=b.index;var c=P();I("fxFlex",Gg("",c.labelPercents[b],"%"))("matTooltip",Fg(a))("ngStyle",Jg(8,oIa));Jf("role",b===0?"rowheader":"cell")("aria-colindex",2+b);B();T(" ",a," ")}},rIa=function(a){a&1&&(K(0,"div",21),S(1),L());a&2&&(a=P(),I("matTooltip",Fg(a.stream.timeshiftValue))("ngStyle",Lg(6,qIa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)",a.valueColumnWidth+"px"))("ngClass",a.scale>100?"leftmost-frozen":""),
Jf("aria-colindex",a.getColIndexOffsetForTimeshift()),B(),T(" ",a.stream.timeshiftValue," "))},sIa=function(a){a&1&&(K(0,"div",22),S(1),L());a&2&&(a=P(),I("matTooltip",Fg(a.stream.statsModeSummaryValue))("ngStyle",Lg(6,qIa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)",a.valueColumnWidth+"px"))("ngClass",!a.timeshift&&a.scale>100?"leftmost-frozen":""),Jf("aria-colindex",a.getColIndexOffsetForStatsMode()),B(),T(" ",a.stream.statsModeSummaryValue," "))},uIa=function(a){a&1&&M(0,"div",23);a&
2&&(a=P(),I("ngStyle",Kg(1,tIa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)")))},vIa=function(a){a&1&&(K(0,"div",24)(1,"button",25),M(2,"mat-icon",26),L()());if(a&2){a=P();var b=Q(17);I("ngStyle",Kg(4,tIa,"translateX("+(-1*a.widthDifference+a.scrollLeft)+"px)"));B();I("matTooltip",a.streamActionsMenuTooltip)("matMenuTriggerFor",b);Jf("aria-label",a.streamActionsMenuTooltip)}},xIa=function(a){if(a&1){var b=t();K(0,"div",8)(1,"ac-table-legend-header",9,2);U(3,"async");N("sortFunc",function(c){u(b);
var d=P();d.sortFunc=c;d.update();return v()});L();K(4,"ac-column-selector",10);N("selectedColumnsChanged",function(){u(b);var c=P();c.labelsModel=Object.assign({},c.labelsModel);c.labelsModelSubject.next(c.labelsModel);c.selectedColumnsChanged();c.update();return v()});L()()}a&2&&(a=P(),B(),I("columnKeys",a.columnKeys)("labelsModel",W(3,15,a.labelsModelSubject))("valueName",a.valueName)("columnFlexWidth",a.columnKeys&&a.columnKeys.length&&100/a.columnKeys.length||0)("scrollLeft",a.scrollLeft)("widthDifference",
a.widthDifference)("scale",a.scale)("valueColumnWidth",wIa(a))("streamActions",a.streamActions)("defaultSortingColumn",a.defaultSortingColumn)("defaultSortingDirection",a.defaultSortingDirection)("timeshiftName",a.timeshiftName)("statsModeSummaryColumnLabel",a.statsModeSummaryColumnLabel),B(3),I("labelsModel",a.labelsModel)("valueName",a.valueName))},zIa=function(a,b){if(a&1){var c=t();K(0,"ac-table-legend-row",13);N("mouseenter",function(){var d=u(c).$implicit,e=P(2);return v(e.hover(d))})("mouseleave",
function(){var d=u(c).$implicit,e=P(2);return v(qFa(e,d))});L()}a&2&&(a=b.$implicit,b=P(2),I("stream",a)("labelPercents",b.labelsModel.labelPercents)("columnFlexWidth",b.columnKeys&&b.columnKeys.length&&100/b.columnKeys.length||0)("scrollLeft",b.scrollLeft)("scale",b.scale)("valueColumnWidth",wIa(b))("streamActions",b.streamActions)("widthDifference",b.widthDifference)("timeshift",!!b.timeshiftName)("showStatsModeSummaryColumn",!!b.statsModeSummaryColumnLabel),Jf("aria-rowindex",yIa(b,a)))},FIa=function(a){a&
1&&(K(0,"div",11),E(1,zIa,1,11,"ac-table-legend-row",12),L());a&2&&(a=P(),B(),I("ngForOf",a.viewPortStreams)("ngForTrackBy",a.trackByStreamName))},GIa=function(){return new Pc(3008,!1)},Ul=function(a){if(typeof a=="number")return a;a=a.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:HIa(parseFloat(a[1]),a[2])},HIa=function(a,b){switch(b){case "s":return a*1E3;default:return a}},JIa=function(a,b,c){if(a.hasOwnProperty("duration"))b=a;else a:{var d=0,e="";if(typeof a==="string"){var f=a.match(IIa);
if(f===null){b.push(new Pc(3E3,!1));b={duration:0,delay:0,easing:""};break a}a=HIa(parseFloat(f[1]),f[2]);var g=f[3];g!=null&&(d=HIa(parseFloat(g),f[4]));(f=f[5])&&(e=f)}c||(c=!1,f=b.length,a<0&&(b.push(new Pc(3100,!1)),c=!0),d<0&&(b.push(new Pc(3101,!1)),c=!0),c&&b.splice(f,0,new Pc(3E3,!1)));b={duration:a,delay:d,easing:e}}return b},KIa=function(a){return a.length?a[0]instanceof Map?a:a.map(function(b){return new Map(Object.entries(b))}):[]},Vl=function(a,b,c){b.forEach(function(d,e){var f=LIa(e);
c&&!c.has(e)&&c.set(e,a.style[f]);a.style[f]=d})},Wl=function(a,b){b.forEach(function(c,d){d=LIa(d);a.style[d]=""})},MIa=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},OIa=function(a,b,c){var d=b.params||{};a=NIa(a);a.length&&a.forEach(function(e){d.hasOwnProperty(e)||c.push(new Pc(3001,!1))})},NIa=function(a){var b=[];if(typeof a==="string"){for(var c;c=PIa.exec(a);)b.push(c[1]);PIa.lastIndex=0}return b},QIa=function(a,b,c){var d=""+a,e=d.replace(PIa,
function(f,g){g=b[g];g==null&&(c.push(new Pc(3003,!1)),g="");return g.toString()});return e==d?a:e},LIa=function(a){return a.replace(RIa,function(){return Yc.apply(0,arguments)[1].toUpperCase()})},TIa=function(a,b,c){if(c.size&&b.length){var d=b[0],e=[];c.forEach(function(g,k){d.has(k)||e.push(k);d.set(k,g)});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(g){return function(k){return g.kf$jscomp$1.set(k,SIa(a,k))}}(c))}}return b},Xl=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 Pc(3004,!1);
}},SIa=function(a,b){return window.getComputedStyle(a)[b]},Zl=function(a){switch(a.length){case 0:return new Yl;case 1:return a[0];default:return new UIa(a)}},WIa=function(a,b,c){b=b===void 0?new Map:b;c=c===void 0?new Map:c;var d=[],e=[],f=-1,g=null;a.forEach(function(k){var m=k.get("offset"),r=m==f,w=r&&g||new Map;k.forEach(function(x,D){var H=D;if(D!=="offset")switch(H=LIa(H),x){case "!":x=b.get(D);break;case "*":x=c.get(D);break;default:x=VIa(H,x,d)}w.set(H,x)});r||e.push(w);g=w;f=m});if(d.length)throw new Pc(3502,
!1);return e},YIa=function(a,b,c,d){switch(b){case "start":a.onStart(function(){return d(c&&XIa(c,"start",a))});break;case "done":a.onDone(function(){return d(c&&XIa(c,"done",a))});break;case "destroy":a.onDestroy(function(){return d(c&&XIa(c,"destroy",a))})}},XIa=function(a,b,c){var d=c.totalTime;b=ZIa(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},ZIa=function(a,b,c,d,e,f,g){return{element:a,triggerName:b,
fromState:c,toState:d,phaseName:e===void 0?"":e,totalTime:f===void 0?0:f,disabled:!!g}},$l=function(a,b,c){var d=a.get(b);d||a.set(b,d=c);return d},$Ia=function(a){var b=a.indexOf(":");return[a.substring(1,b),a.slice(b+1)]},bJa=function(a){a=a.parentNode||a.host||null;return a===aJa?null:a},cJa=function(a,b){for(;b;){if(b===a)return!0;b=bJa(b)}return!1},fJa=function(a,b){var c=[];typeof a=="string"?a.split(/\s*,\s*/).forEach(function(d){a:{if(d[0]==":"&&(d=dJa(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 Pc(3015,!1)),d=c;else{d=e[1];var f=e[2];e=e[3];c.push(eJa(d,e));f[0]!="<"||d=="*"&&e=="*"||c.push(eJa(e,d));d=void 0}}return d}):c.push(a);return c},dJa=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 Pc(3016,
!1)),"* => *"}},eJa=function(a,b){var c=gJa.has(a)||hJa.has(a),d=gJa.has(b)||hJa.has(b);return function(e,f){var g=a=="*"||a==e,k=b=="*"||b==f;!g&&c&&typeof e==="boolean"&&(g=e?gJa.has(a):hJa.has(a));!k&&d&&typeof f==="boolean"&&(k=f?gJa.has(b):hJa.has(b));return g&&k}},jJa=function(a){var b=a.split(/\s*,\s*/).find(function(c){return c==":self"})?!0:!1;b&&(a=a.replace(iJa,""));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]},kJa=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},lJa=function(a,b){if(a.hasOwnProperty("duration"))return a;if(typeof a=="number")return{duration:JIa(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=JIa(a,b);return{duration:a.duration,delay:a.delay,easing:a.easing}},am=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},mJa=function(a,b,c,d,e,f,g,k){return{type:1,element:a,keyframes:b,preStyleProps:c,postStyleProps:d,duration:e,delay:f,totalTime:e+f,easing:g===void 0?null:g,subTimeline:k===void 0?!1:k}},oJa=function(a,b,c,d,e,f,g,k,m,r){f=
f===void 0?new Map:f;g=g===void 0?new Map:g;r=r===void 0?[]:r;return(new nJa).buildKeyframes(a,b,c,d,e,f,g,k,m,r)},pJa=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 g=l(f.value);f=g.next().value;g=g.next().value;c.set(f,g)}});return c},qJa=function(a,b,c,d,e,f,g,k,m,r,w,x,D){return{type:0,element:a,triggerName:b,isRemovalTransition:e,fromState:c,
fromStyles:f,toState:d,toStyles:g,timelines:k,queriedElements:m,preStyleProps:r,postStyleProps:w,totalTime:x,errors:D}},rJa=function(a,b,c,d,e){return a.some(function(f){return f(b,c,d,e)})},sJa=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},uJa=function(a,b){return new tJa(a,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(){return!0}],options:null,queryCount:0,depCount:0},
b)},vJa=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))},wJa=function(a){return a&&a.nodeType===1},xJa=function(a,b){var c=a.style.display;a.style.display=b!=null?b:"none";return c},zJa=function(a,b,c){var d=[];b.forEach(function(g){return d.push(xJa(g))});var e=[];c.forEach(function(g,k){var m=new Map;g.forEach(function(r){var w=SIa(k,r);m.set(r,w);w&&w.length!=0||(k.__ng_removed=yJa,e.push(k))});a.set(k,m)});var f=0;b.forEach(function(g){return xJa(g,d[f++])});return e},
AJa=function(a,b){function c(g){if(!g)return 1;var k=f.get(g);if(k)return k;var m=g.parentNode;d.has(m)?k=m:e.has(m)?k=1:k=c(m);f.set(g,k);return k}var d=new Map;a.forEach(function(g){return d.set(g,[])});if(b.length==0)return d;var e=new Set(b),f=new Map;b.forEach(function(g){var k=c(g);k!==1&&d.get(k).push(g)});return d},bm=function(a,b){var c;(c=a.classList)==null||c.add(b)},cm=function(a,b){var c;(c=a.classList)==null||c.remove(b)},CJa=function(a,b,c){Zl(c).onDone(function(){return BJa(a,b)})},
EJa=function(a){var b=[];DJa(a,b);return b},DJa=function(a,b){for(var c=0;c<a.length;c++){var d=a[c];d instanceof UIa?DJa(d.players,b):b.push(d)}},FJa=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},GJa=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},JJa=function(a,b){var c=null,d=null;
Array.isArray(b)&&b.length?(c=HJa(b[0]),b.length>1&&(d=HJa(b[b.length-1]))):b instanceof Map&&(c=HJa(b));return c||d?new IJa(a,c,d):null},HJa=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},KJa=function(a){switch(a){case "body":return document.body;case "document":return document;case "window":return window;default:return a}},LJa=function(a){var b=a.indexOf(".");return[a.substring(0,b),a.slice(b+1)]},MJa=function(a,b){var c=function(){var d=
a.apply(this,[].concat(n(Yc.apply(0,arguments))))||this;d.defaultColor=b;d.color=b;return d};Z(c,a);da.Object.defineProperties(c.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this._color},set:function(d){d=d||this.defaultColor;d!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),d&&this._elementRef.nativeElement.classList.add("mat-"+d),this._color=d)}}});return c},NJa=function(a){var b=function(){var c=a.apply(this,[].concat(n(Yc.apply(0,
arguments))))||this;c._disableRipple=!1;return c};Z(b,a);da.Object.defineProperties(b.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(c){this._disableRipple=Sh(c)}}});return b},OJa=function(a){var b=function(){var c=a.apply(this,[].concat(n(Yc.apply(0,arguments))))||this;c._disabled=!1;return c};Z(b,a);da.Object.defineProperties(b.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(c){this._disabled=
Sh(c)}}});return b},PJa=function(){return{diameter:100}},QJa=function(a){a&1&&(yd(),M(0,"circle",4));if(a&2){a=P();var b=Q(1);xg("animation-name","mat-progress-spinner-stroke-rotate-"+a._spinnerAnimationLabel)("stroke-dashoffset",a._getStrokeDashOffset(),"px")("stroke-dasharray",a._getStrokeCircumference(),"px")("stroke-width",a._getCircleStrokeWidth(),"%")("transform-origin",a._getCircleTransformOrigin(b));Jf("r",a._getCircleRadius())}},RJa=function(a){a&1&&(yd(),M(0,"circle",4));if(a&2){a=P();var b=
Q(1);xg("stroke-dashoffset",a._getStrokeDashOffset(),"px")("stroke-dasharray",a._getStrokeCircumference(),"px")("stroke-width",a._getCircleStrokeWidth(),"%")("transform-origin",a._getCircleTransformOrigin(b));Jf("r",a._getCircleRadius())}},SJa=function(a){a&1&&(Vf(0),M(1,"mat-icon",1),Wf());a&2&&(a=P(2),B(),I("svgIcon",Coa("",a.iconSpec.iconset,"-",a.iconSpec.size,":",a.iconSpec.icon)))},TJa=function(a){a&1&&(Vf(0),K(1,"mat-icon"),S(2),L(),Wf());a&2&&(a=P(2),B(2),Ag(a.iconSpec.icon))},UJa=function(a){a&
1&&(Vf(0),M(1,"mat-spinner",2),Wf());a&2&&(a=P(2),B(),I("diameter",a.iconSpec.sizePx)("strokeWidth",a.iconSpec.sizePx/10))},VJa=function(a){a&1&&(Vf(0),E(1,SJa,2,4,"ng-container",0)(2,TJa,3,1,"ng-container",0)(3,UJa,2,2,"ng-container",0),Wf());a&2&&(a=P(),B(),I("ngIf",a.iconSpec.kind==="mat-icon"),B(),I("ngIf",a.iconSpec.kind==="mat-icon-font"),B(),I("ngIf",a.iconSpec.kind==="mat-spinner"))},WJa=function(a){switch(a){case "large":return 32;case "medium":return 24;case "small":return 18;default:sb(a)}},
XJa=function(a){a&1&&(yd(),K(0,"svg",11),M(1,"circle",12),L());a&2&&(a=P(),Jf("viewBox",a._viewBox()),B(),xg("stroke-dasharray",a._strokeCircumference(),"px")("stroke-dashoffset",a._strokeCircumference()/2,"px")("stroke-width",a._circleStrokeWidth(),"%"),Jf("r",a._circleRadius()))},ZJa=function(a){a.id||(a.id="ace-labelledby-message-goog_"+YJa++)},bKa=function(a,b){var c=$Ja(a);c.some(function(d){return d.trim()===b.trim()})||(c.length===0&&(ZJa(a),c.push(a.id.trim())),c.push(b.trim()),aKa(a,"aria-labelledby",
c.join(" ")))},cKa=function(a,b){var c=$Ja(a).filter(function(d){return d!==b.trim()});c.length===1&&c[0]===a.id?a.removeAttribute("aria-labelledby"):aKa(a,"aria-labelledby",c.join(" "))},$Ja=function(a){return(a.getAttribute("aria-labelledby")||"").match(/\S+/g)||[]},eKa=function(a){if(a&1){var b=t();K(0,"button",3);N("click",function(){u(b);var c=P();return v(dKa(c))});S(1);L()}a&2&&(a=P(),Jf("aria-label",a.action.ariaLabel),B(),T(" ",a.action.label," "))},fKa=function(a){if(a&1){var b=t();K(0,
"a",3);N("click",function(){u(b);var c=P();return v(dKa(c))});S(1);L()}a&2&&(a=P(),Jf("href",a.action.href,Me)("target",a.action.target||null)("aria-label",a.action.ariaLabel),B(),T(" ",a.action.label," "))},gKa=function(a){a&1&&(K(0,"button",4),M(1,"ace-icon",5),L())},hKa=function(a){a&1&&M(0,"ace-tooltip-action",7);a&2&&(a=P(2),I("action",a.tooltipRef.aceTooltipAction))},iKa=function(a){a&1&&(Vf(0),S(1),E(2,hKa,1,1,"ace-tooltip-action",6),Wf());a&2&&(a=P(),B(),T(" ",a.tooltipRef.content," "),B(),
I("ngIf",a.tooltipRef.aceTooltipAction))},jKa=function(a){a&1&&M(0,"ace-tooltip-action",7);a&2&&(a=P(2),I("action",a.tooltipRef.aceTooltipAction))},kKa=function(a){a&1&&(Vf(0),M(1,"span",8),E(2,jKa,1,1,"ace-tooltip-action",6),Wf());a&2&&(a=P(),B(),I("innerHTML",a.tooltipRef.content.html,Le),B(),I("ngIf",a.tooltipRef.aceTooltipAction))},lKa=function(a){a&1&&Xf(0)},mKa=function(a){a&1&&(Vf(0),E(1,lKa,1,0,"ng-container",9),Wf());a&2&&(P(),a=Q(6),B(),I("ngTemplateOutlet",a))},nKa=function(a){a&1&&Xf(0)},
oKa=function(a){a&1&&E(0,nKa,1,0,"ng-container",10);a&2&&(a=P(),I("ngTemplateOutlet",a.tooltipRef.content)("ngTemplateOutletContext",a.tooltipRef.aceTooltipTemplateData))},pKa=function(a,b){a&&b(a)&&pKa(a.parentNode,b)},qKa=function(a){var b=void 0;pKa(a,function(c){return c.classList&&c.classList.contains("cfc-remove-from-tab-order")?(b=c,!1):!0});return b},rKa=function(a){var b;(b=!a.offsetParent||a.disabled)||(b=!!qKa(a));return b?!1:(a=a.attributes.getNamedItem("tabindex"))&&Number(a.value)===
-1?!1:!0},xKa=function(a,b){var c=sKa++,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,tKa[uKa].push(d));vKa||(vKa=!0,window.requestAnimationFrame(wKa))}},wKa=function(){vKa=!1;var a=
tKa[uKa],b=a.length;uKa=(uKa+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},yKa=function(a,b,c,d){var e=d.top,f=d.top+3,g=new Path2D;g.rect(b,e,c-b,d.bottom-e);var k=new Path2D,m=Math.max(b,d.left),r=!1;b<d.left&&c-b>=4?(m=c-b>=12?d.left+8:Math.max(c-4,d.left),r=!0,k.moveTo(m,e+1.5),k.lineTo(m+1.5,e)):k.moveTo(m,e);var w=Math.min(c,
d.right),x=!1;c>d.right?c>d.right&&c-b>=4&&(w=d.right-c>=12?d.right-8:Math.min(c,d.right-4),x=!0,k.lineTo(w-1.5,e),k.lineTo(w,e+1.5),k.lineTo(w-1.5,f)):(k.lineTo(w,e),k.lineTo(w,f));r?k.lineTo(m+1.5,f):k.lineTo(m,f);k.closePath();b=new Path2D;b.rect(d.left,0,d.right-d.left,d.bottom);a.save();a.clip(b);a.globalCompositeOperation="source-over";a.globalAlpha=.1;a.fill(g);a.restore();a.save();a.globalAlpha=.25;a.fill(k);a.restore();r&&(g=new Path2D,g.moveTo(m-1,e+1.5),g.lineTo(d.left,e+1.5),a.save(),
a.clip(b),a.globalAlpha=.25,a.setLineDash([1,1]),a.lineWidth=3,a.stroke(g),a.restore());x&&(m=new Path2D,m.moveTo(w+1,e+1.5),m.lineTo(d.right,e+1.5),a.save(),a.clip(b),a.globalAlpha=.25,a.setLineDash([1,1]),a.lineWidth=3,a.stroke(m),a.restore())},zKa=function(a,b,c,d){var e=d.top,f=d.top+3,g=new Path2D;g.rect(Math.max(b,d.left),e,Math.min(2,c-b),d.bottom-e);var k=new Path2D;k.rect(Math.min(c-2,d.right-2),e,Math.min(2,c-b),d.bottom-e);var m=new Path2D;b=Math.max(b,d.left);m.rect(b,e,Math.min(c,d.right)-
b,f-e);(new Path2D).rect(d.left,0,d.right-d.left,d.bottom);a.save();a.globalAlpha=1;a.fill(m);a.fill(g);a.fill(k);a.restore()},AKa=function(a,b,c,d,e){var f=e.top-7,g=e.top,k=new Path2D;k.moveTo(c+2,f);k.lineTo(d-2,f);k.arcTo(d,f,d,f+2,2);k.lineTo(d,e.bottom);k.lineTo(c,e.bottom);k.lineTo(c,f+2);k.arcTo(c,f,c+2,f,2);k.closePath();var m=new Path2D;m.moveTo(c-1,e.bottom);m.lineTo(c-1,f+2);m.arcTo(c-1,f-1,c+2,f-1,3);m.lineTo(d-2,f-1);m.arcTo(d+1,f-1,d+1,f+2,3);m.lineTo(d+1,e.bottom);var r=new Path2D;
c<e.left?r.moveTo(e.left,f):r.moveTo(c+2,f);if(d>e.right){var w=e.right;c+7+2>e.right&&(w=Math.max(e.right,c+7));r.lineTo(w,f);r.lineTo(w+3,(g+f)/2);r.lineTo(w,g)}else c+7>d?(w=c+7,r.lineTo(w-2,f),r.arcTo(w,f,w,f+2,2)):(r.lineTo(d-2,f),r.arcTo(d,f,d,f+2,2),r.lineTo(d,g));c<e.left?(r.lineTo(e.left,g),r.lineTo(e.left-3,(g+f)/2),r.lineTo(e.left,f)):(c+7+2>e.right||c+7>d||c+7+2>d?(w=d,c+7>d&&(w=c+7),c+7+2>e.right&&(w=Math.max(e.right,c+7)),d<=w&&d>w-1?r.lineTo(w,g+7):(r.lineTo(w,g+7-4),r.arcTo(w,g+7,
w-2,g+7,2))):(r.lineTo(c+7+2,g),r.arcTo(c+7,g,c+7,g+2,2),r.lineTo(c+7,g+7-4),r.arcTo(c+7,g+7,c+7-2,g+7,2)),r.lineTo(c,g+7),r.lineTo(c,f+2),r.arcTo(c,f,c+2,f,2));r.closePath();c=new Path2D;c.rect(e.left,0,e.right-e.left,e.bottom);a.save();a.clip(c);a.globalCompositeOperation="destination-out";a.fill(k);a.globalCompositeOperation="source-over";a.globalAlpha=.1;a.fill(k);a.restore();a.save();a.clip(c);a.strokeStyle=jl("var(--ac-sys-color-annotation-surface, #FFF)",b);a.globalCompositeOperation="destination-out";
a.lineWidth=2;a.stroke(m);a.restore();a.save();a.fill(r);a.restore()},BKa=function(a,b,c,d){a.save();var e=d.top-7,f=d.top,g=c+18,k=new Path2D;k.moveTo(c,d.bottom);k.lineTo(c,e+2);k.arcTo(c,e,c+2,e,2);if(g>d.right){var m=c+7;k.lineTo(m-2,e);k.arcTo(m,e,m,e+2,2)}else k.lineTo(g-2,e),k.arcTo(g,e,g,e+2,2),k.lineTo(g,f-2),k.arcTo(g,f,g-2,f,2),k.lineTo(c+7+2,f),k.arcTo(c+7,f,c+7,f+2,2);k.lineTo(c+7,f+7-2);k.arcTo(c+7,f+7,c+7-2,f+7,2);k.lineTo(c+1+2,f+7);k.arcTo(c+1,f+7,c+1,f+7+2,2);k.lineTo(c+1,d.bottom);
k.lineTo(c,d.bottom);k.closePath();m=new Path2D;m.moveTo(c-1,d.bottom);m.lineTo(c-1,e+2);m.arcTo(c-1,e-1,c+2,e-1,3);g>d.right?(g=c+7,m.lineTo(g-2,e-1),m.arcTo(g+1,e-1,g+1,e+2,3)):(m.lineTo(g-2,e-1),m.arcTo(g+1,e-1,g+1,e+2,3),m.lineTo(g+1,f-2),m.arcTo(g+1,f+1,g-2,f+1,3),m.lineTo(c+7+2,f+1),m.arcTo(c+7,f+1,c+7+1,f+2,1));m.lineTo(c+7+1,f+7-2);m.arcTo(c+7+1,f+7+1,c+7-2,f+7+1,3);m.lineTo(c+1+2,f+7+1);m.arcTo(c+1+1,f+7+1,c+1+1,f+7+2,1);m.lineTo(c+1+1,d.bottom);a.strokeStyle=jl("var(--ac-sys-color-annotation-surface, #FFF)",
b);a.lineWidth=2;a.stroke(m);a.fill(k);a.restore()},CKa=function(a,b,c,d){d=d===void 0?.375:d;var e=new Path2D;e.moveTo(b,c.top);e.lineTo(b,c.bottom);b=new Path2D;b.rect(c.left,0,c.right-c.left,c.bottom);a.save();a.clip(b);a.globalCompositeOperation="source-over";a.globalAlpha=d;a.setLineDash([4,4]);a.stroke(e);a.restore()},DKa=function(a,b,c,d,e,f){var g=e.size;e=l(e);for(var k=e.next();!k.done;k=e.next()){var m=1-Math.pow(1-f,1/g);a.strokeStyle=jl(k.value,b);CKa(a,c,d,m)}},EKa=function(a,b,c){var d=
new Path2D;d.moveTo(b,c.top);d.lineTo(b,c.bottom);b=new Path2D;b.rect(c.left,0,c.right-c.left,c.bottom);a.save();a.clip(b);a.globalCompositeOperation="source-over";a.globalAlpha=1;a.lineWidth=2;a.stroke(d);a.restore()},FKa=function(a,b){return a===null?0:8+(b===void 0?0:b)+18+8*(a.icons.length-1)+.6*12*(Math.floor(Math.log10(a.annotationIds.length))+1)},GKa=function(a,b,c){a=a.currentValue;var d,e=a==null?void 0:(d=a.data)==null?void 0:d.sort(function(D,H){return D.start-H.start});a=a==null?void 0:
a.state;if(e==null||!e.length||!a)return[];d=[];var f=null;e=l(e);for(var g=e.next(),k={};!g.done;k={style$jscomp$46:void 0},g=e.next()){g=g.value;var m=a.domainMap(g.start),r=void 0,w=(r=g.end&&a.domainMap(g.end))!=null?r:null;k.style$jscomp$46=b.getStyle(g.style);m!==null&&m<a.bodyLeft&&(w!==null&&w>a.bodyLeft||g.isOngoing)&&(m=a.bodyLeft);if(!(m===null||m<a.bodyLeft||m>a.bodyRight)){r=FKa(f,8);var x=m+(w&&w-m<24?(w-m-24+4)/2:0);w!==null||g.isOngoing||(x=Math.max(4,m-9));if(f&&x<=f.iconLeft+r){f.icons.filter(function(D){return function(H){return H.icon===
D.style$jscomp$46.icon&&H.color===D.style$jscomp$46.color}}(k)).length||f.icons.push({styleId:k.style$jscomp$46.style,icon:k.style$jscomp$46.icon,color:k.style$jscomp$46.color});f.annotationIds.push(g.annotationId);g.annotationContent&&f.annotationContents.push(g.annotationContent);if(w!==null||g.isOngoing)f.hasDuration=!0;f.hasDuration?f.iconLeft=f.bodyLeft-4:(r=FKa(f),f.bodyCenter+=(m-f.bodyCenter)/f.annotationIds.length,f.iconLeft=Math.max(4,f.bodyCenter-r/2))}else f&&(f.estimatedButtonWidth=FKa(f,
8),d.push(f)),f={icons:[{styleId:k.style$jscomp$46.style,icon:k.style$jscomp$46.icon,color:k.style$jscomp$46.color}],top:0,iconLeft:x-4,bodyLeft:m,bodyCenter:w!==null?w-m:m,estimatedButtonWidth:0,hasDuration:w!==null,annotationIds:[g.annotationId],annotationContents:g.annotationContent?[g.annotationContent]:[]}}}f&&(f.estimatedButtonWidth=FKa(f,8),d.push(f));if(c!==void 0)for(b=l(d),a=b.next();!a.done;a=b.next())a.value.icons.sort(function(D,H){D=c.get(D.icon);H=c.get(H.icon);return D===H?0:D?H?D>
H?-1:1:-1:1});return d},HKa=function(a){return a===null?0:28+8*(a.icons.length-1)+.6*12*(Math.floor(Math.log10(a.annotationIds.length))+1)},IKa=function(a,b){a=a.currentValue;var c,d=a==null?void 0:(c=a.data)==null?void 0:c.sort(function(x,D){return x.start-D.start});c=a==null?void 0:a.state;if(d==null||!d.length||!c)return[];a=[];var e=null;d=l(d);for(var f=d.next(),g={};!f.done;g={style$jscomp$47:void 0},f=d.next()){f=f.value;var k=c.domainMap(f.start),m=void 0,r=(m=f.end&&c.domainMap(f.end))!=
null?m:null;g.style$jscomp$47=b.getStyle(f.style);k!==null&&k<c.bodyLeft&&(r!==null&&r>c.bodyLeft||f.isOngoing)&&(k=c.bodyLeft);if(!(k===null||k<c.bodyLeft||k>c.bodyRight)){m=HKa(e);var w=k;e&&w<=e.iconLeft+m?(e.icons.filter(function(x){return function(D){return D.icon===x.style$jscomp$47.icon&&D.color===x.style$jscomp$47.color}}(g)).length||e.icons.push({styleId:g.style$jscomp$47.style,icon:g.style$jscomp$47.icon,color:g.style$jscomp$47.color}),e.annotationIds.push(f.annotationId),f.annotationContent&&
e.annotationContents.push(f.annotationContent)):(e&&(e.estimatedButtonWidth=HKa(e),a.push(e)),e={icons:[{styleId:g.style$jscomp$47.style,icon:g.style$jscomp$47.icon,color:g.style$jscomp$47.color}],top:0,iconLeft:w-3,bodyLeft:k,bodyCenter:k,estimatedButtonWidth:0,hasDuration:r!==null,annotationIds:[f.annotationId],annotationContents:f.annotationContent?[f.annotationContent]:[]})}}e&&(e.estimatedButtonWidth=HKa(e),a.push(e));return a},JKa=function(a){a&1&&(K(0,"span",9),S(1),L());a&2&&(a=P().$implicit,
B(),T(" ",a.annotationIds.length," "))},LKa=function(a,b){a&1&&(Vf(0),K(1,"i",10),yd(),K(2,"svg",11),M(3,"path",12)(4,"path",13),L()(),Wf());if(a&2){a=b.$implicit;b=b.index;var c=P().$implicit,d=P();B();I("ngStyle",Lg(4,KKa,a.color,(c.icons.length-1-b)*d.groupedIconOffset+"px"));B(2);Jf("stroke",d.iconStrokeColor)("d",d.annotationStyleService.getIcon(a.icon));B();Jf("d",d.annotationStyleService.getIcon(a.icon))}},MKa=function(a){a&1&&(K(0,"span",9),S(1),L());a&2&&(a=P().$implicit,B(),T(" ",a.annotationIds.length,
" "))},SKa=function(a,b){if(a&1){var c=t();K(0,"button",4);N("click",function(){var e=u(c).$implicit,f=P();return v(NKa(f,e))})("mouseenter",function(){var e=u(c).$implicit,f=P();return v(OKa(f,e))})("mouseleave",function(){u(c);P().highlightedAnnotation=null;return v()});K(1,"div",5);E(2,JKa,2,1,"span",6);K(3,"div",7);E(4,LKa,5,7,"ng-container",8);L();E(5,MKa,2,1,"span",6);L()()}if(a&2){a=b.$implicit;b=P();var d=Q(3);yg("annotation-cluster-button",!b.newVisuals)("new-annotation-cluster-button",b.newVisuals);
I("ngStyle",Lg(15,PKa,a.iconLeft+"px",a.top+"px"))("aceTooltip",d)("aceTooltipTemplateData",Kg(18,QKa,a))("aceTooltipInteractive",!0)("aceTooltipPosition",b.tooltipPosition)("ve",b.ve.AnnotationButton)("veClick",!0);B(2);I("ngIf",b.newVisuals&&a.annotationIds.length>1);B();I("ngStyle",Kg(20,RKa,b.iconSize+(a.icons.length-1)*b.groupedIconOffset+"px"));B();I("ngForOf",a.icons.slice().reverse());B();I("ngIf",!b.newVisuals&&a.annotationIds.length>1)}},TKa=function(a){a&1&&(Vf(0),K(1,"div"),S(2),L(),Wf());
a&2&&(a=P().$implicit,B(2),Ag(a))},UKa=function(a){a&1&&Xf(0)},VKa=function(a){a&1&&(Vf(0),E(1,UKa,1,0,"ng-container",19),Wf());if(a&2){var b=P();a=b.$implicit;b=b.index;var c=P(2).$implicit;B();I("ngTemplateOutlet",a)("ngTemplateOutletContext",Kg(2,QKa,c.annotationIds[b]))}},WKa=function(a){a&1&&(Vf(0),M(1,"div",20),Wf());a&2&&(a=P().$implicit,B(),I("innerHTML",a.toString(),Le))},XKa=function(a){a&1&&(Vf(0),S(1),Wf());a&2&&(a=P().$implicit,B(),T(" ",a," "))},YKa=function(a,b){if(a&1){var c=t();Vf(0);
K(1,"div",15);N("mouseover",function(){var d=u(c).index,e=P(2).$implicit,f=P();return v(OKa(f,e,d))})("mouseout",function(){u(c);P(3).highlightedAnnotation=null;return v()});Vf(2,16);E(3,TKa,3,1,"ng-container",17)(4,VKa,2,4,"ng-container",17)(5,WKa,2,1,"ng-container",17)(6,XKa,2,1,"ng-container",18);Wf();L();Wf()}a&2&&(a=b.$implicit,P(3),B(2),I("ngSwitch",a instanceof hg?"TemplateRef":typeof a),B(),I("ngSwitchCase","string"),B(),I("ngSwitchCase","TemplateRef"),B(),I("ngSwitchCase","Object"))},ZKa=
function(a){a&1&&Xf(0)},$Ka=function(a){a&1&&E(0,ZKa,1,0,"ng-container",19);if(a&2){a=P(2).$implicit;var b=P();I("ngTemplateOutlet",b.clusterActionTemplate)("ngTemplateOutletContext",Kg(2,QKa,a.annotationIds))}},aLa=function(a){a&1&&(Vf(0),E(1,YKa,7,4,"ng-container",8),F(2,$Ka,1,4,"ng-container"),Wf());if(a&2){a=P().$implicit;var b=P();B();I("ngForOf",a.annotationContents);B();G(b.clusterActionTemplate?2:-1)}},bLa=function(a){a&1&&Xf(0)},cLa=function(a){a&1&&(Vf(0),E(1,bLa,1,0,"ng-container",19),
Wf());if(a&2){a=P(2).$implicit;var b=P();B();I("ngTemplateOutlet",b.tooltipContentTemplate)("ngTemplateOutletContext",Kg(2,QKa,a.annotationIds))}},dLa=function(a){a&1&&E(0,cLa,2,4,"ng-container",14);if(a&2){a=P(2);var b=Q(5);I("ngIf",a.tooltipContentTemplate)("ngIfElse",b)}},eLa=function(a,b){a&1&&E(0,aLa,3,2,"ng-container",14)(1,dLa,1,2,"ng-template",null,2,Og);a&2&&(a=b.$implicit,b=Q(2),I("ngIf",(a.annotationContents==null?null:a.annotationContents.length)>0)("ngIfElse",b))},fLa=function(a){a&1&&
gg(0)},gLa=function(a,b){var c=0,d=0,e=a.data;b=b.data;for(var f=[],g=e.length>1&&e[e.length-1].x.valueOf()-e[0].x.valueOf()>0;c<e.length||d<b.length;){var k=e[c],m=b[d];k&&!m?(f.push(Object.assign({},k,{y0:k.y,y1:k.y})),c++):!k&&m?(f.push(Object.assign({},m,{y0:m.y,y1:m.y})),d++):k&&m&&(k.x.valueOf()===m.x.valueOf()?(f.push(Object.assign({},k,{y0:Math.min(k.y,m.y),y1:Math.max(k.y,m.y)})),c++,d++):g&&k.x.valueOf()<m.x.valueOf()||!g&&k.x.valueOf()>m.x.valueOf()?(f.push(Object.assign({},k,{y0:k.y,y1:k.y})),
c++):(f.push(Object.assign({},m,{y0:m.y,y1:m.y})),d++))}return Object.assign({},a,{data:f})},hLa=function(a){var b=a.data.map(function(c){return Object.assign({},c,{y:0})});return Object.assign({},a,{data:b})},dm=function(a,b,c){return c===Infinity?!1:Math.abs(b.x.valueOf()-a.x.valueOf())>c*2},iLa=function(a,b,c){return c===Infinity||!a.tileDomain||!b.tileDomain||a.tileDomain[0]===b.tileDomain[0]&&a.tileDomain[1]===b.tileDomain[1]?!1:Math.min(Math.abs(b.tileDomain[0]-a.tileDomain[1]),Math.abs(a.tileDomain[0]-
b.tileDomain[1]))>c*2},jLa=function(a,b,c){b=b===void 0?Infinity:b;c=c===void 0?dm:c;return a.reduceRight(function(d,e){var f=l(d).next().value,g=l(f).next().value;g&&c(g,e,b)?d.unshift([e]):f.unshift(e);return d},[[]])},kLa=function(a,b){var c=Math.min(16.8,a.width*.5);return{x:a.left+a.width/2,y:a.top+a.height/2,shapeWidth:c,shapeHeight:c,scalingFactor:b?c/b.width:1}},lLa=function(a,b,c){c=c===void 0?0:c;for(var d=0,e=a.length-1,f=null;d<=e;){var g=Math.floor((e+d)/2),k=a[g],m=k.left,r=k.top,w=
k.height,x=k.width;k=Math.ceil(c*x);x=m+x+k;if(b.x>=m-k)if(b.x<x)if(b.y>=r)if(b.y<r+w){f=a[g];break}else d=g+1;else e=g-1;else d=g+1;else e=g-1}return f},mLa=function(a){return Nba(a.reverse().map(function(b){b=l(b);b.next();return b.next().value}).flat(),function(b){return b.height===0?void 0:b.metadata.point.x.valueOf()})},nLa=function(a,b){b=b===void 0?0:b;a=l(a.values());for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=0;d<c.length;d++){var e=c[d],f=c[d-1];d===0?(f=e.height,e.height=
Math.max(1,e.height-b/2),e.top+=f-e.height):(e.height=Math.max(1,e.height-b),e.top=f.top-b-e.height)}}},qLa=function(a,b){b=b===void 0?!0:b;var c=oLa(),d=[].concat(n(a.series)).reverse();b=(b?pLa(d):d).map(function(e){var f=e.data.map(c),g,k=(g=e.shiftedData)==null?void 0:g.map(c);return Object.assign({},e,{shiftedData:k,data:f})});b.reverse();return Object.assign({},a,{series:b})},oLa=function(){var a=new Map,b=new Map;return function(c){var d=c.y,e=c.x.valueOf(),f=d>=0?a:b,g,k=(g=f.get(e))!=null?
g:0;d=k+d;f.set(e,d);return Object.assign({},c,{y0:k,y1:d})}},pLa=function(a){var b=rLa(a),c=sLa(b);return a.map(function(d){var e=Object.assign({},d);var f=d.data;d=d.shiftedData;e=(delete e.data,delete e.shiftedData,e);f=f.length===0||f[0].x<f[f.length-1].x?f:[].concat(n(f)).reverse();f=tLa(f,b);d=d&&tLa(d,b);f=f.flatMap(c);var g;d=(g=d)==null?void 0:g.flatMap(c);return Object.assign({},e,{data:f,shiftedData:d})})},tLa=function(a,b){if(!b.length)return a;var c=b[0];b=b[b.length-1];if(a.length===
0)return[c,b];b=b.x.valueOf()<=a[a.length-1].x.valueOf()?[]:[b];return[].concat(n(a[0].x.valueOf()<=c.x.valueOf()?[]:[c]),n(a),n(b))},uLa=function(a,b){for(var c=0,d=a.length;c<d;){var e=Math.floor((d+c)/2),f=b(a[e]);if(f===0)return e;f<0?c=e+1:d=e}return-1},wLa=function(a,b,c){b=l([b,c].sort(function(f,g){return vLa(f,g)}));var d=b.next().value,e=b.next().value;b=uLa(a,function(f){return vLa(f.x,d)});c=uLa(a,function(f){return vLa(f.x,e)});return b===-1||c===-1?[]:a.slice(b+1,c)},rLa=function(a){a=
a.reduce(function(b,c){c=l([c.data,c.shiftedData===void 0?[]:c.shiftedData]);for(var d=c.next();!d.done;d=c.next()){d=l(d.value);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.x.valueOf();b.has(f)||b.set(f,Object.assign({},e,{y:0}))}}return b},new Map);return[].concat(n(a.entries())).sort(function(b,c){b=l(b).next().value;c=l(c).next().value;return vLa(b,c)}).map(function(b){b=l(b);b.next();return b.next().value})},vLa=function(a,b){return typeof a==="string"&&typeof b==="string"?a.localeCompare(b):
typeof a==="number"&&typeof b==="number"?a-b:a instanceof Date&&b instanceof Date?a.valueOf()-b.valueOf():0},sLa=function(a){var b=a[a.length-1];return function(c,d,e){e=e[d+1];d=c.x;e=e?e.x:b==null?void 0:b.x;d=e==null?[]:wLa(a,d,e);return[c].concat(n(d))}},xLa=function(a){var b=a.some(function(c){return c.success});a=a.filter(function(c){return!c.success});b&&(a=a.filter(function(c){return c.error.name!=="NoDataError"}));return a.map(function(c){return c.error})},yLa=function(a){if(a&1){var b=t();
Vf(0);M(1,"mat-icon",7)(2,"span",8);K(3,"button",9);N("click",function(){u(b);P(3).installAgentRequest.emit();return v()});$f(4,1);L();Wf()}a&2&&(a=P(3),B(2),I("innerHTML",a.opsAgentInstallPrompt,Le),B(),I("ve",a.ve.InstallAgentButton)("veClick",!0))},zLa=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(3).ngIf,B(),T("",a[0].details.queryName,": "))},ALa=function(a){if(a&1){var b=t();K(0,"button",13);N("click",function(){u(b);P(4).errorDismissedSubject.next(!0);return v()});M(1,"mat-icon",14);L()}},
BLa=function(a){a&1&&(M(0,"mat-icon",10),K(1,"span",11),E(2,zLa,2,1,"span",2),M(3,"span",8),L(),E(4,ALa,2,0,"button",12));if(a&2){a=P(2).ngIf;var b=P();B(2);I("ngIf",a[0].details.queryName);B();I("innerHTML",a[0].displayMessage,Le);B();I("ngIf",b.styles.useNonBlockingErrors)}},CLa=function(a){a&1&&(K(0,"div",4),U(1,"async"),U(2,"async"),K(3,"div",5),E(4,yLa,5,3,"ng-container",6),U(5,"async"),E(6,BLa,5,3,"ng-template",null,0,Og),L()());if(a&2){a=Q(7);var b=P(2);yg("nonblocking",W(1,5,b.useNonBlockingStylingObservable));
I("ngStyle",W(2,7,b.styleObservable));B(4);I("ngIf",b.installAgentHandled&&W(5,9,b.isAgentMetricObservable))("ngIfElse",a)}},DLa=function(a,b){a&1&&(Vf(0),E(1,CLa,8,11,"div",3),U(2,"async"),Wf());a&2&&(a=b.ngIf,b=P(),B(),I("ngIf",a.length>0&&W(2,1,b.errorDismissedObservable)===!1))},ELa=function(a){a&1&&(K(0,"span",6,1),S(2),L());a&2&&(a=P(),B(2),Ag(a.unitLabel))},FLa=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(2),B(),Ag(a.unitLabel))},GLa=function(a){a&1&&(K(0,"span",7,2),S(2),E(3,FLa,2,1,
"span",8),L());a&2&&(a=P(),I("title",a.currentValueLabel),B(2),T(" ",a.currentValueLabel),B(),I("ngIf",!a.showUnitAboveValue))},HLa=function(a,b){a=a.y.bucketOptions;return(a==null?0:a.exponentialBuckets)?(a=a.exponentialBuckets,a.growthFactor?[Math.round((a.scale||1)*Math.pow(a.growthFactor,b-1)*1E9)/1E9,Math.round((a.scale||1)*Math.pow(a.growthFactor,b)*1E9)/1E9]:[void 0,void 0]):(a==null?0:a.linearBuckets)?(a=a.linearBuckets,a.width?[Math.round(((a.offset||0)+a.width*(b-1))*1E9)/1E9,Math.round(((a.offset||
0)+a.width*b)*1E9)/1E9]:[void 0,void 0]):(a==null?0:a.explicitBuckets)?(a=a.explicitBuckets,a.bounds?[b>0?a.bounds[b-1]:-Infinity,b>-1?b<a.bounds.length?a.bounds[b]:Infinity:a.bounds[0]]:[void 0,void 0]):[void 0,void 0]},ILa=function(a,b){var c=a.y.bucketCounts,d=l(HLa(a,0)),e=d.next().value,f=d=d.next().value;if(e!==void 0&&f!==void 0){if(e>=b)return-1;if(e<=b&&f>=b)return 0}for(d=1;d<c.length;d++)if(f=l(HLa(a,d)),e=f.next().value,f=f.next().value,e!==void 0&&f!==void 0&&e<=b&&f>=b)return d;if(f!==
void 0&&f<=b)return c.length},JLa=function(a){return a[0]+" - "+a[1]},KLa=function(a,b,c){return function(d){var e=d[0],f;d=(f=d[1])!=null?f:null;f=l([e,d].map(function(g){if(g===null)return null;g=Wk(a,b,g)||0;return Yk(g,b,{maximumFractionDigits:c})}));e=f.next().value;f=f.next().value;if(e===null)throw Error("Sc");return f===null?(new em("above {LOWER}")).format({LOWER:e}):(new em("between {LOWER} and {UPPER}")).format({LOWER:e,UPPER:f})}},LLa=function(){return{x:0,y:0,height:0,width:0}},MLa=function(a,
b){return function(c,d){var e=c.x,f=c.x0,g=c.y,k=0,m;c=Math.floor((m=a(e.valueOf()))!=null?m:0);f=f==null?void 0:f.valueOf();if(f!==void 0){var r;c=Math.floor((r=a((e.valueOf()+f)/2))!=null?r:0);var w;k=Math.floor((w=a(e.valueOf()))!=null?w:0);var x;w=Math.floor((x=a(f))!=null?x:0);k=Math.abs(k-w)}x=l(Bl(g,d));d=x.next().value;x=x.next().value;d=Math.floor(b(d!=null?d:0));var D;x=Math.floor(b((D=x)!=null?D:0));return{x:c,y:(d+x)/2,height:Math.abs(x-d),width:k}}},NLa=function(a,b){var c;return String((c=
a.bucketCounts[b])!=null?c:"-")},OLa=function(){return function(a,b){var c=a.bucketCounts[b]||0;b=c.toString();a=(c*100/a.count).toFixed();return(new em("{COUNT} ({PERCENT}%)")).format({COUNT:b,PERCENT:a})}},PLa=function(a){var b=a.data;var c=a.xAxisState;var d=a.yAxisState;var e=a.rowFormatter;var f=a.columnFormatter;var g=a.valueFormatter;a=a.positionMap;e||(e=JLa);f||(f=KFa);g||(g=NLa);a||(a=LLa);b=b.series[0];if(!b)return null;var k,m=(k=b.data[0])==null?void 0:k.y;if(!m)return null;k=[];for(var r=
b.data.reduce(function(O,R){return Math.max(O,R.y.bucketCounts.length)},0)-1;r>=0;r--)k.push({label:e(Bl(m,r)),metadata:{seriesId:b.id,bucketIndex:r}});e=new Set;m=l(b.data);for(r=m.next();!r.done;r=m.next())r=r.value,a(r,0).x>=0&&e.add(r.x.valueOf());e=Array.from(e);e.sort(function(O,R){return O-R});e=MFa(e,f);f=e.columns;e=e.xToColIndex;m=LFa(k.length,f.length);b=l(b.data);for(r=b.next();!r.done;r=b.next()){r=r.value;var w=e.get(r.x.valueOf());if(w!==void 0)for(var x=r.y,D=0;D<k.length;D++){var H=
k[D].metadata.bucketIndex,J=m[D][w];J&&H!==void 0&&(J.position=a(r,H),J.label=g(x,H))}}return{rows:k,columns:f,values:m,xAxisState:c,yAxisState:d}},QLa=function(a,b){if(a===b)return!0;var c;a=(c=a)!=null?c:[];var d;b=(d=b)!=null?d:[];if(a.length!==b.length)return!1;for(c=0;c<a.length;c++){var e=d=void 0;if(a[c].seriesId!==b[c].seriesId||((d=a[c].datumIndices)==null?void 0:d.length)!==((e=b[c].datumIndices)==null?void 0:e.length))return!1;for(var f=e=d=void 0,g=0;g<((f=(d=a[c])==null?void 0:(e=d.datumIndices)==
null?void 0:e.length)!=null?f:0);++g)if(a[c].datumIndices[g].index!==b[c].datumIndices[g].index||a[c].datumIndices[g].bucketIndex!==b[c].datumIndices[g].bucketIndex)return!1}return!0},RLa=function(a){a&1&&Uf(0,"div",2)},SLa=function(a){a&1&&M(0,"mat-spinner",4);a&2&&(a=P(2),I("diameter",a.spinnerDiameter)("strokeWidth",a.spinnerDiameter/10),Jf("aria-label",a.loadingIndicatorLabel))},TLa=function(a){a&1&&M(0,"mat-progress-bar",5);a&2&&(a=P(2),Jf("aria-label",a.loadingIndicatorLabel))},ULa=function(a){a&
1&&(K(0,"div",1),E(1,SLa,1,3,"mat-spinner",2)(2,TLa,1,1,"mat-progress-bar",3),L());a&2&&(a=P(),xg("height",a.bodyHeight,"px")("width",a.bodyWidth,"px")("top",a.bodyTop,"px")("left",a.bodyLeft,"px"),B(),I("ngIf",!a.useProgressBar),B(),I("ngIf",a.useProgressBar))},VLa=function(a){return(a=String(a).match(/^(-?[\d.]+)(?:([a-zA-Z%]+))?$/))?{value:Number(a[1]),unit:(a[2]||"").toLowerCase()}:null},WLa=function(a){a&1&&(K(0,"span",7),S(1),L());a&2&&(a=P(2),B(),Ag(a.summaryHeader))},XLa=function(a){a&1&&
(K(0,"span",8,1),S(2),L());a&2&&(a=P(2),I("title",a.summaryBody),B(2),T(" ",a.summaryBody," "))},YLa=function(a){a&1&&(K(0,"span",9),S(1),L());a&2&&(a=P(2),B(),Ag(a.summaryFooter))},ZLa=function(a){a&1&&(K(0,"div",3,0),E(2,WLa,2,1,"span",4)(3,XLa,3,2,"span",5)(4,YLa,2,1,"span",6),L());a&2&&(a=P(),B(2),I("ngIf",a.summaryHeader),B(),I("ngIf",a.summaryBody),B(),I("ngIf",a.summaryFooter))},$La=function(a){a&1&&(Sf(0,"div",1),gg(1),Tf())},aMa=function(a,b){return a.yAxisUnit===b.yAxisUnit&&a.yAxisMin===
b.yAxisMin&&a.yAxisMax===b.yAxisMax&&a.yAxisAbsoluteMin===b.yAxisAbsoluteMin&&a.yAxisScaleType===b.yAxisScaleType&&a.xAxisMin===b.xAxisMin&&a.xAxisMax===b.xAxisMax&&a.xAxisUnit===b.xAxisUnit&&a.bodyTop===b.bodyTop&&a.bodyBottom===b.bodyBottom&&a.bodyLeft===b.bodyLeft&&a.bodyRight===b.bodyRight&&a.dataUnit===b.dataUnit},bMa=function(a,b){return(a==null?void 0:a.version)!==(b==null?void 0:b.version)},cMa=function(a,b,c){c=c===void 0?!1:c;if(!a)return!0;var d=l(a);a=d.next().value;d=d.next().value;var e=
l(b);b=e.next().value;e=e.next().value;return c?b<=d&&a<=e:a<=e&&b<=d},dMa=function(a,b,c){b=b===void 0?Infinity:b;c=c===void 0?!1:c;return a.reduceRight(function(d,e){var f=l(d).next().value,g=l(f).next().value;g&&Kl(b,g,e,c).gapDetected?d.unshift([e]):f.unshift(e);return d},[[]])},eMa=function(){return{getInitialState:function(a){a=a===void 0?{}:a;return Object.assign({ids:[],entities:{}},a)}}},fm=function(a){return function(b,c){var d={ids:[].concat(n(c.ids)),entities:Object.assign({},c.entities)};
b=a(b,d);return b===1?Object.assign({},c,d):b===0?Object.assign({},c,{entities:d.entities}):c}},fMa=function(a){function b(m,r){var w=a(m);if(w in r.entities)return 2;r.ids.push(w);r.entities[w]=m;return 1}function c(m,r){var w=!1;m=l(m);for(var x=m.next();!x.done;x=m.next())w=b(x.value,r)!==2||w;return w?1:2}function d(m,r){var w=a(m);if(w in r.entities)return r.entities[w]=m,0;r.ids.push(w);r.entities[w]=m;return 1}function e(m,r){var w=(m instanceof Array?m:r.ids.filter(function(x){return m(r.entities[x])})).filter(function(x){return x in
r.entities}).map(function(x){return delete r.entities[x]}).length>0;w&&(r.ids=r.ids.filter(function(x){return x in r.entities}));return w?1:2}function f(m,r){return g([m],r)}function g(m,r){var w={};m=m.filter(function(x){return x.id in r.entities});return m.length>0?m.filter(function(x){var D=Object.assign({},r.entities[x.id],x.changes),H=a(D),J=H!==x.id;J&&(w[x.id]=H,delete r.entities[x.id]);r.entities[H]=D;return J}).length>0?(r.ids=r.ids.map(function(x){return w[x]||x}),1):0:2}function k(m,r){var w=
[],x=[];m=l(m);for(var D=m.next();!D.done;D=m.next()){D=D.value;var H=a(D);H in r.entities?x.push({id:H,changes:D}):w.push(D)}x=g(x,r);r=c(w,r);switch(!0){case r===2&&x===2:return 2;case r===1||x===1:return 1;default:return 0}}return{removeAll:function(m){return Object.assign({},m,{ids:[],entities:{}})},addOne:fm(b),addMany:fm(c),setAll:fm(function(m,r){r.ids=[];r.entities={};c(m,r);return 1}),setOne:fm(d),setMany:fm(function(m,r){m=m.map(function(w){return d(w,r)});switch(!0){case m.some(function(w){return w===
1}):return 1;case m.some(function(w){return w===0}):return 0;default:return 2}}),updateOne:fm(f),updateMany:fm(g),upsertOne:fm(function(m,r){return k([m],r)}),upsertMany:fm(k),removeOne:fm(function(m,r){return e([m],r)}),removeMany:fm(e),map:fm(function(m,r){var w=r.ids.reduce(function(x,D){var H=m(r.entities[D]);H!==r.entities[D]&&x.push({id:D,changes:H});return x},[]).filter(function(x){return x.id in r.entities});return g(w,r)}),mapOne:fm(function(m,r){var w=m.map;m=m.id;var x=r.entities[m];if(!x)return 2;
w=w(x);return f({id:m,changes:w},r)})}},gMa=function(a,b){function c(w,x){return d([w],x)}function d(w,x){w=w.filter(function(D){return!(a(D)in x.entities)});if(w.length===0)return 2;m(w,x);return 1}function e(w,x){var D=a(w);return D in x.entities?(x.ids=x.ids.filter(function(H){return H!==D}),m([w],x),1):c(w,x)}function f(w,x){return g([w],x)}function g(w,x){var D=[];w=w.filter(function(O){if(O.id in x.entities){var R=Object.assign({},x.entities[O.id],O.changes),V=a(R);delete x.entities[O.id];D.push(R);
O=V!==O.id}else O=!1;return O}).length>0;if(D.length===0)return 2;var H=x.ids,J=[];x.ids=x.ids.filter(function(O,R){if(O in x.entities)return!0;J.push(R);return!1});m(D,x);return!w&&J.every(function(O){return x.ids[O]===H[O]})?0:1}function k(w,x){var D=[],H=[];w=l(w);for(var J=w.next();!J.done;J=w.next()){J=J.value;var O=a(J);O in x.entities?H.push({id:O,changes:J}):D.push(J)}H=g(H,x);x=d(D,x);switch(!0){case x===2&&H===2:return 2;case x===1||H===1:return 1;default:return 0}}function m(w,x){w.sort(b);
for(var D=[],H=0,J=0;H<w.length&&J<x.ids.length;){var O=w[H],R=a(O),V=x.ids[J];b(O,x.entities[V])<=0?(D.push(R),H++):(D.push(V),J++)}x.ids=H<w.length?D.concat(w.slice(H).map(a)):D.concat(x.ids.slice(J));w.forEach(function(ba){x.entities[a(ba)]=ba})}var r=fMa(a);return{removeOne:r.removeOne,removeMany:r.removeMany,removeAll:r.removeAll,addOne:fm(c),updateOne:fm(f),upsertOne:fm(function(w,x){return k([w],x)}),setAll:fm(function(w,x){x.entities={};x.ids=[];d(w,x);return 1}),setOne:fm(e),setMany:fm(function(w,
x){w=w.map(function(D){return e(D,x)});switch(!0){case w.some(function(D){return D===1}):return 1;case w.some(function(D){return D===0}):return 0;default:return 2}}),addMany:fm(d),updateMany:fm(g),upsertMany:fm(k),map:fm(function(w,x){var D=x.ids.reduce(function(H,J){var O=w(x.entities[J]);O!==x.entities[J]&&H.push({id:J,changes:O});return H},[]);return g(D,x)}),mapOne:fm(function(w,x){var D=w.map;w=w.id;var H=x.entities[w];if(!H)return 2;D=D(H);return f({id:w,changes:D},x)})}},hMa=function(){return{getSelectors:function(a){var b=
function(f){return f.ids},c=function(f){return f.entities},d=kk(b,c,function(f,g){return f.map(function(k){return g[k]})}),e=kk(b,function(f){return f.length});return a?{selectIds:kk(a,b),selectEntities:kk(a,c),selectAll:kk(a,d),selectTotal:kk(a,e)}:{selectIds:b,selectEntities:c,selectAll:d,selectTotal:e}}}},gm=function(a){a=a===void 0?{}:a;var b,c,d=(b=a.selectId)!=null?b:function(e){return e.id};a=(c=a.sortComparer)!=null?c:!1;return Object.assign({},{selectId:d,sortComparer:a},eMa(),hMa(),a?gMa(d,
a):fMa(d))},jMa=function(a,b){return iMa(a,b)},lMa=function(a,b){return kMa(a,b)},nMa=function(a,b){return mMa(a,b)},pMa=function(a,b){return oMa(a,b)},rMa=function(a,b){return qMa(a,b)},tMa=function(a,b){return sMa(a,b)},vMa=function(a,b){return uMa(a,b)},yMa=function(a,b,c,d){var e=a.entities[b];e||(e=wMa(b));(b=e.byLayer.entities[c])||(b={layerId:c,selectedExemplar:null,hoveredExemplar:null});c=e;d=Object.assign({},b,d);d=Object.assign({},c,{byLayer:xMa.upsertOne(d,c.byLayer)});return hm.upsertOne(d,
a)},AMa=function(a,b){return zMa(a,b)},CMa=function(a,b){return BMa(a,b)},EMa=function(a,b){return DMa(a,b)},GMa=function(a,b){return FMa(a,b)},IMa=function(a,b){return HMa(a,b)},JMa=function(a){var b=[];a=l(Object.values(a));for(var c=a.next();!c.done;c=a.next())if(c=c.value,Array.isArray(c))b=b.concat(c);else if(c)return!0;if(b.length===0)return!1;a=b.sort(function(f,g){return f[0].valueOf()-g[0].valueOf()});b=[];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;
var e=b[b.length-1];b.length===0||c>e[1]?b.push([c,d]):d>e[1]&&(e[1]=d)}return b},LMa=function(a,b){return KMa(a,b)},NMa=function(a,b){return MMa(a,b)},PMa=function(a,b,c){c=l(c);for(var d=c.next();!d.done;d=c.next())d=OMa(d.value.requirements).margins,d.left>a&&(a=d.left),d.right>b&&(b=d.right);return{left:a,right:b}},RMa=function(a,b){if((a==null?0:a.useChartGroupHorizontalMargins)||b.some(function(e){return e.useChartGroupHorizontalMargins})){var c=PMa(a.margins.left,a.margins.right,b),d=c.left;
c=c.right;a.useChartGroupHorizontalMargins&&(a.margins.left=d,a.margins.right=c);return QMa(b,d,c)}return[]},QMa=function(a,b,c){var d=[];a=l(a.filter(function(f){return f.useChartGroupHorizontalMargins}));for(var e=a.next();!e.done;e=a.next())e=e.value,b===e.margins.left&&c===e.margins.right||d.push(Object.assign({},e,{margins:Object.assign({},e.margins,{left:b,right:c})}));return d},SMa=function(a,b,c){return Object.values(a.entities).filter(function(d){return!!d}).filter(function(d){return d.chartGroupId===
b&&d.chartId!==c})},OMa=function(a){for(var b=im.getInitialState({}),c=0,d=0,e=0,f=0,g=l(a),k=g.next();!k.done;k=g.next())k=k.value,k.reservedMargins&&(k.reservedMargins.top&&(b=im.upsertOne(Object.assign({},b.entities[k.layerId],{layerId:k.layerId,top:c}),b),c+=k.reservedMargins.top),k.reservedMargins.right&&(b=im.upsertOne(Object.assign({},b.entities[k.layerId],{layerId:k.layerId,right:d}),b),d+=k.reservedMargins.right),k.reservedMargins.bottom&&(b=im.upsertOne(Object.assign({},b.entities[k.layerId],
{layerId:k.layerId,bottom:e}),b),e+=k.reservedMargins.bottom),k.reservedMargins.left&&(b=im.upsertOne(Object.assign({},b.entities[k.layerId],{layerId:k.layerId,left:f}),b),f+=k.reservedMargins.left));a=l(a);for(g=a.next();!g.done;g=a.next())g=g.value,g.overlappingMargins&&(g.overlappingMargins.top&&(c=Math.max(c,g.overlappingMargins.top)),g.overlappingMargins.right&&(d=Math.max(d,g.overlappingMargins.right)),g.overlappingMargins.bottom&&(e=Math.max(e,g.overlappingMargins.bottom)),g.overlappingMargins.left&&
(f=Math.max(f,g.overlappingMargins.left)));return{margins:{top:Math.max(0,c),right:Math.max(0,d),bottom:Math.max(0,e),left:Math.max(0,f)},reservedMarginsByLayer:b}},UMa=function(a,b){return TMa(a,b)},jm=function(a,b,c){(a=a.entities[b])||(a=VMa(b));(b=a.byLayer.entities[c])||(b=Object.assign({},WMa,{layerId:c,selectedSeries:[],hoveredSeries:[],lastClickedSeries:[],multiselectAnchorSeries:null}));return{chartState:a,layerState:b}},YMa=function(a,b){return XMa(a,b)},$Ma=function(a,b){return ZMa(a,b)},
cNa=function(a,b,c,d){b=a.entities[b]||Object.assign({},aNa,{chartId:b});var e=b.byLayer.entities[c];d=d(e);if(d===e)return a;if(d)c=bNa.upsertOne(d,b.byLayer);else if(e)c=bNa.removeOne(c,b.byLayer);else return a;return km.upsertOne(Object.assign({},b,{byLayer:c}),a)},dNa=function(a,b,c,d){var e=a;a=a[b];if(c&&((a==null?void 0:a.alignmentRange.x)!==c.x||(a==null?void 0:a.alignmentRange.x0)!==c.x0)){var f={};e=Object.assign({},e,(f[b]={alignmentRange:Object.assign({},c)},f))}d&&(a==null?void 0:a.category)!==
d&&(c={},e=Object.assign({},e,(c[b]={category:d},c)));return e},eNa=function(a,b,c){var d=new Map;b=l(b);for(var e=b.next();!e.done;e=b.next())e=e.value,d.set(e.seriesId,e.value);b=[];e=l(a);for(var f=e.next();!f.done;f=e.next())if(f=f.value){var g=f.seriesId,k=d.get(g);if(k!==f.atTimeKey[c]){var m={};b.push(Object.assign({},f,{atTimeKey:Object.assign({},f.atTimeKey,(m[c]=k,m)),seriesId:g}))}}return b.length?b:a},gNa=function(a,b){return fNa(a,b)},iNa=function(a,b){return hNa(a,b)},kNa=function(a,
b){return jNa(a,b)},mNa=function(a,b){return lNa(a,b)},qNa=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=void 0,e=(d=c.getLabel())!=null?d:"";d=void 0;b.push({name:e,id:e,data:((d=Wi(c,nNa,2,Xi()))!=null?d:[]).filter(function(f){return lj(f,oNa,1,pNa)&&lm(f,oNa,1,pNa).hasEndTime()}).map(function(f){f=lm(f,oNa,1,pNa);var g,k=f.getEndTime();return{x:new Date(Number(k.getSeconds())*1E3+Number(k.getNanos())/1E6),y:(g=f.getValue())!=null?g:0}}).sort(function(f,g){return f.x.getTime()-
g.x.getTime()})})}return{series:b,unit:"1"}},rNa=function(a,b){if(a&1){var c=t();K(0,"button",2);U(1,"interactiveButtonTooltip");N("click",function(){u(c);var d=P().$implicit,e=P(2);return v(e.handleButtonClick(d))});S(2);L()}a&2&&(yg("has-action-key",!!Fi(b,3)),I("matTooltip",W(1,4,b)),B(2),T(" ",b.getLabel()," "))},sNa=function(a,b){a&1&&M(0,"interactive-element-chart",1);a&2&&I("chart",b)},tNa=function(a,b){a&1&&(F(0,rNa,3,6,"button",0),F(1,sNa,1,1,"interactive-element-chart",1));if(a&2){var c,
d;a=b.$implicit;b=P(2);G((c=b.getButton(a))?0:-1,c);B();G((d=b.getChart(a))?1:-1,d)}},uNa=function(a,b){a&1&&Pf(0,tNa,2,2,null,null,Nf);a&2&&Qf(b)},vNa=function(a,b){if(a&1){var c=t();K(0,"button",2);N("click",function(){u(c);var d=P().$implicit,e=P(2);return v(e.handleButtonClick(d))});S(1);L()}a&2&&(a=P(3),I("ve",a.ve.DuckieChatInteractiveElementButton)("veClick",!0)("veImpression",!0),B(),T(" ",b.getLabel()," "))},wNa=function(a,b){a&1&&M(0,"interactive-element-chart",1);a&2&&I("chart",b)},xNa=
function(a,b){a&1&&(F(0,vNa,2,4,"button",0),F(1,wNa,1,1,"interactive-element-chart",1));if(a&2){var c,d;a=b.$implicit;b=P(2);G((c=b.getButton(a))?0:-1,c);B();G((d=b.getChart(a))?1:-1,d)}},yNa=function(a,b){a&1&&Pf(0,xNa,2,2,null,null,Nf);a&2&&Qf(b)},zNa=function(a){a&1&&(K(0,"mat-icon"),S(1),L());a&2&&(a=P(),zg(Gg("dialog-icon ",a.iconType)),B(),Ag(a.iconType))},ANa=function(a){a&1&&(K(0,"span",3),S(1),L());a&2&&(a=P(),B(),Ag(a.data.title))},BNa=function(a){a&1&&(K(0,"div",5),S(1),L());a&2&&(a=P(),
B(),Ag(a.data.message))},CNa=function(a){a&1&&Xf(0)},ENa=function(a){a&1&&(K(0,"div"),E(1,CNa,1,0,"ng-container",9),L());a&2&&(a=P(),B(),I("ngTemplateOutlet",a.data.contentTemplate)("ngTemplateOutletContext",Kg(2,DNa,a.data.contentTemplateContext)))},FNa=function(a){if(a&1){var b=t();K(0,"button",5);N("click",function(c){u(b);var d=P();return v(d.deleteSession(c))});S(1," Delete thread ");L()}},GNa=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(c){u(b);var d=P();return v(d.toggleSessionArchivedState(c))});
S(1);L()}a&2&&(P(),a=dg(0),B(),T(" ",a?"Unarchive thread":"Archive thread"," "))},HNa=function(a){a&1&&Xf(0,null,0)},INa=function(a){a&1&&M(0,"session-actions",1);a&2&&(a=P(),I("sessionSummary",a.sessionSummary()))},JNa=function(a){a&1&&gg(0,4)},KNa=function(a){a&1&&(K(0,"div",11),M(1,"input",12),K(2,"div",13),yd(),K(3,"svg",14),M(4,"path",15),L(),zd(),M(5,"div",16),L()());a&2&&(a=P(),yg("mdc-checkbox--disabled",a.disabled),B(),I("checked",a.selected)("disabled",a.disabled))},LNa=function(a){a&1&&
(K(0,"div",17),M(1,"input",18),K(2,"div",19),M(3,"div",20)(4,"div",21),L()());a&2&&(a=P(),yg("mdc-radio--disabled",a.disabled),B(),I("checked",a.selected)("disabled",a.disabled))},MNa=function(){},NNa=function(a){a&1&&(K(0,"span",4),E(1,MNa,0,0,"ng-template",6),L());a&2&&(P(),a=Q(3),B(),I("ngTemplateOutlet",a))},ONa=function(){},PNa=function(a){a&1&&(K(0,"span",5),E(1,ONa,0,0,"ng-template",6),L());a&2&&(P(),a=Q(5),B(),I("ngTemplateOutlet",a))},QNa=function(){},RNa=function(a){a&1&&E(0,QNa,0,0,"ng-template",
6);a&2&&(P(),a=Q(1),I("ngTemplateOutlet",a))},SNa=function(){},TNa=function(a){a&1&&(K(0,"span",9),E(1,SNa,0,0,"ng-template",6),L());a&2&&(P(),a=Q(3),B(),I("ngTemplateOutlet",a))},UNa=function(){},VNa=function(a){a&1&&(K(0,"span",9),E(1,UNa,0,0,"ng-template",6),L());a&2&&(P(),a=Q(5),B(),I("ngTemplateOutlet",a))},WNa=function(){},XNa=function(a){a&1&&E(0,WNa,0,0,"ng-template",6);a&2&&(P(),a=Q(1),I("ngTemplateOutlet",a))},YNa=function(a){var b={attributeFilter:["aria-label","aria-valuenow"]};return new Sd(function(c){(new MutationObserver(function(d){var e=
d[0].target,f;d=(f=e.getAttribute("aria-label"))!=null?f:"";var g;f=(g=e.getAttribute("aria-valuenow"))!=null?g:"indeterminate";c.next([d,f])})).observe(a,b)})},ZNa=function(a){a&1&&M(0,"mat-progress-spinner",1);a&2&&I("diameter",32)},$Na=function(a){a&1&&(M(0,"mat-divider"),K(1,"div",10)(2,"div"),S(3,"Incognito mode enabled. All threads will be deleted on closing this tab or window."),L(),K(4,"a",11),S(5," Learn more "),L()())},bOa=function(a){if(a&1){var b=t();K(0,"button",15);N("click",function(){u(b);
var c=P(3);return v(aOa(c))});K(1,"mat-icon");S(2,"close");L()()}},cOa=function(a){if(a&1){var b=t();K(0,"div",9)(1,"mat-form-field",12)(2,"mat-label");S(3,"Search thread titles");L();K(4,"input",13,0);N("input",function(){u(b);var c=Q(5),d=P(2);return v(d.searchText$.next(c.value))});L();F(6,bOa,3,0,"button",14);L()()}a&2&&(a=Q(5),B(6),G(a.value!==""?6:-1))},dOa=function(a){a&1&&M(0,"mat-divider")},eOa=function(a){a&1&&(K(0,"mat-list-item",16),S(1,"No results found"),L())},fOa=function(a){a&1&&(K(0,
"mat-icon",20),S(1,"privacy_tip"),L())},gOa=function(a){if(a&1){var b=t();K(0,"div",21)(1,"session-actions-wrapper",22);N("click",function(c){u(b);P(4);c.stopPropagation();c.preventDefault();return v()});L()()}a&2&&(a=P().$implicit,B(),I("sessionSummary",a))},iOa=function(a){if(a&1){var b=t();K(0,"button",24);N("click",function(){u(b);var c=P(5);return v(hOa(c))});K(1,"mat-icon");S(2,"keyboard_arrow_down");L();S(3," Show more ");L()}},jOa=function(a){if(a&1){var b=t();K(0,"button",24);N("click",function(){u(b);
var c=P(5);c.isShowingMoreNavItems=!1;c.numDisplayedItems=5;return v()});K(1,"mat-icon");S(2,"keyboard_arrow_up");L();S(3," Show less ");L()}},kOa=function(a){a&1&&F(0,iOa,4,0,"button",23)(1,jOa,4,0,"button",23);a&2&&(a=P(4),G(a.isShowingMoreNavItems?1:0))},nOa=function(a,b){if(a&1){var c=t();K(0,"a",17);U(1,"async");N("click",function(){var g=u(c).$implicit,k=P(3);mm(k.duckieEventTrackerService,nm((new om).setSessionId(g.sessionId)),207765);lOa(k.routingService,g.sessionId);k.navItemClicked.emit();
return v()});K(2,"span",18)(3,"span",19);S(4);L();F(5,fOa,2,0,"mat-icon",20);L();F(6,gOa,2,1,"div",21);L();F(7,kOa,2,1)}if(a&2){a=b.$implicit;b=b.$index;var d=P(),e=P(2),f=dg(0);I("title",Fg(a.title))("activated",mOa(a,W(1,7,e.currentThreadId$)));B(4);Ag(a.title);B();G(e.sessionDeletionEnabled||a.privacyMode!==e.PrivacyMode.CONTENT_PRIVATE||f?-1:5);B();G(f?-1:6);B();G(b===e.initialNavItems-1&&e.initialNavItems<d.length?7:-1)}},pOa=function(a,b){a&1&&(F(0,eOa,2,0,"mat-list-item",16),Pf(1,nOa,8,9,null,
null,oOa));a&2&&(a=P(2),G(a.showFilter&&b.length===0?0:-1),B(),Qf(b.slice(0,a.numDisplayedItems)))},qOa=function(a){if(a&1){var b=t();K(0,"mat-nav-list",3);U(1,"async");K(2,"div",4)(3,"div",5)(4,"mat-icon",6);S(5,"history");L();S(6," Recent ");L();K(7,"div",7)(8,"button",8);N("click",function(){u(b);var e=P();e.showFilter=!e.showFilter;e.showFilter?aOa(e):e.clearSearch();return v()});K(9,"mat-icon");S(10,"filter_list");L()()()();F(11,$Na,6,0);U(12,"async");F(13,cOa,7,1,"div",9)(14,dOa,1,0,"mat-divider");
F(15,pOa,3,1);U(16,"async");L()}if(a&2){var c;a=P();var d=dg(0);yg("has-top-banner",W(1,9,a.isGeminiModelSelected$));B(8);yg("selected",a.showFilter);I("ve",a.ve.DuckieFilterRecentSessionsButton)("veClick",!0);B(3);G(W(12,11,a.userStateLoaded$)&&d?11:-1);B(2);G(a.showFilter?13:14);B(2);G((c=W(16,13,a.filteredSessionSummaries$))?15:-1,c)}},rOa=function(a){a&1&&Xf(0,null,0)},sOa=function(a){if(a&1){var b=t();K(0,"recent-sessions",1);N("navItemClicked",function(c){u(b);var d=P();return v(d.navItemClicked.emit(c))});
L()}},tOa=function(a){a&1&&Xf(0,null,0)},uOa=function(a){a&1&&M(0,"new-topic-button")},vOa=function(a){if(a&1){var b=t();K(0,"div",2)(1,"button",3);N("click",function(){u(b);var c=P(2);return v(c.onCloseBannerButtonClicked())});K(2,"mat-icon");S(3,"close");L()()()}},wOa=function(a){a&1&&(K(0,"div",1)(1,"span"),S(2),L(),F(3,vOa,4,0,"div",2),L());a&2&&(a=P(),yg("info-banner",a.bannerType()===a.duckieBannerType.INFO)("warning-banner",a.bannerType()===a.duckieBannerType.WARNING)("error-banner",a.bannerType()===
a.duckieBannerType.ERROR),B(2),T(" ",a.bannerText()," "),B(),G(a.dismissalType()===a.duckieDissmissalType.DISMISSABLE?3:-1))},xOa=function(a){if(a&1){var b=t();K(0,"div",0)(1,"button",1);N("click",function(){u(b);var c=P();return v(c.handleClick())});K(2,"mat-icon");S(3,"play_circle");L();S(4);L()()}a&2&&(a=P(),B(),I("ve",a.ve.duckieShortsCardClicked)("veClick",!0),B(3),T(" ",a.currentShort.getTitle()," "))},yOa=function(a){a&1&&Xf(0,null,0)},zOa=function(a){a&1&&M(0,"big-bird-outage")},AOa=function(a){a&
1&&Xf(0,null,0)},BOa=function(a){a&1&&M(0,"general-announcement")},COa=function(a){a&1&&Xf(0,null,0)},DOa=function(a){a&1&&M(0,"incognito-banner")},EOa=function(a){for(var b=new Set;b.size<3;)b.add(a[Math.floor(Math.random()*a.length)]);return Array.from(b)},FOa=function(a,b){if(a&1){var c=t();K(0,"button",5);N("click",function(){var d=u(c).$implicit,e=P(3);return v(e.setExampleQuery(d.prompt))});S(1);L()}a&2&&(a=b.$implicit,b=P(3),I("ve",b.ve.ZeroStateSuggestionChipButton)("veClick",!0)("veImpression",
!0),B(),T(" ",a.label," "))},HOa=function(a,b){a&1&&(K(0,"div",1)(1,"div",2),S(2),L(),K(3,"div",3),Pf(4,FOa,2,4,"button",4,GOa),L()());a&2&&(a=b.$implicit,B(2),Ag(a.title),B(2),Qf(a.examples))},JOa=function(a,b){a&1&&Pf(0,HOa,6,1,"div",1,IOa);a&2&&Qf(b)},KOa=function(a){a&1&&Xf(0,null,0)},LOa=function(a){if(a&1){var b=t();K(0,"onboarding-examples",2);N("exampleQuery",function(c){u(b);var d=P();return v(d.exampleQuery.emit(c))});L()}a&2&&(a=P(),I("clientConfiguration",a.clientConfiguration()))},OOa=
function(a){var b=Array.from(MOa.keys()).find(function(c){return a.startsWith(c)});if(b)return b==="nexus"&&(a.includes("conversationAgentId=nexus_dynamic")||a.includes("conversationAgentId=nexus_experimental_dynamic"))?["nexus",NOa]:[b,MOa.get(b)]},POa=function(a){var b;return(b=OOa(a))==null?void 0:b[1]},ROa=function(a){if(QOa==null){var b=typeof document!=="undefined"?document.head:null;QOa=!(!b||!b.createShadowRoot&&!b.attachShadow)}return QOa&&(a=a.getRootNode?a.getRootNode():null,typeof ShadowRoot!==
"undefined"&&ShadowRoot&&a instanceof ShadowRoot)?a:null},SOa=function(a){if(a&1){var b=t();K(0,"div",0);N("clickOutside",function(){u(b);var c=P();return v(c.closeHovercard$.next())})("mouseenter",function(){u(b);P().isOnHover$.next(!0);return v()})("mouseleave",function(){u(b);P().isOnHover$.next(!1);return v()});gg(1);L()}a&2&&(a=P(),zg(a.className),I("cdkTrapFocusAutoCapture",a.wasTriggeredByKeyboard))},pm=function(a){return{fieldType:3,fieldName:a}},TOa=function(a){a&1&&(K(0,"span",3),gg(1,1),
L())},UOa=function(a){a&1&&(K(0,"span",6),gg(1,2),L())},VOa=function(a){a&1&&(K(0,"span",3),gg(1,1),K(2,"span",7),yd(),K(3,"svg",8),M(4,"path",9),L()()())},WOa=function(a){a&1&&(K(0,"span",6),gg(1,2),L())},XOa=function(a){a&1&&M(0,"incognito-banner-wrapper")},YOa=function(a){a&1&&M(0,"general-announcement-wrapper")},ZOa=function(a){a&1&&M(0,"banner",6);a&2&&(a=P().$implicit,I("bannerType",a.getType())("bannerText",a.getText())("dismissalType",Ri(a,2)))},$Oa=function(a,b){a&1&&F(0,ZOa,1,3,"banner",
6);a&2&&(a=b.$implicit,P(),Si(a,qm,4)?(b=Y(a,qm,4),a=new Date,a.setHours(0,0,0,0),b=new Date(b.getYear(),b.getMonth()-1,b.getDay()),a=a<=b):a=!0,G(a?0:-1))},aPa=function(a){a&1&&M(0,"big-bird-outage-wrapper")},bPa=function(a){a&1&&(M(0,"reminder-blurb-wrapper"),F(1,aPa,1,0,"big-bird-outage-wrapper"));a&2&&(a=P(),B(),G(a.duckieBigBirdStrikeEnabled?1:-1))},cPa=function(a){a&1&&Xf(0)},ePa=function(a,b){a&1&&E(0,cPa,1,0,"ng-container",9);a&2&&(P(2),a=Q(14),I("ngTemplateOutlet",a)("ngTemplateOutletContext",
Kg(2,dPa,b)))},fPa=function(a){a&1&&(K(0,"div",7),S(1," Get assistance with "),L())},gPa=function(a){a&1&&M(0,"big-bird-outage-wrapper")},hPa=function(a){if(a&1){var b=t();F(0,ePa,1,4,"ng-container")(1,fPa,2,0,"div",7);K(2,"onboarding-examples-wrapper",8);N("exampleQuery",function(d){u(b);var e=P();return v(e.setExampleQuery(d))});L();M(3,"reminder-blurb-wrapper");F(4,gPa,1,0,"big-bird-outage-wrapper")}if(a&2){var c;a=P();G((c=a.clientConfiguration())?0:1,c);B(2);I("clientConfiguration",a.clientConfiguration());
B(2);G(a.duckieBigBirdStrikeEnabled?4:-1)}},iPa=function(a){a&1&&(K(0,"mat-icon",22),S(1),L());a&2&&(a=P().$implicit,B(),Ag(a.iconName))},jPa=function(a,b){a&1&&(K(0,"mat-chip-option",21),F(1,iPa,2,1,"mat-icon",22),S(2),L());if(a&2){a=b.$implicit;b=P();P();var c=Q(12),d=Q(20),e=P();zg(Gg("agent-selector-chip ",a.agentId));I("onedevHovercardTrigger",a.agentId==="duckie_dynamic"?c:d)("onedevHovercardConfig",e.hovercardConfig)("disabled",e.duckieBigBirdStrikeEnabled&&a.agentId===e.duckieBigBird)("selected",
b.modelId===e.dynamicDuckieMModelId||b.modelId===a.modelId);B();G(a.iconName?1:-1);B();T(" ",a.agentDisplayName," ")}},lPa=function(a){a&1&&(Pf(0,jPa,3,9,"mat-chip-option",20,kPa),U(2,"async"));a&2&&(a=P(2),Qf(W(2,0,a.availableConversationAgents$)))},nPa=function(a){if(a&1){var b=t();K(0,"div",10)(1,"mat-icon");S(2,"experiment");L();K(3,"h2");S(4,"Experimental features");L();K(5,"p",11);S(6," Select feature(s) to enable ");L();K(7,"div",12)(8,"mat-chip-listbox",13);N("change",function(d){u(b);var e=
P();return v(mPa(e,d))});F(9,lPa,3,2);U(10,"async");L()();K(11,"onedev-hovercard",null,2)(13,"div",14)(14,"div",15)(15,"h2",16);S(16,"Agentic Search ");L();K(17,"p");S(18," Seamlessly combines the default Moma search capabilities with additional search sources like CodeSearch, CLs, bugs, & more.");L()()()();K(19,"onedev-hovercard",null,3)(21,"div",14)(22,"div",15)(23,"h2",16);S(24,"Big Bird");L();K(25,"p",17);S(26," Deeper thinking, improved reasoning capabilities.");L();K(27,"div",18);S(28,"Latency");
L();S(29," Slower than default \ud83d\udc22 ");L()()()();M(30,"span",19)}if(a&2){var c;a=P();B(9);G((c=W(10,1,a.conversationAgentsService.currentConversationAgent$))?9:-1,c)}},oPa=function(a){a&1&&M(0,"duckie-shorts-card")(1,"span",19)},pPa=function(a){a&1&&Xf(0)},qPa=function(a){a&1&&E(0,pPa,1,0,"ng-container",9);if(a&2){a=P().configuration;P();var b=Q(16);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,dPa,a))}},rPa=function(a){a&1&&(M(0,"hr"),K(1,"div",25),S(2),L());a&2&&(a=P().configuration,
B(2),T(" ",a.onboardingDescription," "))},sPa=function(a,b){a&1&&(K(0,"div",23),F(1,qPa,1,4,"ng-container"),K(2,"h1",24),S(3),L(),F(4,rPa,3,1),L());a&2&&(a=b.configuration,B(),G(a.clientLogoUrl?1:-1),B(2),T(" Duckie for ",a.clientName," "),B(),G(a.onboardingDescription?4:-1))},tPa=function(a,b){a&1&&(K(0,"div",26),M(1,"img",27),L());a&2&&(a=b.configuration,B(),I("src",a.clientLogoUrl,Me))},vPa=function(){var a=new rm;a.position=[uPa,sm];return a},wPa=function(a){a&1&&Xf(0,null,0)},xPa=function(a){a&
1&&M(0,"onboarding",3);a&2&&(a=P(),I("configurationKey",a.configurationKey())("pageId",a.pageId()))},yPa=function(a){a&1&&(K(0,"div",6),S(1," Responses below are visible only to you and your protected results are used. "),L())},zPa=function(a){if(a&1){var b=t();K(0,"div",3)(1,"div");S(2," Your protected results are used in this thread. You may opt-out of this feature in settings. ");L();K(3,"div",4)(4,"button",5);N("click",function(){u(b);var c=P();return v(c.openUserPrivacySettingsDialog())});S(5,
"Settings");L()()()}},APa=function(){},BPa=function(a){a&1&&gg(0)},CPa=function(){},DPa=function(a){a&1&&E(0,CPa,0,0,"ng-template",12);a&2&&(a=P().$implicit,I("cdkPortalOutlet",a.templateLabel))},EPa=function(a){a&1&&S(0);a&2&&(a=P().$implicit,Ag(a.textLabel))},FPa=function(a,b){if(a&1){var c=t();K(0,"div",7,2);N("click",function(){var f=u(c),g=f.$implicit;f=f.$index;var k=P(),m=Q(1);return v(k._handleClick(g,m,f))})("cdkFocusChange",function(f){var g=u(c).$index,k=P();return v(k._tabFocusChanged(f,
g))});M(2,"span",8)(3,"div",9);K(4,"span",10)(5,"span",11);F(6,DPa,1,1,null,12)(7,EPa,1,1);L()()()}if(a&2){a=b.$implicit;b=b.$index;var d=Q(1),e=P();zg(a.labelClass);yg("mdc-tab--active",e.selectedIndex===b);I("id",e._getTabLabelId(a,b))("disabled",a.disabled)("fitInkBarToContent",e.fitInkBarToContent);Jf("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);B(3);I("matRippleTrigger",d)("matRippleDisabled",a.disabled||e.disableRipple);B(3);G(a.templateLabel?6:7)}},GPa=function(a){a&1&&gg(0)},HPa=function(a,b){if(a&1){var c=t();K(0,"mat-tab-body",13);N("_onCentered",function(){u(c);var e=P();return v(e._removeTabBodyWrapperHeight())})("_onCentering",function(e){u(c);var f=P();return v(f._setTabBodyWrapperHeight(e))})("_beforeCentering",function(e){u(c);var f=P();return v(f._bodyCentered(e))});L()}if(a&
2){a=b.$implicit;b=b.$index;var d=P();zg(a.bodyClass);I("id",d._getTabContentId(b))("content",a.content)("position",a.position)("animationDuration",d.animationDuration)("preserveContent",d.preserveContent);Jf("tabindex",d.contentTabIndex!=null&&d.selectedIndex===b?d.contentTabIndex:null)("aria-labelledby",d._getTabLabelId(a,b))("aria-hidden",d.selectedIndex!==b)}},IPa=function(){},JPa=function(a){a&1&&(Sf(0,"span",1),yd(),Sf(1,"svg",2),Uf(2,"path",3),Tf()())},KPa=function(a){a&1&&(K(0,"div")(1,"strong"),
S(2,"googleSearchQuery: "),L(),S(3),L());a&2&&(a=P().$implicit,B(3),T(" ",a.getGoogleSearchQuery()," "))},LPa=function(a){a&1&&(K(0,"div")(1,"strong"),S(2,"GoogleSearchResponse: "),L(),S(3),L());a&2&&(a=P().$implicit,B(3),T(" ",Fi(a,2)," "))},MPa=function(a){a&1&&(K(0,"div")(1,"strong"),S(2,"displaySnippet: "),L(),S(3),L());a&2&&(a=P().$implicit,B(3),T(" ",Fi(a,34)," "))},NPa=function(a){a&1&&(K(0,"div")(1,"strong"),S(2,"searchQueryScore: "),L(),S(3),L());a&2&&(a=P().$implicit,B(3),T(" ",tm(a,3),
" "))},OPa=function(a){a&1&&(K(0,"div")(1,"strong"),S(2,"StatusWrtResponse: "),L(),S(3),L());a&2&&(a=P().$implicit,B(3),T(" ",Ri(a,4)," "))},PPa=function(a){a&1&&(K(0,"div")(1,"strong"),S(2,"WorldFactSource: "),L(),S(3),L());a&2&&(a=P().$implicit,B(3),T(" ",Ri(a,5)," "))},QPa=function(a){a&1&&(K(0,"div")(1,"strong"),S(2,"WorldFactUrlSource: "),L(),S(3),L());a&2&&(a=P().$implicit,B(3),T(" ",Fi(a,6)," "))},SPa=function(a){a&1&&(K(0,"div")(1,"strong"),S(2,"EntityMentions: "),L(),S(3),L());a&2&&(a=P().$implicit,
B(3),T(" ",Wi(a,RPa,8,Xi())," "))},TPa=function(a){a&1&&(K(0,"div")(1,"strong"),S(2,"SourceTitle: "),L(),S(3),L());a&2&&(a=P().$implicit,B(3),T(" ",Fi(a,9)," "))},UPa=function(a){a&1&&(K(0,"div")(1,"strong"),S(2,"RankembedSimilarity: "),L(),S(3),L());a&2&&(a=P().$implicit,B(3),T(" ",tm(a,11)," "))},VPa=function(a){a&1&&(K(0,"div")(1,"strong"),S(2,"RelatedQuestion: "),L(),S(3),L());a&2&&(a=P().$implicit,B(3),T(" ",Fi(a,13)," "))},XPa=function(a){a&1&&(K(0,"div")(1,"strong"),S(2,"RelatedQuestionMetadata: "),
L(),S(3),L());a&2&&(a=P().$implicit,B(3),T(" ",Y(a,WPa,23)," "))},YPa=function(a){a&1&&(K(0,"div")(1,"strong"),S(2,"IsCitable: "),L(),S(3),L());a&2&&(a=P().$implicit,B(3),T(" ",$i(a,14)," "))},ZPa=function(a){a&1&&(K(0,"div")(1,"strong"),S(2,"FilteredByShield: "),L(),S(3),L());a&2&&(a=P().$implicit,B(3),T(" ",$i(a,16)," "))},$Pa=function(a){a&1&&(K(0,"div")(1,"strong"),S(2,"DocId: "),L(),S(3),L());if(a&2){a=P().$implicit;B(3);var b=b===void 0?"0":b;var c;a=(c=Db?Zca(um(a,17,void 0,void 0,$ca)):Zca(um(a,
17),!0))!=null?c:b;T(" ",a," ")}},aQa=function(a){a&1&&(K(0,"div")(1,"strong"),S(2,"Timestamp: "),L(),S(3),L());a&2&&(a=P().$implicit,B(3),T(" ",a.getTimestamp()," "))},bQa=function(a){a&1&&(K(0,"div")(1,"strong"),S(2,"IsSupplementalFact: "),L(),S(3),L());a&2&&(a=P().$implicit,B(3),T(" ",$i(a,20)," "))},dQa=function(a){a&1&&(K(0,"div")(1,"strong"),S(2,"PeregrineSignals: "),L(),S(3),L());a&2&&(a=P().$implicit,B(3),T(" ",Y(a,cQa,32)," "))},eQa=function(a){a&1&&(K(0,"div")(1,"strong"),S(2,"MomaResultMetadata: "),
L(),M(3,"br"),S(4," \u00a0\u00a0"),K(5,"strong"),S(6,"present in docjoin: "),L(),S(7),M(8,"br"),S(9," \u00a0\u00a0"),K(10,"strong"),S(11,"linkUrl: "),L(),S(12),M(13,"br"),S(14," \u00a0\u00a0"),K(15,"strong"),S(16,"icon: "),L(),S(17),M(18,"br"),S(19," \u00a0\u00a0"),K(20,"strong"),S(21,"lastModificationTime: "),L(),S(22),M(23,"br"),S(24," \u00a0\u00a0"),K(25,"strong"),S(26,"DisplayUrl: "),L(),S(27),M(28,"br"),L());if(a&2){var b,c,d,e,f;a=P().$implicit;B(7);Ag((b=Y(a,vm,27))==null?null:$i(b,1));B(5);
Ag((c=Y(a,vm,27))==null?null:Y(c,wm,2));B(5);Ag((d=Y(a,vm,27))==null?null:d.getIcon());B(5);Ag((e=Y(a,vm,27))==null?null:e.getLastModificationTime());B(5);Ag((f=Y(a,vm,27))==null?null:Fi(f,5))}},gQa=function(a){a&1&&(K(0,"div")(1,"strong"),S(2,"ScoringSignals: "),L(),S(3),L());a&2&&(a=P().$implicit,B(3),T(" ",Y(a,fQa,28)," "))},iQa=function(a){a&1&&(K(0,"div")(1,"strong"),S(2,"locationSensitiveScores: "),L(),S(3),L());a&2&&(a=P().$implicit,B(3),T(" ",Y(a,hQa,29)," "))},kQa=function(a){a&1&&(K(0,"div")(1,
"strong"),S(2,"UrlSummarizationMetadata: "),L(),S(3),L());a&2&&(a=P().$implicit,B(3),T(" ",Y(a,jQa,30)," "))},lQa=function(a,b){a&1&&(K(0,"li"),E(1,KPa,4,1,"div",11)(2,LPa,4,1,"div",11)(3,MPa,4,1,"div",11)(4,NPa,4,1,"div",11)(5,OPa,4,1,"div",11)(6,PPa,4,1,"div",11)(7,QPa,4,1,"div",11)(8,SPa,4,1,"div",11)(9,TPa,4,1,"div",11)(10,UPa,4,1,"div",11)(11,VPa,4,1,"div",11)(12,XPa,4,1,"div",11)(13,YPa,4,1,"div",11)(14,ZPa,4,1,"div",11)(15,$Pa,4,1,"div",11)(16,aQa,4,1,"div",11)(17,bQa,4,1,"div",11)(18,dQa,
4,1,"div",11)(19,eQa,29,5,"div",11)(20,gQa,4,1,"div",11)(21,iQa,4,1,"div",11)(22,kQa,4,1,"div",11),L());a&2&&(a=b.$implicit,B(),I("ngIf",a.hasGoogleSearchQuery()),B(),I("ngIf",xm(a,2)),B(),I("ngIf",xm(a,34)),B(),I("ngIf",um(a,3,void 0,void 0,ub)!=null),B(),I("ngIf",ym(a,4)),B(),I("ngIf",ym(a,5)),B(),I("ngIf",xm(a,6)),B(),I("ngIf",Wi(a,RPa,8,Xi()).length>0),B(),I("ngIf",xm(a,9)),B(),I("ngIf",um(a,11,void 0,void 0,ub)!=null),B(),I("ngIf",xm(a,13)),B(),I("ngIf",Si(a,WPa,23)),B(),I("ngIf",Zi(a,14)),B(),
I("ngIf",Zi(a,16)),B(),I("ngIf",(Db?Yca(um(a,17,void 0,void 0,$ca)):Yca(um(a,17)))!=null),B(),I("ngIf",a.hasTimestamp()),B(),I("ngIf",Zi(a,20)),B(),I("ngIf",Si(a,cQa,32)),B(),I("ngIf",Si(a,vm,27)),B(),I("ngIf",Si(a,fQa,28)),B(),I("ngIf",Si(a,hQa,29)),B(),I("ngIf",Si(a,jQa,30)))},mQa=function(a,b){a&1&&(K(0,"li")(1,"div",13)(2,"strong"),S(3,"heading title: "),L(),S(4),M(5,"br"),K(6,"strong"),S(7,"heading url: "),L(),S(8),M(9,"br"),L()());a&2&&(a=b.$implicit,B(4),T(" ",a.getTitle()," "),B(4),T(" ",
a.getUrl()," "))},oQa=function(a){a&1&&(Vf(0),K(1,"mat-expansion-panel")(2,"mat-expansion-panel-header")(3,"mat-panel-title"),S(4," Cited Headings "),L()(),E(5,mQa,10,2,"li",6),L(),Wf());a&2&&(a=P().$implicit,B(5),I("ngForOf",Wi(a,nQa,5,Xi())))},pQa=function(a,b){a&1&&(K(0,"li")(1,"div")(2,"strong"),S(3,"title: "),L(),S(4),M(5,"br"),K(6,"strong"),S(7,"url: "),L(),S(8),M(9,"br"),K(10,"strong"),S(11,"iconUrl: "),L(),S(12),M(13,"br"),K(14,"strong"),S(15,"lastModificationTime: "),L(),S(16),M(17,"br"),
K(18,"strong"),S(19,"isExternalDocument: "),L(),S(20),M(21,"br"),K(22,"strong"),S(23,"isPrivateDocument: "),L(),S(24),M(25,"br"),E(26,oQa,6,1,"ng-container",11),L()());a&2&&(a=b.$implicit,B(4),T(" ",a.getTitle()," "),B(4),T(" ",a.getUrl()," "),B(4),T(" ",a.getIconUrl()," "),B(4),T(" ",a.getLastModificationTime()," "),B(4),T(" ",$i(a,6)," "),B(4),T(" ",a.getIsPrivateDocument()," "),B(2),I("ngIf",Wi(a,nQa,5,Xi()).length>0))},qQa=function(a){a&1&&(Vf(0),K(1,"ul"),E(2,pQa,27,7,"li",6),L(),Wf());if(a&
2){var b;a=P().$implicit;B(2);I("ngForOf",(b=zm(a))==null?null:Am(b))}},rQa=function(a,b){a&1&&(Vf(0),E(1,qQa,3,1,"ng-container",11),Wf());if(a&2){var c;a=b.$implicit;B();I("ngIf",(c=zm(a))==null?null:Am(c))}},sQa=function(a,b){a&1&&(K(0,"mat-tab",12)(1,"div"),E(2,rQa,2,1,"ng-container",6),L()());a&2&&(a=b.ngIf,B(2),I("ngForOf",a))},uQa=function(a,b){a&1&&(K(0,"div")(1,"p",14),S(2,"planner_query: "),L(),K(3,"div",15),S(4),L(),K(5,"p",14),S(6,"planner_status: "),L(),K(7,"div",15),S(8),L(),K(9,"p",
14),S(10,"planner_code: "),L(),K(11,"div",16),S(12),L()());a&2&&(a=b.ngIf,P(2),B(4),Ag(a==null?null:Fi(a,2)),B(4),Ag(tQa(a==null?null:Ri(a,3))),B(4),Ag(a==null?null:Fi(a,1)))},zQa=function(a,b){a&1&&(K(0,"div",1)(1,"mat-tab-group",2)(2,"mat-tab",3)(3,"div")(4,"p"),S(5),L()()(),K(6,"mat-tab",4)(7,"div")(8,"p"),S(9),L()()(),K(10,"mat-tab",5)(11,"div")(12,"ul"),E(13,lQa,23,22,"li",6),L()()(),K(14,"mat-tab",7)(15,"div")(16,"p"),S(17),L()()(),K(18,"mat-tab",8)(19,"div")(20,"p"),S(21),L()()(),E(22,sQa,
3,1,"mat-tab",9),K(23,"mat-tab",10),E(24,uQa,13,3,"div",11),L()()());if(a&2){var c;a=b.ngIf;b=P();B();I("selectedIndex",2);B(4);Ag(a.getModelId());B(4);Ag(Fi(a,3));B(4);var d;(c=Y(a,vQa,4))==null?d=null:(c=Y(c,wQa,2))==null?d=null:d=Wi(c,xQa,1,Xi());I("ngForOf",d);B(4);Ag(Y(a,yQa,5));B(4);Ag(a.getModelOverrideOptions());B();I("ngIf",b.messageData.relatedResources);B(2);I("ngIf",b.messageData.executionMetadata)}},AQa=function(a){a&1&&(K(0,"div",5),S(1," Additional sources URL will be used for analytic purposes only. Content from the URLs will not be used to train the model. "),
L())},BQa=function(a){a&1&&(K(0,"mat-error",12),$f(1,0),L())},EQa=function(a,b){if(a&1){var c=t();K(0,"div",6)(1,"div",8)(2,"mat-form-field",9)(3,"mat-label");S(4,"Add source URL");L();K(5,"input",10);Eg("ngModelChange",function(d){var e=u(c).$index,f=P();Dg(f.rewriteSourcesList[e],d)||(f.rewriteSourcesList[e]=d);return v(d)});L()();K(6,"button",11);N("click",function(){var d=u(c).$index,e=P();e.rewriteSourcesList.splice(d,1);e.rewriteSourcesList.length===0&&e.rewriteSourcesList.push("");return v()});
K(7,"mat-icon");S(8," close ");L()()();F(9,BQa,2,0,"mat-error",12);L()}a&2&&(a=b.$index,b=P(),B(5),I("name",Gg("source_",a)),Cg("ngModel",b.rewriteSourcesList[a]),B(),I("disabled",b.rewriteSourcesList.length===1&&!CQa(b.rewriteSourcesList[a])),B(3),G(DQa(b,b.rewriteSourcesList[a])?-1:9))},FQa=function(a){a&1&&Xf(0,null,0)},GQa=function(a){a&1&&M(0,"source-urls-form",2,1);a&2&&(a=P(),I("showWarning",a.showWarning()))},IQa=function(a,b){a&1&&(K(0,"mat-chip-option",8),S(1),L());a&2&&(a=b.$implicit,b=
P(),I("value",a)("selected",b.selectedReasons.includes(a)),B(),T(" ",HQa.get(a)," "))},JQa=function(a){if(a&1){var b=t();K(0,"p",5);S(1,"Additional feedback");L();K(2,"mat-form-field",14)(3,"mat-label");S(4,"Share what could be improved in the response");L();K(5,"textarea",15,1);Eg("ngModelChange",function(c){u(b);var d=P(2);Dg(d.otherReason,c)||(d.otherReason=c);return v(c)});L()()}a&2&&(a=P(2),B(5),Cg("ngModel",a.otherReason))},KQa=function(a){a&1&&M(0,"source-urls-form-wrapper",13,2);a&2&&I("showWarning",
!0)},LQa=function(a){a&1&&F(0,JQa,7,1)(1,KQa,2,1,"source-urls-form-wrapper",13);a&2&&(a=P(),G(a.sessionDeletionEnabled||!a.hasPrivateContent()?0:1))},MQa=function(a){a&1&&(K(0,"mat-error",10),$f(1,3),L());a&2&&(B(),ag("*Please select some reasons or provide other feedback."),qna(28))},NQa=function(a){a&1&&Xf(0,null,0)},OQa=function(a){if(a&1){var b=t();K(0,"feedback-reasons-form",2);N("close",function(){u(b);var c=P();return v(c.close.emit())})("submit",function(c){u(b);var d=P();return v(d.submit.emit(c))});
L()}a&2&&(a=P(),I("messageData",a.messageData())("hasPrivateContent",a.hasPrivateContent()))},PQa=function(a){a&1&&(K(0,"div",2)(1,"span",4),S(2),L()());a&2&&(a=P(),B(2),T(" ",a.confirmationMessage," "))},QQa=function(a){if(a&1){var b=t();K(0,"feedback-reasons-form-wrapper",5);U(1,"async");N("close",function(){u(b);P().showReasonsForm=!1;return v()})("submit",function(c){u(b);var d=P();d.showReasonsForm=!1;d.provideFeedback(!1,c);return v()});L()}a&2&&(a=P(),I("messageData",a.messageData())("hasPrivateContent",
W(1,2,a.hasPrivateContent$)))},RQa=function(a){a&1&&Xf(0,null,0)},SQa=function(a){a&1&&M(0,"feedback-with-rewrite",1);a&2&&(a=P(),I("messageData",a.messageData()))},TQa=function(a){a&1&&Xf(0,null,0)},UQa=function(a){a&1&&M(0,"interactive-elements",1);a&2&&(a=P(),I("interactiveElements",a.interactiveElements()))},VQa=function(a){if(a&1){var b=t();K(0,"div",2);S(1," Your protected results are used in this response. This is visible only to you. You may opt-out of this feature in settings. ");K(2,"div",
3)(3,"button",4);N("click",function(){u(b);var c=P();return v(c.openUserPrivacySettingsDialog())});S(4,"Settings");L()()()}},WQa=function(a){a&1&&(K(0,"mat-icon",2),S(1,"note"),L())},XQa=function(a){a&1&&M(0,"img",3);a&2&&(a=P().$implicit,I("src",Fg(a.getIconUrl()),Me))},YQa=function(a){a&1&&(K(0,"div",5)(1,"mat-icon",6),S(2,"public"),L(),K(3,"span"),S(4,"External"),L()())},ZQa=function(a){a&1&&M(0,"private-citation-chip-tooltip")},aRa=function(a,b){if(a&1){var c=t();K(0,"div",1);F(1,WQa,2,0,"mat-icon",
2)(2,XQa,1,2,"img",3);K(3,"a",4);N("click",function(){var d=u(c).$implicit,e=P(2);return v($Qa(e,d))});S(4);L();F(5,YQa,5,0,"div",5);F(6,ZQa,1,0,"private-citation-chip-tooltip");L()}a&2&&(a=b.$implicit,b=P(2),B(),G($i(a,6)?1:a.getIconUrl()?2:-1),B(2),I("href",Fg(a.getUrl()),Me)("ve",b.ve.DuckieChatResponseCitationLink)("veClick",!0)("veImpression",!0),B(),T("",a.getTitle()||a.getUrl()," "),B(),G($i(a,6)?5:-1),B(),G(a.getIsPrivateDocument()?6:-1))},bRa=function(a){a&1&&(K(0,"div",0),S(1," Sources "),
L(),Pf(2,aRa,7,9,"div",1,Of));a&2&&(a=P(),B(2),Qf(a.citedNonRecitationDocuments()))},dRa=function(a,b){if(a&1){var c=t();K(0,"li",8)(1,"div",9)(2,"a",4);N("click",function(){var d=u(c).$implicit,e=P(2);return v($Qa(e,d))});S(3);L()()()}a&2&&(a=b.$implicit,b=P(2),B(2),I("href",Fg(a.getUrl()),Me)("ve",b.ve.DuckieChatResponseCitationLink)("veClick",!0)("veImpression",!0),B(),T("",cRa(a)," "))},eRa=function(a){a&1&&(K(0,"div",0),S(1," Licensed Sources "),L(),K(2,"ol",7),Pf(3,dRa,4,6,"li",8,Of),L());a&
2&&(a=P(),B(3),Qf(a.recitationSources()))},fRa=function(a){a&1&&Xf(0,null,0)},gRa=function(a){a&1&&M(0,"message-citations",1);a&2&&(a=P(),I("messageData",a.messageData()))},hRa=function(a){a&1&&(M(0,"mat-progress-spinner",8),K(1,"span"),S(2),U(3,"async"),L());a&2&&(a=P(3),I("diameter",16),B(2),Ag(W(3,2,a.duckieLoadingPhrase$)))},iRa=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(2),B(),T("",a.isExpanded?"Hide":"Show"," thinking"))},jRa=function(a){a&1&&Xf(0)},lRa=function(a){if(a&1){var b=t();
K(0,"div",2)(1,"p",3)(2,"button",4);N("click",function(){u(b);var e=P(),f=P(),g=e.id;e.isExpanded=!e.isExpanded;var k=f.messagePartsService,m=e.id;k.expansionStates.set(m,!k.isExpanded(m));e.isExpanded=f.messagePartsService.isExpanded(e.id);mm(f.duckieEventTrackerService,nm((new om).setMessageId(f.messageId())),293476);var r;(r=f.messagePartsElement.querySelector("#part-"+g))==null||r.classList.toggle("hidden");e=f.messagePartsElement.querySelector("button.part-"+g);e==null||e.classList.toggle("is-expanded");
e==null||e.setAttribute("aria-expanded",(e==null?0:e.classList.contains("is-expanded"))?"true":"false");return v()});F(3,hRa,4,4);U(4,"async");Mf(5,iRa,2,1,"span");K(6,"mat-icon",5);S(7);L()()();K(8,"div",6);E(9,jRa,1,0,"ng-container",7);L()()}if(a&2){a=P();var c=P(),d=Q(3);B(2);Jf("aria-expanded",a.isExpanded);B();G(c.experimentsService.duckieStreamingMvpEnabled&&W(4,10,c.isStreamingThoughts$)?3:5);B(4);Ag(a.isExpanded?"expand_less":"expand_more");B();yg("hidden",!a.isExpanded)("padded-s",a.isExpanded);
Jf("aria-hidden",!a.isExpanded);B();I("ngTemplateOutlet",d)("ngTemplateOutletContext",Kg(12,kRa,a.hiddenMessageParts))}},mRa=function(a){a&1&&Xf(0)},nRa=function(a){a&1&&E(0,mRa,1,0,"ng-container",7);if(a&2){a=P();P();var b=Q(3);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,kRa,a.hiddenMessageParts))}},oRa=function(a,b){a&1&&F(0,lRa,10,14,"div",2)(1,nRa,1,4,"ng-container");a&2&&(a=P(),G(a.experimentsService.displayDuckieThoughtsEnabled?0:b.hasAnyThought?-1:1))},pRa=function(a){a&1&&Xf(0)},
rRa=function(a){a&1&&E(0,pRa,1,0,"ng-container",7);if(a&2){a=P().$implicit;P(2);var b=Q(5);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,qRa,a))}},sRa=function(a,b){a&1&&(M(0,"span",9),F(1,rRa,1,4,"ng-container"));a&2&&(a=b.$implicit,I("innerHtml",a.html,Le),B(),G(a.functionCalls.length>0?1:-1))},tRa=function(a,b){a&1&&Pf(0,sRa,2,2,null,null,Of);a&2&&Qf(b.parts)},uRa=function(a,b){a&1&&(K(0,"div",15)(1,"span",16),S(2),L(),K(3,"span",17),S(4),L()());a&2&&(a=b.$implicit,B(2),T("",a[0],":"),
B(2),Ag(a[1]))},vRa=function(a,b){a&1&&(K(0,"div",11)(1,"p",12)(2,"span",13),S(3),L(),S(4," was called with:"),L(),K(5,"div",14),Pf(6,uRa,5,2,"div",15,Of),L()());a&2&&(a=b.$implicit,B(3),Ag(a.name),B(3),Qf(a.args))},wRa=function(a,b){a&1&&(K(0,"div",10),Pf(1,vRa,8,1,"div",11,Of),L());a&2&&(a=b.part,B(),Qf(a.functionCalls))},xRa=function(a){a&1&&Xf(0,null,0)},yRa=function(a){a&1&&M(0,"message-parts",1);a&2&&(a=P(),I("executionMetadata",a.executionMetadata())("messageId",a.messageId())("hasRedactions",
a.hasRedactions())("shouldExpand",a.shouldExpand())("isStreamingThoughts",a.isStreamingThoughts()))},zRa=function(a){a&1&&M(0,"img",0);a&2&&(a=P(),I("src",a.avatarUrl,Me))},ARa=function(a){a&1&&M(0,"img",12);if(a&2){a=P();yg("custom-logo",!!a.agentIconUrl());var b;I("src",(b=a.agentIconUrl())!=null?b:"https://www.gstatic.com/devnotify/duckie256.png",Me)}},BRa=function(a){a&1&&S(0," You ")},CRa=function(a){a&1&&S(0);if(a&2){a=P();var b;T(" ",(b=a.agentDisplayName())!=null?b:"Duckie"," ")}},DRa=function(a){a&
1&&(K(0,"div",5)(1,"mat-icon",13),S(2," warning "),L(),S(3," Contains licensed content, use with caution "),K(4,"a",14)(5,"mat-icon",15),S(6,"open_in_new"),L(),S(7," View usage policy "),L()())},ERa=function(a){a&1&&M(0,"interactive-elements-wrapper",8);a&2&&(a=P(2),I("interactiveElements",a.messageData().interactiveElements))},FRa=function(a,b){a&1&&(M(0,"div",16),F(1,ERa,1,1,"interactive-elements-wrapper",8));a&2&&(a=P(),I("innerHtml",b,Le),B(),G(a.messageData().interactiveElements&&a.messageData().interactiveElements.length>
0?1:-1))},GRa=function(a){a&1&&(K(0,"p",6),S(1," Responses were not retained because protected results were used in this thread. "),L())},HRa=function(a){a&1&&(K(0,"div",7),S(1),L());a&2&&(a=P(),B(),T(" ",a.messageData().text," "))},IRa=function(a){a&1&&M(0,"interactive-elements-wrapper",8);a&2&&(a=P(),I("interactiveElements",a.messageData().interactiveElements))},JRa=function(a){a&1&&M(0,"typing-dots");a&2&&(a=P(),yg("use-compact-view",a.useCompactView()))},KRa=function(a){a&1&&(K(0,"p",10),S(1,
" No response available, please retry. "),L())},LRa=function(a){a&1&&M(0,"message-citations-wrapper",17);a&2&&(a=P(2),I("messageData",a.messageData()))},MRa=function(a){a&1&&M(0,"message-metadata",17);a&2&&(a=P(2),I("messageData",a.messageData()))},NRa=function(a){a&1&&(F(0,LRa,1,1,"message-citations-wrapper",17),F(1,MRa,1,1,"message-metadata",17),U(2,"async"));a&2&&(a=P(),G(a.messageData().isFallback?-1:0),B(),G(W(2,2,a.showResponseMetadata$)?1:-1))},ORa=function(a){a&1&&M(0,"feedback-with-rewrite-wrapper",
17);a&2&&(a=P(2),I("messageData",a.messageData()))},QRa=function(a){if(a&1){var b=t();K(0,"div",11);F(1,ORa,1,1,"feedback-with-rewrite-wrapper",17);K(2,"button",18);N("click",function(){u(b);var c=P();return v(PRa(c))});K(3,"mat-icon");S(4,"content_copy");L()()()}a&2&&(a=P(),B(),G(a.messageData().isUser?-1:1))},RRa=function(a){a&1&&Xf(0,null,0)},SRa=function(a){a&1&&M(0,"message",1);a&2&&(a=P(),I("messageData",a.messageData())("useCompactView",a.useCompactView())("isDuckieThinking",a.isDuckieThinking()))},
TRa=function(a){a&1&&Xf(0,null,0)},URa=function(a){if(a&1){var b=t();K(0,"session-helpful-button",2);N("closeButton",function(c){u(b);var d=P();return v(d.closeButton.emit(c))})("messageFeedbackUpdate",function(c){u(b);var d=P();return v(d.messageFeedbackUpdate.emit(c))});L()}a&2&&(a=P(),I("messageData",a.messageData()))},VRa=function(a){a&1&&(Sf(0,"div",0),Uf(1,"img",1),S(2),Tf());a&2&&(a=P(),B(),Rf("src",a.config.imgSrc,Me)("alt",a.config.imgAlt),B(),T(" ",a.config.title," "))},WRa=function(a){a&
1&&Xf(0,null,0)},XRa=function(a){a&1&&M(0,"thread-source-header",1);a&2&&(a=P(),I("thread",a.thread()))},YRa=function(a){a&1&&M(0,"mat-progress-spinner",1);a&2&&I("diameter",32)},ZRa=function(a){a&1&&(K(0,"span",21)(1,"button",22)(2,"mat-icon",11),S(3,"edit"),L()()(),M(4,"private-content-tooltip"));a&2&&(I("matTooltipDisabled",!1),Jf("tabIndex",0),B(),I("disabled",!0))},aSa=function(a){if(a&1){var b=t();K(0,"button",23);N("click",function(){u(b);var c=P(4);return v($Ra(c))});K(1,"mat-icon",11);S(2,
"edit");L()()}},bSa=function(a){a&1&&(F(0,ZRa,5,3),U(1,"async"),Mf(2,aSa,3,0,"button",20));if(a&2){var b;a=P(3);G((b=W(1,1,a.hasPrivateContent$))?0:2,b)}},cSa=function(a){a&1&&(K(0,"mat-chip-option",8),S(1," Big Bird "),L())},dSa=function(a){a&1&&(K(0,"mat-chip-option",8),S(1," Agentic Search "),L())},eSa=function(a){a&1&&(K(0,"div",13)(1,"mat-icon",24),S(2," warning "),L(),S(3," This thread used a deprecated model and cannot be continued. Please start a new thread to interact with Duckie. "),L())},
fSa=function(a,b){a&1&&M(0,"link-chip",26);a&2&&(a=b.$implicit,I("label",a.label)("iconUrl",a.imgSrc)("linkUrl",a.fullUrl)("matTooltip",a.fullUrl))},gSa=function(a){a&1&&(K(0,"div",27),S(1),L());if(a&2){a=P(4);var b=dg(0);B();T("+",b.length-a.maxVisibleUserProvidedContextCount)}},hSa=function(a){if(a&1){var b=t();K(0,"div",14)(1,"p",25);S(2);L();Pf(3,fSa,1,4,"link-chip",26,Nf);F(5,gSa,2,1,"div",27);M(6,"div",28);K(7,"button",29);N("click",function(){u(b);var d=P(3);d.showExpandedContext=!d.showExpandedContext;
return v()});K(8,"mat-icon",11);S(9);L()()()}if(a&2){a=P(3);var c=dg(0);B(2);T(" Context (",c.length,") ");B();Qf(c.slice(0,a.maxVisibleUserProvidedContextCount));B(2);G(c.length>a.maxVisibleUserProvidedContextCount?5:-1);B(2);Jf("aria-expanded",a.showExpandedContext);B(2);T(" ",a.showExpandedContext?"expand_less":"expand_more"," ")}},iSa=function(a){a&1&&(K(0,"div",15)(1,"mat-icon",30),S(2," warning "),L(),S(3," This thread is using an experimental Duckie agent. "),L());a&2&&(P(2),a=dg(0),B(),I("matTooltip",
Hg("",a.conversationAgentId,", ",a.conversationAgentModelId)))},jSa=function(a){a&1&&(K(0,"div",16)(1,"mat-icon",11),S(2,"incognito"),L(),K(3,"span"),S(4,"Incognito mode enabled. All threads will be deleted on closing this tab or window."),L(),M(5,"span",28),K(6,"a",31),S(7," Learn more "),L()())},kSa=function(a,b){a&1&&(K(0,"div",32),M(1,"img",33),K(2,"a",34),S(3),L()());a&2&&(a=b.$implicit,B(),I("src",Fg(a.imgSrc),Me),B(),I("href",Fg(a.fullUrl),Me),B(),Ag(a.fullUrl))},lSa=function(a){a&1&&(K(0,
"div",17),Pf(1,kSa,4,5,"div",32,Nf),L());a&2&&(P(3),a=dg(0),B(),Qf(a))},mSa=function(a){a&1&&(K(0,"div",18),M(1,"big-bird-outage-wrapper"),L())},nSa=function(a){a&1&&M(0,"private-content-divider-tooltip")},oSa=function(a,b){a&1&&(F(0,nSa,1,0,"private-content-divider-tooltip"),U(1,"async"));if(a&2){a=P().$index;var c=P(3);G(c.sessionDeletionEnabled||a!==b||W(1,1,c.isIncognitoMode$)?-1:0)}},pSa=function(a,b){a&1&&(F(0,oSa,2,3),U(1,"async"),M(2,"message-wrapper",35),U(3,"async"));if(a&2){var c;a=b.$implicit;
b=P(3);G((c=W(1,4,b.firstPrivateContentMessageIndex$))?0:-1,c);B(2);I("messageData",a)("useCompactView",b.useCompactView())("isDuckieThinking",!!W(3,6,b.threadService.isDuckieThinking$))}},sSa=function(a){if(a&1){var b=t();K(0,"div",4);M(1,"thread-source-header-wrapper",5);K(2,"div",6)(3,"div",7)(4,"span");S(5);L();F(6,bSa,3,3);U(7,"async");K(8,"mat-chip-listbox");F(9,cSa,2,0,"mat-chip-option",8);F(10,dSa,2,0,"mat-chip-option",8);L();K(11,"div",9)(12,"button",10)(13,"mat-icon",11);S(14,"share");L()();
K(15,"mat-menu",null,0)(17,"button",12);N("click",function(){u(b);var f=P(2);return v(qSa(f))});S(18,"Copy conversation as markdown");L()()()()();F(19,eSa,4,0,"div",13);F(20,hSa,10,4,"div",14);F(21,iSa,4,3,"div",15);F(22,jSa,8,0,"div",16);U(23,"async");F(24,lSa,3,0,"div",17);L();F(25,mSa,2,0,"div",18);K(26,"div",19);Pf(27,pSa,4,8,null,null,rSa);L()}if(a&2){a=Q(16);P();var c=dg(0),d=P(),e=dg(0);B();I("thread",c);B(4);T(" ",c.title," ");B();G(W(7,12,d.isIncognitoMode$)?-1:6);B(3);G(c.conversationAgentModelId===
d.M_DUCKIE_AGENT_INFO.modelId||c.conversationAgentModelId===d.DYNAMIC_DUCKIE_M_AGENT_INFO.modelId?9:-1);B();G(c.conversationAgentModelId===d.DYNAMIC_DUCKIE_AGENT_INFO.modelId||c.conversationAgentModelId===d.DYNAMIC_DUCKIE_M_AGENT_INFO.modelId?10:-1);B(2);I("matMenuTriggerFor",a);B(7);G(c.sessionState===d.SESSION_STATE_DEPRECATED?19:-1);B();G(e&&e.length>0?20:-1);B();G(c.conversationAgentId&&d.showExperimentalAgentBanner?21:-1);B();G(W(23,14,d.isIncognitoMode$)?22:-1);B(2);G(d.showExpandedContext?
24:-1);B();G(d.duckieBigBirdOutageEnabled&&d.showBigBirdOutageBanner?25:-1);B(2);Qf(c==null?null:c.messages)}},tSa=function(a){a&1&&(bg(0),U(1,"async"),F(2,sSa,29,16));a&2&&(a=cg(W(1,1,P().thread$)),B(2),G(a?2:-1))},vSa=function(a){if(a&1){var b=t();K(0,"session-helpful-button-wrapper",36);U(1,"async");N("closeButton",function(){u(b);P().shouldShowSessionHelpfulButton=!1;return v()})("messageFeedbackUpdate",function(c){u(b);var d=P();return v(uSa(d,c))});L()}a&2&&(a=P(),I("messageData",W(1,1,a.lastDuckieMessage$)))},
wSa=function(a){a&1&&Xf(0,null,0)},xSa=function(a){a&1&&M(0,"thread",3);a&2&&(a=P(),I("useCompactView",a.useCompactView())("inputPlaceholder",a.inputPlaceholder()))},ySa=function(a){if(a&1){var b=t();K(0,"div",1);N("click",function(){u(b);var c=P();return v(c._onBackdropClicked())});L()}a&2&&(a=P(),yg("mat-drawer-shown",a._isShowingBackdrop()))},zSa=function(a){a&1&&(K(0,"mat-drawer-content"),gg(1,2),L())},ASa=function(a){if(a&1){var b=t();K(0,"div",1);N("click",function(){u(b);var c=P();return v(c._onBackdropClicked())});
L()}a&2&&(a=P(),yg("mat-drawer-shown",a._isShowingBackdrop()))},BSa=function(a){a&1&&(K(0,"mat-sidenav-content"),gg(1,2),L())},CSa=function(a){a&1&&M(0,"onboarding-wrapper",1);a&2&&(a=P(),I("configurationKey",a.configurationKey))},DSa=function(a){a&1&&M(0,"thread-wrapper",2);a&2&&I("useCompactView",!0)},ESa=function(a){var b=a,c;return function(){if(b){var d=b;b=void 0;c=d.apply(this,arguments)}return c}},Cm=function(a){return new Bm(a.year,a.month-1,a.day)},FSa=function(a){return{month:a.getMonth()+
1,day:a.getDate(),year:a.getFullYear()}},GSa=function(a){return!(!a||a.day==null||a.month==null||a.year==null)},HSa=function(a,b){if(a&&b){var c=l(b.split(":"));b=c.next().value;c=c.next().value;return new Dm(a.getFullYear(),a.getMonth(),a.getDate(),Number(b),Number(c))}},ISa=function(a,b){return a.size!==b.size?!1:[].concat(n(a)).every(function(c){return b.has(c)})},JSa=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},
KSa=function(a,b){if(!ISa(a,b)){var c=[].concat(n(b)).filter(function(e){return!a.has(e)}),d=[].concat(n(a)).filter(function(e){return!b.has(e)});return{added:c,removed:d}}},LSa=function(a,b){var c=a.size>b.size?a:b;return new Set([].concat(n(a===c?b:a)).filter(function(d){return c.has(d)}))},MSa=function(a,b){return a.size>=b.size&&[].concat(n(b)).every(function(c){return a.has(c)})},Gm=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(!Gm(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?ISa(a,b):!1;if(th(a)||th(b))return th(a)&&th(b)?a===b||a.toString()===b.toString():!1;if(a instanceof X||b instanceof X)return a instanceof X&&b instanceof X?NSa(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(!OSa.call(b,f)||!Gm(a[f],b[f]))return!1}return!0}return!1},PSa=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(Gm(c,f.value)){d=!0;break}d||b.push(c)}return b},QSa=function(a,b){for(var c=a.length-1;c>=0;c--)Gm(a[c],b)&&a.splice(c,1)},RSa=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},TSa=function(a){return Object.assign.apply(Object,[{}].concat(n(SSa.map(function(b){var c={};return c[b]=a[b],c}))))},Hm=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(Hm(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(Hm(c),Hm(d))}a=b}else if(a instanceof Set){b=new Set;a=l(a);for(c=a.next();!c.done;c=a.next())b.add(Hm(c.value));a=b}else if(!th(a))if(a instanceof X)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]=Hm(e)}Object.setPrototypeOf(b,Object.getPrototypeOf(a));a=b}return a},USa=function(a){return typeof a==="number"},VSa=function(a){return typeof a==="string"},Im=function(a){return Array.isArray(a)&&a.every(VSa)},WSa=function(a){return Array.isArray(a)&&a.every(USa)},XSa=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},YSa=function(a){return a.toLowerCase().replace(/_([a-z])/g,
function(b,c){return c.toUpperCase()})},ZSa=function(a){if(a){if(USa(a)){var b=new Date(a);b.getFullYear()>47E3&&(b=new Date(a/1E3));return new Bm(b)}b=a.split("/");if(b.length===3)return a=Jm(b[2]),a<50?a+=2E3:a<100&&(a+=1900),new Bm(a,Jm(b[0])-1,Jm(b[1]));if(b.length===1)return ZSa(Number(a))}return new Bm},$Sa=function(a){return a.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"")},aTa=function(a){return!(!a||!a.startsWith("text/")&&!a.startsWith("image/")&&a!=="application/pdf")},bTa=function(a,b){return a.map(function(c){return c[b]})},
cTa=function(a,b){return a.filter(function(c){return!b.has(c)})},dTa=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},Km=function(a,b){return cTa(a,new Set(b))},eTa=function(a,b){var c=/[,;]/;(b===void 0||b)&&(c=/[\s,;]/);return a.split(c).map(Aa).filter(function(d){return!!d})},fTa=function(a,b){a=new URL(a);return a.host+a.pathname+b},Lm=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},Mm=function(a){a=Lm(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},gTa=function(a){return a?FSa(ZSa(a)):null},hTa=function(a){return a?(a=Nm(a),isNaN(a)?null:a):null},jTa=function(a){return iTa.format(Cm(a))},kTa=function(a){return a.textValue!=null?a.textValue:a.dateValue!=
null?jTa(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(jTa).join(", "):a.repeatedEnumValue!=null?a.repeatedEnumValue.values.join(", "):a.repeatedNumericValue!=null?a.repeatedNumericValue.values.map(String).join(", "):""},lTa=function(a){switch(a){case "P0":case "P1":case "P2":case "P3":case "P4":return a;default:return null}},mTa=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}},nTa=function(a){switch(a){case "S0":case "S1":case "S2":case "S3":case "S4":return a;default:return null}},oTa=function(a){return a.user!==void 0},pTa=function(a){switch(a){case "public_non_google":return"Public (non-google.com)";case "googlers_unrestricted":return"Full-time Googlers";default:return xj(a.replace(/_/g," ").toLowerCase())}},qTa=function(a){if(!a)return!1;a=a.userGaiaStatus;return!a||a==="ACTIVE"||a==="UNSPECIFIED"},Pm=function(a){return a?a.map(Om):[]},Qm=function(a){a=
(a!=null?a:[]).map(function(b){return{sortKey:Om(b),user:b}});a.sort(function(b,c){return b.sortKey.localeCompare(c.sortKey)});return a.map(function(b){return b.user})},Om=function(a){return a?a.userGaiaStatus==="DELETED"?"[Deleted User]":a.userGaiaStatus==="UNAVAILABLE"?"[Unavailable User]":qTa(a)?Rm(a)||"[No Data]":"[No Data]":""},Rm=function(a){if(a)return a.emailAddress||a.obfuscatedEmailAddress||""},Sm=function(a){return a?{emailAddress:a.trim(),userGaiaStatus:"ACTIVE"}:null},rTa=function(a){var b=
[];a=l(a);for(var c=a.next();!c.done;c=a.next())b.push(Sm(c.value));return b},Tm=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""}},Vm=function(a,b,c,d){var e;return{status:a,displayValue:(e=Um.get(a))!=null?e:"",open:b,assigneeRequirement:c,sortOrder:d}},DTa=function(){return[sTa,tTa,uTa,vTa,wTa,xTa,yTa,zTa,ATa,BTa,CTa]},ETa=function(a){var b=a.getId(),c=Wm(a,3,void 0,fb);var d=Xm(a,2,Xi(),fb);a=Ym(a,4,Xi(),fb);return Qk({id:b,std_offset:c,names:d,transitions:a||[]})},dn=function(a){var b=a.emailAddress,
c=a.obfuscatedEmailAddress,d=a.aliases;a=a.userGaiaStatus;var e=new Zm;b&&$m(e,1,b);c&&$m(e,2,c);(d==null?0:d.length)&&an(e,4,d);if(a)switch(a){case "UNSPECIFIED":cn(e,3,0);break;case "ACTIVE":cn(e,3,1);break;case "DELETED":cn(e,3,2);break;case "UNAVAILABLE":cn(e,3,3);break;default:sb(a)}return e},fn=function(a){var b={},c=a.getEmailAddress();c&&(b.emailAddress=c);if(c=Fi(a,2))b.obfuscatedEmailAddress=c;c=Ri(a,3);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("ed`"+c);}a=Xm(a,4,Xi(en));if(a==null?0:a.length)b.aliases=a;return b},gn=function(a){if(a!=null&&(a=String(a),a.trim()!==""))return a=Number(a),isNaN(a)?void 0:a},hn=function(a){if(a!=null)return String(a)},jn=function(a){if(a!=null&&a!=="0"&&(typeof a!=="number"||Number.isInteger(a)&&!(a<=0)))return String(a)},kn=function(a){return a==null?void 0:a},FTa=function(){return function(a){return a==null?"<none>":a}},ln=function(a){return a!=
null},GTa=function(a){if(a!=null)return a/1E3},JTa=function(a){var b=a.getTrackerId_asString(),c=a.getName(),d=a.getComponentId_asString(),e=mn(a,4);var f=Y(a,HTa,6);f=f!=null?{logoUrl:f.getLogoUrl(),cocUrl:Fi(f,3),theme:ITa[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:Wi(a,Zm,10,Xi()).length>0?Wi(a,Zm,10,Xi()).map(fn):void 0}},
KTa=function(a){return JTa(a.getIt())},LTa=function(a){return a.getIt().getTrackersList().map(JTa)},MTa=function(a){return{trackers:a.getIt().getTrackersList().map(JTa),nextPageToken:a.getIt().getNextPageToken(),totalSize:a.getIt().getTotalSize()}},NTa=function(a){return console==null?!1:typeof console[a]==="function"},nn=function(){NTa("debug")&&console.debug.apply(console,Yc.apply(0,arguments))},on=function(){NTa("info")&&console.info.apply(console,Yc.apply(0,arguments))},OTa=function(){NTa("log")&&
console.log.apply(console,Yc.apply(0,arguments))},pn=function(){NTa("warn")&&console.warn.apply(console,Yc.apply(0,arguments))},PTa=function(){NTa("error")&&console.error.apply(console,Yc.apply(0,arguments))},rn=function(a){if(a!=null)return qn(a)},qn=function(a){return Jb(a)?Number(a):String(a)},QTa=function(a){if(a!=null){var b=a.getYear();if(b==null)pn("No year. dateToJs");else{var c=a.getDay();if(c==null)pn("No day. dateToJs");else if(a=a.getMonth(),a==null)pn("No month. dateToJs");else return{year:b,
day:c,month:a}}}},RTa=function(a){var b=new qm;sn(b,3,a.day);b.setMonth(a.month);b.setYear(a.year);return b},tn=function(a){if(a!=null){var b=qn(a.getSeconds());a=a.getNanos();return{seconds:b,nanos:a}}},un=function(a){var b=new nj;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},STa=function(a){var b=new vn;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},TTa=function(a){if(a!=null){var b=qn(a.getSeconds());a=a.getNanos();return{seconds:b,nanos:a}}},UTa=function(a){if(a!=null)return Number(a.toDate())},
wn=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 un({seconds:a,nanos:b})},VTa=function(a){return tn(wn(a*1E3))},xn=function(a){if(!a)return 0;a=qn(a.getSeconds())*1E9+a.getNanos();return Math.round(a/1E3)},WTa=function(a){return a?a==="ASCENDING"?"asc":"desc":""},yn=function(a,b,c){return function(d,e){e=e===void 0?c:e;return XTa(d,a,b,e)}},XTa=function(a,b,c,d){return d?[].concat(n(a)).sort(function(e,f){var g=d==="ASCENDING"?
1:-1;return c(b(e),b(f))*g}):[].concat(n(a))},zn=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},An=function(a,b){return a==null||b==null?a==null&&b==null?0:a==null?1:b==null?-1:0:a.localeCompare(b)},sUa=function(a){var b={};Zi(a,1)&&(b.showFullHistory=$i(a,1));Zi(a,2)&&(b.useCodefont=$i(a,2));Bn(a,5)&&(b.resultsPerPage=Wm(a,5));Zi(a,26)&&(b.showRecentEventsFirst=$i(a,26));var c=a.getDisplayColumns();c&&(b.displayColumns=
{column:c.getColumnList().map(YTa).filter(ln)});if(c=a.getSortColumns())b.sortColumns={column:c.getColumnList().map(ZTa).filter(ln)};xm(a,7)&&(b.bannerMessageId=Fi(a,7));if(c=Y(a,$Ta,3)){var d={};ym(c,1)&&(d.reportedPriority=Cn(Ri(c,1)));ym(c,2)&&(d.assignedPriority=Cn(Ri(c,2)));ym(c,3)&&(d.verifiedPriority=Cn(Ri(c,3)));ym(c,4)&&(d.ccdPriority=Cn(Ri(c,4)));ym(c,9)&&(d.collaboratorPriority=Cn(Ri(c,9)));ym(c,5)&&(d.starredPriority=Cn(Ri(c,5)));Zi(c,6)&&(d.excludeChangesByMe=$i(c,6));Zi(c,7)&&(d.unsubscribeFromAll=
$i(c,7));Zi(c,8)&&(d.enableV2Prefs=$i(c,8));b.notificationPreferences=d}if(d=Y(a,aUa,9)){c={showHotlists:$i(d,1),showStatusIcons:$i(d,4),wrapComponents:$i(d,3),wrapTitles:$i(d,2),rtlComponentPath:$i(d,5)};var e=rc(d,6,Rb);c.fieldStatus=Object.fromEntries(e.entries());d=rc(d,7,Rb);c.modeForField=Object.fromEntries(d.entries());b.listViewPreferences=c}if(c=a.getLayoutPreferences())d={},Bn(c,1)&&(d.leftSidebarWidth=Wm(c,1)),Zi(c,2)&&(d.expandIssueSlo=$i(c,2)),Bn(c,3)&&(d.rightSidebarWidth=Wm(c,3)),b.layoutPreferences=
d;if(d=a.getDateTimePreferences())c={},xm(d,1)&&(c.calendarFormat=Fi(d,1)),xm(d,2)&&(c.timeFormat=Fi(d,2)),d.hasTimeZone()&&(c.timeZone=d.getTimeZone()),ym(d,7)&&(d=Ri(d,7),c.sloEtaViewAs=bUa[d]),b.dateTimePreferences=c;if(d=Y(a,Dn,8))c={},ym(d,1)&&(d=d.getDensity(),c.density=cUa[d]),b.themePreferences=c;if(c=a.getHomepagePreferences())d={},ym(c,1)&&(d.resourceType=dUa(Ri(c,1,1))),Lb(um(c,2))!=null&&(d.resourceId=En(c,2)),b.homepagePreferences=d;if(c=Y(a,eUa,17))d={},Zi(c,1)&&(d.enableAllHotkeys=
$i(c,1,!0)),b.keyboardPreferences=d;Lb(um(a,16))!=null&&(b.newFeaturesAcknowledgedMillis=En(a,16));Zi(a,18)&&(b.autoCcOnComment=$i(a,18));Si(a,fUa,33)&&(e=Y(a,fUa,33),c=Ri(e,3),d=Ri(e,2),e=Ri(e,1),b.commentFormattingPreferences={commentCreateOverride:gUa(c),commentDisplayOverride:gUa(d),lastPublishMode:gUa(e)});Si(a,hUa,21)&&(c=Y(a,hUa,21),d={},Zi(c,2)&&(d.announcementDismissed=$i(c,2)),Zi(c,1)&&(d.enableBugScreensaver=$i(c,1)),b.bugScreensaverPreferences=d);Si(a,iUa,24)&&(c=Y(a,iUa,24),d={},Gn(c,
1)&&(d.announcementDismissedMillis=qn(Hn(c,1))),b.g3nPreferences=d);if(c=Y(a,jUa,23))c=Wi(c,In,1,Xi()),b.teamWarningPreferences={componentTeamWarnings:c.map(kUa)};c=sc(a,25,nj,Rb);c.size&&(b.dismissalTimestamps=lUa(c));c=a.getCollapsedMap();c.size&&(b.collapsed=Object.fromEntries(c.entries()));Zi(a,29)&&(b.showInlineImages=a.getShowInlineImages());Si(a,mUa,28)&&(c=Y(a,mUa,28),d={},ym(c,1)&&(d.commentFilter=nUa(Ri(c,1))),b.commentFilterPreferences=d);if(c=Y(a,Jn,31))b.missionControlPreferences=oUa(c);
Si(a,pUa,32)&&(b.scopePreferences=qUa(Y(a,pUa,32)));c=sc(a,34,Kn,Pb);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(String(d),{open:e.getOpen(),searchScope:rUa[Ri(e,2,1)],componentScope:Ln(e,3),includeDescendants:$i(e,4)});b.assistiveIssuePickerPreferences=a}return b},YTa=function(a){if(a.hasType()){var b=a.getType();b={type:tUa[b]};a.hasCustomFieldId()&&(b.customFieldId=qn(a.getCustomFieldId()));return b}},ZTa=function(a){var b=
a.getColumn();if(b=b&&YTa(b)){if(ym(a,2))a:switch(a=Ri(a,2,1),a){case 1:a="ASCENDING";break a;case 2:a="DESCENDING";break a;default:a=sb(a,"Unknown sortOrder: "+a)}else a=void 0;if(a)return{column:b,order:a}}},Cn=function(a){return uUa[a]},gUa=function(a){if(a!==0)return vUa(wUa[a])},dUa=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 sb(a,"Unknown resourceType: "+a)}},
kUa=function(a){var b={};a.hasComponentId()&&(b.componentId=a.getComponentId_asString());Gn(a,2)&&(b.dismissMillis=qn(Hn(a,2)));return b},lUa=function(a){a=Array.from(a.entries(),function(b){var c=l(b);b=c.next().value;c=c.next().value;return[b,c.toDate()]});return Object.fromEntries(a)},nUa=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 sb(a,"Unknown resourceType: "+a)}},qUa=function(a){var b=
mn(a,1),c=tn(Y(a,nj,2));a=Wi(a,Mn,3,Xi()).map(function(d){return{teamId:d.getTeamId_asString(),triageId:Ln(d,2)}});return{starredTeams:b,lastAutomaticStarsUpdate:c,starredTriageViews:a}},AUa=function(a){var b=xUa(yUa(new pUa,a.starredTeams),a.starredTriageViews.map(function(c){var d=(new Mn).setTeamId(c.teamId);return Nn(d,2,c.triageId)}));a.lastAutomaticStarsUpdate&&zUa(b,un(a.lastAutomaticStarsUpdate));return b},oUa=function(a){var b=Bn(a,3)?Wm(a,3):void 0,c=Bn(a,6)?Wm(a,6):void 0,d=Bn(a,5)?Wm(a,
5):void 0,e=Bn(a,4)?Wm(a,4):void 0,f=Zi(a,10)?$i(a,10):void 0,g=Zi(a,11)?$i(a,11):void 0,k=Zi(a,12)?$i(a,12):void 0,m=On(a,7,Xi()).map(function(R){return BUa[R]}),r=On(a,8,Xi()).map(function(R){return BUa[R]}),w=CUa(Wi(a,Pn,18,Xi())),x=DUa(Wi(a,Qn,19,Xi())),D=EUa(Wi(a,Rn,20,Xi())),H=FUa(Wi(a,Sn,21,Xi())),J=GUa(Wi(a,Tn,22,Xi())),O=HUa(Wi(a,Un,24,Xi()));b={workAreaUrls:Xm(a,1,Xi(en)),myTasksTab:b,myTasksDaysOld:c,needsAttentionDaysOld:d,workAreaTab:e,needsAttentionSources:m,needsAttentionBuganizerFilteredSignals:w,
needsAttentionDriveFilteredSignals:x,needsAttentionGerritFilteredSignals:D,needsAttentionChangelistFilteredSignals:H,needsAttentionGoogleTasksFilteredSignals:J,needsAttentionIrmFilteredSignals:O,myTasksSources:r,hideBadgeInNav:f,isNeedsAttentionSourcesConfigured:g,isMyTasksSourcesConfigured:k};c=rc(a,9,ida);c.size&&(b.workAreaQuickFilters=IUa(c));a=a.getCollapsedMap();a.size&&(b.collapsed=Object.fromEntries(a.entries()));return b},IUa=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=JUa(d))&&(b[c]=d)}return b},KUa=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}},JUa=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"}},$Ua=function(a){var b=new Vn;a.showFullHistory!=null&&jj(b,1,a.showFullHistory);a.useCodefont!=null&&jj(b,2,a.useCodefont);a.resultsPerPage!=null&&Wn(b,5,a.resultsPerPage);a.displayColumns!=null&&b.setDisplayColumns(LUa(a.displayColumns));if(a.sortColumns!=null){var c=MUa(a.sortColumns);hj(b,Xn,6,c)}a.bannerMessageId!=
null&&Gj(b,7,a.bannerMessageId);if(a.notificationPreferences!=null){c=a.notificationPreferences;var d=new $Ta;d=Yn(d,1,Zn[c.reportedPriority]);d=Yn(d,2,Zn[c.assignedPriority]);d=Yn(d,3,Zn[c.verifiedPriority]);d=Yn(d,4,Zn[c.ccdPriority]);d=Yn(d,9,Zn[c.collaboratorPriority]);d=Yn(d,5,Zn[c.starredPriority]);d=jj(d,6,c.excludeChangesByMe);d=jj(d,7,c.unsubscribeFromAll);c=jj(d,8,c.unsubscribeFromAll);hj(b,$Ta,3,c)}a.listViewPreferences!=null&&(c=a.listViewPreferences,d=new aUa,d=jj(d,1,c.showHotlists),
d=jj(d,2,c.wrapTitles),d=jj(d,3,c.wrapComponents),d=jj(d,4,c.showStatusIcons),d=jj(d,5,c.rtlComponentPath),c.fieldStatus!=null&&NUa(c.fieldStatus,rc(d,6,Rb)),c.modeForField!=null&&NUa(c.modeForField,rc(d,7,Rb)),hj(b,aUa,9,d));a.layoutPreferences!=null&&(c=a.layoutPreferences,d=new OUa,c.leftSidebarWidth!=null&&Wn(d,1,c.leftSidebarWidth),c.expandIssueSlo!=null&&jj(d,2,c.expandIssueSlo),c.rightSidebarWidth!=null&&Wn(d,3,c.rightSidebarWidth),hj(b,OUa,10,d));a.dateTimePreferences!=null&&(c=a.dateTimePreferences,
d=new $n,d=Gj(d,1,c.calendarFormat),d=Gj(d,2,c.timeFormat).setTimeZone(c.timeZone),c=Yn(d,7,PUa[c.sloEtaViewAs]),hj(b,$n,11,c));a.themePreferences!=null&&(c=a.themePreferences,c=(new Dn).setDensity(QUa[c.density]),hj(b,Dn,8,c));if(a.homepagePreferences!=null){c=a.homepagePreferences;d=new RUa;if(c.resourceType!=null){var e=SUa(c.resourceType);Yn(d,1,e)}c.resourceId!=null&&d.setResourceId(c.resourceId);hj(b,RUa,13,d)}a.keyboardPreferences!=null&&(c=a.keyboardPreferences,d=new eUa,c=jj(d,1,c.enableAllHotkeys),
hj(b,eUa,17,c));a.newFeaturesAcknowledgedMillis!=null&&ao(b,16,a.newFeaturesAcknowledgedMillis);a.autoCcOnComment!=null&&jj(b,18,a.autoCcOnComment);a.commentFormattingPreferences!=null&&(c=a.commentFormattingPreferences,d=new fUa,c.commentCreateOverride&&Yn(d,3,TUa[UUa(c.commentCreateOverride)]),c.commentDisplayOverride&&Yn(d,2,TUa[UUa(c.commentDisplayOverride)]),c.lastPublishMode&&Yn(d,1,TUa[UUa(c.lastPublishMode)]),hj(b,fUa,33,d));a.bugScreensaverPreferences!=null&&(c=a.bugScreensaverPreferences,
d=new hUa,c.enableBugScreensaver!=null&&jj(d,1,c.enableBugScreensaver),c.announcementDismissed!=null&&jj(d,2,c.announcementDismissed),hj(b,hUa,21,d));a.g3nPreferences!=null&&(c=a.g3nPreferences,d=new iUa,c.announcementDismissedMillis!=null&&Nn(d,1,c.announcementDismissedMillis),hj(b,iUa,24,d));a.teamWarningPreferences!=null&&(c=VUa(a.teamWarningPreferences),hj(b,jUa,23,c));if(a.dismissalTimestamps!=null)for(d=a.dismissalTimestamps,c=sc(b,25,nj,Rb),d=l(Object.entries(d)),e=d.next();!e.done;e=d.next()){var f=
l(e.value);e=f.next().value;f=f.next().value;c.set(e,WUa(f))}a.collapsed!=null&&NUa(a.collapsed,b.getCollapsedMap());a.showRecentEventsFirst!=null&&jj(b,26,a.showRecentEventsFirst);a.showInlineImages!=null&&jj(b,29,a.showInlineImages);a.commentFilterPreferences!=null&&(d=a.commentFilterPreferences,c=new mUa,d.commentFilter!=null&&(d=XUa(d.commentFilter),Yn(c,1,d)),hj(b,mUa,28,c));a.missionControlPreferences!=null&&(c=YUa(a.missionControlPreferences),hj(b,Jn,31,c));a.scopePreferences!=null&&(c=AUa(a.scopePreferences),
hj(b,pUa,32,c));if(a.assistiveIssuePickerPreferences!=null)for(c=a.assistiveIssuePickerPreferences,a=sc(b,34,Kn,Pb),c=l(c.entries()),d=c.next();!d.done;d=c.next()){d=l(d.value);var g=d.next().value;f=d.next().value;d=a;e=d.set;g=jb(g);var k=(new Kn).setOpen(f.open);k=Yn(k,2,ZUa[f.searchScope]);k=Nn(k,3,f.componentScope);f=jj(k,4,f.includeDescendants);e.call(d,g,f)}return b},LUa=function(a){return(new bo).setColumnList(a.column.map(function(b){return aVa(b)}))},aVa=function(a){var b=(new co).setType(bVa[a.type]);
a.customFieldId!=null&&b.setCustomFieldId(a.customFieldId);return b},MUa=function(a){return(new Xn).setColumnList(a.column.map(function(b){var c=(new eo).setColumn(aVa(b.column));a:switch(b=b.order,b){case "ASCENDING":b=1;break a;case "DESCENDING":b=2;break a;default:b=sb(b,"Unknown sortOrder: "+b)}return Yn(c,2,b)}))},SUa=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 sb(a,
"Unknown resourceType: "+a)}},vUa=function(a){if(a==null)return"UNSPECIFIED_FORMATTING_MODE";switch(cVa[a]){case "MARKDOWN_FORMATTING_MODE":return"MARKDOWN";case "PLAIN_FORMATTING_MODE":return"PLAIN";case "LITERAL_FORMATTING_MODE":return"LITERAL";default:return"UNSPECIFIED_FORMATTING_MODE"}},UUa=function(a){if(a==null)return"COMMENT_FORMATTING_MODE_UNSPECIFIED";switch(fo[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"}},VUa=function(a){var b=new jUa;a.componentTeamWarnings!=null&&dVa(b,a.componentTeamWarnings.map(function(c){var d=new In;c.componentId&&d.setComponentId(c.componentId);c.dismissMillis&&Nn(d,2,c.dismissMillis);return d}));return b},XUa=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 sb(a,"Unknown commentFilterType: "+a)}},YUa=function(a){var b=
new Jn;a.workAreaUrls&&an(b,1,a.workAreaUrls);a.collapsed&&NUa(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]=KUa(c[f]);NUa(d,rc(b,9,ida))}a.myTasksTab!=null&&Wn(b,3,a.myTasksTab);a.workAreaTab!=null&&Wn(b,4,a.workAreaTab);a.myTasksDaysOld!=null&&Wn(b,6,a.myTasksDaysOld);a.needsAttentionDaysOld!=null&&Wn(b,5,a.needsAttentionDaysOld);a.needsAttentionSources&&eVa(b,a.needsAttentionSources.map(fVa));
a.myTasksSources&&gVa(b,a.myTasksSources.map(fVa));a.hideBadgeInNav!=null&&jj(b,10,!!a.hideBadgeInNav);a.isNeedsAttentionSourcesConfigured!=null&&jj(b,11,!!a.isNeedsAttentionSourcesConfigured);a.isMyTasksSourcesConfigured!=null&&jj(b,12,!!a.isMyTasksSourcesConfigured);a.needsAttentionBuganizerFilteredSignals&&hVa(b,go(a.needsAttentionBuganizerFilteredSignals,function(g,k){return(new Pn).setSignal(iVa[g]).setChecked(k)}));a.needsAttentionDriveFilteredSignals&&jVa(b,go(a.needsAttentionDriveFilteredSignals,
function(g,k){return(new Qn).setSignal(kVa[g]).setChecked(k)}));a.needsAttentionGerritFilteredSignals&&lVa(b,go(a.needsAttentionGerritFilteredSignals,function(g,k){return(new Rn).setSignal(mVa[g]).setChecked(k)}));a.needsAttentionChangelistFilteredSignals&&nVa(b,go(a.needsAttentionChangelistFilteredSignals,function(g,k){return(new Sn).setSignal(oVa[g]).setChecked(k)}));a.needsAttentionGoogleTasksFilteredSignals&&pVa(b,go(a.needsAttentionGoogleTasksFilteredSignals,function(g,k){return(new Tn).setSignal(qVa[g]).setChecked(k)}));
a.needsAttentionIrmFilteredSignals&&rVa(b,go(a.needsAttentionIrmFilteredSignals,function(g,k){return(new Un).setSignal(sVa[g]).setChecked(k)}));return b},fVa=function(a){return tVa[a]},CUa=function(a){return a.reduce(function(b,c){return b.set(uVa[c.getSignal()],c.getChecked())},new Map)},DUa=function(a){return a.reduce(function(b,c){return b.set(vVa[c.getSignal()],c.getChecked())},new Map)},EUa=function(a){return a.reduce(function(b,c){return b.set(wVa[c.getSignal()],c.getChecked())},new Map)},FUa=
function(a){return a.reduce(function(b,c){return b.set(xVa[c.getSignal()],c.getChecked())},new Map)},GUa=function(a){return a.reduce(function(b,c){return b.set(yVa[c.getSignal()],c.getChecked())},new Map)},HUa=function(a){return a.reduce(function(b,c){return b.set(zVa[c.getSignal()],c.getChecked())},new Map)},NUa=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)}},go=function(a,b){var c=[];a.forEach(function(d,
e){c.push(b(e,d))});return c},po=function(){if(AVa==null){ho==null&&(ho=new BVa(CVa.buganizerSessionJspb));Si(ho,io,2)||ho.setConfig(new io);if(!Si(ho,jo,9)){var a=ho;var b=new jo;hj(a,jo,9,b)}ho.hasUser()||ho.setUser(new ko);Si(ho,Vn,7)||(a=ho,b=new Vn,hj(a,Vn,7,b));a=ho;b=a.hasUser()?a.getUser():new ko;b=$i(b,4)?{anonymous:!0,email:null,userTypeLabel:"ANONYMOUS",sessionIdentifier:""}:{anonymous:!1,email:b.getEmail(),userTypeLabel:b.getUserTypeLabel(),sessionIdentifier:b.getSessionIdentifier()};
var c=Si(a,io,2)?a.getConfig():new io;for(var d=new Map,e=l(rc(c,4,gda).entries()),f=e.next();!f.done;f=e.next()){var g=l(f.value);f=g.next().value;g=g.next().value;d.set(f,g)}e=new DVa(lo(c,29));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:mn(c,13).map(jn).filter(ln),indefiniteRetentionComponentsAllowlist:mn(c,20).map(jn).filter(ln),trustedEmailDomainsAllowlist:Xm(c,22,Xi(en)),internalBaseUrl:c.getInternalBaseUrl(),externalBaseUrl:c.getExternalBaseUrl(),experimentState:e};d=sUa(Si(a,Vn,7)?a.getUserPreferences():new Vn);f=Si(a,jo,9)?Y(a,jo,9):new jo;e=Wi(f,mo,1,Xi()).map(ETa);Si(f,no,2)?(f=f.getAnnouncement(),f={message:f.getMessage(),messageId:f.getMessageId(),dismissible:$i(f,3,void 0,fb),tags:f.getTagsList(en)}):
f=null;e={timezones:e,announcement:f};f=a.getXsrfToken();g=a.getCspNonce();var k=a.getFrontendAccessMode(),m=a.getMustAcknowledgeTerms(),r=a.getShowNewFeaturesDialog(),w=a.getAppBaseHref(),x=Si(a,oo,11)?KTa(a.getTracker()):null,D;Si(a,EVa,12)?(D=a.getPassiveLoginIframeUrl())?(D=Ml(D,4),D=D===null||D===void 0?null:xh(D)):D=null:D=null;AVa={user:b,config:c,xsrfToken:f,cspNonce:g,frontendAccessMode:k,mustAcknowledgeTerms:m,showNewFeaturesDialog:r,userPreferences:d,preload:e,appBaseHref:w,tracker:x,passiveLoginIframeUrl:D,
userRequiresCaptcha:$i(a,13)}}return AVa},FVa=function(a){return a.frontendAccessMode||"INTERNAL"},GVa=function(){return FVa(po())==="INTERNAL"},qo=function(a,b){if(b)(0,Lh.setElementInnerHtml)(a,b);else for(;a.lastChild;)a.lastChild.remove()},HVa=function(a){for(a=a.firstChild;a;){if(a.nodeType!==Node.TEXT_NODE)return!1;a=a.nextSibling}return!0},ro=function(a){return a.endsWith("px")?Math.floor(Number(a.substr(0,a.length-2))):Number.NaN},IVa=function(a){return a.ctrlKey||a.metaKey||a.shiftKey||a.altKey},
JVa=function(a){if(a.plainFormat)return a.plainFormat.plainSection.map(function(c){var d=document.createElement("div");qo(d,c.content);return d.innerText}).join("\n");if(a.markdownFormat){var b=document.createElement("div");qo(b,a.markdownFormat.content);return b.innerText}return a.literalFormat?(b=document.createElement("div"),qo(b,a.literalFormat.content),b.innerText):""},LVa=function(a){a=KVa(a);if(a===void 0)return!1;switch(a){case 0:return!1;case 1:return!0;case 2:return!0;case 3:return!0;case 4:return!0;
case 5:return!0;default:return sb(a)}},KVa=function(a){var b=0;a=l(a);for(var c=a.next();!c.done;c=a.next())switch(c=c.value,b){case 0:if(MVa.test(c)){b=1;continue}else return;case 1:if(MVa.test(c))continue;else if(c==="."){b=2;continue}else if(c==="@"){b=3;continue}else return;case 2:if(MVa.test(c)){b=1;continue}else return;case 3:if(NVa.test(c)){b=4;continue}else return;case 4:if(NVa.test(c))continue;else if(c==="."){b=3;continue}else if(c==="-"){b=5;continue}else return;case 5:if(NVa.test(c)){b=
4;continue}else if(c==="-")continue;else return;default:sb(b)}return b},so=function(a){return!!a&&OVa.test(a)&&!PVa.test(a)},SVa=function(a){a=a===void 0?"":a;return!QVa(a)||a.endsWith("-robots@google.com")||RVa(a)},RVa=function(a){return TVa.some(function(b){return a.endsWith(b)})},QVa=function(a){return!a.endsWith("@prod.google.com")&&!a.endsWith("@appspot.gserviceaccount.com")},to=function(a){return a?a.seconds*1E3+a.nanos/1E6:0},UVa=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":""))+")"},VVa=function(a){if(a){var b=new Dm;b.setTime(a.getTime());return b}},uo=function(a){if(a!=null)return new Date(a.year,a.month-1,a.day)},WVa=function(a){if(a)return{year:a.getFullYear(),month:a.getMonth()+1,day:a.getDate()}},XVa=function(a){var b=a.getMonth();a=a.getFullYear();b=Math.floor(b/3);return{quarterStartDate:new Date(a,b*3,1),quarterEndDate:new Date(a,b*3+3,0)}},YVa=function(a){if(a==null)return"";var b=a.toLocaleDateString(void 0,
{dateStyle:"medium"});return(new Date).getFullYear()===a.getFullYear()?b.split(", ")[0]:b},ZVa=function(a){return a==null?!1:Date.now()>to(a)},vo=function(a,b){return function(c){if(a.has(c))return a.get(c);var d=b(c);a.set(c,d);return d}},$Va=function(a,b){return new Map(a.map(function(c){return[c,b(c)]}))},wo=function(a,b){var c;return new Map((c=a==null?void 0:a.map(function(d){return[b(d),d]}))!=null?c:[])},aWa=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,g=(f=c.get(e))!=null?f:[];g.push(d);c.set(e,g)}return c},bWa=function(a,b){return $Va([].concat(n(a.keys())),function(c){return b(a.get(c),c)})},cWa=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},dWa=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},eWa=function(a,
b){return(a!=null?a:0)+(b!=null?b:0)},fWa=function(a){return a.length===0?0:a.reduce(eWa)/a.length},gWa=function(a,b){b=b===void 0?fWa(a):b;if(a.length===0)return 0;a=a.map(function(c){return Math.pow(c-b,2)}).reduce(eWa)/(a.length-1);return Math.sqrt(a)},xo=function(a,b){if(a<5)return!1;if(!hWa.get(b)){var c=fWa(b),d=gWa(b,c);hWa.set(b,{mean:c,stdDev:d})}b=hWa.get(b);return a-b.mean>b.stdDev*2},yo=function(a){return!(a==null||!a.commentNumber)},iWa=function(a){return a.unlinkifiedComment!==""?!0:
a.formattedComment?JVa(a.formattedComment)!=="":!1},jWa=function(a){var b;return((b=a.attachments)==null?void 0:b.length)>0},kWa=function(a,b){return Object.assign({},a,{commentRedacted:b.redacted,unlinkifiedComment:b.unlinkifiedComment,formattedComment:b.formattedComment})},lWa=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(n(a.slice(0,d)),[c],n(a.slice(d+1)))},zo=function(a){var b;return a==null?void 0:
(b=a.snapshot)==null?void 0:b[0]},mWa=function(a){var b;return Om((b=zo(a))==null?void 0:b.assigneeUser)||void 0},nWa=function(a){if(a==null)return"";var b,c,d,e,f=a.etag,g=a.piiRetention;var k=a.piiRetentionState;k=k==null?"":[JSON.stringify(k.retentionPeriod),JSON.stringify(k.scheduledDeletionTime)].join("-");return[f,g,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("-")},oWa=function(a){if(a==
null)return"";var b=a.attachments.map(nWa).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 g,k;return[a.modifiedDate,a.version,"["+b+"]",a.preDiffs.length,a.postDiffs.length,a.commentVersion,(g=a.commentContentVerdict)==null?void 0:(k=g.piiVerdict)==null?void 0:k.severity,a.commentDeletionStatus,a.commentRetention,
"["+c+"]"].join("-")},pWa=function(a){return a.map(function(b){return b.commentNumber}).filter(ln).reduce(function(b,c){return Math.max(b,c)},1)},qWa=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||oWa(d)!==oWa(e)))return!1}return!0},Bo=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=Ao.get(a))==null?void 0:d.open)!=null?e:!1},rWa=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=Ao.get(a);return b==null?!1:!(b==null?0:b.open)},tWa=function(a){return sWa(a,"FIXED")},sWa=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)},uWa=function(a){return a.isArchived==null?!1:
!a.isArchived},vWa=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},xWa=function(){var a=Co;return yn(function(b){var c,d;return(d=wWa.get((c=a(b))==null?void 0:c.snapshot[0].status))!=null?d:0},zn)},yWa=function(){var a=Co;return yn(function(b){var c,d;return(c=a(b))==null?void 0:(d=c.snapshot[0].assigneeUser)==null?void 0:d.emailAddress},An)},zWa=function(){var a=Co;return yn(function(b){var c;
return(c=a(b))==null?void 0:c.snapshot[0].type},An)},AWa=function(){var a=Co;return yn(function(b){var c,d;return(c=a(b))==null?void 0:(d=c.snapshot[0].reporterUser)==null?void 0:d.emailAddress},An)},BWa=function(a){return yn(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},zn)},CWa=function(a){return yn(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},zn)},
FWa=function(){var a=DWa;return yn(function(b){var c,d,e;return(e=(c=a(b))==null?void 0:(d=c.experimentalFields)==null?void 0:d.triage.triagerEmail)!=null?e:""},function(b,c){return b===EWa?1:c!==EWa&&b?c?An(b,c):1:-1})},GWa=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"},IWa=function(a){return yn(function(b){b=a(b);return HWa[GWa(b)]},zn)},JWa=function(){var a=Co;return yn(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},zn)},Do=function(a){var b;return(a==null?void 0:(b=a.userPerformingActionUser)==null?void 0:b.emailAddress)==="piper-bugupdater@prod.google.com"},KWa=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"},Eo=function(a){if(!KWa(a))return!1;var b;return((b=a==null?void 0:a.unlinkifiedComment)!=null?b:"").trim().split("\n").length>=
9},LWa=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})}},NWa=function(a,b,c){b=MWa.get(c)||new Set(c.map(function(e){return e.issueId}));MWa.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},PWa=function(a,b){OWa.get(b)||OWa.set(b,[b.map(function(e){var f,g;return(g=e==null?void 0:(f=e.userActivityStats)==null?
void 0:f.oneDayViewCount)!=null?g:0}),b.map(function(e){var f,g;return(g=e==null?void 0:(f=e.userActivityStats)==null?void 0:f.sevenDayViewCount)!=null?g:0}),b.map(function(e){var f,g;return(g=e==null?void 0:(f=e.userActivityStats)==null?void 0:f.thirtyDayViewCount)!=null?g:0})]);var c=l(OWa.get(b));b=c.next().value;var d=c.next().value;c=c.next().value;return xo(b[a],b)||xo(d[a],d)||xo(c[a],c)},QWa=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}},RWa=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}},SWa=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},TWa=function(a){var b=aWa(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")},
Fo=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""},UWa=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Fo(c);b.has(d)?b.get(d).push(c):b.set(d,[c])}return b},VWa=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=[],e=void 0;d.push((e=Rm(c.user.user))!=null?e:"");e=void 0;if((e=c.allocation)==null?0:e.startDate)e=
c.allocation.startDate,d.push("S"+e.year+"-"+e.month+"-"+e.day);e=void 0;if((e=c.allocation)==null?0:e.endDate)e=c.allocation.endDate,d.push("E"+e.year+"-"+e.month+"-"+e.day);b.set(d.join(":"),c)}return b},Ho=function(a,b){b=b===void 0?!1:b;if(a.user){var c,d,e=(d=(c=a.user.user)==null?void 0:c.emailAddress)!=null?d:"";c=[];a.user.role&&c.push(a.user.role);a.user.isLead&&c.push("Lead");if(b)c.push("Multiple Allocations");else{var f;if((f=a.allocation)==null?0:f.involvement)c.push(Go[a.allocation.involvement]);
else{var g;((g=a.allocation)==null?void 0:g.percentage)!==void 0&&c.push(Math.round(a.allocation.percentage*100)+"%")}var k;if((k=a.allocation)==null?0:k.startDate)b=a.allocation.startDate,c.push("Start: "+b.year+"-"+b.month+"-"+b.day);var m;if((m=a.allocation)==null?0:m.endDate)a=a.allocation.endDate,c.push("End: "+a.year+"-"+a.month+"-"+a.day)}return e+(c.length?" ("+c.join(" - ")+")":"")}return a.placeholder?"Placeholder: "+a.placeholder.count+" "+a.placeholder.role:""},WWa=function(){return{assigneeUser:null,
blockedByIssueId:[],blockingIssueId:[],ccUsers:[],changelist:[],collaboratorsUsers:[],comment:null,componentId:null,customField:[],deletionReason:null,duplicateIssueId:[],duplicateOfIssueId:null,effort:void 0,foundInVersion:[],gerritChanges:[],hotlistId:[],inProd:!1,incidents:[],isArchived:!1,isDeleted:null,issueAccessLimitLevel:null,postmortems:[],priority:null,reporterUser:null,retention:null,severity:null,sloEndTime:null,sloSnoozeType:null,sloStartTime:null,staffing:null,status:null,targetedToVersion:[],
title:"",type:null,verifiedInVersion:[],verifierUser:null}},XWa=function(a){if(a.type!=="ANY_ISSUE_EDIT")return!1;var b,c,d,e,f,g,k,m;return!((b=a.content)==null?0:(c=b.issueModification)==null?0:(d=c.addMask)==null?0:d.length)&&!((e=a.content)==null?0:(f=e.issueModification)==null?0:(g=f.removeMask)==null?0:g.length)&&!((k=a.content)==null?0:(m=k.issueModification)==null?0:m.comment)},YWa=function(a,b){a=Hm(a);var c,d=(c=a.content)==null?void 0:c.issueModification;b=b.snapshot[0];if(!d)return a;
var e;c=new Set((e=d.addMask)!=null?e:[]);var f;e=new Set((f=d.removeMask)!=null?f:[]);f=d.addState;d=d.removeState;c.has("status")&&(f==null?void 0:f.status)===b.status&&c.delete("status");c.has("priority")&&(f==null?void 0:f.priority)===b.priority&&c.delete("priority");c.has("severity")&&(f==null?void 0:f.severity)===b.severity&&c.delete("severity");var g,k;c.has("assignee")&&(f==null?void 0:(g=f.assigneeUser)==null?void 0:g.emailAddress)===((k=b.assigneeUser)==null?void 0:k.emailAddress)&&c.delete("assignee");
var m;!e.has("assignee")||((m=b.assigneeUser)==null?0:m.emailAddress)||e.delete("assignee");var r,w;c.has("verifier")&&(f==null?void 0:(r=f.verifierUser)==null?void 0:r.emailAddress)===((w=b.verifierUser)==null?void 0:w.emailAddress)&&c.delete("verifier");var x;!e.has("verifier")||((x=b.verifierUser)==null?0:x.emailAddress)||e.delete("verifier");var D,H,J=new Set((H=(D=b.ccUsers)==null?void 0:D.map(Rm))!=null?H:[]);if(c.has("ccs")){var O;if(f==null?0:(O=f.ccUsers)==null?0:O.length){var R;f.ccUsers=
f==null?void 0:(R=f.ccUsers)==null?void 0:R.filter(function(rb){return!J.has(Rm(rb))});var V;(f==null?0:(V=f.ccUsers)==null?0:V.length)||c.delete("ccs")}else c.delete("ccs")}if(e.has("ccs")){var ba;if(d==null?0:(ba=d.ccUsers)==null?0:ba.length){var pa;d.ccUsers=d==null?void 0:(pa=d.ccUsers)==null?void 0:pa.filter(function(rb){return J.has(Rm(rb))});var ua;(d==null?0:(ua=d.ccUsers)==null?0:ua.length)||e.delete("ccs")}else e.delete("ccs")}var ma,Da=new Set((ma=b.hotlistId)!=null?ma:[]);if(c.has("hotlists")){var ja;
if(f==null?0:(ja=f.hotlistId)==null?0:ja.length){f.hotlistId=f.hotlistId.filter(function(rb){return!Da.has(rb)});var va;(f==null?0:(va=f.hotlistId)==null?0:va.length)||c.delete("hotlists")}else c.delete("hotlists")}if(e.has("hotlists")){var ya;if(d==null?0:(ya=d.hotlistId)==null?0:ya.length){d.hotlistId=d.hotlistId.filter(function(rb){return Da.has(rb)});var Sa;(d==null?0:(Sa=d.hotlistId)==null?0:Sa.length)||e.delete("hotlists")}else e.delete("hotlists")}c.has("title")&&(f==null?void 0:f.title)===
b.title&&c.delete("title");c.has("componentId")&&(f==null?void 0:f.componentId)===b.componentId&&c.delete("componentId");var ab;if((ab=a.content)==null?0:ab.issueModification)a.content.issueModification.addMask=[].concat(n(c)),a.content.issueModification.removeMask=[].concat(n(e));return a},ZWa=function(a){var b=a.match(/```json\n([\s\S]*?)\n```/);if(b)return b[1];b=a.indexOf("{");var c=a.lastIndexOf("}");return b!==-1&&c!==-1&&b<c?a.substring(b,c+1):a},aXa=function(a,b){a=ZWa(a);return $Wa(a,b).filter(function(c){return!XWa(c)})},
$Wa=function(a,b){a=bXa(a);if(!a)return[];if(a.triage_recommendations)var c=!0;else console.error("triage_recommendations is missing."),c=!1;return c?Object.values(a.triage_recommendations).map(function(d,e){var f=Date.now(),g=Math.floor(f/1E3);f=f%1E3*1E6;var k=WWa(),m=WWa(),r=[],w=[],x=void 0;d.assignee_email&&(k.assigneeUser=cXa(d.assignee_email),r.push("assignee"));d.cc_emails&&(k.ccUsers=d.cc_emails.map(cXa).filter(ln),r.push("ccs"));var D=jn(d.component_id);D&&(k.componentId=D,r.push("componentId"));
if(d.custom_fields_to_update){D=[];for(var H=[],J=l(d.custom_fields_to_update),O=J.next();!O.done;O=J.next())O=O.value,O.value!=null?(O=dXa(O),O!=null&&D.push(O)):H.push({customFieldId:O.field_id});D.length>0&&(k.customField=D,r.push("customField"));H.length>0&&(m.customField=H,w.push("customField"))}d.hotlist_ids_to_add&&(k.hotlistId=d.hotlist_ids_to_add.filter(ln),r.push("hotlists"));d.hotlist_ids_to_remove&&(m.hotlistId=d.hotlist_ids_to_remove.filter(ln),w.push("hotlists"));D=jn(d.issue_id);d.issue_comment&&
D&&(x={issueId:D,commentNumber:0,formattingMode:"MARKDOWN",version:0,unlinkifiedComment:d.issue_comment,redacted:!1,commentReactions:new Map,formattedComment:void 0,lastEditorUser:void 0,entityStatus:void 0,piiRetention:void 0,piiRetentionState:void 0,etag:void 0,lastModified:0},r.push("comment"));if(D=jn(d.mark_as_duplicate_of))k.duplicateOfIssueId=D,r.push("duplicateOfIssueId");d.priority&&(k.priority=d.priority,r.push("priority"));d.severity&&(k.severity=d.severity,r.push("severity"));d.status&&
(k.status=d.status,r.push("status"));d.type&&(k.type=d.type,r.push("type"));d.verifier_email&&(k.verifierUser=cXa(d.verifier_email),r.push("verifier"));return{name:"recommendationSources/"+b+"/recommendations/"+e,source:"recommendationSources/"+b,resource:"issues/"+d.issue_id,type:D?"ISSUE_DEDUPLICATION":"ANY_ISSUE_EDIT",recommendation:D?"issues/"+D:"any-issue-edit",score:1,confidence:"VERY_HIGH",createTime:{seconds:g,nanos:f},content:{issueModification:{addState:k,addMask:r,removeState:m,removeMask:w,
comment:x}},rationale:d.triage_decision_explanation?{text:d.triage_decision_explanation,formattingMode:"MARKDOWN",createTime:{seconds:g,nanos:f}}:void 0}}):(console.error("Failed to validate JSON response:",a),[])},bXa=function(a){try{return JSON.parse(a)}catch(b){console.error("Failed to parse JSON response:",b,a)}},cXa=function(a){return a.includes("@")?Sm(a):Sm(a+"@google.com")},eXa=function(a){return/\d{4}-\d{2}-\d{2}/.test(a)?(a=new Date(a),{year:a.getUTCFullYear(),month:a.getUTCMonth()+1,day:a.getUTCDate()}):
gTa(a)},dXa=function(a){var b=a.field_id;if(!(b<=0))switch(a.type){case "TEXT":return{customFieldId:b,textValue:a.value};case "ENUM":return{customFieldId:b,enumValue:a.value};case "NUMERIC":return{customFieldId:b,numericValue:a.value};case "DATE":return(a=eXa(a.value))?{customFieldId:b,dateValue:a}:void 0;case "REPEATED_TEXT":return{customFieldId:b,repeatedTextValue:{values:a.value}};case "REPEATED_ENUM":return{customFieldId:b,repeatedEnumValue:{values:a.value}};case "REPEATED_NUMERIC":return{customFieldId:b,
repeatedNumericValue:{values:a.value}};case "REPEATED_DATE":return a=a.value.map(eXa).filter(ln),{customFieldId:b,repeatedDateValue:{values:a}}}},fXa=function(a){a&1&&M(0,"span",1);a&2&&(a=P(),I("innerHtml",a.data.htmlMessage,Le))},gXa=function(a){a&1&&(K(0,"span",2),S(1),L());a&2&&(a=P(),B(),Ag(a.data.message))},hXa=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P();return v(c.snackBarRef.dismissWithAction())});S(1);L()}a&2&&(a=P(),B(),T(" ",a.data.actionLabel," "))},
iXa=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P();return v(c.snackBarRef.dismiss())});S(1);L()}a&2&&(a=P(),B(),T(" ",a.data.dismissLabel," "))},jXa=function(a){if(a&1){var b=t();K(0,"button",7);N("click",function(){u(b);var c=P();return v(c.snackBarRef.dismiss())});M(1,"mat-icon",8);L()}},Io=function(){return new kXa},lXa=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)}},mXa=function(a){function b(){var e,f,g,k;return y(function(m){if(m.nextAddress==1){if(d||c.length===0)return m.return();d=!0;e=[].concat(n(c));c=[];f=l(e);g=f.next()}if(m.nextAddress!=3){if(g.done)return d=!1,z(m,b(),0);k=g.value;return z(m,a.apply(null,n(k.args)).then(k.returnValue.resolve).catch(k.returnValue.reject),3)}g=f.next();return m.jumpTo(2)})}var c=[],d=!1;return function(){var e=Yc.apply(0,arguments),f=new kXa;c.push({args:e,returnValue:f});b();return f.promise}},nXa=function(a){var b=
!1;return function(){var c=Yc.apply(0,arguments);if(!b)return b=!0,a.apply(null,n(c))}},oXa=function(a){var b=new Map;return function(){var c=Yc.apply(0,arguments),d=c.map(String).join("-");if(b.has(d))return b.get(d);c=a.apply(null,n(c));b.set(d,c);return c}},DWa=function(a){return a},Ko=function(a){return function(){var b=Jo.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}}},pXa=function(a){return function(b){b===
!0?Jo.setItem(a,"1"):Jo.removeItem(a)}},qXa=function(a){return a&&typeof a==="object"&&"overrideUntilDate"in a&&"flagName"in a&&"value"in a?!0:!1},rXa=function(a){return{overrides:a.overrides.filter(function(b){return b.overrideUntilDate?Date.parse(b.overrideUntilDate)>Date.now():!0})}},sXa=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.")},uXa=function(){if(Lo("flag-overrides")()){var a=
Mo("flag-overrides")();if(a&&typeof a==="object"&&"overrides"in a&&Array.isArray(a.overrides)&&a.overrides.every(qXa))return rXa(a);tXa();console.warn("Could not parse flag overrides.")}},tXa=function(){No("flag-overrides")()},vXa=function(a,b){var c=new Date(Date.now()+864E5);c=c===void 0?null:c;sXa();var d,e=((d=uXa())==null?void 0:d.overrides)||[];No("flag-overrides")({overrides:[].concat(n(e.filter(function(f){return f.flagName!==a})),[{flagName:a,value:b,overrideUntilDate:c}])})},wXa=function(a,
b){vXa(a,b)},xXa=function(a){sXa();var b,c=((b=uXa())==null?void 0:b.overrides)||[];No("flag-overrides")({overrides:c.filter(function(d){return d.flagName!==a})})},AXa=function(a,b){b=b===void 0?po().config:b;var c=c===void 0?yXa():c;if((c=c.get(a))!=null)a=c;else{var d;a=a in zXa?b.experimentState.getFlag(zXa[a]):(d=b.enabledFlags.get(a))!=null?d:!1}return a},CXa=function(){return function(a){return{response:a.getMutableResponse().getText(),citationResources:BXa(a.getMutableResponse())}}},BXa=function(a){return Wi(a,
Vi,13,Xi()).filter(function(b){return lj(b,DXa,6,mj)}).flatMap(function(b){var c;return b==null?void 0:(c=zm(b))==null?void 0:Am(c)}).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:$i(b,6))!=null?f:!1}})},EXa=function(a){var b;return{paths:(b=a==null?void 0:Xm(a,1,Xi(en)))!=null?b:[]}},GXa=function(a){if(FXa.has(a))switch(a){case "access_limit":break;
case "assignee":return"assignee";case "blocked_by_issue_ids":return"blockedByIssueId";case "blocking_issue_ids":return"blockingIssueId";case "canonical_issue_id":return"duplicateOfIssueId";case "ccs":return"ccs";case "collaborators":return"collaborators";case "child_issue_ids":break;case "code_changes":return"changelists";case "gerrit_changes":return"gerritChanges";case "component_id":return"componentId";case "custom_fields":return"customField";case "deletion_reason":return"deletionReason";case "duplicate_issue_ids":break;
case "effort":return"effortEstimate";case "entity_status":break;case "found_in_versions":return"foundInVersion";case "hotlist_ids":return"hotlists";case "incidents":break;case "in_prod":return"inProd";case "is_archived":return"isArchived";case "is_deleted":return"isDeleted";case "parent_issue_ids":return"parentId";case "staffing":return"staffing";case "staffing.planned_allocations":break;case "postmortems":break;case "priority":return"priority";case "retention":break;case "reporter":return"reporter";
case "severity":return"severity";case "slo_snooze_until":return"sloStartTime";case "slo_end_time":return"sloEndTime";case "slo_snooze_type":return"sloSnoozeType";case "status":return"status";case "targeted_to_versions":return"targetedToVersion";case "title":return"title";case "type":return"type";case "verifier":return"verifier";case "verified_in_versions":return"verifiedInVersion";default:sb(a)}},HXa=function(a){var b;return(b=a==null?void 0:Xm(a,1,Xi()).map(GXa).filter(ln))!=null?b:[]},IXa=function(a){switch(a){case "assignee":return"assignee";
case "attachments":break;case "blockedByIssueId":return"blocked_by_issue_ids";case "blockingIssueId":return"blocking_issue_ids";case "ccs":return"ccs";case "changelists":return"code_changes";case "collaborators":return"collaborators";case "comment":break;case "componentId":return"component_id";case "customField":return"custom_fields";case "deletionReason":return"deletion_reason";case "duplicateOfIssueId":return"canonical_issue_id";case "effortEstimate":return"effort";case "foundInVersion":return"found_in_versions";
case "gerritChanges":return"gerrit_changes";case "hotlists":return"hotlist_ids";case "inProd":return"in_prod";case "isArchived":return"is_archived";case "isDeleted":return"is_deleted";case "parentId":return"parent_issue_ids";case "priority":return"priority";case "readState":break;case "reporter":return"reporter";case "severity":return"severity";case "sloEndTime":return"slo_end_time";case "sloSnoozeType":return"slo_snooze_type";case "sloStartTime":return"slo_snooze_until";case "staffing":return"staffing";
case "status":return"status";case "targetedToVersion":return"targeted_to_versions";case "title":return"title";case "type":return"type";case "verifiedInVersion":return"verified_in_versions";case "verifier":return"verifier";default:sb(a,"Unhandled IssueFieldName in fieldNameToMask")}},KXa=function(a){return a.type==="CUSTOM_FIELD"?[JXa[bVa[a.type]],a.customFieldId].join(":"):JXa[bVa[a.type]]},MXa=function(a){return a.includes(":")?(a=l(a.split(":")),a.next(),a=a.next().value,{type:"CUSTOM_FIELD",customFieldId:Nm(a)}):
{type:tUa[LXa[a]]}},NXa=function(a){var b;a==null?a=void 0:(a=Xm(a,1,Xi()),a=a==null?void 0:a.map(MXa));return(b=a)!=null?b:[]},OXa=function(a){var b=l(a.trim().split(" ")),c=b.next().value;a=b.next().value;yj(b);b=MXa(c);c="DESCENDING";a==="asc"&&(c="ASCENDING");return{field:b,direction:c}},QXa=function(a){return a.map(PXa).join(",")},PXa=function(a){return KXa(a.field)+" "+(a.direction==="ASCENDING"?"asc":"desc")},RXa=function(a){return QXa(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(OXa))},To=function(a){switch(Oo(a,Po)){case 0:throw Error("kd");case 1:return{user:fn(a.getUser())};case 2:return{group:fn(a.getGroup())};
case 3:return{alias:So(a,3,Po)};default:throw Error("ld");}},Wo=function(a){var b=new Uo;oTa(a)&&b.setUser(dn(a.user));a.group!==void 0&&b.setGroup(dn(a.group));a.alias!==void 0&&Vo(b,3,Po,a.alias);return b},SXa=function(a){var b=new Xo;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("od");
}return b},TXa=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("od");}},VXa=function(a){if(a)return a=a.getAccessLevel(),{accessLevel:UXa[a]}},XXa=function(a){return(new Yo).setAccessLevel(WXa[a.accessLevel])},ZXa=function(a){if(a)return(a=Y(a,Zo,1))?(a=a.getSeverity(),a={piiVerdict:a?{severity:YXa(a)}:{severity:"NONE_DETECTED"}}):a={piiVerdict:{severity:"NONE_DETECTED"}},
a},YXa=function(a){switch(a){case 0:case 1:return"NONE_DETECTED";case 2:return"RESTRICTED";case 3:return"RESTRICTED_PLUS";default:throw Error("pd`"+a);}},$Xa=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("pd`"+a);}},aYa=function(a){var b=new $o;b=ap(b,1,a.contentJudgementId).setResourcePath(a.resourcePath);var c=$Xa(a.severity);b=cn(b,3,c);b=$m(b,4,a.judgementReason);a.judge&&
(a=dn(a.judge),hj(b,Zm,9,a));return b},bYa=function(a){return{contentJudgementId:qn(Hn(a,1))?String(Hn(a,1)):void 0,resourcePath:a.getResourcePath()||void 0,severity:YXa(a.getRestrictionSeverity()),judgementReason:Fi(a,4),judge:fn(Y(a,Zm,9))}},cYa=function(a){var b=new $o;var c=$Xa(a.severity);b=cn(b,3,c);return $m(b,4,a.judgementReason)},eYa=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("qd`"+
b);}}return{status:b,reason:dYa(a.getReason())}}},dYa=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("rd`"+a);}},fYa=function(a){switch(a){case "UNSPECIFIED":return 0;case "USER_REQUEST":return 1;case "ABUSE":return 2;case "RESTRICTED":return 3;case "RETENTION":return 4;case "ACCOUNT_CAPABILITIES":return 5;default:throw Error("rd`"+a);}},gYa=
function(a){if(a){var b=new bp,c=b.setStatus;a:{var d=a.status;switch(d){case "ACTIVE":d=0;break a;case "DELETED":d=1;break a;case "PURGED":d=2;break a;default:throw Error("qd`"+d);}}return c.call(b,d).setReason(fYa(a.reason))}},hYa=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("rd`"+a);}},iYa=function(a){if(a!=null){var b,c;return{retentionPeriod:(b=TTa(a.getRetentionPeriod()))!=null?b:null,scheduledDeletionTime:(c=tn(Y(a,nj,2)))!=null?c:null}}},jYa=function(a){var b=new cp;if(a.retentionPeriod){var c=STa(a.retentionPeriod);hj(b,vn,1,c)}a.scheduledDeletionTime&&(a=un(a.scheduledDeletionTime),hj(b,nj,2,a));return b},lYa=function(a){var b=Ri(a,1);b=kYa[b];var c=Wm(a,2),d=Ri(a,3);return{retentionSelection:b,retentionPeriodDays:c,piiRetentionSelection:kYa[d],
piiRetentionPeriodDays:Wm(a,4),spiiRetentionPeriodDays:Wm(a,5)}},nYa=function(a){var b=new dp;b=cn(b,1,mYa[a.retentionSelection]);b=sn(b,2,a.retentionPeriodDays);b=cn(b,3,mYa[a.piiRetentionSelection]);b=sn(b,4,a.piiRetentionPeriodDays);return sn(b,5,a.spiiRetentionPeriodDays)},oYa=function(a){switch(a){case 0:return"RETENTION_UNSPECIFIED";case 1:return"COMPONENT_DEFAULT";case 2:return"INDEFINITE";default:throw Error("sd`"+a);}},pYa=function(a){switch(a){case "RETENTION_UNSPECIFIED":return 0;case "COMPONENT_DEFAULT":return 1;
case "INDEFINITE":return 2;default:throw Error("sd`"+a);}},rYa=function(a){var b=jn(a.getAttachmentId_asString());var c=a.getFilename();var d=qn(a.getLength())||void 0,e=Fi(a,2);c=c&&e?{filename:c,length:d,contentType:e}:void 0;return{attachmentId:b,media:c,contentType:Fi(a,2),filename:a.getFilename(),length:qn(a.getLength()),etag:qYa(a.getEtag())||"",contentVerdict:ZXa(a.getContentVerdict()),entityStatus:eYa(a.getEntityStatus()),piiRetentionState:iYa(a.getRestrictedRetentionState()),piiRetention:oYa(a.getRestrictedRetention())}},
tYa=function(a){var b=new ep;var c=new sYa;a=fca(a);c=fp(c,2,a);return hj(b,sYa,5,c).setEntityStatus(gYa({status:"ACTIVE",reason:"UNSPECIFIED"}))},uYa=function(a){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(a.type)},vYa=function(a){switch(a){case "TYPE_UNSPECIFIED":return"Unknown";case "TEXT":return"Text";case "DATE":return"Date";case "ENUM":return"Enum";case "NUMERIC":return"Numeric";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"Unknown"}},xYa=function(a){if(a!=null)return{customFieldId:kn(gn(qn(a.getCustomFieldId()))),standardField:wYa[Ri(a,bj(a,gp,2))]}},zYa=function(a){var b=new hp;a.customFieldId?b.setCustomFieldId(a.customFieldId):a.standardField&&ip(b,2,gp,Ica(yYa[a.standardField]));return b},AYa=function(a){if(a){var b=gn(qn(a.getCustomFieldId()));if(b==null)pn("No customFieldId. customFieldValueToJs");else{b=
{customFieldId:b,displayValues:Wi(a,Ll,11,Xi()).map(function(D){return uh(jGa(D)).toString()})};switch(a.getValueCase()){case 2:b.textValue=kn(So(a,2,jp));break;case 3:b.dateValue=QTa(a.getDateValue());break;case 4:b.enumValue=kn(So(a,4,jp));break;case 5:b.numericValue=kn(tm(a,bj(a,jp,5)));break;case 6:var c,d;b.repeatedTextValue={values:(d=(c=lm(a,kp,6,jp))==null?void 0:c.getValuesList(en))!=null?d:[]};break;case 8:var e,f;b.repeatedEnumValue={values:(f=(e=lm(a,kp,8,jp))==null?void 0:e.getValuesList(en))!=
null?f:[]};break;case 9:var g,k;b.repeatedNumericValue={values:(k=(g=lm(a,lp,9,jp))==null?void 0:g.getValuesList(en))!=null?k:[]};break;case 7:var m,r,w,x;b.repeatedDateValue={values:(x=(m=lm(a,mp,7,jp))==null?void 0:(r=m.getValuesList())==null?void 0:(w=r.map(QTa))==null?void 0:w.filter(ln))!=null?x:[]}}return b}}},CYa=function(a){var b=(new np).setCustomFieldId(a.customFieldId);a.textValue!=null?Vo(b,2,jp,a.textValue):a.dateValue!=null?(a=RTa(a.dateValue),op(b,3,jp,a)):a.enumValue!=null?Vo(b,4,
jp,a.enumValue):a.numericValue!=null?BYa(b,5,jp,a.numericValue):a.repeatedTextValue!=null?(a=(new kp).setValuesList(a.repeatedTextValue.values),op(b,6,jp,a)):a.repeatedEnumValue!=null?(a=(new kp).setValuesList(a.repeatedEnumValue.values),op(b,8,jp,a)):a.repeatedNumericValue!=null?(a=(new lp).setValuesList(a.repeatedNumericValue.values),op(b,9,jp,a)):a.repeatedDateValue!=null&&(a=(new mp).setValuesList(a.repeatedDateValue.values.map(RTa)),op(b,7,jp,a));return b},FYa=function(a){var b=qn(a.getCustomFieldId()),
c=DYa[a.getType()],d=!!$i(a,4),e=a.getName(),f=a.getDescription()||"",g=AYa(Y(a,np,10));var k=Xm(a,8,Xi(en));b={customFieldId:b,type:c,required:d,name:e,description:f,typedDefaultValue:g,allowedValue:k,fieldSignificance:EYa[Ri(a,9)],shared:a.getShared(),stateOnIssues:"INHERIT",enabledOnIssues:!0};qn(a.getComponentId())&&(b.componentId=a.getComponentId_asString());return b},GYa=function(a){return FYa(a)},JYa=function(a){var b=new pp;a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));b.setComponentId(String(a.componentId));
b.setType(HYa[a.type]);sp(b,4,a.required);b.setName(a.name);b.setDescription(a.description);if(a.typedDefaultValue){var c=CYa(a.typedDefaultValue);hj(b,np,10,c)}a.allowedValue&&an(b,8,a.allowedValue);a.fieldSignificance&&b.setFieldSignificance(IYa[a.fieldSignificance]);b.setShared(a.shared);return b},KYa=function(a){return{specId:qn(Hn(a,1)),estimate:Fi(a,2),averageDays:tm(a,3),totalOpen:tm(a,4),totalComplete:tm(a,5)}},RYa=function(a){var b=new tp;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&&LYa(b,MYa(new NYa,a.numericSpec.multiplier));if(a.enumSpec){var c;OYa(b,PYa(new QYa,((c=a.enumSpec.options)!=null?c:[]).map(function(d){return(new up).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}cn(b,6,a)}return b},xp=function(a){var b=void 0,c=a.getContentVerdict();c&&(b=ZXa(c));c=void 0;var d=a.getFormattedComment();
d&&(c=vp(d));d=void 0;var e=Y(a,Zm,3);e&&(d=fn(e));e=void 0;var f=a.getEtag();f&&(e=qYa(f));f=void 0;var g=a.getEntityStatus();g&&(f=eYa(g));g=void 0;var k=a.getRestrictedRetentionState();k&&(g=iYa(k));return{issueId:String(a.getIssueId()),commentNumber:a.getCommentNumber(),commentContentVerdict:b,formattingMode:SYa(a.getFormattingMode()),formattedComment:c,lastEditorUser:d,lastModified:xn(a.getModifiedTime()),version:a.getVersion(),unlinkifiedComment:a.getComment(),entityStatus:f,piiRetentionState:g,
piiRetention:oYa(a.getRestrictedRetention()),redacted:$i(a,13),etag:e,commentReactions:TYa(Y(a,wp,17))}},vp=function(a){if(lj(a,UYa,1,yp)){var b=lm(a,UYa,1,yp);var c;b={plainSection:((c=Wi(b,zp,1,Xi()))!=null?c:[]).map(VYa)}}else b=void 0;c=b;b=lj(a,Ap,2,yp)?WYa(lm(a,Ap,2,yp)):void 0;lj(a,Bp,3,yp)?(a=lm(a,Bp,3,yp),a={content:jGa(a.getContent())}):a=void 0;return{plainFormat:c,markdownFormat:b,literalFormat:a}},YYa=function(a){var b=new Cp;if(a.plainFormat){var c=a.plainFormat;var d=new UYa;c=c.plainSection.map(XYa);
d=ij(d,1,c);op(b,1,yp,d)}a.markdownFormat&&(d=a.markdownFormat,d=(new Ap).setContent(iGa(d.content)),op(b,2,yp,d));a.literalFormat&&(a=a.literalFormat,a=(new Bp).setContent(iGa(a.content)),op(b,3,yp,a));return b},VYa=function(a){return{isQuoted:$i(a,1),content:jGa(a.getContent())}},XYa=function(a){var b=new zp;return sp(b,1,a.isQuoted).setContent(iGa(a.content))},WYa=function(a){return{content:jGa(a.getContent())}},SYa=function(a){switch(a){case 0:case 1:return"PLAIN";case 2:return"MARKDOWN";case 3:return"LITERAL";
default:throw Error("td`"+a);}},Dp=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("td`"+a);}},TYa=function(a){var b,c;a==null?c=void 0:c=Wi(a,Ep,2,Xi());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("ud`"+d);}}var e=
void 0,f=void 0,g=void 0,k=void 0,m=(f=$i(c,1))!=null?f:!1;f=(g=qn(c.getCount()))!=null?g:0;c=Wi(c,Zm,3,Xi());c={type:d,hasReacted:m,count:f,recentResponders:(k=(e=c)==null?void 0:e.map(fn).filter(ln))!=null?k:[]};b.set(d,c)}return b},ZYa=function(a){return a.map(function(b){return Y(b,Zm,1)}).filter(ln).map(fn).map(function(b){return{mentionedUser:b}})},$Ya=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"}},aZa=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}},cZa=function(a){var b=tn(a.getStartTime()),c=tn(Y(a,nj,3)),d=tn(a.getEndTime()),e=TTa(a.getObjective()),f=a.getBusinessDays();a=a.getDayType();return{startTime:b,targetTime:c,endTime:d,objective:e,businessDays:f,dayType:bZa[a]}},eZa=function(a){var b=
new Fp;a.startTime&&b.setStartTime(un(a.startTime));if(a.targetTime){var c=un(a.targetTime);hj(b,nj,3,c)}a.endTime&&b.setEndTime(un(a.endTime));a.objective&&b.setObjective(STa(a.objective));a.businessDays&&b.setBusinessDays(a.businessDays);a.dayType&&b.setDayType(dZa[a.dayType]);return b},gZa=function(a){var b=(new Gp).setInherit(a.inherit).setSource(fZa[a.source]).setComment(a.comment);a.id&&b.setId(a.id);a.sourceComponentId&&ap(b,6,a.sourceComponentId);a.sourceTeamId&&b.setSourceTeamId(a.sourceTeamId);
return b},iZa=function(a){return{author:fn(a.getAuthor()),timestamp:tn(a.getTimestamp()),add:hZa(a.getAdd()),remove:hZa(a.getRemove()),addMask:EXa(a.getAddMask()),removeMask:EXa(a.getRemoveMask())}},hZa=function(a){var b=a.getSloId_asString(),c=a.getName(),d=a.getDescription(),e=Ln(a,2);var f=Wi(a,Hp,5,Xi());f=(f!=null?f:[]).map(jZa);var g=Wi(a,Hp,6,Xi());g=(g!=null?g:[]).map(jZa);var k=a.getIsArchived();a:switch(a=Ri(a,8),a){case 0:a="OFF";break a;case 1:a="OFF";break a;case 2:a="ON";break a;default:throw Error("vd`"+
a);}return{sloId:b,name:c,description:d,parentId:e,elements:f,effectiveElements:g,isArchived:k,alertState:a}},jZa=function(a){var b=kZa(a.getMetric()),c=Fi(a,2);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("xd`"+d);}}return{metric:b,matcher:c,dayType:d,objective:TTa(a.getObjective()),businessDays:a.getBusinessDays()}},kZa=function(a){switch(a){case 0:return"METRIC_UNSPECIFIED";case 1:return"ASSIGNMENT";case 2:return"RESPONSE";
case 3:return"CLOSURE";default:throw Error("wd`"+a);}},mZa=function(a){var b=new Hp;var c=lZa(a.metric);b=cn(b,1,c);b=$m(b,2,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("xd`"+d);}}return c.call(b,d).setObjective(STa(a.objective)).setBusinessDays(a.businessDays)},lZa=function(a){switch(a){case "METRIC_UNSPECIFIED":return 0;case "ASSIGNMENT":return 1;case "RESPONSE":return 2;
case "CLOSURE":return 3;default:throw Error("yd`"+a);}},nZa=function(a){switch(a){case "SWE":return 1;case "SRE":return 2;case "PM":return 3;case "TPGM":return 4;case "UX":return 5;case "UXD":return 6;case "UXR":return 7;case "DATASCI":return 8;case "LD":return 9;case "DEVREL":return 10;case "TW":return 11;case "GTM":return 12;case "CE":return 13;case "OTHER":return 14;default:return 0}},oZa=function(a){switch(a){case "HIGH":return 1;case "MEDIUM":return 2;case "LOW":return 3;default:return 4}},rZa=
function(a){var b=new Ip;if(a.user){var c=b.setUser,d=a.user,e=(new pZa).setUser(dn(d.user));d.isLead&&e.setIsLead(!0);d.role&&e.setRole(nZa(d.role));c=c.call(b,e);a=a.allocation;d=new qZa;d=Jp(d,3,a.aggregationValue);a.involvement&&ip(d,1,Kp,Ica(oZa(a.involvement)));a.percentage!==void 0&&BYa(d,2,Kp,a.percentage);a.startDate&&(e=RTa(a.startDate),hj(d,qm,4,e));a.endDate&&(a=RTa(a.endDate),hj(d,qm,5,a));hj(c,qZa,3,d)}else a.placeholder&&(c=a.placeholder,c=(new Lp).setRole(nZa(c.role)).setCount(c.count),
op(b,2,Mp,c));return b},sZa=function(a){var b=new Np;a=a.plannedAllocations.map(rZa);return ij(b,1,a)},tZa=function(a){switch(a){case 1:return"HIGH";case 2:return"MEDIUM";case 3:return"LOW";default:return"ZERO"}},uZa=function(a){switch(a){case 1:return"SWE";case 2:return"SRE";case 3:return"PM";case 4:return"TPGM";case 5:return"UX";case 6:return"UXD";case 7:return"UXR";case 8:return"DATASCI";case 9:return"LD";case 10:return"DEVREL";case 11:return"TW";case 12:return"GTM";case 13:return"CE";case 14:return"OTHER";
default:return"JOB_ROLE_UNSPECIFIED"}},wZa=function(a){if(a.hasUser()){var b=a.getUser(),c=uZa(b.getRole());var d={user:fn(b.getUser())};b.getIsLead()&&(d.isLead=!0);c!=="JOB_ROLE_UNSPECIFIED"&&(d.role=c);a=Y(a,qZa,3);b={aggregationValue:tm(a,3)};c=bj(a,Kp,1);Op(a,c)!=null&&(b.involvement=tZa(Ri(a,bj(a,Kp,1))));vZa(a,Kp)&&(b.percentage=tm(a,bj(a,Kp,2)));Si(a,qm,4)&&(b.startDate=QTa(a.getStartDate()));Si(a,qm,5)&&(b.endDate=QTa(Y(a,qm,5)));d={user:d,allocation:b}}else lj(a,Lp,2,Mp)?(d=a.getPlaceholder(),
d={placeholder:{role:uZa(d.getRole()),count:d.getCount()}}):d={};return d},xZa=function(a){return{plannedAllocations:Wi(a,Ip,1,Xi()).map(wZa)}},yZa=function(a){return{issueId:String(a.getIssueId()),updateText:Fi(a,2),formattedText:Si(a,Cp,3)?vp(Y(a,Cp,3)):void 0,formattingMode:a.getFormattingMode()?SYa(a.getFormattingMode()):"PLAIN",author:a.hasAuthor()?fn(a.getAuthor()):void 0,updateTime:a.hasUpdateTime()?kn(tn(a.getUpdateTime())):void 0,version:a.getVersion()}},zZa=function(a){var b=(new Pp).setFormattingMode(Dp(a.formattingMode));
a.issueId&&b.setIssueId(a.issueId);a.updateText&&$m(b,2,a.updateText);if(a.formattedText){var c=YYa(a.formattedText);hj(b,Cp,3,c)}a.author&&b.setAuthor(dn(a.author));a.updateTime&&b.setUpdateTime(un(a.updateTime));a.version&&b.setVersion(a.version);return b},FZa=function(a){var b=a.getAccessLimit(),c=AZa[Ri(a,30)],d,e,f,g,k,m,r,w,x,D,H,J,O,R,V,ba,pa,ua,ma,Da,ja,va,ya,Sa;return{componentId:jn(a.getComponentId_asString())||null,type:a.getType()?$Ya(a.getType()):null,status:a.getStatus()?Qp[a.getStatus()]:
null,priority:a.getPriority()?Rp[a.getPriority()]:null,severity:a.getSeverity()?BZa[a.getSeverity()]:null,title:a.getTitle(),reporterUser:a.getReporter()?fn(a.getReporter()):null,assigneeUser:a.getAssignee()?fn(a.getAssignee()):null,verifierUser:a.getVerifier()?fn(a.getVerifier()):null,ccUsers:(x=(d=a.getCcsList())==null?void 0:d.map(fn))!=null?x:[],collaboratorsUsers:(D=(e=a.getCollaboratorsList())==null?void 0:e.map(fn))!=null?D:[],staffing:a.getStaffing()?xZa(a.getStaffing()):null,duplicateOfIssueId:a.getCanonicalIssueId_asString()!==
"0"?a.getCanonicalIssueId_asString():null,blockedByIssueId:(H=(f=a.getBlockedByIssueIdsList_asString())==null?void 0:f.filter(function(ab){return ab!=="0"}))!=null?H:[],blockingIssueId:(J=(g=a.getBlockingIssueIdsList_asString())==null?void 0:g.filter(function(ab){return ab!=="0"}))!=null?J:[],hotlistId:(O=(k=a.getHotlistIdsList_asString())==null?void 0:k.map(gn).filter(ln))!=null?O:[],customField:(R=(m=a.getCustomFieldsList())==null?void 0:m.map(AYa).filter(ln))!=null?R:[],changelist:(V=a.getCodeChangesList(en))!=
null?V:[],gerritChanges:(ba=a.getGerritChangesList().map(CZa))!=null?ba:[],foundInVersion:(pa=Xm(a,17,Xi(en)))!=null?pa:[],targetedToVersion:(ua=Xm(a,18,Xi(en)))!=null?ua:[],verifiedInVersion:(ma=Xm(a,19,Xi(en)))!=null?ma:[],inProd:a.getInProd(),isArchived:a.getIsArchived(),duplicateIssueId:(Da=(r=a.getDuplicateIssueIdsList_asString())==null?void 0:r.filter(function(ab){return ab!=="0"}))!=null?Da:[],isDeleted:a.getIsDeleted(),deletionReason:DZa[Ri(a,24)],sloStartTime:(ja=tn(a.getSloSnoozeUntil()))!=
null?ja:null,sloEndTime:(va=tn(a.getSloEndTime()))!=null?va:null,sloSnoozeType:c==="SLO_SNOOZE_TYPE_UNSPECIFIED"?null:c,incidents:(ya=(w=Xm(a,37,Xi()))==null?void 0:w.filter(ln))!=null?ya:[],postmortems:(Sa=Xm(a,27,Xi(en)))!=null?Sa:[],retention:EZa[a.getRetention()],effort:a.hasEffort()?KYa(a.getEffort()):void 0,issueAccessLimitLevel:b!=null?TXa(b):null,comment:"",formattingMode:void 0}},MZa=function(a){var b=new Sp;a.componentId&&b.setComponentId(a.componentId);a.title&&b.setTitle(a.title);a.type!=
null&&b.setType(aZa(a.type));a.inProd!=null&&b.setInProd(a.inProd);a.isArchived!=null&&b.setIsArchived(a.isArchived);a.status!=null&&b.setStatus(GZa[a.status]);a.priority!=null&&b.setPriority(HZa[a.priority]);a.severity!=null&&b.setSeverity(IZa[a.severity]);a.reporterUser&&b.setReporter(dn(a.reporterUser));a.assigneeUser&&b.setAssignee(dn(a.assigneeUser));a.verifierUser&&b.setVerifier(dn(a.verifierUser));a.ccUsers&&b.setCcsList(a.ccUsers.map(dn));a.collaboratorsUsers&&b.setCollaboratorsList(a.collaboratorsUsers.map(dn));
a.staffing&&b.setStaffing(sZa(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(CYa));a.changelist&&b.setCodeChangesList(a.changelist);a.gerritChanges&&b.setGerritChangesList(a.gerritChanges.map(JZa));a.foundInVersion&&
an(b,17,a.foundInVersion);a.targetedToVersion&&an(b,18,a.targetedToVersion);a.verifiedInVersion&&an(b,19,a.verifiedInVersion);a.duplicateIssueId&&b.setDuplicateIssueIdsList(a.duplicateIssueId.map(Number));a.isDeleted!=null&&b.setIsDeleted(a.isDeleted);a.deletionReason!=null&&b.setDeletionReason(KZa[a.deletionReason]);a.sloStartTime&&b.setSloSnoozeUntil(un(a.sloStartTime));a.sloEndTime&&b.setSloEndTime(un(a.sloEndTime));a.sloSnoozeType!=null&&b.setSloSnoozeType(LZa[a.sloSnoozeType]);a.retention!=null&&
b.setRetention(pYa(a.retention));if(a.effort){var c=b.setEffort,d=a.effort,e=new Tp;d.specId&&ap(e,1,d.specId);d.estimate&&$m(e,2,d.estimate);d.averageDays&&Jp(e,3,d.averageDays);d.totalOpen&&Jp(e,4,d.totalOpen);d.totalComplete&&Jp(e,5,d.totalComplete);c.call(b,e)}a.issueAccessLimitLevel&&b.setAccessLimit(SXa(a.issueAccessLimitLevel));return b},CZa=function(a){var b={host:Fi(a,1),repo:Fi(a,2),changeNumber:a.getChangeNumber_asLegacyNumberOrString(),state:NZa[a.getState()]};Fi(a,5)&&(b.branch=Fi(a,
5));return b},JZa=function(a){var b=new Up;b=$m(b,1,a.host);b=$m(b,2,a.repo).setChangeNumber(a.changeNumber).setState(OZa[a.state]);a.branch&&$m(b,5,a.branch);return b},PZa=function(a){return{oneDayViewCount:Vp(a,1),sevenDayViewCount:Vp(a,2),thirtyDayViewCount:Vp(a,3)}},RZa=function(a){if(a){var b=$i(a,2);b=b==null?null:b;var c=$i(a,1);return{voted:b,starred:c==null?null:c,notificationSubscription:QZa[Ri(a,4)],lastViewedTimeMicros:xn(Y(a,nj,5))}}},SZa=function(a){if(a){var b=void 0,c=a.getSloStatus();
c&&(b={assignmentBounds:(c==null?0:Si(c,Fp,1))?cZa(Y(c,Fp,1)):void 0,responseBounds:(c==null?0:Si(c,Fp,2))?cZa(Y(c,Fp,2)):void 0,closureBounds:(c==null?0:Si(c,Fp,3))?cZa(Y(c,Fp,3)):void 0});c=void 0;var d=Y(a,Zm,14);d&&(c=fn(d));var e;return{voteCount:(e=Vp(a,10))!=null?e:0,createdTimeMicros:xn(a.getCreatedTime()),resolvedTimeMicros:xn(a.getResolvedTime()),verifiedTimeMicros:xn(a.getVerifiedTime()),modifiedTimeMicros:xn(a.getModifiedTime()),sloId:gn(a.getSloId_asLegacyNumberOrString()),teamId:jn(a.getTeamId_asLegacyNumberOrString()),
retentionState:iYa(a.getRetentionState()),sloStatus:b,lastModifier:c}}},WZa=function(a){switch(Oo(a,TZa)){case 2:var b=lm(a,UZa,2,TZa);return b.getCommentNumber()!==0?{type:"issueReference",issueId:b.getIssueId_asString(),commentNumber:b.getCommentNumber(),sourceCommentNumber:Wm(a,3)}:{type:"issueReference",issueId:b.getIssueId_asString(),sourceCommentNumber:Wm(a,3)};case 1:return b=lm(a,VZa,1,TZa),{type:"hyperlink",href:Fi(b,1),sourceCommentNumber:Wm(a,3)};case 0:throw Error("zd");default:throw Error("Ad");
}},Wp=function(a){var b=a.getIssueState()?[FZa(a.getIssueState())]:[],c,d;return{issueId:a.getIssueId_asString(),version:a.getVersion(),snapshot:b,userData:RZa(a.getUserData()),aggregatedData:SZa(a),accessLimit:VXa(a.getAccessLimit()),customFields:a.getCustomFieldsList().map(FYa),visibleFields:Wi(a,hp,34,Xi()).map(xYa).filter(ln),majorModifiedTimeMicros:xn(a.getMajorModifiedTime()),parentIssueIds:a.getParentIssueIdsList_asString().filter(function(e){return e!=="0"}),descendantCount:(c=a.getDescendantIssueCount())!=
null?c:0,openDescendantCount:(d=a.getOpenDescendantIssueCount())!=null?d:0,isArchived:a.getIsArchived(),trackerId:jn(a.getTrackerId_asString()),userActivityStats:Y(a,XZa,47)&&PZa(Y(a,XZa,47)),escalationOwner:a.getEscalationOwner()?fn(a.getEscalationOwner()):void 0}},ZZa=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_asString().filter(function(f){return f!==
"0"})})}c=Wp(a);return Object.assign({},c,{description:a.hasDescription()?xp(a.getDescription()):void 0,ancestors:b,childIssueCount:a.getChildIssueCount(),relatedLinks:Wi(a,YZa,41,Xi()).map(WZa),statusUpdate:a.hasStatusUpdate()?yZa(a.getStatusUpdate()):void 0})},$Za=function(a){var b,c,d,e,f,g=(new Xp).setHotlistId(a.hotlistId).setName(a.name).setDescription(a.description).setArchived(a.archived).setDefaultOrderBy(QXa((d=a.sortOrder)!=null?d:[]));d=g.setDisplayPreferences;var k=new Yp,m=(e=(b=a.displayColumn)==
null?void 0:b.map(KXa))!=null?e:[];b=an(k,1,m);g=d.call(g,b).setCreatedTime(wn(a.createdTimeMicros)).setModifiedTime(wn(a.modifiedTimeMicros)).setOwnersList((f=(c=a.adminUsers)==null?void 0:c.map(dn))!=null?f:[]);a.etag!==void 0&&(c=g.setEtag,a=a.etag,a=a.length?new Wa(bba(a,!0),Xa):Va(),c.call(g,a));return g},a_a=function(a){if(!qn(a.getHotlistId()))throw Error("Bd");if(!a.getName())throw Error("Cd");if(!a.getCreatedTime())throw Error("Dd");if(!a.getModifiedTime())throw Error("Ed");var b,c,d,e;return{hotlistId:qn(a.getHotlistId()),
name:a.getName(),description:(c=a.getDescription())!=null?c:"",archived:(d=a.getArchived())!=null?d:!1,createdTimeMicros:xn(a.getCreatedTime()),modifiedTimeMicros:xn(a.getModifiedTime()),displayColumn:NXa(a.getDisplayPreferences()),sortOrder:a.getDefaultOrderBy().split(",").filter(Boolean).map(OXa),etag:qYa(a.getEtag())||void 0,adminUsers:(e=(b=a.getOwnersList())==null?void 0:b.map(fn))!=null?e:[]}},b_a=function(a){return{issueId:a.getIssueId_asString(),position:a.getPosition(),issue:Wp(a.getIssue())}},
c_a=function(a){var b=Wi(a,Zp,1,Xi()).map(b_a),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()}},e_a=function(a){return d_a[a]},j_a=function(a){var b=void 0;switch(a.getContentCase()){case 9:b={recommendedIssue:Wp(lm(a,$p,9,aq))};break;case 10:b={recommendedHotlist:a_a(lm(a,
Xp,10,aq))};break;case 12:var c=a.getIssueModification();b={issueModification:{addState:c.getAdd()?FZa(c.getAdd()):void 0,addMask:HXa(c.getAddMask()),removeState:c.getRemove()?FZa(c.getRemove()):void 0,removeMask:HXa(c.getRemoveMask()),comment:c.getComment()?xp(c.getComment()):void 0}};break;case 11:var d=lm(a,f_a,11,aq);c={name:d.getName(),entries:d.getEntriesList().map(g_a)};if(d=Y(d,$p,2))c.recommendedCanonicalIssue=Wp(d);b={issueDeduplicationBatch:c}}c=a.getName();d=a.getSource();var e=a.getResource();
var f=a.getType();f=h_a[f];var g=a.getRecommendation(),k=a.getScore();var m=a.getConfidence();m=i_a[m];var r=tn(a.getCreateTime());a.getRationale()?(a=a.getRationale(),a={text:a.getText(),formattingMode:SYa(a.getFormattingMode()),formattedText:Si(a,Cp,3)?vp(Y(a,Cp,3)):void 0,createTime:tn(a.getCreateTime())}):a=void 0;return{name:c,source:d,resource:e,type:f,recommendation:g,score:k,confidence:m,createTime:r,content:b,rationale:a}},n_a=function(a){var b=(new bq).setName(a.name).setSource(a.source).setResource(a.resource).setType(d_a[a.type]).setRecommendation(a.recommendation).setScore(a.score).setConfidence(k_a[a.confidence]).setCreateTime(un(a.createTime));
if(a.rationale){var c=b.setRationale,d=a.rationale,e=(new l_a).setText(d.text).setFormattingMode(Dp(d.formattingMode)).setCreateTime(un(d.createTime));d.formattedText&&(d=YYa(d.formattedText),hj(e,Cp,3,d));c.call(b,e)}var f;((f=a.content)==null?0:f.issueModification)&&b.setIssueModification(m_a(a.content.issueModification));return b},m_a=function(a){var b=new o_a;if(a.addState!==void 0){b.setAdd(MZa(a.addState));var c=b.getMutableAddMask(),d=a.addMask.map(IXa).filter(ln);an(c,1,d)}a.removeState!==
void 0&&(b.setRemove(MZa(a.removeState)),c=b.getMutableRemoveMask(),d=a.removeMask.map(IXa).filter(ln),an(c,1,d));if(a.comment!==void 0){c=b.setComment;d=a.comment;a=(new cq).setIssueId(d.issueId).setCommentNumber(d.commentNumber).setVersion(d.version).setFormattingMode(Dp(d.formattingMode)).setComment(d.unlinkifiedComment).setModifiedTime(wn(d.lastModified));a=sp(a,13,d.redacted).setEtag(d.etag);if(d.commentContentVerdict){var e=a.setContentVerdict;var f=d.commentContentVerdict;if(f!=null&&f.piiVerdict){var g=
new dq;f=(new Zo).setSeverity($Xa(f.piiVerdict.severity));g=hj(g,Zo,1,f)}else g=void 0;e.call(a,g)}d.formattedComment&&a.setFormattedComment(YYa(d.formattedComment));d.lastEditorUser&&(e=dn(d.lastEditorUser),hj(a,Zm,3,e));d.entityStatus&&a.setEntityStatus(gYa(d.entityStatus));d.piiRetention&&a.setRestrictedRetention(pYa(d.piiRetention));d.piiRetentionState&&a.setRestrictedRetentionState(jYa(d.piiRetentionState));if(d.commentReactions){e=d.commentReactions;d=new wp;e=l(e.entries());for(g=e.next();!g.done;g=
e.next()){f=l(g.value);g=f.next().value;var k=f.next().value;f=g;g=k;k=new Ep;var m=k.setType;a:switch(f){case "REACTION_TYPE_UNSPECIFIED":f=0;break a;case "UPVOTE":f=1;break a;default:throw Error("ud`"+f);}f=m.call(k,f);f=sp(f,1,g.hasReacted).setCount(g.count);g=g.recentResponders.map(dn);g=eq(f,3,Zm,g);fq(d,2,Ep,g)}hj(a,wp,17,d)}c.call(b,a)}return b},t_a=function(a){var b=(new p_a).setParent(a.parent);a=a.userEngagement;var c=(new q_a).setType(r_a[a.type]);a.rejectionReason!==void 0&&c.setRejectionReason(s_a[a.rejectionReason]);
a.issueModification!==void 0&&c.setIssueModification(m_a(a.issueModification));return hj(b,q_a,2,c)},u_a=function(a){return{recommendations:a.getRecommendationsList().map(j_a),nextPageToken:a.getNextPageToken(),totalSize:qn(a.getTotalSize())}},v_a=function(a){return{recommendations:a.getRecommendationsList().map(j_a)}},w_a=function(a){return{recommendations:a.getRecommendationsList().map(j_a)}},y_a=function(a){var b=(new x_a).setRecommendationsList(a.recommendations.map(n_a));a.parent&&b.setParent(a.parent);
a.resource&&b.setResource(a.resource);a.type&&b.setType(d_a[a.type]);return b},g_a=function(a){return{issue:Wp(a.getIssue()),recommendation:a.getRecommendation()}},z_a=function(a){var b;return((b=a.error)==null?void 0:b.message)!==void 0},hq=function(a){return!!a&&gq(a)&&(!!a.data&&a.data.message!==void 0||z_a(a))},iq=function(a){return a.data&&a.data.message!==void 0&&a.data&&a.data.message?a.data.message:z_a(a)&&a.error&&a.error.message?a.error.message:""},A_a=function(a){if(a)return{status:Qp[a.getStatus()],
issueIds:a.getIssueIdsList().map(qn).map(hn).filter(ln)}},B_a=function(a){if(a)return{priority:Rp[a.getPriority()],issueIds:a.getIssueIdsList().map(qn).map(hn).filter(ln)}},C_a=function(){},D_a=function(a){return Object.values(a).length>0},E_a=function(a,b){a.next(Object.freeze(Object.assign({},a.getValue(),b)))},F_a=function(a,b){var c=a.getValue();c=Object.assign({},c);b=(delete c[b],c);a.next(Object.freeze(b))},G_a=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))},H_a=function(a){var b=Object.assign({},a);a=a.ids;b=(delete b.ids,b);a&&(b.ids=[].concat(n(a)).sort());return JSON.stringify(b)},I_a=function(a,b,c){c=a.get(b)||c;a.has(b)||a.set(b,c);return c},J_a=function(a){a=a===void 0?{}:a;return TSa(a)},K_a=function(a){var b=new rf,c=a.subscribe(b);a=ee(b);a.finally(function(){c.unsubscribe()});return a},L_a=function(a){return a==null?new Promise(function(){}):
Promise.resolve(a)},M_a=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 sb(a,"Unexpected pii severity")}},jq=function(a){return a&&a.piiVerdict?a.piiVerdict.severity:"NONE_DETECTED"},N_a=function(a){switch(a){case "RESTRICTED":return"Restricted";case "RESTRICTED_PLUS":return"Restricted+";default:return""}},O_a=function(a){return bYa(a.getIt())},kq=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,"+")},P_a=function(a){return{name:a.getName(),displayName:a.getDisplayName(),description:a.getDescription()}},T_a=function(a){var b={issueId:a.getIssueId_asString(),category:a.getCategory(),author:fn(a.getAuthor()),timestamp:tn(a.getTimestamp())},c=a.getContentCase();switch(c){case 3:a=lm(a,Q_a,3,R_a);b.general={content:a.getContent(),
formattedContent:vp(a.getFormattedContent())};break;case 4:a=lm(a,S_a,4,R_a);b.similarIssues={issueIds:a.getIssueIdsList_asString()};break;case 5:a=a.getSummary();b.summary={content:a.getContent(),formattedContent:vp(a.getFormattedContent())};break;default:throw Error("Rd`"+c);}return b},U_a=function(a){var b={issueId:a.getIssueId_asString(),attachmentId:a.getAttachmentId_asString(),category:a.getCategory(),content:a.getContent(),formattedContent:vp(a.getFormattedContent()),author:fn(a.getAuthor()),
timestamp:tn(a.getTimestamp()),contentVerdict:ZXa(a.getContentVerdict())};Fi(a,9)&&(b.customDisplayName=Fi(a,9));return b},W_a=function(a){var b=(new lq).setIssueId(a.issueId).setCategory(a.category).setFeedbackType(V_a[a.feedbackType]);a.attachmentId&&b.setAttachmentId(a.attachmentId);return b},X_a=function(a){var b;return{searchId:a.getSavedSearchId_asString(),name:a.getName(),description:a.getDescription(),query:a.getQuery(),sortOrder:a.getDefaultOrderBy().split(",").filter(Boolean).map(OXa),displayColumn:NXa(a.getDisplayPreferences()),
adminUsers:((b=a.getOwnersList())!=null?b:[]).map(fn)}},Y_a=function(a){var b,c,d=(new mq).setSavedSearchId(Number(a.searchId)).setName(a.name).setDescription(a.description).setQuery(a.query).setDefaultOrderBy(QXa((b=a.sortOrder)!=null?b:[]));b=d.setDisplayPreferences;var e=(c=a.displayColumn)!=null?c:[];c=new Yp;e=e.map(KXa);c=an(c,1,e);return b.call(d,c).setOwnersList(a.adminUsers.map(dn))},$_a=function(a){switch(Oo(a,nq)){case 1:var b=a.getHotlist(),c=(b==null?0:b.getHotlist())?a_a(b.getHotlist()):
void 0,d;b=(d=rn(b==null?void 0:b.getHotlistId()))!=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())?X_a(e.getSavedSearch()):void 0,e=(e==null?0:e.getSavedSearchId())?e.getSavedSearchId_asString():"",{savedSearchId:e,savedSearch:d,name:(c=d==null?void 0:d.name)!=null?c:"Saved search "+e,resourceType:"SAVED_SEARCH"};case 3:d=a.getBookmarkGroup();e=(d==null?0:d.getBookmarkGroup())?
Z_a(d.getBookmarkGroup()):void 0;var f;return{bookmarkGroupId:(b=d==null?void 0:d.getBookmarkGroupId_asString())!=null?b:"",bookmarkGroup:e,name:(f=e==null?void 0:e.name)!=null?f:"",resourceType:"BOOKMARK_GROUP"};default:throw Error("Sd");}},b0a=function(a){switch(a.resourceType){case "HOTLIST":var b=(new oq).setHotlistId(a.hotlistId);a.hotlist&&b.setHotlist($Za(a.hotlist));return(new pq).setHotlist(b);case "SAVED_SEARCH":return b=new qq,a.savedSearchId&&b.setSavedSearchId(Number(a.savedSearchId)),
a.savedSearch&&b.setSavedSearch(Y_a(a.savedSearch)),(new pq).setSavedSearch(b);case "BOOKMARK_GROUP":return b=(new rq).setBookmarkGroupId(Number(a.bookmarkGroupId)),a.bookmarkGroup&&b.setBookmarkGroup(a0a(a.bookmarkGroup)),(new pq).setBookmarkGroup(b);default:sb(a.resourceType,"Unexpected resourceType in bookmarkItemToItProto")}},Z_a=function(a){var b=a.getArchived(),c=a.getBookmarkGroupId_asString(),d=a.getDescription();var e=Wi(a,pq,5,Xi());return{archived:b,bookmarkGroupId:c,description:d,item:e.map($_a),
name:a.getName(),adminUsers:a.getOwnersList().map(fn)}},a0a=function(a){var b,c=(new sq).setBookmarkGroupId(Number(a.bookmarkGroupId)).setName(a.name).setDescription(a.description).setArchived(a.archived),d=(b=a.item.map(b0a))!=null?b:[];return ij(c,5,d).setOwnersList(a.adminUsers.map(dn))},c0a=function(a){switch(a.resourceType){case "HOTLIST":return(new pq).setHotlist((new oq).setHotlistId(a.resourceId));case "SAVED_SEARCH":var b=new qq;a.resourceId&&b.setSavedSearchId(Number(a.resourceId));return(new pq).setSavedSearch(b);
case "BOOKMARK_GROUP":return(new pq).setBookmarkGroup((new rq).setBookmarkGroupId(Number(a.resourceId)));default:sb(a.resourceType,"Unexpected resourceType in bookmarkItemForUpdateToItProto")}},d0a=function(a){a=Z_a(a).item;a=aWa(a,function(k){return k.resourceType});var b,c,d,e,f,g;return{bookmarkGroups:(e=(b=a.get("BOOKMARK_GROUP"))==null?void 0:b.map(function(k){return k.bookmarkGroup}).filter(ln))!=null?e:[],hotlists:(f=(c=a.get("HOTLIST"))==null?void 0:c.map(function(k){return k.hotlist}).filter(ln))!=
null?f:[],savedSearches:(g=(d=a.get("SAVED_SEARCH"))==null?void 0:d.map(function(k){return k.savedSearch}).filter(ln))!=null?g:[]}},e0a=function(a){return Z_a(a.getIt())},f0a=function(a){a=Wi(a,sq,2,Xi(),fb);return(a!=null?a:[]).map(Z_a)},g0a=function(a){a=Ym(a,1,Xi(en),fb);return{changelistNumbers:a!=null?a:[]}},j0a=function(a){return{changelists:Wi(a,h0a,1,Xi(),fb).map(i0a),nextPageToken:a.getNextPageToken()}},i0a=function(a){var b,c;return{author:a.getAuthor(),changelistNumber:a.getChangelistNumber(),
pending:a.getPending(),timestamp:tn(a.getTimestamp()),issueIds:(b=a.getIssueIdsList_asString())!=null?b:[],fixedIssueIds:(c=mn(a,6))!=null?c:[]}},k0a=function(a){var b=a.getAuthor(),c=a.getDescription(),d=a.getPending(),e=qn(a.getTimestamp());a=Xm(a,5,Xi(en),fb);return{author:b,description:c,pending:d,timestamp:e,affectedFiles:a!=null?a:[]}},l0a=function(a){if(a)return VXa(a.getIt())},m0a=function(a){var b=Xm(a,1,Xi(en),fb);a=Xm(a,2,Xi(en),fb);return{noAccessEmails:b,unknownEmails:a}},n0a=function(a){var b=
a.getIt();a=Wi(b,Uo,2,Xi()).map(To);var c=b.getAppendersList().map(To),d=Wi(b,Uo,4,Xi()).map(To),e=b.getReadersList().map(To),f=Wi(b,Uo,11,Xi()).map(To),g=Wi(b,Uo,12,Xi()).map(To),k=Wi(b,Uo,3,Xi()).map(To),m=Wi(b,Uo,7,Xi()).map(To),r=Wi(b,Uo,5,Xi()).map(To),w=Wi(b,Uo,9,Xi()).map(To);a:switch(Ri(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("md");}return{admins:a,appenders:c,editors:d,readers:e,restrictedReaders:f,restrictedPlusReaders:g,
inheritedAdmins:k,implicitAppenders:m,implicitEditors:r,implicitReaders:w,implicitAccess:b}},p0a=function(a,b){b=b===void 0?document.documentElement:b;return ke(le(function(){return be(b.querySelector(a))}),o0a(b,{childList:!0,subtree:!0}).pipe(te(function(c){return c.some(function(d){return d.addedNodes.length>0})}),A(function(){return b.querySelector(a)}))).pipe(te(ln),mf(1),A(function(c){return c}))},o0a=function(a,b){return new Sd(function(c){var d=new MutationObserver(function(e){c.next(e)});
d.observe(a,b);return function(){d.disconnect()}})},tq=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)}}},q0a=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(" > ")},r0a=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)},uq=function(a){return a.ctrlKey||a.metaKey||a instanceof MouseEvent&&a.button===1},wq=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 vq(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("Ud`"+a);}},t0a=function(a){var b=xYa(a.getFieldId()),c=Ri(a,4);return{fieldId:b,stateOnIssues:s0a[c],enabledOnIssues:$i(a,5)}},w0a=function(a){var b,c,d;return{name:a.getName(),componentId:jn(a.getComponentId_asString()),issueTypes:new Set((d=(b=lm(a,u0a,5,v0a))==null?void 0:(c=On(b,1,Xi()))==null?void 0:c.map($Ya))!=null?d:[]),customFieldConfigs:new Map(Wi(a,xq,
3,Xi()).map(function(e){return[qn(e.getFieldId().getCustomFieldId()),e.getState()===2]}))}},B0a=function(a){var b=x0a((new yq).setComponentId(a.componentId).setName(a.name),Array.from(a.customFieldConfigs,function(c){var d=l(c);c=d.next().value;d=d.next().value;return(new xq).setFieldId(zYa({customFieldId:c})).setState(d?2:1)}));a=[].concat(n(a.issueTypes));a.length>0?y0a(b,z0a(new u0a,a.map(aZa))):A0a(b);return b},E0a=function(a){var b=Y(a,zq,7),c,d=(c=b==null?void 0:b.getSlo())!=null?c:new Aq,e;
c=a.getId_asString();var f=(e=b==null?void 0:b.getVersion())!=null?e:0;e=a.getName();var g=a.getDescription(),k=[].concat(n(a.getPathNamesList())),m=a.getPathIdsList_asString(),r=[],w=r.concat;var x=Xm(a,5,Xi());r=w.call(r,n(x));w=a.getMembersList().map(C0a);a=$i(a,9);d={inherit:d.getInherit(),sloId:d.getId_asString(),comment:d.getComment(),sourceTeamId:d.getSourceTeamId_asString()};if(b){x=b==null?void 0:b.getEscalationOwner();var D=b==null?void 0:b.getDefaultEscalationOwner();switch(b==null?void 0:
Oo(b,D0a)){case 9:b=fn(lm(b,Zm,9,D0a));break;case 10:b={emailAddress:"",obfuscatedEmailAddress:"",userGaiaStatus:"UNSPECIFIED",aliases:[]};break;default:b=void 0}b={escalationOwner:x?fn(x):void 0,defaultEscalationOwner:D?fn(D):void 0,escalationOwnerOverride:b}}else b=void 0;return{teamId:c,version:f,name:e,description:g,pathNames:k,pathIds:m,collapsedPathNames:r,members:w,deleted:a,slo:d,extra:b}},C0a=function(a){var b=a.getUser();return{user:b?fn(b):{},isLead:a.getIsLead()}},G0a=function(a){return(new F0a).setIsLead(a.isLead).setUser(dn(a.user))},
H0a=function(a){var b=new Aq;b.setInherit(a.inherit).setId(Number(a.sloId)).setComment(a.comment).setSourceTeamId(Number(a.sourceTeamId));return b},I0a=function(a){return(new Bq).setInherit(a.inherit).setId(a.id)},J0a=function(a){var b=a.getTeamId();b=b==null?null:String(b);return{teamId:b!=null?b:"",score:a.getScore()}},L0a=function(a){return(new K0a).setTeamId(Number(a.teamId)).setScore(a.score)},N0a=function(a){var b=Wi(a,M0a,4,Xi()).map(t0a);b=new Map(b.map(function(g){return[g.fieldId.customFieldId,
g]}));var c,d,e=(d=(c=Wi(a,pp,5,Xi()))==null?void 0:c.map(GYa))!=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)}d=a.getFieldConfigsV2List().map(w0a);c=new Map;d=l(d);for(f=d.next();!f.done;f=d.next())f=f.value,f.componentId&&(c.has(f.componentId)||c.set(f.componentId,[]),c.get(f.componentId).push(f));return{componentPathId:mn(a,1).map(jn).filter(ln),componentPathName:Xm(a,2,Xi(en)),
allCustomField:e,fieldConfigsMap:b,fieldConfigsV2Map:c}},O0a=function(a){switch(a){case "ALL_PROTECTIONS":return 2;case "NO_PROTECTIONS":return 1;case "SPAM_PROTECTION_UNSPECIFIED":return 0;default:return 0}},S0a=function(a){var b=Si(a,dp,15)?lYa(Y(a,dp,15)):void 0,c=Si(a,Cq,7)?N0a(Y(a,Cq,7)):void 0;if(a.hasSlo()){var d=a.getSlo();var e=d.getInherit(),f=d.getSource();d={inherit:e,source:P0a[f],id:jn(d.getId_asString()),sourceComponentId:jn(Ln(d,6)),sourceTeamId:jn(d.getSourceTeamId_asString()),comment:d.getComment()}}else d=
void 0;var g;if(Si(a,tp,18)){f=a.getEffortSpec();e=f.getInherit();var k=qn(f.getId()),m=f.getName();a:switch(Ri(f,6)){case 2:var r="MAX";break a;case 1:r="SUM";break a;default:r="AGGREGATION_TYPE_UNSPECIFIED"}e={inherit:e,id:k,name:m,aggregationType:r,customFieldId:qn(f.getCustomFieldId())};if(lj(f,NYa,4,Dq)){if(g=lm(f,NYa,4,Dq))e.numericSpec={multiplier:tm(g,1)}}else if(lj(f,QYa,5,Dq)&&(f=lm(f,QYa,5,Dq),e.enumSpec={options:[]},f&&(f==null?void 0:(g=Wi(f,up,1,Xi()))==null?void 0:g.length)>0))for(g=
l(Wi(f,up,1,Xi())),f=g.next();!f.done;f=g.next())f=f.value,m=k=void 0,(k=e.enumSpec)==null||(m=k.options)==null||m.push({label:f.getLabel(),value:f.getValue()});g=e}else g=void 0;a.hasTeam()?(e=a.getTeam(),e={inherit:e.getInherit(),id:e.getId_asString()}):e=void 0;Si(a,Eq,22)?(k=Y(a,Eq,22),f=k.getInherit(),k=k.getState(),f={inherit:f,state:Q0a[k]}):f=void 0;k=VXa(a.getAccessLimit());m=Ri(a,21);m=m===2?"ALL_PROTECTIONS":m===1?"NO_PROTECTIONS":"SPAM_PROTECTION_UNSPECIFIED";r=qn(a.getTrackerId())?a.getTrackerId_asString():
void 0;var w=a.getComponentId_asString(),x,D=jn(Ln(a,3)),H=a.getName(),J=a.getDescription(),O=a.getIsArchived(),R="buganizer-system+"+a.getComponentId()+"@google.com";var V=Ri(a,10)===1?"ENABLED":"DISABLED";var ba=qn(Hn(a,6)),pa=gn(ba);if(pa==null)throw Error("Vd`"+ba);ba=Ri(a,17);ba=R0a[ba];a=Wi(a,K0a,19,Xi());return{componentId:w==="0"?"":w,parentComponentId:D,name:H,description:J,archived:O,componentPathInfo:c,accessLimit:k,emailAlias:R,commentEditState:V,defaultTemplateId:pa,slo:d,retentionSettings:b,
fieldOrdering:ba,effortSpec:g,team:e,teamSuggestions:(x=a==null?void 0:a.map(J0a))!=null?x:[],trackerId:r==="0"?void 0:r,spamProtection:m,autoInactivationSettings:f}},T0a=function(a){return{author:fn(a.getAuthor()),timestamp:tn(a.getTimestamp()),add:S0a(a.getAdd()),remove:S0a(a.getRemove()),addMask:EXa(a.getAddMask()),removeMask:EXa(a.getRemoveMask())}},V0a=function(a){a=a.getIt();var b;return{updates:((b=Wi(a,U0a,1,Xi()))!=null?b:[]).map(T0a)}},Fq=function(a){return S0a(a.getIt())},W0a=function(a){var b=
new Gq;b=ap(b,3,a.parentComponentId).setName(a.name).setDescription(a.description);a.commentEditState&&b.setCommentEditState(a.commentEditState==="ENABLED"?1:2);a.retentionSettings&&(a=nYa(a.retentionSettings),hj(b,dp,15,a));return(new Hq).setIt(b)},X0a=function(a){var b;return((b=a.getComponentsList())!=null?b:[]).map(Fq)},Y0a=function(a){return{warningHeader:Fi(a,1,void 0,fb),warning:Fi(a,2,void 0,fb),isAllowed:$i(a,3,void 0,fb),isExternalMove:$i(a,4,void 0,fb)}},$0a=function(a){a=a.getIt();var b=
FZa(a.getIssueState());a.getComment()&&(b.comment=a.getComment());a.getFormattingMode()&&(b.formattingMode=Z0a[a.getFormattingMode()]);return{componentId:jn(a.getComponentId_asString()),templateId:qn(a.getTemplateId()),name:a.getName(),description:a.getDescription(),default:$i(a,9),inheritable:$i(a,10),snapshot:b}},b1a=function(a){var b=new Iq,c=b.setIt;var d=(new a1a).setFormattingMode(Dp(a.snapshot.formattingMode)).setComment(a.snapshot.comment).setComponentId(a.componentId).setTemplateId(a.templateId).setName(a.name).setDescription(a.description);
d=sp(d,9,a.default);a=sp(d,10,a.inheritable).setIssueState(MZa(a.snapshot));return c.call(b,a)},c1a=function(a){a=Wi(a,Hq,1,Xi(),fb);return(a!=null?a:[]).map(Fq)},d1a=function(a){var b,c;return((c=(b=a.getIt())==null?void 0:b.getComponentsList())!=null?c:[]).map(S0a)},e1a=function(a){return{componentPath:a.getComponentPath(),retentionSettings:lYa(Y(a,dp,3))}},g1a=function(a){return Wi(a,f1a,2,Xi(),fb).map(e1a)},h1a=function(a){return $0a(Y(a,Iq,1,fb))},i1a=function(a){return(Wi(a,Iq,1,Xi(),fb)||[]).map($0a)},
Jq=function(a,b){this.map_={};this.keys_=[];this.version_=this.size=0;var c=arguments.length;if(c>1){if(c%2)throw Error("jb");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)},k1a=function(a,b){this.maxCount_=a||null;this.cache_=!0;this.evictionCallback_=b;this.map_=new Jq;this.head_=new j1a("");this.head_.next=this.head_.prev=this.head_},l1a=function(a){return(new Kq).setIt($Za(a))},Lq=function(a){return a_a(a.getIt())},n1a=function(a){a=Y(a,m1a,1,fb);return $_a(a.getIt())},
o1a=function(a){return X_a(a.getIt())},p1a=function(a){return o1a(a.getSearch())},q1a=function(a){return Wi(a,Mq,1,Xi(),fb).map(o1a)},Oq=function(a){return Nq(a,DWa)},Nq=function(a,b){var c={};return a.filter(function(d){d=String(b(d));return c[d]?!1:c[d]=!0})},r1a=function(a){return function(b){return Nq(b,a)}},s1a=function(a,b){return a.map(function(c,d){return[c,b[d]]})},t1a=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},u1a=function(a,b){return a===b?!0:a.length!==b.length?!1:a.every(function(c,d){return c===b[d]})},v1a=function(a,b){a=[].concat(n(a)).sort();b=[].concat(n(b)).sort();return u1a(a,b)},w1a=function(a,b){if(a.length===0)return b;b=b.slice();b=t1a(a,b);return[].concat(n(a),n(b))},x1a=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)})}},y1a=function(a,b){a=aWa(a,b);return[].concat(n(a.values()))},
z1a=function(a){for(var b=[],c=0;c<a.length;c+=100)b.push(a.slice(c,c+100));return b},A1a=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]})},B1a=function(a){return{id:String(a.hotlistId),name:a.name,description:a.description,adminUsers:a.adminUsers,starred:!0,resourceType:"HOTLIST"}},C1a=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,g,k,m;return{id:String(a.savedSearchId),name:a.name,description:(k=(f=a.savedSearch)==null?void 0:f.description)!=null?k:"",adminUsers:(m=(g=a.savedSearch)==null?void 0:g.adminUsers)!=null?m:[],starred:!0,resourceType:"SAVED_SEARCH"};case "BOOKMARK_GROUP":throw Error("ae");default:sb(a.resourceType,"Unexpected type in bookmarkItemToLink")}},
D1a=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(C1a)}},H1a=function(a,b,c){var d=new Map,e=new Map,f=new Map,g=new Map,k=new Map;b=l(b);for(var m=b.next();!m.done;m=b.next())m=m.value,m.archived?e.set(m.bookmarkGroupId,m):d.set(m.bookmarkGroupId,m);b=[].concat(n(d.values())).flatMap(function(r){var w;return(w=r.item)!=null?w:[]});b=new Set(b.filter(function(r){return r.resourceType===
"HOTLIST"}).map(function(r){return r.hotlistId}));a=l(a);for(m=a.next();!m.done;m=a.next())m=m.value,b.has(m.hotlistId)||(m.archived?g.set(m.hotlistId,B1a(m)):f.set(m.hotlistId,B1a(m)));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:E1a([].concat(n(d.values())).map(D1a)),archivedBookmarkGroups:E1a([].concat(n(e.values())).map(D1a)),
hotlists:F1a(f.values()),archivedHotlists:F1a(g.values()),savedSearches:G1a(k.values())}},I1a=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(n(a.hotlists),n(a.archivedHotlists))),f=e.next();!f.done;f=e.next())f=f.value,f.starred=c.has(Number(f.id));e=l([].concat(n(a.bookmarkGroups),n(a.archivedBookmarkGroups)));for(f=
e.next();!f.done;f=e.next()){f=f.value;f.starred=d.has(f.id);var g=void 0;f=l((g=f.sublinks)!=null?g:[]);for(g=f.next();!g.done;g=f.next())switch(g=g.value,g.resourceType){case "HOTLIST":g.starred=c.has(Number(g.id));break;case "SAVED_SEARCH":g.starred=b.has(g.id);break;case "BOOKMARK_GROUP":g.starred=d.has(g.id);break;default:throw Error("be");}}c=l(a.savedSearches);for(d=c.next();!d.done;d=c.next())d=d.value,d.starred=b.has(d.id);return a},J1a=function(a){return FYa(a.getIt())},L1a=function(a){return(new K1a).setIt(JYa(a))},
M1a=function(a){a=a.getIt();return{customFields:a.getCustomFieldsList().map(FYa),nextPageToken:a.getNextPageToken(),totalSize:a.getTotalSize()}},P1a=function(a){var b,c=(b=Y(a,Pq,2,fb))==null?void 0:Ri(b,1),d;b=(d=Y(a,Pq,2,fb))==null?void 0:Ri(d,4);var e,f,g,k;d=a.getId_asString();c={phase:c!=null?N1a[c]:"UNSPECIFIED",subphase:b!=null?O1a[b]:"TRIAGE_SUBPHASE_UNSPECIFIED",triagerEmail:(g=(e=Y(a,Pq,2,fb))==null?void 0:Fi(e,3))!=null?g:void 0,dismissed:(k=tn((f=Y(a,Pq,2,fb))==null?void 0:Y(f,nj,5)))!=
null?k:void 0};a=Xm(a,4,Xi(),fb);return{id:d,triage:c,clusterIds:a}},S1a=function(a){var b=new Pq;b=Yn(b,1,Q1a[a.triage.phase]);b=Yn(b,4,R1a[a.triage.subphase]);b=Gj(b,3,a.triage.triagerEmail);if(a.triage.dismissed){var c=un(a.triage.dismissed);hj(b,nj,5,c)}b=(new Qq).setId(a.id).setTriage(b);return yc(b,4,Nb,a.clusterIds,Ob,fb)},W1a=function(a){var b=a.getId_asString();if(b&&b!=="0"){var c={id:0},d=Wi(a,Rq,2,Xi(),fb).map(function(f){var g,k,m,r,w;return{scope:(k=f.getScope())!=null?k:void 0,showComponentColumn:(m=
$i(f,2))!=null?m:!1,config:Wi(f,T1a,3,Xi()).map(U1a)||[],id:(r=qn(f.getId()))!=null?r:0,displayName:f.getDisplayName()||void 0,displayColumns:(w=(g=f.getDisplayColumns())==null?void 0:g.getColumnList().map(YTa).filter(ln))!=null?w:[]}});d.length===0&&d.push(c);var e;return{id:b,triage:d,playbooks:(e=Wi(a,Sq,3,Xi(),fb).map(V1a))!=null?e:[]}}},V1a=function(a){var b,c,d;return{name:(b=a.getName())!=null?b:void 0,instructions:(c=Fi(a,2))!=null?c:void 0,searchQuery:(d=Fi(a,3))!=null?d:void 0}},X1a=function(a){var b,
c,d,e=(new Sq).setName((b=a.name)!=null?b:"");b=(c=a.instructions)!=null?c:"";c=Gj(e,2,b);a=(d=a.searchQuery)!=null?d:"";return Gj(c,3,a)},U1a=function(a){switch(Oo(a,Y1a)){case 1:return{type:"CUSTOM_FIELD",customFieldConfig:Z1a(lm(a,Tq,1,Y1a))};case 2:return{type:"HOTLIST",hotlistConfig:$1a(lm(a,a2a,2,Y1a))};default:throw Error("ce");}},f2a=function(a){var b=new T1a;if(a.type==="CUSTOM_FIELD"&&a.customFieldConfig)a=b2a(a.customFieldConfig),op(b,1,Y1a,a);else if(a.type==="HOTLIST"&&a.hotlistConfig){a=
a.hotlistConfig;var c=(new a2a).setHotlistIdsList(a.hotlistIds);a=Yn(c,2,c2a[a.operation]).setPhasesList(d2a(a.phases)).setSubphasesList(e2a(a.subphases));op(b,2,Y1a,a)}return b},Z1a=function(a){var b,c=(b=Wi(a,g2a,2,Xi()).map(function(d){return{phases:d.getPhasesList().map(function(e){return N1a[e]}),subphases:d.getSubphasesList().map(function(e){return O1a[e]}),value:AYa(d.getValue())}}))!=null?b:[];return{customFieldId:a.getCustomFieldId_asString(),defaultValues:c}},b2a=function(a){var b=(new Tq).setCustomFieldId(a.customFieldId);
a=a.defaultValues.map(function(c){return(new g2a).setPhasesList(d2a(c.phases)).setSubphasesList(e2a(c.subphases)).setValue(CYa(c.value))});ij(b,2,a);return b},$1a=function(a){return{hotlistIds:a.getHotlistIdsList_asString(),operation:h2a[Ri(a,2)],phases:a.getPhasesList().map(function(b){return N1a[b]}),subphases:a.getSubphasesList().map(function(b){return O1a[b]})}},d2a=function(a){var b;return(b=a==null?void 0:a.map(function(c){return Q1a[c]}))!=null?b:[]},e2a=function(a){var b;return(b=a==null?
void 0:a.map(function(c){return R1a[c]}))!=null?b:[]},i2a=function(a){var b=new Rq;a.scope&&b.setScope(a.scope);var c;jj(b,2,a.showComponentColumn).setId(a.id).setDisplayName(a.displayName).setDisplayColumns(LUa({column:(c=a.displayColumns)!=null?c:[]}));a.config&&(a=a.config.map(f2a),eq(b,3,T1a,a));return b},j2a=function(a){a==="[Deleted User]"&&(a="nobody@google.com");a.includes("@")||(a+="@google.com");var b=new Zm;return $m(b,1,a)},k2a=function(a){var b;return(b=a==null?void 0:a.trim().split(",").filter(Boolean).map(j2a))!=
null?b:[]},Uq=function(a){var b;return(b=a==null?void 0:a.trim().split(",").filter(Boolean).map(gn).filter(ln))!=null?b:[]},l2a=function(a){var b;return(b=a==null?void 0:a.trim().split(",").filter(Boolean))!=null?b:[]},n2a=function(a){var b=new Set,c=new Set,d=new Sp,e=new Sp;a=l(a);for(var f=a.next();!f.done;f=a.next())switch(f=f.value,f.fieldName){case "assignee":f.value?(d.setAssignee(j2a(f.value)),b.add("assignee")):(e.setAssignee(new Zm),c.add("assignee"));break;case "attachments":break;case "blockedByIssueId":f.actionType===
"ADD"?(d.addAllBlockedByIssueIds(Uq(f.value)),b.add("blocked_by_issue_ids")):(e.addAllBlockedByIssueIds(Uq(f.value)),c.add("blocked_by_issue_ids"));break;case "blockingIssueId":f.actionType==="ADD"?(d.addAllBlockingIssueIds(Uq(f.value)),b.add("blocking_issue_ids")):(e.addAllBlockingIssueIds(Uq(f.value)),c.add("blocking_issue_ids"));break;case "ccs":f.actionType==="ADD"?(d.addAllCcs(k2a(f.value)),b.add("ccs")):(e.addAllCcs(k2a(f.value)),c.add("ccs"));break;case "changelists":f.actionType==="ADD"?(d.addAllCodeChanges(l2a(f.value)),
b.add("code_changes")):(e.addAllCodeChanges(l2a(f.value)),c.add("code_changes"));break;case "collaborators":f.actionType==="ADD"?(d.addAllCollaborators(k2a(f.value)),b.add("collaborators")):(e.addAllCollaborators(k2a(f.value)),c.add("collaborators"));break;case "staffing":if(!f.staffingValue)break;f.actionType==="ADD"?(d.setStaffing(sZa(f.staffingValue)),b.add("staffing")):(e.setStaffing(sZa(f.staffingValue)),c.add("staffing"));break;case "comment":break;case "componentId":d.setComponentId(gn(f.value));
b.add("component_id");break;case "customField":if(!f.customFieldValue)break;var g=CYa(f.customFieldValue);f.actionType==="ADD"?(d.addCustomFields(g),b.add("custom_fields")):(e.addCustomFields(g),c.add("custom_fields"));break;case "deletionReason":f.value!=null?(d.setDeletionReason(KZa[f.value]),b.add("deletion_reason")):(e.setDeletionReason(2),c.add("deletion_reason"));break;case "duplicateOfIssueId":(f=gn(f.value))?(d.setCanonicalIssueId(f),b.add("canonical_issue_id")):c.add("canonical_issue_id");
break;case "effortEstimate":f.value?(g=new Tp,f=$m(g,2,f.value),d.setEffort(f),b.add("effort")):(e.setEffort(new Tp),c.add("effort"));break;case "foundInVersion":if(f.value==null)continue;f.actionType==="ADD"?(Vq(d,17,f.value),b.add("found_in_versions")):(Vq(e,17,f.value),c.add("found_in_versions"));break;case "gerritChanges":g=(f.gerritChangeValue||[]).map(JZa);f.actionType==="ADD"?(d.addAllGerritChanges(g),b.add("gerrit_changes")):(e.addAllGerritChanges(g),c.add("gerrit_changes"));break;case "hotlists":f.actionType===
"ADD"?(d.addAllHotlistIds(Uq(f.value)),b.add("hotlist_ids")):(e.addAllHotlistIds(Uq(f.value)),c.add("hotlist_ids"));break;case "inProd":d.setInProd(f.value==="true");b.add("in_prod");break;case "type":d.setType(m2a[f.value]);b.add("type");break;case "isArchived":d.setIsArchived(f.value==="true");b.add("is_archived");break;case "isDeleted":d.setIsDeleted(f.value==="true");b.add("is_deleted");break;case "parentId":break;case "priority":d.setPriority(HZa[f.value]);b.add("priority");break;case "readState":break;
case "reporter":d.setReporter(j2a(f.value));b.add("reporter");break;case "severity":d.setSeverity(IZa[f.value]);b.add("severity");break;case "sloEndTime":(f=gn(f.value))?(d.setSloEndTime(un({seconds:f,nanos:0})),b.add("slo_end_time")):(e.setSloEndTime(new nj),c.add("slo_end_time"));break;case "sloSnoozeType":d.setSloSnoozeType(LZa[f.value]);b.add("slo_snooze_type");break;case "sloStartTime":(f=gn(f.value))?(d.setSloSnoozeUntil(un({seconds:f,nanos:0})),b.add("slo_snooze_until")):(e.setSloSnoozeUntil(new nj),
c.add("slo_snooze_until"));break;case "status":d.setStatus(GZa[f.value]);b.add("status");break;case "targetedToVersion":if(f.value==null)continue;f.actionType==="ADD"?(Vq(d,18,f.value),b.add("targeted_to_versions")):(Vq(e,18,f.value),c.add("targeted_to_versions"));break;case "title":d.setTitle(f.value);b.add("title");break;case "verifiedInVersion":if(f.value==null)continue;f.actionType==="ADD"?(Vq(d,19,f.value),b.add("verified_in_versions")):(Vq(e,19,f.value),c.add("verified_in_versions"));break;
case "verifier":f.value?(d.setVerifier(j2a(f.value)),b.add("verifier")):(e.setVerifier(new Zm),c.add("verifier"));break;default:sb(f.fieldName,"Unhandled IssueFieldName in actionsToIssueStateChanges")}a=new Xq;b=Array.from(b);b=yc(a,1,Nb,b,Ob);a=new Xq;c=Array.from(c);c=yc(a,1,Nb,c,Ob);return{addMask:b,removeMask:c,stateAddBuilder:d,stateRemoveBuilder:e}},p2a=function(a){var b=n2a(a.actions),c=b.addMask,d=b.removeMask,e=b.stateAddBuilder;b=b.stateRemoveBuilder;c=(new o2a).setIssueId(Number(a.issueId)).setAdd(e).setRemove(b).setAddMask(c).setRemoveMask(d);
(a=Ia(a.actions.filter(function(f){return f.fieldName==="comment"})))&&a.value!=null&&c.setIssueComment((new cq).setComment(a.value));return c},r2a=function(a,b,c,d){var e=new Yq,f=e.setIt;a=(new q2a).setIssueId(a);b&&a.setIssueAccessLimit(SXa(b));c&&a.setAddedCollaboratorsList(c.map(dn));d&&a.setRemovedCollaboratorsList(d.map(dn));return f.call(e,a)},s2a=function(a){return(new Zq).setIt((new $q).setIssueId(Number(a)))},v2a=function(a){return(new t2a).setIt((new u2a).setIssueId(Number(a.issueId)).setComponentId(Number(a.componentId)))},
y2a=function(a){var b,c=new w2a,d=c.setIt,e=(new x2a).setIssueId(String(a.issueId)).setComponentId(a.componentId);a=(b=a.setLimitViewTrusted)!=null?b:!1;b=sp(e,3,a);return d.call(c,b)},z2a=function(a){return{issueId:jn(a.getIssueId_asString()),status:Qp[a.getStatus()],title:a.getTitle()}},C2a=function(a){var b=(new A2a).setFieldName(a.fieldName);a.value&&b.setValue(a.value);a.actionType&&Yn(b,3,B2a[a.actionType]);if(a.customFieldValue){var c=b.setCustomFieldValue;a=a.customFieldValue;a=(new ar).setIt(CYa(a));
c.call(b,a)}return b},E2a=function(a){return(new D2a).setIt(p2a(a))},I2a=function(a){var b=new F2a;var c=a.addHotlistIds.map(String);b=tc(b,1,c,Fb);c=a.removeHotlistIds.map(String);b=tc(b,2,c,Fb);var d=a.hotlistIssue;a=(new Zp).setIssueId(Number(d.issueId));d.position&&a.setPosition(d.position);if(d.issue){c=a.setIssue;d=d.issue;var e=(new $p).setIssueId(d.issueId).setVersion(d.version).setCustomFieldsList(d.customFields.map(JYa)),f=d.visibleFields.map(zYa);e=ij(e,34,f).setMajorModifiedTime(wn(d.majorModifiedTimeMicros)).setParentIssueIdsList(d.parentIssueIds.map(gn).filter(ln)).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(MZa(d.snapshot[0]));d.statusUpdate&&e.setStatusUpdate(zZa(d.statusUpdate));if(d.userData){var g=d.userData;f=new G2a;g.voted&&sp(f,2,g.voted);g.starred&&sp(f,1,g.starred);g.notificationSubscription&&f.setNotificationSubscription(H2a[g.notificationSubscription]);g.lastViewedTimeMicros!==void 0&&(g=wn(g.lastViewedTimeMicros),hj(f,nj,5,g));hj(e,G2a,9,f)}if(d.aggregatedData){ap(e,10,d.aggregatedData.voteCount).setCreatedTime(wn(d.aggregatedData.createdTimeMicros)).setResolvedTime(wn(d.aggregatedData.resolvedTimeMicros)).setVerifiedTime(wn(d.aggregatedData.verifiedTimeMicros)).setModifiedTime(wn(d.aggregatedData.modifiedTimeMicros));
d.aggregatedData.lastModifier&&(f=dn(d.aggregatedData.lastModifier),hj(e,Zm,14,f));if(d.aggregatedData.sloStatus){f=e.setSloStatus;var k=d.aggregatedData.sloStatus;g=new br;if(k.assignmentBounds){var m=eZa(k.assignmentBounds);hj(g,Fp,1,m)}k.responseBounds&&(m=eZa(k.responseBounds),hj(g,Fp,2,m));k.closureBounds&&(k=eZa(k.closureBounds),hj(g,Fp,3,k));f.call(e,g)}d.aggregatedData.sloId&&e.setSloId(d.aggregatedData.sloId);d.aggregatedData.teamId&&e.setTeamId(d.aggregatedData.teamId);d.aggregatedData.retentionState&&
e.setRetentionState(jYa(d.aggregatedData.retentionState))}d.accessLimit&&e.setAccessLimit(XXa(d.accessLimit));if(d.ancestors)for(f=e.getAncestorsMap(),g=l(d.ancestors.entries()),k=g.next();!k.done;k=g.next())m=l(k.value),k=m.next().value,m=m.next().value,f.set(jb(k),(new cr).setSourceIssueIdsList(m.sourceIssueIds.map(gn).filter(ln)));d.userActivityStats&&(f=d.userActivityStats,g=new XZa,g=ap(g,1,f.oneDayViewCount),g=ap(g,2,f.sevenDayViewCount),f=ap(g,3,f.thirtyDayViewCount),hj(e,XZa,47,f));d.escalationOwner&&
e.setEscalationOwner(dn(d.escalationOwner));c.call(a,e)}a=(new dr).setIt(a);return hj(b,dr,3,a)},K2a=function(a){var b=Wi(a,J2a,1,Xi(),fb);return{issueDigests:(b!=null?b:[]).map(z2a),numTotalResults:qn(Hn(a,2,void 0,fb))}},N2a=function(a){var b=(new L2a).setIssueId(a.issueId).setRetention(pYa(a.retention));a.significanceOverride&&b.setSignificanceOverride(IYa[a.significanceOverride]);return(new M2a).setIt(b)},S2a=function(a){var b=new O2a,c=b.setIt,d=(new $p).setIssueState(MZa(a.snapshot));a.snapshot.comment&&
d.setIssueComment((new cq).setComment(a.snapshot.comment).setFormattingMode(Dp(a.snapshot.formattingMode)));a.attachments&&d.addAllAttachments(a.attachments.map(tYa));d=(new P2a).setIssue(d);if(a.templateId!=null){var e=new Q2a;e=sp(e,1,!1).setTemplateId(a.templateId);hj(d,Q2a,3,e)}a.contentJudgement&&(e=d.setContentJudgement,a=R2a(cYa(a.contentJudgement)),a=cn(a,6,1),e.call(d,a));return c.call(b,d)},T2a=function(a){return{issueId:jn(a.getIssueId_asString())}},V2a=function(a,b){a=(new U2a).setQuery(a);
b.s&&a.setOrderBy(RXa(b.s));b.count&&(a.setPageSize(b.count),b.p&&a.setPageToken("start_index:"+b.count*(b.p-1)));var c;return(new er).setIt(a).setTrackerIdsList((c=b.trackerIds)!=null?c:[])},g3a=function(a,b,c){a=W2a(new X2a,V2a(a,b));c.queryType&&Yn(a,2,Y2a[c.queryType]);c.sortSpecs&&c.sortSpecs.length&&Z2a(a,c.sortSpecs.map(function(d){var e=new $2a;e=Yn(e,1,a3a[d.sortType]);return jj(e,2,d.sortDecreasing)}));c.experimentalFields&&b3a(a,S1a(c.experimentalFields));c.concatenator&&c3a(a,d3a((new e3a).setRelation(f3a[c.concatenator.relation]),
c.concatenator.experimentalSortPrimary));return a},h3a=function(a){return yZa(a.getIt())},i3a=function(a){var b=new fr,c=b.setIt;var d=(new gr).setQuery(a.query);d=cn(d,2,IYa[a.minimumSignificance]);a=sn(d,4,a.maximumSize);a=cn(a,3,2);return c.call(b,a)},j3a=function(a){var b;return{isCommentEvent:!0,version:a.version,unlinkifiedComment:a.unlinkifiedComment,commentNumber:a.commentNumber,commentVersion:a.version,commentLastModifiedAtDate:GTa(a.lastModified),commentRedacted:kn(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}},k3a=function(a,b){var c,d,e;return{attachments:[],preDiffs:[],postDiffs:[],modifiedDate:UTa(wn((e=(c=b.aggregatedData)==null?void 0:c.createdTimeMicros)!=null?e:0)),userPerformingActionUser:a.lastEditorUser,
userPerformingAction:FTa()(Rm(a.lastEditorUser)),isCommentEvent:!0,commentVersion:a.version,version:a.version,commentLastModifiedAtDate:GTa(a.lastModified),commentRedacted:kn(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}},hr=function(a){if(a!=null&&a.getIssue())return a=a.getIssue(),a=a!=null?ZZa(a.getIt()):void 0,a},m3a=function(a){var b=new l3a;b.setIssueIdsList(a.issueIds.map(String));a=a.actions.map(C2a);ij(b,1,a);return b},n3a=function(a){return{issueId:a.getIssueId_asString(),message:a.getMessage()}},p3a=function(a){for(var b={},c=l(sc(a,1,ir,Rb,fb).entries()),d=
c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;e=e!=null?Wp(e.getIt()):void 0;b[d]=e}c={};d=l(sc(a,3,Hq,Rb,fb).entries());for(e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;f=f.next().value;c[e]=Fq(f)}a=Wi(a,o3a,2,Xi(),fb);a=(a!=null?a:[]).map(n3a);return{affectedIssues:b,componentMap:c,errors:a}},q3a=function(a){var b;return((b=a.getIt().getIssueCommentsList())!=null?b:[]).map(xp).map(j3a)},r3a=function(a){var b=a.getIt();Si(b,nj,3)?(a=a.getIt(),
a=Y(a,nj,3),a=xn(a)):a=0;return{readTimestamp:a}},s3a=function(a){a=a.getIt();var b=a.getIssueState(),c=b.getAccessLimit();b={type:$Ya(b.getType()),status:Qp[b.getStatus()],priority:Rp[b.getPriority()],severity:BZa[b.getSeverity()],componentId:jn(b.getComponentId_asString()),accessLimitLevel:c!=null?TXa(c):null};return{issueId:a.getIssueId_asString(),issueState:b,modifiedTime:tn(a.getModifiedTime()),teamId:jn(a.getTeamId_asLegacyNumberOrString())}},t3a=function(a){return xp(a.getIt())},u3a=function(a){return a.getIt().getIssueCommentsList().map(xp)},
v3a=function(a){return TYa(a==null?void 0:a.getIt())},w3a=function(a){a=a.getIt();return{issues:a.getIssuesList().filter(ln).map(Wp),numTotalResults:a.getTotalSize(),positionMap:void 0,nextPageToken:a.getNextPageToken(),totalSizeAccurate:a.getTotalSizeAccurate(),maySkipResults:a.getMaySkipResults()}},y3a=function(a){return{issueId:a.getIssueId_asString(),summaryType:x3a[a.getSummaryType()],modelVersion:a.getModelVersion(),issueVersion:a.getIssueVersion(),summary:a.getSummary(),formattedSummary:Si(a,
Ap,6)?WYa(Y(a,Ap,6)):void 0}},D3a=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=jr(a,z3a,b))==null?void 0:c.getValue()};case "google.protobuf.Int64Value":var d;return{type:"NUMBER",value:rn((d=jr(a,A3a,b))==null?void 0:d.getValue())};case "google.protobuf.StringValue":var e;return{type:"STRING",value:(e=jr(a,B3a,b))==null?void 0:e.getValue()};case "google.protobuf.BoolValue":var f;return{type:"BOOLEAN",value:(f=
jr(a,C3a,b))==null?void 0:f.getValue()};case "google.protobuf.Timestamp":return{type:"TIMESTAMP",value:tn(jr(a,nj,b))};case "google.devtools.issuetracker.v1.User":return a=jr(a,Zm,b),{type:"USER",value:a&&fn(a)};case "google.devtools.issuetracker.v1.CustomFieldValue":return a=jr(a,np,b),{type:"CUSTOM_FIELD_VALUE",value:a&&AYa(a)};case "google.devtools.issuetracker.v1.IssueAccessLimit":return a=jr(a,Xo,b),{type:"ISSUE_ACCESS_LIMIT",value:a&&TXa(a)};case "google.devtools.issuetracker.v1.Issue.Effort":return a=
jr(a,Tp,b),{type:"STRING",value:a&&KYa(a).estimate};case "google.devtools.issuetracker.v1.EntityStatus":return a=jr(a,bp,b),{type:"ENTITY_STATUS",value:a&&eYa(a)};case "google.devtools.issuetracker.v1.GerritChange":return a=jr(a,Up,b),{type:"GERRIT_CHANGE",value:a&&CZa(a)};case "google.devtools.issuetracker.v1.Staffing.PlannedAllocation":return a=jr(a,Ip,b),{type:"PLANNED_ALLOCATION",value:a&&wZa(a)};default:console.error("Unhandled type in parseProtoAny: "+b)}}},F3a=function(a){var b,c;return{issueId:String(a.getIssueId()),
version:a.getVersion(),author:fn(a.getAuthor()),timestamp:tn(a.getTimestamp()),fieldUpdates:a.getFieldUpdatesList().map(E3a).filter(ln),attachments:a.getAttachmentsList().map(rYa),comment:a.hasIssueComment()&&rn((b=a.getIssueComment())==null?void 0:b.getIssueId())!==0?xp(a.getIssueComment()):void 0,statusUpdate:a.hasStatusUpdate()?yZa(a.getStatusUpdate()):void 0,statusUpdateEntityStatus:((c=a.getStatusUpdate())==null?0:c.getEntityStatus())?eYa(a.getStatusUpdate().getEntityStatus()):void 0}},E3a=function(a){var b=
a.getField();if(FXa.has(b)){var c=Oo(a,G3a);switch(c){case 3:a:{if(c=lm(a,H3a,3,G3a)){a=D3a(Y(c,kr,1));var d=D3a(Y(c,kr,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:I3a(lm(a,J3a,4,G3a))};default:console.error("Unexpected ValueUpdate oneof in Proto for field id:"+c)}}else console.error('Unexpected IssueStateMask value: "'+
b+'"')},I3a=function(a){if(a){var b=Wi(a,kr,1,Xi()).map(D3a).filter(ln);a=Wi(a,kr,2,Xi()).map(D3a).filter(ln);var c=[].concat(n(b),n(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})}}},lr=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},mr=function(a){var b=a.match(K3a);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"}}},N3a=function(a,b){a=a.map(L3a)||[];b=b.map(L3a)||[];return cTa(a,new Set(b)).map(M3a)},L3a=function(a){return a.host+","+a.repo+","+a.changeNumber+","+a.state},M3a=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=gn(d);if(!d)throw Error("de");if(!Object.values(O3a).includes(b))throw Error("ee");return{host:a,repo:c,changeNumber:d,state:b}},P3a=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},Q3a=function(a){var b;return y(function(c){return(b=a&&(!!P3a(a)||!!mr(a)))?c.return(""):c.return("Must be a CL number or Gerrit URL")})},S3a=function(a){return a==null?!1:R3a.has(a.name)},T3a=
function(a){return(a==null?void 0:a.name)==="hotlist"},U3a=function(a){return a==null?!1:a.href!=null&&a.value!=null},V3a=function(a){return Array.isArray(a)?a.every(U3a):!1},nr=function(a){return{value:String(a),href:"issues/"+a}},W3a=function(a){return{value:a,href:"https://critique.corp.google.com/"+a}},X3a=function(a){var b=GVa();b=b===void 0?!1:b;return{value:a.changeNumber+" | "+xj(a.host),href:lr(a,b)}},Y3a=function(a){return{value:String(a),href:"issues?q=hotlistid:"+a}},Z3a=function(a){return{value:a,
href:"https://irm.corp.google.com/"+a}},$3a=function(a){return{value:a,href:"https://pm.corp.google.com/"+a}},b4a=function(a,b){var c=new Map(a.filter(function(r){return r.placeholder}).map(function(r){var w;return[(w=or[r.placeholder.role])!=null?w:"",r.placeholder.count]})),d=new Map(b.filter(function(r){return r.placeholder}).map(function(r){var w;return[(w=or[r.placeholder.role])!=null?w:"",r.placeholder.count]}));a=UWa(a.filter(function(r){return r.user}));b=UWa(b.filter(function(r){return r.user}));
for(var e=[],f=[],g=l(c),k=g.next();!k.done;k=g.next()){var m=l(k.value);k=m.next().value;m=m.next().value;k.length!==0&&k!==or.JOB_ROLE_UNSPECIFIED&&(d.has(k)?d.get(k)!==m&&e.push(k+" ("+d.get(k)+" > "+m+")"):e.push(k+" ("+m+")"))}d=l(d);for(g=d.next();!g.done;g=d.next())k=l(g.value),g=k.next().value,k=k.next().value,g.length!==0&&g!==or.JOB_ROLE_UNSPECIFIED&&(c.has(g)||f.push(g+" ("+k+")"));c=new Set([].concat(n(a.keys()),n(b.keys())));c=l(c);g=c.next();for(d={};!g.done;d={addedAllocationsByKey:void 0},
g=c.next())g=g.value,g.length!==0&&(k=void 0,d.addedAllocationsByKey=VWa((k=a.get(g))!=null?k:[]),m=void 0,k=VWa((m=b.get(g))!=null?m:[]),d.addedAllocationsByKey.size>0&&(m=a4a(g,d.addedAllocationsByKey,k),m.length>0&&e.push(m)),d=new Map([].concat(n(k.entries())).filter(function(r){return function(w){var x=l(w);w=x.next().value;x.next();return!r.addedAllocationsByKey.has(w)}}(d))),d.size>0&&(d=a4a(g,d,new Map),d.length>0&&f.push(d)));return{additions:e,removals:f}},a4a=function(a,b,c){var d=[];b=
l(b);for(var e=b.next();!e.done;e=b.next()){e=l(e.value);var f=e.next().value;e=e.next().value;f=c.get(f);if(!Gm(e,f)){if(d.length===0){var g=void 0;d.push(c4a(e.user,(g=f)==null?void 0:g.user));g=void 0;d.push(d4a(e.user,(g=f)==null?void 0:g.user))}var k=void 0,m=void 0;g=e4a((k=e.allocation)==null?void 0:k.startDate,(m=e.allocation)==null?void 0:m.endDate);k=void 0;e=f4a(e.allocation,(k=f)==null?void 0:k.allocation);e.length!==0&&(g.length>0?d.push(g+": "+e):d.push(e))}}if(d.length===0)return"";
c=d.filter(function(r){return r.length>0});return a+(c.length===0?"":" ("+c.join(", ")+")")},e4a=function(a,b){var c=new yl("MMM d, yyyy");if(!a&&!b)return"";var d=a?c.format(Cm(a)):"";c=b?c.format(Cm(b)):"";return a?b?d+" - "+c:d+" - End":"Start - "+c},c4a=function(a,b){a=a==null?void 0:a.role;var c=b==null?void 0:b.role;return a===c?"":!b&&a?"Custom Role: "+or[a]:a?c?"Custom Role: "+or[c]+" > "+or[a]:"Custom Role: None > "+or[a]:"Custom Role: "+or[c]+" > None"},d4a=function(a,b){a=a==null?void 0:
a.isLead;var c=b==null?void 0:b.isLead;return a===c?"":!b&&a?"Lead":(c?"Lead":"Not Lead")+" > "+(a?"Lead":"Not Lead")},f4a=function(a,b){if((a==null?void 0:a.involvement)===(b==null?void 0:b.involvement)&&(a==null?void 0:a.percentage)===(b==null?void 0:b.percentage))return"";var c="";if((a==null?0:a.involvement)&&(a==null?void 0:a.involvement.length)>0&&(a==null?void 0:a.involvement)!=="INVOLVEMENT_UNSPECIFIED")c=Go[a==null?void 0:a.involvement];else if((a==null?void 0:a.percentage)!==void 0){var d;
c=Math.round(((d=a==null?void 0:a.percentage)!=null?d:0)*100)+"%"}if(c.length===0)return"";a="";if((b==null?0:b.involvement)&&(b==null?void 0:b.involvement.length)>0&&(b==null?void 0:b.involvement)!=="INVOLVEMENT_UNSPECIFIED")a=Go[b==null?void 0:b.involvement];else if((b==null?void 0:b.percentage)!==void 0){var e;a=Math.round(((e=b==null?void 0:b.percentage)!=null?e:0)*100)+"%"}return b&&a.length!==0?a+" > "+c:""+c},i4a=function(a){var b=a.fieldUpdates.map(function(c){return g4a(c,a)}).filter(ln);
a.statusUpdate&&b.push({name:"statusUpdate",displayName:"Status Update",type:"STATUS_UPDATE",important:!1,timestamp:to(a.timestamp),statusUpdateDiff:a.statusUpdateEntityStatus?{entityStatus:a.statusUpdateEntityStatus}:void 0});return h4a(b)},h4a=function(a){var b=a.filter(function(g){return g.name==="status"});a=a.filter(function(g){return g.name!=="status"});var c=[].concat(n(a),n(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},g4a=function(a,b){var c=to(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:pr(e.oldValue),newValue:pr(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(nr),removed:e.removed.map(nr)};case "blocking_issue_ids":return e=a.collectionUpdate,{name:"blockingId",displayName:"Blocking",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(nr),removed:e.removed.map(nr)};case "canonical_issue_id":return e=a.singleValueUpdate,{name:"canonicalId",displayName:"Canonical",type:"SINGLE_VALUE",important:!0,timestamp:c,oldValue:hn(e.oldValue),newValue:hn(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(pr),removed:e.removed.map(pr)};case "collaborators":return e=a.collectionUpdate,{name:"collaborators",displayName:"Collaborators",type:"USER_COLLECTION",important:!1,timestamp:c,isUser:!0,added:e.added.map(pr),removed:e.removed.map(pr)};case "child_issue_ids":return e=a.collectionUpdate,{name:"childIssueIds",displayName:"Child Issue",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(nr),removed:e.removed.map(nr)};
case "code_changes":return e=a.collectionUpdate,Object.assign({},{name:"changelist",displayName:"Changelist",important:!1,timestamp:c},GVa()?{type:"LINKED_COLLECTION",added:e.added.map(W3a),removed:e.removed.map(W3a)}:{type:"COLLECTION",added:e.added,removed:e.removed});case "component_id":var f=a.singleValueUpdate,g;return{name:"component",displayName:"Component",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:(e=hn(f.oldValue))!=null?e:"",newValue:(g=hn(f.newValue))!=null?g:""};case "custom_fields":return e=
a.singleValueUpdate,g=(e.oldValue||e.newValue).customFieldId,{customFieldId:g,name:String(g),displayName:"",type:"CUSTOM_FIELD",important:!1,timestamp:c,oldValue:j4a(e.oldValue),newValue:j4a(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(nr),removed:e.removed.map(nr)};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(va){return X3a(va)}),removed:e.removed.map(function(va){return X3a(va)})};
case "hotlist_ids":return e=a.collectionUpdate,{name:"hotlist",displayName:"Hotlist",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(Y3a),removed:e.removed.map(Y3a)};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(nr),removed:e.removed.map(nr)};case "staffing.planned_allocations":if(!GVa())break;e=a.collectionUpdate;e=b4a(e.added,e.removed);return{name:"staffing",displayName:"Staffing",important:!1,
timestamp:c,type:"COLLECTION",added:e.additions,removed:e.removals};case "incidents":return e=a.collectionUpdate,Object.assign({},{name:"incident",displayName:"Incident",timestamp:c,important:!1},GVa()?{type:"LINKED_COLLECTION",added:e.added.map(Z3a),removed:e.removed.map(Z3a)}:{type:"COLLECTION",added:e.added,removed:e.removed});case "postmortems":return e=a.collectionUpdate,Object.assign({},{name:"postmortem",displayName:"Postmortem",timestamp:c,important:!1},GVa()?{type:"LINKED_COLLECTION",added:e.added.map($3a),
removed:e.removed.map($3a)}:{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?Rp[e.oldValue]:"",newValue:e.newValue!=null?Rp[e.newValue]:""};case "retention":e=a.singleValueUpdate;var m,r;return{name:"retention",displayName:"Retention",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:(m=k4a(e.oldValue))!=null?m:"",newValue:(r=k4a(e.newValue))!=
null?r:""};case "reporter":return e=a.singleValueUpdate,{name:"reporter",displayName:"Reporter",type:"SINGLE_VALUE",important:!1,timestamp:c,isUser:!0,oldValue:pr(e.oldValue),newValue:pr(e.newValue)};case "severity":return e=a.singleValueUpdate,{name:"severity",displayName:"Severity",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:e.oldValue!=null?BZa[e.oldValue]:"",newValue:e.newValue!=null?BZa[e.newValue]:""};case "slo_snooze_until":e=a.singleValueUpdate;var w,x,D,H;return{name:"sloStartTime",
displayName:"SLO Start Date",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:String((D=(w=e.oldValue)==null?void 0:w.seconds)!=null?D:"<none>"),newValue:String((H=(x=e.newValue)==null?void 0:x.seconds)!=null?H:"<none>")};case "slo_end_time":e=a.singleValueUpdate;var J,O,R,V;return{name:"sloEndTime",displayName:"SLO End Date",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:String((R=(J=e.oldValue)==null?void 0:J.seconds)!=null?R:"<none>"),newValue:String((V=(O=e.newValue)==null?void 0:
O.seconds)!=null?V:"<none>")};case "status":e=a.singleValueUpdate;var ba,pa;return{name:"status",displayName:"Status",type:"SINGLE_VALUE",important:!0,timestamp:c,oldValue:xj((ba=qr.get(e.oldValue))!=null?ba:""),newValue:xj((pa=qr.get(e.newValue))!=null?pa:"")};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 ua,ma;return{name:"title",
displayName:"Title",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:(ua=e.oldValue)!=null?ua:"",newValue:(ma=e.newValue)!=null?ma:""};case "type":e=a.singleValueUpdate;var Da,ja;return{name:"type",displayName:"Type",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:(Da=l4a.get(e.oldValue))!=null?Da:"",newValue:(ja=l4a.get(e.newValue))!=null?ja:""};case "verifier":return e=a.singleValueUpdate,{name:"verifier",displayName:"Verifier",type:"SINGLE_VALUE",important:!1,timestamp:c,isUser:!0,oldValue:pr(e.oldValue),
newValue:pr(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:sb(d,"Unexpected IssueStateMask in fieldUpdateToDiff")}},pr=function(a){return FTa()(Rm(a))},j4a=function(a){return a==null?"<none>":kTa(a)},k4a=function(a){if(a!=null)switch(EZa[a]){case "COMPONENT_DEFAULT":return"Component Default";
case "INDEFINITE":return"Indefinite"}},r4a=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(w){return w.fieldUpdates}),f=void 0,g=(f=Ia(e.filter(function(w){return w.field==="assignee"})))==null?void 0:f.singleValueUpdate;g&&(b=m4a(g));f=void 0;var k=(f=Ia(e.filter(function(w){return w.field==="verifier"})))==null?void 0:f.singleValueUpdate;k&&(c=m4a(k));f=void 0;k=(f=Ia(e.filter(function(w){return w.field==="status"})))==null?
void 0:f.singleValueUpdate;var m=void 0;f=(m=Ia(e.filter(function(w){return w.field==="canonical_issue_id"})))==null?void 0:m.singleValueUpdate;m=void 0;e=(m=Ia(e.filter(function(w){return w.field==="is_archived"})))==null?void 0:m.singleValueUpdate;if(k){m=k.oldValue!=null?Qp[k.oldValue]:void 0;k=k.newValue!=null?Qp[k.newValue]:void 0;var r=void 0;f=hn((r=f)==null?void 0:r.newValue);o4a(d,p4a({oldStatus:m,newStatus:k,currentAssignee:b,currentVerifier:c,canonicalIssueId:f,assigneeChanged:!!g}))}else g&&
b?o4a(d,[rr("Reassigned to "),q4a(b),rr(".")]):f&&(k=void 0,f=hn((k=f)==null?void 0:k.newValue),o4a(d,p4a({oldStatus:"DUPLICATE",newStatus:"DUPLICATE",currentAssignee:b,currentVerifier:c,canonicalIssueId:f,assigneeChanged:!!g})));e&&o4a(d,[rr(e.newValue?"Archived.":"Unarchived.")])}},p4a=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&&Ao.get(b);var g=c&&Ao.get(c);if(b&&g&&!b.open&&g.open)return[rr("Status: "+
g.displayValue+" (reopened)")];switch(c){case "ASSIGNED":if(d)return[rr("Assigned to "),q4a(d),rr(".")];break;case "ACCEPTED":if(d)return[rr("Accepted by "),q4a(d),rr(".")];break;case "FIXED":return a&&d?[rr("Marked as fixed, reassigned to "),q4a(d),rr(".")]:[rr("Marked as fixed.")];case "VERIFIED":if(e)return[rr("Verified by "),q4a(e),rr(".")];break;case "DUPLICATE":if(f)return[rr("Status: Duplicate of "),{text:f,tag:"bug"}]}return[rr("Status: "+xj(g.displayValue))]},m4a=function(a){if(a)return a.newValue},
rr=function(a){return{text:a,tag:""}},q4a=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 rr(a.obfuscatedEmailAddress);break;case "DELETED":return rr("Deleted User");case "UNAVAILABLE":return rr("Unavailable User");default:return console.warn("Unexpected User Gaia status in userToTaggedText"),{text:""}}return rr("User")},u4a=function(a){if(!a.length)return[];a=y1a(a,function(b){return b.issueId}).flatMap(s4a);
return t4a(a,"DESCENDING")},s4a=function(a){if(!a.length)return[];a=v4a(a);r4a(a);return a.map(function(b){return w4a(b)}).filter(x4a)},x4a=function(a){var b;return a.postDiffs.length||a.preDiffs.length||a.commentNumber||a.attachments.length||((b=a.taggedSummary)==null?void 0:b.length)},v4a=function(a){var b=y4a(a,"ASCENDING");a=[new z4a];b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=Ia(a),e;var f=e=void 0;if(d.updates.length===0)e=!0;else{var g;if(!(g=d.hasInitialUpdate)&&!(g=!d.author||
!c.author)){g=d.author;var k=c.author;g=!(g===k||(g.emailAddress||k.emailAddress?g.emailAddress===k.emailAddress:(g.obfuscatedEmailAddress||k.obfuscatedEmailAddress)&&g.obfuscatedEmailAddress===k.obfuscatedEmailAddress))}if(g||d.comment&&c.comment)e=!1;else{if(g=(f=d.updates[0])==null?0:f.timestamp)f=(e=d.updates[0])==null?void 0:e.timestamp,g=Math.abs(to(f)-to(c.timestamp))>36E5;e=g?!1:!0}}e?A4a(d,c):a.push(A4a(new z4a,c))}return a},B4a=function(a){var b={};if(a==null)return b;a=Wi(a,sr,1,Xi(),fb);
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},C4a=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})},D4a=function(a){return a==null?{closed:0,total:0}:{closed:a.descendantCount-a.openDescendantCount,
total:a.descendantCount}},E4a=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},F4a=function(a){var b,c;return(c=a==null?void 0:(b=a.changelists)==null?void 0:b.length)!=null?c:0},G4a=function(a){var b;return(b=a==null?void 0:a.gerritChanges)!=null?b:[]},H4a=function(a){if(a==null)return[];a=[].concat(n(a.assignees.map(function(b){return b.emailAddress})),
n(a.collaborators.map(function(b){return b.emailAddress})),n(a.verifiers.map(function(b){return b.emailAddress})),n(a.reporters.map(function(b){return b.emailAddress}))).filter(ln);return A1a(a)},I4a=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$jscomp$8:void 0},d=c.next())if(a.customField$jscomp$8=d.value,a.customField$jscomp$8.required){d=!!a.customField$jscomp$8.typedDefaultValue;var e=void 0,f=void 0,
g=(e=b)==null?void 0:(f=e.snapshot.customField)==null?void 0:f.some(function(k){return function(m){return m.customFieldId===k.customField$jscomp$8.customFieldId}}(a));if(!d&&!g)return!1}return!0},J4a=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},K4a=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"}},L4a=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=J4a(b);return{title:"Allow "+(b===1?"members of the group to ":K4a(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)+"."}},M4a=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"}},tr=function(a){return{id:a,
triage:{phase:"NEW",subphase:"TRIAGE_SUBPHASE_UNSPECIFIED"},clusterIds:[]}},N4a=function(a,b){var c=new Map(b.map(function(d){return[d==null?void 0:d.id,d]}));return a.filter(ln).map(function(d){return Object.assign({},d,{experimentalFields:c.get(d.issueId)})})},P4a=function(){return O4a.performance&&O4a.PerformanceObserver&&typeof window.performance.getEntriesByType==="function"&&typeof window.performance.mark==="function"&&typeof window.performance.measure==="function"},Q4a=function(a){var b=a.name;
if(b!=null&&(a=Math.round(a.duration),!isNaN(a))){var c=l(b.split(" -> "));b=c.next().value;c=c.next().value;if(b!=null&&c!=null)return{from:b,to:c,duration:a}}},S4a=function(a){a=a.sort(function(d,e){return d.startTime-e.startTime});var b=a.find(R4a);if(b!=null){var c=b.name.split(" -> ")[1];return a.find(function(d){return d.name===c})}},W4a=function(){var a=window.performance.getEntries(),b=S4a(a);if(b==null)return[];var c=b.startTime;return a.filter(T4a).filter(U4a).filter(V4a).filter(function(d){return d.startTime<=
c})},R4a=function(a){var b=a.entryType;a=a.name;return b==="measure"&&a.startsWith("browserStart")},T4a=function(a){return!a.name.startsWith("Zone")},V4a=function(a){return a.entryType==="resource"},X4a=function(a){return a.initiatorType==="xmlhttprequest"},U4a=function(a){return a.name.match(/\.html$/)==null},Y4a=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}},$4a=
function(){return typeof Z4a.gtag==="function"},a5a=function(a){if(a!=null&&!(a.duration>=3E4))return{hitType:"event",eventCategory:"cf",eventAction:a.from,eventLabel:a.to,eventValue:a.duration}},d5a=function(a){a=a.getEntries().map(Q4a).map(a5a);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}:{});b5a(b,d)}}setTimeout(c5a,100)},c5a=function(){if(!e5a){var a=W4a(),b=a.filter(function(c){return!X4a(c)}).reduce(Y4a,f5a());ur("r-until-cf","asset","count",b.count);ur("r-until-cf","asset","transferSize",b.transferSize);ur("r-until-cf","asset","duration",b.duration);ur("r-until-cf","asset","cacheHitRate",b.cacheHitRate);a=a.filter(X4a).reduce(Y4a,f5a());ur("r-until-cf","xhr","count",a.count);ur("r-until-cf","xhr","transferSize",a.transferSize);ur("r-until-cf",
"xhr","duration",a.duration);e5a=!0}},ur=function(a,b,c,d){b5a(a,Object.assign({},b!==void 0?{event_action:b}:{},c!==void 0?{event_label:c}:{},d!==void 0?{event_value:d}:{}))},vr=function(a,b){g5a[a]=b;h5a&&on("[stub gtag.ts] Event scoped dimension set {"+a+": "+b+")}")},i5a=function(a){if($4a()){var b={};Z4a.gtag("set","user_properties",(b.dimension13=a,b))}h5a&&on("[stub gtag.ts] gtag('set', 'user_properties', {dimension13: "+a+")}")},b5a=function(a,b){b!=null&&(j5a("page_location","Scrubbed Page URL"),
j5a("page_title","Scrubbed Page Title"),b=Object.assign({},g5a,b),$4a()&&Z4a.gtag("event",a,b),h5a&&on("[stub gtag.ts] gtag('event')",a,b))},j5a=function(a,b){if($4a()){var c={};Z4a.gtag("set",(c[a]=b,c))}h5a&&on("[stub gtag.ts] gtag('set', {"+a+": "+b+")}")},o5a=function(){var a=a===void 0?ur:a;var b=Date.now(),c=wr(b);wr(k5a())!==c?a("retention","first-visit"):(c=wr(b),wr(k5a())===c&&l5a()===1&&a("retention","second-visit"));a=wr(b);wr(k5a())!==a?m5a(1):(a=l5a()||0,m5a(a+1));n5a(b)},wr=function(a){if(a!=
null)return(new Date(a)).toLocaleDateString()},p5a=function(){return Yc.apply(0,arguments).map(String).join("__")},r5a=function(){for(var a={},b=l(Object.entries(q5a)),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},s5a=function(){var a=Object.values(q5a),b=a.map(function(c){return c-1}).reduce(eWa,0);a=a.reduce(eWa,0);return{total:a,redundant:b,redundancyRatio:Math.round(b/a*100)/100}},t5a=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("/")},u5a=function(a){return a instanceof ck},v5a=function(a){return a instanceof xr},w5a=function(a){return function(b){return new Sd(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()})})})}},x5a=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},A5a=function(){var a=window.defrostedResourcesJspb;if(a&&Array.isArray(a))if(a=yea(y5a,z5a(a))){if((a=Wi(a,yr,1,Xi()))&&a.length===1)return hr(a[0])}else pn("Defroster: found data, but it was unparseable. This is unintended but will not cause a user-visible issue.")},B5a=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)}},C5a=function(a){var b=l(a.split("-"));a=b.next().value;b=b.next().value;return{issueId:a,recommendationType:b}},D5a=function(a){var b=new zr;b=ap(b,1,Number(a.targetIssueId));return ap(b,2,a.afterIssueId?Number(a.afterIssueId):void 0)},E5a=function(a){return{targetIssueId:String(Hn(a,1)),afterIssueId:qn(Hn(a,2))?String(Hn(a,2)):
void 0}},F5a=function(a){return{sourceIssueId:qn(Hn(a,3)),issueRelationships:a.getIssueRelationshipsList().map(E5a),totalSize:a.getTotalSize()}},G5a=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},H5a=function(a){return!(a==null||!a.relatedChildren.length)},J5a=function(a,b){var c=[].concat(n(a));a=new Set(a.map(function(g){return g.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(g){return function(k){return k.targetIssueId===g.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 I5a(c)},K5a=function(a,b){return I5a(a.filter(function(c){return c.targetIssueId!==b}))},I5a=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},L5a=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(n(d.previousOperation.eventTimestamps),n(e.eventTimestamps)),newParentChildrenSnapshot:e.newParentChildrenSnapshot,done:e.done},e.done.promise.then(d.previousOperation.done.resolve).catch(function(f){return function(g){f.previousOperation.done.reject(g);throw g;}}(d)),b.set(c,e)):b.set(c,e)}b=[].concat(n(b.values()));a=l(b);d=a.next();for(c={};!d.done;c={operation$jscomp$6:void 0},d=a.next())c.operation$jscomp$6=d.value,c.operation$jscomp$6.newRelations=c.operation$jscomp$6.newRelations.map(function(f){return function(g){return f.operation$jscomp$6.newParentChildrenSnapshot.find(function(k){return k.targetIssueId===
g.targetIssueId})}}(c));return b.sort(function(f,g){var k=f.newParentChildrenSnapshot,m=g.newParentChildrenSnapshot;f=Math.min.apply(Math,n(f.issues.map(function(r){return k.findIndex(function(w){return w.targetIssueId===r.issueId})})));g=Math.min.apply(Math,n(g.issues.map(function(r){return m.findIndex(function(w){return w.targetIssueId===r.issueId})})));return f===g?0:f<g?-1:1})},R5a=function(a){return a?(a=a.getResponse())?Wi(a,M5a,1,Xi()).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 g,k;c={objectiveId:f!=null?f:e.getId(),title:e.getTitle(),url:kGa(e.getUrl()),priorityRating:N5a(e==null?void 0:(g=e.getPriority())==null?void 0:Ri(g,1)),keyResults:(k=Wi(e,O5a,7,Xi()).map(P5a).filter(ln))!=null?k:[]}}else c=void 0;b={objective:c,periodLabel:(d=Y(b,Q5a,4))==null?void 0:d.getLabel()}}else b=void 0;return b}).filter(ln):[]:[]},P5a=function(a){if(a&&a.getId()){var b;return{keyResultId:a.getId(),title:a.getTitle(),
url:kGa(a.getUrl()),priorityRating:N5a(a==null?void 0:(b=a.getPriority())==null?void 0:Ri(b,1))}}},N5a=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"}},U5a=function(a){return a.getResponsesList().map(function(b){return Wi(b,S5a,1,Xi()).map(T5a)}).flat().filter(function(b){return b.signals.length>0})},T5a=function(a){var b=V5a(a.getTask());a=Wi(a,W5a,2,Xi());return{task:b,
signals:a.map(X5a).filter(ln)}},Z5a=function(a){return a.getResponsesList().map(function(b){return Wi(b,Y5a,1,Xi()).map(V5a).filter(ln)}).flat()},V5a=function(a){if(a){var b=a.getTaskId(),c=$5a(Ri(a,2)),d=a.getTitle(),e=tn(a.getCreatedTimestamp()),f=tn(a.getLastModifiedTimestamp()),g=a.getExternalLink();var k=Wi(a,a6a,7,Xi());b={taskId:b,taskResourceType:c,title:d,createdTimestamp:e,lastModifiedTimestamp:f,externalLink:g,resourceRelationships:k.map(b6a),isStaleTask:$i(a,13),snoozeUntilTimestamp:tn(Y(a,
nj,14)),manualSignalTimestamp:tn(Y(a,nj,15))};a.hasDriveResource()?(a=a.getDriveResource(),a={fileType:c6a[Ri(a,1)],lastMentionTimestamp:tn(Y(a,nj,2)),lastMentionLink:Fi(a,4),docwrapRequestTimestamp:tn(Y(a,nj,3)),docwrapRequestLink:Fi(a,5)},b.driveResource=a):lj(a,d6a,9,e6a)&&(a=lm(a,d6a,9,e6a),a={priority:Rp[a.getPriority()],accessLevel:UXa[a.getAccessLevel()],hotlistIds:a.getHotlistIdsList_asLegacyNumberOrString(en)},b.issueResource=a);return b}},b6a=function(a){return{category:f6a[a.getCategory()],
roleName:Fi(a,2)}},X5a=function(a){var b={timestamp:tn(a.getTimestamp()),url:kGa(a.getUrl()),signalStatus:$i(a,8)?1:0};if(lj(a,g6a,3,Ar)){a=lm(a,g6a,3,Ar);var c={signal:h6a[a.getSignal()]};Br.has(c.signal)?(Cr(a,2,i6a)!=null&&(c.commentId=a.getCommentId()),a=c):a=null;if(!a)return null;b.driveAlert=a}else if(lj(a,Dr,5,Ar)){c=lm(a,Dr,5,Ar);a={signal:j6a[c.getSignal()]};if(Br.has(a.signal)){Si(c,vn,4)&&(a.reviewEstimate=TTa(Y(c,vn,4)));c=Y(c,k6a,5);var d=c==null?void 0:lm(c,l6a,2,m6a);c=d?{currentAvailability:{comeBackTimestamp:tn(d.getComeBackTimestamp())}}:
(c=c==null?void 0:lm(c,n6a,1,m6a))?{futureAvailability:{comeBackTimestamp:tn(c.getComeBackTimestamp()),futureOooTimestamp:tn(Y(c,nj,1))}}:void 0;a.clAuthorAvailability=c}else a=null;if(!a)return null;b.changelistAlert=a}else if(lj(a,o6a,4,Ar)){c=lm(a,o6a,4,Ar);a={signal:p6a[c.getSignal()]};if(Br.has(a.signal)){if(d=c.getCommentNumbers())d=Ym(d,1,Xi(en)),d.length>0&&(a.commentNumbers=d);if(c=lm(c,q6a,3,r6a))a.configurableAlertSubscriptionId=Fi(c,1)}else a=null;if(!a)return null;b.issueAlert=a}else if(lj(a,
s6a,7,Ar)){a=lm(a,s6a,7,Ar);a={signal:t6a[a.getSignal()]};a=Br.has(a.signal)?a:null;if(!a)return null;b.gerritAlert=a}else if(lj(a,u6a,9,Ar)){a=lm(a,u6a,9,Ar);a={signal:yVa[a.getSignal()]};a=Br.has(a.signal)?a:null;if(!a)return null;b.googleTasksAlert=a}else if(lj(a,v6a,10,Ar)){a=lm(a,v6a,10,Ar);a={signal:zVa[a.getSignal()]};a=Br.has(a.signal)?a:null;if(!a)return null;b.irmAlert=a}return b},$5a=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"}},w6a=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}},x6a=function(a){switch(a){case 0:return 0;case 1:return 5;case 2:return 2;default:return 0}},y6a=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}},A6a=function(a){return a?z6a[a]:z6a.ISSUE_SIGNAL_UNSPECIFIED},C6a=function(a){return a?B6a[a]:B6a.DRIVE_SIGNAL_UNSPECIFIED},E6a=function(a){return a?D6a[a]:D6a.CHANGELIST_SIGNAL_UNSPECIFIED},G6a=function(a){return a?F6a[a]:F6a.GERRIT_CHANGE_SIGNAL_UNSPECIFIED},H6a=function(a){return a?qVa[a]:qVa.GOOGLE_TASKS_SIGNAL_UNSPECIFIED},I6a=function(a){return a?sVa[a]:sVa.IRM_SIGNAL_UNSPECIFIED},J6a=function(a){if(a=a.getResponse())return{commentId:a.getCommentId(),
authorDisplayName:Fi(a,2),content:a.getContent(),lastModifiedTimestamp:tn(Y(a,nj,4))}},L6a=function(a,b){if(!b||!b.getData())return[];a=b.getContextsMap().get(a);if(!a)return[];var c=a.getIterationIdsList_asString(),d,e;return Array.from((e=(d=b.getData())==null?void 0:d.getIterationsMap())!=null?e:[],function(f){if(c.some(function(r){return r===f[0].toString()})){var g=f[1],k,m=(k=b.getData())==null?void 0:k.getWorkspacesMap().get(g.getWorkspaceId());return K6a(g,m)}}).filter(ln)},K6a=function(a,
b){if(a&&a.getType()===3){var c=(new Date).getTime()/1E3,d=tn(a.getStartTime()),e=tn(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:a.getIterationId_asString(),workspace:b,startTimestamp:d,endTimestamp:e}}},O6a=function(a){var b=a.getResponse();return b&&Wi(b,Er,1,Xi())&&Y(b,M6a,2)?Wi(b,Er,1,Xi()).map(function(c){var d=Y(b,M6a,2);if(c&&d){var e=c.getId();
d=L6a(c.getId(),d);var f=c.getId(),g;c=c&&sc(c,15,N6a,Rb)?(g=sc(c,15,N6a,Rb).get(f))==null?void 0:Xm(g,1,Xi()):void 0;e={workItemId:e,iterations:d,okrIds:c}}else e=void 0;return e}).filter(ln):[]},Fr=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"},S6a=function(a){var b={};a=l(sc(a,1,P6a,Rb,fb).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:Q6a[Ri(d,1)],detailedUserType:R6a[Ri(d,2)]}}return b},T6a=function(a,b){return a.map(function(c){return b[c]||null})},U6a=function(){return{principalType:"NON_GAIA",detailedUserType:"NO_DETAILED_TYPE"}},V6a=function(a){switch(a){case 1:return"daily";case 2:return"weekly";case 3:return"monthly";case 0:break;default:sb(a)}},W6a=function(a){switch(a){case "daily":return 1;case "weekly":return 2;case "monthly":return 3;default:return sb(a)}},
X6a=function(a){var b={id:a.getId()};a.getVersion()&&(b.version=a.getVersion());return b},Y6a=function(a){var b=(new Gr).setId(a.id);a.version&&b.setVersion(a.version);return b},Z6a=function(a){return{hours:a.getHours(),minutes:a.getMinutes(),seconds:a.getSeconds(),nanos:a.getNanos()}},$6a=function(a){return(new Hr).setHours(a.hours).setMinutes(a.minutes).setSeconds(a.seconds).setNanos(a.nanos)},a7a=function(a){var b;return((b=a.getTeamSloEditPolicy())==null?void 0:Ri(b,2))===1},b7a=function(a){var b;
return((b=Y(a,Ir,1,fb))==null?void 0:b.getEffectiveSloEditPolicy())===1},d7a=function(a){var b=Y(a,Zm,2),c=V6a(a.getFrequency()),d=a.getTimeZone(),e=a.getTimeOfDay();if(b==null)throw Error("me");if(c==null)throw Error("ne");if(d==null)throw Error("oe");if(e==null)throw Error("pe");var f=a.getId_asLegacyNumberOrString();b=fn(b);var g=a.getOrdinal();d=X6a(d);e=Z6a(e);var k=tm(a,7),m=a.getTypesList().map($Ya);a=c7a(a,9,Xi(en));return{id:f,lead:b,frequency:c,ordinal:g,timeZone:d,timeOfDay:e,daysRemaining:k,
types:m,sloIds:a}},e7a=function(a){var b=(new Jr).setId(a.id),c=dn(a.lead);b=hj(b,Zm,2,c).setFrequency(W6a(a.frequency)).setOrdinal(a.ordinal).setTimeZone(Y6a(a.timeZone)).setTimeOfDay($6a(a.timeOfDay)).setDaysRemaining(a.daysRemaining).setTypesList(a.types.map(aZa));return Kr(b,9,a.sloIds)},f7a=function(a){return hZa(a.getIt())},g7a=function(a){var b=new Lr,c=b.setIt;var d=(new Mr).setSloId(a.sloId).setName(a.name).setDescription(a.description).setParentId(a.parentId);var e=a.elements.map(mZa);d=
ij(d,5,e);e=a.effectiveElements.map(mZa);d=ij(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("vd`"+a);}a=cn(d,8,a);return c.call(b,a)},h7a=function(a){return{id:a.getId_asString(),name:a.getName(),description:a.getDescription()}},i7a=function(a){if(a=a.getIt())return E0a(a);throw Error("qe");},j7a=function(a){return{teamId:a.getId_asString(),name:a.getName(),description:a.getDescription(),pathNames:a.getPathNamesList(en),
pathIds:a.getPathIdsList_asString()}},k7a=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"}}},l7a=function(a){return{id:a,triage:[{id:0}],playbooks:[]}},m7a=function(a){return a.endsWith("?")?a.slice(0,a.length-1):a},n7a=function(a){var b;return(b=gn(a))!=null?b:null},o7a=function(a){var b;return(b=hn(a))!=null?b:null},p7a=function(a,b){b=(b===void 0?{}:b).comment;
return{path:"/issues/"+a,fragment:b?"comment"+b:void 0}},Nr=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},q7a=function(a){var b={};a=(b.component=a||void 0,b);a=a===void 0?{}:a;return{path:"/issues/new",queryParams:a}},r7a=function(a){return{path:"/components/"+a}},s7a=function(a){var b={};a&&(b.componentId=a);return{path:"/components",queryParams:b}},
t7a=function(a){return{path:"/slos/"+a+"/edit"}},u7a=function(a){var b;return(a==null?void 0:(b=a.userData)==null?void 0:b.starred)||!1},v7a=function(a){var b;return(a==null?void 0:(b=a.userData)==null?void 0:b.lastViewedTimeMicros)||0},w7a=function(a){var b;return(b=zo(a))==null?void 0:b.title},x7a=function(a){var b,c;return(c=(b=zo(a))==null?void 0:b.status)!=null?c:void 0},y7a=function(a){var b,c;return(c=(b=zo(a))==null?void 0:b.priority)!=null?c:void 0},z7a=function(a){var b,c;return(c=(b=zo(a))==
null?void 0:b.assigneeUser)!=null?c:void 0},A7a=function(a){var b,c;return(c=(b=zo(a))==null?void 0:b.reporterUser)!=null?c:void 0},B7a=function(a){var b;a=a==null?void 0:(b=a.aggregatedData)==null?void 0:b.teamId;return hn(a)},C7a=function(a){var b;a=(b=zo(a))==null?void 0:b.componentId;return hn(a)},D7a=function(a){var b,c;return(c=(b=zo(a))==null?void 0:b.ccUsers)!=null?c:[]},E7a=function(a){var b,c;return(c=(b=zo(a))==null?void 0:b.issueAccessLimitLevel)!=null?c:"LIMIT_NONE"},F7a=function(a){var b,
c;return(c=(b=zo(a))==null?void 0:b.collaboratorsUsers)!=null?c:[]},G7a=function(a){var b,c;return(c=(b=zo(a))==null?void 0:b.type)!=null?c:void 0},H7a=function(a){var b,c;return(c=(b=zo(a))==null?void 0:b.foundInVersion)!=null?c:[]},I7a=function(a){var b,c;return(c=(b=zo(a))==null?void 0:b.targetedToVersion)!=null?c:[]},J7a=function(a){var b,c;return(c=(b=zo(a))==null?void 0:b.changelist)!=null?c:[]},K7a=function(a){var b,c;return(c=(b=zo(a))==null?void 0:b.postmortems)!=null?c:[]},L7a=function(a){var b;
return((b=zo(a))==null?void 0:b.inProd)||!1},M7a=function(a){var b;return(b=zo(a))==null?void 0:b.effort},N7a=function(a){var b,c;return(c=(b=zo(a))==null?void 0:b.staffing)!=null?c:void 0},O7a=function(a){var b;return a==null?void 0:(b=a.aggregatedData)==null?void 0:b.voteCount},P7a=function(a){var b;return(a==null?void 0:(b=a.userData)==null?void 0:b.voted)||!1},R7a=function(a){return Q7a(a)},Q7a=function(a){var b,c;return(c=(b=zo(a))==null?void 0:b.isDeleted)!=null?c:!1},T7a=function(a){return S7a(a)},
S7a=function(a){var b;return a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel},U7a=function(a){return(a=a==null?void 0:a.aggregatedData)&&Math.round(a.modifiedTimeMicros/1E3)},W7a=function(a){return V7a(a)},V7a=function(a){var b,c;return(c=(b=zo(a))==null?void 0:b.retention)!=null?c:void 0},X7a=function(a){var b,c;return(c=(b=zo(a))==null?void 0:b.duplicateOfIssueId)!=null?c:void 0},Z7a=function(a){return Y7a(a)},Y7a=function(a){var b,c;return(c=a==null?void 0:(b=a.aggregatedData)==null?
void 0:b.retentionState)!=null?c:void 0},$7a=function(a){var b;return hn(a==null?void 0:(b=a.aggregatedData)==null?void 0:b.sloId)},a8a=function(a){var b;return a==null?void 0:(b=a.aggregatedData)==null?void 0:b.createdTimeMicros},b8a=function(a){return a==null?void 0:a.effortSpec},c8a=function(a){a=b8a(a);return!(!a||!a.name&&!a.inherit)},d8a=function(a){return a==null?void 0:a.componentPathInfo},g8a=function(a){if(!a)return{};var b,c=l((b=a.match(e8a))!=null?b:[]);c.next();b=c.next().value;var d;
a=l((d=a.match(f8a))!=null?d:[]);a.next();d=a.next().value;return{commentNumber:gn(b),commentVersion:gn(d)}},Or=function(a){var b;a.subscribe(function(c){b=c}).unsubscribe();return b},Pr=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("te`"+b);return c},h8a=function(a){return a.getEnvironmentType()==="PROD"?"recommendationSources/1385":"recommendationSources/1057"},i8a=function(a){return ZYa(a.getIt().getMentionsList(en)).map(function(b){return b.mentionedUser}).map(Rm).map(function(b){return b||
""})},j8a=function(a){a=a.getIt();return a.hasFormattedComment()?vp(a.getFormattedComment()):{}},k8a=function(a){switch(a.formattingMode){case "LITERAL":return be({literalFormat:{content:Dh(a.comment)}});case "MARKDOWN":return a={markdownFormat:{content:Dh("")}},be(a);case void 0:case "PLAIN":case "UNSPECIFIED_FORMATTING_MODE":return a={plainFormat:{plainSection:[{isQuoted:!1,content:Dh(a.comment)}]}},be(a);default:return sb(a.formattingMode,"Unknown formatting mode: "+a.formattingMode)}},Qr=function(){return of(function(a,
b){return Gm(a,b)})},l8a=function(){return function(a){return a.pipe(A(function(b){return{event:b,timestamp:Date.now()}}),jla(a.pipe(kf(1E4,Rr))))}},m8a=function(a){if(a&1){var b=t();K(0,"div",5)(1,"div",6);S(2," Relative link may be malformed:\u00a0 ");K(3,"code");S(4);L();K(5,"button",7);N("click",function(){u(b);var c=P(2);c.copyToClipboard();return v(c.hide())});M(6,"mat-icon",8);L()();K(7,"div",6);S(8," Force open as: \u00a0 ");K(9,"a",9);N("click",function(c){u(b);var d=P(2);IVa(c)||(c.preventDefault(),
c.stopPropagation(),Sr(d.domSafe,"http://"+d.originalHref));return v(d.hide())});S(10);L()()()}a&2&&(a=P(2),B(4),Ag(a.originalHref),B(5),I("href",Gg("http://",a.originalHref),Me),B(),T(" http://",a.originalHref," "))},n8a=function(a){a&1&&F(0,m8a,11,4,"div",5);a&2&&(a=P(),G(a.opened?0:-1))},q8a=function(a){var b=[],c=[];a=[].concat(n(a)).sort(o8a);a=p8a(a);a=l(a);for(var d=a.next(),e={};!d.done;e={name$jscomp$466:void 0,operator$jscomp$5:void 0},d=a.next())d=d.value,e.name$jscomp$466=d.name,e.operator$jscomp$5=
d.operator,d=d.values,d.length!==0&&b.push(d.map(function(f){return function(g){return pca(g)||rca(g)?f.name$jscomp$466+f.operator$jscomp$5+g:f.name$jscomp$466+f.operator$jscomp$5+'"'+g+'"'}}(e)).join(" "));c.length>0&&b.push("filters="+encodeURIComponent(c.join(",")));return b.join(" ")},p8a=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(nca(pca)(e))b.push({name:d,operator:c,values:e});else if(nca(oca)(e))b.push({name:d,operator:c,
values:e});else if(nca(rca)(e))b.push({name:d,operator:c,values:e});else throw Error("Ee`"+e);}return b},Tr=function(a,b,c){if(r8a.includes(a)||s8a.includes(a)||t8a.includes(a))return{id:a,operator:b,values:c};throw Error("Fe`"+a);},o8a=function(a,b){return u8a.indexOf(a.id)-u8a.indexOf(b.id)},v8a=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"log_text_payload";case "q_invert":return"log_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}},w8a=function(a,b,c){var d=v8a(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[Tr(d,"=",[b])];case "job_regex":return[Tr(d,"=~",[b])];case "index":case "attempt":case "min_time":case "max_time":return[Tr(d,"=",[Number(b)])];case "q":return[Tr(d,"=~",[b.startsWith("(?i)")?b.substring(4):b])];case "q_invert":return[Tr(d,"!=",[b.startsWith("(?i)")?b.substring(4):b])];case "src_file":return a=c.get("src_line"),[Tr(d,"=~",
[a?b+":"+a:b])];case "inverted_call_site_regex":return[Tr(d,"!=",[].concat(n(b.split(","))))];default:return null}},x8a=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"log_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}},y8a=function(a,b){return this._trackRow(b)},z8a=function(a){a&1&&(K(0,"tr",0)(1,"td",3),S(2),L()());a&2&&(a=P(),B(),xg("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),Jf("colspan",a.numCols),
B(),T(" ",a.label," "))},A8a=function(a){a&1&&(K(0,"td",3),S(1),L());a&2&&(a=P(2),xg("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),Jf("colspan",a._firstRowOffset),B(),T(" ",a._firstRowOffset>=a.labelMinRequiredCells?a.label:""," "))},B8a=function(a,b){if(a&1){var c=t();K(0,"td",6)(1,"button",7);N("click",function(f){var g=u(c).$implicit,k=P(2);return v(k._cellClicked(g,f))})("focus",function(f){var g=u(c).$implicit,k=P(2);return v(k._emitActiveDateChange(g,f))});K(2,"span",8);S(3);
L();M(4,"span",9);L()()}if(a&2){a=b.$implicit;b=b.$index;var d=P().$index,e=P();xg("width",e._cellWidth)("padding-top",e._cellPadding)("padding-bottom",e._cellPadding);Jf("data-mat-row",d)("data-mat-col",b);B();yg("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));I("ngClass",a.cssClasses)("tabindex",e._isActiveCell(d,b)?0:-1);Jf("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));B();yg("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);B();T(" ",a.displayValue," ")}},D8a=function(a,b){a&1&&(K(0,"tr",1),F(1,A8a,2,6,"td",4),Pf(2,B8a,5,48,"td",5,C8a),L());if(a&2){a=b.$implicit;b=b.$index;var c=P();B();G(b===0&&c._firstRowOffset?1:-1);B();Qf(a)}},E8a=function(a){return(a==null?void 0:a.nodeName)==="TD"},F8a=function(a){if(E8a(a))var b=a;else if(E8a(a.parentNode))b=a.parentNode;else{var c;E8a((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},G8a=function(a,b,c){return c!==null&&b!==c&&a<c&&a===b},H8a=function(a,b,c){return b!==null&&b!==c&&a>=b&&a===c},I8a=function(a,b,c,d){return d&&b!==null&&c!==null&&b!==c&&a>=b&&a<=c},J8a=function(a){a=a.changedTouches[0];return document.elementFromPoint(a.clientX,a.clientY)},K8a=function(a,b){a&1&&(K(0,"th",2)(1,"span",6),S(2),L(),K(3,"span",3),S(4),L()());a&2&&(a=b.$implicit,B(2),Ag(a.long),B(2),Ag(a.narrow))},M8a=function(a,b,c,d,e){b=a.getYear(b);c=a.getYear(c);a=L8a(a,d,e);return Math.floor((b-
a)/24)===Math.floor((c-a)/24)},N8a=function(a,b,c,d){return((a.getYear(b)-L8a(a,c,d))%24+24)%24},L8a=function(a,b,c){var d=0;c?d=a.getYear(c)-24+1:b&&(d=a.getYear(b));return d},O8a=function(){},P8a=function(a){if(a&1){var b=t();K(0,"mat-month-view",4);Eg("activeDateChange",function(c){u(b);var d=P();Dg(d.activeDate,c)||(d.activeDate=c);return v(c)});N("_userSelection",function(c){u(b);var d=P();return v(d._dateSelected(c))})("dragStarted",function(c){u(b);var d=P();return v(d._dragStarted(c))})("dragEnded",
function(c){u(b);var d=P();return v(d._dragEnded(c))});L()}a&2&&(a=P(),Cg("activeDate",a.activeDate),I("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))},Q8a=function(a){if(a&1){var b=t();K(0,"mat-year-view",5);Eg("activeDateChange",
function(c){u(b);var d=P();Dg(d.activeDate,c)||(d.activeDate=c);return v(c)});N("monthSelected",function(c){u(b);var d=P();return v(d._monthSelectedInYearView(c))})("selectedChange",function(c){u(b);var d=P();return v(d._goToDateInView(c,"month"))});L()}a&2&&(a=P(),Cg("activeDate",a.activeDate),I("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},R8a=function(a){if(a&1){var b=t();K(0,"mat-multi-year-view",6);Eg("activeDateChange",
function(c){u(b);var d=P();Dg(d.activeDate,c)||(d.activeDate=c);return v(c)});N("yearSelected",function(c){u(b);var d=P();return v(d._yearSelectedInMultiYearView(c))})("selectedChange",function(c){u(b);var d=P();return v(d._goToDateInView(c,"year"))});L()}a&2&&(a=P(),Cg("activeDate",a.activeDate),I("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},S8a=function(){},T8a=function(a){a&1&&(yd(),K(0,"svg",2),M(1,"path",3),L())},V8a=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(U8a.keys());for(var e=d.next();!e.done;e=d.next())if(e=e.value,c.startsWith(e))return{account:c.replace(e,""),accountType:U8a.get(e)}}var f,g;return{account:(g=(f=a.get("account"))!=null?f:a.get("gaia"))!=null?g:"",accountType:"gaia"}},W8a=function(a){a&1&&(K(0,"b-glue"),
M(1,"mat-icon",4),L())},X8a=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},Y8a=function(a,b){if(a&1){var c=t();K(0,"span",6);F(1,X8a,1,1,"mat-icon",7);K(2,"a",8);N("click",function(f){var g=u(c).$implicit,k=P(3);k.openLink(f,g.href);return v(k.hide())});S(3);L()();K(4,"button",9);N("click",function(){var f=u(c).$implicit,g=P(3);g.copyToClipboard(f.originalHref);return v(g.hide())});M(5,"mat-icon",10);L()}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;var e=P(3);B();
G(a.icon?1:-1);B();I("href",a.originalHref,Me)("rel",e.EXTERNAL_LINK_REL);B();Ag(a.label);B();yg("final",d===b-1)}},$8a=function(a){a&1&&(K(0,"div",5),Pf(1,Y8a,6,6,null,null,Z8a),L());a&2&&(a=P(2),B(),Qf(a.urls))},a9a=function(a){a&1&&F(0,$8a,3,0,"div",5);a&2&&(a=P(),G(a.opened?0:-1))},b9a=function(a){a&1&&(K(0,"div",4),Xf(1,5),L());a&2&&(a=P(),I("onedevIsHovercardReady",a.hovercardReady))},c9a=function(a){var b=a.filter(function(k){var m;return(m=k.experimentalFields)==null?void 0:m.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,g=(f=a.get(e))!=null?f:new Set;g.add(c.issueId);a.set(e,g)}}a=[].concat(n(a.values())).map(function(k){return[].concat(n(k))});return Nq(a,function(k){return k.sort().join(",")}).filter(function(k){return k.length>=3}).sort(function(k,m){return m.length-k.length}).slice(0,3).map(function(k){return[].concat(n(k))})},Ur=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(Bo(a)&&(d==="NEW"||d==="UNSPECIFIED"))return"NEW";if(Bo(a)&&d==="CONFIRMED")return"CONFIRMED";if(Bo(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"},Vr=function(a){if(a){var b=
Ur(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 Bo(a)?"REOPENED":e;throw Error("He");}}},e9a=function(a,b){return b.length?
a.filter(function(c){return[].concat(n(b)).some(function(d){return d9a(c,d)})}):a},f9a=function(a,b){return b.length?a.filter(function(c){return[].concat(n(b)).every(function(d){return d.check(c)})}):a},d9a=function(a,b){var c,d;return!((c=a.experimentalFields)==null?0:(d=c.triage)==null?0:d.dismissed)&&b.check(a)},Wr=function(a,b){return b!=null&&b.displayName?b.displayName:a+" triage"},g9a=function(a,b,c){return c!=null&&c.displayName?be(c.displayName):a.pipe(A(function(d){var e;return(e=d==null?
void 0:d.name)!=null?e:b}),A(function(d){return Wr(d)}))},h9a=function(a,b){return{displayAs:"Team: "+a.name,queryAtom:"teamId:"+a.teamId+(b===void 0||b?"+":""),tooltip:"Issues within this team's components"}},i9a=function(a,b){return{displayAs:"Component: "+a.name,queryAtom:"componentId:"+a.componentId+(b===void 0||b?"+":""),tooltip:"Issues within this component"}},Xr=function(a,b,c){c=c===void 0?!1:c;if(!b)return"";Array.isArray(b)||(b=[b]);b=b.filter(ln);return b.length===0?"":a+":("+b.join("|")+
")"+(c?"+":"")},Yr=function(){return Yc.apply(0,arguments).filter(Boolean).join(" AND ")},j9a=function(a){return{filter:a,pageSize:250,sort:"created_time:desc",custom:"byExperimentalPhase"}},k9a=function(a,b){return a.filter(function(c){return Ur(c)===b})},Zr=function(a){return typeof a==="string"?"buganizer.drafts."+a:"buganizer.drafts.labeled."+a.label},l9a=function(a){if(a&1){var b=t();K(0,"button",5);N("click",function(){u(b);var c=P();return v(c.dialogRef.close(!1))});S(1);L()}a&2&&(a=P(),B(),
T(" ",a.cancelButtonText," "))},m9a=function(a){var b=[];a=[].concat.apply([],n(a.map(function(e){return e.actions})));a=l(a);for(var c=a.next(),d={};!c.done;d={action$jscomp$146:void 0},c=a.next())d.action$jscomp$146=c.value,b.some(function(e){return function(f){return Gm(e.action$jscomp$146,f)}}(d))||b.push(d.action$jscomp$146);return b},n9a=function(a){return Array.from(new Set([].concat.apply([],n(a.map(function(b){return b.issueIds})))))},p9a=function(a){return o9a.has(a)},q9a=function(a){return{encryptedMedia:Rda(lo(a,
1,void 0,fb)),errorMessage:a.getErrorMessage()}},s9a=function(a){var b=new r9a;b=$r(b,1,db(a.attachment,!1,!0));if(a.contentJudgement!==void 0){var c=b.setContentJudgement;a=a.contentJudgement;a=(new as).setIt(cYa(a));c.call(b,a)}return b},u9a=function(a){var b;return{attachments:((b=a.getAttachmentsList())!=null?b:[]).map(t9a)}},t9a=function(a){if(a!=null)return rYa(a.getIt())},v9a=function(a,b){a&1&&(K(0,"li"),S(1),L());a&2&&(a=b.$implicit,B(),Ag(a))},y9a=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=w9a(b),f=w9a(c),g=w9a(d);a=b*(c+d)?" ":"";var k=c*d?" ":"";b=x9a("{COUNT, plural, =0 {}=1 {{TEXT} day}other {{TEXT} days}}",b,e);c=x9a("{COUNT, plural, =0 {}=1 {{TEXT} hour}other {{TEXT} hours}}",c,f);d=x9a("{COUNT, plural, =0 {}=1 {{TEXT} minute}other {{TEXT} minutes}}",d,g);return b+a+c+k+d},x9a=function(a,b,c){return(new em(a)).format({COUNT:b,TEXT:c})},B9a=function(a){return a.isInternal?a.isProd?z9a:A9a:[]},
C9a=function(a,b,c,d){c&&c.targetTime&&(c.endTime?b.push({sloBounds:c,sloMetric:d}):a.push({sloBounds:c,sloMetric:d}))},D9a=function(a,b){return a.sloBounds.targetTime.seconds-b.sloBounds.targetTime.seconds},E9a=function(){return{startTime:Date.now(),sessionStartTime:Date.now(),firstActionSeen:!1,editCount:0,variations:new Set}},F9a=function(a){return typeof a==="object"?"customField:"+a.customFieldId:a},H9a=function(a,b){if(G9a[a])return G9a[a][b]},I9a=function(a){return a?za(a,"@")?a:a==="[Deleted User]"?
a:a+"@google.com":""},J9a=function(a,b){a=a===void 0?"":a;b=b===void 0?48:b;var c=c===void 0?"...":c;var d=[].concat(n(a));if(d.length<=b)return a;a=b-[].concat(n(c)).length;d=d.slice(0,a).join("");String.prototype.trimEnd!=null&&(d=d.trimEnd());return d+c},K9a=function(a){a=a===void 0?"":a;var b=new Set([].concat(n('!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n')));a=[].concat(n(a)).map(function(c){return b.has(c)?" ":c}).join("").trim();return a.length===0?[]:a.split(/[\s]+/g)},L9a=function(a){return a.split("").every(function(b){return b.length===
1&&b.charCodeAt(0)>=0&&b.charCodeAt(0)<=255})},N9a=function(a){if(a!=null){a=[].concat(n(a)).slice(0,100);a=l(a);for(var b=a.next();!b.done;b=a.next())if(b=M9a[b.value])return b}},Q9a=function(a){if(a.includes('"')||a.includes("'"))return[];var b=[].concat(n(a.matchAll(O9a)));if(b.length)return b.map(function(c){c=l(c);c.next();c.next();return c.next().value});a=[].concat(n(a.matchAll(P9a)));return a.length?a.map(function(c){c=l(c);c.next();c.next();return c.next().value}):[]},R9a=function(a,b){var c;
a=(c=a)!=null?c:"";var d;b=(d=b)!=null?d:"";return a.trim()===b.trim()},S9a=function(a){return a.customFieldValue?{customFieldId:String(a.customFieldValue.customFieldId)}:a.fieldName},T9a=function(a){a&1&&M(0,"img",9);a&2&&(a=P(),I("src",a.person.imageUrl,Me)("alt",a.person.name+"'s profile picture"))},U9a=function(a){a&1&&(K(0,"div",10),S(1),L());a&2&&(a=P(),B(),Ag(a.person.email))},V9a=function(a){a&1&&(K(0,"div",11)(1,"onedev-chip",12),M(2,"mat-icon",13),S(3),L()());a&2&&(a=P(),B(3),T("",a.outOfOfficeDescription,
" "))},W9a=function(a){a&1&&(K(0,"li"),S(1),L());a&2&&(a=P(2),B(),Ag(a.person.title))},X9a=function(a){a&1&&M(0,"li",18)},Y9a=function(a){a&1&&(K(0,"li"),S(1),L());a&2&&(a=P(2),B(),Ag(a.person.department))},Z9a=function(a){a&1&&(Vf(0),M(1,"mat-icon",14),K(2,"div",15)(3,"ul",16),E(4,W9a,2,1,"li",8)(5,X9a,1,0,"li",17)(6,Y9a,2,1,"li",8),L()(),Wf());a&2&&(a=P(),B(4),I("ngIf",a.person.title),B(),I("ngIf",a.person.title&&a.person.department),B(),I("ngIf",a.person.department))},$9a=function(a){a&1&&(Vf(0),
M(1,"mat-icon",19),K(2,"div",15),S(3),L(),Wf());a&2&&(a=P(),B(3),Ag(a.person.location))},a$a=function(a){a&1&&(Vf(0),M(1,"mat-icon",20),K(2,"div",15)(3,"ul",16)(4,"li")(5,"a",21),S(6,"Teams"),L()(),M(7,"li",18),K(8,"li")(9,"a",21),S(10,"Calendar"),L()(),M(11,"li",18),K(12,"li")(13,"a",21),S(14,"CLs"),L()(),M(15,"li",18),K(16,"li")(17,"a",21),S(18,"Readability"),L()(),M(19,"li",18),K(20,"li")(21,"a",21),S(22,"CLStats"),L()()()(),Wf());a&2&&(a=P(),B(5),I("href","https://moma.corp.google.com/person/"+
a.person.ldap,Me),B(4),I("href","https://www.google.com/calendar/embed?src="+a.person.email+"&mode=WEEK&showCalendars=0",Me),B(4),I("href","https://critique.corp.google.com/"+a.person.ldap,Me),B(4),I("href","https://icanread.corp.google.com/s/"+a.person.ldap,Me),B(4),I("href","https://clstats.corp.google.com/?user="+a.person.ldap+"#r",Me))},c$a=function(a){return a&&b$a.test(a)?a.split("@")[0]:""},d$a=function(a){return a?a.find(function(b){var c;return((c=b.metadata)==null?void 0:c.container)===
"DOMAIN_PROFILE"}):null},e$a=function(a){return a?a.find(function(b){var c;return((c=b.metadata)==null?void 0:c.container)==="DOMAIN_PROFILE"}):null},f$a=function(a,b){return a.map(function(c){var d,e,f,g=(e=b==null?void 0:(d=b.matches)==null?void 0:d.find(function(H){return H.lookupId===c}))==null?void 0:(f=e.personId)==null?void 0:f[0];if(!g)return{ldap:c$a(c),name:"",email:c};var k;d=b==null?void 0:(k=b.people)==null?void 0:k[g];var m;g=(m=e$a(d==null?void 0:d.email))==null?void 0:m.value;var r,
w;m=d==null?void 0:(r=d.name)==null?void 0:(w=r[0])==null?void 0:w.displayName;var x,D;r=d==null?void 0:(x=d.photo)==null?void 0:(D=x[0])==null?void 0:D.url;w=d$a(d==null?void 0:d.organization);x=w==null?void 0:w.title;D=w==null?void 0:w.department;w=w==null?void 0:w.location;return{ldap:c$a(g),email:g||c||"",name:m||"",imageUrl:r,title:x,department:D,location:w}})},i$a=function(){var a={timeout:5E3};a=a===void 0?{}:a;return g$a!=null?g$a:g$a=h$a(a)},j$a=function(){return new Promise(function(a,b){window.gapi.load("client",
{callback:a,onerror:b})})},h$a=function(a){a=a===void 0?{}:a;var b;return y(function(c){if(c.nextAddress==1){if((b=window.gapi)&&b.client&&b.client.load)c=c.return(b);else{var d=xh("https://apis.google.com/js/api.js");c=z(c,k$a(d,a),2)}return c}if(c.nextAddress!=3){b=window.gapi;if(!b)throw Error("Je");return b.client&&b.client.load?c.jumpTo(3):z(c,j$a(),3)}return c.return(b)})},l$a=function(a,b,c){var d=a.config.get(b);c!==d&&a.config.update(b,c)},n$a=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(m$a.has(a))return m$a.get(a);b=Promise.resolve(c.reloadAuthResponse()).finally(function(){m$a.delete(a)});m$a.set(a,b);return b}return Promise.resolve()},o$a=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})},p$a=function(a,b){a&1&&(K(0,"div",1),yd(),K(1,"svg",2)(2,"g"),M(3,"path",3),L()(),
zd(),K(4,"span",4),S(5),L()());a&2&&(a=b.ngIf,Jf("aria-label",a)("title",a),B(5),Ag(a))},bs=function(a){this.value_=void 0;this.childNodes_={};a&&this.setAll(a)},q$a=function(a,b){a!=null&&this.append.apply(this,arguments)},cs=function(a){r$a.call(this,a)},ds=function(a,b){b=b===void 0?!1:b;this.parsedImageUrl_=null;a instanceof s$a||(t$a==void 0&&(t$a=new u$a),a=t$a.parse(a.toString(),b));this.parsedImageUrl_=a;a=this.parsedImageUrl_.getParsedOptions();r$a.call(this,a);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;
this.domain_=this.parsedImageUrl_.getDomain();this.query_=this.parsedImageUrl_.getQuery()},v$a=function(a,b){a&1&&(K(0,"onedev-person-hovercard-body",1),U(1,"async"),gg(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),gg(3,1,["ngProjectAs","[onedev-additional-content]",5,["","onedev-additional-content",""]]),L());a&2&&(a=b.ngIf,b=P(),I("person",a)("outOfOfficeDescription",W(1,2,b.outOfOfficeDescription$)))},w$a=function(a){a&1&&(K(0,"onedev-person-hovercard",2,0),gg(2,
0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),L());if(a&2){a=Q(1);var b=P();I("email",b.email)("enableWaldo",!0)("onedevIsHovercardReady",a.init)}},x$a=function(a){a&1&&Xf(0)},y$a=function(a){a&1&&(K(0,"span",2),E(1,x$a,1,0,"ng-container",3),L(),K(2,"onedev-hovercard",null,1),M(4,"b-person-card",4),L());if(a&2){a=Q(3);var b=P(),c=Q(3);I("onedevHovercardTrigger",a)("onedevHovercardActive",!!b.email);B();I("ngTemplateOutlet",c);B(3);I("email",b.email)}},z$a=function(a){a&
1&&Xf(0)},A$a=function(a){a&1&&E(0,z$a,1,0,"ng-container",3);a&2&&(P(),a=Q(3),I("ngTemplateOutlet",a))},B$a=function(a){a&1&&gg(0)},E$a=function(a){if(a&1){var b=t();Vf(0,1);K(1,"onedev-hovercard-action",3);U(2,"async");N("onAction",function(){u(b);var e=P();return v(C$a(e))});K(3,"span");S(4);L()();K(5,"onedev-hovercard-action",3);U(6,"async");N("onAction",function(){u(b);var e=P();return v(D$a(e))});K(7,"span");S(8);L()();Wf()}if(a&2){a=P();B();var c;I("disabled",(c=W(2,4,a.actionService.assigneeUpdating$))!=
null?c:!1);B(3);Ag(a.email!==a.currentAssignee?"Set as assignee":"Remove assignee");B();var d;I("disabled",(d=W(6,6,a.actionService.ccUpdating$))!=null?d:!1);B(3);Ag(a.currentCc.includes(a.email)?"Remove from CCs":"Add to CCs")}},I$a=function(a){return!a.endsWith("/history")&&!!a.match(F$a)||!!a.match(G$a)||!!a.match(H$a)},es=function(a){return a.type==="hyperlink"},J$a=function(a){return es(a)&&I$a(a.href)},L$a=function(a){return es(a)&&!!a.href.match(K$a)},M$a=function(a,b){b=b===void 0?!1:b;return!a.endsWith("/history")&&
a.match(F$a)?(a=a.match(F$a)[2],b?"https://3p-screenshot.corp.google.com/"+a+".png":"https://screenshot.googleplex.com/"+a+".png"):a.match(G$a)?"https://plx-alerts.corp.google.com/chart/?"+a.match(G$a)[1]:null},N$a=function(a){return a.type==="issueReference"},O$a=function(a){return es(a)&&!J$a(a)&&!(es(a)&&a.href.startsWith("mailto:"))},P$a=function(a){a&1&&(M(0,"img",1),U(1,"async"));if(a&2){a=P(2);I("src",W(1,2,a.srcRedirected$),Me);var b;Jf("alt",(b=a.alt)!=null?b:"user provided image")}},Q$a=
function(a){if(a&1){var b=t();K(0,"a",3);U(1,"async");U(2,"async");N("click",function(c){u(b);var d=P(2);return v(d.trigger(c))})("keydown.enter",function(c){u(b);var d=P(2);return v(d.trigger(c))});K(3,"b-glue");M(4,"mat-icon",4);L();Vf(5);S(6);U(7,"async");Wf();L()}a&2&&(a=P(2),I("href",W(1,3,a.src$),Me)("title",W(2,5,a.src$)),B(6),Ag(W(7,7,a.srcTruncated$)))},R$a=function(a){a&1&&(F(0,P$a,2,4,"img",1),U(1,"async"),Mf(2,Q$a,8,9,"a",2));if(a&2){var b;a=P();G((b=W(1,1,a.showImage$))?0:2,b)}},S$a=
function(a){a&1&&(M(0,"mat-icon",0),U(1,"async"));a&2&&(a=P(),I("matTooltip",Gg("Unable to load image ",W(1,2,a.srcTruncated$))))},T$a=function(a){a&1&&(M(0,"br"),K(1,"a",1),M(2,"b-secure-image-widget",2),L(),M(3,"br"));if(a&2){a=P();var b=P();B();I("href",a,Me)("rel",b.EXTERNAL_LINK_REL);B();I("src",a)("alt",b.alt||"User provided screenshot")("showByDefault",!0)}},U$a=function(a){a&1&&M(0,"b-secure-image-widget",0);if(a&2){a=P();var b=P();I("src",a)("alt",b.alt||"User provided screenshot")("showByDefault",
!1)}},V$a=function(a){a&1&&(F(0,T$a,4,5),U(1,"async"),Mf(2,U$a,1,3,"b-secure-image-widget",0));if(a&2){var b;a=P();G((b=W(1,1,a.displayMode$))===a.DisplayMode.SHOW?0:b===a.DisplayMode.COLLAPSE?2:-1)}},W$a=function(a){for(;a.firstChild;)a.removeChild(a.firstChild)},X$a=function(a,b){a&1&&M(0,"b-plain-format-section",1);a&2&&I("section",b.$implicit)},Y$a=function(a){a&1&&M(0,"b-plain-format-quoted-section",0);a&2&&(a=P(),I("section",a.section))},Z$a=function(a){a&1&&M(0,"b-plain-format-unquoted-section",
0);a&2&&(a=P(),I("section",a.section))},aab=function(a){if(a&1){var b=t();Sf(0,"a",4);eg("click",function(){u(b);var c=P();c.showQuote=!1;$$a(c);return v()});S(1," - Hide quoted text - ");Tf()}a&2&&(a=P(),Jf("aria-controls",a.childId))},bab=function(a){if(a&1){var b=t();Sf(0,"a",5);eg("click",function(){u(b);var c=P();c.showQuote=!0;$$a(c);return v()});S(1," - Show quoted text - ");Tf()}a&2&&(a=P(),Jf("aria-controls",a.childId))},cab=function(a,b){a&1&&M(0,"b-literal-format-presenter",0);a&2&&I("content",
b)},dab=function(a,b){if(a&1){var c=t();K(0,"b-markdown-format-presenter",2);N("checkboxChange",function(d){u(c);var e=P();return v(e.checkboxChange.emit(d))});L()}a&2&&(a=P(),I("content",b)("canEditComment",a.canEditComment))},eab=function(a,b){a&1&&M(0,"b-plain-format-presenter",0);a&2&&I("content",b)},fab=function(a,b){a&1&&(K(0,"div",1),M(1,"b-formatted-comment-presenter",2),L());a&2&&(a=P(),yg("invisible",(a.comment||"").trim()==="")("error",b.isFallback),B(),I("formattedComment",b.formattedComment))},
iab=function(a){var b=a.match(/\(.*\)/);if(a.match(/'.*'/)||a.match(/".*"/)||b)return{complexSyntax:!0};a=a.split(/\s+/).filter(Boolean);b=a.filter(gab).length;var c=a.filter(function(d){return!gab(d)}).filter(hab).length;return{filters:b,text:a.length-b-c,resourceIds:c}},hab=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:jab(a)},gab=function(a){return!!a.match(/\w:\w/g)},kab=function(a){a&1&&(K(0,"span",11),yd(),
K(1,"svg",13),M(2,"path",14),L(),K(3,"svg",15),M(4,"path",16),L()())},lab=function(a){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(function(b){return a.classList.contains(b)})},mab=function(a){a&1&&gg(0,2)},nab=function(a){a&1&&(K(0,"thead",0),Xf(1,1),L(),K(2,"tbody",0),Xf(3,2)(4,3),L(),K(5,"tfoot",0),Xf(6,4),L())},oab=function(a){a&1&&Xf(0,1)(1,2)(2,3)(3,4)},pab=function(a,b){return a.concat(Array.from(b))},qab=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},rab=function(a){a&1&&gg(0,2)},sab=function(a){a&1&&(K(0,"thead",0),Xf(1,1),L(),K(2,"tbody",2),Xf(3,3)(4,4),L(),K(5,"tfoot",0),Xf(6,5),L())},tab=function(a){a&1&&Xf(0,1)(1,3)(2,4)(3,5)},uab=function(a){if(a&1){var b=t();K(0,"textarea",14,0);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.draftPlaybook.instructions,c)||(d.draftPlaybook.instructions=c);return v(c)});L()}a&2&&(a=P(),Cg("ngModel",a.draftPlaybook.instructions))},
vab=function(a){a&1&&M(0,"b-live-preview",15);a&2&&(a=P(2),I("comment",a.originalPlaybook.instructions)("formattingMode",a.FormattingMode.MARKDOWN))},wab=function(a){if(a&1){var b=t();F(0,vab,1,2,"b-live-preview",15);K(1,"div",16)(2,"button",17);N("click",function(){u(b);var c=P();return v(c.isEditing=!0)});S(3,"Edit markdown");L()()}a&2&&(a=P(),G(a.originalPlaybook?0:-1))},yab=function(a,b){if(a&1){var c=t();K(0,"button",38);N("click",function(){var d=u(c).$implicit,e=P(2);return v(e.unimplementedPlaybookData.statsInterval=
d)});M(1,"mat-icon",39);S(2);L()}a&2&&(a=b.$implicit,b=P(2),B(),yg("invisible",a!==b.unimplementedPlaybookData.statsInterval),B(),T(" ",xab(a)," "))},zab=function(a){a&1&&(K(0,"th",40),S(1,"Triage actions"),L())},Aab=function(a,b){a&1&&(K(0,"td",41),S(1),L());a&2&&(a=b.$implicit,B(),T(" ",a.triageActions," "))},Bab=function(a){a&1&&(K(0,"th",40),S(1,"Acceptance rate"),L())},Cab=function(a,b){a&1&&(K(0,"td",41),S(1),L());a&2&&(a=b.$implicit,B(),T(" ",a.acceptanceRate," "))},Dab=function(a){a&1&&(K(0,
"th",40),S(1,"Accuracy"),L())},Eab=function(a,b){a&1&&(K(0,"td",41),S(1),L());a&2&&(a=b.$implicit,B(),Ag(a.accuracy))},Fab=function(a){a&1&&M(0,"tr",42)},Gab=function(a){a&1&&M(0,"tr",43)},Hab=function(a){if(a&1){var b=t();K(0,"div",10)(1,"h4",8);S(2,"Settings");L();K(3,"div",18)(4,"mat-slide-toggle",19);Eg("ngModelChange",function(d){u(b);var e=P();Dg(e.unimplementedPlaybookData.enablePlaybook,d)||(e.unimplementedPlaybookData.enablePlaybook=d);return v(d)});S(5," Enable this playbook ");L();K(6,
"div",20);S(7," Playbook scope ");M(8,"input",21);L();K(9,"div",22);S(10," Agent mode ");K(11,"mat-radio-group",23);Eg("ngModelChange",function(d){u(b);var e=P();Dg(e.unimplementedPlaybookData.agentMode,d)||(e.unimplementedPlaybookData.agentMode=d);return v(d)});K(12,"mat-radio-button",24);S(13," Show suggestion chips ");L();K(14,"mat-radio-button",24);S(15," Apply actions automatically ");L()()();K(16,"mat-slide-toggle",19);Eg("ngModelChange",function(d){u(b);var e=P();Dg(e.unimplementedPlaybookData.clusterSuggestions,
d)||(e.unimplementedPlaybookData.clusterSuggestions=d);return v(d)});S(17," Cluster suggestions ");L()();K(18,"div",25)(19,"h4",8);S(20,"Playbook stats");L();K(21,"button",26)(22,"span",27);S(23);L();M(24,"b-icon",28);L();K(25,"mat-menu",null,1);Pf(27,yab,3,3,"button",29,Of);L()();K(29,"div",10)(30,"table",30);Vf(31,31);E(32,zab,2,0,"th",32)(33,Aab,2,1,"td",33);Wf();Vf(34,34);E(35,Bab,2,0,"th",32)(36,Cab,2,1,"td",33);Wf();Vf(37,35);E(38,Dab,2,0,"th",32)(39,Eab,2,1,"td",33);Wf();E(40,Fab,1,0,"tr",
36)(41,Gab,1,0,"tr",37);L()()()}if(a&2){a=Q(26);var c=P();B(4);Cg("ngModel",c.unimplementedPlaybookData.enablePlaybook);B(4);I("ngModel",c.draftPlaybook.searchQuery);B(3);Cg("ngModel",c.unimplementedPlaybookData.agentMode);B();I("value",c.AgentMode.SUGGESTIONS);B(2);I("value",c.AgentMode.AUTOMATIC_ACTIONS);B(2);Cg("ngModel",c.unimplementedPlaybookData.clusterSuggestions);B(5);I("matMenuTriggerFor",a);B(2);T(" ",xab(c.unimplementedPlaybookData.statsInterval)," ");B(4);Qf(c.statsIntervalOptions);B(3);
I("dataSource",c.dataSource);B(10);I("matHeaderRowDef",c.displayedColumns);B();I("matRowDefColumns",c.displayedColumns)}},Iab=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},Jab=function(a){a&1&&M(0,"mat-spinner",0);a&2&&(a=P(),I("diameter",a.SIZE_LARGE),Jf("aria-label",a.ariaLabel))},Kab=function(a){a&1&&M(0,"mat-spinner",1);a&2&&(a=P(),I("diameter",a.SIZE_SMALL)("strokeWidth",a.DIAMETER_SMALL),Jf("aria-label",a.ariaLabel))},
Lab=function(a){if(a&1){var b=t();K(0,"button",1);N("click",function(){u(b);var c=P();return v(c.openDialog())});M(1,"mat-icon",2);S(2," Create playbook ");L()}},Mab=function(a){a&1&&(K(0,"div",3),M(1,"b-spinner"),S(2," Generating triage suggestions "),L())},Oab=function(a){if(a&1){var b=t();K(0,"button",1);N("click",function(){u(b);var c=P(2);return v(Nab(c))});M(1,"mat-icon",4);S(2," Execute playbook ");L()}},Pab=function(a){if(a&1){var b=t();F(0,Mab,3,0,"div",3)(1,Oab,3,0,"button",0);K(2,"button",
1);N("click",function(){u(b);var c=P();return v(c.openDialog())});M(3,"mat-icon",2);S(4," Edit playbook ");L()}a&2&&(a=P(),G(a.playbookState===a.PlaybookState.RUNNING?0:1))},Qab=function(a){a&1&&(K(0,"a",1),M(1,"mat-icon",2),L());a&2&&(a=P(),I("href",a.mdHelpLink,Me)("disableRipple",!0))},Rab=function(a){if(a&1){var b=t();K(0,"b-formatted-comment-presenter",4);N("checkboxChange",function(c){u(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 g=f.search(/\[[ Xx]\]/);if(g!==-1){var k=f[g+1];k&&(k=k.toLowerCase()==="x"?"[ ]":"[x]",f=f.substring(0,g)+k+f.substring(g+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")||(fs(d.butterBar,"Saving comment edit...",0),gs(d.savingState,"commentEdit"));hs(d.issueInteractionsTracking,d.issueId,{label:d.commentNumber===1?"description":"comment"});return v()});
L()}a&2&&(a=P(),I("formattedComment",a.formattedComment)("canEditComment",a.canEditComment))},Sab=function(a){a&1&&M(0,"b-live-preview",3);a&2&&(a=P(),I("comment",a.rawComment)("issueId",a.issueId)("audience",a.audience)("formattingMode",a.formattingModeOverride||a.formattingMode||a.FormattingMode.PLAIN)("idPrefix",a.idPrefix))},Uab=function(a){return a instanceof is?a:new is(a,{})},js=function(a){a=Uab(a);return new is(a.char,Object.assign({},a.modifiers,{shift:!0}))},Vab=function(a){a=Uab(a);return new is(a.char,
Object.assign({},a.modifiers,{ctrl:!0}))},Wab=function(){var a=js("f");a=Uab(a);return new is(a.char,Object.assign({},a.modifiers,{alt:!0}))},Yab=function(a){if(a instanceof is){var b=Xab(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(Yab).join(" "):Xab(a)},ks=function(){return Yc.apply(0,arguments)},Xab=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 sb(a)}},Zab=function(a,b){b?a.setAttribute("role",b):a.removeAttribute("role")},ls=function(a,b,c){Array.isArray(c)&&(c=c.join(" "));var d="aria-"+b;c===""||c==void 0?($ab||(c={},$ab=(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=$ab,b in c?a.setAttribute(d,c[b]):a.removeAttribute(d)):a.setAttribute(d,c)},abb=function(a,b){a=a.getAttribute("aria-"+b);return a==null||a==void 0?"":String(a)},ms=function(a,b){var c="";b&&(c=b.id);ls(a,"activedescendant",c)},bbb=function(a,b){ls(a,"label",b)},cbb=function(a){return a.keys.join("-")+"-"+a.description+"-"+a.displayAs},dbb=
function(a){switch(a){case "P0":return ns.CHANGE_ISSUE_PRIORITY_TO_P0;case "P1":return ns.CHANGE_ISSUE_PRIORITY_TO_P1;case "P2":return ns.CHANGE_ISSUE_PRIORITY_TO_P2;case "P3":return ns.CHANGE_ISSUE_PRIORITY_TO_P3;case "P4":return ns.CHANGE_ISSUE_PRIORITY_TO_P4;case "PRIORITY_UNSPECIFIED":break;default:console.error("Unsupported issue priority in issuePriorityToHotkey")}},ebb=function(a){switch(a){case "NEW":return ns.CHANGE_ISSUE_STATUS_TO_NEW;case "ASSIGNED":return ns.CHANGE_ISSUE_STATUS_TO_ASSIGNED;
case "ACCEPTED":return ns.CHANGE_ISSUE_STATUS_TO_ACCEPTED;case "FIXED":return ns.CHANGE_ISSUE_STATUS_TO_FIXED;case "VERIFIED":return ns.CHANGE_ISSUE_STATUS_TO_VERIFIED;case "NOT_REPRODUCIBLE":return ns.CHANGE_ISSUE_STATUS_TO_NOT_REPRODUCIBLE;case "INTENDED_BEHAVIOR":return ns.CHANGE_ISSUE_STATUS_TO_INTENDED_BEHAVIOR;case "OBSOLETE":return ns.CHANGE_ISSUE_STATUS_TO_OBSOLETE;case "INFEASIBLE":return ns.CHANGE_ISSUE_STATUS_TO_INFEASIBLE;case "INACTIVE":return ns.CHANGE_ISSUE_STATUS_TO_INACTIVE;case "DUPLICATE":return ns.CHANGE_ISSUE_STATUS_TO_DUPLICATE;
case "STATUS_UNSPECIFIED":break;default:console.error("Unsupported issue status in issueStatusToHotkey")}},fbb=function(a,b){if(a&1){var c=t();K(0,"a",7);N("click",function(){var d=u(c).$implicit,e=P(2);return v(e.clickSegment.emit(d.name||d.path))});S(1);L()}a&2&&(a=b.$implicit,I("href",a.path,Me),B(),T(" ",a.name||a.path," "))},gbb=function(a){a&1&&(K(0,"button",4),M(1,"mat-icon",5),L(),K(2,"mat-menu",null,0),Pf(4,fbb,2,2,"a",6,Of),L());if(a&2){a=Q(3);var b=P();I("matMenuTriggerFor",a);B(4);Qf(b.segments)}},
hbb=function(a){a&1&&M(0,"mat-icon",2);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},ibb=function(a,b){if(a&1){var c=t();K(0,"button",1);N("click",function(){var e=u(c).$implicit,f=P();e=e.value;f.value=e;f.valueChange.next(e);return v()});F(1,hbb,1,1,"mat-icon",2);S(2);L()}if(a&2){a=b.$implicit;b=P();var d;I("disableRipple",!0)("matTooltip",(d=a.tooltip)!=null?d:"");Jf("aria-checked",b.value===a.value);B();G(a.icon?1:-1);B();T(" ",a.name," ")}},jbb=function(a){if(a&1){var b=t();K(0,"button",4);N("click",
function(){u(b);var c=P();return v(c.toggle())})("onHotkey",function(){u(b);var c=P();return v(c.toggle())});M(1,"mat-icon",5);L()}a&2&&(a=P(),zg(a.direction),yg("isClosed",a.isClosed),I("hotkey",a.direction==="rtl"?a.HOTKEYS.TOGGLE_RIGHT_SIDEBAR:a.HOTKEYS.TOGGLE_LEFT_SIDEBAR),B(),I("svgIcon",a.isLTR?"chevron-left":"chevron-right"))},lbb=function(a){if(a&1){var b=t();K(0,"div",6);N("onHotkey",function(){u(b);var c=P();return v(c.toggle())})("mousedown",function(c){u(b);var d=P();return v(d.startDragging(c.pageX))})("keyup.arrowleft",
function(){u(b);var c=P();return v(kbb(c,-10))})("keyup.arrowright",function(){u(b);var c=P();return v(kbb(c,10))})("keyup.space",function(){u(b);var c=P();return v(c.toggle())})("keyup.enter",function(){u(b);var c=P();return v(c.toggle())})("dblclick",function(){u(b);var c=P();return v(c.toggle())});L()}a&2&&(a=P(),I("hotkey",a.direction==="rtl"?a.HOTKEYS.TOGGLE_RIGHT_SIDEBAR:a.HOTKEYS.TOGGLE_LEFT_SIDEBAR),Jf("aria-valuenow",a.width)("aria-valuetext",a.width+" pixels"))},mbb=function(a){a=a.getBoundingClientRect();
return a.top>=0&&a.bottom<=window.innerHeight},nbb=function(a){a=a.getBoundingClientRect();return a.bottom>0&&a.top<window.innerHeight},obb=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 Sd(function(f){f.next(e(a));var g=b(function(k){f.next(k[0].isIntersecting)},d?{threshold:0}:{threshold:1});g.observe(a);return function(){g.unobserve(a)}})).pipe(of())},pbb=function(a,b,c){var d=(c===void 0?0:c)?function(e){return b.partially(e)}:
function(e){return b.fully(e)};return se(be(void 0),oe(window,"scroll").pipe(kf(500))).pipe(A(function(){return d(a)}),of())},ubb=function(a){var b=os(a.resource);if(!b)return[];var c=[],d=0;switch(a.type){case "ISSUE_DEDUPLICATION":var e=os(a.recommendation);if(!e)break;c.push({issueId:b,actionKey:d++,fieldName:"duplicateOfIssueId",value:e,actionType:"ADD"});break;case "HOTLIST":e=qbb(a.recommendation);if(!e)break;c.push({issueId:b,actionKey:d++,fieldName:"hotlists",value:e,actionType:"ADD"});break;
case "NEEDS_INFO":case "COMPONENT_ROUTING":case "ANY_ISSUE_EDIT":if((e=a.content)==null?0:e.issueModification)e=rbb(a.content.issueModification),c.push.apply(c,n(e.map(function(D){return Object.assign({},{issueId:b,actionKey:d++},D)})));break;case "ISSUE_DEDUPLICATION_BATCH":var f,g;e=(f=a.content)==null?void 0:(g=f.issueDeduplicationBatch)==null?void 0:g.recommendedCanonicalIssue;if(!e||!e.issueId)break;var k,m,r;f=l((r=(k=a.content)==null?void 0:(m=k.issueDeduplicationBatch)==null?void 0:m.entries)!=
null?r:[]);for(k=f.next();!k.done;k=f.next()){k=k.value;if(!k.issue.issueId)break;k.issue.issueId!==e.issueId&&c.push({issueId:k.issue.issueId,actionKey:d++,fieldName:"duplicateOfIssueId",value:e.issueId,actionType:"ADD"})}break;case "TYPE_UNSPECIFIED":return[]}var w=sbb[a.type],x=tbb[a.type];return c.map(function(D){w.has(D.fieldName)&&(D.allowEdit=!0);x.has(D.fieldName)&&(D.allowExclude=!0);return D})},rbb=function(a){var b=[];b.push.apply(b,n(vbb(a.addState,a.addMask,!0)));b.push.apply(b,n(vbb(a.removeState,
a.removeMask,!1)));a.comment&&b.push({fieldName:"comment",value:a.comment.unlinkifiedComment,formattingMode:a.comment.formattingMode});return b},vbb=function(a,b,c){var d=[];b=l(b);for(var e=b.next();!e.done;e=b.next())switch(e=e.value,e){case "assignee":var f=void 0;d.push({fieldName:e,value:Rm((f=a)==null?void 0:f.assigneeUser),actionType:c?"ADD":"REMOVE"});break;case "attachments":break;case "blockedByIssueId":var g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.blockedByIssueId)==
null?void 0:g.join(","),actionType:c?"ADD":"REMOVE"});break;case "blockingIssueId":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.blockingIssueId)==null?void 0:g.join(","),actionType:c?"ADD":"REMOVE"});break;case "ccs":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.ccUsers)==null?void 0:g.map(Rm).join(","),actionType:c?"ADD":"REMOVE"});break;case "changelists":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.changelist)==null?void 0:g.join(","),actionType:c?
"ADD":"REMOVE"});break;case "collaborators":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.collaboratorsUsers)==null?void 0:g.map(Rm).join(","),actionType:c?"ADD":"REMOVE"});break;case "comment":break;case "componentId":c&&(f=void 0,d.push({fieldName:e,value:((f=a)==null?0:f.componentId)?String(a.componentId):void 0,actionType:"ADD"}));break;case "customField":f=void 0;if((f=a)==null?0:f.customField)for(f=l(a.customField),g=f.next();!g.done;g=f.next())d.push({fieldName:e,customFieldValue:g.value,
actionType:c?"ADD":"REMOVE"});break;case "deletionReason":f=void 0;d.push({fieldName:e,value:((f=a)==null?void 0:f.deletionReason)||void 0,actionType:c?"ADD":"REMOVE"});break;case "duplicateOfIssueId":f=void 0;d.push({fieldName:e,value:((f=a)==null?void 0:f.duplicateOfIssueId)||void 0,actionType:c?"ADD":"REMOVE"});break;case "effortEstimate":g=f=void 0;d.push({fieldName:e,value:((f=a)==null?void 0:(g=f.effort)==null?void 0:g.estimate)||void 0,actionType:c?"ADD":"REMOVE"});break;case "foundInVersion":g=
f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.foundInVersion)==null?void 0:g.join(","),actionType:c?"ADD":"REMOVE"});break;case "gerritChanges":g=f=void 0;d.push({fieldName:e,gerritChangeValue:(g=(f=a)==null?void 0:f.gerritChanges)!=null?g:void 0,actionType:c?"ADD":"REMOVE"});break;case "hotlists":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.hotlistId)==null?void 0:g.join(","),actionType:c?"ADD":"REMOVE"});break;case "inProd":f=void 0;d.push({fieldName:e,value:((f=a)==
null?0:f.inProd)?"true":"false",actionType:c?"ADD":"REMOVE"});break;case "isArchived":f=void 0;d.push({fieldName:e,value:((f=a)==null?0:f.isArchived)?"true":"false",actionType:c?"ADD":"REMOVE"});break;case "isDeleted":f=void 0;d.push({fieldName:e,value:((f=a)==null?0:f.isDeleted)?"true":"false",actionType:c?"ADD":"REMOVE"});break;case "parentId":break;case "priority":c&&(g=f=void 0,d.push({fieldName:e,value:(g=(f=a)==null?void 0:f.priority)!=null?g:void 0,actionType:"ADD"}));break;case "readState":break;
case "reporter":c&&(f=void 0,d.push({fieldName:e,value:Rm((f=a)==null?void 0:f.reporterUser),actionType:"ADD"}));break;case "severity":c&&(g=f=void 0,d.push({fieldName:e,value:(g=(f=a)==null?void 0:f.severity)!=null?g:void 0,actionType:"ADD"}));break;case "sloEndTime":g=f=void 0;d.push({fieldName:e,value:((f=a)==null?0:(g=f.sloEndTime)==null?0:g.seconds)?String(a.sloEndTime.seconds):void 0,actionType:c?"ADD":"REMOVE"});break;case "sloSnoozeType":g=f=void 0;d.push({fieldName:e,value:(g=(f=a)==null?
void 0:f.sloSnoozeType)!=null?g:void 0,actionType:c?"ADD":"REMOVE"});break;case "sloStartTime":g=f=void 0;d.push({fieldName:e,value:((f=a)==null?0:(g=f.sloStartTime)==null?0:g.seconds)?String(a.sloStartTime.seconds):void 0,actionType:c?"ADD":"REMOVE"});break;case "staffing":g=f=void 0;d.push({fieldName:e,staffingValue:(g=(f=a)==null?void 0:f.staffing)!=null?g:void 0,actionType:c?"ADD":"REMOVE"});break;case "status":c&&(g=f=void 0,d.push({fieldName:e,value:(g=(f=a)==null?void 0:f.status)!=null?g:void 0,
actionType:"ADD"}));break;case "targetedToVersion":g=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(g=f.targetedToVersion)==null?void 0:g.join(","),actionType:c?"ADD":"REMOVE"});break;case "title":c&&(g=f=void 0,d.push({fieldName:e,value:(g=(f=a)==null?void 0:f.title)!=null?g:"",actionType:"ADD"}));break;case "type":c&&(g=f=void 0,d.push({fieldName:e,value:(g=(f=a)==null?void 0:f.type)!=null?g:void 0,actionType:"ADD"}));break;case "verifiedInVersion":g=f=void 0;d.push({fieldName:e,value:(f=
a)==null?void 0:(g=f.verifiedInVersion)==null?void 0:g.join(","),actionType:c?"ADD":"REMOVE"});break;case "verifier":f=void 0;d.push({fieldName:e,value:((f=a)==null?0:f.verifierUser)?Rm(a.verifierUser):void 0,actionType:c?"ADD":"REMOVE"});break;default:sb(e)}return d},ybb=function(a){var b={addMask:[],removeMask:[],addState:WWa(),removeState:WWa()};a=l(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,wbb(c))if(c.actionType==="REMOVE")xbb(c,b.removeState),b.removeMask.push(c.fieldName);else{if(c.actionType!==
"ADD"&&c.actionType!=="ACTION_TYPE_UNSPECIFIED"&&c.actionType)throw Error("Ne");xbb(c,b.addState);b.addMask.push(c.fieldName)}return b},xbb=function(a,b){switch(a.fieldName){case "assignee":b.assigneeUser=Sm(a.value);break;case "attachments":break;case "blockedByIssueId":var c,d;b.blockedByIssueId=(d=(c=a.value)==null?void 0:c.split(",").filter(ln))!=null?d:[];break;case "blockingIssueId":var e,f;b.blockingIssueId=(f=(e=a.value)==null?void 0:e.split(",").filter(ln))!=null?f:[];break;case "ccs":var g,
k;b.ccUsers=(k=(g=a.value)==null?void 0:g.split(",").map(Sm).filter(ln))!=null?k:[];break;case "changelists":var m,r;b.changelist=(r=(m=a.value)==null?void 0:m.split(",").filter(ln))!=null?r:[];break;case "collaborators":var w,x;b.collaboratorsUsers=(x=(w=a.value)==null?void 0:w.split(",").map(Sm).filter(ln))!=null?x:[];break;case "comment":break;case "componentId":b.componentId=a.value||null;break;case "customField":var D;b.customField=(D=b.customField)!=null?D:[];a.customFieldValue&&b.customField.push(a.customFieldValue);
break;case "deletionReason":var H;b.deletionReason=(H=a.value)!=null?H:null;break;case "duplicateOfIssueId":b.duplicateOfIssueId=a.value||null;break;case "effortEstimate":var J;b.effort=(J=b.effort)!=null?J:{estimate:void 0};b.effort.estimate=a.value||void 0;break;case "foundInVersion":var O,R;b.foundInVersion=(R=(O=a.value)==null?void 0:O.split(",").filter(ln))!=null?R:[];break;case "gerritChanges":var V;b.gerritChanges=(V=a.gerritChangeValue)!=null?V:[];break;case "hotlists":var ba,pa;b.hotlistId=
(pa=(ba=a.value)==null?void 0:ba.split(",").map(Number).filter(ln))!=null?pa:[];break;case "inProd":b.inProd=a.value==="true";break;case "isArchived":b.isArchived=a.value==="true";break;case "isDeleted":b.isDeleted=a.value==="true";break;case "parentId":break;case "priority":var ua;b.priority=(ua=a.value)!=null?ua:null;break;case "readState":break;case "reporter":b.reporterUser=Sm(a.value);break;case "severity":var ma;b.severity=(ma=a.value)!=null?ma:null;break;case "sloEndTime":b.sloEndTime=a.value?
VTa(Number(a.value)*1E3):null;break;case "sloSnoozeType":var Da;b.sloSnoozeType=(Da=a.value)!=null?Da:null;break;case "sloStartTime":b.sloStartTime=a.value?VTa(Number(a.value)*1E3):null;break;case "staffing":var ja;b.staffing=(ja=a.staffingValue)!=null?ja:null;break;case "status":var va;b.status=(va=a.value)!=null?va:null;break;case "targetedToVersion":var ya,Sa;b.targetedToVersion=(Sa=(ya=a.value)==null?void 0:ya.split(",").filter(ln))!=null?Sa:[];break;case "title":b.title=a.value||"";break;case "type":var ab;
b.type=(ab=a.value)!=null?ab:null;break;case "verifiedInVersion":var rb,ac;b.verifiedInVersion=(ac=(rb=a.value)==null?void 0:rb.split(",").filter(ln))!=null?ac:[];break;case "verifier":b.verifierUser=Sm(a.value);break;default:sb(a.fieldName)}},wbb=function(a){var b=a.value!=null&&a.value!==""||a.customFieldValue!=null||a.staffingValue!=null||a.formattingMode!=null||a.gerritChangeValue!=null;return zbb.has(a.fieldName)&&(a.actionType==="REMOVE"||!b)||a.actionType==="ADD"&&!b||Abb.has(a.fieldName)&&
!b?!1:!0},Cbb=function(a,b){switch(a.type){case "ISSUE_DEDUPLICATION":case "ISSUE_DEDUPLICATION_BATCH":return b?"Mark as duplicate":"Dedupe";case "COMPONENT_ROUTING":case "HOTLIST":return"Reroute";case "ANY_ISSUE_EDIT":var c=a.content;if(c&&c.issueModification){a=c.issueModification.addState;var d=c.issueModification.removeMask;c=new Set([].concat(n(c.issueModification.addMask),n(d)));b=(a==null?void 0:a.status)==="DUPLICATE"?b?"Mark as duplicate":"Dedupe":(a==null?0:a.status)&&Bbb.has(a.status)?
"Clean up":c.has("componentId")||c.has("hotlists")||c.has("assignee")||c.has("ccs")?"Reroute":c.has("priority")||c.has("severity")?"Reprioritize":"Suggestion"}else b="Suggestion";return b;default:return""}},Dbb=function(a){if(a&1){var b=t();K(0,"button",1);U(1,"async");N("click",function(c){u(b);var d=P();return v(d.handleClick(c))})("keydown",function(c){u(b);var d=P();return v(d.handleKeydown(c))});M(2,"mat-icon",2);K(3,"span",3);S(4);L()()}a&2&&(a=P(),yg("small",W(1,6,a.useSmallIcon$))("hovered",
a.isParentRowActive),If("aria-label","View "+a.getRecommendationText()+" recommendation"),B(4),T(" ",a.getRecommendationText()," "))},Ebb=function(a,b){if(a&1){var c=t();K(0,"button",4);N("click",function(){var d=u(c).$implicit;P(3).onSelect.emit(d);return v()});S(1);L()}a&2&&(a=b.$implicit,B(),T(" ",a.displayAs," "))},Gbb=function(a){a&1&&Pf(0,Ebb,2,1,"button",3,Fbb);a&2&&(P(),a=dg(2),Qf(a))},Ibb=function(a,b){if(a&1){var c=t();K(0,"button",2);N("click",function(){var d=u(c).$implicit;P().onSelect.emit(d);
return v()});S(1);L();bg(2);F(3,Gbb,2,0)}a&2&&(a=b.$implicit,B(),T(" ",a.displayAs," "),B(),a=cg(Hbb(a)),B(),G(a.length?3:-1))},ps=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(Jbb),g=f.next();!g.done;g=f.next()){var k=l(g.value);g=k.next().value;k=k.next().value;if(e.length>=c)break;var m=Math.floor(d/k);if(m>=1)b?e.push(""+m+Kbb[g]):m===1?e.push(m+" "+g):e.push(m+" "+g+"s");else if(e.length)break;d-=m*k;if(m>1)break}if(e.length)return e.join(" ")+
" ago";console.error("epochToDateAgo() unhandled input. Seconds:",a)}},Lbb=function(a,b){a&1&&(Sf(0,"time"),U(1,"async"),S(2),Tf());if(a&2){a=P();var c=Gg("padding-left: ",a.paddingLeftPx,"px");qoa(ooa,poa,c,!1);Jf("title",b.title?b.title:null)("datetime",W(1,6,a.timestampIso$));B(2);Ag(b.formatted)}},Mbb=function(a){a&1&&Xf(0)},Nbb=function(a){a&1&&E(0,Mbb,1,0,"ng-container",8);a&2&&(a=P(),I("ngTemplateOutlet",a.calendarButtonRow))},Obb=function(a){if(a&1){var b=t();K(0,"mat-form-field",3)(1,"input",
9);N("focus",function(c){u(b);var d=P();return v(d.showPicker(c.target))});L()()}a&2&&(a=P(),B(),I("formControl",a.timeFormControl))},Sbb=function(a){if(a&1){var b=t();K(0,"button",12);N("click",function(){u(b);var c=P(2);Pbb(c,new Bm);c.includeTimePicker&&(c.dateTime=new Dm,Qbb(c,new Dm));Rbb(c);c.saveChanges();return v(c.saveClicked.emit())});S(1,"Today");L()}},Tbb=function(a){if(a&1){var b=t();K(0,"button",13);N("click",function(){u(b);var c=P(2);Pbb(c);c.includeTimePicker&&(c.dateTime=void 0);
c.saveChanges();return v(c.saveClicked.emit())});S(1,"None");L()}},Ubb=function(a){a&1&&(K(0,"div",1),F(1,Sbb,2,0,"button",10),F(2,Tbb,2,0,"button",11),M(3,"mat-divider"),L());a&2&&(a=P(),B(),G(a.todayButtonEnabled?1:-1),B(),G(a.noneButtonEnabled&&!a.required?2:-1))},Vbb=function(a){a&1&&M(0,"b-formatted-date-time",2);a&2&&(a=P(),I("date",a.value))},Wbb=function(a){a&1&&(Vf(0),S(1,"---"),Wf())},Xbb=function(a,b){if(a&1){var c=t();K(0,"div",4)(1,"mat-checkbox",8);N("change",function(){var d=u(c).$implicit,
e=P();return v(e.changeSelection(d))})("click",function(d){u(c);return v(d.stopPropagation())});S(2);L()()}a&2&&(a=b.$implicit,b=P(),I("title",b.getDisplayString(a)),B(),I("checked",!!b.valueMap.get(a))("indeterminate",b.valueMap.get(a)===null),B(),T(" ",b.getDisplayString(a)," "))},Zbb=function(a){if(a&1){var b=t();K(0,"input",9,1);N("keydown",function(c){u(b);var d=P();c.key==="Enter"&&(Ybb(d)&&d.addValue(),c.preventDefault());return v()})("click",function(c){u(b);return v(c.stopPropagation())});
Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.filterValue,c)||(d.filterValue=c);return v(c)});L()}a&2&&(a=P(),I("type",a.type==="REPEATED_NUMERIC"?"number":"text"),Cg("ngModel",a.filterValue),I("placeholder",a.type==="REPEATED_ENUM"?"Filter values":"Add or filter values"))},$bb=function(a){a&1&&M(0,"mat-divider")},acb=function(a){if(a&1){var b=t();K(0,"div",10);N("click",function(c){u(b);var d=P();c.stopPropagation();return v(d.addValue())});S(1," Add ");L()}},bcb=function(a){if(a&1){var b=t();
K(0,"div")(1,"b-date-time-input",11);Eg("valueChange",function(c){u(b);var d=P();Dg(d.currentSelectedDate,c)||(d.currentSelectedDate=c);return v(c)});L();K(2,"div",12);N("click",function(c){u(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()});S(3," Add ");L()()}a&2&&(a=P(),B(),Cg("value",a.currentSelectedDate))},ccb=function(a){if(a&1){var b=t();K(0,"div",0);N("keydown",
function(c){u(b);var d=P();return v(d.processKeydown(c))});gg(1);L()}a&2&&(a=P(),zg(a.className),Jf("id",a.id))},dcb=function(a){if(a&1){var b=t();K(0,"div",6);yd();K(1,"svg",7);M(2,"path",8);L();zd();K(3,"input",9,0);N("input",function(){u(b);var c=Q(4),d=P();return v(d.filterText$.next(c.value))});L()()}},ecb=function(a){a&1&&Xf(0)},gcb=function(a){if(a&1){var b=t();K(0,"div",12);N("click",function(){u(b);var d=P(2);return v(d.select(d.emptyOptionValue))});E(1,ecb,1,0,"ng-container",13);L()}if(a&
2){P();a=Q(4);var c=P();I("option",c.emptyOptionValue);Jf("aria-selected",c.isSelected(c.emptyOptionValue));B();I("ngTemplateOutlet",a)("ngTemplateOutletContext",Kg(4,fcb,c.emptyOptionValue))}},hcb=function(a){a&1&&Xf(0)},icb=function(a){if(a&1){var b=t();K(0,"div",12);N("click",function(){u(b);var e=P().$implicit,f=P(2);return v(f.select(e))});E(1,hcb,1,0,"ng-container",13);L()}if(a&2){a=P().$implicit;P();var c=Q(4),d=P();I("option",a);Jf("aria-selected",d.isSelected(a));B();I("ngTemplateOutlet",
c)("ngTemplateOutletContext",Kg(4,fcb,a))}},jcb=function(a,b){a&1&&(Vf(0),E(1,icb,2,6,"div",10),Wf());a&2&&(a=b.$implicit,B(),I("ngIf",a))},kcb=function(a){a&1&&(Vf(0),S(1),Wf());a&2&&(a=P(2).$implicit,B(),T(" ",a," "))},lcb=function(a){a&1&&(K(0,"span",15),S(1,"--"),L())},mcb=function(a){a&1&&(Vf(0),E(1,kcb,2,1,"ng-container",14)(2,lcb,2,0,"ng-template",null,3,Og),Wf());if(a&2){a=Q(3);var b=P().$implicit;B();I("ngIf",b!=null)("ngIfElse",a)}},ncb=function(a){a&1&&Xf(0)},ocb=function(a){a&1&&E(0,ncb,
1,0,"ng-container",13);if(a&2){a=P().$implicit;var b=P(2);I("ngTemplateOutlet",b.optionTemplate)("ngTemplateOutletContext",Kg(2,fcb,a))}},pcb=function(a){a&1&&E(0,mcb,4,2,"ng-container",14)(1,ocb,1,4,"ng-template",null,2,Og);if(a&2){a=Q(2);var b=P(2);I("ngIf",!b.optionTemplate)("ngIfElse",a)}},qcb=function(a,b){a&1&&(Vf(0),E(1,gcb,2,6,"div",10)(2,jcb,2,1,"ng-container",11)(3,pcb,3,2,"ng-template",null,1,Og),Wf());a&2&&(a=b.ngIf,b=P(),B(),I("ngIf",b.includeEmptyOption),B(),I("ngForOf",a))},rcb=function(a){a&
1&&Xf(0)},tcb=function(a){a&1&&(Vf(0),E(1,rcb,1,0,"ng-container",11),Wf());a&2&&(a=P(),B(),I("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Kg(2,scb,a.value)))},ucb=function(a){a&1&&Xf(0)},vcb=function(a){a&1&&(Vf(0),E(1,ucb,1,0,"ng-container",11),Wf());a&2&&(a=P(2),B(),I("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",Kg(2,scb,a.value)))},wcb=function(a){a&1&&E(0,vcb,2,4,"ng-container",7);if(a&2){a=P();var b=Q(8);I("ngIf",a.optionTemplate)("ngIfElse",b)}},xcb=function(a){a&
1&&(Vf(0),S(1),Wf());a&2&&(a=P(2),B(),T(" ",a.value," "))},ycb=function(a){a&1&&(K(0,"span",12),S(1,"--"),L())},zcb=function(a){a&1&&E(0,xcb,2,1,"ng-container",7)(1,ycb,2,0,"ng-template",null,4,Og);if(a&2){a=Q(2);var b=P();I("ngIf",b.value!=null)("ngIfElse",a)}},Acb=function(a){a&1&&(yd(),K(0,"svg",13),M(1,"path",14),L())},Bcb=function(a){a&1&&(K(0,"div"),S(1," The selected issues have no custom fields in common. "),L())},Ccb=function(a){a&1&&(K(0,"span"),S(1,"*"),L())},Ecb=function(a){if(a&1){var b=
t();K(0,"input",10);Eg("ngModelChange",function(c){u(b);var d=P(2).$implicit;Dg(d.textValue,c)||(d.textValue=c);return v(c)});L()}a&2&&(a=P(2).$implicit,P(),Cg("ngModel",a.textValue),Jf("aria-labelledby",Dcb(a)))},Fcb=function(a){if(a&1){var b=t();K(0,"input",11);Eg("ngModelChange",function(c){u(b);var d=P(2).$implicit;Dg(d.numericValue,c)||(d.numericValue=c);return v(c)});L()}a&2&&(a=P(2).$implicit,P(),Cg("ngModel",a.numericValue),Jf("aria-labelledby",Dcb(a)))},Hcb=function(a){if(a&1){var b=t();
K(0,"div")(1,"b-date-time-input",12);N("valueChange",function(e){u(b);var f=P(2).$implicit;P();return v(f.dateValue=e?FSa(e):void 0)});L()()}if(a&2){a=P(2).$implicit;var c=P();B();var d;I("value",(d=Gcb(a.dateValue))!=null?d:void 0)("required",c.isCustomFieldRequired(a))("customAriaLabelledBy",Dcb(a))("customFormId","bv2-custom-field-"+a.customFieldId)}},Jcb=function(a){if(a&1){var b=t();K(0,"onedev-single-select",13);Eg("valueChange",function(d){u(b);var e=P(2).$implicit;Dg(e.enumValue,d)||(e.enumValue=
d);return v(d)});L()}if(a&2){a=P(2).$implicit;P();Cg("value",a.enumValue);var c;I("options",(c=a.allowedValue)!=null?c:Jg(3,Icb))("labelledById",Dcb(a))}},Lcb=function(a){if(a&1){var b=t();K(0,"b-bulk-repeated-field-picker",14);N("onSave",function(e){u(b);var f=P(2).$implicit,g=P();return v(Kcb(g,f.customFieldId,e))});L()}if(a&2){a=P(2).$implicit;var c=P(),d;I("type",c.getCustomFieldType(a))("originalValueMap",c.repeatedCustomFieldsMap.get(a.customFieldId))("enumChoices",(d=a.allowedValue)!=null?
d:Jg(3,Icb))}},Mcb=function(a){a&1&&F(0,Ecb,1,2,"input",6)(1,Fcb,1,2,"input",7)(2,Hcb,2,4,"div")(3,Jcb,1,4,"onedev-single-select",8)(4,Lcb,1,4,"b-bulk-repeated-field-picker",9);if(a&2){var b;a=P().$implicit;var c=P();G((b=c.getCustomFieldType(a))==="TEXT"?0:b==="NUMERIC"?1:b==="DATE"?2:b==="ENUM"?3:4)}},Ncb=function(a){if(a&1){var b=t();K(0,"span");S(1," Multiple values ");L();K(2,"a",15);N("click",function(){u(b);var c=P().$implicit,d=P();return v(d.clearCustomFieldValue(c))});S(3,"X");L()}},Ocb=
function(a,b){a&1&&(K(0,"div",1)(1,"div",4)(2,"label",5),S(3),F(4,Ccb,2,0,"span"),L()(),F(5,Mcb,5,1)(6,Ncb,4,0),L());a&2&&(a=b.$implicit,P(),B(2),I("matTooltip",(a.description||"")+" [ID: "+a.customFieldId+"]"),Jf("id",Dcb(a)),B(),T(" ",a.name," "),B(),G(a.required?4:-1),B(),G(a.hasMultipleValues?6:5))},Pcb=function(a){a&1&&gg(0)},Qcb=function(a){a&1&&Xf(0)},Rcb=function(a){if(a&1){var b=t();K(0,"button",6,1);N("click",function(e){u(b);var f=P();return v(f.onClick(e))});E(2,Qcb,1,0,"ng-container",
7);L()}if(a&2){a=P();var c=Q(1);zg(a.size);var d;I("color",a.color)("disabled",a.disabled)("matTooltip",(d=a.tooltip)!=null?d:"");Jf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);I("ngTemplateOutlet",c)}},Scb=function(a){a&1&&Xf(0)},Tcb=function(a){if(a&1){var b=t();K(0,"button",8,1);N("click",function(e){u(b);var f=P();return v(f.onClick(e))});E(2,Scb,1,0,"ng-container",7);L()}if(a&2){a=P();var c=Q(1);zg(a.size);var d;I("color",a.color)("disabled",a.disabled)("matTooltip",(d=a.tooltip)!=
null?d:"");Jf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);I("ngTemplateOutlet",c)}},Ucb=function(a){a&1&&Xf(0)},Vcb=function(a){if(a&1){var b=t();K(0,"button",9,1);N("click",function(e){u(b);var f=P();return v(f.onClick(e))});E(2,Ucb,1,0,"ng-container",7);L()}if(a&2){a=P();var c=Q(1);zg(a.size);var d;I("color",a.color)("disabled",a.disabled)("matTooltip",(d=a.tooltip)!=null?d:"");Jf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);I("ngTemplateOutlet",c)}},Wcb=
function(a){a&1&&Xf(0)},Xcb=function(a){if(a&1){var b=t();K(0,"button",10,1);N("click",function(e){u(b);var f=P();return v(f.onClick(e))});E(2,Wcb,1,0,"ng-container",7);L()}if(a&2){a=P();var c=Q(1);zg(a.size);var d;I("color",a.color)("disabled",a.disabled)("matTooltip",(d=a.tooltip)!=null?d:"");Jf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);I("ngTemplateOutlet",c)}},Ycb=function(a){a&1&&Xf(0)},Zcb=function(a){if(a&1){var b=t();K(0,"button",6,1);N("click",function(e){u(b);var f=
P();return v(f.onClick(e))});E(2,Ycb,1,0,"ng-container",7);L()}if(a&2){a=P();var c=Q(1);zg(a.size);var d;I("color",a.color)("disabled",a.disabled)("matTooltip",(d=a.tooltip)!=null?d:"");Jf("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);B(2);I("ngTemplateOutlet",c)}},$cb=function(a){a&1&&M(0,"waldo-availability-chip",1);a&2&&(a=P(2),I("user",a.user.emailAddress),Jf("coinonly",a.coinonly))},adb=function(a){a&1&&F(0,$cb,1,2,"waldo-availability-chip",1);a&2&&(a=P(),G(a.user.emailAddress?
0:-1))},bdb=function(a){a&1&&M(0,"b-availability-chip",2);a&2&&(a=P(2),I("user",a.user))},cdb=function(a){a&1&&(Vf(0),S(1),Wf(),F(2,bdb,1,1,"b-availability-chip",2));if(a&2){a=P();var b=P();B();Ag(a.content);B();G(b.enableWaldoAvailability&&b.availabilityChipEnabled?2:-1)}},ddb=function(a){a&1&&Xf(0)},edb=function(a){a&1&&(K(0,"span",3),E(1,ddb,1,0,"ng-container",4),L(),K(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",5),L());if(a&2){a=Q(3);var b=P(),c=Q(1),d=P();I("onedevHovercardTrigger",
a);Jf("tabindex",d.hovercardEnabled&&d.hovercardFocusEnabled?"0":null);B();I("ngTemplateOutlet",c);B(3);I("email",b.email)}},fdb=function(a){a&1&&Xf(0)},gdb=function(a){a&1&&E(0,fdb,1,0,"ng-container",4);a&2&&(P(),a=Q(1),I("ngTemplateOutlet",a))},hdb=function(a,b){a&1&&(E(0,cdb,3,2,"ng-template",null,0,Og),F(2,edb,5,4)(3,gdb,1,1,"ng-container"));a&2&&(a=P(),B(2),G(a.hovercardEnabled&&a.isNonObfuscatedEmail(b.email)?2:3))},idb=function(a){a&1&&M(0,"b-user-display-name",0);a&2&&(a=P(),I("user",a.model)("hovercardEnabled",
!1)("availabilityChipEnabled",a.availabilityChipEnabled)("hovercardFocusEnabled",a.hovercardFocusEnabled))},jdb=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(),B(),Ag(a.getDisplayString()))},kdb=function(a){a&1&&Xf(0)},ldb=function(a){a&1&&(K(0,"span",2),E(1,kdb,1,0,"ng-container",3),L(),K(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",4),L());if(a&2){a=Q(3);var b=P(),c=Q(3);I("onedevHovercardTrigger",a);B();I("ngTemplateOutlet",c);B(3);I("email",b.email)}},mdb=function(a){a&1&&Xf(0)},
ndb=function(a){a&1&&E(0,mdb,1,0,"ng-container",3);a&2&&(P(),a=Q(3),I("ngTemplateOutlet",a))},pdb=function(a){a&1&&M(0,"img",5);a&2&&(a=P(2),P(),I("src",odb[a.email],Me))},qdb=function(a){a&1&&M(0,"img",8);a&2&&(a=P(3),I("src",a.src,Me)("srcset",a.srcset))},rdb=function(a){a&1&&(K(0,"span",7),U(1,"async"),F(2,qdb,1,2,"img",8),L());if(a&2){a=P(2);var b=P();yg("team-member",W(1,5,b.isTeamMember$))("anonymous",!a.showImage);B(2);G(a.showImage?2:-1)}},tdb=function(a){a&1&&(F(0,pdb,1,1,"img",5),F(1,rdb,
3,7,"span",6));if(a&2){a=P();var b=P();G(a.email&&sdb(b,a.email)?0:-1);B();G(sdb(b,a.email)?-1:1)}},udb=function(a,b){a&1&&(F(0,ldb,5,3)(1,ndb,1,1,"ng-container"),E(2,tdb,2,2,"ng-template",null,0,Og));a&2&&(a=P(),G(a.isNonObfuscatedEmail(b.email)?0:1))},vdb=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}},
wdb=function(a){return a?xj(a.replace(/_/g," ").toLowerCase()):""},xdb=function(a){return a?a.join(", "):""},ydb=function(a,b){if(!a)return Dh("");if(!b)return Dh(a);b=b.split(" ").map($Sa);b=b.filter(function(g){return!!g});b=b.map(qs);if(b.length===0)return Dh(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(Gh("b",{},f));c.push(d);a=a.substring(e+f.length+d.length)}return Eh(c)},
zdb=function(a){return a?"Yes":"No"},Adb=function(a){return a?a.pathNames?a.pathNames.join(" > "):"":""},Bdb=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},Cdb=function(a){if(!a)return null;var b=new Dm;b.setTime(a.seconds*1E3);return b},Ddb=function(a){if(a&&so(a))return a},Edb=function(a){return a==null?"":String(a)},Fdb=function(a){a&1&&M(0,"b-user-image",3);a&2&&
(a=P(),I("email",a.email))},Gdb=function(a){a&1&&Xf(0)},Hdb=function(a){a&1&&(K(0,"span",5),E(1,Gdb,1,0,"ng-container",6),L(),K(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",7),L());if(a&2){a=Q(3);var b=P(),c=Q(5);I("onedevHovercardTrigger",a);B();I("ngTemplateOutlet",c);B(3);I("email",b.email)}},Idb=function(a){a&1&&Xf(0)},Jdb=function(a){a&1&&E(0,Idb,1,0,"ng-container",6);a&2&&(P(),a=Q(5),I("ngTemplateOutlet",a))},Kdb=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(),B(),Ag(a.getEmailDisplayString(a.email,
a.ldapOnly)))},Ldb=function(a){a&1&&(K(0,"span",4),M(1,"b-availability-chip",8),U(2,"emailToUser"),L());a&2&&(a=P(),B(),I("user",W(2,1,a.email)))},Mdb=function(a,b){so(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},Ndb=function(a){a&1&&M(0,"b-icon",5)},Odb=function(a){a&1&&M(0,"b-user-image",6);a&2&&(a=P(2),I("email",a.email))},Pdb=function(a){a&1&&(F(0,Ndb,1,0,"b-icon",5),U(1,"async"),Mf(2,Odb,1,
1,"b-user-image",6));a&2&&(a=P(),G(a.enableGroupIcon&&W(1,1,a.isGroup$)?0:2))},Qdb=function(a){a&1&&(M(0,"b-user-display-name",2),U(1,"emailToUser"));a&2&&(a=P(),I("user",a.user||W(1,3,a.email))("hovercardFocusEnabled",!0)("availabilityChipEnabled",!1))},Rdb=function(a){a&1&&Xf(0)},Sdb=function(a){a&1&&(K(0,"span",7),E(1,Rdb,1,0,"ng-container",8),L(),K(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",9),L());if(a&2){a=Q(3);P();var b=Q(3),c=P();I("onedevHovercardTrigger",a);B();I("ngTemplateOutlet",
b);B(3);I("email",c.email)}},Tdb=function(a){a&1&&Xf(0)},Udb=function(a){a&1&&E(0,Tdb,1,0,"ng-container",8);a&2&&(P(),a=Q(3),I("ngTemplateOutlet",a))},Vdb=function(a){a&1&&(Vf(0),S(1),Wf());a&2&&(a=P(3),B(),Ag(a.userToDisplayString(a.user)))},Wdb=function(a){a&1&&(Vf(0),S(1),Wf());a&2&&(a=P(3),B(),Ag(a.email))},Xdb=function(a){a&1&&(K(0,"span",10),F(1,Vdb,2,1,"ng-container")(2,Wdb,2,1,"ng-container"),L());a&2&&(a=P(2),B(),G(a.user?1:2))},Ydb=function(a){a&1&&(F(0,Sdb,5,3)(1,Udb,1,1,"ng-container"),
E(2,Xdb,3,1,"ng-template",null,0,Og));a&2&&(a=P(),G(a.isNonObfuscatedEmail(a.email)?0:1))},Zdb=function(a){a&1&&(M(0,"mat-icon",3),U(1,"async"),U(2,"async"));if(a&2){a=P();var b,c;I("svgIcon",(b=W(1,2,a.iconName$))!=null?b:"")("matTooltip",(c=W(2,4,a.iconToolTip$))!=null?c:"")}},$db=function(a){a&1&&M(0,"b-availability-chip",4);a&2&&(a=P(),I("user",a.user))},aeb=function(a){a&1&&(M(0,"div"),U(1,"lowercase"));a&2&&(a=P(3),zg(Gg("bv2-edit-icon ",W(1,3,a.type))))},beb=function(a){a&1&&(K(0,"div")(1,
"label"),S(2),L(),F(3,aeb,2,5,"div",13),L());a&2&&(a=P(2),zg(Gg("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x")),B(2),T(" ",a.title," "),B(),G(a.readonly||a.disabled?-1:3))},ceb=function(a){a&1&&Xf(0)},deb=function(a){if(a&1){var b=t();K(0,"div",17);N("menuClosed",function(){u(b);var d=P(3);return v(rs(d,null,!1,!0))});E(1,ceb,1,0,"ng-container",18);L()}if(a&2){P(3);a=Q(6);var c=Q(9);I("matMenuTriggerFor",a);B();I("ngTemplateOutlet",c)}},feb=function(a,b){a&1&&(K(0,"a",19),S(1),L());
a&2&&(a=P(4),Jf("aria-label",Hg("customfield",a.customFieldId,":",b)),I("queryParams",Kg(5,eeb,"customfield"+a.customFieldId+':"'+b+'"')),B(),T(" ",b," "))},geb=function(a){a&1&&S(0," -- ")},heb=function(a){if(a&1){var b=t();K(0,"div",16);F(1,feb,2,7,"a",19)(2,geb,1,0);M(3,"br");K(4,"button",20);N("menuClosed",function(){u(b);var e=P(3);return v(rs(e,null,!1,!0))});S(5," Edit ");L()()}if(a&2){var c;a=P(3);var d=Q(6);B();G((c=a.getDisplayValue(""))?1:2,c);B(3);Jf("aria-label",Gg("Edit item for ",a.title));
I("matMenuTriggerFor",d)}},ieb=function(a){a&1&&F(0,deb,2,2,"div",15)(1,heb,6,4,"div",16);a&2&&(a=P(2),G(a.choices.length>50&&a.customFieldId!==0?1:0))},jeb=function(a){a&1&&Xf(0)},keb=function(a){a&1&&(K(0,"div",14),E(1,jeb,1,0,"ng-container",18),L());a&2&&(P(2),a=Q(9),B(),I("ngTemplateOutlet",a))},meb=function(a){if(a&1){var b=t();K(0,"div",12,3);N("click",function(c){u(b);var d=P();return v(rs(d,c,!0,!1))})("keydown",function(c){u(b);var d=P();return v(leb(d,c))})("keydown.escape",function(){u(b);
var c=Q(2);return v(c.hide())});F(3,beb,4,5,"div",13);F(4,ieb,2,1)(5,keb,2,1,"div",14);L()}a&2&&(a=P(),zg(Gg("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",a.name)),yg("bv2-disabled",a.disabled)("bv2-readonly",a.readonly),Jf("aria-label",Hg("",a.title," value is ",a.getDisplayValue("empty"))),I("matTooltip",a.getTooltip()),Jf("tabindex",a.readonly?-1:0)("aria-disabled",!1),B(3),G(a.title?3:-1),B(),G(a.type==="ENUM"?4:5))},neb=function(a){if(a&1){var b=t();K(0,"div",23);N("click",function(){u(b);
var c=P(2);return v(c.setFieldValue(!c.value))});K(1,"label");S(2);L()()}a&2&&(a=P(2),zg(Gg("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x")),B(2),Ag(a.title))},oeb=function(a){if(a&1){var b=t();K(0,"div",21);F(1,neb,3,4,"div",13);K(2,"b-slide-toggle",22);N("modelChange",function(){u(b);var d=P();return v(d.setFieldValue(!d.value))});L()()}if(a&2){a=P();zg(Gg("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",a.name));yg("bv2-disabled",a.disabled)("bv2-readonly",a.readonly);
I("matTooltip",a.getTooltip());Jf("aria-disabled",!1);B();G(a.title?1:-1);B();I("disabled",a.disabled||a.readonly);If("aria-label",a.name);var c;I("model",(c=a.value)!=null?c:void 0)}},peb=function(a){if(a&1){var b=t();K(0,"button",25);N("click",function(){u(b);var c=P(2);return v(c.clearFieldValue())});K(1,"span",26);M(2,"mat-icon",27);L();S(3," \u00a0 ");L()}a&2&&(a=P(2),yg("b-menu-item-checked",a.value==null),I("disabled",a.value==null))},qeb=function(a){a&1&&M(0,"mat-divider")},reb=function(a){a&
1&&M(0,"mat-icon",30);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},seb=function(a){a&1&&(K(0,"span",31),S(1),L());a&2&&(a=P().$implicit,B(),Ag(a.hotkey.displayAs))},teb=function(a,b){if(a&1){var c=t();F(0,qeb,1,0,"mat-divider");K(1,"button",28);N("click",function(){var e=u(c).$implicit,f=P(2);return v(f.setFieldValue(e.value))})("onHotkey",function(){var e=u(c).$implicit,f=P(2);f.setFieldValue(e.value);return v(f.enumMenuTrigger.closeMenu())});K(2,"span",29);F(3,reb,1,1,"mat-icon",30);K(4,"span",26);
M(5,"mat-icon",27);L();S(6);F(7,seb,2,1,"span",31);L()()}if(a&2){a=b.$implicit;b=b.$index;var d=P(2);G(b>0&&d.choices[b].group!=d.choices[b-1].group?0:-1);B();yg("b-menu-item-checked",d.value==a.value);I("disabled",d.value==a.value)("hotkey",a.hotkey);Jf("aria-label",a.displayText)("title",!d.showEnumTitle||a.altText?"":a.displayText);B(2);G(a.icon?3:-1);B(3);T(" ",a.displayText," ");B();G(a.hotkey&&d.showHotkeyHint?7:-1)}},ueb=function(a){a&1&&(F(0,peb,4,3,"button",24),Pf(1,teb,8,10,null,null,Of));
a&2&&(a=P(),G(a.clearable?0:-1),B(),Qf(a.choices))},veb=function(a){a&1&&M(0,"mat-icon",33);a&2&&(a=P(2),I("svgIcon",a.displayIcon))},web=function(a){a&1&&M(0,"b-truncated-span",37);a&2&&(a=P(2),yg("p0",a.value===a.IssuePriority.P0)("p1",a.value===a.IssuePriority.P1),I("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},xeb=function(a){a&1&&M(0,"b-truncated-span",37);a&2&&(a=P(2),zg(Gg("chippy status-",a.value)),I("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",
!a.truncate))},yeb=function(a){a&1&&M(0,"b-truncated-span",36);a&2&&(a=P(2),I("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},zeb=function(a){a&1&&M(0,"b-truncated-span",37);a&2&&(a=P(2),I("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},Aeb=function(a){a&1&&M(0,"div",38)},Beb=function(a){a&1&&(K(0,"div",39),M(1,"mat-icon",41),L())},Ceb=function(a){a&1&&(K(0,"div",40),M(1,"mat-icon",42),L())},Deb=function(a){if(a&1){var b=t();K(0,"div",
32,4);N("keydown",function(c){u(b);var d=P();return v(leb(d,c))})("click",function(c){u(b);var d=P();return v(rs(d,c,!0,!1))});K(2,"div")(3,"span",29);F(4,veb,1,1,"mat-icon",33);F(5,web,1,7,"b-truncated-span",34)(6,xeb,1,6,"b-truncated-span",35)(7,yeb,1,3,"b-truncated-span",36)(8,zeb,1,3,"b-truncated-span",37);L();F(9,Aeb,1,0,"div",38);L();F(10,Beb,2,0,"div",39)(11,Ceb,2,0,"div",40);L()}a&2&&(a=P(),yg("edit-field-activated",a.isActive),B(4),G(a.displayIcon?4:-1),B(),G(a.title==="Priority"?5:a.title===
"Status"?6:a.title==="Triage phase"?7:8),B(4),G(a.title||a.readonly||a.disabled?-1:9),B(),G(a.type=="ENUM"?10:11))},Eeb=function(){},Feb=function(){},Geb=function(a){if(a&1){var b=t();K(0,"div",23);N("click",function(d){u(b);return v(d.stopPropagation())});K(1,"b-date-time-picker-content",45);N("dateSelectionChange",function(d){u(b);var e=P(2);return v(e.googDateValue=d!=null?d:null)})("saveClicked",function(){u(b);var d=P(2);return v(d.setFieldValue(d.googDateValue))})("cancelClicked",function(){u(b);
var d=P(2);return v(rs(d,null,!1,!1))});L()()}if(a&2){a=P(2);B();var c;I("required",!(a.clearable&&a.type==="DATE"))("date",(c=a.googDateValue)!=null?c:void 0)}},Ieb=function(a){if(a&1){var b=t();K(0,"textarea",54);Eg("ngModelChange",function(c){u(b);var d=P(3);Dg(d.textBuffer,c)||(d.textBuffer=c);return v(c)});N("keydown",function(c){u(b);var d=P(3);if(!d.autocompleteActive)switch(c.keyCode){case 13:if(c.ctrlKey||c.metaKey)c.stopPropagation(),Heb(d);break;case 27:c.stopPropagation(),rs(d,c,!1,!0)}return v()});
L()}a&2&&(a=P(3),Cg("ngModel",a.textBuffer),Jf("aria-label",a.title))},Jeb=function(a){if(a&1){var b=t();K(0,"input",55);Eg("ngModelChange",function(c){u(b);var d=P(3);Dg(d.textBuffer,c)||(d.textBuffer=c);return v(c)});N("keydown",function(c){u(b);var d=P(3);if(!d.autocompleteActive)switch(c.keyCode){case 13:c.stopPropagation();Heb(d);break;case 27:c.stopPropagation(),rs(d,c,!1,!0)}return v()});L()}a&2&&(a=P(3),Cg("ngModel",a.textBuffer),Jf("type",a.type==="NUMERIC"?"number":"text")("aria-label",
a.title))},Keb=function(a){if(a&1){var b=t();K(0,"div",46);N("click",function(c){u(b);return v(c.stopPropagation())});K(1,"div");F(2,Ieb,1,2,"textarea",47)(3,Jeb,1,3,"input",48);L();K(4,"div",49)(5,"button",50);N("click",function(){u(b);var c=P(2);return v(Heb(c))});M(6,"mat-icon",51);L();K(7,"button",52);N("click",function(c){u(b);var d=P(2);return v(rs(d,c,!1,!0))});M(8,"mat-icon",53);L()();K(9,"div",40);M(10,"mat-icon",42);L()()}a&2&&(a=P(2),B(2),G(a.multiline?2:3),B(3),Jf("aria-label",Gg("Apply change to ",
a.title)),I("matTooltip",Gg("Apply change to ",a.title))("disabled",a.value==a.textBuffer),B(2),Jf("aria-label",Gg("Discard change to ",a.title)),I("matTooltip",Gg("Discard change to ",a.title)))},Leb=function(a){a&1&&(K(0,"div",43,5),F(2,Eeb,0,0)(3,Feb,0,0)(4,Geb,2,2,"div")(5,Keb,11,10,"div",44),L());if(a&2){var b;a=P();zg(Gg("bv2-issue-metadata-field-edit bv2-issue-metadata-field-",a.name,"-edit"));B(2);G((b=a.type)==="ENUM"?2:b==="BOOL"?3:b==="DATE"?4:5)}},Meb=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}},Neb=function(a,b){a&1&&(K(0,"span",4),S(1," by "),M(2,"b-user-display-name",7),U(3,"emailToUser"),L());a&2&&(B(2),I("user",W(3,2,b))("hovercardEnabled",!1))},Oeb=function(a,b){a&1&&(K(0,"div")(1,"span"),S(2),L(),M(3,"b-formatted-date-time",8),L());a&2&&(a=P(),B(2),Ag(a.pending?"Created on: ":"Submitted on: "),B(),I("timestamp",b))},Peb=function(a,b){a&1&&(M(0,"br"),
S(1));a&2&&(a=b.$implicit,B(),T("",a," "))},Qeb=function(a,b){a&1&&(K(0,"div",2)(1,"a",3),S(2," CL "),K(3,"span"),S(4),L()(),F(5,Neb,4,4,"span",4),M(6,"br")(7,"br"),F(8,Oeb,4,2,"div"),K(9,"div",5),M(10,"div",6)(11,"br"),K(12,"div"),S(13," Affected files: "),Pf(14,Peb,2,1,null,null,Of),L()()());if(a&2){var c,d;a=P();B();I("href","http://critique.corp.google.com/"+a.changelistId,Me);B(3);Ag(a.changelistId);B();G((c=b.author)?5:-1,c);B(3);G((d=b.timestamp)?8:-1,d);B(2);I("innerHTML",b.description,Le);
B(4);Qf(b.affectedFiles)}},Reb=function(a){a&1&&M(0,"b-changelist-card",5,1);if(a&2){a=Q(1);var b=P();I("onedevIsHovercardReady",a.init)("changelistId",b.changelistId)}},Seb=function(a){a&1&&M(0,"b-changelist-chip",0);a&2&&(a=P(),I("changelistId",a.changelist))},Teb=function(a){a&1&&M(0,"b-gerrit-change-chip",1);a&2&&(a=P(),I("gerritChange",a.gerritChange))},Ueb=function(a){a&1&&M(0,"b-changelist-card",4,1);if(a&2){a=Q(1);var b=P();I("onedevIsHovercardReady",a.init)("changelistId",b.id)}},Veb=function(a,
b){a&1&&(K(0,"mat-list-option",11),S(1),L());a&2&&(a=b.$implicit,b=P(),xg("height","auto"),I("selected",b.selectedValues.has(a))("value",a),B(),T(" ",a," "))},Web=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)"]},Xeb=function(a){if(a&1){var b=t();
K(0,"a",16);N("click",function(){u(b);var c=P();return v(c.trackClick("viewTeamAssociationOnComponent"))});K(1,"button",11);S(2,"View team association on component");L()()}a&2&&(a=P(),I("href",a.ROUTES.editComponent.makeHref(a.componentId),Me))},Yeb=function(a){if(a&1){var b=t();K(0,"a",4);N("click",function(){u(b);var d=P(2);return v(d.trackClick("viewTeamInMoma"))});K(1,"span");S(2);M(3,"mat-icon",5);L()()}if(a&2){a=P(2);var c=Q(4);I("href",Gg("https://moma.corp.google.com/team/",a.teamId),Me)("onedevHovercardTrigger",
c);Jf("aria-labelledby",a.linkAriaLabelledBy())("aria-label",(a.teamName?a.teamName:a.teamId)+" - link opens in a new tab");B();Jf("id",a.teamLinkId);B();T("",a.teamName?a.teamName:a.teamId," ")}},Zeb=function(a){a&1&&(K(0,"span",3),S(1),L());if(a&2){a=P(2);var b=Q(4);I("onedevHovercardTrigger",b);B();Ag(a.teamName?a.teamName:a.teamId)}},$eb=function(a){a&1&&(F(0,Yeb,4,7,"a",2),F(1,Zeb,2,2,"span",3));a&2&&(a=P(),G(a.anchorLinkEnabled?0:-1),B(),G(a.anchorLinkEnabled?-1:1))},afb=function(a){a&1&&M(0,
"span",6)},bfb=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(2),B(),Ag(a.teamNotAssignedMessage))},cfb=function(a){a&1&&(F(0,afb,1,0,"span",6),F(1,bfb,2,1,"span"));a&2&&(a=P(),G(a.teamId!="0"?0:-1),B(),G(a.teamId=="0"?1:-1))},dfb=function(a){a&1&&M(0,"b-icon",2);a&2&&(a=P(),I("name",a.iconName))},efb=function(a){a&1&&(K(0,"span",3),S(1),L());a&2&&(a=P(),B(),Ag(a.title))},ffb=function(a){a&1&&(K(0,"div",4),S(1,"\u00a0"),L())},jfb=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"?gfb(a,b):(d==="input"||d==="select"||d==="textarea")&&hfb(a,b);ifb("canvas",a,b,gfb);ifb("input, textarea, select",a,b,hfb);return b},ifb=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])},hfb=function(a,b){b.type!=="file"&&(b.value=a.value);b.type==="radio"&&b.name&&(b.name="mat-clone-"+b.name+"-"+kfb++)},gfb=function(a,
b){if(b=b.getContext("2d"))try{b.drawImage(a,0,0)}catch(c){}},lfb=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}},mfb=function(a,b,c){var d=a.bottom,e=a.left,f=a.right;return c>=a.top&&c<=d&&b>=e&&b<=f},nfb=function(a,b,c){a.top+=b;a.bottom=a.top+a.height;a.left+=c;a.right=a.left+a.width},ofb=function(a,b,c){var d=a.right,e=a.bottom,f=a.left,g=a.width*.05,k=a.height*.05;return c>a.top-k&&c<e+k&&b>f-g&&b<
d+g},pfb=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},qfb=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)}},ss=function(a,b){var c=b?"":"none";qfb(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})},sfb=function(a,b){qfb(a.style,{position:b?"":"fixed",top:b?"":"0",opacity:b?"":"0",left:b?"":"-999em"},rfb)},tfb=function(a,b){return b&&b!="none"?a+" "+b:a},vfb=function(a,b){a.style.width=b.width+"px";a.style.height=b.height+"px";a.style.transform=ufb(b.left,b.top)},ufb=function(a,b){return"translate3d("+Math.round(a)+"px, "+Math.round(b)+"px, 0)"},wfb=function(a){var b=a.toLowerCase().indexOf("ms")>
-1?1:1E3;return parseFloat(a)*b},yfb=function(a){a=getComputedStyle(a);var b=xfb(a,"transition-property"),c=b.find(function(d){return d==="transform"||d==="all"});if(!c)return 0;b=b.indexOf(c);c=xfb(a,"transition-duration");a=xfb(a,"transition-delay");return wfb(c[b])+wfb(a[b])},xfb=function(a,b){return a.getPropertyValue(b).split(",").map(function(c){return c.trim()})},zfb=function(a){return a.type[0]==="t"},Afb=function(a){a.preventDefault()},ts=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}},Bfb=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},Cfb=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},Dfb=function(a){a&1&&(K(0,"label"),S(1),L());a&2&&(a=P(),B(),T(" ",a.title," "))},Efb=function(a){a&1&&M(0,"mat-icon",13)},Gfb=function(a,b){a&1&&(K(0,"div",18),Xf(1,20),L());if(a&2){a=b.$implicit;
b=b.$index;P(2);var c=Q(13);B();I("ngTemplateOutletContext",Lg(2,Ffb,a,b))("ngTemplateOutlet",c)}},Ifb=function(a){a&1&&(K(0,"collapsible-panel",15),Pf(1,Gfb,2,5,"div",18,Nf),Xf(3,19),L());if(a&2){a=P();var b=Q(15),c=I("isExpanded",a.isExpanded||us(a))("iconName",a.iconName)("hasCompactTitleBar",!0);var d=us(a)?(d=a.values)?d.length===1?"1 value":d.length+" values":"":a.collapsiblePanelTitle;c("title",d);B();Qf(Hfb(a));B(2);I("ngTemplateOutlet",b)}},Jfb=function(a,b){a&1&&(K(0,"div",18),Xf(1,20),
L());if(a&2){a=b.$implicit;b=b.$index;P(2);var c=Q(13);B();I("ngTemplateOutletContext",Lg(2,Ffb,a,b))("ngTemplateOutlet",c)}},Kfb=function(a){a&1&&(K(0,"div",21),S(1,"--"),L())},Lfb=function(a){a&1&&(Pf(0,Jfb,2,5,"div",18,Nf),Xf(2,19),F(3,Kfb,2,0,"div",21));if(a&2){a=P();var b=Q(15);Qf(Hfb(a));B(2);I("ngTemplateOutlet",b);B();G((a.values==null?0:a.values.length)?-1:3)}},Ofb=function(a){if(a&1){var b=t();K(0,"button",26);N("menuOpened",function(){u(b);var d=P(3);Mfb(d);d.enumPendingValues=new Set(d.values||
[]);return v()})("menuClosed",function(){u(b);var d=P(3);return v(Nfb(d))});S(1,"Edit ");L()}if(a&2){a=P(3);var c=Q(17);I("matMenuTriggerFor",c);Jf("aria-label","Add item to "+a.title)}},Qfb=function(a){if(a&1){var b=t();K(0,"button",27,6);N("click",function(){u(b);var c=P(3);return v(Pfb(c))});S(2,"Edit ");L()}a&2&&(a=P(3),Jf("aria-label","Edit items for "+a.title))},Rfb=function(a){a&1&&F(0,Ofb,2,2,"button",24)(1,Qfb,3,1,"button",25);a&2&&(a=P(2),G(us(a)?1:0))},Sfb=function(a){a&1&&(K(0,"button",
22),S(1,"Add "),L());if(a&2){a=P(2);var b=Q(22);Jf("aria-label",Gg("Add item to ",a.title));I("xapInlineDialogClick",b)("overlayPositions",a.OVERLAY_POSITION_LIST)}},Tfb=function(a){if(a&1){var b=t();K(0,"button",28);N("beforeOpened",function(){u(b);var d=P(2);return v(d.invalidMessage="")});S(1,"Add ");L()}if(a&2){a=P(2);var c=Q(20);Jf("aria-label",Gg("Add item to ",a.title));I("dialogLabel",Gg("Add item to ",a.title))("matTooltip",Gg("Add item to ",a.title))("xapInlineDialogClick",c)("overlayPositions",
a.OVERLAY_POSITION_LIST)}},Ufb=function(a){a&1&&F(0,Rfb,2,1)(1,Sfb,2,4,"button",22)(2,Tfb,2,8,"button",23);if(a&2){var b;a=P();G((b=a.type)==="REPEATED_ENUM"?0:b==="REPEATED_DATE"?1:2)}},Vfb=function(a){a&1&&(K(0,"div"),M(1,"b-code-change-chip",34),L());a&2&&(a=P(2).item,B(),I("codeChange",a))},Wfb=function(a){a&1&&(K(0,"div")(1,"a",35),S(2),L()());if(a&2){a=P(2).item;var b=P();B();switch(b.environmentType){case "NIGHTLY":case "PROD":b="https://taskflow.corp.google.com/workspaces";break;default:b=
"https://taskflow-autopush.corp.google.com/workspaces"}I("href",b+"/"+a.workspaceId+"/work_item/b/"+a.issueId+"?edit=b/"+a.issueId,Me);Jf("aria-label","Workspace"+a.workspaceId);B();T(" ",a.workspaceName," ")}},Xfb=function(a){a&1&&(K(0,"div"),M(1,"b-team-display",36),L());a&2&&(a=P(2).item,B(),I("teamId",a.teamId)("componentId",a.componentId))},Yfb=function(a){if(a&1){var b=t();K(0,"div")(1,"a",37);N("click",function(){u(b);var c=P(3);return v(c.trackClick("postmortem"))});S(2);L()()}a&2&&(a=P(2).item,
B(),Jf("aria-label",Gg("Postmortem ",a)),I("href",Gg("https://pm.corp.google.com/",a),Me),B(),T(" ",a," "))},$fb=function(a){if(a&1){var b=t();K(0,"div",31)(1,"a",38);N("click",function(){u(b);var d=P(3);return v(d.trackClick("repeated-enum"))});S(2);L()()}if(a&2){a=P(2).item;var c=P();I("matTooltip",a);B();Jf("aria-label",Hg("Search issues for customfield",c.customFieldId,":",a));I("queryParams",Kg(6,Zfb,"customfield"+c.customFieldId+':"'+a+'"'));B();T(" ",a," ")}},agb=function(a){a&1&&(K(0,"div"),
M(1,"b-truncated-span",39),L());if(a&2){a=P(2).item;var b=P();B();I("maxWidth",150)("modelValue",a)("disabled",!b.truncate)}},bgb=function(a){if(a&1){var b=t();K(0,"button",40,7);N("click",function(){u(b);var d=P(2).$index,e=P();return v(e.removeItem(d))});L()}if(a&2){a=P(2).item;var c=P();Jf("aria-label",Hg("Remove ",a," from ",c.title));I("disabled",c.listFieldDisabled)("matTooltip","Remove item")}},cgb=function(a){a&1&&(K(0,"div",29)(1,"div",30),F(2,Vfb,2,1,"div")(3,Wfb,3,3,"div")(4,Xfb,2,2,"div")(5,
Yfb,3,5,"div")(6,$fb,3,8,"div",31)(7,agb,2,3,"div"),L(),F(8,bgb,2,5,"button",32),M(9,"div",33),L());if(a&2){a=P().item;var b=P();B(2);G(b.type==="CODE_CHANGES"?2:b.type==="WORKSPACES"?3:b.type==="TEAM"?4:b.type==="POSTMORTEMS"?5:b.type==="REPEATED_ENUM"&&us(b)?6:b.isString(a)?7:-1);B(6);G(b.readonly||b.type==="REPEATED_ENUM"?-1:8)}},dgb=function(a,b){a&1&&F(0,cgb,10,2,"div",29);a&2&&(a=b.$index,b=P(),G(b.showingAll||a<b.defaultLineCount||b.values&&b.values.length===b.defaultLineCount+1?0:-1))},egb=
function(a){if(a&1){var b=t();K(0,"div",42,8);N("click",function(c){u(b);var d=P(2);return v(vs(d,!1,c))})("keydown.enter",function(c){u(b);var d=P(2);return v(vs(d,!1,c))})("keydown.space",function(c){u(b);var d=P(2);return v(vs(d,!1,c))});S(2," (show fewer) ");L()}a&2&&(a=P(2),Jf("aria-label",Hg("Show at most ",a.defaultLineCount," ",a.title," items")),I("matTooltip",Gg("Show a truncated list of at most ",a.defaultLineCount," items")))},fgb=function(a){if(a&1){var b=t();K(0,"div")(1,"div",43);S(2);
K(3,"span",44,9);N("click",function(c){u(b);var d=P(2);return v(vs(d,!0,c))})("keydown.enter",function(c){u(b);var d=P(2);return v(vs(d,!0,c))})("keydown.space",function(c){u(b);var d=P(2);return v(vs(d,!0,c))});S(5," (show all) ");L()()()}a&2&&(a=P(2),B(2),T(" ... and ",a.values.length-a.defaultLineCount," more "),B(),Jf("aria-label",Hg("Show all ",a.values==null?null:a.values.length," ",a.title," items")),I("matTooltip",Gg("Show all ",a.values==null?null:a.values.length," items in the list")))},
igb=function(a){a&1&&(F(0,egb,3,5,"div",41),F(1,fgb,6,6,"div"));a&2&&(a=P(),G(a.showingAll&&ggb(a)?0:-1),B(),G(!a.showingAll&&ggb(a)?1:-1))},kgb=function(a,b){if(a&1){var c=t();K(0,"button",46);N("click",function(d){var e=u(c).$implicit,f=P(2),g=e.value;f.enumPendingValues.has(g)?f.enumPendingValues.delete(g):f.enumPendingValues.add(g);f.liveAnnouncer.announce(jgb(f,e));d==null||d.stopPropagation();return v()});K(1,"span",47);M(2,"mat-icon",48);L();S(3);L()}a&2&&(a=b.$implicit,b=P(2),yg("b-menu-item-checked",
b.enumPendingValues.has(a.value)),I("disabled",b.listFieldDisabled),Jf("aria-label",jgb(b,a)),B(3),T(" ",a.displayText," "))},lgb=function(a){a&1&&Pf(0,kgb,4,5,"button",45,Nf);a&2&&(a=P(),Qf(a.sortedEnumChoices))},mgb=function(a){a&1&&(K(0,"mat-error"),S(1),L());a&2&&(a=P(2),Jf("aria-label",Hg("",a.title," error: ",a.invalidMessage)),B(),T(" ",a.invalidMessage," "))},ngb=function(a){if(a&1){var b=t();K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"form",49,10);N("ngSubmit",function(){u(b);
var d=Q(3),e=Q(4),f=P();return v(f.textPopupSubmit(d,e))});M(5,"input",50);K(6,"div",51)(7,"button",52);M(8,"mat-icon",53);L();K(9,"button",54);N("click",function(){u(b);var d=P();return v(d.closeAddPopup(!0))});M(10,"mat-icon",55);L()();F(11,mgb,2,4,"mat-error");L()()()}if(a&2){a=Q(3);var c=P();B(5);Jf("aria-label",Gg("Addition to ",c.title));I("type",c.type==="REPEATED_NUMERIC"?"number":"text");B(2);Jf("aria-label",Gg("Apply addition to ",c.title));I("disabled",!a.valid||c.listFieldDisabled);B(2);
Jf("aria-label",Gg("Discard addition to ",c.title));B(2);G(c.invalidMessage?11:-1)}},ogb=function(a){if(a&1){var b=t();K(0,"b-date-time-picker-content",56);N("dateChange",function(c){u(b);var d=P();return v(c&&d.addItems(c))})("cancelClicked",function(){u(b);var c=P();return v(c.closeAddPopup(!1))});L()}a&2&&I("required",!0)("renderPanel",!1)},pgb=function(a,b){return{originX:a,originY:b}},qgb=function(a,b){return{overlayX:a,overlayY:b}},rgb=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}},sgb=function(a){if(a&1){var b=t();K(0,"b-list-field",2);N("valuesChange",function(d){u(b);var e=P(2);return v(e.save.emit(d.values))});L()}if(a&2){a=P();var c=P();I("readonly",c.readonly)("defaultLineCount",3)("title",c.field.name)("type",c.field.type)("customFieldId",c.field.customFieldId)("tooltip",c.getTooltip())("values",c.getRepeatedValues())("displayValuesOverride",
a.displayValues)("enumChoices",a.choices)("listFieldDisabled",c.disabled)}},ugb=function(a){if(a&1){var b=t();K(0,"b-edit-field",3);N("valueChange",function(e){u(b);var f=P(2);return v(f.save.emit(e))});L()}if(a&2){a=P();var c=P(),d;I("readonly",c.readonly)("name","customField"+c.field.customFieldId)("title",c.field.name)("type",c.field.type)("tooltip",c.getTooltip())("clearable",!c.field.required)("value",c.getSingularValue())("displayValueOverride",c.getDisplayValue())("choices",(d=a.choices)!=
null?d:Jg(12,tgb))("showEnumTitle",!0)("disabled",c.disabled)("customFieldId",c.field.customFieldId)}},vgb=function(a,b){a&1&&F(0,sgb,1,10,"b-list-field",0)(1,ugb,1,13,"b-edit-field",1);a&2&&G(b.isRepeated()?0:1)},ygb=function(a,b){var c=new wgb;xgb(c,a,b);return c},xgb=function(a,b,c){var d=Ia(b.snapshot),e=b.aggregatedData,f=b.userActivityStats;var g=b&&b.accessLimit?b.accessLimit.accessLevel:void 0;a.accessLevel=g;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=Ao.get(d.status))==null?0:k.open)||b.isArchived}a.priority=d.priority.substr(1);a.severity=d.severity.substr(1);a.reporter=Om(d.reporterUser);a.assignee=Om(d.assigneeUser);a.assigneeEmail=Rm(d.assigneeUser);a.verifier=Om(d.verifierUser);a.verifierEmail=Rm(d.verifierUser);
a.cc=Pm(d.ccUsers);a.collaborator=Pm(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:"";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 m;a.lastModifier=Om((m=b.aggregatedData)==null?void 0:m.lastModifier);a.customFieldMap={};a.customFieldNameToIdMap={};a.customFieldValueMap={};if(c&&c.componentPathInfo&&c.componentPathInfo.allCustomField)for(c=l(c.componentPathInfo.allCustomField),g=c.next();!g.done;g=c.next())g=g.value,a.customFieldMap[String(g.customFieldId)]=
g,a.customFieldNameToIdMap[g.name.toLowerCase()]=g.customFieldId;if(d.customField)for(c=l(d.customField),g=c.next();!g.done;g=c.next())g=g.value,a.customFieldValueMap[String(g.customFieldId)]=g;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=Om(b.escalationOwner)},Agb=function(a){if(a&1){var b=t();K(0,"div",0)(1,"div",1)(2,"div",2)(3,"label");S(4," Custom fields ");L()();K(5,"button",3);N("click",function(){var c=u(b),d=P(2);return v(zgb(d,c))});S(6,"Edit custom fields");L()()()}},Bgb=function(a){a&1&&(F(0,Agb,7,0,"div",0),U(1,
"async"));if(a&2){var b;a=P();G((b=W(1,1,a.updatedIssueRows$))?0:-1,b)}},Cgb=function(a,b){if(a&1){var c=t();K(0,"b-custom-field-editor",5);N("save",function(d){var e=u(c).$implicit,f=P(2);return v(f.updateCustomField(e.customFieldId,d))});L();xma()}a&2&&(a=b.$implicit,b=P(2),I("issue",b.editableIssue),Cma(a))},Dgb=function(a){a&1&&(Pf(0,Cgb,1,3,"b-custom-field-editor",4,Of),U(2,"async"));a&2&&(a=P(),Qf(W(2,0,a.customFields$)))},ws=function(a,b){this.name_=b||"";this.address=a||""},Egb=function(a,
b){ws.call(this,a,b)},xs=function(a){var b;return(b=a==null?void 0:a.trim())!=null?b:""},ys=function(a){return new Fgb(a)},Hgb=function(a,b){var c=a.getPrimaryTarget(),d=a.getTargetList().map(function(e){return e===c?b:e});return ys(new Ggb(a,d))},Jgb=function(){return new Igb(Yc.apply(0,arguments))},Lgb=function(){return new Kgb(Yc.apply(0,arguments))},Ngb=function(){var a=Yc.apply(0,arguments);return a.length===1?a[0]:new Mgb(a)},Pgb=function(){return new Ogb(Yc.apply(0,arguments))},Qgb=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))},Tgb=function(a,b){var c=0,d=a.slice(0,b).matchAll(Rgb),e=void 0;d=l(d);for(var f=d.next();!f.done;f=d.next())e=f.value;e&&e.index!==void 0&&(c=e.index+e[0].length);e=a.slice(b).search(Sgb);b+=e;return{wordStart:c,wordEnd:b,word:a.slice(c,b)}},Vgb=function(a){if(a&1){var b=t();K(0,"input",2,0);N("input",function(){u(b);var c=P();c.manualAutocomplete&&c.findWordAroundCursor()&&(c.candidateDenylist.includes(c.wordInfo.word)?
c.manualAutocomplete.cancel():c.manualAutocomplete.query=c.wordInfo.word);return v(c.emitValueChange())})("blur",function(){u(b);var c=P();return v(c.cancel())})("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P();return v(d.handleSelectionChange(c))});L()}a&2&&(a=P(),I("placeholder",a.placeholder)("ngModel",a.internalValue)("peoplekitAutocompleteConfig",Ugb(a.autocompleteConfigService))("peoplekitSearchSessionOptions",a.sessionOptions),Jf("aria-label",a.ariaLabel))},Wgb=function(a){a&
1&&(K(0,"mat-error"),S(1),L());a&2&&(a=P(),Jf("aria-label",Hg("",a.title," error: ",a.invalidMessage)),B(),T(" ",a.invalidMessage," "))},Xgb=function(a){if(a&1){var b=t();K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-person-lookup-form",11);N("onAddItems",function(c){u(b);var d=P();return v(d.handleAddItems(c))})("onCancel",function(){u(b);var c=P();return v(c.closeAddPopup())});L()()()}a&2&&(a=P(),B(2),I("actionName","addition")("inputValidator",a.inputValidator)("isAllowedToEditCollection",
a.isAllowedToEditCollection)("title",a.title))},$gb=function(a){if(a&1){var b=t();K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-person-lookup-form",11);N("onAddItems",function(c){u(b);var d=P();Ygb(c,d.onRemoveUsers);Zgb(d);return v()})("onCancel",function(){u(b);var c=P();return v(Zgb(c))});L()()()}a&2&&(a=P(),B(2),I("actionName","remove")("inputValidator",a.inputValidator)("isAllowedToEditCollection",a.isAllowedToEditCollection)("title",a.title))},ahb=function(a){if(a&1){var b=t();
K(0,"button",6);N("click",function(){u(b);var c=P(2);return v(c.removeHotlist.emit())});M(1,"mat-icon",7);L()}a&2&&(a=P(2),yg("invisible",a.disabled),Jf("aria-disabled",a.disabled)("aria-label","Remove the hotlist "+a.hotlist.name))},bhb=function(a){a&1&&(K(0,"span",1)(1,"span",2)(2,"a",3),S(3),L()(),F(4,ahb,2,4,"button",4),L(),K(5,"onedev-hovercard",null,0),M(7,"b-hotlist-card",5),L());if(a&2){a=Q(6);var b=P();yg("muted",b.disabled);I("onedevHovercardTrigger",a)("onedevHovercardActive",b.showHovercard);
B(2);I("href",b.ROUTES.viewHotlist.makeHref(b.hotlist.hotlistId),Me);Jf("aria-label",b.getAriaLabel(b.hotlist));B();Ag(b.hotlist.name);B();G(b.removable?4:-1);B(3);I("hotlist",b.hotlist)}},dhb=function(a){if(a&1){var b=t();K(0,"span",1)(1,"div")(2,"button",2);N("click",function(){u(b);var d=P();return v(d.addHotlist(d.hotlist.hotlistId))});M(3,"mat-icon",3);L();M(4,"mat-icon",4);L();K(5,"span",5)(6,"a",6);S(7);L()()();K(8,"onedev-hovercard",null,0)(10,"b-hotlist-recommendation-card",7);N("onAccept",
function(d){u(b);var e=P();return v(e.addHotlist(d))})("onDismiss",function(){u(b);var d=P();return v(chb(d))});L()()}if(a&2){a=Q(9);var c=P();xg("padding-right","10px");I("onedevHovercardTrigger",a)("onedevHovercardActive",c.showHovercard)("onedevHovercardConfig",c.hovercardConfig);B(2);Jf("aria-label","Add the suggested hotlist "+c.hotlist.name);B(4);I("href",c.ROUTES.viewHotlist.makeHref(c.hotlist.hotlistId),Me);Jf("aria-label",c.getAriaLabel(c.hotlist));B();Ag(c.hotlist.name);B(3);I("hotlist",
c.hotlist)}},As=function(a,b){return ehb(zs.viewIssue.routeDeclarationPath,{id:a,params:b})},hhb=function(a,b,c,d,e){c=fhb(c);d=ghb(d);return Qva("action/issues/csv","q",a,"trackerIds",b,"s",c,"c",d,"h",e)},fhb=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},ghb=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},ehb=function(a,b){b=b===void 0?{}:b;return b.id==null?"":Bs(a,b)},Bs=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=Rva(f,d));e&&(f=f+"#"+e);return f},ihb=function(a){if(a&1){var b=t();K(0,"b-star-toggle",5);U(1,"async");U(2,"async");N("starClicked",function(){u(b);var c=P(2);return v(c.starClicked.emit())});L()}a&2&&(a=P(2),I("starMessage","Star hotlist "+a.hotlist.name)("unStarMessage","Un-star hotlist "+a.hotlist.name)("acceptInput",!W(1,4,Cs(a.isSavingStar,a.hotlist.hotlistId)))("starred",W(2,6,Cs(a.starredHotlists,
a.hotlist.hotlistId))))},jhb=function(a){a&1&&M(0,"div",2)},khb=function(a){if(a&1){var b=t();K(0,"span",0);F(1,ihb,3,8,"b-star-toggle",1)(2,jhb,1,0,"div",2);K(3,"a",3);N("click",function(c){u(b);return v(c.stopPropagation())})("keydown.enter",function(c){u(b);return v(c.stopPropagation())});M(4,"mat-icon",4);L()()}a&2&&(a=P(),B(),G(a.shouldShowStar(a.hotlist)?1:2),B(2),I("matTooltip",Gg("Open ",a.hotlist.name," in a new tab"))("routerLink",a.ROUTES.viewHotlist.makeHref(a.hotlist.hotlistId)),Jf("aria-label",
"Open "+a.hotlist.name+" in a new tab"))},lhb=function(a){a&1&&Xf(0)},mhb=function(a){a&1&&E(0,lhb,1,0,"ng-container",7);a&2&&(P(),a=Q(10),I("ngTemplateOutlet",a))},ohb=function(a){if(a&1){var b=t();K(0,"button",16);N("click",function(){u(b);var c=P(2),d=Jm(c.query$.value);c.allHotlistIds.has(d)?(c.selectedHotlistIds.add(d),Ds(c)):nhb(c,d);return v()});S(1);U(2,"async");K(3,"span",17);S(4,"(add hotlist by ID)");L()()}a&2&&(a=P(2),B(),T(" ",W(2,1,a.query$)," "))},phb=function(a){if(a&1){var b=t();
K(0,"button",18);N("click",function(){u(b);P(2).showCreateNewPane=!0;return v()});S(1);U(2,"async");K(3,"span",17);S(4,"(create new)");L()()}a&2&&(a=P(2),B(),T(" ",W(2,1,a.query$)," "))},qhb=function(a){a&1&&M(0,"mat-icon",29)},rhb=function(a){a&1&&M(0,"mat-icon",30)},shb=function(a){a&1&&M(0,"mat-icon",31)},thb=function(a){a&1&&(K(0,"p",38),S(1),L());a&2&&(a=P(2).$implicit,B(),T(" ",a.description," "))},uhb=function(a){if(a&1){var b=t();K(0,"div");F(1,qhb,1,0,"mat-icon",29)(2,rhb,1,0,"mat-icon",
30)(3,shb,1,0,"mat-icon",31);K(4,"mat-list-item",32);N("focus",function(){u(b);P();var e=Q(1);return v(e.show())})("blur",function(){u(b);P();var e=Q(1);return v(e.hide())});K(5,"div",33)(6,"mat-checkbox",34);U(7,"async");N("change",function(e){u(b);var f=P().$implicit,g=P(3);return v(g.onCheckboxChange(e,f.hotlistId))});K(8,"div",35)(9,"div",36)(10,"p",37);S(11);L()();F(12,thb,2,1,"p",38);L()()()()()}if(a&2){var c;a=P().$implicit;var d=P(3);zg(Gg("flex-kids-x align-items-center left-padding ",a.type));
B();G(a.type===d.HotlistType.RECOMMENDED?1:a.type===d.HotlistType.USER?2:3);B(3);xg("height",a.description?"72px":"auto");B(2);I("value",a.hotlistId.toString())("checked",d.selectedHotlistIds.has(a.hotlistId))("disabled",((c=W(7,13,a.permissions$))==null?null:c.appender)===!1)("indeterminate",d.partiallySelectedHotlistIds.has(a.hotlistId));Jf("aria-checked",d.selectedHotlistIds.has(a.hotlistId));B(5);T(" ",a.name," ");B();G(a.description?12:-1)}},vhb=function(a){a&1&&(K(0,"p",38),S(1),L());a&2&&(a=
P(2).$implicit,B(),T(" ",a.description," "))},whb=function(a){if(a&1){var b=t();K(0,"mat-list-item",32);N("focus",function(){u(b);P();var e=Q(1);return v(e.show())})("blur",function(){u(b);P();var e=Q(1);return v(e.hide())});K(1,"div",33)(2,"mat-checkbox",39);U(3,"async");N("click",function(e){u(b);return v(e.stopPropagation())})("change",function(e){u(b);var f=P().$implicit,g=P(3);return v(g.onCheckboxChange(e,f.hotlistId))});K(4,"div",35)(5,"div",36)(6,"label",37);S(7);L()();F(8,vhb,2,1,"p",38);
L()()()()}if(a&2){var c;a=P().$implicit;var d=P(3);xg("height",a.description?"72px":"auto");B(2);I("value",a.hotlistId.toString())("checked",d.selectedHotlistIds.has(a.hotlistId))("disabled",((c=W(3,9,a.permissions$))==null?null:c.appender)===!1)("indeterminate",d.partiallySelectedHotlistIds.has(a.hotlistId));Jf("aria-checked",d.selectedHotlistIds.has(a.hotlistId));B(5);T(" ",a.name," ");B();G(a.description?8:-1)}},xhb=function(a,b){a&1&&(K(0,"div",23,4),U(2,"async"),F(3,uhb,13,15,"div",27)(4,whb,
9,11,"mat-list-item",28),L());if(a&2){var c;a=b.$implicit;b=P(3);I("matTooltip",((c=W(2,2,a.permissions$))==null?null:c.appender)===!1?b.NO_ACCESS_MESSAGE:"");B(3);G(b.isInternalSession?3:4)}},yhb=function(a,b){if(a&1){var c=t();K(0,"hotlist-matlist-option",40);N("starClicked",function(){var d=u(c).$implicit,e=P(3);return v(e.toggleStar(d.hotlistId))});L()}a&2&&(a=b.$implicit,b=P(3),yg("has-description",a.description),I("hotlist",a)("isCompact",!1)("starredHotlists",b.starredHotlists)("isSavingStar",
b.isSavingStar))},zhb=function(a){if(a&1){var b=t();K(0,"div",26)(1,"span",17);S(2," The number of hotlists is too large to show at once. ");L();K(3,"button",41);N("click",function(){u(b);var c=P(3);return v(c.forceShowOverflow$.next(!0))});S(4," Show all anyway ");L()()}},Bhb=function(a,b){a&1&&(K(0,"div",19),S(1),L(),K(2,"div",20)(3,"mat-list",21)(4,"div",22),Pf(5,xhb,5,4,"div",23,Ahb),L()(),K(7,"div",24),Pf(8,yhb,1,6,"hotlist-matlist-option",25,Ahb),L()(),F(10,zhb,5,0,"div",26),U(11,"async"));
a&2&&(a=P(2),B(),Bg(" ",b.length," hotlist",b.length===1?"":"s"," found. "),B(4),Qf(b),B(3),Qf(b),B(2),G(W(11,3,a.isOverflowMode$)?10:-1))},Chb=function(a){if(a&1){var b=t();K(0,"header",8)(1,"h2",9);S(2,"Search for Hotlists from your favorites");L();K(3,"div",10);M(4,"mat-icon",11);K(5,"input",12,2);N("input",function(){u(b);var d=Q(6);P().query$.next(d.value);return v()});L()()();K(7,"section",13,3);F(9,ohb,5,3,"button",14);U(10,"async");F(11,phb,5,3,"button",15);U(12,"async");F(13,Bhb,12,5);U(14,
"async");L()}if(a&2){var c;a=P();B(9);G(W(10,3,a.showLoadById$)?9:-1);B(2);G(W(12,5,a.showCreateNew$)?11:-1);B(2);G((c=W(14,7,a.visibleHotlists$))?13:-1,c)}},Dhb=function(a){a&1&&Xf(0)},Ehb=function(a){a&1&&E(0,Dhb,1,0,"ng-container",7);a&2&&(P(),a=Q(8),I("ngTemplateOutlet",a))},Fhb=function(a){if(a&1){var b=t();K(0,"button",42);N("click",function(){u(b);var c=P();return v(Ds(c))});S(1);L()}a&2&&(a=P(),I("mat-dialog-close",!0)("matTooltip",a.saveBtnTooltip)("disabled",a.pristine),Jf("aria-label",
a.saveBtnTooltip),B(),T(" ",a.saveBtnLabel," "))},Ihb=function(a){if(a&1){var b=t();K(0,"button",43);N("click",function(){u(b);var c=P();return v(Ghb(c))});S(1," Create ");L()}a&2&&(a=P(),I("disabled",!(Hhb(a).length>0)))},Jhb=function(a){a&1&&(K(0,"header",8)(1,"h2"),S(2,"Create new hotlist"),L()(),K(3,"section",44)(4,"div",45)(5,"form",46)(6,"label",47),S(7,"Name"),L(),M(8,"input",48),K(9,"label",49),S(10,"Description"),L(),M(11,"textarea",50),K(12,"p",17),S(13," Note: Access controls can be adjusted after the hotlist is created. "),
L()()()());a&2&&(a=P(),B(5),I("formGroup",a.hotlistUnderEdit))},Khb=function(a,b){return a.name.localeCompare(b.name)},Lhb=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)},Mhb=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)}}},
Nhb=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},Ohb=function(a,b){if(a&1){var c=t();K(0,"b-hotlist-chip-smart",7);N("removeHotlist",function(){var d=u(c).$implicit,e=P(3);return v(e.removeHotlists([d]))});L()}a&2&&I("id",b.$implicit)},Phb=function(a){a&1&&Pf(0,Ohb,1,1,"b-hotlist-chip-smart",6,Of);a&2&&(a=P(2),Qf(a.hotlistIdSet))},Qhb=function(a){a&1&&(K(0,"div",5),
S(1,"Multiple hotlists selected"),L())},Shb=function(a){if(a&1){var b=t();K(0,"b-hotlist-recommendation-chip",9);U(1,"async");N("onAccept",function(){u(b);var d=P().$implicit,e=P(3);return v(Rhb(e,d))});L()}if(a&2){a=P().$implicit;var c=P(3);I("hotlist",a.content==null?null:a.content.recommendedHotlist)("recommendationId",a.name)("issueId",W(1,4,c.issueId$))("updateHotlistsInstantly",!1)}},Thb=function(a,b){a&1&&F(0,Shb,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);G(e?0:-1)}},Vhb=function(a,b){a&1&&Pf(0,Thb,1,1,null,null,Uhb);a&2&&Qf(b)},Xhb=function(a){if(a&1){var b=t();K(0,"div",0)(1,"div",1)(2,"label");S(3,"Hotlists");L()();K(4,"div",2)(5,"button",3);N("click",function(){u(b);var d=P();return v(Whb(d))});M(6,"mat-icon",4);S(7," Add ");L();F(8,Phb,2,0)(9,Qhb,2,0,"div",5);F(10,Vhb,2,0);U(11,"async");L()()}if(a&
2){var c;a=P();B(8);G(a.areAllHotlistsEqual?8:9);B(2);G((c=W(11,2,a.recommendations$))?10:-1,c)}},Yhb=function(a){a&1&&Xf(0)},Zhb=function(a){if(a&1){var b=t();K(0,"div",3);N("mouseenter",function(){u(b);var c=P();return v(c.toggle(!0))})("mouseleave",function(){u(b);var c=P();return v(c.toggle(!1))})("mousemove",function(){u(b);P().activity.next();return v()});E(1,Yhb,1,0,"ng-container",4);L()}a&2&&(a=P(),I("ngClass",a.bubbleStyle)("@fade",void 0),B(),I("ngTemplateOutlet",a.panelTemplate))},$hb=
function(a){a&1&&(K(0,"span",3),S(1),L());a&2&&(a=P(2),zg(a.chipClass),yg("xs",a.compactMode),B(),T(" ",a.chipText," "))},aib=function(a){a&1&&(K(0,"div",5),S(1),K(2,"a",6),S(3," Learn more"),L()());a&2&&(a=P(3),B(),T(" ",a.bubbleText," "),B(),I("href",Es(a.documentationLinks),Me))},bib=function(a){a&1&&(K(0,"xap-bubble",2)(1,"span",4),S(2),L(),E(3,aib,4,2,"ng-template",null,0,Og),L());if(a&2){a=Q(4);var b=P(2);I("panelTemplate",a);B();zg(b.chipClass);yg("xs",b.compactMode);B();T(" ",b.chipText," ")}},
cib=function(a){a&1&&F(0,$hb,2,5,"span",1)(1,bib,5,6,"xap-bubble",2);a&2&&(a=P(),G(a.labelOnlyMode?0:1))},dib=function(a){a&1&&(K(0,"li")(1,"a",3),S(2," Create an issue in this component"),L()());a&2&&(a=P(2),B(),I("href",a.createIssueUrl,Me))},eib=function(a,b){a&1&&(K(0,"h3"),S(1),L(),K(2,"p"),S(3),L(),M(4,"b-component-access-level-indicator",2),K(5,"p"),S(6),L(),K(7,"ul")(8,"li")(9,"a",3),S(10," View recent open issues"),L()(),F(11,dib,3,1,"li"),K(12,"li")(13,"a",3),S(14," View component"),L()()());
a&2&&(a=P(),B(),Ag(b.name),B(2),T("ID: ",a.componentId),B(),I("accessLevel",b.accessLimit==null?null:b.accessLimit.accessLevel)("labelOnlyMode",!0),B(2),Ag(b.description),B(3),I("href",a.recentIssuesUrl,Me),B(2),G(a.isAnonymous?-1:11),B(2),I("href",a.viewComponentUrl,Me))},fib=function(a,b){a&1&&(K(0,"span",4)(1,"a",6),S(2),L(),K(3,"onedev-hovercard",null,0),M(5,"b-component-card",7),L()());a&2&&(a=b.$implicit,b=Q(4),B(),I("onedevHovercardTrigger",b)("routerLinkObj",a.route),B(),Ag(a.name),B(3),I("componentId",
a.id.toString()))},gib=function(a){a&1&&(K(0,"span",5),S(1,"[Archived]"),L())},hib=function(a,b){b=b===void 0?Nr: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(g,k){var m;k=(m=f[k])!=null?m:String(g);m=b(g);return{id:g,name:k,route:m}})},iib=function(a){a&1&&S(0," > ")},jib=function(a,b){a&1&&(K(0,"a",4),S(1),L(),F(2,iib,1,0));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;Jf("aria-label",Gg("View recent issues in ",
a.name));I("routerLinkObj",a.route);B();Ag(a.name);B();G(c!==b-1?2:-1)}},kib=function(a){a&1&&(K(0,"span"),S(1," [Archived]"),L())},lib=function(a){a&1&&(K(0,"div",2),Pf(1,jib,3,5,null,null,Of),U(3,"async"),F(4,kib,2,0,"span"),U(5,"async"),L());a&2&&(a=P(),B(),Qf(W(3,1,a.componentPath$)),B(3),G(W(5,3,a.isArchived$)?4:-1))},mib=function(a,b){a&1&&(K(0,"div",5),M(1,"mat-icon",6),K(2,"div",7),S(3),L()(),K(4,"div",8)(5,"span",7),S(6),L(),M(7,"b-component-access-level-indicator",9),L(),K(8,"p",7),S(9),
L());a&2&&(B(3),Ag(b.name),B(3),T("Component ID: ",b.componentId),B(),I("accessLevel",b.accessLimit==null?null:b.accessLimit.accessLevel)("labelOnlyMode",!0),B(2),Ag(b.description))},nib=function(a,b){a&1&&(K(0,"div",3)(1,"a",10),S(2,"View recent open issues"),L(),K(3,"a",11),S(4,"View component settings"),L(),K(5,"a",12),S(6,"Create issue in this component"),L()());a&2&&(B(),I("routerLinkObj",b.recentIssues),B(2),I("routerLinkObj",b.componentSettings),B(2),I("routerLinkObj",b.createIssue))},pib=
function(a){return oib[a]},Fs=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]]}))})},Gs=function(a){a=a===void 0?0:a;return new Promise(function(b){setTimeout(b,a)})},qib=function(a){a&1&&(K(0,"span",4),S(1),L());a&2&&(a=P(2),B(),T(" ",a.name," "))},rib=function(a){a&1&&S(0," Trackers are distinct communities with their own branding. ")},sib=function(a){a&1&&(K(0,"a",9),S(1,"Learn More"),L());a&2&&(a=
P(2),I("href",a.documentationLinks.baseDocumentationUrl+"/concepts/trackers",Me))},tib=function(a){a&1&&(K(0,"button",1),M(1,"img",2)(2,"img",3),F(3,qib,2,1,"span",4),L(),K(4,"onedev-hovercard",null,0)(6,"div",5)(7,"div",6)(8,"span",7),S(9),F(10,rib,1,0),L(),K(11,"div",8)(12,"a",9),S(13),L(),F(14,sib,2,1,"a",9),L()()()());if(a&2){a=Q(5);var b=P();yg("xs",b.compactMode);I("onedevHovercardTrigger",a)("onedevHovercardActive",b.showHovercard);B();I("src",b.logoLight,Me);B();I("src",b.logoDark,Me);B();
G(b.compactMode?-1:3);B(6);T(" This component or issue is part of ",b.extendedName,". ");B();G(b.isGlobalBuganizer?-1:10);B(2);I("href",b.redirectUrl,Me);B();T("View ",b.extendedName);B();G(b.isGlobalBuganizer?-1:14)}},uib=function(a){a&1&&(M(0,"b-tracker-chip",0),U(1,"async"));a&2&&(a=P(),I("tracker",W(1,4,a.tracker$)||void 0)("compactMode",a.compactMode)("showHovercard",a.showHovercard)("isGlobalBuganizer",a.isGlobalBuganizer))},vib=function(a){a&1&&M(0,"mat-icon",1)},wib=function(a){if(a&1){var b=
t();K(0,"button",9);N("mousedown",function(c){u(b);var d=P();return v(d.back(c))});M(1,"mat-icon",10);L()}},xib=function(a){if(a&1){var b=t();K(0,"button",11);N("mousedown",function(c){u(b);var d=P();return v(d.expand(d.componentOption,c))});M(1,"mat-icon",12);L()}a&2&&(a=P(),I("matTooltip","View child components of "+a.componentOption.name),Jf("aria-label","View child components of "+a.componentOption.name),B(),I("svgIcon",a.showFolderSpecialIcon?"folder_special_24px":"folder"))},yib=function(a){if(a&
1){var b=t();K(0,"a",14);U(1,"toString");U(2,"boldPrefixMatches");N("mousedown",function(d){u(b);var e=P().$implicit;P(2).selectComponentId.emit(e.id);d.preventDefault();d.stopPropagation();return v()});L()}if(a&2){a=P().$implicit;var c=P(2);I("innerHtml",Ng(2,3,W(1,1,a.name),c.query),Le)}},zib=function(a){a&1&&S(0);a&2&&(a=P().$implicit,T(" ",a.name," "))},Aib=function(a){a&1&&S(0," \u00a0>\u00a0 ")},Bib=function(a,b){a&1&&(F(0,yib,3,6,"a",13)(1,zib,1,1),F(2,Aib,1,0));if(a&2){a=b.$implicit;var c=
b.$index;b=b.$count;G(a.name!=a.id?0:1);B(2);G(c!==b-1?2:-1)}},Cib=function(a){a&1&&Pf(0,Bib,3,2,null,null,Of);a&2&&(a=P(),Qf(a.componentOption.componentPath))},Dib=function(a,b){if(a&1){var c=t();K(0,"a",16);N("mousedown",function(d){var e=u(c);P(2).selectComponentId.emit(e.id);d.preventDefault();d.stopPropagation();return v()});S(1);L()}a&2&&(B(),T(" ",b.name," "))},Eib=function(a){a&1&&F(0,Dib,2,1,"a",15);if(a&2){var b;a=P();G((b=a.componentOption.componentPath[a.componentOption.componentPath.length-
1])?0:-1,b)}},Fib=function(a){a&1&&(K(0,"span",6),S(1," [Archived] "),L())},Gib=function(a){return{type:"team",id:a.teamId,name:a.name,description:a.description,pathNames:a.pathNames,pathIds:a.pathIds,expanded:!1}},Hib=function(a){return{type:"team",id:a.id,name:a.name,description:a.description,expanded:!1}},Iib=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(g,k){return{id:g,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}},Jib=function(a){return new Map([].concat(n(a.entries())).map(function(b){var c=l(b);b=c.next().value;c=c.next().value;return[b,c.map(Hib)]}))},Kib=function(a){a&1&&Uf(0,"img",1);a&2&&(a=P(),Jf("src",a.getLogoUrl(),Me))},Lib=function(a){a&1&&(Sf(0,"span",6),S(1,"no components"),Tf())},Mib=function(a){a&1&&(Sf(0,"div",
3),Uf(1,"div",5),U(2,"boldPrefixMatches"),F(3,Lib,2,0,"span",6),Tf());a&2&&(a=P(),B(),Rf("innerHTML",Ng(2,2,a.teamOption.name,a.query),Le),B(2),G(a.hasNoComponent?3:-1))},Nib=function(a){if(a&1){var b=t();Sf(0,"a",8);eg("mousedown",function(c){u(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()});S(1);Tf()}a&2&&(a=P(2).$implicit,B(),Ag(a))},Oib=function(a){a&1&&S(0);a&2&&(a=P(2).$implicit,
T(" ",a," "))},Pib=function(a){a&1&&(F(0,Nib,2,1,"a",7)(1,Oib,1,1),Yf(2),S(3," \u00b7 "),Qe());a&2&&(a=P(3),G(a.allowSegmentSelection?0:1))},Qib=function(a){a&1&&(Sf(0,"strong",9),S(1),Tf());a&2&&(a=P(2).$implicit,B(),Ag(a))},Rib=function(a){a&1&&S(0);a&2&&(a=P(2).$implicit,T(" ",a," "))},Sib=function(a){a&1&&F(0,Qib,2,1,"strong",9)(1,Rib,1,1);a&2&&(a=P(3),G(a.compact?0:1))},Tib=function(a,b){a&1&&F(0,Pib,4,1)(1,Sib,2,1);a&2&&G(b.$index!==b.$count-1?0:1)},Uib=function(a){a&1&&(Sf(0,"div",4),Pf(1,
Tib,2,1,null,null,Of),Tf());a&2&&(a=P(),B(),Qf(a.teamOption.pathNames))},Vib=function(a){switch(a.type){case "ISSUE_DEDUPLICATION":return"canonical-recommendation";case "HOTLIST":return"hotlist-recommendation";case "ISSUE_DEDUPLICATION_BATCH":return"canonical-batch-recommendation";case "NEEDS_INFO":return"needs-info-recommendation";case "ANY_ISSUE_EDIT":return"any-issue-edit-recommendation";default:return a.type.toLowerCase()+"-recommendation"}},Wib=function(a){if(a&1){var b=t();K(0,"button",9);N("mousedown",
function(c){u(b);P().clearQuery();return v(Hs(c))});M(1,"mat-icon",10);L()}},Xib=function(a){a&1&&(K(0,"div",11),S(1," Checking for admin access... "),L())},Yib=function(a){a&1&&(K(0,"div",12),S(1," You do not have admin access to this component. "),K(2,"a",13),S(3,"View component admins"),L()());a&2&&(a=P(3),B(2),I("href",zs.editComponentAccess.makeHref(a.selectedComponent.componentId),Me))},Zib=function(a){a&1&&F(0,Yib,4,1,"div",12);a&2&&(a=P(2),G(!a.hasAccess&&a.selectedComponent?0:-1))},$ib=function(a){a&
1&&(K(0,"div"),F(1,Xib,2,0,"div",11)(2,Zib,1,1),L());a&2&&(a=P(),B(),G(a.checkingAccess?1:2))},ajb=function(a){a&1&&M(0,"mat-progress-bar",16)},bjb=function(a){a&1&&S(0," teams ")},cjb=function(a){a&1&&S(0," team ")},fjb=function(a,b){if(a&1){var c=t();K(0,"div",21);N("mousedown",function(e){var f=u(c).$implicit,g=P(6);djb(g.searchState,f);return v(Hs(e))});K(1,"team-row",22);N("selectTeamId",function(e){u(c);var f=P(6);return v(ejb(f.searchState,e))});L()()}if(a&2){a=b.$implicit;b=P(6);var d=Q(3);
I("data",a);B();I("teamOption",a)("query",d.value)("hasNoComponent",b.searchState.hasNoComponent(a.id))}},gjb=function(a){a&1&&M(0,"mat-divider")},hjb=function(a){a&1&&(K(0,"div",18)(1,"div",19),S(2," Filter components by my teams "),K(3,"span"),S(4),F(5,bjb,1,0)(6,cjb,1,0),L()(),Pf(7,fjb,2,4,"div",20,Of),L(),F(9,gjb,1,0,"mat-divider"));if(a&2){a=P();var b=P(4);B(4);T("",a.length," ");B();G(a.length>1?5:6);B(2);Qf(a);B(2);G(b.searchState.recommendedComponents.length>0||b.searchState.popularComponents.length>
0||b.searchState.recentComponents.length>0?9:-1)}},ijb=function(a,b){a&1&&F(0,hjb,10,3);a&2&&G(b.length?0:-1)},jjb=function(a){a&1&&Xf(0)},kjb=function(a){a&1&&M(0,"mat-divider")},mjb=function(a){a&1&&(E(0,jjb,1,0,"ng-container",23),F(1,kjb,1,0,"mat-divider"));if(a&2){a=P(4);var b=Q(12);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(3,ljb,a.searchState.recommendedComponents));B();G(a.searchState.popularComponents.length>0||a.searchState.recentComponents.length>0?1:-1)}},njb=function(a){a&1&&
Xf(0)},ojb=function(a){a&1&&M(0,"mat-divider")},qjb=function(a){a&1&&(E(0,njb,1,0,"ng-container",23),F(1,ojb,1,0,"mat-divider"));if(a&2){a=P(4);var b=Q(12);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(3,pjb,a.searchState.popularComponents));B();G(a.searchState.recentComponents.length?1:-1)}},rjb=function(a){a&1&&Xf(0)},tjb=function(a){a&1&&E(0,rjb,1,0,"ng-container",23);if(a&2){a=P(4);var b=Q(12);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,sjb,a.searchState.recentComponents))}},
ujb=function(a){a&1&&(F(0,ijb,1,1),U(1,"async"),F(2,mjb,2,5),F(3,qjb,2,5),F(4,tjb,1,4,"ng-container"),U(5,"async"));if(a&2){var b,c;a=P(3);G((b=W(1,4,a.searchState.myTeams$))?0:-1,b);B(2);G(a.searchState.recommendedComponents.length>0?2:-1);B();G(a.searchState.popularComponents.length?3:-1);B();G(a.searchState.recentComponents.length||((c=W(5,6,a.searchState.myTeams$))==null||!c.length)&&a.searchState.recommendedComponents.length===0&&a.searchState.popularComponents.length===0?4:-1)}},vjb=function(a){a&
1&&S(0," teams ")},wjb=function(a){a&1&&S(0," team ")},xjb=function(a){a&1&&Xf(0)},Ajb=function(a,b){a&1&&E(0,xjb,1,0,"ng-container",23);if(a&2){a=b.$implicit;b=b.$index;P(6);var c=Q(10);I("ngTemplateOutlet",c)("ngTemplateOutletContext",Lg(4,yjb,a,Kg(2,zjb,b)))}},Bjb=function(a){if(a&1){var b=t();K(0,"button",25);N("mousedown",function(){u(b);var c=P(6);return v(c.searchState.showAllTeams$.next(!0))});M(1,"mat-icon",26);S(2," Show all teams ");L()}},Cjb=function(a,b){a&1&&(K(0,"div",18)(1,"div",19),
S(2," Filter components by teams "),K(3,"span"),S(4),F(5,vjb,1,0)(6,wjb,1,0),L()(),Pf(7,Ajb,1,7,"ng-container",null,Of),U(9,"async"),F(10,Bjb,3,0,"button",24),U(11,"async"),M(12,"mat-divider"),L());a&2&&(a=P(5),B(4),T("",b," "),B(),G(b>1?5:6),B(2),Qf(W(9,3,a.searchState.filteredTeamOptions$)),B(3),G(W(11,5,a.searchState.hasHiddenTeams$)?10:-1))},Djb=function(a,b){a&1&&F(0,Cjb,13,7,"div",18);if(a&2){var c;G((c=b.length)?0:-1,c)}},Ejb=function(a){a&1&&Xf(0)},Gjb=function(a){a&1&&(F(0,Djb,1,1),U(1,"async"),
E(2,Ejb,1,0,"ng-container",23));if(a&2){var b;a=P(3);var c=Q(12);G((b=W(1,3,a.searchState.teamOptions$))?0:-1,b);B(2);I("ngTemplateOutlet",c)("ngTemplateOutletContext",Kg(5,Fjb,a.searchState.componentOptions))}},Hjb=function(a){a&1&&Xf(0)},Jjb=function(a,b){a&1&&E(0,Hjb,1,0,"ng-container",23);if(a&2){a=b.$implicit;b=b.$index;P(8);var c=Q(10);I("ngTemplateOutlet",c)("ngTemplateOutletContext",Lg(4,yjb,a,Kg(2,Ijb,b)))}},Kjb=function(a){a&1&&(K(0,"div",32),Pf(1,Jjb,1,7,"ng-container",null,Of),L());a&
2&&(a=P(2),B(),Qf(a))},Njb=function(a){if(a&1){var b=t();F(0,Kjb,3,0,"div",32);K(1,"button",25);N("mousedown",function(c){u(b);var d=P(6),e=d.searchState.teamScope$.value;e.expanded?Ljb(d.searchState,e):Mjb(d.searchState,e);return v(Hs(c))});M(2,"mat-icon",26);S(3);L()}a&2&&(a=P(6),G(a.searchState.teamScope$.value.expanded?0:-1),B(2),yg("expanded",a.searchState.teamScope$.value.expanded),B(),T(" ",a.searchState.teamScope$.value.expanded?"Hide":"Show"," child teams "))},Ojb=function(a,b){a&1&&F(0,
Njb,4,4);a&2&&G(b.length?0:-1)},Rjb=function(a){if(a&1){var b=t();K(0,"div",27)(1,"div",19);S(2," Filtering by team: ");L();K(3,"div",28)(4,"team-row",29);N("selectTeamId",function(e){u(b);var f=P(4);return v(ejb(f.searchState,e))});L();K(5,"button",30);N("mousedown",function(e){u(b);var f=P(4);Pjb(f.searchState);return v(Hs(e))});M(6,"mat-icon",31);L()();F(7,Ojb,1,1);L()}if(a&2){var c;a=P(4);var d=Q(3);B(3);I("data",a.searchState.teamScope$.value)("listOrder",Jg(7,Qjb));B();I("teamOption",a.searchState.teamScope$.value)("query",
d.value)("compact",!0)("allowSegmentSelection",!0);B(3);G((c=a.searchState.getChildTeams(a.searchState.teamScope$.value.id))?7:-1,c)}},Sjb=function(a){a&1&&Xf(0)},Ujb=function(a){a&1&&(F(0,Rjb,8,8,"div",27),E(1,Sjb,1,0,"ng-container",23));if(a&2){a=P(3);var b=Q(12);G(a.searchState.teamScope$.value?0:-1);B();I("ngTemplateOutlet",b)("ngTemplateOutletContext",Lg(3,Tjb,a.searchState.componentOptions,a.searchState.teamScope$.value))}},Xjb=function(a){if(a&1){var b=t();K(0,"div",33)(1,"div",34);S(2,"Component Tree Browser");
L();K(3,"component-row",35);N("goBack",function(){u(b);var c=P(4);return v(Vjb(c.searchState))})("selectComponentId",function(c){u(b);var d=P(4);return v(Wjb(d.searchState,c))});L()()}a&2&&(a=P(4),B(3),I("componentOption",a.searchState.componentScope))},Yjb=function(a){a&1&&Xf(0)},$jb=function(a){a&1&&(F(0,Xjb,4,1,"div",33),E(1,Yjb,1,0,"ng-container",23));if(a&2){a=P(3);var b=Q(12);G(a.searchState.componentScope?0:-1);B();I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(3,Zjb,a.searchState.componentOptions))}},
akb=function(a){a&1&&(F(0,ujb,6,8),U(1,"async"),Mf(2,Gjb,3,7)(3,Ujb,2,6)(4,$jb,2,5));if(a&2){var b;a=P(2);G((b=W(1,1,a.searchState.state$))==="default"?0:b==="global"?2:b==="team_scope"?3:b==="component_scope"?4:-1)}},bkb=function(a){if(a&1){var b=t();K(0,"div",14,5);N("mousedown",function(c){u(b);P();return v(Hs(c))});K(2,"div",15);F(3,ajb,1,0,"mat-progress-bar",16);L();K(4,"div",17);F(5,akb,5,3);L()()}a&2&&(a=P(),B(3),G(a.isLoading()?3:-1),B(2),G(a.isLoading()?-1:5))},ckb=function(a){if(a&1){var b=
t();K(0,"button",39);N("mousedown",function(c){u(b);var d=P().team,e=P();d.expanded?Ljb(e.searchState,d):Mjb(e.searchState,d);return v(Hs(c))});M(1,"mat-icon",40);L()}a&2&&(a=P().team,B(),yg("expanded",a.expanded))},dkb=function(a){a&1&&Xf(0)},fkb=function(a,b){a&1&&E(0,dkb,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=Q(10);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Mg(2,ekb,a,d+1,c.concat(b)))}},gkb=function(a){a&1&&Pf(0,fkb,1,6,"ng-container",
null,Of);if(a&2){a=P().team;var b=P();Qf(b.searchState.getChildTeams(a.id))}},hkb=function(a,b){if(a&1){var c=t();K(0,"div",36);N("mousedown",function(g){var k=u(c).team,m=P();djb(m.searchState,k);return v(Hs(g))});K(1,"div",37);F(2,ckb,2,2,"button",38);K(3,"team-row",22);N("selectTeamId",function(g){u(c);var k=P();return v(ejb(k.searchState,g))});L()()();F(4,gkb,2,0)}if(a&2){a=b.team;var d=b.level;b=b.order;var e=P(),f=Q(3);I("listOrder",b)("data",a);B();xg("margin-left",d*28,"px");B();G(e.searchState.getChildTeams(a.id).length?
2:-1);B();yg("indent",!e.searchState.getChildTeams(a.id).length);I("teamOption",a)("query",f.value)("hasNoComponent",e.searchState.hasNoComponent(a.id));B();G(a.expanded?4:-1)}},ikb=function(a){a&1&&(M(0,"mat-icon",43),S(1," AI Recommendation "))},jkb=function(a){a&1&&S(0," Select a commonly used component ")},kkb=function(a){a&1&&S(0," Select recent component ")},lkb=function(a){a&1&&S(0," Select component ")},mkb=function(a){a&1&&S(0," components ")},nkb=function(a){a&1&&S(0," component ")},pkb=
function(a,b){if(a&1){var c=t();K(0,"div",44);N("mousedown",function(f){var g=u(c).$implicit,k=P(3);okb(k.searchState,g.id);return v(Hs(f))});K(1,"component-row",45);N("selectComponentId",function(f){u(c);var g=P(3);return v(okb(g.searchState,f))})("expandComponent",function(f){u(c);var g=P(3);return v(g.searchState.expandComponent(f))});L()()}if(a&2){a=b.$implicit;b=P(2).mode;var d=P(),e=Q(3);I("data",a);B();I("showFolderSpecialIcon",Is(d.activeSession))("componentOption",a)("query",e.value)("mode",
b)}},qkb=function(a,b){a&1&&(K(0,"div",41)(1,"div",19),F(2,ikb,2,0)(3,jkb,1,0)(4,kkb,1,0)(5,lkb,1,0),K(6,"span"),S(7),F(8,mkb,1,0)(9,nkb,1,0),L()(),Pf(10,pkb,2,5,"div",42,Of),L());if(a&2){var c=P();a=c.$implicit;c=c.mode;B(2);G(c==="recommended"?2:c==="popular"?3:c==="recent"?4:5);B(5);T("",b," ");B();G(b>1?8:9);B(2);Qf(a)}},rkb=function(a){a&1&&S(0," No recent components ")},skb=function(a){a&1&&S(0," No child components ")},tkb=function(a){a&1&&(S(0),M(1,"mat-icon",47),S(2," above ("),K(3,"a",48),
S(4,"learn more "),M(5,"mat-icon",49),L(),S(6," about team associations) "));a&2&&(a=P(4).teamScope,T(" for ",a.name,". Remove the team filter by clicking on the "))},ukb=function(a){a&1&&(S(0," No components found "),F(1,tkb,7,1));a&2&&(a=P(3).teamScope,B(),G(a?1:-1))},vkb=function(a){a&1&&(K(0,"div",46),F(1,rkb,1,0)(2,skb,1,0)(3,ukb,2,1),L());a&2&&(a=P(2).mode,B(),G(a==="recent"?1:a==="leaf"?2:3))},wkb=function(a){a&1&&F(0,vkb,4,1,"div",46);a&2&&(a=P(2),G(a.componentLoading||a.searchState.componentsLoading?
-1:0))},xkb=function(a,b){a&1&&F(0,qkb,12,3,"div",41)(1,wkb,1,1);if(a&2){var c;G((c=b.$implicit.length)?0:1,c)}},ykb=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},zkb=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P().$implicit,B(),Ag(a.text))},Akb=function(a){a&1&&(K(0,"span"),M(1,"b-component-access-level-indicator",0),L());a&2&&(a=P().$implicit,B(),I("accessLevel",
a.accessLevel))},Bkb=function(a,b){a&1&&(K(0,"span"),F(1,zkb,2,1,"span")(2,Akb,2,1,"span"),L());a&2&&(a=b.$implicit,P(),B(),G(a.text!==void 0?1:2))},Dkb=function(a,b){var c=Ckb.get(b);if(!c)return null;a=a.toLowerCase().indexOf(c);return a>=0?{accessLevel:b,startOfMatch:a,endOfMatch:a+c.length}:null},Ekb=function(a){if(a&1){var b=t();K(0,"div");M(1,"br");K(2,"mat-radio-group",7);Eg("ngModelChange",function(c){u(b);var d=P(2);Dg(d.setLimitViewTrusted,c)||(d.setLimitViewTrusted=c);return v(c)});K(3,
"mat-radio-button",8);S(4,"Mark this issue as Limited Visibility + Google. Information will only be shared with Googlers and listed public users.");L();K(5,"mat-radio-button",9);S(6,"Leave issue unrestricted. All information in this issue is suitable for external sharing.");L()()()}a&2&&(a=P(2),B(2),Cg("ngModel",a.setLimitViewTrusted),B(),I("value",!0),B(2),I("value",!1))},Fkb=function(a){if(a&1){var b=t();K(0,"div");M(1,"br");K(2,"mat-checkbox",10);Eg("ngModelChange",function(c){u(b);var d=P(2);
Dg(d.acknowledged,c)||(d.acknowledged=c);return v(c)});L();K(3,"span");S(4,"All information in this issue is suitable for external sharing.");L()()}a&2&&(a=P(2),B(2),Cg("ngModel",a.acknowledged))},Gkb=function(a){a&1&&(K(0,"div"),F(1,Ekb,7,3,"div")(2,Fkb,5,1,"div"),L());a&2&&(a=P(),B(),G(a.isLimitNoneIssueTrackerMove?1:2))},Hkb=function(a){if(a&1){var b=t();K(0,"button",11);N("click",function(){u(b);var c=P();return v(c.allow())});S(1," Move Issue ");L()}a&2&&(a=P(),I("disabled",!a.acknowledged))},
Ikb=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P().$implicit,B(),T("(",a.disabledReason,")"))},Jkb=function(a,b){a&1&&(K(0,"mat-radio-button",4),S(1),F(2,Ikb,2,1,"span"),L());a&2&&(a=b.$implicit,I("value",a)("disabled",!a.enabled),B(),T(" ",a.displayText," "),B(),G(a.enabled?-1:2))},Kkb=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P().$implicit,B(),T("(",a.disabledReason,")"))},Lkb=function(a,b){a&1&&(K(0,"mat-radio-button",4),S(1),F(2,Kkb,2,1,"span"),L());a&2&&(a=b.$implicit,I("value",a)("disabled",
!a.enabled),B(),T(" ",a.displayText," "),B(),G(a.enabled?-1:2))},Mkb=function(a){return a?"https://goto.corp.google.com/buganizer-delete":"https://issuetracker.google.com/issues/new?component=169992&template=543202"},Nkb=function(a){return"share-email-confirmation-"+a},Pkb=function(a){var b,c=new Js,d=c.setIt,e=(new Okb).setIssueId(a.issueId).setScope(a.scope).setScopeSortOrder(a.scopeSortOrder).setMaxResults((b=a.maxResults)!=null?b:7);a=$m(e,3,a.keyword);return d.call(c,a)},Rkb=function(a){var b,
c=(new Qkb).setIssueId(a.issueId).setScope(a.scope).setScopeSortOrder(a.scopeSortOrder).setMaxResults((b=a.maxResults)!=null?b:7);a.embeddingType&&c.setEmbeddingType(a.embeddingType);return(new Ks).setIt(c)},Skb=function(a,b){a=s1a([].concat(n(a.scores),n(b.scores)),[].concat(n(a.similarIssues),n(b.similarIssues))).sort(function(c,d){return d[0]-c[0]});a=Nq(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]})}},
Tkb=function(a){a&1&&gg(0)},Ukb=function(a){a&1&&Uf(0,"div",0)},Vkb=function(a){a&1&&M(0,"b-formatted-date-time",1);a&2&&(a=P(),I("mode",a.mode)("timestamp",a.createdTime)("paddingLeftPx",0))},Wkb=function(a){a&1&&M(0,"mat-icon",9)},Xkb=function(a){a&1&&(K(0,"span",17),S(1),L());a&2&&(a=P(3),B(),Ag(a.HOTKEYS.COPY_ISSUE_ID.displayAs))},Ykb=function(a){a&1&&(K(0,"span",17),S(1),L());a&2&&(a=P(4),B(),Ag(a.HOTKEYS.COPY_ISSUE_SHORTLINK.displayAs))},Zkb=function(a){if(a&1){var b=t();K(0,"div",14)(1,"label",
15);S(2,"Issue shortlink");L();K(3,"input",24,5);N("onHotkey",function(){u(b);var d=Q(4),e=P(3);return v(Ls(e,d))})("focus",function(){u(b);var d=Q(4);return v(d.select())});L();F(5,Ykb,2,1,"span",17);K(6,"button",25);N("onHotkey",function(){u(b);var d=Q(4),e=P(3);return v(Ls(e,d))})("click",function(){u(b);var d=Q(4),e=P(3);return v(Ls(e,d))});M(7,"mat-icon",19);L()()}if(a&2){a=Q(4);var c=P(3);B();I("htmlFor",a.id);B(2);I("hotkey",c.HOTKEYS.COPY_ISSUE_SHORTLINK)("hotkeyEnabled",c.enableHotkeys);
Jf("value",c.getAppBaseUrl().replace(/^.*?:\/\//,""));B(2);G(c.enableHotkeys?5:-1);B();I("hotkey",c.HOTKEYS.COPY_ISSUE_SHORTLINK)("hotkeyEnabled",c.enableHotkeys)}},$kb=function(a){a&1&&(K(0,"span",17),S(1),L());a&2&&(a=P(3),B(),Ag(a.HOTKEYS.COPY_ISSUE_URL.displayAs))},alb=function(a){a&1&&(K(0,"span",17),S(1),L());a&2&&(a=P(3),B(),Ag(a.HOTKEYS.COPY_ISSUE_TITLE.displayAs))},blb=function(a){a&1&&(K(0,"span",17),S(1),L());a&2&&(a=P(4),B(),Ag(a.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS.displayAs))},clb=function(a){if(a&
1){var b=t();K(0,"div",14)(1,"label",15);S(2,"Issue email");L();K(3,"input",26,6);N("onHotkey",function(){u(b);var d=Q(4),e=P(3);return v(Ls(e,d))})("focus",function(){u(b);var d=Q(4);return v(d.select())});L();F(5,blb,2,1,"span",17);K(6,"button",27);N("onHotkey",function(){u(b);var d=Q(4),e=P(3);return v(Ls(e,d))})("click",function(){u(b);var d=Q(4),e=P(3);return v(Ls(e,d))});M(7,"mat-icon",19);L()()}if(a&2){a=Q(4);var c=P(3);B();I("htmlFor",a.id);B(2);I("hotkey",c.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS)("hotkeyEnabled",
c.enableHotkeys);Jf("value","buganizer-system"+(Ms(c.activeSession)?"":"-qa")+("+"+c.componentId+"+"+c.issueId)+"@google.com");B(2);G(c.enableHotkeys?5:-1);B();I("hotkey",c.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS)("hotkeyEnabled",c.enableHotkeys)}},dlb=function(a){a&1&&(K(0,"span",17),S(1),L());a&2&&(a=P(4),B(),Ag(a.HOTKEYS.COPY_ISSUE_TODO.displayAs))},elb=function(a){if(a&1){var b=t();K(0,"div",14)(1,"label",15);S(2,"TODO comment");L();K(3,"input",28,7);N("onHotkey",function(){u(b);var d=Q(4),e=P(3);return v(Ls(e,
d))})("focus",function(){u(b);var d=Q(4);return v(d.select())});L();F(5,dlb,2,1,"span",17);K(6,"button",29);N("onHotkey",function(){u(b);var d=Q(4),e=P(3);return v(Ls(e,d))})("click",function(){u(b);var d=Q(4),e=P(3);return v(Ls(e,d))});M(7,"mat-icon",19);L()()}if(a&2){a=Q(4);var c=P(3);B();I("htmlFor",a.id);B(2);I("hotkey",c.HOTKEYS.COPY_ISSUE_TODO)("hotkeyEnabled",c.enableHotkeys);Jf("value","TODO: "+c.getAppBaseUrl().replace(/^.*?:\/\//,"")+" - ");B(2);G(c.enableHotkeys?5:-1);B();I("hotkey",c.HOTKEYS.COPY_ISSUE_TODO)("hotkeyEnabled",
c.enableHotkeys)}},flb=function(a){if(a&1){var b=t();K(0,"div",13)(1,"div",14)(2,"label",15);S(3,"Issue ID");L();K(4,"input",16,2);N("onHotkey",function(){u(b);var f=Q(5),g=P(2);return v(Ls(g,f))})("focus",function(){u(b);var f=Q(5);return v(f.select())});L();F(6,Xkb,2,1,"span",17);K(7,"button",18);N("onHotkey",function(){u(b);var f=Q(5),g=P(2);return v(Ls(g,f))})("click",function(){u(b);var f=Q(5),g=P(2);return v(Ls(g,f))});M(8,"mat-icon",19);L()();F(9,Zkb,8,7,"div",14);K(10,"div",14)(11,"label",
15);S(12,"Issue URL");L();K(13,"input",20,3);N("onHotkey",function(){u(b);var f=Q(14),g=P(2);return v(Ls(g,f))})("focus",function(){u(b);var f=Q(14);return v(f.select())});L();F(15,$kb,2,1,"span",17);K(16,"button",21);N("onHotkey",function(){u(b);var f=Q(14),g=P(2);return v(Ls(g,f))})("click",function(){u(b);var f=Q(14),g=P(2);return v(Ls(g,f))});M(17,"mat-icon",19);L()();K(18,"div",14)(19,"label",15);S(20,"URL and title");L();K(21,"input",22,4);N("onHotkey",function(){u(b);var f=Q(22),g=P(2);return v(Ls(g,
f))})("focus",function(){u(b);var f=Q(22);return v(f.select())});L();F(23,alb,2,1,"span",17);K(24,"button",23);N("onHotkey",function(){u(b);var f=Q(22),g=P(2);return v(Ls(g,f))})("click",function(){u(b);var f=Q(22),g=P(2);return v(Ls(g,f))});M(25,"mat-icon",19);L()();F(26,clb,8,7,"div",14);F(27,elb,8,7,"div",14);L()}if(a&2){a=Q(5);var c=Q(14),d=Q(22),e=P(2);I("cdkTrapFocusAutoCapture",!0);B(2);I("htmlFor",a.id);B(2);I("hotkey",e.HOTKEYS.COPY_ISSUE_ID)("hotkeyEnabled",e.enableHotkeys);Jf("value",e.issueId);
B(2);G(e.enableHotkeys?6:-1);B();I("hotkey",e.HOTKEYS.COPY_ISSUE_ID)("hotkeyEnabled",e.enableHotkeys);B(2);G(e.activeSession.isInternalSession()&&!Is(e.activeSession)?9:-1);B(2);I("htmlFor",c.id);B(2);I("hotkey",e.HOTKEYS.COPY_ISSUE_URL)("hotkeyEnabled",e.enableHotkeys);Jf("value",e.getIssueUrl());B(2);G(e.enableHotkeys?15:-1);B();I("hotkey",e.HOTKEYS.COPY_ISSUE_URL)("hotkeyEnabled",e.enableHotkeys);B(3);I("htmlFor",d.id);B(2);I("hotkey",e.HOTKEYS.COPY_ISSUE_TITLE)("hotkeyEnabled",e.enableHotkeys);
Jf("value",e.getAppBaseUrl(e.isExternalIssue)+" "+e.issueTitle);B(2);G(e.enableHotkeys?23:-1);B();I("hotkey",e.HOTKEYS.COPY_ISSUE_TITLE)("hotkeyEnabled",e.enableHotkeys);B(2);G(e.activeSession.isInternalSession()&&!Is(e.activeSession)?26:-1);B();G(e.activeSession.isInternalSession()&&!Is(e.activeSession)?27:-1)}},glb=function(a){if(a&1){var b=t();K(0,"button",10,0);N("onHotkey",function(){u(b);var d=P();d.disabled||d.trigger.open();return v()})("onedevPopupPanelTriggerOpened",function(){u(b);var d=
P();return v(d.isOpen=!0)})("onedevPopupPanelTriggerClosed",function(){u(b);var d=P();return v(d.isOpen=!1)})("click",function(){u(b);var d=P();d.disabled||d.trigger.open();return v()});M(2,"mat-icon",11);L();K(3,"onedev-popup-panel",12,1);F(5,flb,28,25,"div",13);L()}if(a&2){a=Q(4);var c=P();I("onedevPopupPanelTriggerFor",a)("hotkey",c.HOTKEYS.HIGHLIGHT_ISSUE_ID)("hotkeyEnabled",c.enableHotkeys);Jf("aria-label","Show links for the issue "+c.issueId);B(5);G(c.isOpen?5:-1)}},hlb=function(a){a&1&&(K(0,
"div")(1,"p"),S(2),L()());a&2&&(a=P(),B(2),Ag(a.description))},ilb=function(a){a&1&&(K(0,"span"),S(1,", "),L())},jlb=function(a,b){a&1&&(K(0,"span",1),S(1),L(),K(2,"onedev-hovercard",null,0)(4,"div",2)(5,"div",3)(6,"h3"),S(7),L(),F(8,hlb,3,1,"div"),L()()(),F(9,ilb,2,0,"span"));if(a&2){a=Q(3);var c=P(),d=c.$index;c=c.$count;I("onedevHovercardTrigger",a)("onedevHovercardActive",b.enableHovercard);B();Ag(b.displayName);B(6);Ag(b.displayName);B();G(b.description?8:-1);B();G(d!==c-1?9:-1)}},llb=function(a,
b){a&1&&(F(0,jlb,10,6),U(1,"async"));if(a&2){var c;a=b.$implicit;b=P();G((c=W(1,1,klb(b,a)))?0:-1,c)}},mlb=function(a){a&1&&M(0,"b-issue-id-picker",1);a&2&&(a=P(),I("issueId",a.id)("showCopyOptions",!1))},nlb=function(a){a&1&&M(0,"b-issue-priority-display",1);a&2&&(a=P(),I("issuePriority",a.priority))},olb=function(a){a&1&&(K(0,"a",2),S(1," Fix Pending "),L());a&2&&(a=P(),zg(Gg("chippy status-",a.IssueStatus.FIXED)),I("href",Gg("http://cl/",a.pendingFixCl.changelistNumber),Me)("matTooltip",Hg("Open cl/",
a.pendingFixCl.changelistNumber," from ",a.pendingFixCl.author)))},plb=function(a,b){a&1&&(K(0,"div",4),S(1),L());if(a&2){a=P(2);zg(Gg("chippy status-",b));var c;I("title",(c=a.STATUS_JS_FULL_TEXT.get(b))!=null?c:"");B();var d;T(" ",(d=a.STATUS_JS_TERSE.get(b))!=null?d:""," ")}},qlb=function(a){a&1&&F(0,plb,2,5,"div",3);if(a&2){var b;a=P();G((b=a.status)?0:-1,b)}},rlb=function(a,b){b=b===void 0?"":b;return a.filter(function(c){return c.fixedIssueIds.includes(b)})[0]},slb=function(a){a&1&&(Vf(0),S(1,
"Un-CC me"),Wf())},tlb=function(a){a&1&&(Vf(0),S(1,"CC me"),Wf())},Os=function(a){return(a!=null?a:[]).map(Ns)},Ps=function(a){return(a!=null?a:[]).map(ulb)},Ns=function(a){if(a==null)return"";var b=a.user,c=a.group,d=a.alias;a=void 0;b!=null?(a="USER",b=Rm(b)):c!=null?(a="GROUP",b=Rm(c)):d!=null?(a="ALIAS",b=d):b="";return a===void 0||b===""?"":a+":"+b},Qs=function(a){return(a!=null?a:[]).map(Ns)},Rs=function(a){return(a!=null?a:[]).map(ulb)},ulb=function(a){var b=l(a.split(":"));a=b.next().value;
b=b.next().value;if(!a||!b)throw Error("We`"+b);switch(a){case "USER":return{user:{emailAddress:b}};case "GROUP":return{group:{emailAddress:b}};case "ALIAS":return{alias:b};default:throw Error("Xe`"+b);}},Ss=function(){return{admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null}},Ts=function(a){return{admins:Os(a.admins),editors:Os(a.editors),appenders:Os(a.appenders),readers:Os(a.readers),restrictedReaders:Os(a.restrictedReaders),
restrictedPlusReaders:Os(a.restrictedPlusReaders),inheritedAdmins:Os(a.inheritedAdmins),implicitAccess:a.implicitAccess||null}},Us=function(a){return{admins:Ps(a.admins),editors:Ps(a.editors),appenders:Ps(a.appenders),readers:Ps(a.readers),restrictedReaders:Ps(a.restrictedReaders),restrictedPlusReaders:Ps(a.restrictedPlusReaders),implicitAccess:a.implicitAccess}},vlb=function(a){a&1&&Xf(0)},wlb=function(a){a&1&&(K(0,"span"),S(1,"Details"),L())},xlb=function(a){a&1&&(K(0,"span"),S(1,"Members"),L())},
ylb=function(a){a&1&&(K(0,"div",11)(1,"a",12),F(2,wlb,2,0,"span")(3,xlb,2,0,"span"),L()());if(a&2){a=P(2);B();if(a.email===void 0)var b="";else{b=encodeURIComponent(a.getName());var c=encodeURIComponent(a.email);b=dba(a.email)?"https://ganpati2.corp.google.com/group/"+b+".corp":RVa(a.email)?"https://twosync.corp.google.com/rosterz/"+c:"https://groups.google.com/a/google.com/forum/#!members/"+b}I("href",b,Me);B();G(dba(a.email)?2:3)}},zlb=function(a){a&1&&(K(0,"span",2),E(1,vlb,1,0,"ng-container",
3),L(),K(2,"onedev-hovercard",null,1)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"h3"),S(10),L()(),K(11,"div",9),M(12,"mat-icon",10),K(13,"span"),S(14),L()()(),F(15,ylb,4,2,"div",11),L()()()());if(a&2){a=Q(3);var b=P(),c=Q(3);I("onedevHovercardTrigger",a);B();I("ngTemplateOutlet",c);B(9);Ag(b.getName());B(4);Ag(b.email);B();G(b.shouldShowLinks()?15:-1)}},Alb=function(a){a&1&&Xf(0)},Blb=function(a){a&1&&E(0,Alb,1,0,"ng-container",3);a&2&&(P(),a=Q(3),I("ngTemplateOutlet",a))},Clb=function(a){a&
1&&gg(0)},Dlb=function(a){a&1&&(K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content"),gg(2),L()())},Elb=function(a,b){a&1&&M(0,"mat-icon",2);a&2&&I("svgIcon",b)},Flb=function(a){a&1&&(K(0,"b-person-hovercard",4),S(1),L());a&2&&(a=P(),I("email",a.value),B(),T(" ",a.displayText," "))},Glb=function(a){a&1&&(K(0,"b-group-email-card",4),S(1),L());a&2&&(a=P(),I("email",a.value),B(),T(" ",a.displayText," "))},Hlb=function(a,b){a&1&&(K(0,"div",8),M(1,"b-contact-chip",9),L());a&2&&(a=b.$implicit,b=P(3),
B(),I("value",a.value)("detailedUserType",a.detailedUserType)("principalType",a.principalType)("accessLevel",b.accessLevel)("displayText",a.displayText))},Ilb=function(a){a&1&&(K(0,"div",7),Pf(1,Hlb,2,5,"div",8,Of),L());a&2&&(a=P(2),B(),Qf(a.nestedChips))},Jlb=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(2),B(),Ag(a.getTooltip()))},Klb=function(a){a&1&&(K(0,"b-text-with-tooltip",5),F(1,Ilb,3,0,"div",7)(2,Jlb,2,1,"span"),L());a&2&&(a=P(),I("dialogTabIndex",a.isContainerChip()?-1:0)("displayText",
a.displayText),B(),G(a.isContainerChip()?1:2))},Llb=function(a){if(a&1){var b=t();K(0,"div",10);N("click",function(){u(b);var c=P();return v(c.chipRemove.emit())})("keydown.enter",function(){u(b);var c=P();return v(c.chipRemove.emit())});M(1,"mat-icon",11);L()}a&2&&(a=P(),I("matTooltip",Gg("'Remove ",a.displayText,"'")),Jf("aria-label","Remove "+a.displayText))},Nlb=function(a,b){if(a&1){var c=t();K(0,"div",3)(1,"b-contact-chip",6);N("chipSelection",function(){var d=u(c).$index,e=P();e.selectedChipIndex!==
d&&Vs(e,d)&&(Mlb(e),e.selectedChipIndex=d,e.items[d].isSelected=!0);return v()})("chipClear",function(){u(c);var d=P();return v(Mlb(d))})("chipRemove",function(){var d=u(c).$index,e=P();return v(e.removeItem(d))});L()()}a&2&&(a=b.$implicit,b=P(),B(),I("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()))},Qlb=function(a){if(a&1){var b=t();K(0,"input",7,0);N("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P();return v(d.selectAutocomplete(c))});Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.typedText,c)||(d.typedText=c);return v(c)});N("focus",function(){u(b);var c=P();return v(Olb(c))})("blur",function(){u(b);var c=P();Plb(c,c.typedText.split(",")[0].trim());c.isFocused=!1;return v()});L()}a&2&&(a=P(),I("peoplekitAutocompleteConfig",Ugb(a.autocompleteConfigService))("peoplekitSearchSessionOptions",
a.sessionOptions)("peoplekitAutocompleteInputSearchDelay",0),Cg("ngModel",a.typedText),I("disabled",a.isWidgetDisabled())("placeholder",a.placeholderText))},Rlb=function(a){a&1&&(K(0,"span"),S(1," Groups cannot be granted Restricted+ reader permission. "),K(2,"a",8),S(3,"Learn more"),L()());a&2&&(a=P(),B(2),Jf("href",Es(a.documentationLinks)+"#components",Me))},Slb=function(a){a&1&&(K(0,"span"),S(1," Invalid user(s). "),L())},Tlb=function(a){a&1&&(K(0,"span"),S(1,' "Public" or external users are not allowed for component designated as "internal access". '),
L())},Ulb=function(a){a&1&&(K(0,"span"),S(1,' "Public" is not allowed for components designated as "external partner access". '),L())},Vlb=function(a){a&1&&(K(0,"span"),S(1," Team owner cannot be a group. "),L())},Wlb=function(a){a&1&&(K(0,"span"),S(1," Team owner can only be a full-time Googler. "),L())},Xlb=function(a){a&1&&(K(0,"span"),S(1," Only users in the Google domain can be selected. "),L())},Ylb=function(a){a&1&&(K(0,"span"),S(1," User has already been selected. "),L())},Zlb=function(a){a&
1&&(K(0,"span"),S(1," Only users can be selected. Groups and aliases are not supported. "),L())},dmb=function(a,b){if(!b||!a)return $lb;var c;return!amb((c=b.readers)!=null?c:[])||bmb(a)?cmb:$lb},amb=function(a){return a.some(function(b){return b.alias!==void 0?b.alias==="public"||b.alias==="public_non_google":!1})},bmb=function(a){return a==="LIMIT_VIEW"||a==="LIMIT_VIEW_TRUSTED"},emb=function(a,b){a&1&&(K(0,"a",6),S(1," Learn more. "),L());a&2&&I("href",b,Me)},fmb=function(a,b){a&1&&M(0,"b-multi-user-input",
9);a&2&&(I("users",b),Jf("disabled",!0))},gmb=function(a){a&1&&(Vf(0,8),M(1,"br"),K(2,"h2"),S(3,"Users who can view"),L(),F(4,fmb,1,2,"b-multi-user-input",9),U(5,"async"),Wf());if(a&2){var b;a=P(2);I("onedevIsHovercardReady",a.showHovercard$);B(4);G((b=W(5,2,a.viewers$))?4:-1,b)}},imb=function(a){if(a&1){var b=t();K(0,"span",2,0);U(2,"async");U(3,"async");N("focus",function(){u(b);var f=Q(1);P().loadTooltipOnce();f.disabled=!1;return v(f.show())})("blur",function(){u(b);var f=Q(1);f.disabled=!0;return v(f.hide())});
S(4);U(5,"async");L();K(6,"onedev-hovercard",null,1)(8,"div",3)(9,"div",4)(10,"div",5);S(11);U(12,"async");F(13,emb,2,1,"a",6);E(14,gmb,6,4,"ng-container",7);L()()()()}if(a&2){var c;a=Q(7);var d=P();zg(W(2,10,d.chipClass$));yg("xs",d.compactMode);var e;I("onedevHovercardTrigger",a)("matTooltipDisabled",!0)("matTooltip",(e=W(3,12,d.tooltipText$))!=null?e:"");B(4);T(" ",W(5,14,d.chipText$)," ");B(7);T(" ",W(12,16,d.bubbleText$)," ");B(2);G((c=hmb(d.documentationLinks))?13:-1,c)}},jmb=function(a){return a===
"visible_to_listed_partners"||a==="visible_to_listed_public_users"},kmb=function(a){a&1&&(K(0,"span"),S(1," Assigned to "),M(2,"b-user-display",12),L());a&2&&(a=P(2),B(2),I("model",a.assigneeUser)("hovercardEnabled",!1))},lmb=function(a){a&1&&(K(0,"span"),S(1," Accepted by "),M(2,"b-user-display",12),L());a&2&&(a=P(2),B(2),I("model",a.assigneeUser)("hovercardEnabled",!1))},mmb=function(a){a&1&&(K(0,"span"),S(1," Duplicate of "),K(2,"a",2),S(3),L()());if(a&2){a=P(2);var b=P();B(2);Jf("aria-label",
Gg("Go to issue ",a.duplicateOfIssueId));I("href",b.ROUTES.viewIssue.makeHref(a.duplicateOfIssueId),Me);B();T(" ",a.duplicateOfIssueId," ")}},nmb=function(a){a&1&&(K(0,"span"),S(1),L());if(a&2){a=P();var b=P(2);B();var c;T(" ",(c=b.STATUS_JS_FULL_TEXT.get(a))!=null?c:""," ")}},omb=function(a,b){a&1&&F(0,kmb,3,2,"span")(1,lmb,3,2,"span")(2,mmb,4,4,"span")(3,nmb,2,1,"span");a&2&&G(b==="ASSIGNED"?0:b==="ACCEPTED"?1:b==="DUPLICATE"?2:3)},pmb=function(a,b){a&1&&M(0,"b-app-vote-button",13);if(a&2){a=P();
var c=P(2),d;I("issueId",c.issueId)("voteCount",a.voteCount)("upvoted",(d=b.voted)!=null?d:!1)}},qmb=function(a){a&1&&F(0,pmb,1,3,"b-app-vote-button",13);if(a&2){var b;a=P(2);G((b=a.issue.userData)?0:-1,b)}},smb=function(a){if(a&1){var b=t();K(0,"button",14);N("click",function(){u(b);var c=P(2);return v(rmb(c,c.childContextId))});S(1," Unlink parent ");L()}},tmb=function(a,b){a&1&&(K(0,"li"),S(1," Last updated by "),M(2,"b-user-display",12),S(3," on: "),M(4,"b-formatted-date-time",15),L());a&2&&(a=
P(),B(2),I("model",b)("hovercardEnabled",!1),B(2),I("timestamp",a.modifiedTimeMicros/1E3))},umb=function(a,b){a&1&&(F(0,tmb,5,3,"li"),K(1,"li"),S(2," Reported by "),M(3,"b-user-display",12),S(4," on: "),M(5,"b-formatted-date-time",15),L());if(a&2){var c;a=P();G((c=b.lastModifier)?0:-1,c);B(3);I("model",a.reporterUser)("hovercardEnabled",!1);B(2);I("timestamp",b.createdTimeMicros/1E3)}},vmb=function(a){a&1&&(K(0,"li",11),M(1,"b-note-container",16),L());if(a&2){a=P(2);B();var b;I("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())}},ymb=function(a,b){if(a&1){var c=t();K(0,"div",1)(1,"h3")(2,"a",2);S(3);L();S(4," \u00a0 ");K(5,"span",3);S(6);L()();K(7,"ul")(8,"li",4);M(9,"b-issue-visibility-chip",5);L();K(10,"li",6)(11,"span",7);S(12);L();S(13," \u00a0 ");F(14,omb,4,1);L()();K(15,"div",8)(16,"b-cc-button",9);N("onCc",
function(m){u(c);var r=P();r.location&&m&&r.analytics.trackEvent(r.location+"_issueCard","add","CC");return v()});L();F(17,qmb,1,1);F(18,smb,2,0,"button",10);L();K(19,"ul");F(20,umb,6,4);F(21,vmb,2,4,"li",11);L()()}if(a&2){var d,e,f;a=P();B(2);Jf("aria-label",Gg("Go to issue ",a.issueId));I("href",a.ROUTES.viewIssue.makeHref(a.issueId),Me);B();Ag(a.issueId);B(3);Ag(b.title);B(3);I("issueId",a.issueId);B(2);zg(a.priorityClass(b.priority));B();var g;Ag(a.ISSUE_PRIORITY_TEXT_JS[(g=b.priority)!=null?
g:a.ISSUE_PRIORITY_ENUM.PRIORITY_UNSPECIFIED]);B(2);G((d=b.status)?14:-1,d);B(2);var k;I("issueId",a.issueId)("ccState",wmb(a,(k=b.ccUsers)!=null?k:Jg(16,xmb)));B();G((e=a.issue.aggregatedData)?17:-1,e);B();G(a.childContextId?18:-1);B(2);G((f=a.issue.aggregatedData)?20:-1,f);B();G(a.firstEvent&&iWa(a.firstEvent)?21:-1)}},zmb=function(a){a=a.getIt();return{matchedPatterns:Xm(a,1,Xi())}},Bmb=function(a){if(a&1){var b=t();K(0,"span",12);N("onedevHovercardShown",function(){u(b);var d=P(2);return v(Amb(d))});
S(1);L()}if(a&2){a=P(2);var c=Q(6);I("onedevHovercardTrigger",c)("onedevHovercardActive",a.enableHovercard);B();Ag(a.title)}},Cmb=function(a){a&1&&(K(0,"span",9),S(1),L());a&2&&(a=P(2),B(),Ag(a.title))},Emb=function(a){if(a&1){var b=t();F(0,Bmb,2,3,"span",8)(1,Cmb,2,1,"span",9);K(2,"a",10);N("keydown",function(c){u(b);P();c.key==="Enter"&&c.stopPropagation();return v()})("click",function(c){u(b);var d=P();return v(Dmb(d,c))});M(3,"mat-icon",11);L()}a&2&&(a=P(),G(a.enableHovercard?0:1),B(2),I("routerLink",
"/"+a.link)("target",a.anchorTarget))},Fmb=function(a){a&1&&Xf(0)},Gmb=function(a){a&1&&E(0,Fmb,1,0,"ng-container",13);a&2&&(P(),a=Q(11),I("ngTemplateOutlet",a))},Hmb=function(a,b){a&1&&(K(0,"span",14),S(1),L());if(a&2){zg(b.cssClass);Jf("aria-label",Hg("",b.title," - ",b.tooltip));var c;I("matTooltip",(c=b.tooltip)!=null?c:"");B();Ag(b.title)}},Imb=function(a){a&1&&M(0,"b-issue-card",6);a&2&&(a=P(),I("issueId",a.issue.issueId))},Jmb=function(a){a&1&&(K(0,"p",7),S(1),K(2,"a",15),S(3," Learn more "),
L()());a&2&&(a=P(),B(),T(" ",Ws(a.bannedWordsChecker)," is restricted. Press 'Esc' to cancel or 'Enter' to skip check and save title. "))},Lmb=function(a){if(a&1){var b=t();K(0,"input",17,2);U(2,"async");N("input",function(){u(b);var c=P(2);return v(c.bannedWordsChecker.reset())});Eg("ngModelChange",function(c){u(b);var d=P(2);Dg(d.title,c)||(d.title=c);return v(c)});N("keydown",function(c){u(b);var d=P(2);c.key==="Enter"?(c.stopPropagation(),Kmb(d)):c.key==="Escape"?(c.stopPropagation(),d.bannedWordsChecker.reset(),
d.onCancel.emit()):c.key!=="ArrowLeft"&&c.key!=="ArrowRight"||c.stopPropagation();return v()});L();K(3,"b-button",18);N("onAction",function(){u(b);var c=P(2);return v(Kmb(c))});S(4,"Save");L();K(5,"b-button",19);N("onAction",function(c){u(b);var d=P(2);c.stopPropagation();d.bannedWordsChecker.reset();d.onCancel.emit();return v()});S(6,"Cancel");L()}a&2&&(a=P(2),yg("banned-words-warning",W(2,6,a.bannedWordsChecker.showWarning$)),I("bFocus",!0),Cg("ngModel",a.title),B(3),I("disabled",!a.title||a.savingTitle),
B(2),I("disabled",a.savingTitle))},Mmb=function(a){if(a&1){var b=t();K(0,"a",20);N("keydown",function(d){u(b);P(2);d.key==="Enter"&&d.stopPropagation();return v()})("click",function(d){u(b);var e=P(2);return v(Dmb(e,d))})("onedevHovercardShown",function(){u(b);var d=P(2);return v(Amb(d))});S(1);L()}if(a&2){a=P(2);var c=Q(6);I("routerLink","/"+a.link)("target",a.anchorTarget)("onedevHovercardTrigger",c)("onedevHovercardActive",a.enableHovercard);B();Ag(a.title)}},Nmb=function(a){a&1&&F(0,Lmb,7,8)(1,
Mmb,2,5,"a",16);a&2&&(a=P(),G(a.isEditMode?0:1))},Omb=function(a,b){a&1&&(K(0,"div",19)(1,"div",20),S(2,"CURRENT ISSUE"),L(),K(3,"div",21),S(4),L()());a&2&&(B(4),T(" ",(b==null?null:b.snapshot)[0].title," "))},Pmb=function(a){a&1&&(F(0,Omb,5,1,"div",19),U(1,"async"));if(a&2){var b;a=P();G((b=W(1,1,a.currentIssue$))?0:-1,b)}},Qmb=function(a){a&1&&M(0,"mat-icon",22)},Rmb=function(a){a&1&&M(0,"mat-icon",23)},Smb=function(a,b){a&1&&F(0,Qmb,1,0,"mat-icon",22)(1,Rmb,1,0,"mat-icon",23);a&2&&(a=P(),G(b===
a.SearchSource.SEMANTIC_SEARCH?0:1))},Umb=function(a){if(a&1){var b=t();K(0,"mat-chip-listbox",38)(1,"mat-chip-option",39,4);N("keydown.enter",function(){u(b);var d=Q(2);return v(d.openMenu())})("keyup.space",function(){u(b);var d=Q(2);return v(d.openMenu())})("menuOpened",function(){u(b);var d=P(5);return v(Tmb(d))});K(3,"span");S(4);L();M(5,"mat-icon",37);L()()}if(a&2){P(2);a=Q(11);var c=P(3);I("selectable",!1);B();I("matMenuTriggerFor",a);B(3);Ag(c.selectedScopeFilter.displayAs.replace("Component: ",
""))}},Wmb=function(a){if(a&1){var b=t();K(0,"mat-chip-listbox",35)(1,"mat-chip-option",36,3);N("keydown.enter",function(){u(b);var d=Q(2);return v(d.openMenu())})("keyup.space",function(){u(b);var d=Q(2);return v(d.openMenu())});K(3,"span");S(4);L();M(5,"mat-icon",37);L()();F(6,Umb,6,3,"mat-chip-listbox",38)}if(a&2){P();a=Q(8);var c=P(3);I("selectable",!1);B();I("matMenuTriggerFor",a);B(3);Ag(Vmb(c.selectedScopeFilter.displayAs));B(2);G(c.selectedScopeFilter.displayAs.startsWith("Component:")?6:
-1)}},Ymb=function(a){if(a&1){var b=t();K(0,"button",42);N("click",function(){u(b);var c=P(5);return v(Xmb(c,c.componentFilter))});M(1,"mat-icon",43);S(2);L()}a&2&&(a=P(5),I("matTooltip",a.componentFilter.tooltip||""),B(),yg("invisible",a.componentFilter!==a.selectedScopeFilter),B(),T(" ",a.componentFilter.displayAs," "))},Zmb=function(a){if(a&1){var b=t();K(0,"button",44);N("click",function(){u(b);var c=P(5);return v(Xmb(c,c.teamFilter))});M(1,"mat-icon",43);S(2);L()}a&2&&(a=P(5),I("matTooltip",
a.teamFilter.tooltip||""),B(),yg("invisible",a.teamFilter!==a.selectedScopeFilter),B(),T(" ",a.teamFilter.displayAs," "))},$mb=function(a){a&1&&(F(0,Ymb,3,4,"button",40),F(1,Zmb,3,4,"button",41));a&2&&(a=P(4),G(a.componentFilter?0:-1),B(),G(a.teamFilter?1:-1))},bnb=function(a){if(a&1){var b=t();K(0,"div",46)(1,"b-team-component-picker",47);N("selectedComponentChange",function(c){u(b);var d=P(5);return v(d.selectedComponent=c)});L()();K(2,"div",48)(3,"button",49);N("click",function(){u(b);var c=P(5);
return v(anb(c,c.selectedComponent))});S(4," Choose ");L();K(5,"button",50);N("click",function(){u(b);P(5).trigger.closeMenu();return v()});S(6," Cancel ");L()()}a&2&&(a=P(5),B(),I("selectedComponent",a.selectedComponent)("placeholder","Search for a component")("shouldFocus",!0)("isRequired",!0),B(2),I("disabled",!a.selectedComponent))},cnb=function(a){if(a&1){var b=t();K(0,"div",45);N("click",function(c){u(b);return v(c.stopPropagation())})("keydown.tab",function(c){u(b);return v(c.stopPropagation())})("keydown.shift.tab",
function(c){u(b);return v(c.stopPropagation())});F(1,bnb,7,5);L()}a&2&&(a=P(4),B(),G(a.componentFilter?1:-1))},dnb=function(a){if(a&1){var b=t();K(0,"button",51);N("click",function(){u(b);var c=P(4);return v(c.openLearnMore())});M(1,"mat-icon",52);L()}},fnb=function(a){if(a&1){var b=t();K(0,"div")(1,"div",13)(2,"mat-chip-listbox",24);N("change",function(c){u(b);var d=P(3);return v(d.openFilterChanged(c.value))});K(3,"mat-chip-option",25)(4,"span",26);S(5);L()()();F(6,Wmb,7,4);K(7,"mat-menu",27,1);
E(9,$mb,2,2,"ng-template",28);L();K(10,"mat-menu",29,2);E(12,cnb,2,1,"ng-template",28);L();K(13,"mat-chip-listbox",30);N("change",function(){u(b);var c=P(3);return v(enb(c))});K(14,"mat-chip-option",31);U(15,"async");K(16,"span",32);S(17);L()()()();K(18,"div",13)(19,"button",33);N("click",function(){u(b);var c=P(3);c.showFiltersSubject.next(!c.showFiltersSubject.value);return v()});S(20," Remove scope filter ");L();F(21,dnb,2,0,"button",34);L()()}a&2&&(a=P(3),B(3),I("selected",a.selectedFilters$.has(a.openFilter))("value",
a.openFilter),B(),I("matTooltip",a.openFilter.tooltip||""),B(),T(" ",a.openFilter.displayAs," "),B(),G(a.selectedScopeFilter?6:-1),B(8),I("selected",W(15,8,a.includeDescendants$)),B(3),T(" Include sub-",a.selectedScopeFilter===a.componentFilter?"components":"teams"," "),B(4),G(a.isInternalSession?21:-1))},gnb=function(a,b){a&1&&F(0,fnb,22,10,"div");a&2&&(a=P(2),G(b===a.SearchSource.SEMANTIC_SEARCH&&a.tableDataSource!==a.TableDataSource.ISSUE_IDS?0:-1))},hnb=function(a){a&1&&(F(0,gnb,1,1),U(1,"async"));
if(a&2){var b;a=P();G((b=W(1,1,a.selectedSearchSource$))?0:-1,b)}},inb=function(a){if(a&1){var b=t();K(0,"button",51);N("click",function(){u(b);var c=P(2);return v(c.openLearnMore())});M(1,"mat-icon",52);L()}},jnb=function(a){if(a&1){var b=t();K(0,"div",13)(1,"button",33);N("click",function(){u(b);var c=P();c.showFiltersSubject.next(!c.showFiltersSubject.value);return v()});S(2," Add scope filter ");L();F(3,inb,2,0,"button",34);L()}a&2&&(a=P(),B(3),G(a.isInternalSession?3:-1))},knb=function(a){a&
1&&M(0,"ai-spinner",53);a&2&&I("large",!0)},lnb=function(a){a&1&&M(0,"ai-spinner",54)},mnb=function(a){a&1&&M(0,"b-spinner",55)},nnb=function(a){a&1&&(K(0,"div",14),F(1,knb,1,1,"ai-spinner",53),U(2,"async"),Mf(3,lnb,1,0,"ai-spinner",54)(4,mnb,1,0,"b-spinner",55),L());a&2&&(a=P(),B(),G(a.searchText$.value?a.searchText$.value&&W(2,1,a.selectedSearchSource$)===a.SearchSource.SEMANTIC_SEARCH?3:4:1))},onb=function(a){a&1&&(K(0,"b-callout",56)(1,"b-callout-body"),S(2," This issue was suggested by AI! Save time by exploring the suggestions first next time. "),
K(3,"a",60),S(4,"Learn more"),L()()())},pnb=function(a){a&1&&(K(0,"h3",57),M(1,"mat-icon",61),S(2," Possible duplicates "),L())},qnb=function(a){a&1&&(K(0,"th",80)(1,"span",81),S(2,"Selection"),L()())},rnb=function(a,b){a&1&&(K(0,"td",82),M(1,"mat-radio-button",83),U(2,"async"),L());a&2&&(a=b.$implicit,b=P(3),B(),I("checked",W(2,3,Cs(b.selectedIssues,a.issueId))),If("aria-label",a.snapshot[0].title),I("value",a.issueId))},snb=function(a){a&1&&(K(0,"th",80),S(1," Title "),L())},tnb=function(a,b){a&
1&&(K(0,"td",82),M(1,"b-issue-title-cell",84),L());a&2&&(a=b.$implicit,b=P(3),B(),I("issue",a)("issueUrlFactory",b.issueUrlFactory)("useButtonToNavigate",!0)("enableHovercard",!0))},unb=function(a){a&1&&(K(0,"th",80),S(1," Id "),L())},vnb=function(a,b){a&1&&(K(0,"td",82),M(1,"b-issue-id-cell",85),L());a&2&&(a=b.$implicit,B(),I("id",a.issueId))},wnb=function(a){a&1&&(K(0,"th",80),S(1," Priority "),L())},xnb=function(a,b){a&1&&(K(0,"td",82),M(1,"b-issue-priority-cell",86),L());a&2&&(a=b.$implicit,B(),
I("issue",a))},ynb=function(a){a&1&&(K(0,"th",87),S(1," Status "),L())},znb=function(a,b){a&1&&(K(0,"td",82),M(1,"b-issue-status-cell",86),L());a&2&&(a=b.$implicit,B(),I("issue",a))},Anb=function(a){a&1&&(K(0,"th",80),S(1," Dupes "),L())},Bnb=function(a,b){a&1&&(K(0,"td",88),S(1),L());if(a&2){a=b.$implicit;B();var c;T(" ",(c=a.snapshot[0].duplicateIssueId==null?null:a.snapshot[0].duplicateIssueId.length)!=null?c:0," ")}},Cnb=function(a){a&1&&(K(0,"th",89)(1,"span",81),S(2,"Votes"),L(),M(3,"mat-icon",
90),L())},Dnb=function(a,b){a&1&&(K(0,"td",88),S(1),L());a&2&&(a=b.$implicit,B(),T(" ",a.aggregatedData.voteCount," "))},Enb=function(a){a&1&&(K(0,"th",91),S(1," Created "),L())},Fnb=function(a,b){a&1&&(K(0,"td",82),M(1,"b-issue-created-time-cell",92),L());a&2&&(a=b.$implicit,B(),I("issue",a))},Gnb=function(a){a&1&&M(0,"tr",93)},Hnb=function(a,b){if(a&1){var c=t();K(0,"tr",94);N("keydown",function(d){var e=u(c),f=e.$implicit;e=e.index;var g=P(3);return v(g.onRowKeydown(e,f,d))})("keydown.enter",function(){var d=
u(c).$implicit,e=P(3);return v(e.selectIssue(d.issueId))})("focusin",function(){var d=u(c).$implicit,e=P(3);return v(Xs(e.focusManager,d))})("click",function(){var d=u(c),e=d.$implicit;d=d.index;var f=P(3);f.selectIssue(e.issueId);return v(f.focusManager.setActiveItem(d))});L()}a&2&&I("row",b.$implicit)},Jnb=function(a){if(a&1){var b=t();K(0,"table",62);N("contentChanged",function(){u(b);var d=P(),e=P();return v(Inb(e,d))});Vf(1,63);E(2,qnb,3,0,"th",64);K(3,"mat-radio-group",65);N("change",function(d){u(b);
var e=P(2);return v(e.selectIssue(d.value))});E(4,rnb,3,5,"td",66);L();Wf();Vf(5,67);E(6,snb,2,0,"th",64)(7,tnb,2,4,"td",66);Wf();Vf(8,68);E(9,unb,2,0,"th",64)(10,vnb,2,1,"td",66);Wf();Vf(11,69);E(12,wnb,2,0,"th",64)(13,xnb,2,1,"td",66);Wf();Vf(14,70);E(15,ynb,2,0,"th",71)(16,znb,2,1,"td",66);Wf();Vf(17,72);E(18,Anb,2,0,"th",64)(19,Bnb,2,1,"td",73);Wf();Vf(20,74);E(21,Cnb,4,0,"th",75)(22,Dnb,2,1,"td",73);Wf();Vf(23,76);E(24,Enb,2,0,"th",77)(25,Fnb,2,1,"td",66);Wf();E(26,Gnb,1,0,"tr",78)(27,Hnb,1,
1,"tr",79);L()}if(a&2){a=P();var c=P();I("dataSource",a)("trackBy",c.trackByIssueId);B(26);I("matHeaderRowDef",c.tableColumns);B();I("matRowDefColumns",c.tableColumns)}},Knb=function(a){a&1&&(K(0,"div",59)(1,"span",95),S(2,"No results found"),L()())},Lnb=function(a,b){a&1&&(K(0,"div",15),F(1,onb,5,0,"b-callout",56),F(2,pnb,3,0,"h3",57),F(3,Jnb,28,4,"table",58),F(4,Knb,3,0,"div",59),L());a&2&&(a=P(),B(),G(a.isPasteResultInSuggestion?1:-1),B(),G(a.searchText$.value||a.isLoading?-1:2),B(),G(!a.isLoading&&
b&&b.length?3:-1),B(),G(a.isLoading||(b==null?null:b.length)!==0?-1:4))},Mnb=function(a){if(a&1){var b=t();K(0,"button",4);N("click",function(c){u(b);var d=P();d.expansionChange.emit();c.stopPropagation();d.issueTitleCell.bannedWordsChecker.reset();return v()});M(1,"b-icon",5);L()}a&2&&(a=P(),yg("collapsed",!a.expanded),Jf("aria-label",a.expanded?"Collapse children":"Expand children"))},Nnb=function(a){a&1&&M(0,"div",2)},Onb=function(a){a&1&&M(0,"mat-icon",1);a&2&&(a=P(),I("svgIcon",a.icon))},Pnb=
function(a){if(a&1){var b=t();M(0,"b-signal-chip",3);K(1,"button",4);N("click",function(c){u(b);var d=P();c.preventDefault();c.stopPropagation();return v(d.dismissAlert())})("mousedown",function(){u(b);var c=P();return v(c.dismissAlert())});M(2,"mat-icon",5);L()}a&2&&(P(),a=dg(1),I("chipColor",a.chipColor)("displayText",a.displayAs)("tooltip",a.tooltip))},Rnb=function(a){a&1&&(K(0,"div",2),S(1),L());if(a&2){a=P();var b=Q(5);I("xapInlineDialog",b);B();T(" +",Qnb(a).slice(1).length," ")}},Snb=function(a,
b){if(a&1){var c=t();K(0,"div",6);M(1,"b-signal-chip",3);K(2,"button",4);N("click",function(d){u(c);var e=P(2);d.preventDefault();d.stopPropagation();return v(e.dismissAlert())})("mousedown",function(){u(c);var d=P(2);return v(d.dismissAlert())});M(3,"mat-icon",7);L()()}a&2&&(a=b.$implicit,B(),I("chipColor",a.chipColor)("displayText",a.displayAs)("tooltip",a.tooltip))},Tnb=function(a){a&1&&(K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content"),Pf(2,Snb,4,3,"div",6,Nf),L()());a&2&&(a=P(),B(2),Qf(Qnb(a).slice(1)))},
Unb=function(a){a&1&&(K(0,"b-person-hovercard",1),S(1),L());a&2&&(a=P(),I("email",a.assignee),B(),T(" ",a.assignee," "))},Vnb=function(a){a&1&&M(0,"b-team-display",1);a&2&&(a=P(),I("teamId",a.teamId)("componentId",a.componentId)("anchorLinkEnabled",!1))},Wnb=function(a,b){a&1&&M(0,"b-user-image",0);a&2&&I("email",b)},Xnb=function(a){if(a&1){var b=t();K(0,"button",2);N("click",function(){u(b);var c=P();return v(c.claim())})("mousedown",function(){u(b);var c=P();return v(c.claim())});S(1," Claim ");
L()}},Ynb=function(a){a&1&&(Vf(0),S(1),U(2,"enumToHuman"),Wf());a&2&&(a=P(),B(),Ag(W(2,1,a.type)))},Znb=function(a,b){a&1&&(K(0,"span",1),S(1),L());a&2&&(I("matTooltip",b),B(),T(" ",b," "))},$nb=function(a){a&1&&(K(0,"b-person-hovercard",1),S(1),L());a&2&&(a=P(),I("email",a.reporter),B(),T(" ",a.reporter," "))},aob=function(a,b){a&1&&(Sf(0,"div",1,0),gg(2),Tf());a&2&&(a=b.id,b=P(),zg(b._classList),yg("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"),Rf("id",b.id),Jf("aria-label",b.ariaLabel||null)("aria-labelledby",b._getPanelAriaLabelledby(a)))},bob=function(a){a&1&&(K(0,"div")(1,"div",10),S(2," An issue cannot reference itself. "),L()())},cob=function(a){a&1&&(K(0,"mat-option",7)(1,"div",11),M(2,"b-spinner",12),L()());a&2&&(B(2),I("large",!0))},dob=function(a){a&1&&(K(0,"mat-option",8),S(1," No issues found. "),L())},
eob=function(a){a&1&&M(0,"mat-icon",14);if(a&2){a=P().$implicit;var b=P(),c;I("svgIcon",(c=b.STATUS_ICON.get(a.status))!=null?c:"")}},fob=function(a){a&1&&M(0,"b-issue-card",21,2);if(a&2){a=Q(1);var b=P().$implicit;I("onedevIsHovercardReady",a.init)("issueId",b.resourceId)}},hob=function(a,b){if(a&1){var c=t();K(0,"mat-option",9)(1,"div",13);F(2,eob,1,1,"mat-icon",14);K(3,"strong",15);S(4);L();K(5,"onedev-hovercard",null,1);E(7,fob,2,2,"b-issue-card",16);L();K(8,"a",17);N("click",function(e){u(c);
return v(e.stopPropagation())});M(9,"mat-icon",18);L();K(10,"span",19);S(11);L();M(12,"div",20);U(13,"boldPrefixMatches");L()()}if(a&2){a=b.$implicit;b=Q(6);var d=P();I("value",a);B();Jf("aria-label",a.resourceId+", "+a.displayText+", click ALT RightArrow to open the issue in a new tab.");B();G(a.status?2:-1);B();I("title",Fg(a.resourceId));B();T(" ",a.resourceId," ");B(4);I("onedevHovercardTrigger",b)("href",d.getIssueLink(a),Me);B(3);Ag(gob(a));B();I("title",Fg(a.displayText))("innerHTML",Ng(13,
12,a.displayText,d.query),Le)}},iob=function(a,b){a&1&&(K(0,"a",11),S(1),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;I("href",Gg("issues/",a.resourceId),Me);B();Bg(" ",a.resourceId,"",c===b-1?"":","," ")}},job=function(a){a&1&&(K(0,"div",3),Pf(1,iob,2,4,"a",11,Of),L());a&2&&(a=P(),B(),Qf(a.selectedIssues))},kob=function(a){a&1&&(K(0,"div",3)(1,"a",12)(2,"span",13),S(3),L(),K(4,"span"),M(5,"mat-icon",14),L()()());a&2&&(a=P(),B(),I("href",Gg("issues/",a.selectedIssues[0].resourceId),Me),B(2),
T(" ",a.selectedIssues[0].displayText," "))},mob=function(a){if(a&1){var b=t();K(0,"div",6)(1,"div",15);N("click",function(){u(b);var c=P();return v(lob(c))})("keyup.space",function(){u(b);var c=P();return v(lob(c))});L()()}a&2&&(a=P(),B(),I("matTooltip",a.isQueryRestricted?"Searching in current component tree":"Click to search in current component tree"),Jf("aria-checked",a.isQueryRestricted))},nob=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("bf`"+a);}},oob=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(),B(),T("Retain ",a.resource," as long as issue?"))},pob=function(a){a&1&&(K(0,"span"),S(1,"Apply component retention settings?"),L())},qob=function(a){a&1&&(K(0,"span")(1,"p"),S(2),L(),K(3,"p")(4,"b"),S(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."),
L(),M(6,"br"),S(7," Before selecting this option, you should make sure that Legal and Privacy have approved this non-standard retention period."),L()());a&2&&(a=P(),B(2),T("Are you sure you want to override any component retention settings, and retain this ",a.resource," as long as issue?"))},rob=function(a){a&1&&(K(0,"span")(1,"p"),S(2),L()());a&2&&(a=P(),B(2),Bg("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."))},
sob=function(a){if(a&1){var b=t();K(0,"mat-checkbox",8);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.acknowledgeToMatchIssueRetention,c)||(d.acknowledgeToMatchIssueRetention=c);return v(c)});S(1," I acknowledge ");L()}a&2&&(a=P(),Cg("ngModel",a.acknowledgeToMatchIssueRetention))},tob=function(){var a=Math.random;this.initialMaxDelayMs_=500;this.maxDelayMs_=512E3;this.random_=a;this.reset()},uob=function(a){return new Ys(a)},vob=function(a){a=a instanceof Ys?a:new Ys(a);return a.value===null||
a.value instanceof Zs?a:new Ys(a.value,!0)},wob=function(a){return{queryParams:a.getQueryParameters(),extraHeaders:a.getHeaders(),withCredentials:a.usesCredentialedRequests()}},Bob=function(a){if(a.oauthTokens){var b=a.oauthTokens;return ee(b).then(function(c){c=new Xj(c);b.subscribe(c);return new xob(c)})}return a.apiKey?a.bearerTokens?Promise.resolve(new yob(a.apiKey,a.bearerTokens)):a.appAuthTokens?Promise.resolve(new zob(a.apiKey)):Promise.resolve(new Aob(a.apiKey,a.authUser)):Promise.reject(Error("jf"))},
Cob=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}},Dob=function(a){return{send:function(b,c,d,e,f,g,k){var m=new $s(a);m.listen("complete",c);m.listenOnce("ready",function(){m.dispose()});g&&(m.timeoutInterval_=Math.max(0,g));k&&(m.withCredentials_=k);m.send(b,d,e,f);return m}}},Fob=function(){return Eob=
Eob||new Aj},Gob=function(a){at.call(this,"serverreachability",a)},Hob=function(a){var b=Fob();b.dispatchEvent(new Gob(b,a))},Iob=function(a,b){at.call(this,"statevent",a);this.stat=b},bt=function(a){var b=Fob();b.dispatchEvent(new Iob(b,a))},Job=function(a,b,c){at.call(this,"timingevent",a);this.size=b;this.rtt=c},Kob=function(a,b,c){var d=Fob();d.dispatchEvent(new Job(d,a,b,c))},Lob=function(a,b){if(typeof a!=="function")throw Error("kf");return ra.setTimeout(function(){a()},b)},ct=function(){this.redactEnabled_=
!0},dt=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 Pi(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 Mob},Nob=function(a,b){var c=new ct;c.debug("TestLoadImage: loading "+a);if(ra.Image){var d=new Image;d.onload=et(ft,c,"TestLoadImage: loaded",!0,b,d);d.onerror=et(ft,c,"TestLoadImage: error",!1,b,d);d.onabort=et(ft,c,"TestLoadImage: abort",!1,b,d);d.ontimeout=et(ft,c,"TestLoadImage: timeout",!1,b,d);ra.setTimeout(function(){if(d.ontimeout)d.ontimeout()},
1E4);d.src=a}else b(!1)},Oob=function(a,b){var c=new ct,d=new AbortController,e=setTimeout(function(){d.abort();ft(c,"TestPingServer: timeout",!1,b)},1E4);fetch(a,{signal:d.signal}).then(function(f){clearTimeout(e);f.ok?ft(c,"TestPingServer: ok",!0,b):ft(c,"TestPingServer: server error",!1,b)}).catch(function(){clearTimeout(e);ft(c,"TestPingServer: error",!1,b)})},ft=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){}},Qob=function(){this.parser_=
new Pob},Rob=function(a,b,c){return c&&c.internalChannelParams?c.internalChannelParams[a]||b:b},gt=function(a){this.serverVersion_=0;this.outgoingMaps_=[];this.channelDebug_=new ct;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_=Rob("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_=Rob("baseRetryDelayMs",5E3,a);this.retryDelaySeedMs_=Rob("retryDelaySeedMs",1E4,a);this.forwardChannelMaxRetries_=Rob("forwardChannelMaxRetries",2,a);this.forwardChannelRequestTimeoutMs_=
Rob("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 Sob(a&&a.concurrentRequestLimit);this.maxMapsPerRequest_=Math.min(a&&a.maxMessagesPerRequest||1E3,1E3);this.wireCodec_=new Qob;
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},Tob=function(){},Uob=function(a){return new Sd(function(b){var c=ht(function(){b.next({});b.complete()},a);return function(){ra.clearTimeout(c)}})},Vob=function(a){return(new it).setName(a)},
$ob=function(a){var b=new jt;a=l(a.parts);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=new Wob;if(d.value===null){d=c;var e=new Xob;op(d,13,kt,e)}else d.value instanceof lt?d.isDecreasing?(d=d.value.toString(),ip(c,4,kt,d==null?d:Fb(d,void 0))):(d=d.value.toString(),ip(c,2,kt,d==null?d:Fb(d,void 0))):typeof d.value==="string"?d.isDecreasing?Vo(c,3,kt,d.value):Vo(c,1,kt,d.value):typeof d.value==="number"?d.isDecreasing?BYa(c,9,kt,d.value):BYa(c,10,kt,d.value):d.value instanceof Uint8Array?
d.isDecreasing?ip(c,5,kt,db(d.value,!1,!0)):ip(c,7,kt,db(d.value,!1,!0)):d.value instanceof Yob?d.isDecreasing?(e=c,d=Zob(d.value),op(e,11,kt,d)):(e=c,d=Zob(d.value),op(e,12,kt,d)):d.value instanceof Zs&&(c=d.value.rep);b.addParts(c)}return b},epb=function(a,b){if(a instanceof mt)return b.getPartsList().length>0?null:apb.apply(mt,n(a.parts));a=Array.of.apply(Array,n(a.root.parts));b=l(b.getPartsList());for(var c=b.next();!c.done;c=b.next())switch(c=c.value,Oo(c,kt)){case 4:a.push(vob(nt(bpb(c,4))));
break;case 2:a.push(uob(nt(bpb(c,2))));break;case 8:case 10:case 6:case 9:a.push(new Ys(new Zs(c)));break;case 3:a.push(vob(Cr(c,3,kt)));break;case 1:a.push(uob(Cr(c,1,kt)));break;case 7:var d=void 0;a.push(uob((d=cpb(c,7))==null?void 0:iva(d)));break;case 5:d=void 0;a.push(vob((d=cpb(c,5))==null?void 0:iva(d)));break;case 12:c=dpb(lm(c,nj,12,kt));if(c===null)return null;a.push(new Ys(c));break;case 11:c=dpb(lm(c,nj,11,kt));if(c===null)return null;a.push(vob(c));break;case 13:a.push(new Ys(null));
break;case 0:a.push(new Ys(new Zs(c)));break;default:return null}return apb.apply(mt,n(a))},pt=function(a){return{firstPartyUri:new ot("https://"+a+"-signaler-pa.clients6.google.com/punctual"),thirdPartyUri:new ot("https://"+a+"-signaler-pa.googleapis.com/punctual"),addDomainPrefix:!1}},qt=function(a,b){return{firstPartyUri:new ot("https://"+a+"-dynamite-"+b+"-signaler-pa.clients6.google.com/punctual"),thirdPartyUri:new ot("https://"+a+"-dynamite-"+b+"-signaler-pa.googleapis.com/punctual"),addDomainPrefix:!0}},
fpb=function(a){a&1&&(K(0,"div",6)(1,"div",11),M(2,"mat-icon",12),S(3," Literal Mode "),L(),K(4,"span"),S(5,"No formatting or linkification will be performed.\u00a0"),L(),K(6,"a",13),S(7,"Learn more"),L()())},gpb=function(a){a&1&&(K(0,"div",7)(1,"div",14),S(2," Warning: Mentions are not supported without edit access. "),L()())},ipb=function(a){if(a&1){var b=t();K(0,"input",15,2);N("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P(2);if(c.length>0){var e;if((e=d.hiddenInputRef)==null?
0:e.nativeElement){e=c[0].result().getPrimaryTarget().getValue();c=d.autocompleteLogic;e="@"+e+" ";c.findWordAroundCursor();if(hpb(c,c.wordInfo.word)){var f=c.getTextarea();f.setRangeText(e,c.wordInfo.wordStart,c.wordInfo.wordEnd);f.selectionStart=c.wordInfo.wordStart+e.length;f.selectionEnd=c.wordInfo.wordStart+e.length;f.dispatchEvent(new Event("input"))}d.autocompleteLogic.taggingInProgress.next(!1);d.focusOnComponent()}}return v()});L()}a&2&&(a=P(2),I("peoplekitAutocompleteConfig",a.getConfig())("peoplekitSearchSessionOptions",
a.sessionOptions)("peoplekitAutocompleteInputSearchDelay",0))},jpb=function(a){a&1&&E(0,ipb,2,3,"ng-template",9);a&2&&(a=P(),I("refreshable",a.refresh$))},kpb=function(a){a&1&&M(0,"div",10,3)},lpb=function(a){a&1&&Xf(0)},mpb=function(a){a&1&&Xf(0)},npb=function(a){a&1&&(K(0,"p",2),S(1," Editing comments will not permanently remove old ones from database history. "),M(2,"br"),S(3," For deletion of PII or other sensitive content, please "),K(4,"a",10),S(5," file a support request."),L()());a&2&&(a=
P(),B(4),I("href",a.contentRemovalRequestLink,Me))},opb=function(a){a&1&&(K(0,"p",4),S(1),K(2,"a",11),S(3," Learn more "),L()());a&2&&(a=P(),B(),T(" Your comment contains restricted words: ",Ws(a.bannedWordsChecker),". Review your comment before posting. "))},ppb=function(a){a&1&&M(0,"b-live-preview",6);a&2&&(a=P(),I("comment",a.dataDraft.text)("issueId",a.dataDraft.issueId)("audience",a.dataDraft.audience)("formattingMode",a.dataDraft.formattingMode))},qpb=function(a){if(a&1){var b=t();K(0,"section")(1,
"div",12)(2,"b-recaptcha",13);N("onUpdate",function(c){u(b);var d=P();return v(d.recaptchaResponse=c)});L()()()}},rpb=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]}}},spb=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(n(e.relations),n(d.relations))}else c.set(d.resourceId,
d),b.push(d);return b},tpb=function(a,b){a&1&&M(0,"mat-icon",5);a&2&&(I("svgIcon",b.icon)("matTooltip",b.tooltip),Jf("aria-label",b.tooltip))},upb=function(a){a&1&&(Vf(0),S(1,"\u2026 >"),Wf())},vpb=function(a){a&1&&(Vf(0),S(1,"\u2026"),Wf())},wpb=function(a){if(a&1){var b=t();K(0,"a",11);N("click",function(){u(b);var c=P(4);return v(c.compactMode$.next(!1))});K(1,"span",12);F(2,upb,2,0,"ng-container");F(3,vpb,2,0,"ng-container");L()()}a&2&&(a=P().$implicit,B(2),G(a.isSpliced?2:-1),B(),G(a.isTruncated?
3:-1))},xpb=function(a){a&1&&S(0);a&2&&(a=P(5),T(" ",a.displayValueOverride," "))},ypb=function(a){a&1&&(K(0,"a",14),S(1),L());if(a&2){a=P(2).$implicit;var b=Q(5);yg("muted",a.name==a.id);I("routerLinkObj",a.route)("onedevHovercardTrigger",b);B();Ag(a.name)}},zpb=function(a){a&1&&F(0,xpb,1,1)(1,ypb,2,5,"a",13);a&2&&(a=P(4),G(a.displayValueOverride?0:1))},Apb=function(a){a&1&&S(0);a&2&&(a=P(5),T(" ",a.displayValueOverride," "))},Bpb=function(a){a&1&&(K(0,"span",16),S(1),L());a&2&&(a=P(2).$implicit,
yg("muted",a.name==a.id),B(),Ag(a.name))},Cpb=function(a){a&1&&F(0,Apb,1,1)(1,Bpb,2,3,"span",15);a&2&&(a=P(4),G(a.displayValueOverride?0:1))},Dpb=function(a){a&1&&S(0," > ")},Epb=function(a){a&1&&(Vf(0),M(1,"b-component-path-card",17,1),Wf());if(a&2){a=Q(2);var b=P().$implicit;B();I("onedevIsHovercardReady",a.init)("componentId",b.id)}},Fpb=function(a,b){a&1&&(F(0,wpb,4,2,"a",9),F(1,zpb,2,1)(2,Cpb,2,1),F(3,Dpb,1,0),K(4,"onedev-hovercard",null,0),E(6,Epb,3,2,"ng-container",10),L());if(a&2){a=b.$implicit;
var c=b.$index;b=b.$count;var d=P(3);G(a.isSpliced||a.isTruncated?0:-1);B();G(d.linkifyComponentNames?1:2);B(2);G(c!==b-1?3:-1)}},Hpb=function(a,b){a&1&&(K(0,"span",6),Pf(1,Fpb,7,3,null,null,Gpb),L());a&2&&(B(),Qf(b))},Ipb=function(a){a&1&&(K(0,"span"),S(1,"[Archived]"),L())},Jpb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(2);return v(c.startEdit())});M(1,"mat-icon",19);L()}},Kpb=function(a){a&1&&(K(0,"a",8),U(1,"async"),M(2,"mat-icon",20),L());if(a&2){var b;a=
P(2);I("routerLinkObj",a.popoutLink((b=W(1,1,a.component$))==null?null:b.componentId))}},Lpb=function(a){a&1&&(K(0,"b-async-data-placeholder",2),U(1,"async"),K(2,"div",4),U(3,"async"),U(4,"async"),F(5,tpb,1,3,"mat-icon",5),U(6,"async"),F(7,Hpb,3,0,"span",6),U(8,"async"),F(9,Ipb,2,0,"span"),U(10,"async"),F(11,Jpb,2,0,"button",7),F(12,Kpb,3,3,"a",8),L()());if(a&2){var b,c;a=P();I("isReady",W(1,10,a.isReady$));B(2);yg("public",W(3,12,a.showPublicIndicator$))("partner",W(4,14,a.showPartnerIndicator$));
B(3);G((b=W(6,16,a.folder$))?5:-1,b);B(2);G((c=W(8,18,a.componentPath$))?7:-1,c);B(2);G(W(10,20,a.isArchived$)?9:-1);B(2);G(a.readOnly?-1:11);B();G(a.popoutLink?12:-1)}},Npb=function(a){if(a&1){var b=t();K(0,"b-team-component-picker",21);U(1,"async");N("selectedComponentChange",function(c){u(b);var d=P();return v(Mpb(d,c))})("dropdownClosed",function(){u(b);var c=P();return v(Mpb(c))});L()}a&2&&(a=P(),I("selectedComponent",W(1,5,a.component$))("isRequired",!0)("shouldFocus",!0)("showOverlayAbove",
a.showPickerOverlayAbove)("issueId",a.issueId))},Qpb=function(a){for(var b=l(Opb),c=b.next();!c.done;c=b.next())if(c=c.value,c.accessLevel===a)return c.title;return Ppb.title},Rpb=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P(),I("matTooltip",a.disabledDropdownTooltip))},Spb=function(a,b){if(a&1){var c=t();K(0,"button",10);N("click",function(){var d=u(c).$implicit,e=P();e.selectedDisplay$.next(d);e.updatedAccessLimitLevel.emit(d.accessLevel);return v()});K(1,"div",11);M(2,"mat-icon",12);K(3,"span",
13);S(4);L()();K(5,"div",14);S(6);L()()}a&2&&(a=b.$implicit,b=P(),B(2),I("svgIcon",a.icon),B(2),T(" ",a.title," "),B(2),T(" ",b.implicitAccessEnabled?a.descriptionWithExpandedAccess:a.descriptionNoExpandedAccess," "))},Upb=function(a,b){if(a&1){var c=t();K(0,"mat-checkbox",19);N("click",function(d){u(c);return v(d.stopPropagation())})("change",function(d){var e=u(c).$implicit,f=P(2);e=e.value.user;d=d.source.checked;var g=f.collaboratorGroupsEmailToDetailsMap.get(e.emailAddress).specifiedOnIssue;
d?(g||f.addedCollaboratorGroups.add(e),f.removedCollaboratorGroups.delete(e)):(g&&f.removedCollaboratorGroups.add(e),f.addedCollaboratorGroups.delete(e));var k;Tpb(f,(k=f.updatedAccessLimitLevel$.getValue())!=null?k:f.defaultAccessLimitLevel);return v()});S(1);L()}a&2&&(a=b.$implicit,I("id",a.key)("name",a.key)("checked",a.value.specifiedOnIssue),B(),T(" ",a.key," "))},Vpb=function(a){a&1&&(K(0,"div")(1,"span",16),S(2,"Add collaborator groups"),L(),M(3,"mat-icon",7),L(),K(4,"div",17),Pf(5,Upb,2,4,
"mat-checkbox",18,Of),U(7,"keyvalue"),L());a&2&&(a=P(),B(3),I("matTooltip",Fg(a.COLLABORATOR_GROUPS_TOOLTIP)),B(2),Qf(W(7,2,a.collaboratorGroupsEmailToDetailsMap)))},Xpb=function(a){if(a&1){var b=t();K(0,"button",20);N("click",function(){u(b);var c=P();return v(c.onPressCancel())});S(1," Cancel ");L();K(2,"button",21);U(3,"async");N("click",function(){u(b);var c=P();return v(c.onPressSave())});S(4," Save ");L()}a&2&&(a=P(),B(2),I("disabled",!Wpb(a,W(3,1,a.hasAccessLimitLevelSelectionChanged$))))},
Ypb=function(a){if(a&1){var b=t();K(0,"button",22);N("click",function(){u(b);var c=P();return v(c.onPressCancel())});S(1," Close ");L()}},rt=function(a){var b;a=a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel;return a==="EXTERNAL_PARTNER"||a==="EXTERNAL_PUBLIC"},Zpb=function(a){var b;return(a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel)==="EXTERNAL_PARTNER"},st=function(a){var b;return(a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel)==="EXTERNAL_PUBLIC"},$pb=
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""}},tt=function(){Aj.call(this);this.name_="closure_frame"+aqb++;this.iframesForDisposal_=[];bqb[this.name_]=this},fqb=function(a,b){a.name!==
void 0?(this.name=a.name,this.code=cqb[a.name]):(this.code=a=a.code,this.name=dqb(a));oa.call(this,eqb("%s %s",this.name,b))},gqb=function(a,b){at.call(this,a.type,b);this.event_=a},ut=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},vt=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase())return a[c]},hqb=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase()){delete a[c];
break}},jqb=function(a){a=Li(a);for(var b=0;b<iqb.length;++b){var c=iqb[b],d=vt(a,c);d&&(a["X-Goog-Upload-Header-"+c]=d,hqb(a,c))}return a},kqb=function(a){a=Li(a);hqb(a,"X-Goog-Upload-Status");return a},mqb=function(a){if(a&1){var b=t();K(0,"button",3);N("fileSelected",function(c){u(b);var d=P();return v(lqb(d,c))});M(1,"mat-icon",4);L()}a&2&&(a=P(),I("selectorType",a.SelectorType.MULTIPLE_FILE_SELECTION)("disableAutoUpload",!0)("disabled",a.disabled))},nqb=function(a){if(a&1){var b=t();K(0,"button",
5);N("fileSelected",function(c){u(b);var d=P();return v(lqb(d,c))});M(1,"mat-icon",4);S(2," Add attachments ");L()}a&2&&(a=P(),I("selectorType",a.SelectorType.MULTIPLE_FILE_SELECTION)("disableAutoUpload",!0)("disabled",a.disabled))},oqb=function(a){a&1&&(K(0,"span"),S(1),U(2,"humanFileSize"),U(3,"humanFileSize"),L());if(a&2){a=P().$implicit;B();var b;Bg(" ",W(2,2,a.transferredBytes)," of ",W(3,4,(b=a.size)!=null?b:0)," ")}},pqb=function(a){a&1&&(K(0,"span",7),S(1),L());a&2&&(a=P().$implicit,B(),T(" ",
a.errorMessage," "))},qqb=function(a){a&1&&(K(0,"span",7),S(1),U(2,"humanFileSize"),L());if(a&2){a=P().$implicit;B();var b;T(" ",W(2,1,(b=a.size)!=null?b:0)," ")}},rqb=function(a,b){if(a&1){var c=t();K(0,"div",2)(1,"div",3);M(2,"mat-icon",4);K(3,"span",5);S(4);L();K(5,"span",6);F(6,oqb,4,6,"span");F(7,pqb,2,1,"span",7);F(8,qqb,3,3,"span",7);L()();K(9,"button",8);N("click",function(){var d=u(c).$implicit,e=P(2);return v(e.cancel(d))});L()()}a&2&&(a=b.$implicit,b=P(2),yg("attachment-error",a.state===
b.uploadStates.ERROR),B(3),I("matTooltip",a.name),B(),Ag(a.name),B(2),G(a.state===b.uploadStates.UPLOADING?6:-1),B(),G(a.state===b.uploadStates.ERROR?7:-1),B(),G(a.state===b.uploadStates.COMPLETE?8:-1),B(),I("matTooltip",a.state===b.uploadStates.UPLOADING?"Cancel upload":"Remove attachment"),Jf("aria-label","Remove attachment"+a.name))},sqb=function(a){a&1&&(K(0,"div",0),Pf(1,rqb,10,9,"div",1,Of),L());a&2&&(a=P(),B(),Qf(a.uploads))},xt=function(a){wt.call(this,a||"all")},uqb=function(a){tqb.call(this,
a)},yt=function(){},vqb=function(a){this.action=a;this.wfv=!1},wqb=function(a,b){vqb.call(this,"set-drive-options");this.appId=a;this.appOrigin=b},xqb=function(a){vqb.call(this,"visibility");this.visible=a},yqb=function(a){a=a&&a.getWindow()||window;return a.gadgets&&a.gadgets.rpc},Aqb=function(a,b){var c=b&&b.getWindow()||window;if(yqb(b))a();else if(zqb)zqb.push(a);else var d=zqb=[a],e=c.setInterval(function(){if(yqb(b)){c.clearInterval(e);for(var f=0;f<d.length;f++)d[f]();zqb=null}},100)},Bqb=
function(a){Aj.call(this);this.element_=a;this.listenKeyIn_=Cj(this.element_,"focus",this,!0);this.listenKeyOut_=Cj(this.element_,"blur",this,!0)},Cqb=function(a,b){this.element_=a;this.dom_=b},At=function(a,b){zt.call(this,b);this.useIframeMask_=!!a;this.lastFocus_=null;this.resizeBackgroundTask_=xKa({mutate:this.resizeBackground_},this);xKa({mutate:this.updateModalAndBackground_},this)},Ft=function(a,b,c){At.call(this,b,c);this.class_=a||"modal-dialog";this.buttons_=Bt(Bt(new Et,Dqb,!0),Eqb,!1,
!0)},Fqb=function(a,b,c){Ft.call(this,a,b,c)},Iqb=function(a,b){var c=new Gqb(a);Gt(b,c);var d={passive:!1};b.listen(c,"mousewheel",function(e){return void Hqb(a,e)},d).listen(a,"scroll",function(e){return void Hqb(a,e)},d)},Hqb=function(a,b){var c;a:{for(c=b.target;c;){if(c.nodeType==1){var d=Ht(c,"overflowY");if(d=="auto"||d=="scroll")break a}c=c.parentNode}c=null}if(!c||!Jqb(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()},Kqb=function(){var a;if(a=a===void 0?window:a)return a!==a.parent&&a.hasOwnProperty("pangolinIframeGlobals");var b=Error("Ff");setTimeout(function(){throw b;},1);return!1},Mt=function(a,b,c,d,e,f,g,k,m,r){k=k===void 0?!1:k;m=m===void 0?!1:m;r=r===void 0?!1:r;Ft.call(this,void 0,void 0,void 0);Ft.call(this,f?f+" picker modal-dialog":"picker modal-dialog",!0,c);Uva(a,"protocol");this.iframeManager_=new Lqb;this.targetId_=Mqb();this.rpcToken_=Mqb();
a=It(a);Jt(a,"hostId");this.useGapi_=!m&&!Kqb();k&&Kt(a,"fv2","true");this.setUrl(a.toString());this.preferredDialogWidth_=d;this.preferredDialogHeight_=e;d!==void 0||e!==void 0?d=!0:(d=Jt(It(a.toString()),"hostId"),Nqb||(Nqb=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),d=!Nqb.has(d));this.autoSizeDialog_=d;this.gadgetsDomHelper_=g||this.getDomHelper();this.enablePopover_=r;b&&(g=this.gadgetsDomHelper_,
b=Jt(It(this.url_),"grugl")=="true"?Oqb:Pqb,yqb(g)||(g=g||Bj(document),r=g.createElement("SCRIPT"),(0,Lh.setScriptSrc)(r,b),r.type="text/javascript",g.document_.body.appendChild(r)));a=a.toString();b=null;g=a.indexOf("/picker?");g>-1?b=a.substring(0,g+8-1):ta(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()):Qqb(this.buttonEl_,Lj),Lt(this.buttonEl_,
!!this.buttons_))},Rqb=function(a){if(a&1){var b=t();K(0,"div",0);M(1,"mat-icon",1);K(2,"div",2);S(3," Comment and vote +1 on this issue to increase visibility ");L();K(4,"div",3)(5,"button",4);N("click",function(c){u(b);var d=P();return v(d.onClick(c))});S(6,"Comment and vote +1");L()()()}a&2&&(B(),I("matTooltip","The +1 button is located in the top right corner of the issue details page"))},Sqb=function(a){if(a&1){var b=t();K(0,"b-plus-one-comment-callout",7);N("onSubmitComment",function(c){u(b);
P().onSubmit.emit(c);return v()});L()}a&2&&(a=P(),I("isPlusOneText",a.comment.value.trim()==="+1"))},Tqb=function(a){if(a&1){var b=t();K(0,"b-drive-attachment",11);N("onPickDoc",function(c){u(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){u(b);var d=P(2);return v(d.addUpload(c))});L()}a&2&&(a=P(2),I("disabled",a.attachmentsDisabled))},
Uqb=function(a){if(a&1){var b=t();K(0,"button",14);N("click",function(){u(b);var c=P(3);return v(c.onRestrict.emit())});M(1,"mat-icon",15);L()}a&2&&(a=P(3),I("disabled",a.attachmentsDisabled))},Vqb=function(a){if(a&1){var b=t();K(0,"button",16);N("click",function(){u(b);var c=P(3);return v(c.onRestrict.emit())});M(1,"mat-icon",15);S(2);L()}a&2&&(a=P(3),B(2),T(" ",a.getRestrictedLabel()," "))},Wqb=function(a){a&1&&(K(0,"div",10),F(1,Uqb,2,1,"button",12)(2,Vqb,3,1,"button",13),L());a&2&&(a=P(2),B(),
G(a.isRestricted()?2:1))},Xqb=function(a){if(a&1){var b=t();K(0,"div",6);gg(1,2,[1,"goog-inline-block"]);K(2,"b-attachment-selector",8);N("onSelect",function(c){u(b);var d=P();return v(d.uploadFile(c))});L();F(3,Tqb,1,1,"b-drive-attachment",9);F(4,Wqb,3,1,"div",10);L()}a&2&&(a=P(),B(2),I("disabled",a.attachmentsDisabled),B(),G(a.currentTracker?-1:3),B(),G(a.showRestrictionOptions?4:-1))},Yqb=function(a){a&1&&(K(0,"div"),M(1,"b-live-preview",17),L());a&2&&(a=P(),B(),I("comment",a.comment.value)("issueId",
a.issueId)("audience",a.audience)("formattingMode",a.comment.formattingMode))},Zqb=function(a){a&1&&(K(0,"p",6),S(1),K(2,"a",14),S(3," Learn more "),L()());a&2&&(a=P(4),B(),T(" Your comment contains restricted words: ",Ws(a.bannedWordsChecker),". Review your comment before posting. "))},$qb=function(a){if(a&1){var b=t();K(0,"div",7)(1,"b-recaptcha",15);N("onUpdate",function(c){u(b);var d=P(4);return v(d.recaptchaResponse$.next(c))});L()()}},arb=function(a){a&1&&Xf(0)},brb=function(a){a&1&&E(0,arb,
1,0,"ng-container",16);a&2&&(P(4),a=Q(3),I("ngTemplateOutlet",a))},drb=function(a){if(a&1){var b=t();K(0,"span")(1,"mat-checkbox",17);U(2,"async");U(3,"async");N("change",function(){u(b);var c=P(4);return v(crb(c))});S(4," CC Me ");L()()}a&2&&(a=P(4),B(),I("checked",!!W(2,2,a.autoCcOnComment$))("disabled",!!W(3,4,a.isCurrentUserCCd$)))},erb=function(a){a&1&&(K(0,"mat-checkbox",18),S(1," CC Me "),L());a&2&&I("checked",!0)("disabled",!0)},frb=function(a){a&1&&(K(0,"span",10),F(1,erb,2,2,"mat-checkbox",
18),U(2,"async"),L());a&2&&(a=P(4),B(),G(W(2,1,a.isCurrentUserCCd$)?1:-1))},grb=function(a){if(a&1){var b=t();K(0,"b-markdown-toggle",19);N("change",function(c){u(b);var d=P();return v(d.formattingMode=c)});L()}a&2&&(a=P(),I("initialValue",a.formattingMode))},hrb=function(a){a&1&&(M(0,"b-access-limits-chip",12),U(1,"async"));a&2&&(a=P(4),I("issueId",a.issueId)("componentId",a.componentIdString)("accessLimitLevel",W(1,3,a.issueAccessLimitLevel$)))},jrb=function(a,b){if(a&1){var c=t();K(0,"b-comment-box",
5,1);U(2,"async");U(3,"async");U(4,"async");U(5,"async");U(6,"async");U(7,"async");N("onHotkey",function(){u(c);var r=Q(1);return v(irb(r,"editpage-hotkey"))})("onChange",function(){u(c);var r=P(3);return v(r.saveCommentDraft())})("onFocusEvent",function(){u(c);var r=P(3);return v(r.wasFocused=!0)})("onSubmit",function(r){u(c);var w=P(3);return v(w.submitCommentBox(r))})("onRestrict",function(){u(c);var r=P(3);return v(r.showNewContentJudgementDialog())})("onPlusOneTextEntered",function(r){u(c);var w=
P(3);return v(w.isPlusOneText$.next(r))});F(8,Zqb,4,1,"p",6);U(9,"async");F(10,$qb,2,0,"div",7);U(11,"async");K(12,"div",8);F(13,brb,1,1,"ng-container");K(14,"div",9);gg(15);F(16,drb,5,6,"span");U(17,"async");U(18,"async");F(19,frb,3,3,"span",10);U(20,"async");U(21,"async");F(22,grb,1,1,"b-markdown-toggle",11);U(23,"async");F(24,hrb,2,5,"b-access-limits-chip",12);U(25,"async");L();M(26,"b-issue-visibility-chip",13);L()()}if(a&2){a=P(2);var d=P(),e,f,g,k,m;I("hotkey",d.HOTKEYS.FOCUS_COMMENT_BOX)("supportsPreview",
!0)("issueId",a.issueId)("comment",b)("placeholder",(e=W(2,19,d.commentPlaceholderText$))!=null?e:void 0)("judgementForNewContent",(f=W(3,21,d.judgementForNewContent$))!=null?f:void 0)("audience",(g=W(4,23,d.audience$))!=null?g:void 0)("disabled",W(5,25,d.commentBoxEnabled$)===!1)("isPlusOneCalloutEnabled",(k=W(6,27,d.isPlusOneCalloutEnabled$))!=null?k:!1)("warn",(m=W(7,29,d.bannedWordsChecker.showWarning$))!=null?m:!1)("isLiteralModeSupported",!0);B(8);G(W(9,31,d.bannedWordsChecker.showWarning$)?
8:-1);B(2);G(W(11,33,d.showRecaptcha$)?10:-1);B(3);G(d.showActionsAfterPreview?-1:13);B(3);G(!W(17,35,d.isCurrentUserCCd$)&&W(18,37,d.hasAclToEdit$)?16:-1);B(3);G(W(20,39,d.isCurrentUserCCd$)||!W(21,41,d.hasAclToEdit$)?19:-1);B(3);G(W(23,43,d.hasAclToComment$)?22:-1);B(2);G(W(25,45,d.isAccessLimited$)?24:-1);B(2);I("issueId",d.issueId)}},krb=function(a){a&1&&Xf(0)},lrb=function(a){a&1&&E(0,krb,1,0,"ng-container",16);a&2&&(P(3),a=Q(3),I("ngTemplateOutlet",a))},mrb=function(a){a&1&&(K(0,"h3",2),S(1,
"Add comment"),L(),K(2,"div",3),U(3,"async"),F(4,jrb,27,47,"b-comment-box",4),U(5,"async"),L(),F(6,lrb,1,1,"ng-container"));if(a&2){var b;a=P(2);B(2);yg("empty",W(3,6,a.empty$))("never-focused",!a.wasFocused);B(2);G((b=W(5,8,a.comment$))?4:-1,b);B(2);G(a.showActionsAfterPreview?6:-1)}},nrb=function(a,b){a&1&&F(0,mrb,7,10);a&2&&G(b.isDeleted?-1:0)},orb=function(a){if(a&1){var b=t();K(0,"b-button",21);U(1,"async");U(2,"async");U(3,"async");N("onAction",function(d){u(b);var e=P(2);return v(e.submitCommentBox(d))})("click",
function(d){u(b);var e=P(2);return v(e.submitCommentBox(d))});S(4);U(5,"async");L()}if(a&2){a=P(2);var c;I("format",(c=W(1,4,a.commentButtonStyle$))!=null?c:"fill")("disabled",W(2,6,a.commentButtonEnabled$)===!1)("color",W(3,8,a.bannedWordsChecker.showWarning$)?"warn":"primary");B(4);T(" ",W(5,10,a.bannedWordsChecker.showWarning$)?"Comment Anyway":"Comment"," ")}},prb=function(a){a&1&&F(0,orb,6,12,"b-button",20);a&2&&(a=P(),G(a.showCommentButton?0:-1))},qrb=function(a){a&1&&(K(0,"span"),S(1),L());
a&2&&(a=P(3),B(),T(" ",a.removeSelfActionDescription," "))},rrb=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(3),B(),T(" ",a.includeSelfActionDescription," "))},srb=function(a){if(a&1){var b=t();K(0,"div",20);N("click",function(){u(b);var c=P(2);return v(c.userInclusionToggle.emit())})("keydown.enter",function(c){u(b);P(2).userInclusionToggle.emit();c.stopPropagation();c.preventDefault();return v()})("keydown.space",function(c){u(b);P(2).userInclusionToggle.emit();c.stopPropagation();c.preventDefault();
return v()});F(1,qrb,2,1,"span");F(2,rrb,2,1,"span");L()}a&2&&(a=P(2),yg("disabled",!!a.isSaving),I("matTooltip",a.isCurrentUserInCollection?a.removeSelfActionLongDescription:a.includeSelfActionLongDescription),Jf("aria-disabled",!!a.isSaving)("aria-label",a.isCurrentUserInCollection?a.removeSelfActionLongDescription:a.includeSelfActionLongDescription),B(),G(a.isCurrentUserInCollection?1:-1),B(),G(!a.isCurrentUserInCollection&&a.isAllowedToEditCollection?2:-1))},trb=function(a){a&1&&(K(0,"div",18),
F(1,srb,3,7,"div",19),L());a&2&&(a=P(),B(),G(a.isCurrentUserInCollection||!a.isCurrentUserInCollection&&a.isAllowedToEditCollection?1:-1))},urb=function(a){if(a&1){var b=t();K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-person-lookup-form",21);N("onAddItems",function(c){u(b);var d=P();return v(d.handleAddItems(c))})("onCancel",function(){u(b);var c=P();return v(c.closeAddPopup(!0))});L()()()}a&2&&(a=P(),B(2),I("actionName","addition")("inputValidator",a.inputValidator)("isAllowedToEditCollection",
a.isAllowedToEditCollection)("title",a.title))},vrb=function(a){a&1&&(M(0,"b-user-membership-chip",23),U(1,"async"));if(a&2){a=P().$implicit;var b=P(),c;I("user",b.getUser(a))("email",a)("teamId",(c=W(1,5,b.teamId$))!=null?c:"")("enableSmallChip",!0)("enableGroupIcon",!0)}},wrb=function(a){a&1&&M(0,"b-icon",25)},xrb=function(a){a&1&&(F(0,wrb,1,0,"b-icon",25),U(1,"async"),K(2,"b-person-hovercard",26),S(3),L());if(a&2){var b;a=P().$implicit;var c=P();G(((b=W(1,3,c.groups$))==null?0:b.has(a))?0:-1);
B(2);I("email",a);B();T(" ",a," ")}},yrb=function(a){if(a&1){var b=t();K(0,"button",27);U(1,"async");N("click",function(){u(b);var c=P(2);return v(c.toggleAccessLimits.emit())});M(2,"b-icon",28);U(3,"async");L()}a&2&&(a=P(2),I("disabled",!W(1,3,a.hasAclToAdmin$)),B(2),yg("disabled-icon",!W(3,5,a.hasAclToAdmin$)))},zrb=function(a){if(a&1){var b=t();K(0,"button",30,4);N("click",function(){u(b);var d=P(2).$index,e=P();return v(e.removeItem(d))});L()}if(a&2){a=P(2).$implicit;var c=P();Jf("aria-label",
Hg("Remove ",a," from ",c.title));I("matTooltip","Remove item")}},Arb=function(a){a&1&&F(0,zrb,2,4,"button",29);a&2&&(a=P(2),G(a.isAllowedToEditCollection?0:-1))},Brb=function(a,b){a&1&&(K(0,"div",10)(1,"div",22),F(2,vrb,2,7,"b-user-membership-chip",23)(3,xrb,4,5),L(),F(4,yrb,4,7,"button",24),U(5,"async"),Mf(6,Arb,1,1),L());if(a&2){var c;a=b.$implicit;b=P();B(2);G(b.enableTeamAnnotations?2:3);B(2);G(b.toggleAccessLimits.observed&&((c=W(5,2,b.groups$))==null?0:c.has(a))?4:6)}},Crb=function(a){a&1&&
(K(0,"button",12),S(1,"Add "),L());if(a&2){a=P();var b=Q(3);Jf("aria-label",Gg("Add item to ",a.title));I("dialogLabel",Gg("Add item to ",a.title))("matTooltip",Gg("Add item to ",a.title))("xapInlineDialogClick",b)("overlayPositions",a.overlayPosition)}},Drb=function(a){a&1&&Xf(0)},Erb=function(a,b){return{originX:a,originY:b}},Frb=function(a,b){return{overlayX:a,overlayY:b}},Grb=function(a){a&1&&Xf(0)},Jrb=function(a){if(a&1){var b=t();K(0,"div",1);N("keydown",function(c){u(b);var d=P();return v(d.processKeydown(c))});
K(1,"div",2);E(2,Grb,1,0,"ng-container",3);L();K(3,"div",4)(4,"button",5);N("click",function(){u(b);var c=P();return v(Hrb(c))});S(5,"Save");L();K(6,"button",6);N("click",function(){u(b);var c=P();return v(Irb(c))});S(7,"Cancel");L()()()}a&2&&(a=P(),I("cdkTrapFocusAutoCapture",!0),B(2),I("ngTemplateOutlet",a.editorTemplate),B(2),I("disabled",a.saveDisabled()))},Krb=function(a){if(a&1){var b=t();K(0,"input",4,2);N("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P();return v(d.selectAutocomplete(c))});
L()}a&2&&(a=P(),I("required",a.required)("peoplekitAutocompleteConfig",a.mergedAutocompleteConfig)("peoplekitSearchSessionOptions",a.sessionOptions)("formControl",a.inputValue))},Lrb=function(a){a&1&&S(0);a&2&&(a=P(),T(" ",a.displayValueOverride," "))},Mrb=function(a){a&1&&Xf(0)},Orb=function(a){a&1&&E(0,Mrb,1,0,"ng-container",4);a&2&&(a=P(),I("ngTemplateOutlet",a.selectedUserTemplate)("ngTemplateOutletContext",Kg(2,Nrb,a.email)))},Prb=function(a){a&1&&S(0);a&2&&(a=P(),T(" ",a.email," "))},Qrb=function(a){a&
1&&(yd(),K(0,"svg",5),M(1,"path",6),L())},Rrb=function(a){a&1&&M(0,"b-user-membership-chip",3);if(a&2){a=P().$implicit;var b=P(),c;I("user",b.user)("email",a)("teamId",(c=b.teamId)!=null?c:"")("enableSmallChip",!0)}},Srb=function(a,b){a&1&&F(0,Rrb,1,4,"b-user-membership-chip",3);a&2&&(a=b.$implicit,b=P(),G(a&&b.user?0:-1))},Trb=function(a){a&1&&M(0,"div",2)},Urb=function(a){a&1&&(Vf(0),gg(1),Wf())},Vrb=function(a){a&1&&(yd(),K(0,"svg",1),M(1,"path",2),L());a&2&&(a=P(),I("matTooltip",a.warning))},
Wrb=function(a){a&1&&M(0,"b-availability-chip",3);a&2&&(a=P(),I("user",a.user))},Xrb=function(a){if(a&1){var b=t();K(0,"b-edit-field",21);U(1,"async");N("valueChange",function(f){u(b);var g=P(3),k=P(2);return v(k.setSeverity(g,f!=null?f:k.IssueSeverity.S2))});L()}if(a&2){var c=P().$implicit,d=P();a=dg(0);var e=P(3);c=d.get(c);I("name","severity")("title","Severity")("type",e.FieldType.ENUM)("tooltip","Set severity")("value",c?null:a.severity)("choices",e.severityChoices)("readonly",!W(1,8,e.hasAclToEdit$))("displayValueOverride",
c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},Yrb=function(a){if(a&1){var b=t();K(0,"b-edit-field",22,0);U(2,"async");N("onHotkey",function(){u(b);var f=Q(1);return v(rs(f,null,!0,!1))})("valueChange",function(f){u(b);var g=P(3),k=P(2);return v(k.setPriority(g,f!=null?f:k.IssuePriority.P2))});L()}if(a&2){var c=P().$implicit,d=P();a=dg(0);var e=P(3);c=d.get(c);I("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",!W(2,9,e.hasAclToEdit$))("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},Zrb=function(a){if(a&1){var b=t();K(0,"triage-hotlists-editor",23);N("hotlistIdsChange",function(c){u(b);var d=P(5);return v(d.hotlistIds=c)})("hotlistIdsMapChange",function(c){u(b);var d=P(5);return v(d.hotlistIdsMap=c)});L()}a&2&&(a=P(5),I("phase",a.phase)("subphase",a.subphase))},$rb=function(a){if(a&1){var b=t();K(0,"triage-custom-fields-editor",24);N("onCustomFieldBulkEdit",
function(e){u(b);P(5).customFieldBulkEditOps=e;return v()});L()}if(a&2){P(2);a=dg(0);var c=P(),d=P(2);I("editableIssue",a)("hasMultipleIssues",c.length>1)("phase",d.phase)("subphase",d.subphase)}},asb=function(a,b){if(a&1){var c=t();K(0,"button",30);N("click",function(){var e=u(c),f=P(6),g=P(2);return v(g.setAssignee(f,e))})("onHotkey",function(){var e=u(c),f=P(6),g=P(2);return v(g.setAssignee(f,e))});M(1,"mat-icon",31);S(2," Assign to default ");L()}if(a&2){P(5);a=dg(0);var d=P(3);I("disabled",a.assignee===
b)("hotkey",d.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip","Set "+b+" as assignee");Jf("aria-label","Set "+b+" as assignee");B();I("svgIcon",a.assignee===b?"done":"add")}},bsb=function(a){a&1&&(F(0,asb,3,5,"button",29),U(1,"async"));if(a&2){var b;a=P(7);G((b=W(1,1,a.defaultAssigneeForComponent$))?0:-1,b)}},csb=function(a){if(a&1){var b=t();K(0,"button",32);N("click",function(){u(b);var c=P(5),d=P(2);return v(d.setAssignee(c,d.currentUserEmail))})("onHotkey",function(){u(b);var c=P(5),d=
P(2);return v(d.setAssignee(c,d.currentUserEmail))});M(1,"mat-icon",33);S(2," Assign to me ");L()}a&2&&I("matTooltip","Assign to me")},dsb=function(a){a&1&&(K(0,"div",27),F(1,bsb,2,3),F(2,csb,3,1,"button",28),L());if(a&2){P();a=dg(0);P(2);var b=dg(0),c=P(3);B();G(c.showAssignToDefault&&!a?1:-1);B();G(c.showAssignToSelf&&b.assignee!==c.currentUserEmail||a?2:-1)}},esb=function(a){if(a&1){var b=t();bg(0);K(1,"div",15)(2,"div",25)(3,"b-single-user-control",26,1);N("onHotkey",function(){u(b);var f=Q(4);
return v(f.openEditor())})("valueChange",function(f){u(b);var g=P(3),k=P(2);return v(k.setAssignee(g,f.newEmail))})("emailChange",function(f){u(b);var g=P(3),k=P(2);return v(k.setAssignee(g,f))});L();F(5,dsb,3,2,"div",27);U(6,"async");L()()}if(a&2){var c=P().$implicit,d=P();a=dg(0);var e=P(3);c=cg(d.get(c));B(3);I("name","assignee")("title","Assignee")("hotkey",e.HOTKEYS.CHANGE_ASSIGNEE)("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")("value",a.assignee);B(2);G(W(6,7,e.showAssigneeChips$)?
5:-1)}},fsb=function(a){if(a&1){var b=t();K(0,"b-edit-field",34,2);U(2,"async");N("valueChange",function(f){u(b);var g=P(3),k=P(2);return v(k.setType(g,f!=null?f:k.IssueType.BUG))});L()}if(a&2){var c=P().$implicit,d=P();a=dg(0);var e=P(3);c=d.get(c);I("name","type")("title","Type")("type",e.FieldType.ENUM)("value",c?null:a.type)("choices",e.typeChoices)("readonly",!W(2,7,e.hasAclToEdit$))("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},gsb=function(a){if(a&1){var b=t();K(0,"b-edit-field",
35,3);U(2,"async");N("onHotkey",function(){u(b);var f=Q(1);return v(rs(f,null,!0,!1))})("valueChange",function(f){u(b);var g=P(3),k=P(2);return v(k.setStatus(g,f!=null?f:k.IssueStatus.NEW))});L()}if(a&2){var c=P().$implicit,d=P();a=dg(0);var e=P(3);c=d.get(c);I("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",!W(2,9,e.hasAclToEdit$))("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:
"")}},isb=function(a){if(a&1){var b=t();K(0,"b-list-field",37);U(1,"async");N("valuesChange",function(d){u(b);var e=P(4),f=P(2);return v(f.setCodeChanges(e,d.values))});L()}if(a&2){P(3);a=dg(0);var c=P(3);I("readonly",!W(1,6,c.hasAclToEdit$))("defaultLineCount",3)("title","Code Changes")("inputValidator",c.codeChangesValidator)("type",c.ListFieldType.CODE_CHANGES)("values",hsb(a,c.sessionIsExternal))}},jsb=function(a){a&1&&F(0,isb,2,8,"b-list-field",36);a&2&&(a=P(3),G(a.length<2?0:-1))},ksb=function(a){if(a&
1){var b=t();K(0,"div",18)(1,"div",38)(2,"label");S(3,"Component");L()();K(4,"b-component-breadcrumb-chip",39);N("componentChanged",function(f){u(b);var g=P(3),k=P(2);return v(k.setComponent(g,f))});L()()}if(a&2){var c=P().$implicit,d=P();a=dg(0);var e=P(3);c=d.get(c);B(4);I("issueId",a.issueId)("componentId",c?"":e.componentId)("compactMode",!0)("handleSave",!1)("showPickerOverlayAbove",!0)("displayValueOverride",c?e.MULTIPLE_COMPONENT_SELECTED_LABEL:"")}},msb=function(a){if(a&1){var b=t();K(0,"div",
19)(1,"div")(2,"b-post-comment",40,4);N("commentSubmitted",function(){u(b);var d=P(5);return v(lsb(d))});L();K(4,"button",10);N("click",function(){u(b);var d=Q(7),e=P(5);return v(lsb(e,d))});S(5,"Remove comment");L()();K(6,"button",10,5);N("click",function(){u(b);var d=Q(3);P(5).showCommentInput=!0;return v(d.commentBox==null?null:irb(d.commentBox))});S(8,"Add comment");L()()}if(a&2){P(2);a=dg(0);var c=P(3);B();yg("hidden",!c.showCommentInput);B();I("issueId",a.issueId)("showActionsAfterPreview",
!1)("showCommentButton",!1);B(4);yg("hidden",c.showCommentInput)}},psb=function(a){if(a&1){var b=t();K(0,"triage-edit-user-buttons",43);U(1,"async");N("addCurrentUser",function(){u(b);for(var c=P(4),d=P(2),e=d.activeSession.getUserEmail(),f=l(c),g=f.next();!g.done;g=f.next()){g=g.value;var k=g.collaborators;k.includes(e)||k.push(e);g.setCollaborators(k)}Nt(d,c[0]);Ot(d,c);return v()})("removeCurrentUser",function(){u(b);var c=P(4),d=P(2);return v(nsb(d,c))})("onAddUsers",function(c){u(b);for(var d=
P(4),e=P(2),f=l(d),g=f.next();!g.done;g=f.next()){g=g.value;var k=Oq([].concat(n(g.collaborators),n(c)));g.setCollaborators(k)}Nt(e,d[0]);Ot(e,d);return v()})("onRemoveUsers",function(c){u(b);var d=P(4),e=P(2);return v(osb(e,d,c))});L()}a&2&&(a=P(6),I("title","Collaborators")("subtitle",a.MULTIPLE_FIELD_VALUES_LABEL)("inputValidator",a.collaboratorUserPrincipalValidator)("isAllowedToEditCollection",W(1,4,a.hasAclToEdit$)))},qsb=function(a){if(a&1){var b=t();K(0,"b-multi-user-control",44);U(1,"async");
N("userInclusionToggle",function(){u(b);var d=P(4),e=P(2);return v(e.toggleCollaborators(d))})("valueChange",function(d){u(b);var e=P(4),f=P(2);return v(f.setCollaborators(e,d))})("toggleAccessLimits",function(){u(b);P(3);var d=dg(0),e=P(3);return v(e.toggleAccessLimits(d.issueId))});L()}if(a&2){P(3);a=dg(0);var c=P(3);I("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",W(1,14,c.hasAclToEdit$))("iconName","groups_24px")("inputValidator",c.collaboratorUserPrincipalValidator)("checkAccessLimits",!0)}},rsb=function(a){a&1&&F(0,psb,2,6,"triage-edit-user-buttons",
41)(1,qsb,2,16,"b-multi-user-control",42);a&2&&(a=P().$implicit,a=P().get(a),G(a?0:1))},usb=function(a){if(a&1){var b=t();K(0,"triage-edit-user-buttons",47);U(1,"async");N("addCurrentUser",function(){u(b);for(var c=P(4),d=P(2),e=d.activeSession.getUserEmail(),f=l(c),g=f.next();!g.done;g=f.next()){g=g.value;var k=g.cc;k.includes(e)||k.push(e);g.cc=k}Pt(d,c[0]);Ot(d,c);return v()})("removeCurrentUser",function(){u(b);var c=P(4),d=P(2);return v(ssb(d,c))})("onAddUsers",function(c){u(b);for(var d=P(4),
e=P(2),f=l(d),g=f.next();!g.done;g=f.next()){g=g.value;var k=Oq([].concat(n(g.cc),n(c)));g.cc=k}Pt(e,d[0]);Ot(e,d);return v()})("onRemoveUsers",function(c){u(b);var d=P(4),e=P(2);return v(tsb(e,d,c))});L()}a&2&&(a=P(6),I("title","CC")("subtitle",a.MULTIPLE_FIELD_VALUES_LABEL)("isAllowedToEditCollection",W(1,3,a.hasAclToEdit$)))},wsb=function(a){if(a&1){var b=t();K(0,"b-multi-user-control",48);U(1,"async");N("userInclusionToggle",function(){u(b);var d=P(4),e=P(2);return v(vsb(e,d))})("valueChange",
function(d){u(b);var e=P(4),f=P(2);return v(f.setCcs(e,d))});L()}if(a&2){P(3);a=dg(0);var c=P(3);I("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",
W(1,12,c.hasAclToEdit$))("iconName","add_alert_24px")}},xsb=function(a){a&1&&F(0,usb,2,5,"triage-edit-user-buttons",45)(1,wsb,2,14,"b-multi-user-control",46);a&2&&(a=P().$implicit,a=P().get(a),G(a?0:1))},ysb=function(a,b){a&1&&M(0,"automatic-change-chip",20);a&2&&(P(2),a=dg(0),I("issueId",a.issueId)("automaticChange",b))},Asb=function(a,b){a&1&&(K(0,"div",7),F(1,Xrb,2,10,"b-edit-field",11)(2,Yrb,3,11,"b-edit-field",12)(3,Zrb,1,2,"triage-hotlists-editor",13)(4,$rb,1,4,"triage-custom-fields-editor",
14)(5,esb,7,9,"div",15)(6,fsb,3,9,"b-edit-field",16)(7,gsb,3,11,"b-edit-field",17)(8,jsb,1,1)(9,ksb,5,6,"div",18)(10,msb,9,7,"div",19)(11,rsb,2,1)(12,xsb,2,1),F(13,ysb,1,2,"automatic-change-chip",20),L());if(a&2){var c;a=b.$implicit;b=P(4);B();G(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);B(12);G((c=zsb(b,a))?13:-1,c)}},Bsb=function(a){if(a&1){var b=t();bg(0);K(1,"div",6);Pf(2,Asb,14,2,"div",7,Of);L();K(4,"div",8)(5,"button",9);U(6,"async");N("click",function(){u(b);var d=P(),e=P(2);return v(e.save(d))});S(7);U(8,"async");L();K(9,"button",10);N("click",function(){u(b);var d=P(3);return v(d.cancelAction.emit())});S(10,"Cancel");L()()}if(a&2){a=P();var c=
P(2);cg(a[0]);B(2);Qf(c.fields);B(3);I("disabled",W(6,3,c.isSaving$));B(2);Ag(W(8,5,c.isSaving$)?"Saving":"Save changes")}},Csb=function(a){a&1&&(F(0,Bsb,11,7),U(1,"async"));if(a&2){var b;a=P(2);G((b=W(1,1,a.fieldMultipleValueMap$))?0:-1,b)}},Dsb=function(a){a&1&&(F(0,Csb,2,3),U(1,"async"));if(a&2){var b;a=P();G((b=W(1,1,a.editableIssues$))?0:-1,b)}},Esb=function(a){a&1&&Xf(0)},Fsb=function(a){a&1&&E(0,Esb,1,0,"ng-container",11);a&2&&(P(),a=Q(12),I("ngTemplateOutlet",a))},Gsb=function(a){a&1&&Xf(0)},
Hsb=function(a){a&1&&E(0,Gsb,1,0,"ng-container",11);a&2&&(P(),a=Q(14),I("ngTemplateOutlet",a))},Isb=function(a){a&1&&Xf(0)},Jsb=function(a){a&1&&E(0,Isb,1,0,"ng-container",11);a&2&&(P(),a=Q(16),I("ngTemplateOutlet",a))},Ksb=function(a){a&1&&Xf(0)},Lsb=function(a){a&1&&E(0,Ksb,1,0,"ng-container",11);a&2&&(P(),a=Q(32),I("ngTemplateOutlet",a))},Msb=function(a){a&1&&Xf(0)},Nsb=function(a){a&1&&E(0,Msb,1,0,"ng-container",11);a&2&&(P(),a=Q(20),I("ngTemplateOutlet",a))},Osb=function(a){a&1&&Xf(0)},Psb=function(a){a&
1&&E(0,Osb,1,0,"ng-container",11);a&2&&(P(),a=Q(22),I("ngTemplateOutlet",a))},Qsb=function(a){a&1&&Xf(0)},Rsb=function(a){a&1&&E(0,Qsb,1,0,"ng-container",11);a&2&&(P(),a=Q(24),I("ngTemplateOutlet",a))},Ssb=function(a){a&1&&Xf(0)},Tsb=function(a){a&1&&E(0,Ssb,1,0,"ng-container",11);a&2&&(P(),a=Q(26),I("ngTemplateOutlet",a))},Usb=function(a){a&1&&Xf(0)},Vsb=function(a){a&1&&E(0,Usb,1,0,"ng-container",11);a&2&&(P(),a=Q(28),I("ngTemplateOutlet",a))},Wsb=function(a){a&1&&Xf(0)},Xsb=function(a){a&1&&E(0,
Wsb,1,0,"ng-container",11);a&2&&(P(),a=Q(18),I("ngTemplateOutlet",a))},Ysb=function(a){a&1&&Xf(0)},Zsb=function(a){a&1&&E(0,Ysb,1,0,"ng-container",11);a&2&&(P(),a=Q(30),I("ngTemplateOutlet",a))},$sb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);S(2,"Move to Needs more info");L();K(3,"verify-fields",14);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",
a.NEEDS_MORE_INFO.fieldsToShow)("phase",a.TriagePhase.NEW)("subphase",a.TriageSubphase.NEEDS_INFO)("automaticChanges",a.needsInfoAutomaticChanges)("expandCommentBox",!0)("showAssignToDefault",!1)("showAssignToSelf",!1))},atb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);S(2,"Move to Confirmed");L();K(3,"verify-fields",15);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&
(a=P(),B(3),I("fields",a.CONFIRM_ACTION.fieldsToShow)("phase",a.TriagePhase.CONFIRMED))},btb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);S(2,"Move to Pending owner");L();K(3,"verify-fields",15);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_PENDING_OWNER.fieldsToShow)("phase",a.TriagePhase.CONFIRMED))},ctb=function(a){if(a&1){var b=t();
K(0,"div",12)(1,"div",13);S(2,"Route");L();K(3,"verify-fields",15);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.CHANGE_COMPONENT.fieldsToShow)("phase",a.TriagePhase.NEW))},dtb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);S(2,"Move to In progress");L();K(3,"verify-fields",16);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",
function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_IN_PROGRESS.fieldsToShow)("phase",a.TriagePhase.IN_PROGRESS)("showAssignToSelf",a.SET_IN_PROGRESS.showAssignToSelf))},etb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);S(2,"Move to Expected");L();K(3,"verify-fields",16);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&
(a=P(),B(3),I("fields",a.SET_EXPECTED.fieldsToShow)("phase",a.TriagePhase.IN_PROGRESS)("showAssignToSelf",a.SET_EXPECTED.showAssignToSelf))},ftb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);S(2,"Move to Planned");L();K(3,"verify-fields",16);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_PLANNED.fieldsToShow)("phase",a.TriagePhase.IN_PROGRESS)("showAssignToSelf",
a.SET_PLANNED.showAssignToSelf))},gtb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);S(2,"Move to Committed");L();K(3,"verify-fields",16);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_COMMITTED.fieldsToShow)("phase",a.TriagePhase.IN_PROGRESS)("showAssignToSelf",a.SET_COMMITTED.showAssignToSelf))},htb=function(a){if(a&1){var b=t();K(0,"div",
12)(1,"div",13);S(2,"Move to Fixed");L();K(3,"verify-fields",17);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_FIXED.fieldsToShow)("phase",a.TriagePhase.FIXED)("automaticChanges",a.SET_FIXED.automaticChanges))},itb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);S(2,"Move to New");L();K(3,"verify-fields",17);N("cancelAction",function(){u(b);
var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});L()()}a&2&&(a=P(),B(3),I("fields",a.SET_NEW.fieldsToShow)("phase",a.TriagePhase.NEW)("automaticChanges",a.SET_NEW.automaticChanges))},jtb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"div",13);S(2,"Move to Won't fix");L();K(3,"verify-fields",18);N("cancelAction",function(){u(b);var c=P();return v(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return v(d.finalizeAction.emit(c))});
L()()}a&2&&(a=P(),B(3),I("fields",a.SET_WONT_FIX.fieldsToShow)("automaticChanges",a.SET_WONT_FIX.automaticChanges))},ntb=function(a){var b,c,d,e;a=ktb(a,ltb,1,fb);return{output:(e=(b=Wi(a,mtb,1,Xi())[0])==null?void 0:(c=b.getContent())==null?void 0:(d=c.getPartsList()[0])==null?void 0:d.getText())!=null?e:""}},otb=function(a,b){if(a&1){var c=t();K(0,"iframe",6);N("load",function(){u(c);var d=P();return v(d.contentLoaded=!0)});L()}a&2&&(a=P(),yg("loading",!a.contentLoaded),I("src",b,Ija))},ptb=function(a){a&
1&&M(0,"mat-spinner",2)},rtb=function(a){return qtb.some(function(b){return b.test(a)})},vtb=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&&stb.includes(d)?d:c&&stb.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))?Jh(ttb,a):Jh(utb,a,d)},ytb=function(a,b,c,d){if(wtb&&
xtb===b)return wtb;xtb=b;var e=vtb(a,d);return wtb=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(f,g){var k=Qt(document,"SCRIPT");(0,Lh.setScriptSrc)(k,e);k.onload=function(){b.feedbackV2GlobalObject?f(b.feedbackV2GlobalObject):g(Error("Jf"))};k.onerror=function(){g(Error("Kf`"+e.toString()))};c.body.appendChild(k)})},Btb=function(a,b,c,d){if(ztb&&Atb===b)return ztb;Atb=b;var e=vtb(a,d);return ztb=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):
new Promise(function(f,g){var k=Qt(document,"SCRIPT");(0,Lh.setScriptSrc)(k,e);k.onload=function(){b.feedbackV2GlobalObject?f(b.feedbackV2GlobalObject):g(Error("Jf"))};k.onerror=function(){g(Error("Kf`"+e.toString()))};c.body.appendChild(k)})},Ctb=function(a,b,c,d,e){e=e===void 0?!0:e;var f,g,k,m,r;return y(function(w){switch(w.nextAddress){case 1:return f=Date.now(),z(w,ytb(a,c,d,b),2);case 2:g=w.yieldResult;if(!(e||((m=a.initializationData)==null?0:m.useNightlyRelease)||((r=a.initializationData)==
null?0:r.isLocalServer))){k=g.initializeFeedbackClient(a,f,b);w.jumpTo(3);break}return z(w,g.initializeFeedbackClientAsync(a,f,b),4);case 4:k=w.yieldResult;case 3:return k.initiateAloha(),w.return(k)}})},Dtb=function(a,b,c,d){var e,f,g;return y(function(k){if(k.nextAddress==1)return e=Date.now(),z(k,Btb(a,c,d.document,b),2);if(k.nextAddress!=3)return f=k.yieldResult,z(k,f.initializeFeedbackClientAsync(a,e,b,d),3);g=k.yieldResult;g.initiateAloha();return k.return(g)})},Etb=function(a,b,c){var d=!0;
d=d===void 0?!0:d;var e,f,g,k,m,r,w,x;return y(function(D){e=c||ra;if((f=b)==null?0:(k=(g=f).getEnableAlohaBinarySplit)==null?0:k.call(g)){m=e;if(m.isFormOpened)throw new Rt;m.isFormOpened=!0;a.callbacks=a.callbacks||{};r=a.callbacks.onClose||function(){};a.callbacks.onClose=function(H){m.isFormOpened=!1;r(H)};try{return D.return(Dtb(a,b,m,e))}catch(H){throw m.isFormOpened=!1,H;}}else{w=e;if(w.isFormOpened)throw new Rt;w.isFormOpened=!0;a.callbacks=a.callbacks||{};x=a.callbacks.onClose||function(){};
a.callbacks.onClose=function(H){w.isFormOpened=!1;x(H)};try{return D.return(Ctb(a,b,w,e.document,d))}catch(H){throw w.isFormOpened=!1,H;}}$d(D)})},Jtb=function(a,b){return y(function(c){return c.return(new Promise(function(d,e){Number.isInteger(Number(a))&&Number(a)>0?(e=Ftb(b!=null?b:"")+"/aloha_form_properties?productId="+a,Gtb(e,function(f){f=f.target;var g=null;try{g=Gi(Htb,JSON.stringify(f.getResponseJson(")]}'\n")))}catch(k){f=new Htb,g=Itb(),g=sp(g,13,!1),g=sp(g,14,!0),g=sp(g,15,!0),g=sp(g,
20,!1),g=hj(f,St,1,g)}d(g)},"GET","",{},2E3,!0)):e(Error("Lf`"+a))}))})},Ftb=function(a){return rtb(a)?a:"https://www.google.com/tools/feedback"},Ktb=function(a){return a.toLocaleString("en-US",{timeZone:"America/Los_Angeles"})+" (US Pacific time)"},Ltb=function(a){a&1&&(K(0,"button",6,1),M(2,"mat-icon",7),L());if(a&2){a=P();var b=Q(2);zg(a.buttonSize);I("matTooltip",a.buttonLabel)("matMenuTriggerFor",b);Jf("aria-label",a.buttonLabel);B(2);I("svgIcon",a.buttonIcon)}},Mtb=function(a){a&1&&(K(0,"div",
5),S(1),L());a&2&&(a=P(),B(),Ag(a.header))},Ntb=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P(2).$implicit,I("svgIcon",a.icon))},Otb=function(a){a&1&&(K(0,"span",9),S(1),L());a&2&&(a=P(2).$implicit,B(),Ag(a.hintText))},Ptb=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P(2).$implicit,I("svgIcon",a.icon))},Qtb=function(a){a&1&&(K(0,"span",9),S(1),L());a&2&&(a=P(2).$implicit,B(),Ag(a.hintText))},Rtb=function(a){if(a&1){var b=t();K(0,"button",12);N("click",function(d){u(b);var e=P().$implicit,f=P(3);return v(f.onAction(d,
e))})("mouseup",function(d){u(b);var e=P().$implicit,f=P(3);return v(f.onAction(d,e))});F(1,Ptb,1,1,"mat-icon",7);S(2);F(3,Qtb,2,1,"span",9);L()}if(a&2){a=P().$implicit;var c=P(2).$implicit;zg(c.className);I("disabled",a.disabled);Jf("title",a.title);B();G(a.icon?1:-1);B();T(" ",a.label," ");B();G(a.hintText?3:-1)}},Stb=function(a){if(a&1){var b=t();K(0,"button",13);N("click",function(d){u(b);var e=P().$implicit,f=P(3);return v(f.onAction(d,e))})("mouseup",function(d){u(b);var e=P().$implicit,f=P(3);
return v(f.onAction(d,e))});K(1,"span",14);M(2,"mat-icon",15);L();S(3);L()}if(a&2){a=P().$implicit;var c=P(2).$implicit;zg(c.className);yg("b-menu-item-checked",a.selected);I("disabled",a.disabled);Jf("title",a.title);B(3);T(" ",a.label," ")}},Ttb=function(a,b){a&1&&(F(0,Rtb,4,7,"button",10),F(1,Stb,4,7,"button",11));a&2&&(a=b.$implicit,G(a.type==="action"?0:-1),B(),G(a.type==="select"?1:-1))},Utb=function(a){a&1&&(K(0,"button",8),F(1,Ntb,1,1,"mat-icon",7),S(2),F(3,Otb,2,1,"span",9),L(),K(4,"mat-menu",
null,2),Pf(6,Ttb,2,2,null,null,Nf),L());if(a&2){a=Q(5);var b=P().$implicit;I("matMenuTriggerFor",a);B();G(b.icon?1:-1);B();T(" ",b.label," ");B();G(b.hintText?3:-1);B(3);Qf(b.items)}},Vtb=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P(3).$implicit,I("svgIcon",a.icon))},Wtb=function(a){a&1&&(K(0,"span",9),S(1),L());a&2&&(a=P(3).$implicit,B(),Ag(a.hintText))},Xtb=function(a){if(a&1){var b=t();K(0,"button",12);N("click",function(c){u(b);var d=P(2).$implicit,e=P();return v(e.onAction(c,d))})("mouseup",
function(c){u(b);var d=P(2).$implicit,e=P();return v(e.onAction(c,d))});F(1,Vtb,1,1,"mat-icon",7);S(2);F(3,Wtb,2,1,"span",9);L()}a&2&&(a=P(2).$implicit,zg(a.className),I("disabled",a.disabled),Jf("title",a.title),B(),G(a.icon?1:-1),B(),T(" ",a.label," "),B(),G(a.hintText?3:-1))},Ytb=function(a){if(a&1){var b=t();K(0,"button",13);N("click",function(c){u(b);var d=P(2).$implicit,e=P();return v(e.onAction(c,d))})("mouseup",function(c){u(b);var d=P(2).$implicit,e=P();return v(e.onAction(c,d))});K(1,"span",
14);M(2,"mat-icon",15);L();S(3);L()}a&2&&(a=P(2).$implicit,zg(a.className),yg("b-menu-item-checked",a.selected),I("disabled",a.disabled),Jf("title",a.title)("aria-label",a.label+" results per page"),B(3),T(" ",a.label," "))},Ztb=function(a){a&1&&(F(0,Xtb,4,7,"button",10),F(1,Ytb,4,8,"button",11));a&2&&(a=P().$implicit,G(a.type==="action"?0:-1),B(),G(a.type==="select"?1:-1))},$tb=function(a,b){a&1&&(F(0,Utb,8,4),F(1,Ztb,2,2));a&2&&(a=b.$implicit,G(a.type==="submenu"?0:-1),B(),G(a.type!=="submenu"?
1:-1))},aub=function(a){var b=a.userIsExternal;a=a.issueIsExternal;return b&&a},bub=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},cub=function(a,b){a&1&&(K(0,"div",17)(1,"h4",34),S(2,"Summary"),L(),K(3,"p",35),S(4),L()());a&2&&(B(4),Ag(b))},dub=function(a){if(a&1){var b=t();K(0,"th",36)(1,"mat-checkbox",
37);U(2,"async");U(3,"async");N("change",function(c){u(b);var d=P();return v(d.toggleAll(c))});L()()}a&2&&(a=P(),B(),I("checked",W(2,2,a.areAllChecked$))("indeterminate",!W(3,4,a.areAllChecked$)&&a.checkedIssueIds.size>0))},eub=function(a,b){if(a&1){var c=t();K(0,"td",38)(1,"mat-checkbox",39);U(2,"async");N("change",function(d){var e=u(c).$implicit,f=P(),g;((g=d==null?void 0:d.checked)!=null?g:!f.checkedIssueIds.has(e.id))?f.checkedIssueIds.add(e.id):f.checkedIssueIds.delete(e.id);return v()});L()()}a&
2&&(a=b.$implicit,b=P(),B(),I("checked",W(2,1,Cs(b.checkedIssueIds,a.id))))},fub=function(a){a&1&&(K(0,"th",36),S(1," Title "),L())},gub=function(a,b){a&1&&(K(0,"td",38),M(1,"b-issue-title-cell",40),U(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",W(2,2,a.issue$))("enableHovercard",!0))},hub=function(a){a&1&&(K(0,"th",36),S(1," Phase "),L())},iub=function(a){a&1&&(K(0,"span",41),S(1),L());if(a&2){a=P();P(2);B();var b;b=((b=a.snapshot[0])==null?void 0:b.status)==="DUPLICATE"?"Duplicate":(b=Ur(a))?
Tt.get(b):"";Ag(b)}},jub=function(a){a&1&&F(0,iub,2,1,"span",41);a&2&&(P(2),G(0))},kub=function(a,b){a&1&&(K(0,"td",38),F(1,jub,1,1),U(2,"async"),L());if(a&2){var c;a=b.$implicit;B();G((c=W(2,1,a.issue$))?1:-1,c)}},lub=function(a){a&1&&(K(0,"th",42),S(1," Modified "),L())},mub=function(a){a&1&&M(0,"b-formatted-date-time",44);if(a&2){a=P();var b;I("timestamp",((b=a.aggregatedData==null?null:a.aggregatedData.modifiedTimeMicros)!=null?b:0)/1E3)("mode","relativepasttiny")("paddingLeftPx",4)}},nub=function(a){a&
1&&F(0,mub,1,3,"b-formatted-date-time",44);a&2&&(P(2),G(0))},oub=function(a,b){a&1&&(K(0,"td",43),F(1,nub,1,1),U(2,"async"),L());if(a&2){var c;a=b.$implicit;B();G((c=W(2,1,a.issue$))?1:-1,c)}},pub=function(a){a&1&&M(0,"th",36)},qub=function(a,b){if(a&1){var c=t();K(0,"td",38)(1,"b-actions-menu",45);N("click",function(d){u(c);return v(d.stopPropagation())});L()()}a&2&&(a=b.$implicit,b=P(),B(),I("menuItems",b.getMenuItems(a)))},rub=function(a){a&1&&M(0,"tr",46)},sub=function(a,b){a&1&&(M(0,"tr",47),
U(1,"async"));a&2&&(a=b.$implicit,b=P(),yg("closed",b.isClosed(W(1,2,a.issue$))))},tub=function(a,b){a&1&&(K(0,"a",32),S(1," View as search results "),L());a&2&&I("routerLink",b.path)("queryParams",b.params)},uub=function(a){if(a&1){var b=t();K(0,"secondary-footer",49);N("cancelAction",function(){u(b);var c=P(2);return v(c.cancelAction())})("finalizeAction",function(c){u(b);var d=P(2);return v(d.finalizeSecondaryAction(c))});L()}a&2&&(a=P(2),I("selectedTriageAction",a.selectedTriageAction))},vub=
function(a){if(a&1){var b=t();K(0,"triage-action-selector",50);N("onSelect",function(d){u(b);var e=P(2);return v(e.openSecondaryActionFooter(d.key))});L();K(1,"button",51);U(2,"async");U(3,"async");N("click",function(){u(b);var d=P(2);return v(d.openDupeDialog())});bg(4);U(5,"async");S(6);L()}if(a&2){a=P();var c=P();I("phase",a);B();I("disabled",!W(2,3,c.hasAclToEdit$)||!W(3,5,c.checkedIssueIds.size$));a=W(5,7,c.checkedIssueIds.size$)||0;B(5);T(" Mark ",a===1?"1 issue":a>1?a+" issues":""," as duplicate ")}},
wub=function(a){a&1&&F(0,uub,1,1,"secondary-footer",48)(1,vub,7,9);a&2&&(a=P(),G(a.displaySecondaryFooter?0:1))},xub=function(a){a&1&&(K(0,"div",5),M(1,"b-spinner"),L())},yub=function(a){a&1&&M(0,"code",16);a&2&&(a=P(2).$implicit,I("innerHtml",a.formattingModeDiff,Le))},zub=function(a){a&1&&(K(0,"code",17),S(1),L());a&2&&(a=P(2).$implicit,B(),T(" ",a.formattingMode," "))},Aub=function(a){a&1&&(K(0,"p",15),S(1," Formatting: "),F(2,yub,1,1,"code",16)(3,zub,2,1,"code",17),L());a&2&&(a=P(3),B(2),G(a.diffView?
2:3))},Bub=function(a){if(a&1){var b=t();K(0,"div")(1,"span",18)(2,"b-person-hovercard",19);U(3,"omitObfuscatedEmail");S(4);U(5,"appendDomain");L()();K(6,"a",20);N("click",function(c){u(b);var d=P().$implicit,e=P(2);return v(e.updateUrl(c,d.version))});S(7);L()()}a&2&&(a=P().$implicit,P(2),B(2),I("email",W(3,7,Rm(a.lastEditorUser))),B(2),T(" <",W(5,9,Rm(a.lastEditorUser)),"> "),B(2),Jf("aria-label",Gg("Comment version ",a.version)),I("id",Gg("bv2-edit-issue-comment-",a.version)),B(),T(" #",a.version))},
Cub=function(a){a&1&&(K(0,"div",21),S(1),L());a&2&&(a=P(2).$implicit,B(),Ag(a.preview))},Dub=function(a){a&1&&(K(0,"div",22),S(1,"Comment deleted."),L())},Eub=function(a){a&1&&(K(0,"div",23),S(1,"Comment history restricted."),L())},Fub=function(a){a&1&&(F(0,Cub,2,1,"div",21),F(1,Dub,2,0,"div",22),F(2,Eub,2,0,"div",23));a&2&&(a=P().$implicit,G(a.restricted||a.deleted?-1:0),B(),G(!a.restricted&&a.deleted?1:-1),B(),G(a.restricted?2:-1))},Gub=function(a){a&1&&(K(0,"div",24),S(1,"Comment deleted."),L())},
Hub=function(a){a&1&&(M(0,"div",26),U(1,"async"));if(a&2){a=P(2).$implicit;var b=P(2);yg("codefont",W(1,3,b.codefont.codefont$));I("innerHtml",a.unlinkifiedComment,Le)}},Iub=function(a){a&1&&(M(0,"div",26),U(1,"async"));if(a&2){a=P(2).$implicit;var b=P(2);yg("codefont",W(1,3,b.codefont.codefont$));I("innerHtml",a.diff,Le)}},Jub=function(a){a&1&&(K(0,"div",23),S(1," This comment is not available due to present or past restrictions on the comment. "),L())},Kub=function(a){a&1&&(F(0,Gub,2,0,"div",24),
F(1,Hub,2,5,"div",25),F(2,Iub,2,5,"div",25),F(3,Jub,2,0,"div",23));if(a&2){a=P().$implicit;var b=P(2);G(!a.restricted&&a.deleted?0:-1);B();G(b.diffView||a.restricted||a.deleted?-1:1);B();G(!b.diffView||a.restricted||a.deleted?-1:2);B();G(a.restricted?3:-1)}},Lub=function(a,b){if(a&1){var c=t();K(0,"li",9)(1,"div",10);M(2,"b-user-image",11);L();K(3,"div",12);N("click",function(){var d=u(c).$implicit;return v(d.open=!d.open)});M(4,"b-user-display",13)(5,"b-formatted-date-time",14);F(6,Aub,4,1,"p",15);
F(7,Bub,8,11,"div")(8,Fub,3,3);L();F(9,Kub,4,4);L()}a&2&&(a=b.$implicit,P(2),yg("comment-version-open",a.open),B(2),I("email",Rm(a.lastEditorUser)),B(2),I("model",a.lastEditorUser),B(),I("timestamp",a.lastModified),B(),G(a.deleted?-1:6),B(),G(a.open?7:8),B(2),G(a.open?9:-1))},Mub=function(a){a&1&&(K(0,"ul",6),Pf(1,Lub,10,8,"li",8,Nf),L());a&2&&(a=P(),B(),Qf(a.history))},Pub=function(a,b){var c=new Nub;a=Ut(c,a,b);Oub(c,a);c=a.map(function(d){var e=d[0];d=d[1];switch(e){case -1:return Gh("span",{"class":"diff-removed"},
d);case 1:return Gh("span",{"class":"diff-added"},d);case 0:return Gh("span",{"class":void 0},d);default:throw Error("Nf`"+e);}});return Eh(c)},Qub=function(a){var b;return((b=a.entityStatus)==null?void 0:b.status)==="DELETED"},Rub=function(a){a&1&&(K(0,"div",2),S(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. "),K(2,"a",12),S(3," Learn more "),L()());a&2&&(a=P(2),B(2),I("href",a.getRestrictedAccessHelpLink(),
Me))},Tub=function(a){a&1&&(Vf(0),F(1,Rub,4,1,"div",2),Wf());a&2&&(a=P(),B(),G(Sub(a)?1:-1))},Uub=function(a){a&1&&(K(0,"div",2)(1,"span",13),S(2," You do not have access to view this attachment. "),L()())},Vub=function(a){a&1&&M(0,"mat-spinner",8)},Yub=function(a,b,c,d){if(Vt.REPORTING_ENABLED&&Wub(a)){if(b==="heartbeat"){var e=Vt.HEARTBEAT_SAMPLE_RATE;var f="HEARTBEAT"}else if(b==="network_error")e=Vt.CRASH_SAMPLE_RATE,f="CRASHED";else throw Error("Sf`"+b);if(!(Math.random()>e)){var g=Vt.SCF_REPORTING_PRODUCTION_ID;
Vt.TEST_PRODUCT_IDS.includes(a)&&(g=Vt.SCF_REPORTING_TEST_ID);var k=void 0,m=void 0;if(Vt.ENABLE_COLLECTING_NETWORK_INFO){var r;m=(r=navigator)==null?void 0:r.connection;var w,x;k=(x=(w=m==null?void 0:m.type)!=null?w:m==null?void 0:m.effectiveType)!=null?x:"unknown";var D;m=(D=m==null?void 0:m.effectiveType)!=null?D:"unknown"}a={type:f,host:window.location.hostname,additionalData:JSON.stringify({productID:a,samplingRate:e,shimOrigin:c,connectionType:k,effectiveConnectionType:m,reportType:b,message:d})};
g=Vt.REPORTING_URL_PREFIX+g;a=JSON.stringify(a);if(Xub.sendReport)Xub.sendReport(g,a);else try{var H,J;(J=(H=navigator).sendBeacon)==null||J.call(H,g,a)}catch(O){}}}},Wub=function(a){return Vt.PRODUCT_IDS_ALLOWLIST.includes(a)||Vt.TEST_PRODUCT_IDS.includes(a)},Zub=function(a,b,c,d){var e,f,g,k,m,r,w,x,D,H,J,O,R;return y(function(V){switch(V.nextAddress){case 1:if(!(a instanceof Error&&a.message===Error("Tf").message)){V.jumpTo(0);break}e=[c,"https://test-h839267052.scf.usercontent.goog/test-product/shim.html",
"https://0test-h839267052.scf.usercontent.goog/test-product/shim.html","https://safecontentframe.static.usercontent.goog","https://translate.goog/"];f={fetch:{}};g=[];f.additionalMessage=d;Vd(V,3);k=l(e);m=k.next();for(r={};!m.done;r={url$jscomp$322:void 0},m=k.next())r.url$jscomp$322=m.value,g.push(fetch(r.url$jscomp$322,{credentials:"omit",mode:"no-cors",signal:AbortSignal.timeout(1E4)}).then(function(ba){return function(){return{url:ba.url$jscomp$322,result:"success"}}}(r)).catch(function(ba){return function(pa){return{url:ba.url$jscomp$322,
result:pa instanceof Error?pa.message:"unknown error"}}}(r)));return z(V,Promise.all(g),5);case 5:w=V.yieldResult;x=l(w);for(D=x.next();!D.done;D=x.next())J=H=D.value,O=J.url,R=J.result,f.fetch[O]=R;bk(V,4);break;case 3:Zd(V);case 4:Yub(b,"network_error",c,JSON.stringify(f)),$d(V)}})},$ub=function(){this.blockSize=-1},Wt=function(a,b){this.blockSize=-1;this.blockSize=64;this.chunk_=ra.Uint8Array?new Uint8Array(this.blockSize):Array(this.blockSize);this.total_=this.inChunk_=0;this.hash_=[];this.numHashBlocks_=
a;this.initHashBlocks_=b;this.w_=ra.Int32Array?new Int32Array(64):Array(64);avb===void 0&&(ra.Int32Array?avb=new Int32Array(bvb):avb=bvb);this.reset()},dvb=function(){Wt.call(this,8,cvb)},evb=function(a,b){b=b===void 0?!0:b;var c;return y(function(d){if(d.nextAddress==1)if(b&&((c=window.crypto)==null?0:c.subtle))d=z(d,crypto.subtle.digest("SHA-256",a),3);else{var e=d.return;var f=new dvb;f.update(new Uint8Array(a));f=(new Uint8Array(f.digest())).buffer;d=e.call(d,f)}else d=d.return(d.yieldResult);
return d})},ivb=function(a){var b=a.useSubtleCrypto===void 0?!0:a.useSubtleCrypto;var c=a.parts;var d,e,f,g;return y(function(k){if(k.nextAddress==1){if(c.length===0)throw Error("Wf");if(!fvb||!gvb)throw Error("Xf");d=[];for(e=0;e<c.length;e++)f=c[e],typeof f==="string"?d.push(fvb.encode(f).buffer):d.push(f),e<c.length-1&&d.push(gvb);g=hvb.apply(null,n(d));return z(k,evb(g,b),2)}return k.return(k.yieldResult)})},jvb=function(){var a=new Uint8Array(10);crypto.getRandomValues(a);return a},kvb=function(a){return a.reduce(function(b,
c){return BigInt(256)*b+BigInt(c)},BigInt(0)).toString(36)},hvb=function(){for(var a=Yc.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},lvb=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,g,k;return y(function(m){if(m.nextAddress==1)return f=d?d:new ArrayBuffer(0),
z(m,ivb({useSubtleCrypto:e,parts:[b,f,c]}),2);g=m.yieldResult;k=new Uint8Array(g);return m.return(kvb(k).padStart(50,"0").slice(0,50))})},mvb=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},nvb=function(){var a=window.origin;return typeof a==="string"&&(a.startsWith("https://")||a.startsWith("http://")||
a.startsWith("chrome-extension://"))},ovb=function(a,b){return function(c){var d=new Promise(function(e,f){setTimeout(function(){var g;return y(function(k){if(k.nextAddress==1){if(!b())return k.jumpTo(2);g=e;return z(k,a,3)}if(k.nextAddress!=2)return g(k.yieldResult),k.return();f(Error("Yf"));$d(k)})},c)});return Promise.race([a,d])}},pvb=function(a){a&1&&(Sf(0,"span"),S(1),Tf());a&2&&(a=P(),yg("muted",a.isGreyedOut),B(),T(" ",a.displayName))},qvb=function(a){if(a&1){var b=t();Sf(0,"a",2);eg("click",
function(c){u(b);var d=P();return v(d.handleClick(c))});S(1);Tf()}a&2&&(a=P(),Rf("href",a.linkUrl,Me)("rel",a.EXTERNAL_LINK_REL),B(),T(" ",a.displayName))},rvb=function(a){a&1&&(K(0,"span",3),S(1),L());a&2&&(a=P(),Jf("aria-label",a.expandableTabsTitle),B(),Ag(a.expandableTabsTitle))},svb=function(a){a&1&&M(0,"mat-icon",9)},uvb=function(a){a&1&&Xf(0,10);if(a&2){a=P().$implicit;P();var b=Q(14);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,tvb,a))}},vvb=function(){},wvb=function(a){a&1&&E(0,
vvb,0,0,"ng-template")},xvb=function(a){a&1&&E(0,wvb,1,0,null,11);a&2&&(a=P(2).$implicit,I("ngTemplateOutlet",a.tabIconTemplate))},yvb=function(a){a&1&&(F(0,xvb,1,1),Xf(1,10));if(a&2){a=P().$implicit;var b=P(),c=Q(14);G(b.showIcons&&a.tabIconTemplate?0:-1);B();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Kg(3,tvb,a))}},Avb=function(a,b){if(a&1){var c=t();K(0,"button",8);U(1,"async");U(2,"async");U(3,"async");N("click",function(){var d=u(c).$implicit,e=P();return v(zvb(e,d.key))});F(4,svb,1,0,
"mat-icon",9);U(5,"async");F(6,uvb,1,4,"ng-container",10);U(7,"async");Mf(8,yvb,2,5);L()}a&2&&(a=b.$implicit,b=P(),yg("has-icon",!(!b.showIcons||!a.tabIconTemplate))("expanded",!!W(1,11,Cs(b.internalExpandedTabs,a.key))),Jf("aria-controls",Gg("expandable-tabs-",a.key,"-content"))("aria-label",a.ariaLabel)("aria-expanded",!!W(2,13,Cs(b.internalExpandedTabs,a.key)))("aria-selected",!!W(3,15,Cs(b.internalExpandedTabs,a.key))),B(4),G(b.showIcons&&W(5,17,Cs(b.internalExpandedTabs,a.key))?4:-1),B(2),G(W(7,
19,Cs(b.internalExpandedTabs,a.key))?6:8))},Bvb=function(a,b){if(a&1){var c=t();K(0,"button",13);N("click",function(){u(c);var d=P(2);return v(d.toggleAll())});S(1);L()}a&2&&(a=P(2),yg("expandable-tabs-hide-all",b.allTabsExpanded)("expandable-tabs-show-all",!b.allTabsExpanded),Jf("aria-label",(b.allTabsExpanded?"Hide all":"Show all")+" "+a.ariaLabel),B(),T(" ",b.allTabsExpanded?"Hide all":"Show all"," "))},Dvb=function(a){a&1&&(F(0,Bvb,2,6,"button",12),U(1,"async"));if(a&2){var b;a=P();G((b=Kg(3,
Cvb,W(1,1,a.allTabsExpanded$)))?0:-1,b)}},Evb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);var c=P(2);return v(c.hideAll())});S(1," Hide ");L()}a&2&&(a=P(2),Jf("aria-label","Hide "+a.ariaLabel))},Fvb=function(a){if(a&1){var b=t();F(0,Evb,2,1,"button",14);U(1,"async");K(2,"button",15);N("click",function(){u(b);P().showAllClicked.emit(void 0);return v()});S(3," Show all ");M(4,"mat-icon",16);L()}if(a&2){a=P();var c;G(((c=W(1,2,a.internalExpandedTabs.size$))!=null?c:0)>0?
0:-1);B(2);Jf("aria-label","Show all "+a.ariaLabel)}},Gvb=function(){},Hvb=function(a){a&1&&E(0,Gvb,0,0,"ng-template")},Ivb=function(a){a&1&&E(0,Hvb,1,0,null,11);a&2&&(a=P(3).$implicit,I("ngTemplateOutlet",a.tabIconTemplate))},Jvb=function(a){a&1&&(K(0,"h4"),F(1,Ivb,1,1),Xf(2,10),L());if(a&2){a=P(2).$implicit;var b=P(),c=Q(14);B();G(b.showIcons&&a.tabIconTemplate?1:-1);B();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Kg(3,tvb,a))}},Kvb=function(a){a&1&&M(0,"span",20)},Lvb=function(a){a&1&&M(0,
"span",20)},Mvb=function(){},Nvb=function(a){a&1&&E(0,Mvb,0,0,"ng-template")},Ovb=function(a){a&1&&E(0,Nvb,1,0,null,11);a&2&&(a=P(2).$implicit,I("ngTemplateOutlet",a.tabContentTemplate))},Qvb=function(a){a&1&&(K(0,"div",19),F(1,Jvb,3,5,"h4"),U(2,"async"),Mf(3,Kvb,1,0,"span",20),E(4,Lvb,1,0,"ng-template",null,1,Og),F(6,Ovb,1,1),L());if(a&2){a=P().$implicit;var b=P();zg(Gg("expandable-tab-content ",a.key));I("id",Gg("expandable-tabs-",a.key,"-content"));B();var c;G(((c=W(2,7,b.visibleExpandedTabs$))!=
null?c:Jg(9,Pvb)).length>1?1:3);B(5);G(a.tabContentTemplate?6:-1)}},Rvb=function(a,b){a&1&&(F(0,Qvb,7,10,"div",18),U(1,"async"));a&2&&(a=b.$implicit,b=P(),G(W(1,1,Cs(b.internalExpandedTabs,a.key))?0:-1))},Svb=function(){},Tvb=function(a){a&1&&E(0,Svb,0,0,"ng-template")},Uvb=function(a){a&1&&E(0,Tvb,1,0,null,11);a&2&&(a=P().tab,I("ngTemplateOutlet",a.tabHeaderTemplate))},Vvb=function(a){a&1&&S(0);a&2&&(a=P().tab,T(" ",a.key," "))},Wvb=function(a,b){a&1&&F(0,Uvb,1,1)(1,Vvb,1,1);a&2&&G(b.tab.tabHeaderTemplate?
0:1)},Xvb=function(a){a&1&&(K(0,"mat-icon",9),S(1),L());a&2&&(a=P(2),B(),Ag(a.actionBtnIcon))},Yvb=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P();return v(c.action.emit())});K(1,"span",7);S(2);E(3,Xvb,2,1,"mat-icon",8);L()()}a&2&&(a=P(),B(2),T(" ",a.actionBtnText," "),B(),I("ngIf",a.actionBtnIcon))},Zvb=function(a){if(a&1){var b=t();K(0,"onedev-feature-tooltip-body",1);N("action",function(){u(b);var c=P();return v(c.action.emit())})("dismiss",function(){u(b);var c=
P();c.hideFeatureTooltip();c.dismiss.emit();return v()});gg(1);L()}a&2&&(a=P(),I("actionBtnText",a.actionBtnText)("actionBtnIcon",a.actionBtnIcon)("color",a.color)("pointerPosition",a.pointerPosition)("widthOffset",a.widthOffset))},awb=function(a){a&1&&(K(0,"onedev-feature-tooltip-controller")(1,"onedev-feature-tooltip",4)(2,"p",5),S(3,"Attachment analysis"),L(),S(4," See agent-generated attachment analysis alongside your files. "),L()());a&2&&(a=P(),B(),I("customPositions",Lg(2,$vb,a.TOOLTIP_POSITIONS.BOTTOM_LEFT,
a.TOOLTIP_POSITIONS.TOP_LEFT))("tooltipId",a.ATTACHMENT_ENRICHMENTS_FEATURE_TOOLTIP_ID))},cwb=function(a){a&1&&(S(0),U(1,"async"));if(a&2){a=P().$implicit;var b=P(),c;T(" ",(c=a.customDisplayName)!=null?c:W(1,1,bwb(b,a.category))," ")}},dwb=function(a){a&1&&(K(0,"span",25),M(1,"b-actions-menu",28),L());a&2&&(P(),a=dg(25),B(),I("menuItems",a)("buttonLabel","Enrichment actions")("matTooltip","Enrichment actions"))},ewb=function(a){a&1&&M(0,"b-spinner")},fwb=function(a){a&1&&M(0,"b-markdown-format-presenter",
29);a&2&&(P(2),a=dg(30),I("content",a.formattedContent.markdownFormat))},gwb=function(a){a&1&&M(0,"b-literal-format-presenter",29);a&2&&(P(2),a=dg(30),I("content",a.formattedContent.literalFormat))},hwb=function(a){a&1&&M(0,"b-plain-format-presenter",29);a&2&&(P(2),a=dg(30),I("content",a.formattedContent.plainFormat))},iwb=function(a){a&1&&(F(0,fwb,1,1,"b-markdown-format-presenter",29),F(1,gwb,1,1,"b-literal-format-presenter",29),F(2,hwb,1,1,"b-plain-format-presenter",29));a&2&&(P(),a=dg(30),G(a.formattedContent.markdownFormat?
0:-1),B(),G(a.formattedContent.literalFormat?1:-1),B(),G(a.formattedContent.plainFormat?2:-1))},kwb=function(a){if(a&1){var b=t();K(0,"table",8)(1,"tr",9)(2,"td",10);M(3,"b-user-display",11)(4,"mat-icon",12);K(5,"onedev-hovercard",null,0)(7,"div",13)(8,"div",14)(9,"span",15);S(10);U(11,"async");M(12,"br")(13,"br");S(14);U(15,"async");L()()()()();K(16,"td",16)(17,"span",17);M(18,"b-formatted-date-time",18);L();K(19,"button",19);N("click",function(){u(b);var e=P().$implicit,f=P();return v(f.copyContent(e))});
M(20,"mat-icon",20);L();K(21,"button",21);N("click",function(){u(b);var e=P().$implicit,f=P();return v(f.trackThumbsUp(e))});M(22,"mat-icon",22);L();K(23,"button",23);N("click",function(){u(b);var e=P().$implicit,f=P();return v(f.trackThumbsDown(e))});M(24,"mat-icon",24);L();bg(25);F(26,dwb,2,3,"span",25);L()();K(27,"tr",26)(28,"td",27);F(29,ewb,1,0,"b-spinner");bg(30);F(31,iwb,3,3);L()()()}if(a&2){var c=Q(6);a=P().$implicit;var d=P();B(3);I("model",a.author);B();I("onedevHovercardTrigger",c)("onedevHovercardActive",
!0)("onedevHovercardConfig",d.CATEGORY_INFO_HOVERCARD_CONFIG);B(6);T(" ",W(11,16,bwb(d,a.category))," ");B(4);T(" ",W(15,18,jwb(d,a.category))," ");B(4);I("timestamp",a.timestamp);B(3);I("disabled",d.hasReacted(a));B();yg("has-reacted-icon",d.thumbsUpClicked(a));B();I("disabled",d.hasReacted(a));B();yg("has-reacted-icon",d.thumbsDownClicked(a));B();c=cg(d.categoryToActionMenuItems.get(a.category));B();G(c&&c.length>0?26:-1);B(3);G(d.isLoading(a.category)?29:-1);B();c=cg(d.enrichmentCategoryToContent.get(a.category));
B();G(c&&!d.isLoading(a.category)?31:-1)}},lwb=function(a,b){a&1&&(K(0,"expandable-tab",3),E(1,cwb,2,3,"ng-template",6)(2,kwb,32,22,"ng-template",7),L());a&2&&(a=b.$implicit,b=P(),I("key",a.category)("ariaLabel","Toggle "+a.category+" attachment enrichment category for attachment id "+b.attachmentId))},mwb=function(a){return a.issueId+"_"+a.attachmentId+"_"+a.category},pwb=function(a){a&1&&(K(0,"span"),S(1),K(2,"b"),S(3),L(),S(4," on "),K(5,"b"),S(6),U(7,"date"),L(),S(8,". "),L());a&2&&(a=P(4),B(),
T(" Currently, the ",a.contentType," is scheduled for deletion in "),B(2),Ag(nwb(owb(a).getTime(),!0)),B(3),Ag(Ng(7,3,owb(a),"longDate")))},qwb=function(a){a&1&&(S(0," The retention has "),K(1,"b"),S(2,"expired"),L(),S(3),K(4,"b"),S(5),U(6,"date"),L(),S(7,". "));a&2&&(a=P(4),B(3),T(" and the ",a.contentType," was scheduled for deletion on "),B(2),Ag(Ng(6,2,owb(a),"longDate")))},rwb=function(a){a&1&&(K(0,"span")(1,"b"),S(2,"Retention:"),L(),S(3),K(4,"b"),S(5),L(),S(6," from the last modification of the issue. "),
F(7,pwb,9,6,"span")(8,qwb,8,5),L());a&2&&(a=P(3),B(3),T(" This ",a.contentType," has a retention period of "),B(2),Ag(a.getRetentionPeriod()),B(2),G(owb(a).getTime()<(new Bm).getTime()?8:7))},swb=function(a){a&1&&(K(0,"b"),S(1,"Retention:"),L(),S(2));a&2&&(a=P(3),B(2),T(" This ",a.contentType," has an indefinite retention period. "))},twb=function(a){a&1&&(S(0),K(1,"b"),S(2,"overridden"),L(),S(3," retention period set to match the issue retention period. "));a&2&&(a=P(3),T(" The ",a.contentType," has an "))},
uwb=function(a){a&1&&(K(0,"p"),F(1,rwb,9,3,"span")(2,swb,3,1),F(3,twb,4,1),L());a&2&&(a=P(2),B(),G(a.retentionState&&!a.retentionState.scheduledDeletionTime?2:1),B(2),G(a.retention===a.retentionModel.INDEFINITE?3:-1))},vwb=function(a){a&1&&(K(0,"div",5)(1,"p")(2,"b"),S(3,"Restricted Access:"),L(),S(4),K(5,"a",6),S(6," Learn More "),L()(),F(7,uwb,4,2,"p"),L());a&2&&(a=P(),B(4),T(" This ",a.contentType," is only available to users with the appropriate permissions. "),B(),I("rel",a.EXTERNAL_LINK_REL),
Jf("href",a.documentationLinks.getRestrictedAccessHelpLink(),Me),B(2),G(a.retentionState?7:-1))},wwb=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)})},ywb=function(a){var b=Qt(document,"IFRAME");if(!b.sandbox)throw Error("fg");b.sandbox.value="allow-scripts";b.sandbox.supports&&b.sandbox.add&&b.sandbox.supports("allow-downloads")&&b.sandbox.add("allow-downloads");
if(xwb==""){var c=Kva('<!DOCTYPE html><body><input type="hidden" id="nonce" value="'+Dh(a)+'" /><script nonce="'+Dh((0,Lh.getScriptNonce)(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){var b;p===void 0&&(p=q());a=(b=p)?b.createScript(a):a;return new r(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=xh("data:text/html;charset=UTF-8;base64,"+btoa(c.toString()));(0,Lh.setIframeSrcdoc)(b,c)}else a=rra(xwb,new Map([["nonce",a]]));(0,Lh.setIframeSrc)(b,a);b.style.cssText="border: 0; height: 0; left: 0; position: absolute; top: 0; width: 0;";b.setAttribute("aria-hidden","true");return b},zwb=function(){return new Promise(function(a){setTimeout(a,500)})},Awb=function(a){a&1&&M(0,"b-restricted-chip",6);a&2&&(a=P(),I("label",a.getRestrictedLabel())("retentionState",a.attachment==null?null:a.attachment.piiRetentionState)("contentType",
"attachment"))},Bwb=function(a){a&1&&(K(0,"span",7),M(1,"b-actions-menu",13),L());a&2&&(a=P(),B(),I("menuItems",a.actionMenuItems)("buttonLabel","Attachment actions")("matTooltip","Attachment actions"))},Ewb=function(a){if(a&1){var b=t();K(0,"span")(1,"b-conditional-link",14);N("customHandler",function(){u(b);var c=P();return v(c.viewAttachment())});L()()}a&2&&(a=P(),zg(Gg("bv2-issue-attachment-link ",Cwb(a))),B(),I("isGreyedOut",!a.hasViewAccess)("displayName","View")("linkUrl",Dwb(a,!1))("linkEnabled",
!0)("useCustomHandler",!0))},Gwb=function(a){if(a&1){var b=t();K(0,"span")(1,"b-conditional-link",14);N("customHandler",function(){u(b);var c=P();return v(Fwb(c))});L()();K(2,"span",15)(3,"button",16);N("click",function(){u(b);var c=P(),d;if((d=c.attachment)==null||!d.attachmentId)throw Error("gg");d=Xt(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()});M(4,"b-icon",17);L()()}a&
2&&(a=P(),zg(Gg("bv2-issue-attachment-link ",Cwb(a))),B(),I("isGreyedOut",!a.hasViewAccess)("displayName","Download")("linkUrl",Dwb(a,!0))("linkEnabled",!0)("useCustomHandler",!0))},Hwb=function(a){a&1&&(K(0,"span",11)(1,"a",18),M(2,"mat-icon",19),L()());a&2&&(a=P(),B(),I("href",a.documentationLinks.getRestrictedAccessHelpLink(),Me)("disableRipple",!0),B(),I("svgIcon","help-outline"))},Iwb=function(a){a&1&&(K(0,"div",20),S(1," You do not have access to this restricted attachment. "),K(2,"a",21),S(3,
"Learn more"),L()());a&2&&(a=P(),B(2),I("href",a.documentationLinks.getRestrictedAccessHelpLink(),Me))},Jwb=function(a){a&1&&M(0,"attachment-preview",12);a&2&&(a=P(),I("issueId",a.issueId)("attachmentId",a.attachment==null?null:a.attachment.attachmentId.toString())("mimeType",a.attachment==null?null:a.attachment.contentType))},Kwb=function(a){a&1&&M(0,"b-attachment-enrichments",22);if(a&2){a=P();var b=P();I("issueId",b.issueId)("attachmentId",b.attachment.attachmentId.toString())("attachmentEnrichments",
a)}},Lwb=function(a,b){a&1&&F(0,Kwb,1,3,"b-attachment-enrichments",22);a&2&&(a=P(),b=a.isActive()&&a.hasViewAccess&&b&&b.length>0,G(b?0:-1))},Pwb=function(a){return{eligibilityState:Mwb[Ri(a,1,void 0,fb)],rejectionReason:ym(a,3,fb)?Nwb[a.getRejectionReason()]:void 0,runMetadata:Si(a,Yt,2,fb)?Owb(Y(a,Yt,2,fb)):void 0}},Owb=function(a){return{runId:a.getRunId(),issueId:String(a.getIssueId()),startTimestamp:tn(Y(a,nj,3,fb))}},Twb=function(a){var b=a.hasMetadata()?Owb(a.getMetadata()):void 0;if(a.hasResults()){a=
a.getResults();if(a.hasSummary()){var c=a.getSummary();c={problemIdentificationSection:Si(c,Zt,1,fb)?Qwb(Y(c,Zt,1,fb)):void 0,solutionSection:Si(c,Zt,2,fb)?Qwb(Y(c,Zt,2,fb)):void 0,codeChangeSection:Si(c,Zt,3,fb)?Qwb(Y(c,Zt,3,fb)):void 0}}else c=void 0;if(Si(a,$t,2,fb)){var d=Y(a,$t,2,fb);var e=d.getPrompt();d=Wi(d,au,2,Xi(),fb);e={prompt:e,steps:d.map(Rwb)}}else e=void 0;Si(a,Swb,3,fb)?(d=Y(a,Swb,3,fb),d={buildInvocationId:Fi(d,1,void 0,fb),testSpongeInvocationId:Fi(d,2,void 0,fb)}):d=void 0;a={summary:c,
trajectory:e,validation:d,oclNumber:Gn(a,4,fb)?String(Hn(a,4,void 0,fb)):void 0}}else a=void 0;return{metadata:b,results:a}},Qwb=function(a){return{entries:[].concat(n(a.getEntriesList()))}},Rwb=function(a){var b=a.getText();a=Wi(a,bu,2,Xi(),fb);return{text:b,functionCalls:a.map(Uwb)}},Uwb=function(a){return{name:a.getName(),arguments:Object.fromEntries(rc(a,2,Rb,fb).entries()),outputs:Object.fromEntries(rc(a,3,Rb,fb).entries())}},Wwb=function(a){return{issueRunStatuses:Wi(a,cu,1,Xi(),fb).map(Vwb)}},
Vwb=function(a){return{issueId:String(a.getIssueId()),runId:a.getRunId(),runStatus:Xwb[Ri(a,3,void 0,fb)]}},Ywb=function(a){return{toolFlywayId:Fi(a,1,void 0,fb)}},Zwb=function(a,b){return Math.min(a,b)},$wb=function(a,b){return Math.pow(2,a)*b},axb=function(){var a={initialInterval:6E4,maxRetries:9};a=typeof a==="number"?{initialInterval:a}:a;var b=a.initialInterval,c=a.maxRetries===void 0?Infinity:a.maxRetries,d=a.maxInterval===void 0?Infinity:a.maxInterval,e=a.shouldRetry===void 0?function(){return!0}:
a.shouldRetry,f=a.resetOnSuccess===void 0?!1:a.resetOnSuccess,g=a.backoffDelay===void 0?$wb:a.backoffDelay;return function(k){return le(function(){var m=0;return k.pipe(Hla(function(r){return r.pipe(mla(function(w){var x=m++;return jia(function(){return x<c&&e(w)},qe(Zwb(g(x,b),d)),ce(w))}))}),Bf(function(){f&&(m=0)}))})}},bxb=function(a){if(a&1){var b=t();K(0,"button",1);N("click",function(){u(b);var c=P();return v(c.openSidebar())});M(1,"mat-icon",2);S(2);L()}a&2&&(a=P(),B(2),T(" ",a.buttonText,
" "))},dxb=function(a){if(a&1){var b=t();K(0,"button",17,1);N("click",function(){u(b);var c=P(2);return v(cxb(c))});S(2," Edit ");L()}},exb=function(a,b){a&1&&(M(0,"b-user-display",18),K(1,"onedev-hovercard",null,2),M(3,"b-issue-person-card",19),U(4,"async"),L(),S(5," created issue "));if(a&2){a=Q(2);var c=P(2);I("onedevHovercardTrigger",a)("model",b);B(3);var d;I("email",(d=W(4,3,c.originalAuthorEmail$))!=null?d:"")}},fxb=function(a,b){a&1&&(S(0," on behalf of "),M(1,"b-user-display-name",20),U(2,
"emailToUser"));a&2&&(B(),I("user",W(2,2,b))("showEmail",!1))},gxb=function(a){a&1&&(F(0,fxb,3,4),U(1,"async"));if(a&2){var b;a=P(2);G((b=W(1,1,a.onBehalfOfEmail$))?0:-1,b)}},hxb=function(a,b){if(a&1){var c=t();K(0,"a",21);N("click",function(d){var e=u(c);P(2).issueReferenceResolver.visit({issueId:e,elementId:"comment1",event:d});return v()});S(1);L()}a&2&&(a=P(),P(),I("routerLinkObj",p7a(b,{comment:1})),Jf("aria-label","Comment number"+a.commentNumber),B(),T(" #",a.commentNumber))},ixb=function(a,
b){a&1&&(S(0," by "),M(1,"b-user-display",18),K(2,"onedev-hovercard",null,3),M(4,"b-issue-person-card",19),L());if(a&2){a=Q(3);B();I("onedevHovercardTrigger",a)("model",b);B(3);var c;I("email",(c=b.emailAddress)!=null?c:"")}},jxb=function(a){a&1&&(K(0,"span",12),U(1,"async"),S(2," \u2022 Edited "),F(3,ixb,5,3),U(4,"async"),L());if(a&2){var b;a=P(2);I("matTooltip",W(1,2,a.editedTooltipText$));B(3);G((b=W(4,4,a.lastNonCreatorCommentEditorUser$))?3:-1,b)}},kxb=function(a){a&1&&(K(0,"p",16),S(1," Description has been deleted. "),
L())},lxb=function(a){if(a&1){var b=t();K(0,"b-restricted-comment-placeholder",23);U(1,"async");N("onConfirm",function(){u(b);var c=P(),d=P(3),e=P();return v(e.loadRestrictedComment(c,d))});L()}a&2&&(a=P(5),I("disabled",!W(1,1,a.mayReadPii$)))},mxb=function(a){a&1&&(F(0,lxb,2,3,"b-restricted-comment-placeholder",22),U(1,"async"));a&2&&(a=P(4),G(W(1,1,a.shouldShowRestrictedPlaceholder$)?0:-1))},nxb=function(a){a&1&&(F(0,mxb,2,3),U(1,"async"));if(a&2){var b;a=P(3);G((b=W(1,1,a.id$))?0:-1,b)}},oxb=function(a,
b){a&1&&(M(0,"b-note-container",25),U(1,"async"),U(2,"async"),U(3,"async"));if(a&2){a=P();var c=P(4),d,e;I("issueId",a)("issueAccessLevel",W(1,5,c.accessLevel$))("note",b)("formattingMode",(d=W(2,7,c.formattingMode$))!=null?d:c.FormattingMode.PLAIN)("canEditComment",(e=W(3,9,c.canEditComment$))!=null?e:!1)}},pxb=function(a){a&1&&(F(0,oxb,4,11,"b-note-container",25),U(1,"async"),U(2,"async"));if(a&2){var b;a=P(4);G((b=W(1,1,a.hasDescription$)&&W(2,3,a.firstNote$))?0:-1,b)}},qxb=function(a){a&1&&S(0,
" Add one. ")},rxb=function(a){a&1&&(K(0,"p",24),S(1," No description yet. "),F(2,qxb,1,0),U(3,"async"),L());a&2&&(a=P(4),B(2),G(W(3,1,a.canEditComment$)?2:-1))},sxb=function(a){a&1&&(F(0,pxb,3,5),U(1,"async"),F(2,rxb,4,3,"p",24),U(3,"async"));if(a&2){var b;a=P(3);G((b=W(1,2,a.id$))?0:-1,b);B(2);G(W(3,4,a.hasDescription$)?-1:2)}},txb=function(a){a&1&&(F(0,nxb,2,3),U(1,"async"),Mf(2,sxb,4,6));a&2&&(a=P(2),G(W(1,1,a.isRedacted$)?0:2))},uxb=function(a,b){a&1&&(M(0,"b-attachment-viewer",28),U(1,"async"));
if(a&2){a=P().$implicit;var c=P(4),d;I("issueId",b)("attachment",a)("attachmentUploader",(d=W(1,3,c.originalAuthorEmail$))!=null?d:"")}},vxb=function(a,b){a&1&&(K(0,"div",27),F(1,uxb,2,5,"b-attachment-viewer",28),U(2,"async"),L());if(a&2){var c;a=b.$implicit;b=P(4);I("id",Gg("attachment",a.attachmentId));B();G((c=W(2,3,b.id$))?1:-1,c)}},wxb=function(a){a&1&&(K(0,"div",26),Pf(1,vxb,3,5,"div",27,Of),L());a&2&&(a=P(),B(),Qf(a))},xxb=function(a,b){a&1&&F(0,wxb,3,0,"div",26);a&2&&G(b.length?0:-1)},zxb=
function(a,b){a&1&&(K(0,"div",4),M(1,"mat-icon",5),K(2,"div",6)(3,"div",7)(4,"div",8)(5,"h4",9),S(6,"Description"),L(),F(7,dxb,3,0,"button",10),U(8,"async"),F(9,exb,6,5),U(10,"async"),F(11,gxb,2,3),U(12,"async"),F(13,hxb,2,3,"a",11),U(14,"async"),F(15,jxb,5,6,"span",12),U(16,"async"),L(),K(17,"div"),M(18,"b-formatted-date-time",13)(19,"b-actions-menu",14,0),U(21,"async"),L()(),M(22,"llm-chat-open-button",15),F(23,kxb,2,0,"p",16),U(24,"async"),Mf(25,txb,3,3),F(26,xxb,1,1),U(27,"async"),L()());if(a&
2){var c,d,e;a=P();B(7);G(W(8,10,a.canEditComment$)?7:-1);B(2);G((c=W(10,12,a.originalAuthor$))?9:-1,c);B(2);G(W(12,14,a.isAuthorNotReporter$)?11:-1);B(2);G((d=b.commentNumber&&W(14,16,a.id$))?13:-1,d);B(2);G(W(16,18,a.isShowCommentHistoryActionInMenu$)?15:-1);B(3);I("timestamp",b.modifiedDate);B();var f;I("buttonLabel","Description actions")("menuItems",(f=W(21,20,a.commentActionMenuItems$))!=null?f:Jg(26,yxb));B(4);G(W(24,22,a.isDeleted$)?23:25);B(3);G((e=W(27,24,a.attachments$))?26:-1,e)}},Axb=
function(a){a&1&&M(0,"b-spinner")},Bxb=function(a){a&1&&(Yf(0),S(1," reacted"),Qe())},Cxb=function(a){a&1&&(Yf(0),S(1,", "),Uf(2,"br"),Qe())},Dxb=function(a,b){a&1&&(Sf(0,"div"),Yf(1),S(2),Qe(),F(3,Bxb,2,0,"ng-container")(4,Cxb,3,0,"ng-container"),Tf());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B(2);T(" ",a);B();G(c===b-1?3:4)}},Exb=function(a){a&1&&(Vf(0),S(1),Wf());a&2&&(a=P(2),B(),T(" by ",Om(a.event.lastCommentEditorUser)))},Fxb=function(a){a&1&&(Vf(0),S(1,"Message last modified"),Wf(),
F(2,Exb,2,1,"ng-container"),Vf(3),S(4," on "),M(5,"b-formatted-date-time",0),Wf());a&2&&(a=P(),B(2),G(a.event.version===0&&a.event.lastCommentEditorUser?2:-1),B(3),I("timestamp",a.event.commentLastModifiedAtDate))},Gxb=function(a){a&1&&M(0,"b-user-email",0);a&2&&(a=P().$implicit,I("email",a.text)("withProfile",!0))},Hxb=function(a){a&1&&(K(0,"b-issue-reference-widget",1),S(1),L());if(a&2){a=P().$implicit;var b=P();I("href",zs.viewIssue.makeHref(a.text))("issueId",b.getIssueId(a));B();Ag(a.text)}},
Ixb=function(a){a&1&&(Vf(0),S(1),Wf());a&2&&(a=P().$implicit,B(),Ag(a.text))},Jxb=function(a,b){a&1&&F(0,Gxb,1,2,"b-user-email",0)(1,Hxb,2,3,"b-issue-reference-widget",1)(2,Ixb,2,1,"ng-container");if(a&2){var c;G((c=b.$implicit.tag)==="user"?0:c==="bug"?1:2)}},Kxb=function(a){a&1&&(Vf(0),M(1,"b-component-card",4,1),Wf());if(a&2){a=Q(2);var b=P();B();I("onedevIsHovercardReady",a.init)("componentId",b.id)}},Lxb=function(a){a&1&&(K(0,"span"),S(1),L());if(a&2){a=P(5);B();var b;Ag((b=a.effortSpecName)!=
null?b:"Estimated Effort")}},Mxb=function(a){a&1&&(K(0,"span"),S(1,"Estimated Effort (disabled)"),L())},Nxb=function(a){a&1&&(K(0,"label"),F(1,Lxb,2,1,"span")(2,Mxb,2,0,"span"),S(3," :\u200b "),L());a&2&&(a=P(4),B(),G(a.effortEnabled?1:2))},Oxb=function(a){a&1&&(K(0,"label"),S(1),L());a&2&&(a=P(3).$implicit,B(),T("",a.displayName,":\u200b"))},Pxb=function(a){a&1&&(K(0,"span"),M(1,"b-user-display-name",7),U(2,"emailToUser"),L());a&2&&(a=P(),B(),I("user",W(2,2,a))("showEmail",!0))},Qxb=function(a){a&
1&&M(0,"plain-component-path",5);a&2&&(a=P(4).$implicit,I("id",a.oldValue))},Rxb=function(a){a&1&&M(0,"b-formatted-date-time",8);if(a&2){a=P(2);var b=P(4);I("timestamp",b.asNumber(a)*1E3)}},Sxb=function(a){a&1&&(K(0,"span"),S(1,"[Issue creation date]"),L())},Txb=function(a){a&1&&(K(0,"span"),F(1,Rxb,1,1,"b-formatted-date-time",8),F(2,Sxb,2,0,"span"),L());a&2&&(a=P(),B(),G(a!=="<none>"?1:-1),B(),G(a==="<none>"?2:-1))},Uxb=function(a){a&1&&M(0,"b-formatted-date-time",8);if(a&2){a=P(2);var b=P(4);I("timestamp",
b.asNumber(a)*1E3)}},Vxb=function(a){a&1&&(K(0,"span"),S(1,"[Unset]"),L())},Wxb=function(a){a&1&&(K(0,"span"),F(1,Uxb,1,1,"b-formatted-date-time",8),F(2,Vxb,2,0,"span"),L());a&2&&(a=P(),B(),G(a!=="<none>"?1:-1),B(),G(a==="<none>"?2:-1))},Xxb=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(),P(4),B(),Ag(Qpb(a)))},Yxb=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(),B(),Ag(a))},Zxb=function(a){a&1&&(F(0,Pxb,3,4,"span"),F(1,Qxb,1,1,"plain-component-path",5),F(2,Txb,3,2,"span"),F(3,Wxb,3,2,"span"),
F(4,Xxb,2,1,"span"),F(5,Yxb,2,1,"span"),Vf(6),S(7,"\u00a0"),Wf(),M(8,"span",6),Vf(9),S(10,"\u00a0"),Wf());a&2&&(a=P(3).$implicit,G(a.isUser?0:-1),B(),G(a.name==="component"?1:-1),B(),G(a.name=="sloStartTime"?2:-1),B(),G(a.name=="sloEndTime"?3:-1),B(),G(a.name==="access_limit"?4:-1),B(),G(a.isUser||a.name==="component"||a.name==="sloStartTime"||a.name==="sloEndTime"||a.name==="access_limit"?-1:5))},$xb=function(a){a&1&&(M(0,"b-user-display-name",7),U(1,"emailToUser"));a&2&&(a=P(),I("user",W(1,2,a))("showEmail",
!0))},ayb=function(a){a&1&&(K(0,"span"),M(1,"plain-component-path",5),L());a&2&&(a=P(4).$implicit,B(),I("id",a.newValue))},byb=function(a){a&1&&M(0,"b-formatted-date-time",8);if(a&2){a=P(2);var b=P(4);I("timestamp",b.asNumber(a)*1E3)}},cyb=function(a){a&1&&(K(0,"span"),S(1,"[Issue creation date]"),L())},dyb=function(a){a&1&&(K(0,"span"),F(1,byb,1,1,"b-formatted-date-time",8),F(2,cyb,2,0,"span"),L());a&2&&(a=P(),B(),G(a!=="<none>"?1:-1),B(),G(a==="<none>"?2:-1))},eyb=function(a){a&1&&M(0,"b-formatted-date-time",
8);if(a&2){a=P(2);var b=P(4);I("timestamp",b.asNumber(a)*1E3)}},fyb=function(a){a&1&&(K(0,"span"),S(1,"[Unset]"),L())},gyb=function(a){a&1&&(K(0,"span"),F(1,eyb,1,1,"b-formatted-date-time",8),F(2,fyb,2,0,"span"),L());a&2&&(a=P(),B(),G(a!=="<none>"?1:-1),B(),G(a==="<none>"?2:-1))},hyb=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(),P(4),B(),Ag(Qpb(a)))},iyb=function(a){a&1&&(K(0,"span"),S(1),L());if(a&2){a=P();var b=P(3).$implicit;yg("bv2-diff-newvalue-nextline",b.oldValue&&b.name=="title");B();
Ag(a)}},jyb=function(a){a&1&&(F(0,$xb,2,4,"b-user-display-name",7),F(1,ayb,2,1,"span"),F(2,dyb,3,2,"span"),F(3,gyb,3,2,"span"),F(4,hyb,2,1,"span"),F(5,iyb,2,3,"span",9));a&2&&(a=P(3).$implicit,G(a.isUser?0:-1),B(),G(a.name==="component"?1:-1),B(),G(a.name==="sloStartTime"?2:-1),B(),G(a.name==="sloEndTime"?3:-1),B(),G(a.name==="access_limit"?4:-1),B(),G(a.isUser||a.name=="component"||a.name=="sloStartTime"||a.name=="sloEndTime"||a.name=="access_limit"?-1:5))},kyb=function(a){a&1&&(K(0,"div",4),F(1,
Nxb,4,1,"label")(2,Oxb,2,1,"label"),F(3,Zxb,11,6),F(4,jyb,6,6),L());if(a&2){var b,c;a=P(2).$implicit;B();G(a.name==="effort"?1:2);B(2);G((b=a.oldValue)?3:-1,b);B();G((c=a.newValue)?4:-1,c)}},lyb=function(a){a&1&&(K(0,"span"),S(1,", "),L())},myb=function(a,b){a&1&&(K(0,"span"),M(1,"b-user-display-name",7),U(2,"emailToUser"),F(3,lyb,2,0,"span"),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();I("user",W(2,3,a))("showEmail",!0);B(2);G(c!==b-1?3:-1)}},nyb=function(a){a&1&&(K(0,"span"),Pf(1,myb,
4,5,"span",null,Of),L());a&2&&(a=P(4).$implicit,B(),Qf(a.added))},oyb=function(a){a&1&&(K(0,"span"),S(1,", "),L())},pyb=function(a,b){a&1&&(K(0,"span")(1,"span"),S(2),L(),F(3,oyb,2,0,"span"),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B(2);Ag(a);B();G(c!==b-1?3:-1)}},qyb=function(a){a&1&&(K(0,"span"),Pf(1,pyb,4,2,"span",null,Of),L());a&2&&(a=P(4).$implicit,B(),Qf(a.added))},ryb=function(a){a&1&&(K(0,"div")(1,"label"),S(2),L(),F(3,nyb,3,0,"span")(4,qyb,3,0,"span"),L());a&2&&(a=P(3).$implicit,
B(2),T("+",a.displayName,":\u200b"),B(),G(a.isUser?3:4))},syb=function(a){a&1&&(K(0,"span"),S(1,", "),L())},tyb=function(a,b){a&1&&(K(0,"span"),M(1,"b-user-display-name",7),U(2,"emailToUser"),F(3,syb,2,0,"span"),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();I("user",W(2,3,a))("showEmail",!0);B(2);G(c!==b-1?3:-1)}},uyb=function(a){a&1&&(K(0,"span"),Pf(1,tyb,4,5,"span",null,Of),L());a&2&&(a=P(4).$implicit,B(),Qf(a.removed))},vyb=function(a){a&1&&(K(0,"span"),S(1,", "),L())},wyb=function(a,
b){a&1&&(K(0,"span")(1,"span"),S(2),L(),F(3,vyb,2,0,"span"),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B(2);Ag(a);B();G(c!==b-1?3:-1)}},xyb=function(a){a&1&&(K(0,"span"),Pf(1,wyb,4,2,"span",null,Of),L());a&2&&(a=P(4).$implicit,B(),Qf(a.removed))},yyb=function(a){a&1&&(K(0,"div")(1,"label"),S(2),L(),F(3,uyb,3,0,"span")(4,xyb,3,0,"span"),L());a&2&&(a=P(3).$implicit,B(2),T("-",a.displayName,":\u200b"),B(),G(a.isUser?3:4))},zyb=function(a){a&1&&(K(0,"div",4),F(1,ryb,5,2,"div"),F(2,yyb,5,2,"div"),
L());if(a&2){a=P(2).$implicit;var b=P();B();G(a.added&&a.added.length&&b.isStringArray(a.added)?1:-1);B();G(a.removed&&a.removed.length&&b.isStringArray(a.removed)?2:-1)}},Ayb=function(a){a&1&&Xf(0)},Cyb=function(a,b){a&1&&(K(0,"span"),E(1,Ayb,1,0,"ng-container",10),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(4).$implicit;P();var e=Q(4);B();I("ngTemplateOutlet",e)("ngTemplateOutletContext",Mg(2,Byb,d,a,c===b-1))}},Dyb=function(a){a&1&&(K(0,"div")(1,"label"),S(2),L(),Pf(3,Cyb,2,6,
"span",null,Of),L());a&2&&(a=P(3).$implicit,B(2),T("+",a.displayName,":\u200b"),B(),Qf(a.added))},Eyb=function(a){a&1&&Xf(0)},Fyb=function(a,b){a&1&&(K(0,"span"),E(1,Eyb,1,0,"ng-container",10),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(4).$implicit;P();var e=Q(4);B();I("ngTemplateOutlet",e)("ngTemplateOutletContext",Mg(2,Byb,d,a,c===b-1))}},Gyb=function(a){a&1&&(K(0,"div")(1,"label"),S(2),L(),Pf(3,Fyb,2,6,"span",null,Of),L());a&2&&(a=P(3).$implicit,B(2),T("-",a.displayName,":\u200b"),
B(),Qf(a.removed))},Hyb=function(a){a&1&&(K(0,"div",4),F(1,Dyb,5,1,"div"),F(2,Gyb,5,1,"div"),L());if(a&2){a=P(2).$implicit;var b=P();B();G(a.added&&a.added.length&&b.isLinkedItemArray(a.added)?1:-1);B();G(a.removed&&a.removed.length&&b.isLinkedItemArray(a.removed)?2:-1)}},Iyb=function(a){a&1&&M(0,"b-formatted-date-time",8);a&2&&(a=P(),I("timestamp",a))},Jyb=function(a){a&1&&(K(0,"span"),S(1," - "),L())},Kyb=function(a,b){a&1&&(K(0,"span"),M(1,"b-formatted-date-time",8),F(2,Jyb,2,0,"span"),L());if(a&
2){a=b.$implicit;var c=b.$index;b=b.$count;B();I("timestamp",a);B();G(c!==b-1?2:-1)}},Lyb=function(a){a&1&&(K(0,"span"),Pf(1,Kyb,3,2,"span",null,Of),L());a&2&&(a=P(4).$implicit,B(),Qf(a.oldValue.split(", ")))},Myb=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(),B(),Ag(a))},Pyb=function(a){a&1&&(F(0,Iyb,1,1,"b-formatted-date-time",8),F(1,Lyb,3,0,"span"),F(2,Myb,2,1,"span"),Vf(3),S(4,"\u00a0"),Wf(),M(5,"span",6),Vf(6),S(7,"\u00a0"),Wf());if(a&2){a=P(3).$implicit;var b=P();G(Nyb(b,a,"oldValue")?
0:-1);B();G(Oyb(b,a,"oldValue")?1:-1);B();G(Nyb(b,a,"oldValue")||Oyb(b,a,"oldValue")?-1:2)}},Qyb=function(a){a&1&&M(0,"b-formatted-date-time",8);a&2&&(a=P(),I("timestamp",a))},Ryb=function(a){a&1&&(K(0,"span"),S(1," - "),L())},Syb=function(a,b){a&1&&(K(0,"span"),M(1,"b-formatted-date-time",8),F(2,Ryb,2,0,"span"),L());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();I("timestamp",a);B();G(c!==b-1?2:-1)}},Tyb=function(a){a&1&&(K(0,"span"),Pf(1,Syb,3,2,"span",null,Of),L());a&2&&(a=P(4).$implicit,
B(),Qf(a.newValue.split(", ")))},Uyb=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(),B(),Ag(a))},Vyb=function(a){a&1&&(F(0,Qyb,1,1,"b-formatted-date-time",8),F(1,Tyb,3,0,"span"),F(2,Uyb,2,1,"span"));if(a&2){a=P(3).$implicit;var b=P();G(Nyb(b,a,"newValue")?0:-1);B();G(Oyb(b,a,"newValue")?1:-1);B();G(Nyb(b,a,"newValue")||Oyb(b,a,"newValue")?-1:2)}},Wyb=function(a){a&1&&(K(0,"div",4)(1,"label"),S(2),L(),F(3,Pyb,8,3),F(4,Vyb,3,3),L());if(a&2){var b,c;a=P(2).$implicit;var d=P();B();Jf("title",d.customFieldName(a));
B();T("",d.customFieldName(a),":\u200b");B();G((b=a.oldValue)?3:-1,b);B();G((c=a.newValue)?4:-1,c)}},Xyb=function(a){a&1&&(K(0,"span",11),S(1,"Updated"),L())},Yyb=function(a){a&1&&(K(0,"span"),S(1,"Deleted"),L())},Zyb=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(),B(),T("Edited (unknown status '",a.status,"')"))},$yb=function(a,b){a&1&&F(0,Xyb,2,0,"span",11)(1,Yyb,2,0,"span")(2,Zyb,2,1,"span");if(a&2){var c;G((c=b.status)==="ACTIVE"?0:c==="DELETED"?1:2)}},azb=function(a){a&1&&(K(0,"div",4)(1,
"label"),S(2),L(),F(3,$yb,3,1),L());if(a&2){var b;a=P(2).$implicit;B(2);T("",a.displayName,":\u200b");B();G((b=a.statusUpdateDiff==null?null:a.statusUpdateDiff.entityStatus)?3:-1,b)}},bzb=function(a){a&1&&(K(0,"div",4)(1,"label"),S(2),L(),K(3,"pre",12),S(4),U(5,"json"),L()());a&2&&(a=P(2).$implicit,B(2),T("",a.displayName,":\u200b"),B(2),Ag(W(5,2,a)))},czb=function(a){a&1&&(M(0,"b-formatted-date-time",3),F(1,kyb,5,3,"div",4)(2,zyb,3,2,"div",4)(3,Hyb,3,2,"div",4)(4,Wyb,5,4,"div",4)(5,azb,4,2,"div",
4)(6,bzb,6,4,"div",4));if(a&2){a=P().$implicit;var b=P();I("timestamp",a.timestamp);B();G(!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)}},ezb=function(a,b){a&1&&(K(0,"div",2),F(1,czb,7,2),L());if(a&2){b=b.$implicit;a=P();B();if(b.customFieldId){b=a.customFieldMap[b.customFieldId];var c;a=dzb(a.customFieldHelper,
(c=b==null?void 0:b.type)!=null?c:"TYPE_UNSPECIFIED")}else a=(b==null?void 0:b.name)==="sloStartTime"||(b==null?void 0:b.name)==="sloEndTime"?a.activeSession.isInternalSession():1;G(a?1:-1)}},fzb=function(a){a&1&&(K(0,"b-issue-reference-widget",13),S(1),L());if(a&2){a=P();var b=P().change;I("href",b.href)("issueId",a);B();Ag(a)}},gzb=function(a){a&1&&M(0,"hotlist-link",5);a&2&&(a=P(),I("id",a))},hzb=function(a){a&1&&(K(0,"a",14),S(1),L());if(a&2){a=P();var b=P().change;I("href",b.href,Me);B();Ag(a)}},
izb=function(a){a&1&&(K(0,"span"),S(1,", "),L())},jzb=function(a){a&1&&(F(0,fzb,2,3,"b-issue-reference-widget",13)(1,gzb,1,1,"hotlist-link",5)(2,hzb,2,2,"a",14),F(3,izb,2,0,"span"));if(a&2){var b=P();a=b.diff;b=b.isLast;var c=P();G(c.isIssueDiff(a)?0:c.isHotlistDiff(a)?1:2);B(3);G(b?-1:3)}},kzb=function(a,b){a&1&&F(0,jzb,4,2);if(a&2){var c;G((c=b.change.value)?0:-1,c)}},lzb=function(a){a&1&&M(0,"b-user-image",6);a&2&&(a=P(2),I("email",a.userToLossyEmail(a.event.userPerformingActionUser)))},mzb=function(a){a&
1&&(M(0,"b-user-membership-chip",9),U(1,"async"),U(2,"async"));if(a&2){a=P(2);var b;I("user",a.event.userPerformingActionUser)("email",a.userToLossyEmail(a.event.userPerformingActionUser))("teamId",(b=W(1,4,a.teamId$))!=null?b:"");Jf("aria-label",W(2,6,a.ariaLabelHeading$))}},nzb=function(a){a&1&&(M(0,"b-user-display",10),U(1,"async"));a&2&&(a=P(2),I("model",a.event.userPerformingActionUser),Jf("aria-label",W(1,2,a.ariaLabelHeading$)))},ozb=function(a){a&1&&Xf(0)},pzb=function(a){a&1&&(K(0,"span",
33),E(1,ozb,1,0,"ng-container",34),L(),K(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",35),L());if(a&2){a=Q(3);P();var b=Q(9),c=P();I("onedevHovercardTrigger",a);B();I("ngTemplateOutlet",b);B(3);I("email",c.userToLossyEmail(c.event.userPerformingActionUser))}},qzb=function(a){a&1&&(K(0,"span",11),S(1),L());a&2&&(a=P(2),B(),T(" <",Om(a.event.userPerformingActionUser),"> "))},rzb=function(a){a&1&&(K(0,"span",11),S(1),L());a&2&&(a=P(2),B(),T(" <",Om(a.event.userPerformingActionUser),"> "))},
szb=function(a){if(a&1){var b=t();K(0,"span")(1,"a",36);N("click",function(c){u(b);var d=P(2);return v(d.scrollCommentIntoView(c,d.event.commentNumber))});S(2);L()()}a&2&&(a=P(2),B(),I("routerLinkObj",a.getCommentNumberLink(a.event.commentNumber)),Jf("aria-label","Comment number"+a.event.commentNumber),B(),T(" #",a.event.commentNumber))},uzb=function(a){if(a&1){var b=t();K(0,"button",37);N("click",function(){u(b);var c=P(2);return v(tzb(c.issueCommentDialogsService,c.issueId,c.deobfuscatedEvent$.value||
c.event))});L()}},vzb=function(a){a&1&&M(0,"b-restricted-chip",14);if(a&2){a=P(2);var b,c;I("label",a.getRestrictedLabel())("retention",(b=a.event.commentRetention)!=null?b:void 0)("retentionState",(c=a.event.commentRetentionState)!=null?c:void 0)}},xzb=function(a){a&1&&(M(0,"b-actions-menu",16,2),U(2,"async"));if(a&2){a=P(2);var b;I("buttonLabel","Comment actions")("menuItems",(b=W(2,2,a.commentActionMenuItems$))!=null?b:Jg(4,wzb))}},yzb=function(a){a&1&&(K(0,"div",18),M(1,"b-tagged-text",38),L());
a&2&&(a=P(2),B(),I("texts",a.event.taggedSummary))},zzb=function(a){a&1&&(M(0,"b-issue-event-details",19),U(1,"async"),U(2,"async"),U(3,"async"));if(a&2){var b;a=P();var c=P(),d;I("diffs",(d=W(1,4,c.preEventDiffs$))!=null?d:Jg(10,wzb))("customFieldMap",a.customFieldMap)("effortSpecName",(b=W(2,6,c.effortSpec$))==null?null:b.name)("effortEnabled",!!W(3,8,c.isEffortEnabled$))}},Azb=function(a){a&1&&(K(0,"div",22),S(1," Comment has been deleted. "),L())},Bzb=function(a){if(a&1){var b=t();K(0,"b-restricted-comment-placeholder",
39);U(1,"async");N("onConfirm",function(){u(b);var c=P(2);return v(c.loadRestrictedComment())});L()}a&2&&(a=P(2),I("disabled",!W(1,1,a.mayReadPii$)))},Dzb=function(a){a&1&&(M(0,"b-note-container",25),U(1,"async"),U(2,"async"),U(3,"async"));if(a&2){a=P(2);var b,c,d;I("issueId",a.issueId)("issueAccessLevel",a.issueAccessLevel)("note",(b=W(1,5,a.eventAsNote$))!=null?b:Jg(11,Czb))("formattingMode",(c=W(2,7,a.formattingMode$))!=null?c:a.FormattingMode.PLAIN)("canEditComment",(d=W(3,9,a.canEditComment$))!=
null?d:!1)}},Ezb=function(a){if(a&1){var b=t();M(0,"b-summarized-note-container",40);U(1,"async");U(2,"async");K(3,"button",41);N("click",function(){u(b);var e=P(2);e.wasSummarized$.next(!0);e.isSummarized=!e.isSummarized;return v()});M(4,"mat-icon",42);S(5,"Expand details");L()}if(a&2){a=P(2);var c,d;I("issueId",a.issueId)("issueAccessLevel",a.issueAccessLevel)("note",(c=W(1,5,a.eventAsNote$))!=null?c:Jg(9,Czb))("summaryType",a.getSummaryType())("formattingMode",(d=W(2,7,a.formattingMode$))!=null?
d:a.FormattingMode.PLAIN)}},Fzb=function(a){if(a&1){var b=t();K(0,"button",41);N("click",function(){u(b);var c=P(2);c.wasSummarized$.next(!0);c.isSummarized=!c.isSummarized;return v()});M(1,"mat-icon",43);S(2,"Collapse details");L()}},Gzb=function(a){a&1&&M(0,"b-formatted-date-time",29);a&2&&(a=P(2),I("timestamp",a.event.modifiedDate))},Hzb=function(a){a&1&&M(0,"mat-icon",45)},Izb=function(a){a&1&&M(0,"mat-icon",46)},Jzb=function(a,b){a&1&&(K(0,"span"),S(1),L());a&2&&(B(),Ag(b))},Kzb=function(a){a&
1&&M(0,"b-comment-reaction-responders-card",47);a&2&&(a=P(3),I("reactionState",a.event.commentReactions==null?null:a.event.commentReactions.get(a.ReactionType.UPVOTE))("issueId",a.issueId)("commentNumber",a.event.commentNumber))},Ozb=function(a){if(a&1){var b=t();K(0,"div",30)(1,"button",44,3);U(3,"async");U(4,"async");U(5,"async");U(6,"async");N("click",function(){u(b);var e=P(2);return v(Lzb(e))});F(7,Hzb,1,0,"mat-icon",45)(8,Izb,1,0,"mat-icon",46);F(9,Jzb,2,1,"span");U(10,"async");L();K(11,"onedev-hovercard",
null,4);F(13,Kzb,1,3,"b-comment-reaction-responders-card",47);U(14,"async");L()()}if(a&2){var c;a=Q(12);var d=P(2);B();yg("no-upvote-reactions",W(3,11,d.noUpvoteReactions$));I("ariaLabel",Mzb(d,d.ReactionType.UPVOTE));If("aria-disabled",!W(4,13,d.hasAclToUpvoteReact$)||d.commentReactionIsSaving);I("disabled",!W(5,15,d.hasAclToUpvoteReact$)||d.commentReactionIsSaving)("onedevHovercardTrigger",a)("onedevHovercardConfig",d.commentReactionsHovercardConfig)("onedevHovercardActive",!!W(6,17,d.showCommentReactionHovercard$));
B(6);G(Nzb(d,d.ReactionType.UPVOTE)?7:8);B(2);G((c=W(10,19,d.upvoteReactionCountDisplayString$))?9:-1,c);B(4);G(W(14,21,d.noUpvoteReactions$)?-1:13)}},Pzb=function(a){if(a&1){var b=t();K(0,"a",49);N("click",function(){u(b);var c=P(3);return v(c.showCommentHistoryDialog(c.event.commentNumber))});S(1," Show History ");L()}},Qzb=function(a){a&1&&(K(0,"div",31),M(1,"b-comment-edit-timestamp-message",48),F(2,Pzb,2,0,"a"),L());a&2&&(a=P(2),B(),I("event",a.event),B(),G(a.commentHistoryEnabled?2:-1))},Rzb=
function(a){a&1&&(M(0,"b-issue-event-details",19),U(1,"async"),U(2,"async"),U(3,"async"));if(a&2){var b;a=P();var c=P(),d;I("diffs",(d=W(1,4,c.postEventDiffs$))!=null?d:Jg(10,wzb))("customFieldMap",a.customFieldMap)("effortSpecName",(b=W(2,6,c.effortSpec$))==null?null:b.name)("effortEnabled",!!W(3,8,c.isEffortEnabled$))}},Szb=function(a,b){a&1&&(K(0,"div",50),M(1,"b-attachment-viewer",51),L());a&2&&(a=b.$implicit,b=P(3),I("id",Gg("attachment",a.attachmentId)),B(),I("issueId",b.issueId)("attachment",
a)("attachmentUploader",b.userToLossyEmail(b.event.userPerformingActionUser)))},Tzb=function(a){a&1&&(K(0,"div",32),Pf(1,Szb,2,5,"div",50,Of),L());a&2&&(a=P(2),B(),Qf(a.event.attachments))},Vzb=function(a){a&1&&(K(0,"div",5),F(1,lzb,1,1,"b-user-image",6),L(),K(2,"div",7)(3,"h4",8),F(4,mzb,3,8,"b-user-membership-chip",9)(5,nzb,2,4,"b-user-display",10),F(6,pzb,5,3)(7,qzb,2,1,"span",11),E(8,rzb,2,1,"ng-template",null,0,Og),F(10,szb,3,3,"span"),F(11,uzb,1,0,"button",12),U(12,"async"),K(13,"span",13),
F(14,vzb,1,3,"b-restricted-chip",14),M(15,"b-formatted-date-time",15),F(16,xzb,3,5,"b-actions-menu",16),L()(),M(17,"div",17),F(18,yzb,2,1,"div",18),F(19,zzb,4,11,"b-issue-event-details",19),U(20,"async"),M(21,"div",17),K(22,"div",20)(23,"div",21),F(24,Azb,2,0,"div",22),F(25,Bzb,2,3,"b-restricted-comment-placeholder",23),K(26,"div",24),F(27,Dzb,4,12,"b-note-container",25),F(28,Ezb,6,10),F(29,Fzb,3,0,"button",26),U(30,"async"),L(),K(31,"div",27),bg(32),U(33,"async"),K(34,"div",28),F(35,Gzb,1,1,"b-formatted-date-time",
29),L(),F(36,Ozb,15,23,"div",30),L()(),F(37,Qzb,3,2,"div",31),L(),F(38,Rzb,4,11,"b-issue-event-details",19),U(39,"async"),M(40,"div",17),F(41,Tzb,3,0,"div",32),M(42,"div",17),L());if(a&2){a=P();B();G(a.event.userPerformingActionUser?1:-1);B(3);G(a.enableTeamAnnotations&&a.event.userPerformingActionUser?4:5);B(2);G(a.isNonObfuscatedEmail(a.userToLossyEmail(a.event.userPerformingActionUser))?6:7);B(4);G(a.isCommentEvent(a.event)?10:-1);B();G(W(12,22,a.canEditComment$)&&!a.isRedacted()?11:-1);B(3);G(a.isRestricted(a.event)?
14:-1);B();I("timestamp",a.event.modifiedDate);B();G(a.isCommentEvent(a.event)?16:-1);B(2);G(a.event.taggedSummary&&a.event.taggedSummary.length?18:-1);B();G(W(20,24,a.showFullHistoryFromFiltering$)==="FULL_HISTORY"?19:-1);B(5);G(a.isDeleted()?24:-1);B();G(a.isRedacted()&&!a.isDeleted()?25:-1);B(2);G(!Uzb(a)||a.isRedacted()||a.isDeleted()||a.isSummarized?-1:27);B();G(Uzb(a)&&!a.isRedacted()&&!a.isDeleted()&&a.isSummarized?28:-1);B();G(W(30,26,a.wasSummarized$)&&!a.isSummarized?29:-1);var b,c=(b=W(33,
28,a.isShowingCommentTimestamp$))!=null?b:!1;B(5);yg("hasCommentTimestamp",c);B();G(c?35:-1);B();var d;b=a.ReactionType.UPVOTE;var e;c=!a.issuePermissionService.hasAclToComment()&&((d=a.event.commentReactions)==null?void 0:(e=d.get(b))==null?void 0:e.count)===0;d=a.isInternalSession&&a.commentReactionsEnabled&&Uzb(a)&&!a.isDeleted()&&!a.isRedacted()&&!c;G(d?36:-1);B();G(a.isCommentEvent(a.event)&&(a.event.commentVersion||0)>0&&!a.isRedacted()?37:-1);B();G(W(39,30,a.showFullHistoryFromFiltering$)===
"FULL_HISTORY"?38:-1);B(3);G(a.event.attachments.length?41:-1)}},Wzb=function(a){a&1&&(K(0,"aside",0),M(1,"b-spinner"),L())},Xzb=function(a){a&1&&S(0);if(a&2){var b;a=P(2).$index;var c=P();T(" ",(b=c.foldedCommentsCounts.get(a))==null?null:b.commentFoldedCount," updates ")}},Yzb=function(a){a&1&&S(0);if(a&2){var b;a=P(2).$index;var c=P();T(" ",(b=c.foldedCommentsCounts.get(a))==null?null:b.commentFoldedCount," update ")}},Zzb=function(a){if(a&1){var b=t();K(0,"div",2)(1,"button",4);N("click",function(){u(b);
var f=P().$index,g=P(),k,m,r=(m=(k=g.foldedCommentsCounts.get(f))==null?void 0:k.eventFoldedCount)!=null?m:0;for(k=0;k<r&&((yo(g.internalEvents[f-k])||jWa(g.internalEvents[f-k]))&&g.eventDisplayMode.set(f-k,"full"),f-k!==0);k++);g.foldedCommentsCounts.delete(f);return v()});F(2,Xzb,1,1)(3,Yzb,1,1);L();M(4,"div",5);L()}if(a&2){var c;a=P().$index;var d=P();B(2);var e;G(((e=(c=d.foldedCommentsCounts.get(a))==null?null:c.commentFoldedCount)!=null?e:1)>1?2:3)}},$zb=function(a){a&1&&(K(0,"div",3),M(1,"b-history-event",
6),L());if(a&2){var b=P();a=b.$implicit;b=b.$index;var c=P();B();I("issueId",c.internalIssueId)("issueAccessLevel",c.issueAccessLevel)("event",a)("isSummarized",c.eventDisplayMode.get(b)===c.eventDisplayModes.SUMMARIZED)}},bAb=function(a,b){a&1&&(F(0,Zzb,5,1,"div",2),F(1,$zb,2,4,"div",3));if(a&2){var c;a=b.$index;b=P();var d;G(b.foldedCommentsCounts.has(a)&&((d=(c=b.foldedCommentsCounts.get(a))==null?null:c.commentFoldedCount)!=null?d:0)>0?0:-1);B();G(b.internalIssueId&&aAb(b.eventDisplayMode.get(a))?
1:-1)}},cAb=function(a){a&1&&(K(0,"aside",0),M(1,"b-spinner"),L())},dAb=function(a,b){a&1&&(K(0,"mat-option",5)(1,"div",8),S(2),L(),K(3,"div",9),S(4),L()());a&2&&(a=b.$implicit,I("value",a),B(2),Ag(a.name),B(2),Ag(a.description))},iAb=function(a){switch(a){case "FULL_HISTORY":return eAb;case "ALL_COMMENTS":return fAb;case "HUMAN_ONLY":return gAb;case "TEAM_AND_ASSIGNEE":return hAb;default:return fAb}},kAb=function(a,b){if(a&1){var c=t();K(0,"b-hotlist-chip-smart",4);N("removeHotlist",function(){var d=
u(c).$implicit,e=P(2);return v(jAb(e,d))});L()}a&2&&I("id",b.$implicit)},lAb=function(a,b){a&1&&(M(0,"b-hotlist-recommendation-chip",5),U(1,"async"));a&2&&(a=b.$implicit,b=P(4),I("hotlist",a.content==null?null:a.content.recommendedHotlist)("recommendationId",a.name)("issueId",W(1,3,b.issueId$)))},nAb=function(a,b){a&1&&Pf(0,lAb,2,5,"b-hotlist-recommendation-chip",5,mAb);a&2&&Qf(b)},oAb=function(a){a&1&&(F(0,nAb,2,0),U(1,"async"));if(a&2){var b;a=P(2);G((b=W(1,1,a.recommendations$))?0:-1,b)}},pAb=
function(a){if(a&1){var b=t();K(0,"div",0);gg(1);K(2,"button",1);U(3,"async");N("onHotkey",function(){u(b);var c=P();return v(c.openHotlistModal())})("click",function(){u(b);var c=P();return v(c.openHotlistModal())});M(4,"mat-icon",2);S(5);U(6,"async");L();Pf(7,kAb,1,1,"b-hotlist-chip-smart",3,Of);U(9,"async");F(10,oAb,2,3);L()}a&2&&(a=P(),B(2),yg("icon-only",!W(3,5,a.textOfHotlistBtn$)),I("hotkey",a.HOTKEYS.OPEN_HOTLIST_PICKER),B(3),T(" ",W(6,7,a.textOfHotlistBtn$)," "),B(2),Qf(W(9,9,a.hotlistIds$)),
B(3),G(a.isInternalSession?10:-1))},rAb=function(a){if(a&1){var b=t();K(0,"mat-form-field",7);U(1,"async");K(2,"input",8,0);N("keydown",function(c){u(b);var d=P();c.key==="Enter"?d.saveTitle():c.key==="Escape"||c.key==="Esc"?qAb(d):d.bannedWordsChecker.reset();return v()})("blur",function(){u(b);var c=P();return v(c.onInputBlur())});L()()}a&2&&(a=P(),yg("banned-words-warning",W(1,3,a.bannedWordsChecker.showWarning$)),B(2),I("value",a.titlePlain))},sAb=function(a){a&1&&(K(0,"h3",4,1),S(2),L());a&2&&
(a=P(),Jf("title",a.isLongTitle?a.titlePlain:""),B(2),T(" ",a.titleTruncated," "))},tAb=function(a){if(a&1){var b=t();K(0,"button",9);N("click",function(){u(b);var c=P();return v(c.isEditMode?c.saveTitle():qAb(c))});M(1,"mat-icon",10);L()}a&2&&(a=P(),I("disabled",a.disabled||a.isSaving))},uAb=function(a){a&1&&(K(0,"p",6),S(1),K(2,"a",11),S(3," Learn more "),L()());a&2&&(a=P(),B(),T(" ",Ws(a.bannedWordsChecker)," is restricted. Press 'Esc' to cancel or 'Enter' to skip check and save title. "))},vAb=
function(a){if(a&1){var b=t();K(0,"mat-checkbox",10);N("change",function(c){u(b);var d=P().$implicit,e=P();d.enabled=c.checked;e.detectChanges();return v()});L()}a&2&&(a=P().$implicit,If("aria-label",Gg("Enable column '",a.name,"'")),I("checked",a.enabled))},yAb=function(a,b){if(a&1){var c=t();K(0,"li",2);N("keydown",function(e){var f=u(c).$index,g=P();return v(g.onKeyDown(e,f))})("focus",function(){var e=u(c).$index,f=P();return v(f.onFocus(e))});F(1,vAb,1,3,"mat-checkbox",3);M(2,"mat-icon",4);K(3,
"span");S(4);L();K(5,"div",5)(6,"button",6);N("click",function(){var e=u(c).$index,f=P();return v(wAb(f,e))});M(7,"mat-icon",7);L();K(8,"button",8);N("click",function(){var e=u(c).$index,f=P();return v(xAb(f,e))});M(9,"mat-icon",9);L()()()}if(a&2){a=b.$implicit;b=b.$index;var d=P();Jf("aria-label",a.name)("aria-grabbed",b===d.grabbedIndex);B();G(d.allowRemoval?1:-1);B(3);Ag(a.name);B(2);yg("invisible",b===0);B(2);yg("invisible",b===d.items.length-1)}},zAb=function(a){a&1&&M(0,"mat-icon",1)},AAb=function(a){a&
1&&(K(0,"span",2),U(1,"date"),S(2),L());a&2&&(a=P(2),I("title",Gg("Start Date: ",Ng(1,4,a.startDate,"longDate"))),B(2),Bg(" ",a.startDateShortStr," ",a.JOINING_ARROW," "))},BAb=function(a){a&1&&(K(0,"span",3),U(1,"date"),S(2),L());a&2&&(a=P(2),I("title",Gg("End Date: ",Ng(1,3,a.endDate,"longDate"))),B(2),T(" ",a.endDateShortStr," "))},CAb=function(a){a&1&&(K(0,"span",4),S(1,"?"),L())},DAb=function(a){a&1&&(K(0,"div",0),F(1,zAb,1,0,"mat-icon",1),F(2,AAb,3,7,"span",2),F(3,BAb,3,6,"span",3)(4,CAb,2,
0,"span",4),L());a&2&&(a=P(),B(),G(a.showIcon?1:-1),B(),G(a.startDate?2:-1),B(),G(a.endDate?3:4))},EAb=function(a,b){b=b===void 0?[]:b;return"http://cl/search/cl:("+[].concat(n(a),n(b.map(function(c){return String(c.changelistNumber)}))).join("|")+")"},FAb=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(" ")},GAb=function(a){return"hotlist-"+a},HAb=function(a){return"savedsearch-"+a},eu=function(a){if(a!=null){if(IAb.includes(a))return a;var b=a.match(/\bhotlists?\b/)?du(a):void 0;if(b)return"hotlist";b=a.match(/\bsavedsearch(?:es|)\b/)?du(a):void 0;if(b)return"savedsearch";b=/\bb\/\d+\b/;b=a.match(/\bissues?\b/)||a.match(b)?du(a):void 0;b||(a=a.trim(),b=a.length<3?!1:!!a.match(/^\d+$/));if(b)return"issue"}},JAb=function(a){switch(eu(a)){case "hotlist":return"Hotlist";
case "savedsearch":return"Saved Search";case "issue":return"Issue"}},du=function(a){if(a!=null)return a.split(/[^\d]+/).filter(Boolean).pop()},KAb=function(a){var b=du(a);if(b!=null)switch(eu(a)){case "hotlist":return"/hotlists/"+b;case "savedsearch":return"/savedsearches/"+b;default:return"/issues/"+b}},LAb=function(a){var b=du(a);if(b!=null&&eu(a)==="issue")return"/issues?q="+encodeURIComponent("id:"+b+" OR parentid:"+b+"+")},MAb=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(m,r){var w,x;return(((w=r.descendantCount)!=null?w:0)-((x=m.descendantCount)!=null?x:0))*-1});d=l(d);for(e=d.next();!e.done;e=d.next()){var f=e.value,g=void 0;e=(g=b[f.issueId])!=null?g:0;g=void 0;f=l((g=f.parentIssueIds)!=null?g:[]);for(g=f.next();!g.done;g=f.next())if(g=c[g.value],g!=null){var k=void 0;b[g.issueId]=(k=b[g.issueId])!=null?k:0;b[g.issueId]+=1+e}}return a.map(function(m){var r,w=(r=b[m.issueId])!=null?r:0;return[[w,m.openDescendantCount+
w*10],m]})},NAb=function(a,b){a=a.results;if(a.length<(b===void 0?50:b))return[];a=MAb(a);a.sort(function(f,g){f=l(f);f=l(f.next().value);f.next();f=f.next().value;g=l(g);g=l(g.next().value);g.next();return g.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(NWa);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 g,k;return{title:(g=f.snapshot)==null?void 0:(k=g[0])==null?void 0:k.title,ref:f.issueId,suggestionRationale:f.descendantCount+" descendants and "+c[f.issueId][0]+" recent personal touchpoints."}})},OAb=function(a){if(a&1){var b=t();Sf(0,"div",1);eg("click",function(){u(b);var c=P();return v(c.useXofYLabel=!c.useXofYLabel)});Uf(1,"div",2);Sf(2,"span");S(3);U(4,"number");Tf();Sf(5,"span");S(6);Tf()()}a&2&&(a=P(),Rf("title",Hg("",a.closed,
" of ",a.total," issues closed in this work area")),B(),Jf("style",a.makePie(a.closed/a.total),Hja),B(),yg("display-none",a.useXofYLabel),B(),T("",Ng(4,11,a.closed/a.total*100,"1.0-0"),"% complete"),B(2),yg("display-none",!a.useXofYLabel),B(),Bg("",a.closed," of ",a.total," closed"))},PAb=function(a,b,c){var d=c[b];return d==null?!1:[].concat(n(a)).map(function(e){return fu[e]}).every(function(e){return e==null?!0:e.check(d,b,c)})},QAb=function(a){return!!fu[a]},RAb=function(a){a&1&&(yd(),Sf(0,"svg",
3),Uf(1,"path",4),Tf())},SAb=function(a){a&1&&(Sf(0,"div",2),gg(1,1,null,RAb,2,0),Tf())},TAb=function(a){a&1&&M(0,"th",26)},UAb=function(a){a&1&&M(0,"td",27)},WAb=function(a){if(a&1){var b=t();K(0,"th",26)(1,"button",28);N("click",function(){u(b);var c=P(2);return v(VAb(c))});M(2,"mat-icon",29);L()()}},XAb=function(a){a&1&&M(0,"td",27)},YAb=function(a){a&1&&(K(0,"th",26),S(1," ID "),L())},ZAb=function(a){a&1&&M(0,"b-issue-id-cell",31);a&2&&(a=P().$implicit,I("id",a.issueIds[0]))},$Ab=function(a,b){a&
1&&(K(0,"td",30),F(1,ZAb,1,1,"b-issue-id-cell",31),L());a&2&&(a=b.$implicit,B(),G(a.issueIds.length===1?1:-1))},bBb=function(a){if(a&1){var b=t();K(0,"th",26)(1,"mat-checkbox",32);N("change",function(d){u(b);var e=P(),f=P();return v(d?f.toggleAllRows(e):null)});L()()}if(a&2){a=P();var c=P();B();I("checked",c.selection.selected.length>0&&aBb(c,a))("indeterminate",c.selection.selected.length>0&&!aBb(c,a))}},cBb=function(a,b){if(a&1){var c=t();K(0,"td",30)(1,"mat-checkbox",33);N("click",function(d){u(c);
return v(d.stopPropagation())})("change",function(){var d=u(c).$implicit,e=P(2);e.selection.toggle(d.issueIds[0]);e.selectedIssuesChange.emit(e.selection);return v()});L()()}a&2&&(a=b.$implicit,b=P(2),B(),I("checked",b.selection.isSelected(a.issueIds[0])),Jf("aria-label","Select issue "+a.issueIds[0])("aria-checked",b.selection.isSelected(a.issueIds[0])))},dBb=function(a){if(a&1){var b=t();K(0,"th",26)(1,"mat-checkbox",32);N("change",function(d){u(b);var e=P(),f=P();return v(d?f.toggleAllRows(e):
null)});L()()}if(a&2){a=P();var c=P();B();I("checked",c.selection.selected.length>0&&aBb(c,a))("indeterminate",c.selection.selected.length>0&&!aBb(c,a))}},eBb=function(a){a&1&&M(0,"td",30)},fBb=function(a){a&1&&(K(0,"th",26),S(1),L());a&2&&(a=P(2),B(),T(" ",a.getDisplayName(a.IssueFieldType.TITLE)," "))},gBb=function(a,b){if(a&1){var c=t();K(0,"td",30)(1,"b-issue-title-cell",34);U(2,"async");U(3,"async");U(4,"async");N("issueNavigated",function(f){u(c);var g=P(2);return v(g.issueNavigated.emit(f))});
L()()}if(a&2){var d;a=b.$implicit;b=P(2);B();yg("bold",b.showReadStatus&&b.isUnread(W(2,9,a.issue$)));var e;I("anchorTarget",Fg((b.options.navigationOptions==null?0:b.options.navigationOptions.alwaysOpenNewTab)?"_blank":"_self"))("issue",W(3,11,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=W(4,13,b.trendingChipsById$))==null?null:d[a.issueIds[0]]:void 0)}},hBb=function(a){a&1&&(K(0,"th",26),S(1),L());a&2&&(a=P(2),B(),T(" ",a.getDisplayName(a.IssueFieldType.TITLE)," "))},iBb=function(a,b){a&1&&(K(0,"td",30)(1,"b"),S(2),U(3,"async"),L()());a&2&&(a=b.$implicit,B(2),Bg("",W(3,2,a.summaryTitle$)," (",a.issueIds.length,")"))},jBb=function(a){a&1&&(K(0,"th",35),S(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.TYPE),B(),T(" ",a.getDisplayName(a.IssueFieldType.TYPE),
" "))},kBb=function(a,b){a&1&&(K(0,"td",30),M(1,"b-issue-type-cell",36),U(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",W(2,1,a.issue$)))},lBb=function(){},mBb=function(a){a&1&&S(0);a&2&&(a=P(3),T(" ",a.getDisplayName(a.IssueFieldType.ASSIGNEE)," "))},nBb=function(a){a&1&&(K(0,"th",35),F(1,lBb,0,0)(2,mBb,1,1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.ASSIGNEE),B(),G((a.options.modes==null?null:a.options.modes.assignee)==="avatar-if-open"?1:2))},oBb=function(a,b){a&1&&M(0,"b-user-image",
37);a&2&&I("email",b)},pBb=function(a){a&1&&F(0,oBb,1,1,"b-user-image",37);if(a&2){var b;a=P();var c=P(4);G((b=c.getAssigneeString(a))?0:-1,b)}},qBb=function(a,b){a&1&&F(0,pBb,1,1);a&2&&(a=P(4),G(a.isOpen(b)?0:-1))},rBb=function(a){a&1&&(F(0,qBb,1,1),U(1,"async"));if(a&2){var b;a=P().$implicit;G((b=W(1,1,a.issue$))?0:-1,b)}},sBb=function(a){a&1&&(M(0,"b-issue-assignee-cell",36),U(1,"async"));a&2&&(a=P().$implicit,I("issue",W(1,1,a.issue$)))},tBb=function(a){a&1&&(K(0,"td",30),F(1,rBb,2,3)(2,sBb,2,
3,"b-issue-assignee-cell",36),L());a&2&&(a=P(2),B(),G((a.options.modes==null?null:a.options.modes.assignee)==="avatar-if-open"?1:2))},uBb=function(a){a&1&&(K(0,"th",35),S(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.REPORTER),B(),T(" ",a.getDisplayName(a.IssueFieldType.REPORTER)," "))},vBb=function(a,b){a&1&&(K(0,"td",30),M(1,"b-issue-reporter-cell",36),U(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",W(2,1,a.issue$)))},wBb=function(a){a&1&&(K(0,"th",38),S(1),L());a&2&&(a=P(2),I("mat-sort-header",
a.IssueFieldType.PRIORITY),B(),T(" ",a.getDisplayName(a.IssueFieldType.PRIORITY)," "))},xBb=function(a){a&1&&M(0,"b-issue-priority-display",39);a&2&&(P(),a=dg(1),I("issuePriority",a==null?null:a.snapshot==null?null:a.snapshot[0]==null?null:a.snapshot[0].priority))},yBb=function(a,b){a&1&&(K(0,"td",30),bg(1),U(2,"async"),F(3,xBb,1,1,"b-issue-priority-display",39),L());a&2&&(a=b.$implicit,P(2),B(),cg(W(2,1,a.issue$)),B(2),G(3))},zBb=function(a){a&1&&M(0,"th",40)},ABb=function(a){a&1&&(K(0,"td",30),
M(1,"mat-icon",41),L())},BBb=function(a){a&1&&(K(0,"th",35),S(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.STATUS),B(),T(" ",a.getDisplayName(a.IssueFieldType.STATUS)," "))},CBb=function(a,b){a&1&&(K(0,"td",30),M(1,"b-issue-status-cell",36),U(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",W(2,1,a.issue$)))},DBb=function(a){a&1&&(K(0,"th",26),S(1),L());a&2&&(a=P(2),B(),T(" ",a.getDisplayName(a.IssueFieldType.TEAM)," "))},EBb=function(a,b){a&1&&(K(0,"td",30),M(1,"b-issue-team-cell",
36),U(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",W(2,1,a.issue$)))},FBb=function(a){a&1&&(K(0,"th",26),S(1),L());a&2&&(a=P(2),B(),T(" ",a.getDisplayName(a.IssueFieldType.DUPLICATE_COUNT)," "))},GBb=function(a){a&1&&S(0);if(a&2){a=P();var b;T(" ",(b=a.snapshot[0].duplicateIssueId==null?null:a.snapshot[0].duplicateIssueId.length)!=null?b:0," ")}},HBb=function(a){a&1&&F(0,GBb,1,1);a&2&&(P(3),G(0))},IBb=function(a,b){a&1&&(K(0,"td",30),F(1,HBb,1,1),U(2,"async"),L());if(a&2){var c;a=b.$implicit;
B();G((c=W(2,1,a.issue$))?1:-1,c)}},JBb=function(a){a&1&&(K(0,"th",26),S(1),L());a&2&&(a=P(2),B(),T(" ",a.getDisplayName(a.IssueFieldType.VOTE_COUNT)," "))},KBb=function(a){a&1&&(K(0,"span",42),S(1),L());a&2&&(a=P(),I("title",Gg("",a.aggregatedData==null?null:a.aggregatedData.voteCount," votes")),B(),T(" ",a.aggregatedData==null?null:a.aggregatedData.voteCount," "))},LBb=function(a){a&1&&F(0,KBb,2,3,"span",42);a&2&&(P(3),G(0))},MBb=function(a,b){a&1&&(K(0,"td",30),F(1,LBb,1,1),U(2,"async"),L());if(a&
2){var c;a=b.$implicit;B();G((c=W(2,1,a.issue$))?1:-1,c)}},NBb=function(a){a&1&&(K(0,"th",26),S(1),L());a&2&&(a=P(2),B(),T(" ",a.getDisplayName(a.IssueFieldType.SEVEN_DAY_VIEW_COUNT)," "))},OBb=function(a){a&1&&(K(0,"span",42),S(1),L());a&2&&(a=P(),I("title",Gg("",a.userActivityStats==null?null:a.userActivityStats.sevenDayViewCount," views in last 7 days")),B(),T(" ",a.userActivityStats==null?null:a.userActivityStats.sevenDayViewCount," "))},PBb=function(a){a&1&&F(0,OBb,2,3,"span",42);a&2&&(P(3),
G(0))},QBb=function(a,b){a&1&&(K(0,"td",30),F(1,PBb,1,1),U(2,"async"),L());if(a&2){var c;a=b.$implicit;B();G((c=W(2,1,a.issue$))?1:-1,c)}},RBb=function(a){a&1&&(K(0,"th",43),S(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.CREATED_TIME),B(),T(" ",a.getDisplayName(a.IssueFieldType.CREATED_TIME)," "))},SBb=function(a,b){a&1&&(K(0,"td",30),M(1,"b-issue-created-time-cell",44),U(2,"async"),L());if(a&2){a=b.$implicit;b=P(2);B();var c;I("issue",W(2,2,a.issue$))("mode",(c=b.options.modes==null?
null:b.options.modes.createdTime)!=null?c:b.DEFAULT_DATETIME_MODE)}},TBb=function(a){a&1&&(K(0,"th",43),S(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.MODIFIED_TIME),B(),T(" ",a.getDisplayName(a.IssueFieldType.MODIFIED_TIME)," "))},UBb=function(a,b){a&1&&M(0,"b-formatted-date-time",45);if(a&2){a=P(3);var c;I("timestamp",b/1E3)("mode",(c=a.options.modes==null?null:a.options.modes.modifiedTime)!=null?c:a.DEFAULT_DATETIME_MODE)("paddingLeftPx",0)}},VBb=function(a,b){a&1&&(K(0,"td",30),bg(1),
U(2,"async"),F(3,UBb,1,3,"b-formatted-date-time",45),L());if(a&2){var c;a=b.$implicit;P(2);a=W(2,1,a.issue$);B(3);G((c=a==null?null:a.aggregatedData==null?null:a.aggregatedData.modifiedTimeMicros)?3:-1,c)}},WBb=function(a){a&1&&(K(0,"th",46),S(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.RELATIVE_MODIFIED_TIME),B(),T(" ",a.getDisplayName(a.IssueFieldType.RELATIVE_MODIFIED_TIME)," "))},XBb=function(a,b){a&1&&M(0,"b-formatted-date-time",45);a&2&&I("timestamp",b/1E3)("mode","relativepasttiny")("paddingLeftPx",
4)},YBb=function(a,b){a&1&&(K(0,"td",47),bg(1),U(2,"async"),F(3,XBb,1,3,"b-formatted-date-time",45),L());if(a&2){var c;a=b.$implicit;P(2);a=W(2,1,a.issue$);B(3);G((c=a==null?null:a.aggregatedData==null?null:a.aggregatedData.modifiedTimeMicros)?3:-1,c)}},ZBb=function(a){a&1&&(K(0,"th",48),S(1),L());a&2&&(a=P(2),B(),T(" ",a.getDisplayName(a.IssueFieldType.TRIAGER)," "))},$Bb=function(a){a&1&&M(0,"b-issue-triager-cell",36);a&2&&(a=P(),I("issue",a))},aCb=function(a){a&1&&F(0,$Bb,1,1,"b-issue-triager-cell",
36);a&2&&(P(3),G(0))},bCb=function(a,b){a&1&&(K(0,"td",47),F(1,aCb,1,1),U(2,"async"),L());if(a&2){var c;a=b.$implicit;B();G((c=W(2,1,a.issue$))?1:-1,c)}},cCb=function(a){a&1&&(K(0,"th",26),S(1),L());a&2&&(a=P(2),B(),Ag(a.getDisplayName(a.IssueFieldType.ALERTS)))},dCb=function(a){a&1&&M(0,"b-issue-alerts-cell",50);if(a&2){a=P();var b=P(4);I("alerts",b.alerts)("issue",a)}},eCb=function(a){a&1&&F(0,dCb,1,2,"b-issue-alerts-cell",50);a&2&&(P(4),G(0))},fCb=function(a){a&1&&(F(0,eCb,1,1),U(1,"async"));if(a&
2){var b;a=P().$implicit;G((b=W(1,1,a.issue$))?0:-1,b)}},gCb=function(a){a&1&&M(0,"b-signal-chip",49)},hCb=function(a,b){a&1&&(K(0,"td",47),F(1,fCb,2,3)(2,gCb,1,0,"b-signal-chip",49),L());a&2&&(a=b.$implicit,B(),G(a.issueIds.length===1?1:2))},iCb=function(a){a&1&&(K(0,"th",51),S(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.TIMEFRAME),B(),T(" ",a.getDisplayName(a.IssueFieldType.TIMEFRAME)," "))},jCb=function(a,b){a&1&&(K(0,"td",30),M(1,"issue-timeframe",52),U(2,"async"),L());a&2&&(a=b.$implicit,
B(),I("issue",W(2,2,a.issue$))("showIcon",!1))},kCb=function(a){a&1&&(K(0,"th",43),S(1),L());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.PROGRESS),B(),T(" ",a.getDisplayName(a.IssueFieldType.PROGRESS)," "))},lCb=function(a,b){a&1&&(K(0,"td",30),M(1,"progress-pie",36),U(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",W(2,1,a.issue$)))},mCb=function(a){a&1&&M(0,"th",26)},nCb=function(a,b){if(a&1){var c=t();K(0,"td",30)(1,"b-actions-menu",53);N("click",function(f){u(c);return v(f.stopPropagation())});
L()()}if(a&2){a=b.$implicit;b=P(2);B();var d,e;I("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]))}},oCb=function(a){a&1&&(K(0,"th",26),S(1),L());a&2&&(a=P(2),B(),T(" ",a.getDisplayName(a.IssueFieldType.COMPONENT_PATH)," "))},pCb=function(a,b){a&1&&(K(0,"td",30),M(1,"b-issue-component-name-cell",
36),U(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",W(2,1,a.issue$)))},qCb=function(a){a&1&&(K(0,"th",26),S(1),L());a&2&&(a=P(2),B(),T(" ",a.getDisplayName(a.IssueFieldType.ENRICHMENT_CATEGORIES)," "))},rCb=function(a,b){a&1&&(K(0,"td",30),M(1,"b-enrichment-categories-cell",54),L());a&2&&(a=b.$implicit,b=P(2),B(),I("enrichmentCategoryNames",b.enrichmentCategoriesFunction(a.issueIds[0])))},sCb=function(a){a&1&&(K(0,"th",26)(1,"span"),S(2),L()());if(a&2){a=P().$implicit;var b=P(2);B(2);T(" ",b.getCustomFieldName(a),
" ")}},tCb=function(a){a&1&&(K(0,"span"),S(1),L());if(a&2){a=P();var b=P(2).$implicit,c=P(2);B();T(" ",c.getCustomFieldValue(a,b)," ")}},uCb=function(a){a&1&&F(0,tCb,2,1,"span");a&2&&(P(4),G(0))},vCb=function(a,b){a&1&&(K(0,"td",30),F(1,uCb,1,1),U(2,"async"),L());if(a&2){var c;a=b.$implicit;B();G((c=W(2,1,a.issue$))?1:-1,c)}},wCb=function(a,b){a&1&&(Vf(0,8),E(1,sCb,3,1,"th",5)(2,vCb,3,3,"td",9),Wf());a&2&&(a=b.$implicit,b=P(2),I("matColumnDef",Hg("",b.IssueFieldType.CUSTOM_FIELD,"-",a)))},xCb=function(a){a&
1&&M(0,"tr",55)},zCb=function(a,b){if(a&1){var c=t();K(0,"tr",56,0);U(2,"async");N("click",function(d){u(c);var e=Q(1),f=P(2);return v(yCb(f,d,e))})("mouseup",function(d){u(c);var e=Q(1),f=P(2);return v(yCb(f,d,e))})("focusin",function(){var d=u(c).$implicit,e=P(2);return v(e.focusManager==null?null:Xs(e.focusManager,d))})("keydown",function(d){var e=u(c).$implicit,f=P(2);return v(f.onRowKeydown(e,d))});L()}a&2&&(a=b.$implicit,b=P(2),yg("closed",b.options.deEmphasizeClosedIssues&&b.isClosed(W(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)),I("row",a))},ACb=function(a,b){if(a&1){var c=t();K(0,"tr",56,0);N("click",function(d){u(c);var e=Q(1),f=P(2);return v(yCb(f,d,e))})("mouseup",function(d){u(c);var e=Q(1),f=P(2);return v(yCb(f,d,e))})("focusin",function(){var d=u(c).$implicit,
e=P(2);return v(e.focusManager==null?null:Xs(e.focusManager,d))})("keydown",function(d){var e=u(c).$implicit,f=P(2);return v(f.onRowKeydown(e,d))});L()}a&2&&(a=b.$implicit,b=P(2),yg("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)),I("row",a))},CCb=function(a,b){if(a&1){var c=t();K(0,"table",3);U(1,
"async");U(2,"async");N("matSortChange",function(g){u(c);var k=P();return v(k.onSortChange(g))});Vf(3,4);E(4,TAb,1,0,"th",5)(5,UAb,1,0,"td",6);Wf();Vf(6,7);E(7,WAb,3,0,"th",5)(8,XAb,1,0,"td",6);Wf();Vf(9,8);E(10,YAb,2,0,"th",5)(11,$Ab,2,1,"td",9);Wf();Vf(12,10);E(13,bBb,2,2,"th",5)(14,cBb,2,3,"td",9);Wf();Vf(15,11);E(16,dBb,2,2,"th",5)(17,eBb,1,0,"td",9);Wf();Vf(18,8);E(19,fBb,2,1,"th",5)(20,gBb,5,15,"td",9);Wf();Vf(21,12);E(22,hBb,2,1,"th",5)(23,iBb,4,4,"td",9);Wf();Vf(24,8);E(25,jBb,2,2,"th",13)(26,
kBb,3,3,"td",9);Wf();Vf(27,8);E(28,nBb,3,2,"th",13)(29,tBb,3,1,"td",9);Wf();Vf(30,8);E(31,uBb,2,2,"th",13)(32,vBb,3,3,"td",9);Wf();Vf(33,8);E(34,wBb,2,2,"th",14)(35,yBb,4,4,"td",9);Wf();Vf(36,15);E(37,zBb,1,0,"th",16)(38,ABb,2,0,"td",9);Wf();Vf(39,8);E(40,BBb,2,2,"th",13)(41,CBb,3,3,"td",9);Wf();Vf(42,8);E(43,DBb,2,1,"th",5)(44,EBb,3,3,"td",9);Wf();Vf(45,8);E(46,FBb,2,1,"th",5)(47,IBb,3,3,"td",9);Wf();Vf(48,8);E(49,JBb,2,1,"th",5)(50,MBb,3,3,"td",9);Wf();Vf(51,8);E(52,NBb,2,1,"th",5)(53,QBb,3,3,"td",
9);Wf();Vf(54,8);E(55,RBb,2,2,"th",17)(56,SBb,3,4,"td",9);Wf();Vf(57,8);E(58,TBb,2,2,"th",17)(59,VBb,4,3,"td",9);Wf();Vf(60,8);E(61,WBb,2,2,"th",18)(62,YBb,4,3,"td",19);Wf();Vf(63,8);E(64,ZBb,2,1,"th",20)(65,bCb,3,3,"td",19);Wf();Vf(66,8);E(67,cCb,2,1,"th",5)(68,hCb,3,1,"td",19);Wf();Vf(69,8);E(70,iCb,2,2,"th",21)(71,jCb,3,4,"td",9);Wf();Vf(72,8);E(73,kCb,2,2,"th",17)(74,lCb,3,3,"td",9);Wf();Vf(75,22);E(76,mCb,1,0,"th",5)(77,nCb,2,3,"td",9);Wf();Vf(78,8);E(79,oCb,2,1,"th",5)(80,pCb,3,3,"td",9);Wf();
Vf(81,8);E(82,qCb,2,1,"th",5)(83,rCb,2,1,"td",9);Wf();Pf(84,wCb,3,3,"ng-container",8,Of);E(86,xCb,1,0,"tr",23)(87,zCb,3,7,"tr",24)(88,ACb,2,3,"tr",25);L()}if(a&2){var d,e;a=P();yg("hide-header",a.options.hideColumnHeaders);var f;I("dataSource",b)("trackBy",a.trackBy)("matSortDisabled",a.options.sortMode===a.SortMode.DISABLED)("matSortActive",(f=(d=W(1,32,a.activeSort$))==null?null:d.column)!=null?f:"")("matSortDirection",a.toMatSortDirection((e=W(2,34,a.activeSort$))==null?null:e.direction));B(9);
I("matColumnDef",a.IssueFieldType.ISSUE_ID);B(9);I("matColumnDef",a.IssueFieldType.TITLE);B(6);I("matColumnDef",a.IssueFieldType.TYPE);B(3);I("matColumnDef",a.IssueFieldType.ASSIGNEE);B(3);I("matColumnDef",a.IssueFieldType.REPORTER);B(3);I("matColumnDef",a.IssueFieldType.PRIORITY);B(6);I("matColumnDef",a.IssueFieldType.STATUS);B(3);I("matColumnDef",a.IssueFieldType.TEAM);B(3);I("matColumnDef",a.IssueFieldType.DUPLICATE_COUNT);B(3);I("matColumnDef",a.IssueFieldType.VOTE_COUNT);B(3);I("matColumnDef",
a.IssueFieldType.SEVEN_DAY_VIEW_COUNT);B(3);I("matColumnDef",a.IssueFieldType.CREATED_TIME);B(3);I("matColumnDef",a.IssueFieldType.MODIFIED_TIME);B(3);I("matColumnDef",a.IssueFieldType.RELATIVE_MODIFIED_TIME);B(3);I("matColumnDef",a.IssueFieldType.TRIAGER);B(3);I("matColumnDef",a.IssueFieldType.ALERTS);B(3);I("matColumnDef",a.IssueFieldType.TIMEFRAME);B(3);I("matColumnDef",a.IssueFieldType.PROGRESS);B(6);I("matColumnDef",a.IssueFieldType.COMPONENT_PATH);B(3);I("matColumnDef",a.IssueFieldType.ENRICHMENT_CATEGORIES);
B(3);Qf(a.customFieldIds);B(2);I("matHeaderRowDef",a.tableColumns);B();I("matRowDefColumns",a.tableColumns)("matRowDefWhen",a.isSingleIssue);B();I("matRowDefColumns",BCb(a))("matRowDefWhen",a.isMultiIssue)}},DCb=function(a){if(a&1){var b=t();K(0,"button",58);N("click",function(){u(b);var c=P(5);return v(c.rowLimit$.next(void 0))});S(1," Show more ");L()}},ECb=function(a){a&1&&F(0,DCb,2,0,"button",57);if(a&2){a=P();var b=P();G(a.length<b?0:-1)}},FCb=function(a){if(a&1){var b=t();K(0,"button",58);N("click",
function(){u(b);var c=P(5);return v(c.rowLimit$.next(c.options.rowLimit))});S(1," Show less ");L()}},GCb=function(a){a&1&&F(0,FCb,2,0,"button",57);if(a&2){a=P();var b=P(3);G(a.length>b.options.rowLimit?0:-1)}},HCb=function(a){a&1&&(F(0,ECb,1,1),U(1,"async"),Mf(2,GCb,1,1));if(a&2){var b;a=P(3);G((b=W(1,1,a.rowLimit$))?0:2,b)}},ICb=function(a){a&1&&(F(0,HCb,3,3),U(1,"async"));if(a&2){var b;a=P(2);G((b=W(1,1,a.rows$))?0:-1,b)}},JCb=function(a){a&1&&(K(0,"div",2),F(1,ICb,2,3),U(2,"async"),L());if(a&2){var b;
a=P();B();G((b=W(2,1,a.rowCountAfterFilters$))?1:-1,b)}},KCb=function(a,b){return a===b?!0:a&&b?u1a(a.issueIds,b.issueIds):!1},LCb=function(a){var b;return(b=a==null?void 0:a.join(";"))!=null?b:""},Co=function(a){return Or(a.issue$)},MCb=function(a,b){if(!b)return a;switch(b.column){case "STATUS":return xWa()(a,b.direction);case "ASSIGNEE":return yWa()(a,b.direction);case "REPORTER":return AWa()(a,b.direction);case "TYPE":return zWa()(a,b.direction);case "CREATED_TIME":return BWa(Co)(a,b.direction);
case "MODIFIED_TIME":case "RELATIVE_MODIFIED_TIME":return CWa(Co)(a,b.direction);case "PRIORITY":return IWa(Co)(a,b.direction);case "PROGRESS":return JWa()(a,b.direction);default:return console.warn("b-issues-table sort by '"+b.column+"' not implemented"),a}},NCb=function(a,b){var c=a.views24h;var d=a.views7d;a=a.views30d;if(xo(c[b],c))return{title:"Trending 24h",tooltip:c[b]+" Views in 24 hours",cssClass:"cyan"};if(xo(d[b],d))return{title:"Trending 7d",tooltip:d[b]+" Views in 7 days",cssClass:"purple"};
if(xo(a[b],a))return{title:"Trending 30d",tooltip:a[b]+" Views in the last 30 days",cssClass:"blue"}},PCb=function(a,b){if(a&1){var c=t();K(0,"b-issues-table",1);N("issueNavigated",function(d){u(c);var e=P();return v(OCb(e,e.EventType.EVENT_TYPE_GO_TO_ISSUE,d))});L()}a&2&&(a=P(),I("issueIds",b.issueIds)("tableColumns",b.tableColumns)("options",a.tableOptions)("enrichmentCategoriesFunction",b.categoriesFunction)("menuItemFactory",a.menuItemFactory))},QCb=function(a){a&1&&(K(0,"div"),M(1,"b-spinner"),
L())},RCb=function(a){a&1&&M(0,"b-issue-card",13,1);if(a&2){a=Q(1);var b=P(2);I("onedevIsHovercardReady",a.init)("issueId",b)}},SCb=function(a){a&1&&(K(0,"span",11),S(1,"CURRENT ISSUE"),L())},TCb=function(a,b){a&1&&S(0);a&2&&Bg(" ",b.length," comment",b.length===1?"":"s"," ")},UCb=function(a,b){a&1&&S(0);a&2&&Bg(" \u00b7 ",b.length," dupe",b.length===1?"":"s"," ")},VCb=function(a,b){a&1&&(K(0,"div",5),M(1,"div",6)(2,"b-issue-id-cell",7),K(3,"a",8)(4,"span",9),S(5),L()(),K(6,"onedev-hovercard",null,
0),E(8,RCb,2,2,"b-issue-card",10),L(),F(9,SCb,2,0,"span",11),K(10,"div",12),F(11,TCb,1,2),U(12,"async"),F(13,UCb,1,2),U(14,"async"),S(15),L()());if(a&2){var c,d;a=Q(7);var e=P(),f=P();B(2);I("id",e);B();I("href",f.getIssueLink(e),Me);B();I("onedevHovercardTrigger",a);B();Ag(b.snapshot[0].title);B(4);G(e===f.currentIssue.issueId?9:-1);B(2);G((c=W(12,9,f.canonicalComments$))?11:-1,c);B(2);G((d=W(14,11,f.canonicalDuplicates$))?13:-1,d);b=(b==null?null:b.aggregatedData==null?null:b.aggregatedData.voteCount)||
0;B(2);Bg(" \u00b7 ",b>9999?"9999+":b," vote",b===1?"":"s"," ")}},WCb=function(a,b){a&1&&(F(0,VCb,16,13,"div",5),U(1,"async"));if(a&2){var c;a=P();G((c=W(1,1,a.issue$(b)))?0:-1,c)}},XCb=function(a){a&1&&(K(0,"div",15)(1,"span",26),S(2," \u2b90 "),L()())},YCb=function(a){a&1&&M(0,"span",17)},ZCb=function(a){a&1&&M(0,"b-issue-card",13,3);if(a&2){a=Q(1);var b=P();I("onedevIsHovercardReady",a.init)("issueId",b.issueId)}},$Cb=function(a){a&1&&(K(0,"span",11),S(1,"CURRENT ISSUE"),L())},cDb=function(a,b){if(a&
1){var c=t();K(0,"div",14);F(1,XCb,3,0,"div",15);K(2,"div",16);F(3,YCb,1,0,"span",17);M(4,"mat-icon",18);L();M(5,"b-issue-id-cell",7);K(6,"a",19)(7,"span",20);S(8);L()();K(9,"onedev-hovercard",null,2);E(11,ZCb,2,2,"b-issue-card",10);L();F(12,$Cb,2,0,"span",11);K(13,"div",21)(14,"button",22);N("click",function(){var f=u(c),g=P(2);return v(aDb(g,f))});M(15,"mat-icon",23);L();K(16,"button",24);N("click",function(){var f=u(c),g=P(2);return v(bDb(g,f.issueId))});M(17,"mat-icon",25);L()()()}if(a&2){a=Q(10);
var d=P().$index,e=P();B();G(d===0?1:-1);B(2);G(d!==0?3:-1);B(2);I("id",b.issueId);B();I("href",e.getIssueLink(b.issueId),Me);B();I("onedevHovercardTrigger",a);B();Ag(b.snapshot[0].title);B(4);G(b.issueId===e.currentIssue.issueId?12:-1);B(2);Jf("aria-label","Make "+b.snapshot[0].title+" the canonical issue");B(2);I("disabled",e.draftActions.length<2);Jf("aria-label","Remove "+b.snapshot[0].title)}},dDb=function(a,b){a&1&&(F(0,cDb,18,10,"div",14),U(1,"async"));if(a&2){var c;a=b.$implicit;b=P();G((c=
W(1,1,b.issue$(a.issueId)))?0:-1,c)}},eDb=function(a){if(a&1){var b=t();K(0,"div")(1,"button",27);N("click",function(){u(b);P().showExpansionOption=!1;return v()});K(2,"span");S(3);L()()()}a&2&&(a=P(),B(),Jf("aria-label","View "+a.hiddenActionCount+" more issues"),B(2),T("View ",a.hiddenActionCount," more"))},fDb=function(a,b){return this.groupTrackBy(b)},gDb=function(a){a&1&&M(0,"b-user-picker",15);if(a&2){P(2);a=dg(3);P(2);var b=dg(1),c=P();I("user",a)("teamId",c.getTeamId(b))("disabled",!0)}},
hDb=function(a){a&1&&(K(0,"span",16),S(1,"<none>"),L())},iDb=function(a){a&1&&(F(0,gDb,1,3,"b-user-picker",15)(1,hDb,2,0,"span",16),K(2,"mat-icon",17),S(3," -> "),L());a&2&&(P(),a=dg(3),G(a?0:1))},jDb=function(a){a&1&&(K(0,"span",13),S(1,"Reporter"),L())},lDb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);P();var f=Q(6);return v(f.openPopOver())});M(1,"mat-icon",19);L();Xf(2,20)}if(a&2){a=P(3).$implicit;var c=dg(0),d=P(),e=Q(4);I("disabled",d.excludedActions.has(c.actionKey));
B(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Kg(3,kDb,a))}},nDb=function(a){if(a&1){var b=t();K(0,"span",10);S(1,"Assignee");L();K(2,"div",11);bg(3);F(4,iDb,4,1);K(5,"b-user-picker",12,1);U(7,"emailToUser");N("emailChange",function(g){u(b);P(2);var k=dg(0),m=P();return v(mDb(m,k,g))});L();F(8,jDb,2,0,"span",13);L();K(9,"div",14);F(10,lDb,3,5);L()}if(a&2){P(2);a=dg(0);var c=dg(1),d=P();B(3);var e=cg(d.getAssignee(c)),f=e&&!a.value&&a.actionType===d.ActionType.REMOVE;B();G(f||a.value&&(e==
null?null:e.emailAddress)!=a.value?4:-1);B();I("user",f?void 0:a.value?W(7,8,a.value):e)("displayValueOverride",f?"<none>":"")("teamId",d.getTeamId(c))("disabled",!a.allowEdit||d.excludedActions.has(a.actionKey));B(3);G(a.value===d.userToLossyEmail(d.getReporter(c))?8:-1);B(2);G(a.allowEdit?10:-1)}},oDb=function(a){a&1&&(M(0,"b-edit-field",23),K(1,"mat-icon",17),S(2," -> "),L());if(a&2){P(3);a=dg(1);var b=P(),c;I("type",b.FieldType.ENUM)("value",(c=b.getPriority(a))!=null?c:null)("choices",b.priorityChoices)("readonly",
!0)}},qDb=function(a){if(a&1){var b=t();K(0,"button",24);N("click",function(f){u(b);P();var g=Q(5);return v(rs(g,f,!0,!0))});M(1,"mat-icon",19);L();Xf(2,20)}if(a&2){a=P(3).$implicit;var c=dg(0),d=P(),e=Q(4);I("disabled",d.excludedActions.has(c.actionKey));B(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Kg(3,pDb,a))}},rDb=function(a){if(a&1){var b=t();K(0,"span",10);S(1,"Priority");L();K(2,"div",21);F(3,oDb,3,4);K(4,"b-edit-field",22,2);N("valueChange",function(g){u(b);P(2);var k=dg(0),m=P();
return v(mDb(m,k,g!=null?g:m.IssuePriority.P2))});L()();K(6,"div",14);F(7,qDb,3,5);L()}if(a&2){P(2);a=dg(0);var c=dg(1),d=P();c=d.getPriority(c);B(3);G(a.value&&c!==a.value?3:-1);B();var e,f;I("type",d.FieldType.ENUM)("value",(f=(e=a.value)!=null?e:c)!=null?f:null)("choices",d.priorityChoices)("readonly",!a.allowEdit);B(3);G(a.allowEdit?7:-1)}},uDb=function(a){if(a&1){var b=t();K(0,"button",26);N("click",function(){u(b);P(4);var f=dg(0),g=dg(1),k=P();return v(sDb(k,f,g))});M(1,"mat-icon",19);L();
Xf(2,20)}if(a&2){a=P(4).$implicit;var c=dg(0),d=P(),e=Q(4);I("disabled",d.excludedActions.has(c.actionKey));B(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Kg(3,tDb,a))}},vDb=function(a){a&1&&(K(0,"div",10),S(1,"Comment"),L(),K(2,"div",21),M(3,"b-live-preview",25),U(4,"async"),L(),K(5,"div",14),F(6,uDb,3,5),L());if(a&2){P(3);a=dg(0);var b=P();B(3);var c,d;I("comment",a.value)("issueId",a.issueId)("audience",(c=W(4,5,b.formattingAudience$))!=null?c:void 0)("formattingMode",(d=a.formattingMode)!=
null?d:b.FormattingMode.PLAIN);B(3);G(a.allowEdit?6:-1)}},wDb=function(a){a&1&&F(0,vDb,7,7);a&2&&(a=P(3),G(a.includeCommentByDefault?0:-1))},xDb=function(a){a&1&&(M(0,"b-component-breadcrumb-chip",28),K(1,"mat-icon",17),S(2," -> "),L());if(a&2){P(3);a=dg(0);var b=dg(1),c=P();I("issueId",a.issueId)("componentId",c.getComponentId(b))("compactMode",!0)("readOnly",!0)}},zDb=function(a){if(a&1){var b=t();K(0,"button",29);N("click",function(){u(b);P();var f=Q(5);return v(f.startEdit())});M(1,"mat-icon",
19);L();Xf(2,20)}if(a&2){a=P(3).$implicit;var c=dg(0),d=P(),e=Q(4);I("disabled",d.excludedActions.has(c.actionKey));B(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Kg(3,yDb,a))}},ADb=function(a){if(a&1){var b=t();K(0,"span",10);S(1,"Component");L();K(2,"div",21);F(3,xDb,3,4);K(4,"b-component-breadcrumb-chip",27,3);N("componentChanged",function(d){u(b);P(2);var e=dg(0),f=P();return v(mDb(f,e,d))});L()();K(6,"div",14);F(7,zDb,3,5);L()}if(a&2){P(2);a=dg(0);var c=dg(1);c=P().getComponentId(c);
B(3);G(c!==a.value?3:-1);B();I("issueId",a.issueId)("componentId",a.value)("compactMode",!0)("handleSave",!1)("showPickerOverlayAbove",!1)("readOnly",!0);B(3);G(a.allowEdit?7:-1)}},BDb=function(a){a&1&&(K(0,"mat-icon",31),S(1," + "),L(),M(2,"b-hotlist-chip",32));a&2&&(P(2),a=dg(1),B(2),I("hotlist",a)("removable",!1))},CDb=function(a){a&1&&F(0,BDb,3,2);a&2&&(P(),a=dg(1),G(a?0:-1))},DDb=function(a){a&1&&(K(0,"mat-icon",33),S(1," - "),L(),M(2,"b-hotlist-chip",32));a&2&&(P(),a=dg(1),B(2),I("hotlist",
a)("removable",!1))},EDb=function(a,b){a&1&&(K(0,"div",30),bg(1),U(2,"async"),F(3,CDb,1,1)(4,DDb,3,2),L());if(a&2){a=b.$implicit;b=P().$implicit;P(3);var c=dg(1),d=P();B();cg(W(2,1,d.hotlist$(a)));B(2);G(b.actionType!==d.ActionType.ADD||d.hasHotlist(c,a)?b.actionType===d.ActionType.REMOVE&&d.hasHotlist(c,a)?4:-1:3)}},FDb=function(a,b){a&1&&Pf(0,EDb,5,4,"div",30,Of);a&2&&(a=b.$implicit,b=P(4),Qf(b.split(a.value)))},HDb=function(a){if(a&1){var b=t();K(0,"button",34);N("click",function(){u(b);var f=
P(3).$implicit,g=P();return v(g.openHotlistPicker(f))});M(1,"mat-icon",19);L();Xf(2,20)}if(a&2){a=P(3).$implicit;var c=dg(0),d=P(),e=Q(4);I("disabled",d.excludedActions.has(c.actionKey));B(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Kg(3,GDb,a))}},JDb=function(a){a&1&&(K(0,"span",10),S(1,"Hotlist"),L(),K(2,"div",21),Pf(3,FDb,2,0,null,null,IDb),L(),K(5,"div",14),F(6,HDb,3,5),L());if(a&2){a=P(2).$implicit;var b=dg(0);B(3);Qf(a);B(3);G(b.allowEdit?6:-1)}},KDb=function(a){a&1&&(K(0,"mat-icon",
35),S(1," + "),L(),M(2,"b-user-picker",15),U(3,"emailToUser"));if(a&2){a=P().$implicit;P(4);var b=dg(1),c=P();B(2);I("user",W(3,3,a)||void 0)("teamId",c.getTeamId(b))("disabled",!0)}},LDb=function(a){a&1&&(K(0,"mat-icon",36),S(1," - "),L(),M(2,"b-user-picker",15),U(3,"emailToUser"));if(a&2){a=P().$implicit;P(4);var b=dg(1),c=P();B(2);I("user",W(3,3,a)||void 0)("teamId",c.getTeamId(b))("disabled",!0)}},NDb=function(a,b){a&1&&(K(0,"div",30),F(1,KDb,4,5)(2,LDb,4,5),L());if(a&2){a=b.$implicit;b=P().$implicit;
P(3);var c=dg(1),d=P();B();G(b.actionType!==d.ActionType.ADD||MDb(c,a)?b.actionType===d.ActionType.REMOVE&&MDb(c,a)?2:-1:1)}},ODb=function(a,b){a&1&&Pf(0,NDb,3,1,"div",30,Of);a&2&&(a=b.$implicit,b=P(4),Qf(b.split(a.value)))},QDb=function(a){a&1&&(K(0,"span",10),S(1,"CCs"),L(),K(2,"div",11),Pf(3,ODb,2,0,null,null,IDb),L(),K(5,"div",14),Xf(6,20),L());if(a&2){a=P(2).$implicit;P();var b=Q(4);B(3);Qf(a);B(3);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,PDb,a))}},RDb=function(a){a&1&&(M(0,"b-edit-field",
23),K(1,"mat-icon",17),S(2," -> "),L());if(a&2){P(3);a=dg(1);var b=P(),c;I("type",b.FieldType.ENUM)("value",(c=b.getStatus(a))!=null?c:null)("choices",b.statusChoices)("readonly",!0)}},TDb=function(a){if(a&1){var b=t();K(0,"span",10);S(1,"Status");L();K(2,"div",11);F(3,RDb,3,4);K(4,"b-edit-field",22,4);N("valueChange",function(m){u(b);P(2);var r=dg(0),w=P();return v(mDb(w,r,m!=null?m:w.IssueStatus.NEW))});L()();K(6,"div",14);Xf(7,20);L()}if(a&2){a=P(2).$implicit;var c=dg(0),d=dg(1),e=P(),f=Q(4);d=
e.getStatus(d);B(3);G(c.value&&d!==c.value?3:-1);B();var g,k;I("type",e.FieldType.ENUM)("value",(k=(g=c.value)!=null?g:d)!=null?k:null)("choices",e.statusChoices)("readonly",!0);B(3);I("ngTemplateOutlet",f)("ngTemplateOutletContext",Kg(7,SDb,a))}},UDb=function(a){a&1&&M(0,"b-list-field",37);if(a&2){P();a=dg(0);var b=P(5);I("type",b.getListFieldType(a.type))("values",b.getRepeatedValues(a))("displayValuesOverride",a.displayValues)("enumChoices",a.choices)("readonly",!0)}},XDb=function(a){a&1&&M(0,
"b-edit-field",38);if(a&2){P();a=dg(0);var b=P(5),c;I("type",VDb(a.type))("value",b.getSingularValue(a))("displayValueOverride",b.getDisplayValue(a))("choices",(c=a.choices)!=null?c:Jg(6,WDb))("readonly",!0)("showEnumTitle",!0)}},ZDb=function(a){a&1&&(bg(0),F(1,UDb,1,5,"b-list-field",37)(2,XDb,1,7,"b-edit-field",38),K(3,"mat-icon",17),S(4," -> "),L());if(a&2){P();a=dg(3);P();var b=dg(0);a=cg(YDb(P(3),a,b));B();G(a.isRepeated()?1:2)}},$Db=function(a){a&1&&(K(0,"span",16),S(1,"<none>"),L(),K(2,"mat-icon",
17),S(3," -> "),L())},aEb=function(a){a&1&&F(0,$Db,4,0);a&2&&(P(),a=dg(3),G(a?-1:0))},bEb=function(a){a&1&&M(0,"b-list-field",37,5);if(a&2){P();a=dg(4);var b=P(4);I("type",b.getListFieldType(a.type))("values",b.getRepeatedValues(a))("displayValuesOverride",a.displayValues)("enumChoices",a.choices)("readonly",!0)}},cEb=function(a){a&1&&M(0,"b-edit-field",38,5);if(a&2){P();a=dg(4);var b=P(4),c;I("type",VDb(a.type))("value",b.getSingularValue(a))("displayValueOverride",b.getDisplayValue(a))("choices",
(c=a.choices)!=null?c:Jg(6,WDb))("readonly",!0)("showEnumTitle",!0)}},fEb=function(a){a&1&&(K(0,"span",10),S(1),L(),K(2,"div",21),bg(3)(4),F(5,ZDb,5,2)(6,aEb,1,1),F(7,bEb,2,5,"b-list-field",37)(8,cEb,2,7,"b-edit-field",38),L(),K(9,"div",14),Xf(10,20),L());if(a&2){P();a=dg(0);var b=P(2).$implicit,c=dg(0),d=dg(1);P();var e=Q(4);Jf("title","Custom Field: "+a.name);B();Ag(a.name);B(2);d=cg(dEb(d,c));B();var f=cg(YDb(0,c.customFieldValue,a));B();G(d&&(d.displayValues==null?null:d.displayValues.join(","))!==
(c.customFieldValue.displayValues==null?null:c.customFieldValue.displayValues.join(","))?5:6);B(2);G(f.isRepeated()?7:8);B(3);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Lg(8,eEb,b,a.name))}},hEb=function(a){a&1&&(bg(0),F(1,fEb,11,11));if(a&2){P(2);a=dg(0);var b=dg(1);a=cg(gEb(b,a));B();G(a?1:-1)}},iEb=function(a){a&1&&(M(0,"b-edit-field",23),K(1,"mat-icon",17),S(2," -> "),L());if(a&2){P(3);a=dg(1);var b=P(),c;I("type",b.FieldType.ENUM)("value",(c=b.getType(a))!=null?c:null)("choices",b.typeChoices)("readonly",
!0)}},kEb=function(a){if(a&1){var b=t();K(0,"button",39);N("click",function(f){u(b);P();var g=Q(5);return v(rs(g,f,!0,!0))});M(1,"mat-icon",19);L();Xf(2,20)}if(a&2){a=P(3).$implicit;var c=dg(0),d=P(),e=Q(4);I("disabled",d.excludedActions.has(c.actionKey));B(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Kg(3,jEb,a))}},lEb=function(a){if(a&1){var b=t();K(0,"span",10);S(1,"Type");L();K(2,"div",21);F(3,iEb,3,4);K(4,"b-edit-field",22,6);N("valueChange",function(g){u(b);P(2);var k=dg(0),m=P();return v(mDb(m,
k,g!=null?g:m.IssueType.BUG))});L()();K(6,"div",14);F(7,kEb,3,5);L()}if(a&2){P(2);a=dg(0);var c=dg(1),d=P();c=d.getType(c);B(3);G(a.value&&c!==a.value?3:-1);B();var e,f;I("type",d.FieldType.ENUM)("value",(f=(e=a.value)!=null?e:c)!=null?f:null)("choices",d.typeChoices)("readonly",!a.allowEdit);B(3);G(a.allowEdit?7:-1)}},mEb=function(a){a&1&&F(0,nDb,11,10)(1,rDb,8,6)(2,wDb,1,1)(3,ADb,8,8)(4,JDb,7,1)(5,QDb,7,4)(6,TDb,8,9)(7,hEb,2,2)(8,lEb,8,6);if(a&2){var b;P();a=dg(0);var c=P();G((b=a.fieldName)===
c.IssueFieldName.ASSIGNEE?0:b===c.IssueFieldName.PRIORITY?1:b===c.IssueFieldName.COMMENT?2:b===c.IssueFieldName.COMPONENT_ID?3:b===c.IssueFieldName.HOTLISTS?4:b===c.IssueFieldName.CCS?5:b===c.IssueFieldName.STATUS?6:b===c.IssueFieldName.CUSTOM_FIELD?7:b===c.IssueFieldName.TYPE?8:-1)}},nEb=function(a,b){a&1&&(bg(0)(1),U(2,"async"),K(3,"div",9),F(4,mEb,9,1),L());if(a&2){b=b.$implicit;a=P();b=cg(b[0]);B();var c=cg(W(2,6,a.issue$(b.issueId)));B(2);yg("excluded",a.excludedActions.has(b.actionKey))("hide-comment",
!a.includeCommentByDefault);B();G(c?4:-1)}},oEb=function(a){if(a&1){var b=t();K(0,"button",42);N("click",function(){u(b);var c=P(2).group,d=P();c=l(c);for(var e=c.next();!e.done;e=c.next())d.excludedActions.delete(e.value.actionKey);d.updateActionsToAccept();return v()});M(1,"mat-icon",43);L()}a&2&&(a=P(2).fieldName,I("matTooltip",Gg("Include ",a)),Jf("aria-label","Include "+a))},pEb=function(a){if(a&1){var b=t();K(0,"button",44);N("click",function(){u(b);var c=P(2).group,d=P();c=l(c);for(var e=c.next();!e.done;e=
c.next())d.excludedActions.add(e.value.actionKey);d.updateActionsToAccept();return v()});M(1,"mat-icon",45);L()}a&2&&(a=P(2).fieldName,I("matTooltip",Gg("Exclude ",a)),Jf("aria-label","Exclude "+a))},qEb=function(a){a&1&&F(0,oEb,2,3,"button",40)(1,pEb,2,3,"button",41);if(a&2){P();a=dg(0);var b=P();G(b.excludedActions.has(a.actionKey)?0:1)}},rEb=function(a,b){a&1&&(bg(0),F(1,qEb,2,1));a&2&&(a=cg(b.group[0]),B(),G(a.allowExclude?1:-1))},sEb=function(a,b){a=wo(a,function(f){return f.actionKey});var c=
[];b=l(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=a.get(d.actionKey);e&&e.isDirty?c.push(e):c.push(d)}return Hm(c)},tEb=function(a){a&1&&(K(0,"div",1),S(1),L());a&2&&(a=P(),B(),Ag(a.getRecommendationText()))},vEb=function(a,b){if(a&1){var c=t();K(0,"b-dedupe-actions-component",6);U(1,"async");N("actionsToAccept",function(e){u(c);var f=P(2);return v(f.updateActionsToAccept(e))});L()}if(a&2){a=P(2);var d;I("currentIssue",b)("actions",(d=W(1,2,a.actions$))!=null?d:Jg(4,uEb))}},wEb=function(a){a&
1&&(F(0,vEb,2,5,"b-dedupe-actions-component",5),U(1,"async"));if(a&2){var b;a=P();G((b=W(1,1,a.currentIssue$))?0:-1,b)}},xEb=function(a){if(a&1){var b=t();K(0,"b-issue-actions-component",7);U(1,"async");N("actionsToAccept",function(d){u(b);var e=P();return v(e.updateActionsToAccept(d))});L()}if(a&2){a=P();var c;I("actions",(c=W(1,2,a.actions$))!=null?c:Jg(4,uEb))("includeCommentByDefault",a.includeComment||a.recommendation.type!==a.RecommendationType.ANY_ISSUE_EDIT)}},yEb=function(a){a&1&&M(0,"b-formatted-comment-presenter",
9);a&2&&(a=P(2),I("formattedComment",a.recommendation.rationale.formattedText)("canEditComment",!1))},zEb=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(2),B(),Ag(a.recommendation.rationale.text))},AEb=function(a){a&1&&(M(0,"mat-divider"),K(1,"div",8)(2,"b"),S(3,"Rationale: "),L(),F(4,yEb,1,2,"b-formatted-comment-presenter",9)(5,zEb,2,1,"span"),L());a&2&&(a=P(),B(4),G(a.recommendation.rationale.formattedText?4:5))},BEb=function(a){a&1&&M(0,"b-spinner",15)},CEb=function(a){if(a&1){var b=t();K(0,
"div",16)(1,"button",17);N("click",function(){u(b);P();var c=dg(12),d=P();return v(d.openLink(c))});M(2,"mat-icon",18);L()()}},FEb=function(a){if(a&1){var b=t();K(0,"div",3)(1,"div",10)(2,"button",11);U(3,"async");N("click",function(){u(b);var d=P();return v(d.accept(d.recommendation))});M(4,"mat-icon",12);S(5);L();K(6,"button",13);U(7,"async");N("click",function(){u(b);var d=P();return v(d.reject(d.recommendation))});M(8,"mat-icon",14);S(9," Reject ");L();F(10,BEb,1,0,"b-spinner",15);U(11,"async");
L();bg(12);F(13,CEb,3,0,"div",16);L()}if(a&2){a=P();B(2);I("disabled",W(3,7,a.isSaving$)||a.actionsToAccept.length===0);Jf("aria-label",DEb(a,a.recommendation));B(3);a:switch(a.recommendation.type){case "ISSUE_DEDUPLICATION":var c="Close issue as duplicate";break a;case "ISSUE_DEDUPLICATION_BATCH":c=a.actionsToAccept.length>1?"Close "+a.actionsToAccept.length+" issues as duplicates":"Close "+a.actionsToAccept.length+" issue as duplicate";break a;default:c="Accept changes"}T(" ",c," ");B();I("disabled",
W(7,9,a.isSaving$));Jf("aria-label",EEb(a.recommendation));B(4);G(W(11,11,a.isSaving$)?10:-1);B(2);a:{switch(a.recommendation.type){case "ISSUE_DEDUPLICATION":case "ISSUE_DEDUPLICATION_BATCH":a="https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/mark-as-duplicate";break a}a=void 0}a=cg(a);B();G(a?13:-1)}},GEb=function(a){a&1&&(K(0,"div",4)(1,"b-callout",19)(2,"b-callout-body"),S(3," Is this feature helpful? You can opt in to auto deduplication for this component. "),K(4,"a",
20),S(5,"Learn more"),L()()()())},HEb=function(a){a&1&&(K(0,"div",4),gg(1,1),L());a&2&&(a=P(),I("id",Gg("expansion-panel-content-",a.instance)),Jf("aria-labelledby","expansion-panel-header-"+a.instance))},IEb=function(a,b){a&1&&(K(0,"div")(1,"span",16),S(2,"Phase:\u00a0"),L(),K(3,"span",17),S(4),L()());a&2&&(B(4),Ag(b))},JEb=function(a,b){a&1&&(K(0,"div")(1,"span",16),S(2,"Subphase:\u00a0"),L(),K(3,"span",17),S(4),L()());a&2&&(B(4),Ag(b))},KEb=function(a){a&1&&M(0,"b-issue-card",20,1);if(a&2){a=Q(1);
var b=P();I("onedevIsHovercardReady",a.init)("issueId",b)}},LEb=function(a,b){a&1&&(K(0,"span",18),S(1),L(),K(2,"onedev-hovercard",null,0),E(4,KEb,2,2,"b-issue-card",19),L());a&2&&(a=Q(3),I("onedevHovercardTrigger",a),B(),T("Duplicate of ",b))},NEb=function(a,b){if(a&1){var c=t();K(0,"span",16);S(1,"Triager:\u00a0");L();M(2,"b-user-image",22);K(3,"b-single-user-control",23,3);U(5,"async");N("valueChange",function(f){u(c);var g=P(3);return v(MEb(g,f.newEmail))})("emailChange",function(f){u(c);var g=
P(3);return v(MEb(g,f))});L();K(6,"button",24);N("click",function(f){u(c);Q(4).openEditor();return v(f.stopPropagation())});M(7,"mat-icon",25);L()}if(a&2){P();a=Q(1);var d=P(2);B(2);I("email",b);B();var e;I("name","triager")("anchor",a)("title","Triager")("value",b)("user",(e=W(5,6,d.triager$))!=null?e:void 0)}},OEb=function(a){if(a&1){var b=t();K(0,"button",26);N("click",function(){u(b);var c=P(3);return v(c.claim())});S(1," Claim ");L()}},PEb=function(a){a&1&&(K(0,"div",10,2),F(2,NEb,8,8),U(3,"async"),
Mf(4,OEb,2,0,"button",21),L());if(a&2){var b;a=P(2);B(2);G((b=W(3,1,a.triagerEmail$))?2:4,b)}},QEb=function(a,b){a&1&&(K(0,"span",45),S(1,"Reporter:"),L(),M(2,"b-user-image",22)(3,"b-user-display",51),K(4,"onedev-hovercard",null,5),M(6,"b-issue-person-card",52),L());if(a&2){a=Q(5);var c=P();B(2);I("email",b);B();I("onedevHovercardTrigger",a)("model",c);B(3);I("email",b)}},REb=function(a){a&1&&(F(0,QEb,7,4),U(1,"async"));if(a&2){var b;a=P(3);G((b=W(1,1,a.reporterEmail$))?0:-1,b)}},SEb=function(a){if(a&
1){var b=t();K(0,"b-event-stream-header",53);N("click",function(c){u(b);return v(c.stopPropagation())});L()}},TEb=function(a,b){a&1&&(K(0,"b-expansion-panel",36),Vf(1,37),K(2,"div",42),M(3,"mat-icon",54),K(4,"h4",44),S(5,"Deduplicate"),L()(),Wf(),M(6,"b-recommendation",55),L());a&2&&(I("expanded",!0),B(6),I("recommendation",b))},UEb=function(a,b){a&1&&(K(0,"b-expansion-panel",36),Vf(1,37),K(2,"div",42),M(3,"mat-icon",54),K(4,"h4",44),S(5,"Buganizer AI"),L()(),Wf(),M(6,"b-recommendation",55),L());
a&2&&(I("expanded",!0),B(6),I("recommendation",b))},VEb=function(a){a&1&&(F(0,UEb,7,2,"b-expansion-panel",36),U(1,"async"));if(a&2){var b;a=P(3);G((b=W(1,1,a.triageRecommendation$))?0:-1,b)}},XEb=function(a){a&1&&M(0,"suggested-similar-issues",56);if(a&2){a=P();var b=P(2),c=P();I("issueId",b)("similarIssueIds",a)("similarIssuesEnrichments",Jg(4,WEb))("limit",c.MAX_SIMILAR_ISSUES)}},YEb=function(a,b){a&1&&F(0,XEb,1,5,"suggested-similar-issues",56);a&2&&G(b.length?0:-1)},ZEb=function(a,b){if(a&1){var c=
t();K(0,"secondary-footer",58);N("cancelAction",function(){u(c);var d=P(4);return v(d.cancelAction())})("finalizeAction",function(d){u(c);var e=P(4);return v(e.finalizeSecondaryAction(d))});L()}a&2&&(a=P(4),I("needsInfoAutomaticChanges",b)("selectedTriageAction",a.selectedTriageAction))},$Eb=function(a){a&1&&(F(0,ZEb,1,2,"secondary-footer",57),U(1,"async"));if(a&2){var b;a=P(3);G((b=W(1,1,a.needsInfoAutomaticChanges$))?0:-1,b)}},aFb=function(a,b){if(a&1){var c=t();K(0,"button",61);U(1,"async");N("click",
function(){var d=u(c).$implicit,e=P(4),f=P();return v(f.openSecondaryActionFooter(d.key,e))});S(2);L()}a&2&&(a=b.$implicit,b=P(5),I("disabled",!W(1,2,b.hasAclToEdit$)),B(2),T(" ",a.displayAs," "))},cFb=function(a,b){if(a&1){var c=t();K(0,"triage-action-selector",59);N("onSelect",function(d){u(c);var e=P(3),f=P();return v(f.openSecondaryActionFooter(d.key,e))});L();Pf(1,aFb,3,4,"button",60,bFb)}a&2&&(a=P(4),I("phase",b),B(),Qf(a.PHASE_TO_ACTIONS.get(b)))},dFb=function(a){a&1&&(F(0,cFb,3,1),U(1,"async"));
if(a&2){var b;a=P(3);G((b=W(1,1,a.issuePhase$))?0:-1,b)}},eFb=function(a,b){a&1&&(K(0,"div",27)(1,"div",28),M(2,"issue-title",29),U(3,"async"),K(4,"div",30)(5,"div")(6,"span",31),S(7),U(8,"enumToHuman"),L()(),K(9,"div")(10,"span",32),M(11,"b-issue-priority-display",33),L()(),M(12,"mat-divider",34)(13,"b-issue-hotlists",35),L()(),K(14,"b-expansion-panel",36),Vf(15,37),K(16,"div",38),M(17,"mat-icon",39),K(18,"h4",40),S(19,"Description"),L(),F(20,REb,2,3),U(21,"async"),L(),Wf(),M(22,"b-issue-description",
41),L(),K(23,"b-expansion-panel",36,4),Vf(25,37),K(26,"div",42),M(27,"mat-icon",43),K(28,"h4",44),S(29),U(30,"async"),L(),F(31,SEb,1,0,"b-event-stream-header",45),U(32,"async"),L(),Wf(),M(33,"b-event-stream",46),U(34,"async"),U(35,"async"),U(36,"async"),U(37,"async"),L(),F(38,TEb,7,2,"b-expansion-panel",36),U(39,"async"),F(40,VEb,2,3),K(41,"b-expansion-panel",36),Vf(42,37),K(43,"div",42),M(44,"mat-icon",47),K(45,"h4",48),S(46),U(47,"async"),L(),M(48,"mat-icon",49),U(49,"async"),L(),Wf(),F(50,YEb,
1,1),U(51,"async"),L()(),K(52,"div",50),F(53,$Eb,2,3)(54,dFb,2,3),L());if(a&2){var c,d,e,f,g,k;a=Q(24);var m=P(),r=P();B(2);I("title",b.snapshot[0].title)("issueId",m)("componentId",b.snapshot[0].componentId)("hasAclToEdit",W(3,27,r.hasAclToEdit$));B(5);Ag(W(8,29,b.snapshot[0].type));B(4);I("issuePriority",b.snapshot[0].priority);B();I("vertical",!0);B();I("issueId",m);B();I("expanded",!0);B(6);G((c=W(21,31,r.reporterUser$))?20:-1,c);B(2);I("id",m);B();I("expanded",!0);B(6);T("Comments (",(d=W(30,
33,r.comments$))==null?null:d.length,")");B(2);G(a.expanded&&((e=W(32,35,r.comments$))==null?0:e.length)?31:-1);B(2);I("issueId",m)("events",W(34,37,r.events$))("issueAccessLevel",W(35,39,r.accessLevel$))("showFullHistory",W(36,41,r.preferences.showFullHistory$));Jf("data-will-inline-screenshots",W(37,43,r.enableInlineScreenshots$)?!0:null);B(5);G((f=W(39,45,r.dedupeRecommendation$))?38:-1,f);B(2);G(r.isPlaybookEnabled?40:-1);B();I("expanded",!0);B(5);T(" Similar issues (",(g=W(47,47,r.similarIssueIds$))==
null?null:g.length,") ");B(2);var w;I("matTooltip",Gg("Similar issues found in query: ",(w=W(49,49,r.triageScope$))!=null?w:""));B(2);G((k=W(51,51,r.similarIssueIds$))?50:-1,k);B(3);G(r.displaySecondaryFooter?53:54)}},fFb=function(a,b){if(a&1){var c=t();K(0,"div",6)(1,"div",7)(2,"div",8);M(3,"b-issue-id-picker",9);F(4,IEb,5,1,"div");U(5,"async");F(6,JEb,5,1,"div");U(7,"async");F(8,LEb,5,2);U(9,"async");F(10,PEb,5,3,"div",10);U(11,"async");L();K(12,"div",11)(13,"a",12);M(14,"mat-icon",13);L();K(15,
"button",14);N("click",function(){u(c);var k=P();return v(k.triageService.closeSidebar())});M(16,"mat-icon",15);L()()();F(17,eFb,55,53);U(18,"async");L()}if(a&2){var d,e,f,g;a=P();B(3);I("issueId",b)("showCopyOptions",!1);B();G((d=W(5,9,a.issuePhaseDisplay$))?4:-1,d);B(2);G((e=W(7,11,a.issueSubphaseDisplay$))?6:-1,e);B(2);G((f=W(9,13,a.canonicalIssueId$))?8:-1,f);B(2);G(W(11,15,a.issuePhase$)===a.TriagePhase.NEW?10:-1);B(3);I("href",Gg("/issues/",b),Me);B(4);G((g=W(18,17,a.issue$))?17:-1,g)}},hFb=
function(a,b){if(a&1){var c=t();bg(0);U(1,"async");bg(2);U(3,"async");K(4,"button",1);N("click",function(){var e=u(c),f=dg(0),g=P();return v(gFb(g,e,f))});S(5);L()}if(a&2){a=P();cg(W(1,3,a.hasUserClaimedIssues$));var d=W(3,6,a.buttonText$);B(4);I("ariaLabel",d+" "+b.length+" issues")("disabled",a.isSaving);B();Ag(d)}},iFb=function(a,b){a&1&&(K(0,"div",2)(1,"span",8),S(2,"Phase:\u00a0"),L(),K(3,"span",9),S(4),L()());a&2&&(B(4),Ag(b))},jFb=function(a,b){a&1&&(K(0,"span",10),S(1),L());a&2&&(a=b.$implicit,
B(),Ag(a))},kFb=function(a){a&1&&(K(0,"div")(1,"span",8),S(2,"Subphase:\u00a0"),L(),Pf(3,jFb,2,1,"span",10,Of),L());a&2&&(a=P(),B(3),Qf(a))},lFb=function(a,b){a&1&&F(0,kFb,5,0,"div");a&2&&G(b.length?0:-1)},mFb=function(a){if(a&1){var b=t();K(0,"secondary-footer",12);N("cancelAction",function(){u(b);var c=P(3);return v(c.cancelAction())})("finalizeAction",function(c){u(b);var d=P(3);return v(d.finalizeSecondaryAction(c))});L()}a&2&&(a=P(3),I("selectedTriageAction",a.selectedTriageAction))},nFb=function(a,
b){if(a&1){var c=t();K(0,"button",15);U(1,"async");N("click",function(){var d=u(c).$implicit,e=P(3),f=P();return v(f.openSecondaryActionFooter(d.key,e))});S(2);L()}a&2&&(a=b.$implicit,b=P(4),I("disabled",!W(1,2,b.hasAclToEdit$)),B(2),T(" ",a.displayAs," "))},oFb=function(a){a&1&&M(0,"claim-issues-button")},qFb=function(a){if(a&1){var b=t();K(0,"triage-action-selector",13);N("onSelect",function(d){u(b);var e=P(2),f=P();return v(f.openSecondaryActionFooter(d.key,e))});L();Pf(1,nFb,3,4,"button",14,pFb);
F(3,oFb,1,0,"claim-issues-button")}if(a&2){a=P();var c=P(2);I("phase",a);B();Qf(c.PHASE_TO_ACTIONS.get(a));B(2);G(a===c.TriagePhase.NEW?3:-1)}},rFb=function(a){a&1&&F(0,mFb,1,1,"secondary-footer",11)(1,qFb,4,2);a&2&&(a=P(2),G(a.displaySecondaryFooter?0:1))},sFb=function(a){a&1&&(F(0,rFb,2,1),U(1,"async"));if(a&2){var b;a=P();G((b=W(1,1,a.issuePhase$))?0:-1,b)}},vFb=function(a){if(a&1){var b=t();K(0,"input",3);N("ngModelChange",function(c){u(b);var d=P(2);return v(d.emailChange.emit(c))})("peoplekitAutocompleteSelectionChange",
function(c){u(b);var d=P(2);return v(tFb(d,c))})("focusin",function(c){u(b);var d=P(2);return v(d.onFocusIn(c))})("focusout",function(c){u(b);var d=P(2);return v(uFb(d,c))});L()}a&2&&(a=P(2),I("name",a.name)("required",a.required)("placeholder",a.placeholder)("disabled",a.disabled)("ngModel",a.email)("peoplekitAutocompleteConfig",a.getConfig())("peoplekitSearchSessionOptions",a.sessionOptions)("peoplekitAutocompleteInputSearchDelay",0),Jf("name",a.name)("aria-label",a.ariaLabel)("cdkFocusInitial",
a.cdkFocusInitial||null))},wFb=function(a){if(a&1){var b=t();K(0,"input",4);N("ngModelChange",function(c){u(b);var d=P(2);return v(d.emailChange.emit(c))})("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P(2);return v(tFb(d,c))})("focusin",function(c){u(b);var d=P(2);return v(d.onFocusIn(c))})("focusout",function(c){u(b);var d=P(2);return v(uFb(d,c))});L()}a&2&&(a=P(2),I("name",a.name)("required",a.required)("placeholder",a.placeholder)("disabled",a.disabled)("ngModel",a.email)("peoplekitAutocompleteConfig",
a.getConfig())("peoplekitSearchSessionOptions",a.sessionOptions)("peoplekitAutocompleteInputSearchDelay",0),Jf("name",a.name)("aria-label",a.ariaLabel)("cdkFocusInitial",a.cdkFocusInitial||null))},xFb=function(a){a&1&&F(0,vFb,1,11,"input",1)(1,wFb,1,11,"input",2);a&2&&(a=P(),G(a.asMatInput?0:1))},yFb=function(a){a&1&&(M(0,"gpp-agent-chat",0),U(1,"async"));if(a&2){a=P();var b;I("useExperimentalOrcasAgent",a.useExperimentalOrcasAgent)("isDarkMode",a.isDarkMode())("query",a.query())("contextValues",
(b=W(1,4,a.contextValues$))!=null?b:void 0)}},zFb=function(a){return Object.getOwnPropertyNames(a).filter(function(b){return a[b]&&a[b].hasOwnProperty("__@ngrx/effects_create__")?a[b]["__@ngrx/effects_create__"].hasOwnProperty("dispatch"):!1}).map(function(b){return Object.assign({},{propertyName:b},a[b]["__@ngrx/effects_create__"])})},AFb=function(a){return typeof a==="function"},BFb=function(a,b,c){var d=Object.getPrototypeOf(a),e=d&&d.constructor.name!=="Object"?d.constructor.name:null;d=zFb(a).map(function(f){var g=
f.propertyName;var k=f.dispatch;f=f.useEffectsErrorHandler;var m=typeof a[g]==="function"?a[g]():a[g];f=f?c(m,b):m;return k===!1?f.pipe(rla()):f.pipe(Cla()).pipe(A(function(r){return{effect:a[g],notification:r,propertyName:g,sourceName:e,sourceInstance:a}}))});return se.apply(null,n(d))},DFb=function(a){return CFb(a,"ngrxOnInitEffects")},CFb=function(a,b){return a&&b in a&&typeof a[b]==="function"},EFb=function(a,b,c){c=c===void 0?10:c;return a.pipe(hf(function(d){b&&b.handleError(d);return c<=1?
a:EFb(a,b,c-1)}))},FFb=function(a){return CFb(a,"ngrxOnIdentifyEffects")?a.ngrxOnIdentifyEffects():""},GFb=function(a,b){return function(c){var d=BFb(c,a,b);return CFb(c,"ngrxOnRunEffects")?c.ngrxOnRunEffects(d):d}},HFb=function(a,b){var c=[];a=l(a);for(var d=a.next();!d.done;d=a.next())c.push.apply(c,n(d.value));b=l(b);for(a=b.next();!a.done;a=b.next())c.push.apply(c,n(a.value));return c.map(function(e){return e instanceof bd||AFb(e)?q(e):e})},JFb=function(){var a=q(gu,{optional:!0,skipSelf:!0}),
b=q(IFb,{self:!0});if((b.length!==1||b[0].length!==0)&&a)throw new TypeError("og");return"guarded"},KFb=function(a){a&1&&(K(0,"div",6),M(1,"gpp-chat"),L())},LFb=function(a){a&1&&(K(0,"div",7),M(1,"b-duckie-chat"),L())},MFb=function(a,b){a&1&&M(0,"b-user-image",0);a&2&&I("email",b.$implicit)},NFb=function(a,b){if(a&1){var c=t();K(0,"button",2);N("click",function(){u(c);var d=P(2);return v(d.limit+=d.LIMIT_INCREMENT)});S(1);L()}a&2&&(I("title",Gg("",b," more participant(s). Click to show.")),B(),T("",
b," more"))},OFb=function(a){a&1&&F(0,NFb,2,3,"button",1);if(a&2){var b;a=P();G((b=a.emails.length-a.limit)?0:-1,b)}},QFb=function(a){a&1&&(Sf(0,"a",3),S(1),Tf());a&2&&(a=P(2),Rf("href",a.makeCritiqueUrl(Jg(2,PFb),a.pending),Me),B(),T("(",a.pending.length," pending)"))},RFb=function(a,b){a&1&&(Sf(0,"div",0),Uf(1,"img",1),S(2," \u00a0 "),Sf(3,"a",2),S(4),Tf(),S(5," \u00a0 "),F(6,QFb,2,3,"a",3),Tf());a&2&&(a=P(),B(3),Rf("href",a.makeCritiqueUrl(a.submitted,a.pending),Me),B(),T("",b," CLs"),B(2),G(a.pending.length>
0?6:-1))},SFb=function(a){a&1&&(K(0,"a",2),S(1),L());a&2&&(a=P(2),I("routerLink",a.searchPageUrl),B(),T(" ",a.count," Issues "))},TFb=function(a){a&1&&F(0,SFb,2,2,"a",2);a&2&&(a=P(),G(a.count!=null?0:-1))},UFb=function(a){a&1&&S(0);a&2&&(a=P(),T(" ",a.count," Issues "))},VFb=function(a){a&1&&(K(0,"div",0),M(1,"img",2),L());a&2&&(a=P(2),B(),I("src",a.SPACE_EMPTY_STATE,Me))},WFb=function(a,b){a&1&&(K(0,"mat-panel-title"),S(1),L());a&2&&(a=P().$index,B(),T(" ",b[a]," "))},XFb=function(a){a&1&&M(0,"mat-panel-title",
3)},YFb=function(a,b){a&1&&(K(0,"mat-expansion-panel")(1,"mat-expansion-panel-header"),F(2,WFb,2,1,"mat-panel-title"),U(3,"async"),Mf(4,XFb,1,0,"mat-panel-title",3),K(5,"mat-panel-description"),S(6),L()(),M(7,"b-issues-table",4),L());if(a&2){var c;a=b.$implicit;b=P(3);B(2);G((c=W(3,5,b.titles$))?2:4,c);B(4);T("",a.length," issues");B();I("issueIds",a)("tableColumns",b.tableColumns)("options",b.tableOptions)}},ZFb=function(a){a&1&&(K(0,"div",1),Pf(1,YFb,8,7,"mat-expansion-panel",null,Of),L());a&2&&
(a=P(),B(),Qf(a))},$Fb=function(a,b){a&1&&F(0,VFb,2,1,"div",0)(1,ZFb,3,0,"div",1);a&2&&G(b.length===0?0:1)},aGb=function(a){a&1&&(K(0,"div",2,1)(2,"div",5)(3,"span",6),S(4),L()()());a&2&&(a=P(),B(4),Ag(a.valueIndicatorText))},bGb=function(a,b){a&1&&M(0,"div");if(a&2){a=b.$implicit;b=b.$index;var c=P(3);zg(a===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive");xg("transform",c._calcTickMarkTransform(b))}},cGb=function(a){a&1&&Pf(0,bGb,1,4,"div",8,Nf);a&2&&(a=P(2),Qf(a._tickMarks))},
dGb=function(a){a&1&&(K(0,"div",6,1),F(2,cGb,2,0),L());a&2&&(a=P(),B(2),G(a._cachedWidth?2:-1))},eGb=function(a){a&1&&M(0,"mat-slider-visual-thumb",7);a&2&&(a=P(),I("discrete",a.discrete)("thumbPosition",1)("valueIndicatorText",a.startValueIndicatorText))},fGb=function(a){a&1&&(K(0,"span"),S(1,"All Components"),L())},gGb=function(a){a&1&&(K(0,"span"),S(1,"Selected Components"),L())},hGb=function(a,b){if(a&1){var c=t();K(0,"button",19);N("click",function(d){var e=u(c).$implicit;P().onCheckboxChange(e);
return v(d.stopPropagation())});K(1,"mat-checkbox",27);S(2);L()()}a&2&&(a=b.$implicit,b=P(),B(),I("checked",b.selectComponents$.has(a)),B(),T(" ",a.name," "))},iGb=function(a,b){if(a&1){var c=t();K(0,"button",19);N("click",function(){var d=u(c).$implicit;P().selectedDateRangeFilter$.next(d);return v()});S(1);L()}a&2&&(a=b.$implicit,B(),T(" ",a.displayAs," "))},jGb=function(a,b){if(a&1){var c=t();K(0,"div",6)(1,"a",7);S(2);U(3,"async");L();K(4,"button",8);N("click",function(){var e=u(c),f=P(),g=P();
hu(g.router,zs.viewTriage.makeHref(f,e,iu[g.phase$.value]));return v()});S(5," View issues ");M(6,"mat-icon",9);L()()}if(a&2){a=P();var d=P();B();I("href",d.ROUTES.viewTriage.makeHref(a,b,d.phaseToUrlSlug[d.phase$.value]),Me);B();T(" ",W(3,2,d.heading$)," ")}},kGb=function(a){a&1&&(F(0,jGb,7,4,"div",6),U(1,"async"));if(a&2){var b;a=P();G((b=W(1,1,a.triageId$))?0:-1,b)}},lGb=function(a,b){a&1&&S(0);a&2&&(a=P(),Bg(" ",b.length,"",b.length===a.FETCH_SIZE?"+":""," "))},mGb=function(a){a&1&&S(0," ... ")},
nGb=function(a,b){a&1&&M(0,"i",11);if(a&2){a=b.$implicit;b=b.$index;var c=P(2);a=Gg("height: ",a*100,"%;");qoa(ooa,poa,a,!1);I("title",Hg("Modified ",b," days ago: ",c[b]," Issues"))}},oGb=function(a,b){a&1&&Pf(0,nGb,1,6,"i",10,Nf);a&2&&Qf(b)},pGb=function(a){a&1&&(F(0,oGb,2,0),U(1,"async"));if(a&2){var b;a=P();G((b=W(1,1,a.ratioDaysOld$))?0:-1,b)}},rGb=function(a){return(qGb-a/1E3)/864E5},sGb=function(a,b){a&1&&(K(0,"span",5),S(1),L());a&2&&(I("title",b.description),B(),Ag(b.name))},tGb=function(a){a&
1&&(K(0,"code",6),S(1),U(2,"async"),L());a&2&&(a=P(),B(),Ag(W(2,1,a.id$)))},uGb=function(a,b){a&1&&(K(0,"div",7),M(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),L());if(a&2){a=P();var c=P();B();I("phase",c.TriagePhase.NEW)("teamId",a)("triageId",b);B();I("phase",c.TriagePhase.CONFIRMED)("teamId",a)("triageId",b);B();I("phase",c.TriagePhase.IN_PROGRESS)("teamId",a)("triageId",b);B();I("phase",c.TriagePhase.FIXED)("teamId",
a)("triageId",b);B();I("phase",c.TriagePhase.WONT_FIX)("teamId",a)("triageId",b)}},vGb=function(a){a&1&&(F(0,uGb,6,15,"div",7),U(1,"async"));if(a&2){var b;a=P();G((b=W(1,1,a.triageId$))?0:-1,b)}},wGb=function(a){if(!a.unlinkifiedComment)return pn("Can't getClMetadata from an event with no unlinkifiedComment",a),{};if(KWa(a))if(Eo(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 g;c=(g=b.match(/^Link: &nbsp;&nbsp;&nbsp;&nbsp; (.+)/m))==
null?void 0:g[1];var k;var m=(k=b.match(/^Author: .* \\<(.+)\\>/m))==null?void 0:k[1]}else{var r,w;f=(w=(r=c[7])==null?void 0:r.trim())!=null?w:"";var x,D;c=(D=(x=c[c.length-1])==null?void 0:x.trim())!=null?D:"";var H;m=(H=b.match(/^Author: .* <(.+)>/m))==null?void 0:H[1]}f||pn("failed to parse a title from GitWatcher comment, which is unexpected.",b);c||pn("failed to parse a link from GitWatcher comment, which is unexpected.",b);m?m=m.endsWith("@google.com")?m.split("@")[0]:m:pn("failed to parse an author from GitWatcher comment, which is unexpected.",
b);b={author:m,title:f,link:c,reviewer:void 0,delta:void 0}}else b={};else{k=a.unlinkifiedComment;g=k.trim().split("\n");var J,O;H=(O=(J=g[0])==null?void 0:J.trim())!=null?O:"";var R;g=(R=g[2])==null?void 0:R.trim();x=(m=H.match(/^Change\s+(\d+)/))==null?void 0:m[1];x==null&&pn("failed to parse an id from Critique comment, which is unexpected.",k);H=(c=H.match(/^Change.*by (\S+)@/))==null?void 0:c[1];H==null&&pn("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:gn(x),author:H,title:g,reviewer:c,delta:gn(f),link:"cl/"+x}}return b},xGb=function(a){var b;return(b=wGb(a).id)!=null?b:0},yGb=function(a){var b;return(b=wGb(a).link)!=null?b:""},zGb=function(a){return[].concat(n(a.preDiffs),n(a.postDiffs)).map(function(b){return"Changed "+(b.displayName||b.name)+" "+(b.newValue?"to "+b.newValue:"")}).join("\n")},BGb=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(Do(a)||Eo(a)){if(a=wGb(a).author)return a.includes("@")?a:a+"@google.com"}else if(f==="product-feedback-gathering@prod.google.com")return AGb(a,"reporter")||f;return f},CGb=function(a,b){var c,d,e;return(e=[].concat(n((c=a.preDiffs)!=null?c:[]),n((d=a.postDiffs)!=null?d:[])).find(function(f){return f.name===b}))==null?void 0:e.oldValue},AGb=function(a,b){var c,d,e;return(e=[].concat(n((c=
a.preDiffs)!=null?c:[]),n((d=a.postDiffs)!=null?d:[])).find(function(f){return f.name===b}))==null?void 0:e.newValue},DGb=function(a){if(a==null)return"default";if(yo(a)&&a.commentNumber===1)return"create";if(Do(a)||Eo(a))return"changelist";var b,c=(b=a.preDiffs)!=null?b:[],d;b=(d=a.postDiffs)!=null?d:[];c=new Set([].concat(n(c),n(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=AGb(a,"assignee");a=CGb(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":yo(a)?"comment":c.has("component")?"component":"default"},EGb=function(a){a&1&&(S(0," created "),K(1,"b-issue-reference-widget",1),S(2),L(),M(3,"b-formatted-date-time",2));a&2&&(a=P(),B(),I("href",As(a.event.issueId))("issueId",a.event.issueId),B(),T("b/",a.event.issueId),B(),I("timestamp",a.event.modifiedDate))},
FGb=function(a){a&1&&M(0,"changelist-link-plain",3);a&2&&(a=P(2),I("id",a.getChangelistNumber(a.event)))},GGb=function(a){a&1&&(K(0,"a",4),S(1),L());a&2&&(a=P(2),I("href",a.getLink(a.event),Me),B(),Ag(a.getLink(a.event)))},HGb=function(a,b){a&1&&(S(0," \u2014 "),K(1,"span",5),S(2),L());a&2&&(B(),I("title",b),B(),Ag(b))},IGb=function(a){a&1&&(S(0," submitted "),F(1,FGb,1,1,"changelist-link-plain",3),F(2,GGb,2,2,"a",4),M(3,"b-formatted-date-time",2),F(4,HGb,3,2));if(a&2){var b;a=P();B();G(a.isCritiqueComment(a.event)?
1:-1);B();G(a.isFullGerritComment(a.event)?2:-1);B();I("timestamp",a.event.modifiedDate);B();G((b=a.getClMetadata(a.event).title)?4:-1,b)}},JGb=function(a){a&1&&(S(0," commented on "),K(1,"b-issue-reference-widget",1),S(2),L(),M(3,"b-formatted-date-time",2));a&2&&(a=P(),B(),I("href",As(a.event.issueId))("issueId",a.event.issueId),B(),T("b/",a.event.issueId),B(),I("timestamp",a.event.modifiedDate))},KGb=function(a){a&1&&(S(0," set priority "),M(1,"b-issue-priority-display",6),S(2," on "),K(3,"b-issue-reference-widget",
1),S(4),L(),M(5,"b-formatted-date-time",2));a&2&&(a=P(),B(),I("issuePriority",a.toIssuePriority(a.getNewDiffValue(a.event,"priority"))),B(2),I("href",As(a.event.issueId))("issueId",a.event.issueId),B(),T("b/",a.event.issueId),B(),I("timestamp",a.event.modifiedDate))},LGb=function(a,b){a&1&&(S(0," set status "),K(1,"span"),S(2),L(),S(3," on "));a&2&&(a=P(2),B(),zg(Gg("chippy xs status-",a.STATUS_CODE_FROM_DISPLAY_STRING[b])),B(),T(" ",b," "))},MGb=function(a){a&1&&(F(0,LGb,4,4),K(1,"b-issue-reference-widget",
1),S(2),L(),M(3,"b-formatted-date-time",2));if(a&2){var b;a=P();G((b=a.getNewDiffValue(a.event,"status"))?0:-1,b);B();I("href",As(a.event.issueId))("issueId",a.event.issueId);B();T("b/",a.event.issueId);B();I("timestamp",a.event.modifiedDate)}},NGb=function(a,b){a&1&&(S(0," \u2014 "),K(1,"span",7),S(2),L());a&2&&(B(),I("title",b),B(),Ag(b))},OGb=function(a){a&1&&(S(0," set status update on "),K(1,"b-issue-reference-widget",1),S(2),L(),M(3,"b-formatted-date-time",2),F(4,NGb,3,2));if(a&2){var b;a=P();
B();I("href",As(a.event.issueId))("issueId",a.event.issueId);B();T("b/",a.event.issueId);B();I("timestamp",a.event.modifiedDate);B();G((b=a.event.statusUpdate==null?null:a.event.statusUpdate.updateText)?4:-1,b)}},PGb=function(a){a&1&&(S(0," assigned "),K(1,"b-issue-reference-widget",1),S(2),L(),S(3," to "),M(4,"b-user-email",0)(5,"b-formatted-date-time",2));if(a&2){a=P();B();I("href",As(a.event.issueId))("issueId",a.event.issueId);B();T("b/",a.event.issueId);B(2);var b;I("ldapOnly",!0)("email",(b=
a.getNewDiffValue(a.event,"assignee"))!=null?b:"");B();I("timestamp",a.event.modifiedDate)}},QGb=function(a){a&1&&(S(0," self-assigned "),K(1,"b-issue-reference-widget",1),S(2),L(),M(3,"b-formatted-date-time",2));a&2&&(a=P(),B(),I("href",As(a.event.issueId))("issueId",a.event.issueId),B(),T("b/",a.event.issueId),B(),I("timestamp",a.event.modifiedDate))},RGb=function(a){a&1&&(S(0," unassigned self from "),K(1,"b-issue-reference-widget",1),S(2),L(),M(3,"b-formatted-date-time",2));a&2&&(a=P(),B(),I("href",
As(a.event.issueId))("issueId",a.event.issueId),B(),T("b/",a.event.issueId),B(),I("timestamp",a.event.modifiedDate))},SGb=function(a){a&1&&(S(0," unassigned "),M(1,"b-user-email",0),S(2," from "),K(3,"b-issue-reference-widget",1),S(4),L(),M(5,"b-formatted-date-time",2));if(a&2){a=P();B();var b;I("ldapOnly",!0)("email",(b=a.getPreviousDiffValue(a.event,"assignee"))!=null?b:"");B(2);I("href",As(a.event.issueId))("issueId",a.event.issueId);B();T("b/",a.event.issueId);B();I("timestamp",a.event.modifiedDate)}},
TGb=function(a){a&1&&(S(0," moved "),K(1,"b-issue-reference-widget",1),S(2),L(),S(3," to another component "),M(4,"b-formatted-date-time",2));a&2&&(a=P(),B(),I("href",As(a.event.issueId))("issueId",a.event.issueId),B(),T("b/",a.event.issueId),B(2),I("timestamp",a.event.modifiedDate))},UGb=function(a){a&1&&(K(0,"span",8),S(1," updated "),L(),K(2,"b-issue-reference-widget",1),S(3),L(),M(4,"b-formatted-date-time",2));a&2&&(a=P(),I("title",a.shorthandAllDiffs(a.event)),B(2),I("href",As(a.event.issueId))("issueId",
a.event.issueId),B(),T("b/",a.event.issueId),B(),I("timestamp",a.event.modifiedDate))},VGb=function(a,b){a&1&&(S(0," \u2014 "),K(1,"span",9),S(2),L());a&2&&(B(),I("title",b),B(),Ag(b))},WGb=function(a){a&1&&F(0,VGb,3,2);if(a&2){var b;a=P();G((b=a.getComment())?0:-1,b)}},XGb=function(a,b){a&1&&(S(0," \u2014 "),K(1,"span",10),S(2),L());a&2&&(B(),I("title",b),B(),Ag(b))},YGb=function(a){a&1&&F(0,XGb,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;G(a?0:-1,a)}},ZGb=function(a,b){a&1&&M(0,"recent-event-row",4);a&2&&I("event",b.$implicit)},$Gb=function(a,b){a&1&&(K(0,"p",3),S(1),L(),Pf(2,ZGb,1,1,"recent-event-row",4,Of));if(a&2){a=P();var c=P(3);B();T("Last 24 hours ",c.printStats(a["<24h"]));B();Qf(b)}},aHb=function(a,b){a&1&&M(0,"recent-event-row",4);a&2&&I("event",b.$implicit)},bHb=function(a,b){a&1&&(K(0,"p",5),S(1),L(),Pf(2,aHb,1,1,"recent-event-row",4,Of));if(a&2){a=P();var c=P(3);B();T("1-7 days ago ",c.printStats(a["24h-7d"]));
B();Qf(b)}},cHb=function(a,b){a&1&&M(0,"recent-event-row",4);a&2&&I("event",b.$implicit)},dHb=function(a,b){a&1&&(K(0,"p",5),S(1),L(),Pf(2,cHb,1,1,"recent-event-row",4,Of));if(a&2){a=P();var c=P(3);B();T("1-4 weeks ago ",c.printStats(a["7d-30d"]));B();Qf(b)}},eHb=function(a,b){a&1&&M(0,"recent-event-row",4);a&2&&I("event",b.$implicit)},fHb=function(a,b){a&1&&(K(0,"p",5),S(1),L(),Pf(2,eHb,1,1,"recent-event-row",4,Of));if(a&2){a=P();var c=P(3);B();T(">30 days ago ",c.printStats(a[">30d"]));B();Qf(b)}},
gHb=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P(4);c.numDisplayed$.value<100?c.numDisplayed$.next(100):c.numDisplayed$.next(c.defaultNumEvents);return v()});S(1);L()}a&2&&(a=P(4),B(),T(" ",a.numDisplayed$.value>a.defaultNumEvents?"Show less":"Show more"," "))},hHb=function(a){a&1&&(F(0,$Gb,4,1),F(1,bHb,4,1),F(2,dHb,4,1),F(3,fHb,4,1),F(4,gHb,2,1,"button",2),U(5,"async"));if(a&2){var b,c,d,e,f;a=P();var g=P(2);G((b=a["<24h"])?0:-1,b);B();G((c=a["24h-7d"])?1:-1,c);
B();G((d=a["7d-30d"])?2:-1,d);B();G((e=a[">30d"])?3:-1,e);B();var k;G(((k=(f=W(5,5,g.events$))==null?null:f.length)!=null?k:0)>g.defaultNumEvents?4:-1)}},iHb=function(a){a&1&&(F(0,hHb,6,7),U(1,"async"));if(a&2){var b;a=P(2);G((b=W(1,1,a.bucketedEventStats$))?0:-1,b)}},jHb=function(a){a&1&&(K(0,"div",0),S(1," Recent activity "),M(2,"input",1),L(),F(3,iHb,2,3),U(4,"async"));if(a&2){var b;a=P();B(2);I("formControl",a.quickFilter);B();G((b=W(4,2,a.bucketedEvents$))?3:-1,b)}},kHb=function(a){return function(b){var c;
if(a){var d="";if(Do(b)||Eo(b)){var e=wGb(b);d="submitted "+e.link+" "+e.title}e="b/"+b.issueId;var f=BGb(b),g=DGb(b),k=zGb(b);b=b==null||Do(b)||Eo(b)?"":((c=b.unlinkifiedComment)!=null?c:"").slice(0,999);c=[e,f,g,d,k,b].join(" ").toLowerCase().includes(a.toLowerCase())}else c=!0;return c}},lHb=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(ln);return a.length===
0?"":"\u2014 "+a.join(", ")},mHb=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},nHb=function(a,b){var c;a=(c=b[a])!=null?c:[];var d={n:a.length,pptCounts:{}};a.forEach(function(e){var f=DGb(e),g=BGb(e);if(f!=="changelist"?e.isCommentEvent:e.unlinkifiedComment){var k;d.comment=((k=d.comment)!=null?k:0)+1;var m;d.pptCounts[g]=((m=d.pptCounts[g])!=null?m:0)+
1}if(f==="changelist"){var r;d.clCount=((r=d.clCount)!=null?r:0)+1;var w;d.pptCounts[g]=((w=d.pptCounts[g])!=null?w:0)+1}else if(f==="create"){var x;d.created=((x=d.created)!=null?x:0)+1;var D;d.pptCounts[g]=((D=d.pptCounts[g])!=null?D:0)+1}else if(f==="status"&&AGb(e,"status")==="Fixed"){var H;d.fixed=((H=d.fixed)!=null?H:0)+1}});return d},oHb=function(a){a&1&&(K(0,"p",11),S(1),L());a&2&&(a=P().$implicit,B(),Ag(a.description))},pHb=function(a,b){a&1&&(K(0,"mat-list-option",8)(1,"div",9)(2,"label",
10),S(3),L()(),F(4,oHb,2,1,"p",11),L());a&2&&(a=b.$implicit,b=P(2),xg("height","auto"),I("selected",b.selectedIds.has(a.searchId))("value",a.searchId),B(3),Ag(a.name),B(),G(a.description?4:-1))},sHb=function(a,b){if(a&1){var c=t();K(0,"mat-selection-list",6);N("selectionChange",function(d){u(c);var e=P();return v(qHb(e,d))});Pf(1,pHb,5,6,"mat-list-option",7,rHb);L()}a&2&&(B(),Qf(b))},tHb=function(a,b){a&1&&M(0,"avatar-bunch",4);a&2&&I("emails",b)},uHb=function(a,b){a&1&&(K(0,"a",6),S(1," View in TaskFlow "),
M(2,"mat-icon",7),L());a&2&&I("href",b,Me)},vHb=function(a,b){a&1&&M(0,"progress-pie",1);a&2&&I("closed",b.closed)("total",b.total)},xHb=function(a,b){a&1&&(M(0,"cl-counts",3),U(1,"async"));if(a&2){a=P();var c;I("submitted",b.changelists)("pending",(c=W(1,2,a.pendingCls$))!=null?c:Jg(4,wHb))}},yHb=function(a){a&1&&M(0,"gerrit-changes-count",4);a&2&&(a=P(),I("changes",a))},zHb=function(a,b){a&1&&F(0,yHb,1,1,"gerrit-changes-count",4);a&2&&G(b&&b.length>0?0:-1)},AHb=function(a){a&1&&M(0,"avatar-bunch",
5);a&2&&(a=P(),I("emails",a))},BHb=function(a,b){a&1&&F(0,AHb,1,1,"avatar-bunch",5);a&2&&G(b.length>0?0:-1)},CHb=function(a){return a},DHb=function(a){a==="UNKNOWN_SOURCE"&&console.error("an UNKNOWN TaskSources snuck in");return a},EHb=function(a,b){return b.buganizerSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},FHb=function(a,b){return a?b.buganizerSignals.filter(function(c){return a.get(c)!==!1}):b.buganizerSignals},GHb=function(a,b){return b.changelistSignals.reduce(function(c,
d){return c.set(d,a.includes(d))},new Map)},HHb=function(a,b){return a?b.changelistSignals.filter(function(c){return a.get(c)!==!1}):b.changelistSignals},IHb=function(a,b){return b.driveSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},JHb=function(a,b){return a?b.driveSignals.filter(function(c){return a.get(c)!==!1}):b.driveSignals},KHb=function(a,b){return b.gerritSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},LHb=function(a,b){return a?b.gerritSignals.filter(function(c){return a.get(c)!==
!1}):b.gerritSignals},MHb=function(a,b){return a?b.googleTasksSignals.filter(function(c){return a.get(c)!==!1}):b.googleTasksSignals},NHb=function(a,b){return a?b.irmSignals.filter(function(c){return a.get(c)!==!1}):b.irmSignals},OHb=function(a,b){return b.googleTasksSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},PHb=function(a,b){return b.irmSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},QHb=function(a){a&1&&(Sf(0,"div",2),S(1),Tf());if(a&2){a=P();yg("muted",
!a.isNumeric(a.countDisplay)||a.isDisabled());B();var b;Ag((b=a.countDisplay)!=null?b:"\u00a0")}},RHb=function(a){a&1&&(K(0,"div",0),M(1,"qif-stat",1),U(2,"async"),M(3,"qif-stat",1),U(4,"async"),L());a&2&&(a=P(),B(),I("key",a.QuickFilterKey.OPEN)("prefKey",a.id)("metadata",W(2,6,a.metadata$)),B(2),I("key",a.QuickFilterKey.BROAD_IN_PROGRESS)("prefKey",a.id)("metadata",W(4,8,a.metadata$)))},SHb=function(a,b){if(a&&a.length)return a.map(b)},THb=function(a){var b=a.getFilename();var c=Ym(a,2,Xi(en));
return{filename:b,lineNumber:c,changeNumber:qn(a.getChangeNumber())}},VHb=function(a){var b=Fi(a,1);a=Wi(a,UHb,2,Xi(en));return{packageName:b,fileMentionSet:SHb(a,THb)}},XHb=function(a){var b=Wm(a,1,void 0,fb),c=$i(a,2,void 0,fb);a=Wi(a,WHb,3,Xi(en),fb);return{totalMentions:b,truncated:c,packageMentionSet:SHb(a,VHb)}},ZHb=function(a){return{issueId:Number(a.getIssueId()),responseId:a.getResponseId(),response:a.getResponse(),issueCategory:YHb[a.getIssueCategory()]}},$Hb=function(a){return{issueId:Number(a.getIssueId()),
issueCategory:YHb[a.getIssueCategory()]}},bIb=function(a){if(!a)return!1;a=a.events;return[].concat(n(a.slice(0,1).filter(function(b){var c;return(c=b.unlinkifiedComment)==null?void 0:c.trim()})),n(a.slice(1).filter(aIb).filter(function(b){var c;return(c=b.unlinkifiedComment)==null?void 0:c.trim()}))).length>=3},aIb=function(a){return!(!QVa(a.userPerformingAction)||!a.isMajorEvent)},dIb=function(a){var b=cIb(a.open);a=cIb(a.total);return b===a?"("+b+")":"("+b+"/"+a+")"},cIb=function(a){var b=a.count;
a=a.exact;return b===0||a?""+b:b+"+"},eIb=function(a){return"("+cIb(a)+")"},ju=function(a){return{count:a>99?99:a,exact:a>99?!1:!0}},fIb=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:sb(b)}},gIb=function(a){a&1&&Xf(0)},hIb=function(a){a&1&&E(0,gIb,1,0,"ng-container",6);a&2&&(P(),a=Q(14),I("ngTemplateOutlet",
a))},iIb=function(a,b){a&1&&M(0,"b-issues-table",7);a&2&&(a=P(2),I("issueIds",b)("tableColumns",a.tableColumns)("menuItemFactory",a.getMenuItems)("filters",a.filters)("initialSort",a.initialSort)("options",a.tableOptions))},jIb=function(a){a&1&&(F(0,iIb,1,6,"b-issues-table",7),U(1,"async"));if(a&2){var b;a=P();G((b=W(1,1,a.blockerIds$))?0:-1,b)}},kIb=function(a){a&1&&Xf(0)},lIb=function(a){a&1&&(K(0,"div")(1,"span",5),S(2,"This issue is not blocked "),K(3,"span",8),S(4,"\ud83c\udf89"),L()(),E(5,kIb,
1,0,"ng-container",6),L());a&2&&(P(),a=Q(14),B(5),I("ngTemplateOutlet",a))},mIb=function(a,b){if(a&1){var c=t();K(0,"p",5);S(1);K(2,"button",9);N("click",function(){u(c);var d=P();return v(d.shouldResetFilters.next())});S(3,"Show all");L()()}a&2&&(B(),Bg(" Filtering ",b," issue",b===1?"":"s",". "))},oIb=function(a){if(a&1){var b=t();K(0,"b-button",10);U(1,"async");N("onAction",function(){u(b);var c=P();return v(nIb(c))});S(2," Add blocker ");L()}a&2&&(a=P(),I("disabled",!W(1,1,a.canEdit$)))},pIb=
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))},qIb=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:sb(a)}},sIb=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=rIb(b),f=b.nextElementSibling&&rIb(b.nextElementSibling),g=b.previousElementSibling&&rIb(b.previousElementSibling);if(a==="top"){var k;if(((k=b.previousElementSibling)==null?0:k.classList.contains("dragging"))&&g===e)return d="none",c();d="before";return c()}if(a==="bottom"){if(f!=null&&e<f){var m;if((m=b.nextElementSibling)==null?0:m.classList.contains("dragging"))return d="none",c();b=b.nextElementSibling;d="before";return c()}var r;if(((r=b.nextElementSibling)==null?0:r.classList.contains("dragging"))&&
e===f)return d="none",c();d="after";return c()}d="current";return c()},rIb=function(a){return Number(a.dataset.level)},tIb=function(a){var b;return ku((b=a.dataset.ancestorchain)!=null?b:"")},uIb=function(a){a&1&&M(0,"th",25)},vIb=function(a){if(a&1){var b=t();K(0,"td",26,0);N("click",function(c){var d=u(b).$implicit,e=Q(1),f=P();e.focus();Xs(f.focusManager,d);return v(c.stopPropagation())});L()}},wIb=function(a){a&1&&M(0,"th",25)},xIb=function(a){if(a&1){var b=t();K(0,"td",27,1);N("click",function(c){var d=
u(b).$implicit,e=Q(1),f=P();e.focus();Xs(f.focusManager,d);return v(c.stopPropagation())})("dragstart",function(c){u(b);var d=P();return v(d.handleDragStart(c))});M(2,"mat-icon",28);L()}},yIb=function(a){a&1&&(K(0,"th",25),S(1," Id "),L())},zIb=function(a,b){a&1&&(K(0,"td",29),M(1,"b-issue-id-cell",30),L());a&2&&(a=b.$implicit,B(),I("id",a.id))},AIb=function(a){a&1&&(K(0,"th",25),S(1," Id "),L())},BIb=function(a){a&1&&(K(0,"td",29),S(1,"--"),L())},CIb=function(a){a&1&&(K(0,"th",25),S(1," Title "),
L())},DIb=function(a,b){if(a&1){var c=t();K(0,"td",29)(1,"b-expandable-issue-title-cell",31);U(2,"async");U(3,"async");N("expansionChange",function(){var d=u(c).$implicit,e=P();return v(e.toggleExpansion(d))})("onSaveOutput",function(){var d=u(c).$implicit;return v(d.isEditMode=!1)})("onCancelOutput",function(){var d=u(c).$implicit;return v(d.isEditMode=!1)});L()()}a&2&&(a=b.$implicit,B(),I("isEditMode",a.isEditMode)("issue",W(2,5,a.issue$))("expandable",W(3,7,a.hasChildren$))("expanded",!!a.expandedCount)("level",
a.level))},EIb=function(a){a&1&&(K(0,"th",25),S(1," Type "),L())},FIb=function(a,b){a&1&&(K(0,"td",29),M(1,"b-issue-type-cell",32),U(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",W(2,1,a.issue$)))},GIb=function(){},HIb=function(a){a&1&&S(0," Assignee ")},IIb=function(a){a&1&&(K(0,"th",25),F(1,GIb,0,0)(2,HIb,1,0),L());a&2&&(a=P(),B(),G((a.options.modes==null?null:a.options.modes.assignee)==="avatar-if-open"?1:2))},JIb=function(a,b){a&1&&M(0,"b-user-image",33);a&2&&I("email",b)},KIb=function(a){a&
1&&F(0,JIb,1,1,"b-user-image",33);if(a&2){var b;a=P();var c=P(3);G((b=c.getAssigneeString(a))?0:-1,b)}},LIb=function(a,b){a&1&&F(0,KIb,1,1);a&2&&(a=P(3),G(a.isOpen(b)?0:-1))},MIb=function(a){a&1&&(F(0,LIb,1,1),U(1,"async"));if(a&2){var b;a=P().$implicit;G((b=W(1,1,a.issue$))?0:-1,b)}},NIb=function(a){a&1&&(M(0,"b-issue-assignee-cell",32),U(1,"async"));a&2&&(a=P().$implicit,I("issue",W(1,1,a.issue$)))},OIb=function(a){a&1&&(K(0,"td",29),F(1,MIb,2,3)(2,NIb,2,3,"b-issue-assignee-cell",32),L());a&2&&
(a=P(),B(),G((a.options.modes==null?null:a.options.modes.assignee)==="avatar-if-open"?1:2))},PIb=function(a){a&1&&(K(0,"th",25),S(1," Status "),L())},QIb=function(a,b){a&1&&(K(0,"td",29),M(1,"b-issue-status-cell",34),U(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",W(2,2,a.issue$))("showPendingFix",!0))},RIb=function(a){a&1&&(K(0,"th",25),S(1," Team "),L())},SIb=function(a,b){a&1&&(K(0,"td",29),M(1,"b-issue-team-cell",32),U(2,"async"),L());a&2&&(a=b.$implicit,B(),I("issue",W(2,1,a.issue$)))},TIb=
function(a){a&1&&M(0,"th",25)},VIb=function(a,b){if(a&1){var c=t();K(0,"td",29)(1,"b-actions-menu",35);U(2,"async");N("click",function(e){u(c);return v(e.stopPropagation())});L()()}if(a&2){a=b.$implicit;b=P();B();var d;I("menuItems",(d=W(2,1,b.getMenuItems(a)))!=null?d:Jg(3,UIb))}},WIb=function(a){a&1&&M(0,"th",25)},YIb=function(a){if(a&1){var b=t();K(0,"b-actions-menu",35);N("click",function(d){u(b);return v(d.stopPropagation())});L()}if(a&2){a=P().$implicit;var c=P();I("menuItems",XIb(c,a))}},ZIb=
function(a){a&1&&M(0,"b-spinner")},$Ib=function(a){a&1&&M(0,"b-spinner")},aJb=function(a,b){a&1&&(K(0,"td",36),F(1,YIb,1,1,"b-actions-menu",37)(2,ZIb,1,0,"b-spinner"),E(3,$Ib,1,0,"ng-template",null,2,Og),L());a&2&&(a=b.$implicit,B(),G(a.saving?2:1))},cJb=function(a,b){if(a&1){var c=t();K(0,"td",29)(1,"b-async-data-placeholder",38);U(2,"async");K(3,"b-button",39);N("onAction",function(){var d=u(c).$implicit,e=P();return v(bJb(e,d))});K(4,"span",40);S(5);L()()()()}a&2&&(a=b.$implicit,b=P(),xg("padding-left",
a.level*24+b.TITLE_FIXED_OFFSET_PX,"px"),Jf("colspan",b.tableColumns.length),B(),I("isReady",!!W(2,5,a.parentIssue$)),B(4),T("Display ",a.truncatedSiblingCount," more"))},dJb=function(a){a&1&&(K(0,"th",25),S(1," Title "),L())},fJb=function(a,b){if(a&1){var c=t();K(0,"td",29)(1,"div",41)(2,"b-text-input-cell",42);Eg("valueChange",function(d){var e=u(c).$implicit;Dg(e.title,d)||(e.title=d);return v(d)});N("commit",function(){var d=u(c).$implicit,e=P();return v(e.saveDraft(d))});L();K(3,"b-button",43);
N("onAction",function(){var d=u(c).$implicit,e=P();return v(e.saveDraft(d))});S(4," Create ");L();K(5,"b-button",44);N("onAction",function(){var d=u(c).$implicit,e=P();return v(eJb(e,d))});S(6," Cancel ");L()()()}a&2&&(a=b.$implicit,b=P(),xg("padding-left",(a.level+1)*24+b.EDITABLE_TITLE_OFFSET_PX,"px"),B(2),Cg("value",a.title),I("readonly",a.saving),B(),I("disabled",!a.title||a.saving),B(2),I("disabled",a.saving))},gJb=function(a){a&1&&M(0,"tr",18)},hJb=function(a){a&1&&E(0,gJb,1,0,"tr",45);a&2&&
(a=P(),I("matHeaderRowDef",a.tableColumns))},jJb=function(a,b){if(a&1){var c=t();K(0,"tr",46);U(1,"async");U(2,"async");N("click",function(d){var e=u(c).$implicit,f=P();return v(f.navigateToIssue(d,e))})("mouseup",function(d){var e=u(c).$implicit,f=P();return v(f.navigateToIssue(d,e))})("focusin",function(){var d=u(c).$implicit,e=P();return v(Xs(e.focusManager,d))})("keydown",function(d){var e=u(c).$implicit,f=P();return v(f.onRowKeydown(e,d))});L()}a&2&&(a=b.$implicit,b=P(),yg("selected",W(1,8,iJb(b.selectionModel,
a.ancestorChain)))("closed",b.isClosed(W(2,10,a.issue$))),I("row",a),Jf("data-level",a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},kJb=function(a,b){if(a&1){var c=t();K(0,"tr",47);N("focusin",function(){var d=u(c).$implicit,e=P();return v(Xs(e.focusManager,d))})("keydown",function(d){var e=u(c).$implicit,f=P();return v(f.onRowKeydown(e,d))});L()}a&2&&(a=b.$implicit,I("row",a),Jf("data-level",a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},
lJb=function(a,b){if(a&1){var c=t();K(0,"tr",48);N("keydown",function(d){var e=u(c).$implicit,f=P();return v(f.onRowKeydown(e,d))})("keydown.escape",function(){var d=u(c).$implicit,e=P();return v(eJb(e,d))})("keydown.backspace",function(d){var e=u(c).$implicit,f=P();return v(e.title||d.repeat||eJb(f,e))})("focusin",function(){var d=u(c).$implicit,e=P();return v(Xs(e.focusManager,d))});L()}a&2&&(a=b.$implicit,I("row",a),Jf("data-type",a.type))},mJb=function(a,b){a&1&&M(0,"b-issues-table",0);a&2&&(a=
P(),I("issueIds",b)("tableColumns",a.tableColumns)("options",a.tableOptions)("filters",a.filters)("issueUrlFactory",a.ROUTES.issueDependencies.makeHref)("menuItemFactory",a.getMenuItems))},nJb=function(a,b){a&1&&(K(0,"span",8),S(1),L());a&2&&(I("title",Gg("",b," applied filter(s)")),B(),Ag(b))},oJb=function(a){a&1&&(F(0,nJb,2,3,"span",8),U(1,"async"));if(a&2){var b;a=P();G((b=W(1,1,a.internalSelectedOptions.size$))?0:-1,b)}},pJb=function(a){a&1&&(K(0,"h1",6),S(1),L());a&2&&(a=P(),B(),Ag(a.overlayTitle))},
qJb=function(a){a&1&&(K(0,"h1"),S(1),L());a&2&&(a=P().$implicit,B(),Ag(a.title))},rJb=function(a){a&1&&(K(0,"p"),S(1),L());a&2&&(a=P().$implicit,B(),Ag(a.description))},sJb=function(a,b){if(a&1){var c=t();K(0,"div",7)(1,"div",9)(2,"mat-checkbox",10);U(3,"async");N("change",function(d){var e=u(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()});L();K(4,"div");F(5,qJb,2,1,"h1");F(6,
rJb,2,1,"p");L()()()}a&2&&(a=b.$implicit,b=P(),B(2),I("checked",W(3,3,Cs(b.internalSelectedOptions,a.key))),B(3),G(a.title?5:-1),B(),G(a.description?6:-1))},tJb=function(a){if(a&1){var b=t();M(0,"mat-divider");K(1,"div",11)(2,"button",12);N("click",function(){u(b);var c=P(),d=Q(1);return v(c.cancel(d))});S(3);L();K(4,"button",13);N("click",function(){u(b);var c=P(),d=Q(1);return v(c.confirm(d))});S(5);L()()}a&2&&(a=P(),B(3),Ag(a.cancelButtonLabel),B(2),Ag(a.confirmButtonLabel))},uJb=function(a){a&
1&&M(0,"b-spinner")},vJb=function(a){a&1&&Xf(0)},wJb=function(a){a&1&&E(0,vJb,1,0,"ng-container",23);a&2&&(P(2),a=Q(12),I("ngTemplateOutlet",a))},xJb=function(a){a&1&&(M(0,"b-parents-table",15),U(1,"async"),U(2,"async"));if(a&2){a=P();var b=P();I("issueId",a)("parentIds",W(1,3,b.parentIds$))("filters",W(2,5,b.issueFilters.value$))}},yJb=function(a){a&1&&Xf(0)},zJb=function(a){a&1&&(K(0,"div")(1,"span",24),S(2,"This issue has no parents"),L(),E(3,yJb,1,0,"ng-container",23),L());a&2&&(P(2),a=Q(12),
B(3),I("ngTemplateOutlet",a))},AJb=function(a){a&1&&Xf(0)},CJb=function(a){a&1&&(E(0,AJb,1,0,"ng-container",25),U(1,"async"));if(a&2){a=P(2);var b=Q(10);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(4,BJb,W(1,2,a.parentsTable==null?null:a.parentsTable.hiddenRowCount$)))}},DJb=function(a){a&1&&Xf(0)},EJb=function(a){a&1&&E(0,DJb,1,0,"ng-container",23);a&2&&(P(2),a=Q(14),I("ngTemplateOutlet",a))},FJb=function(a){a&1&&(K(0,"div",20)(1,"section",26)(2,"div",27),S(3," Progress: "),L(),K(4,"div",
27),S(5),U(6,"async"),U(7,"number"),U(8,"async"),U(9,"number"),L(),K(10,"div",28),U(11,"async"),K(12,"div",29),M(13,"div",30),U(14,"async"),K(15,"onedev-hovercard",null,3)(17,"div",31)(18,"div",32),S(19),U(20,"async"),L()()()()(),M(21,"mat-icon",33),K(22,"onedev-hovercard",null,4)(24,"div",31)(25,"div",34)(26,"p"),S(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. "),
L()()()()()());if(a&2){a=Q(16);var b=Q(23),c=P(2);B(5);Bg(" ",Ng(7,11,W(6,9,c.totalDaysComplete$),"1.0-2")," of ",Ng(9,16,W(8,14,c.totalDaysCount$),"1.0-2")," days complete ");B(5);Jf("aria-label",Gg("",W(11,19,c.totalDaysDisplayPercent$)," Percentage of effort completed"));B(2);I("onedevHovercardTrigger",a);B();xg("width",W(14,21,c.totalDaysDisplayPercent$),"%");B(6);T(" ",W(20,23,c.progressHovercardContent$)," ");B(2);I("onedevHovercardTrigger",b)}},GJb=function(a){a&1&&M(0,"rollups-project",21);
a&2&&(a=P(),I("id",a))},HJb=function(a){a&1&&Xf(0)},IJb=function(a){a&1&&(E(0,HJb,1,0,"ng-container",25),U(1,"async"));if(a&2){a=P(2);var b=Q(10);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(4,BJb,W(1,2,a.relationsTable==null?null:a.relationsTable.hiddenRowCount$)))}},JJb=function(a){a&1&&Xf(0)},KJb=function(a){a&1&&(K(0,"span",24),S(1,"This issue has no children"),L(),E(2,JJb,1,0,"ng-container",23));a&2&&(P(3),a=Q(14),B(2),I("ngTemplateOutlet",a))},LJb=function(a){a&1&&(K(0,"p",35)(1,"a",
36),S(2," View as search results "),L()());if(a&2){a=P(2);var b=P();B();I("href",b.makeIlpUrlForParentIssue(a),Me)}},MJb=function(a){a&1&&(F(0,KJb,3,1),U(1,"async"),U(2,"async"),Mf(3,LJb,3,1,"p",35));if(a&2){var b;a=P(2);G(W(1,1,a.unarchivedChildIssueCount$)===0&&(((b=W(2,3,a.relationsTable==null?null:a.relationsTable.rows$))==null?null:b.length)||0)===0?0:3)}},NJb=function(a,b){if(a&1){var c=t();K(0,"div",9)(1,"section",10)(2,"div",11)(3,"h4",12)(4,"div",13);M(5,"mat-icon",14);L();S(6);U(7,"async");
L();F(8,wJb,1,1,"ng-container");U(9,"async");L();F(10,xJb,3,7,"b-parents-table",15);U(11,"async");Mf(12,zJb,4,1,"div");F(13,CJb,2,6,"ng-container");U(14,"async");L();K(15,"section")(16,"b-blockers-table",16);U(17,"async");N("shouldResetFilters",function(){u(c);var f=P();return v(f.shouldResetFilters())});L()();K(18,"section")(19,"div",17)(20,"h4",12)(21,"div",18);M(22,"mat-icon",19);L();S(23);U(24,"async");L();F(25,EJb,1,1,"ng-container");U(26,"async");U(27,"async");L();F(28,FJb,28,25,"div",20);U(29,
"async");U(30,"async");F(31,GJb,1,1,"rollups-project",21);M(32,"b-issue-relations-table",22);U(33,"async");U(34,"async");U(35,"async");F(36,IJb,2,6,"ng-container");U(37,"async");F(38,MJb,4,5);U(39,"async");L()()}if(a&2){var d,e;a=P();B(6);T(" Parents ",W(7,17,a.counts.countParentsDisplay$)," ");B(2);G(W(9,19,a.parentsCount$)?8:-1);B(2);G(W(11,21,a.parentsCount$)?10:12);B(3);G(W(14,23,a.issueFilters.value$)?13:-1);B(3);I("filters",W(17,25,a.issueFilters.value$));B(7);T(" Child issues ",W(24,27,a.counts.countChildrenDisplay$),
" ");B(2);G(W(26,29,a.unarchivedChildIssueCount$)||(((d=W(27,31,a.relationsTable==null?null:a.relationsTable.rows$))==null?null:d.length)||0)>0?25:-1);B(3);G(W(29,33,a.unarchivedChildIssueCount$)&&W(30,35,a.totalDaysCount$)?28:-1);B(3);G(a.isInternalSession?31:-1);B();yg("hidden",!((e=W(33,37,a.relationsTable==null?null:a.relationsTable.rows$))==null?0:e.length)&&!W(34,39,a.relationsTable==null?null:a.relationsTable.hiddenRowCount$));I("saveExpansionAtKey",Gg("project-expansion-",b))("rootIssueId",
b)("filters",W(35,41,a.issueFilters.value$));B(4);G(W(37,43,a.issueFilters.value$)?36:-1);B(2);G(W(39,45,a.unarchivedChildIssueCount$)!==null?38:-1)}},OJb=function(a){if(a&1){var b=t();K(0,"p",24);S(1);K(2,"button",37);N("click",function(){u(b);var c=P(2);return v(c.issueFilters.reset([]))});S(3,"Show all");L()()}a&2&&(a=P().filteredCount,B(),Bg(" Filtering ",a," issue",a===1?"":"s",". "))},PJb=function(a,b){a&1&&F(0,OJb,4,2,"p",24);a&2&&G(b.filteredCount?0:-1)},RJb=function(a){if(a&1){var b=t();
K(0,"b-button",38);U(1,"async");N("onAction",function(){u(b);var c=P();return v(QJb(c))});S(2," Add parent ");L()}a&2&&(a=P(),I("disabled",!W(1,1,a.canEdit$)))},SJb=function(a){if(a&1){var b=t();K(0,"b-button",41);U(1,"async");N("onAction",function(){u(b);var c=P(2);return v(c.createChild())});S(2," Create new child ");L()}a&2&&(a=P(2),I("disabled",!W(1,1,a.canEdit$)))},TJb=function(a){if(a&1){var b=t();F(0,SJb,3,3,"b-button",39);K(1,"b-button",40);U(2,"async");N("onAction",function(){u(b);var c=
P();return v(c.addChild())});S(3," Add existing child ");L()}a&2&&(a=P(),G(a.isNonPublicSession?0:-1),B(),I("disabled",!W(2,2,a.canEdit$)))},UJb=function(a,b){return he([a,b]).pipe(A(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}))},VJb=function(a){return a===1?a+" day":a+" days"},WJb=function(a){return{filter:a!=null?a:void 0,pageSize:500,sort:"modified_time:desc"}},XJb=function(a){a&1&&(M(0,"rollups-list",0),U(1,"async"),M(2,"stat-cards-list",
1),U(3,"async"));a&2&&(a=P(),I("ref",a.reference)("query",W(1,5,a.issueQuery$)),B(2),I("prefKey",a.prefKey)("query",W(3,7,a.issueQuery$))("entityType",a.entityType))},YJb=function(a,b){a&1&&M(0,"b-issues-table",2);a&2&&(a=P(2),I("issueIds",b)("options",a.TABLE_OPTIONS)("filters",a.getFilters())("tableColumns",a.getFilters()[0]==="PROGRESS"?a.PROGRESS_COLUMNS:a.DEFAULT_COLUMNS)("initialSort",a.INITIAL_SORT))},ZJb=function(a){a&1&&(F(0,YJb,1,5,"b-issues-table",2),U(1,"async"));if(a&2){var b;a=P();G((b=
W(1,1,a.issueIds$))?0:-1,b)}},$Jb=function(a){a&1&&(M(0,"one-work-area-list",0),U(1,"async"));a&2&&(a=P(2),I("searchString",W(1,5,a.issueFilter$))("prefKey",a.entityReference)("reference",a.entityReference)("onlyShowTableWhenFiltered",a.onlyShowTableWhenFiltered)("entityType",a.entityType))},aKb=function(a){a&1&&M(0,"rollups-project",2)(1,"stat-cards-project",2);a&2&&(a=P(2),I("id",a),B(),I("id",a))},cKb=function(a){if(a&1){var b=t();K(0,"aside",4)(1,"p",5);S(2,"This issue has no children.");L();
K(3,"button",6);N("click",function(){u(b);var c;(c=P(5).relationsTable)==null||bKb(c);return v()});S(4," Create new child ");L();K(5,"button",7);N("click",function(){u(b);var c;(c=P(5).relationsTable)==null||c.addExistingChild();return v()});S(6," Add existing ");L()()}},dKb=function(a,b){a&1&&(F(0,cKb,7,0,"aside",4),U(1,"async"));if(a&2){var c;a=P(4);G(b.descendantCount===0&&(((c=W(1,1,a.relationsTable==null?null:a.relationsTable.rows$))==null?null:c.length)||0)===0?0:-1)}},eKb=function(a){a&1&&
(M(0,"b-issue-relations-table",3),F(1,dKb,2,3),U(2,"async"));if(a&2){var b;a=P(2);var c=P();I("saveExpansionAtKey",Gg("project-expansion-",a))("rootIssueId",a)("filters",c.getFilters())("tableColumns",c.TREE_COLUMNS)("options",c.TREE_OPTIONS)("defaultExpansionLevel",0);B();G((b=W(2,8,c.issue$))?1:-1,b)}},fKb=function(a){a&1&&(F(0,aKb,2,2),F(1,eKb,3,10));a&2&&(a=P(2),G(a.isInternalSession?0:-1),B(),G(a.showTable()?1:-1))},gKb=function(a){a&1&&S(0);a&2&&(a=P(2),T(" Unhandled entity type: ",a.entityType,
" "))},hKb=function(a){a&1&&(M(0,"recent-events",1),U(1,"async"));a&2&&(a=P(2),I("query",W(1,2,a.issueFilter$))("numEvents",a.numRecentActivityEvents))},iKb=function(a){a&1&&(F(0,$Jb,2,7,"one-work-area-list",0)(1,fKb,2,2)(2,gKb,1,1),F(3,hKb,2,4,"recent-events",1));a&2&&(a=P(),G(a.entityType==="hotlist"||a.entityType==="savedsearch"?0:a.entityType==="issue"?1:2),B(3),G(a.hideRecentActivity?-1:3))},jKb=function(a){a&1&&(K(0,"button",9),M(1,"mat-icon",13),S(2," Add "),L());a&2&&(P(),a=Q(9),I("matMenuTriggerFor",
a))},kKb=function(a){a&1&&M(0,"b-tracker-chip-smart",17);a&2&&(a=P(2).$implicit,I("trackerId",a.trackerId)("compactMode",!0))},lKb=function(a){a&1&&(K(0,"a",28),M(1,"mat-icon",29),S(2," View Issue "),L(),K(3,"a",30),M(4,"mat-icon",29),S(5," View as search results "),L());if(a&2){a=P(2).$implicit;var b=P(2);I("routerLink",b.makeBuganizerUrl(a.workAreaUrl));B(3);I("href",b.makeIlpUrlForParentIssue(a.workAreaUrl),Me)}},mKb=function(a){a&1&&(K(0,"a",21),M(1,"mat-icon",29),S(2),L());if(a&2){a=P(2).$implicit;
var b=P(2);I("routerLink",b.makeBuganizerUrl(a.workAreaUrl));B(2);T(" View ",b.getEntityTypeName(a.workAreaUrl)," ")}},nKb=function(a,b){if(a&1){var c=t();K(0,"button",10);N("click",function(){var d=u(c),e=P(4);e.clipboard.copy(d);fs(e.butterBar,"ID copied",2E3);return v()});M(1,"mat-icon",31);S(2);L()}a&2&&(B(2),T(" Copy ID: ",b," "))},pKb=function(a){if(a&1){var b=t();F(0,kKb,1,2,"b-tracker-chip-smart",17);S(1);K(2,"button",18);N("click",function(k){u(b);return v(k.stopPropagation())});M(3,"mat-icon",
19);L();K(4,"mat-menu",20,1);F(6,lKb,6,2)(7,mKb,3,2,"a",21);F(8,nKb,3,1,"button",22);M(9,"mat-divider");K(10,"button",23);N("click",function(){u(b);var k=P().$implicit,m=P(2);return v(oKb(m.prefsService,k.workAreaUrl,-1))});M(11,"mat-icon",24);S(12," Move Left ");L();K(13,"button",23);N("click",function(){u(b);var k=P().$implicit,m=P(2);return v(oKb(m.prefsService,k.workAreaUrl,1))});M(14,"mat-icon",25);S(15," Move Right ");L();K(16,"button",26);N("click",function(){u(b);var k=P().$implicit,m=P(2).prefsService,
r=k.workAreaUrl;if(r!=null){var w;k=((w=m.prefs.workAreaUrls)!=null?w:[]).slice();w=k.indexOf(r);w<0||(k.splice(w,1),lu(m,{workAreaUrls:k}))}return v()});M(17,"mat-icon",27);S(18," Remove ");L()()}if(a&2){var c;a=Q(5);var d=P(),e=d.$implicit,f=d.$index;d=d.$count;var g=P(2);G(g.currentTrackerId&&g.currentTrackerId!==e.trackerId&&g.inferEntityType(e.workAreaUrl)==="issue"?0:-1);B();T(" ",g.titles[e.workAreaUrl]||e.workAreaUrl," ");B();I("matMenuTriggerFor",a);B(4);G(g.inferEntityType(e.workAreaUrl)===
"issue"?6:7);B(2);G((c=g.extractLastDigits(e.workAreaUrl))?8:-1,c);B(2);I("disabled",f===0);B(3);I("disabled",f===d-1);B(3);I("title",Gg("Hide the work area '",e.workAreaUrl,"' from this section"))}},qKb=function(a){a&1&&M(0,"one-work-area",32);if(a&2){a=P().$implicit;var b=P(2);I("reference",a.workAreaUrl)("refreshWorkArea",b.refreshData)}},rKb=function(a){a&1&&(K(0,"mat-tab"),E(1,pKb,19,9,"ng-template",15)(2,qKb,1,2,"ng-template",16),L())},uKb=function(a){if(a&1){var b=t();K(0,"mat-tab-group",14);
N("selectedIndexChange",function(c){u(b);var d=P();return v(sKb(d.prefsService,d.SECTION_SLUG,c))});Pf(1,rKb,3,0,"mat-tab",null,tKb);U(3,"async");L()}a&2&&(a=P(),I("selectedIndex",a.INITIAL_TAB_INDEX),B(),Qf(W(3,1,a.refsForTemplate$)))},vKb=function(a){a&1&&M(0,"b-issue-card",44);a&2&&(a=P().$implicit,I("issueId",a.ref))},xKb=function(a,b){if(a&1){var c=t();K(0,"li",41);N("click",function(){var d=u(c).$implicit,e=P(3);return v(wKb(e,d.ref))});K(1,"p",42);S(2);L();K(3,"p",43);S(4);L();K(5,"onedev-hovercard",
null,2);F(7,vKb,1,1,"b-issue-card",44);L()()}a&2&&(a=b.$implicit,b=Q(6),I("title",Gg("Click to add\n\rWhy this? ",a.suggestionRationale)),B(2),Ag(a.title),B(),I("onedevHovercardTrigger",b),B(),T("b/",a.ref),B(3),G(a.ref?7:-1))},yKb=function(a){a&1&&(K(0,"div",35)(1,"h4"),S(2,"Suggestions:"),L(),K(3,"ol",39),Pf(4,xKb,8,6,"li",40,Of),L()());a&2&&(a=P(2),B(4),Qf(a.suggestions))},zKb=function(a){a&1&&(K(0,"section",12)(1,"div",33),M(2,"img",34),F(3,yKb,6,0,"div",35),L(),K(4,"p",36),S(5," Use work areas to closely monitor a hotlist, saved search, or a parent/child project issue. "),
L(),K(6,"button",37),M(7,"mat-icon",38),S(8," Add work area "),L()());if(a&2){a=P();var b=Q(9);B(2);I("src",a.EMPTY_STATE_IMG,Me);B();G(a.suggestions.length>0?3:-1);B(3);I("matMenuTriggerFor",b)}},AKb=function(a,b){if(a&1){var c=t();K(0,"button",9);N("click",function(){var d=u(c).$implicit,e=P(2);return v(e.pageSizeChange.emit(d))});K(1,"span",10);M(2,"mat-icon",11);L();S(3);L()}a&2&&(a=b.$implicit,b=P(2),yg("b-menu-item-checked",a===b.pageSize),Jf("aria-checked",a===b.pageSize),B(3),T(" ",a," "))},
BKb=function(a){a&1&&(K(0,"button",5),M(1,"mat-icon",6),L(),K(2,"mat-menu",null,0)(4,"div",7),S(5,"Results per page:"),L(),Pf(6,AKb,4,4,"button",8,Of),L());if(a&2){a=Q(3);var b=P();I("matMenuTriggerFor",a);B(6);Qf(b.pageSizeOptions)}},CKb=function(a){a&1&&(K(0,"span"),S(1," - "),K(2,"strong"),S(3),L()());a&2&&(a=P(),B(3),Ag(a.endIndex))},DKb=function(a,b){a&1&&(K(0,"span",27),S(1),L());a&2&&(B(),T("",b," "))},EKb=function(a){a&1&&(F(0,DKb,2,1,"span",27),U(1,"async"),S(2," \u00a0/\u00a0 "));if(a&2){var b;
a=P();G((b=W(1,1,a.attentionCount$))?0:-1,b)}},FKb=function(a,b){a&1&&(K(0,"div",9)(1,"h2",7),S(2),L(),K(3,"span",26),F(4,EKb,3,3),U(5,"async"),K(6,"span"),S(7),U(8,"async"),L()()());if(a&2){var c;B(2);Ag(b.displayName);B(2);G((c=W(5,3,b.attentionCount$))?4:-1,c);B(3);Ag(W(8,5,b.totalCount$))}},HKb=function(a,b){if(a&1){var c=t();K(0,"button",13);N("click",function(){var d=u(c).$implicit,e=P();return v(GKb(e,d))});S(1);L()}a&2&&(a=b.$implicit,b=P(),B(),T(" ",b.SUBPHASE_TO_DISPLAY_NAME[a]," "))},IKb=
function(a){a&1&&M(0,"mat-progress-bar",21)},JKb=function(a){a&1&&S(0);a&2&&(a=P().$implicit,T(" (",a.count,") "))},KKb=function(a,b){a&1&&(K(0,"mat-chip-option",30),U(1,"async"),K(2,"span",31),S(3),F(4,JKb,1,1),L()());a&2&&(a=b.$implicit,b=P(4),I("value",a.key)("selected",W(1,5,Cs(b.selectedFilterKeys,a.key))),B(2),I("matTooltip",a.tooltip),B(),T(" ",a.displayAs," "),B(),G(a.showCount?4:-1))},MKb=function(a){if(a&1){var b=t();K(0,"mat-chip-listbox",29);N("change",function(c){u(b);P(3).selectedFilterKeys.reset(c.value.filter(ln));
return v()});Pf(1,KKb,5,7,"mat-chip-option",30,LKb);L()}a&2&&(a=P(),I("multiple",!0),B(),Qf(a))},NKb=function(a,b){a&1&&F(0,MKb,3,1,"mat-chip-listbox",28);a&2&&G(b.length?0:-1)},OKb=function(a){a&1&&(F(0,NKb,1,1),U(1,"async"));if(a&2){var b;a=P();G((b=W(1,1,a.availableFiltersInCurrentPhase$))?0:-1,b)}},PKb=function(a){a&1&&Xf(0)},RKb=function(a,b){a&1&&E(0,PKb,1,0,"ng-container",32);if(a&2){a=P();var c=Q(53);I("ngTemplateOutlet",c)("ngTemplateOutletContext",Lg(2,QKb,b,a.teamId))}},SKb=function(a){if(a&
1){var b=t();K(0,"selection-triage-sidebar",33);N("refreshTable",function(){u(b);var c=P(3);return v(c.refreshTable())});L()}},TKb=function(a){if(a&1){var b=t();K(0,"issue-triage-sidebar",33);N("refreshTable",function(){u(b);var c=P(4);return v(c.refreshTable())});L()}},UKb=function(a){if(a&1){var b=t();K(0,"cluster-triage-sidebar",33);N("refreshTable",function(){u(b);var c=P(4);return v(c.refreshTable())});L()}},VKb=function(a){a&1&&F(0,TKb,1,0,"issue-triage-sidebar")(1,UKb,1,0,"cluster-triage-sidebar");
a&2&&(a=P(),G(a.length===1?0:a.length>1?1:-1))},WKb=function(a){a&1&&F(0,SKb,1,0,"selection-triage-sidebar")(1,VKb,2,1);a&2&&(a=P(2),G(a.triageService.mode===a.TriageServiceMode.SELECTION?0:a.triageService.mode===a.TriageServiceMode.ACTIVATION?1:-1))},XKb=function(a){a&1&&(F(0,WKb,2,1),U(1,"async"));if(a&2){var b;a=P();G((b=W(1,1,a.triageService.currentIssueIds$))?0:-1,b)}},aLb=function(a){if(a&1){var b=t();K(0,"b-issues-table",36);U(1,"async");U(2,"async");U(3,"async");N("activeIssueChange",function(k){u(b);
var m=P(2);return v(YKb(m,k))})("rowClick",function(k){u(b);var m=P(2);return v(YKb(m,k))})("selectedIssuesChange",function(k){u(b);var m=P(2);m.selectedIssues=k;k=m.selectedIssues.selected;m.triageService.setIssueIds(k);k.length?(m.triageService.setMode(1),m.triageService.openSidebar()):(m.triageService.setMode(0),m.triageService.closeSidebar());return v()})("sortChange",function(k){u(b);var m=P(2);return v(m.onSortChange(k))})("columnsChange",function(k){u(b);var m=P(2);return v(m.onColumnsChange(k))});
L()}if(a&2){var c=P();a=c.issueIds;c=c.teamId;var d=P(),e,f,g;I("issueIds",a)("tableColumns",(e=W(1,7,d.tableColumns$))!=null?e:Jg(13,ZKb))("editableColumns",!0)("options",(f=W(2,9,d.tableOptions$))!=null?f:Jg(14,$Kb))("teamId",c)("showReadStatus",!0)("alerts",(g=W(3,11,d.issueAlertsForCurrentPhase$))!=null?g:Jg(15,ZKb))}},bLb=function(a){a&1&&(K(0,"div",35),M(1,"img",37),S(2," All clean! There are no issues in this phase. "),L());a&2&&(a=P(2),B(),I("src",a.EMPTY_STATE_IMG,Me))},cLb=function(a,b){a&
1&&F(0,aLb,4,16,"b-issues-table",34)(1,bLb,3,1,"div",35);a&2&&G(b.issueIds.length?0:1)},dLb=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 f9a(a,b).filter(function(e){return!d||d.check(e)||c.some(function(f){return d9a(e,f)})?!0:!1})},fLb=function(a,b,c,d){return c?function(){switch(c.column){case "CREATED_TIME":return BWa(DWa)(a,c.direction);case "RELATIVE_MODIFIED_TIME":return CWa(DWa)(a,c.direction);case "PRIORITY":return IWa(DWa)(a,
c.direction);case "TRIAGER":return FWa()(a,c.direction);default:return console.warn("b-triage-phase sort by '"+c.column+"' not implemented"),a}}().map(function(e){return e.issueId}):eLb(a,b,d)},eLb=function(a,b,c){var d=gLb.get(c),e=new Map(a.map(function(f){return[f.issueId,d.findIndex(function(g){return d9a(f,g)})]}));c=a.filter(function(f){return e.get(f.issueId)!==-1}).map(function(f){return f.issueId}).sort(function(f,g){return e.get(f)-e.get(g)});return Nq([].concat(n(b),n(c),n(a.map(function(f){return f.issueId}))),
function(f){return Array.isArray(f)?f.join(";"):f})},hLb=function(a){a&1&&(K(0,"span",8),S(1," > "),L())},kLb=function(a,b){if(a&1){var c=t();K(0,"span")(1,"a",7);N("click",function(e){var f=u(c).$implicit,g=P(2);f=new iLb(f.pathIds,f.pathNames);g.onTeamSelect.emit(f);e.stopPropagation();e.preventDefault();jLb(g.autocompleteTrigger);return v()});S(2);L();F(3,hLb,2,0,"span",8);L()}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;B();I("matTooltip",a.pathNameText);B();Ag(a.name);B();G(d!==b-1?3:-1)}},
lLb=function(a,b){a&1&&(K(0,"mat-option",5)(1,"div"),Pf(2,kLb,4,3,"span",null,Of),L(),K(4,"span",6),S(5),U(6,"slice"),L()());a&2&&(a=b.$implicit,I("value",a),B(2),Qf(a.teamPath),B(2),I("matTooltip",a.description),B(),T("",Poa(6,3,a.description,100)," "))},mLb=function(a){a&1&&S(0," Search results ")},nLb=function(a){a&1&&S(0," Recommended ")},oLb=function(a){a&1&&(K(0,"th",18)(1,"span",19),S(2,"Starred"),L()())},pLb=function(a,b){if(a&1){var c=t();K(0,"td",20)(1,"b-star-toggle",21);N("starClicked",
function(){var e=u(c).$implicit,f=P(2),g=P();return v(g.toggleStar(e.triageId,e.teamId,f))});L()()}if(a&2){a=b.$implicit;b=P(2);var d=P();B();I("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")}},qLb=function(a){a&1&&(K(0,"th",18),S(1,"Name"),L())},rLb=function(a,b){a&1&&(K(0,"td",22)(1,"a",23),S(2),L()());a&2&&(a=b.$implicit,b=P(3),B(),I("href",b.getTriageLink(a.triageId,
a.teamId),Me),B(),T(" ",a.triageName||a.teamName+" triage"," "))},sLb=function(a){a&1&&(K(0,"th",18),S(1,"Team"),L())},tLb=function(a,b){a&1&&(K(0,"td",24),S(1),L());a&2&&(a=b.$implicit,B(),T(" ",a.teamName," "))},uLb=function(a){a&1&&(K(0,"th",18),S(1,"Scope"),L())},vLb=function(a,b){a&1&&(K(0,"td",25),S(1),L());a&2&&(a=b.$implicit,B(),T(" ",a.scope," "))},wLb=function(a){a&1&&M(0,"tr",26)},xLb=function(a){a&1&&M(0,"tr",27)},yLb=function(a,b){a&1&&(K(0,"table",6),Vf(1,7),E(2,oLb,3,0,"th",8)(3,pLb,
2,4,"td",9),Wf(),Vf(4,10),E(5,qLb,2,0,"th",8)(6,rLb,3,2,"td",11),Wf(),Vf(7,12),E(8,sLb,2,0,"th",8)(9,tLb,2,1,"td",13),Wf(),Vf(10,14),E(11,uLb,2,0,"th",8)(12,vLb,2,1,"td",15),Wf(),E(13,wLb,1,0,"tr",16)(14,xLb,1,0,"tr",17),L());a&2&&(a=P(2),I("dataSource",b)("fixedLayout",!0),B(13),I("matHeaderRowDef",a.tableColumns),B(),I("matRowDefColumns",a.tableColumns))},zLb=function(a){a&1&&M(0,"b-spinner")},ALb=function(a){a&1&&(F(0,yLb,15,4,"table",6),U(1,"async"),Mf(2,zLb,1,0,"b-spinner"));if(a&2){var b;a=
P();G((b=W(1,1,a.triageRows$))?0:2,b)}},BLb=function(a){a&1&&(K(0,"button",9)(1,"span"),S(2,"Edit"),L(),M(3,"b-icon",14),L());if(a&2){a=P();var b=Q(7);I("disabled",a.isAnonymous)("matMenuTriggerFor",b)}},CLb=function(a){a&1&&(K(0,"button",9)(1,"span"),S(2,"Link"),L(),M(3,"b-icon",14),L());if(a&2){a=P();var b=Q(74);I("disabled",a.isAnonymous)("matMenuTriggerFor",b)}},DLb=function(a){a&1&&(K(0,"button",9)(1,"span"),S(2,"CC"),L(),M(3,"b-icon",14),L());if(a&2){a=P();var b=Q(90);I("disabled",a.isAnonymous)("matMenuTriggerFor",
b)}},ELb=function(a){if(a&1){var b=t();K(0,"button",11);N("click",function(){u(b);var c=P();return v(c.bulkEdit("ESTIMATED_EFFORT"))});S(1,"Estimated Effort");L()}},FLb=function(a,b){if(a&1){var c=t();K(0,"button",11);N("click",function(){var d=u(c).$implicit,e=P();return v(e.quickBulkEdit("PRIORITY",d))});S(1);L()}a&2&&(a=b.$implicit,B(),T(" ",a," "))},GLb=function(a,b){if(a&1){var c=t();K(0,"button",11);N("click",function(){var d=u(c).$implicit,e=P();return v(e.quickBulkEdit("SEVERITY",d))});S(1);
L()}a&2&&(a=b.$implicit,B(),T(" ",a," "))},HLb=function(a,b){if(a&1){var c=t();K(0,"button",11);N("click",function(){var d=u(c).$implicit,e=P();return v(e.quickBulkEdit("STATUS",d))});S(1);L()}a&2&&(a=b.$implicit,b=P(),B(),T(" ",b.STATUS_JS_FULL_TEXT.get(a)," "))},ILb=function(a){a&1&&M(0,"mat-divider")},JLb=function(a){a&1&&M(0,"mat-icon",16);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},KLb=function(a,b){if(a&1){var c=t();F(0,ILb,1,0,"mat-divider");K(1,"button",15);N("click",function(){var f=u(c).$implicit,
g=P();return v(g.quickBulkEdit("TYPE",f.value))});F(2,JLb,1,1,"mat-icon",16);S(3);L()}if(a&2){a=b.$implicit;b=b.$index;P();var d=dg(58);G(b>0&&d[b].group!=d[b-1].group?0:-1);B();var e;I("matTooltip",(e=a.altText)!=null?e:"");B();G(a.icon?2:-1);B();T(" ",a.displayText," ")}},LLb=function(a){if(a&1){var b=t();K(0,"button",4);N("click",function(){u(b);var c=P(2);return v(c.exportCsvClicked.emit())});S(1,"Export issues to CSV ");L()}},MLb=function(a){if(a&1){var b=t();K(0,"button",4);N("click",function(){u(b);
var c=P(2);return v(c.flagAsSpamClicked.emit())});S(1,"Flag issues as spam ");L()}},NLb=function(a){a&1&&(K(0,"button",1)(1,"span"),S(2,"More"),L(),M(3,"b-icon",2),L(),K(4,"mat-menu",null,0),F(6,LLb,2,0,"button",3),F(7,MLb,2,0,"button",3),L());if(a&2){a=Q(5);var b=P();I("disabled",b.isAnonymous)("matMenuTriggerFor",a);B(6);G(b.showExportCsv?6:-1);B();G(b.showFlagIssuesAsSpam?7:-1)}},OLb=function(a){a&1&&S(0," Network connection has been interrupted. ")},PLb=function(a){a&1&&S(0," Network connection has been interrupted or login credentials may have expired. ")},
RLb=function(a){if(a&1){var b=t();K(0,"button",2);N("click",function(c){u(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=Ah("/refreshSso")?"/refreshSso":Bh(typeof"/refreshSso".href!="undefined"?"/refreshSso".href:"/refreshSso");var f=self.crossOriginIsolated!==void 0,g="strict-origin-when-cross-origin";window.Request&&(g=(new Request("/")).referrerPolicy);var k=
d.noreferrer;if(f&&k&&g==="unsafe-url")throw Error("qg");g=k&&!f;k=d.target||"/refreshSso".target;var m=[],r=[],w=!1;for(D in d){var x=d[D];switch(D){case "width":case "height":case "top":case "left":m.push(D+"="+x);break;case "target":break;case "noopener":case "noreferrer":x?r.push(D):(w=!0,r.push(D+"=false"));break;case "attributionsrc":m.push(D+(x?"="+x:""));break;default:m.push(D+"="+(x?1:0))}}var D=k!==void 0&&!["_blank","_self","_top","_parent",""].includes(k);D=lba()&&D;QLb&&f&&m.length===
0&&r.length>0&&!D&&!w?(r.length===2&&(r=["noreferrer"]),Lh.windowOpen(c,e,k,r[0])):(f=m.join(","),Ga()&&c.navigator&&c.navigator.standalone&&k&&k!="_self"?(f=Qt(document,"A"),Lh.setAnchorHref(f,e),f.target=k,g&&(f.rel="noreferrer"),((d=d.attributionsrc)||d==="")&&f.setAttribute("attributionsrc",d),d=document.createEvent("MouseEvent"),d.initMouseEvent("click",!0,!0,c,1),f.dispatchEvent(d)):g?(c=Lh.windowOpen(c,"",k,f),d=Tqa(e),c&&(c.opener=null,d===""&&(d="javascript:''"),d=Kva('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+
mu(d)+'">'),(c=c.document)&&c.write&&(Lh.documentWrite(c,d),c.close()))):((c=Lh.windowOpen(c,e,k,f))&&d.noopener&&(c.opener=null),c&&d.noreferrer&&(c.opener=null)));return v()});S(1," Log in again ");L()}},SLb=function(a){a&1&&(K(0,"b-callout",0)(1,"b-callout-body"),F(2,OLb,1,0)(3,PLb,1,0),L(),K(4,"b-callout-actions"),F(5,RLb,2,0,"button",1),L()());a&2&&(a=P(),I("messageType","error"),B(2),G(a.isAnonymous?2:3),B(3),G(a.isAnonymous?-1:5))},TLb=function(a){a&1&&(Sf(0,"a",0),S(1," Hiring! "),Tf())},
ULb=function(a,b){a&1&&(K(0,"tr")(1,"td",4),S(2),L(),K(3,"td"),S(4,":"),L(),K(5,"td",5),S(6),L()());a&2&&(a=b.$implicit,B(2),Ag(a.displayAs),B(4),Ag(a.description))},VLb=function(a,b){a&1&&(K(0,"thead")(1,"tr"),M(2,"th",2),K(3,"th",3),S(4),L()(),Pf(5,ULb,7,2,"tr",null,Of),L());a&2&&(a=b.$implicit,B(4),Ag(a.title),B(),Qf(a.hotkeys))},WLb=function(a){a=a===void 0?!1:a;var b=s5a(),c=b.total,d=b.redundancyRatio;ur("after-60s","xhr","redundant",b.redundant);ur("after-60s","xhr","total",c);ur("after-60s",
"xhr","redundancyRatio",d);a&&(console.table(r5a()),console.log(b))},ou=function(a){a==="duplicateOfIssueId"&&(a="canonicalIssueId");var b=Number(a);isNaN(b)?a=new nu({type:String(a).replace(/([A-Z])/g,"_$1").toUpperCase()}):b===0?a=null:(a={customFieldId:b},a=new nu({type:"CUSTOM_FIELD",customFieldId:a.customFieldId,customFieldName:a.name}));return a},XLb=function(a){a=pu(a);if(xa(a))return null;var b=a.split(":");if(b.length!==2||xa(b[1]))return null;a=b[1].toLowerCase()==="asc"?"ASCENDING":"DESCENDING";
return(b=ou(b[0]))&&a?new qu(b,a):null},ru=function(a,b){b=b===void 0?po():b;var c,d=(c=b.tracker)==null?void 0:c.name;b=b.config.appName;d=d||b;return a?a+" - "+d:d},YLb=function(a){a&1&&M(0,"bug-screensaver")},ZLb=function(a){a&1&&(Uf(0,"img",3),Sf(1,"span",4),S(2),Tf(),S(3," Powered by Google "),Sf(4,"span",1),S(5,"|"),Tf());a&2&&(a=P(2),Rf("src",a.trackerLogo,Me),B(2),T("",a.trackerName," Issue Tracker"))},$Lb=function(a){a&1&&(Sf(0,"div")(1,"span",1),S(2,"|"),Tf(),Sf(3,"a",5),S(4,"Code of Conduct"),
Tf()());a&2&&(a=P(2),B(3),Rf("href",a.trackerCoc,Me))},aMb=function(a){a&1&&(Sf(0,"footer"),F(1,ZLb,6,2),Sf(2,"a",0),S(3,"Privacy"),Tf(),Sf(4,"span",1),S(5,"|"),Tf(),Sf(6,"a",2),S(7,"Terms"),Tf(),F(8,$Lb,5,1,"div"),Tf());a&2&&(a=P(),B(),G(a.currentTracker?1:-1),B(7),G(a.trackerCoc?8:-1))},bMb=function(a,b){if(a&1){var c=t();K(0,"b-fab-segmented",1);N("clickMain",function(e){u(c);var f=P(2);return v(f.trackClick(e))})("clickSegment",function(e){u(c);var f=P(2);return v(f.trackClick(e))});L()}if(a&
2){a=P();var d=P();I("label",b)("icon",d.buttonIcon)("href",d.createIssuePath)("segments",a)}},cMb=function(a){a&1&&(F(0,bMb,1,4,"b-fab-segmented",0),U(1,"async"));if(a&2){var b;a=P();G((b=W(1,1,a.buttonLabel$))?0:-1,b)}},dMb=function(a){a&1&&Xf(0)},eMb=function(a){a&1&&Xf(0)},fMb=function(a){a&1&&E(0,eMb,1,0,"ng-container",1);a&2&&(a=P(),I("ngTemplateOutlet",a.content))},gMb=function(a){a&1&&(K(0,"ul",5)(1,"li")(2,"a",6),M(3,"mat-icon",7),S(4," Triage "),L()()());a&2&&(a=P(2),B(),yg("selected",a.location.path().startsWith(zs.triageSettings.makeHref())),
B(),I("href",a.ROUTES.triageSettings.makeHref(),Me))},hMb=function(a){if(a&1){var b=t();K(0,"button",13);N("click",function(){u(b);var c=P(4);return v(c.goToTriageSettingsPage())});S(1," Configure triage ");L()}},iMb=function(a){if(a&1){var b=t();S(0," Triage ");K(1,"span",9);S(2,"New");L();K(3,"button",10);N("click",function(c){u(b);return v(c.stopPropagation())});M(4,"mat-icon",11);L();K(5,"mat-menu",null,2);E(7,hMb,2,0,"ng-template",12);L()}a&2&&(a=Q(6),B(3),I("matMenuTriggerFor",a))},jMb=function(a){a&
1&&(K(0,"div",17)(1,"span",18),S(2),U(3,"async"),L()());a&2&&(a=P().$implicit,B(2),Ag(W(3,1,a.displayName$)))},kMb=function(a,b){a&1&&(K(0,"span",26),S(1),L());a&2&&(B(),T(" ",b," "))},lMb=function(a,b){if(a&1){var c=t();K(0,"a",25);N("click",function(f){var g=u(c),k=P(8);return v(k.onAnchorClick(g,f))});K(1,"span");S(2);L();F(3,kMb,2,1,"span",26);U(4,"async");L()}if(a&2){var d;a=P().$implicit;var e=P();I("href",b,Me);B(2);T(" ",e.phase(a).displayName," ");B();G((d=W(4,3,e.phase(a).attentionCount$))?
3:-1,d)}},mMb=function(a,b){a&1&&(K(0,"li",24),F(1,lMb,5,5,"a",22),L());if(a&2){var c;a=b.$implicit;b=P();var d=P(2).$implicit,e=P(4);yg("selected-indented",e.isTriageUrlFor(d.teamId,a,d.triageId));I("title",b.phase(a).displayName);B();G((c=e.ROUTES.viewTriage.makeHref(d.teamId,d.triageId,e.phaseToUrlSlug[a]))?1:-1,c)}},nMb=function(a){a&1&&(K(0,"ul",19),Pf(1,mMb,2,4,"li",20,Of),K(3,"li",21)(4,"a",22)(5,"span"),S(6," Issue Themes "),M(7,"mat-icon",23),L()()()());if(a&2){a=P(2).$implicit;var b=P(4);
B();Qf(b.ALL_PHASES);B(2);yg("selected-indented",b.location.path().endsWith("issue-themes"));B();I("href",b.ROUTES.viewIssueThemes.makeHref(a.teamId,a.triageId),Me)}},oMb=function(a){a&1&&F(0,nMb,8,3,"ul",19);if(a&2){var b;a=P().$implicit;var c=P(4);G((b=c.triageService.triageDataFactory.get(a.teamId,a.triageId))?0:-1,b)}},qMb=function(a,b){if(a&1){var c=t();K(0,"li",15);U(1,"async");K(2,"sidebar-zippy",16);U(3,"async");N("onExpand",function(){var g=u(c).$implicit;P(4).bLocation.setUrl(zs.viewTriage.makeHref(g.teamId,
g.triageId));return v()});E(4,jMb,4,3,"ng-template",null,3,Og)(6,oMb,1,1,"ng-template",null,4,Og);L()()}if(a&2){a=b.$implicit;b=Q(5);var d=Q(7),e=P(4);I("title",W(1,4,a.displayName$));B(2);var f;I("header",b)("content",d)("expanded",(f=W(3,6,pMb(e,a.teamId,a.triageId)))!=null?f:!1)}},rMb=function(a){a&1&&(K(0,"ul",14),Pf(1,qMb,8,8,"li",15,Of),L());a&2&&(a=P(2),B(),Qf(a))},sMb=function(a){a&1&&(M(0,"hr"),K(1,"sidebar-zippy",8),E(2,iMb,8,1,"ng-template",null,0,Og)(4,rMb,3,0,"ng-template",null,1,Og),
L());if(a&2){a=Q(3);var b=Q(5);B();I("header",a)("content",b)}},tMb=function(a,b){a&1&&F(0,gMb,5,3,"ul",5)(1,sMb,6,2);a&2&&G(b.length===0?0:1)},uMb=function(a){a&1&&S(0," Archived ")},vMb=function(a){if(a&1){var b=t();K(0,"button",15);N("click",function(c){u(b);return v(c.stopPropagation())});M(1,"mat-icon",16);L()}a&2&&(P(),a=Q(5),I("matMenuTriggerFor",a))},wMb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);var c=P(3).$implicit;return v(c.unstar())});S(1," Unstar ");L()}},
xMb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);var c=P(3).$implicit;return v(c.unarchive())});S(1," Unarchive ");L()}},yMb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return v(d.handleBookmarkGroupOpen(c.id))});S(1," Open ");L();K(2,"button",17);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return v(d.handleBookmarkGroupDashboard(c.id))});S(3," Dashboard ");L();K(4,"button",17);N("click",function(){u(b);
var c=P(2).$implicit,d=P(3);return v(d.openEditBookmarkGroup(c.id))});S(5," Settings ");L();F(6,wMb,2,0,"button",18);F(7,xMb,2,0,"button",18)}a&2&&(a=P(2).$implicit,B(6),G(a.isUnstarable()?6:-1),B(),G(a.isEditable()?7:-1))},zMb=function(a){a&1&&(K(0,"div",11)(1,"span",12),S(2),L(),F(3,vMb,2,1,"button",13),K(4,"mat-menu",null,4),E(6,yMb,8,2,"ng-template",14),L()());a&2&&(a=P().$implicit,Jf("id",Gg("bv2-user-archived-bookmarkgroup-item-",a.id)),B(2),Ag(a.name),B(),G(a?3:-1))},AMb=function(a,b){if(a&
1){var c=t();K(0,"li",21)(1,"a",22);N("click",function(d){var e=u(c).$implicit,f=P(5);return v(f.onAnchorClick(e.href,d))});K(2,"span",12);S(3);L()()()}a&2&&(a=b.$implicit,b=P(2).$implicit,yg("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item",a.type=="HOTLIST")("bv2-bookmark-group-saved-search-item",a.type=="SAVED_SEARCH"),Jf("id",Coa("bv2-user-hotlists-bg-",b.id,"-",a.type,"-",a.id)),I("title",a.name),B(),I("href",a.href,Me),B(2),T(" ",a.name," "))},BMb=function(a){a&1&&(K(0,"ul",
19),Pf(1,AMb,4,13,"li",20,Of),L());a&2&&(a=P().$implicit,B(),Qf(a.items))},CMb=function(a,b){a&1&&(K(0,"li",8)(1,"sidebar-zippy",10),E(2,zMb,7,4,"ng-template",null,2,Og)(4,BMb,3,0,"ng-template",null,3,Og),L()());if(a&2){a=b.$implicit;b=Q(3);var c=Q(5);I("title",a.name);B();I("header",b)("content",c)}},DMb=function(a){a&1&&(K(0,"button",25),M(1,"mat-icon",16),L());a&2&&(P(),a=Q(6),I("matMenuTriggerFor",a))},EMb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);var c=P(2).$implicit;
return v(c.unstar())});S(1," Unstar ");L()}},FMb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);var c=P(2).$implicit;return v(c.unarchive())});S(1," Unarchive ");L()}},GMb=function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){u(b);var c=P().$implicit,d=P(3);return v(d.openEditHotlist(c.id))});S(1," Settings ");L();F(2,EMb,2,0,"button",18);F(3,FMb,2,0,"button",18)}a&2&&(a=P().$implicit,B(2),G(a.isUnstarable()?2:-1),B(),G(a.isEditable()?3:-1))},HMb=function(a,
b){if(a&1){var c=t();K(0,"li",23)(1,"a",24);N("click",function(d){var e=u(c).$implicit,f=P(3);return v(f.onAnchorClick(e.href,d))});K(2,"span",12);S(3);L()();F(4,DMb,2,1,"button",25);K(5,"mat-menu",null,5);E(7,GMb,4,2,"ng-template",14);L()()}a&2&&(a=b.$implicit,yg("selected",a.isSelected()),I("id",Gg("bv2-user-hotlists-archived-hotlist-item-",a.id))("title",a.name),B(),I("href",a.href,Me),B(2),Ag(a.name),B(),G(a?4:-1))},IMb=function(a){a&1&&(K(0,"ul",7),Pf(1,CMb,6,3,"li",8,Of),Pf(3,HMb,8,8,"li",9,
Of),L());a&2&&(a=P(2),B(),Qf(a.bookmarkGroups),B(2),Qf(a.hotlists))},JMb=function(a){a&1&&(K(0,"div"),M(1,"hr"),K(2,"sidebar-zippy",6),E(3,uMb,1,0,"ng-template",null,0,Og)(5,IMb,5,0,"ng-template",null,1,Og),L()());if(a&2){a=Q(4);var b=Q(6);B(2);I("header",a)("content",b)}},KMb=function(a){a&1&&M(0,"b-spinner")},LMb=function(a){if(a&1){var b=t();K(0,"b-star-toggle",13);N("starClicked",function(){u(b);var c=P().$implicit,d=P();return v(d.toggleStar(c))});L()}a&2&&(a=P().$implicit,I("starMessage","Star this item")("unStarMessage",
"Un-star this item")("starred",a.isStarred))},MMb=function(a){a&1&&M(0,"b-hotlist-card",10);a&2&&(a=P().$implicit,I("hotlist",a))},NMb=function(a){a&1&&M(0,"b-bookmark-group-card",11);a&2&&(a=P().$implicit,I("bookmarkGroup",a))},OMb=function(a,b){a&1&&(K(0,"mat-option",6)(1,"div",8),F(2,LMb,1,3,"b-star-toggle",9),K(3,"onedev-hovercard",null,2),F(5,MMb,1,1,"b-hotlist-card",10)(6,NMb,1,1,"b-bookmark-group-card",11),L(),K(7,"span",12),S(8),L()()());if(a&2){a=b.$implicit;b=Q(4);var c=P();I("value",a);
B();yg("bv2-bookmark-group",c.showHotlists&&a.isGroup);B();G(c.shouldShowStar(a)?2:-1);B(3);G(a.isGroup?6:5);B(2);I("onedevHovercardTrigger",b);B();Ag(a.name)}},PMb=function(a){if(a&1){var b=t();K(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-hotlist-search",3);N("itemSelect",function(c){u(b);var d=P();d.itemSelect.emit(c);d.dialog.disabled=!0;d.dialog.disabled=!1;return v()});L()()()}a&2&&(a=P(),B(2),I("showGroups",a.showGroups)("showHotlists",a.showHotlists)("allowStarring",a.allowStarring)("focusOnInit",
!0))},QMb=function(a){if(a&1){var b=t();K(0,"span");S(1,"Bookmark groups");L();K(2,"b-hotlist-search-popup",8);N("itemSelect",function(c){u(b);var d=P();c.isGroup&&d.handleBookmarkGroupOpen(c.bookmarkGroupId);return v()})("click",function(c){u(b);return v(c.stopPropagation())});L()}a&2&&(B(2),I("showHotlists",!1))},RMb=function(a){if(a&1){var b=t();K(0,"button",16);N("click",function(c){u(b);return v(c.stopPropagation())});M(1,"mat-icon",17);L()}a&2&&(P(),a=Q(5),I("matMenuTriggerFor",a))},SMb=function(a){if(a&
1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(3).$implicit;return v(c.unstar())});S(1," Unstar ");L()}},TMb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(3).$implicit;return v(c.archive())});S(1," Archive ");L()}},UMb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(3).$implicit;return v(c.setAsPreferredHomepage())});S(1," Set as homepage ");L()}},VMb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);
var c=P(2).$implicit,d=P(3);return v(d.handleBookmarkGroupOpen(c.id))});S(1," Open ");L();K(2,"button",18);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return v(d.handleBookmarkGroupDashboard(c.id))});S(3," Dashboard ");L();K(4,"button",18);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return v(d.editBookmarkGroup(c.id))});S(5," Settings ");L();F(6,SMb,2,0,"button",19);F(7,TMb,2,0,"button",19);F(8,UMb,2,0,"button",19)}a&2&&(a=P(2).$implicit,B(6),G(a.isUnstarable()?6:-1),B(),G(a.isEditable()?
7:-1),B(),G(a.isPreferredHomepage()?-1:8))},WMb=function(a){a&1&&(K(0,"div",12)(1,"span",13),S(2),L(),F(3,RMb,2,1,"button",14),K(4,"mat-menu",null,4),E(6,VMb,9,3,"ng-template",15),L()());a&2&&(a=P().$implicit,Jf("id",Gg("bv2-user-bookmarkgroup-item-",a.id)),B(2),Ag(a.name),B(),G(a?3:-1))},XMb=function(a){a&1&&(K(0,"button",24),M(1,"mat-icon",17),L());a&2&&(P(),a=Q(6),I("matMenuTriggerFor",a))},YMb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(2).$implicit;return v(c.unstar())});
S(1," Unstar ");L()}},ZMb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(2).$implicit;return v(c.setAsPreferredHomepage())});S(1," Set as homepage ");L()}},$Mb=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P().$implicit,d=P(5);c.type==="HOTLIST"?d.location.setUrl(zs.editHotlist.makeHref(c.id)):d.location.setUrl(d.paths.editSavedSearch(c.id));return v()});S(1," Settings ");L();F(2,YMb,2,0,"button",19);F(3,ZMb,2,0,"button",19)}a&2&&
(a=P().$implicit,B(2),G(a.isUnstarable()?2:-1),B(),G(a.isPreferredHomepage()?-1:3))},aNb=function(a,b){if(a&1){var c=t();K(0,"li",22)(1,"a",23);N("click",function(d){var e=u(c).$implicit,f=P(5);return v(f.onAnchorClick(e.href,d))});K(2,"span",13);S(3);L()();F(4,XMb,2,1,"button",24);K(5,"mat-menu",null,5);E(7,$Mb,4,2,"ng-template",15);L()()}a&2&&(a=b.$implicit,b=P(2).$implicit,yg("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item",a.type=="HOTLIST")("bv2-bookmark-group-saved-search-item",
a.type=="SAVED_SEARCH"),Jf("id",Coa("bv2-user-hotlists-bg-",b.id,"-",a.type,"-",a.id)),I("title",a.getDisplayName()),B(),I("href",a.href,Me),B(2),T(" ",a.getDisplayName()," "),B(),G(b?4:-1))},bNb=function(a){a&1&&(K(0,"ul",20),Pf(1,aNb,8,14,"li",21,Of),L());a&2&&(a=P().$implicit,B(),Qf(a.items))},cNb=function(a,b){a&1&&(K(0,"li",10)(1,"sidebar-zippy",11),E(2,WMb,7,4,"ng-template",null,2,Og)(4,bNb,3,0,"ng-template",null,3,Og),L()());if(a&2){a=b.$implicit;b=Q(3);var c=Q(5);I("title",a.name);B();I("header",
b)("content",c)("expanded",!1)}},dNb=function(a){a&1&&(K(0,"ul",9),Pf(1,cNb,6,4,"li",10,Of),L());a&2&&(a=P(2),B(),Qf(a.bookmarkGroups))},eNb=function(a){a&1&&F(0,dNb,3,0,"ul",9);a&2&&(a=P(),G(a.bookmarkGroups?0:-1))},fNb=function(a){if(a&1){var b=t();K(0,"span");S(1,"Hotlists");L();K(2,"b-hotlist-search-popup",5);N("itemSelect",function(c){u(b);var d=P();d.analytics.trackEvent("hotlistSearch","goToHotlist");d.location.setUrl(c.href);return v()})("click",function(c){u(b);return v(c.stopPropagation())});
L()}a&2&&(B(2),I("showGroups",!1))},gNb=function(a){a&1&&(K(0,"button",11),M(1,"mat-icon",13),L());a&2&&(P(),a=Q(6),I("matMenuTriggerFor",a))},hNb=function(a){if(a&1){var b=t();K(0,"button",15);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return v(d.addToMissionControl(c.id))});M(1,"mat-icon",17);S(2," Add to 'Home' screen ");L()}},iNb=function(a){if(a&1){var b=t();K(0,"button",15);N("click",function(){u(b);var c=P(2).$implicit;return v(c.setAsPreferredHomepage())});M(1,"mat-icon",18);S(2,
" Set as homepage ");L()}},jNb=function(a){if(a&1){var b=t();K(0,"button",15);N("click",function(){u(b);var c=P(2).$implicit;return v(c.unstar())});M(1,"mat-icon",19);S(2," Unstar ");L()}},kNb=function(a){if(a&1){var b=t();F(0,hNb,3,0,"button",14);F(1,iNb,3,0,"button",14);K(2,"button",15);N("click",function(){u(b);var d=P().$implicit,e=P(3);return v(e.openEditHotlist(d.id))});M(3,"mat-icon",16);S(4," Settings ");L();F(5,jNb,3,0,"button",14)}if(a&2){a=P().$implicit;var c=P(3);G(c.ENABLE_MISSION_CONTROL?
0:-1);B();G(a.isPreferredHomepage()?-1:1);B(4);G(a.isUnstarable()?5:-1)}},lNb=function(a,b){if(a&1){var c=t();K(0,"li",8)(1,"a",9);N("click",function(d){var e=u(c).$implicit,f=P(3);return v(f.onAnchorClick(e.href,d))});K(2,"span",10);S(3);L()();F(4,gNb,2,1,"button",11);K(5,"mat-menu",null,2);E(7,kNb,6,3,"ng-template",12);L()()}a&2&&(a=b.$implicit,yg("selected",a.isSelected()),I("id",Gg("bv2-user-hotlists-hotlist-item-",a.id))("title",a.name),B(),I("href",a.href,Me),B(2),Ag(a.name),B(),G(a?4:-1))},
mNb=function(a){a&1&&(K(0,"ul",6),Pf(1,lNb,8,8,"li",7,Of),L());a&2&&(a=P(2),B(),Qf(a.hotlists))},nNb=function(a){a&1&&F(0,mNb,3,0,"ul",6);a&2&&(a=P(),G(a.hotlists?0:-1))},oNb=function(a){a&1&&(K(0,"span"),S(1,"Saved searches"),L())},pNb=function(a){if(a&1){var b=t();K(0,"button",14);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return v(d.addToMissionControl(c.id))});M(1,"mat-icon",17);S(2," Add to 'Home' screen ");L()}},qNb=function(a){if(a&1){var b=t();K(0,"button",14);N("click",function(){u(b);
var c=P(2).$implicit;return v(c.setAsPreferredHomepage())});M(1,"mat-icon",18);S(2," Set as homepage ");L()}},sNb=function(a){if(a&1){var b=t();F(0,pNb,3,0,"button",13);F(1,qNb,3,0,"button",13);K(2,"button",14);N("click",function(){u(b);var d=P().$implicit,e=P(3);return v(e.openEditSavedSearch(d.id))});M(3,"mat-icon",15);S(4," Settings ");L();K(5,"button",14);N("click",function(){u(b);var d=P().$implicit,e=P(3);return v(rNb(e,d))});M(6,"mat-icon",16);S(7," Delete ");L()}if(a&2){a=P().$implicit;var c=
P(3);G(c.ENABLE_MISSION_CONTROL?0:-1);B();G(a.isPreferredHomepage()?-1:1)}},tNb=function(a,b){if(a&1){var c=t();K(0,"li",7)(1,"a",8);N("click",function(d){var e=u(c).$implicit,f=P(3);return v(f.onAnchorClick(e.href,d))});K(2,"span",9);S(3);L()();K(4,"button",10);M(5,"mat-icon",11);L();K(6,"mat-menu",null,2);E(8,sNb,8,2,"ng-template",12);L()()}a&2&&(a=b.$implicit,b=Q(7),yg("selected",a.isSelected()),Jf("id",Gg("bv2-saved-searches-search-item-",a.id)),I("title",a.name),B(),I("href",a.href,Me),B(2),
Ag(a.name),B(),I("matMenuTriggerFor",b))},uNb=function(a){a&1&&(K(0,"ul",5),Pf(1,tNb,9,8,"li",6,Of),L());a&2&&(a=P(2),B(),Qf(a.searches))},vNb=function(a){a&1&&F(0,uNb,3,0,"ul",5);a&2&&(a=P(),G(a.searches?0:-1))},wNb=function(a,b){a&1&&M(0,"mat-icon",23);a&2&&I("matBadge",b>99?"99+":b)("matBadgeHidden",b===0)("matBadgeDescription","Badge indicating "+b+" tasks need attention")},xNb=function(a){a&1&&M(0,"mat-icon",24)},yNb=function(a){a&1&&(K(0,"button",25),M(1,"mat-icon",26),L());a&2&&(P(),a=Q(10),
I("matMenuTriggerFor",a))},ANb=function(a){if(a&1){var b=t();K(0,"button",27);N("click",function(){u(b);var c=P(2);zNb(c,"MISSION_CONTROL");return v()});S(1," Set as homepage ");L()}},BNb=function(a){if(a&1){var b=t();K(0,"li",22)(1,"a",8);N("click",function(d){u(b);var e=P();e.onAnchorClick(e.missionControlPath,d);return v()});F(2,wNb,1,3,"mat-icon",23);U(3,"async");U(4,"async");Mf(5,xNb,1,0,"mat-icon",24);S(6," Home ");L();F(7,yNb,2,1,"button",25);U(8,"async");K(9,"mat-menu",null,1);E(11,ANb,2,
0,"ng-template",11);L()()}if(a&2){var c;a=P();yg("selected",!!a.location.path().match(/^\/home\b/));B();I("href",a.missionControlPath,Me);B();G((c=!W(3,5,a.hideBadgeInNav$)&&W(4,7,a.missionControlTaskCount$))?2:5,c);B(5);G(W(8,9,a.isHomepageMissionControl$)?-1:7)}},CNb=function(a){a&1&&(K(0,"button",10),M(1,"mat-icon",26),L());a&2&&(P(),a=Q(13),I("matMenuTriggerFor",a))},DNb=function(a){if(a&1){var b=t();K(0,"button",27);N("click",function(){u(b);var c=P();zNb(c,"ASSIGNED_TO_ME");return v()});S(1,
" Set as homepage ");L()}},ENb=function(a){a&1&&M(0,"nav-sidebar-triage")},FNb=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},GNb=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)},INb=function(a,b,c){b=b===void 0?"#ccc":b;c=c===void 0?400:c;HNb++;var d=156;d+=(HNb-1)*12;return function(e){e=e===void 0?b:e;var f,g=(f=document.getElementById(a))!=null?f:FNb(a,d);GNb(g,e,c)}},UNb=function(a,b){b=b===void 0?[]:b;var c=c===void 0?{}:c;if(a==null)return"(undefined)";var d=a.snapshot[0],e,f=(e=b[0])!=null?e:a.description;b=b.slice(1);b.sort(function(g,k){return k.modifiedDate-g.modifiedDate});return["## "+d.title,"ID: http://b/"+a.issueId,
"Priority: "+d.priority,"Status: "+d.status,"Modified: "+ps(a.majorModifiedTimeMicros/1E3/1E3),JNb(a),KNb(a),LNb(a,c),MNb(a),NNb(a),ONb(a),PNb(a),QNb(a),RNb(f),SNb(a),TNb(b)].filter(Boolean).join("\n").trim()+"\n\n---\n\n"},LNb=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(", ")},TNb=function(a){if(a.length!==0){var b=a.map(function(c){a:{if(c!=null){var d=VNb(c);d=WNb(d);if(d!=null){var e,f=(e=c.lastCommentEditorUser)==
null?void 0:e.emailAddress;c=ps(c.modifiedDate/1E3);c=f+": "+d+" ("+c+")";break a}}c=void 0}return c}).filter(Boolean).join("\n\n");return"\n### Comments ("+a.length+")\n"+b}},WNb=function(a,b){b=b===void 0?300:b;if(a!=null)return a=a.replaceAll(/\n/g," "),a=J9a(a,b)},VNb=function(a){var b=a.unlinkifiedComment;a=a.formattedComment;if(b)return b;if(a)return JVa(a)},RNb=function(a){if(a!=null&&(a=VNb(a),a=WNb(a,600),a!=null))return"\n### Description\n"+a},ONb=function(a){a=a.descendantCount;if(!(a<=
0))return"Descendant count: "+a},MNb=function(a){var b;a=((b=l(a.snapshot).next().value.blockingIssueId)!=null?b:[]).length;if(!(a<=0))return"Blocking "+a+" issue(s)"},NNb=function(a){var b;a=((b=l(a.snapshot).next().value.blockedByIssueId)!=null?b:[]).length;if(!(a<=0))return"Blocked by "+a+" issue(s)"},JNb=function(a){var b;return(a=((b=l(a.snapshot).next().value.assigneeUser)!=null?b:{}).emailAddress)?"Assignee: "+a:void 0},KNb=function(a){var b;return(a=((b=l(a.snapshot).next().value.reporterUser)!=
null?b:{}).emailAddress)?"Reporter: "+a:void 0},PNb=function(a){var b,c;a=(c=(b=a.aggregatedData)==null?void 0:b.voteCount)!=null?c:0;if(!(a<=0))return"Upvotes: "+a},SNb=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=ps((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+")"}},QNb=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},XNb=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():"")},YNb=function(a){a&1&&(K(0,"div",0),M(1,"router-outlet"),L())},ZNb=function(a){a&1&&(K(0,"div",0),M(1,"app-root-body"),L())},$Nb=function(){},bOb=function(a){if(a&1){var b=t();K(0,"a",8);N("keydown.enter",function(){u(b);var c=P(2);return v(aOb(c))})("keydown.space",function(){u(b);
var c=P(2);return v(aOb(c))})("click",function(){u(b);var c=P(2);return v(aOb(c))});S(1," Dismiss");L()}},cOb=function(a){a&1&&(K(0,"div",1)(1,"div",5),M(2,"span",6),F(3,bOb,2,0,"a",7),L()());a&2&&(a=P(),B(2),I("innerHtml",a.announcement.message,Le),B(),G(a.announcement.dismissible?3:-1))},eOb=function(a){if(a&1){var b=t();K(0,"b-resizable-sidebar",9,0);N("widthChanged",function(c){u(b);var d=P();return v(dOb(d,c))});M(2,"b-sidebar");L()}a&2&&(a=P(),I("size",a.sidebarWidth))},fOb=function(a){switch(a){case "COMFORTABLE":return"d-comfort";
case "COZY":return"d-cozy";case "COMPACT":return"d-compact";default:return"d-comfort"}},gOb=function(a){return new Set(a.map(function(b){return YSa(b)}))},su=function(a,b,c){return a.has(b)?c:""},hOb=function(a,b,c){return a.has(b)?c:[]},tu=function(a,b,c){return{fieldName:a,diffType:"SINGLE_VALUE",diff:{oldValue:b,newValue:c}}},kOb=function(a){if(!a)return"";var b=iOb.get(a.retentionSelection),c=a.retentionPeriodDays,d="Issue Retention: "+b;b=d;c&&(b=d+(", Days: "+c));d=jOb.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},mOb=function(a){if(!a)return"";var b=a.inherit,c=lOb.get(a.source),d=a.comment;a="Inherit: "+b+", Source: "+c+", ID: "+a.id;return d?a+(", Justification: "+d):a},nOb=function(a){return a?"Inherit: "+a.inherit+", ID: "+a.id:""},oOb=function(a,b){a&1&&(K(0,"mat-option",17),S(1),L());a&2&&(a=b.$implicit,I("value",a),B(),T(" ",a," "))},pOb=
function(a){if(a&1){var b=t();K(0,"mat-form-field",14)(1,"mat-select",16,0);N("selectionChange",function(c){u(b);var d=P(2);return v(d._changePageSize(c.value))});Pf(3,oOb,2,2,"mat-option",17,Of);L();K(5,"div",18);N("click",function(){u(b);var c=Q(2);return v(c.open())});L()()}a&2&&(a=P(2),I("appearance",a._formFieldAppearance)("color",a.color),B(),I("value",a.pageSize)("disabled",a.disabled),If("aria-labelledby",a._pageSizeLabelId),I("panelClass",a.selectConfig.panelClass||"")("disableOptionCentering",
a.selectConfig.disableOptionCentering),B(2),Qf(a._displayedPageSizeOptions))},qOb=function(a){a&1&&(K(0,"div",15),S(1),L());a&2&&(a=P(2),B(),Ag(a.pageSize))},rOb=function(a){a&1&&(K(0,"div",3)(1,"div",13),S(2),L(),F(3,pOb,6,7,"mat-form-field",14),F(4,qOb,2,1,"div",15),L());a&2&&(a=P(),B(),Jf("id",a._pageSizeLabelId),B(),T(" ",a._intl.itemsPerPageLabel," "),B(),G(a._displayedPageSizeOptions.length>1?3:-1),B(),G(a._displayedPageSizeOptions.length<=1?4:-1))},sOb=function(a){if(a&1){var b=t();K(0,"button",
19);N("click",function(){u(b);var c=P();return v(c._buttonClicked(0,c._previousButtonsDisabled()))});yd();K(1,"svg",8);M(2,"path",20);L()()}a&2&&(a=P(),I("matTooltip",a._intl.firstPageLabel)("matTooltipDisabled",a._previousButtonsDisabled())("disabled",a._previousButtonsDisabled())("tabindex",a._previousButtonsDisabled()?-1:null),Jf("aria-label",a._intl.firstPageLabel))},tOb=function(a){if(a&1){var b=t();K(0,"button",21);N("click",function(){u(b);var c=P();return v(c._buttonClicked((c.pageSize?Math.ceil(c.length/
c.pageSize):0)-1,c._nextButtonsDisabled()))});yd();K(1,"svg",8);M(2,"path",22);L()()}a&2&&(a=P(),I("matTooltip",a._intl.lastPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("disabled",a._nextButtonsDisabled())("tabindex",a._nextButtonsDisabled()?-1:null),Jf("aria-label",a._intl.lastPageLabel))},uOb=function(a){if(a&1){var b=t();K(0,"mat-paginator",3);N("page",function(c){u(b);var d=P(),e=c.pageIndex*c.pageSize;d.childrenOnPage=d.children.slice(e,e+c.pageSize);return v()});L()}a&2&&(a=P(),
I("length",a.children.length)("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions))},vOb=function(a,b){if(a&1){var c=t();K(0,"li")(1,"a",4);N("click",function(){var e=u(c).$implicit,f=P();return v(f.onVisit.emit(e))});S(2);L();K(3,"onedev-hovercard",null,0);M(5,"b-component-card",5);L()()}if(a&2){a=b.$implicit;b=Q(4);var d=P();B();I("onedevHovercardTrigger",b)("href",d.ROUTES.editComponent.makeHref(a.componentId),Me);B();T(" ",a.name," ");B(3);I("componentId",a.componentId)}},wOb=function(a){if(a&
1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P();return v(c.onClickCopyIssueShortLinks.emit())});S(1);L()}a&2&&(a=P(),B(),T(" Copy '",a.shortLinkPrefix,"'' links "))},xOb=function(a){if(a&1){var b=t();K(0,"div",2)(1,"button",3);N("click",function(){u(b);var c=P();return v(c.action())});S(2);L()()}a&2&&(a=P(),B(2),Ag(a.data.action))},yOb=function(){},zOb=function(a){if(a&1){var b=t();K(0,"a",17);N("click",function(){u(b);var c=P().$implicit;return v(c.showChildren=!1)});M(1,"mat-icon",
18);L()}},AOb=function(a){if(a&1){var b=t();K(0,"a",19);N("click",function(){u(b);var c=P().$implicit,d=P();return v(d.showChildren(c))});M(1,"mat-icon",20);L()}},BOb=function(a){a&1&&(K(0,"span"),S(1,"[Archived]"),L())},DOb=function(a){a&1&&(K(0,"a",10),S(1," (Recent Issues) "),L());if(a&2){a=P().$implicit;var b=P();I("href",b.paths.listIssues(Kg(1,COb,"status:open componentid:"+a.componentId)),Me)}},EOb=function(a){a&1&&(K(0,"a",15),S(1," Create issue "),L());if(a&2){a=P().$implicit;var b=P();I("href",
b.paths.createIssue()+"?component="+a.componentId,Me)}},FOb=function(a){a&1&&(K(0,"div",21),S(1," No child components found. "),L())},GOb=function(a){a&1&&(K(0,"div",22),M(1,"b-spinner"),L())},HOb=function(a){if(a&1){var b=t();K(0,"component-subtree-list",24);N("childClosed",function(d){u(b);var e=P(3);return v(e.onSubtreeChildClosed(d))});L()}if(a&2){a=P(2).$implicit;var c=P();I("components",a.children)("parentComponent",a)("rootController",c.rootController)("includeArchived",c.includeArchived)}},
IOb=function(a){a&1&&(K(0,"div",16),F(1,FOb,2,0,"div",21),F(2,GOb,2,0,"div",22),F(3,HOb,1,4,"component-subtree-list",23),L());a&2&&(a=P().$implicit,B(),G(a.noChildren?1:-1),B(),G(a.noChildren||a.children?-1:2),B(),G(a.children?3:-1))},JOb=function(a,b){if(a&1){var c=t();K(0,"li",2);N("click",function(d){var e=u(c).$implicit,f=P();return v(f.setSelected(e.componentId,d))});K(1,"div",3);M(2,"div",4);K(3,"div",5);F(4,zOb,2,0,"a",6)(5,AOb,2,0,"a",7);L();K(6,"div",8)(7,"div")(8,"a",9);S(9);L();F(10,BOb,
2,0,"span")(11,DOb,2,3,"a",10);M(12,"b-component-access-level-indicator",11)(13,"b-tracker-chip-smart",12);L();K(14,"div",13);S(15);L()();K(16,"div",14);F(17,EOb,2,1,"a",15);L()();F(18,IOb,4,3,"div",16);L()}a&2&&(a=b.$implicit,b=P(),I("id",Gg("component-",a.componentId)),B(4),G(a.showChildren?4:5),B(4),I("href",b.ROUTES.editComponent.makeHref(a.componentId),Me),B(),T(" ",a.name," "),B(),G(a.archived?10:11),B(2),I("accessLevel",a.accessLimit==null?null:a.accessLimit.accessLevel),B(),I("trackerId",
a.trackerId),B(2),Ag(a.description),B(2),G(a.archived?-1:17),B(),G(a.showChildren?18:-1))},KOb=function(a){if(a&1){var b=t();K(0,"a",17);N("click",function(){u(b);var c=P().$implicit;return v(c.showChildren=!1)});M(1,"mat-icon",18);L()}},LOb=function(a){if(a&1){var b=t();K(0,"a",19);N("click",function(){u(b);var c=P().$implicit,d=P();return v(d.showChildren(c))});M(1,"mat-icon",20);L()}},MOb=function(a){a&1&&(K(0,"span"),S(1,"[Archived]"),L())},OOb=function(a){a&1&&(K(0,"a",10),S(1," (Recent Issues) "),
L());if(a&2){a=P().$implicit;var b=P();I("href",b.paths.listIssues(Kg(1,NOb,"status:open componentid:"+a.componentId)),Me)}},POb=function(a){a&1&&(K(0,"a",15),S(1," Create issue "),L());if(a&2){a=P().$implicit;var b=P();I("href",b.paths.createIssue()+"?component="+a.componentId,Me)}},QOb=function(a){a&1&&(K(0,"div",21),S(1," No child components found. "),L())},ROb=function(a){a&1&&(K(0,"div",22),M(1,"b-spinner"),L())},SOb=function(a){if(a&1){var b=t();K(0,"component-subtree-list",24);N("childClosed",
function(d){u(b);var e=P(3);return v(e.onSubtreeChildClosed(d))});L()}if(a&2){a=P(2).$implicit;var c=P();I("components",a.children)("parentComponent",a)("rootController",c.rootController)("includeArchived",c.includeArchived)}},TOb=function(a){a&1&&(K(0,"div",16),F(1,QOb,2,0,"div",21),F(2,ROb,2,0,"div",22),F(3,SOb,1,4,"component-subtree-list",23),L());a&2&&(a=P().$implicit,B(),G(a.noChildren?1:-1),B(),G(a.noChildren||a.children?-1:2),B(),G(a.children?3:-1))},UOb=function(a,b){if(a&1){var c=t();K(0,
"li",2);N("click",function(d){var e=u(c).$implicit,f=P();return v(f.setSelected(e.componentId,d))});K(1,"div",3);M(2,"div",4);K(3,"div",5);F(4,KOb,2,0,"a",6)(5,LOb,2,0,"a",7);L();K(6,"div",8)(7,"div")(8,"a",9);S(9);L();F(10,MOb,2,0,"span")(11,OOb,2,3,"a",10);M(12,"b-component-access-level-indicator",11)(13,"b-tracker-chip-smart",12);L();K(14,"div",13);S(15);L()();K(16,"div",14);F(17,POb,2,1,"a",15);L()();F(18,TOb,4,3,"div",16);L()}a&2&&(a=b.$implicit,b=P(),I("id","component-"+a.componentId),B(4),
G(a.showChildren?4:5),B(4),I("href",b.ROUTES.editComponent.makeHref(a.componentId),Me),B(),T(" ",a.name," "),B(),G(a.archived?10:11),B(2),I("accessLevel",a.accessLimit==null?null:a.accessLimit.accessLevel),B(),I("trackerId",a.trackerId),B(2),Ag(a.description),B(2),G(a.archived?-1:17),B(),G(a.showChildren?18:-1))},VOb=function(a){a&1&&(K(0,"div"),S(1," Loading custom fields... "),L())},WOb=function(a){a&1&&(K(0,"div"),S(1),L());a&2&&(a=P(2),B(),T(" There are no custom fields in component ",a.selectedComponent.name,
". "))},XOb=function(a,b){a&1&&(K(0,"mat-option",6),S(1),L());a&2&&(a=b.$implicit,I("value",a),B(),T(" ",a.name," "))},YOb=function(a){if(a&1){var b=t();K(0,"div")(1,"mat-form-field",4)(2,"mat-label");S(3,"Custom field");L();K(4,"mat-select",5);N("selectionChange",function(c){u(b);var d=P(2);return v(d.fieldSelected.emit(c.value))});Pf(5,XOb,2,2,"mat-option",6,Of);L()()()}a&2&&(a=P(2),B(5),Qf(a.customFields))},ZOb=function(a){a&1&&(K(0,"div",3),F(1,VOb,2,0,"div"),F(2,WOb,2,1,"div"),F(3,YOb,7,0,"div"),
L());a&2&&(a=P(),B(),G(a.customFields==null?1:-1),B(),G(a.customFields&&!a.customFields.length?2:-1),B(),G((a.customFields==null?0:a.customFields.length)?3:-1))},$Ob=function(a){a&1&&Xf(0)},aPb=function(){},bPb=function(a){a&1&&(Vf(0),S(1),Wf());a&2&&(a=P().value,B(),Ag(a.textValue))},cPb=function(a){a&1&&M(0,"b-formatted-date-time",4);if(a&2){a=P().value;var b=P();I("date",b.toDate(a.dateValue))}},dPb=function(a){a&1&&(Vf(0),S(1),Wf());a&2&&(a=P().value,B(),Ag(a.enumValue))},ePb=function(a){a&1&&
(Vf(0),S(1),Wf());a&2&&(a=P().value,B(),Ag(a.numericValue))},fPb=function(a,b){a&1&&(Vf(0),S(1),Wf());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();Bg("",a,"",c===b-1?"":", ")}},gPb=function(a){a&1&&Pf(0,fPb,2,2,"ng-container",null,Of);a&2&&(a=P().value,Qf(a.repeatedTextValue.values))},hPb=function(a,b){a&1&&(Vf(0),M(1,"b-formatted-date-time",4),S(2),Wf());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(3);B();I("date",d.toDate(a));B();Ag(c===b-1?"":", ")}},iPb=function(a){a&1&&Pf(0,
hPb,3,2,"ng-container",null,Of);a&2&&(a=P().value,Qf(a.repeatedDateValue.values))},jPb=function(a,b){a&1&&(Vf(0),S(1),Wf());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();Bg("",a,"",c===b-1?"":", ")}},kPb=function(a){a&1&&Pf(0,jPb,2,2,"ng-container",null,Of);a&2&&(a=P().value,Qf(a.repeatedEnumValue.values))},lPb=function(a,b){a&1&&(Vf(0),S(1),Wf());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();Bg("",a,"",c===b-1?"":", ")}},mPb=function(a){a&1&&Pf(0,lPb,2,2,"ng-container",null,Of);a&2&&
(a=P().value,Qf(a.repeatedNumericValue.values))},nPb=function(a,b){a&1&&(F(0,bPb,2,1,"ng-container"),F(1,cPb,1,1,"b-formatted-date-time",4),F(2,dPb,2,1,"ng-container"),F(3,ePb,2,1,"ng-container"),F(4,gPb,2,0),F(5,iPb,2,0),F(6,kPb,2,0),F(7,mPb,2,0));a&2&&(a=b.value,b=P(),G(a.textValue!=null?0:-1),B(),G(b.isNonemptyJsonDateValue(a.dateValue)?1:-1),B(),G(a.enumValue!=null?2:-1),B(),G(a.numericValue!=null?3:-1),B(),G(a.repeatedTextValue!=null?4:-1),B(),G(a.repeatedDateValue!=null?5:-1),B(),G(a.repeatedEnumValue!=
null?6:-1),B(),G(a.repeatedNumericValue!=null?7:-1))},oPb=function(a){a&1&&(K(0,"div")(1,"p"),S(2),L()());a&2&&(a=P(),B(2),Bg(" Checking if you have permissions to mark these issues as spam. Checked ",a.issuesChecked," of ",a.issuesToFlag.length,"... "))},pPb=function(a,b){a&1&&(K(0,"li"),S(1),L());a&2&&(a=b.$implicit,B(),Bg(" ",a.issueId," - ",a.title," "))},qPb=function(a){a&1&&(K(0,"div")(1,"p"),S(2),L(),K(3,"ul"),Pf(4,pPb,2,2,"li",null,Of),L()());a&2&&(a=P(),B(2),T(" You do not have permissions to mark ",
a.protectedIssues.length," issues. These will not be flagged as spam. "),B(2),Qf(a.protectedIssues))},rPb=function(a){if(a&1){var b=t();K(0,"div",1)(1,"label");S(2);L();K(3,"onedev-single-select",4);Eg("valueChange",function(c){u(b);var d=P();Dg(d.currentEnumLabel,c)||(d.currentEnumLabel=c);return v(c)});L()()}a&2&&(a=P(),B(2),T(" ",a.effortSpecName," "),B(),Cg("value",a.currentEnumLabel),I("includeEmptyOption",!0)("options",a.allowedLabels))},sPb=function(a){if(a&1){var b=t();K(0,"mat-dialog-content")(1,
"mat-form-field")(2,"mat-label");S(3);L();K(4,"input",5);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.numericEstimatedEffort,c)||(d.numericEstimatedEffort=c);return v(c)});N("keypress",function(c){u(b);var d=P();return v(/^(\d*\.)?\d*$/.test(d.numericEstimatedEffort+c.key))});L()()()}a&2&&(a=P(),B(3),T(" ",a.effortSpecName," "),B(),Cg("ngModel",a.numericEstimatedEffort))},yPb=function(a,b){if(a&1){var c=t();K(0,"div",20,4);N("click",function(){var e=u(c).$implicit,f=P(2);tPb(f,e)||uPb(f,e);
return v()});K(2,"mat-pseudo-checkbox",21);N("click",function(e){var f=u(c).$implicit,g=P(2);e.stopPropagation();return v(vPb(g,f))});L();K(3,"span");S(4);L()()}if(a&2){a=b.$implicit;b=b.$index;var d=P(2);xg("display",d.shouldShowHotlist[a.hotlistId]?"block":"none");yg("focused",b===d.focusedRowIndex);I("title",Fg(a.name));Jf("id","hotlist-item-"+a.hotlistId)("aria-checked",wPb(d.selectedHotlistMap[a.hotlistId]))("aria-disabled",tPb(d,a));B(2);I("state",xPb(d.selectedHotlistMap[a.hotlistId]))("disabled",
tPb(d,a));B(2);T(" ",a.name," ")}},zPb=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(2),B(),T(" (",a.filterText,")"))},APb=function(a){if(a&1){var b=t();K(0,"div",22,5);N("click",function(){u(b);var c=P(2);return v(c.loadHotlist())})("keydown.enter",function(){u(b);var c=P(2);return v(c.loadHotlist())});S(2,"Load hotlist from id ");K(3,"span");S(4);L()()}a&2&&(a=P(2),yg("focused",a.focusedRowIndex===a.choices.length+1),Jf("aria-label","Load hotlist from"+a.filterText),B(4),T("(",a.filterText,
")"))},CPb=function(a){if(a&1){var b=t();K(0,"div",23,6);N("click",function(){u(b);var c=P(2);return v(BPb(c))})("keydown.enter",function(){u(b);var c=P(2);return v(BPb(c))});S(2,"Apply");L()}a&2&&(a=P(2),yg("focused",a.focusedRowIndex===a.choices.length+2))},DPb=function(a){if(a&1){var b=t();K(0,"div",11)(1,"div",15,2);Pf(3,yPb,5,12,"div",16,Of);L()();M(5,"mat-divider");K(6,"div",17,3);N("click",function(){u(b);var c=P();return v(c.createHotlist())})("keydown.enter",function(){u(b);var c=P();return v(c.createHotlist())});
S(8,"Create new hotlist ");F(9,zPb,2,1,"span");L();F(10,APb,5,4,"div",18);F(11,CPb,3,2,"div",19)}a&2&&(a=P(),B(3),Qf(a.choices),B(3),yg("focused",a.focusedRowIndex===a.choices.length),I("disabled",!a.canCreate),Jf("aria-label","Create new hotlist"+a.filterText),B(3),G(a.filterText?9:-1),B(),G(a.canLoad?10:-1),B(),G(a.pendingChanges?11:-1))},EPb=function(a){a&1&&(K(0,"li")(1,"a",1),S(2),L(),M(3,"b-issue-visibility-chip",2),L());a&2&&(a=P().$implicit,B(),I("href",Gg("issues/",a.issueId),Me),B(),T("b/",
a.issueId),B(),I("issueId",a.issueId))},FPb=function(a,b){a&1&&F(0,EPb,4,4,"li");a&2&&G(b.$implicit.type==="issue"?0:-1)},GPb=function(a){a&1&&(K(0,"li"),S(1),M(2,"b-component-access-level-indicator",3),L());a&2&&(a=P().$implicit,B(),T(" ",a.path," "),B(),I("accessLevel",a.accessLevel))},HPb=function(a,b){a&1&&F(0,GPb,3,2,"li");a&2&&G(b.$implicit.type==="component"?0:-1)},IPb=function(a){a&1&&(K(0,"div",0)(1,"div")(2,"strong"),S(3,"You are editing issues in components that may have external viewers:"),
L()(),K(4,"ul"),Pf(5,FPb,1,1,null,null,Nf),L(),S(7," within: "),K(8,"ul"),Pf(9,HPb,1,1,null,null,Nf),L()());a&2&&(a=P(),B(5),Qf(a.externalWarnings),B(4),Qf(a.externalWarnings))},KPb=function(a,b){if(a&1){var c=t();K(0,"button",12);N("click",function(){var d=u(c).$implicit,e=P(3);return v(JPb(e.issueEditBuilder,d))});S(1);L()}a&2&&(a=b.$implicit,b=P(3),I("disabled",b.issueEditBuilder.issueState==a),B(),T(" ",a.displayValue," "))},LPb=function(a){if(a&1){var b=t();K(0,"div",19)(1,"span");S(2,"Multiple");
L();K(3,"a",22);N("click",function(){u(b);var c=P(4);return v(c.issueEditBuilder.clearAssignee())});S(4,"X");L()()}},MPb=function(a){if(a&1){var b=t();K(0,"div",19)(1,"span");S(2,"Possibly multiple");L();K(3,"a",22);N("click",function(){u(b);var c=P(4);return v(c.issueEditBuilder.clearAssignee())});S(4,"X");L()()}},NPb=function(a){if(a&1){var b=t();K(0,"div")(1,"b-peoplekit-single",23);N("emailChange",function(c){u(b);var d=P(4);return v(d.setAssignee(c))})("keydown.control.enter",function(){u(b);
var c=P(4);return v(uu(c))})("keydown.meta.enter",function(){u(b);var c=P(4);return v(uu(c))});L()()}a&2&&(a=P(4),B(),I("cdkFocusInitial",a.focus===a.FocusableField.ASSIGNEE)("email",a.issueEditBuilder.commonAssignee))},PPb=function(a){if(a&1){var b=t();K(0,"div",19)(1,"span");S(2);L();K(3,"a",24);N("click",function(){u(b);var c=P(4);return v(c.issueEditBuilder.clearVerifier())});S(4,"X");L()()}a&2&&(a=P(4),yg("bv2-invalid-multiple-user-chip",!OPb(a.issueEditBuilder)),B(2),T(" Multiple ",OPb(a.issueEditBuilder)?
"":"(some unset)"," "))},QPb=function(a){if(a&1){var b=t();K(0,"div",19)(1,"span");S(2);L();K(3,"a",24);N("click",function(){u(b);var c=P(4);return v(c.issueEditBuilder.clearVerifier())});S(4,"X");L()()}a&2&&(a=P(4),yg("bv2-invalid-multiple-user-chip",!OPb(a.issueEditBuilder)),B(2),T(" Possibly multiple ",OPb(a.issueEditBuilder)?"":"(some unset)"," "))},RPb=function(a){if(a&1){var b=t();K(0,"div")(1,"b-peoplekit-single",25);N("emailChange",function(c){u(b);var d=P(4);return v(d.issueEditBuilder.commonVerifier=
c)})("keydown.control.enter",function(){u(b);var c=P(4);return v(uu(c))})("keydown.meta.enter",function(){u(b);var c=P(4);return v(uu(c))});L()()}a&2&&(a=P(4),B(),I("cdkFocusInitial",a.focus===a.FocusableField.VERIFIER)("email",a.issueEditBuilder.commonVerifier)("required",(a.issueEditBuilder.issueState==null?null:a.issueEditBuilder.issueState.status)=="VERIFIED"))},SPb=function(a){a&1&&(K(0,"div")(1,"div",14)(2,"label",18),S(3," Assignee "),L(),K(4,"div"),F(5,LPb,5,0,"div",19)(6,MPb,5,0,"div",19)(7,
NPb,2,2,"div"),L()(),K(8,"div",14)(9,"label",20),S(10," Verifier "),L(),K(11,"div"),F(12,PPb,5,3,"div",21)(13,QPb,5,3,"div",21)(14,RPb,2,3,"div"),L()()());if(a&2){var b,c;a=P(3);B(5);G((b=a.issueEditBuilder.selectedAssigneesStatus)==="MULTIPLE"?5:b==="POSSIBLY_MULTIPLE"?6:7);B(7);G((c=a.issueEditBuilder.selectedVerifiersStatus)==="MULTIPLE"?12:c==="POSSIBLY_MULTIPLE"?13:14)}},TPb=function(a){if(a&1){var b=t();K(0,"div",14)(1,"label",26);S(2," Issue ID ");L();K(3,"input",27);N("ngModelChange",function(c){u(b);
var d=P(3).issueEditBuilder;c=Q9a(c);return v(d.commonDuplicateOf=c.length===1?c[0]:"")})("keydown.control.enter",function(){u(b);var c=P(3);return v(uu(c))})("keydown.meta.enter",function(){u(b);var c=P(3);return v(uu(c))});L()()}a&2&&(a=P(3),B(3),I("ngModel",a.issueEditBuilder.commonDuplicateOf),Jf("cdkFocusInitial",a.focus===a.FocusableField.DUPE_ID||null))},UPb=function(a){if(a&1){var b=t();K(0,"div",5)(1,"button",10)(2,"span");S(3);L();M(4,"b-icon",11);L();K(5,"mat-menu",null,2)(7,"button",12);
N("click",function(){u(b);var d=P(2);return v(d.issueEditBuilder.issueState=void 0)});S(8,"No change ");L();Pf(9,KPb,2,2,"button",13,Of);L();K(11,"div");F(12,SPb,15,2,"div")(13,TPb,4,2,"div",14);L();K(14,"div")(15,"b-comment-box",15);N("onSubmit",function(){u(b);var d;(d=P(2).matDialogRef)==null||d.close(!0);return v()});L()();M(16,"div",16)(17,"b-external-warnings",17);L()}if(a&2){a=Q(6);var c=P(2);B();I("matMenuTriggerFor",a);B(2);Ag(c.issueEditBuilder.issueState?c.issueEditBuilder.issueState.displayValue:
"No change");B(4);I("disabled",!c.issueEditBuilder.issueState);B(2);Qf(c.issueStates);B(3);G((!c.issueEditBuilder.issueState||c.issueEditBuilder.issueState.status!=="DUPLICATE")===!0?12:13);B(3);I("comment",c.issueEditBuilder.comment)("showToolbar",!1)("isLiteralModeSupported",!0);B(2);I("externalWarnings",c.externalWarnings)}},VPb=function(a){if(a&1){var b=t();K(0,"div",6)(1,"b-recaptcha",28);N("onUpdate",function(c){u(b);var d=P(2);return v(d.issueEditBuilder.recaptchaResponse=c)});L()()}},XPb=
function(a){a&1&&(K(0,"form",null,1)(2,"h1",3),S(3,"Change issue status"),L(),K(4,"div",4)(5,"span"),S(6,"Enter updated issue status information below"),L(),F(7,UPb,18,8,"div",5),L(),F(8,VPb,2,0,"div",6),K(9,"div",7)(10,"button",8),S(11," Cancel "),L(),K(12,"button",9),S(13," Save "),L()()());a&2&&(a=P(),B(7),G(a.issueEditBuilder?7:-1),B(),G(a.issueEditBuilder&&a.enableRecaptcha?8:-1),B(2),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0)("disabled",!WPb(a)))},ZPb=function(a){if(a&1){var b=t();
K(0,"b-app-bar-bulk-edit-menus",6);U(1,"async");N("onBulkEdit",function(d){u(b);var e=P();return v(e.bulkEdit(d))})("onQuickBulkEdit",function(d){u(b);var e=P();return v(e.quickBulkEdit(d))})("onBulkEditIssueRelation",function(d){u(b);var e=P();return v(e.bulkEditIssueRelation(d))})("onBulkMarkIssueRead",function(){u(b);var d=P();return v(d.bulkMarkIssueRead())});L()}if(a&2){a=P();var c;I("readStatePrompt",YPb(a))("enableBulkEstimatedEffortOption",(c=W(1,2,a.enableBulkEstimatedEffortOption$))!=null?
c:!1)}},cQb=function(a){if(a&1){var b=t();K(0,"b-copy-issue-id-button",7);N("onClickCopyIssueIds",function(){u(b);var c=P();return v($Pb(c.copyIssueIdService,vu(c)))})("onClickCopyIssueShortLinks",function(){u(b);var c=P();return v(aQb(c.copyIssueIdService,vu(c)))})("onClickCopyAsIssueSearch",function(){u(b);var c=P();return v(bQb(c.copyIssueIdService,vu(c)))});L()}a&2&&(a=P(),I("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},
dQb=function(a){if(a&1){var b=t();K(0,"div",3)(1,"b-hotlist-picker",8);N("onApply",function(c){u(b);var d=P();return v(d.handleHotlistPickerSave(c))})("onCreate",function(c){u(b);var d=P();return v(d.onCreateHotlist.emit(c))})("onLoad",function(c){u(b);var d=P();return v(d.onLoadHotlist.emit(c))});L()()}a&2&&(a=P(),B(),I("selectedHotlistIds",a.hotlistIdMatrix)("choices",a.hotlistChoices))},fQb=function(a){if(a&1){var b=t();K(0,"b-comment-box",15);Eg("commentChange",function(c){u(b);var d=P(2);Dg(d.comment,
c)||(d.comment=c);return v(c)});N("onSubmit",function(){u(b);var c=P(2);return v(eQb(c))});L()}a&2&&(a=P(2),Cg("comment",a.comment),I("showToolbar",!1)("isLiteralModeSupported",!0))},gQb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"b-recaptcha",16);N("onUpdate",function(c){u(b);var d=P(2);return v(d.recaptchaResponse=c)});L()()}},hQb=function(a){a&1&&(K(0,"h1",9),S(1,"Add comment"),L(),K(2,"mat-dialog-content"),F(3,fQb,1,3,"b-comment-box",10),M(4,"b-external-warnings",11),L(),F(5,gQb,2,0,"div",
12),K(6,"mat-dialog-actions")(7,"button",13),S(8," Cancel "),L(),K(9,"button",14),S(10," Save "),L()());a&2&&(a=P(),B(3),G(a.comment?3:-1),B(),I("externalWarnings",a.externalWarnings),B(),G(a.enableRecaptcha?5:-1),B(2),I("mat-dialog-close",!1),B(2),I("disabled",a.enableRecaptcha&&a.recaptchaResponse==="")("mat-dialog-close",!0))},iQb=function(a){a&1&&M(0,"tr",16)},jQb=function(a){a&1&&M(0,"tr",17)},kQb=function(a){a&1&&(K(0,"th",18),S(1,"User"),L())},lQb=function(a,b){a&1&&(K(0,"div",20),M(1,"b-user-image",
21)(2,"b-user-display-name",22),L());a&2&&(a=P(2),B(),I("email",a.userToLossyEmail(b)),B(),I("user",b)("hovercardFocusEnabled",!0)("availabilityChipEnabled",!1))},mQb=function(a,b){a&1&&(K(0,"td",19),F(1,lQb,3,4,"div",20),L());if(a&2){var c;a=b.$implicit;B();G((c=a[0].user.user)?1:-1,c)}},nQb=function(a){a&1&&(K(0,"th",18)(1,"span",23),S(2," Role "),M(3,"b-icon",24),L()());a&2&&(P(),a=dg(10),B(3),I("matTooltip",a),Jf("aria-label",a))},oQb=function(a,b){a&1&&(K(0,"mat-option",26),S(1),L());a&2&&(a=
b.$implicit,I("value",a.value),B(),Ag(a.displayText))},sQb=function(a,b){if(a&1){var c=t();K(0,"td",19)(1,"mat-select",25);N("selectionChange",function(d){var e=u(c).$implicit,f=P();return v(pQb(f,e[0],d.value))});K(2,"mat-select-trigger");S(3);L();Pf(4,oQb,2,2,"mat-option",26,qQb);U(6,"async");L()()}a&2&&(a=b.$implicit,b=P(),B(),I("disabled",!b.isAllowedToEdit)("value",a[0].user.role),B(2),T(" ",rQb(a[0])," "),B(),Qf(W(6,3,b.roleOptions$)))},tQb=function(a){a&1&&(K(0,"th",18)(1,"span",27),S(2," Lead "),
M(3,"b-icon",24),L()());a&2&&(P(),a=dg(14),B(3),I("matTooltip",a),Jf("aria-label",a))},vQb=function(a,b){if(a&1){var c=t();K(0,"td",19)(1,"mat-checkbox",28);N("change",function(e){var f=u(c).$implicit,g=P();return v(uQb(g,f[0],e.checked))});L()()}if(a&2){a=b.$implicit;b=P();var d="Click to "+(a[0].user.isLead?"unset ":"set ")+a[0].user.user.emailAddress+" as a lead for this issue.";B();If("aria-label",Fg(d));I("checked",a[0].user.isLead)("disabled",!b.isAllowedToEdit)}},wQb=function(a){a&1&&(K(0,
"th",18)(1,"span",29),S(2," Involvement "),M(3,"b-icon",24),L()());a&2&&(P(),a=dg(18),B(3),I("matTooltip",a),Jf("aria-label",a))},xQb=function(a,b){a&1&&(K(0,"mat-option",26),S(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),Ag(a.displayText))},zQb=function(a,b){if(a&1){var c=t();K(0,"td",19)(1,"mat-select",30);N("selectionChange",function(d){var e=u(c).$implicit,f=P();return v(yQb(f,e,e[0],d.value))});Pf(2,xQb,2,2,"mat-option",26,qQb);K(4,"mat-option",26);S(5,"Percentage");L()()()}a&2&&(a=b.$implicit,
b=P(),B(),I("disabled",!b.isAllowedToEdit)("value",a[0].allocation.involvement),B(),Qf(b.involvementOptions),B(2),I("value",b.Involvement.INVOLVEMENT_UNSPECIFIED))},AQb=function(a){a&1&&(K(0,"th",18)(1,"span",31),S(2," Involvement "),M(3,"b-icon",24),L()());a&2&&(P(),a=dg(22),B(3),I("matTooltip",a),Jf("aria-label",a))},DQb=function(a){if(a&1){var b=t();K(0,"button",33,0);N("click",function(){u(b);var d=P().$implicit,e=P();return v(BQb(e,d[0]))});S(2);M(3,"mat-icon",34);L()}if(a&2){a=P().$implicit;
var c=P();I("disabled",!c.isAllowedToEdit);B(2);T(" ",CQb(a[0])," ")}},EQb=function(a,b){a&1&&(K(0,"mat-option",26),S(1),L());a&2&&(a=b.$implicit,I("value",a.displayText),B(),Ag(a.displayText))},GQb=function(a){if(a&1){var b=t();K(0,"input",35,1);Eg("ngModelChange",function(d){u(b);var e=P(2);Dg(e.allocationFromInputPlain,d)||(e.allocationFromInputPlain=d);return v(d)});N("keydown",function(d){u(b);var e=P().$implicit,f=P();return v(wu(f,e,d))})("input",function(){u(b);var d=P(2);return v(d.allocationInputChanges$.next(d.allocationFromInputPlain||
""))})("blur",function(d){u(b);var e=P().$implicit,f=P();d.relatedTarget&&wu(f,e);return v()});L();K(2,"mat-autocomplete",36,2);N("optionSelected",function(d){u(b);var e=P().$implicit,f=P();f.allocationFromInputPlain=Go[d.option.value];wu(f,e);return v()});Pf(4,EQb,2,2,"mat-option",26,FQb);L()}if(a&2){a=Q(3);var c=P(2);I("matAutocomplete",a);Cg("ngModel",c.allocationFromInputPlain);I("disabled",!c.isAllowedToEdit);B(4);Qf(c.involvementOptions)}},HQb=function(a,b){a&1&&(K(0,"td",19),F(1,DQb,4,2,"button",
32)(2,GQb,6,3),L());a&2&&(a=b.$implicit,b=P(),B(),G(b.allocationUnderEdit===a[0]?2:1))},IQb=function(a){a&1&&(K(0,"th",18),S(1),M(2,"b-icon",24),L());if(a&2){var b=P();a=b.$implicit;b=b.$index;var c=dg(1);zg(Gg("timebound-allocation ",b%2===1?"blue":""));B();T(" ",a.displayText," ");B();I("matTooltip",c);Jf("aria-label",c)}},JQb=function(a){if(a&1){var b=t();K(0,"button",42,0);N("click",function(){u(b);P(2);var d=dg(1),e=P(2);return v(BQb(e,d))});S(2);M(3,"mat-icon",34);L()}if(a&2){P(2);a=dg(1);var c=
P(2);I("disabled",!c.isAllowedToEdit);B(2);T(" ",CQb(a)," ")}},KQb=function(a,b){a&1&&(K(0,"mat-option",26),S(1),L());a&2&&(a=b.$implicit,I("value",a.displayText),B(),Ag(a.displayText))},MQb=function(a){if(a&1){var b=t();K(0,"input",43,1);Eg("ngModelChange",function(d){u(b);var e=P(4);Dg(e.allocationFromInputPlain,d)||(e.allocationFromInputPlain=d);return v(d)});N("keydown",function(d){u(b);var e=P(2).$implicit,f=P(2);return v(wu(f,e,d))})("keyup",function(){u(b);var d=P(4);return v(LQb(d))})("blur",
function(d){u(b);var e=P(2).$implicit,f=P(2);d.relatedTarget&&wu(f,e);return v()});L();K(2,"mat-autocomplete",36,2);N("optionSelected",function(d){u(b);var e=P(2).$implicit,f=P(2);f.allocationFromInputPlain=Go[d.option.value];wu(f,e);return v()});Pf(4,KQb,2,2,"mat-option",26,FQb);L()}if(a&2){a=Q(3);var c=P(4);I("matAutocomplete",a);Cg("ngModel",c.allocationFromInputPlain);I("disabled",!c.isAllowedToEdit);B(4);Qf(c.involvementOptions)}},NQb=function(a){a&1&&F(0,JQb,4,2,"button",41)(1,MQb,6,3);if(a&
2){P();a=dg(1);var b=P(2);G(b.allocationUnderEdit===a?1:0)}},OQb=function(a,b){a&1&&(K(0,"mat-option",26),S(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),Ag(a.displayText))},PQb=function(a){if(a&1){var b=t();K(0,"mat-select",30);N("selectionChange",function(d){u(b);var e=P().$implicit,f=dg(1),g=P(2);return v(yQb(g,e,f,d.value))});Pf(1,OQb,2,2,"mat-option",26,qQb);K(3,"mat-option",26);S(4,"Percentage");L()()}if(a&2){P();a=dg(1);var c=P(2);I("disabled",!c.isAllowedToEdit)("value",a.allocation==
null?null:a.allocation.involvement);B();Qf(c.involvementOptions);B(2);I("value",c.Involvement.INVOLVEMENT_UNSPECIFIED)}},QQb=function(a,b){a&1&&(K(0,"td",39),bg(1),F(2,NQb,2,1)(3,PQb,5,3,"mat-select",40),L());if(a&2){a=b.$implicit;b=P();var c=b.$implicit;zg(Gg("timebound-allocation ",b.$index%2===1?"blue":""));B();cg(c.extractPlannedAllocation(a));B();G(c.displayInvolvementAsPercentage?2:3)}},RQb=function(a,b){a&1&&(Vf(0,14),bg(1),E(2,IQb,3,6,"th",37)(3,QQb,4,5,"td",38),Wf());a&2&&(a=b.$implicit,
I("matColumnDef",a.columnDef),B(),cg("Set the involvement level of people\n        allocated to this issue during "+a.displayText+". Zero involvement levels are\n        useful when a person is either not involved during this quarter or the person is involved in\n        the work but does not spend a significant portion of their time on it."))},SQb=function(a){a&1&&(K(0,"th",18),S(1,"Delete"),L())},UQb=function(a){if(a&1){var b=t();K(0,"td",19)(1,"button",44);N("click",function(){var c=u(b).$implicit,
d=P();return v(TQb(d,c[0]))});M(2,"mat-icon",45);L()()}a&2&&(a=P(),B(),I("disabled",!a.isAllowedToEdit))},VQb=function(a,b){a&1&&(K(0,"span",5)(1,"mat-option",11)(2,"span",12),S(3),L()()());a&2&&(a=b.$implicit,I("matTooltip","The "+a.displayText+" role has already been allocated.")("matTooltipDisabled",!a.disabled),B(),I("value",a.value)("disabled",a.disabled),B(2),T(" ",a.displayText," "))},WQb=function(a){a&1&&(K(0,"mat-error"),S(1," Must be an integer between 1 and 300,000. "),L())},XQb=function(a){a&
1&&(K(0,"b-callout",2)(1,"b-callout-body"),S(2," You do not have edit access "),L()())},ZQb=function(a,b){if(a&1){var c=t();K(0,"b-placeholder-chip",15);N("editPlaceholder",function(){var e=u(c).$implicit,f=P(),g=dg(6);return v(YQb(f,g,e.role))})("removePlaceholder",function(){var e=u(c).$implicit,f=P();return v(f.removePlaceholder(e))});L()}if(a&2){a=b.$implicit;b=P();var d=dg(2);I("placeholder",a)("isAllowedToEdit",b.isAllowedToEdit&&!d)}},$Qb=function(a){var b=a.assigneeUser===a.currentUserEmail,
c=a.verifierUser===a.currentUserEmail,d,e=!((d=a.collaboratorsUsers)==null||!d.some(function(g){return g===a.currentUserEmail})),f;d=!((f=a.ccUsers)==null||!f.some(function(g){return g===a.currentUserEmail}));return!b&&!c&&!e&&!d},aRb=function(a){a&1&&(K(0,"span"),S(1,"Cancel"),L())},bRb=function(a){a&1&&(K(0,"span"),S(1,"Edit"),L())},hRb=function(a){if(a&1){var b=t();K(0,"td")(1,"div")(2,"div",16);S(3);L();K(4,"div",17)(5,"a",18);S(6);L()()()();K(7,"td",12)(8,"mat-radio-button",19);N("change",function(d){u(b);
var e=P(2);return v(cRb(e,d.value))});L()();K(9,"td",12)(10,"b-button",20);N("onAction",function(){u(b);var d=P().$implicit,e=P();return v(e.toggleRow(d))});F(11,aRb,2,0,"span")(12,bRb,2,0,"span");L()();K(13,"td",12)(14,"b-button",21);N("onAction",function(){u(b);var d=P().$implicit,e=P();return v(dRb(e,d))});S(15," Delete ");L()()}if(a&2){a=P().$implicit;var c=P();B(2);yg("selected",eRb(c,a));B();T(" ",a.name," ");B(2);I("href",fRb(c,a),Me);Jf("aria-label",a.name+"- Click to create a new issue");
B();T(" ",fRb(c,a)," ");B(2);I("id",Gg("template-default-radio-",a.index))("checked",c.defaultIndex===a.index);If("aria-label","Make template "+a.name+" as default template");I("value",a.index);B(2);I("bAriaLabel",eRb(c,a)?"Cancel editing "+a.name:"Edit "+a.name);B();G(eRb(c,a)?11:12);B(3);I("bAriaLabel","Delete "+a.name)("disabled",!gRb(c,a))}},iRb=function(a){a&1&&(K(0,"h2",23),S(1," Create Template "),L())},jRb=function(a){a&1&&(K(0,"h2",23),S(1),L());a&2&&(a=P(2).$implicit,B(),Bg(' Edit template "',
a.name,'" ',a.editableTemplate.isDirty()?"(changed)":""," "))},kRb=function(a,b){a&1&&(K(0,"mat-option",82),S(1),L());a&2&&(a=b.$implicit,I("value",Fg(a)),B(),T(" ",a," "))},lRb=function(a){if(a&1){var b=t();K(0,"div",38)(1,"div",25)(2,"label",78);S(3,"Collaborator Groups");L();M(4,"mat-icon",79);L();K(5,"mat-form-field",80)(6,"mat-select",81);Eg("ngModelChange",function(d){u(b);var e=P(2).$implicit;Dg(e.editableTemplate.collaboratorGroups,d)||(e.editableTemplate.collaboratorGroups=d);return v(d)});
N("ngModelChange",function(){u(b);P(2).$implicit.editableTemplate.dirty=!0;return v()});K(7,"mat-select-trigger");S(8);L();Pf(9,kRb,2,3,"mat-option",82,Of);L()()()}if(a&2){a=P(2).$implicit;var c=P();B(4);I("matTooltip",Fg(c.COLLABORATOR_GROUPS_TOOLTIP));B(2);Cg("ngModel",a.editableTemplate.collaboratorGroups);B(2);T(" ",a.editableTemplate.getCollaboratorGroupsString()," ");B();Qf(c.trackerCollaboratorGroups)}},nRb=function(a,b){if(a&1){var c=t();K(0,"button",83);N("click",function(){var e=u(c).$implicit,
f=P(2).$implicit,g=P();f.issueType=e.value;return v(mRb(g))});S(1);L()}if(a&2){a=b.$implicit;b=P(2).$implicit;var d;I("disabled",b.issueType===a.value)("matTooltip",(d=a.altText)!=null?d:"");B();T(" ",a.displayText," ")}},oRb=function(a,b){if(a&1){var c=t();K(0,"button",84);N("click",function(){var d=u(c).$implicit,e=P(2).$implicit;e.editableTemplate.priority=d.value;e.editableTemplate.dirty=!0;return v()});S(1);L()}a&2&&(a=b.$implicit,b=P(2).$implicit,I("disabled",b.editableTemplate.priority===a.value),
B(),T(" ",a.displayText," "))},pRb=function(a,b){if(a&1){var c=t();K(0,"button",84);N("click",function(){var d=u(c).$implicit,e=P(2).$implicit;e.editableTemplate.severity=d.value;e.editableTemplate.dirty=!0;return v()});S(1);L()}a&2&&(a=b.$implicit,b=P(2).$implicit,I("disabled",b.editableTemplate.severity===a.value),B(),T(" ",a.displayText," "))},qRb=function(a,b){if(a&1){var c=t();K(0,"div",55)(1,"b-hotlist-chip",85);N("removeHotlist",function(){var d=u(c).$implicit,e=P(3);return v(e.removeHotlist(d.hotlistId))});
L()()}a&2&&(a=b.$implicit,B(),I("hotlist",a))},rRb=function(a){if(a&1){var b=t();bg(0);U(1,"staffingSummary");K(2,"div",72)(3,"div",25)(4,"label",86);S(5,"Staffing");L();M(6,"mat-icon",87);L();K(7,"button",88);N("click",function(){u(b);var c=P(3);return v(c.editStaffing())});K(8,"span",89);S(9);L();M(10,"div",90);L()()}a&2&&(a=P(2).$implicit,a=W(1,2,a.editableTemplate.staffing==null?null:a.editableTemplate.staffing.plannedAllocations),B(7),Jf("aria-label","Staffing: "+a),B(2),T(" ",a," "))},sRb=function(a){a&
1&&(K(0,"h3"),S(1,"Custom issue fields"),L())},tRb=function(a){if(a&1){var b=t();K(0,"input",97);Eg("ngModelChange",function(d){u(b);var e=P().$implicit,f=P(2).$implicit;Dg(f.editableTemplate.customFieldValues[e.id].textValue,d)||(f.editableTemplate.customFieldValues[e.id].textValue=d);return v(d)});N("ngModelChange",function(){u(b);P(3).$implicit.editableTemplate.dirty=!0;return v()});L()}if(a&2){a=P().$implicit;var c=P(2).$implicit;Jf("id",Gg("template-cf-",a.id));Cg("ngModel",c.editableTemplate.customFieldValues[a.id].textValue)}},
uRb=function(a){if(a&1){var b=t();K(0,"input",98);Eg("ngModelChange",function(d){u(b);var e=P().$implicit,f=P(2).$implicit;Dg(f.editableTemplate.customFieldValues[e.id].numericValue,d)||(f.editableTemplate.customFieldValues[e.id].numericValue=d);return v(d)});N("ngModelChange",function(){u(b);P(3).$implicit.editableTemplate.dirty=!0;return v()});L()}if(a&2){a=P().$implicit;var c=P(2).$implicit;Jf("id",Gg("template-cf-",a.id));Cg("ngModel",c.editableTemplate.customFieldValues[a.id].numericValue)}},
wRb=function(a){if(a&1){var b=t();K(0,"b-edit-field",99);N("valueChange",function(g){u(b);var k=P().$implicit,m=P(2).$implicit,r=P();return v(r.setCustomField(m,k.id,g))});L()}if(a&2){a=P().$implicit;var c=P(2).$implicit,d=P();Jf("id",Gg("template-cf-",a.id));var e,f;I("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:Jg(7,vRb))}},
xRb=function(a){if(a&1){var b=t();K(0,"bv2-input-date-picker",100);N("boundValueChange",function(e){u(b);var f=P().$implicit,g=P(2).$implicit,k=P();return v(g.editableTemplate.customFieldValues[f.id].dateValue=k.getDateValue(e))})("boundValueChange",function(){u(b);P(3).$implicit.editableTemplate.dirty=!0;return v()});L()}if(a&2){a=P().$implicit;var c=P(2).$implicit;Jf("id",Gg("template-cf-",a.id));var d;I("boundValue",(d=c.editableTemplate.customFieldValues[a.id].dateValue)!=null?d:void 0)}},zRb=
function(a){if(a&1){var b=t();K(0,"b-list-field",101);N("valuesChange",function(e){u(b);var f=P().$implicit,g=P(2).$implicit,k=P();return v(k.setCustomField(g,f.id,e.values))});L()}if(a&2){a=P().$implicit;var c=P(2).$implicit,d=P();Jf("id",Gg("template-cf-",a.id));I("defaultLineCount",2)("type",d.getListFieldType(a.type))("values",yRb(c.editableTemplate.customFieldValues[a.id]))("enumChoices",a.enumFields)("truncate",!0)}},ARb=function(a,b){a&1&&(K(0,"div")(1,"div",25)(2,"label",91),S(3),L()(),K(4,
"div"),F(5,tRb,1,3,"input",92)(6,uRb,1,3,"input",93)(7,wRb,1,8,"b-edit-field",94)(8,xRb,1,3,"bv2-input-date-picker",95)(9,zRb,1,7,"b-list-field",96),L()());if(a&2){var c;a=b.$implicit;zg(Gg("cell-",a.cellType));B(2);I("for",Gg("template-cf-",a.id));B();Bg("",a.name," (id=",a.id,")");B(2);G((c=a.type)==="TEXT"?5:c==="NUMERIC"?6:c==="ENUM"?7:c==="DATE"?8:9)}},GRb=function(a){if(a&1){var b=t();K(0,"td",15)(1,"div",22);F(2,iRb,2,0,"h2",23)(3,jRb,2,2,"h2",23);K(4,"div",24)(5,"div",25)(6,"label",26);S(7,
"Template Name");L()();K(8,"input",27);Eg("ngModelChange",function(g){u(b);var k=P().$implicit;Dg(k.editableTemplate.name,g)||(k.editableTemplate.name=g);return v(g)});N("ngModelChange",function(){u(b);P().$implicit.editableTemplate.dirty=!0;return v()});L()();K(9,"div",24)(10,"b-slide-toggle",28);N("modelChange",function(){u(b);var g=P().$implicit.editableTemplate;g.inheritable=!g.inheritable;g.dirty=!0;return v()});L();K(11,"span",25)(12,"label",29);S(13,"Inherited by all child components");L();
M(14,"mat-icon",30);L()();K(15,"div",24)(16,"div",25)(17,"label",31);S(18,"Description of Template");L()();K(19,"input",32);Eg("ngModelChange",function(g){u(b);var k=P().$implicit;Dg(k.editableTemplate.description,g)||(k.editableTemplate.description=g);return v(g)});N("ngModelChange",function(){u(b);P().$implicit.editableTemplate.dirty=!0;return v()});L()();K(20,"div",33)(21,"h3");S(22," Standard issue fields ");L();K(23,"div",34)(24,"div",35)(25,"div",25)(26,"label",36);S(27,"Issue Access Level");
L()();K(28,"b-issue-access-limits-dropdown",37);N("updatedAccessLimitLevel",function(g){u(b);var k=P().$implicit;return v(k.editableTemplate.onAccessLimitLevelSelected(g))});L()();F(29,lRb,11,4,"div",38);L();K(30,"div",24)(31,"div",25)(32,"label",39);S(33,"Title");L()();K(34,"input",40);Eg("ngModelChange",function(g){u(b);var k=P().$implicit;Dg(k.editableTemplate.title,g)||(k.editableTemplate.title=g);return v(g)});N("ngModelChange",function(){u(b);P().$implicit.editableTemplate.dirty=!0;return v()});
L()();K(35,"div",41)(36,"div",25)(37,"label",42);S(38,"Type");L()();K(39,"button",43)(40,"span");S(41);L();M(42,"b-icon",44);L();K(43,"mat-menu",45,2);Pf(45,nRb,2,3,"button",46,Of);L()();K(47,"div",41)(48,"div",25)(49,"label",47);S(50,"Priority");L()();K(51,"button",48)(52,"span");S(53);L();M(54,"b-icon",44);L();K(55,"mat-menu",45,3);Pf(57,oRb,2,2,"button",49,Of);L()();K(59,"div",41)(60,"div",25)(61,"label",50);S(62,"Severity");L()();K(63,"button",51)(64,"span");S(65);L();M(66,"b-icon",44);L();K(67,
"mat-menu",45,4);Pf(69,pRb,2,2,"button",49,Of);L()();K(71,"div",52)(72,"div",25)(73,"label",53);S(74,"Default Hotlists");L()();K(75,"b-hotlist-picker",54);N("onApply",function(g){u(b);var k=P(2);return v(k.handleHotlistPickerSave(g))})("onCreate",function(g){u(b);var k=P(2);return v(k.createHotlist(g))})("onLoad",function(g){u(b);var k=P(2);return v(k.loadHotlist(g))});L();Pf(76,qRb,2,1,"div",55,Of);L();M(78,"div",56);K(79,"div",57)(80,"div",25)(81,"label",58);S(82,"Assignee");L()();K(83,"b-peoplekit-single",
59);N("emailChange",function(g){u(b);var k=P().$implicit,m=P();return v(m.handleAutocompleteSelection(g,k,"assignee"))});L()();K(84,"div",57)(85,"div",25)(86,"label",60);S(87,"Verifier");L()();K(88,"b-peoplekit-single",61);N("emailChange",function(g){u(b);var k=P().$implicit,m=P();return v(m.handleAutocompleteSelection(g,k,"verifier"))});L()();K(89,"div",24)(90,"div",25)(91,"label",62);S(92,"Collaborators");L();M(93,"mat-icon",63);L();K(94,"b-peoplekit-multi",64,5);N("valueChange",function(g){u(b);
var k=P().$implicit;return v(BRb(k.editableTemplate,g))});L()();K(96,"div",24)(97,"div",25)(98,"label",65);S(99,"CC");L()();K(100,"b-peoplekit-multi",66,6);N("valueChange",function(g){u(b);var k=P().$implicit;return v(CRb(k.editableTemplate,g))});L()();K(102,"div",24)(103,"div",25)(104,"label",67);S(105,"Initial Comment");L()();K(106,"textarea",68);Eg("ngModelChange",function(g){u(b);var k=P().$implicit;Dg(k.editableTemplate.comment,g)||(k.editableTemplate.comment=g);return v(g)});N("ngModelChange",
function(){u(b);P().$implicit.editableTemplate.dirty=!0;return v()});S(107,"                  ");L();K(108,"b-markdown-toggle",69);N("change",function(g){u(b);var k=P().$implicit;return v(k.editableTemplate.setFormattingMode(g))});L()();K(109,"div",24)(110,"div",25)(111,"label",70);S(112,"In Prod");L()();K(113,"b-slide-toggle",71);N("modelChange",function(){u(b);var g=P().$implicit.editableTemplate;g.inProd=!g.inProd;g.dirty=!0;return v()});L()();F(114,rRb,11,4,"div",72);L();K(115,"div",73);F(116,
sRb,2,0,"h3");Pf(117,ARb,10,8,"div",74,Of);L();K(119,"div",75)(120,"b-button",76);N("onAction",function(){u(b);var g=P(2);return v(DRb(g))});S(121," Save ");L();K(122,"b-button",77);N("onAction",function(){u(b);var g=P(2);return v(ERb(g))});S(123," Cancel ");L()()()()}if(a&2){a=Q(44);var c=Q(56),d=Q(68),e=P().$implicit,f=P();B(2);G(e.editableTemplate.new?2:3);B(6);Cg("ngModel",e.editableTemplate.name);B(2);I("model",e.editableTemplate.inheritable);B(9);Cg("ngModel",e.editableTemplate.description);
B(9);I("disabled",!1)("defaultAccessLimitLevel",e.editableTemplate.issueAccessLimitLevel)("implicitAccessEnabled",f.implicitAccessEnabled);B();G(f.trackerCollaboratorGroups.length?29:-1);B(5);Cg("ngModel",e.editableTemplate.title);B(5);I("matMenuTriggerFor",a);B(2);Ag(FRb(e.issueType));B(2);I("overlapTrigger",!0);B(2);Qf(f.issueTypeChoices);B(6);I("matMenuTriggerFor",c);B(2);Ag(e.editableTemplate.priority);B(2);I("overlapTrigger",!0);B(2);Qf(f.priorityChoices);B(6);I("matMenuTriggerFor",d);B(2);Ag(e.editableTemplate.severity);
B(2);I("overlapTrigger",!0);B(2);Qf(f.severityChoices);B(6);I("selectedHotlistIds",f.selectedHotlistIds)("choices",f.hotlists);B();Qf(f.selectedHotlists);B(7);I("ariaLabel","The user assigned to this issue")("email",e.editableTemplate.assignee);B(5);I("ariaLabel","The user who will verify this issue")("email",e.editableTemplate.verifier);B(6);I("ariaLabel","Addition to Collaborators")("value",e.editableTemplate.collaborators.join(", "));B(6);I("ariaLabel","Addition to CCs")("value",e.editableTemplate.cc.join(", "));
B(6);Cg("ngModel",e.editableTemplate.comment);B(2);I("initialValue",e.editableTemplate.formattingMode);B(5);I("model",e.editableTemplate.inProd);B();G(f.sessionIsInternal?114:-1);B(2);G(f.customFieldRows.length>0?116:-1);B();Qf(f.customFieldRows);B(3);I("disabled",!e.editableTemplate.isDirty())}},HRb=function(a,b){a&1&&(K(0,"tr"),F(1,hRb,16,15)(2,GRb,124,34,"td",15),L());a&2&&(a=b.$implicit,B(),G(a.editableTemplate?2:1))},IRb=function(a){a&1&&(K(0,"tr")(1,"td",15)(2,"div",102)(3,"strong"),S(4,"Templates inherited from parent components"),
L()()()())},JRb=function(a){a&1&&(Vf(0),M(1,"b-component-card",108,8),Wf());if(a&2){a=Q(2);var b=P().$implicit;B();I("onedevIsHovercardReady",a.init)("componentId",b.componentId)}},KRb=function(a,b){if(a&1){var c=t();K(0,"tr")(1,"td")(2,"div")(3,"div",16);S(4);L();K(5,"div",17)(6,"a",18);S(7);L()()()();K(8,"td",12)(9,"mat-radio-button",19);N("change",function(e){u(c);var f=P(2);return v(cRb(f,e.value))});L()();K(10,"td",103)(11,"div",104)(12,"div",105);S(13,"Inherited From");L();K(14,"a",106);S(15);
L();K(16,"onedev-hovercard",null,7);E(18,JRb,3,2,"ng-container",107);L()()()()}if(a&2){a=b.$implicit;b=Q(17);var d=P(2);B(3);yg("selected",eRb(d,a));B();T(" ",a.name," ");B(2);I("href",fRb(d,a),Me);Jf("aria-label",a.name+"- Click to create a new issue");B();T(" ",fRb(d,a)," ");B(2);I("id",Gg("template-default-radio-",a.index))("checked",d.defaultIndex===a.index);If("aria-label","Make template "+a.name+" as default template");I("value",a.index);B(5);I("onedevHovercardTrigger",b)("href",d.ROUTES.editComponentTemplates.makeHref(a.componentId),
Me);Jf("aria-label","Inherited from "+d.componentIdsToPaths[a.componentId]);B();T(" ",d.componentIdsToPaths[a.componentId]," ")}},LRb=function(a,b){a&1&&(F(0,IRb,5,0,"tr"),Pf(1,KRb,19,15,"tr",null,Of));a&2&&(G(b.length?0:-1),B(),Qf(b))},MRb=function(a,b){a&1&&(K(0,"div",109),S(1),L(),K(2,"div",110)(3,"button",111),S(4," Cancel "),L(),K(5,"button",112),S(6," Confirm "),L()());a&2&&(a=b.$implicit,B(),T(' Are you sure you want to delete the template "',a.name,'"? '),B(2),I("mat-dialog-close",!1),B(2),
I("mat-dialog-close",!0))},NRb=function(a,b){a&1&&(K(0,"div",109),S(1),L(),K(2,"div",110)(3,"button",113),S(4," Cancel "),L(),K(5,"button",113),S(6," Don't Save "),L(),K(7,"button",114),S(8," Save "),L()());a&2&&(a=b.$implicit,B(),T(' Do you want to save changes to template "',a.name,'" before closing? '),B(2),I("mat-dialog-close",void 0),B(2),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0))},ORb=function(a){a&1&&(K(0,"div"),S(1),L(),K(2,"div"),S(3),L());a&2&&(a=P(),B(),T(" Policy: ",a.rawObjectiveDisplayText,
" (business) "),B(2),T("Effective: ",a.objectiveDisplayText," (calendar)"))},PRb=function(a){a&1&&(K(0,"div"),S(1),L());a&2&&(a=P(),B(),T("Policy: ",a.rawObjectiveDisplayText," (calendar)"))},QRb=function(a){a&1&&(K(0,"div"),M(1,"b-slo-time-indicator",0),L());a&2&&(a=P(),B(),I("sloStartTime",a.sloStartTime)("sloEndTime",a.sloEndTime)("sloBounds",a.assignmentSlo)("includeObjective",!0))},RRb=function(a){a&1&&(K(0,"div"),M(1,"b-slo-time-indicator",1),L());a&2&&(a=P(),B(),I("sloStartTime",a.sloStartTime)("sloEndTime",
a.sloEndTime)("sloBounds",a.responseSlo)("includeObjective",!0))},SRb=function(a){a&1&&(K(0,"div"),M(1,"b-slo-time-indicator",2),L());a&2&&(a=P(),B(),I("sloStartTime",a.sloStartTime)("sloEndTime",a.sloEndTime)("sloBounds",a.closureSlo)("includeObjective",!0))},TRb=function(a){a&1&&(K(0,"div",5),M(1,"b-slo-status-summary",7),L());a&2&&(a=P(),B(),I("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric",a.onlyShowMetric))},URb=function(a){a&1&&S(0," No applicable SLO rules ")},VRb=
function(a){a&1&&S(0," No SLO set on issue component ")},WRb=function(a){a&1&&(K(0,"div",6),F(1,URb,1,0)(2,VRb,1,0),L());a&2&&(a=P(),B(),G(a.editSloLink?1:2))},XRb=function(a){if(a&1){var b=t();K(0,"a",9);N("click",function(){u(b);var c=P(2);return v(c.trackOpenSlo())});S(1);L()}a&2&&(a=P(2),I("href",a.editSloLink,Me),B(),T(" ",a.sloName," "))},YRb=function(a){a&1&&(K(0,"span"),S(1," (private) "),L())},ZRb=function(a){a&1&&(K(0,"span"),S(1," SLO definition: "),F(2,XRb,2,2,"a",8)(3,YRb,2,0,"span"),
L());a&2&&(a=P(),B(2),G(a.sloName?2:3))},bSb=function(a){if(a.type==="CUSTOM_FIELD")return new xu({name:a.customFieldId?String(a.customFieldId):a.customFieldName||"",label:a.customFieldName||"",fullLabel:a.customFieldName||"",isCustomField:!0,sortable:a.customFieldId!==void 0,tooltip:""});a=YSa(a.type);a==="canonicalIssueId"&&(a="duplicateOfIssueId");return $Rb.includes(a)?aSb(a):null},dSb=function(a){return cSb(a.map(bSb).filter(function(b){return!!b}))},eSb=function(a){return a.map(function(b){b.isCustomField?
b={type:"CUSTOM_FIELD",customFieldId:Jm(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})},cSb=function(a){return Nq(a,function(b){return b.name})},aSb=function(a){var b={name:a,label:a.toUpperCase()},c=fSb[a];c?Object.assign(b,c):$Rb.includes(a)||(b.isCustomField=!0);b.fullLabel=b.fullLabel||b.label.charAt(0).toUpperCase()+b.label.slice(1).toLowerCase();
return new xu(b)},gSb=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(),Jf("title",a.getValue()),B(),T(" ",a.getValue()," "))},hSb=function(a){a&1&&M(0,"b-custom-field-value-display",0);a&2&&(a=P(),I("customFieldValue",a.getCustomFieldValue()))},iSb=function(a,b){a&1&&M(0,"col");a&2&&zg(Gg("",b.$implicit.name,"-col"))},jSb=function(a){a&1&&Xf(0)},lSb=function(a,b){a&1&&E(0,jSb,1,0,"ng-container",7);a&2&&(a=b.$implicit,b=P(),I("ngTemplateOutlet",b.headerCellTemplates[a.name]||b.defaultHeaderCellTemplate)("ngTemplateOutletContext",
Kg(2,kSb,a)))},mSb=function(a){a&1&&Xf(0)},oSb=function(a,b){a&1&&E(0,mSb,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();I("ngTemplateOutlet",e[b])("ngTemplateOutletContext",Mg(2,nSb,d,a,c))}},qSb=function(a,b){if(a&1){var c=t();K(0,"tr",9,3);N("click",function(){var e=u(c).$index,f=P(2);f.focusedRowIndex!==e&&(f.focusedRowIndex=e,f.focusedRowIndexChange.emit(e));return v()})("focus",function(){var e=u(c).$index,f=P(2);f.focusedRowIndex!==e&&(f.focusedRowIndex=
e,f.focusedRowIndexChange.emit(e));return v()})("mouseover",function(){var e=u(c).$index;P(2).hoveredRowIndex.emit(e);return v()})("mouseleave",function(){u(c);P(2).hoveredRowIndex.emit(null);return v()});Pf(2,oSb,1,6,"ng-container",null,pSb);L()}if(a&2){a=b.$implicit;b=b.$index;var d=P(2);yg("selected",a.selected)("unread",!d.readUnreadOptOut&&!a.isRead&&!a.isClosed)("closed",a.isClosed)("grid-focus",d.focusedRowIndex===b);Jf("data-row-id",a.id)("data-is-read",a.isRead)("aria-label",d.renderRowLabel(a,
b)+(a.selected?", row starred":""));B(2);Qf(d.columns)}},sSb=function(a){a&1&&Pf(0,qSb,4,11,"tr",8,rSb);a&2&&(a=P(),Qf(a.list))},tSb=function(a,b){a&1&&(K(0,"th"),M(1,"pop-grid-default-th",10),L());a&2&&(a=b.column,B(),I("column",a))},uSb=function(a,b){a&1&&(K(0,"td"),M(1,"pop-grid-default-cell",11),L());a&2&&(a=b.row,b=b.column,B(),I("row",a)("column",b))},vSb=function(a){if(a&1){var b=t();K(0,"b-sortable-header",3);N("sortChanged",function(c){u(b);var d=P();d.grid&&d.grid.sortChange.emit(c);return v()});
L()}a&2&&(a=P(),I("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||""))},wSb=function(a){a&1&&(K(0,"span",4),S(1),L());a&2&&(a=P(2),B(),T("column-",a.column.name))},xSb=function(a){a&1&&(K(0,"div",2),F(1,wSb,2,1,"span",4),S(2),L());a&2&&(a=P(),Jf("aria-label",a.column.label),B(),G(a.column.label?-1:1),B(),T(" ",a.column.label," "))},ySb=function(a){if(a&1){var b=
t();K(0,"div",13,3);N("menuOpened",function(){u(b);var d=P();return v(d.menuOpen=!0)})("menuClosed",function(){u(b);var d=P();return v(d.menuOpen=!1)})("keydown.enter",function(d){u(b);Q(1).openMenu();d.preventDefault();return v(d.stopPropagation())})("keydown.space",function(){u(b);var d=Q(1);return v(d.openMenu())});L()}if(a&2){a=P();var c=Q(5);yg("columnpicker-button-active",a.menuOpen);Jf("aria-label",Gg("",a.column.fullLabel," column configuration"));I("matMenuTriggerFor",c)}},BSb=function(a,
b){if(a&1){var c=t();K(0,"button",14);N("click",function(){var d=u(c).$implicit,e=P();return v(zSb(e,d.name))});M(1,"b-icon",15);K(2,"span",16);S(3);L()()}a&2&&(a=b.$implicit,b=P(),yg("b-menu-item-checked",ASb(a.name).get(b.listViewPrefs)),B(3),T(" ",a.menuItem," "))},CSb=function(a){a&1&&M(0,"mat-divider")},DSb=function(a){if(a&1){var b=t();K(0,"button",19);N("click",function(){u(b);var c=P().$implicit,d=P().before,e=P();return v(e.add(c,d))})("keydown.enter",function(c){u(b);var d=P().$implicit,
e=P().before;P().add(d,e);c.preventDefault();return v(c.stopPropagation())});S(1);L()}a&2&&(a=P().$implicit,I("matTooltip",a.tooltip),B(),T(" ",a.fullLabel," "))},FSb=function(a){a&1&&(K(0,"button",11)(1,"span"),S(2),L()());if(a&2){a=P().$implicit;var b=P().before;P();var c=Q(19);I("matMenuTriggerFor",c)("matMenuTriggerData",Lg(3,ESb,a.columns,b));B(2);Ag(a.label)}},GSb=function(a,b){a&1&&F(0,DSb,2,2,"button",18)(1,FSb,3,6,"button",11);a&2&&(a=b.$implicit,b=P(2),G(b.isIssueGridColumn(a)?0:1))},ISb=
function(a){if(a&1){var b=t();K(0,"button",17);N("click",function(){var c=u(b).before,d=P();return v(HSb(d,c))});S(1," Custom Field ");L();M(2,"mat-divider");Pf(3,GSb,2,1,null,null,Of)}a&2&&(a=P(),B(3),Qf(a.currentAvailableItems))},JSb=function(a,b){if(a&1){var c=t();K(0,"button",21);N("click",function(){var d=u(c).$implicit,e=P().before,f=P();return v(f.add(d,e))})("keydown.enter",function(d){var e=u(c).$implicit,f=P().before;P().add(e,f);d.preventDefault();return v(d.stopPropagation())});S(1);L()}a&
2&&(a=b.$implicit,B(),T(" ",a.fullLabel," "))},KSb=function(a,b){a&1&&Pf(0,JSb,2,1,"button",20,Of);a&2&&Qf(b.columns)},ASb=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("ug`"+a);}},LSb=function(a){a&1&&(Sf(0,"div",0)(1,"p")(2,"span",1),S(3,"Inactive issues not shown. Use"),Tf(),S(4," status:inactive "),
Sf(5,"span",1),S(6,"to see these issues."),Tf()(),Sf(7,"p",1)(8,"a",2),S(9,"Learn more"),Tf()()())},MSb=function(a){a&1&&(K(0,"p",5),S(1),L());a&2&&(a=P(),B(),T(" * Status update must be less than ",a.CHAR_LIMIT," characters. "))},NSb=function(a){a&1&&(K(0,"p",6),S(1),K(2,"a",12),S(3," Learn more "),L()());a&2&&(a=P(),B(),T(" Your status update contains restricted words: ",Ws(a.bannedWordsChecker),". Review your status update before posting. "))},OSb=function(a){a&1&&(K(0,"div",8),M(1,"b-live-preview",
13),L());a&2&&(a=P(),B(),I("comment",a.newStatusUpdate.updateText)("issueId",a.origStatusUpdate.issueId)("formattingMode",a.newStatusUpdate.formattingMode)("audience",a.formattingAudience))},PSb=function(a,b){a&1&&(K(0,"button",8),M(1,"mat-icon",9),L(),K(2,"onedev-hovercard",null,0)(4,"div",10)(5,"div",11)(6,"span",12),S(7),M(8,"br")(9,"br"),S(10),L()()()());if(a&2){a=Q(3);var c=P();I("onedevHovercardTrigger",a)("onedevHovercardActive",!0)("onedevHovercardConfig",c.CATEGORY_INFO_HOVERCARD_CONFIG);
B(7);T(" ",b.displayName," ");B(3);T(" ",b.description," ")}},QSb=function(a){if(a&1){var b=t();K(0,"button",13);N("click",function(){u(b);var c=P();return v(c.copyContent())});M(1,"mat-icon",14);L()}},RSb=function(a){a&1&&M(0,"mat-icon",16)},SSb=function(a){a&1&&M(0,"mat-icon",17)},TSb=function(a){a&1&&M(0,"mat-icon",19)},USb=function(a){a&1&&M(0,"mat-icon",20)},YSb=function(a,b){if(a&1){var c=t();K(0,"button",15);N("click",function(){u(c);var d=P();return v(VSb(d))});F(1,RSb,1,0,"mat-icon",16)(2,
SSb,1,0,"mat-icon",17);L();K(3,"button",18);N("click",function(){u(c);var d=P();return v(WSb(d))});F(4,TSb,1,0,"mat-icon",19)(5,USb,1,0,"mat-icon",20);L()}a&2&&(a=P(),I("disabled",a.hasFeedbackBeenGiven(b)),B(),G(XSb(a.insightsActionsService,b,a.enrichment.category).hasThumbsUpped?1:2),B(2),I("disabled",a.hasFeedbackBeenGiven(b)),B(),G(XSb(a.insightsActionsService,b,a.enrichment.category).hasThumbsDowned?4:5))},ZSb=function(a){a&1&&M(0,"b-actions-menu",7);a&2&&(P(),a=dg(10),I("menuItems",a))},$Sb=
function(a){a&1&&S(0);a&2&&(a=P().$implicit,T(" ",a.displayName," "))},aTb=function(a,b){a&1&&M(0,"b-formatted-comment-presenter",12,0);a&2&&(a=P(5),yg("truncated",a.shouldTruncate&&a.isTruncated),I("formattedComment",b))},cTb=function(a,b){if(a&1){var c=t();K(0,"b-formatted-comment-presenter",13,0);N("contentRendered",function(){u(c);var d=P(6);return v(bTb(d))});L()}a&2&&(a=P(6),yg("truncated",a.shouldTruncate&&a.isTruncated),I("formattedComment",b.formattedContent))},dTb=function(a){a&1&&M(0,"b-spinner")},
eTb=function(a){a&1&&(F(0,cTb,2,3,"b-formatted-comment-presenter",8),U(1,"async"),Mf(2,dTb,1,0,"b-spinner"));if(a&2){var b;a=P(2).$implicit;G((b=W(1,1,a.asyncContent))?0:2,b)}},fTb=function(a){a&1&&(K(0,"div"),S(1,"No content was found for this enrichment."),L())},gTb=function(a){if(a&1){var b=t();K(0,"button",14);N("click",function(){u(b);var c=P(5);c.isTruncated=!c.isTruncated;c.maybeSetupOnScreenDetection();return v()});S(1);L()}a&2&&(a=P(5),B(),T(" ",a.isTruncated?"Show more":"Show less"," "))},
hTb=function(a){a&1&&(F(0,aTb,2,3,"b-formatted-comment-presenter",8)(1,eTb,3,3)(2,fTb,2,0,"div"),K(3,"div",9),F(4,gTb,2,1,"button",10),M(5,"insights-actions",11),L());if(a&2){var b;a=P().$implicit;var c=P(3);G((b=a.general==null?null:a.general.formattedContent)?0:a.asyncContent?1:2,b);B(4);G(c.shouldTruncate?4:-1);B();I("enrichment",a)}},iTb=function(a,b){a&1&&(K(0,"expandable-tab",5),E(1,$Sb,1,1,"ng-template",6)(2,hTb,6,3,"ng-template",7),L());a&2&&(a=b.$implicit,I("key",a.displayName)("ariaLabel",
a.displayName))},nTb=function(a,b){if(a&1){var c=t();bg(0);U(1,"async");K(2,"expandable-tabs",4);N("expandedTabsChanged",function(e){u(c);var f=P(2);f.manualSelectedTab$.next([].concat(n(e)));bTb(f);jTb(f);return v()})("showAllClicked",function(){u(c);var e=P(),f=P();return v(kTb(f,e[0].issueId))});Pf(3,iTb,3,2,"expandable-tab",5,lTb);L()}if(a&2){a=P();var d=W(1,4,P().tabKeys$)||Jg(6,mTb);B(2);I("showMultiple",!1)("showIcons",!1)("tabKeys",d)("expandedTabs",b);B();Qf(a)}},oTb=function(a){a&1&&(F(0,
nTb,5,7,"expandable-tabs",3),U(1,"async"));if(a&2){var b;a=P();G((b=W(1,1,a.expandedTab$))?0:-1,b)}},qTb=function(a){return function(b){b=Y(b,pTb,1);var c,d=b==null?void 0:(c=b.getData())==null?void 0:c.getWorkspacesMap(),e,f;return((f=b==null?void 0:(e=b.getContextsMap().get("b/"+a))==null?void 0:e.getTypedWorkspaceIdsList())!=null?f:[]).map(function(g){g=g.getWorkspaceId();var k=d==null?void 0:d.get(g),m;return{workspaceId:qn(g),workspaceName:(m=k==null?void 0:k.getName())!=null?m:"",issueId:a}})}},
rTb=function(a){a&1&&Xf(0)},tTb=function(a){a&1&&(Vf(0),E(1,rTb,1,0,"ng-container",8),Wf());a&2&&(a=P(),B(),I("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Kg(2,sTb,a.value)))},uTb=function(a){a&1&&S(0);a&2&&(a=P(),Ag(a.value!=null?a.value:"--"))},vTb=function(a){a&1&&(yd(),K(0,"svg",9),M(1,"path",10),L())},wTb=function(a){a&1&&M(0,"input",11);a&2&&(a=P(),I("required",a.required())("formControl",a.editingValue),Jf("aria-labelledby",a.labelledById))},xTb=function(a){return a!=null?
Number(a):void 0},yTb=function(a){a&1&&M(0,"mat-icon",4);a&2&&(P(),a=Q(5),I("onedevHovercardTrigger",a))},zTb=function(a){if(a&1){var b=t();K(0,"onedev-numeric-field",10);N("valueChange",function(d){u(b);var e=P(2);e.selectedNumericEstimate=d;d==null?e.effortChange.emit(void 0):e.effortChange.emit({estimate:String(d)});return v()});L()}if(a&2){a=P(2);var c=Q(2);I("value",a.selectedNumericEstimate)("valueTemplate",c)("disabled",a.disabled)("displayEditIcon",!a.disabled)}},ATb=function(a){a&1&&S(0);
a&2&&(a=P().$implicit,T(" ",a.label," "))},BTb=function(a){a&1&&S(0," -- ")},CTb=function(a,b){a&1&&F(0,ATb,1,1)(1,BTb,1,0);a&2&&G(b.$implicit?0:1)},ETb=function(a){if(a&1){var b=t();K(0,"onedev-single-select",11);N("valueChange",function(e){u(b);var f=P(2);return v(f.selectOption(e))});L();E(1,CTb,2,1,"ng-template",null,2,Og)}if(a&2){a=Q(2);var c=P(2),d;I("value",c.selectedOption)("options",(d=c.effortSpec.enumSpec==null?null:c.effortSpec.enumSpec.options)!=null?d:Jg(6,DTb))("includeEmptyOption",
!0)("optionTemplate",a)("disabled",c.disabled)("displayArrowIcon",!c.disabled)}},FTb=function(a){a&1&&S(0);a&2&&(a=P(2),T(" ",a.effort==null?null:a.effort.estimate," "))},GTb=function(a){a&1&&(K(0,"onedev-edit-field")(1,"onedev-field-label",3),S(2),F(3,yTb,1,1,"mat-icon",4),L(),K(4,"onedev-hovercard",null,1)(6,"div",5)(7,"div",6),S(8," This estimate was made under a different configuration and needs to be updated. "),K(9,"a",7),S(10,"Learn more"),L()()()(),K(11,"onedev-field-value",8),F(12,zTb,1,
4,"onedev-numeric-field",9)(13,ETb,3,7)(14,FTb,1,1),L()());if(a&2){var b;a=P();B();I("thinking",a.thinking);B();T(" ",a.fieldName," ");B();G(a.isCompatibleValue?-1:3);B(8);I("thinking",a.thinking);B();G((b=a.fieldType)==="NUMERIC"?12:b==="DROPDOWN"?13:14)}},HTb=function(a){a&1&&S(0);a&2&&(a=P(2),T(" ",a.effort==null?null:a.effort.estimate," "))},ITb=function(a){a&1&&S(0);a&2&&(a=P().$implicit,T(" ",a!=null?a:"--"," "))},JTb=function(a,b){a&1&&F(0,HTb,1,1)(1,ITb,1,1);a&2&&(a=b.$implicit,b=P(),G(b.isNaN(a)?
0:1))},KTb=function(a){a&1&&S(0," -- ")},LTb=function(a){a&1&&(K(0,"div",12),S(1),L(),K(2,"div",13),S(3),L());a&2&&(a=P(),B(),Ag(a.staffingUserSummary),B(2),Ag(a.staffingPlaceholderSummary))},MTb=function(a){a&1&&M(0,"mat-icon",4)},NTb=function(a){a&1&&M(0,"mat-icon",11)},OTb=function(a){a&1&&M(0,"mat-icon",12)},PTb=function(a){a&1&&(K(0,"span"),M(1,"b-formatted-date-time",26),L());a&2&&(a=P(2),B(),I("timestamp",a.sloStartTime))},QTb=function(a){a&1&&(K(0,"span"),M(1,"b-formatted-date-time",26),K(2,
"span"),S(3," (default)"),L()());a&2&&(a=P(2),B(),I("timestamp",a.issueCreationTimestamp/1E3))},RTb=function(a){if(a&1){var b=t();K(0,"slo-edit-date-time-picker",27);N("closePicker",function(){u(b);var c=P(2);return v(c.isSloStartEditTimePickerOpen=!1)})("sloEditCommit",function(c){u(b);var d=P(2);return v(d.updateSloStartTime(c))});L()}a&2&&(a=P(2),I("sloStatus",a.sloStatus)("sloEditTime",a.sloStartTime)("noneButtonEnabled",a.hasSloStartTime))},STb=function(a){if(a&1){var b=t();K(0,"div",14)(1,"a",
23);S(2," Start Date: ");L();K(3,"div",20)(4,"a",24,1);N("keydown.enter",function(){u(b);var d=P();d.isSloStartEditTimePickerOpen=!d.isSloStartEditTimePickerOpen;return v()})("keydown.space",function(){u(b);var d=P();d.isSloStartEditTimePickerOpen=!d.isSloStartEditTimePickerOpen;return v()})("click",function(){u(b);var d=P();d.isSloStartEditTimePickerOpen=!d.isSloStartEditTimePickerOpen;return v()});F(6,PTb,2,1,"span")(7,QTb,4,1,"span");L();E(8,RTb,1,3,"ng-template",25);L()()}if(a&2){a=Q(5);var c=
P();B(6);G(c.hasSloStartTime?6:7);B(2);I("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",c.isSloStartEditTimePickerOpen)}},TTb=function(a){a&1&&(K(0,"span"),S(1," Set closure SLO "),L())},UTb=function(a){a&1&&(K(0,"span"),M(1,"b-formatted-date-time",26),L());a&2&&(a=P(2),B(),I("timestamp",a.sloEndTime))},VTb=function(a){a&1&&(K(0,"span"),M(1,"b-formatted-date-time",26),K(2,"span"),S(3," (default)"),L()());a&2&&(a=P(2),B(),I("timestamp",a.closureSloTarget*1E3))},WTb=function(a){if(a&1){var b=
t();K(0,"slo-edit-date-time-picker",27);N("closePicker",function(){u(b);var c=P(2);return v(c.isSloEndEditTimePickerOpen=!1)})("sloEditCommit",function(c){u(b);var d=P(2);return v(d.updateSloEndTime(c))});L()}a&2&&(a=P(2),I("sloStatus",a.sloStatus)("sloEditTime",a.sloEndTime)("noneButtonEnabled",a.hasSloEndTime))},XTb=function(a){if(a&1){var b=t();K(0,"div",15)(1,"a",23);S(2," End Date: ");L();K(3,"div",20)(4,"a",28,1);N("click",function(){u(b);var d=P();d.isSloEndEditTimePickerOpen=!d.isSloEndEditTimePickerOpen;
return v()})("keydown.enter",function(){u(b);var d=P();d.isSloEndEditTimePickerOpen=!d.isSloEndEditTimePickerOpen;return v()})("keydown.space",function(){u(b);var d=P();d.isSloEndEditTimePickerOpen=!d.isSloEndEditTimePickerOpen;return v()});F(6,TTb,2,0,"span");F(7,UTb,2,1,"span");F(8,VTb,4,1,"span");L();E(9,WTb,1,3,"ng-template",25);L()()}if(a&2){a=Q(5);var c=P();B(6);G(c.hasClosureSlo?-1:6);B();G(c.hasClosureSlo&&c.hasSloEndTime?7:-1);B();G(c.hasClosureSlo&&!c.hasSloEndTime?8:-1);B();I("cdkConnectedOverlayOrigin",
a)("cdkConnectedOverlayOpen",c.isSloEndEditTimePickerOpen)}},YTb=function(a){a&1&&M(0,"b-user-membership-chip",21);a&2&&(a=P(),I("user",a.escalationOwner)("email",a.userToDisplayString(a.escalationOwner))("enableSmallChip",!0))},ZTb=function(a){a&1&&S(0," None ")},$Tb=function(a,b){if(a&1){var c=t();K(0,"a",30);N("click",function(){u(c);var d=P(2);return v(d.trackOpenSlo())});S(1);L()}a&2&&(a=P(2),Jf("href",a.editSloLink,Me),B(),T(" ",b.name," "))},aUb=function(a){a&1&&(K(0,"div",22),S(1," SLO definition: "),
F(2,$Tb,2,2,"a",29),U(3,"async"),L());if(a&2){var b;a=P();B(2);G((b=W(3,1,a.slo$))?2:-1,b)}},bUb=function(a){if(a&1){var b=t();K(0,"div",22)(1,"a",31);N("click",function(){u(b);P();ur("component","open","fromIssueSloBox");return v()});S(2,"Select an SLO");L()()}a&2&&(a=P(),B(),Jf("href",a.componentSloLink,Me))},cUb=function(a){return a&&a.teamId!=="0"?a.deleted?"DELETED":"VALID":"MISSING"},dUb=function(a){a&1&&Xf(0)},eUb=function(a){if(a&1){var b=t();K(0,"div",3);S(1," Select a team from the suggestions below, or edit in ");
K(2,"a",6);N("click",function(){u(b);var d=P();return v(d.trackClick("viewTeamAssociationOnComponent"))});S(3,"component settings");L();S(4,". ");K(5,"mat-radio-group",7);Eg("ngModelChange",function(d){u(b);var e=P();Dg(e.teamAction,d)||(e.teamAction=d);return v(d)});K(6,"p")(7,"mat-radio-button",8);S(8," Don't make any changes ");L()();K(9,"p")(10,"mat-radio-button",9);S(11," Map component to selected team ");L()()();E(12,dUb,1,0,"ng-container",10);L()}if(a&2){a=P();var c=Q(5);B(2);I("href",a.componentSetting,
Me);B(3);Cg("ngModel",a.teamAction);B(7);I("ngTemplateOutlet",c)}},fUb=function(a){a&1&&Xf(0)},gUb=function(a){a&1&&(K(0,"div",3),S(1," Assigned team no longer exists, select a different team from the suggestions below, or edit/opt out of team mapping in "),K(2,"a",11),S(3,"component settings"),L(),S(4,". "),E(5,fUb,1,0,"ng-container",10),L());if(a&2){a=P();var b=Q(5);B(2);I("href",a.componentSetting,Me);B(3);I("ngTemplateOutlet",b)}},hUb=function(a){a&1&&(K(0,"span",16),S(1),L());a&2&&(a=P().$implicit,
B(),Ag(a.teamPath))},iUb=function(a){a&1&&S(0," -- ")},jUb=function(a,b){a&1&&F(0,hUb,2,1,"span",16)(1,iUb,1,0);a&2&&G(b.$implicit?0:1)},kUb=function(a){if(a&1){var b=t();K(0,"div",12)(1,"onedev-single-select",13);Eg("valueChange",function(d){u(b);var e=P(2);Dg(e.selectedTeam,d)||(e.selectedTeam=d);return v(d)});N("valueChange",function(d){u(b);var e=P(2);return v(e.selectOption(d))});L();E(2,jUb,2,1,"ng-template",null,1,Og);K(4,"a",14);N("click",function(){u(b);var d=P(2);return v(d.trackClick("viewTeamInMoma"))});
M(5,"mat-icon",15);L()()}if(a&2){a=Q(3);var c=P(2);B();I("disabled",c.teamAction==="NONE");Cg("value",c.selectedTeam);I("options",c.teamOptions)("includeEmptyOption",!1)("optionTemplate",a);B(3);Jf("href",c.getMomaTeamLink(),Me)}},lUb=function(a){a&1&&F(0,kUb,6,6,"div",12);a&2&&(a=P(),G(a.teamOptions.length>0?0:-1))},mUb=function(a){if(a&1){var b=t();K(0,"b-callout-actions")(1,"b-button",1);N("click",function(){u(b);var c=P();return v(c.openDialog())});S(2);L()()}a&2&&(a=P(),B(2),Ag(a.buttonName))},
nUb=function(a){a&1&&Xf(0)},oUb=function(a){a&1&&E(0,nUb,1,0,"ng-container",47);a&2&&(P(),a=Q(96),I("ngTemplateOutlet",a))},qUb=function(a,b){a&1&&(M(0,"b-list-field",48),U(1,"async"));a&2&&(a=P(3),I("readonly",!0)("defaultLineCount",3)("title","Team")("type",a.ListFieldType.TEAM)("values",Kg(8,pUb,b))("showInternalOnlyFieldBadge",!W(1,6,a.issueIsOnInternalComponent$)))},rUb=function(a){a&1&&(F(0,qUb,2,10,"b-list-field",48),U(1,"async"));if(a&2){var b;a=P(2);G((b=W(1,1,a.teamHovercardInputs$))?0:
-1,b)}},tUb=function(a){if(a&1){var b=t();K(0,"div",49)(1,"b-team-warning",50);U(2,"async");U(3,"async");N("updateTeam",function(){u(b);var g=P(3);g.issueFullFridge.poke(g.issueId);return v()});L()()}if(a&2){var c;a=P();var d=P(),e=P();B();var f;I("warningType",a)("componentId",d.componentId||void 0)("parentComponentId",((c=W(2,4,e.component$))==null?null:c.parentComponentId)||void 0)("teamSuggestions",(f=W(3,6,e.teamSuggestions$))!=null?f:Jg(8,sUb))}},uUb=function(a){a&1&&(F(0,tUb,4,9,"div",49),
U(1,"async"));a&2&&(a=P(2),G(W(1,1,a.shouldDisplayTeamSuggestions$)?0:-1))},vUb=function(a){a&1&&Xf(0)},wUb=function(a){a&1&&E(0,vUb,1,0,"ng-container",47);a&2&&(P(),a=Q(98),I("ngTemplateOutlet",a))},xUb=function(a,b){if(a&1){var c=t();K(0,"div",51);M(1,"div",52);K(2,"span",53);U(3,"async");U(4,"async");N("click",function(){var d=u(c),e=P(3);return v(yu(e,d))})("keydown.enter",function(d){var e=u(c);yu(P(3),e);d.stopPropagation();return v(d.preventDefault())})("keydown.space",function(d){var e=u(c);
yu(P(3),e);d.stopPropagation();return v(d.preventDefault())});S(5);L()()}a&2&&(a=P(3),B(2),yg("disabled",!!W(3,6,a.isSaving$(a.IssueFieldName.STATUS))),I("matTooltip",b.description||""),Jf("aria-disabled",!!W(4,8,a.isSaving$(a.IssueFieldName.STATUS)))("aria-label",b.displayText||null),B(3),T(" ",b.displayText," "))},yUb=function(a){a&1&&(F(0,xUb,6,10,"div",51),U(1,"async"));if(a&2){var b;a=P(2);G((b=W(1,1,a.issueStatusQuickAction$))?0:-1,b)}},zUb=function(a){a&1&&(K(0,"div",24),M(1,"b-edit-field",
54,15),U(3,"async"),K(4,"div",51),M(5,"div",52),K(6,"a",55),U(7,"async"),S(8," Open triage "),L()()());a&2&&(a=P(2),B(),I("name","phase")("title","Triage phase")("type",a.FieldType.ENUM)("value",W(3,8,a.triagePhase$))("choices",a.phaseChoices)("showHotkeyHint",!1)("disabled",!0),B(5),I("href",W(7,10,a.triagePhaseUrl$),Me))},AUb=function(a){a&1&&(M(0,"b-issue-card",56,16),U(2,"async"));if(a&2){a=Q(1);var b=P(2);I("onedevIsHovercardReady",a.init)("issueId",W(2,2,b.canonicalIssueId$))}},CUb=function(a){if(a&
1){var b=t();K(0,"b-estimated-effort-row",57);U(1,"async");U(2,"async");U(3,"async");N("effortChange",function(e){u(b);var f=P(2);return v(BUb(f.editIssueService,f.issueId,e))});L()}if(a&2){a=P(2);var c,d;I("effort",(c=W(1,3,a.effort$))!=null?c:void 0)("effortSpec",(d=W(2,5,a.effortSpec$))!=null?d:void 0)("disabled",!W(3,7,a.hasAclToEdit$))}},DUb=function(a){a&1&&(K(0,"div"),S(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. "),
K(2,"a",61),S(3,"Learn more"),L()());a&2&&(a=P(3),B(2),I("href",Es(a.documentationLinks)+"#expanded-access",Me))},EUb=function(a){a&1&&(K(0,"div",38)(1,"span",58),S(2,"Expanded Access"),L(),K(3,"xap-bubble",59)(4,"xap-icon-trigger"),M(5,"mat-icon",60),L(),E(6,DUb,4,1,"ng-template",null,17,Og),L()());a&2&&(a=Q(7),B(3),I("panelTemplate",a))},FUb=function(a){a&1&&(K(0,"span",65),U(1,"async"),S(2),L());if(a&2){a=P();var b=P(3);yg("disabled",!!W(1,3,b.isSaving$(b.IssueFieldName.ASSIGNEE)));B(2);T(" ",
a.displayText," ")}},GUb=function(a,b){if(a&1){var c=t();K(0,"div",63);U(1,"async");N("onHotkey",function(){var d=u(c),e=P(3);return v(yu(e,d))})("click",function(){var d=u(c),e=P(3);return v(yu(e,d))})("keydown.enter",function(d){var e=u(c);yu(P(3),e);d.stopPropagation();return v(d.preventDefault())})("keydown.space",function(d){var e=u(c);yu(P(3),e);d.stopPropagation();return v(d.preventDefault())});M(2,"div",52);F(3,FUb,3,5,"span",64);U(4,"async");L()}a&2&&(a=P(3),I("hotkey",a.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip",
b.description),Jf("aria-disabled",!!W(1,5,a.isSaving$(a.IssueFieldName.ASSIGNEE)))("aria-label",b.description),B(3),G(W(4,7,a.hasAclToEdit$)?3:-1))},HUb=function(a){a&1&&(F(0,GUb,5,9,"div",62),U(1,"async"));if(a&2){var b;a=P(2);G((b=W(1,1,a.issueAssigneeQuickAction$))?0:-1,b)}},IUb=function(a){a&1&&Xf(0)},JUb=function(a){a&1&&E(0,IUb,1,0,"ng-container",47);a&2&&(P(),a=Q(100),I("ngTemplateOutlet",a))},KUb=function(a){a&1&&M(0,"b-list-field",44);if(a&2){a=P();var b=P(2);I("readonly",!0)("defaultLineCount",
3)("title","TaskFlow Workspaces")("type",b.ListFieldType.WORKSPACES)("values",a)("tooltip","Links to TaskFlow workspaces this issue belongs to")}},LUb=function(a,b){a&1&&(F(0,KUb,1,6,"b-list-field",44),U(1,"async"));a&2&&(a=P(2),G(W(1,1,a.shouldDisplayWtdmUi$)&&b.length?0:-1))},MUb=function(a){a&1&&(M(0,"b-staffing-row",43),U(1,"async"),U(2,"async"));if(a&2){a=P(2);var b;I("staffing",(b=W(1,3,a.staffing$))!=null?b:void 0)("issueId",a.issueId)("isAllowedToEdit",W(2,5,a.hasAclToEdit$))}},NUb=function(a){a&
1&&M(0,"b-list-field",44);if(a&2){a=P();var b=P();I("readonly",!0)("defaultLineCount",3)("title","Postmortems")("type",b.ListFieldType.POSTMORTEMS)("values",a.postmortems)("tooltip","Postmortems (auto-populated from a daily dump of Requiem)")}},PUb=function(a,b){a&1&&(K(0,"div"),Xf(1,66),L());a&2&&(a=b.$implicit,P(),b=Q(112),B(),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,OUb,a)))},QUb=function(a,b){a&1&&(K(0,"div"),Xf(1,66),L());a&2&&(a=b.$implicit,P(),b=Q(112),B(),I("ngTemplateOutlet",
b)("ngTemplateOutletContext",Kg(2,OUb,a)))},RUb=function(a){a&1&&Xf(0)},SUb=function(a){a&1&&E(0,RUb,1,0,"ng-container",47);a&2&&(P(),a=Q(110),I("ngTemplateOutlet",a))},TUb=function(a){a&1&&M(0,"hr",45)},UUb=function(a){a&1&&Xf(0)},VUb=function(a){a&1&&E(0,UUb,1,0,"ng-container",47);a&2&&(P(2),a=Q(96),I("ngTemplateOutlet",a))},WUb=function(a){a&1&&Xf(0)},XUb=function(a){a&1&&E(0,WUb,1,0,"ng-container",47);a&2&&(P(2),a=Q(98),I("ngTemplateOutlet",a))},YUb=function(a){a&1&&Xf(0)},ZUb=function(a){a&1&&
E(0,YUb,1,0,"ng-container",47);a&2&&(P(2),a=Q(100),I("ngTemplateOutlet",a))},$Ub=function(a,b){a&1&&(K(0,"div"),Xf(1,66),L());a&2&&(a=b.$implicit,P(2),b=Q(112),B(),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,OUb,a)))},aVb=function(a){a&1&&Xf(0)},bVb=function(a){a&1&&E(0,aVb,1,0,"ng-container",47);a&2&&(P(2),a=Q(110),I("ngTemplateOutlet",a))},cVb=function(a){a&1&&(K(0,"collapsible-panel",46),U(1,"async"),F(2,VUb,1,1,"ng-container"),U(3,"async"),F(4,XUb,1,1,"ng-container"),U(5,"async"),F(6,
ZUb,1,1,"ng-container"),U(7,"async"),Pf(8,$Ub,2,4,"div",null,t()[15][8].trackCustomField,!0),U(10,"async"),F(11,bVb,1,1,"ng-container"),U(12,"async"),L());if(a&2){a=P(2);var b;I("titleWhenCollapsed",(b=W(1,6,a.showHiddenFieldsLabel$))!=null?b:"")("titleWhenExpanded","Hide additional fields");B(2);G(a.showSloStatus&&!W(3,8,a.isSloStatusPrimary$)?2:-1);B(2);G(W(5,10,a.isSeverityPrimary$)?-1:4);B(2);G(W(7,12,a.isChangelistPrimary$)?-1:6);B(2);Qf(W(10,14,a.hiddenCustomFields$));B(3);G(W(12,16,a.isForgottenFourPrimary$)?
-1:11)}},dVb=function(a){if(a&1){var b=t();K(0,"b-issue-slo-box",68);U(1,"async");U(2,"async");U(3,"async");U(4,"async");U(5,"async");N("onSloStartTimeChange",function(g){u(b);var k=P(3);return v(k.editIssueService.updateSloStartTime(k.issueId,g.date))})("onSloEndTimeChange",function(g){u(b);var k=P(3);return v(k.editIssueService.updateSloEndTime(k.issueId,g.date))});L()}if(a&2){a=P(2);var c=P(),d,e,f;I("sloStatus",(d=W(1,9,c.sloStatus$))!=null?d:void 0)("sloStartTime",a.sloStartTime)("sloEndTime",
a.sloEndTime)("sloId",(e=W(2,11,c.sloId$))!=null?e:void 0)("componentId",a.componentId||void 0)("isEditable",!!W(3,13,c.hasAclToEdit$))("issueCreationTimestamp",(f=W(4,15,c.createdTimeMicros$))!=null?f:0)("showInternalOnlyFieldBadge",!W(5,17,c.issueIsOnInternalComponent$))("escalationOwner",a.escalationOwner)}},eVb=function(a){a&1&&E(0,dVb,6,19,"ng-template",67);a&2&&(a=P(2),I("refreshable",a.refreshMonitor.getObservable()))},gVb=function(a){if(a&1){var b=t();K(0,"b-edit-field",69);U(1,"async");U(2,
"async");N("valueChange",function(d){u(b);var e=P(2);return v(fVb(e.editIssueService,e.issueId,d!=null?d:""))});L()}if(a&2){a=P();var c=P();I("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",!W(1,8,c.hasAclToEdit$))("disabled",!!W(2,10,c.isSaving$(c.IssueFieldName.SEVERITY)))}},jVb=function(a){if(a&1){var b=t();K(0,"b-list-field",70);
U(1,"async");U(2,"async");N("valuesChange",function(g){u(b);var k=P(2),m=[],r=[];g=l(g.values);for(var w=g.next();!w.done;w=g.next()){w=w.value;var x=mr(w);x?m.push(x):r.push(w)}hVb(k.editIssueService,k.issueId,r);iVb(k.editIssueService,k.issueId,m);return v()});L();M(3,"b-list-field",44);U(4,"async");U(5,"async");U(6,"async")}if(a&2){var c,d,e;a=P();var f=P();I("readonly",!W(1,15,f.hasAclToEdit$))("defaultLineCount",3)("title","Code Changes")("inputValidator",f.codeChangesValidator)("type",f.ListFieldType.CODE_CHANGES)("values",
hsb(a,f.sessionIsExternal))("listFieldDisabled",!!W(2,17,f.isSaving$(f.IssueFieldName.CHANGELISTS)));B(3);yg("bv2-issue-metadata-error",(c=W(4,19,f.pendingCodeChanges$))==null?null:c.hasError);I("readonly",!0)("defaultLineCount",3)("title","Pending Code Changes")("type",f.ListFieldType.CODE_CHANGES)("values",((d=W(5,21,f.pendingCodeChanges$))==null?null:d.changes)||Jg(25,sUb))("tooltip",((e=W(6,23,f.pendingCodeChanges$))==null?0:e.hasError)?"Error fetching pending changelists":"Pending code changes (auto-populated)")}},
lVb=function(a){if(a&1){var b=t();K(0,"b-list-field",71);U(1,"async");U(2,"async");N("valuesChange",function(d){u(b);var e=P(2);return v(kVb(e.editIssueService,e.issueId,d.values))});L()}if(a&2){a=P();var c=P();I("readonly",!W(1,7,c.hasAclToEdit$))("defaultLineCount",3)("title","Found In")("type",c.ListFieldType.REPEATED_TEXT)("values",a.foundInVersion)("tooltip","Set the version(s) of the product affected by this issue")("listFieldDisabled",!!W(2,9,c.isSaving$(c.IssueFieldName.FOUND_IN_VERSION)))}},
nVb=function(a){if(a&1){var b=t();K(0,"b-list-field",71);U(1,"async");U(2,"async");N("valuesChange",function(d){u(b);var e=P(2);return v(mVb(e.editIssueService,e.issueId,d.values))});L()}if(a&2){a=P();var c=P();I("readonly",!W(1,7,c.hasAclToEdit$))("defaultLineCount",3)("title","Targeted To")("type",c.ListFieldType.REPEATED_TEXT)("values",a.targetedToVersion)("tooltip","Set the version(s) of the product in which the issue should be fixed")("listFieldDisabled",!!W(2,9,c.isSaving$(c.IssueFieldName.TARGETED_TO_VERSION)))}},
pVb=function(a){if(a&1){var b=t();K(0,"b-list-field",71);U(1,"async");U(2,"async");N("valuesChange",function(d){u(b);var e=P(2);return v(oVb(e.editIssueService,e.issueId,d.values))});L()}if(a&2){a=P();var c=P();I("readonly",!W(1,7,c.hasAclToEdit$))("defaultLineCount",3)("title","Verified In")("type",c.ListFieldType.REPEATED_TEXT)("values",a.verifiedInVersion)("tooltip","Set the version(s) of the product in which the issue fix was verified")("listFieldDisabled",!!W(2,9,c.isSaving$(c.IssueFieldName.VERIFIED_IN_VERSION)))}},
rVb=function(a){if(a&1){var b=t();K(0,"b-edit-field",72);U(1,"async");U(2,"async");N("valueChange",function(d){u(b);var e=P(2);return v(qVb(e.editIssueService,e.issueId,d!=null?d:!1))});L()}if(a&2){a=P();var c=P();I("name","inProd")("title","In Prod")("type",c.FieldType.BOOL)("value",a.inProd)("tooltip","Set if this issue occurs in production")("readonly",!W(1,7,c.hasAclToEdit$))("disabled",!!W(2,9,c.isSaving$(c.IssueFieldName.IN_PROD)))}},sVb=function(a){a&1&&Xf(0)},tVb=function(a){a&1&&Xf(0)},uVb=
function(a){a&1&&Xf(0)},vVb=function(a){a&1&&Xf(0)},wVb=function(a){a&1&&(K(0,"div",20),E(1,sVb,1,0,"ng-container",47)(2,tVb,1,0,"ng-container",47)(3,uVb,1,0,"ng-container",47)(4,vVb,1,0,"ng-container",47),L());if(a&2){P();a=Q(102);var b=Q(104),c=Q(106),d=Q(108);B();I("ngTemplateOutlet",a);B();I("ngTemplateOutlet",b);B();I("ngTemplateOutlet",c);B();I("ngTemplateOutlet",d)}},yVb=function(a,b){if(a&1){var c=t();K(0,"b-custom-field-editor",73);U(1,"async");U(2,"async");N("save",function(e){var f=u(c).$implicit,
g=P(2);return v(g.editIssueService.updateCustomField(g.issueId,f.customFieldId,e))});L();xma()}if(a&2){a=b.$implicit;b=P();var d=P();I("issue",b);Cma(a);I("readonly",!W(1,5,d.hasAclToEdit$))("disabled",!!W(2,7,d.isSaving$(Kg(9,xVb,a.customFieldId))))}},KVb=function(a,b){if(a&1){var c=t();F(0,oUb,1,1,"ng-container");U(1,"async");F(2,rUb,2,3);F(3,uUb,2,3);U(4,"async");K(5,"b-single-user-control",18);U(6,"async");N("valueChange",function(x){u(c);var D=P();return v(zVb(D,x))})("emailChange",function(x){u(c);
var D=P();return v(AVb(D.editIssueService,D.issueId,x))});L();K(7,"b-edit-field",19,0);U(9,"async");U(10,"async");N("valueChange",function(x){u(c);var D=Q(8),H=P();return v(BVb(H,D,x!=null?x:""))});L();K(11,"div",20)(12,"b-edit-field",21,1);U(14,"async");U(15,"async");N("onHotkey",function(){u(c);var x=Q(13);return v(rs(x,null,!0,!1))})("valueChange",function(x){u(c);var D=P();return v(CVb(D.editIssueService,D.issueId,x!=null?x:""))});L();F(16,wUb,1,1,"ng-container");U(17,"async");L();K(18,"div",
22)(19,"b-edit-field",23,2);U(21,"async");U(22,"async");U(23,"async");U(24,"async");N("onHotkey",function(){u(c);var x=Q(20);return v(rs(x,null,!0,!1))})("valueChange",function(x){u(c);var D=P();return v(D.onStatusChanged(x!=null?x:""))});L();F(25,yUb,2,3);U(26,"async");L();F(27,zUb,9,12,"div",24);U(28,"async");K(29,"onedev-hovercard",null,3);E(31,AUb,3,4,"b-issue-card",25);L();F(32,CUb,4,9,"b-estimated-effort-row",26);U(33,"async");K(34,"div",27)(35,"div",28)(36,"div",29)(37,"label");S(38,"Access");
L()();K(39,"div",30)(40,"span",31);S(41);U(42,"async");L();K(43,"div",32);U(44,"async");U(45,"async");N("click",function(){u(c);var x=P();return v(x.toggleAccessLimits())})("keydown.enter",function(x){u(c);var D=P();return v(D.toggleAccessLimitsWithKeystroke(x))})("keydown.space",function(x){u(c);var D=P();return v(D.toggleAccessLimitsWithKeystroke(x))});K(46,"span");S(47);U(48,"async");L()()()();K(49,"onedev-hovercard",null,4)(51,"div",33)(52,"div",34)(53,"span",35);S(54," Issue access level can only be set by Issue admins and it enables issue-level access control. ");
K(55,"a",36);S(56,"Learn more");L()()()()()();K(57,"div",37);U(58,"async");F(59,EUb,8,1,"div",38);U(60,"async");K(61,"b-single-user-control",39,5);U(63,"async");N("onHotkey",function(){u(c);var x=Q(62);return v(x.openEditor())})("valueChange",function(x){u(c);var D=P();return v(DVb(D,x))})("emailChange",function(x){u(c);var D=P();return v(EVb(D.editIssueService,D.issueId,x))});L();F(64,HUb,2,3);U(65,"async");K(66,"b-single-user-control",40);U(67,"async");N("valueChange",function(x){u(c);var D=P();
return v(FVb(D,x))})("emailChange",function(x){u(c);var D=P();return v(GVb(D.editIssueService,D.issueId,x))});L();Vf(68);K(69,"b-multi-user-control",41);U(70,"async");U(71,"async");U(72,"async");N("userInclusionToggle",function(){u(c);var x=P();return v(x.toggleCollaborators())})("valueChange",function(x){u(c);var D=P();return v(HVb(D,x))})("toggleAccessLimits",function(){u(c);var x=P();return v(x.toggleAccessLimits())});L();K(73,"b-multi-user-control",42);U(74,"async");U(75,"async");U(76,"async");
N("userInclusionToggle",function(){u(c);var x=P();return v(IVb(x))})("valueChange",function(x){u(c);var D=P();return v(JVb(D,x))});L();Wf();L();F(77,JUb,1,1,"ng-container");U(78,"async");F(79,LUb,2,3);U(80,"async");F(81,MUb,3,7,"b-staffing-row",43);F(82,NUb,1,6,"b-list-field",44);Pf(83,PUb,2,4,"div",null,t()[15][8].trackCustomField,!0);U(85,"async");Pf(86,QUb,2,4,"div",null,t()[15][8].trackCustomField,!0);U(88,"async");F(89,SUb,1,1,"ng-container");U(90,"async");F(91,TUb,1,0,"hr",45);U(92,"async");
F(93,cVb,13,18,"collapsible-panel",46);U(94,"async");E(95,eVb,1,1,"ng-template",null,6,Og)(97,gVb,3,12,"ng-template",null,7,Og)(99,jVb,7,26,"ng-template",null,8,Og)(101,lVb,3,11,"ng-template",null,9,Og)(103,nVb,3,11,"ng-template",null,10,Og)(105,pVb,3,11,"ng-template",null,11,Og)(107,rVb,3,11,"ng-template",null,12,Og)(109,wVb,5,4,"ng-template",null,13,Og)(111,yVb,3,11,"ng-template",null,14,Og)}if(a&2){var d,e;a=Q(30);var f=Q(50),g=P();G(g.showSloStatus&&W(1,97,g.isSloStatusPrimary$)?0:-1);B(2);G(g.sessionIsInternal?
2:-1);B();G((d=W(4,99,g.teamWarningType$))?3:-1,d);B(2);var k;I("name","reporter")("title","Reporter")("value",b.reporter)("user",(k=b.reporterUser)!=null?k:void 0)("isSaving",W(6,101,g.isSaving$(g.IssueFieldName.REPORTER)));B(2);I("name","type")("title","Type")("type",g.FieldType.ENUM)("value",b.type)("choices",g.typeChoices)("readonly",!W(9,103,g.hasAclToEdit$))("disabled",!!W(10,105,g.isSaving$(g.IssueFieldName.TYPE)));B(5);I("name","priority")("title","Priority")("type",g.FieldType.ENUM)("tooltip",
"Set priority, which reflects how soon the issue should be fixed")("value",b.priority)("choices",g.priorityChoices)("hotkey",g.HOTKEYS.OPEN_ISSUE_PRIORITY_MENU)("readonly",!W(14,107,g.hasAclToEdit$))("disabled",!!W(15,109,g.isSaving$(g.IssueFieldName.PRIORITY)))("showHotkeyHint",!0);B(4);G(W(17,111,g.isSeverityPrimary$)?16:-1);B(3);var m;I("name","status")("title","Status")("type",g.FieldType.ENUM)("value",b.status)("choices",(m=W(21,113,g.statusChoices$))!=null?m:Jg(171,sUb))("showHotkeyHint",!0)("hotkey",
g.HOTKEYS.OPEN_ISSUE_STATUS_MENU)("readonly",!W(22,115,g.hasAclToEdit$))("disabled",!!W(23,117,g.isSaving$(g.IssueFieldName.STATUS)))("onedevHovercardActive",!!W(24,119,g.canonicalIssueId$))("onedevHovercardTrigger",a);B(6);G(W(26,121,g.hasAclToEdit$)?25:-1);B(2);G(W(28,123,g.showTriagePhaseRow$)?27:-1);B(5);G(W(33,125,g.isEffortEnabled$)?32:-1);B(3);I("onedevHovercardTrigger",f)("onedevHovercardActive",!0)("onedevHovercardConfig",g.ACCESS_LIMITS_HOVERCARD_CONFIG);B(6);Ag(g.getAccessLimitLevelDisplay(W(42,
127,g.accessLimitLevel$)));B(2);I("matTooltip",W(44,129,g.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)");Jf("aria-label",W(45,131,g.hasAclToAdmin$)?"Edit":"View");B(4);T(" ",W(48,133,g.hasAclToAdmin$)?"Edit":"View"," ");B(8);I("href",g.documentationLinks.getIssueAccessLimit(),Me);B(2);yg("implicit-access-box",W(58,135,g.isImplicitAccessEnabled$));B(2);G(W(60,137,g.isImplicitAccessEnabled$)?
59:-1);B(2);var r;I("name","assignee")("title","Assignee")("hotkey",g.HOTKEYS.CHANGE_ASSIGNEE)("value",b.assignee)("user",(r=b.assigneeUser)!=null?r:void 0)("isSaving",W(63,139,g.isSaving$(g.IssueFieldName.ASSIGNEE)));B(3);G(g.defaultAssigneeQuickActionEnabled&&W(65,141,g.hasAclToEdit$)?64:-1);B(2);var w;I("name","verifier")("title","Verifier")("value",b.verifier)("user",(w=b.verifierUser)!=null?w:void 0)("isSaving",W(67,143,g.isSaving$(g.IssueFieldName.VERIFIER)));B(3);I("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",W(70,145,g.isSaving$(g.IssueFieldName.COLLABORATORS)))("isCurrentUserInCollection",W(71,147,g.isCurrentUserCollaborator$))("isAllowedToEditCollection",
W(72,149,g.hasAclToEdit$))("iconName","groups_24px")("inputValidator",g.collaboratorUserPrincipalValidator)("checkAccessLimits",!0);B(4);I("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",W(74,151,g.isSaving$(g.IssueFieldName.CCS)))("isCurrentUserInCollection",
W(75,153,g.isCurrentUserCCd$))("isAllowedToEditCollection",W(76,155,g.isAllowedToEditCC$))("inputValidator",g.emailsValidator)("iconName","add_alert_24px");B(4);G(W(78,157,g.isChangelistPrimary$)?77:-1);B(2);G((e=W(80,159,g.workspaces$))?79:-1,e);B(2);G(g.sessionIsInternal?81:-1);B();G(!g.sessionIsExternal&&(b.postmortems==null?0:b.postmortems.length)?82:-1);B();Qf(W(85,161,g.visibleGlobalCustomFields$));B(3);Qf(W(88,163,g.visibleCustomFields$));B(3);G(W(90,165,g.isForgottenFourPrimary$)?89:-1);B(2);
G(W(92,167,g.hasHiddenFields$)?91:-1);B(2);G(W(94,169,g.hasHiddenFields$)?93:-1)}},LVb=function(a,b){if(a&1){var c=t();K(0,"a",18);N("click",function(){u(c);P().analytics.trackEvent("issueSidebar","navigate","issueDetailsPage");return v()});K(1,"span",19);S(2,"Navigate to issue ");L();S(3);L();K(4,"button",20);N("click",function(){var d=u(c),e=P();return v(e.copyIssueId(d))});M(5,"mat-icon",21);L()}a&2&&(I("href",Gg("/issues/",b),Me),B(3),T(" ",b," "))},MVb=function(a,b){if(a&1){var c=t();K(0,"b-app-vote-button",
22);N("onVote",function(d){u(c);var e=P();return v(e.upvoted(d))});L()}a&2&&I("issueId",b.issueId)("upvoted",!(b.userData==null||!b.userData.voted))("voteCount",(b.aggregatedData==null?null:b.aggregatedData.voteCount)||0)},OVb=function(a){if(a&1){var b=t();K(0,"span");S(1);L();K(2,"button",24);N("click",function(){u(b);var c=P(2);return v(NVb(c))});M(3,"mat-icon",25);L()}a&2&&(a=P(),Jf("title",a.snapshot[0].title),B(),T(" ",a.snapshot[0].title," "))},QVb=function(a){if(a&1){var b=t();K(0,"button",
31);N("click",function(){u(b);var c=P(3);return v(PVb(c))});S(1,"Cancel");L()}},RVb=function(a){a&1&&S(0," Update title ")},SVb=function(a){a&1&&Xf(0)},TVb=function(a){a&1&&E(0,SVb,1,0,"ng-container",32);a&2&&(P(3),a=Q(23),I("ngTemplateOutlet",a))},UVb=function(a){if(a&1){var b=t();K(0,"mat-form-field",26)(1,"textarea",27);Eg("ngModelChange",function(c){u(b);var d=P(2);Dg(d.draftTitle,c)||(d.draftTitle=c);return v(c)});L()();K(2,"div",28);F(3,QVb,2,0,"button",29);K(4,"button",30);N("click",function(){u(b);
var c=P(2);return v(c.saveTitle())});F(5,RVb,1,0)(6,TVb,1,1,"ng-container");L()()}a&2&&(a=P(2),B(),I("cdkTextareaAutosize",!0)("cdkAutosizeMinRows",1),Cg("ngModel",a.draftTitle),I("bFocus",!0),B(2),G(a.isSavingTitle?-1:3),B(),I("disabled",a.isSavingTitle),B(),G(a.isSavingTitle?6:5))},VVb=function(a){a&1&&(K(0,"div",15)(1,"div",23),F(2,OVb,4,2),F(3,UVb,7,7),L()());a&2&&(a=P(),B(2),G(a.editTitleMode?-1:2),B(),G(a.editTitleMode?3:-1))},WVb=function(a){a&1&&(K(0,"span"),S(1," No update yet "),L())},XVb=
function(a){if(a&1){var b=t();K(0,"button",49);N("click",function(){u(b);var c=P(2);return v(c.editStatusUpdate())});M(1,"mat-icon",25);L()}},YVb=function(a){a&1&&M(0,"mat-icon",46)},ZVb=function(a){a&1&&M(0,"mat-icon",47)},$Vb=function(a){if(a&1){var b=t();K(0,"button",50);N("click",function(){u(b);var c=P(2);return v(c.isStatusUpdateExpanded=!c.isStatusUpdateExpanded)});F(1,YVb,1,0,"mat-icon",46);F(2,ZVb,1,0,"mat-icon",47);L()}a&2&&(a=P(2),Jf("aria-expanded",a.isStatusUpdateExpanded),B(),G(a.isStatusUpdateExpanded?
-1:1),B(),G(a.isStatusUpdateExpanded?2:-1))},aWb=function(a,b){a&1&&(M(0,"b-note-container",52),U(1,"async"));if(a&2){a=P();var c=P(),d=P(2);I("issueId",b)("note",c)("issueAccessLevel",W(1,4,d.accessLevel$))("formattingMode",a.formattingMode)}},bWb=function(a){a&1&&(K(0,"div",51),F(1,aWb,2,6,"b-note-container",52),U(2,"async"),L());if(a&2){var b;a=P();var c=P(2);B();G((b=a.unlinkifiedComment!==""&&W(2,1,c.issueId$))?1:-1,b)}},cWb=function(a){a&1&&(F(0,bWb,3,3,"div",51),U(1,"async"));if(a&2){var b;
a=P(2);G((b=W(1,1,a.statusUpdate$))?0:-1,b)}},dWb=function(a){a&1&&(K(0,"span"),S(1," No description yet "),L())},fWb=function(a){if(a&1){var b=t();K(0,"button",56);N("click",function(){u(b);var c=P(3);return v(eWb(c))});M(1,"mat-icon",25);L()}},gWb=function(a){a&1&&M(0,"mat-icon",46)},hWb=function(a){a&1&&M(0,"mat-icon",47)},iWb=function(a){if(a&1){var b=t();K(0,"button",57);N("click",function(){u(b);var c=P(3);return v(c.isDescriptionExpanded=!c.isDescriptionExpanded)});F(1,gWb,1,0,"mat-icon",46);
F(2,hWb,1,0,"mat-icon",47);L()}a&2&&(a=P(3),Jf("aria-expanded",a.isDescriptionExpanded),B(),G(a.isDescriptionExpanded?-1:1),B(),G(a.isDescriptionExpanded?2:-1))},jWb=function(a,b){a&1&&(M(0,"b-note-container",52),U(1,"async"));if(a&2){a=P();var c=P(2),d=P(2),e;I("issueId",b)("note",a)("issueAccessLevel",W(1,4,d.accessLevel$))("formattingMode",(e=c[0].formattingMode)!=null?e:d.FormattingMode.PLAIN)}},kWb=function(a){if(a&1){var b=t();K(0,"div",59)(1,"a",60);N("click",function(){u(b);var c=P(5);c.analytics.trackEvent("issueSidebar",
"showMoreDescription");c.showFullDescription=!0;return v()});S(2," Show more ");L()()}},lWb=function(a){a&1&&(K(0,"div",58),F(1,jWb,2,6,"b-note-container",52),U(2,"async"),U(3,"async"),L(),F(4,kWb,3,0,"div",59));if(a&2){var b;a=P(4);yg("full-height",a.showFullDescription);B();G((b=W(2,4,a.hasDescription$)&&W(3,6,a.issueId$))?1:-1,b);B(3);G(!a.showFullDescription&&a.descriptionHasMore?4:-1)}},mWb=function(a){a&1&&(K(0,"div",55,3),F(2,lWb,5,8),U(3,"async"),U(4,"async"),L());if(a&2){var b;a=P(3);B(2);
G((b=W(3,1,a.hasDescription$)&&W(4,3,a.firstNote$))?2:-1,b)}},nWb=function(a){a&1&&(K(0,"div",41)(1,"div",35)(2,"div",36)(3,"span"),S(4,"DESCRIPTION"),L()(),K(5,"div",38),F(6,dWb,2,0,"span"),U(7,"async"),F(8,fWb,2,0,"button",53),U(9,"async"),U(10,"async"),F(11,iWb,3,3,"button",54),U(12,"async"),L()(),F(13,mWb,5,5,"div",55),L());a&2&&(a=P(2),B(6),G(W(7,4,a.hasDescription$)?-1:6),B(2),G(!a.isDescriptionExpanded&&W(9,6,a.hasDescription$)||!W(10,8,a.userCanEditDescription$)?-1:8),B(3),G(W(12,10,a.hasDescription$)?
11:-1),B(2),G(a.isDescriptionExpanded?13:-1))},oWb=function(a){a&1&&Xf(0)},pWb=function(a){a&1&&E(0,oWb,1,0,"ng-container",32);a&2&&(P(2),a=Q(23),I("ngTemplateOutlet",a))},qWb=function(a){a&1&&S(0," 1 suggestion available ")},rWb=function(a){a&1&&S(0," 2 suggestions available ")},sWb=function(a){a&1&&(K(0,"div",62),M(1,"b-recommendation",63),L());a&2&&(P(2),a=dg(26),B(),I("recommendation",a)("showTitle",!0))},tWb=function(a){a&1&&(K(0,"div",62),M(1,"b-recommendation",63),L());a&2&&(P(2),a=dg(23),
B(),I("recommendation",a)("showTitle",!0))},uWb=function(a){a&1&&(K(0,"div",42)(1,"div",35)(2,"div",36),M(3,"mat-icon",61),K(4,"span"),S(5," AI SUGGESTIONS "),L()(),K(6,"div",38),F(7,qWb,1,0)(8,rWb,1,0),L()(),F(9,sWb,2,2,"div",62),F(10,tWb,2,2,"div",62),L());if(a&2){P();a=dg(25);var b=dg(26);B(7);G(a&&b?8:7);B(2);G(b?9:-1);B();G(a?10:-1)}},vWb=function(a){a&1&&M(0,"mat-icon",46)},wWb=function(a){a&1&&M(0,"mat-icon",47)},xWb=function(a){a&1&&(K(0,"div",48),M(1,"edit-issue-metadata",64),L());a&2&&(a=
P(),B(),I("issueId",a.issueId))},yWb=function(a){if(a&1){var b=t();K(0,"div",17);M(1,"b-insights-enrichments",33,2);U(3,"async");K(4,"div",34)(5,"div",35)(6,"div",36);M(7,"mat-icon",37);K(8,"span");S(9," STATUS UPDATE ");L()();K(10,"div",38);F(11,WVb,2,0,"span");U(12,"async");F(13,XVb,2,0,"button",39);U(14,"async");U(15,"async");F(16,$Vb,3,3,"button",40);U(17,"async");L()();F(18,cWb,2,3);U(19,"async");L();F(20,nWb,14,12,"div",41);U(21,"async");Mf(22,pWb,1,1,"ng-container");bg(23);U(24,"async");bg(25)(26);
U(27,"async");F(28,uWb,11,3,"div",42);K(29,"div",43)(30,"div",35)(31,"div",36);M(32,"mat-icon",44);K(33,"span");S(34,"FIELDS");L()();K(35,"button",45);N("click",function(){u(b);var f=P();return v(f.isFieldsExpanded=!f.isFieldsExpanded)});F(36,vWb,1,0,"mat-icon",46);F(37,wWb,1,0,"mat-icon",47);L()();F(38,xWb,2,1,"div",48);L()()}if(a&2){var c,d,e=Q(2);a=P();B();yg("hidden",!W(3,13,e.shouldShowInsights$));I("initiallyCollapsed",!0);B(10);G(W(12,15,a.hasStatusUpdate$)?-1:11);B(2);G(!a.isStatusUpdateExpanded&&
W(14,17,a.hasStatusUpdate$)||!W(15,19,a.userCanEditStatusUpdate$)?-1:13);B(3);G(W(17,21,a.hasStatusUpdate$)?16:-1);B(2);G((c=a.isStatusUpdateExpanded&&W(19,23,a.statusUpdateNote$))?18:-1,c);B(2);G((d=W(21,25,a.events$))?20:22,d);B(3);c=cg(W(24,27,a.playbookRecommendation$));B(2);c=cg(a.enableTriageRecommendations&&!!c);B();d=cg(W(27,31,a.dedupeRecommendation$));B(2);G(c||d?28:-1);B(7);Jf("aria-expanded",a.isFieldsExpanded);B();G(a.isFieldsExpanded?-1:36);B();G(a.isFieldsExpanded?37:-1);B();G(a.isFieldsExpanded?
38:-1)}},zWb=function(a){a&1&&Xf(0)},AWb=function(a){a&1&&E(0,zWb,1,0,"ng-container",32);a&2&&(P(),a=Q(23),I("ngTemplateOutlet",a))},BWb=function(a){a&1&&(K(0,"div",65),M(1,"b-spinner"),L())},CWb=function(a){a&1&&(S(0," This issue has not been modified since "),M(1,"b-formatted-date-time",1),S(2," and is scheduled for deletion on "),K(3,"strong"),M(4,"b-formatted-date-time",1),L(),S(5,". "));a&2&&(a=P(2),B(),I("mode","date")("timestamp",a.modifiedTime)("paddingLeftPx",0),B(3),I("mode","date")("timestamp",
a.retentionExpireTime)("paddingLeftPx",0))},DWb=function(a){a&1&&S(0," This issue is retained indefinitely. ")},EWb=function(a){a&1&&(F(0,CWb,6,6)(1,DWb,1,0),K(2,"a",0),S(3,"Learn more"),L());a&2&&(a=P(),G(a.retentionState.retentionPeriod?0:1),B(2),I("href",a.documentationLink,Me))},FWb=function(a){a&1&&(K(0,"b-base-chip",0)(1,"div",1),M(2,"retention-text",2),L(),K(3,"div",3),M(4,"retention-help-text",4),L()());a&2&&(a=P(),I("compactMode",a.compactMode)("labelClass",a.dangerZone?"danger":"expiring")("labelOnlyMode",
a.labelOnlyMode),B(2),I("retentionState",a.retentionState)("compactMode",a.compactMode),B(2),I("retentionState",a.retentionState)("modifiedTime",a.modifiedTime))},GWb=function(a){var b=b===void 0?new Date:b;var c=a.retentionPeriod;return b.getTime()>=to(a.scheduledDeletionTime)-Math.max(12096E5,.2*(c?c.seconds*1E3+(c.nanos||0)/1E6:0))},JWb=function(a){if(a&1){var b=t();K(0,"issue-sidebar",10);N("closeSidebar",function(){u(b);var d=P(2);return v(d.isIssueSidebarOpen=!1)})("navigateToNextIssue",function(){u(b);
var d=P(2);return v(HWb(d))})("navigateToPreviousIssue",function(){u(b);var d=P(2);return v(IWb(d))});L()}if(a&2){var c;a=P(2);I("issueId",(c=a.getFocusedIssue())==null?null:c.issueId)}},KWb=function(a){a&1&&Xf(0)},LWb=function(a){if(a&1){var b=t();K(0,"mat-sidenav-container",6,2)(2,"mat-sidenav",7);N("openedChange",function(d){u(b);P().anayltics.trackEvent("issueSidebar",d?"open":"close");return v()});F(3,JWb,1,1,"issue-sidebar",8);L();K(4,"mat-sidenav-content");E(5,KWb,1,0,"ng-container",9);L()()}if(a&
2){a=P();var c=Q(4);yg("sidebar-enabled",a.isIssueSidebarEnabled);B(2);I("opened",a.isIssueSidebarOpen)("disableClose",!0);B();G(a.isIssueSidebarOpen?3:-1);B(2);I("ngTemplateOutlet",c)}},MWb=function(a){a&1&&Xf(0)},NWb=function(a){a&1&&E(0,MWb,1,0,"ng-container",9);a&2&&(P(),a=Q(4),I("ngTemplateOutlet",a))},OWb=function(a){if(a&1){var b=t();K(0,"div",11)(1,"b-callout",33)(2,"b-callout-body");S(3," Inactive issues not shown. Use ");K(4,"span",34);S(5,"status:inactive");L();S(6," to see these issues. ");
K(7,"a",35);S(8,"Learn more");L()();K(9,"b-callout-actions")(10,"button",36);N("click",function(){u(b);P(2).dismissalService.dismiss("inactive-features-warning").pipe(mf(1)).subscribe();return v()});S(11,"Dismiss");L()()()()}},PWb=function(a,b){a&1&&M(0,"th",37);a&2&&Jf("data-stable-column-name",b.column.name)},QWb=function(a,b){a&1&&M(0,"th",38);a&2&&Jf("data-stable-column-name",b.column.name)},UWb=function(a){if(a&1){var b=t();K(0,"mat-pseudo-checkbox",41);N("click",function(c){u(b);var d=P(3);
c.stopPropagation();return v(RWb(d))})("keydown.enter",function(c){u(b);var d=P(3);c.stopPropagation();return v(RWb(d))})("keydown.space",function(c){u(b);var d=P(3);c.stopPropagation();return v(RWb(d))});L()}a&2&&(a=P(3),I("state",SWb(a)),Jf("aria-checked",TWb(a)))},VWb=function(a,b){a&1&&(K(0,"th",39),F(1,UWb,1,2,"mat-pseudo-checkbox",40),L());a&2&&(a=b.column,b=P(2),Jf("data-stable-column-name",a.name),B(),G(b.isIssueGridColumn(a)?1:-1))},WWb=function(a,b){a&1&&M(0,"th");a&2&&Jf("data-stable-column-name",
b.column.name)},XWb=function(a){a&1&&M(0,"pop-grid-default-th",42);a&2&&(a=P().column,I("column",a))},YWb=function(a,b){a&1&&(K(0,"th"),F(1,XWb,1,1,"pop-grid-default-th",42),L());a&2&&(a=b.column,b=P(2),Jf("data-stable-column-name",a.name),B(),G(b.isIssueGridColumn(a)?1:-1))},ZWb=function(a){if(a&1){var b=t();K(0,"b-column-picker",44);N("selectedColumnsChange",function(d){u(b);var e=P(4);e.columns=d;e.columnsChange.emit(d);e.cdr.detectChanges();return v()});L()}if(a&2){a=P(2).column;var c=P(2);I("column",
a)("availableColumns",c.availableColumns)("selectedColumns",c.columns)}},$Wb=function(a){a&1&&M(0,"pop-grid-default-th",42);a&2&&(a=P(2).column,I("column",a))},aXb=function(a){a&1&&F(0,ZWb,1,3,"b-column-picker",43)(1,$Wb,1,1,"pop-grid-default-th",42);a&2&&(a=P(3),G(a.enableColumnSaving?0:1))},bXb=function(a,b){a&1&&(K(0,"th"),F(1,aXb,2,1),L());a&2&&(a=b.column,b=P(2),Jf("data-stable-column-name",a.name),B(),G(b.isIssueGridColumn(a)?1:-1))},cXb=function(a){a&1&&M(0,"td",37)},dXb=function(a){a&1&&M(0,
"td",45)},eXb=function(a){if(a&1){var b=t();K(0,"mat-pseudo-checkbox",47);N("click",function(c){u(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 g=d+1;var k=f.lastCheckedIndex+1}else g=f.lastCheckedIndex,k=d;g=l(f.searchResults.issues.slice(g,k));for(k=g.next();!k.done;k=g.next())k.value.selected=!c;zu(f)}e.selected=!e.selected;f.lastCheckedIndex=d;zu(f);return v()});L()}a&2&&(a=P().row,
I("state",a.selected?"checked":"unchecked"),Jf("aria-label","Select issue "+a.issueId)("aria-checked",a.selected))},fXb=function(a){a&1&&(K(0,"td",39),F(1,eXb,1,3,"mat-pseudo-checkbox",46),L());a&2&&(P(2),B(),G(1))},gXb=function(a){if(a&1){var b=t();K(0,"b-star-toggle",50);N("starClicked",function(){u(b);var d=P().row,e=P(2);return v(e.toggleStar(d))});L()}if(a&2){a=P().row;var c=P(2);I("starred",a.starred)("disabled",c.starInProgress[a.issueId])("starMessage","Star this issue")("unStarMessage","Un-star this issue")}},
hXb=function(a){a&1&&(K(0,"td",48),F(1,gXb,1,4,"b-star-toggle",49),L());a&2&&(P(2),B(),G(1))},iXb=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P().row,Jf("title",a.position),B(),T(" ",a.position," "))},jXb=function(a){a&1&&(K(0,"td"),F(1,iXb,2,2,"span"),L());a&2&&(P(2),B(),G(1))},kXb=function(a){if(a&1){var b=t();K(0,"b-issue-id-picker",54);N("click",function(c){u(b);return v(c.stopPropagation())});L()}a&2&&(a=P(2).row,I("issueId",a.issueId)("showCopyOptions",!1),Jf("title",a.title))},lXb=function(a){a&
1&&(K(0,"a",53),S(1),L());a&2&&(a=P(2).row,P(2),I("href",As(a.issueId),Me),Jf("title",a.title),B(),T(" ",a.issueId," "))},mXb=function(a){a&1&&F(0,kXb,1,3,"b-issue-id-picker",52)(1,lXb,2,3,"a",53);a&2&&(a=P(3),G((a.listViewPrefs==null?null:a.listViewPrefs.modeForField==null?null:a.listViewPrefs.modeForField.id)==="copy"?0:1))},nXb=function(a){a&1&&(K(0,"td",51),F(1,mXb,2,1),L());a&2&&(P(2),B(),G(1))},oXb=function(a){a&1&&M(0,"archived-issue-indicator")},pXb=function(a){a&1&&M(0,"mat-icon",63)},rXb=
function(a){if(a&1){var b=t();K(0,"b-sidebar-toggle",67);N("onClick",function(){u(b);var d=P(4);return v(qXb(d))});L()}if(a&2){a=P(2).index;var c=P(2);I("isParentRowActive",c.hoveredRowIndex===a||c.focusedRowIndex===a&&c.isIssueSidebarOpen)}},sXb=function(a,b){a&1&&M(0,"b-hotlist-chip-smart",68);a&2&&I("id",b.$implicit)("removable",!1)},tXb=function(a){a&1&&(K(0,"div",65),Pf(1,sXb,1,2,"b-hotlist-chip-smart",68,Of),L());a&2&&(a=P(2).row,B(),Qf(a.hotlistId))},uXb=function(a){if(a&1){var b=t();K(0,"recommendation-chip",
70);N("onClick",function(){u(b);var e=P(5);qXb(e);return v()});L()}if(a&2){P();a=dg(1);var c=P(2).index,d=P(2);I("recommendation",a)("isParentRowActive",d.hoveredRowIndex===c||d.focusedRowIndex===c&&d.isIssueSidebarOpen)}},vXb=function(a){a&1&&(K(0,"div",66),bg(1),F(2,uXb,1,2,"recommendation-chip",69),L());if(a&2){a=P(2).row;P();var b=dg(3);B();a=cg(b.get(a.issueId));B();G(a?2:-1)}},wXb=function(a){a&1&&(K(0,"div",57),F(1,oXb,1,0,"archived-issue-indicator"),M(2,"b-issue-visibility-chip",58)(3,"b-tracker-chip-smart",
59)(4,"b-retention-chip",60),K(5,"div",61)(6,"a",62),S(7),F(8,pXb,1,0,"mat-icon",63),L(),F(9,rXb,1,1,"b-sidebar-toggle",64),L(),F(10,tXb,3,0,"div",65),F(11,vXb,3,2,"div",66),L());if(a&2){a=P().row;P();var b=dg(3),c=P();yg("bv2-grid-cell-flex-wrap",c.listViewPrefs&&c.listViewPrefs.wrapTitles)("no-padding",c.isIssueSidebarEnabled&&c.isSidebarIlpIconEnabled)("align-items-center",c.isIssueSidebarEnabled&&c.isSidebarIlpIconEnabled);B();G(a.archived?1:-1);B();I("issueId",a.issueId)("compactMode",!0);B();
I("trackerId",a.trackerId)("compactMode",!0);B();I("retentionState",a.retentionState)("showOnlyInDangerZone",!0)("compactMode",!0)("modifiedTime",a.modifiedTime);B(2);I("href",As(a.issueId),Me);Jf("title",a.title);B();T(" ",a.title," ");B();G(c.isIssueSidebarEnabled&&!c.isSidebarIlpIconEnabled?8:-1);B();G(c.isIssueSidebarEnabled&&c.isSidebarIlpIconEnabled?9:-1);B();G(c.listViewPrefs&&c.listViewPrefs.showHotlists?10:-1);B();G(c.isPlaybookEnabled&&b?11:-1)}},xXb=function(a){a&1&&(K(0,"td",55),F(1,wXb,
12,22,"div",56),L());a&2&&(a=P(2),yg("bv2-grid-cell-variable-height",a.listViewPrefs&&a.listViewPrefs.wrapTitles)("bv2-grid-cell-recommendation",a.isPlaybookEnabled),B(),G(1))},yXb=function(a){a&1&&(K(0,"div",73),S(1),L());a&2&&(a=P().row,P(2),yg("low",Number(a.priority)>=2)("high",Number(a.priority)<2)("p0",Number(a.priority)===0),B(),T(" P",a.priority," "))},zXb=function(a){a&1&&(K(0,"td",71),F(1,yXb,2,7,"div",72),L());a&2&&(P(2),B(),G(1))},AXb=function(a){a&1&&(K(0,"div",73),S(1),L());a&2&&(a=
P().row,P(2),yg("low",Number(a.severity)>=2)("high",Number(a.severity)<2)("p0",Number(a.severity)===0),B(),T(" S",a.severity," "))},BXb=function(a){a&1&&(K(0,"td",74),F(1,AXb,2,7,"div",72),L());a&2&&(P(2),B(),G(1))},CXb=function(a){a&1&&M(0,"mat-icon",77);if(a&2){a=P();var b=P(4),c;I("svgIcon",(c=b.ISSUE_STATUS_JS_ICON_NAME.get(a))!=null?c:"")}},DXb=function(a){a&1&&S(0);if(a&2){a=P();var b=P(4),c;T(" ",(c=b.STATUS_JS_TERSE.get(a))!=null?c:""," ")}},EXb=function(a){a&1&&(K(0,"span"),S(1),L());if(a&
2){a=P();var b=P(4);zg(Gg("chippy status-",a," margin-left-auto"));B();var c;T(" ",(c=b.STATUS_JS_TERSE.get(a))!=null?c:""," ")}},FXb=function(a,b){a&1&&(K(0,"span",76),F(1,CXb,1,1,"mat-icon",77)(2,DXb,1,1)(3,EXb,2,4,"span",78),L());if(a&2){var c;a=P(4);var d,e,f;I("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:"");B();G((c=a.listViewPrefs==null?null:a.listViewPrefs.fieldStatus==null?null:a.listViewPrefs.fieldStatus.mode)===
"icon"?1:c==="plain"?2:3)}},GXb=function(a){a&1&&F(0,FXb,4,2,"span",76);if(a&2){var b;a=P().row;G((b=a.status)?0:-1,b)}},HXb=function(a){a&1&&(K(0,"td",75),F(1,GXb,1,1),L());a&2&&(P(2),B(),G(1))},IXb=function(a){a&1&&(S(0),U(1,"enumToHuman"));a&2&&(a=P().row,T(" ",W(1,1,a.type)," "))},JXb=function(a){a&1&&(K(0,"td",79),F(1,IXb,2,3),L());a&2&&(P(2),B(),G(1))},KXb=function(a){a&1&&(K(0,"b-person-hovercard",81),U(1,"omitObfuscatedEmail"),S(2),L());a&2&&(a=P(2).row,I("email",W(1,2,a.reporter)),B(2),T(" ",
a.reporter," "))},LXb=function(a){a&1&&(K(0,"span"),S(1,"--"),L())},MXb=function(a){a&1&&(F(0,KXb,3,4,"b-person-hovercard",81),U(1,"omitObfuscatedEmail"),F(2,LXb,2,0,"span"));a&2&&(a=P().row,G(W(1,2,a.reporter)?0:-1),B(2),G(a.reporter?-1:2))},NXb=function(a){a&1&&(K(0,"td",80),F(1,MXb,3,4),L());a&2&&(P(2),B(),G(1))},OXb=function(a){a&1&&(K(0,"b-person-hovercard",81),U(1,"omitObfuscatedEmail"),S(2),L());a&2&&(a=P(2).row,I("email",W(1,2,a.assignee)),B(2),T(" ",a.assignee," "))},PXb=function(a){a&1&&
(K(0,"span"),S(1,"--"),L())},QXb=function(a){a&1&&(F(0,OXb,3,4,"b-person-hovercard",81),U(1,"omitObfuscatedEmail"),F(2,PXb,2,0,"span"));a&2&&(a=P().row,G(W(1,2,a.assignee)?0:-1),B(2),G(a.assignee?-1:2))},RXb=function(a){a&1&&(K(0,"td",80),F(1,QXb,3,4),L());a&2&&(P(2),B(),G(1))},SXb=function(a){a&1&&(K(0,"b-person-hovercard",81),U(1,"omitObfuscatedEmail"),S(2),L());a&2&&(a=P(2).row,I("email",W(1,2,a.verifier)),B(2),T(" ",a.verifier," "))},TXb=function(a){a&1&&(K(0,"span"),S(1,"--"),L())},UXb=function(a){a&
1&&(F(0,SXb,3,4,"b-person-hovercard",81),U(1,"omitObfuscatedEmail"),F(2,TXb,2,0,"span"));a&2&&(a=P().row,G(W(1,2,a.verifier)?0:-1),B(2),G(a.verifier?-1:2))},VXb=function(a){a&1&&(K(0,"td",80),F(1,UXb,3,4),L());a&2&&(P(2),B(),G(1))},WXb=function(a){a&1&&(K(0,"span"),U(1,"arrayToHuman"),S(2),U(3,"arrayToHuman"),L());a&2&&(a=P().row,Jf("title",W(1,2,a.cc)),B(2),T(" ",W(3,4,a.cc)," "))},XXb=function(a){a&1&&(K(0,"td",80),F(1,WXb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},YXb=function(a){a&1&&(K(0,"span"),
U(1,"arrayToHuman"),S(2),U(3,"arrayToHuman"),L());a&2&&(a=P().row,Jf("title",W(1,2,a.changelist)),B(2),T(" ",W(3,4,a.changelist)," "))},ZXb=function(a){a&1&&(K(0,"td",80),F(1,YXb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},$Xb=function(a){a&1&&(K(0,"span"),U(1,"arrayToHuman"),S(2),U(3,"arrayToHuman"),L());a&2&&(a=P().row,Jf("title",W(1,2,a.postmortem)),B(2),T(" ",W(3,4,a.postmortem)," "))},aYb=function(a){a&1&&(K(0,"td",80),F(1,$Xb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},bYb=function(a){a&1&&Xf(0)},cYb=
function(a){a&1&&(K(0,"span"),S(1,", "),L())},eYb=function(a,b){a&1&&(E(0,bYb,1,0,"ng-container",82),F(1,cYb,2,0,"span"));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;P(4);var d=Q(6);I("ngTemplateOutlet",d)("ngTemplateOutletContext",Kg(3,dYb,a));B();G(c!==b-1?1:-1)}},fYb=function(a){a&1&&Pf(0,eYb,2,5,null,null,Of);a&2&&(a=P().row,Qf(a.blockingIssueId))},gYb=function(a){a&1&&(K(0,"td",80),F(1,fYb,2,0),L());a&2&&(P(2),B(),G(1))},hYb=function(a){a&1&&Xf(0)},iYb=function(a){a&1&&(K(0,"span"),S(1,", "),
L())},jYb=function(a,b){a&1&&(E(0,hYb,1,0,"ng-container",82),F(1,iYb,2,0,"span"));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;P(4);var d=Q(6);I("ngTemplateOutlet",d)("ngTemplateOutletContext",Kg(3,dYb,a));B();G(c!==b-1?1:-1)}},kYb=function(a){a&1&&Pf(0,jYb,2,5,null,null,Of);a&2&&(a=P().row,Qf(a.blockedByIssueId))},lYb=function(a){a&1&&(K(0,"td",80),F(1,kYb,2,0),L());a&2&&(P(2),B(),G(1))},mYb=function(a){a&1&&Xf(0)},nYb=function(a){a&1&&E(0,mYb,1,0,"ng-container",82);if(a&2){a=P(2).row;P(2);var b=
Q(6);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,dYb,a.duplicateOfIssueId))}},oYb=function(a){a&1&&F(0,nYb,1,4,"ng-container");a&2&&(a=P().row,G(a.duplicateOfIssueId?0:-1))},pYb=function(a){a&1&&(K(0,"td",80),F(1,oYb,1,1),L());a&2&&(P(2),B(),G(1))},qYb=function(a){a&1&&M(0,"b-formatted-date-time",84);a&2&&(a=P().row,I("timestamp",a.createdTime))},rYb=function(a){a&1&&(K(0,"td",83),F(1,qYb,1,1,"b-formatted-date-time",84),L());a&2&&(P(2),B(),G(1))},sYb=function(a){a&1&&M(0,"b-formatted-date-time",
84);a&2&&(a=P().row,I("timestamp",a.modifiedTime))},tYb=function(a){a&1&&(K(0,"td",83),F(1,sYb,1,1,"b-formatted-date-time",84),L());a&2&&(P(2),B(),G(1))},uYb=function(a){a&1&&M(0,"b-formatted-date-time",84);a&2&&(a=P().row,I("timestamp",a.resolvedTime))},vYb=function(a){a&1&&(K(0,"td",83),F(1,uYb,1,1,"b-formatted-date-time",84),L());a&2&&(P(2),B(),G(1))},wYb=function(a){a&1&&M(0,"b-formatted-date-time",84);a&2&&(a=P().row,I("timestamp",a.verifiedTime))},xYb=function(a){a&1&&(K(0,"td",83),F(1,wYb,
1,1,"b-formatted-date-time",84),L());a&2&&(P(2),B(),G(1))},yYb=function(a){a&1&&(K(0,"span"),U(1,"arrayToHuman"),S(2),U(3,"arrayToHuman"),L());a&2&&(a=P().row,Jf("title",W(1,2,a.foundInVersion)),B(2),T(" ",W(3,4,a.foundInVersion)," "))},zYb=function(a){a&1&&(K(0,"td",80),F(1,yYb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},AYb=function(a){a&1&&(K(0,"span"),U(1,"arrayToHuman"),S(2),U(3,"arrayToHuman"),L());a&2&&(a=P().row,Jf("title",W(1,2,a.targetedToVersion)),B(2),T(" ",W(3,4,a.targetedToVersion)," "))},
BYb=function(a){a&1&&(K(0,"td",80),F(1,AYb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},CYb=function(a){a&1&&(K(0,"span"),U(1,"arrayToHuman"),S(2),U(3,"arrayToHuman"),L());a&2&&(a=P().row,Jf("title",W(1,2,a.verifiedInVersion)),B(2),T(" ",W(3,4,a.verifiedInVersion)," "))},DYb=function(a){a&1&&(K(0,"td",80),F(1,CYb,4,6,"span"),L());a&2&&(P(2),B(),G(1))},EYb=function(a){a&1&&(S(0),U(1,"yesNo"));a&2&&(a=P().row,T(" ",W(1,1,a.inProd)," "))},FYb=function(a){a&1&&(K(0,"td",80),F(1,EYb,2,3),L());a&2&&(P(2),B(),
G(1))},GYb=function(a){a&1&&(S(0),U(1,"yesNo"));a&2&&(a=P().row,T(" ",W(1,1,a.archived)," "))},HYb=function(a){a&1&&(K(0,"td",80),F(1,GYb,2,3),L());a&2&&(P(2),B(),G(1))},IYb=function(a){a&1&&(K(0,"div",57)(1,"div",61)(2,"span"),S(3),L()()());if(a&2){a=P().row;var b=P(2);B(2);Jf("title",b.getComponentPath(a.componentPath));B();Ag(b.getComponentPath(a.componentPath))}},JYb=function(a){a&1&&(K(0,"td",85),F(1,IYb,4,2,"div",57),L());if(a&2){var b=P(2);a=yg("bv2-grid-cell-variable-height",b.listViewPrefs&&
b.listViewPrefs.wrapComponents);var c;b=!((c=b.listViewPrefs)==null||!c.rtlComponentPath);a("rtl-component-path",b);B();G(1)}},KYb=function(a){a&1&&(K(0,"slo-status-card",87),M(1,"b-aggregated-slo-status-indicator",88),L());a&2&&(a=P(2).row,I("sloId",a.sloId)("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime),B(),I("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime))},LYb=function(a){a&1&&F(0,KYb,2,5,"slo-status-card",87);a&2&&(a=P().row,G(a.sloStatus?0:-1))},MYb=function(a){a&1&&(K(0,"td",
86),F(1,LYb,1,1),L());a&2&&(P(2),B(),G(1))},NYb=function(a){a&1&&(K(0,"slo-status-card",89),M(1,"b-slo-time-indicator",90),L());a&2&&(a=P(2).row,I("sloId",a.sloId)("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric","RESPONSE"),B(),I("sloBounds",a.sloStatus.responseBounds))},OYb=function(a){a&1&&F(0,NYb,2,5,"slo-status-card",89);a&2&&(a=P().row,G(a.sloStatus?0:-1))},PYb=function(a){a&1&&(K(0,"td",86),F(1,OYb,1,1),L());a&2&&(P(2),B(),G(1))},QYb=function(a){a&1&&(K(0,"slo-status-card",
89),M(1,"b-slo-time-indicator",90),L());a&2&&(a=P(2).row,I("sloId",a.sloId)("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric","ASSIGNMENT"),B(),I("sloBounds",a.sloStatus.assignmentBounds))},RYb=function(a){a&1&&F(0,QYb,2,5,"slo-status-card",89);a&2&&(a=P().row,G(a.sloStatus?0:-1))},SYb=function(a){a&1&&(K(0,"td",86),F(1,RYb,1,1),L());a&2&&(P(2),B(),G(1))},TYb=function(a){a&1&&(K(0,"slo-status-card",89),M(1,"b-slo-time-indicator",90),L());a&2&&(a=P(2).row,I("sloId",a.sloId)("sloStatus",
a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric","CLOSURE"),B(),I("sloBounds",a.sloStatus.closureBounds))},UYb=function(a){a&1&&F(0,TYb,2,5,"slo-status-card",89);a&2&&(a=P().row,G(a.sloStatus?0:-1))},VYb=function(a){a&1&&(K(0,"td",86),F(1,UYb,1,1),L());a&2&&(P(2),B(),G(1))},WYb=function(a,b){a&1&&M(0,"b-formatted-date-time",91);a&2&&(P(4),I("timestamp",b.seconds*1E3))},XYb=function(a){a&1&&F(0,WYb,1,1,"b-formatted-date-time",91);if(a&2){var b;a=P().row;G((b=a.retentionState==null?null:
a.retentionState.scheduledDeletionTime)?0:-1,b)}},YYb=function(a){a&1&&(K(0,"td",80),F(1,XYb,1,1),L());a&2&&(P(2),B(),G(1))},ZYb=function(a){a&1&&M(0,"div",92)},$Yb=function(a){a&1&&(K(0,"div"),M(1,"b-team-display",93),L());a&2&&(a=P(2).row,B(),I("teamId",a.teamId.toString())("componentId",a.componentId)("anchorLinkEnabled",!1))},aZb=function(a){a&1&&F(0,ZYb,1,0,"div",92)(1,$Yb,2,3,"div");a&2&&(a=P(3),G(a.isLoadingTeams?0:1))},bZb=function(a){a&1&&(K(0,"td",80),F(1,aZb,2,1),L());a&2&&(P(2),B(),G(1))},
cZb=function(a){a&1&&S(0);a&2&&(a=P().row,T(" ",a.effort==null?null:a.effort.estimate," "))},dZb=function(a){a&1&&(K(0,"td",80),F(1,cZb,1,1),L());a&2&&(P(2),B(),G(1))},eZb=function(a){a&1&&S(0);a&2&&(a=P().row,T(" ",(a.effort==null?null:a.effort.totalOpen)||""," "))},fZb=function(a){a&1&&(K(0,"td",80),F(1,eZb,1,1),L());a&2&&(P(2),B(),G(1))},gZb=function(a){a&1&&S(0);a&2&&(a=P().row,T(" ",(a.effort==null?null:a.effort.totalComplete)||""," "))},hZb=function(a){a&1&&(K(0,"td",80),F(1,gZb,1,1),L());a&
2&&(P(2),B(),G(1))},iZb=function(a){a&1&&S(0);if(a&2){a=P().row;var b=P(2);T(" ",b.GET_ISSUE_ACCESS_LEVEL_TITLE(a.issueAccessLevel)," ")}},jZb=function(a){a&1&&(K(0,"td",86),F(1,iZb,1,1),L());a&2&&(P(2),B(),G(1))},kZb=function(a){a&1&&S(0);a&2&&(a=P().row,T(" ",a.descendantCount," "))},lZb=function(a){a&1&&(K(0,"td",80),F(1,kZb,1,1),L());a&2&&(P(2),B(),G(1))},mZb=function(a){a&1&&S(0);a&2&&(a=P().row,T(" ",a.openDescendantCount," "))},nZb=function(a){a&1&&(K(0,"td",80),F(1,mZb,1,1),L());a&2&&(P(2),
B(),G(1))},oZb=function(a){a&1&&S(0);a&2&&(a=P().row,T(" ",a.oneDayViewCount," "))},pZb=function(a){a&1&&(K(0,"td",80),F(1,oZb,1,1),L());a&2&&(P(2),B(),G(1))},qZb=function(a){a&1&&S(0);a&2&&(a=P().row,T(" ",a.sevenDayViewCount," "))},rZb=function(a){a&1&&(K(0,"td",80),F(1,qZb,1,1),L());a&2&&(P(2),B(),G(1))},sZb=function(a){a&1&&S(0);a&2&&(a=P().row,T(" ",a.thirtyDayViewCount," "))},tZb=function(a){a&1&&(K(0,"td",80),F(1,sZb,1,1),L());a&2&&(P(2),B(),G(1))},uZb=function(a){a&1&&S(0);a&2&&(a=P().row,
T(" ",a.voteCount&&a.voteCount>0?a.voteCount:""," "))},vZb=function(a){a&1&&(K(0,"td",80),F(1,uZb,1,1),L());a&2&&(P(2),B(),G(1))},wZb=function(a){a&1&&S(0);a&2&&(a=P().row,T(" ",a.position," "))},xZb=function(a){a&1&&(K(0,"td",80),F(1,wZb,1,1),L());a&2&&(P(2),B(),G(1))},yZb=function(a){a&1&&(K(0,"b-person-hovercard",81),U(1,"omitObfuscatedEmail"),S(2),L());a&2&&(a=P(2).row,I("email",W(1,2,a.escalationOwner)),B(2),T(" ",a.escalationOwner," "))},zZb=function(a){a&1&&(K(0,"span"),S(1,"--"),L())},AZb=
function(a){a&1&&(F(0,yZb,3,4,"b-person-hovercard",81),U(1,"omitObfuscatedEmail"),F(2,zZb,2,0,"span"));a&2&&(a=P().row,G(W(1,2,a.escalationOwner)?0:-1),B(2),G(a.escalationOwner?-1:2))},BZb=function(a){a&1&&(K(0,"td",80),F(1,AZb,3,4),L());a&2&&(P(2),B(),G(1))},DZb=function(a){if(a&1){var b=t();F(0,OWb,12,0,"div",11);U(1,"async");K(2,"pop-grid",12);N("columnsChange",function(c){u(b);var d=P();d.columns=c;d.columnsChange.emit(c);d.cdr.detectChanges();return v()})("focusedRowIndexChange",function(c){u(b);
var d=P();d.focusedRowIndex=c;return v(d.focusedRowIndexChange.emit(d.focusedRowIndex))})("hoveredRowIndex",function(c){u(b);P().hoveredRowIndex=c;return v()})("sortChange",function(c){u(b);var d=P();return v(d.sortChange.emit(c))})("rowClick",function(c){u(b);var d=P(),e=c.event.target,f,g=(f=e==null?void 0:e.closest(".title-cell"))!=null?f:!1,k;f=(k=e==null?void 0:e.closest(".issue-id-cell"))!=null?k:!1;var m;e=(m=e==null?void 0:e.closest(".recommendation-chip"))!=null?m:!1;g&&!e||f||uq(c.event)||
!d.isIssueSidebarEnabled?d.rowClick.emit(c):qXb(d);return v()});bg(3);U(4,"async");E(5,PWb,1,1,"th",13)(6,QWb,1,1,"th",14)(7,VWb,2,2,"th",15)(8,WWb,1,1,"th",16)(9,YWb,2,2,"th",16)(10,bXb,2,2,"th",17)(11,cXb,1,0,"td",18)(12,dXb,1,0,"td",19)(13,fXb,2,1,"td",20)(14,hXb,2,1,"td",21)(15,jXb,2,1,"td",22)(16,nXb,2,1,"td",23)(17,xXb,2,5,"td",24)(18,zXb,2,1,"td",25)(19,BXb,2,1,"td",26)(20,HXb,2,1,"td",27)(21,JXb,2,1,"td",28)(22,NXb,2,1,"td",29)(23,RXb,2,1,"td",29)(24,VXb,2,1,"td",29)(25,XXb,2,1,"td",29)(26,
ZXb,2,1,"td",29)(27,aYb,2,1,"td",29)(28,gYb,2,1,"td",29)(29,lYb,2,1,"td",29)(30,pYb,2,1,"td",29)(31,rYb,2,1,"td",30)(32,tYb,2,1,"td",30)(33,vYb,2,1,"td",30)(34,xYb,2,1,"td",30)(35,zYb,2,1,"td",29)(36,BYb,2,1,"td",29)(37,DYb,2,1,"td",29)(38,FYb,2,1,"td",29)(39,HYb,2,1,"td",29)(40,JYb,2,5,"td",31)(41,MYb,2,1,"td",32)(42,PYb,2,1,"td",32)(43,SYb,2,1,"td",32)(44,VYb,2,1,"td",32)(45,YYb,2,1,"td",29)(46,bZb,2,1,"td",29)(47,dZb,2,1,"td",29)(48,fZb,2,1,"td",29)(49,hZb,2,1,"td",29)(50,jZb,2,1,"td",32)(51,lZb,
2,1,"td",29)(52,nZb,2,1,"td",29)(53,pZb,2,1,"td",29)(54,rZb,2,1,"td",29)(55,tZb,2,1,"td",29)(56,vZb,2,1,"td",29)(57,xZb,2,1,"td",29)(58,BZb,2,1,"td",29);L();M(59,"b-inactive-issues-search-warning")}a&2&&(a=P(),G(W(1,62,a.showInactiveWarning$)?0:-1),B(2),yg("sidebar-open",a.isIssueSidebarOpen),I("list",(a.searchResults==null?null:a.searchResults.issues)||Jg(67,CZb))("columns",a.columns)("focusedRowIndex",a.focusedRowIndex)("scrollContainer",".bv2-view")("sort",a.sort)("rowLabelRenderer",a.issueDescription),
B(),cg(W(4,64,a.issueRecommendations$)),B(2),I("forHeaderCell","focused"),B(),I("forHeaderCell","draghandle"),B(),I("forHeaderCell","selected"),B(),I("forHeaderCell","starred"),B(),I("forHeaderCell","position"),B(2),I("forViewCell","focused"),B(),I("forViewCell","draghandle"),B(),I("forViewCell","selected"),B(),I("forViewCell","starred"),B(),I("forViewCell","position"),B(),I("forViewCell","issueId"),B(),I("forViewCell","title"),B(),I("forViewCell","priority"),B(),I("forViewCell","severity"),B(),I("forViewCell",
"status"),B(),I("forViewCell","type"),B(),I("forViewCell","reporter"),B(),I("forViewCell","assignee"),B(),I("forViewCell","verifier"),B(),I("forViewCell","cc"),B(),I("forViewCell","changelist"),B(),I("forViewCell","postmortem"),B(),I("forViewCell","blockingIssueId"),B(),I("forViewCell","blockedByIssueId"),B(),I("forViewCell","duplicateOfIssueId"),B(),I("forViewCell","createdTime"),B(),I("forViewCell","modifiedTime"),B(),I("forViewCell","resolvedTime"),B(),I("forViewCell","verifiedTime"),B(),I("forViewCell",
"foundInVersion"),B(),I("forViewCell","targetedToVersion"),B(),I("forViewCell","verifiedInVersion"),B(),I("forViewCell","inProd"),B(),I("forViewCell","archived"),B(),I("forViewCell","componentPath"),B(),I("forViewCell","minSlo"),B(),I("forViewCell","responseSlo"),B(),I("forViewCell","assignmentSlo"),B(),I("forViewCell","closureSlo"),B(),I("forViewCell","deletionTime"),B(),I("forViewCell","team"),B(),I("forViewCell","estimate"),B(),I("forViewCell","estimateTotalOpen"),B(),I("forViewCell","estimateTotalComplete"),
B(),I("forViewCell","accessLevel"),B(),I("forViewCell","descendantCount"),B(),I("forViewCell","openDescendantCount"),B(),I("forViewCell","oneDayViewCount"),B(),I("forViewCell","sevenDayViewCount"),B(),I("forViewCell","thirtyDayViewCount"),B(),I("forViewCell","voteCount"),B(),I("forViewCell","position"),B(),I("forViewCell","escalationOwner"))},EZb=function(a){a&1&&M(0,"b-issue-card",96,4);if(a&2){a=Q(1);var b=P().id;I("onedevIsHovercardReady",a.init)("issueId",b)}},FZb=function(a,b){a&1&&(K(0,"onedev-hovercard",
null,3),E(2,EZb,2,2,"b-issue-card",94),L(),K(3,"span",95),S(4),L());a&2&&(a=b.id,b=Q(1),B(3),I("onedevHovercardTrigger",b),B(),Ag(a))},GZb=function(a){if(a&1){var b=t();K(0,"b-app-bar-bulk-edit-menus",10);U(1,"async");N("onBulkEdit",function(d){u(b);var e=P();return v(e.bulkEdit(d))})("onQuickBulkEdit",function(d){u(b);var e=P();return v(e.quickBulkEdit(d))})("onBulkEditIssueRelation",function(d){u(b);var e=P();return v(e.bulkEditIssueRelation(d))})("onBulkMarkIssueRead",function(){u(b);var d=P();
return v(d.bulkMarkIssueRead())});L()}if(a&2){a=P();var c;I("enableBulkEstimatedEffortOption",(c=W(1,2,a.enableBulkEstimatedEffortOption$))!=null?c:!1)("readStatePrompt",YPb(a))}},IZb=function(a){a&1&&M(0,"playbook-controls",4);a&2&&(a=P(),I("issueIds",HZb(a)))},JZb=function(a){if(a&1){var b=t();K(0,"b-copy-issue-id-button",11);N("onClickCopyIssueIds",function(){u(b);var c=P();return v($Pb(c.copyIssueIdService,vu(c)))})("onClickCopyIssueShortLinks",function(){u(b);var c=P();return v(aQb(c.copyIssueIdService,
vu(c)))})("onClickCopyAsIssueSearch",function(){u(b);var c=P();return v(bQb(c.copyIssueIdService,vu(c)))});L()}a&2&&(a=P(),I("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},KZb=function(a){if(a&1){var b=t();K(0,"div",6)(1,"b-hotlist-picker",12);N("onApply",function(c){u(b);var d=P();return v(d.handleHotlistPickerSave(c))})("onCreate",function(c){u(b);var d=P();return v(d.onCreateHotlist.emit(c))})("onLoad",function(c){u(b);
var d=P();return v(d.onLoadHotlist.emit(c))});L()()}a&2&&(a=P(),B(),I("selectedHotlistIds",a.hotlistIdMatrix)("choices",a.hotlistChoices))},LZb=function(a){if(a&1){var b=t();K(0,"hotlist-add-issue-btn",14);N("issueAddedToHotlist",function(){u(b);var c=P(2);return v(c.refresh())});L()}a&2&&(a=P(2),I("hotlistId",a.currentHotlistId))},MZb=function(a){a&1&&M(0,"hotlist-archive-btn",13);a&2&&(a=P(2),I("hotlistId",a.currentHotlistId))},NZb=function(a){a&1&&(F(0,LZb,1,1,"hotlist-add-issue-btn",13),F(1,MZb,
1,1,"hotlist-archive-btn",13));a&2&&(a=P(),G(a.enableBulkEditUi?0:-1),B(),G(a.isHotlistAdmin?1:-1))},OZb=function(a){a&1&&(K(0,"span",17),S(1,"Reporting"),L())},PZb=function(a){if(a&1){var b=t();K(0,"b-button",15);N("onAction",function(){u(b);var c=P();return v(c.openInEstado())});M(1,"b-icon",16);F(2,OZb,2,0,"span",17);L()}a&2&&(a=P(),I("size",a.hasSelectedIssues()?"large":"medium")("format",a.hasSelectedIssues()?"icon":"flat"),B(2),G(a.hasSelectedIssues()?-1:2))},QZb=function(a){if(a&1){var b=t();
K(0,"b-comment-box",24);Eg("commentChange",function(c){u(b);var d=P(2);Dg(d.comment,c)||(d.comment=c);return v(c)});N("onSubmit",function(){u(b);var c=P(2);return v(eQb(c))});L()}a&2&&(a=P(2),Cg("comment",a.comment),I("showToolbar",!1)("isLiteralModeSupported",!0))},RZb=function(a){if(a&1){var b=t();K(0,"div",21)(1,"b-recaptcha",25);N("onUpdate",function(c){u(b);var d=P(2);return v(d.recaptchaResponse=c)});L()()}},SZb=function(a){a&1&&(K(0,"h1",18),S(1,"Add comment"),L(),K(2,"mat-dialog-content"),
F(3,QZb,1,3,"b-comment-box",19),M(4,"b-external-warnings",20),L(),F(5,RZb,2,0,"div",21),K(6,"mat-dialog-actions")(7,"button",22),S(8," Cancel "),L(),K(9,"button",23),S(10," Save "),L()());a&2&&(a=P(),B(3),G(a.comment?3:-1),B(),I("externalWarnings",a.externalWarnings),B(),G(a.enableRecaptcha?5:-1),B(2),I("mat-dialog-close",!1),B(2),I("disabled",a.enableRecaptcha&&a.recaptchaResponse==="")("mat-dialog-close",!0))},TZb=function(a){if(a&1){var b=t();K(0,"div",6)(1,"button",7);N("click",function(){u(b);
var c=P();return v(c.onPressSave())});S(2," Save ");L();K(3,"button",8);N("click",function(){u(b);var c=P();return v(c.onPressRevert())});S(4," Revert changes ");L()()}a&2&&(a=P(),B(),I("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving()||a.isInvalid())("matTooltip",a.isInvalid()?"Invalid form data":a.hasNoChanges()?"No changes":"Save these changes"),B(2),I("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Go back to the last saved state"))},
UZb=function(a){if(a&1){var b=t();K(0,"div",6)(1,"button",7);N("click",function(){u(b);var d=P();return v(d.save())});S(2," Save ");L();K(3,"button",8);N("click",function(){u(b);var d=P();return v(d.revert())});S(4," Revert changes ");L();M(5,"hotlist-archive-btn",9);U(6,"async");L()}if(a&2){a=P();B();I("disabled",a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Save these changes");B(2);I("disabled",a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?
"No changes":"Go back to the last saved state");B(2);var c;I("hotlistId",(c=W(6,5,a.id$))!=null?c:void 0)}},VZb=function(a,b){a&1&&S(0);a&2&&T(" ",b.name," ")},WZb=function(a){a&1&&(K(0,"strong",2),S(1,"(archived)"),L())},XZb=function(a){a&1&&M(0,"b-spinner")},YZb=function(a){a&1&&(M(0,"hotlist-add-issue-btn",4),U(1,"async"));if(a&2){a=P();var b;I("hotlistId",(b=W(1,1,a.id$))!=null?b:void 0)}},ZZb=function(a){a&1&&(K(0,"p",6),S(1," This hotlist cannot be edited because you are not an administrator of it. "),
L())},$Zb=function(a){a&1&&(M(0,"b-edit-hotlist-toolbar",0),K(1,"div",1),M(2,"b-edit-hotlist-header",0),K(3,"mat-tab-group",2)(4,"mat-tab",3),M(5,"b-edit-hotlist-basic",4),U(6,"async"),L(),K(7,"mat-tab",5),M(8,"b-edit-hotlist-acl",4),U(9,"async"),L()(),F(10,ZZb,2,0,"p",6),U(11,"async"),L());a&2&&(a=P(),I("hotlistId",a.id),B(2),I("hotlistId",a.id),B(),I("selectedIndex",a.tabIndex),B(2),I("hotlistId",a.id)("isReadOnly",W(6,8,a.isAdmin$)===!1),B(3),I("hotlistId",a.id)("isReadOnly",W(9,10,a.isAdmin$)===
!1),B(2),G(W(11,12,a.isAdmin$)===!1?10:-1))},a_b=function(a,b){a&1&&(M(0,"empty-toolbar"),K(1,"div",7)(2,"h2"),S(3,"Error"),L(),K(4,"p"),S(5),L()());a&2&&(B(5),Ag(b))},b_b=function(a){a&1&&(K(0,"b-callout",0)(1,"b-callout-body"),S(2),L()());a&2&&(a=P(),B(2),Ag(a.error))},c_b=function(a){a&1&&(Yf(0),S(1,", "),Qe())},d_b=function(a,b){a&1&&(S(0),F(1,c_b,2,0,"ng-container"));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(2);T(" ",d.convertUserToString(a)," ");B();G(c!==b-1?1:-1)}},e_b=function(a,
b){if(a&1){var c=t();Sf(0,"tr",7);eg("click",function(){var e=u(c).$implicit,f=P();return v(f.editHotlist(e))})("focus",function(){var e=u(c).$index,f=P();return v(f.setFocusOnIndex(e))});Uf(1,"td",2);Sf(2,"td",8)(3,"a",9);eg("click",function(e){u(c);return v(e.stopPropagation())});S(4);Tf()();Sf(5,"td",10);S(6);Tf();Sf(7,"td",11);Pf(8,d_b,2,2,null,null,Of);Tf();Sf(10,"td",12);S(11);Tf()()}if(a&2){a=b.$implicit;b=b.$index;var d=P();yg("grid-focus",d.isFocused(b));Jf("aria-selected",d.isFocused(b))("aria-label",
d.renderRowLabel(b));B(3);Rf("href",zs.editHotlist.makeHref(a.hotlistId),Me);B();T(" ",a.name," ");B(2);T(" ",a.description," ");B(2);Qf(a.adminUsers);B(3);T(" ",a.hotlistId," ")}},f_b=function(a){if(a&1){var b=t();K(0,"button",9);N("click",function(){u(b);var c=P(2);return v(c.appEvents.dashboardPanels.moveToTop.next(c.panelId))});S(1," Move to top ");L()}},g_b=function(a){if(a&1){var b=t();K(0,"button",10);N("click",function(){u(b);var c=P(2);return v(c.appEvents.dashboardPanels.moveUp.next(c.panelId))});
S(1," Move up ");L()}},h_b=function(a){if(a&1){var b=t();K(0,"button",11);N("click",function(){u(b);var c=P(2);return v(c.appEvents.dashboardPanels.moveDown.next(c.panelId))});S(1," Move down ");L()}},i_b=function(a){if(a&1){var b=t();K(0,"button",12);N("click",function(){u(b);var c=P(2);return v(c.appEvents.dashboardPanels.moveToBottom.next(c.panelId))});S(1," Move to bottom ");L()}},j_b=function(a){if(a&1){var b=t();F(0,f_b,2,0,"button",4);F(1,g_b,2,0,"button",5);F(2,h_b,2,0,"button",6);F(3,i_b,
2,0,"button",7);K(4,"button",8);N("click",function(){u(b);var c=P();return v(c.removePanel())});S(5," Remove ");L()}a&2&&(a=P(),G(a.first?-1:0),B(),G(a.first?-1:1),B(),G(a.last?-1:2),B(),G(a.last?-1:3))},k_b=function(a){a&1&&M(0,"edit-issue-metadata",4);a&2&&(a=P(),I("issueId",a.issueId))},l_b=function(a){a&1&&M(0,"b-actions-menu",1);a&2&&(a=P(),I("menuItems",a.menuItems))},m_b=function(a){a&1&&(K(0,"span",2)(1,"strong"),S(2),L(),S(3,"\u00a0of\u00a0"),K(4,"strong"),S(5),L()());a&2&&(a=P(),B(2),Bg("",
a.searchResults.startIndex,"\u00a0-\u00a0",a.searchResults.endIndex),B(3),Ag(a.searchResults.totalText))},n_b=function(a){a&1&&(K(0,"div"),S(1," Hotlist not found. "),L())},o_b=function(a){a&1&&(K(0,"div"),S(1," Loading details... "),L())},p_b=function(a){a&1&&M(0,"b-panel-controls",5);a&2&&(a=P(2),I("panelId",a.panel.panelId))},q_b=function(a){a&1&&(K(0,"span",9),S(1," \u00a0(changed) "),L())},r_b=function(a){a&1&&(K(0,"div"),F(1,p_b,1,1,"b-panel-controls",5),K(2,"span",6),S(3," Hotlist: "),K(4,
"a",7)(5,"span",8),S(6),L()()(),F(7,q_b,2,0,"span",9),L());a&2&&(a=P(),B(),G(a.isDashboardEditable?1:-1),B(3),I("href",a.ROUTES.viewHotlist.makeHref(a.hotlistId),Me),B(),I("matTooltip",Fg(a.resource.description)),B(),Ag(a.resource.name),B(),G(a.hasParamChanges()?7:-1))},s_b=function(a){if(a&1){var b=t();K(0,"div",3)(1,"button",10);N("click",function(){u(b);var c=P();return v(c.save())});S(2,"Save ");L();K(3,"button",11);N("click",function(){u(b);var c=P();return v(c.discardChanges())});S(4," Discard changes ");
L()()}},t_b=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(3),B(),T("Searching for ",a.searchParams.query," ..."))},u_b=function(a){a&1&&(K(0,"div",12),M(1,"b-spinner",15),F(2,t_b,2,1,"span"),L());a&2&&(a=P(2),B(),I("large",!1),B(),G(a.searchParams&&a.searchParams.query?2:-1))},v_b=function(a){a&1&&(K(0,"div",13),S(1," No issues in hotlist. "),L())},x_b=function(a){if(a&1){var b=t();K(0,"div",14)(1,"b-issues-grid",16);N("init",function(c){u(b);var d=P(2);return v(w_b(d,c))});Eg("focusedRowIndexChange",
function(c){u(b);var d=P(2);Dg(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return v(c)})("columnsChange",function(c){u(b);var d=P(2);Dg(d.issueColumns,c)||(d.issueColumns=c);return v(c)});N("sortChange",function(c){u(b);var d=P(2);return v(d.setSort(c.field,c.direction))})("onRowDragDrop",function(c){u(b);var d=P(2);return v(d.repositionIssue(c.srcIndex,c.destIndex))})("rowClick",function(c){u(b);var d=P(2);return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){u(b);var c=P(2);return v(c.goToPage(c.page+
1))})("onPrevPage",function(){u(b);var c=P(2);return v(c.goToPage(c.page-1))});L()()}a&2&&(a=P(2),B(),I("searchResults",a.searchResults),Cg("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns),I("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},y_b=function(a){a&1&&(K(0,"div"),F(1,u_b,3,2,"div",12),F(2,v_b,2,0,"div",13),F(3,x_b,2,5,"div",14),L());a&2&&(a=P(),B(),G(a.isLoading?1:-1),B(),G(a.isLoading||(a.searchResults==null?0:a.searchResults.issues==null?0:a.searchResults.issues.length)?
-1:2),B(),G(!a.isLoading&&(a.searchResults==null?0:a.searchResults.issues==null?0:a.searchResults.issues.length)?3:-1))},z_b=function(a){a&1&&(K(0,"div"),S(1," Saved search not found. "),L())},A_b=function(a){a&1&&(K(0,"div"),S(1," Loading details... "),L())},B_b=function(a){a&1&&M(0,"b-panel-controls",5);a&2&&(a=P(2),I("panelId",a.panel.panelId))},C_b=function(a){a&1&&(K(0,"span",8),S(1," \u00a0(changed) "),L())},D_b=function(a){a&1&&(K(0,"div",3),F(1,B_b,1,1,"b-panel-controls",5),K(2,"span",3),
S(3," Saved search: "),K(4,"a",6)(5,"span",7),S(6),L()()(),F(7,C_b,2,0,"span",8),L());a&2&&(a=P(),B(),G(a.isDashboardEditable?1:-1),B(3),I("href",a.paths.viewSavedSearch(a.savedSearchId),Me),B(),I("matTooltip",Fg(a.resource.description)),B(),Ag(a.resource.name),B(),G(a.hasParamChanges()?7:-1))},E_b=function(a,b){a&1&&(K(0,"span"),S(1),L());a&2&&(B(),T("Searching for ",b,"..."))},F_b=function(a){a&1&&(K(0,"div",9),M(1,"b-spinner",12),F(2,E_b,2,1,"span"),L());if(a&2){var b;a=P(2);B();I("large",!1);
B();G((b=a.searchParams==null?null:a.searchParams.query)?2:-1,b)}},G_b=function(a){a&1&&(K(0,"div",10),S(1," No issues in saved search. "),L())},H_b=function(a){if(a&1){var b=t();K(0,"div",11)(1,"b-issues-grid",13);N("init",function(c){u(b);var d=P(2);return v(w_b(d,c))});Eg("focusedRowIndexChange",function(c){u(b);var d=P(2);Dg(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return v(c)});N("columnsChange",function(c){u(b);var d=P(2);return v(d.columnsChange(c))})("sortChange",function(c){u(b);var d=
P(2);return v(d.setSort(c.field,c.direction))})("rowClick",function(c){u(b);var d=P(2);return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){u(b);var c=P(2);return v(c.goToPage(c.page+1))})("onPrevPage",function(){u(b);var c=P(2);return v(c.goToPage(c.page-1))});L()()}a&2&&(a=P(2),B(),I("searchResults",a.searchResults),Cg("focusedRowIndex",a.focusedRowIndex),I("columns",a.issueColumns)("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},I_b=function(a){a&1&&(K(0,"div"),
F(1,F_b,3,2,"div",9),F(2,G_b,2,0,"div",10),F(3,H_b,2,5,"div",11),L());a&2&&(a=P(),B(),G(a.isLoading?1:-1),B(),G(!a.isLoading&&a.searchResults&&a.searchResults.issues.length===0?2:-1),B(),G(!a.isLoading&&a.searchResults&&a.searchResults.issues.length!==0?3:-1))},J_b=function(a,b){a&1&&(K(0,"span",2)(1,"a",3),S(2),L()());a&2&&(a=b.$implicit,B(),I("routerLink",Gg("/teams/",a.id,"/edit"))("preserveFragment",!0),B(),Ag(a.name))},K_b=function(a){a&1&&(K(0,"p")(1,"span",5),S(2,"NOTE:"),L(),S(3),K(4,"a",
6),S(5,"Learn more"),L()());a&2&&(a=P(),B(3),T(" ",a.data.noteText," "),B(),I("href",a.getDisablingFieldsHelpLink(),Me))},L_b=function(a){a&1&&M(0,"span",25)(1,"b-icon",26);a&2&&(a=P(),I("innerHTML",a.menuLabel,Le))},M_b=function(a){a&1&&(K(0,"div",27),S(1," This includes emails about major updates and: "),K(2,"ul",28)(3,"li"),S(4,"All title, hotlist, and status changes."),L(),K(5,"li"),S(6,"Blocking, Blocked By, or Duplicate changes."),L(),K(7,"li"),S(8,"Changes to Reporter, Verifier, and CCs."),
L(),K(9,"li"),S(10,"Changes to Type, Found In, Targeted To, Verified In, and In Prod. "),L(),K(11,"li"),S(12,"Changes to custom fields marked as minor."),L()()())},N_b=function(a){a&1&&(K(0,"div",29),S(1," This includes emails about: "),K(2,"ul",28)(3,"li"),S(4,"New comments."),L(),K(5,"li"),S(6,"New status updates."),L(),K(7,"li"),S(8,"Priority or Severity changes."),L(),K(9,"li"),S(10,"Assignee changes."),L(),K(11,"li"),S(12,"Component changes."),L(),K(13,"li"),S(14,"Issue closure or reopening."),
L(),K(15,"li"),S(16,"Changes to custom fields marked as major."),L()()())},O_b=function(a,b){a&1&&(K(0,"mat-option",5),S(1),L());a&2&&(a=b.$implicit,I("value",a),B(),T(" ",a.name," "))},P_b=function(a){a&1&&(K(0,"span",3),S(1," (must be between 30 days and 20 years) "),L())},R_b=function(a){if(a&1){var b=t();K(0,"div",4)(1,"b-duration-picker",12);N("durationDaysChange",function(c){u(b);var d=P();d.model.retentionPeriodDays=c!=null?c:null;d.modelChange.emit(d.model);Au(d);return v()});L();K(2,"div",
13);S(3);L()()}a&2&&(a=P(),B(),I("disabled",a.issueRetentionDisabled)("durationDays",a.model.retentionPeriodDays),B(2),T(" Issues will be marked for deletion when they have not been modified for ",Q_b(a.model.retentionPeriodDays),". "))},S_b=function(a){a&1&&(K(0,"div",5)(1,"p"),S(2,"Please note this extended retention is not appropriate in many circumstances. Before selecting this option, you should make sure "),K(3,"b"),S(4,"one or more"),L(),S(5," of the following is true:"),L(),K(6,"ol")(7,"li"),
S(8,"There is no personal data, user data, or any other forms of sensitive data being stored."),L(),K(9,"li"),S(10,"You have a process in place to manually delete this data within an approved period of time."),L(),K(11,"li"),S(12,"Legal and Privacy have approved this non-standard retention period."),L()()())},T_b=function(a){a&1&&(K(0,"div",7)(1,"p"),S(2,"Please note indefinite retention is not appropriate in many circumstances. Before selecting this option, you should make sure "),K(3,"b"),S(4,"one or more"),
L(),S(5," of the following is true:"),L(),K(6,"ol")(7,"li"),S(8,"There is no personal data, user data, or any other forms of sensitive data being stored."),L(),K(9,"li"),S(10,"You have a process in place to manually delete this data within an approved period of time."),L(),K(11,"li"),S(12,"Legal and Privacy have approved this non-standard retention period."),L()()())},U_b=function(a){a&1&&(K(0,"span",3),S(1," (Issue Retention is shorter than default Restricted Retention) "),L())},W_b=function(a){a&
1&&(K(0,"span",3),S(1),L());a&2&&(a=P(),B(),T(" ",V_b(a)," "))},X_b=function(a){a&1&&(K(0,"div",18)(1,"p"),S(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."),L()())},$_b=function(a){if(a&1){var b=t();K(0,"div",4)(1,"div")(2,"span",14);S(3,"Restricted retention:");
L();K(4,"b-duration-picker",15);N("durationDaysChange",function(c){u(b);var d=P();d.model.piiRetentionPeriodDays=c!=null?c:null;d.modelChange.emit(d.model);Au(d);return v()});L()();K(5,"div",16)(6,"p");S(7);L()();K(8,"div")(9,"span",14);S(10,"Restricted+ retention:");L();K(11,"b-duration-picker",17);N("durationDaysChange",function(c){u(b);var d=P();d.model.spiiRetentionPeriodDays=c!=null?c:null;d.modelChange.emit(d.model);Au(d);return v()});L()();K(12,"div",16)(13,"p");S(14);L()();F(15,X_b,3,0,"div",
18);L()}a&2&&(a=P(),B(4),I("disabled",!Y_b(a))("durationDays",a.model.piiRetentionPeriodDays),B(3),T(" Restricted comments and attachments will be marked for deletion when the containing issue has not been modified for ",Q_b(a.model.piiRetentionPeriodDays),". "),B(4),I("disabled",!Y_b(a))("durationDays",a.model.spiiRetentionPeriodDays),B(3),T(" Restricted+ comments and attachments will be marked for deletion when the containing issue has not been modified for ",Q_b(a.model.spiiRetentionPeriodDays),
". "),B(),G(a.model.piiRetentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&Z_b(a)?15:-1))},a0b=function(a){a&1&&(K(0,"div",11)(1,"p"),S(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."),L()())},b0b=function(a,b,c){a=Bu(a.slice(b),c,"[()|]","[()|,\\s]");
a.idx+=b;return a},Bu=function(a,b,c,d){var e=c0b(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}},c0b=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},Cu=function(a,b){return(b===void 0?0:b)?a.search(/^\d+\+?$/)>-1:a.search(/^\d+$/)>-1},d0b=function(a){return a.charAt(0)==="-"?{negated:!0,token:a.slice(1)}:{negated:!1,token:a}},Du=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(m){m=m.name.toLowerCase();return m!==e||d?c?m.startsWith(e):za(m,e):!1});b=b.idx;for(var f=b+e.length,g=l(a),k=g.next();!k.done;k=g.next())k=k.value.completionCfg,k.startIdx=b,k.endIdx=f,k.matchingString=e;return a},Eu=function(a){var b=a.name;var c=a.label;var d=a.type;var e=a.enableShadowPlaceholder;var f=a.id;var g;return{trackId:((g=a.trackIdPrefix)!=null?g:d)+":"+b,name:b,id:f!=null?f:b,label:c,completionCfg:{enableShadowPlaceholder:e!=
null?e:!0,completionValue:f!=null?f:b,type:d}}},e0b=function(a,b){if(a&1){var c=t();K(0,"div",7)(1,"div",9);N("click",function(d){var e=u(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()});K(2,"mat-checkbox",10);N("change",function(d){var e=u(c).$implicit,f=P();e.value.value=d.checked;return v(f.onSelectionChanged())})("click",function(d){u(c);return v(d.stopPropagation())});S(3);
L()()()}a&2&&(a=b.$implicit,Jf("aria-checked",a.value.value),B(2),I("checked",a.value.value),B(),T(" ",a.value.displayString," "))},f0b=function(a){a&1&&(K(0,"div",8),S(1),L());a&2&&(a=P(),B(),T(" ",a.errorString," "))},g0b=function(a){a&1&&(K(0,"span",2),S(1),L());a&2&&(a=P(2),B(),Bg(" ",a.objectiveBusinessDays," day",a.objectiveBusinessDays!=1?"s":""," "))},h0b=function(a){a&1&&(K(0,"span"),S(1,", "),L())},j0b=function(a){a&1&&(K(0,"span"),F(1,h0b,2,0,"span"),K(2,"span"),S(3),L()());a&2&&(a=P(2),
B(),G(a.objectiveBusinessDays?1:-1),B(2),Bg("",a.intervalString," ",i0b(a,a.intervalUnit)))},k0b=function(a){a&1&&(K(0,"span",0),F(1,g0b,2,2,"span",2),F(2,j0b,4,3,"span"),L());a&2&&(a=P(),B(),G(a.objectiveBusinessDays?1:-1),B(),G(a.intervalString&&a.intervalString!="0"?2:-1))},m0b=function(a){if(a&1){var b=t();K(0,"span",3)(1,"input",4);Eg("ngModelChange",function(c){u(b);var d=P(2);Dg(d.businessDayString,c)||(d.businessDayString=c);return v(c)});N("ngModelChange",function(){u(b);var c=P(2);return v(l0b(c))});
L();K(2,"span",7);S(3,"days,");L()()}a&2&&(a=P(2),B(),yg("ng-invalid",!!a.errorString),Cg("ngModel",a.businessDayString))},n0b=function(a,b){a&1&&(K(0,"mat-option",6),S(1),L());a&2&&(a=b.$implicit,b=P(2),I("value",a),B(),T(" ",i0b(b,a)," "))},u0b=function(a){if(a&1){var b=t();K(0,"span",1);F(1,m0b,4,3,"span",3);K(2,"span",3)(3,"input",4);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.intervalString,c)||(d.intervalString=c);return v(c)});N("ngModelChange",function(){u(b);var c=P();return v(l0b(c))});
L();K(4,"mat-select",5);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.intervalUnit,c)||(d.intervalUnit=c);return v(c)});N("selectionChange",function(){u(b);var c=P();o0b(c);p0b(c);return v()});Pf(5,n0b,2,2,"mat-option",6,Of);L()()()}a&2&&(a=P(),B(),G(q0b(a)?1:-1),B(2),yg("invalid",!!a.errorString),Cg("ngModel",a.intervalString),B(),Cg("ngModel",a.intervalUnit),B(),Qf(q0b(a)?[r0b,s0b]:[r0b,s0b,t0b]))},w0b=function(a){if(a&1){var b=t();K(0,"b-icon",22);N("click",function(){u(b);var c=P(2);return v(v0b(c,
0))});L()}a&2&&I("name","add")("size","small")},y0b=function(a){if(a&1){var b=t();K(0,"span",5)(1,"span",18)(2,"span",19);F(3,w0b,1,2,"b-icon",20);L();K(4,"span",19)(5,"b-icon",21);N("click",function(c){u(b);var d=P();return v(x0b(d,c))});L()()()()}a&2&&(a=P(),B(3),G(a.canPerformActions?3:-1),B(2),I("name","delete")("size","small"))},z0b=function(a){a&1&&M(0,"td",26)},A0b=function(a){a&1&&M(0,"td",27)},B0b=function(a){if(a&1){var b=t();K(0,"td",28)(1,"slo-element-property-picker",42);Eg("optionsChange",
function(c){u(b);var d=P().$implicit;Dg(d.typePickerValues,c)||(d.typePickerValues=c);return v(c)});L()()}a&2&&(a=P().$implicit,B(),I("selectAllText","Any type")("validator",a.validateTypePicker),Cg("options",a.typePickerValues))},C0b=function(a){a&1&&(K(0,"div"),S(1),L());a&2&&(a=P(2).$implicit,B(),T("ERROR: ",a.parseResult.error))},D0b=function(a,b){a&1&&(K(0,"span",44)(1,"span",45),S(2),L()());a&2&&(a=b.$implicit,B(2),Ag(a))},F0b=function(a){a&1&&(K(0,"span",43),Pf(1,D0b,3,1,"span",44,Of),L());
if(a&2){a=P(2).$implicit;B();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(E0b(a.controllerReference,d));a=b}Qf(a)}},G0b=function(a){a&1&&(K(0,"td",29),F(1,C0b,2,1,"div")(2,F0b,3,0,"span",43),L());a&2&&(a=P().$implicit,B(),G(a.parseResult.error?1:2))},H0b=function(a){if(a&1){var b=t();K(0,"td",30)(1,"slo-element-property-picker",46);Eg("optionsChange",
function(c){u(b);var d=P().$implicit;Dg(d.priorityPickerValues,c)||(d.priorityPickerValues=c);return v(c)});L()()}a&2&&(a=P().$implicit,B(),I("selectAllText","Any priority")("validator",a.validatePriorityPicker),Cg("options",a.priorityPickerValues))},I0b=function(a){a&1&&(K(0,"div"),S(1),L());a&2&&(a=P(2).$implicit,B(),T("ERROR: ",a.parseResult.error))},J0b=function(a,b){a&1&&(K(0,"span",44)(1,"span",45),S(2),L()());a&2&&(a=b.$implicit,B(2),Ag(a))},L0b=function(a){a&1&&(K(0,"span",43),Pf(1,J0b,3,
1,"span",44,Of),L());if(a&2){a=P(2).$implicit;B();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(K0b(a.controllerReference,d));a=b}Qf(a)}},M0b=function(a){a&1&&(K(0,"td",31),F(1,I0b,2,1,"div")(2,L0b,3,0,"span",43),L());a&2&&(a=P().$implicit,B(),G(a.parseResult.error?1:2))},N0b=function(a){if(a&1){var b=t();K(0,"td",32)(1,"slo-element-property-picker",
47);Eg("optionsChange",function(d){u(b);var e=P().$implicit;Dg(e.postmortemPickerValues,d)||(e.postmortemPickerValues=d);return v(d)});L()()}if(a&2){a=P().$implicit;var c=P(2);B();I("selectAllText",c.postmortemAllSummaryValue)("validator",a.validatePostmortemPicker);Cg("options",a.postmortemPickerValues)}},O0b=function(a){a&1&&(K(0,"div"),S(1),L());a&2&&(a=P(2).$implicit,B(),T("ERROR: ",a.parseResult.error))},P0b=function(a,b){a&1&&(K(0,"span",44)(1,"span",45),S(2),L()());a&2&&(a=b.$implicit,B(2),
Ag(a))},Q0b=function(a){a&1&&(K(0,"span",43),Pf(1,P0b,3,1,"span",44,Of),L());if(a&2){a=P(2).$implicit;B();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])];Qf(a)}},R0b=function(a){a&1&&(K(0,"td",33),F(1,O0b,2,1,"div")(2,Q0b,3,0,"span",43),L());a&2&&(a=P().$implicit,B(),G(a.parseResult.error?1:2))},T0b=function(a,b){a&1&&(K(0,"mat-option",50),S(1),
L());a&2&&(a=b.$implicit,P(4),I("value",a),B(),T(" ",S0b(a)," "))},U0b=function(a){if(a&1){var b=t();K(0,"td",34)(1,"mat-form-field",48)(2,"mat-select",49);Eg("ngModelChange",function(d){u(b);var e=P().$implicit;Dg(e.selectedMetric,d)||(e.selectedMetric=d);return v(d)});Pf(3,T0b,2,2,"mat-option",50,Of);L()()()}if(a&2){a=P().$implicit;var c=P(2);B(2);Cg("ngModel",a.selectedMetric);I("customValidators",a.metricValidators);B();Qf(c.metricChoices)}},V0b=function(a){a&1&&(K(0,"td",35),S(1),L());a&2&&(a=
P().$implicit,P(2),B(),T(" ",S0b(a.sloElement.metric)," "))},W0b=function(a){if(a&1){var b=t();K(0,"td",36)(1,"slo-objective-selector",51);Eg("objectiveDurationChange",function(c){u(b);var d=P().$implicit;Dg(d.selectedObjectiveDuration,c)||(d.selectedObjectiveDuration=c);return v(c)})("objectiveBusinessDaysChange",function(c){u(b);var d=P().$implicit;Dg(d.selectedObjectiveBusinessDays,c)||(d.selectedObjectiveBusinessDays=c);return v(c)});L()()}a&2&&(a=P().$implicit,B(),I("dayType",a.selectedDayType),
Cg("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",a.selectedObjectiveBusinessDays),I("validator",a.validateObjective)("isDisabled",!1))},X0b=function(a){if(a&1){var b=t();K(0,"td",37)(1,"slo-objective-selector",52);Eg("objectiveDurationChange",function(c){u(b);var d=P().$implicit;Dg(d.selectedObjectiveDuration,c)||(d.selectedObjectiveDuration=c);return v(c)})("objectiveBusinessDaysChange",function(c){u(b);var d=P().$implicit;Dg(d.selectedObjectiveBusinessDays,c)||(d.selectedObjectiveBusinessDays=
c);return v(c)});L()()}a&2&&(a=P().$implicit,B(),I("dayType",a.selectedDayType),Cg("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",a.selectedObjectiveBusinessDays),I("isDisabled",!a.isEditing()))},Z0b=function(a,b){a&1&&(K(0,"mat-option",50),S(1),L());a&2&&(a=b.$implicit,P(4),I("value",a),B(),T(" ",Y0b.get(a||"CALENDAR")," "))},$0b=function(a){if(a&1){var b=t();K(0,"td",38)(1,"mat-form-field",48)(2,"mat-select",53);Eg("ngModelChange",function(d){u(b);var e=P().$implicit;Dg(e.selectedDayType,
d)||(e.selectedDayType=d);return v(d)});N("selectionChange",function(){u(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()});Pf(3,Z0b,2,2,"mat-option",50,Of);L()()()}if(a&2){a=
P().$implicit;var c=P(2);B(2);Cg("ngModel",a.selectedDayType);B();Qf(c.dayTypes)}},a1b=function(a){a&1&&(K(0,"td",39),S(1),L());a&2&&(a=P().$implicit,P(2),B(),T(" ",Y0b.get(a.sloElement.dayType||"CALENDAR")," "))},d1b=function(a){if(a&1){var b=t();K(0,"td",40)(1,"span",18)(2,"span",19)(3,"b-icon",54);N("click",function(){u(b);var c=P(3);if(c.openRow)if(c.openRow.isValid())b1b(c.openRow.typePickerValues)&&b1b(c.openRow.priorityPickerValues)&&b1b(c.openRow.postmortemPickerValues)?c.confirmationDialogService.open({title:"SLO validation error",
content:Dh("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}):c1b(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:Dh('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()});L()();K(4,"span",19)(5,"b-icon",55);N("click",function(){u(b);var c=P().$implicit,d=P(2);return v(d.removeElement(c))});L()()()()}a&2&&(B(3),I("name","done")("size","small"),B(2),I("name","delete")("size","small"))},f1b=function(a){if(a&1){var b=t();K(0,"b-icon",63);N("click",function(c){u(b);var d=P(2).$implicit,e=P(2);return v(e1b(e,d,c))});L()}a&2&&I("name","edit")("size","small")},g1b=function(a){a&1&&M(0,"b-icon",57);a&2&&(P(),a=Q(8),
I("name","more-settings-vertical")("size","small")("matMenuTriggerFor",a))},i1b=function(a){if(a&1){var b=t();K(0,"button",64);N("click",function(){u(b);var c=P(2).$implicit,d=P(2);return v(h1b(d,c,1))});S(1," Move row down ");L()}},j1b=function(a){if(a&1){var b=t();K(0,"button",65);N("click",function(){u(b);var c=P(2).$implicit,d=P(2);return v(h1b(d,c,-1))});S(1," Move row up ");L()}},l1b=function(a){if(a&1){var b=t();K(0,"td",41)(1,"span",18)(2,"span",19);F(3,f1b,1,2,"b-icon",56);L();K(4,"span",
19)(5,"span");F(6,g1b,1,3,"b-icon",57);L();K(7,"mat-menu",null,0);F(9,i1b,2,0,"button",58);F(10,j1b,2,0,"button",59);K(11,"button",60);N("click",function(){u(b);var d=P().$implicit,e=P(2);v0b(e,e.collection.indexOf(d)+1);return v()});S(12," Add row below ");L();K(13,"button",61);N("click",function(){u(b);var d=P().$implicit,e=P(2);v0b(e,e.collection.indexOf(d)+-1+1);return v()});S(14," Add row above ");L();K(15,"button",62);N("click",function(){u(b);var d=P().$implicit,e=P(2);return v(e.removeElement(d))});
S(16," Remove ");L()()()()()}if(a&2){a=P().$implicit;var c=P(2);B(3);G(a.canEdit?3:-1);B(3);G(a.canEdit?6:-1);B(3);G(k1b(c,a,1).valid?9:-1);B();G(k1b(c,a,-1).valid?10:-1)}},m1b=function(a,b){a&1&&(K(0,"tr",25),F(1,z0b,1,0,"td",26)(2,A0b,1,0,"td",27),F(3,B0b,2,3,"td",28)(4,G0b,3,1,"td",29),F(5,H0b,2,3,"td",30)(6,M0b,3,1,"td",31),F(7,N0b,2,3,"td",32)(8,R0b,3,1,"td",33),F(9,U0b,5,2,"td",34)(10,V0b,2,1,"td",35),F(11,W0b,2,5,"td",36)(12,X0b,2,4,"td",37),F(13,$0b,5,1,"td",38)(14,a1b,2,1,"td",39),F(15,d1b,
6,4,"td",40)(16,l1b,17,4,"td",41),L());a&2&&(a=b.$implicit,b=P(2),yg("draggable",!b.isDisabled&&b.openRow==null),B(),G(a.isEditing()?1:2),B(2),G(a.isEditing()?3:4),B(2),G(a.isEditing()?5:6),B(2),G(a.isEditing()?7:8),B(2),G(a.isEditing()?9:10),B(2),G(a.isEditing()?11:12),B(2),G(a.isEditing()?13:14),B(2),G(a.isEditing()?15:16))},n1b=function(a){if(a&1){var b=t();K(0,"tbody",23);N("cdkDropListDropped",function(c){u(b);var d=P();return v(d.onDrop(c))});Pf(1,m1b,17,10,"tr",24,Of);L()}a&2&&(a=P(),I("cdkDropListData",
a.collection)("cdkDropListDisabled",a.isDisabled||a.openRow!=null),B(),Qf(a.collection))},o1b=function(a){a&1&&(K(0,"div",17),S(1," There are currently no rules for this SLO "),L())},p1b=function(a,b){if(a&1){var c=t();Sf(0,"tr",7);eg("click",function(){var e=u(c).$implicit,f=P();return v(f.editSlo(e))})("focus",function(){var e=u(c).$index,f=P();return v(f.setFocusOnIndex(e))});Uf(1,"td",2);Sf(2,"td",8)(3,"a",9);S(4);Tf()();Sf(5,"td",10);S(6);Tf()()}if(a&2){a=b.$implicit;b=b.$index;var d=P();yg("grid-focus",
d.isFocused(b));Jf("aria-selected",d.isFocused(b))("aria-label",d.renderRowLabel(b));B(3);Rf("href",zs.editSlo.makeHref(a.sloId),Me);B();T(" ",a.name," ");B(2);T(" ",a.description," ")}},q1b=function(a){if(a)return(Array.isArray(a)?a.map(function(b){return Jm(b)}):[Jm(a)]).filter(function(b){return!isNaN(b)})},r1b=function(a,b){if(b&&!Array.isArray(b))return a.find(function(c){return!wa(c,b)})},s1b=function(a,b){typeof a==="string"&&(a=a.trim())&&b(Sm(a))},t1b=function(a,b){if(!a)return[];a=l(typeof a===
"string"?a.split(","):a);for(var c=a.next();!c.done;c=a.next())s1b(c.value,function(d){return b.push(d)});return PSa(b)},u1b=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("xg");}},v1b=function(a){a&1&&(K(0,"a",1),S(1),U(2,"async"),L());if(a&2){var b;a=P();I("href",a.manageComponentLink,Me);B();Ag((b=W(2,2,a.component$))==null?null:b.name)}},w1b=function(a){a&1&&(K(0,
"output"),S(1),L());a&2&&(a=P(),B(),Ag(a.componentId))},x1b=function(a){a&1&&Xf(0)},y1b=function(a){a&1&&E(0,x1b,1,0,"ng-container",4);a&2&&(P(),a=Q(6),I("ngTemplateOutlet",a))},z1b=function(a){a&1&&Xf(0)},A1b=function(a){a&1&&E(0,z1b,1,0,"ng-container",4);a&2&&(P(),a=Q(8),I("ngTemplateOutlet",a))},B1b=function(a){a&1&&(K(0,"li")(1,"label"),S(2,"Component"),L(),M(3,"b-async-component",8),L());a&2&&(a=P(2),B(3),I("componentId",a.issueComponentId))},C1b=function(a){a&1&&(K(0,"li")(1,"label"),S(2,"Team"),
L(),M(3,"b-team-display",9),L());a&2&&(a=P(2),B(3),I("teamId",a.issueTeamId))},D1b=function(a){a&1&&(K(0,"ol",5)(1,"li")(2,"label"),S(3,"ID"),L(),K(4,"output"),S(5),L()(),K(6,"li")(7,"label"),S(8,"Type"),L(),K(9,"output"),S(10),L()(),K(11,"li")(12,"label"),S(13,"Priority"),L(),M(14,"b-issue-priority-display",6),L(),K(15,"li")(16,"label"),S(17,"Severity"),L(),K(18,"output"),S(19),L()(),K(20,"li")(21,"label"),S(22,"Status"),L(),K(23,"output"),S(24),L()(),K(25,"li")(26,"label"),S(27,"Last modified"),
L(),K(28,"output"),S(29),U(30,"date"),L()(),K(31,"li")(32,"label"),S(33,"Issue access limit"),L(),K(34,"output"),S(35),K(36,"a",7),S(37,"Learn more"),L()()(),F(38,B1b,4,1,"li"),F(39,C1b,4,1,"li"),L());a&2&&(a=P(),B(5),Ag(a.issueId),B(5),Ag(a.issueType),B(4),I("issuePriority",a.issuePriority),B(5),Ag(a.issueSeverity),B(5),Ag(a.issueStatus),B(5),Ag(Ng(30,10,a.issueLastModified,"medium")),B(6),T("",a.accessLimitLevel," "),B(),I("href",a.documentationLinks.getIssueAccessLimit(),Me),B(2),G(a.issueComponentId?
38:-1),B(),G(a.issueTeamId?39:-1))},E1b=function(a){a&1&&(Vf(0),S(1,"Signing in..."),Wf(),M(2,"b-spinner"))},F1b=function(a){a&1&&(Vf(0),S(1,"Sign in"),Wf())},G1b=function(a){if(a&1){var b=t();K(0,"h3");S(1,"Access to this issue may be resolved by signing in.");L();K(2,"button",10);N("click",function(){u(b);var c=P();c.signInProgressing=!0;c.loginRedirector.redirect();return v()});F(3,E1b,3,0)(4,F1b,2,0,"ng-container");L()}a&2&&(a=P(),B(3),G(a.signInProgressing?3:4))},H1b=function(a){return a.startsWith('"')&&
a.endsWith('"')||a.startsWith("'")&&a.endsWith("'")?a.toLowerCase().substr(1,a.length-2):a.toLowerCase()},I1b=function(a){a.label||(a=Hm(a),a.label={customFieldId:void 0,field:"_TEXT_"});return a},K1b=function(a){return{type:J1b[a.getType()],value:a.getValue()}},M1b=function(a){var b,c=L1b[a.getType()],d=((b=a.getValuesList())!=null?b:[]).map(M1b);a=Wi(a,N1b,3,Xi());return{type:c,values:d,simpleValues:(a!=null?a:[]).map(K1b)}},R1b=function(a){var b,c=O1b[a.getType()],d=((b=a.getValuesList())!=null?
b:[]).map(M1b);b=$i(a,3);if(a.hasLabel()){var e=a.getLabel();e={field:P1b[e.getField()],customFieldId:Number(e.getCustomFieldId_asString())}}else e=void 0;return{type:c,values:d,negated:b,label:e,operator:Q1b[Ri(a,5)]}},W1b=function(a){switch(a.getKindCase()){case 2:var b=lm(a,S1b,2,T1b,fb);return{syntaxErrorResponse:{syntaxError:Fi(b,1,void 0,fb)},queryBuilderResponse:void 0};case 1:return a=lm(a,Fu,1,T1b,fb),{syntaxErrorResponse:void 0,queryBuilderResponse:{type:U1b[a.getType()],expressions:((b=
Wi(a,V1b,2,Xi(),fb))!=null?b:[]).map(R1b)}};default:return{syntaxErrorResponse:void 0,queryBuilderResponse:void 0}}},X1b=function(a){if(a&1){var b=t();K(0,"mat-checkbox",8);N("click",function(d){u(b);return v(d.stopPropagation())})("change",function(){u(b);var d=P().$implicit,e=P();return v(e.toggleSelection(d))});S(1);L()}if(a&2){a=P().$implicit;var c=P();I("checked",c.selectedValuesMap[a]);B();T(" ",a," ")}},Y1b=function(a){a&1&&(K(0,"div",7),S(1),L());a&2&&(a=P().$implicit,B(),T(" ",a," "))},Z1b=
function(a,b){a&1&&(K(0,"mat-option",4),F(1,X1b,2,2,"mat-checkbox",6)(2,Y1b,2,1,"div",7),L());a&2&&(a=b.$implicit,b=P(),I("value",a),B(),G(b.allowMultiSelect?1:2))},a2b=function(a){if(a&1){var b=t();K(0,"div",5)(1,"button",9);N("click",function(){u(b);var c=P();return v($1b(c))})("keydown.enter",function(){u(b);var c=P();return v($1b(c))});M(2,"mat-icon",10);L();K(3,"button",11);N("click",function(){u(b);var c=P();return v(c.cancel())})("keydown.esc",function(){u(b);var c=P();return v($1b(c))});M(4,
"mat-icon",12);L()()}a&2&&(a=P(),B(),Jf("aria-label",Gg("Apply changes to ",a.customFieldTitle)),I("disabled",!a.hasPendingChanges),B(2),Jf("aria-label",Gg("Discard changes to ",a.customFieldTitle)))},b2b=function(a,b){a&1&&(K(0,"mat-option",4)(1,"div",5),S(2),L()());a&2&&(a=b.$implicit,I("value",a),B(2),T(" ",a.name," "))},c2b=function(a,b){a&1&&(K(0,"mat-option",11),S(1),L());a&2&&(a=b.$implicit,I("value",a.key),B(),T(" ",a.value," "))},d2b=function(a){if(a&1){var b=t();K(0,"mat-form-field",4)(1,
"mat-select",10);Eg("ngModelChange",function(c){u(b);var d=P(2);Dg(d.expressionType,c)||(d.expressionType=c);return v(c)});Pf(2,c2b,2,2,"mat-option",11,Of);U(4,"keyvalue");L()()}a&2&&(a=P(2),B(),Cg("ngModel",a.expressionType),B(),Qf(W(4,1,a.globalTypeLabels)))},e2b=function(a,b){a&1&&(K(0,"mat-option",11),S(1),L());a&2&&(a=b.$implicit,I("value",a[0]),B(),T(" ",a[1]," "))},f2b=function(a,b){a&1&&(K(0,"mat-option",11),S(1),L());if(a&2){a=b.$implicit;b=P(2).$implicit;var c=P(2);I("value",a);B();T(" ",
c.getTypeLabel(b,a)," ")}},g2b=function(a){if(a&1){var b=t();K(0,"mat-form-field",4)(1,"mat-select",18);Eg("ngModelChange",function(c){u(b);var d=P().$implicit;Dg(d.type,c)||(d.type=c);return v(c)});Pf(2,f2b,2,2,"mat-option",11,Of);L()()}a&2&&(a=P().$implicit,B(),Cg("ngModel",a.type),B(),Qf(a.getLegalTypes()))},i2b=function(a){if(a&1){var b=t();K(0,"div",26);N("click",function(){u(b);var c=P(2).$implicit,d=P(5);return v(h2b(d,c))});K(1,"span",27);S(2);L()()}a&2&&(a=P(2).$implicit,P(5),I("title",a.value),
B(2),T(" ",a.value.replace(/"/g,"")," "))},j2b=function(a){if(a&1){var b=t();K(0,"div",24)(1,"b-custom-repeated-enum-picker",28);N("onValueChange",function(e){u(b);var f=P(7);f.chipUnderEdit.value='"'+e+'"';Gu(f);return v()});L()()}if(a&2){a=P(2).$implicit;var c=P(3).$implicit,d=P(2);B();I("showPlaceholder",!0)("customFieldTitle",d.getCustomFieldName(c))("currentInputValue",a.value.replace(/"/g,""))("allowedValues",c.getOptions())}},k2b=function(a){if(a&1){var b=t();K(0,"div",22);F(1,i2b,3,2,"div",
23);F(2,j2b,2,4,"div",24);K(3,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return v(Hu(f,e,d))});L()()}if(a&2){a=P().$implicit;var c=P(5);B();G(c.chipUnderEdit===a?-1:1);B();G(c.chipUnderEdit===a?2:-1)}},l2b=function(a,b){a&1&&F(0,k2b,4,2,"div",22);a&2&&(a=b.$implicit,b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},m2b=function(a){if(a&1){var b=t();K(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return v(Iu(d,c))});S(1);L()}a&2&&(a=P(3).$implicit,
B(),T(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},n2b=function(a){a&1&&(K(0,"div",19),Pf(1,l2b,1,1,null,null,Of),F(3,m2b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,B(),Qf(a.values),B(2),G(a.type?3:-1))},o2b=function(a,b){if(a&1){var c=t();K(0,"div",30)(1,"mat-checkbox",31);N("change",function(d){var e=u(c).$implicit,f=P(3).$implicit;return v(f.enumValues[e.id]=d.checked)});S(2);L()()}a&2&&(a=b.$implicit,b=P(3).$implicit,B(),I("checked",b.enumValues[a.id])("matTooltip",a.tooltip),B(),T(" ",
a.label||a.id," "))},p2b=function(a){a&1&&(K(0,"div",20),Pf(1,o2b,3,3,"div",30,Of),L());a&2&&(a=P(2).$implicit,B(),Qf(a.getOptions()))},q2b=function(a){if(a&1){var b=t();K(0,"div")(1,"b-peoplekit-multi",32);Eg("valueChange",function(d){u(b);var e=P(3).$implicit;Dg(e.csv,d)||(e.csv=d);return v(d)});L()()}if(a&2){a=P(3).$implicit;var c=P(2);B();Cg("value",a.csv);I("candidateDenylist",c.candidateEmailAutocompleteDenylist)}},r2b=function(a){if(a&1){var b=t();K(0,"div")(1,"input",33);Eg("ngModelChange",
function(c){u(b);var d=P(3).$implicit;Dg(d.csv,c)||(d.csv=c);return v(c)});L()()}a&2&&(a=P(3).$implicit,B(),Cg("ngModel",a.csv))},s2b=function(a){if(a&1){var b=t();K(0,"div")(1,"input",34);Eg("ngModelChange",function(c){u(b);var d=P(3).$implicit;Dg(d.csv,c)||(d.csv=c);return v(c)});L()()}a&2&&(a=P(3).$implicit,B(),Cg("ngModel",a.csv))},t2b=function(a){if(a&1){var b=t();K(0,"div")(1,"input",35);Eg("ngModelChange",function(c){u(b);var d=P(3).$implicit;Dg(d.csv,c)||(d.csv=c);return v(c)});L()()}a&2&&
(a=P(3).$implicit,B(),Cg("ngModel",a.csv))},u2b=function(a){a&1&&(K(0,"div"),F(1,q2b,2,2,"div"),F(2,r2b,2,1,"div"),F(3,s2b,2,1,"div"),F(4,t2b,2,1,"div"),L());a&2&&(a=P(2).$implicit,B(),G(a.getWidgetType()=="user"?1:-1),B(),G(a.getWidgetType()=="csv"?2:-1),B(),G(a.getWidgetType()=="id"?3:-1),B(),G(a.getWidgetType()=="number"?4:-1))},v2b=function(a,b){if(a&1){var c=t();K(0,"div",36)(1,"div",24)(2,"input",35);Eg("ngModelChange",function(d){var e=u(c).$implicit;Dg(e.value,d)||(e.value=d);return v(d)});
L()();K(3,"button",37);N("click",function(){var d=u(c).$implicit,e=P(3).$implicit,f=P(2);return v(Hu(f,e,d))});L()()}a&2&&(a=b.$implicit,B(2),Cg("ngModel",a.value))},w2b=function(a){if(a&1){var b=t();K(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return v(Iu(d,c))});S(1);L()}a&2&&(a=P(3).$implicit,B(),T(" + ",a.type=="OR"||a.type=="NOR"?"OR":"AND"," "))},x2b=function(a){a&1&&(K(0,"div",19),Pf(1,v2b,4,1,"div",36,Of),F(3,w2b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,B(),Qf(a.values),
B(2),G(a.type?3:-1))},z2b=function(a){if(a&1){var b=t();K(0,"div",26);N("click",function(){u(b);var d=P(2).$implicit,e=P(5);return v(y2b(e,d))});K(1,"span",27);S(2);L()()}if(a&2){a=P(2).$implicit;var c=P(5);I("title",c.getComponentPath(c.components[a.value]));B(2);T(" ",c.getComponentPath(c.components[a.value])," ")}},A2b=function(a){if(a&1){var b=t();K(0,"div",24)(1,"b-team-component-picker",41);N("selectedComponentChange",function(c){u(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;Gu(d);return v()});L()()}a&2&&(a=P(7),B(),I("selectedComponent",a.componentUnderEdit)("placeholder","Choose Component")("isRequired",!0))},B2b=function(a){if(a&1){var b=t();K(0,"div",38);F(1,z2b,3,2,"div",23);F(2,A2b,2,3,"div",24);K(3,"button",39);N("click",function(){u(b);var d=P().$implicit;P(5);d.includeSubs=!d.includeSubs;return v()});M(4,"mat-icon",
40);L();K(5,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return v(Hu(f,e,d))});L()()}if(a&2){a=P().$implicit;var c=P(5);B();G(c.chipUnderEdit===a?-1:1);B();G(c.chipUnderEdit===a?2:-1);B();I("title",a.includeSubs?"Subcomponents are included":"Subcomponents are not included");Jf("aria-checked",a.includeSubs);B();I("svgIcon",a.includeSubs?"child-components-24px":"child-components-hide-24px")}},C2b=function(a,b){a&1&&F(0,B2b,6,5,"div",38);a&2&&(a=b.$implicit,b=P(5),
G(b.chipUnderEdit===a||a.value?0:-1))},D2b=function(a){if(a&1){var b=t();K(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return v(Iu(d,c))});S(1);L()}a&2&&(a=P(3).$implicit,B(),T(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},E2b=function(a){a&1&&(K(0,"div",19),Pf(1,C2b,1,1,null,null,Of),F(3,D2b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,B(),Qf(a.values),B(2),G(a.type?3:-1))},G2b=function(a){if(a&1){var b=t();K(0,"div",26);N("click",function(){u(b);var d=P(2).$implicit,
e=P(5);return v(F2b(e,d))});K(1,"span",27);S(2);L()()}if(a&2){a=P(2).$implicit;var c=P(5);I("title",c.trackers[a.value]==null?null:c.trackers[a.value].name);B(2);T(" ",c.trackers[a.value]==null?null:c.trackers[a.value].name," ")}},H2b=function(a){if(a&1){var b=t();K(0,"div",24)(1,"b-tracker-picker",43);N("onTrackerSelect",function(c){u(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;Gu(d);return v()});L()()}a&2&&(a=P(7),B(),I("selectedTracker",a.trackerUnderEdit))},I2b=function(a){if(a&1){var b=t();K(0,"div",42);F(1,G2b,3,2,"div",23);F(2,H2b,2,1,"div",24);K(3,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return v(Hu(f,e,d))});L()()}if(a&2){a=P().$implicit;var c=P(5);B();G(c.chipUnderEdit===a?-1:1);B();G(c.chipUnderEdit===a?2:-1)}},J2b=function(a,b){a&1&&F(0,I2b,4,2,"div",42);a&2&&(a=b.$implicit,
b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},K2b=function(a){if(a&1){var b=t();K(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return v(Iu(d,c))});S(1);L()}a&2&&(a=P(3).$implicit,B(),T(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},L2b=function(a){a&1&&(K(0,"div",19),Pf(1,J2b,1,1,null,null,Of),F(3,K2b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,B(),Qf(a.values),B(2),G(a.type?3:-1))},N2b=function(a){if(a&1){var b=t();K(0,"div",26);U(1,"teamPath");N("click",function(){u(b);
var d=P(2).$implicit,e=P(6);return v(M2b(e,d))});K(2,"span",27);S(3);U(4,"teamPath");L()()}if(a&2){a=P(2).$implicit;var c=P(6);I("title",W(1,2,c.teams[a.value]));B(3);T(" ",W(4,4,c.teams[a.value])," ")}},P2b=function(a){if(a&1){var b=t();K(0,"div",24)(1,"b-team-picker",46);N("onTeamSelect",function(c){u(b);var d=P(8);return v(O2b(d,c))});L()()}a&2&&(a=P(8),B(),I("teamSelected",a.teamUnderEdit))},Q2b=function(a){if(a&1){var b=t();K(0,"div",44);F(1,N2b,5,6,"div",23);F(2,P2b,2,1,"div",24);K(3,"button",
45);N("click",function(){u(b);var d=P().$implicit;P(6);d.includeSubs=!d.includeSubs;return v()});M(4,"mat-icon",40);L();K(5,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(4).$implicit,f=P(2);return v(Hu(f,e,d))});L()()}if(a&2){a=P().$implicit;var c=P(6);B();G(c.chipUnderEdit===a?-1:1);B();G(c.chipUnderEdit===a?2:-1);B();I("title",a.includeSubs?"Subteams are included":"Subteams are not included");Jf("aria-checked",a.includeSubs);B();I("svgIcon",a.includeSubs?"child-teams-24px":"child-teams-hide-24px")}},
R2b=function(a,b){a&1&&F(0,Q2b,6,5,"div",44);a&2&&(a=b.$implicit,b=P(6),G(b.chipUnderEdit===a||a.value?0:-1))},S2b=function(a){if(a&1){var b=t();K(0,"button",29);N("click",function(){u(b);var c=P(4).$implicit,d=P(2);return v(Iu(d,c))});S(1);L()}a&2&&(a=P(4).$implicit,B(),T(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},T2b=function(a){a&1&&(Pf(0,R2b,1,1,null,null,Of),F(2,S2b,2,1,"button",21));a&2&&(a=P(3).$implicit,Qf(a.values),B(2),G(a.type?2:-1))},U2b=function(a){a&1&&(K(0,"div",19),F(1,T2b,
3,1),L());a&2&&(a=P(4),B(),G(a.sessionIsInternal?1:-1))},W2b=function(a){if(a&1){var b=t();K(0,"div")(1,"bv2-input-date-picker",47);N("boundValueChange",function(d){u(b);P(3).$implicit.dateFrom=V2b(d);return v()});L();S(2," and ");K(3,"bv2-input-date-picker",47);N("boundValueChange",function(d){u(b);P(3).$implicit.dateTo=V2b(d);return v()});L()()}if(a&2){a=P(3).$implicit;var c=P(2);B();I("boundValue",c.getDateValue(a.dateFrom))("isRequired",!0);B(2);I("boundValue",c.getDateValue(a.dateTo))("isRequired",
!0)}},X2b=function(a){if(a&1){var b=t();K(0,"div");S(1," the last ");K(2,"input",48);Eg("ngModelChange",function(c){u(b);var d=P(3).$implicit;Dg(d.duration,c)||(d.duration=c);return v(c)});L();S(3," days. ");L()}a&2&&(a=P(3).$implicit,B(2),Cg("ngModel",a.duration))},Y2b=function(a){if(a&1){var b=t();K(0,"div")(1,"bv2-input-date-picker",47);N("boundValueChange",function(d){u(b);P(3).$implicit.dateFrom=V2b(d);return v()});L()()}if(a&2){a=P(3).$implicit;var c=P(2);B();I("boundValue",c.getDateValue(a.dateFrom))("isRequired",
!0)}},Z2b=function(a){a&1&&(K(0,"div"),F(1,W2b,4,4,"div"),F(2,X2b,4,1,"div"),F(3,Y2b,2,2,"div"),L());a&2&&(a=P(2).$implicit,B(),G(a.type=="RANGE"||a.type=="NRANGE"?1:-1),B(),G(a.type=="DURATION"||a.type=="NDURATION"?2:-1),B(),G(a.type=="LE"||a.type=="LT"||a.type=="GE"||a.type=="GT"||a.type=="OR"?3:-1))},$2b=function(a){if(a&1){var b=t();K(0,"div",26);N("click",function(){u(b);var d=P(2).$implicit,e=P(5);return v(Ju(e,d))});K(1,"span",27);S(2);L()()}if(a&2){a=P(2).$implicit;var c=P(5);I("title",(c.hotlists[a.value]==
null?null:c.hotlists[a.value].name)||a.value);B(2);T(" ",(c.hotlists[a.value]==null?null:c.hotlists[a.value].name)||a.value," ")}},a3b=function(a,b){a&1&&(K(0,"mat-option",11),S(1),L());a&2&&(a=b.$implicit,I("value",a.hotlistId),B(),T(" ",a.name," "))},b3b=function(a){if(a&1){var b=t();K(0,"mat-form-field",50)(1,"mat-select",51);Eg("ngModelChange",function(d){u(b);var e=P(2).$implicit;Dg(e.value,d)||(e.value=d);return v(d)});N("selectionChange",function(){u(b);var d=P(7);return v(Gu(d))});Pf(2,a3b,
2,2,"mat-option",11,Of);L()()}if(a&2){a=P(2).$implicit;var c=P(5);B();Cg("ngModel",a.value);B();Qf(c.userHotlists)}},c3b=function(a){if(a&1){var b=t();K(0,"div",49);F(1,$2b,3,2,"div",23);F(2,b3b,4,1,"mat-form-field",50);K(3,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return v(Hu(f,e,d))});L()()}if(a&2){a=P().$implicit;var c=P(5);B();G(c.chipUnderEdit===a?-1:1);B();G(c.chipUnderEdit===a?2:-1)}},d3b=function(a,b){a&1&&F(0,c3b,4,2,"div",49);a&2&&(a=b.$implicit,
b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},e3b=function(a){if(a&1){var b=t();K(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return v(Iu(d,c))});S(1);L()}a&2&&(a=P(3).$implicit,B(),T(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},f3b=function(a){a&1&&(K(0,"div",19),Pf(1,d3b,1,1,null,null,Of),F(3,e3b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,B(),Qf(a.values),B(2),G(a.type?3:-1))},g3b=function(a){if(a&1){var b=t();K(0,"div",26);N("click",function(){u(b);var d=P(2).$implicit,
e=P(5);return v(Ju(e,d))});K(1,"span",27);S(2);L()()}if(a&2){a=P(2).$implicit;var c=P(5);I("title",(c.savedSearches[a.value]==null?null:c.savedSearches[a.value].name)||a.value);B(2);T(" ",(c.savedSearches[a.value]==null?null:c.savedSearches[a.value].name)||a.value," ")}},h3b=function(a,b){a&1&&(K(0,"mat-option",11),S(1),L());a&2&&(a=b.$implicit,I("value",a.searchId),B(),T(" ",a.name," "))},i3b=function(a){if(a&1){var b=t();K(0,"mat-form-field",50)(1,"mat-select",52);Eg("ngModelChange",function(d){u(b);
var e=P(2).$implicit;Dg(e.value,d)||(e.value=d);return v(d)});N("selectionChange",function(){u(b);var d=P(7);return v(Gu(d))});Pf(2,h3b,2,2,"mat-option",11,Of);L()()}if(a&2){a=P(2).$implicit;var c=P(5);B();Cg("ngModel",a.value);B();Qf(c.userSavedSearches)}},j3b=function(a){if(a&1){var b=t();K(0,"div",49);F(1,g3b,3,2,"div",23);F(2,i3b,4,1,"mat-form-field",50);K(3,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return v(Hu(f,e,d))});L()()}if(a&2){a=P().$implicit;var c=
P(5);B();G(c.chipUnderEdit===a?-1:1);B();G(c.chipUnderEdit===a?2:-1)}},k3b=function(a,b){a&1&&F(0,j3b,4,2,"div",49);a&2&&(a=b.$implicit,b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},l3b=function(a){if(a&1){var b=t();K(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return v(Iu(d,c))});S(1);L()}a&2&&(a=P(3).$implicit,B(),T(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},m3b=function(a){a&1&&(K(0,"div",19),Pf(1,k3b,1,1,null,null,Of),F(3,l3b,2,1,"button",21),L());a&2&&(a=P(2).$implicit,
B(),Qf(a.values),B(2),G(a.type?3:-1))},n3b=function(a){a&1&&(K(0,"div",14),F(1,n2b,4,1,"div",19),F(2,p2b,3,0,"div",20),F(3,u2b,5,4,"div"),F(4,x2b,4,1,"div",19),F(5,E2b,4,1,"div",19),F(6,L2b,4,1,"div",19),F(7,U2b,2,1,"div",19),F(8,Z2b,4,3,"div"),F(9,f3b,4,1,"div",19),F(10,m3b,4,1,"div",19),L());if(a&2){a=P().$implicit;var b=P(2);B();G(a.getWidgetType()==="repeated-enum"?1:-1);B();G(a.getWidgetType()==="enum"?2:-1);B();G(a instanceof Ku?3:-1);B();G(a.getWidgetType()=="text"?4:-1);B();G(a.getWidgetType()==
"component"?5:-1);B();G(b.isTrackerSearchEnabled&&a.getWidgetType()=="tracker"?6:-1);B();G(a.getWidgetType()=="team"?7:-1);B();G(a.getWidgetType()==="date"?8:-1);B();G(a.getWidgetType()=="hotlist"?9:-1);B();G(a.getWidgetType()=="savedsearch"?10:-1)}},o3b=function(a){a&1&&(K(0,"div",15),S(1),L());if(a&2){a=P().$implicit;var b=P(2);B();T(" ",b.getCustomFieldName(a)," ")}},r3b=function(a){if(a&1){var b=t();K(0,"div",16)(1,"b-custom-field-picker",53);N("fieldSelected",function(c){u(b);var d=P().$index,
e=P(2),f=c.customFieldId;e.customFields[f]=c;e.expressions[d]=p3b(e.searchRuleFactory,"CUSTOM_FIELD",e.customFields[f]);q3b(e,e.expressions[d]);return v()});L()()}},t3b=function(a,b){if(a&1){var c=t();K(0,"div",5)(1,"div",12)(2,"mat-form-field",4)(3,"mat-select",13);Eg("ngModelChange",function(d){var e=u(c).$implicit;Dg(e.label.field,d)||(e.label.field=d);return v(d)});N("selectionChange",function(){var d=u(c).$index,e=P(2);return v(s3b(e,d))});Pf(4,e2b,2,2,"mat-option",11,Of);L()();F(6,g2b,4,1,"mat-form-field",
4);L();F(7,n3b,11,10,"div",14);F(8,o3b,2,1,"div",15);F(9,r3b,2,0,"div",16);K(10,"button",17);N("click",function(){var d=u(c).$implicit,e=P(2);return v(e.removeExpression(d))});L()()}a&2&&(a=b.$implicit,b=P(2),B(3),Cg("ngModel",a.label.field),B(),Qf(b.availableLabels),B(2),G(a.isPendingCustomField?-1:6),B(),G(a.isPendingCustomField?-1:7),B(),G(a.label.customFieldId?8:-1),B(),G(a.isPendingCustomField?9:-1))},u3b=function(a,b){if(a&1){var c=t();K(0,"button",54);N("click",function(){var d=u(c).$implicit,
e=P(2);return v(e.addExpression(d[0]))});S(1);L()}a&2&&(a=b.$implicit,B(),T(" ",a[1]," "))},v3b=function(a){a&1&&(K(0,"div",1)(1,"div",2)(2,"span",3),S(3,"Advanced search query builder"),L(),F(4,d2b,5,3,"mat-form-field",4),L(),Pf(5,t3b,11,5,"div",5,Nf),K(7,"div",6)(8,"button",7),S(9),L(),K(10,"mat-menu",8,0),Pf(12,u3b,2,1,"button",9,Of),L()()());if(a&2){a=Q(11);var b=P();B(4);G(b.expressions.length?4:-1);B();Qf(b.expressions);B(3);I("matMenuTriggerFor",a);B();T(" ",b.expressionType," ... ");B(3);
Qf(b.availableLabels)}},x3b=function(a){if(a&1){var b=t();K(0,"button",2);N("click",function(){u(b);var c=P();return v(w3b(c))});S(1);L()}a&2&&(a=P(),B(),T(" ",a.buttonLabel," "))},y3b=function(a){if(a&1){var b=t();K(0,"button",3);N("click",function(){u(b);var c=P();return v(w3b(c))});M(1,"mat-icon",4);S(2);L()}a&2&&(a=P(),I("matTooltip","Open release notes"),B(),I("svgIcon",a.alertMode?"release-notes-alert":"release-notes-default"),B(),T(" ",a.buttonLabel," "))},z3b=function(a){if(a&1){var b=t();
K(0,"button",9);N("click",function(c){u(b);var d=P();return v(d.manageSlos(c))});S(1,"Manage SLOs");L()}},A3b=function(a){a&1&&M(0,"mat-divider")(1,"b-whats-new-button",11);a&2&&(B(),I("menuMode",!0))},B3b=function(a){a&1&&M(0,"b-whats-new-button",0);a&2&&(a=P(),I("alertMode",a.majorReleaseNotesUpdated))},C3b=function(a){if(a&1){var b=t();K(0,"button",4);N("click",function(){u(b);P().userFeedback.startFeedback();return v()});M(1,"mat-icon",5);L()}},D3b=function(a){if(a&1){var b=t();K(0,"button",5);
N("click",function(){u(b);var c=P();return v(c.clickMenu.emit())});M(1,"mat-icon",6);L()}},G3b=function(a,b){a&1&&(K(0,"output",7),S(1),L());a&2&&(a=b.$implicit,zg(a.color?Kg(3,E3b,a.color):Jg(5,F3b)),B(),Ag(a.name))},H3b=function(a){a&1&&(K(0,"span"),S(1," Currently selected hotlist: "),K(2,"strong"),S(3),L()());a&2&&(a=P(3),B(3),Ag(a.header.hotlist.name))},I3b=function(a){a&1&&S(0," Showing your subscribed hotlists. Start typing a hotlist name or ID to filter. ")},J3b=function(a){a&1&&F(0,H3b,4,
1,"span")(1,I3b,1,0);a&2&&(a=P(2),G(a.header.hotlist?0:1))},K3b=function(a){a&1&&(K(0,"span"),S(1,"Currently selected saved search: "),K(2,"strong"),S(3),L()());a&2&&(a=P(3),B(3),Ag(a.header.savedSearch.name))},L3b=function(a){a&1&&S(0," Showing your saved searches. Start typing a saved search name or ID to filter. ")},M3b=function(a){a&1&&F(0,K3b,4,1,"span")(1,L3b,1,0);a&2&&(a=P(2),G(a.header.savedSearch?0:1))},N3b=function(a){a&1&&(K(0,"span"),S(1," and "),K(2,"strong"),S(3,"subcomponents"),L()())},
O3b=function(a){a&1&&(K(0,"span"),S(1," Currently selected component: "),K(2,"strong",3),S(3),L(),M(4,"b-component-access-level-indicator",4)(5,"b-tracker-chip-smart",5),F(6,N3b,4,0,"span"),L());if(a&2){a=P(3);B(3);var b=a.header.component,c=Lu(a.trackerHelpers,b.componentPathInfo);Ag(c&&c.componentPathName?c.componentPathName.join(" > "):b.name);B();I("accessLevel",a.header.component.accessLimit==null?null:a.header.component.accessLimit.accessLevel);B();I("trackerId",a.header.component.trackerId);
B();G(a.header.includeChildren?6:-1)}},P3b=function(a){a&1&&S(0," Start typing a component name or ID to see auto-complete suggestions. ")},Q3b=function(a){a&1&&F(0,O3b,7,4,"span")(1,P3b,1,0);a&2&&(a=P(2),G(a.header.component?0:1))},R3b=function(a){a&1&&(K(0,"span"),S(1," Currently selected tracker: "),K(2,"strong"),S(3),L()());a&2&&(a=P(3),B(3),Ag(a.header.tracker.name))},S3b=function(a){a&1&&S(0," Start typing a tracker name or ID to see auto-complete suggestions. ")},T3b=function(a){a&1&&F(0,R3b,
4,1,"span")(1,S3b,1,0);a&2&&(a=P(2),G(a.header.tracker?0:1))},U3b=function(a){a&1&&(K(0,"span"),S(1," and "),K(2,"strong"),S(3,"subteams"),L()())},V3b=function(a){a&1&&(K(0,"span"),S(1," Currently selected team: "),K(2,"strong"),S(3),L(),F(4,U3b,4,0,"span"),L());a&2&&(a=P(3),B(3),Ag(a.header.team.name),B(),G(a.header.includeChildren?4:-1))},W3b=function(a){a&1&&S(0," Start typing a team name or ID to see auto-complete suggestions. ")},X3b=function(a){a&1&&F(0,V3b,5,2,"span")(1,W3b,1,0);a&2&&(a=P(2),
G(a.header.team?0:1))},Y3b=function(a,b){a&1&&(K(0,"span"),S(1," Currently selected custom field: "),K(2,"strong"),S(3),L(),S(4," of type "),K(5,"strong"),S(6),U(7,"lowercase"),L(),S(8,". "),L());a&2&&(B(3),Ag(b.name),B(3),Ag(W(7,2,b.type)))},Z3b=function(a){a&1&&S(0," Start typing a custom field name or ID to see auto-complete suggestions. ")},$3b=function(a){a&1&&F(0,Y3b,9,4,"span")(1,Z3b,1,0);if(a&2){var b;a=P(2);G((b=a.header.customField)?0:1,b)}},a4b=function(a){a&1&&(K(0,"div",0),F(1,J3b,2,
1),F(2,M3b,2,1),F(3,Q3b,2,1),F(4,T3b,2,1),F(5,X3b,2,1),F(6,$3b,2,1),L());a&2&&(a=P(),B(),G(a.header.type==="hotlist"?1:-1),B(),G(a.header.type==="savedsearch"?2:-1),B(),G(a.header.type==="component"?3:-1),B(),G(a.header.type==="tracker"?4:-1),B(),G(a.header.type==="team"?5:-1),B(),G(a.header.type==="customfield"?6:-1))},b4b=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P().$implicit,B(),Bg(" ",a.id,": ",a.name," "))},c4b=function(a){a&1&&(K(0,"span"),S(1),K(2,"span"),S(3),L()());a&2&&(a=P().$implicit,
B(),T(" Hotlist ",a.id,": "),B(2),Ag(a.name))},d4b=function(a){a&1&&(K(0,"span"),S(1),K(2,"span"),S(3),L(),M(4,"br"),K(5,"span",7),S(6),L()());a&2&&(a=P().$implicit,B(),T(" Saved search ",a.id,": "),B(2),Ag(a.name),B(3),Ag(a.query))},e4b=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P().$implicit,B(),T(" ",a.name," "))},f4b=function(a){a&1&&(K(0,"span"),S(1," > "),L())},h4b=function(a,b){if(a&1){var c=t();K(0,"span",9);N("click",function(e){var f=u(c).$implicit;g4b(f);return v(e.stopPropagation())});
S(1);L();F(2,f4b,2,0,"span")}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;I("title",Hg("",a.id,": ",a.name));B();Ag(a.name);B();G(d!==b-1?2:-1)}},i4b=function(a){a&1&&(K(0,"span"),S(1," Component "),K(2,"strong",3),S(3),L(),M(4,"b-component-access-level-indicator",4)(5,"b-tracker-chip-smart",5),K(6,"span",8),Pf(7,h4b,3,5,null,null,Of),L()());a&2&&(a=P().$implicit,B(3),Ag(a.id),B(),I("accessLevel",a.accessLimit==null?null:a.accessLimit.accessLevel),B(),I("trackerId",a.trackerId),B(2),Qf(a.componentPath))},
j4b=function(a){a&1&&(K(0,"span"),S(1),K(2,"span"),S(3),L()());a&2&&(a=P().$implicit,B(),T(" Tracker ",a.id,": "),B(2),Ag(a.name))},k4b=function(a){a&1&&(K(0,"span"),S(1," > "),L())},l4b=function(a,b){if(a&1){var c=t();K(0,"span",9);N("click",function(e){var f=u(c).$implicit;g4b(f);return v(e.stopPropagation())});S(1);L();F(2,k4b,2,0,"span")}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;I("title",Hg("",a.id,": ",a.name));B();Ag(a.name);B();G(d!==b-1?2:-1)}},m4b=function(a){a&1&&(K(0,"span"),S(1,
" Team "),K(2,"strong"),S(3),L(),K(4,"span",8),Pf(5,l4b,3,5,null,null,Of),L()());a&2&&(a=P().$implicit,B(3),Ag(a.id),B(2),Qf(a.teamPath))},n4b=function(a){a&1&&(K(0,"span"),S(1," > "),L())},o4b=function(a,b){a&1&&(K(0,"span"),S(1),L(),F(2,n4b,2,0,"span"));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;B();Ag(a);B();G(c!==b-1?2:-1)}},p4b=function(a){a&1&&(K(0,"span"),S(1),K(2,"span"),S(3),L(),K(4,"span",10),Pf(5,o4b,3,2,null,null,Of),L()());a&2&&(a=P().$implicit,B(),T(" Custom Field ",a.id,": "),
B(2),Ag(a.name),B(2),Qf(a.componentPathNames))},q4b=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P().$implicit,B(),Bg(" ",a.label,": ",a.name," "))},s4b=function(a,b){if(a&1){var c=t();K(0,"b-app-search-auto-complete-option",6);N("optionClicked",function(e){u(c);var f=P();e>=0&&e<f.items.length&&(e=f.items[e],e.id&&e.completionCfg&&r4b(e),f.itemSelected.emit(e));return v()});F(1,b4b,2,2,"span");F(2,c4b,4,2,"span");F(3,d4b,7,3,"span");F(4,e4b,2,1,"span");F(5,i4b,9,3,"span");F(6,j4b,4,2,"span");
F(7,m4b,7,1,"span");F(8,p4b,7,2,"span");F(9,q4b,2,2,"span");L()}if(a&2){a=b.$implicit;b=b.$index;var d=P();Jf("id",Gg("b-app-search-option-",b));I("index",b)("isActive",b>=0&&b<d.items.length?b===d.activeItemIndex:!1);B();G(a.completionCfg.type==="issue"?1:-1);B();G(a.completionCfg.type==="hotlist"?2:-1);B();G(a.completionCfg.type==="savedsearch"?3:-1);B();G(a.completionCfg.type==="atom"?4:-1);B();G(a.completionCfg.type==="component"?5:-1);B();G(a.completionCfg.type==="tracker"?6:-1);B();G(a.completionCfg.type===
"team"?7:-1);B();G(a.completionCfg.type==="customField"?8:-1);B();G(d.SPECIAL_ITEM_TYPES.includes(a.completionCfg.type)?-1:9)}},u4b=function(a,b){var c=0,d=0;t4b(a)&&(c=a.selectionStart,d=b?-1:a.selectionEnd);return[c,d]},t4b=function(a){try{return typeof a.selectionStart=="number"}catch(b){return!1}},w4b=function(a){if(a&1){var b=t();K(0,"div",21)(1,"input",22,2);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.searchName,c)||(d.searchName=c);return v(c)});N("keydown.Tab",function(){u(b);var c=
P();return v(v4b(c))})("keydown.enter",function(){u(b);var c=P();return v(c.saveSearch())});L();K(3,"button",18);N("click",function(){u(b);var c=P();return v(c.saveSearch())});S(4," Save ");L()()}a&2&&(a=P(),B(),Cg("ngModel",a.searchName),B(2),I("disabled",!a.searchName))},x4b=function(a){a&1&&(K(0,"span",9),S(1),L());a&2&&(a=P(),yg("muted",a.disabled),B(),Ag(a.cardTitle))},y4b=function(a){a&1&&(K(0,"mat-select-trigger"),M(1,"mat-icon",15),K(2,"span"),S(3),L()());a&2&&(a=P(3),B(),I("svgIcon",a.selectedOption.icon),
B(2),Ag(a.selectedOption.displayText))},z4b=function(a){a&1&&M(0,"mat-icon",15);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},A4b=function(a,b){a&1&&(K(0,"mat-option",14),F(1,z4b,1,1,"mat-icon",15),S(2),L());a&2&&(a=b.$implicit,I("value",a),B(),G(a.icon?1:-1),B(),T(" ",a.displayText," "))},B4b=function(a){if(a&1){var b=t();K(0,"mat-form-field",12)(1,"mat-label");S(2," Choose type... ");L();K(3,"mat-select",13);Eg("valueChange",function(c){u(b);var d=P(2);Dg(d.selectedOption,c)||(d.selectedOption=c);
return v(c)});N("selectionChange",function(c){u(b);P(2).dropdownSelectionChanged.emit(c.value);return v()});F(4,y4b,4,2,"mat-select-trigger");Pf(5,A4b,3,3,"mat-option",14,Of);L()()}a&2&&(a=P(2),B(3),I("disabled",a.disabled),Cg("value",a.selectedOption),B(),G(a.selectedOption&&a.selectedOption.icon?4:-1),B(),Qf(a.dropdownOptions))},C4b=function(a){if(a&1){var b=t();K(0,"mat-form-field",10)(1,"input",11);N("ngModelChange",function(c){u(b);var d=P();return v(d.cardTitleChange.emit(c))});L()();F(2,B4b,
7,3,"mat-form-field",12)}a&2&&(a=P(),B(),yg("muted",a.disabled||!a.selected),I("placeholder",a.placeholderForCardTitle)("disabled",a.disabled||!a.selected)("ngModel",a.cardTitle),Jf("aria-label",a.ariaLabelForCardTitle),B(),G(a.dropdownOptions.length?2:-1))},D4b=function(a){a&1&&M(0,"mat-icon",5)},E4b=function(a){a&1&&M(0,"mat-icon",6)},F4b=function(a){a&1&&(K(0,"div",7),gg(1),L())},G4b=function(a){a&1&&(K(0,"button",18),M(1,"mat-icon",22),L());a&2&&(a=P(2),I("disabled",a.disabled))},H4b=function(a){a&
1&&M(0,"mat-divider",19);a&2&&I("vertical",!0)},I4b=function(a){a&1&&(K(0,"mat-slide-toggle",20),S(1," Required "),L());a&2&&(a=P(2),I("disabled",a.disabled))},J4b=function(a){if(a&1){var b=t();K(0,"mat-slide-toggle",23);N("change",function(c){u(b);var d=P(2);return v(d.isInheritedChange.emit(c))});S(1," Inherited ");L()}a&2&&(a=P(2),I("checked",a.isInherited)("disabled",a.inheritedDisabled)("matTooltip",a.inheritedDisabledTooltipText)("matTooltipDisabled",!a.inheritedDisabled))},K4b=function(a){if(a&
1){var b=t();K(0,"div",8)(1,"button",16);N("click",function(){u(b);var c=P();return v(c.onSave())});S(2," Save ");L();K(3,"button",17);N("click",function(){u(b);var c=P();return v(c.onCancel())});S(4," Cancel ");L();F(5,G4b,2,1,"button",18);F(6,H4b,1,1,"mat-divider",19);F(7,I4b,2,1,"mat-slide-toggle",20);F(8,J4b,2,4,"mat-slide-toggle",21);L()}a&2&&(a=P(),B(),I("disabled",a.isSaveButtonDisabled),B(2),I("disabled",a.disabled),B(2),G(a.showDeleteButton?5:-1),B(),G(a.showDeleteButton&&a.showRequiredToggle?
6:-1),B(),G(a.showRequiredToggle?7:-1),B(),G(a.showInheritedToggle?8:-1))},L4b=function(a,b){a&1&&(K(0,"mat-option",6),S(1),L());a&2&&(a=b.$implicit,I("value",a),B(),Ag(a.name))},M4b=function(a){if(a&1){var b=t();K(0,"mat-form-field")(1,"mat-select",5);Eg("valueChange",function(c){u(b);var d=P();Dg(d.selected,c)||(d.selected=c);return v(c)});Pf(2,L4b,2,2,"mat-option",6,Of);L()()}a&2&&(a=P(),B(),Cg("value",a.selected),B(),Qf(a.options))},N4b=function(a){a&1&&S(0," All the available shared fields have been activated. ")},
O4b=function(a){a&1&&(K(0,"div"),S(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. "),K(2,"a",7),S(3,"Learn more"),L()())},P4b=function(a){a&1&&(K(0,"h3"),S(1),L());a&2&&(a=P(2),B(),T(" Edit Custom Field ",a.editableField.customFieldId," "))},Q4b=function(a){a&1&&(K(0,"h3"),S(1," Create Custom Field "),L())},R4b=function(a){a&1&&(K(0,"div",10),S(1),L());a&2&&(a=P(2),B(),T(" ",a.serverError," "))},
T4b=function(a,b){a&1&&(K(0,"button",24),S(1),U(2,"enumToHuman"),L());a&2&&(a=b.$implicit,P(),b=Q(33),I("matMenuTriggerFor",b)("matMenuTriggerData",Kg(5,S4b,a)),B(),T(" ",W(2,3,a)," "))},U4b=function(a,b){if(a&1){var c=t();K(0,"button",40);N("click",function(){var d=u(c).$implicit,e=P().type,f=P(2);return v(f.setType(e,d==="Multiple"))});S(1);L()}a&2&&(a=b.$implicit,B(),T(" ",a," "))},V4b=function(a){a&1&&Pf(0,U4b,2,1,"button",39,Of);a&2&&(a=P(2),Qf(a.secondaryTypes))},X4b=function(a){if(a&1){var b=
t();K(0,"td",12)(1,"label",41);S(2," Allowed Values: ");L();K(3,"b-list-field",42);N("valuesChange",function(c){u(b);var d=P(2);return v(W4b(d,c.values))});L()()}a&2&&(a=P(2),B(3),I("defaultLineCount",3)("type",a.ListFieldType.REPEATED_TEXT)("values",a.editableField.allowedValue||null)("listFieldDisabled",a.isSaving)("preventDuplicates",!0)("isDefaultOrAllowedValues",!0)("truncate",!0))},Y4b=function(a){a&1&&(K(0,"label",26),S(1," Default Value: "),L())},a5b=function(a,b){if(a&1){var c=t();K(0,"b-edit-field",
43);N("valueChange",function(d){u(c);var e=P(2);Z4b(e,d);return v()});L()}a&2&&(a=P(2),I("name","Default")("type",b)("tooltip","Set default value")("value",$4b(a))("choices",a.allowedValues)("showEnumTitle",!0)("disabled",a.isSaving)("truncate",!0)("clearable",!0))},b5b=function(a){a&1&&(K(0,"label",28),S(1," Default Values: "),L())},c5b=function(a,b){if(a&1){var c=t();K(0,"b-list-field",44);N("valuesChange",function(d){u(c);var e=P(2);Z4b(e,d.values);return v()});L()}a&2&&(a=P(2),I("defaultLineCount",
3)("type",b)("tooltip","Set default values")("values",a.getListFieldValues())("enumChoices",a.allowedValues)("isDefaultOrAllowedValues",!0)("listFieldDisabled",a.isSaving)("truncate",!0))},d5b=function(a,b){if(a&1){var c=t();K(0,"button",45);N("click",function(){var d=u(c).$implicit,e=P(2);return v(e.setFieldSignificance(d))});S(1);U(2,"enumToHuman");L()}a&2&&(a=b.$implicit,B(),T(" ",W(2,1,a)," "))},e5b=function(a){if(a&1){var b=t();K(0,"div",8);F(1,P4b,2,1,"h3")(2,Q4b,2,0,"h3");F(3,R4b,2,1,"div",
10);K(4,"form",11)(5,"div",12)(6,"label",13);S(7,"Name:");L();K(8,"input",14);Eg("ngModelChange",function(m){u(b);var r=P();Dg(r.editableField.name,m)||(r.editableField.name=m);return v(m)});L()();K(9,"div",12)(10,"label",15);S(11,"Description:");L();K(12,"textarea",16);Eg("ngModelChange",function(m){u(b);var r=P();Dg(r.editableField.description,m)||(r.editableField.description=m);return v(m)});L()();K(13,"table",17)(14,"tr")(15,"td",12)(16,"div",18)(17,"label",19);S(18," Type: ");L();K(19,"onedev-hovercard",
null,0)(21,"div",20)(22,"div",21);S(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. ");L()()()();K(24,"button",22);S(25);U(26,"enumToHuman");M(27,"b-icon",23);L();K(28,"mat-menu",null,1);Pf(30,T4b,3,7,"button",24,Of);L();K(32,"mat-menu",null,2);E(34,V4b,2,0,"ng-template",25);L()();F(35,X4b,4,7,"td",12);K(36,"td",12);F(37,Y4b,2,0,"label",26);F(38,a5b,1,9,"b-edit-field",27);F(39,b5b,2,0,"label",28);F(40,c5b,1,8,
"b-list-field",29);L();K(41,"td",12)(42,"label",30);S(43," Required: ");L();K(44,"b-edit-field",31);N("valueChange",function(m){u(b);var r=P();return v(r.editableField.required=!!m)});L()();K(45,"td",12)(46,"div",18)(47,"label",32);S(48," Field Significance: ");L();K(49,"onedev-hovercard",null,3)(51,"div",33)(52,"div",21);S(53," This affects whether users will receive notifications when changes are made to this field. ");M(54,"br");S(55," See\u00a0 ");K(56,"a",34);S(57,"Email Settings ");L()()()()();
K(58,"button",35);S(59);U(60,"enumToHuman");M(61,"b-icon",23);L();K(62,"mat-menu",null,4);Pf(64,d5b,3,3,"button",36,Of);L()()()();K(66,"button",37);N("click",function(){u(b);var m=P();return v(m.save())});S(67," Save ");L();K(68,"button",38);N("click",function(){u(b);var m=P();return v(m.cancel())});S(69," Cancel ");L()()()}if(a&2){var c,d;a=Q(20);var e=Q(29),f=Q(50),g=Q(63),k=P();B();G(k.editableField.customFieldId?1:2);B(2);G(k.serverError?3:-1);B(5);I("bFocus",k.editableField&&!k.isLoading);Cg("ngModel",
k.editableField.name);I("disabled",k.isSaving);B(4);Cg("ngModel",k.editableField.description);I("disabled",k.isSaving);B(5);I("onedevHovercardTrigger",a);B(7);I("matMenuTriggerFor",e)("disabled",!!k.editableField.customFieldId);B();T(" ",W(26,25,k.editableField.type)," ");B(5);Qf(k.typeChoices);B(5);G(["REPEATED_ENUM","ENUM"].includes(k.editableField.type)?35:-1);B(2);G(k.isRepeated(k.editableField)?-1:37);B();G((c=k.getSingleEditFieldType(k.editableField))?38:-1,c);B();G(k.isRepeated(k.editableField)?
39:-1);B();G((d=k.getListFieldType(k.editableField))?40:-1,d);B(4);I("name","Required")("type",k.FieldType.BOOL)("tooltip","Whether the field is required")("value",k.editableField.required);B(3);I("onedevHovercardTrigger",f);B(9);I("href",k.documentationLinks.baseDocumentationUrl+"/concepts/settings#email",Me);B(2);I("matMenuTriggerFor",g);B();T(" ",W(60,27,k.editableField.fieldSignificance)," ");B(5);Qf(k.significanceChoices);B(2);I("disabled",!k.hasUnsavedChanges()||!k.editableField.name)}},f5b=
function(a){a&1&&(K(0,"div",9),M(1,"b-spinner",46),L());a&2&&(B(),I("large",!0))},g5b=function(a){a&1&&(K(0,"th"),S(1,"Actions"),L())},i5b=function(a){if(a&1){var b=t();K(0,"td",51)(1,"button",52);N("click",function(){u(b);var c=P().$index,d=P(2);return v(d.editField(c))});S(2,"Edit");L();K(3,"button",52);N("click",function(){u(b);var c=P().$index,d=P(2);return v(h5b(d,c))});S(4,"Delete");L()()}},j5b=function(a,b){a&1&&(K(0,"tr",48)(1,"td"),S(2),L(),K(3,"td"),S(4),L(),K(5,"td"),S(6),U(7,"enumToHuman"),
L(),K(8,"td"),S(9),L(),K(10,"td"),S(11),U(12,"yesNo"),L(),K(13,"td"),M(14,"b-custom-field-value-display",50),L(),K(15,"td"),S(16),U(17,"arrayToHuman"),L(),K(18,"td"),S(19),U(20,"enumToHuman"),L(),F(21,i5b,5,0,"td",51),L());a&2&&(a=b.$implicit,b=P(2),B(2),Ag(a.name),B(2),Ag(a.customFieldId),B(2),Ag(W(7,9,a.type)),B(3),Ag(a.description),B(2),Ag(W(12,11,a.required)),B(3),I("customFieldValue",a.typedDefaultValue),B(2),Ag(W(17,13,a.allowedValue)),B(3),Ag(W(20,15,a.fieldSignificance)),B(2),G(b.editMode?
21:-1))},k5b=function(a){a&1&&(K(0,"tr")(1,"td",53),S(2," There are no custom fields defined on this component. "),L()())},l5b=function(a){a&1&&(K(0,"tr")(1,"td",54)(2,"strong"),S(3,"Fields inherited from parent components"),L()()())},m5b=function(a){a&1&&(Vf(0),M(1,"b-component-card",60,6),Wf());if(a&2){a=Q(2);var b=P().$implicit;B();I("onedevIsHovercardReady",a.init)("componentId",b.componentId.toString())}},n5b=function(a,b){if(a&1){var c=t();K(0,"tr")(1,"td");S(2);L();K(3,"td");S(4);L();K(5,"td");
S(6);U(7,"enumToHuman");L();K(8,"td");S(9);L();K(10,"td");S(11);U(12,"yesNo");L();K(13,"td");M(14,"b-custom-field-value-display",50);L();K(15,"td");S(16);U(17,"arrayToHuman");L();K(18,"td");S(19);U(20,"enumToHuman");L();K(21,"td",51)(22,"div",56)(23,"div",57);S(24,"Inherited From");L();K(25,"a",58);N("click",function(){u(c);var e=P(3);return v(e.trackClick("parentCustomFields"))});S(26);L();K(27,"onedev-hovercard",null,5);E(29,m5b,3,2,"ng-container",59);L()()()()}if(a&2){a=b.$implicit;b=Q(28);var d=
P(3);zg(a.enabledOnIssues?"enabled-field":"disabled-field");B(2);Ag(a.name);B(2);Ag(a.customFieldId);B(2);Ag(W(7,13,a.type));B(3);Ag(a.description);B(2);Ag(W(12,15,a.required));B(3);I("customFieldValue",a.typedDefaultValue);B(2);Ag(W(17,17,a.allowedValue));B(3);Ag(W(20,19,a.fieldSignificance));B(6);I("onedevHovercardTrigger",b)("href",d.ROUTES.editComponentFields.makeHref(a.componentId),Me);B();T(" ",d.componentIdsToNames[a.componentId]," ")}},o5b=function(a){a&1&&Pf(0,n5b,30,21,"tr",55,Of);a&2&&
(a=P(2),Qf(a.inheritedCustomFields))},p5b=function(a){a&1&&(K(0,"tr")(1,"td",54)(2,"strong"),S(3,"Shared fields"),L()()())},r5b=function(a){if(a&1){var b=t();K(0,"div",51)(1,"button",61);N("click",function(){u(b);var d=P().$implicit,e=P(3);return v(q5b(e,d.customFieldId))});S(2," Deactivate ");L()()}if(a&2){a=P().$implicit;var c=P(3);B();I("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.":
"")}},s5b=function(a,b){a&1&&(K(0,"tr",48)(1,"td"),S(2),L(),K(3,"td"),S(4),L(),K(5,"td"),S(6),U(7,"enumToHuman"),L(),K(8,"td"),S(9),L(),K(10,"td"),S(11),U(12,"yesNo"),L(),K(13,"td"),M(14,"b-custom-field-value-display",50),L(),K(15,"td"),S(16),U(17,"arrayToHuman"),L(),K(18,"td"),S(19),U(20,"enumToHuman"),L(),K(21,"td"),F(22,r5b,3,2,"div",51),L()());a&2&&(a=b.$implicit,b=P(3),B(2),Ag(a.name),B(2),Ag(a.customFieldId),B(2),Ag(W(7,9,a.type)),B(3),Ag(a.description),B(2),Ag(W(12,11,a.required)),B(3),I("customFieldValue",
a.typedDefaultValue),B(2),Ag(W(17,13,a.allowedValue)),B(3),Ag(W(20,15,a.fieldSignificance)),B(3),G(b.editMode?22:-1))},t5b=function(a){a&1&&Pf(0,s5b,23,17,"tr",48,Of);a&2&&(a=P(2),Qf(a.sharedFields))},u5b=function(a){a&1&&(K(0,"tfoot")(1,"tr")(2,"td",54),S(3," Custom fields in this table are sorted alphabetically. To see or modify field ordering, go to the "),K(4,"a",62),S(5,"Field Ordering"),L(),S(6," tab."),M(7,"br"),S(8," Before removing custom fields or adding/changing required state, ensure that no automation depends on them. "),
L()()())},x5b=function(a){if(a&1){var b=t();K(0,"div",49)(1,"button",63);N("click",function(){u(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=Hm(c.editableField);c.setType("TEXT");c.allowedValues=[];c.serverError=null;return v()});S(2," Add a Custom Field ");L();K(3,"button",64);
N("click",function(){u(b);var c=P(2);return v(v5b(c))});S(4," Activate a Shared Field ");L()()}a&2&&(a=P(2),B(3),I("disabled",w5b(a).length==0))},y5b=function(a){a&1&&(K(0,"div")(1,"table",47)(2,"tr")(3,"th"),S(4,"Name"),L(),K(5,"th"),S(6,"ID"),L(),K(7,"th"),S(8,"Type"),L(),K(9,"th"),S(10,"Description"),L(),K(11,"th"),S(12,"Required?"),L(),K(13,"th"),S(14,"Default Value"),L(),K(15,"th"),S(16,"Allowed Values"),L(),K(17,"th"),S(18,"Field Significance"),L(),F(19,g5b,2,0,"th"),L(),Pf(20,j5b,22,17,"tr",
48,Of),F(22,k5b,3,0,"tr"),F(23,l5b,4,0,"tr"),F(24,o5b,2,0),F(25,p5b,4,0,"tr"),F(26,t5b,2,0),F(27,u5b,9,0,"tfoot"),L(),F(28,x5b,5,1,"div",49),L());a&2&&(a=P(),B(19),G(a.editMode?19:-1),B(),Qf(a.customFields),B(2),G(a.customFields.length?-1:22),B(),G(a.inheritedCustomFields.length?23:-1),B(),G(a.inheritedCustomFields.length?24:-1),B(),G(a.sharedFields.length?25:-1),B(),G(a.sharedFields.length?26:-1),B(),G(a.customFields.length?27:-1),B(),G(a.editMode?28:-1))},z5b=function(a){if(a&1){var b=t();K(0,"button",
17);N("click",function(){u(b);var c=P().$index,d=P();return v(d.removeAtIndex.emit(c))});M(1,"mat-icon",18);L()}a&2&&(a=P().$implicit,Jf("aria-label","Delete row "+a.label))},A5b=function(a,b){if(a&1){var c=t();K(0,"div",9)(1,"div",11);M(2,"mat-icon",12);K(3,"div",3)(4,"mat-form-field",13)(5,"input",14,0);N("change",function(d){var e=u(c).$index,f=P();f.options[e].label=d.target.value;f.optionsChange.emit(f.options);return v()});L()()();K(7,"div",3)(8,"mat-form-field",13)(9,"input",15,1);N("change",
function(d){var e=u(c).$index,f=P();return v(f.valueChange(d,e))});L()()();F(11,z5b,2,1,"button",16);L()()}a&2&&(a=b.$implicit,b=P(),B(4),I("appearance","outline"),B(),yg("muted",b.disabled),I("value",a.label)("placeholder",a.label==null?"Dropdown value":"")("disabled",b.disabled),B(3),I("appearance","outline"),B(),yg("muted",b.disabled),I("value",a.value)("placeholder",a.value==null?"Average days":"")("disabled",b.disabled),B(2),G(b.disabled?-1:11))},B5b=function(a){if(a&1){var b=t();K(0,"button",
19);N("click",function(){u(b);var c=P();return v(c.addRow.emit())});S(1," Add row ");L()}},C5b=function(a){a&1&&Xf(0)},D5b=function(a){a&1&&E(0,C5b,1,0,"ng-container",5);a&2&&(P(),a=Q(7),I("ngTemplateOutlet",a))},E5b=function(a){if(a&1){var b=t();K(0,"b-numeric-config",6);Eg("valueChange",function(c){u(b);var d=P();Dg(d.numericSpecMultiplier,c)||(d.numericSpecMultiplier=c);return v(c)});L()}a&2&&(a=P(),I("disabled",a.disabled),Cg("value",a.numericSpecMultiplier))},F5b=function(){},G5b=function(a){if(a&
1){var b=t();K(0,"div",4)(1,"label",7);S(2,"Aggregation Rule");L();K(3,"a",8);M(4,"mat-icon",9);L();M(5,"br");K(6,"mat-form-field",10)(7,"mat-select",11);Eg("valueChange",function(c){u(b);var d=P();Dg(d.selectedAggregationRule,c)||(d.selectedAggregationRule=c);return v(c)});K(8,"mat-select-trigger");S(9);U(10,"aggregationRuleText");L();K(11,"mat-option",12)(12,"div",13);S(13);U(14,"aggregationRuleText");L();K(15,"div",14);S(16,"All parents and children are added to the total");L()();K(17,"mat-option",
12)(18,"div",13);S(19);U(20,"aggregationRuleText");L();K(21,"div",14);S(22,"Take the assigned estimate if larger than total of all immediate children");L()()()()()}a&2&&(a=P(),B(7),Cg("value",a.selectedAggregationRule),I("disabled",a.disabled),B(2),T(" ",W(10,7,a.selectedAggregationRule)," "),B(2),I("value",a.aggregationRules.SUM),B(2),Ag(W(14,9,a.aggregationRules.SUM)),B(4),I("value",a.aggregationRules.MAX),B(2),Ag(W(20,11,a.aggregationRules.MAX)))},H5b=function(a){if(a&1){var b=t();K(0,"b-config-grid",
15);Eg("optionsChange",function(c){u(b);var d=P();Dg(d.enumSpecOptions,c)||(d.enumSpecOptions=c);return v(c)});N("addRow",function(){u(b);var c=P();return v(c.addRow())})("removeAtIndex",function(c){u(b);P().enumSpecOptions.splice(c,1);return v()});L()}a&2&&(a=P(),Cg("options",a.enumSpecOptions),I("disabled",a.disabled||a.inherit))},I5b=function(a){a&1&&(K(0,"div",4),M(1,"b-team-warning",5),L());a&2&&(a=P(),B(),I("warningType",a)("messageOnly",!0))},J5b=function(a,b){a&1&&F(0,I5b,2,2,"div",4);a&2&&
(a=P(),G(!a.isAdmin||b!=="MISSING"&&b!=="DELETED"?-1:0))},K5b=function(a){if(a&1){var b=t();K(0,"div",0)(1,"mat-checkbox",6);N("change",function(c){u(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()});S(2," Override the inherited team ");L()()}a&2&&(a=P(),B(),I("disabled",!a.isAdmin)("checked",!a.inherit))},M5b=function(a){if(a&1){var b=t();K(0,
"a",8);N("click",function(){u(b);P(2);ur("component","navigate","to-internal-team-page");return v()});M(1,"mat-icon",9);L()}a&2&&(a=P(2),I("routerLink",L5b(a)?"/teams/"+a.model.id+"/edit":null)("target",a.anchorTarget))},N5b=function(a){a&1&&F(0,M5b,2,2,"a",7);a&2&&(a=P(),G(L5b(a)?0:-1))},O5b=function(a){if(a&1){var b=t();K(0,"a",11);N("click",function(){u(b);var c=P(2);ur("component","linkout-moma","team",Number(c.model.id));return v()});M(1,"mat-icon",9);L()}a&2&&(a=P(2),Jf("href",a.getMomaTeamLink(),
Me))},P5b=function(a){a&1&&F(0,O5b,2,1,"a",10);a&2&&(a=P(),G(L5b(a)?0:-1))},Q5b=function(a){a&1&&(K(0,"th",14),S(1," Order"),L())},R5b=function(a,b){a&1&&(K(0,"td",15),S(1),L());a&2&&(a=b.index,B(),T(" ",a+1," "))},S5b=function(a){a&1&&(K(0,"th",14),S(1," Name"),L())},T5b=function(a,b){a&1&&(K(0,"td",15),S(1),L());a&2&&(a=b.$implicit,B(),T(" ",a.name," "))},U5b=function(a){a&1&&(K(0,"th",14),S(1," Type"),L())},V5b=function(a,b){a&1&&(K(0,"td",15),S(1),U(2,"toCustomFieldTypeDisplayValue"),L());a&2&&
(a=b.$implicit,B(),T(" ",W(2,1,a.type)," "))},W5b=function(a){a&1&&(K(0,"th",14),S(1," Required"),L())},X5b=function(a,b){a&1&&(K(0,"td",15),S(1),L());a&2&&(a=b.$implicit,B(),T(" ",a.required?"Yes":"No"," "))},Y5b=function(a){a&1&&(K(0,"th",14),S(1," ID"),L())},Z5b=function(a,b){a&1&&(K(0,"td",15),S(1),L());a&2&&(a=b.$implicit,B(),T(" ",a.customFieldId," "))},$5b=function(a){a&1&&M(0,"tr",16)},a6b=function(a){a&1&&M(0,"tr",17)},b6b=function(a){a&1&&(K(0,"div",12),S(1," There are no custom fields defined on this component. "),
L())},e6b=function(a){if(a&1){var b=t();K(0,"div",13)(1,"div")(2,"button",18);N("click",function(){u(b);var c=P();return v(c6b(c))});S(3," Reorder fields ");L();K(4,"button",18);N("click",function(){u(b);var c=P();return v(d6b(c))});S(5," Reset ordering ");L()()()}a&2&&(a=P(),B(2),I("disabled",a.fields.length===0),B(2),I("disabled",a.fieldOrdering!=="CUSTOMIZED"))},f6b=function(a){a&1&&(Sf(0,"span"),S(1),Tf());a&2&&(a=P(),B(),a=a.lineNumbers.length,T(" (",a+(a==1?" TODO":" TODOs"),") "))},h6b=function(a,
b){if(a&1){var c=t();Sf(0,"li",3)(1,"a",4);eg("click",function(){u(c);var d=P(2);return v(d.trackClick("lineNumber"))});S(2);Tf()()}a&2&&(a=b.$implicit,b=P(2),B(),Rf("href",g6b(b,a),Me),B(),Ag(a))},i6b=function(a){a&1&&(Sf(0,"span"),S(1," ("),Sf(2,"ul",2),Pf(3,h6b,3,2,"li",3,Of),Tf(),S(5,") "),Tf());a&2&&(a=P(),B(3),Qf(a.lineNumbers))},j6b=function(a){a&1&&(K(0,"section",2)(1,"div",4),M(2,"img",5),K(3,"p",6),S(4," This issue has no insights "),L(),K(5,"p",7),S(6," Automated tools can provide insights with detailed information about an issue. No insights were found for this issue. "),
L()()());a&2&&(a=P(),B(2),I("src",a.ROBOT_SLEEPING,Me))},k6b=function(a){a&1&&M(0,"img",13);a&2&&(a=P(3),I("src",a.LOGO_PURPLE,Me))},l6b=function(a,b){a&1&&M(0,"b-formatted-comment-presenter",14);a&2&&I("formattedComment",b)},m6b=function(a,b){a&1&&M(0,"b-formatted-comment-presenter",14,1);a&2&&I("formattedComment",b.formattedContent)},n6b=function(a){a&1&&M(0,"b-spinner")},o6b=function(a){a&1&&(F(0,m6b,2,1,"b-formatted-comment-presenter",14),U(1,"async"),Mf(2,n6b,1,0,"b-spinner"));if(a&2){var b;
a=P().$implicit;G((b=W(1,1,a.asyncContent))?0:2,b)}},p6b=function(a){a&1&&(K(0,"div"),S(1,"No content was found for this enrichment."),L())},q6b=function(a,b){if(a&1){var c=t();K(0,"mat-expansion-panel",12,0);N("opened",function(){var e=u(c).$implicit,f=Q(1),g=P(2);return v(g.onExpand(e,f))})("closed",function(){var e=u(c).$implicit,f=P(2);f.logIssueUserEventForIssueEnrichment("EVENT_TYPE_CLOSE",e.category);var g=f.onScreenSubscriptions.get(e.category);g&&(g.unsubscribe(),f.onScreenSubscriptions.delete(e.category));
return v()});K(2,"mat-expansion-panel-header")(3,"mat-panel-title");F(4,k6b,1,1,"img",13);S(5);L()();F(6,l6b,1,1,"b-formatted-comment-presenter",14)(7,o6b,3,3)(8,p6b,2,0,"div");K(9,"mat-action-row")(10,"span",15);M(11,"b-formatted-date-time",16);L();M(12,"insights-actions",17);L()()}if(a&2){var d;a=b.$implicit;b=P(2);I("id",Gg("insight-",a.category))("expanded",!0);B(4);G(b.FIRST_PARTY_ENRICHMENTS.includes(a.category)?4:-1);B();T(" ",a.displayName," ");B();G((d=a.general==null?null:a.general.formattedContent)?
6:a.asyncContent?7:8,d);B(5);I("timestamp",a.timestamp);B();I("enrichment",a)}},s6b=function(a){if(a&1){var b=t();K(0,"button",8);N("click",function(){u(b);var c=P().accordion;c.multi&&c._openCloseAllActions.next(!0);return v()});S(1," Expand all ");L();K(2,"button",9);N("click",function(){u(b);P().accordion.closeAll();return v()});S(3," Collapse all ");L();K(4,"mat-accordion",10);Pf(5,q6b,13,8,"mat-expansion-panel",11,r6b);L()}a&2&&(P(),a=dg(0),B(5),Qf(a))},t6b=function(a){a&1&&(K(0,"div",3),M(1,
"b-spinner"),L())},u6b=function(a){a&1&&(K(0,"a",4),S(1," Create Component "),L());a&2&&(a=P(),I("href",a.createComponentPath,Me))},v6b=function(a){if(a&1){var b=t();K(0,"xap-dialog-layout",10)(1,"xap-dialog-layout-content")(2,"b-team-component-picker",11);U(3,"async");N("selectedComponentChange",function(d){u(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(zs.editComponent.makeHref(d.componentId)));return v()});
L()()()}if(a&2){a=P();B(2);var c;I("includeArchived",(c=W(3,4,a.includeArchived$))!=null?c:!1)("placeholder","Choose Component to navigate to that component")("shouldFocus",!0)("isRequired",!1)}},x6b=function(a){if(a&1){var b=t();K(0,"div",6)(1,"b-slide-toggle",12);U(2,"async");N("modelChange",function(d){u(b);var e=P();e.includeArchived$.next(d);d=e.componentTree;(d=d.focusedController?d.focusedController.selectedId?d.focusedController.selectedId:null:d.rootController.selectedId?d.rootController.selectedId:
null)&&w6b(e,d,ee(e.topLevelComponents$));return v()});L()()}if(a&2){a=P();B();var c;I("model",(c=W(2,2,a.includeArchived$))!=null?c:!1)("tooltip",a.includeArchived?"Show archived components.":"Hide archived components.")}},y6b=function(a){a&1&&(K(0,"div",8),M(1,"b-spinner",13),L())},z6b=function(a){a&1&&(K(0,"p",1),S(1),L());a&2&&(a=P(),B(),Ag(a.packageMentionSet.packageName))},A6b=function(a,b){a&1&&(K(0,"li"),M(1,"b-file-mention",2),L());a&2&&(a=b.$implicit,b=P(),B(),I("issueId",b.issueId)("packageName",
b.packageMentionSet.packageName)("filename",a.filename)("lineNumbers",a.lineNumber)("changeNumber",a.changeNumber))},B6b=function(a){a&1&&(K(0,"div",4),S(1),L());a&2&&(a=P(),B(),T(" Signed in as ",a.activeSession.getUserEmail()," "))},C6b=function(a){a&1&&(K(0,"span",3),S(1," Select at least one tracker "),L())},D6b=function(a,b){if(a&1){var c=t();K(0,"div",5)(1,"mat-checkbox",6);N("change",function(d){var e=u(c).$implicit,f=P();return v(f.trackerCheckboxValues[e.trackerId]=d.checked)});S(2);L()()}a&
2&&(a=b.$implicit,b=P(),B(),I("checked",b.trackerCheckboxValues[a.trackerId]||!1),B(),T(" ",a.name," "))},E6b=function(a){a&1&&M(0,"b-top-bar-outlet-body")},F6b=function(a){a&1&&(M(0,"b-tracker-search",1),U(1,"async"));a&2&&(a=P(),I("currentTrackerId",a.currentTracker.trackerId)("availableTrackers",W(1,2,a.availableTrackers$)))},G6b=function(a){a&1&&(K(0,"div",3),M(1,"b-spinner"),K(2,"span"),S(3,"Initializing query builder..."),L()())},H6b=function(a){a&1&&(K(0,"div",6),M(1,"mat-icon",7),K(2,"p"),
S(3," The query is too complex to show in the query builder. You can still perform the search or save the search. "),L()())},I6b=function(a){a&1&&(K(0,"div"),S(1," We cannot understand your query because it seems to be incorrect (syntactically). Make sure all parentheses are balanced and all labels have values. "),L())},J6b=function(a){a&1&&(K(0,"div",4),F(1,H6b,4,0,"div",6),F(2,I6b,2,0,"div"),L());a&2&&(a=P(),B(),G((a.advancedSearchCtrl==null?null:a.advancedSearchCtrl.getState())==="NOT_REPRESENTABLE"?
1:-1),B(),G((a.advancedSearchCtrl==null?null:a.advancedSearchCtrl.getState())==="SYNTAX_ERROR"?2:-1))},K6b=function(a){a&1&&(K(0,"div",4),S(1," We encountered a problem while retrieving the interpretation of the search query from the server. Please try again. "),L())},L6b=function(a){a&1&&M(0,"b-tracker-account-menu-hack",5);a&2&&(a=P(),I("trackerInternalBaseUrl",a.currentTracker.internalBaseUrl)("trackerExternalBaseUrl",a.currentTracker.externalBaseUrl))},M6b=function(a){a&1&&M(0,"b-user-display-name",
8);a&2&&(a=P().$implicit,I("user",a.author))},N6b=function(a){a&1&&(K(0,"span"),S(1),M(2,"span",13),L());a&2&&(a=P(2).$implicit,B(),T(" ",a.diff.oldValue," "))},O6b=function(a){a&1&&(K(0,"span")(1,"label"),S(2),L(),F(3,N6b,3,1,"span"),S(4),L());a&2&&(a=P().$implicit,B(2),T("",a.fieldName,":"),B(),G(a.diff.oldValue?3:-1),B(),T(" ",a.diff.newValue," "))},P6b=function(a,b){a&1&&(K(0,"div")(1,"label"),S(2),L(),S(3),L());a&2&&(a=b.$implicit,b=P(3).$implicit,B(2),T("-",b.fieldName,":"),B(),T(" ",a," "))},
Q6b=function(a){a&1&&Pf(0,P6b,4,2,"div",null,Of);a&2&&(a=P(2).$implicit,Qf(a.diff.removed))},R6b=function(a,b){a&1&&(K(0,"div")(1,"label"),S(2),L(),S(3),L());a&2&&(a=b.$implicit,b=P(3).$implicit,B(2),T("+",b.fieldName,":"),B(),T(" ",a," "))},S6b=function(a){a&1&&Pf(0,R6b,4,2,"div",null,Of);a&2&&(a=P(2).$implicit,Qf(a.diff.added))},T6b=function(a){a&1&&(K(0,"div"),F(1,Q6b,2,0),F(2,S6b,2,0),L());a&2&&(a=P().$implicit,B(),G(a.diff.removed?1:-1),B(),G(a.diff.added?2:-1))},U6b=function(a,b){a&1&&(K(0,
"div",12),F(1,O6b,5,3,"span"),F(2,T6b,3,2,"div"),L());a&2&&(a=b.$implicit,b=P(2),B(),G(a.diffType==b.DiffType.SINGLE_VALUE?1:-1),B(),G(a.diffType==b.DiffType.COLLECTION?2:-1))},V6b=function(a,b){a&1&&(K(0,"li",2)(1,"div",5),M(2,"b-user-image",6),L(),K(3,"div",7)(4,"h4"),F(5,M6b,1,1,"b-user-display-name",8),K(6,"span",9),M(7,"b-formatted-date-time",10),L()(),K(8,"div",11),Pf(9,U6b,3,2,"div",12,Of),L()()());a&2&&(a=b.$implicit,b=P(),B(2),I("email",b.userToDisplay(a.author)),B(3),G(a.author?5:-1),B(2),
I("timestamp",a.timestamp),B(2),Qf(a.diffs))},Mu=function(a){Oi.call(this);this.errorHandlerFn_=a},W6b=function(a){a.stack&&(a.stack=a.stack.replace(/ \[angular\]/g,""))},X6b=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"},Y6b=function(a,b){a&1&&(K(0,"mat-option",2),S(1),M(2,"br"),K(3,"span",3),S(4),L()());a&2&&(a=b.$implicit,I("value",a),B(),T(" ",a.title),B(3),Ag(a.description))},$6b=function(a,b){a&1&&Xf(0,4);a&2&&(a=b.$implicit,P(),b=Q(3),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,Z6b,a)))},a7b=function(a){a&1&&Xf(0,4);if(a&2){a=P().question;P();var b=Q(5);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,Z6b,a))}},b7b=function(a){a&1&&Xf(0,4);if(a&2){a=P().question;
P();var b=Q(7);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,Z6b,a))}},c7b=function(a){a&1&&Xf(0,4);if(a&2){a=P().question;P();var b=Q(9);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,Z6b,a))}},d7b=function(a,b){a&1&&F(0,a7b,1,4,"ng-container",4)(1,b7b,1,4,"ng-container",4)(2,c7b,1,4,"ng-container",4);if(a&2){var c;a=b.question;b=P();G((c=a.type)===b.CustomQuestionType.INPUT?0:c===b.CustomQuestionType.TEXT?1:c===b.CustomQuestionType.SELECT?2:-1)}},f7b=function(a,b){if(a&1){var c=
t();M(0,"h4",5);K(1,"mat-form-field",6)(2,"input",7);N("ngModelChange",function(d){var e=u(c).question,f=P();e.response=d;return v(e7b(f))});L()()}a&2&&(a=b.question,I("innerHtml",a.question,Le),B(2),I("ngModel",a.response),Jf("aria-label",a.question))},g7b=function(a,b){if(a&1){var c=t();M(0,"h4",5);K(1,"mat-form-field",8)(2,"textarea",7);N("ngModelChange",function(d){var e=u(c).question,f=P();e.response=d;return v(e7b(f))});S(3,"    ");L()()}a&2&&(a=b.question,I("innerHtml",a.question,Le),B(2),
I("ngModel",a.response),Jf("aria-label",a.question))},i7b=function(a,b){a&1&&(K(0,"mat-option",10),S(1),L());a&2&&(a=b.$implicit,P(2),I("value",a),B(),T(" ",h7b(a)?a.text:a," "))},j7b=function(a){a&1&&Xf(0,4);if(a&2){a=P().question;P();var b=Q(3);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,Z6b,a.response.child))}},k7b=function(a,b){if(a&1){var c=t();M(0,"h4",5);K(1,"mat-form-field",6)(2,"mat-select",9);N("valueChange",function(d){var e=u(c).question,f=P();e.response=d;return v(e7b(f))});
Pf(3,i7b,2,2,"mat-option",10,Of);L()();F(5,j7b,1,4,"ng-container",4)}a&2&&(a=b.question,P(),I("innerHtml",a.question,Le),B(),Jf("aria-label",a.question),B(),I("value",a.response),B(),Qf(a.options),B(2),G(h7b(a.response)?5:-1))},l7b=function(a){a&1&&gg(0)},n7b=function(a){a&1&&Xf(0,2);a&2&&(a=P(),I("ngTemplateOutlet",a.iconOverrides[a.state])("ngTemplateOutletContext",Mg(2,m7b,a.index,a.active,a.optional)))},o7b=function(a){a&1&&(K(0,"span",7),S(1),L());a&2&&(a=P(2),B(),Ag(a._getDefaultTextForState(a.state)))},
p7b=function(a){a&1&&(K(0,"span",8),S(1),L());a&2&&(a=P(3),B(),Ag(a._intl.completedLabel))},q7b=function(a){a&1&&(K(0,"span",8),S(1),L());a&2&&(a=P(3),B(),Ag(a._intl.editableLabel))},r7b=function(a){a&1&&(F(0,p7b,2,1,"span",8)(1,q7b,2,1,"span",8),K(2,"mat-icon",7),S(3),L());a&2&&(a=P(2),G(a.state==="done"?0:a.state==="edit"?1:-1),B(3),Ag(a._getDefaultTextForState(a.state)))},s7b=function(a){a&1&&F(0,o7b,2,1,"span",7)(1,r7b,4,2);a&2&&(a=P(),G(a.state==="number"?0:1))},t7b=function(a,b){a&1&&(K(0,"div",
4),Xf(1,9),L());a&2&&(B(),I("ngTemplateOutlet",b.template))},u7b=function(a){a&1&&(K(0,"div",4),S(1),L());a&2&&(a=P(),B(),Ag(a.label))},v7b=function(a){a&1&&(K(0,"div",5),S(1),L());a&2&&(a=P(),B(),Ag(a._intl.optionalLabel))},w7b=function(a){a&1&&(K(0,"div",6),S(1),L());a&2&&(a=P(),B(),Ag(a.errorMessage))},x7b=function(){},y7b=function(a){a&1&&(gg(0),E(1,x7b,0,0,"ng-template",0));a&2&&(a=P(),B(),I("cdkPortalOutlet",a._portal))},z7b=function(a){a&1&&gg(0)},B7b=function(a){a&1&&(K(0,"div",5),Xf(1,9)(2,
6),L());if(a&2){a=P(2);var b=Q(6);B();I("ngTemplateOutlet",a.headerPrefix());B();I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(3,A7b,a.steps))}},C7b=function(a){a&1&&Xf(0,6);if(a&2){a=P(2);var b=Q(6);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,A7b,a.steps))}},D7b=function(a,b){a&1&&(K(0,"div",10,2),Xf(2,9),L());if(a&2){a=b.$implicit;b=b.$index;var c=P(2);zg("mat-horizontal-stepper-content-"+c._getAnimationDirection(b));I("id",c._getStepContentId(b));Jf("aria-labelledby",c._getStepLabelId(b))("inert",
c.selectedIndex===b?null:"");B(2);I("ngTemplateOutlet",a.content)}},E7b=function(a){a&1&&(K(0,"div",3),F(1,B7b,3,5,"div",5)(2,C7b,1,4,"ng-container",6),K(3,"div",7),Pf(4,D7b,3,6,"div",8,Of),L()());a&2&&(a=P(),B(),G(a.headerPrefix()?1:2),B(3),Qf(a.steps))},F7b=function(a){a&1&&Xf(0,9);a&2&&(a=P(2),I("ngTemplateOutlet",a.headerPrefix()))},H7b=function(a,b){a&1&&(K(0,"div",11),Xf(1,6),K(2,"div",12,2)(4,"div",13)(5,"div",14),Xf(6,9),L()()()());if(a&2){a=b.$implicit;var c=b.$index,d=b.$index;b=b.$count;
var e=P(2),f=Q(4);B();I("ngTemplateOutlet",f)("ngTemplateOutletContext",Kg(10,G7b,a));B();yg("mat-stepper-vertical-line",d!==b-1)("mat-vertical-content-container-active",e.selectedIndex===c);Jf("inert",e.selectedIndex===c?null:"");B(2);I("id",e._getStepContentId(c));Jf("aria-labelledby",e._getStepLabelId(c));B(2);I("ngTemplateOutlet",a.content)}},I7b=function(a){a&1&&(K(0,"div",4),F(1,F7b,1,1,"ng-container",9),Pf(2,H7b,7,12,"div",11,Of),L());a&2&&(a=P(),B(),G(a.headerPrefix()?1:-1),B(),Qf(a.steps))},
J7b=function(a,b){if(a&1){var c=t();K(0,"mat-step-header",15);N("click",function(){var d=u(c).step;return v(d.select())})("keydown",function(d){u(c);var e=P();return v(e._onKeydown(d))});L()}a&2&&(a=b.step,b=P(),yg("mat-horizontal-stepper-header",b.orientation==="horizontal")("mat-vertical-stepper-header",b.orientation==="vertical"),I("tabIndex",b._getFocusIndex()===a.index()?0:-1)("id",b._getStepLabelId(a.index()))("index",a.index())("state",a.indicatorType())("label",a.stepLabel||a.label)("selected",
a.isSelected())("active",a.isNavigable())("optional",a.optional)("errorMessage",a.errorMessage)("iconOverrides",b._iconOverrides)("disableRipple",b.disableRipple||!a.isNavigable())("color",a.color||b.color),Jf("role",b.orientation==="horizontal"?"tab":"button")("aria-posinset",b.orientation==="horizontal"?a.index()+1:null)("aria-setsize",b.orientation==="horizontal"?b.steps.length:null)("aria-selected",b.orientation==="horizontal"?a.isSelected():null)("aria-current",b.orientation==="vertical"&&a.isSelected()?
"step":null)("aria-disabled",b.orientation==="vertical"&&a.isSelected()?"true":null)("aria-expanded",b.orientation==="vertical"?a.isSelected():null)("aria-controls",b._getStepContentId(a.index()))("aria-label",a.ariaLabel||null)("aria-labelledby",!a.ariaLabel&&a.ariaLabelledby?a.ariaLabelledby:null)("aria-disabled",a.isNavigable()?null:!0))},K7b=function(a){a&1&&M(0,"div",17)},L7b=function(a,b){a&1&&(Xf(0,6),F(1,K7b,1,0,"div",17));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;P(2);var d=Q(4);I("ngTemplateOutlet",
d)("ngTemplateOutletContext",Kg(3,G7b,a));B();G(c!==b-1?1:-1)}},M7b=function(a,b){a&1&&(K(0,"div",16),Pf(1,L7b,2,5,null,null,Of),L());a&2&&(a=b.steps,B(),Qf(a))},N7b=function(a){a&1&&(K(0,"li"),S(1,"I have read "),K(2,"a",57),S(3,"Chrome Security FAQ"),L(),S(4,"."),L(),K(5,"li"),S(6,"I have read "),K(7,"a",58),S(8,"Reporting Security Bugs"),L(),S(9,"."),L(),K(10,"li"),S(11,"I understand reports may be eligible for reward payments under the "),K(12,"a",59),S(13,"Chrome VRP"),L(),S(14,"."),L(),K(15,
"li"),S(16,"I understand issues are normally publicized once a fix has been widely deployed."),L())},P7b=function(a){if(a&1){var b=t();K(0,"h4",5);S(1,"Which of the following best describes the issue that you are reporting?");L();K(2,"wizard-category-select",52);Eg("categoryChange",function(c){u(b);var d=P();Dg(d.model.category,c)||(d.model.category=c);return v(c)});L();K(3,"mat-card",53)(4,"mat-card-header");S(5," Ensure quality of issue reports: ");L();K(6,"mat-card-content")(7,"mat-checkbox",54);
Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.ackIssueQuality,c)||(d.ackIssueQuality=c);return v(c)});S(8," By checking this box, I'm acknowledging that: ");K(9,"ul")(10,"li");S(11,"I have searched for ");K(12,"a",55);S(13,"existing issues");L();S(14," that already report this problem.");L();F(15,N7b,17,0);L()()()();K(16,"div",36)(17,"button",39);S(18," Next ");M(19,"mat-icon",56);L()()}a&2&&(a=P(),B(2),I("persona",a.model.persona),Cg("category",a.model.category),B(5),Cg("ngModel",a.ackIssueQuality),
B(5),I("href",a.existingIssuesLink,Me),B(3),G(a.model.persona===a.Persona.VULN_REPORTER?15:-1),B(2),I("disabled",!O7b(a,0)))},R7b=function(a){a&1&&(K(0,"div")(1,"h3"),S(2,"Prefer to file an issue manually?"),L(),K(3,"p"),S(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. "),L(),K(5,"p"),S(6," However, if you are a Chromium contributor and none of the other options apply, you may use the regular issue entry "),
K(7,"a",55),S(8,"form"),L(),S(9,". "),L()());a&2&&(a=P(),B(7),I("href",a.paths.createIssue(Jg(1,Q7b)),Me))},S7b=function(a){a&1&&(K(0,"mat-error"),S(1," Summary is required "),L())},T7b=function(a){a&1&&(K(0,"mat-error"),S(1," Steps to reproduce are required "),L())},U7b=function(a){a&1&&(K(0,"mat-error"),S(1," Issue description is required "),L())},V7b=function(a){if(a&1){var b=t();K(0,"wizard-custom-questions",60);N("responses",function(c){u(b);var d=P();return v(d.model.customQuestionResponses=
c)});L()}a&2&&(a=P(),I("category",a.model.category.value))},W7b=function(a){if(a&1){var b=t();K(0,"div",47)(1,"b-recaptcha",61);N("onUpdate",function(c){u(b);var d=P();return v(d.recaptchaResponse=c)});L()()}},X7b=function(){},Y7b=function(){},Z7b=function(){},$7b=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},b8b=function(a){return a.length?"# Custom Questions\n"+
a8b(a).map(function(b){var c;return"#### "+((c=b.answerPrefix)!=null?c:b.question)+"\n"+b.response}).join("\n\n"):""},a8b=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,h7b(c.response)?(b.push({type:c.type,question:c.question,response:c.response.text}),b.push.apply(b,n(a8b([c.response.child])))):b.push(c);return b},c8b=function(a){a&1&&(K(0,"a",8),S(1," Create Component "),L())},d8b=function(a){a&1&&(K(0,"p",16),S(1," None found. "),K(2,"a",18),S(3,"Learn More"),L()())},
e8b=function(a){a&1&&(Vf(0),M(1,"b-component-path-card",28,1),Wf());if(a&2){a=Q(2);var b=P().$implicit;B();I("onedevIsHovercardReady",a.init)("componentId",b.componentId)}},f8b=function(a,b){a&1&&(K(0,"li")(1,"a",19)(2,"div",20)(3,"span",21),S(4),M(5,"b-component-access-level-indicator",22)(6,"b-tracker-chip-smart",23),L(),K(7,"p",24),S(8),L()(),K(9,"div",25)(10,"a",26),S(11," Edit "),L(),K(12,"a",26),S(13," Create Issue "),L()()(),K(14,"onedev-hovercard",null,0),E(16,e8b,3,2,"ng-container",27),L()());
if(a&2){a=b.$implicit;b=Q(15);var c=P(2);B();I("routerLinkObj",c.viewIssues(a.componentId));B();I("onedevHovercardTrigger",b);B(2);T(" ",a.name||a.componentId," ");B();I("accessLevel",a.accessLimit==null?null:a.accessLimit.accessLevel)("labelOnlyMode",!0);B();I("trackerId",a.trackerId)("showHovercard",!1);B(2);Ag(a.description);B(2);I("routerLinkObj",c.componentSettings(a.componentId));B(2);I("routerLinkObj",c.createIssue(a.componentId))}},g8b=function(a,b){a&1&&(F(0,d8b,4,0,"p",16),K(1,"ol",17),
Pf(2,f8b,17,10,"li",null,Of),L());a&2&&(G(b.length===0?0:-1),B(2),Qf(b))},i8b=function(a){a&1&&(K(0,"a",23),S(1," Learn more "),L());a&2&&(P(),I("href",h8b(),Me))},j8b=function(a){a&1&&(S(0),U(1,"async"));a&2&&(a=P(2),T(" ",W(1,1,a.suggestedTitle$)," "))},k8b=function(a){a&1&&M(0,"b-spinner")},l8b=function(a,b){if(a&1){var c=t();K(0,"button",17);N("click",function(){var d=u(c).$implicit;P();var e=Q(19),f=P();f.llmSuggestTitleService.generatedTitle.next(null);f.analytics.trackEvent("llm","reject",
"title-"+String(d));fs(f.butterBar,"Thanks for the feedback!",3E3);var g;(g=e.trigger)==null||g.close();return v()});K(1,"span");S(2);L()()}a&2&&(a=b.$implicit,b=P(2),B(2),Ag(b.REJECT_REASON_TO_DISPLAY.get(a)))},n8b=function(a){if(a&1){var b=t();K(0,"div",1)(1,"div",2)(2,"div",3)(3,"span",4);S(4,"Suggested title");L();K(5,"div",5)(6,"button",6);N("click",function(){u(b);P().llmSuggestTitleService.suggestTitleRequested.next();return v()});M(7,"mat-icon",7);L();K(8,"button",8);N("click",function(){u(b);
var c=P();return v(c.close())});M(9,"mat-icon",9);L()()();K(10,"div",10);F(11,j8b,2,3);U(12,"async");Mf(13,k8b,1,0,"b-spinner");L();K(14,"div",11)(15,"button",12);U(16,"async");N("click",function(){u(b);var c=P();return v(m8b(c))});S(17," Accept ");L();K(18,"split-button",13,0);U(20,"async");K(21,"button",14);U(22,"async");N("click",function(){u(b);var c=P();c.llmSuggestTitleService.generatedTitle.next(null);c.analytics.trackEvent("llm","reject","title");return v()});S(23," Reject ");L();K(24,"div",
15);Pf(25,l8b,3,1,"button",16,Of);L()()()()()}a&2&&(a=P(),B(11),G(W(12,5,a.isGeneratingTitle$)?13:11),B(4),I("disabled",W(16,7,a.isGeneratingTitle$)),B(3),I("size","small")("disabled",!!W(20,9,a.isGeneratingTitle$)),B(3),I("disabled",W(22,11,a.isGeneratingTitle$)),B(4),Qf(a.suggestedTitleRejectionReasons))},o8b=function(a){a&1&&(K(0,"a",3),M(1,"mat-icon",5),L())},p8b=function(a){a&1&&M(0,"b-spinner")},q8b=function(a,b){a&1&&M(0,"b-issues-table",4);a&2&&(a=P(),I("issueIds",b)("tableColumns",a.tableColumns)("options",
a.tableOptions))},r8b=function(a){var b=a.similarIssues;var c=a.scores;return b.filter(function(d,e){return c[e]>=.65})},s8b=function(a){a&1&&Xf(0)},u8b=function(a){a&1&&(Vf(0),E(1,s8b,1,0,"ng-container",9),Wf());a&2&&(a=P(),B(),I("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Kg(2,t8b,a.value)))},v8b=function(a){a&1&&S(0);a&2&&(a=P(),Ag(a.value||"--"))},w8b=function(a){a&1&&(yd(),K(0,"svg",10),M(1,"path",11),L());a&2&&(a=P(),yg("centered",a.centerEditIcon))},x8b=function(a){a&1&&M(0,
"textarea",15);a&2&&(a=P(3),I("formControl",a.editingValue)("required",a.required())("cdkAutosizeMaxRows",a.multilineMaxLines),Jf("aria-labelledby",a.labelledById))},y8b=function(a){a&1&&M(0,"input",16);a&2&&(a=P(3),I("formControl",a.editingValue),Jf("aria-labelledby",a.labelledById))},z8b=function(a){a&1&&(Vf(0),K(1,"div",13),E(2,x8b,1,4,"textarea",14)(3,y8b,1,2,"ng-template",null,4,Og),L(),Wf());if(a&2){a=Q(4);var b=P(2);B(2);I("ngIf",b.allowMultipleLines)("ngIfElse",a)}},A8b=function(a){a&1&&Xf(0)},
C8b=function(a){a&1&&(Vf(0),E(1,A8b,1,0,"ng-container",9),Wf());a&2&&(a=P(2),B(),I("ngTemplateOutlet",a.editorTemplate)("ngTemplateOutletContext",Kg(2,B8b,a.editingValue)))},D8b=function(a){a&1&&E(0,z8b,5,2,"ng-container",12)(1,C8b,2,4,"ng-container",12);a&2&&(a=P(),I("ngIf",!a.editorTemplate),B(),I("ngIf",a.editorTemplate))},E8b=function(a){if(a&1){var b=t();K(0,"b-hotlist-picker",28);N("onApply",function(c){u(b);var d=P();return v(d.handleHotlistPickerSave(c))})("onLoad",function(c){u(b);var d=
P();return v(d.loadHotlist(c))})("onCreate",function(c){u(b);var d=P();return v(d.createHotlist(c))});L()}a&2&&(a=P(),I("selectedHotlistIds",a.selectedHotlistIds)("choices",a.hotlists))},F8b=function(a,b){a&1&&(K(0,"a",13),S(1,"View recent issues"),L());a&2&&(a=P(),I("routerLinkObj",a.recentIssuesInComponent(b)))},J8b=function(a){a&1&&(K(0,"div",29),M(1,"b-icon",30),K(2,"span"),S(3),L(),K(4,"a",31),S(5,"View access settings"),L()());a&2&&(a=P(),yg("partner",G8b(a))("public",H8b(a)),B(),I("name","alert")("size",
"small"),B(2),T("",I8b(a),"\u00a0"),B(),I("href",a.selectedComponent?zs.editComponentAccess.makeHref(a.selectedComponent.componentId):"",Me))},M8b=function(a){a&1&&(K(0,"div",32),S(1),L());a&2&&(a=P(2),B(),T(" Error: The following required field(s) have not been filled: ",K8b(a).concat(L8b(a)).join(", ")," "))},N8b=function(a){a&1&&(K(0,"li"),S(1),L());if(a&2){a=P(3);B();var b=[];a.isBlockedByIssueIdValid||b.push('"Blocked by"');a.isBlockingIssueIdValid||b.push('"Blocking"');a.isParentIssueIdsValid||
b.push('"Parents"');Ag(b?b.join(" & ")+" must be"+((b.length<=1?" a":"")+" comma separated list")+((b.length>1?"s":"")+" of issue IDs"):"")}},O8b=function(a){a&1&&(K(0,"li"),S(1),L());a&2&&(a=P(3),B(),T(" Collaborators: you cannot add ",a.invalidCollaboratorsInput.join(", ")," "))},P8b=function(a){a&1&&(K(0,"div",32),S(1," Error: The following field(s) have invalid values: "),K(2,"ul"),F(3,N8b,2,1,"li"),F(4,O8b,2,1,"li"),L()());a&2&&(a=P(2),B(3),G(a.isBlockedByIssueIdValid&&a.isBlockingIssueIdValid&&
a.isParentIssueIdsValid?-1:3),B(),G(a.isCollaboratorsValid?-1:4))},Q8b=function(a){a&1&&(K(0,"div",32),S(1," Error: There is at least one upload ongoing. Please cancel or wait for it to be finished. "),L())},S8b=function(a){a&1&&(K(0,"div",18),F(1,M8b,2,1,"div",32),F(2,P8b,5,2,"div",32),F(3,Q8b,2,0,"div",32),L());a&2&&(a=P(),B(),G(K8b(a).length!==0||L8b(a).length!==0?1:-1),B(),G(a.isBlockedByIssueIdValid&&a.isBlockingIssueIdValid&&a.isParentIssueIdsValid&&a.isCollaboratorsValid?-1:2),B(),G(R8b(a.comment)?
3:-1))},T8b=function(a,b){if(a&1){var c=t();K(0,"div",33)(1,"b-hotlist-chip",34);N("removeHotlist",function(){var d=u(c).$implicit,e=P(2);return v(e.removeHotlist(d.hotlistId))});L()()}a&2&&(a=b.$implicit,B(),I("hotlist",a))},U8b=function(a){a&1&&(K(0,"div",19),Pf(1,T8b,2,1,"div",33,Of),L());a&2&&(a=P(),B(),Qf(a.selectedHotlists))},V8b=function(a,b){if(a&1){var c=t();K(0,"button",40);N("click",function(){var d=u(c).$implicit;P(2).selectedTemplate=d;return v()});S(1);L()}a&2&&(a=b.$implicit,B(),Ag(a.name))},
W8b=function(a){if(a&1){var b=t();K(0,"button",40);N("click",function(){u(b);var c=P(2);c.selectedTemplate=c.availableExistingIssueTemplate;return v()});S(1);L()}a&2&&(a=P(2),B(),Ag(a.availableExistingIssueTemplate.name))},X8b=function(a){a&1&&(K(0,"div",26)(1,"div",22)(2,"label",35),S(3,"Template"),L()(),K(4,"button",36),S(5),M(6,"mat-icon",37),L(),K(7,"mat-menu",38,2),Pf(9,V8b,2,1,"button",39,Of),F(11,W8b,2,1,"button",39),L()());if(a&2){a=Q(8);var b=P();B(4);I("matMenuTriggerFor",a);B();var c;T("",
(c=b.selectedTemplate==null?null:b.selectedTemplate.name)!=null?c:""," ");B(2);I("overlapTrigger",!0);B(2);Qf(b.availablePredefinedTemplates);B(2);G(b.availableExistingIssueTemplate?11:-1)}},Y8b=function(a){a&1&&(K(0,"div",27)(1,"div",32),S(2," You do not have permission to create issues in this component. "),L()())},Z8b=function(a){a&1&&M(0,"llm-suggest-title-button",44);a&2&&(a=P(2),I("description",a.comment))},a9b=function(a){if(a&1){var b=t();K(0,"llm-suggest-title-preview",63);N("suggestionAccepted",
function(c){u(b);var d=P(2);d.setTitle(c);return v($8b(d))});L()}},b9b=function(a){a&1&&(K(0,"p",45),S(1),K(2,"a",64),S(3," Learn more "),L()());a&2&&(a=P(2),B(),T(" Your title contains restricted words: ",Ws(a.titleBannedWordsChecker),". Review your title before posting. "))},c9b=function(a,b){if(a&1){var c=t();K(0,"button",67);N("click",function(){var d=u(c).$implicit,e=P(3);return v(e.setPriority(d.value))});S(1);L()}a&2&&(a=b.$implicit,B(),Ag(a.displayText))},d9b=function(a){if(a&1){var b=t();
K(0,"div",26)(1,"div",22)(2,"label",65);S(3,"Priority");L()();K(4,"button",66);S(5);M(6,"mat-icon",37);L();K(7,"mat-menu",38,3)(9,"button",67);N("click",function(){u(b);var d=P(2);return v(d.setPriority())});S(10,"--");L();Pf(11,c9b,2,1,"button",68,Of);L()()}if(a&2){a=Q(8);var c=P(2);B(4);I("matMenuTriggerFor",a);Jf("aria-label","Priority, required"+(c.issue.priority?", "+c.issue.priority:""));B();T("",c.issue.priority?c.issue.priority:"--"," ");B(2);I("overlapTrigger",!0);B(4);Qf(c.priorityChoices)}},
e9b=function(a){a&1&&M(0,"mat-divider")},f9b=function(a){a&1&&M(0,"mat-icon",71);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},g9b=function(a,b){if(a&1){var c=t();F(0,e9b,1,0,"mat-divider");K(1,"button",70);N("click",function(){var e=u(c).$implicit,f=P(3);return v(f.setIssueType(e.value))});F(2,f9b,1,1,"mat-icon",71);S(3);L()}if(a&2){a=b.$implicit;b=b.$index;var d=P(3);G(b>0&&d.issueTypeChoices[b].group!=d.issueTypeChoices[b-1].group?0:-1);B();I("matTooltip",a.altText||"");B();G(a.icon?2:-1);B();T(" ",
a.displayText," ")}},h9b=function(a){if(a&1){var b=t();K(0,"div",26)(1,"div",22)(2,"label",69);S(3,"Type");L()();K(4,"button",66);U(5,"enumToHuman");S(6);U(7,"enumToHuman");M(8,"mat-icon",37);L();K(9,"mat-menu",38,4)(11,"button",67);N("click",function(){u(b);var d=P(2);return v(d.setIssueType())});S(12,"--");L();Pf(13,g9b,4,4,null,null,Of);L()()}if(a&2){a=Q(10);var c=P(2);B(4);I("matMenuTriggerFor",a);Jf("aria-label","Type, required"+(c.issue.type?W(5,4,", "+c.issue.type):""));B(2);T("",W(7,6,c.issue.type||
"--")," ");B(3);I("overlapTrigger",!0);B(4);Qf(c.issueTypeChoices)}},i9b=function(a){if(a&1){var b=t();K(0,"div",46)(1,"div",22)(2,"label",72);S(3,"Assignee");L()();K(4,"div",73)(5,"b-peoplekit-single",74);N("emailChange",function(d){u(b);var e=P(2);return v(e.handleAutocompleteSelection(d,"assignee"))});L()()()}if(a&2){a=P(2);B(5);var c;I("email",(c=a.assigneeText)!=null?c:"")}},j9b=function(a){a&1&&(K(0,"mat-error"),S(1," Collaborators only accepts individual users. "),L())},k9b=function(a){if(a&
1){var b=t();K(0,"div",47)(1,"div",22)(2,"label",75);S(3,"Collaborators");L();M(4,"mat-icon",76);L();K(5,"div",73)(6,"b-peoplekit-multi",77,5);Eg("valueChange",function(c){u(b);var d=P(2);Dg(d.collaboratorsText,c)||(d.collaboratorsText=c);return v(c)});L()();F(8,j9b,2,0,"mat-error");L()}a&2&&(a=P(2),B(6),yg("invalid",!a.isCollaboratorsValid),I("ariaLabel","Addition to Collaborators"),Cg("value",a.collaboratorsText),B(2),G(!a.isCollaboratorsValid&&a.submitRequested?8:-1))},l9b=function(a){if(a&1){var b=
t();K(0,"div",48)(1,"div",22)(2,"label",78);S(3,"CC");L()();K(4,"div",73)(5,"b-peoplekit-multi",79,5);Eg("valueChange",function(c){u(b);var d=P(2);Dg(d.ccsText,c)||(d.ccsText=c);return v(c)});L()()()}a&2&&(a=P(2),B(5),I("ariaLabel","Addition to CCs"),Cg("value",a.ccsText))},m9b=function(a){a&1&&(K(0,"p",52),S(1),K(2,"a",64),S(3," Learn more "),L()());a&2&&(a=P(2),B(),T(" Your description contains restricted words: ",Ws(a.descriptionBannedWordsChecker),". Review your description before posting. "))},
n9b=function(a){a&1&&Xf(0)},o9b=function(a){a&1&&(K(0,"div",21)(1,"div",22)(2,"label",82),S(3," Collaborator Groups "),L(),M(4,"mat-icon",83),L(),E(5,n9b,1,0,"ng-container",84),L());if(a&2){a=P(3);var b=Q(30);B(4);I("matTooltip",Fg(a.COLLABORATOR_GROUPS_TOOLTIP));B();I("ngTemplateOutlet",b)}},p9b=function(a){if(a&1){var b=t();K(0,"div",54)(1,"div",21)(2,"div",22)(3,"label",80);S(4," Issue access level ");L()();K(5,"b-issue-access-limits-dropdown",81);N("updatedAccessLimitLevel",function(c){u(b);var d=
P(2);return v(d.onAccessLimitLevelSelected(c))});L()();F(6,o9b,6,3,"div",21);L()}a&2&&(a=P(2),B(5),I("disabled",!1)("implicitAccessEnabled",a.componentHasExpandedAccessEnabled)("defaultAccessLimitLevel",a.selectedAccessLimitLevel),B(),G(a.trackerCollaboratorGroups.length>0?6:-1))},q9b=function(a,b){if(a&1){var c=t();K(0,"button",67);N("click",function(){var d=u(c).$implicit,e=P(3);return v(e.issue.severity=e.toIssueSeverity(d.value))});S(1);L()}a&2&&(a=b.$implicit,B(),Ag(a.displayText))},s9b=function(a){if(a&
1){var b=t();K(0,"div",108)(1,"div",22)(2,"label",109);S(3," Staffing ");L()();K(4,"button",110);U(5,"staffingSummary");N("click",function(){u(b);var d=P(3);return v(d.editStaffing())});K(6,"span",111);S(7);U(8,"staffingSummary");L();M(9,"mat-icon",112);L()();M(10,"div",55)}if(a&2){a=P(3);B(4);var c;Jf("aria-label","Staffing: "+W(5,2,(c=a.issue.staffing==null?null:a.issue.staffing.plannedAllocations)!=null?c:Jg(6,r9b)));B(3);T(" ",W(8,4,a.issue.staffing==null?null:a.issue.staffing.plannedAllocations),
" ")}},t9b=function(a){a&1&&(K(0,"span"),S(1,"*"),L())},u9b=function(a){a&1&&(K(0,"span"),S(1,"*"),L())},v9b=function(a){a&1&&(K(0,"span"),S(1,"*"),L())},x9b=function(a){if(a&1){var b=t();K(0,"div",92)(1,"div",22)(2,"label",113);S(3," Parents ");F(4,v9b,2,0,"span");L()();K(5,"input",114);N("ngModelChange",function(c){u(b);var d=P(3);d.parentIssueIds=w9b(d,c).map(Edb);d.isParentIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(Nu(d.parentIssueIds));return v()});L()()}a&2&&(a=P(3),B(4),G(a.isParentIssueIdsValid?
-1:4),B(),I("ngModel",a.joinStringArray(a.parentIssueIds)))},y9b=function(a){a&1&&(K(0,"span"),S(1,"*"),L())},z9b=function(a){if(a&1){var b=t();K(0,"div",92)(1,"div",22)(2,"label",115);S(3," Children ");F(4,y9b,2,0,"span");L()();K(5,"input",116);N("ngModelChange",function(c){u(b);var d=P(3);d.childrenIssueIds=w9b(d,c).map(Edb);d.isChildIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(Nu(d.childrenIssueIds));return v()});L()()}a&2&&(a=P(3),B(4),G(a.isChildIssueIdsValid?-1:4),B(),I("ngModel",a.joinStringArray(a.childrenIssueIds)))},
A9b=function(a){if(a&1){var b=t();K(0,"div",92)(1,"div",22)(2,"label",80);S(3," Issue access level ");L()();K(4,"b-issue-access-limits-dropdown",117);N("updatedAccessLimitLevel",function(c){u(b);var d=P(3);return v(d.onAccessLimitLevelSelected(c))});L()()}a&2&&(a=P(3),B(4),I("disabled",!1)("defaultAccessLimitLevel",a.selectedAccessLimitLevel)("implicitAccessEnabled",a.componentHasExpandedAccessEnabled))},B9b=function(a){a&1&&Xf(0)},C9b=function(a){a&1&&(K(0,"div",21)(1,"div",22)(2,"label",82),S(3,
" Collaborator Groups "),L(),M(4,"mat-icon",83),L(),E(5,B9b,1,0,"ng-container",84),L());if(a&2){a=P(3);var b=Q(30);B(4);I("matTooltip",Fg(a.COLLABORATOR_GROUPS_TOOLTIP));B();I("ngTemplateOutlet",b)}},D9b=function(a){if(a&1){var b=t();K(0,"onedev-text-field",122);N("valueChange",function(d){u(b);var e=P(2).$implicit,f=P(3);return v(f.setCustomFieldValue(e,d))});L()}if(a&2){a=P(2).$implicit;var c=P(3);I("id",Gg("bv2-custom-field-",a.customFieldId))("value",a.textValue)("required",c.isCustomFieldRequired(a))("labelledById",
"bv2-custom-field-"+a.customFieldId+"-label")}},E9b=function(a){if(a&1){var b=t();K(0,"onedev-numeric-field",123);N("valueChange",function(d){u(b);var e=P(2).$implicit,f=P(3);return v(f.setCustomFieldValue(e,d))});L()}if(a&2){a=P(2).$implicit;var c=P(3);I("id",Gg("bv2-custom-field-",a.customFieldId))("value",a.numericValue)("required",c.isCustomFieldRequired(a));Jf("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},F9b=function(a){if(a&1){var b=t();K(0,"div")(1,"bv2-input-date-picker",
124);N("boundValueChange",function(d){u(b);var e=P(2).$implicit,f=P(3);return v(f.setCustomFieldValue(e,d))});L()()}if(a&2){a=P(2).$implicit;var c=P(3);B();I("bv2AriaLabelledby",Fg("bv2-custom-field-"+a.customFieldId+"-label"))("boundValue",a.dateValue)("isRequired",c.isCustomFieldRequired(a))("bv2Id","bv2-custom-field-"+a.customFieldId)}},G9b=function(a){if(a&1){var b=t();K(0,"onedev-single-select",125);N("valueChange",function(d){u(b);var e=P(2).$implicit,f=P(3);return v(f.setCustomFieldValue(e,
d))});L()}if(a&2){a=P(2).$implicit;var c=P(3);I("value",a.enumValue)("options",c.getCustomFieldAllowedValues(a))("includeEmptyOption",!0)("labelledById","bv2-custom-field-"+a.customFieldId+"-label")}},H9b=function(a,b){a&1&&(K(0,"div"),F(1,D9b,1,5,"onedev-text-field",119),F(2,E9b,1,5,"onedev-numeric-field",120),F(3,F9b,2,5,"div"),F(4,G9b,1,4,"onedev-single-select",121),L());a&2&&(a=P(4),B(),G(b===a.FieldType.TEXT?1:-1),B(),G(b===a.FieldType.NUMERIC?2:-1),B(),G(b===a.FieldType.DATE?3:-1),B(),G(b===
a.FieldType.ENUM?4:-1))},I9b=function(a,b){if(a&1){var c=t();K(0,"div")(1,"b-list-field",126);N("valuesChange",function(e){u(c);var f=P().$implicit,g=P(3);return v(g.setCustomFieldValue(f,e.values))});L()()}if(a&2){a=P().$implicit;var d=P(3);B();I("defaultLineCount",2)("type",b)("values",d.getListFieldValues(a))("enumChoices",d.customFieldAllowedValuesMap[a.customFieldId]||null)("truncate",!0)("isRequired",d.isCustomFieldRequired(a));Jf("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},
J9b=function(a,b){a&1&&(K(0,"div",92)(1,"div",22)(2,"label",118),S(3),L()(),F(4,H9b,5,4,"div"),F(5,I9b,2,7,"div"),L());if(a&2){var c,d;a=b.$implicit;b=P(3);B(2);yg("required",b.isCustomFieldRequired(a));var e=I("id",Gg("bv2-custom-field-",a.customFieldId,"-label")),f=b.customFieldMap[a.customFieldId];e("matTooltip",Fg((f&&f.description?f.description:"Custom Field")+" [ID: "+a.customFieldId+"]"));f=(e=b.customFieldMap[a.customFieldId])?e.name:"";e&&b.canEditIssuesInComponent&&b.customFieldMap[a.customFieldId].required&&
(f+=", required field");Jf("aria-label",f);B();T(" ",b.getCustomFieldName(a)," ");B();G((c=b.getSingleEditFieldType(b.customFieldMap[a.customFieldId]))?4:-1,c);B();G((d=b.getListFieldType(b.customFieldMap[a.customFieldId]))?5:-1,d)}},K9b=function(a){if(a&1){var b=t();K(0,"mat-expansion-panel",57)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",85);S(4,"Advanced fields (Required fields marked with");K(5,"span",86);S(6,"*");L();S(7,")");L()()();K(8,"div",87)(9,"div",88)(10,"div",22)(11,
"label",89);S(12," Severity ");L()();K(13,"button",90);S(14);M(15,"b-icon",91);L();K(16,"mat-menu",38,6);Pf(18,q9b,2,1,"button",68,Of);L()();K(20,"div",92)(21,"div",22)(22,"label",93);S(23," Found in ");L()();K(24,"input",94);N("ngModelChange",function(f){u(b);var g=P(2);return v(g.issue.foundInVersion=g.parseStringArray(f))});L()();K(25,"div",95)(26,"div",22)(27,"label",96);S(28," In prod ");L()();K(29,"mat-slide-toggle",97);Eg("ngModelChange",function(f){u(b);var g=P(2);Dg(g.issue.inProd,f)||(g.issue.inProd=
f);return v(f)});L()();M(30,"div",55);F(31,s9b,11,7);K(32,"div",92)(33,"div",22)(34,"label",98);S(35," Reporter ");L()();K(36,"b-peoplekit-single",99);N("emailChange",function(f){u(b);var g=P(2);return v(g.handleAutocompleteSelection(f,"reporter"))});L()();K(37,"div",92)(38,"div",22)(39,"label",100);S(40," Verifier ");L()();K(41,"b-peoplekit-single",101);N("emailChange",function(f){u(b);var g=P(2);return v(g.handleAutocompleteSelection(f,"verifier"))});L()();K(42,"div",92)(43,"div",22)(44,"label",
102);S(45," Targeted to ");L()();K(46,"input",103);N("ngModelChange",function(f){u(b);var g=P(2);return v(g.issue.targetedToVersion=g.parseStringArray(f))});L()();M(47,"div",55);K(48,"div",92)(49,"div",22)(50,"label",104);S(51," Blocked by ");F(52,t9b,2,0,"span");L()();K(53,"input",105);N("ngModelChange",function(f){u(b);var g=P(2);g.issue.blockedByIssueId=w9b(g,f);g.isBlockedByIssueIdValid=g.ISSUE_ID_LIST_PATTERN.test(Nu(g.issue.blockedByIssueId));return v()});L()();K(54,"div",92)(55,"div",22)(56,
"label",106);S(57," Blocking ");F(58,u9b,2,0,"span");L()();K(59,"input",107);N("ngModelChange",function(f){u(b);var g=P(2);g.issue.blockingIssueId=w9b(g,f);g.isBlockingIssueIdValid=g.ISSUE_ID_LIST_PATTERN.test(Nu(g.issue.blockingIssueId));return v()});L()();F(60,x9b,6,2,"div",92);F(61,z9b,6,2,"div",92);M(62,"div",55);F(63,A9b,5,3,"div",92);F(64,C9b,6,3,"div",21);M(65,"div",55);Pf(66,J9b,6,10,"div",92,Of);L()()}if(a&2){a=Q(17);var c=P(2);B(13);I("matMenuTriggerFor",a);Jf("aria-label","Severity"+(c.issue.severity?
", "+c.issue.severity:""));B();Ag(c.issue.severity);B(2);I("overlapTrigger",!0);B(2);Qf(c.severityChoices);B(6);I("ngModel",c.joinStringArray(c.originalIssueCopy.foundInVersion));B(5);Cg("ngModel",c.issue.inProd);B(2);G(c.sessionIsExternal?-1:31);B(5);var d;I("email",(d=c.reporterText)!=null?d:"");B(5);var e;I("email",(e=c.verifierText)!=null?e:"");B(5);I("ngModel",c.joinStringArray(c.originalIssueCopy.targetedToVersion));B(6);G(c.isBlockedByIssueIdValid?-1:52);B();I("ngModel",c.joinStringArray(c.issue.blockedByIssueId));
B(5);G(c.isBlockingIssueIdValid?-1:58);B();I("ngModel",c.joinStringArray(c.issue.blockingIssueId));B();G(c.sessionIsExternal?-1:60);B();G(c.sessionIsExternal?-1:61);B(2);G(st(c.selectedComponent)?-1:63);B();G(c.trackerCollaboratorGroups.length>0&&!st(c.selectedComponent)?64:-1);B(2);Qf(c.issue.customField)}},L9b=function(a,b){a&1&&M(0,"similar-issues",127);a&2&&(a=P(3),I("context",b)("componentId",a.issue.componentId))},M9b=function(a){a&1&&(F(0,L9b,1,2,"similar-issues",127),U(1,"async"));if(a&2){var b;
a=P(2);G((b=W(1,1,a.similarIssuesSearchString$))?0:-1,b)}},N9b=function(a){a&1&&(K(0,"div",29),M(1,"b-icon",30),K(2,"span"),S(3),L(),K(4,"a",31),S(5,"View access settings"),L()());a&2&&(a=P(2),yg("partner",G8b(a))("public",H8b(a)),B(),I("name","alert")("size","small"),B(2),T("",I8b(a),"\u00a0"),B(),I("href",a.selectedComponent?zs.editComponentAccess.makeHref(a.selectedComponent.componentId):"",Me))},O9b=function(a){if(a&1){var b=t();K(0,"div",58)(1,"b-recaptcha",128);N("onUpdate",function(c){u(b);
var d=P(2);return v(d.recaptchaResponse=c)});L()()}},R9b=function(a){if(a&1){var b=t();K(0,"div")(1,"div",20)(2,"div",21)(3,"div",22)(4,"label",41);S(5,"Title");L()();K(6,"div",42)(7,"input",43);U(8,"async");N("ngModelChange",function(e){u(b);var f=P();return v(f.setTitle(e))})("blur",function(){u(b);var e=P();return v($8b(e))});L();F(9,Z8b,1,1,"llm-suggest-title-button",44);L();F(10,a9b,1,0,"llm-suggest-title-preview");F(11,b9b,4,1,"p",45);U(12,"async");L();F(13,d9b,13,4,"div",26);F(14,h9b,15,8,
"div",26);L();Vf(15);K(16,"div",20);F(17,i9b,6,1,"div",46);F(18,k9b,9,5,"div",47);L();K(19,"div",20);F(20,l9b,7,2,"div",48);L();Wf();K(21,"div",49)(22,"div",20)(23,"div",21)(24,"div",22)(25,"label",50);S(26,"Description");L()();K(27,"b-comment-box",51);U(28,"async");Eg("commentChange",function(e){u(b);var f=P();Dg(f.comment,e)||(f.comment=e);return v(e)});N("onChange",function(){u(b);var e=P();return v(e.saveCommentDraft())})("onSubmit",function(e){u(b);var f=P();return v(P9b(f,e,!e.shiftKey))})("onRestrict",
function(){u(b);var e=P();return v(e.showNewContentJudgementDialog())});F(29,m9b,4,1,"p",52);U(30,"async");K(31,"b-markdown-toggle",53);N("change",function(e){u(b);var f=P();return v(f.comment.formattingMode=e)});L()()()();F(32,p9b,7,4,"div",54);M(33,"div",55);K(34,"div",56);F(35,K9b,68,18,"mat-expansion-panel",57);L();F(36,M9b,2,3);F(37,N9b,6,8,"div",17);F(38,O9b,2,0,"div",58);K(39,"div",59)(40,"b-button",60);U(41,"async");U(42,"async");N("onAction",function(e){u(b);var f=P();return v(P9b(f,e,!0))});
S(43);U(44,"async");U(45,"async");L();K(46,"b-button",61);U(47,"async");U(48,"async");N("onAction",function(e){u(b);var f=P();return v(P9b(f,e,!1))});S(49);U(50,"async");U(51,"async");L();K(52,"b-button",62);N("onAction",function(){u(b);var e=P();return v(e.discard())});S(53," Discard ");L()()()()}if(a&2){a=P();B(7);var c;yg("invalid",(c=W(8,39,a.titleBannedWordsChecker.showWarning$))!=null?c:!1);I("ngModel",a.issue.title)("bFocus",a.newIssueStarted);B(2);G(a.enableSuggestTitle?9:-1);B();G(a.enableSuggestTitle?
10:-1);B();G(W(12,41,a.titleBannedWordsChecker.showWarning$)?11:-1);B(2);G(a.canEditIssuesInComponent?13:-1);B();G(a.canEditIssuesInComponent?14:-1);B(3);G(a.canEditIssuesInComponent?17:-1);B();G(a.canEditIssuesInComponent?18:-1);B(2);G(a.canEditIssuesInComponent?20:-1);B(7);yg("bv2-upload-ongoing",R8b(a.comment));I("supportsPreview",!0);Cg("comment",a.comment);var d;I("disabled",a.isSaving)("judgementForNewContent",a.judgementForNewContent)("placeholder",a.piiWarningMessage)("idForAriaLabel",a.descriptionBoxId)("audience",
a.audience)("showRestrictionOptions",a.canEditIssuesInComponent)("warn",(d=W(28,43,a.descriptionBannedWordsChecker.showWarning$))!=null?d:!1)("canEditIssuesInComponent",a.canEditIssuesInComponent)("isLiteralModeSupported",a.isLiteralModeSupported());B(2);G(W(30,45,a.descriptionBannedWordsChecker.showWarning$)?29:-1);B(2);I("initialValue",a.comment.formattingMode);B();G(a.canEditIssuesInComponent&&st(a.selectedComponent)?32:-1);B(3);G(a.canEditIssuesInComponent?35:-1);B();G(a.issue.componentId&&!a.submitRequested?
36:-1);B();G(G8b(a)||H8b(a)?37:-1);B();G(a.enableRecaptcha?38:-1);B(2);I("disabled",Q9b(a))("color",W(41,47,a.titleBannedWordsChecker.showWarning$)||W(42,49,a.descriptionBannedWordsChecker.showWarning$)?"warn":"primary");B(3);T(" ",W(44,51,a.titleBannedWordsChecker.showWarning$)||W(45,53,a.descriptionBannedWordsChecker.showWarning$)?"Create Anyway":"Create"," ");B(3);I("disabled",Q9b(a))("color",W(47,55,a.titleBannedWordsChecker.showWarning$)||W(48,57,a.descriptionBannedWordsChecker.showWarning$)?
"warn":"primary");B(3);T(" ",W(50,59,a.titleBannedWordsChecker.showWarning$)||W(51,61,a.descriptionBannedWordsChecker.showWarning$)?"Create Anyway & Start Another":"Create & Start Another"," ");B(3);I("disabled",Q9b(a))}},S9b=function(a,b){a&1&&(K(0,"h2",129),S(1,"This component has a default description"),L(),K(2,"mat-dialog-content"),S(3," You have already entered a description, but the component you chose has a default description: "),K(4,"div",130),S(5),L()(),K(6,"mat-dialog-actions")(7,"button",
131),S(8,"Use component description"),L(),K(9,"button",132),S(10,"Keep my description"),L()());a&2&&(a=b.$implicit,B(5),Ag(a),B(2),I("mat-dialog-close",!0))},T9b=function(a,b){a&1&&(K(0,"mat-option",135),S(1),L());a&2&&(a=b.$implicit,I("value",Fg(a)),B(),T(" ",a," "))},V9b=function(a){if(a&1){var b=t();K(0,"mat-form-field",133)(1,"mat-select",134);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.collaboratorGroupsText,c)||(d.collaboratorGroupsText=c);return v(c)});K(2,"mat-select-trigger");S(3);
L();Pf(4,T9b,2,3,"mat-option",135,Of);L()()}a&2&&(a=P(),B(),Cg("ngModel",a.collaboratorGroupsText),I("ngModelOptions",Jg(3,U9b)),B(2),Ag(a.getCollaboratorGroupsString()),B(),Qf(a.trackerCollaboratorGroups))},W9b=function(a,b){b.assigneeText=Om(a.assigneeUser);b.reporterText=Om(a.reporterUser);b.verifierText=Om(a.verifierUser);var c;b.collaboratorsText=Nu(((c=a.collaboratorsUsers)!=null?c:[]).map(Om));var d;b.ccsText=Nu(((d=a.ccUsers)!=null?d:[]).map(Om))},X9b=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=Sm(a.assigneeText));a.reporterText!=null&&(b.reporterUser=Sm(a.reporterText));a.verifierText!=null&&(b.verifierUser=Sm(a.verifierText));b.collaboratorsUsers=rTa(Ou(a.collaboratorsText));b.ccUsers=rTa(Ou(a.ccsText))},Z9b=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=Y9b[d];d==="customField"||Gm(e,f)||(Array.isArray(e)?a[d]?(e=PSa([].concat(n(e),
n(a[d]))),a[d]=e):a[d]=e:e!==""&&(a[d]=e))}},$9b=function(a){a=Object.assign({},a);return delete a.hotlistId,a},a$b=function(a){var b={};a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b[c.customFieldId]=c;return b},b$b=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},Ou=function(a){return a.split(",").map(function(b){return b.trim()}).filter(Boolean)},Nu=
function(a){return a?a.join(", "):""},c$b=function(a){a&1&&M(0,"b-star-toggle",6);a&2&&I("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)},d$b=function(a){if(a&1){var b=t();K(0,"b-star-toggle",10);N("starClicked",function(){u(b);var c=P(2);return v(c.toggleStar())});L()}a&2&&(a=P(2),I("starMessage","Star this bookmark group")("unStarMessage","Un-star this bookmark group")("starred",
a.isStarred))},e$b=function(a){if(a&1){var b=t();K(0,"div")(1,"div",5);F(2,c$b,1,4,"b-star-toggle",6)(3,d$b,1,3,"b-star-toggle",7);K(4,"span",8);S(5);K(6,"span")(7,"button",9);N("click",function(){u(b);var c=P();return v(c.editBookmarkGroup())});L()()()()()}a&2&&(a=P(),B(2),G(a.isAdmin?2:3),B(3),T("",a.bookmarkGroup.name," "))},h$b=function(a){if(a&1){var b=t();K(0,"b-saved-search-panel",13);N("focusedRowIndexChange",function(f){u(b);var g=P().$implicit,k=P();return v(f$b(k,g,f))})("selectionChange",
function(f){u(b);var g=P(2);return v(g$b(g,f))})("resultsLoaded",function(f){u(b);var g=P(2);return v(g.loadHotlists(f))});L()}if(a&2){var c=P();a=c.$implicit;var d=c.$index;c=c.$count;var e=P();I("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("savedSearchId",e.String(a.resourceId))("first",d===0)("last",d===c-1)("resultsPerPage",e.resultsPerPage)}},i$b=function(a){if(a&1){var b=t();K(0,"b-hotlist-panel",14);N("focusedRowIndexChange",function(f){u(b);var g=P().$implicit,
k=P();return v(f$b(k,g,f))})("selectionChange",function(f){u(b);var g=P(2);return v(g$b(g,f))})("resultsLoaded",function(f){u(b);var g=P(2);return v(g.loadHotlists(f))});L()}if(a&2){var c=P();a=c.$implicit;var d=c.$index;c=c.$count;var e=P();I("panel",a)("isDashboardEditable",e.isAdmin)("focusedRowIndex",a.focusedRowIndex)("hotlistId",e.Number(a.resourceId))("first",d===0)("last",d===c-1)("resultsPerPage",e.resultsPerPage)}},j$b=function(a,b){a&1&&(K(0,"div"),F(1,h$b,1,7,"b-saved-search-panel",11)(2,
i$b,1,7,"b-hotlist-panel",12),L());if(a&2){var c;a=b.$implicit;B();G((c=a.type)==="SAVED_SEARCH"?1:c==="HOTLIST"?2:-1)}},k$b=function(a){if(a&1){var b=t();K(0,"button",10);N("click",function(){u(b);var c=P();return v(c.archive())});S(1," Archive bookmark group ");L()}a&2&&(a=P(),I("disabled",a.hasUnsavedChanges()||a.isSaving()))},l$b=function(a){if(a&1){var b=t();K(0,"button",10);N("click",function(){u(b);var c=P();return v(c.unarchive())});S(1," Unarchive bookmark group ");L()}a&2&&(a=P(),I("disabled",
a.hasUnsavedChanges()||a.isSaving()))},m$b=function(a){a&1&&(K(0,"span",12),S(1," (archived) "),L())},o$b=function(a,b){if(a&1){var c=t();K(0,"div")(1,"b-hotlist-chip-smart",44);N("removeHotlist",function(){var d=u(c),e=P(4);return v(n$b(e,d))});L()()}a&2&&(B(),I("id",b))},q$b=function(a,b){if(a&1){var c=t();K(0,"div",42)(1,"a",45);S(2);L();K(3,"span",46);N("click",function(){var e=u(c),f=P(4);return v(p$b(f,e))})("keydown.enter",function(){var e=u(c),f=P(4);return v(p$b(f,e))})("keydown.space",function(){var e=
u(c),f=P(4);return v(p$b(f,e))});S(4," \u00d7 ");L()()}if(a&2){a=P().$implicit;var d=P(3);B();I("href",d.paths.viewSavedSearch(b),Me)("matTooltip","Go to saved search: "+d.getDisplayName(a));B();T(" S: ",d.getDisplayName(a)," ");B();I("matTooltip","Remove item: "+d.getDisplayName(a));Jf("aria-label","Remove item: "+d.getDisplayName(a))}},r$b=function(a){a&1&&(K(0,"span",43),S(1,"<None>"),L())},s$b=function(a,b){a&1&&(K(0,"div",33),F(1,o$b,2,1,"div"),F(2,q$b,5,5,"div",42),F(3,r$b,2,0,"span",43),L());
if(a&2){var c;a=b.$implicit;b=P(3);B();var d;var e=a.resourceType==="HOTLIST"?(d=a.hotlistId)==null?void 0:d.toString():void 0;G(e?1:-1,e);B();G((c=a.resourceType==="SAVED_SEARCH"?a.savedSearchId:void 0)?2:-1,c);B();G(b.bookmarkGroupUnderEdit.item.length?-1:3)}},u$b=function(a,b){if(a&1){var c=t();K(0,"button",53);N("click",function(){var d=u(c).$implicit,e=P(5);return v(t$b(e,d))});S(1);L()}a&2&&(a=b.$implicit,B(),T("",a.name," "))},v$b=function(a){a&1&&Pf(0,u$b,2,1,"button",52,Of);a&2&&(a=P(4),
Qf(a.savedSearchChoices))},w$b=function(a){a&1&&(K(0,"div",41)(1,"label",47),S(2,"Add from saved searches:"),L(),K(3,"button",48)(4,"span",49),S(5,"Select"),L(),M(6,"mat-icon",50),L(),K(7,"mat-menu",null,2),E(9,v$b,2,0,"ng-template",51),L()());a&2&&(a=Q(8),B(3),I("matMenuTriggerFor",a))},B$b=function(a){if(a&1){var b=t();K(0,"div",18)(1,"label",31)(2,"span",20);S(3,"Selected items");L()();K(4,"div",32,1);Pf(6,s$b,4,3,"div",33,Of);L()();K(8,"div",34)(9,"div",35)(10,"label",36);S(11,"Add hotlist from favorites:");
L();K(12,"b-hotlist-picker",37);N("onApply",function(c){u(b);var d=P(2);return v(x$b(d,c))})("onCreate",function(c){u(b);var d=P(2);return v(y$b(d,c))})("onLoad",function(c){u(b);var d=P(2);return v(z$b(d,c))});L()();K(13,"div",38)(14,"label",39);S(15,"Add hotlist by query:");L();K(16,"b-hotlist-search",40);N("itemSelect",function(c){u(b);var d=P(2);"hotlistId"in c&&!d.selectedHotlistIds[0].includes(c.hotlistId)&&(A$b(d,c.hotlistId),d.bookmarkGroupUnderEdit.item.push({name:c.name,resourceType:"HOTLIST",
hotlistId:c.hotlistId}));return v()});L()();F(17,w$b,10,1,"div",41);L()}a&2&&(a=P(2),B(6),Qf(a.bookmarkGroupUnderEdit.item),B(6),I("selectedHotlistIds",a.selectedHotlistIds)("choices",a.userHotlists)("checkEditAcl",!1),B(4),I("showGroups",!1)("allowStarring",!1),B(),G(a.savedSearchChoices.length>0?17:-1))},D$b=function(a){a&1&&(K(0,"span"),S(1),K(2,"a",55),S(3),L()());if(a&2){a=P().$implicit;var b=P(3);B();T(" Hotlist ",a.hotlistId,": ");B();I("href",C$b(b,a),Me);B();T(" ",a.name||"(name not available)",
" ")}},E$b=function(a){a&1&&(K(0,"span"),S(1),K(2,"a",55),S(3),L()());if(a&2){a=P().$implicit;var b=P(3);B();T(" Saved search ",a.savedSearchId,": ");B();I("href",C$b(b,a),Me);B();T(" ",a.name||"(name not available)"," ")}},F$b=function(a,b){a&1&&(K(0,"li"),F(1,D$b,4,3,"span"),F(2,E$b,4,3,"span"),L());a&2&&(a=b.$implicit,B(),G(a.resourceType==="HOTLIST"?1:-1),B(),G(a.resourceType==="SAVED_SEARCH"?2:-1))},G$b=function(a){a&1&&(K(0,"div",24)(1,"label")(2,"span",20),S(3,"Items"),L()(),K(4,"div",54)(5,
"ul"),Pf(6,F$b,3,2,"li",null,Of),L()()());a&2&&(a=P(2),B(6),Qf(a.bookmarkGroup.item))},H$b=function(a){if(a&1){var b=t();K(0,"div",25)(1,"button",56);N("click",function(){u(b);var c=P(2);return v(c.saveMetadata())});S(2," Update ");L();K(3,"button",57);N("click",function(){u(b);var c=P(2);return v(c.revertMetadataChanges())});S(4," Revert changes ");L()()}a&2&&(a=P(2),B(),I("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()))},I$b=function(a){if(a&1){var b=t();K(0,"div",25)(1,"button",56);N("click",
function(){u(b);var c=P(2);return v(c.saveAccessPolicy())});S(2," Update ");L();K(3,"button",57);N("click",function(){u(b);var c=P(2);return v(c.revertAccessPolicyChanges())});S(4," Revert changes ");L()()}a&2&&(a=P(2),B(),I("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},L$b=function(a){if(a&1){var b=t();K(0,"div",11)(1,"h2");S(2);L();F(3,m$b,2,0,"span",12);K(4,"a",13);S(5," (View Dashboard)");L()();K(6,"mat-tab-group",14);Eg("selectedIndexChange",
function(c){u(b);var d=P();Dg(d.selectedTabIndex,c)||(d.selectedTabIndex=c);return v(c)});N("selectedIndexChange",function(c){u(b);var d=P();return v(d.tabChange(c))});K(7,"mat-tab",15)(8,"div",16);M(9,"b-error-banner",17);K(10,"div",18)(11,"label",19)(12,"span",20);S(13,"Name");L()();K(14,"input",21,0);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.bookmarkGroupUnderEdit.name,c)||(d.bookmarkGroupUnderEdit.name=c);return v(c)});L()();K(16,"div",18)(17,"label",22)(18,"span",20);S(19,"Description");
L()();K(20,"textarea",23);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.bookmarkGroupUnderEdit.description,c)||(d.bookmarkGroupUnderEdit.description=c);return v(c)});L()();F(21,B$b,18,6)(22,G$b,8,0,"div",24);F(23,H$b,5,1,"div",25);L()();K(24,"mat-tab",26)(25,"div",16)(26,"div",18)(27,"label")(28,"span",20);S(29,"Admins");L();K(30,"p",27);S(31," Edit access controls, edit name and description, reorder items, add/remove items ");L()();K(32,"b-multi-user-input",28);N("usersChange",function(c){u(b);
var d=P();return v(d.accessPolicyUnderEdit.admins=c)})("isValid",function(c){u(b);var d=P();return v(d.isAdminsFieldValid=c)});L()();K(33,"div",18)(34,"label")(35,"span",20);S(36,"View only");L();K(37,"p",27);S(38," View the bookmark group ");L();K(39,"b-multi-user-input",29);N("usersChange",function(c){u(b);var d=P();return v(d.accessPolicyUnderEdit.readers=c)})("isValid",function(c){u(b);var d=P();return v(d.isReaderFieldValid=c)});L()()();K(40,"div",18);S(41," See ");K(42,"a",30);S(43,"access control documentation");
L();S(44," for an explanation of the settings. ");L();F(45,I$b,5,1,"div",25);L()()()}a&2&&(a=P(),B(2),Bg(" Bookmark group ",a.bookmarkGroup.bookmarkGroupId,": ",a.bookmarkGroup.name," "),B(),G(a.isArchived()?3:-1),B(),I("href",a.paths.dashboard(a.bookmarkGroup.bookmarkGroupId),Me),B(2),Cg("selectedIndex",a.selectedTabIndex),B(3),I("error",a.error),B(),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),Cg("ngModel",a.bookmarkGroupUnderEdit.name),I("disabled",a.isEditDisabled()),B(2),yg("bv2-edit-resource-readonly",
a.isEditDisabled()),B(4),Cg("ngModel",a.bookmarkGroupUnderEdit.description),I("disabled",a.isEditDisabled()),B(),G(a.isAdmin?21:22),B(2),G(a.isAdmin?23:-1),B(3),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),yg("disabled",a.isEditDisabled()),I("users",a.accessPolicyUnderEdit.admins),B(),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),yg("disabled",a.isEditDisabled()),I("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Kg(33,
J$b,Kg(31,K$b,a.accessPolicyUnderEdit.admins))),B(3),I("href",Es(a.documentationLinks)+"#bookmark-groups",Me),B(3),G(a.isAdmin?45:-1))},M$b=function(a){if(a&1){var b=t();K(0,"button",9);N("click",function(){u(b);var c=P();return v(c.delete())});S(1," Delete saved search ");L()}a&2&&(a=P(),I("disabled",a.hasUnsavedChanges()||a.isSaving()))},N$b=function(a){a&1&&(K(0,"div",8)(1,"h2"),S(2," Saved search not found "),L()())},O$b=function(a){if(a&1){var b=t();K(0,"div",25)(1,"button",32);N("click",function(){u(b);
var c=P(2);return v(c.saveMetadata())});S(2," Update ");L();K(3,"button",33);N("click",function(){u(b);var c=P(2);return v(c.revertMetadataChanges())});S(4," Revert changes ");L()()}a&2&&(a=P(2),B(),I("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()))},P$b=function(a){if(a&1){var b=t();K(0,"div",25)(1,"button",32);N("click",function(){u(b);var c=P(2);return v(c.saveAccessPolicy())});S(2," Update ");L();K(3,"button",33);N("click",function(){u(b);var c=P(2);return v(c.revertAccessPolicyChanges())});
S(4," Revert changes ");L()()}a&2&&(a=P(2),B(),I("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},S$b=function(a){if(a&1){var b=t();K(0,"div",8)(1,"h2");S(2);L();K(3,"a",10);S(4," (View Issues)");L()();K(5,"mat-tab-group",11);Eg("selectedIndexChange",function(c){u(b);var d=P();Dg(d.selectedTabIndex,c)||(d.selectedTabIndex=c);return v(c)});N("selectedIndexChange",function(c){u(b);var d=P();return v(d.tabChange(c))});K(6,"mat-tab",12)(7,"div",
13);M(8,"b-error-banner",14);K(9,"div",15)(10,"label",16)(11,"span",17);S(12,"Name");L()();K(13,"input",18,0);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.savedSearchUnderEdit.name,c)||(d.savedSearchUnderEdit.name=c);return v(c)});L()();K(15,"div",15)(16,"label",19)(17,"span",17);S(18,"Description");L()();K(19,"textarea",20);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.savedSearchUnderEdit.description,c)||(d.savedSearchUnderEdit.description=c);return v(c)});S(20,"            ");L()();
K(21,"div",21)(22,"label",22)(23,"span",17);S(24,"Query");L();K(25,"p",23);S(26," To modify query and display preferences, run the saved search and modify its parameters ");L();K(27,"div",24);S(28);L()()();F(29,O$b,5,1,"div",25);L()();K(30,"mat-tab",26)(31,"div",13)(32,"div",15)(33,"label",27)(34,"span",17);S(35,"Admins");L();K(36,"p",23);S(37," Edit access controls, edit name and description, edit query ");L()();K(38,"b-multi-user-input",28);N("usersChange",function(c){u(b);var d=P();return v(d.accessPolicyUnderEdit.admins=
c)})("isValid",function(c){u(b);var d=P();return v(d.isAdminsFieldValid=c)});L()();K(39,"div",15)(40,"label",29)(41,"span",17);S(42,"View and execute search");L()();K(43,"b-multi-user-input",30);N("usersChange",function(c){u(b);var d=P();return v(d.accessPolicyUnderEdit.readers=c)})("isValid",function(c){u(b);var d=P();return v(d.isReaderFieldValid=c)});L()();K(44,"div",15);S(45," See ");K(46,"a",31);S(47,"access control documentation");L();S(48," for an explanation of the settings. ");L();F(49,P$b,
5,1,"div",25);L()()()}a&2&&(a=P(),B(2),Bg(" Saved search ",a.savedSearch.searchId,": ",a.savedSearch.name," "),B(),I("href",a.paths.viewSavedSearch(a.savedSearch.searchId),Me),B(2),Cg("selectedIndex",a.selectedTabIndex),B(3),I("error",a.error),B(),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),Cg("ngModel",a.savedSearchUnderEdit.name),I("disabled",a.isEditDisabled()),B(2),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),Cg("ngModel",a.savedSearchUnderEdit.description),I("disabled",
a.isEditDisabled()),B(9),T(" ",a.savedSearch.query," "),B(),G(a.isAdmin?29:-1),B(3),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),yg("disabled",a.isEditDisabled()),I("users",a.accessPolicyUnderEdit.admins),B(),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),yg("disabled",a.isEditDisabled()),I("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Kg(32,Q$b,Kg(30,R$b,a.accessPolicyUnderEdit.admins))),B(3),I("href",Es(a.documentationLinks)+
"#saved-searches",Me),B(3),G(a.isAdmin?49:-1))},T$b=function(a){a&1&&(K(0,"div",6),M(1,"b-spinner"),L())},U$b=function(a){if(a&1){var b=t();K(0,"div",35)(1,"span",36)(2,"mat-checkbox",37);N("change",function(c){u(b);var d=P(2);return v(d.alertState.setValue(c.checked))});L()();K(3,"div")(4,"strong",38);S(5,"SLO Notifications");L();K(6,"div",39);S(7," When checked, admins will be notified when any component that would be automatically assigned this SLO overrides their SLO settings. ");L()()()}a&2&&
(a=P(2),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(2),I("checked",a.alertState.getValue())("disabled",a.isEditDisabled()))},V$b=function(a){a&1&&(K(0,"div",20),S(1," Action is required to keep your SLO definitions in Buganizer and BugScope in sync. "),K(2,"a",40),S(3," Learn more "),L()())},X$b=function(a){if(a&1){var b=t();K(0,"b-button",45);N("onAction",function(){u(b);var c=P(3);return v(W$b(c,!0))});S(1," Archive ");L()}a&2&&(a=P(3),I("disabled",a.hasUnsavedMetadataChanges()||a.isSaving()))},
Y$b=function(a){if(a&1){var b=t();K(0,"b-button",46);N("onAction",function(){u(b);var c=P(3);return v(W$b(c,!1))});S(1," Unarchive ");L()}a&2&&(a=P(3),I("disabled",a.hasUnsavedMetadataChanges()||a.isSaving()))},Z$b=function(a){if(a&1){var b=t();K(0,"div",24)(1,"b-button",41);N("onAction",function(){u(b);var d=P(2);return v(d.saveMetadata())});S(2," Update ");L();K(3,"b-button",42);N("onAction",function(){u(b);var d=P(2);return v(d.revertMetadataChanges())});S(4," Revert changes ");L();F(5,X$b,2,1,
"b-button",43);F(6,Y$b,2,1,"b-button",44);L()}if(a&2){P();a=Q(9);var c=P();B();I("disabled",!c.hasUnsavedMetadataChanges()||c.isSaving()||!c.elementPickerIsValid||!!a.pending||!!a.invalid);B(2);I("disabled",!c.hasUnsavedMetadataChanges()||c.isSaving()||!!a.pending||!!a.invalid);B(2);G(c.slo&&!c.slo.isArchived?5:-1);B();G(c.slo&&c.slo.isArchived?6:-1)}},$$b=function(a){if(a&1){var b=t();K(0,"div",23)(1,"b-button",47);N("onAction",function(){u(b);var c=P(2);return v(c.saveAccessPolicy())});S(2," Update ");
L();K(3,"b-button",48);N("onAction",function(){u(b);var c=P(2);return v(c.revertAccessPolicyChanges())});S(4," Revert changes ");L()()}a&2&&(a=P(2),B(),I("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||a.isInvalid()))},cac=function(a){if(a&1){var b=t();K(0,"div")(1,"div",7)(2,"h2")(3,"span",8);S(4);L()()();K(5,"mat-tab-group",9);Eg("selectedIndexChange",function(c){u(b);var d=P();Dg(d.selectedTabIndex,c)||(d.selectedTabIndex=c);return v(c)});N("selectedIndexChange",function(c){u(b);var d=
P();return v(d.tabChange(c))});K(6,"mat-tab",10)(7,"div",11)(8,"form",12,0)(10,"div",13)(11,"label",14)(12,"span",15);S(13,"Name");L()();K(14,"input",16);N("ngModelChange",function(c){u(b);var d=P();return v(d.editableCopy.name=c)});L()();K(15,"div",13)(16,"label",17)(17,"span",15);S(18,"Description");L()();K(19,"textarea",18);N("ngModelChange",function(c){u(b);var d=P();return v(d.editableCopy.description=c)});S(20,"                ");L()();F(21,U$b,8,4,"div",19);L();F(22,V$b,4,0,"div",20);K(23,
"div",13)(24,"slo-elements-picker",21);N("onCollectionUpdate",function(c){u(b);var d=P();return v(d.updateCollection(c))})("onValidation",function(c){u(b);var d=P();return v(d.elementPickerIsValid=c)});L()();K(25,"div",22)(26,"div",23)(27,"div",24)(28,"b-button",25);N("onAction",function(){u(b);var c=P();return v(c.showUpdateHistoryModal())});S(29," View history ");L()()();K(30,"div",23);F(31,Z$b,7,4,"div",24);L()()()();K(32,"mat-tab",26)(33,"div",27)(34,"form",28)(35,"div",13)(36,"label",29)(37,
"span",15);S(38,"Admins");L();K(39,"p",30);S(40," Edit name, description and metrics ");L()();K(41,"b-multi-user-input",31);N("usersChange",function(c){u(b);var d=P();return v(d.editableAccessPolicy.admins=c)})("isValid",function(c){u(b);var d=P();return v(d.validity.admins=c)});L()();K(42,"div",13)(43,"label",32)(44,"span",15);S(45,"Readers");L();K(46,"p",30);S(47," View the SLO definition (this is not required to see an issue's SLO status) ");L()();K(48,"b-multi-user-input",33);N("usersChange",
function(c){u(b);var d=P();return v(d.editableAccessPolicy.readers=c)})("isValid",function(c){u(b);var d=P();return v(d.validity.readers=c)});L()()();K(49,"div",13);S(50," See ");K(51,"a",34);S(52,"access control documentation");L();S(53," for an explanation of the settings. ");L();F(54,$$b,5,1,"div",23);L()()()()}a&2&&(a=P(),B(4),Bg(" SLO ",a.slo.sloId,": ",a.slo.name," "),B(),Cg("selectedIndex",a.selectedTabIndex),B(5),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),I("required",!0)("ngModel",
a.editableCopy.name)("disabled",a.isEditDisabled()),B(),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(4),I("ngModel",a.editableCopy.description)("disabled",a.isEditDisabled()),B(2),G(a.isImportedFromBugScope||a.alertState.getSavedValue()?21:-1),B(),G(a.isUneditedFromBugScope&&a.isAdmin()?22:-1),B(),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(),I("isDisabled",a.isEditDisabled())("collection",a.editableCopy.elements),B(7),G(a.isAdmin()?31:-1),B(4),yg("bv2-edit-resource-readonly",a.isEditDisabled()),
B(6),I("users",a.editableAccessPolicy.admins),Jf("disabled",a.isEditDisabled()?!0:null),B(),yg("bv2-edit-resource-readonly",a.isEditDisabled()),B(6),I("users",a.editableAccessPolicy.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Kg(35,aac,Kg(33,bac,a.editableAccessPolicy.admins))),Jf("disabled",a.isEditDisabled()?!0:null),B(3),I("href",Gg("",Es(a.documentationLinks),"#slos"),Me),B(3),G(a.isAdmin()?54:-1))},eac=function(a){if(a&1){var b=t();K(0,"div",2);M(1,"img",3)(2,"img",
4);K(3,"p",5);S(4," This issue is not blocking anything \u00a0\ud83e\udd73 ");L();K(5,"p",6);S(6," If this issue blocks other issues, this issue should be resolved before the others. ");K(7,"a",7);S(8,"Learn more");L()();K(9,"button",8);N("click",function(){u(b);var c=P(2);return v(dac(c))});S(10," Add ");L()()}a&2&&(a=P(2),B(),I("src",a.TEA_LIGHT,Me),B(),I("src",a.TEA_DARK,Me))},fac=function(a,b){a&1&&M(0,"b-issues-table",13);a&2&&(a=P(6),I("issueIds",b)("menuItemFactory",a.getMenuItems))},gac=function(a){a&
1&&(F(0,fac,1,2,"b-issues-table",13),U(1,"async"));if(a&2){var b;a=P(5);G((b=W(1,1,a.blockedAndOpenIds$))?0:-1,b)}},hac=function(a){a&1&&(K(0,"p",12),S(1,"Not blocking any open issues \ud83e\udd73"),L())},iac=function(a,b){a&1&&(K(0,"h4",11),S(1),L(),F(2,gac,2,3)(3,hac,2,0,"p",12));a&2&&(B(),T("Open (",b.length,")"),B(),G(b.length>0?2:3))},jac=function(a,b){a&1&&M(0,"b-issues-table",13);a&2&&(a=P(6),I("issueIds",b)("menuItemFactory",a.getMenuItems))},kac=function(a){a&1&&(K(0,"h4",11),S(1),L(),F(2,
jac,1,2,"b-issues-table",13),U(3,"async"));if(a&2){var b;a=P();var c=P(4);B();T("Closed (",a.length,")");B();G((b=W(3,2,c.blockedAndClosedIds$))?2:-1,b)}},lac=function(a,b){a&1&&F(0,kac,4,4);a&2&&G(b.length>0?0:-1)},mac=function(a){a&1&&(F(0,iac,4,2),U(1,"async"),F(2,lac,1,1),U(3,"async"));if(a&2){var b,c;a=P(3);G((b=W(1,2,a.blockedAndOpen$))?0:-1,b);B(2);G((c=W(3,4,a.blockedAndClosed$))?2:-1,c)}},nac=function(a,b){a&1&&(K(0,"li")(1,"a",15)(2,"span",6),S(3),L(),K(4,"aside",16),M(5,"button",17),L()()());
a&2&&(a=b.$implicit,B(),Jf("aria-label",Gg("Issue ",a)),I("routerLink",Gg("/issues/",a)),B(2),T("b/",a))},oac=function(a){a&1&&(K(0,"h4",11),S(1,"Loading..."),L(),K(2,"ol",14),Pf(3,nac,6,5,"li",null,Of),L());a&2&&(a=P(2),B(3),Qf(a))},pac=function(a,b){a&1&&(K(0,"a",10),S(1," View as search results "),L());a&2&&I("routerLink",b.path)("queryParams",b.params)},qac=function(a){if(a&1){var b=t();F(0,mac,4,6);U(1,"async");Mf(2,oac,5,0);K(3,"aside",9)(4,"button",8);N("click",function(){u(b);var d=P(2);return v(dac(d))});
S(5," Add ");L();F(6,pac,2,2,"a",10);U(7,"async");L()}if(a&2){var c;a=P(2);G(W(1,2,a.issuesBeingBlocked$)?0:2);B(6);G((c=W(7,4,a.searchUrl$))?6:-1,c)}},rac=function(a,b){a&1&&F(0,eac,11,2,"div",2)(1,qac,8,6);a&2&&G(b.length===0?0:1)},sac=function(a){a&1&&(K(0,"aside",1),M(1,"b-spinner"),L())},tac=function(a){a&1&&(K(0,"div",1),M(1,"mat-icon",3),K(2,"span",4),S(3),L()());a&2&&(a=P(),B(3),T("",a.length," parent issues"))},uac=function(a){a&1&&(K(0,"div",1),M(1,"mat-icon",5),K(2,"span",4),S(3),L()());
a&2&&(a=P(),B(3),T("Blocked by ",a.length," issues"))},vac=function(a,b){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(4),zg(Gg("chippy status-",b," margin-s-left")),B(),T(" ",a.STATUS_JS_TERSE.get(b)," "))},wac=function(a){a&1&&(K(0,"a",6)(1,"div",7)(2,"div",8)(3,"div",9),S(4),L(),K(5,"div",10),S(6),L()(),K(7,"div",8)(8,"div",11),S(9),L(),F(10,vac,2,4,"span",12),L()()());if(a&2){var b,c=P();a=c.$implicit;var d=c.$index;c=c.$count;var e=P(2);I("routerLink",Gg("/issues/",a.issueId));B();yg("border-bottom",
d!==c-1);B(3);Ag(a.issueId);B(2);Ag(a.snapshot[0].title);B(2);zg(e.priorityClass(a.snapshot[0].priority));B();Ag(a.snapshot[0].priority);B();G((b=a.snapshot[0].status)?10:-1,b)}},xac=function(a,b){a&1&&F(0,wac,11,10,"a",6);a&2&&G(b.$index<5?0:-1)},zac=function(a){if(a&1){var b=t();K(0,"div",2)(1,"button",13);N("click",function(){u(b);var c=P(2);return v(yac(c))});S(2,"View all parent issues");L()()}},Aac=function(a){if(a&1){var b=t();K(0,"div",2)(1,"button",13);N("click",function(){u(b);var c=P(2),
d;(d=c.hovercardInstance)==null||d.closeHovercard$.next();hu(c.router,"/issues/"+c.currentIssueId+"/dependencies");return v()});S(2,"View all blockers");L()()}},Cac=function(a,b){a&1&&(K(0,"div",0),F(1,tac,4,1,"div",1),F(2,uac,4,1,"div",1),K(3,"div"),Pf(4,xac,1,1,null,null,Bac),F(6,zac,3,0,"div",2),F(7,Aac,3,0,"div",2),L()());a&2&&(a=P(),B(),G(a.mode===a.ListIssuesHovercardMode.PARENT_ISSUES?1:-1),B(),G(a.mode===a.ListIssuesHovercardMode.BLOCKED_BY_ISSUES?2:-1),B(2),Qf(b),B(2),G(b.length>5&&a.mode===
a.ListIssuesHovercardMode.PARENT_ISSUES?6:-1),B(),G(b.length>5&&a.mode===a.ListIssuesHovercardMode.BLOCKED_BY_ISSUES?7:-1))},Dac=function(a){a&1&&M(0,"mat-icon",4)},Eac=function(a){a&1&&(Vf(0),M(1,"b-list-issues-card",6,1),Wf());if(a&2){a=Q(2);P();var b=Q(4),c=P();B();I("onedevIsHovercardReady",a.init)("hovercardInstance",b)("currentIssueId",c.issueId)("issueIds",c.multiParentIssueIds)("mode",c.ListIssuesHovercardMode.PARENT_ISSUES)}},Fac=function(a){a&1&&(K(0,"a",3),S(1),L(),F(2,Dac,1,0,"mat-icon",
4),K(3,"onedev-hovercard",null,0),E(5,Eac,3,5,"ng-container",5),L());if(a&2){a=Q(4);var b=P();I("title",Gg("",b.multiParentIssueIds.length," parents at this position"))("onedevHovercardTrigger",a);B();T("",b.multiParentIssueIds.length," Parents\u2026");B();G(b.multiParentIssueIds.length>1?2:-1)}},Gac=function(a,b){a&1&&(K(0,"b-issue-reference-widget",7),S(1),L(),M(2,"mat-icon",4));if(a&2){var c=b.$implicit;a=b.$index;b=b.$count;var d=P();I("href",d.getIssueLink(c))("issueId",c);B();d.issueIdToTitle.has(c)?
(c=d.issueIdToTitle.get(c),c=J9a(c)):c=String(c);Ag(c);B();yg("last",a===b-1)}},Iac=function(a,b){if(a&1){var c=t();K(0,"button",1);U(1,"async");N("click",function(){u(c);var d=P();return v(Hac(d))});S(2);L()}a&2&&(a=P(),I("disabled",a.disabled||a.issueFullFridge.isSaving(a.internalIssueId)||W(1,3,a.canEdit$)===!1)("title",b.isDupe?a.TOOLTIP_UNMARK_DUPE:a.TOOLTIP_MARK_DUPE),B(2),T(" ",b.isDupe?"Unmark Duplicate":"Mark as Duplicate"," "))},Jac=function(a){a&1&&Xf(0)},Kac=function(a){a&1&&E(0,Jac,1,
0,"ng-container",4);a&2&&(a=P(),I("ngTemplateOutlet",a.content))},Lac=function(a,b){if(a&1){var c=t();K(0,"button",12);N("click",function(e){var f=u(c).$implicit,g=P(2);return v(g.onAction(f,e))});M(1,"mat-icon",13);S(2);L()}if(a&2){a=b.$implicit;I("disabled",a.disabled)("title",a.title);Jf("aria-label",a.title);B();var d;I("svgIcon",(d=a.icon)!=null?d:"");B();T(" ",a.label," ")}},Mac=function(a){if(a&1){var b=t();K(0,"button",14);N("click",function(d){u(b);var e=P(2);d.stopPropagation();d.preventDefault();
var f;(f=e.helpHover)==null||f.toggle();return v()});M(1,"mat-icon",15);S(2," Retention: ");M(3,"retention-text",16);S(4," \u00a0 ");M(5,"help-hover",17);L()}if(a&2){a=P();var c=Q(13);B(3);I("retentionState",a.retentionState);B(2);I("content",c)}},Nac=function(a){a&1&&M(0,"retention-help-text",18);a&2&&(a=P(2),I("retentionState",a.retentionState)("modifiedTime",a.modifiedTimeMilliseconds))},Oac=function(a){a&1&&F(0,Nac,1,2,"retention-help-text",18);a&2&&(a=P(),G(a.retentionState&&a.modifiedTimeMilliseconds?
0:-1))},Qac=function(a,b){if(a&1){var c=t();M(0,"b-app-vote-button",3)(1,"hotlist-picker-btn",4);K(2,"smart-dupe-btn",5,0);N("onHotkey",function(){u(c);var e=Q(3);return v(Hac(e))});L();K(4,"b-notification-menu",6);N("subscriptionChange",function(e){u(c);var f=P();return v(f.updateSubscription(e))})("showNotificationSettings",function(e){u(c);var f=P();return v(f.showNotificationSettings(e))});L();K(5,"button",7);M(6,"mat-icon",8);L();K(7,"mat-menu",9,1);Pf(9,Lac,3,5,"button",10,Pac);F(11,Mac,6,2,
"button",11);L();E(12,Oac,1,1,"ng-template",null,2,Og)}if(a&2){a=Q(8);var d=P();I("issueId",b.issueId)("voteCount",b.voteCount)("upvoted",b.voted);B();I("issueId",b.issueId);B();I("issueId",b.issueId)("hotkey",d.HOTKEYS.TOGGLE_MARK_AS_DUPLICATE);B(2);I("subscription",b.notificationSubscription)("issueId",b.issueId)("iconOnly",!0);B();I("matMenuTriggerFor",a);B(4);Qf(b.menuItems);B(2);G(d.retentionEnabled?11:-1)}},Rac=function(){},Sac=function(a){a&1&&(K(0,"output"),S(1),U(2,"async"),L());if(a&2){a=
P();var b=P();B();Bg(" ",a," of ",W(2,2,b.currentSearchResults.totalText$)," ")}},Vac=function(a,b){if(a&1){var c=t();F(0,Sac,3,4,"output");K(1,"span")(2,"button",0);U(3,"async");N("onHotkey",function(){u(c);var d=P();return v(Tac(d.currentSearchResults))})("click",function(){u(c);var d=P();return v(Tac(d.currentSearchResults))});M(4,"mat-icon",1);L();K(5,"button",2);U(6,"async");N("onHotkey",function(){u(c);var d=P();return v(Uac(d.currentSearchResults))})("click",function(){u(c);var d=P();return v(Uac(d.currentSearchResults))});
M(7,"mat-icon",3);L()()}a&2&&(a=P(),G(b!==-1?0:-1),B(),yg("invisible",b===-1)("zero-width",b===-1),B(),I("hotkey",a.HOTKEYS.GO_TO_PREVIOUS_ISSUE)("disabled",!W(3,9,a.currentSearchResults.hasPreviousIssue$)),B(3),I("hotkey",a.HOTKEYS.GO_TO_NEXT_ISSUE)("disabled",!W(6,11,a.currentSearchResults.hasNextIssue$)))},Wac=function(a){a&1&&M(0,"b-issue-visibility-chip",1);a&2&&(a=P(2),I("issueId",a.issueId))},Xac=function(a){a&1&&M(0,"b-access-limits-chip",2);a&2&&(a=P(2),I("issueId",a.issueId)("componentId",
a.componentId)("accessLimitLevel",a.issueAccessLimitLevel))},Yac=function(a){a&1&&M(0,"b-retention-chip",3);a&2&&(a=P(2),I("retentionState",a.retentionState)("compactMode",!1)("modifiedTime",a.modifiedTime))},Zac=function(a){a&1&&(K(0,"div",0),F(1,Wac,1,1,"b-issue-visibility-chip",1),F(2,Xac,1,3,"b-access-limits-chip",2),F(3,Yac,1,3,"b-retention-chip",3),L());a&2&&(a=P(),B(),G(a.hasAccessIndicator?1:-1),B(),G(a.isAccessLimited?2:-1),B(),G(a.isShowingRetention?3:-1))},$ac=function(a,b){a&1&&F(0,Zac,
4,3,"div",0);a&2&&G(b.isShowingPublicPartner||b.isShowingRetention||b.isAccessLimited?0:-1)},abc=function(a){a&1&&(K(0,"div",2),M(1,"mat-icon",4),S(2),U(3,"async"),L());if(a&2){a=P();var b=Q(4);I("onedevHovercardTrigger",b);B(2);T("",W(3,2,a.teamName$)," ")}},bbc=function(a){a&1&&Xf(0)},cbc=function(a){a&1&&E(0,bbc,1,0,"ng-container",20);a&2&&(P(),a=Q(13),I("ngTemplateOutlet",a))},dbc=function(a){a&1&&(M(0,"b-component-breadcrumb-chip",22),U(1,"async"),K(2,"div",23),M(3,"b-issue-id-picker",24),U(4,
"async"),U(5,"async"),U(6,"async"),L());a&2&&(a=P(2),I("componentId",W(1,6,a.componentId$))("issueId",a.issueId),B(3),I("issueId",a.issueId)("componentId",W(4,8,a.componentId$))("issueTitle",W(5,10,a.issueTitle$))("isExternalIssue",!!W(6,12,a.isWithinExternalComponent$)))},ebc=function(a){if(a&1){var b=t();K(0,"b-team-chip",21);U(1,"async");U(2,"async");N("onTeamLoaded",function(){u(b);var c=P();return v(c.isTeamLoaded=!0)});L();F(3,dbc,7,14)}a&2&&(a=P(),I("componentId",W(1,3,a.componentId$))("teamId",
W(2,5,a.teamId$)),B(3),G(a.isTeamLoaded?3:-1))},fbc=function(a,b){a&1&&M(0,"ancestors-breadcrumbs",27);a&2&&(a=P(3),I("ancestors",b)("issueId",a.issueId))},gbc=function(a){a&1&&(M(0,"b-component-breadcrumb-chip",25),U(1,"async"),K(2,"div",26),F(3,fbc,1,2,"ancestors-breadcrumbs",27),U(4,"async"),M(5,"b-issue-id-picker",28),U(6,"async"),U(7,"async"),U(8,"async"),L());if(a&2){var b;a=P(2);I("componentId",W(1,8,a.componentId$))("compactMode",!0)("issueId",a.issueId);B(3);G((b=W(4,10,a.ancestors$))?3:
-1,b);B(2);I("issueId",a.issueId)("componentId",W(6,12,a.componentId$))("issueTitle",W(7,14,a.issueTitle$))("isExternalIssue",!!W(8,16,a.isWithinExternalComponent$))}},hbc=function(a){if(a&1){var b=t();K(0,"b-team-chip",21);U(1,"async");U(2,"async");N("onTeamLoaded",function(){u(b);var c=P();return v(c.isTeamLoaded=!0)});L();F(3,gbc,9,18)}a&2&&(a=P(),I("componentId",W(1,3,a.componentId$))("teamId",W(2,5,a.teamId$)),B(3),G(a.isTeamLoaded?3:-1))},ibc=function(a,b){a&1&&(K(0,"div",17),M(1,"mat-icon",
29),S(2),L());a&2&&(P(),a=Q(36),I("onedevHovercardTrigger",a),B(2),T(" ",b," "))},jbc=function(a){a&1&&(Vf(0),M(1,"b-list-issues-card",30,2),U(3,"async"),Wf());if(a&2){a=Q(2);var b=P(),c=Q(36);B();I("onedevIsHovercardReady",a.init)("hovercardInstance",c)("currentIssueId",b.issueId)("issueIds",W(3,5,b.blockedByids$))("mode",b.ListIssuesHovercardMode.BLOCKED_BY_ISSUES)}},kbc=function(a){if(a.length!==0)return a.length===1?zs.viewIssue.makeHref(a[0]):zs.listIssues.makeHref()},lbc=function(a){a&1&&(K(0,
"div",1),M(1,"mat-icon",2),K(2,"span"),S(3),L()());a&2&&(a=P(),B(3),Ag(a.STATUS_DATA_V3[a.LlmSuggestionStatusV3.ABSTENTION_SUCCESS].message))},mbc=function(a){a&1&&(K(0,"div",1)(1,"div",3),M(2,"mat-icon",4)(3,"b-spinner",5),L(),K(4,"span"),S(5),L()());a&2&&(a=P(2),B(3),I("large",!0),B(2),Ag(a.STATUS_DATA_V3[a.LlmSuggestionStatusV3.ABSTENTION_RUNNING].message))},nbc=function(a){a&1&&(K(0,"div",1),M(1,"mat-icon",6),K(2,"span")(3,"b"),S(4,"Reason:"),L(),S(5),L()());if(a&2){a=P(3);var b=dg(3);B(5);T(" ",
a.ABSTENTION_REASON_MESSAGES[b.rejectionReason].message)}},obc=function(a){a&1&&F(0,nbc,6,1,"div",1);a&2&&(P(2),a=dg(3),G(a&&a.rejectionReason!==void 0?0:-1))},pbc=function(a){a&1&&F(0,mbc,6,2,"div",1)(1,obc,1,1);if(a&2){a=P();var b=dg(1);G(b===a.LlmSuggestionStatusV3.ABSTENTION_RUNNING?0:b===a.LlmSuggestionStatusV3.ABSTENTION_FAILED?1:-1)}},qbc=function(a,b){a&1&&M(0,"b-planner-sidebar",8);a&2&&I("issueId",b)},rbc=function(a){a&1&&(K(0,"div",9),S(1,"View an issue details to gain AI insights."),L())},
sbc=function(a){a&1&&(K(0,"h3",10),S(1,"Thinking text:"),L(),K(2,"p",11),S(3),L());a&2&&(a=P().$implicit,B(3),T(" ",a.text," "))},tbc=function(a){a&1&&(K(0,"span",14),S(1),L(),S(2," : "),K(3,"span",15),S(4),L(),S(5,", "));a&2&&(a=P().$implicit,B(),Ag(a.key),B(3),T('"',a.value,'"'))},ubc=function(a,b){a&1&&F(0,tbc,6,2);a&2&&G(b.$implicit.value?0:-1)},vbc=function(a){a&1&&(K(0,"p"),S(1," [ "),Pf(2,ubc,1,1,null,null,Of),U(4,"keyvalue"),S(5," ] "),L());a&2&&(a=P().$implicit,B(2),Qf(W(4,0,a.arguments)))},
wbc=function(a){a&1&&(K(0,"p",16)(1,"span",14),S(2),L(),S(3," : "),K(4,"span",15),S(5),L(),S(6,", "),L());a&2&&(a=P().$implicit,B(2),Ag(a.key),B(3),T('"',a.value,'"'))},xbc=function(a,b){a&1&&F(0,wbc,7,2,"p",16);a&2&&G(b.$implicit.value?0:-1)},ybc=function(a,b){a&1&&(K(0,"div",12)(1,"p")(2,"span",13),S(3),L(),S(4," was called with: "),L(),F(5,vbc,6,2,"p"),K(6,"p")(7,"span",13),S(8,"Output:"),L()(),Pf(9,xbc,1,1,null,null,Of),U(11,"keyvalue"),L());a&2&&(a=b.$implicit,B(3),Ag(a.name),B(2),G(a.arguments?
5:-1),B(4),Qf(W(11,2,a.outputs)))},zbc=function(a){a&1&&Pf(0,ybc,12,4,"div",12,Of);a&2&&(a=P().$implicit,Qf(a.functionCalls))},Abc=function(a,b){a&1&&(K(0,"div",6)(1,"p",9),S(2),L(),F(3,sbc,4,1),F(4,zbc,2,0),L());a&2&&(a=b.$implicit,b=b.$index,B(2),T("Step ",b+1),B(),G(a.text?3:-1),B(),G(a.functionCalls?4:-1))},Bbc=function(a,b){a&1&&M(0,"li",4);a&2&&I("innerHTML",b.$implicit,Le)},Cbc=function(a){a&1&&(K(0,"div",1),M(1,"mat-icon",2),K(2,"h2"),S(3,"Problem Identification"),L()(),K(4,"ul",3),Pf(5,Bbc,
1,1,"li",4,Nf),L());a&2&&(a=P(),B(5),Qf(a.problemIdentificationSummaries))},Dbc=function(a,b){a&1&&M(0,"li",4);a&2&&I("innerHTML",b.$implicit,Le)},Ebc=function(a){a&1&&(K(0,"div",1),M(1,"mat-icon",2),K(2,"h2"),S(3,"Solution summary"),L()(),K(4,"ul",3),Pf(5,Dbc,1,1,"li",4,Nf),L());a&2&&(a=P(),B(5),Qf(a.solutionSummaries))},Fbc=function(a,b){a&1&&M(0,"li",4);a&2&&I("innerHTML",b.$implicit,Le)},Gbc=function(a){a&1&&(K(0,"div",1),M(1,"mat-icon",2),K(2,"h2"),S(3,"Code change"),L()(),K(4,"ul",3),Pf(5,Fbc,
1,1,"li",4,Nf),L());a&2&&(a=P(),B(5),Qf(a.codeChangeSummaries))},Hbc=function(a){if(a&1){var b=t();K(0,"button",10);N("click",function(){u(b);var c=P(3),d=P();return v(d.openTailwindInfoDialog(c.trajectory))});S(1," View Details ");L()}},Ibc=function(a){a&1&&F(0,Hbc,2,0,"button",9);a&2&&(a=P(2),G(a.trajectory.prompt!==""&&a.trajectory.steps.length>0?0:-1))},Jbc=function(a){if(a&1){var b=t();K(0,"button",11);N("click",function(){var c=u(b),d=P(3);c&&(d.domSafe.openInNewTab("https://cider.corp.google.com/?createWs=tailwind-"+
c+"&patchCl="+c),d.analytics.trackEvent("tailwind","editInCider",d.issueId));return v()});S(1,"Edit in Cider");L();K(2,"button",12);N("click",function(){var c=u(b),d=P(3);return v(d.handleViewInCritique(c))});S(3,"View in Critique");L()}},Kbc=function(a,b){a&1&&(K(0,"div",1),M(1,"mat-icon",2),K(2,"h2"),S(3,"Validation passed"),L()(),K(4,"ul",3)(5,"li",5)(6,"a",6),S(7,"View build results."),L()(),K(8,"li",5)(9,"a",6),S(10,"View test results."),L()()(),M(11,"span",7),K(12,"div",8),F(13,Ibc,1,1),F(14,
Jbc,4,0),L());if(a&2){var c;a=P();B(6);I("href",Gg("https://fusion2.corp.google.com/invocations/",b.buildInvocationId),Me);B(3);I("href",Gg("https://fusion2.corp.google.com/invocations/",b.testSpongeInvocationId),Me);B(4);G(a.trajectory?13:-1);B();G((c=a.runResults==null?null:a.runResults.oclNumber)?14:-1,c)}},Lbc=function(a,b){a&1&&(F(0,Cbc,7,0),F(1,Ebc,7,0),F(2,Gbc,7,0),F(3,Kbc,15,6));if(a&2){var c;G(b.problemIdentificationSummaries?0:-1);B();G(b.solutionSummaries?1:-1);B();G(b.codeChangeSummaries?
2:-1);B();G((c=b.runResults==null?null:b.runResults.validation)?3:-1,c)}},Mbc=function(a,b){a&1&&M(0,"b-bug2code-sidebar",9);a&2&&I("issueId",b)},Nbc=function(a){a&1&&(K(0,"div",10),S(1,"View an issue details to gain AI insights."),L())},Obc=function(a,b){a&1&&(K(0,"div",0),M(1,"img",1),K(2,"h3"),S(3),L(),K(4,"a",2),U(5,"async"),S(6),L()());a&2&&(a=P(),B(),I("src",b.branding==null?null:b.branding.logoUrl,Me),B(2),T("This issue is a part of the ",b.name," tracker."),B(),I("href",W(5,4,a.trackerRedirectUrl$),
Me),B(2),T(" View in ",b.name," Tracker "))},Pbc=function(a){a&1&&(K(0,"div")(1,"ol")(2,"li")(3,"label"),S(4,"Issue ID"),L(),K(5,"output"),S(6),L()(),K(7,"li")(8,"label"),S(9,"Type"),L(),K(10,"output"),S(11),L()(),K(12,"li")(13,"label"),S(14,"Status"),L(),K(15,"output"),S(16),L()()()());a&2&&(a=P(2),B(6),Ag(a.issueId),B(5),Ag(a.issueType),B(5),Ag(a.issueStatus))},Qbc=function(a){a&1&&(K(0,"div",0)(1,"div",1),M(2,"img",2),U(3,"async"),M(4,"mat-icon",3)(5,"img",2),U(6,"async"),L(),K(7,"h3",4),S(8),
U(9,"async"),L(),F(10,Pbc,17,3,"div"),K(11,"div",5)(12,"a",6),U(13,"async"),S(14,"Continue"),L()()());a&2&&(a=P(),B(2),I("src",W(3,5,a.currentTrackerLogo$),Me),B(3),I("src",W(6,7,a.trackerLogo$),Me),B(3),T(" Redirecting to ",W(9,9,a.trackerName$)," "),B(2),G(a.issue!=null?10:-1),B(2),I("href",W(13,11,a.trackerRedirectUrl$),Me))},Rbc=function(a,b){if(a instanceof Element){var c=gn(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)}}},Sbc=function(a,b){a&1&&(K(0,"h2",7),S(1),L());a&2&&(B(),T("Issue ",b))},Tbc=function(a){a&1&&Xf(0,10);a&2&&(P(3),a=Q(12),I("ngTemplateOutlet",a))},Ubc=function(a){a&1&&Xf(0,10);a&2&&(P(4),a=Q(16),I("ngTemplateOutlet",a))},Wbc=function(a){a&1&&Xf(0,12);if(a&2){a=P(2);P(3);var b=Q(14);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,Vbc,a.monorailRedirectUrl))}},Xbc=function(a){a&1&&F(0,Wbc,1,4,"ng-container",12);a&2&&
(a=P(),G(a.monorailRedirectUrl?0:-1))},Ybc=function(a,b){a&1&&F(0,Ubc,1,1,"ng-container",10)(1,Xbc,1,1);if(a&2){var c;G((c=b.status)===403?0:c===404?1:-1)}},Zbc=function(a,b){a&1&&(F(0,Tbc,1,1,"ng-container",10),F(1,Ybc,2,1),U(2,"async"));if(a&2){var c;a=P(2);G(b.success?0:-1);B();G((c=W(2,2,a.mainIssueLoadError$))?1:-1,c)}},$bc=function(a){a&1&&(F(0,Zbc,3,4),U(1,"async"));if(a&2){var b;a=P();G((b=W(1,1,a.readyForView$))?0:-1,b)}},acc=function(a){a&1&&M(0,"tailwind-planner-sidebar")},bcc=function(a){a&
1&&M(0,"tailwind-sidebar")},ccc=function(a){a&1&&M(0,"llm-chat")},dcc=function(a){a&1&&F(0,acc,1,0,"tailwind-planner-sidebar")(1,bcc,1,0,"tailwind-sidebar")(2,ccc,1,0,"llm-chat");a&2&&(a=P(),G(a.enableTailwindPlannerSidebar?0:a.enableTailwindSidebar?1:a.enableLlmChat?2:-1))},ecc=function(a,b){a&1&&F(0,dcc,3,1);a&2&&G(b.isIssueDetailsPageSidebarOpen?0:-1)},fcc=function(a){a&1&&(F(0,ecc,1,1),U(1,"async"));if(a&2){var b;a=P();G((b=W(1,1,a.issueDetailsOptions$))?0:-1,b)}},gcc=function(a){a&1&&(K(0,"a",
24),S(1,"Learn more"),L())},hcc=function(a){if(a&1){var b=t();K(0,"button",26);N("click",function(){var c=u(b),d=P(4);return v(d.editIssueService.unarchive(c))});S(1," Unarchive ");L()}},icc=function(a){a&1&&(K(0,"b-callout",16)(1,"b-callout-body"),S(2,"This issue has been archived. "),F(3,gcc,2,0,"a",24),L(),K(4,"b-callout-actions"),F(5,hcc,2,0,"button",25),U(6,"async"),L()());if(a&2){var b;a=P(3);I("messageType","caution")("format","app")("iconOverride","archive_24px");B(3);G(a.activeSession.isInternalSession()?
3:-1);B(2);G((b=W(6,5,a.id$))?5:-1,b)}},jcc=function(a){a&1&&(K(0,"a",27),S(1,"Learn more"),L())},kcc=function(a){a&1&&(K(0,"b-callout",17)(1,"b-callout-body"),S(2," This issue is in an archived component. "),F(3,jcc,2,0,"a",27),L()());a&2&&(a=P(3),I("format","app")("iconOverride","archive_24px"),B(3),G(a.activeSession.isInternalSession()?3:-1))},lcc=function(a,b){a&1&&(S(0," Reason: "),K(1,"code"),S(2),L(),S(3,". "));a&2&&(B(2),Ag(b))},mcc=function(a){a&1&&(K(0,"a",28),S(1,"Learn more"),L())},occ=
function(a){if(a&1){var b=t();K(0,"button",30);U(1,"async");U(2,"async");N("click",function(){var d=u(b),e=P(4);return v(ncc(e.editIssueService,d))});S(3," Undelete ");L()}if(a&2){a=P(4);var c;I("matTooltip",(c=W(1,2,a.undeleteButtonTooltip$))!=null?c:"")("disabled",!W(2,4,a.permissions.canUndeleteIssue$))}},pcc=function(a){a&1&&(K(0,"b-callout",18)(1,"b-callout-body"),S(2," This issue has been deleted. "),F(3,lcc,4,1),U(4,"async"),F(5,mcc,2,0,"a",28),L(),K(6,"b-callout-actions"),F(7,occ,4,6,"button",
29),U(8,"async"),L()());if(a&2){var b,c;a=P(3);B(3);G((b=(b=W(4,3,a.snapshot$))==null?null:b.deletionReason)?3:-1,b);B(2);G(a.activeSession.isInternalSession()?5:-1);B(2);G((c=W(8,5,a.id$))?7:-1,c)}},qcc=function(a){a&1&&(K(0,"a",31),S(1,"Major updates"),L())},rcc=function(a){a&1&&(K(0,"a",32),S(1,"Major edits"),L())},scc=function(a){a&1&&(K(0,"a",33),S(1,"Learn more"),L())},tcc=function(a){a&1&&(K(0,"b-callout",19)(1,"b-callout-body"),S(2," This issue has been marked as inactive. "),F(3,qcc,2,0,
"a",31)(4,rcc,2,0,"a",32),S(5," will reopen the issue. "),F(6,scc,2,0,"a",33),L()());a&2&&(a=P(3),I("format","app"),B(3),G(a.activeSession.isInternalSession()?3:4),B(3),G(a.activeSession.isInternalSession()?6:-1))},ucc=function(a,b){a&1&&(K(0,"output",37),S(1),L());a&2&&(B(),T(" ",b," "))},wcc=function(a,b){a&1&&(K(0,"a",36,6),S(2),F(3,ucc,2,1,"output",37),U(4,"async"),L());if(a&2){var c;a=b.$implicit;b=Q(1);I("routerLink",a.link)("active",b.isActive)("routerLinkActiveOptions",Jg(7,vcc));B(2);T(" ",
a.title," ");B();G((c=W(4,5,a.count$))?3:-1,c)}},xcc=function(a,b){a&1&&(K(0,"header",20),M(1,"b-tracker-banner",34),U(2,"async"),U(3,"async"),M(4,"issue-header",23),K(5,"nav",35),Pf(6,wcc,5,8,"a",36,Of),L(),M(8,"mat-tab-nav-panel",null,5),L());if(a&2){a=Q(9);var c=P(3);B();I("issueId",W(2,4,c.id$))("trackerId",W(3,6,c.issueTrackerId$));B(3);I("issueId",b);B();I("tabPanel",a);B();Qf(c.tabs)}},ycc=function(a,b){a&1&&M(0,"issue-metadata-sidebar",23);a&2&&I("issueId",b)},zcc=function(a){a&1&&(K(0,"div",
15),U(1,"async"),F(2,icc,7,7,"b-callout",16),U(3,"async"),F(4,kcc,4,3,"b-callout",17),U(5,"async"),F(6,pcc,9,7,"b-callout",18),U(7,"async"),F(8,tcc,7,3,"b-callout",19),U(9,"async"),F(10,xcc,10,8,"header",20),U(11,"async"),K(12,"div",21)(13,"article",22),M(14,"router-outlet"),L(),F(15,ycc,1,1,"issue-metadata-sidebar",23),U(16,"async"),L()());if(a&2){var b,c;a=P(2);yg("issue-editor-false",!W(1,8,a.permissions.hasAclToEdit$));B(2);G(W(3,10,a.archived$)?2:-1);B(2);G(W(5,12,a.inArchivedComponent$)?4:-1);
B(2);G(W(7,14,a.deleted$)?6:-1);B(2);G(W(9,16,a.isInactive$)?8:-1);B(2);G((b=W(11,18,a.id$))?10:-1,b);B(5);G((c=W(16,20,a.id$))?15:-1,c)}},Acc=function(a){a&1&&(K(0,"div",14),M(1,"b-tracker-redirect",38),U(2,"async"),L());a&2&&(a=P(2),B(),I("issue",W(2,1,a.issue$)))},Bcc=function(a){a&1&&(F(0,zcc,17,22,"div",13),U(1,"async"),Mf(2,Acc,3,3,"div",14));a&2&&(a=P(),G(W(1,1,a.showTrackerRedirect$)?2:0))},Ccc=function(a,b){a&1&&(K(0,"h3"),S(1," Redirecting to "),K(2,"a",39),S(3),L()());a&2&&(a=b.monorailRedirectUrl,
B(2),I("href",a,Me),B(),T(" ",a," "))},Dcc=function(a){a&1&&(M(0,"b-access-denied-metadata",40),U(1,"async"));a&2&&(a=P(2),I("issueMetadata",W(1,1,a.issueMetadata$)))},Ecc=function(a){a&1&&M(0,"b-access-denied-metadata",41)},Fcc=function(a){a&1&&(K(0,"div",14),F(1,Dcc,2,3,"b-access-denied-metadata",40)(2,Ecc,1,0,"b-access-denied-metadata",41),L());a&2&&(a=P(),B(),G(a.activeSession.isInternalSession()?1:2))},Gcc=function(a,b){a&1&&M(0,"b-issues-table",0);a&2&&(a=P(),I("issueIds",b)("menuItemFactory",
a.getMenuItems)("tableColumns",a.tableColumns)("initialSort",a.initialSort))},Icc=function(a){if(a&1){var b=t();K(0,"div",2);M(1,"img",3);K(2,"p",4);S(3," This issue has no duplicates ");L();K(4,"p",5);S(5," A duplicate is an issue with similar content. ");L();K(6,"p",5);S(7,' Any issue added here will be closed as a duplicate of this one, making this the "canonical issue". ');K(8,"a",6);S(9,"Learn more");L()();K(10,"button",7);N("click",function(){u(b);var c=P(2);return v(Hcc(c))});S(11," Add ");
L()()}a&2&&(a=P(2),B(),I("src",a.ROBOT_SLEEPING,Me))},Jcc=function(a,b){a&1&&M(0,"b-duplicates-table",10);a&2&&(a=P(2),I("issueId",b)("duplicateIds",a))},Kcc=function(a,b){a&1&&(K(0,"a",12),S(1," View as search results "),L());a&2&&I("routerLink",b.path)("queryParams",b.params)},Lcc=function(a){if(a&1){var b=t();K(0,"h4",8);S(1);U(2,"async");K(3,"button",9);N("click",function(){u(b);var e=P(2);return v(Hcc(e))});S(4," Add ");L()();F(5,Jcc,1,2,"b-duplicates-table",10);U(6,"async");K(7,"aside",11);
F(8,Kcc,2,2,"a",12);U(9,"async");L()}if(a&2){var c,d;a=P(2);B();T("Duplicates ",W(2,3,a.counts.countDuplicateDisplay$)," ");B(4);G((c=W(6,5,a.id$))?5:-1,c);B(3);G((d=W(9,7,a.dupeUrl$))?8:-1,d)}},Mcc=function(a){a&1&&(F(0,Icc,12,1,"div",2),U(1,"async"),Mf(2,Lcc,10,9));a&2&&(a=P(),G(W(1,1,a.showTable$)?2:0))},Ncc=function(a){a&1&&(K(0,"aside",1),M(1,"b-spinner"),L())},Occ=function(a,b){a&1&&(K(0,"span",9),S(1," of "),K(2,"a",10),S(3),L()());a&2&&(P(2),a=Q(11),B(2),I("routerLink",Gg("/issues/",b))("onedevHovercardTrigger",
a),B(),T(" ",b," "))},Pcc=function(a,b){a&1&&(K(0,"div")(1,"div",8),U(2,"async"),S(3),L(),F(4,Occ,4,4,"span",9),U(5,"async"),L());if(a&2){var c;a=P();B();zg(Gg("chippy ",W(2,6,a.statusCssClass$)));var d;I("title",(d=a.STATUS_JS_FULL_TEXT.get(b))!=null?d:"");B(2);var e;T(" ",(e=a.STATUS_JS_TERSE.get(b))!=null?e:""," ");B();G((c=W(5,8,a.canonicalId$))?4:-1,c)}},Qcc=function(a,b){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(),zg(Gg("b-chip squared issue-type-",b)),B(),T(" ",a.issueTypeToDisplay(b)," "))},Rcc=
function(a,b){a&1&&M(0,"b-issue-hotlists",6);a&2&&I("issueId",b)},Scc=function(a){a&1&&(M(0,"b-issue-card",11,1),U(2,"async"));if(a&2){a=Q(1);var b=P();I("onedevIsHovercardReady",a.init)("issueId",W(2,2,b.canonicalId$))}},Tcc=function(a){a&1&&Xf(0)},Vcc=function(a){a&1&&(K(0,"mat-expansion-panel",7)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),S(3,"View Steps Taken"),L()(),E(4,Tcc,1,0,"ng-container",12),L());if(a&2){a=P();var b=Q(23);B(4);I("ngTemplateOutlet",b)("ngTemplateOutletContext",
Kg(2,Ucc,a.data.trajectory))}},Wcc=function(a){a&1&&(K(0,"h3",19),S(1,"Thinking text:"),L(),K(2,"p",20),S(3),L());a&2&&(a=P().$implicit,B(3),T(" ",a.text," "))},Xcc=function(a){a&1&&(K(0,"span",23),S(1),L(),S(2," : "),K(3,"span",24),S(4),L(),S(5,", "));a&2&&(a=P().$implicit,B(),Ag(a.key),B(3),T('"',a.value,'"'))},Ycc=function(a,b){a&1&&F(0,Xcc,6,2);a&2&&G(b.$implicit.value?0:-1)},Zcc=function(a){a&1&&(K(0,"p"),S(1," [ "),Pf(2,Ycc,1,1,null,null,Of),U(4,"keyvalue"),S(5," ] "),L());a&2&&(a=P().$implicit,
B(2),Qf(W(4,0,a.arguments)))},$cc=function(a){a&1&&(K(0,"p",25)(1,"span",23),S(2),L(),S(3," : "),K(4,"span",24),S(5),L(),S(6,", "),L());a&2&&(a=P().$implicit,B(2),Ag(a.key),B(3),T('"',a.value,'"'))},adc=function(a,b){a&1&&F(0,$cc,7,2,"p",25);a&2&&G(b.$implicit.value?0:-1)},bdc=function(a,b){a&1&&(K(0,"div",21)(1,"p")(2,"span",22),S(3),L(),S(4," was called with: "),L(),F(5,Zcc,6,2,"p"),K(6,"p")(7,"span",22),S(8,"Output:"),L()(),Pf(9,adc,1,1,null,null,Of),U(11,"keyvalue"),L());a&2&&(a=b.$implicit,B(3),
Ag(a.name),B(2),G(a.arguments?5:-1),B(4),Qf(W(11,2,a.outputs)))},cdc=function(a){a&1&&Pf(0,bdc,12,4,"div",21,Of);a&2&&(a=P().$implicit,Qf(a.functionCalls))},ddc=function(a,b){a&1&&(K(0,"div",17)(1,"p",18),S(2),L(),F(3,Wcc,4,1),F(4,cdc,2,0),L());a&2&&(a=b.$implicit,b=b.$index,B(2),T("Step ",b+1),B(),G(a.text?3:-1),B(),G(a.functionCalls?4:-1))},edc=function(a,b){a&1&&(K(0,"div",13)(1,"div",14)(2,"h3",15),S(3,"Prompt:"),L(),K(4,"p",16),S(5),L()(),Pf(6,ddc,5,3,"div",17,Of),L());a&2&&(a=b.data,B(5),T(" ",
a.prompt," "),B(),Qf(a.steps))},fdc=function(a){a&1&&M(0,"div",9)},gdc=function(a){a&1&&(K(0,"div"),S(1," AI-generated code changes may contain inaccurate or offensive information that doesn't represent Google's views. "),L())},hdc=function(a){a&1&&Xf(0)},idc=function(a){a&1&&E(0,hdc,1,0,"ng-container",17);a&2&&(P(2),a=Q(5),I("ngTemplateOutlet",a))},jdc=function(a){a&1&&Xf(0)},kdc=function(a){a&1&&E(0,jdc,1,0,"ng-container",17);a&2&&(P(2),a=Q(7),I("ngTemplateOutlet",a))},ldc=function(a){a&1&&Xf(0)},
mdc=function(a){a&1&&E(0,ldc,1,0,"ng-container",18);if(a&2){P(2);a=Q(9);var b=dg(0);I("ngTemplateOutlet",a)("ngTemplateOutletContext",Kg(2,Pu,b))}},ndc=function(a){a&1&&Xf(0)},odc=function(a){a&1&&E(0,ndc,1,0,"ng-container",18);if(a&2){P(2);a=Q(9);var b=dg(0);I("ngTemplateOutlet",a)("ngTemplateOutletContext",Kg(2,Pu,b))}},pdc=function(a){a&1&&Xf(0)},qdc=function(a){a&1&&E(0,pdc,1,0,"ng-container",18);if(a&2){P(2);a=Q(11);var b=dg(0);I("ngTemplateOutlet",a)("ngTemplateOutletContext",Kg(2,Pu,b))}},
rdc=function(a){a&1&&Xf(0)},sdc=function(a){a&1&&E(0,rdc,1,0,"ng-container",18);if(a&2){P(2);a=Q(11);var b=dg(0);I("ngTemplateOutlet",a)("ngTemplateOutletContext",Kg(2,Pu,b))}},tdc=function(a){a&1&&(K(0,"div",6)(1,"div",7),M(2,"mat-icon",8),F(3,fdc,1,0,"div",9),L(),K(4,"h4",10),S(5),U(6,"async"),K(7,"xap-bubble",11)(8,"xap-icon-trigger",12),M(9,"mat-icon",13),L(),E(10,gdc,2,0,"ng-template",null,5,Og),L(),K(12,"a",14),M(13,"mat-icon",15),L()(),K(14,"div",16),F(15,idc,1,1,"ng-container")(16,kdc,1,1,
"ng-container")(17,mdc,1,4,"ng-container")(18,odc,1,4,"ng-container")(19,qdc,1,4,"ng-container")(20,sdc,1,4,"ng-container"),L()());if(a&2){a=Q(11);var b=P(),c=dg(0);B(3);G(c===b.LlmSuggestionStatus.GENERATING||c===b.LlmSuggestionStatus.LOADING?3:-1);B(2);T(" ",W(6,4,b.statusMessage$)," ");B(2);I("panelTemplate",a);B(8);G(c===b.LlmSuggestionStatus.INITIAL?15:c===b.LlmSuggestionStatus.GENERATING?16:c===b.LlmSuggestionStatus.GENERATION_SUCCESS?17:c===b.LlmSuggestionStatus.GENERATION_SUCCESS_INELIGIBLE?
18:c===b.LlmSuggestionStatus.ERROR?19:c===b.LlmSuggestionStatus.GENERATION_FAILED_INELIGIBLE?20:-1)}},vdc=function(a){if(a&1){var b=t();K(0,"button",19);N("click",function(){u(b);var c=P();return v(udc(c))});S(1," Start AI fix ");L();K(2,"button",20);N("click",function(){u(b);var c=P();return v(c.ignore())});S(3," Ignore ");L()}},wdc=function(){},xdc=function(a){a&1&&Xf(0)},ydc=function(a,b){if(a&1){var c=t();K(0,"button",21);N("click",function(){u(c);var d=P();return v(d.handleViewSummary())});S(1,
" View Summary ");L();K(2,"button",22);N("click",function(){u(c);var d=P();return v(d.handleViewInCritique())});S(3," View in Critique ");L();E(4,xdc,1,0,"ng-container",18)}a&2&&(a=b.status,P(),b=Q(13),B(4),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,Pu,a)))},zdc=function(a){if(a&1){var b=t();K(0,"button",24);N("click",function(){u(b);var c=P(2);return v(c.openTailwindInfoDialog())});S(1," View details ");L()}},Adc=function(a){a&1&&Xf(0)},Bdc=function(a,b){a&1&&(F(0,zdc,2,0,"button",23),
E(1,Adc,1,0,"ng-container",18));if(a&2){a=b.status;b=P();var c=Q(13);G(b.hasTrajectoryData()?0:-1);B();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Kg(3,Pu,a))}},Ddc=function(a){if(a&1){var b=t();K(0,"button",26);N("click",function(){u(b);var c=P(2);return v(Cdc(c))});S(1," Retry ");L()}},Edc=function(a,b){a&1&&F(0,Ddc,2,0,"button",25);a&2&&(a=b.status,b=P(),G(a!==b.LlmSuggestionStatus.GENERATION_FAILED_INELIGIBLE?0:-1))},Fdc=function(a){a&1&&M(0,"div",10)},Gdc=function(a){a&1&&(K(0,"div"),S(1,
" AI-generated code changes may contain inaccurate or offensive information that doesn't represent Google's views. "),L())},Hdc=function(a){a&1&&Xf(0)},Idc=function(a){a&1&&E(0,Hdc,1,0,"ng-container",18);a&2&&(P(2),a=Q(5),I("ngTemplateOutlet",a))},Jdc=function(a){a&1&&Xf(0)},Kdc=function(a){a&1&&E(0,Jdc,1,0,"ng-container",18);a&2&&(P(2),a=Q(7),I("ngTemplateOutlet",a))},Ldc=function(a){a&1&&Xf(0)},Ndc=function(a){a&1&&E(0,Ldc,1,0,"ng-container",19);if(a&2){P();a=dg(0);P();var b=Q(9);I("ngTemplateOutlet",
b)("ngTemplateOutletContext",Kg(2,Mdc,a))}},Odc=function(a){a&1&&Xf(0)},Pdc=function(a){a&1&&E(0,Odc,1,0,"ng-container",19);if(a&2){P();a=dg(0);P();var b=Q(9);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,Mdc,a))}},Qdc=function(a){a&1&&Xf(0)},Sdc=function(a){a&1&&E(0,Qdc,1,0,"ng-container",19);if(a&2){P();a=dg(0);var b=dg(4);P();var c=Q(11);I("ngTemplateOutlet",c)("ngTemplateOutletContext",Lg(2,Rdc,a,b))}},Tdc=function(a){a&1&&Xf(0)},Udc=function(a){a&1&&E(0,Tdc,1,0,"ng-container",19);if(a&
2){P();a=dg(0);var b=dg(4);P();var c=Q(11);I("ngTemplateOutlet",c)("ngTemplateOutletContext",Lg(2,Rdc,a,b))}},Vdc=function(a){a&1&&Xf(0)},Wdc=function(a){a&1&&E(0,Vdc,1,0,"ng-container",18);a&2&&(P(2),a=Q(3),I("ngTemplateOutlet",a))},Xdc=function(a){a&1&&(bg(0),U(1,"async"),bg(2),U(3,"async"),bg(4),U(5,"async"),K(6,"div",7)(7,"div",8),M(8,"mat-icon",9),F(9,Fdc,1,0,"div",10),L(),K(10,"h4",11),S(11),K(12,"xap-bubble",12)(13,"xap-icon-trigger",13),M(14,"mat-icon",14),L(),E(15,Gdc,2,0,"ng-template",null,
6,Og),L(),K(17,"a",15),M(18,"mat-icon",16),L()(),K(19,"div",17),F(20,Idc,1,1,"ng-container")(21,Kdc,1,1,"ng-container")(22,Ndc,1,4,"ng-container")(23,Pdc,1,4,"ng-container")(24,Sdc,1,5,"ng-container")(25,Udc,1,5,"ng-container")(26,Wdc,1,1,"ng-container"),L()());if(a&2){a=Q(16);var b=P(),c=cg(W(1,4,b.status$)),d=W(3,7,b.statusMessage$);B(4);cg(W(5,9,b.hasTrajectoryData$));B(5);G(c===b.LlmSuggestionStatusV3.GENERATING||c===b.LlmSuggestionStatusV3.LOADING?9:-1);B(2);T(" ",d," ");B();I("panelTemplate",
a);B(8);G(c===b.LlmSuggestionStatusV3.INITIAL?20:c===b.LlmSuggestionStatusV3.GENERATING?21:c===b.LlmSuggestionStatusV3.GENERATION_SUCCESS?22:c===b.LlmSuggestionStatusV3.GENERATION_SUCCESS_INELIGIBLE?23:c===b.LlmSuggestionStatusV3.ERROR?24:c===b.LlmSuggestionStatusV3.GENERATION_FAILED_INELIGIBLE?25:c===b.LlmSuggestionStatusV3.PLANNING?26:-1)}},Ydc=function(){},$dc=function(a){if(a&1){var b=t();K(0,"button",20);N("click",function(){u(b);var c=P();return v(c.ignore())});S(1," Ignore ");L();K(2,"button",
21);N("click",function(){u(b);var c=P();return v(Zdc(c))});S(3," Start AI fix ");L()}},aec=function(){},bec=function(a){a&1&&Xf(0)},cec=function(a,b){if(a&1){var c=t();K(0,"button",22);N("click",function(){u(c);var d=P();return v(d.handleViewSummary())});S(1," View Summary ");L();K(2,"button",23);N("click",function(){u(c);var d=P();return v(d.handleViewInCritique())});S(3," View in Critique ");L();E(4,bec,1,0,"ng-container",19)}a&2&&(a=b.status,P(),b=Q(13),B(4),I("ngTemplateOutlet",b)("ngTemplateOutletContext",
Kg(2,Mdc,a)))},dec=function(a){if(a&1){var b=t();K(0,"button",25);N("click",function(){u(b);var c=P(2);return v(c.openTailwindInfoDialog())});S(1," View details ");L()}},eec=function(a){a&1&&Xf(0)},fec=function(a,b){a&1&&(F(0,dec,2,0,"button",24),E(1,eec,1,0,"ng-container",19));if(a&2){a=b.status;b=b.hasTrajectoryData;P();var c=Q(13);G(b?0:-1);B();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Kg(3,Mdc,a))}},gec=function(a){if(a&1){var b=t();K(0,"button",27);N("click",function(){u(b);var c=P(2);
return v(Zdc(c))});S(1," Retry ");L()}},hec=function(a,b){a&1&&F(0,gec,2,0,"button",26);a&2&&(a=b.status,b=P(),G(a!==b.LlmSuggestionStatusV3.GENERATION_FAILED_INELIGIBLE?0:-1))},iec=function(a,b){a&1&&M(0,"b-issue-person-card",4);a&2&&I("email",b)},jec=function(a,b){a&1&&(K(0,"span",3),S(1),U(2,"shortenEmail"),L(),K(3,"onedev-hovercard",null,0),F(5,iec,1,1,"b-issue-person-card",4),L());if(a&2){var c;a=Q(4);var d=P(2);I("onedevHovercardTrigger",a);B();T(" ",Ng(2,3,d.userToLossyEmail(b),30)," ");B(4);
G((c=b.emailAddress)?5:-1,c)}},kec=function(a,b){if(a&1){var c=t();K(0,"a",5);N("click",function(d){var e=u(c),f=P(2);return v(f.scrollCommentIntoView(d,e))});S(1);L()}a&2&&(a=P(2),Jf("aria-label",Gg("Comment number ",b)),I("routerLinkObj",a.getCommentNumberLink(b)),B(),T(" #",b))},lec=function(a){a&1&&(Vf(0),S(1,","),Wf())},mec=function(a,b){a&1&&(K(0,"span",1),F(1,jec,6,6),K(2,"span"),F(3,kec,2,4,"a",2),F(4,lec,2,0,"ng-container"),L()());if(a&2){var c,d;a=b.$implicit;var e=b.$index;b=b.$count;B();
G((c=a.userPerformingActionUser)?1:-1,c);B(2);G((d=a.commentNumber)?3:-1,d);B();G(e!==b-1?4:-1)}},nec=function(a,b){a&1&&(K(0,"div",2)(1,"a",3),U(2,"removePngExtension"),M(3,"b-secure-image-widget",4),L(),M(4,"comments-info",5),L());a&2&&(a=b.$implicit,b=P(3),B(),I("href",Fg(W(2,6,a.src)),Me),B(2),I("showByDefault",!0)("src",a.srcCorp),B(),I("issueId",b.issueId)("comments",a.comments))},pec=function(a){if(a&1){var b=t();K(0,"button",8);N("click",function(){u(b);var c=P(2),d=P(2);return v(oec(d,c.length))});
S(1," Load more ");L()}},qec=function(a){if(a&1){var b=t();K(0,"button",9);N("click",function(){u(b);var c=P(4);return v(c.goToResourcesTab())});S(1," See all screenshots ");L()}},rec=function(a){a&1&&F(0,pec,2,0,"button",6)(1,qec,2,0,"button",7);a&2&&(a=P(3),G(a.paginate?0:1))},sec=function(a,b){a&1&&(K(0,"div",1),Pf(1,nec,5,8,"div",2,Nf),U(3,"async"),L(),F(4,rec,2,1));if(a&2){a=P();var c=P();yg("show-all-images",c.paginate);B();Qf(W(3,3,c.imagesToRender$));B(3);G(a.length!==b.length?4:-1)}},tec=
function(a){a&1&&(F(0,sec,5,5),U(1,"async"));if(a&2){var b;a=P();G((b=W(1,1,a.imagesToRender$))?0:-1,b)}},uec=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 g=l(f);f=g.next().value;g=g.next().value;return{src:f,comments:Oq(g)}})},vec=function(a){a&1&&(K(0,"span",1)(1,"span",4),S(2),L()());a&2&&(a=P(),B(2),T(" ",a.leftText," "))},wec=function(a){a&
1&&(K(0,"b-external-hyperlink-widget",2),S(1),L());a&2&&(a=P(),I("href",a.redirectedHref)("originalHref",a.originalHref),B(),Ag(a.linkText))},xec=function(a){a&1&&(K(0,"b-issue-reference-widget",5),S(1),L());a&2&&(a=P(2),I("href",a.redirectedHref)("issueId",a.issueId),B(),Ag(a.linkText))},yec=function(a){a&1&&(K(0,"a",6),S(1),L());a&2&&(a=P(2),I("href",Fg(a.redirectedHref),Me),B(),Ag(a.linkText))},zec=function(a){a&1&&F(0,xec,2,3,"b-issue-reference-widget",5)(1,yec,2,3,"a",6);a&2&&(a=P(),G(a.issueId?
0:1))},Aec=function(a){a&1&&(K(0,"span",3),S(1),L());a&2&&(a=P(),B(),Ag(a.rightText))},Bec=function(a){var b=document.createElement("div");a&&(0,Lh.setElementInnerHtml)(b,a);return b},Cec=function(a){a&1&&(K(0,"td"),M(1,"b-issue-priority-display",0),L(),K(2,"td",1)(3,"span",2),S(4),L(),M(5,"mentioned-link-with-context",3),L(),K(6,"td"),M(7,"comments-info",4),U(8,"toIssueEvents"),L());if(a&2){a=P().$implicit;var b=P(3);B();I("matTooltip",a.hasViewAccess?"":"Access is denied to this issue")("issuePriority",
a.priority);B(2);I("matTooltip",a.hasViewAccess?"":"Access is denied to this issue");B();var c;T(" ",(c=a.title)!=null?c:"--"," ");B();I("sourceComment",a.sourceComments[0].issueEvent)("relatedLink",a.relatedLinks[0]);B(2);I("issueId",b.issueId)("comments",W(8,8,a.sourceComments))}},Dec=function(a,b){a&1&&(K(0,"tr"),F(1,Cec,9,10),L());a&2&&(a=b.$implicit,B(),G(a.sourceComments&&a.relatedLinks?1:-1))},Eec=function(a){if(a&1){var b=t();K(0,"button",7);N("click",function(){u(b);var c=P(4);c.lastRenderedMentionedIssueIndex$.next(c.lastRenderedMentionedIssueIndex$.value+
100);return v()});S(1," Load more ");L()}},Fec=function(a){if(a&1){var b=t();K(0,"button",8);N("click",function(){u(b);var c=P(4);return v(c.goToResourcesTab())});S(1," See all mentioned issues ");L()}},Gec=function(a){a&1&&(K(0,"div"),F(1,Eec,2,0,"button",5)(2,Fec,2,0,"button",6),L());a&2&&(a=P(3),B(),G(a.paginate?1:2))},Hec=function(a,b){a&1&&(K(0,"section")(1,"table"),Pf(2,Dec,2,1,"tr",null,Of),L(),F(4,Gec,3,1,"div"),L());a&2&&(a=P(),B(2),Qf(a),B(2),G(b.length!==a.length?4:-1))},Iec=function(a){a&
1&&(F(0,Hec,5,1,"section"),U(1,"async"));if(a&2){var b;a=P();G((b=W(1,1,a.allMentionedIssues$))?0:-1,b)}},Jec=function(a,b){a&1&&(K(0,"div",0),M(1,"mentioned-link-with-context",1)(2,"comments-info",2),U(3,"toComments"),L());a&2&&(a=b.$implicit,b=P(3),B(),I("sourceComment",a[0].comment)("relatedLink",a[0]),B(),I("issueId",b.issueId)("comments",W(3,4,a)))},Kec=function(a){if(a&1){var b=t();K(0,"button",5);N("click",function(){u(b);var c=P(4);c.lastRenderedRelatedLinkIndex$.next(c.lastRenderedRelatedLinkIndex$.value+
100);return v()});S(1," Load more ");L()}},Lec=function(a){if(a&1){var b=t();K(0,"button",6);N("click",function(){u(b);var c=P(4);return v(c.goToResourcesTab())});S(1," See all related links ");L()}},Mec=function(a){a&1&&(K(0,"div"),F(1,Kec,2,0,"button",3)(2,Lec,2,0,"button",4),L());a&2&&(a=P(3),B(),G(a.paginate?1:2))},Oec=function(a,b){a&1&&(Pf(0,Jec,4,6,"div",0,Nec),F(2,Mec,3,1,"div"));a&2&&(a=P(),Qf(b),B(2),G(a.length!==b.length?2:-1))},Pec=function(a){a&1&&(F(0,Oec,3,1),U(1,"async"));if(a&2){var b;
a=P();G((b=W(1,1,a.linkGroupsToRender$))?0:-1,b)}},Rec=function(a,b){var c=a.filter(function(d){return L$a(d[0])});a=a.filter(function(d){return!L$a(d[0])});return Qec([].concat(n(c),n(a)).slice(0,b),"ASCENDING")},Sec=function(a){a&1&&M(0,"mat-icon",14)},Tec=function(a){a&1&&(S(0),U(1,"async"));if(a&2){a=P(2);var b;T("Screenshots (",(b=W(1,1,a.distinctImageLinksCount$))!=null?b:0,")")}},Wec=function(a,b){if(a&1){var c=t();K(0,"inline-images-summary",16);U(1,"async");N("click",function(){u(c);var e=
P(3);Uec(e.issueSummaryTracking,e.issueId,e.TabKeys.IMAGES);return v()});L()}if(a&2){a=P(3);var d;I("issueId",b)("imageLinks",(d=W(1,2,a.imageLinks$))!=null?d:Jg(4,Vec))}},Xec=function(a){a&1&&(F(0,Wec,2,5,"inline-images-summary",15),U(1,"async"));if(a&2){var b;a=P(2);G((b=W(1,1,a.issueId$))?0:-1,b)}},Yec=function(a){a&1&&M(0,"mat-icon",17)},Zec=function(a){a&1&&(S(0),U(1,"async"));if(a&2){a=P(2);var b;T("Mentioned issues (",(b=W(1,1,a.distinctIssuesCount$))!=null?b:0,")")}},$ec=function(a,b){if(a&
1){var c=t();K(0,"b-mentioned-issues",19);N("click",function(){u(c);var d=P(3);Uec(d.issueSummaryTracking,d.issueId,d.TabKeys.MENTIONED_ISSUES);return v()});L()}a&2&&(a=P(3),I("issueReferences",b)("currentIssueId",a.issueId))},afc=function(a){a&1&&(F(0,$ec,1,2,"b-mentioned-issues",18),U(1,"async"));if(a&2){var b;a=P(2);G((b=W(1,1,a.issues$))?0:-1,b)}},bfc=function(a){a&1&&M(0,"mat-icon",20)},cfc=function(a){a&1&&(S(0),U(1,"async"));if(a&2){a=P(2);var b;T("Links (",(b=W(1,1,a.distinctOtherLinksCount$))!=
null?b:0,")")}},dfc=function(a){if(a&1){var b=t();K(0,"related-links-widget",21);U(1,"async");N("click",function(){u(b);var d=P(2);Uec(d.issueSummaryTracking,d.issueId,d.TabKeys.LINKS);return v()});L()}if(a&2){a=P(2);var c;I("links",(c=W(1,2,a.otherLinks$))!=null?c:Jg(4,Vec))("issueId",a.issueId)}},efc=function(a){a&1&&M(0,"mat-icon",22)},ffc=function(a){a&1&&S(0,"Similar issues")},gfc=function(a,b){if(a&1){var c=t();K(0,"suggested-similar-issues",24);N("click",function(){u(c);var e=P(5);Uec(e.issueSummaryTracking,
e.issueId,e.TabKeys.SIMILAR_ISSUES);return v()});L()}if(a&2){a=P();var d=P(4);I("issueId",d.issueId)("similarIssueIds",a)("similarIssuesEnrichments",b)}},hfc=function(a){a&1&&(F(0,gfc,1,3,"suggested-similar-issues",23),U(1,"async"));if(a&2){var b;a=P(4);G((b=W(1,1,a.similarIssuesEnrichments$))?0:-1,b)}},ifc=function(a){a&1&&(F(0,hfc,2,3),U(1,"async"));if(a&2){var b;a=P(3);G((b=W(1,1,a.similarIssueIds$))?0:-1,b)}},jfc=function(a){a&1&&(K(0,"expandable-tab",9),E(1,efc,1,0,"ng-template",4)(2,ffc,1,0,
"ng-template",5)(3,ifc,2,3,"ng-template",6),L());a&2&&(a=P(2),I("key",a.TabKeys.SIMILAR_ISSUES))},kfc=function(a){a&1&&M(0,"mat-icon",25)},lfc=function(a){a&1&&S(0,"Deduplicate")},mfc=function(a,b){a&1&&M(0,"b-recommendation",26);a&2&&I("recommendation",b)},nfc=function(a){a&1&&(F(0,mfc,1,1,"b-recommendation",26),U(1,"async"));if(a&2){var b;a=P(2);G((b=W(1,1,a.dedupeRecommendation$))?0:-1,b)}},ofc=function(a){a&1&&M(0,"mat-icon",27)},pfc=function(a){a&1&&S(0,"Assign to reporter")},qfc=function(a,
b){a&1&&M(0,"b-recommendation",26);a&2&&I("recommendation",b)},rfc=function(a){a&1&&(F(0,qfc,1,1,"b-recommendation",26),U(1,"async"));if(a&2){var b;a=P(3);G((b=W(1,1,a.assignToReporterRecommendation$))?0:-1,b)}},sfc=function(a){a&1&&(K(0,"expandable-tab",11),E(1,ofc,1,0,"ng-template",4)(2,pfc,1,0,"ng-template",5)(3,rfc,2,3,"ng-template",6),L());a&2&&(a=P(2),I("key",a.TabKeys.ASSIGN_TO_REPORTER))},tfc=function(a){a&1&&M(0,"mat-icon",28)},ufc=function(a){a&1&&S(0,"Reroute")},vfc=function(a,b){a&1&&
M(0,"b-recommendation",26);a&2&&I("recommendation",b)},wfc=function(a){a&1&&(F(0,vfc,1,1,"b-recommendation",26),U(1,"async"));if(a&2){var b;a=P(3);G((b=W(1,1,a.componentRoutingRecommendation$))?0:-1,b)}},xfc=function(a){a&1&&(K(0,"expandable-tab",12),E(1,tfc,1,0,"ng-template",4)(2,ufc,1,0,"ng-template",5)(3,wfc,2,3,"ng-template",6),L());a&2&&(a=P(2),I("key",a.TabKeys.COMPONENT_ROUTING))},yfc=function(a){a&1&&M(0,"mat-icon",22)},zfc=function(a){a&1&&S(0," AI Suggestions ")},Afc=function(a,b){a&1&&
M(0,"b-recommendation",29);a&2&&I("showTitle",!0)("recommendation",b)},Bfc=function(a){a&1&&(F(0,Afc,1,2,"b-recommendation",29),U(1,"async"));if(a&2){var b;a=P(3);G((b=W(1,1,a.anyIssueEditRecommendation$))?0:-1,b)}},Cfc=function(a){a&1&&(K(0,"expandable-tab",13),E(1,yfc,1,0,"ng-template",4)(2,zfc,1,0,"ng-template",5)(3,Bfc,2,3,"ng-template",6),L());a&2&&(a=P(2),I("key",a.TabKeys.ANY_ISSUE_EDIT))},Efc=function(a,b){if(a&1){var c=t();K(0,"expandable-tabs",2);N("expandedTabsChanged",function(d){var e=
u(c),f=P();return v(f.onTabExpanded$.emit({expandedTabKeys:d,allTabKeys:e}))})("contentShownChanged",function(d){u(c);var e=P(),f=e.issueSummaryTracking;e=e.issueId;for(var g=l(Dfc),k=g.next();!k.done;k=g.next())k=k.value,d.has(k)?(Qu(f.issueInteractionsTracking,e,k+"-content-shown"),f.issueInteractionsTracking.getState(e).variations.delete(k+"-content-not-shown")):(Qu(f.issueInteractionsTracking,e,k+"-content-not-shown"),f.issueInteractionsTracking.getState(e).variations.delete(k+"-content-shown"));
d.size>0?(f.recordImpressionOnce(),Qu(f.issueInteractionsTracking,e,"SW-content-shown"),f.issueInteractionsTracking.getState(e).variations.delete("SW-content-not-shown")):(Qu(f.issueInteractionsTracking,e,"SW-content-not-shown"),f.issueInteractionsTracking.getState(e).variations.delete("SW-content-shown"));return v()});K(1,"expandable-tab",3);E(2,Sec,1,0,"ng-template",4)(3,Tec,2,3,"ng-template",5)(4,Xec,2,3,"ng-template",6);L();K(5,"expandable-tab",7);E(6,Yec,1,0,"ng-template",4)(7,Zec,2,3,"ng-template",
5)(8,afc,2,3,"ng-template",6);L();K(9,"expandable-tab",8);E(10,bfc,1,0,"ng-template",4)(11,cfc,2,3,"ng-template",5)(12,dfc,2,5,"ng-template",6);L();F(13,jfc,4,1,"expandable-tab",9);U(14,"async");K(15,"expandable-tab",10);E(16,kfc,1,0,"ng-template",4)(17,lfc,1,0,"ng-template",5)(18,nfc,2,3,"ng-template",6);L();F(19,sfc,4,1,"expandable-tab",11);F(20,xfc,4,1,"expandable-tab",12);F(21,Cfc,4,1,"expandable-tab",13);U(22,"async");L()}a&2&&(a=P(),I("tabKeys",b)("expandedTabs",a.initiallyExpandedTabs),B(),
I("key",a.TabKeys.IMAGES),B(4),I("key",a.TabKeys.MENTIONED_ISSUES),B(4),I("key",a.TabKeys.LINKS),B(4),G(W(14,10,a.shouldShowSimilarIssues$)?13:-1),B(2),I("key",a.TabKeys.DUPES),B(4),G(a.enableNeedsInfoUi?19:-1),B(),G(a.activeSession.isInternalSession()?20:-1),B(),G(W(22,12,a.shouldShowAnyIssueEditSuggestion$)?21:-1))},Ffc=function(a,b){a&1&&(K(0,"li",3)(1,"div",6),M(2,"b-user-image",7),L(),K(3,"div",8),M(4,"b-user-display",9)(5,"b-formatted-date-time",10),K(6,"p",11),S(7," Formatting: "),K(8,"code",
12),S(9),L()(),M(10,"br"),K(11,"span",13)(12,"b-person-hovercard",14),U(13,"omitObfuscatedEmail"),S(14),U(15,"appendDomain"),L()(),S(16),L(),K(17,"pre"),S(18),L()());a&2&&(a=b.$implicit,b=b.$index,B(2),I("email",a.author==null?null:a.author.emailAddress),B(2),I("model",a.author),B(),I("timestamp",a.updateTime),B(4),T(" ",a.formattingMode," "),B(3),I("email",W(13,8,a.author==null?null:a.author.emailAddress)),B(2),T(" <",W(15,10,a.author==null?null:a.author.emailAddress),"> "),B(2),T(" #",b+1," "),
B(2),Ag(a.updateText))},Gfc=function(a){if(a&1){var b=t();K(0,"button",9);N("click",function(){u(b);var c=P(3);return v(c.editStatusUpdate())});S(1," Edit ");L()}},Hfc=function(a){a&1&&(K(0,"header",4)(1,"h4",6),S(2,"Status Update"),L(),K(3,"p",7),S(4,"No update yet."),L(),F(5,Gfc,2,0,"button",8),U(6,"async"),L());a&2&&(a=P(2),B(5),G(W(6,1,a.showEditButton$)?5:-1))},Jfc=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(4);return v(Ifc(c))});S(1," Mark as fresh ");L()}},
Kfc=function(a){if(a&1){var b=t();K(0,"button",16);N("click",function(){u(b);var c=P(3);return v(c.editStatusUpdate())});S(1," Edit ");L();F(2,Jfc,2,0,"button",17);U(3,"async")}a&2&&(a=P(3),B(2),G(W(3,1,a.freshnessIndicator$)===a.Freshness.STALE?2:-1))},Lfc=function(a){a&1&&M(0,"mat-icon",19)},Mfc=function(a,b){a&1&&(F(0,Lfc,1,0,"mat-icon",19),U(1,"async"),S(2," Updated by "),K(3,"span",20),S(4),U(5,"shortenEmail"),L(),M(6,"b-formatted-date-time",21),K(7,"onedev-hovercard",null,0),M(9,"b-issue-person-card",
22),L());if(a&2){a=Q(8);var c=P(3);G(W(1,5,c.freshnessIndicator$)===c.Freshness.FRESH?0:-1);B(3);I("onedevHovercardTrigger",a);B();var d;T(" ",W(5,7,(d=b.author==null?null:b.author.emailAddress)!=null?d:"")," ");B(2);I("timestamp",b.updateTime);B(3);var e;I("email",(e=b.author==null?null:b.author.emailAddress)!=null?e:"")}},Nfc=function(a,b){a&1&&M(0,"b-actions-menu",14);a&2&&I("buttonLabel","Status Update actions")("menuItems",b)},Ofc=function(a,b){a&1&&(M(0,"b-note-container",23),U(1,"async"),U(2,
"async"));if(a&2){a=P();var c=P(3),d;I("issueId",a.issueId)("issueAccessLevel",W(1,4,c.accessLevel$))("note",b)("formattingMode",(d=W(2,6,c.formattingMode$))!=null?d:c.FormattingMode.PLAIN)}},Pfc=function(a){if(a&1){var b=t();K(0,"button",25);N("click",function(){u(b);var c=P(4);return v(c.isCollapsed=!1)});S(1," Show More ");L()}},Qfc=function(a){a&1&&(K(0,"div",15)(1,"div",null,1),F(3,Ofc,3,8,"b-note-container",23),U(4,"async"),L(),F(5,Pfc,2,0,"button",24),L());if(a&2){var b;a=P(3);B();yg("collapsed",
a.isCollapsed);B(2);G((b=W(4,4,a.statusUpdateAsNote$))?3:-1,b);B(2);G(a.isCollapsed?5:-1)}},Rfc=function(a){a&1&&(K(0,"div",5)(1,"header",10)(2,"div",11)(3,"h4",12),S(4,"Status Update"),L(),F(5,Kfc,4,3),U(6,"async"),L(),K(7,"div",13),F(8,Mfc,10,9),U(9,"async"),F(10,Nfc,1,2,"b-actions-menu",14),U(11,"async"),L()(),F(12,Qfc,6,6,"div",15),U(13,"async"),L());if(a&2){var b,c,d;a=P(2);B(5);G(W(6,4,a.showEditButton$)?5:-1);B(3);G((b=W(9,6,a.statusUpdate$))?8:-1,b);B(2);G((c=W(11,8,a.menuItems$))?10:-1,c);
B(2);G((d=W(13,10,a.statusUpdate$))?12:-1,d)}},Tfc=function(a,b){a&1&&(K(0,"div"),U(1,"async"),M(2,"mat-icon",3),F(3,Hfc,7,3,"header",4),F(4,Rfc,14,12,"div",5),L());a&2&&(a=P(),zg(Gg("carded margin-s-sides margin-s-bottom bg-main highlighted-left flex-kids-x ",W(1,9,a.semanticClass$))),yg("display-none",Kg(11,Sfc,a.UiState.LOADING).includes(b))("short-height",a.UiState.EMPTY===b),B(3),G(b===a.UiState.EMPTY?3:-1),B(),G(b===a.UiState.NORMAL?4:-1))},Ufc=function(a){switch(a){case 1:return"noUpdate";
case 2:return"hasUpdate";case 0:return"";default:return""}},Vfc=function(a){a&1&&M(0,"tailwind-action-bar",7);a&2&&(a=P(),I("issueId",a))},Wfc=function(a){a&1&&M(0,"llm-suggested-bug-fix",7);a&2&&(a=P(),I("issueId",a))},Xfc=function(a,b){a&1&&(M(0,"issue-description-area",5),K(1,"div",6),U(2,"async"),M(3,"b-insights-enrichments",null,0),L(),M(5,"status-update",7),F(6,Vfc,1,1,"tailwind-action-bar",7)(7,Wfc,1,1,"llm-suggested-bug-fix",7),M(8,"b-issue-description",8));if(a&2){a=Q(4);var c=P();I("id",
b);B();yg("hidden",!W(2,6,a.shouldShowInsights$));B(4);I("issueId",b);B();G(c.enableTailwindV3?6:c.enableTailwind?7:-1);B(2);I("id",b)}},Yfc=function(a,b){a&1&&(M(0,"issue-summary-card",9,1),U(2,"async"));a&2&&(a=Q(1),yg("hidden",!W(2,3,a.shouldShowSummaryCard$)),I("issueId",b))},Zfc=function(a){a&1&&M(0,"issue-event-list",11);a&2&&(a=P(),I("id",a))},$fc=function(a){a&1&&M(0,"issue-event-list",11);a&2&&(a=P(),I("id",a))},agc=function(a,b){a&1&&(K(0,"div",10),M(1,"b-event-stream-header"),F(2,Zfc,1,
1,"issue-event-list",11),M(3,"b-post-comment",7),F(4,$fc,1,1,"issue-event-list",11),L());a&2&&(a=P(),yg("recent-first",a.showRecentEventsFirst),B(2),G(a.showRecentEventsFirst?-1:2),B(),I("issueId",b),B(),G(a.showRecentEventsFirst?4:-1))},bgc=function(a){a&1&&M(0,"b-spinner")},cgc=function(a){a&1&&M(0,"mat-icon",1)},dgc=function(a){a&1&&(K(0,"mat-icon"),S(1,"done"),L())},egc=function(a){a&1&&(K(0,"mat-icon"),S(1),L());a&2&&(a=P(),B(),Ag(a.icon))},fgc=function(a){a&1&&M(0,"b-formatted-comment-presenter",
1);a&2&&(a=P(),I("formattedComment",a.statusUpdate.formattedText))},ggc=function(a){a&1&&(K(0,"p"),S(1),L());a&2&&(a=P(),B(),Ag(a.statusUpdate.updateText))},hgc=function(a){a&1&&(K(0,"p"),S(1),L());a&2&&(a=P(),B(),Ag(a.statusUpdate.updateText))},igc=function(a){a&1&&(K(0,"section")(1,"h4"),M(2,"mat-icon",1),S(3),L(),M(4,"inline-images-summary",2)(5,"br")(6,"hr",3),L());if(a&2){a=P(2);var b=P();B(3);T(" Screenshots (",a.length,") ");B();I("issueId",b.issueId)("imageLinks",a)("paginate",!0)}},jgc=function(a){a&
1&&F(0,igc,7,4,"section");a&2&&(a=P(),G(a.length?0:-1))},kgc=function(a){a&1&&F(0,jgc,1,1);a&2&&(a=P(2),G(a.isInternalSession?0:-1))},lgc=function(a){a&1&&(K(0,"section")(1,"h4"),M(2,"mat-icon",4),S(3),L(),M(4,"b-mentioned-issues",5)(5,"br")(6,"hr",3),L());if(a&2){a=P();var b=P();B(3);T(" Mentioned issues (",a.length,") ");B();I("issueReferences",a)("currentIssueId",b.issueId)("paginate",!0)}},mgc=function(a,b){a&1&&F(0,lgc,7,4,"section");a&2&&G(b.length?0:-1)},ngc=function(a){a&1&&(K(0,"section")(1,
"h4"),M(2,"mat-icon",6),S(3),L(),M(4,"related-links-widget",7),L());if(a&2){a=P();var b=P();B(3);T(" Links (",a.length,") ");B();I("links",a)("issueId",b.issueId)("paginate",!0)}},ogc=function(a,b){a&1&&F(0,ngc,5,4,"section");a&2&&G(b.length?0:-1)},pgc=function(a){a&1&&(F(0,kgc,1,1),U(1,"async"),F(2,mgc,1,1),U(3,"async"),F(4,ogc,1,1),U(5,"async"));if(a&2){var b,c,d;a=P();G((b=W(1,3,a.imageLinks$))?0:-1,b);B(2);G((c=W(3,5,a.issueReferences$))?2:-1,c);B(2);G((d=W(5,7,a.otherLinks$))?4:-1,d)}},qgc=function(a,
b){a&1&&M(0,"b-package-mentions-listing",2);if(a&2){a=b.$implicit;b=P(2);var c=P(),d=P();I("issueId",c)("packageMentionSet",a)("displayPackageName",d.displayPackageNames(b))}},rgc=function(a){if(a&1){var b=t();Pf(0,qgc,1,3,"b-package-mentions-listing",2,Of);K(2,"p",3)(3,"a",4);N("click",function(){u(b);var c=P(3);return v(c.trackSqueegeeClick())});S(4,"View in Squeegee");L()()}a&2&&(a=P(),Qf(a.mentions.packageMentionSet),B(3),I("href",a.link,Me))},sgc=function(a){a&1&&(K(0,"div",1),M(1,"img",5),K(2,
"p",6),S(3," This issue has no TODOs "),L(),K(4,"p",7),S(5," Buganizer uses a separate service to look for TODOs in the codebase. It didn't find any. "),K(6,"a",8),S(7,"Learn more"),L()()());a&2&&(a=P(3),B(),I("src",a.ROBOT_SLEEPING,Me))},tgc=function(a,b){a&1&&F(0,rgc,5,1)(1,sgc,8,1,"div",1);a&2&&G(b.mentions&&b.mentions.totalMentions>0?0:1)},ugc=function(a){a&1&&(F(0,tgc,2,1),U(1,"async"));if(a&2){var b;a=P();G((b=W(1,1,a.codeMentionsState$))?0:-1,b)}},vgc=function(a){a&1&&M(0,"b-spinner",4);a&
2&&I("large",!0)},wgc=function(a){a&1&&M(0,"b-hotlist-grid",5);a&2&&(a=P(),I("hotlists",a.hotlists))},xgc=function(a){a&1&&(K(0,"div",6),M(1,"b-spinner"),K(2,"span"),S(3),L()());a&2&&(a=P(),B(3),T(" Searching",a.query?" for "+a.query:"","..."))},ygc=function(a){a&1&&(S(0," No issues match your search. "),M(1,"b-inactive-issues-search-warning"))},zgc=function(a){a&1&&S(0," Use search box to find issues. ")},Bgc=function(a){a&1&&(K(0,"a",10),S(1," Click to see all open issues"),L());a&2&&I("queryParams",
Jg(1,Agc))},Cgc=function(a){a&1&&(K(0,"a",11),S(1,"Learn more about searching"),L())},Dgc=function(a){a&1&&(K(0,"div",7),M(1,"img",9),F(2,ygc,2,0)(3,zgc,1,0),F(4,Bgc,2,2,"a",10)(5,Cgc,2,0,"a",11),L());a&2&&(a=P(),I("bFocus",!0),B(),I("src",a.SPACE_EMPTY_STATE,Me),B(),G(a.query?2:3),B(2),G(a.currentTracker?4:5))},Egc=function(a){if(a&1){var b=t();K(0,"div",8)(1,"b-issues-grid",12);N("init",function(c){u(b);var d=P();return v(d.resultsGrid=c)});Eg("columnsChange",function(c){u(b);var d=P();Dg(d.issueColumns,
c)||(d.issueColumns=c);return v(c)});N("columnsChange",function(){u(b);var c=P();return v(c.onColumnsChange())})("sortChange",function(c){u(b);var d=P();return v(d.setSort(c.field,c.direction))})("rowClick",function(c){u(b);var d=P();return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){u(b);var c=P();return v(Ru(c,c.page,1))})("onPrevPage",function(){u(b);var c=P();return v(Ru(c,c.page,-1))});L()()}a&2&&(a=P(),B(),I("searchResults",a.searchResults)("focusedRowIndex",a.focusedRowIndex),
Cg("columns",a.issueColumns),I("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort())("enableSidebar",!0))},Fgc=function(a){a&1&&(K(0,"div",3)(1,"h2"),S(2,"Manage SLOs"),L(),K(3,"p",5),S(4,"You have admin rights for all SLOs listed below."),L()())},Ggc=function(a){a&1&&M(0,"b-spinner",4);a&2&&I("large",!0)},Hgc=function(a){a&1&&M(0,"b-slo-grid",6);a&2&&(a=P(2),I("slos",a.activeSlos))},Igc=function(a){a&1&&(K(0,"div",7),S(1,"You have no Active SLOs"),L())},Jgc=function(a){a&1&&M(0,"b-slo-grid",
6);a&2&&(a=P(3),I("slos",a.archivedSlos))},Kgc=function(a){a&1&&(K(0,"p",12),S(1," You have no archived SLOs. "),L())},Lgc=function(a){a&1&&(K(0,"div",11),F(1,Jgc,1,1,"b-slo-grid",6)(2,Kgc,2,0,"p",12),L());a&2&&(a=P(2),B(),G(a.archivedSlos.length?1:2))},Mgc=function(a){if(a&1){var b=t();F(0,Hgc,1,1,"b-slo-grid",6)(1,Igc,2,0,"div",7);K(2,"button",8);N("click",function(){u(b);var c=P();c.areArchivedSlosExpanded=!c.areArchivedSlosExpanded;return v()});K(3,"h4",9);M(4,"mat-icon",10);S(5);L()();F(6,Lgc,
3,1,"div",11)}a&2&&(a=P(),G(a.activeSlos.length?0:1),B(4),yg("rotate-180",a.areArchivedSlosExpanded),I("svgIcon","arrow-dropdown"),B(),T(" Archived SLOs (",a.archivedSlos.length,") "),B(),G(a.areArchivedSlosExpanded?6:-1))},Ngc=function(a){if(a&1){var b=t();K(0,"button",21);N("click",function(){u(b);var c=P();return v(c.save())});S(1," Save ");L()}a&2&&(a=P(),I("disabled",a.validationForm.invalid))},Ogc=function(a,b){a&1&&(K(0,"b-callout",22)(1,"b-callout-body"),S(2),L()());a&2&&(B(2),T(" Other existing configurations in this component already apply for these issue types: ",
b," "))},Pgc=function(a){a&1&&M(0,"mat-icon",28);a&2&&(P(),a=dg(2),I("svgIcon",a))},Qgc=function(a,b){a&1&&(K(0,"mat-checkbox",26)(1,"div",27),bg(2),F(3,Pgc,1,1,"mat-icon",28),S(4),L()());if(a&2){var c=b.$implicit;a=P(2);b=c.key;I("formControl",c.value);B(2);c=cg(a.constants.issueTypeIcons.get(b));B();G(c?3:-1);B();T(" ",a.issueTypeToDisplay(b)," ")}},Sgc=function(a){a&1&&(F(0,Ogc,3,1,"b-callout",22),U(1,"async"),K(2,"h2",23),S(3,"Issue types"),L(),K(4,"div",24),S(5," Select one or more issue types that this field configuration applies to. "),
L(),K(6,"div",25),Pf(7,Qgc,5,4,"mat-checkbox",26,Rgc),U(9,"keyvalue"),L());if(a&2){var b;a=P();G((b=W(1,1,a.conflictingIssueTypes$))?0:-1,b);B(7);Qf(W(9,3,a.issueTypesForms))}},Tgc=function(a,b){a&1&&(K(0,"td",29)(1,"strong"),S(2),L()());a&2&&(a=b.$implicit,b=P(),Jf("colspan",b.displayedColumns.length),B(2),Ag(a.text))},Ugc=function(a){if(a&1){var b=t();K(0,"th",30)(1,"mat-checkbox",31);N("change",function(){u(b);var d=P(),e=dg(11);d=l(d.customFieldRows);for(var f=d.next();!f.done;f=d.next())f.value.formControl.setValue((e===
"all"?"hidden":"visible")==="visible");return v()});S(2," Is Visible? ");L()()}if(a&2){a=P();var c=dg(11);B();I("disabled",a.isReadOnly)("checked",c==="all")("indeterminate",c==="some")}},Vgc=function(a,b){a&1&&(K(0,"td",29),M(1,"mat-checkbox",32),L());a&2&&(a=b.$implicit,B(),I("formControl",a.formControl))},Wgc=function(a){a&1&&(K(0,"th",30),S(1," Name"),L())},Xgc=function(a,b){a&1&&(K(0,"td",29),S(1),L());a&2&&(a=b.$implicit,B(),T(" ",a.customField.name," "))},Ygc=function(a){a&1&&(K(0,"th",30),
S(1," ID"),L())},Zgc=function(a,b){a&1&&(K(0,"td",29)(1,"strong"),S(2),L()());a&2&&(a=b.$implicit,B(2),Ag(a.customField.customFieldId))},$gc=function(a){a&1&&(K(0,"th",30),S(1," Type"),L())},ahc=function(a,b){a&1&&(K(0,"td",29),S(1),U(2,"enumToHuman"),L());if(a&2){a=b.$implicit;B();var c;T(" ",W(2,1,(c=a.customField.type)!=null?c:null)," ")}},bhc=function(a){a&1&&(K(0,"th",30),S(1," Description"),L())},chc=function(a,b){a&1&&(K(0,"td",29),S(1),L());a&2&&(a=b.$implicit,B(),T(" ",a.customField.description,
" "))},dhc=function(a){a&1&&(K(0,"th",30),S(1," Required?"),L())},ehc=function(a,b){a&1&&(K(0,"td",29),S(1),U(2,"yesNo"),L());a&2&&(a=b.$implicit,B(),T(" ",W(2,1,a.customField.required)," "))},fhc=function(a){a&1&&(K(0,"th",30),S(1," Default"),L())},ghc=function(a,b){a&1&&(K(0,"td",29),M(1,"b-custom-field-value-display",33),L());a&2&&(a=b.$implicit,B(),I("customFieldValue",a.customField.typedDefaultValue))},hhc=function(a){a&1&&M(0,"tr",34)},ihc=function(a,b){a&1&&M(0,"tr",35);a&2&&yg("disabled-field",
!b.$implicit.formControl.value)},jhc=function(a){a&1&&M(0,"tr",35)},mhc=function(a){if(a&1){var b=t();K(0,"b-field-configuration-editor",8);N("onSave",function(e){u(b);var f=P(2),g=dg(0);return v(khc(f,g.config,e))})("onCancel",function(){u(b);var e=P(2);return v(e.cancelEdit())});L()}if(a&2){a=P(2);var c=dg(0),d=lhc(a,c.config);I("currentComponentId",a.currentComponentId)("customFields",a.customFields)("configUnderEdit",c.config)("isReadOnly",!a.isAdmin)("existingConfiguredIssueTypes",d)}},ohc=function(a){if(a&
1){var b=t();K(0,"b-field-configuration-editor",9);N("onCancel",function(){u(b);var d=P(2);return v(d.cancelEdit())});L()}if(a&2){a=P(2);var c=dg(0);I("currentComponentId",c.config.componentId)("customFields",nhc(a,c.config))("configUnderEdit",c.config)("isReadOnly",!0)}},qhc=function(a){if(a&1){var b=t();K(0,"b-field-configuration-editor",10);N("onSave",function(e){u(b);var f=P(2);return v(phc(f,e))})("onCancel",function(){u(b);var e=P(2);return v(e.cancelEdit())});L()}if(a&2){a=P(2);var c=dg(0),
d=lhc(a,c.config);I("currentComponentId",a.currentComponentId)("customFields",a.customFields)("disallowIssueTypes",c.disallowIssueTypes)("configUnderEdit",c.config)("existingConfiguredIssueTypes",d)}},shc=function(a){a&1&&(K(0,"a",12),S(1," Learn more "),L());a&2&&(P(3),I("href",rhc(),Me))},thc=function(a,b){a&1&&(K(0,"td",29)(1,"strong"),S(2),L()());a&2&&(a=b.$implicit,Jf("colspan",5),B(2),Ag(a.text))},uhc=function(a){a&1&&(K(0,"th",30),S(1," Name"),L())},vhc=function(a,b){a&1&&(K(0,"td",29),S(1),
L());a&2&&(a=b.$implicit,B(),T(" ",a.name," "))},whc=function(a){a&1&&(K(0,"th",30)(1,"div",31),S(2," Applicable Issue Types "),M(3,"mat-icon",32),K(4,"onedev-hovercard",null,3)(6,"div",33)(7,"div",34),S(8," Configurations with applicable issue types appearing crossed out will not be applied to those types, due to another configuration taking precedence. "),L()()()()());a&2&&(a=Q(5),B(3),I("onedevHovercardTrigger",a))},xhc=function(a){a&1&&Xf(0)},zhc=function(a,b){a&1&&(K(0,"td",29),E(1,xhc,1,0,"ng-container",
35),L());a&2&&(a=b.$implicit,P(),b=Q(36),B(),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,yhc,a)))},Ahc=function(a){a&1&&(K(0,"th",30),S(1," Inherited From"),L())},Bhc=function(a){a&1&&(Vf(0),M(1,"b-component-card",40,4),Wf());if(a&2){a=Q(2);P(2);var b=dg(1);B();I("onedevIsHovercardReady",a.init)("componentId",b.toString())}},Chc=function(a){a&1&&(K(0,"div",36)(1,"div",37),S(2,"Inherited From"),L(),K(3,"a",38),S(4),L(),K(5,"onedev-hovercard",null,3),E(7,Bhc,3,2,"ng-container",39),L()());
if(a&2){a=Q(6);P();var b=dg(1),c=dg(2),d=P(3);B(3);I("onedevHovercardTrigger",a)("href",d.ROUTES.editComponentFieldConfigurations.makeHref(b),Me);Jf("aria-label","Inherited from "+c);B();T(" ",c," ")}},Dhc=function(a,b){a&1&&(K(0,"td",29),bg(1)(2),F(3,Chc,8,4,"div",36),L());a&2&&(b=b.$implicit,a=P(3),B(),b=cg(b.owningComponentId),B(),cg(a.componentIdsToPaths[b]),B(),G(b!==a.currentComponentId?3:-1))},Ehc=function(a){a&1&&(K(0,"th",30),S(1," Actions"),L())},Fhc=function(a){a&1&&Xf(0)},Ghc=function(a,
b){a&1&&(K(0,"td",29),E(1,Fhc,1,0,"ng-container",35),L());a&2&&(a=b.$implicit,P(),b=Q(34),B(),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Kg(2,yhc,a)))},Hhc=function(a){a&1&&M(0,"tr",41)},Ihc=function(a){a&1&&M(0,"tr",42)},Jhc=function(a){a&1&&M(0,"tr",43)},Khc=function(a){a&1&&(K(0,"div",24),S(1," No custom fields found in this component. Please add custom fields to create a field configuration. "),L())},Lhc=function(a,b){a&1&&(K(0,"div",44),S(1),L(),K(2,"div",45)(3,"button",46),S(4," Cancel "),
L(),K(5,"button",47),S(6," Confirm "),L()());a&2&&(a=b.$implicit,B(),T(' Are you sure you want to delete the config "',a.name,'"? '),B(2),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0))},Mhc=function(a){if(a&1){var b=t();K(0,"button",51);N("click",function(){u(b);var c=P(2).row,d=P(3);c=Hm(c.data);c.name+=" (Copy)";phc(d,c);return v()});S(1," Create Copy ");L()}},Ohc=function(a){if(a&1){var b=t();K(0,"button",52);N("click",function(){u(b);var c=P(2).row;P(3).state$.next({view:"edit",config:c.data});
return v()});S(1," Edit ");L();K(2,"button",53);N("click",function(){u(b);var c=P(2).row,d=P(3);return v(Nhc(d,c.data))});S(3," Delete ");L()}},Phc=function(a){a&1&&(F(0,Mhc,2,0,"button",50),F(1,Ohc,4,0));a&2&&(a=P().row,G(a.isDefault?-1:0),B(),G(a.inherited?-1:1))},Qhc=function(a){if(a&1){var b=t();K(0,"button",54);N("click",function(){u(b);var c=P().row;P(3).state$.next({view:"readonly",config:c.data});return v()});S(1," View ");L()}},Rhc=function(a,b){a&1&&(K(0,"div",48),F(1,Phc,2,2),F(2,Qhc,2,
0,"button",49),L());a&2&&(a=b.row,b=P(3),B(),G(b.isAdmin?1:-1),B(),G(a.inherited||!b.isAdmin?2:-1))},Shc=function(a){a&1&&M(0,"mat-icon",57);if(a&2){P();a=dg(1);var b=dg(2);yg("non-applicable",a);I("svgIcon",b)}},Thc=function(a,b){a&1&&(K(0,"div",31),bg(1)(2),F(3,Shc,1,3,"mat-icon",56),K(4,"span"),S(5),L()());if(a&2){a=b.$implicit;var c=P().row;b=P(3);B();c=cg(!c.effectiveIssueTypes.has(a));B();var d=cg(b.constants.issueTypeIcons.get(a));B();G(d?3:-1);B();yg("non-applicable",c);B();Ag(b.issueTypeToDisplay(a))}},
Uhc=function(a,b){a&1&&(K(0,"div",55),Pf(1,Thc,6,6,"div",31,Of),L());a&2&&(a=b.row,B(),Qf(a.issueTypes))},Yhc=function(a){if(a&1){var b=t();K(0,"div")(1,"div",11);S(2," Field visibility is determined by configurations made on a per-issue-type basis. Matching configurations higher in the table will supersede those further down. ");F(3,shc,2,1,"a",12);L();K(4,"table",13);Vf(5,14);E(6,thc,3,2,"td",15);Wf();Vf(7,16);E(8,uhc,2,0,"th",17)(9,vhc,2,1,"td",15);Wf();Vf(10,18);E(11,whc,9,1,"th",17)(12,zhc,2,
4,"td",15);Wf();Vf(13,19);E(14,Ahc,2,0,"th",17)(15,Dhc,4,3,"td",15);Wf();Vf(16,20);E(17,Ehc,2,0,"th",17)(18,Ghc,2,4,"td",15);Wf();E(19,Hhc,1,0,"tr",21)(20,Ihc,1,0,"tr",22)(21,Jhc,1,0,"tr",23);L();M(22,"mat-divider");F(23,Khc,2,0,"div",24);K(24,"div",25)(25,"button",26);N("click",function(){u(b);var c=P(2);return v(Vhc(c))});S(26," Create New Typed Configuration ");L();K(27,"button",27);N("click",function(){u(b);var c=P(2);Vhc(c,void 0,"disallowIssueTypes");return v()});S(28," Create New Default Configuration ");
L();K(29,"button",28);N("click",function(){u(b);var c=P(2);return v(Whc(c))});S(30," Reorder Configurations ");L()();E(31,Lhc,7,3,"ng-template",null,0,Og)(33,Rhc,3,2,"ng-template",null,1,Og)(35,Uhc,3,0,"ng-template",null,2,Og);L()}a&2&&(a=P(2),B(3),G(a.isInternalSession?3:-1),B(),I("dataSource",a.allTableRows$),B(15),I("matHeaderRowDef",a.displayedColumns),B(),I("matRowDefColumns",a.displayedColumns),B(),I("matRowDefColumns",Jg(10,Xhc))("matRowDefWhen",a.isSectionTitleRow),B(2),G(a.customFields.length?
-1:23),B(2),I("disabled",!a.isAdmin||!a.customFields.length),B(2),I("disabled",!a.isAdmin||!a.customFields.length||a.ownDefaultFieldConfig),B(2),I("disabled",!a.isAdmin||a.ownTypedFieldConfigs.length<2))},Zhc=function(a){a&1&&F(0,mhc,1,5,"b-field-configuration-editor",5)(1,ohc,1,4,"b-field-configuration-editor",6)(2,qhc,1,5,"b-field-configuration-editor",7)(3,Yhc,37,11,"div");a&2&&(P(),a=dg(0),G(a.view=="edit"?0:a.view=="readonly"?1:a.view=="create"?2:3))},$hc=function(a){a&1&&(K(0,"p"),S(1,"Team inheritance path:"),
L(),M(2,"b-team-breadcrumb",0));a&2&&(a=P(),B(2),I("teamPath",a.teamPath))},aic=function(a){a&1&&(K(0,"p"),S(1,"Component inheritance path:"),L(),M(2,"b-component-breadcrumb",1));a&2&&(a=P(),B(2),I("componentPathInfo",a.componentPath))},bic=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},eic=function(a){return{approximateSize:qn(Hn(a,2)),groupEmail:Fi(a,1),sizeCategory:cic[Ri(a,3)],permissionCategory:dic[Ri(a,5)]}},gic=function(a){a=
Wi(a,fic,1,Xi(),fb);return{groupMetadata:(a!=null?a:[]).map(eic)}},iic=function(a,b){var c=[];if(!b||!a)return c;for(var d=l(hic),e=d.next();!e.done;e=d.next()){e=e.value;var f=Km(e.accessor(b)||[],e.accessor(a)||[]);f.length&&c.push({field:e.field,addedPrincipals:f})}return c},kic=function(a,b){if(!a.appenders||!b||Gm(b.appenders,a.appenders))return!1;a=l(a.appenders||[]);for(var c=a.next();!c.done;c=a.next())if(c=c.value,jic.has(c)&&!b.appenders.includes(c))return!0;return!1},lic=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},mic=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"},nic=function(a){if(a.size===0)return Lj;for(var b=a.size===
1?Gh("p",{},"The following large group is added: "):Gh("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(Gh("p",{},Fh([Gh("b",{},e)," has approximately ",Gh("b",{},f)," Googlers."])))}return Fh([b].concat(n(c)))},oic=function(a){if(a.size===0)return Lj;var b=a.size===1?Gh("p",{},"The following open group is added: "):Gh("p",{},"The following open groups are added: "),c=[];a=l(a.keys());for(var d=a.next();!d.done;d=
a.next())c.push(Gh("p",{},Gh("b",{},d.value)));return Fh([b].concat(n(c)))},pic=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},qic=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},ric=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},Su=function(a){var b=a.split(":");a=b[0];return a==="ALIAS"?(b=b[1],{value:b,displayText:pTa(b),principalType:a,detailedUserType:null}):{value:b[1],displayText:b[1],principalType:a,detailedUserType:null}},sic=function(a,b){a&1&&M(0,"b-contact-chip",4);a&2&&(a=b.$implicit,b=P(2),I("value",a.value)("detailedUserType",
a.detailedUserType)("principalType",a.principalType)("accessLevel",b.accessLevel)("displayText",a.displayText))},tic=function(a,b){a&1&&(K(0,"tr",2)(1,"th",3),S(2),L(),K(3,"td"),Pf(4,sic,1,5,"b-contact-chip",4,Of),L()());a&2&&(a=b.$implicit,B(2),Ag(a.permission),B(2),Qf(a.principals))},xic=function(a){var b="minimal";b=b===void 0?"expanded":b;a=uic(a);a=bWa(a,function(c){c=vic(c);return wic(c,b)});return uic(a)},zic=function(a){a=uic(a);a=bWa(a,function(b){b=yic(b);return vic(b)});return uic(a)},
wic=function(a,b){var c=b==="expanded"?Aic:Bic;return new Set([].concat(n(a)).flatMap(function(d){return[].concat(n(c.get(d)))}))},yic=function(a){return new Set(Cic.filter(function(b){return MSa(a,Bic.get(b))}))},vic=function(a){a=wic(a,"expanded");var b=yic(a);return new Set([].concat(n(b)).filter(function(c){return[].concat(n(Dic.get(c))).every(function(d){return!b.has(d)})}))},uic=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},Fic=function(){function a(f,g){c.has(f)||c.set(f,new Set);var k=c.get(f);k.add(g);var m;g=l((m=b.get(g))!=null?m:[]);for(m=g.next();!m.done;m=g.next())m=m.value,k.has(m)||a(f,m)}var b=Eic,c=new Map,d=[].concat(n(b.values())).flatMap(function(f){return[].concat(n(f))});d=l(new Set([].concat(n(b.keys()),n(d))));for(var e=d.next();!e.done;e=d.next())e=e.value,
a(e,e);return c},Gic=function(a){var b=xic(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(n((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")}}},
Hic=function(a){var b=a.componentAccessPolicy;a=a.issueAccessPolicy;return Oq([].concat(n(b?[].concat(n(b.inheritedAdmins||[]),n(b.admins||[]),n(b.appenders||[])):[]),n(a?[].concat(n(a.admins||[]),n(a.editors||[]),n(a.appenders||[]),n(a.readers||[]),n(a.restrictedReaders||[]),n(a.restrictedPlusReaders||[])):[]))).sort()},Jic=function(a){function b(e){var f;return[].concat(n((f=d.get(e))!=null?f:[])).sort()}if(!a)return Iic;var c=a.issueAccessPolicy;a=a.componentAccessPolicy;var d=zic(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}},Kic=function(a,b){var c;(c=!b)||(c=!(!Gm([].concat(n(b.admins)).sort(),[].concat(n(a.admins)).sort())||!Gm([].concat(n(b.appenders)).sort(),[].concat(n(a.appenders)).sort())||!Gm(b.implicitAccess,a.implicitAccess)));
return!c},Lic=function(a,b){return b&&a?!Gm([].concat(n(a.admins)).sort(),[].concat(n(b.admins)).sort())||!Gm([].concat(n(a.editors)).sort(),[].concat(n(b.editors)).sort())||!Gm([].concat(n(a.appenders)).sort(),[].concat(n(b.appenders)).sort())||!Gm([].concat(n(a.readers)).sort(),[].concat(n(b.readers)).sort())||!Gm([].concat(n(a.restrictedReaders)).sort(),[].concat(n(b.restrictedReaders)).sort())||!Gm([].concat(n(a.restrictedPlusReaders)).sort(),[].concat(n(b.restrictedPlusReaders)).sort()):!1},
Mic=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,!v1a(a[d],b[d]))return!0;return!1},Nic=function(a){if(a&1){var b=t();K(0,"input",15);Eg("ngModelChange",function(c){u(b);var d=P(2);Dg(d.rolesEditor.component.accessLimit.accessLevel,c)||(d.rolesEditor.component.accessLimit.accessLevel=c);return v(c)});L()}a&2&&(a=P(2),I("disabled",!a.rolesEditor.isAdmin),Cg("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},Oic=function(a){if(a&1){var b=t();
K(0,"input",16);Eg("ngModelChange",function(c){u(b);var d=P(2);Dg(d.rolesEditor.component.accessLimit.accessLevel,c)||(d.rolesEditor.component.accessLimit.accessLevel=c);return v(c)});L()}a&2&&(a=P(2),I("disabled",!a.rolesEditor.isAdmin||!a.isParentPartner()),Cg("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},Pic=function(a){if(a&1){var b=t();K(0,"input",17);Eg("ngModelChange",function(c){u(b);var d=P(2);Dg(d.rolesEditor.component.accessLimit.accessLevel,c)||(d.rolesEditor.component.accessLimit.accessLevel=
c);return v(c)});L()}a&2&&(a=P(2),I("disabled",!a.rolesEditor.isAdmin||!a.isParentPublic()),Cg("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},Qic=function(a,b){a&1&&(K(0,"p",14)(1,"a",18),S(2," Learn more "),L()());a&2&&(B(),I("href",b,Me))},Ric=function(a){a&1&&(K(0,"div",0)(1,"div",3)(2,"span",4),S(3,"Component visibility: "),L()(),K(4,"div",5)(5,"div",6),F(6,Nic,1,2,"input",7),K(7,"label",8),S(8),L()(),K(9,"div",6),F(10,Oic,1,2,"input",9),K(11,"label",10),S(12),L()(),K(13,"div",11),
F(14,Pic,1,2,"input",12),K(15,"label",13),S(16),L()()(),F(17,Qic,3,1,"p",14),L());if(a&2){var b;a=P();B(6);G(a.rolesEditor.component&&a.rolesEditor.component.accessLimit?6:-1);B(2);T(" ",$pb(a.AccessLevelStrings.INTERNAL)," ");B(2);G(a.rolesEditor.component&&a.rolesEditor.component.accessLimit?10:-1);B(2);T(" ",$pb(a.AccessLevelStrings.EXTERNAL_PARTNER)," ");B(2);G(a.rolesEditor.component&&a.rolesEditor.component.accessLimit?14:-1);B(2);T(" ",$pb(a.AccessLevelStrings.EXTERNAL_PUBLIC)," ");B();G((b=
hmb(a.documentationLinks))?17:-1,b)}},Wic=function(a,b){if(a&1){var c=t();K(0,"tr")(1,"td")(2,"div",1)(3,"div",2)(4,"label",3);S(5);L();K(6,"button",4);M(7,"mat-icon",5);L()();K(8,"b-multi-user-input",6);N("usersChange",function(e){var f=u(c).$implicit,g=P();return v(g.updateRolesMap(f.roleType,e))})("isValid",function(e){var f=u(c).$implicit,g=P();g.aclFormValidity.set(f.roleType,e);e=[].concat(n(g.aclFormValidity.values())).every(Boolean);g.formIsValid.emit(e);return v()});L()()();K(9,"td");M(10,
"b-icon",7);L();K(11,"td");M(12,"b-icon",7);L();K(13,"td");M(14,"b-icon",8);L();K(15,"td");M(16,"b-icon",8);L();K(17,"td");M(18,"b-icon",8);L();K(19,"td");M(20,"b-icon",8);L();K(21,"td");M(22,"b-icon",8);L();K(23,"td");M(24,"b-icon",8);L()()}if(a&2){a=b.$implicit;b=P();B(2);yg("bv2-edit-resource-readonly",b.canEdit);B(2);I("htmlFor",a.roleType);B();Ag(a.label);B();I("matTooltip",a.tooltip);B(2);var d;I("idForInputBox",a.roleType)("users",a.users)("ariaLabel",a.ariaLabel)("accessLevel",b.accessLevel)("customValidators",
(d=a.customValidators)!=null?d:Jg(24,Sic))("includeAliases",a.includeAliases)("includeViewAliases",a.includeViewAliases)("containerChips",(a.chips==null?0:a.chips.values)&&a.chips.values.length>0?Kg(28,Tic,Lg(25,Uic,a.chips.displayText,a.chips.values)):Jg(30,Vic));Jf("disabled",b.canEdit?null:!0);B(2);I("name",b.getIconName(a,"componentAdmin"))("matTooltip",b.getTooltip(a,"componentAdmin"));B(2);I("name",b.getIconName(a,"createIssues"))("matTooltip",b.getTooltip(a,"createIssues"));B(2);I("name",b.getIconName(a,
"issueAdmin"));B(2);I("name",b.getIconName(a,"issueEditor"));B(2);I("name",b.getIconName(a,"issueCommenter"));B(2);I("name",b.getIconName(a,"issueReader"));B(2);I("name",b.getIconName(a,"restrictedReader"));B(2);I("name",b.getIconName(a,"restrictedPlusReader"))}},Xic=function(a){a&1&&(K(0,"div",0),M(1,"b-spinner"),L())},Zic=function(a){if(a&1){var b=t();K(0,"div")(1,"div",1)(2,"mat-tab-group",2);N("selectedIndexChange",function(c){u(b);var d=P();return v(d.tabChange(c))});K(3,"mat-tab",3)(4,"roles-view",
4);N("saveRolesMap",function(c){u(b);var d=P();Yic(d.rolesEditor,c);return v()});L()();K(5,"mat-tab",5);M(6,"permissions-view",6);L()()()()}a&2&&(a=P(),B(2),I("selectedIndex",a.selectedTabIndex),B(2),I("rolesMap",a.rolesEditor.rolesMap)("isSaving",a.isSaving())("component",a.rolesEditor.component)("rolesEditor",a.rolesEditor),B(2),I("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))},ajc=function(a){if(a&1){var b=t();K(0,"b-button",20,1);N("onAction",function(){u(b);var c=P(3);return v($ic(c))});S(2);L()}a&2&&(a=P(3),I("disabled",a.isSaving()),B(2),T(" ",a.archiveAction," Component "))},bjc=function(a){if(a&1){var b=t();K(0,"b-button",21);N("onAction",function(){u(b);var c=P(3);return v(c.createIssue())});S(1," Create Issue ");L()}a&2&&(a=P(3),I("tooltip",
a.isArchived()?"Cannot create issue in archived component":"")("disabled",a.isArchived()))},cjc=function(a){a&1&&(K(0,"a",17),S(1," Browse Components "),L(),F(2,ajc,3,2,"b-button",18),F(3,bjc,2,2,"b-button",19));a&2&&(a=P(2),I("routerLinkObj",a.componentListRoute(a.component.componentId)),B(2),G(a.isAdmin()?2:-1),B(),G(a.isAnonymous?-1:3))},djc=function(a){a&1&&(K(0,"div",16),M(1,"b-spinner"),L())},ejc=function(a){a&1&&(K(0,"span",23),S(1," (archived) "),L())},fjc=function(a){a&1&&Xf(0)},gjc=function(a){a&
1&&Xf(0)},hjc=function(a){a&1&&Xf(0)},ijc=function(a){a&1&&Xf(0)},jjc=function(a){a&1&&Xf(0)},kjc=function(a){a&1&&Xf(0)},mjc=function(a){if(a&1){var b=t();K(0,"div",54)(1,"div",46)(2,"label",70)(3,"span",43);S(4,"Parent Component");L()();K(5,"span",48)(6,"div",71)(7,"strong");S(8,"Careful!");L();S(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. ");
K(10,"div",50);M(11,"div",51)(12,"div",52);L()()()();K(13,"b-team-component-picker",72);N("selectedComponentChange",function(c){u(b);var d=P(4);return v(d.parentComponent=c!=null?c:null)});L()()}a&2&&(a=P(4),B(2),yg("required",a.isParentComponentRequired&&!ljc(a)),B(11),I("selectedComponent",a.parentComponent)("placeholder","Choose Component")("isRequired",a.isParentComponentRequired&&!ljc(a)))},njc=function(a){a&1&&(K(0,"a",60),S(1," Learn more "),L());a&2&&(P(4),I("href",h8b(),Me))},ojc=function(a){if(a&
1){var b=t();K(0,"div",73)(1,"label",74)(2,"span",43);S(3,"Retention Settings");L()();K(4,"div",75)(5,"p");S(6,"Please choose a period of time to retain the data stored in this component.");M(7,"br");K(8,"a",76);S(9," Learn more ");L()()();K(10,"div",77)(11,"b-retention-settings-form",78);N("modelChange",function(c){u(b);var d=P(4);return v(d.component.retentionSettings=c)})("validChange",function(c){u(b);P(4).retentionIsValid=c;return v()});L()()()}a&2&&(a=P(4),yg("bv2-edit-resource-readonly",!a.isAdmin()),
B(8),I("href",Tu(),Me),B(3),I("issueRetentionDisabled",a.isAccessEditDisabled())("isExternal",a.isExternal())("componentPathInfo",a.component.componentPathInfo)("componentId",a.component.componentId)("initialModel",a.component.retentionSettings))},pjc=function(a){if(a&1){var b=t();K(0,"div",82)(1,"mat-checkbox",83);N("change",function(c){u(b);var d=P(6),e;if((e=d.component)!=null&&e.autoInactivationSettings){c=!c.checked;d.component.autoInactivationSettings.inherit=c;var f;c&&((f=d.parentComponent)==
null?0:f.autoInactivationSettings)&&(d.component.autoInactivationSettings.state=d.parentComponent.autoInactivationSettings.state)}return v()});S(2," Override inherited inactive policy ");L()()}a&2&&(a=P(6),B(),I("checked",!a.component.autoInactivationSettings.inherit)("disabled",Uu(a)))},sjc=function(a){if(a&1){var b=t();K(0,"div",80)(1,"label")(2,"span",43);S(3,"Inactive Issues");L()();K(4,"div",75)(5,"p");S(6," Configure behavior for dormant issues. ");K(7,"a",81);S(8," Learn more ");L()()();F(9,
pjc,3,2,"div",82);K(10,"div",82)(11,"mat-slide-toggle",83);N("change",function(c){u(b);var d=P(5),e;(e=d.component)!=null&&e.autoInactivationSettings&&(d.component.autoInactivationSettings.state=c.checked?"ENABLED":"DISABLED");return v()});S(12," Mark issues with ");K(13,"span",84);S(14,"status:inactive");L();S(15," after 100 days of inactivity ");L()()()}a&2&&(a=P(5),yg("bv2-edit-resource-readonly",!a.isAdmin()),B(9),G(a.parentComponent!==null?9:-1),B(2),I("checked",qjc(a))("disabled",rjc(a)))},
tjc=function(a){a&1&&F(0,sjc,16,5,"div",79);a&2&&(a=P(4),G(a.component.autoInactivationSettings?0:-1))},vjc=function(a){if(a&1){var b=t();K(0,"div",87)(1,"b-component-team-picker",88);N("modelChange",function(c){u(b);var d=P(5);d.component.team=c;d.componentTeam$.next(d.component.team);d.component.slo.inherit&&ujc(d);return v()});L()()}a&2&&(a=P(5),B(),I("anchorTarget",Fg(a.hasUnsavedChanges()?"_blank":"_self"))("isAdmin",a.isAdmin())("isTopLevel",!a.isParentComponentRequired)("parentModel",a.parentComponent==
null?null:a.parentComponent.team)("useInternalLink",!0)("model",a.component.team))},wjc=function(a){a&1&&(K(0,"div",85)(1,"label",86)(2,"span",43),S(3,"Team Configuration"),L()(),F(4,vjc,2,7,"div",87),L());a&2&&(a=P(4),yg("bv2-edit-resource-readonly",!a.isAdmin()),B(4),G(a.component.team?4:-1))},xjc=function(a){a&1&&(K(0,"a",98),S(1),L());if(a&2){a=P();var b=P(5);I("routerLinkObj",b.getSloManagementLink(a.id));B();var c;T(" ",(c=a.slo==null?null:a.slo.name)!=null?c:a.id," ")}},yjc=function(a){a&1&&
S(0," None ")},zjc=function(a,b){a&1&&(K(0,"div",93),S(1," Inherited SLO Policy: "),F(2,xjc,2,2,"a",98)(3,yjc,1,0),L());a&2&&(B(2),G(b.id!=="0"?2:3))},Ajc=function(a){a&1&&(K(0,"a",99),S(1),U(2,"titlecase"),L());a&2&&(a=P(),I("routerLinkObj",a.link),B(),Bg(" (",W(2,3,a.type),") ",a.name," "))},Bjc=function(a){a&1&&S(0," None ")},Cjc=function(a){a&1&&(K(0,"div",101),M(1,"slo-inheritance-breadcrumbs",102),L());a&2&&(a=P(),B(),I("componentPath",a.componentPath)("teamPath",a.teamPath))},Djc=function(a){a&
1&&F(0,Cjc,2,2,"div",101);a&2&&(a=P(6),G(a.showSloInheritancePath?0:-1))},Ejc=function(a,b){if(a&1){var c=t();K(0,"div",94);S(1," Policy Source: ");F(2,Ajc,3,5,"a",99)(3,Bjc,1,0);K(4,"button",100);N("click",function(){u(c);var e=P(5);return v(e.showSloInheritancePath=!e.showSloInheritancePath)});S(5);L();F(6,Djc,1,1);U(7,"async");L()}if(a&2){var d;a=P(5);B(2);G(b.link?2:3);B(2);Jf("aria-expanded",a.showSloInheritancePath);B();T(" ",a.showSloInheritancePath?"Hide":"Show"," full path ");B();G((d=W(7,
4,a.policySourcePath$))?6:-1,d)}},Fjc=function(a){a&1&&(S(0," , "),K(1,"a",103),S(2,"Team Leads"),L());a&2&&(a=P(6),B(),I("routerLinkObj",{path:"/teams/"+a.component.team.id+"/edit",fragment:a.tabsService.Tab.ACCESS}))},Gjc=function(a){a&1&&(K(0,"div",95),S(1," SLO Admins: "),K(2,"a",103),S(3,"Component Admins"),L(),F(4,Fjc,3,1),L());a&2&&(a=P(5),B(2),I("routerLinkObj",a.componentPermissions(a.componentId)),B(2),G(a.component.team&&a.component.team.id!=="0"?4:-1))},Hjc=function(a){a&1&&(M(0,"mat-icon",
104),S(1," on "))},Ijc=function(a){a&1&&(M(0,"mat-icon",105),S(1," off "))},Jjc=function(a){a&1&&(S(0," Lock: "),F(1,Hjc,2,0),U(2,"async"),Mf(3,Ijc,2,0));a&2&&(a=P(5),B(),G(W(2,1,a.sloLocked$)?1:3))},Ljc=function(a){if(a&1){var b=t();K(0,"div",97)(1,"mat-checkbox",106);N("change",function(c){u(b);var d=P(5);c=c.checked;d.component.slo.inherit=!c;c||ujc(d);return v()});K(2,"span");S(3,"Override the inherited SLO policy");L()()()}a&2&&(a=P(5),B(),I("checked",!a.component.slo.inherit)("disabled",!Kjc(a)))},
Mjc=function(a){if(a&1){var b=t();K(0,"div",107)(1,"label",113);S(2," Justification ");L();M(3,"mat-icon",114);K(4,"textarea",115);Eg("ngModelChange",function(c){u(b);var d=P(6);Dg(d.component.slo.comment,c)||(d.component.slo.comment=c);return v(c)});L()()}a&2&&(a=P(6),B(4),Cg("ngModel",a.component.slo.comment),I("disabled",!a.isComponentSloEditor))},Njc=function(a){a&1&&(K(0,"a",112),M(1,"mat-icon",116),L());a&2&&(a=P(6),I("target",Fg(a.hasUnsavedChanges()?"_blank":"_self"))("routerLinkObj",a.getSloManagementLink(a.component.slo.id)))},
Rjc=function(a){if(a&1){var b=t();F(0,Mjc,5,2,"div",107);K(1,"mat-slide-toggle",108);Eg("ngModelChange",function(d){u(b);var e=P(5);Dg(e.isEnableSloChecked,d)||(e.isEnableSloChecked=d);return v(d)});N("change",function(d){u(b);var e=P(5);d=d.checked;e.isEnableSloChecked=d;d||(e.component.slo.id=void 0);return v()});S(2," Enable SLO ");L();K(3,"div",109)(4,"label",110);S(5,"SLO policy");L();K(6,"slo-picker",111);N("onSloSelect",function(d){u(b);var e=P(5);return v(e.onSloChange(d))});L();F(7,Njc,2,
3,"a",112);L()}if(a&2){a=P(5);G(Ojc(a)?0:-1);B();yg("indented",Pjc(a));Cg("ngModel",a.isEnableSloChecked);I("disabled",!Qjc(a));B(5);var c;I("bv2Disabled",!a.isEnableSloChecked||!Qjc(a))("boundId",(c=a.component.slo.id)!=null?c:null)("bv2Placeholder",a.isEnableSloChecked&&Qjc(a)?"Type to search for an SLO":"SLO disabled");B();G(a.component.slo.id&&a.component.slo.id!=="0"?7:-1)}},Sjc=function(a){a&1&&(K(0,"div",89)(1,"div",46)(2,"label",90)(3,"span",43),S(4,"SLO Configuration"),L()(),K(5,"span",48)(6,
"div",91)(7,"strong"),S(8,"Careful!"),L(),S(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. "),K(10,"div",50),M(11,"div",51)(12,"div",52),L()()()(),K(13,"div",92),F(14,zjc,4,1,"div",93),U(15,"async"),F(16,Ejc,8,6,"div",94),U(17,"async"),F(18,Gjc,5,2,"div",95),K(19,"div",96),F(20,Jjc,4,3),L()(),F(21,Ljc,4,2,"div",97),F(22,Rjc,8,9),L());if(a&2){var b,c;a=P(4);yg("bv2-edit-resource-readonly",
!a.isComponentSloEditor);B(14);G((b=W(15,8,a.inheritedSlo$))?14:-1,b);B(2);G((c=W(17,10,a.sloPolicySource$))?16:-1,c);B(2);G(a.sessionIsInternal?18:-1);B(2);G(a.enableSloLockingUi?20:-1);B();G(Pjc(a)?21:-1);B();a.component&&a.component.slo?(b=!!a.component.team&&a.component.team.id!=="0",c=!a.component.slo.inherit,a=!a.component.parentComponentId&&!b||c):a=!1;G(a?22:-1)}},Tjc=function(a){if(a&1){var b=t();K(0,"mat-slide-toggle",117);N("change",function(c){u(b);P(4).component.spamProtection=c.checked?
"ALL_PROTECTIONS":"NO_PROTECTIONS";return v()});S(1," Enable Spam Protections ");L()}a&2&&(a=P(4),I("checked",a.sessionIsInternal&&a.getComponentAccessLevel()==="EXTERNAL_PUBLIC"?a.component.spamProtection==="ALL_PROTECTIONS"||a.component.spamProtection==="SPAM_PROTECTION_UNSPECIFIED":!1)("disabled",a.isAccessEditDisabled()))},Ujc=function(a){if(a&1){var b=t();K(0,"div",66)(1,"b-button",118);N("onAction",function(){u(b);var c=P(4);return v(c.saveMetadata())});S(2," Update ");L();K(3,"b-button",119);
N("onAction",function(){u(b);var c=P(4);return v(c.revertMetadataChanges())});S(4," Revert Changes ");L();K(5,"b-button",119);N("onAction",function(){u(b);var c=P(4);return v(c.createChild())});S(6," Create Child Component ");L()()}a&2&&(a=P(4),B(),I("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),B(2),I("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),B(2),I("disabled",a.hasUnsavedMetadataChanges()))},Vjc=function(a){if(a&1){var b=t();K(0,"b-button",120);N("onAction",function(){u(b);
var c=P(4);return v(c.showUpdateHistoryModal())});S(1," View History ");L()}},Wjc=function(a){a&1&&M(0,"b-spinner")},Xjc=function(a){if(a&1){var b=t();K(0,"b-component-children-list",121);N("onVisit",function(){u(b);var c=P(4);return v(c.trackClick("openChildComponent"))});L()}a&2&&(a=P(4),I("children",a.childComponents))},Yjc=function(a){a&1&&(K(0,"span"),S(1," No child components. "),L())},Zjc=function(a){if(a&1){var b=t();K(0,"div",38)(1,"form",39,8);M(3,"b-error-banner",40);K(4,"div",41)(5,"label",
42)(6,"span",43);S(7,"Name");L()();K(8,"input",44);Eg("ngModelChange",function(c){u(b);var d=P(3);Dg(d.component.name,c)||(d.component.name=c);return v(c)});L()();K(9,"div",45)(10,"div",46)(11,"label",47)(12,"span",43);S(13,"Description");L()();K(14,"span",48)(15,"div",49);S(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. ");K(17,"div",50);M(18,"div",51)(19,"div",52);L()()()();K(20,"textarea",
53);Eg("ngModelChange",function(c){u(b);var d=P(3);Dg(d.component.description,c)||(d.component.description=c);return v(c)});S(21,"                ");L()();F(22,mjc,14,5,"div",54);K(23,"div",55)(24,"div",56)(25,"mat-checkbox",57);N("change",function(c){u(b);var d=P(3);return v(d.setCommentEditState(c.checked))});L()();K(26,"div")(27,"strong",58);S(28,"Editable Comments");L();K(29,"div",59);S(30," When checked, users with comment access can modify their own issue comments, and editors can modify the first issue comment. ");
M(31,"br");F(32,njc,2,1,"a",60);L()()();F(33,ojc,12,8,"div",61);F(34,tjc,1,1);F(35,wjc,5,3,"div",62);F(36,Sjc,23,12,"div",63);F(37,Tjc,2,2,"mat-slide-toggle",64);K(38,"div",65);F(39,Ujc,7,3,"div",66);K(40,"div",66);F(41,Vjc,2,0,"b-button",67);L()();K(42,"div",68)(43,"label")(44,"span",43);S(45,"Child Components");L()();F(46,Wjc,1,0,"b-spinner");F(47,Xjc,1,1,"b-component-children-list",69);F(48,Yjc,2,0,"span");L()()()}a&2&&(a=P(3),B(),yg("show-errors",a.error),B(2),I("error",a.error),B(),yg("bv2-edit-resource-readonly",
Uu(a)),B(4),Cg("ngModel",a.component.name),I("disabled",Uu(a)),B(),yg("bv2-edit-resource-readonly",Uu(a)),B(11),Cg("ngModel",a.component.description),I("disabled",Uu(a)),B(2),G(a.isAdmin()?22:-1),B(),yg("bv2-edit-resource-readonly",a.isAccessEditDisabled()),B(2),I("checked",a.commentEditsEnabled)("disabled",Uu(a)),B(7),G(a.sessionIsExternal?-1:32),B(),G(a.sessionIsExternal?-1:33),B(),G(a.enableInactiveFeatures?34:-1),B(),G(a.sessionIsInternal?35:-1),B(),G(a.component.slo&&a.sessionIsInternal?36:-1),
B(),G(a.sessionIsInternal&&a.getComponentAccessLevel()==="EXTERNAL_PUBLIC"?37:-1),B(2),G(a.isEditorInternal||a.isComponentSloEditor?39:-1),B(2),G(a.componentHistoryUiEnabled?41:-1),B(5),G(a.childComponents===void 0?46:-1),B(),G(a.childComponents&&a.childComponents.length>0?47:-1),B(),G(a.childComponents&&a.childComponents.length===0?48:-1))},akc=function(a){if(a&1){var b=t();K(0,"div",122);S(1," Standard Fields ");L();K(2,"b-component-standard-fields",123);N("updateComponent",function(c){u(b);var d=
P(3);return v($jc(d,c))});L();K(3,"div",124);S(4," Custom Fields ");L();M(5,"b-component-custom-fields",125)}a&2&&(a=P(3),B(2),I("effortSpec",a.component.effortSpec)("parentEffortSpec",a.parentComponent==null?null:a.parentComponent.effortSpec)("disabled",!a.isEditorInternal),B(3),I("editMode",a.isEditorInternal)("isSaving",a.isSaving())("component",a.component)("parentComponent",a.parentComponent))},bkc=function(a){a&1&&(K(0,"a",127),S(1," Learn more "),L());a&2&&(P(4),I("href",rhc(),Me))},dkc=function(a){if(a&
1){var b=t();K(0,"div",38)(1,"div",126);S(2," Field ordering will be applied to all issues and templates in this component, including the right panel on the Issue Detail page. ");F(3,bkc,2,1,"a",127);L();K(4,"b-field-reorder",128);N("onReload",function(){u(b);var c=P(3);return v(ckc(c))});L()()}a&2&&(a=P(3),B(3),G(a.sessionIsInternal?3:-1),B(),I("fields",a.orderedCustomFields)("componentId",a.componentId)("fieldOrdering",a.component.fieldOrdering)("isAdmin",a.isAdmin()))},ekc=function(a){a&1&&(K(0,
"div",38),M(1,"b-field-configuration",129),L());a&2&&(a=P(4),B(),I("isAdmin",a.isAdmin())("componentPathInfo",a.component.componentPathInfo))},fkc=function(a){a&1&&F(0,ekc,2,2,"div",38);a&2&&(a=P(3),G(a.component.componentPathInfo?0:-1))},gkc=function(a){a&1&&M(0,"b-edit-templates",130);a&2&&(a=P(4),I("componentId",a.componentId)("supportCustomFields",!0))},hkc=function(a){a&1&&(K(0,"div"),S(1),L());a&2&&(a=P().$implicit,B(),Ag(a.description))},ikc=function(a,b){a&1&&(K(0,"div",131)(1,"label"),S(2),
L(),F(3,hkc,2,1,"div"),K(4,"div")(5,"a",132),S(6),L()()());a&2&&(a=b.$implicit,B(2),Ag(a.name),B(),G(a.description?3:-1),B(2),I("href",a.url,Me),Jf("aria-label","Click to open the template "+a.name),B(),Ag(a.url))},jkc=function(a){a&1&&Pf(0,ikc,7,5,"div",131,Of);a&2&&(a=P(4),Qf(a.templates))},kkc=function(a){a&1&&(K(0,"div",38),F(1,gkc,1,2,"b-edit-templates",130)(2,jkc,2,0),L());a&2&&(a=P(3),B(),G(a.isEditorInternal?1:2))},mkc=function(a){if(a&1){var b=t();K(0,"role-based-permissions",133);N("onTabChange",
function(c){u(b);var d=P(3).tabsService;d.selectedAccessSubTabIndex=c;lkc(d);return v()});L()}a&2&&(a=P(3),I("tabIndex",a.tabsService.selectedAccessSubTabIndex))},nkc=function(a){if(a&1){var b=t();K(0,"div")(1,"div",22)(2,"h2");S(3);L();F(4,ejc,2,0,"span",23);K(5,"a",24);N("click",function(){u(b);var m=P(2);return v(m.trackClick("recentIssues"))});S(6," (Recent Issues)");L();M(7,"b-component-access-level-indicator",25)(8,"b-tracker-chip-smart",26);L();K(9,"div",27);M(10,"b-component-breadcrumb",28)(11,
"div",29);L();K(12,"mat-tab-group",30);N("selectedIndexChange",function(m){u(b);var r=P(2);return v(r.tabsService.tabChange(m))});K(13,"mat-tab",31);E(14,fjc,1,0,"ng-container",32);L();K(15,"mat-tab",33);E(16,gjc,1,0,"ng-container",32);L();K(17,"mat-tab",34);E(18,hjc,1,0,"ng-container",32);L();K(19,"mat-tab",35);E(20,ijc,1,0,"ng-container",32);L();K(21,"mat-tab",36);E(22,jjc,1,0,"ng-container",32);L();K(23,"mat-tab",37);E(24,kjc,1,0,"ng-container",32);L()();E(25,Zjc,49,27,"ng-template",null,2,Og)(27,
akc,6,7,"ng-template",null,3,Og)(29,dkc,5,5,"ng-template",null,4,Og)(31,fkc,1,1,"ng-template",null,5,Og)(33,kkc,3,1,"ng-template",null,6,Og)(35,mkc,1,1,"ng-template",null,7,Og);L()}if(a&2){a=Q(26);var c=Q(28),d=Q(30),e=Q(32),f=Q(34),g=Q(36),k=P(2);B(3);Bg(" Component ",k.component.componentId,": ",k.currentName," ");B();G(k.isArchived()?4:-1);B();I("routerLinkObj",k.getRecentIssuesLink());B(2);I("accessLevel",k.getComponentAccessLevel());B();I("trackerId",k.component.trackerId);B(2);I("componentPathInfo",
k.component.componentPathInfo)("isArchived",k.isArchived())("label","Parent Component");B(2);I("selectedIndex",k.tabsService.selectedTabIndex);B();I("id",k.tabsService.Tab.BASIC);B();I("ngTemplateOutlet",a);B();I("id",k.tabsService.Tab.CUSTOM_FIELDS)("label","Fields");B();I("ngTemplateOutlet",c);B();I("id",k.tabsService.Tab.FIELD_ORDERING);B();I("ngTemplateOutlet",d);B();I("id",k.tabsService.Tab.FIELD_VISIBILITY);B();I("ngTemplateOutlet",e);B();I("id",k.tabsService.Tab.TEMPLATES);B();I("ngTemplateOutlet",
f);B();I("id",k.tabsService.Tab.ACCESS);B();I("ngTemplateOutlet",g)}},okc=function(a){a&1&&(K(0,"span")(1,"p"),S(2," Archiving a component causes it and its subcomponents and all issues in those components to be hidden from normal use."),M(3,"br"),K(4,"strong"),S(5,"This action cannot be easily reverted."),L(),K(6,"a",138),S(7," Learn more "),L()(),K(8,"p"),S(9," If you no longer have a reason to retain the data stored in these components, please change the retention period as needed "),M(10,"br"),
S(11," so they can be scheduled for deletion. "),K(12,"a",139),S(13," Learn more "),L()()());a&2&&(P(3),B(6),I("href","http://go/archived-components",Me),B(6),I("href",Tu(),Me))},pkc=function(a){a&1&&(K(0,"span")(1,"p"),S(2," Unarchiving a component will NOT cause its subcomponents to be unarchived."),M(3,"br"),S(4," If you need to recursively unarchive subcomponents please use the buganizer_admin tool. "),K(5,"a",140),S(6," Learn more "),L()()());a&2&&(P(3),B(5),I("href","http://go/buganizer-admin",
Me))},qkc=function(a,b){a&1&&(K(0,"span")(1,"span"),S(2),L(),K(3,"span"),S(4," : "),K(5,"b"),S(6),L()(),M(7,"br"),L());a&2&&(a=b.$implicit,b=P(4),B(2),Ag(a.componentPath),B(),yg("b-archive-warning-indef",!a.retentionSettings.retentionPeriodDays),B(3),Ag(b.getRetentionPeriod(a)))},rkc=function(a){a&1&&(K(0,"span"),Pf(1,qkc,8,4,"span",null,Of),L());a&2&&(a=P(3),B(),Qf(a.descendants))},skc=function(a){a&1&&(K(0,"span")(1,"span"),S(2),L()());a&2&&(a=P(3),B(2),Ag(a.descendants[0].componentPath))},tkc=
function(a){if(a&1){var b=t();K(0,"h2",134);S(1);L();K(2,"mat-dialog-content");F(3,okc,14,2,"span");F(4,pkc,7,1,"span");K(5,"p");S(6," The following components will be affected: ");L();K(7,"div",135);F(8,rkc,3,0,"span");F(9,skc,3,1,"span");L()();K(10,"mat-dialog-actions")(11,"button",136);N("click",function(){u(b);P(2).isArchiving=!1;return v()});S(12," Cancel ");L();K(13,"button",137);N("click",function(){u(b);var c=P(2);c.archive();c.isArchiving=!1;return v()});S(14," Confirm ");L()()}a&2&&(a=P(2),
B(),Ag(a.component&&a.archiveAction?"Are you sure you want to "+a.archiveAction.toLowerCase()+' "'+a.component.name+'"'+(a.archiveAction==="Archive"?" and its subcomponents?":"?"):""),B(2),G(a.archiveAction==="Archive"?3:-1),B(),G(a.archiveAction==="Unarchive"?4:-1),B(4),G(a.archiveAction==="Archive"?8:-1),B(),G(a.archiveAction==="Unarchive"?9:-1))},ukc=function(a){if(a&1){var b=t();K(0,"div",10)(1,"div",11)(2,"div",12)(3,"b-button",13);N("onAction",function(){u(b);var c=P();return v(c.back())});
M(4,"b-icon",14);L();F(5,cjc,4,3);L()()();K(6,"div",15);F(7,djc,2,0,"div",16);F(8,nkc,37,23,"div");L();E(9,tkc,15,5,"ng-template",null,0,Og)}a&2&&(a=P(),B(5),G(a.component?5:-1),B(2),G(a.isLoading?7:-1),B(),G(!a.isLoading&&a.component&&a.component.componentId?8:-1))},vkc=function(a){a&1&&(K(0,"div",9),M(1,"b-tracker-redirect",141),L());a&2&&(a=P(),B(),I("component",a.component))},wkc=function(a){var b=null;if(a.containerType==="TEAM"){var c;var d=(c=a.content.sourceTeamId)!=null?c:null}else{var e;
d=(e=a.content.sourceTeamId)!=null?e:null;var f;b=(f=a.content.sourceComponentId)!=null?f:null}return{sourceTeamId:d,sourceComponentId:b}},xkc=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,fieldConfigsV2Map:new Map}},ykc=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},zkc=function(a){return a?a.filter(function(b){return!b.shared}):[]},Akc=function(a,b){a&1&&(K(0,"div",10),M(1,"b-team-breadcrumb",39),L());a&2&&(B(),I("teamPath",b))},Bkc=function(a,b){a&1&&(Vf(0),S(1),Wf());a&2&&(B(),Ag(b.trim()))},Ckc=function(a){a&1&&S(0," No description ")},Dkc=function(a,b){a&1&&M(0,"b-multi-user-input",25);a&2&&(I("users",b),Jf("disabled",!0))},
Ekc=function(a){a&1&&(K(0,"p"),S(1,"No child teams"),L())},Fkc=function(a,b){a&1&&(M(0,"br"),K(1,"a",40),S(2),L());a&2&&(a=b.$implicit,B(),I("routerLink",Gg("/teams/",a.id,"/edit")),B(),Ag(a.name))},Gkc=function(a){a&1&&Pf(0,Fkc,3,3,null,null,Of);a&2&&(a=P(),Qf(a))},Hkc=function(a,b){a&1&&F(0,Ekc,2,0,"p")(1,Gkc,2,0);a&2&&G(b.length===0?0:1)},Ikc=function(a){a&1&&(K(0,"a",41),S(1),L());if(a&2){a=P();I("routerLinkObj",a.link);B();var b;T(" ",(b=a.slo==null?null:a.slo.name)!=null?b:a.id," ")}},Jkc=function(a){a&
1&&S(0," None ")},Kkc=function(a,b){a&1&&(K(0,"div",29),S(1," Inherited SLO Policy: "),F(2,Ikc,2,2,"a",41)(3,Jkc,1,0),L());a&2&&(B(2),G(b.link?2:3))},Lkc=function(a,b){a&1&&(K(0,"a",31),S(1),L());a&2&&(I("routerLinkObj",b.link),B(),T(" ",b.name," "))},Mkc=function(a){a&1&&S(0," None ")},Nkc=function(a){a&1&&(M(0,"mat-icon",42),S(1," on "))},Okc=function(a){a&1&&(M(0,"mat-icon",43),S(1," off "))},Pkc=function(a){a&1&&(S(0," Lock: "),F(1,Nkc,2,0)(2,Okc,2,0));a&2&&(a=P(2),B(),G(a.originalSloLock?1:2))},
Qkc=function(a){if(a&1){var b=t();K(0,"div",44)(1,"mat-checkbox",45);N("change",function(c){u(b);var d=P(3);d.isSloInheritEnabled=!c.checked;d.isSloInheritEnabled&&(d.sloId=d.parentTeam.slo.sloId);return v()});K(2,"span");S(3,"Override the inherited SLO");L()()()}a&2&&(a=P(3),B(),I("disabled",!a.hasSloEditAccess)("checked",!a.isSloInheritEnabled))},Rkc=function(a){if(a&1){var b=t();K(0,"div",46)(1,"label",50);S(2," Justification to override the org SLO ");L();M(3,"mat-icon",51);K(4,"textarea",52);
U(5,"async");N("ngModelChange",function(c){u(b);var d=P(4);return v(d.sloJustification$.next(c))});L()()}a&2&&(a=P(4),B(3),I("matTooltip",a.justificationRequiredText),Jf("aria-label",a.justificationRequiredText),B(),I("ngModel",W(5,4,a.sloJustification$))("disabled",!a.hasSloEditAccess))},Skc=function(a,b){a&1&&(K(0,"a",49),U(1,"async"),M(2,"mat-icon",9),L());a&2&&(a=P(4),I("target",Fg(W(1,3,a.hasUnsavedChanges$)?"_blank":"_self"))("routerLinkObj",b))},Tkc=function(a){if(a&1){var b=t();F(0,Rkc,6,
6,"div",46);K(1,"div",14)(2,"mat-slide-toggle",47);Eg("ngModelChange",function(e){u(b);var f=P(3);Dg(f.enableSloChecked,e)||(f.enableSloChecked=e);return v(e)});N("change",function(e){u(b);var f=P(3);return v(f.enableSloChecked=e.checked)});S(3," Enable SLO ");L();K(4,"slo-picker",48);N("onSloSelect",function(e){u(b);var f=P(3);return v(f.onSloChange(e))});L();F(5,Skc,3,5,"a",49);U(6,"async");L()}if(a&2){var c;a=P();var d=P(2);G(a.value?-1:0);B(2);yg("indented",!a.value);Cg("ngModel",d.enableSloChecked);
I("disabled",!d.hasSloEditAccess);B(2);I("boundId",d.sloId)("bv2Disabled",!d.hasSloEditAccess||!d.enableSloChecked||d.isSloInheritEnabled)("bv2Placeholder",d.enableSloChecked?"Type to search for an SLO":"SLO disabled");B();G((c=W(6,9,d.sloPickerLink$))?5:-1,c)}},Ukc=function(a,b){a&1&&(F(0,Qkc,4,2,"div",44),F(1,Tkc,7,11));a&2&&(a=P(2),G(b.value?-1:0),B(),G(a.isSloInheritEnabled?-1:1))},Vkc=function(a){if(a&1){var b=t();K(0,"div",14)(1,"mat-checkbox",53);N("change",function(c){u(b);var d=P(2);return v(d.sloLocked=
c.checked)});K(2,"span");S(3,"Lock for all child teams");L()()()}a&2&&(a=P(2),B(),I("checked",a.sloLocked)("disabled",!a.canEditSloLock))},Xkc=function(a){if(a&1){var b=t();K(0,"div",14)(1,"mat-checkbox",56);N("change",function(c){u(b);var d=P(3);d.isOwnerInheritEnabled=!c.checked;d.isOwnerInheritEnabled&&Wkc(d);return v()});K(2,"span");S(3,"Override the inherited owner");L()()()}a&2&&(a=P(3),B(),I("checked",!a.isOwnerInheritEnabled)("disabled",!a.hasSloEditAccess))},$kc=function(a,b){if(a&1){var c=
t();F(0,Xkc,4,2,"div",14);K(1,"div",14)(2,"div")(3,"label");S(4);L();K(5,"b-multi-user-input",54);N("usersChange",function(d){u(c);var e=P(2);d.length>1||(e.escalationOwner=d.length===1?d[0]:"");return v()})("isValid",function(d){u(c);var e=P(2);return v(e.isEscalationOwnerValid=d)});L();K(6,"div",55);S(7);L()()()}a&2&&(a=P(2),G(b.value?-1:0),B(4),Ag(a.isOwnerInheritEnabled&&!b.value?"Inherited owner":"Owner"),B(),I("users",a.escalationOwner?Kg(9,Ykc,a.escalationOwner):Jg(11,Zkc))("customValidators",
a.escalationOwnerUserValidators)("detailedUserValidators",a.escalationOwnerGooglerValidators)("maxUserAllowed",1),Jf("disabled",a.isOwnerInheritEnabled||!a.hasSloEditAccess?!0:null),B(),Jf("aria-hidden",!a.escalationOwnerInvalidErrorMessage),B(),T(" ",a.escalationOwnerInvalidErrorMessage," "))},clc=function(a){if(a&1){var b=t();K(0,"div",34)(1,"div",57)(2,"button",58);U(3,"async");N("click",function(){u(b);var c=P(),d=P();return v(alc(d,c))});S(4," Update ");L();K(5,"button",59);U(6,"async");N("click",
function(){u(b);var c=P(2);return v(blc(c))});S(7," Revert changes ");L()()()}a&2&&(a=P(2),B(2),I("disabled",!W(3,2,a.hasUnsavedChanges$)),B(3),I("disabled",!W(6,4,a.hasUnsavedChanges$)))},dlc=function(a){a&1&&(K(0,"p"),S(1,"No mapped components"),L())},elc=function(a,b){a&1&&(K(0,"ul")(1,"li")(2,"a",40),S(3),L()()());a&2&&(a=b.$implicit,B(2),I("routerLink",Gg("/components/",a.componentId,"/edit")),B(),T(" ",a.name," "))},flc=function(a){a&1&&(Pf(0,elc,4,3,"ul",null,Of),U(2,"async"));a&2&&(a=P(3),
Qf(W(2,0,a.associatedComponents$)))},glc=function(a,b){a&1&&F(0,dlc,2,0,"p")(1,flc,3,2);a&2&&G(b.length===0?0:1)},hlc=function(a){a&1&&(K(0,"th",70)(1,"span",71),S(2,"Starred"),L()())},ilc=function(a,b){if(a&1){var c=t();K(0,"td",72)(1,"b-star-toggle",73);N("starClicked",function(){var f=u(c).$implicit,g=P(),k=P(2),m=P();return v(m.toggleStar(f.id,k.teamId,g))});L()()}if(a&2){a=b.$implicit;b=P();var d=P(2),e=P();B();I("starred",e.isTriageStarred(a.id,d.teamId,b))("starMessage","Star this triage view")("unStarMessage",
"Un-star this triage view")}},jlc=function(a){a&1&&(K(0,"th",70),S(1,"Name"),L())},klc=function(a,b){a&1&&(K(0,"td",74)(1,"a",75),S(2),L()());if(a&2){a=b.$implicit;b=P(3);var c=P();B();I("href",c.getTriageLink(a.id,b.teamId),Me);B();T(" ",a.displayName||b.name+" triage"," ")}},llc=function(a){a&1&&(K(0,"th",70)(1,"span",71),S(2,"Actions"),L()())},mlc=function(a){a&1&&M(0,"div",79)},olc=function(a){if(a&1){var b=t();K(0,"button",81);N("click",function(){u(b);var c=P().$implicit,d=P(4);return v(nlc(d,
c))});M(1,"mat-icon",82);L()}a&2&&(a=P(5),I("disabled",!a.hasTeamEditAccess&&!a.enableTeamAdmin))},qlc=function(a,b){if(a&1){var c=t();K(0,"td",72)(1,"div",76)(2,"button",77);N("click",function(){var d=u(c).$implicit,e=P(3),f=P();return v(plc(f,d.id,e))});M(3,"mat-icon",78);L();F(4,mlc,1,0,"div",79)(5,olc,2,1,"button",80);L()()}a&2&&(a=b.$implicit,b=P(4),B(2),I("disabled",!b.hasTeamEditAccess&&!b.enableTeamAdmin),B(2),G(a.id===0?4:5))},rlc=function(a){a&1&&M(0,"tr",83)},slc=function(a){a&1&&M(0,"tr",
84)},ulc=function(a){if(a&1){var b=t();K(0,"h3");S(1,"Triage views");L();K(2,"table",60);Vf(3,61);E(4,hlc,3,0,"th",62)(5,ilc,2,3,"td",63);Wf();Vf(6,64);E(7,jlc,2,0,"th",62)(8,klc,3,2,"td",65);Wf();Vf(9,66);E(10,llc,3,0,"th",62)(11,qlc,6,2,"td",63);Wf();E(12,rlc,1,0,"tr",67)(13,slc,1,0,"tr",68);L();K(14,"button",69);N("click",function(){u(b);var c=P(2),d=P();return v(tlc(d,c))});S(15," Add new view ");L()}a&2&&(a=P(3),B(2),I("dataSource",a.teamExperiments.triage),B(10),I("matHeaderRowDef",a.tableColumns),
B(),I("matRowDefColumns",a.tableColumns),B(),I("disabled",!a.hasTeamEditAccess&&!a.enableTeamAdmin))},vlc=function(a){a&1&&(K(0,"mat-tab",36)(1,"div",13),F(2,ulc,16,4),U(3,"async"),L()());if(a&2){var b;a=P(2);I("id",a.Tab.TRIAGE);B(2);G((b=W(3,2,a.starredTriageViews$))?2:-1,b)}},ylc=function(a){if(a&1){var b=t();K(0,"div",34)(1,"div",57)(2,"button",58);N("click",function(){u(b);var c=P(2);return v(wlc(c))});S(3," Update ");L();K(4,"button",59);N("click",function(){u(b);var c=P(2);return v(xlc(c))});
S(5," Revert changes ");L()()()}a&2&&(a=P(2),B(2),I("disabled",a.sloDelegates==a.originalSloDelegates$.getValue()),B(2),I("disabled",a.sloDelegates==a.originalSloDelegates$.getValue()))},Alc=function(a,b){if(a&1){var c=t();K(0,"div",7)(1,"h2");S(2);K(3,"a",8);S(4);M(5,"mat-icon",9);L()()();F(6,Akc,2,1,"div",10);U(7,"async");K(8,"mat-tab-group",11);Eg("selectedIndexChange",function(D){u(c);var H=P();Dg(H.selectedTabIndex,D)||(H.selectedTabIndex=D);return v(D)});N("selectedIndexChange",function(D){u(c);
var H=P();return v(H.tabChange(D))});K(9,"mat-tab",12)(10,"div",13);S(11," Team information on this page comes from ");K(12,"a",8);S(13," Team Graph ");M(14,"mat-icon",9);L();S(15," and is view only. ");K(16,"div",14)(17,"div",15)(18,"label")(19,"span",16);S(20,"Description");L()();K(21,"div",17);F(22,Bkc,2,1,"ng-container")(23,Ckc,1,0);L()()();K(24,"div",14)(25,"div",18)(26,"label",19)(27,"span",16);S(28," Team admins ");L();K(29,"span",20)(30,"div",21);S(31," Team admins are team leads from Team Graph. ");
K(32,"div",22);M(33,"div",23)(34,"div",24);L()()()();F(35,Dkc,1,2,"b-multi-user-input",25);U(36,"async");L()();K(37,"div",14)(38,"div",15)(39,"label")(40,"span",16);S(41,"Child team(s)");L()();F(42,Hkc,2,1);U(43,"async");L()()()();K(44,"mat-tab",26)(45,"div",13)(46,"div",18)(47,"label",19)(48,"span",16);S(49,"SLO configuration");L()();K(50,"span",20)(51,"div",27)(52,"strong");S(53,"Careful!");L();S(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. ");
K(55,"div",22);M(56,"div",23)(57,"div",24);L()()()();K(58,"div",28);F(59,Kkc,4,1,"div",29);U(60,"async");K(61,"div",30);S(62," Policy Source: ");F(63,Lkc,2,2,"a",31);U(64,"async");Mf(65,Mkc,1,0);L();K(66,"div",32);F(67,Pkc,3,1);L()();M(68,"b-error-banner",33);F(69,Ukc,2,2);U(70,"async");F(71,Vkc,4,2,"div",14);K(72,"div",14)(73,"div",18)(74,"label",19)(75,"span",16);S(76," Owner configuration ");L()();K(77,"span",20)(78,"div",21);S(79," Single team lead receiving SLO reports of unassigned issues. ");
K(80,"div",22);M(81,"div",23)(82,"div",24);L()()()()();F(83,$kc,8,12);U(84,"async");F(85,clc,8,6,"div",34);L()();K(86,"mat-tab",35)(87,"div",13)(88,"div",14)(89,"div",15)(90,"label")(91,"span",16);S(92," Component(s) that have mapped to this team ");L()()();F(93,glc,2,1);U(94,"async");L()()();F(95,vlc,4,4,"mat-tab",36);K(96,"mat-tab",37)(97,"div",13)(98,"div",14)(99,"div",18)(100,"label",19)(101,"span",16);S(102," SLO delegates ");L();K(103,"span",20)(104,"div",21);S(105," SLO delegates can manage the SLO policy for the team and its children, as well as all associated components and their children. ");
K(106,"div",22);M(107,"div",23)(108,"div",24);L()()()()();K(109,"b-multi-user-input",38);N("usersChange",function(D){u(c);P().sloDelegates=D;return v()});L()();F(110,ylc,6,2,"div",34);L()()()}if(a&2){var d,e,f,g,k,m,r,w,x;a=P();B(2);T(" Team ",b.teamId,": ");B();I("href",Gg("https://moma.corp.google.com/team/",b.teamId),Me);B();T(" ",b.name," ");B(2);G((d=W(7,30,a.teamPath$))?6:-1,d);B(2);Cg("selectedIndex",a.selectedTabIndex);B();I("id",a.Tab.BASIC);B(3);I("href",Gg("https://moma.corp.google.com/team/",
b.teamId),Me);B(10);G((e=b.description)?22:23,e);B(13);G((f=W(36,32,a.adminsAndLeads$))?35:-1,f);B(7);G((g=W(43,34,a.childTeams$))?42:-1,g);B(2);I("id",a.Tab.SLO);B(15);G((k=W(60,36,a.inheritedSlo$))?59:-1,k);B(4);G((m=W(64,38,a.sloPolicySource$))?63:65,m);B(4);G(a.enableSloLockingUi?67:-1);B();I("error",a.error);B();G((r=Kg(46,zlc,W(70,40,a.isRootTeam$)))?69:-1,r);B(2);G(a.enableSloLockingUi?71:-1);B(12);G((w=Kg(48,zlc,W(84,42,a.isRootTeam$)))?83:-1,w);B(2);G(a.hasSloEditAccess?85:-1);B();I("id",
a.Tab.MAPPINGS);B(7);G((x=W(94,44,a.associatedComponents$))?93:-1,x);B(2);G(a.enableTeamScope?95:-1);B();I("id",a.Tab.ACCESS);B(13);I("users",a.sloDelegates)("includeAliases",!0)("includeViewAliases",!0);Jf("disabled",a.hasTeamEditAccess?null:!0);B();G(a.hasTeamEditAccess?110:-1)}},Blc=function(a,b){a&1&&(K(0,"div",85),S(1),L(),K(2,"div",86)(3,"button",87),S(4," Cancel "),L(),K(5,"button",88),S(6," Confirm "),L()());a&2&&(a=b.$implicit,B(),T(' Are you sure you want to delete this triage view: "',
a.displayName,'"? '),B(2),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0))},Clc=function(a){a&1&&(K(0,"a",9),S(1,"Learn more"),L())},Dlc=function(a){a&1&&(K(0,"mat-error"),S(1),L());a&2&&(a=P(2),B(),Ag(a.validationErrorMessage))},Elc=function(a){if(a&1){var b=t();K(0,"div",8)(1,"p");S(2," Input a URL from a supported source to add a task. ");F(3,Clc,2,0,"a",9);L()();K(4,"mat-form-field",10);M(5,"input",11,3);F(7,Dlc,2,1,"mat-error");L();K(8,"div",12)(9,"div",13)(10,"button",14);N("click",function(){u(b);
var c=P();return v(c.cancelClicked.emit())});S(11,"Cancel");L();K(12,"button",15);N("click",function(){u(b);var c=P();return v(c.saveChanges())});S(13,"Add Task");L()()()}a&2&&(a=P(),B(3),G(a.isInternalSession?3:-1),B(2),I("formControl",a.addTasksForm)("placeholder",a.urlPlaceholder),B(2),G(a.validationErrorMessage?7:-1),B(5),I("disabled",a.addTasksForm.invalid||a.saving))},Flc=function(a){a&1&&(K(0,"mat-error"),S(1,"Title is required"),L())},Glc=function(a,b){a&1&&(K(0,"mat-option",25),S(1),L());
a&2&&(a=b.$implicit,I("value",a.id),B(),T(" ",a.title," "))},Hlc=function(a){a&1&&(K(0,"mat-error",26),S(1,"Task list is required"),L())},Jlc=function(a){if(a&1){var b=t();K(0,"div",16)(1,"form",17);N("ngSubmit",function(){u(b);var f=P();return v(f.onSubmit())});K(2,"mat-form-field",18);M(3,"input",19,3);K(5,"mat-hint",20);S(6);L();F(7,Flc,2,0,"mat-error");L();K(8,"mat-form-field",18);M(9,"textarea",21,4);K(11,"mat-hint",20);S(12);L()();K(13,"mat-form-field",22);M(14,"mat-icon",23);K(15,"mat-select",
24);Pf(16,Glc,2,2,"mat-option",25,Ilc);U(18,"async");L();F(19,Hlc,2,0,"mat-error",26);L();K(20,"mat-form-field",27);M(21,"mat-datepicker-toggle",28);K(22,"input",29);N("click",function(){u(b);var f=Q(24);return v(f.open())});L();M(23,"mat-datepicker",null,5);L();K(25,"div",30)(26,"button",14);N("click",function(){u(b);var f=P();return v(f.cancelClicked.emit())});S(27,"Cancel");L();K(28,"button",31);S(29,"Add");L()()()()}if(a&2){a=Q(4);var c=Q(10),d=Q(24),e=P();B();I("formGroup",e.gTaskForm);B(5);
T("",a.value.length," / 1024");B();G((e.title==null?0:e.title.hasError("required"))?7:-1);B(5);T("",c.value.length," / 8192");B(4);Qf(W(18,8,e.gtaskListIds$));B(3);G((e.taskListId==null?0:e.taskListId.hasError("required"))?19:-1);B(2);I("for",d);B();I("matDatepicker",d);B(6);I("disabled",e.gTaskForm.invalid)}},Klc=function(a){a&1&&Xf(0)},Llc=function(a){a&1&&Xf(0)},Mlc=function(a){a&1&&(K(0,"mat-tab-group",7)(1,"mat-tab",32),E(2,Klc,1,0,"ng-container",33),L(),K(3,"mat-tab",34),E(4,Llc,1,0,"ng-container",
33),L()());if(a&2){P();a=Q(3);var b=Q(5);B(2);I("ngTemplateOutlet",a);B(2);I("ngTemplateOutlet",b)}},Nlc=function(a){a&1&&Xf(0)},Olc=function(a){a&1&&E(0,Nlc,1,0,"ng-container",33);a&2&&(P(),a=Q(3),I("ngTemplateOutlet",a))},Plc=function(a){a&1&&(K(0,"div",0)(1,"div",1),M(2,"mat-icon",2),S(3),L(),K(4,"div",3),M(5,"mat-icon",4),K(6,"span")(7,"a",5),S(8),L(),S(9," \u00b7 "),M(10,"b-formatted-date-time",6),S(11," \u2010 "),M(12,"b-formatted-date-time",6),L()()());if(a&2){a=P();B(3);T(" ",a.iteration.workspace.name,
" ");B(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);I("href",e,Me);B();T(" ",a.iteration.name," ");B(2);I("paddingLeftPx",0)("timestamp",a.iteration.startTimestamp);B(2);I("paddingLeftPx",0)("timestamp",a.iteration.endTimestamp)}},Qlc=function(a){a&1&&M(0,"iteration-card",4,1);if(a&2){a=Q(1);var b=P(2);I("onedevIsHovercardReady",a.hovercardReady$)("iteration",b.iteration)}},
Rlc=function(a){if(a&1){var b=t();K(0,"div",2);N("onedevHovercardShown",function(){u(b);var c=P();return v(c.trackHoverEvent())})("click",function(c){u(b);var d=P();c.stopPropagation();d.analytics.trackEvent("missionControl","click","iteration-chip");var e,f,g;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/"+((g=d.iteration)==null?void 0:g.iterationId):d.getBaseUrl();
d.domSafe.openInNewTab(c);return v()});S(1," Current ");L();K(2,"onedev-hovercard",null,0);E(4,Qlc,2,2,"iteration-card",3);L()}a&2&&(a=Q(3),I("onedevHovercardTrigger",a))},Ylc=function(a,b,c,d,e){return Slc(a).map(function(f){var g=f.task,k=Tlc(f.signals,b,e);if(g&&k&&k.length!==0){var m,r,w,x,D,H,J=g.taskId,O=g.taskResourceType,R=g.title,V=Ulc(k);f=Vlc(f,k);if(g.issueResource){var ba=g.issueResource.priority;ba=ba==="P0"||ba==="P1"?ba:null}else ba=null;return{id:J,type:O,description:R,lastAlertTimestamp:V,
signals:f,link:g.externalLink,icon:M4a(g),priority:ba,accessLevel:(w=(m=g.issueResource)==null?void 0:m.accessLevel)!=null?w:null,hotlistIds:g.issueResource?g.issueResource.hotlistIds:[],issueId:Q9a(g.taskId).length===1?Q9a(g.taskId)[0]:null,futureAvailability:Wlc(k),reviewEstimate:Xlc(k),lastMentionLink:((r=g.driveResource)==null?0:r.lastMentionLink)&&g.driveResource.lastMentionLink!==""?g.driveResource.lastMentionLink:void 0,isStaleTask:(x=g.isStaleTask)!=null?x:!1,snoozeUntilTimestamp:(D=g.snoozeUntilTimestamp)!=
null?D:void 0,manualSignalTimestamp:(H=g.manualSignalTimestamp)!=null?H:void 0,iteration:c.get(g.taskId),okrIds:d.get(g.taskId)}}}).filter(ln)},Tlc=function(a,b,c){return Zlc(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})},Slc=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})},Vlc=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,d.configurableAlertSubscriptionId=c.issueAlert.configurableAlertSubscriptionId);c.googleTasksAlert&&(d.type=c.googleTasksAlert.signal);c.gerritAlert&&(d.type=c.gerritAlert.signal);
c.irmAlert&&(d.type=c.irmAlert.signal);return d})},Zlc=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"})},Ulc=function(a){return a.sort(function(b,c){var d,e;return((d=to(c.timestamp))!=null?d:0)-((e=to(b.timestamp))!=null?e:0)})[0].timestamp},$lc=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}},amc=function(a){var b=a[0],c=$lc(b);a=l(a);for(var d=a.next();!d.done;d=a.next())d=d.value,$lc(d)<c&&(b=d,c=$lc(b));return b},Wlc=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(ln)},Xlc=function(a){return a.map(function(b){var c;return(c=b.changelistAlert)==null?void 0:c.reviewEstimate}).find(ln)},bmc=function(a){var b=V6a(a.getFrequency()),c=a.getTimeZone(),d=a.getTimeOfDay(),e=a.getLastUpdatedTimestamp();if(!b)throw Error("ne");if(!c)throw Error("oe");if(!d)throw Error("pe");if(!e)throw Error("Hg");return{id:a.getId_asString(),frequency:b,ordinal:a.getOrdinal(),timeZone:X6a(c),timeOfDay:Z6a(d),
displayName:a.getDisplayName(),query:a.getQuery(),sendEmail:$i(a,8),showInBuganizerHome:$i(a,9),baselineIssueIds:[].concat(n(mn(a,10))),isOverflowing:$i(a,11),lastUpdated:tn(e)}},cmc=function(a){var b=(new Vu).setId(a.id).setFrequency(W6a(a.frequency)).setOrdinal(a.ordinal).setTimeZone(Y6a(a.timeZone)).setTimeOfDay($6a(a.timeOfDay)).setDisplayName(a.displayName).setQuery(a.query);b=sp(b,8,a.sendEmail);b=sp(b,9,a.showInBuganizerHome);b=Kr(b,10,a.baselineIssueIds);b=sp(b,11,a.isOverflowing);a=un(a.lastUpdated);
return hj(b,nj,12,a)},hmc=function(a,b){a&1&&(K(0,"div",0)(1,"h1"),S(2),L(),K(3,"div",1)(4,"pre"),S(5),L()(),K(6,"div",2)(7,"a",3),S(8," Edit alert "),L(),K(9,"a",4),S(10," View issues "),L()()());a&2&&(B(2),Ag(b.displayName),B(3),Ag(b.query),B(2),I("routerLinkObj",Kg(6,dmc,Kg(4,emc,b.id))),B(2),I("routerLinkObj",Kg(10,fmc,Kg(8,gmc,b.query))))},imc=function(a){if(a&1){var b=t();K(0,"a",5);N("click",function(){u(b);P(2).analytics.trackEvent("mentionsCard","navigate","comment");return v()});S(1," a comment ");
L()}a&2&&(a=P(2),I("href",a.lastMentionLink,Me))},jmc=function(a){a&1&&S(0," a comment ")},kmc=function(a,b){a&1&&(K(0,"div",0)(1,"div",1)(2,"span"),M(3,"b-user-display",2),S(4," mentioned you in "),F(5,imc,2,1,"a",3)(6,jmc,1,0),L(),K(7,"span"),M(8,"b-formatted-date-time",4),L()(),K(9,"div"),S(10),L()());a&2&&(a=P(),B(3),I("model",{emailAddress:b.authorDisplayName}),B(2),G(a.lastMentionLink?5:6),B(3),I("timestamp",b.lastModifiedTimestamp),B(2),Ag(b.content))},lmc=function(a,b){if(a&1){var c=t();K(0,
"a",7);U(1,"async");N("click",function(){u(c);P(3).analytics.trackEvent("mentionsCard","navigate","commentNumber");return v()});S(2);L()}if(a&2){a=P(3);var d;I("routerLinkObj",a.getCommentNumberLink((d=W(1,2,a.issueId$))!=null?d:"",b));B(2);T(" comment #",b," ")}},mmc=function(a){if(a&1){var b=t();K(0,"div",9)(1,"span",10);S(2," Was this 'Needs Response' alert accurate? ");L();K(3,"button",11);N("click",function(){u(b);var c=P(4);return v(c.trackThumbsUp())});M(4,"mat-icon",12);L();K(5,"button",13);
N("click",function(){u(b);var c=P(4);return v(c.trackThumbsDown())});M(6,"mat-icon",14);L()()}a&2&&(a=P(4),B(3),I("disabled",a.hasReacted),B(),yg("has-reacted-icon",a.thumbsUpClicked),B(),I("disabled",a.hasReacted),B(),yg("has-reacted-icon",a.thumbsDownClicked))},nmc=function(a,b){a&1&&(K(0,"div"),M(1,"b-note-container",8),U(2,"async"),F(3,mmc,7,6,"div",9),L());if(a&2){a=P().$implicit;var c=P(2);B();var d;I("issueId",(d=W(2,4,c.issueId$))!=null?d:"")("note",b)("formattingMode",a.formattingMode);B(2);
G(c.needsResponse&&!a.commentRedacted?3:-1)}},omc=function(a,b){a&1&&(K(0,"div")(1,"div",2)(2,"span",3),M(3,"b-user-display",4),K(4,"span"),S(5," mentioned you in "),F(6,lmc,3,4,"a",5),L()(),K(7,"span"),M(8,"b-formatted-date-time",6),L()(),F(9,nmc,4,6,"div"),L());if(a&2){var c;a=b.$implicit;var d=b.$index;b=b.$count;P(2);yg("margin-s-bottom",d!==b-1)("padded-s-bottom",d!==b-1)("border-bottom",d!==b-1);B(3);I("model",a.lastCommentEditorUser);B(3);G((c=a.commentNumber)?6:-1,c);B(2);I("timestamp",a.commentLastModifiedAtDate);
B();var e;c={commentNumber:(e=a.commentNumber)!=null?e: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};G(c?9:-1,c)}},qmc=function(a,b){a&1&&(K(0,"div",0),Pf(1,omc,10,10,"div",1,pmc),K(3,"div"),Xf(4),L()());a&2&&(B(),Qf(b))},rmc=function(a){a&1&&Xf(0)},tmc=function(a){a&1&&E(0,rmc,1,0,"ng-container",5);if(a&2){a=P().$implicit;P(2);var b=Q(3);I("ngTemplateOutlet",
b)("ngTemplateOutletContext",Kg(2,smc,a))}},umc=function(a,b){a&1&&F(0,tmc,1,4,"ng-container");a&2&&(a=b.$implicit,b=P(2),G(b.SIGNAL_TO_DISPLAY_TEXT.has(a.type)?0:-1))},wmc=function(a){a&1&&(K(0,"div",4),Pf(1,umc,1,1,null,null,vmc),L());a&2&&(a=P(),B(),Qf(a.signals))},xmc=function(a){a&1&&Xf(0)},zmc=function(a,b){a&1&&(K(0,"div",6),E(1,xmc,1,0,"ng-container",5),K(2,"div",7),S(3),L()());if(a&2){a=P(2);var c=Q(3);B();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Kg(4,smc,b));B();I("matTooltip",
ymc(a.signals,b));B();T(" and ",a.signals.length-1," more ")}},Amc=function(a){a&1&&F(0,zmc,4,6,"div",6);if(a&2){var b;a=P();G((b=a.getHighestPrioritySignal(a.signals))?0:-1,b)}},Bmc=function(a){a&1&&S(0);if(a&2){var b=P().signal;a=P();b=b.type;a=a.tailwindRunStatus&&b==="ISSUE_SNOOZE_EXPIRED"?"AI Fix":Wu.get(b);T(" ",a," ")}},Cmc=function(a){a&1&&S(0);if(a&2){a=P().signal;var b=P();T(" ",b.SIGNAL_TO_DISPLAY_TEXT.get(a.type)," ")}},Emc=function(a){a&1&&M(0,"mentioned-issue-comments-card",9,3);if(a&
2){a=Q(1);var b=P(2).signal,c=P(),d;I("onedevIsHovercardReady",a.contentReady$)("issueId",c.issueId)("commentNumbers",(d=b.commentNumbers)!=null?d:Jg(4,Dmc))("needsResponse",b.type==="MENTIONED_NEEDS_RESPONSE")}},Fmc=function(a){a&1&&E(0,Emc,2,5,"mentioned-issue-comments-card",12)},Gmc=function(a){a&1&&M(0,"mentioned-drive-comments-card",10,3);if(a&2){a=Q(1);var b=P(2).signal;I("onedevIsHovercardReady",a.contentReady$)("fileId",b.driveFileId)("commentId",b.driveCommentId)("lastMentionLink",b.driveCommentLink)}},
Hmc=function(a){a&1&&E(0,Gmc,2,4,"mentioned-drive-comments-card",13)},Imc=function(a){a&1&&M(0,"configurable-alert-card",11,3);if(a&2){a=Q(1);var b=P(2).signal;I("onedevIsHovercardReady",a.contentReady$)("subscriptionId",b.configurableAlertSubscriptionId)}},Jmc=function(a){a&1&&E(0,Imc,2,2,"configurable-alert-card",14)},Omc=function(a,b){if(a&1){var c=t();bg(0);K(1,"div",8,1);N("mouseenter",function(){u(c);var f=Q(2),g=dg(0);return v(g?f.disabled=!0:null)})("mouseleave",function(){u(c);var f=Q(2),
g=dg(0);return v(g?f.disabled=!1:null)});F(3,Bmc,1,1)(4,Cmc,1,1);L();K(5,"onedev-hovercard",null,2);F(7,Fmc,1,0,"mentioned-issue-comments-card",9)(8,Hmc,1,0,"mentioned-drive-comments-card",10)(9,Jmc,1,0,"configurable-alert-card",11);L()}if(a&2){a=b.signal;b=Q(6);var d=P(),e=cg(Kmc(d,a)||Lmc(a)||Mmc(a));B();zg(Gg("signal-chip type-button urgent-",d.getSignalUrgency(a)));yg("keep-focus-ring",e);I("onedevHovercardActive",e)("onedevHovercardTrigger",b)("matTooltip",Kmc(d,a)||Lmc(a)||Mmc(a)?'Press "Alt/Option + Right Arrow Key" to show comment':
d.enableTailwindMissionControl&&d.tailwindRunStatus&&a.type==="ISSUE_SNOOZE_EXPIRED"?"This issue has a AI Fix":Nmc.get(a.type));Jf("tabindex",e?"0":"-1");B(2);G(d.enableTailwindMissionControl?3:4);B(4);G(Kmc(d,a)?7:Lmc(a)?8:Mmc(a)?9:-1)}},Qmc=function(a,b){a&1&&(Sf(0,"div",3)(1,"div",5),S(2),Tf(),Sf(3,"div")(4,"a",6),S(5),Tf()()());a&2&&(P(3),B(2),T(" O ",Pmc(b==null?null:b.priorityRating)),B(2),Rf("href",b==null?null:b.url,Me),B(),Ag(b==null?null:b.title))},Rmc=function(a,b){a&1&&(Sf(0,"div",4)(1,
"div",7),S(2),Tf(),Sf(3,"div")(4,"a",6),S(5),Tf()()());a&2&&(P(3),B(2),T(" KR ",Pmc(b.priorityRating)),B(2),Rf("href",b.url,Me),B(),T(" ",b==null?null:b.title))},Umc=function(a,b){a&1&&(Sf(0,"div",2),F(1,Qmc,6,3,"div",3),F(2,Rmc,6,3,"div",4),Tf());if(a&2){var c,d;a=b.$implicit;b=P();P();B();G((c=Smc(b,a))?1:-1,c);B();G((d=Tmc(b,a))?2:-1,d)}},Vmc=function(a){a&1&&(Sf(0,"div",0)(1,"div",1),Pf(2,Umc,3,2,"div",2,Of),Tf()());a&2&&(a=P(),B(2),Qf(a.okrIds))},Wmc=function(a){a&1&&M(0,"okr-card",4,1);if(a&
2){a=Q(1);var b=P(2);I("onedevIsHovercardReady",a.hovercardReady$)("okrIds",b.okrIds)}},Xmc=function(a){if(a&1){var b=t();K(0,"div",2);N("onedevHovercardShown",function(){u(b);var c=P();return v(c.trackHoverEvent())});S(1,"OKR");L();K(2,"onedev-hovercard",null,0);E(4,Wmc,2,2,"okr-card",3);L()}a&2&&(a=Q(3),I("onedevHovercardTrigger",a))},Ymc=function(a){a&1&&(Sf(0,"div",0)(1,"div",1)(2,"div",2)(3,"div"),S(4," Your response time is longer than usual for similar items. Respond to unblock others ("),
Sf(5,"a",3),S(6,"see more"),Tf(),S(7,"). "),Tf()()()())},Zmc=function(a){a&1&&M(0,"stale-task-card",5,1);if(a&2){a=Q(1);var b=P();I("onedevIsHovercardReady",a.hovercardReady$)("taskId",b.taskId)}},$mc=function(a,b){if(a&1){var c=t();K(0,"button",5);N("click",function(d){var e=u(c).$implicit;P().onCheckboxChange(e);return v(d.stopPropagation())});K(1,"mat-checkbox",8);S(2);L()()}a&2&&(a=b.$implicit,b=P(),B(),I("checked",b.currentSelectedSignals.has(a)),B(),T(" ",b.SIGNAL_TO_DISPLAY_TEXT.get(a)," "))},
anc=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P(),zg(Gg("icon-s checkmark ",a.displayName)))},dnc=function(a,b){if(a&1){var c=t();K(0,"span",2)(1,"button",3);N("click",function(){u(c);var e=P().$implicit,f=P();return v(f.sourceFilterChange(e))});F(2,anc,1,3,"mat-icon",4);K(3,"span",5);S(4);L()();K(5,"signal-list-dropdown",6);N("changeFilteredSignals",function(e){u(c);var f=P().$implicit,g=P();return v(g.signalFilterChange(e,f))})("chipSelectionStateChanged",function(e){u(c);var f=P().$implicit;P().chipsSelected[f]=
e;return v()});L()()}if(a&2){a=P().$implicit;var d=P();yg("expanded",d.chipsSelected[a]);B();Jf("aria-pressed",d.chipsSelected[a]);B();G(d.chipsSelected[a]?2:-1);B();I("matTooltip",b.tooltipText);B();T(" ",d.activeSession.isInternalSession()?b.displayName:b.externalDisplayName," ");B();I("signalFilterKeys",bnc(d,a))("selectedSignals",cnc(d,a))("source",a)}},enc=function(a,b){a&1&&F(0,dnc,6,9,"span",1);if(a&2){var c;a=b.$implicit;b=P();G((c=b.DEFINITIONS[a])?0:-1,c)}},fnc=function(a,b){if(a&1){var c=
t();K(0,"button",7);N("click",function(){var d=u(c).$implicit,e=P();d=d.numberOfDays;e.selectedTimeBoundary=d;e.change.emit(d);return v()});S(1);L()}a&2&&(a=b.$implicit,b=P(),I("disabled",a.numberOfDays===b.selectedTimeBoundary),B(),T(" ",a.label," "))},gnc=function(a){if(a&1){var b=t();K(0,"button",4);N("click",function(){u(b);var c=P();c.unsnooze.emit();c.onOpen(!1);return v()});M(1,"mat-icon",12);S(2,"Unsnooze now ");L()}},hnc=function(a){if(a&1){var b=t();K(0,"div",13);N("clickOutside",function(){u(b);
P().timePickerOpen=!1;return v()});K(1,"b-date-time-picker-content",14);N("cancelClicked",function(){u(b);P().timePickerOpen=!1;return v()})("dateTimeChange",function(c){u(b);P().currentPickerDateTime=c;return v()})("saveClicked",function(){u(b);var c=P(),d=c.currentPickerDateTime;d&&c.snooze.emit(d);c.timePickerOpen=!1;return v()});L()()}a&2&&(a=P(),B(),I("required",!0)("renderPanel",!0)("dateTime",a.currentPickerDateTime)("includeTimePicker",!0)("todayButtonEnabled",!1))},inc=function(a){if(a&1){var b=
t();Vf(0);K(1,"div",1)(2,"span",2)(3,"a",3);N("click",function(){u(b);P().onChipClicked.emit();return v()});S(4,"DMA");L()()();Wf()}a&2&&(a=P(),B(),I("matTooltip",a.DMA_TOOLTIP_TEXT))},jnc=function(a){a&1&&(K(0,"label",11),S(1),L());a&2&&(a=P().$implicit,I("matTooltip",a.description),B(),Ag(a.label))},knc=function(a){a&1&&(K(0,"mat-tab"),E(1,jnc,2,2,"ng-template",10),L())},lnc=function(a,b){if(a&1){var c=t();K(0,"signal-filter-chips",13);N("changeSourceAndFilteredSignals",function(e){u(c);var f=P(2).missionControlPrefs,
g=e.selectedSignals;f.prefs.needsAttentionSources=e.selectedSources.map(CHb);f.prefs.needsAttentionBuganizerFilteredSignals=EHb(g.buganizerSignals,f.filteredSignalsOptions);f.prefs.needsAttentionDriveFilteredSignals=IHb(g.driveSignals,f.filteredSignalsOptions);f.prefs.needsAttentionGerritFilteredSignals=KHb(g.gerritSignals,f.filteredSignalsOptions);f.prefs.needsAttentionChangelistFilteredSignals=GHb(g.changelistSignals,f.filteredSignalsOptions);f.prefs.needsAttentionGoogleTasksFilteredSignals=OHb(g.googleTasksSignals,
f.filteredSignalsOptions);f.prefs.needsAttentionIrmFilteredSignals=PHb(g.irmSignals,f.filteredSignalsOptions);lu(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){u(c);var f=P(2).missionControlPrefs;e=e.map(CHb);f.prefs.needsAttentionSources=e;lu(f,{needsAttentionSources:e,isNeedsAttentionSourcesConfigured:!0});return v()});L()}if(a&2){a=P();var d=P();I("sourceFilterKeys",d.SOURCE_FILTERS)("selectedSources",a)("selectedSignals",b)}},mnc=function(a){a&
1&&(F(0,lnc,1,3,"signal-filter-chips",12),U(1,"async"));if(a&2){var b;a=P();G((b=W(1,1,a.filteredSignals$))?0:-1,b)}},nnc=function(a,b){if(a&1){var c=t();K(0,"time-boundary-filter",14);N("change",function(d){u(c);var e=P().missionControlPrefs;e.prefs.needsAttentionDaysOld=d;lu(e,{needsAttentionDaysOld:d});return v()});L()}a&2&&I("selectedTimeBoundary",b)},onc=function(a){if(a&1){var b=t();K(0,"div",8)(1,"button",15,0);N("taskAdded",function(){u(b);var c=P();return v(c.refreshTaskData())});S(3," Add a task ");
L()()}},pnc=function(a){a&1&&(K(0,"p",16),S(1," No alerts "),L())},qnc=function(a){if(a&1){var b=t();K(0,"th",32)(1,"mat-checkbox",33);N("change",function(d){u(b);var e=P(2),f=P(2);return v(d?f.toggleAllRows(e):null)});L()()}if(a&2){a=P(2);var c=P(2);B();I("checked",c.selection.hasValue()&&c.selection.selected.length===a.length)("indeterminate",c.selection.hasValue()&&c.selection.selected.length!==a.length)}},rnc=function(a,b){if(a&1){var c=t();K(0,"td",34)(1,"mat-checkbox",35);N("click",function(d){u(c);
return v(d.stopPropagation())})("change",function(d){var e=u(c).$implicit,f=P(4);return v(d?f.selection.toggle(e.id):null)});L()()}a&2&&(a=b.$implicit,b=P(4),B(),I("checked",b.selection.isSelected(a.id)))},snc=function(a){a&1&&(K(0,"th",32),S(1),L());a&2&&(a=P(4),B(),Ag(a.selection.hasValue()?"":"Source"))},tnc=function(a,b){a&1&&(K(0,"td",34),M(1,"mat-icon",36),L());a&2&&(a=b.$implicit,B(),zg(Gg("product-icon ",a.icon)),I("matTooltip",a.type)("svgIcon",a.icon),Jf("aria-label",a.type))},vnc=function(a){if(a&
1){var b=t();K(0,"button",39);N("click",function(){u(b);var c=P(5);unc(c,c.selection.selected);c.selection.clear();return v()});S(1);U(2,"async");L()}a&2&&(a=P(5),B(),Ag(W(2,1,a.dismissButtonLabel$)))},wnc=function(a){a&1&&(K(0,"span"),S(1,"Description"),L())},ync=function(a){if(a&1){var b=t();K(0,"button",40,1);S(2);U(3,"async");L();K(4,"snooze-menu",41,2);N("snooze",function(e){u(b);var f=P(5);xnc(f,f.selection.selected,e);f.selection.clear();return v()})("unsnooze",function(){u(b);var e=P(5);xnc(e,
e.selection.selected);e.selection.clear();return v()});L()}if(a&2){a=Q(1);var c=Q(5),d=P(5);I("matMenuTriggerFor",c.menu);B(2);Ag(W(3,4,d.snoozeButtonLabel$));B(2);I("isSnoozed",d.signalStatusFilter$.getValue()===d.SignalStatus.SNOOZED)("datePickerAnchor",a)}},Bnc=function(a){if(a&1){var b=t();K(0,"button",42);N("click",function(){u(b);var c=P(5);return v(znc(c))});S(1);L()}a&2&&(a=P(5),B(),Ag(Anc(a)?"Trigger manual signal":"Remove manual signal"))},Cnc=function(a){a&1&&(K(0,"th",32),F(1,vnc,3,3,
"button",37)(2,wnc,2,0,"span"),F(3,ync,6,6),F(4,Bnc,2,1,"button",38),L());a&2&&(a=P(4),B(),G(a.selection.hasValue()?1:2),B(2),G(a.selection.hasValue()?3:-1),B(),G(a.selection.hasValue()?4:-1))},Dnc=function(a){a&1&&M(0,"b-issue-visibility-chip",45);if(a&2){a=P(2).$implicit;var b=P(4);I("issueId",b.extractLastDigits(a.id))}},Enc=function(a){a&1&&M(0,"okr-chip",46);a&2&&(a=P(2).$implicit,I("okrIds",a.okrIds))},Fnc=function(a){a&1&&M(0,"iteration-chip",47);a&2&&(a=P(2).$implicit,I("iteration",a.iteration))},
Gnc=function(a){a&1&&(K(0,"div",48),U(1,"futureAvailability"),M(2,"mat-icon",53),L());a&2&&(a=P(2).$implicit,I("matTooltip",W(1,1,a.futureAvailability)))},Hnc=function(a){a&1&&(K(0,"div",49),S(1),U(2,"number"),L());a&2&&(a=P(2).$implicit,B(),T(" <",Ng(2,1,a.reviewEstimate.seconds/60,"1.0-0"),"m "))},Inc=function(a){a&1&&M(0,"b-issue-priority-display",50);a&2&&(a=P(2).$implicit,I("issuePriority",a.priority))},Knc=function(a){if(a&1){var b=t();K(0,"div",43);F(1,Dnc,1,1,"b-issue-visibility-chip",45);
F(2,Enc,1,1,"okr-chip",46);F(3,Fnc,1,1,"iteration-chip",47);F(4,Gnc,3,3,"div",48);F(5,Hnc,3,4,"div",49);F(6,Inc,1,1,"b-issue-priority-display",50);K(7,"a",51);N("auxclick",function(){u(b);var d=P().$implicit,e=P(2),f=P(2);return v(f.sendClickAnalytics(d,e.slice(0,f.numDisplayedRows)))});S(8);L();K(9,"onedev-dma-chip",52);N("onChipClicked",function(){u(b);var d=P(5);return v(d.sendDmaAnalytics())});L()()}if(a&2){a=P().$implicit;var c=P(4);B();G(a.type===c.TaskResourceType.ISSUE?1:-1);B();G(a.okrIds&&
a.okrIds.length>0?2:-1);B();G(a.iteration?3:-1);B();G(c.hasFutureAvailability(a)?4:-1);B();G(a.reviewEstimate&&a.reviewEstimate.seconds>=60?5:-1);B();G(a.priority?6:-1);B();I("href",Jnc(a),Me);Jf("target",a.type!==c.TaskResourceType.ISSUE?"_blank":null);B();T(" ",a.description," ");B();I("hotlistIds",a.hotlistIds)}},Lnc=function(a){a&1&&(K(0,"span",44),S(1,"No access to linked file"),L())},Mnc=function(a,b){a&1&&(K(0,"td",34),F(1,Knc,10,10,"div",43)(2,Lnc,2,0,"span",44),L());a&2&&(a=b.$implicit,B(),
G(a.description&&a.description!==""?1:2))},Nnc=function(a){a&1&&(K(0,"th",32),S(1),L());a&2&&(a=P(4),B(),Ag(a.selection.hasValue()?"":"Most recent alert"))},Onc=function(a){if(a&1){var b=t();K(0,"div")(1,"stale-task-indicator",54);N("click",function(){u(b);P();P(4).analytics.trackEvent("missionControl","click","stalenessChip-{{row.type}}");return v()});L()()}a&2&&(a=P().$implicit,B(),I("taskId",a.id)("lastAlertTimestamp",a.lastAlertTimestamp))},Pnc=function(a){a&1&&M(0,"b-formatted-date-time",55);
a&2&&(a=P(2).$implicit,I("timestamp",a.lastAlertTimestamp)("paddingLeftPx",6))},Qnc=function(a){a&1&&F(0,Pnc,1,2,"b-formatted-date-time",55);a&2&&(a=P().$implicit,G(a.lastAlertTimestamp?0:-1))},Rnc=function(a,b){a&1&&(K(0,"td",34),F(1,Onc,2,2,"div")(2,Qnc,1,1),L());a&2&&(a=b.$implicit,B(),G(a.isStaleTask?1:2))},Snc=function(a){a&1&&(K(0,"th",32),S(1),L());a&2&&(a=P(4),B(),T(" ",a.selection.hasValue()?"":"Alert"," "))},Tnc=function(a,b){a&1&&(K(0,"td",34),M(1,"needs-attention-signals-cell",56),L());
a&2&&(a=b.$implicit,B(),I("issueId",a.issueId)("signals",a.signals)("tailwindRunStatus",a.tailwindRunStatus))},Unc=function(a){a&1&&(K(0,"th",32),S(1),L());a&2&&(a=P(4),B(),Ag(a.selection.hasValue()?"":"Action"))},Vnc=function(a){a&1&&(K(0,"a",57),S(1),L());if(a&2){a=P().$implicit;var b=P(4);I("href",Jnc(a),Me);Jf("target",a.type!==b.TaskResourceType.ISSUE?"_blank":null)("aria-label",a.action+(a.type!==b.TaskResourceType.ISSUE?", opens in new tab":""));B();T(" ",a.action," ")}},Wnc=function(a){a&
1&&(K(0,"a",57),S(1),L());if(a&2){a=P().$implicit;var b=P(4),c=b.SIGNAL_TO_ACTION_TEXT.get(b.getHighestPrioritySignal(a.signals).type);I("href",Jnc(a),Me);Jf("target",a.type!==b.TaskResourceType.ISSUE?"_blank":null)("aria-label",c+(a.type!==b.TaskResourceType.ISSUE?", opens in new tab":""));B();T(" ",c," ")}},Xnc=function(a,b){a&1&&(K(0,"td",34),F(1,Vnc,2,4,"a",57)(2,Wnc,2,4,"a",57),L());a&2&&(a=b.$implicit,b=P(4),B(),G(b.enableTailwindMissionControl&&a.action?1:2))},Ync=function(a){a&1&&(K(0,"th",
58),S(1),L());a&2&&(a=P(4),B(),Ag(a.selection.hasValue()?"":a.signalStatusFilter$.getValue()!==a.SignalStatus.SNOOZED?"Options":"Snooze Until"))},$nc=function(a){a&1&&(K(0,"span",59),S(1),L());a&2&&(a=P().$implicit,P(4),B(),T("",Znc(a)," "))},aoc=function(a,b){if(a&1){var c=t();K(0,"td",34);F(1,$nc,2,1,"span",59);K(2,"div",60)(3,"button",61);N("click",function(k){var m=u(c).$implicit,r=P(4);k.preventDefault();return v(r.copyIdOrLink(m))});M(4,"mat-icon",62);L();bg(5);U(6,"async");K(7,"button",63);
N("click",function(k){var m=u(c).$implicit,r=P(4);k.preventDefault();return v(r.dismissAlert(m))});M(8,"mat-icon",64);L();bg(9);U(10,"async");K(11,"button",65,3);N("click",function(k){u(c);return v(k.preventDefault())});M(13,"mat-icon",66);L();K(14,"snooze-menu",41,2);N("snooze",function(k){var m=u(c).$implicit,r=P(4);xnc(r,[m.id],k);return v()})("unsnooze",function(){var k=u(c).$implicit,m=P(4);xnc(m,[k.id]);return v()});L()()()}if(a&2){var d=b.$implicit;a=Q(12);b=Q(15);var e=P(4);B();G(e.signalStatusFilter$.getValue()===
e.SignalStatus.SNOOZED?1:-1);B(2);I("matTooltip",d.type===e.TaskResourceType.ISSUE?"Copy ID to clipboard":"Copy link to clipboard");Jf("aria-label",d.type===e.TaskResourceType.ISSUE?"Copy ID to clipboard":"Copy link to clipboard");var f;d=(f=W(6,10,e.dismissButtonTooltip$))!=null?f:"";B(4);I("ariaLabel",d)("matTooltip",d);var g;f=(g=W(10,12,e.snoozeButtonTooltip$))!=null?g:"";B(4);I("ariaLabel",f)("matTooltip",f)("matMenuTriggerFor",b.menu);B(3);I("isSnoozed",e.signalStatusFilter$.getValue()===e.SignalStatus.SNOOZED)("datePickerAnchor",
a)}},boc=function(a){a&1&&M(0,"tr",67)},coc=function(a){if(a&1){var b=t();K(0,"tr",68);N("click",function(c){var d=u(b).$implicit,e=P(2),f=P(2);return v(f.navigateToResource(c,d,e.slice(0,f.numDisplayedRows)))});L()}},doc=function(a){a&1&&(K(0,"tr",69)(1,"td",70),S(2," No alerts found "),L()())},eoc=function(a){a&1&&M(0,"mat-icon",72)},foc=function(a){a&1&&M(0,"mat-icon",73)},goc=function(a){if(a&1){var b=t();K(0,"button",71);N("click",function(){u(b);var d=P(2),e=P(2);return v(e.setNumDisplayedRows(d))});
S(1);F(2,eoc,1,0,"mat-icon",72);F(3,foc,1,0,"mat-icon",73);L()}if(a&2){a=P(2);var c=P(2);B();T(" ",a.length>c.numDisplayedRows?"Show more":"Show less"," ");B();G(a.length>c.numDisplayedRows?2:-1);B();G(a.length===c.numDisplayedRows?3:-1)}},hoc=function(a){a&1&&(K(0,"table",17),Vf(1,18),E(2,qnc,2,2,"th",19)(3,rnc,2,1,"td",20),Wf(),Vf(4,21),E(5,snc,2,1,"th",19)(6,tnc,2,6,"td",20),Wf(),Vf(7,22),E(8,Cnc,5,3,"th",19)(9,Mnc,3,1,"td",20),Wf(),Vf(10,23),E(11,Nnc,2,1,"th",19)(12,Rnc,3,1,"td",20),Wf(),Vf(13,
24),E(14,Snc,2,1,"th",19)(15,Tnc,2,3,"td",20),Wf(),Vf(16,25),E(17,Unc,2,1,"th",19)(18,Xnc,3,1,"td",20),Wf(),Vf(19,26),E(20,Ync,2,1,"th",27)(21,aoc,16,14,"td",20),Wf(),E(22,boc,1,0,"tr",28)(23,coc,1,0,"tr",29)(24,doc,3,0,"tr",30),L(),F(25,goc,4,3,"button",31));if(a&2){a=P();var b=P(2);I("dataSource",a.slice(0,b.numDisplayedRows));B(22);I("matHeaderRowDef",b.displayedColumns);B();I("matRowDefColumns",b.displayedColumns);B(2);G(a.length>b.DEFAULT_NUM_ROWS_DISPLAYED?25:-1)}},ioc=function(a,b){a&1&&(F(0,
pnc,2,0,"p",16),F(1,hoc,26,4));a&2&&(G(b.length===0?0:-1),B(),G(b.length>0?1:-1))},joc=function(a){a&1&&(F(0,ioc,2,2),U(1,"async"));if(a&2){var b;a=P();G((b=W(1,1,a.allNeedsAttention$))?0:-1,b)}},koc=function(a){a&1&&(K(0,"div",9),M(1,"b-spinner",74),L());a&2&&(B(),I("ariaLabel","loading needs attention alerts"))},loc=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=Oq(a).filter(function(d){return!c.includes(d)}).sort();
return[c.join(","),a.join(",")]},moc=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)},noc=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)},ooc=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(ln)},poc=function(a,b){return a.issueId&&
a.type==="ISSUE"&&b.has(a.issueId)&&a.signals.some(function(c){return c.type==="ISSUE_SNOOZE_EXPIRED"})},qoc=function(a,b){a&1&&(K(0,"div",6)(1,"span",8),S(2),L()());a&2&&(B(2),Ag(b))},roc=function(a){a&1&&(K(0,"div",7),M(1,"b-needs-attention-table",9),L());a&2&&(a=P(),B(),I("refreshTable",a.refreshData))},soc=function(a,b){a&1&&(K(0,"mat-chip-option",1)(1,"span",2),S(2),L()());if(a&2){a=P().$implicit;var c=P();I("value",a)("selected",c.selectedSources.includes(a));B();I("matTooltip",b.tooltipText);
B();T(" ",b.displayName," ")}},toc=function(a,b){a&1&&F(0,soc,3,4,"mat-chip-option",1);if(a&2){var c;a=b.$implicit;b=P();G((c=b.DEFINITIONS[a])?0:-1,c)}},uoc=function(a,b){return{label:"Viewed",description:"Issues you recently viewed",issues:a.watchMany({custom:"viewed",pageSize:50}).pipe(A(function(c){c=c.results;return b?c.filter(function(d){return d.trackerId===b}):c})),loading:!1}},voc=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"},woc=function(a){a&1&&(K(0,"label",11),S(1),L());a&2&&(a=P().$implicit,I("matTooltip",a.description),B(),Ag(a.label))},xoc=function(a,b){if(a&1){var c=t();K(0,"source-filter-chips",14);N("change",function(d){u(c);var e=P(5).prefsService;d=d.map(CHb);e.prefs.myTasksSources=d;lu(e,{myTasksSources:d,isMyTasksSourcesConfigured:!0});return v()});L()}a&2&&(a=P(5),I("sourceFilterKeys",a.MY_TASK_FILTERS)("selectedSources",b))},yoc=function(a){a&1&&(K(0,"span",
2),S(1,"Sources"),L(),F(2,xoc,1,2,"source-filter-chips",13),U(3,"async"));if(a&2){var b;a=P(4);B(2);G((b=W(3,1,a.sources$))?2:-1,b)}},zoc=function(a,b){if(a&1){var c=t();K(0,"time-boundary-filter",15);N("change",function(d){u(c);var e=P(4).prefsService;e.prefs.myTasksDaysOld=d;lu(e,{myTasksDaysOld:d});return v()});L()}a&2&&I("selectedTimeBoundary",b)},Aoc=function(a){a&1&&(K(0,"div",9),F(1,yoc,4,3),F(2,zoc,1,1,"time-boundary-filter",12),U(3,"async"),L());if(a&2){var b;a=P(3);B();G(a.isInternalSession?
1:-1);B();G((b=W(3,2,a.timeBoundary$))?2:-1,b)}},Boc=function(a,b){a&1&&M(0,"b-issues-table",16);a&2&&(a=P(4),I("issueIds",a.getIds(b))("tableColumns",a.tableColumns)("options",a.tableOptions))},Coc=function(a,b){a&1&&(K(0,"p",18),S(1),L());a&2&&(B(),T(" ",b.length===0?"Enable source filters to see tasks":"No tasks"," "))},Doc=function(a){a&1&&(F(0,Coc,2,1,"p",18),U(1,"async"));if(a&2){var b;a=P(5);G((b=W(1,1,a.sources$))?0:-1,b)}},Eoc=function(a){a&1&&(K(0,"th",36),S(1,"Source"),L())},Foc=function(a,
b){a&1&&(K(0,"td",37),M(1,"mat-icon",38),L());a&2&&(a=b.$implicit,b=P(6),B(),zg(Gg("product-icon ",b.taskResourceTypeToIcon(a))),I("matTooltip",a.taskResourceType)("svgIcon",b.taskResourceTypeToIcon(a)))},Goc=function(a){a&1&&(K(0,"th",36),S(1,"Description"),L())},Hoc=function(a){a&1&&M(0,"b-issue-visibility-chip",40);a&2&&(a=P(2).$implicit,I("issueId",a.issueId)("compactMode",!0))},Ioc=function(a){a&1&&M(0,"b-issue-priority-display",41);a&2&&(a=P(2).$implicit,I("issuePriority",a.issueResource.priority))},
Joc=function(a){if(a&1){var b=t();K(0,"onedev-dma-chip",44);N("onChipClicked",function(){u(b);var c=P(8);return v(c.sendDmaAnalytics())});L()}a&2&&(a=P(2).$implicit,I("hotlistIds",a.issueResource.hotlistIds))},Loc=function(a){if(a&1){var b=t();F(0,Hoc,1,2,"b-issue-visibility-chip",40);F(1,Ioc,1,1,"b-issue-priority-display",41);K(2,"a",42);N("auxclick",function(){u(b);var d=P().$implicit,e=P(6);return v(e.sendClickAnalytics(d))});S(3);L();F(4,Joc,1,1,"onedev-dma-chip",43)}if(a&2){a=P().$implicit;var c=
P(6);G(a.issueId?0:-1);B();G(a.issueResource&&a.issueResource.priority&&Koc(a.issueResource.priority)?1:-1);B();I("href",a.taskResourceType===c.TaskResourceType.ISSUE?"/issues/"+c.extractLastDigits(a.taskId):a.externalLink,Me);Jf("target",a.taskResourceType!==c.TaskResourceType.ISSUE?"_blank":null);B();Ag(a.title);B();G(a.issueResource&&a.issueResource.hotlistIds?4:-1)}},Moc=function(a){a&1&&(K(0,"span",39),S(1,"No access to linked file"),L())},Noc=function(a,b){a&1&&(K(0,"td",37),F(1,Loc,5,6)(2,
Moc,2,0,"span",39),L());a&2&&(a=b.$implicit,B(),G(a.title&&a.title!==""?1:2))},Ooc=function(a){a&1&&(K(0,"th",36),S(1,"Last modified"),L())},Poc=function(a){a&1&&M(0,"b-formatted-date-time",45);a&2&&(a=P().$implicit,I("timestamp",a.lastModifiedTimestamp)("paddingLeftPx",0))},Qoc=function(a,b){a&1&&(K(0,"td",37),F(1,Poc,1,2,"b-formatted-date-time",45),L());a&2&&(a=b.$implicit,B(),G(a.lastModifiedTimestamp?1:-1))},Roc=function(a){a&1&&(K(0,"th",36),S(1,"My role"),L())},Soc=function(a,b){a&1&&(K(0,"td",
37),S(1),L());a&2&&(a=b.$implicit,B(),Ag(a.resourceRelationships[0].roleName))},Toc=function(a){a&1&&(K(0,"th",36),S(1,"Creation date"),L())},Uoc=function(a){a&1&&M(0,"b-formatted-date-time",45);a&2&&(a=P().$implicit,I("timestamp",a.createdTimestamp)("paddingLeftPx",0))},Voc=function(a){a&1&&S(0," -- ")},Woc=function(a,b){a&1&&(K(0,"td",37),F(1,Uoc,1,2,"b-formatted-date-time",45)(2,Voc,1,0),L());a&2&&(a=b.$implicit,B(),G(a.createdTimestamp?1:2))},Xoc=function(a){a&1&&(K(0,"th",46),S(1," Options "),
L())},Zoc=function(a,b){if(a&1){var c=t();K(0,"td",47)(1,"div",48)(2,"button",49);N("click",function(d){var e=u(c).$implicit,f=P(6);d.preventDefault();return v(Yoc(f,e))});M(3,"mat-icon",50);L();K(4,"button",51);N("click",function(d){var e=u(c).$implicit,f=P(6);d.preventDefault();return v(f.copyIdOrLink(e))});M(5,"mat-icon",52);L()()()}a&2&&(a=b.$implicit,b=P(6),B(2),I("disabled",b.isSavingManualSignal)("matTooltip","Trigger a needs attention alert on this task"),B(2),I("matTooltip",a.taskResourceType===
b.TaskResourceType.ISSUE?"Copy ID to clipboard":"Copy link to clipboard"),Jf("aria-label",a.taskResourceType===b.TaskResourceType.ISSUE?"Copy ID to clipboard":"Copy link to clipboard"))},$oc=function(a){a&1&&M(0,"tr",53)},apc=function(a){if(a&1){var b=t();K(0,"tr",54);N("click",function(c){var d=u(b).$implicit,e=P(6);return v(e.navigateToResource(c,d))});L()}},bpc=function(a){a&1&&M(0,"mat-icon",58)},cpc=function(a){a&1&&M(0,"mat-icon",59)},dpc=function(a){if(a&1){var b=t();K(0,"button",57);N("click",
function(){u(b);var d=P(3),e=P(4);return v(e.setNumDisplayedRows(d))});S(1);F(2,bpc,1,0,"mat-icon",58);F(3,cpc,1,0,"mat-icon",59);L()}if(a&2){a=P(3);var c=P(4);B();T(" ",a.length>c.numDisplayedRows?"Show more":"Show less"," ");B();G(a.length>c.numDisplayedRows?2:-1);B();G(a.length===c.numDisplayedRows?3:-1)}},epc=function(a){a&1&&(K(0,"td",55),F(1,dpc,4,3,"button",56),L());if(a&2){a=P(2);var b=P(4);B();G(a.length>b.DEFAULT_NUM_ROWS_DISPLAYED?1:-1)}},fpc=function(a){a&1&&M(0,"tr",60);if(a&2){a=P(2);
var b=P(4);I("hidden",!(a.length>b.DEFAULT_NUM_ROWS_DISPLAYED))}},gpc=function(a,b){a&1&&(K(0,"td",62),S(1),L());a&2&&(B(),T(" ",b.length===0?"Enable source filters to see tasks":"No tasks found"," "))},hpc=function(a){a&1&&(K(0,"tr",61),F(1,gpc,2,1,"td",62),U(2,"async"),L());if(a&2){var b;a=P(6);B();G((b=W(2,1,a.sources$))?1:-1,b)}},kpc=function(a){a&1&&(K(0,"table",19),Vf(1,20),E(2,Eoc,2,0,"th",21)(3,Foc,2,5,"td",22),Wf(),Vf(4,23),E(5,Goc,2,0,"th",21)(6,Noc,3,1,"td",22),Wf(),Vf(7,24),E(8,Ooc,2,
0,"th",21)(9,Qoc,2,1,"td",22),Wf(),Vf(10,25),E(11,Roc,2,0,"th",21)(12,Soc,2,1,"td",22),Wf(),Vf(13,26),E(14,Toc,2,0,"th",21)(15,Woc,3,1,"td",22),Wf(),Vf(16,27),E(17,Xoc,2,0,"th",28)(18,Zoc,6,4,"td",29),Wf(),E(19,$oc,1,0,"tr",30)(20,apc,1,0,"tr",31),Vf(21,32),E(22,epc,2,1,"td",33),Wf(),E(23,fpc,1,1,"tr",34)(24,hpc,3,3,"tr",35),L());if(a&2){a=P();var b=P(2).$implicit,c=P(2);zg(Gg("table-",b.label));I("dataSource",a.slice(0,c.numDisplayedRows)||Jg(7,ipc));B(19);I("matHeaderRowDef",c.displayColumns);B();
I("matRowDefColumns",c.displayColumns);B(3);I("matFooterRowDef",Jg(8,jpc))}},lpc=function(a,b){a&1&&(F(0,Doc,2,3),F(1,kpc,25,9,"table",17));a&2&&(G(b.length===0?0:-1),B(),G(b.length>0?1:-1))},mpc=function(a){a&1&&(F(0,Boc,1,3,"b-issues-table",16),U(1,"async"),F(2,lpc,2,2),U(3,"async"));if(a&2){var b,c;a=P().$implicit;G((b=W(1,2,a.issues))?0:-1,b);B(2);G((c=W(3,4,a.liteTasks))?2:-1,c)}},npc=function(a){a&1&&(K(0,"div",10),M(1,"b-spinner",63),L());a&2&&(B(),I("ariaLabel","loading tasks"))},opc=function(a,
b){a&1&&(K(0,"mat-tab"),E(1,woc,2,2,"ng-template",8),F(2,Aoc,4,4,"div",9),F(3,mpc,4,6)(4,npc,2,1,"div",10),L());a&2&&(a=b.$implicit,B(2),G(a.liteTasks?2:-1),B(),G(a.loading?4:3))},ppc=function(a){if(a&1){var b=t();K(0,"div",6)(1,"mat-tab-group",7);N("selectedIndexChange",function(c){u(b);var d=P();return v(d.onTabIndexChange(c))});Pf(2,opc,5,2,"mat-tab",null,Of);L()()}a&2&&(a=P(),B(),I("selectedIndex",a.INITIAL_TAB_INDEX),B(),Qf(a.tabData))},qpc=function(a,b){return a.lastModifiedTimestamp?b.lastModifiedTimestamp?
to(b.lastModifiedTimestamp)-to(a.lastModifiedTimestamp):1:-1},spc=function(a){if(a&1){var b=t();K(0,"div",8)(1,"button",9);N("click",function(){u(b);var c=P();rpc(c.userFeedback);return v()});S(2,"Give feedback");L()()}},tpc=function(a){a&1&&M(0,"textarea",14,0)},upc=function(a){a&1&&M(0,"b-live-preview",15);if(a&2){a=P(2);var b=P();I("comment",a.instructions)("formattingMode",b.FormattingMode.MARKDOWN)}},vpc=function(a){if(a&1){var b=t();K(0,"mat-checkbox",18);N("change",function(c){u(b);P(3).showMarkdownPreview=
c.checked;return v()});S(1,"Preview markdown");L();M(2,"div",19);K(3,"button",20);N("click",function(){u(b);var c=P(3);return v(c.cancelEdit())});S(4,"Cancel");L();K(5,"button",21);N("click",function(){u(b);var c=P(3);c.playbookForm.valid&&(c.isEditing=!1);return v()});S(6," Save ");L()}a&2&&(a=P(3),I("checked",a.showMarkdownPreview),B(5),I("disabled",a.playbookForm.invalid))},wpc=function(a){if(a&1){var b=t();K(0,"button",22);N("click",function(){u(b);var c=P(2),d=P();return v(d.startEdit(c.instructions))});
S(1," Edit markdown ");L()}},xpc=function(a){a&1&&(K(0,"div",10)(1,"div",13),F(2,tpc,2,0,"textarea",14)(3,upc,1,2,"b-live-preview",15),L(),K(4,"div",16),F(5,vpc,7,2)(6,wpc,2,0,"button",17),L()());a&2&&(a=P(2),I("formGroup",a.playbookForm),B(),yg("editing",a.isEditing&&!a.showMarkdownPreview),B(),G(a.isEditing&&!a.showMarkdownPreview?2:3),B(3),G(a.isEditing?5:6))},ypc=function(a,b){if(a&1){var c=t();K(0,"div",5)(1,"div",6)(2,"h3",7);S(3,"Playbook");L();K(4,"mat-tab-group",8);Eg("selectedIndexChange",
function(d){u(c);var e=P();Dg(e.selectedTabIndex,d)||(e.selectedTabIndex=d);return v(d)});K(5,"mat-tab",9);F(6,xpc,7,5,"div",10);L()()();K(7,"div",11)(8,"h3",7);S(9,"Stats");L();K(10,"div",12);S(11," Playbook stats will appear here ");L()()()}a&2&&(a=P(),B(4),Cg("selectedIndex",a.selectedTabIndex),B(),I("id",a.Tab.PLAYBOOK),B(),G(b?6:-1))},zpc=function(a,b){a&1&&(K(0,"mat-option",2),S(1),L());a&2&&(a=b.$implicit,I("value",a.id),B(),T(" ",a.displayName," "))},Apc=function(a,b){return a.gmt===b.gmt?
a.id>b.id?1:-1:a.gmt>b.gmt?1:-1},Bpc=function(a,b){a&1&&(K(0,"mat-option",2),S(1),L());a&2&&(a=b.$implicit,I("value",a.frequency),B(),T(" ",a.display," "))},Cpc=function(a,b){if(a&1){var c=t();K(0,"div")(1,"mat-form-field",0)(2,"mat-label");S(3," Frequency ");L();K(4,"mat-select",1);N("ngModelChange",function(d){u(c);var e=P();return v(e.frequency$.next(d))});Pf(5,Bpc,2,2,"mat-option",2,Of);L()()()}a&2&&(a=P(),B(4),I("ngModel",b),B(),Qf(a.frequencyOptions))},Dpc=function(a,b){a&1&&(K(0,"mat-option",
2),S(1),L());a&2&&(a=b.$implicit,I("value",a.ordinal),B(),T(" ",a.display," "))},Epc=function(a,b){if(a&1){var c=t();K(0,"div")(1,"mat-form-field",0)(2,"mat-label");S(3," Repeat on ");L();K(4,"mat-select",1);N("ngModelChange",function(d){u(c);var e=P();return v(e.ordinal$.next(d))});Pf(5,Dpc,2,2,"mat-option",2,Of);L()()()}a&2&&(a=P(),B(4),I("ngModel",b),B(),Qf(a.repeatOnOptions.get(a.frequency$.value)))},Fpc=function(a,b){a&1&&(K(0,"mat-option",2),S(1),L());a&2&&(a=b.$implicit,I("value",a.timeOfDay),
B(),T(" ~",a.display," "))},Gpc=function(a,b){if(a&1){var c=t();K(0,"div")(1,"mat-form-field",0)(2,"mat-label");S(3," Repeat at ");L();K(4,"mat-select",3);N("ngModelChange",function(d){u(c);var e=P();return v(e.timeOfDay$.next(d))});Pf(5,Fpc,2,2,"mat-option",2,Of);L()()()}a&2&&(a=P(),B(4),I("ngModel",b)("compareWith",a.compareTimeOfDay),B(),Qf(a.repeatAtOptions))},Hpc=function(a,b){if(a&1){var c=t();K(0,"div")(1,"b-timezone-picker",4);N("timezoneIdChange",function(d){u(c);var e=P();return v(e.timeZoneId$.next(d))});
L()()}a&2&&(B(),I("timezoneId",b)("fullWidth",!0))},Ipc=function(a,b){return a.hours===b.hours&&a.minutes===b.minutes&&a.seconds===b.seconds&&a.nanos===b.nanos},Jpc=function(a){a&1&&Xf(0)},Kpc=function(a){a&1&&(K(0,"th",17),S(1,"Name"),L())},Lpc=function(a,b){a&1&&(K(0,"td",18),S(1),L());a&2&&(a=b.$implicit,B(),T(" ",a.displayName," "))},Mpc=function(a){a&1&&(K(0,"th",17),S(1,"Status"),L())},Npc=function(a){a&1&&M(0,"mat-icon",19);a&2&&(a=P(3),I("matTooltip",a.warningTooltipText))},Opc=function(a,
b){a&1&&(K(0,"td",18),F(1,Npc,1,1,"mat-icon",19),L());a&2&&(a=b.$implicit,B(),G(a.isOverflowing?1:-1))},Ppc=function(a){a&1&&(K(0,"th",17),S(1,"Actions"),L())},Qpc=function(a,b){if(a&1){var c=t();K(0,"td",18)(1,"button",20);M(2,"mat-icon",21);L();K(3,"mat-menu",null,2)(5,"a",22);S(6," Search issues with query ");L();M(7,"mat-divider");K(8,"button",23);N("click",function(){var d=u(c).$implicit,e=P(2);return v(e.openDialog(d))});S(9," Edit subscription ");L();K(10,"button",24);N("click",function(){var d=
u(c).$implicit,e=P(2);return v(e.openConfirmDeleteDialog(d))});S(11," Delete subscription ");L()()()}a&2&&(a=b.$implicit,b=Q(4),P(2),B(),I("matMenuTriggerFor",b),B(4),I("routerLinkObj",{path:"/issues",queryParams:{q:a.query,s:"modified_time:desc"}}))},Rpc=function(a){a&1&&M(0,"tr",25)},Spc=function(a,b){a&1&&M(0,"tr",26);a&2&&(a=b.$implicit,Jf("aria-label","Subscription "+a.id+": "+a.displayName))},Tpc=function(a){a&1&&(K(0,"div",8)(1,"table",9),Vf(2,10),E(3,Kpc,2,0,"th",11)(4,Lpc,2,1,"td",12),Wf(),
Vf(5,13),E(6,Mpc,2,0,"th",11)(7,Opc,2,1,"td",12),Wf(),Vf(8,14),E(9,Ppc,2,0,"th",11)(10,Qpc,12,2,"td",12),Wf(),E(11,Rpc,1,0,"tr",15)(12,Spc,1,1,"tr",16),L()());a&2&&(a=P(),B(),I("dataSource",a.ownedSubscriptions$),B(10),I("matHeaderRowDef",a.columnsToDisplay),B(),I("matRowDefColumns",a.columnsToDisplay))},Upc=function(a){a&1&&S(0," Add configurable alert ")},Vpc=function(a){a&1&&S(0," Update configurable alert ")},Wpc=function(a){a&1&&S(0," Create a new configurable alert. ")},Xpc=function(a){a&1&&
S(0," Update a configurable alert. ")},Ypc=function(a){a&1&&S(0);a&2&&(a=P().$implicit,T(" Subscription ID: ",a.id," "))},Zpc=function(a){a&1&&M(0,"b-spinner")},$pc=function(a,b){if(a&1){var c=t();K(0,"h1",27);F(1,Upc,1,0)(2,Vpc,1,0);L();K(3,"mat-dialog-content")(4,"p",28);F(5,Wpc,1,0)(6,Xpc,1,0);L();K(7,"mat-form-field",29)(8,"mat-label");S(9,"Name");L();K(10,"input",30);Eg("ngModelChange",function(d){var e=u(c).$implicit;Dg(e.displayName,d)||(e.displayName=d);return v(d)});L()();K(11,"mat-form-field",
29)(12,"mat-label");S(13,"Search query");L();K(14,"input",31);Eg("ngModelChange",function(d){var e=u(c).$implicit;Dg(e.query,d)||(e.query=d);return v(d)});L()();K(15,"b-delivery-frequency-subform",32);N("frequencyChange",function(d){var e=u(c).$implicit,f=P();return v(f.setFrequency(e,d))});Eg("ordinalChange",function(d){var e=u(c).$implicit;Dg(e.ordinal,d)||(e.ordinal=d);return v(d)})("timeOfDayChange",function(d){var e=u(c).$implicit;Dg(e.timeOfDay,d)||(e.timeOfDay=d);return v(d)})("timeZoneIdChange",
function(d){var e=u(c).$implicit;Dg(e.timeZone.id,d)||(e.timeZone.id=d);return v(d)});L();K(16,"div",29)(17,"mat-slide-toggle",33);N("change",function(d){var e=u(c).$implicit;return v(e.sendEmail=d.checked)});S(18," Send email when newly matching issues are found. ");L()();K(19,"div",34)(20,"span",35);F(21,Ypc,1,1);L();F(22,Zpc,1,0,"b-spinner");U(23,"async");L()();K(24,"mat-dialog-actions")(25,"button",36);S(26,"Cancel");L();K(27,"button",7);N("click",function(){var d=u(c).$implicit,e=P();return v(e.save(d))});
S(28);L()()}a&2&&(a=b.$implicit,b=P(),B(),G(a.id==="0"?1:2),B(4),G(a.id==="0"?5:6),B(5),Cg("ngModel",a.displayName),B(4),Cg("ngModel",a.query),B(),I("frequency",a.frequency),Cg("ordinal",a.ordinal)("timeOfDay",a.timeOfDay)("timeZoneId",a.timeZone.id),B(2),I("checked",a.sendEmail),B(4),G(a.id!=="0"?21:-1),B(),G(W(23,12,b.isSaving$)?22:-1),B(6),T(" ",a.id==="0"?"Add":"Update"," "))},aqc=function(a){a&1&&(K(0,"mat-option",21),S(1),L());a&2&&(a=P().$implicit,I("value",a),B(),T(" ",a.name," "))},bqc=function(a,
b){a&1&&F(0,aqc,2,2,"mat-option",21);a&2&&G(b.$implicit.shouldDisplay()?0:-1)},cqc=function(a,b){a&1&&(K(0,"mat-option",23),S(1),L());a&2&&(a=b.$implicit,I("value",a.id),B(),T(" ",a.name," "))},eqc=function(a){if(a&1){var b=t();K(0,"mat-form-field",5)(1,"mat-select",22);Eg("ngModelChange",function(c){u(b);var d=P();Dg(d.preferredHomepage.selectedOptionId,c)||(d.preferredHomepage.selectedOptionId=c);return v(c)});N("selectionChange",function(){u(b);var c=P();return v(dqc(c.preferredHomepage))});Pf(2,
cqc,2,2,"mat-option",23,Of);L()()}a&2&&(a=P(),B(),Cg("ngModel",a.preferredHomepage.selectedOptionId),B(),Qf(a.preferredHomepage.selectedMainOption.options))},fqc=function(a,b){a&1&&(K(0,"mat-option",13),S(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),T(" ",a.label," "))},gqc=function(a,b){a&1&&(K(0,"mat-option",13),S(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),T(" ",a.label," "))},hqc=function(a,b){a&1&&(K(0,"mat-option",13),S(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),T(" ",a.label,
" "))},iqc=function(a){if(a&1){var b=t();K(0,"div",19)(1,"mat-slide-toggle",24);N("change",function(c){u(b);var d=P();c=c.checked;d.userPreferences.showInlineImages=c;d.save("showInlineImages",c.toString());return v()});S(2," Show trusted images (e.g. SnipIt screenshots) inline in comments ");L()()}a&2&&(a=P(),B(),I("checked",a.getShowInlineImages()))},lqc=function(a){if(a&1){var b=t();M(0,"hr",9);K(1,"div",0)(2,"div",1)(3,"p",2);S(4,"Comment formatting settings");L()();K(5,"div")(6,"div",19)(7,"mat-slide-toggle",
25);N("change",function(c){u(b);var d=P();d.userPreferences.commentFormattingPreferences&&(d.userPreferences.commentFormattingPreferences.commentDisplayOverride=c.checked?"LITERAL":void 0,d.save("saveCommentFormattingPreferences.commentDisplayOverride"));return v()});S(8," Force comments to display as plain text ");L()();K(9,"div",19)(10,"mat-slide-toggle",26);N("change",function(c){u(b);var d=P();d.userPreferences.commentFormattingPreferences&&(d.userPreferences.commentFormattingPreferences.commentCreateOverride=
c.checked?"LITERAL":void 0,d.save("saveCommentFormattingPreferences.commentCreateOverride"));return v()});S(11," Force comments to be created as plain text ");L()()()()}a&2&&(a=P(),B(7),I("checked",jqc(a)),B(3),I("checked",kqc(a)))},mqc=function(a){if(a&1){var b=t();K(0,"div",0)(1,"div",1)(2,"p",2);S(3,"Other");L()();K(4,"div")(5,"div")(6,"mat-slide-toggle",27);N("change",function(c){u(b);var d=P();d.userPreferences.bugScreensaverPreferences.enableBugScreensaver=c.checked;return v(d.save("saveBugScreensaverPreferences"))});
S(7," Enable bug screensaver ");L()()()()}a&2&&(a=P(),B(6),I("checked",a.userPreferences.bugScreensaverPreferences.enableBugScreensaver))},nqc=function(a,b){a&1&&(K(0,"mat-option",8),S(1),U(2,"toNewEmailPreference"),L());a&2&&(a=b.$implicit,I("value",a),B(),T(" ",W(2,2,a)," "))},oqc=function(a,b){a&1&&(K(0,"mat-option",8),S(1),U(2,"toNewEmailPreference"),L());a&2&&(a=b.$implicit,I("value",a),B(),T(" ",W(2,2,a)," "))},pqc=function(a,b){a&1&&(K(0,"mat-option",8),S(1),U(2,"toNewEmailPreference"),L());
a&2&&(a=b.$implicit,I("value",a),B(),T(" ",W(2,2,a)," "))},qqc=function(a,b){a&1&&(K(0,"mat-option",8),S(1),U(2,"toNewEmailPreference"),L());a&2&&(a=b.$implicit,I("value",a),B(),T(" ",W(2,2,a)," "))},rqc=function(a,b){a&1&&(K(0,"mat-option",8),S(1),U(2,"toNewEmailPreference"),L());a&2&&(a=b.$implicit,I("value",a),B(),T(" ",W(2,2,a)," "))},sqc=function(a,b){a&1&&(K(0,"mat-option",8),S(1),U(2,"toNewEmailPreference"),L());a&2&&(a=b.$implicit,I("value",a),B(),T(" ",W(2,2,a)," "))},tqc=function(a){a&1&&
M(0,"b-spinner")},uqc=function(a){a&1&&(K(0,"mat-hint"),S(1,"This field is read-only"),L())},vqc=function(a,b){a&1&&(K(0,"mat-option",21),S(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),Ag(a.displayText))},xqc=function(a,b){if(a&1){var c=t();K(0,"div",24)(1,"a",26);S(2);L();K(3,"button",27);N("click",function(){var d=u(c).$implicit,e=P(2),f=P(2);return v(wqc(f,e,d))});M(4,"mat-icon",28);L()()}a&2&&(a=b.$implicit,B(),I("href","/slos/"+a,Me),B(),Ag(a),B(),I("matTooltip","Remove SLO ID "+a))},yqc=
function(a){a&1&&(K(0,"div",25),S(1),L());a&2&&(a=P(2),B(),T(" Subscription ID: ",a.id," "))},Aqc=function(a){if(a&1){var b=t();K(0,"b-delivery-frequency-subform",17);N("frequencyChange",function(e){u(b);var f=P(),g=P(2);return v(g.setFrequency(e,f))})("ordinalChange",function(e){u(b);var f=P(),g=P(2);Xu(g,Object.assign({},f,{ordinal:e}));return v()})("timeOfDayChange",function(e){u(b);var f=P(),g=P(2);Xu(g,Object.assign({},f,{timeOfDay:e}));return v()})("timeZoneIdChange",function(e){u(b);var f=
P(),g=P(2);return v(g.setTimeZone(e,f))});L();K(1,"div")(2,"mat-form-field",18)(3,"mat-label");S(4,"Days remaining");L();K(5,"input",19);Eg("ngModelChange",function(e){u(b);var f=P(3);Dg(f.inputDaysRemaining,e)||(f.inputDaysRemaining=e);return v(e)});N("blur",function(){u(b);var e=P(),f=P(2);return v(f.setDaysRemaining(e))})("keydown.enter",function(){u(b);var e=P(),f=P(2);return v(f.setDaysRemaining(e))});L()()();K(6,"div")(7,"mat-form-field",18)(8,"mat-label");S(9,"Types");L();K(10,"mat-select",
20);N("ngModelChange",function(e){u(b);var f=P(),g=P(2);return v(g.setIssueType(e,f))});Pf(11,vqc,2,2,"mat-option",21,Of);L()()();K(13,"div",8)(14,"mat-form-field",22)(15,"mat-label");S(16,"Add SLO ID");L();K(17,"input",23);Eg("ngModelChange",function(e){u(b);var f=P(3);Dg(f.newSloId,e)||(f.newSloId=e);return v(e)});N("keydown.enter",function(){u(b);var e=P(),f=P(2);return v(zqc(f,e))})("blur",function(){u(b);var e=P(),f=P(2);return v(zqc(f,e))});L()();Pf(18,xqc,5,3,"div",24,Of);L();F(20,yqc,2,1,
"div",25)}if(a&2){a=P();var c=P(2),d;I("frequency",a.frequency)("ordinal",(d=a.ordinal)!=null?d:0)("timeOfDay",a.timeOfDay)("timeZoneId",a.timeZone.id);B(5);Cg("ngModel",c.inputDaysRemaining);B(5);I("ngModel",a.types);B();Qf(c.typeChoices);B(6);Cg("ngModel",c.newSloId);B();Qf(a.sloIds);B(2);G(a.id?20:-1)}},Cqc=function(a,b){if(a&1){var c=t();K(0,"div")(1,"div",8)(2,"mat-slide-toggle",14);U(3,"async");N("change",function(){u(c);var d=P(2);return v(Bqc(d))});S(4," Subscribe to your own reports ");F(5,
tqc,1,0,"b-spinner");U(6,"async");L()();K(7,"div")(8,"mat-form-field",15)(9,"mat-label");S(10,"Scope");L();K(11,"input",16);N("focus",function(){u(c);var d=P(2);return v(d.inputHasFocus=!0)})("blur",function(){u(c);var d=P(2);return v(d.inputHasFocus=!1)});L();F(12,uqc,2,0,"mat-hint");L()();F(13,Aqc,21,8);L()}a&2&&(a=P(2),B(2),I("disabled",W(3,6,a.isThinking$))("checked",b.id!==0),B(3),G(W(6,8,a.isThinking$)?5:-1),B(6),I("ngModel",a.currentUser.email),B(),G(a.inputHasFocus?12:-1),B(),G(b.id!==0?13:
-1))},Dqc=function(a){a&1&&(K(0,"div",2)(1,"div",3)(2,"p",4),S(3,"Frequency settings"),L(),K(4,"p",11),S(5," Choose when to receive your own reports. "),K(6,"a",12),S(7,"Learn more"),L()()(),F(8,Cqc,14,10,"div"),U(9,"async"),L(),M(10,"hr",13));if(a&2){var b;a=P();B(8);G((b=W(9,1,a.userSubscription$))?8:-1,b)}},Eqc=function(a){a&1&&M(0,"b-spinner")},Fqc=function(a){a&1&&(K(0,"th",36),S(1,"Scope"),L())},Gqc=function(a,b){a&1&&(K(0,"td",37),S(1),L());a&2&&(a=b.$implicit,B(),T(" ",a.lead.emailAddress,
" "))},Hqc=function(a){a&1&&(K(0,"th",36),S(1,"Frequency"),L())},Jqc=function(a,b){a&1&&(K(0,"td",37),S(1),U(2,"async"),U(3,"async"),L());if(a&2){var c;a=b.$implicit;b=P(2);B();var d=b.frequencyDisplayMap.get(a.frequency);if(a.ordinal)if(a.frequency==="weekly")var e="- "+Iqc[a.ordinal-1].display;else if(a.frequency==="monthly"){e=a.ordinal;var f=e%10,g=e%100;e="- "+(f===1&&g!==11?String(e)+"st":f===2&&g!==12?String(e)+"nd":f===3&&g!==13?String(e)+"rd":String(e)+"th")}else e="";else e="";Boa(" ",d,
" ",e," - ",(c=W(2,4,b.hourOfDayDisplayMap$))==null?null:c.get(a.timeOfDay.hours)," - ",(c=W(3,6,b.timeZoneDisplayMap$))==null?null:c.get(a.timeZone.id)," ")}},Kqc=function(a){a&1&&M(0,"th",36)},Lqc=function(a){if(a&1){var b=t();K(0,"td",37)(1,"button",38);M(2,"mat-icon",39);L();K(3,"mat-menu",null,1)(5,"button",40);N("click",function(){var c=u(b).$implicit,d=P(2);return v(d.openDialog(c))});S(6," Edit subscription ");L();K(7,"button",41);N("click",function(){var c=u(b).$implicit,d=P(2);return v(d.openConfirmDeleteDialog(c))});
S(8," Delete subscription ");L()()()}a&2&&(a=Q(4),B(),I("matMenuTriggerFor",a))},Mqc=function(a){a&1&&M(0,"tr",42)},Nqc=function(a,b){a&1&&M(0,"tr",43);a&2&&(a=b.$implicit,Jf("aria-label","Subscription with ID "+a.id+" and scoped to "+a.lead.emailAddress))},Oqc=function(a){a&1&&(K(0,"table",10),Vf(1,29),E(2,Fqc,2,0,"th",30)(3,Gqc,2,1,"td",31),Wf(),Vf(4,32),E(5,Hqc,2,0,"th",30)(6,Jqc,4,8,"td",31),Wf(),Vf(7,33),E(8,Kqc,1,0,"th",30)(9,Lqc,9,1,"td",31),Wf(),E(10,Mqc,1,0,"tr",34)(11,Nqc,1,1,"tr",35),L());
a&2&&(a=P(),I("dataSource",a.subscriptions$),B(10),I("matHeaderRowDef",a.columns),B(),I("matRowDefColumns",a.columns))},Pqc=function(a){a&1&&(K(0,"mat-error"),S(1,"Please select a valid, single user"),L())},Qqc=function(a){a&1&&(K(0,"mat-error"),S(1,"Report for sundar@ cannot be generated"),L())},Rqc=function(a,b){a&1&&(K(0,"mat-option",21),S(1),L());a&2&&(a=b.$implicit,I("value",a.value),B(),Ag(a.displayText))},Tqc=function(a,b){if(a&1){var c=t();K(0,"div",24)(1,"a",26);S(2);L();K(3,"button",27);
N("click",function(){var d=u(c).$implicit,e=P().$implicit;P();return v(Sqc(e,d))});M(4,"mat-icon",28);L()()}a&2&&(a=b.$implicit,B(),I("href","/slos/"+a,Me),B(),Ag(a),B(),I("matTooltip","Remove SLO ID "+a))},Uqc=function(a){a&1&&(K(0,"div",25),S(1),L());a&2&&(a=P().$implicit,B(),T(" Subscription ID: ",a.id," "))},Xqc=function(a,b){if(a&1){var c=t();K(0,"h1",44);S(1,"Add report subscription");L();K(2,"mat-dialog-content")(3,"p",45);S(4," Select the user (scope) and frequency of the report you wish to receive. ");
L();K(5,"div")(6,"mat-form-field",46)(7,"mat-label");S(8,"Scope");L();K(9,"b-peoplekit-single",47);N("emailChange",function(f){var g=u(c).$implicit,k=P();return v(g.lead=k.emailToUser(f))});L();F(10,Pqc,2,0,"mat-error");F(11,Qqc,2,0,"mat-error");L()();K(12,"b-delivery-frequency-subform",17);N("frequencyChange",function(f){var g=u(c).$implicit;P();g.frequency=f;f!=="daily"?g.ordinal=1:delete g.ordinal;return v()})("ordinalChange",function(f){var g=u(c).$implicit;return v(g.ordinal=f)});Eg("timeOfDayChange",
function(f){var g=u(c).$implicit;Dg(g.timeOfDay,f)||(g.timeOfDay=f);return v(f)})("timeZoneIdChange",function(f){var g=u(c).$implicit;Dg(g.timeZone.id,f)||(g.timeZone.id=f);return v(f)});L();K(13,"div")(14,"mat-form-field",15)(15,"mat-label");S(16,"Days remaining");L();K(17,"input",48);Eg("ngModelChange",function(f){var g=u(c).$implicit;Dg(g.daysRemaining,f)||(g.daysRemaining=f);return v(f)});L()()();K(18,"div")(19,"mat-form-field",15)(20,"mat-label");S(21,"Types");L();K(22,"mat-select",20);Eg("ngModelChange",
function(f){var g=u(c).$implicit;Dg(g.types,f)||(g.types=f);return v(f)});Pf(23,Rqc,2,2,"mat-option",21,Of);L()()();K(25,"div",8)(26,"mat-form-field",49)(27,"mat-label");S(28,"Add SLO ID");L();K(29,"input",23);Eg("ngModelChange",function(f){u(c);var g=P();Dg(g.newSloId,f)||(g.newSloId=f);return v(f)});N("keydown.enter",function(){var f=u(c).$implicit,g=P();return v(Vqc(g,f))})("blur",function(){var f=u(c).$implicit,g=P();return v(Vqc(g,f))});L()();Pf(30,Tqc,5,3,"div",24,Of);L();F(32,Uqc,2,1,"div",
25);K(33,"p",50);S(34," You are the only recipient of your subscription. Anyone else wishing to receive this report will need to subscribe for themselves. ");L();K(35,"a",51);S(36,"Learn more");L()();K(37,"mat-dialog-actions")(38,"button",52);S(39,"Cancel");L();K(40,"button",9);N("click",function(){var f=u(c).$implicit,g=P();return v(Wqc(g,f))});S(41);L()()}if(a&2){a=b.$implicit;b=P();B(9);var d;I("asMatInput",!0)("email",(d=a.lead==null?null:a.lead.emailAddress)!=null?d:"")("required",!0)("placeholder",
"Search users...");B();G(b.dialogInvalidEmailFormat?10:-1);B();G(b.ceoSelected?11:-1);B();var e;I("frequency",a.frequency)("ordinal",(e=a.ordinal)!=null?e:0);Cg("timeOfDay",a.timeOfDay)("timeZoneId",a.timeZone.id);B(5);Cg("ngModel",a.daysRemaining);B(5);Cg("ngModel",a.types);B();Qf(b.typeChoices);B(6);Cg("ngModel",b.newSloId);B();Qf(a.sloIds);B(2);G(a.id?32:-1);B(8);I("disabled",!a.lead||!a.lead.emailAddress);B();T(" ",a.id===0?"Add":"Update"," ")}},Yqc=function(a){a&1&&(K(0,"div",7),M(1,"b-general-settings"),
L())},Zqc=function(a){a&1&&(K(0,"div",7),M(1,"b-notification-settings"),L())},$qc=function(a){a&1&&(K(0,"div",7),M(1,"b-configurable-alert-settings"),L())},arc=function(a){a&1&&(K(0,"div",7),M(1,"b-slo-reports-settings"),L())},brc=function(a){a&1&&(K(0,"mat-tab",6),E(1,arc,2,0,"ng-template",3),L())},crc=function(a){a&1&&M(0,"b-star-toggle",5);a&2&&I("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)},drc=function(a){if(a&1){var b=t();K(0,"b-star-toggle",11);N("starClicked",function(){u(b);var c=P(2);return v(c.toggleStar())});L()}a&2&&(a=P(2),I("starMessage","Star this bookmark group")("unStarMessage","Un-star this bookmark group")("starred",a.isStarred))},erc=function(a,b){a&1&&(K(0,"li")(1,"a",12),S(2),L()());a&2&&(a=b.$implicit,b=P(2),B(),I("href",b.getUrl(a),Me),B(),Ag(b.getDisplayName(a)))},frc=function(a){if(a&1){var b=t();K(0,"div")(1,"div",3)(2,"div",4);F(3,crc,1,4,
"b-star-toggle",5)(4,drc,1,3,"b-star-toggle",6);K(5,"span",7);S(6);L();K(7,"button",8);N("click",function(){u(b);var c=P();return v(c.openEditBookmarkGroup())});L()();K(8,"div",9);S(9);L()();K(10,"ul",10);Pf(11,erc,3,2,"li",null,Of);L()()}a&2&&(a=P(),B(3),G(a.userIsAdmin?3:4),B(3),T("Bookmark Group: ",a.bookmarkGroup.name," "),B(3),Ag(a.bookmarkGroup.description),B(2),Qf(a.bookmarkGroup.item))},grc=function(a){if(a&1){var b=t();K(0,"button",10);N("click",function(){u(b);var c=P(2);return v(c.addToMissionControl(c.hotlistId))});
S(1," Hotlist insights in Home ");L()}},hrc=function(a,b){a&1&&F(0,grc,2,0,"button",9);a&2&&(a=P(),G(a.showAddToMcButton(b)?0:-1))},irc=function(a){if(a&1){var b=t();K(0,"b-star-toggle",16);N("starClicked",function(){u(b);var c=P(2);return v(c.toggleStar())})("keydown.space",function(c){u(b);return v(c.stopPropagation())})("keydown.enter",function(c){u(b);return v(c.stopPropagation())});L()}a&2&&(a=P(2),I("starMessage","Star this hotlist")("unStarMessage","Un-star this hotlist")("starred",a.isStarred))},
jrc=function(a){a&1&&M(0,"b-star-toggle",12);a&2&&I("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)},krc=function(a){a&1&&M(0,"b-star-toggle",12);a&2&&I("starMessage","")("unStarMessage","")("starred",!1)("disabled",!0)},lrc=function(a){a&1&&(K(0,"div",14),S(1," Hotlist not found. "),L());a&2&&I("bFocus",!0)},mrc=function(a){a&1&&(K(0,"div"),S(1," Loading details... "),
L())},nrc=function(a){a&1&&(K(0,"span",19),S(1," (archived) "),L())},orc=function(a){a&1&&(K(0,"span",22),S(1," \u00a0(changed) "),L())},prc=function(a){if(a&1){var b=t();K(0,"div")(1,"span",17);S(2," Hotlist: ");K(3,"span",18);S(4);L()();F(5,nrc,2,0,"span",19);K(6,"div",20)(7,"button",21);N("click",function(){u(b);var c=P(2);return v(c.openEditHotlist())});L()();F(8,orc,2,0,"span",22);L()}a&2&&(a=P(2),B(3),I("matTooltip",a.hotlist.description),B(),T(" ",a.hotlist.name," "),B(),G(a.hotlist.archived?
5:-1),B(3),G(a.hasParamChanges()?8:-1))},qrc=function(a){if(a&1){var b=t();K(0,"div",15)(1,"button",23);N("click",function(){u(b);var c=P(2);return v(c.save())});S(2,"Save ");L();K(3,"button",24);N("click",function(){u(b);var c=P(2);return v(c.discardChanges())});S(4,"Discard changes ");L()()}},rrc=function(a){a&1&&(K(0,"div",5),F(1,irc,1,3,"b-star-toggle",11),F(2,jrc,1,4,"b-star-toggle",12),F(3,krc,1,4,"b-star-toggle",12),K(4,"div",13),F(5,lrc,2,1,"div",14),F(6,mrc,2,0,"div"),F(7,prc,9,4,"div"),
L(),F(8,qrc,5,0,"div",15),L());a&2&&(a=P(),B(),G(a.isDirectAdmin()||!a.hotlist||a.hotlist.archived?-1:1),B(),G(a.isDirectAdmin()&&a.hotlist&&!a.hotlist.archived?2:-1),B(),G(a.hotlist?-1:3),B(2),G(a.hotlist||a.hotlistLoading?-1:5),B(),G(a.hotlistLoading?6:-1),B(),G(a.hotlist&&!a.hotlistLoading?7:-1),B(),G(a.hasParamChanges()?8:-1))},src=function(a){a&1&&(K(0,"div",6),M(1,"b-spinner"),K(2,"span"),S(3),L()());a&2&&(a=P(),B(3),T(" Loading hotlist: ",a.hotlistId))},trc=function(a){a&1&&S(0);a&2&&(a=P(2),
T(" No issues found on this page for hotlist ",a.hotlistId,". There may be issues visible on the next page. "))},urc=function(a){a&1&&S(0);a&2&&(a=P(2),T(" No issues in hotlist ",a.hotlistId,". "))},vrc=function(a){a&1&&(K(0,"div",7),F(1,trc,1,1)(2,urc,1,1),L());a&2&&(a=P(),I("bFocus",!0),B(),G((a.searchResults==null?0:a.searchResults.hasNextPage())?1:2))},wrc=function(a){if(a&1){var b=t();K(0,"div",8)(1,"b-issues-grid",25);N("init",function(c){u(b);var d=P();return v(d.resultsGrid=c)});Eg("focusedRowIndexChange",
function(c){u(b);var d=P();Dg(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return v(c)})("columnsChange",function(c){u(b);var d=P();Dg(d.issueColumns,c)||(d.issueColumns=c);return v(c)});N("sortChange",function(c){u(b);var d=P();return v(d.setSort(c.field,c.direction))})("rowClick",function(c){u(b);var d=P();return v(d.goToIssue(c.id,c.isRead,c.event))})("onRowDragDrop",function(c){u(b);var d=P();return v(d.repositionIssue(c.srcIndex,c.destIndex))})("onNextPage",function(){u(b);var c=P();return v(Ru(c,
c.page,1))})("onPrevPage",function(){u(b);var c=P();return v(Ru(c,c.page,-1))});L()()}a&2&&(a=P(),B(),I("searchResults",a.searchResults),Cg("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns),I("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort())("enableSidebar",!0))},xrc=function(a){if(a&1){var b=t();K(0,"button",9);N("click",function(){u(b);var c=P(2);return v(c.addToMissionControl(c.savedSearchId))});S(1," Saved Search insights in Home ");L()}},yrc=function(a,b){a&1&&F(0,
xrc,2,0,"button",8);a&2&&(a=P(),G(a.showAddToMcButton(b)?0:-1))},zrc=function(a){a&1&&(K(0,"span",13),S(1," \u00a0(changed) "),L())},Arc=function(a){if(a&1){var b=t();K(0,"div",10);S(1," Saved search: ");K(2,"span",11);S(3);L();K(4,"button",12);N("click",function(){u(b);var c=P(2);return v(c.openEditSavedSearch())});L();F(5,zrc,2,0,"span",13);L()}a&2&&(a=P(2),B(2),I("matTooltip",a.savedSearch.description),B(),T(" ",a.savedSearch.name," "),B(2),G(a.hasParamChanges()?5:-1))},Brc=function(a){a&1&&(K(0,
"div"),S(1," Loading details... "),L())},Crc=function(a){a&1&&(K(0,"div"),S(1," Saved search not found. "),L())},Drc=function(a){a&1&&F(0,Brc,2,0,"div")(1,Crc,2,0,"div");a&2&&(a=P(2),G(a.isLoading?0:1))},Erc=function(a){a&1&&(K(0,"div",6),F(1,Arc,6,3,"div",10)(2,Drc,2,1),L());a&2&&(a=P(),B(),G(a.savedSearch?1:2))},Frc=function(a){if(a&1){var b=t();K(0,"button",18);N("click",function(){u(b);var c=P(2);return v(c.save())});S(1,"Save ");L()}},Grc=function(a){if(a&1){var b=t();K(0,"div",7);F(1,Frc,2,
0,"button",14);K(2,"button",15);N("click",function(){u(b);var c=P();return v(c.discardChanges())});S(3,"Discard changes ");L();K(4,"span",16)(5,"a",17);N("click",function(){u(b);var c=P();c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"backToNormalSearch");return v()});S(6," Back to normal search");L()()()}a&2&&(a=P(),B(),G(a.isEditable()?1:-1),B(4),I("href",a.exitLink,Me))},Hrc=function(a){a&1&&(K(0,"span"),S(1),L());a&2&&(a=P(3),B(),T(" Searching",a.searchParams.query?" for "+a.searchParams.query:
"","..."))},Irc=function(a){a&1&&(K(0,"div",19),M(1,"b-spinner"),F(2,Hrc,2,1,"span"),L());a&2&&(a=P(2),B(2),G(a.searchParams?2:-1))},Jrc=function(a){if(a&1){var b=t();K(0,"div",20)(1,"b-issues-grid",22);N("init",function(c){u(b);var d=P(3);return v(d.resultsGrid=c)});Eg("focusedRowIndexChange",function(c){u(b);var d=P(3);Dg(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return v(c)})("columnsChange",function(c){u(b);var d=P(3);Dg(d.issueColumns,c)||(d.issueColumns=c);return v(c)});N("sortChange",function(c){u(b);
var d=P(3);return v(d.setSort(c.field,c.direction))})("rowClick",function(c){u(b);var d=P(3);return v(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){u(b);var c=P(3);return v(Ru(c,c.page,1))})("onPrevPage",function(){u(b);var c=P(3);return v(Ru(c,c.page,-1))});L()()}a&2&&(a=P(3),B(),I("searchResults",a.searchResults),Cg("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns),I("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort())("enableSidebar",!0))},Krc=function(a){a&
1&&(K(0,"div",21),S(1," No issues in saved search. "),M(2,"b-inactive-issues-search-warning"),L());a&2&&I("bFocus",!0)},Lrc=function(a){a&1&&F(0,Jrc,2,6,"div",20)(1,Krc,3,1,"div",21);a&2&&(a=P(2),G(a.hasResults()?0:1))},Mrc=function(a){a&1&&(K(0,"div"),F(1,Irc,3,1,"div",19)(2,Lrc,2,1),L());a&2&&(a=P(),B(),G(a.isLoading?1:2))},Yu=function(a,b){return Nrc(function(){return AXa(a)},b)},Nrc=function(a,b){return a()?[b]:[]},Orc=function(){var a=q(Zu).getEnvironmentType(),b={};return(b.DEV="Dev",b.NIGHTLY=
"Autopush",b.QA="Dev",b.PROD="Prod",b)[a]},Qrc=function(a){a=a.internal;var b,c,d;(b=Y(a,Prc,11))==null?d=void 0:d=On(b,1,Xi(en)).sort().join("-");b=(c=d)!=null?c:"";var e,f,g;(e=Y(a,Prc,11))==null?g=void 0:g=On(e,2,Xi(en)).sort().join("-");c=(f=g)!=null?f:"";return Fi(a,10,"all_features")+(":enabled-"+b)+(":disabled-"+c)},Trc=function(a,b){for(var c=[],d=a.length,e=0,f=[],g,k,m=0;m<d;){switch(e){case 0:var r=a.indexOf("<",m);if(r<0){if(c.length===0)return a;c.push(a.substring(m));m=d}else c.push(a.substring(m,
r)),k=r,m=r+1,Rrc?(Src.lastIndex=m,r=Src.exec(a)):(Src.lastIndex=0,r=Src.exec(a.substring(m))),r?(f=["<",r[0]],g=r[1],e=1,m+=r[0].length):c.push("<");break;case 1:r=a.charAt(m++);switch(r){case "'":case '"':var w=a.indexOf(r,m);w<0?m=d:(f.push(r,a.substring(m,w+1)),m=w+1);break;case ">":f.push(r);c.push(b(f.join(""),g));e=0;f=[];k=g=null;break;default:f.push(r)}break;default:throw Error();}e===1&&m>=d&&(m=k+1,c.push("<"),e=0,f=[],k=g=null)}return c.join("")},$u=function(a,b){b=a(b||Urc,void 0);a=
Bj();if(b&&b.renderAsElement)a=b.renderAsElement();else{a=a.createElement("DIV");b:if(gq(b)){if(b.toSafeHtml&&(b=b.toSafeHtml(),b instanceof rh))break b;b=Dh("zSoyz")}else b=Dh(String(b));a.innerHTML=uh(b)}a.childNodes.length==1&&(b=a.firstChild,b.nodeType==1&&(a=b));return a},av=function(a,b){return a.querySelector('[peoplekit-id="'+b+'"]')},Vrc=function(a,b){return Array.from(a.querySelectorAll('[peoplekit-id="'+b+'"]'))},Wrc=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"))})},Zrc=function(a,b){if(/-[a-z]/.test(b))return null;if(Xrc&&a.dataset){if(oba()&&!(b in a.dataset))return null;a=a.dataset[b];return a===void 0?null:a}return a.getAttribute("data-"+Yrc(b))},$rc=function(a){var b=new Image;b.src=a;a=b.complete;b.src="";return a},bv=function(a,b,c,d,e,f){e=e===void 0?new asc:e;f=(f===void 0?"":f)||"https://lh3.googleusercontent.com/a/default-user";b=b.length?b.map(function(g){return g||"https://lh3.googleusercontent.com/a/default-user"}):
[f];c=$u(bsc,{imageUrls:b,backupUrl:f,size:c,preloadSize:d,pixelRatio:csc()});e=new dsc(c,e);a.appendChild(c);return e},fsc=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 esc(esc(mu(c),"#\ufe0f\u20e3\u20e31\ufe0f\u20e3\u20e3","<b>"),"2\ufe0f\u20e3\u20e3*\ufe0f\u20e3\u20e3",
"</b>")},gsc=function(a){var b=a.getDisplayName();return b?fsc(b,a.getMatchInfo().getDisplayNameMatches()):""},hsc=function(a){var b=a.getDisplayValue();return b?fsc(b,a.getMatchInfo().getDisplayValueMatches()):""},isc=function(a,b){var c=b?gsc(a):mu(a.getDisplayName());b=b?hsc(a):mu(a.getDisplayValue());c=c||b;b=b||mu(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()]}},
jsc=function(a){var b=a.result();b=isc(b,!1);a=a.getDisplayNameWithOverrideApplied();return{label:mu(a)||b.sublabel,sublabel:b.sublabel,name:a,photos:b.photos,hovercardId:b.hovercardId}},ksc=function(a){var b;switch(((b=a.statefulChipConfig)==null?void 0:b.chipState)||0){case 3:return"isError";default:return""}},lsc=function(a){var b;return((b=a.statefulChipConfig)==null?void 0:b.customChipClass)||""},nsc=function(a,b,c){var d=jsc(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;var f=ksc(c);c=lsc(c);return{id:cv(msc),label:d.label,name:d.name,photos:e,hovercardId:d.hovercardId,stateClass:f,isWarning:a,isDeletionDisabled:!b.getAllowChipDeletion(),customChipClass:c}},psc=function(a,b,c,d){var e="",f=mu(a.getDescription()),g=!1,k=a.getMemberList().length;if(k>1||a.getDisplayName())e=a.getMemberList().map(function(m){var r=
m.getPrimaryTarget().getName(),w="";if(r){if(b){var x;var D=(r=(D=m.getPrimaryTarget())==null?void 0:(x=D.getName())==null?void 0:x.getGivenName())?fsc(r,m.getMatchInfo().getGivenNameMatches()):""}else D=mu(r.getGivenName());(w=D)||(w=b?gsc(m):mu(m.getDisplayName()))}w||(w=b?hsc(m):mu(m.getDisplayValue()));return w}),c&&(e=e.reverse()),e=b?gsc(a)||e.join(", "):mu(a.getDisplayName())||e.join(", "),f||d||a.getTotalMemberCount()===null||(f=Number(a.getTotalMemberCount()),f=osc({memberCount:f}),g=!0);
else if(k===1)return e=a.getMemberList()[0],f=isc(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(m){return m.getPhotoUrl()});return{hovercardId:"",label:e,sublabel:f,type:a.getPrimaryTarget().getTargetType(),photos:c,allowSublabelTranslation:g}},dv=function(a){return new Pi(a)},qsc=function(a,b,c){b=b.ownerDocument.createEvent(c);b.initEvent(a,!0,!0);return b},
rsc=function(a,b){return qsc(a,b,"CustomEvent")},ssc=function(a){return a.resultType===4||a.resultType===5},wsc=function(a){ev.addCoreFactory({type:0,configurationKey:a,factory:{create:function(b){var c=b.selection;var d=b.chipConfig;var e=b.chipCustomization,f=b.isRightToLeft;f=psc(c.result(),!1,f,!1);if(f.flatResult){var g=Object;c=g.assign;var k=f.flatResult,m=k.getPrimaryTarget(),r=d.getWarnForExternalSelections()&&m.getOrgState()===2;m=d.getShouldDisplayExternalSelectionIcon()&&r&&m.getDataSource()!==
1?["https://www.gstatic.com/people/peoplekit/icons/light_theme/out_of_domain_yellow500.svg"]:f.photos;var w=ksc(e);e=lsc(e);d={id:cv(msc),label:f.label,name:k.getDisplayName(),photos:m,hovercardId:f.hovercardId,stateClass:w,isWarning:r,isDeletionDisabled:!d.getAllowChipDeletion(),customChipClass:e};d=c.call(g,{},d,{type:f.type})}else k=c.result().getPrimaryTarget(),c=d.getWarnForExternalSelections()&&k.getOrgState()===2,k=d.getShouldDisplayExternalSelectionIcon()&&c&&k.getDataSource()!==1?["https://www.gstatic.com/people/peoplekit/icons/light_theme/out_of_domain_yellow500.svg"]:
f.photos,d=Object.assign({},{id:cv(tsc),isDeletionDisabled:!d.getAllowChipDeletion(),stateClass:"",isWarning:c,name:f.label},f,{customChipClass:((g=e.statefulChipConfig)==null?void 0:g.customChipClass)||"",photos:k});f=$u(usc,d);bv(av(f,"d6MZcd"),d.photos,b.avatarSize,b.resultListItemAvatarSize,b.appearanceConfig);b.parent.appendChild(f);return{chip:new vsc(f,b.selection,b.selectionsState),root:f,state:0}},shouldCreate:ssc}})},xsc=function(a){return 0===a.resultType},Asc=function(a){ev.addCoreFactory({type:1,
configurationKey:a,factory:{create:function(b){var c=nsc(b.selection,b.chipConfig,b.chipCustomization);c=$u(ysc,Object.assign({},c,{avatarSize:b.avatarSize}));b.parent.appendChild(c);return{chip:new zsc(c,b.selection,b.selectionsState),root:c,state:0}},shouldCreate:xsc}})},Psc=function(a,b,c,d,e){var f;if(f=c.offsetParent){var g=f.tagName=="HTML"||f.tagName=="BODY";if(!g||Bsc(f)!="static"){var k=fv(f);if(!g){g=gv(f);var m;if(m=g){m=Csc&&gba(Dsc,10)>=0;var r;if(r=Esc)r=gba(Fsc,10)>=0;var w=Gsc&&gba(Dsc,
85)>=0;m=wj||m||r||w}g=m?-f.scrollLeft:g&&Ht(f,"overflowX")!="visible"?f.scrollWidth-f.clientWidth-f.scrollLeft:f.scrollLeft;k=Hsc(k,new tj(g,f.scrollTop))}}}f=k||new tj;k=Isc(a);(g=Jsc(a))&&k.intersection(Ksc(g));g=Bj(a);m=Bj(c);if(g.document_!=m.document_){g=g.document_.body;m=m.getWindow();r=new tj(0,0);w=hv(iv(g));if(Lsc(w,"parent")){var x=g;do{if(w==m)var D=fv(x);else D=Msc(x),D=new tj(D.left,D.top);r.x+=D.x;r.y+=D.y}while(w&&w!=m&&w!=w.parent&&(x=w.frameElement)&&(w=w.parent))}g=Hsc(r,fv(g));
k.left+=g.x;k.top+=g.y}a=Nsc(a,b);b=k.left;a&4?b+=k.width:a&2&&(b+=k.width/2);b=new tj(b,k.top+(a&1?k.height:0));b=Hsc(b,f);a=Nsc(c,d);k=Osc(c);b=b.clone();k=k.clone();a!=0&&(a&4?b.x-=k.width:a&2&&(b.x-=k.width/2),a&1&&(b.y-=k.height));a=new Fj(0,0,0,0);a.left=b.x;a.top=b.y;a.width=k.width;a.height=k.height;c=Jsc(c);c.top-=f.y;c.right-=f.x;c.bottom-=f.y;c.left-=f.x;a.left<c.left?a.left=c.left:a.left+a.width>c.right&&(a.left=c.right-a.width);e&&(e=a,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)),a=e);return a},Qsc=function(a,b){jv(a,new tj(b.left,b.top));b=b.getSize();var c=Osc(a);c==b||c&&b&&c.width==b.width&&c.height==b.height||(a=a.style,wj?a.MozBoxSizing="border-box":vj?a.WebkitBoxSizing="border-box":a.boxSizing="border-box",a.width=Math.max(b.width,0)+"px",a.height=Math.max(b.height,0)+"px")},Rsc=function(a,b){return new kv(a,b)},Vsc=function(a,b,c){b=$u(Ssc,{label:c.label,id:b,ariaLabel:c.ariaLabel});a.appendChild(b);a=c.showDelayMs;
c=c.hideDelayMs;c=new Tsc(b,a===void 0?500:a,c===void 0?300:c);return new Usc(b,c)},Wsc=function(a){return!a.chipCustomization.statefulChipConfig||a.chipCustomization.statefulChipConfig.chipState===0||a.chipConfig.getWarnForExternalSelections()&&a.chipCustomization.statefulChipConfig.chipState!==3?!1:!0},Xsc=function(a){ev.addDecoratorFactory({type:0,factory:{create:function(b,c){return{chip:new lv(c.chip,b.chipCustomization.statefulChipConfig.tooltipLabel,b.chipCustomization.statefulChipConfig.ariaLabel),
root:c.root,state:b.chipCustomization.statefulChipConfig.chipState}},shouldCreate:Wsc},configurationKey:a})},atc=function(a,b,c){var d=$u(Ysc,{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("Tg`"+f);}}e.call(a,f);if(c.tooltipLabel){var g=
d.getAttribute("data-tooltip-id")||"";g=Vsc(b,g,{label:c.tooltipLabel,ariaLabel:c.ariaLabel});Zsc(g,d)}return new $sc(d,c.icon,c.disabledIcon,g,c.disableDomNavigation,c.onClick)},mv=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)},nv=function(a){return rsc("pcw-click",a)},ctc=function(a,b,c,d,e){var f=Object.assign({},c);f.onClick=function(g){d.select(a.getSelection(),1);var k;(k=c.onClick)==null||k.call(c,g)};return new btc(a,b,f,e)},dtc=function(a){ov.addDecoratorFactory({type:1,factory:{create:function(b,c){return ctc(c,b.appearanceConfig,b.resultCustomizationConfig.secondaryActionButtonConfig,b.interactions,b.popupsContainer)},shouldCreate:function(b){return!!b.resultCustomizationConfig.secondaryActionButtonConfig}},
configurationKey:a})},etc=function(a){a=Qrc(a);Asc(a);Xsc(a);wsc(a);dtc(a)},ftc=function(a,b,c){var d=Math.max(b,c);return a>Math.min(b,c)&&a<d},gtc=function(a,b,c){b=[b,c].map(function(d){return d!=null?d:""}).join(";");a.setAttribute("pkd-ac-state",String(Dh(b)))},htc=function(a,b){b=[String(b.getId()),b.getValue()].join(";");a.setAttribute("pkd-target",String(Dh(b)))},itc=function(a,b){a.setAttribute("pkd-ps-state",String(Dh("1")));b.warmUpCache().then(function(){a.setAttribute("pkd-ps-state",
String(Dh("2")))},function(){a.setAttribute("pkd-ps-state",String(Dh("3")))})},ltc=function(a,b){jtc(ktc,b).create(a)},otc=function(a){a=a===void 0?new mtc:a;return new ntc(a)},qtc=function(a,b,c,d,e){var f=otc(new mtc(function(){var k=e();k&&!k.hasFocus()&&k.getNavigatable().reset()})),g=new ptc;ltc({injectableAutocompleteGrouping:g,injectableResultConfig:f,autocompleteConfig:a,clientConfig:b,peopleStore:c,searchSession:d,getAutocomplete:e},Qrc(b));return{injectableResultConfig:f,injectableAutocompleteGrouping:g}},
utc=function(a){var b=$u(rtc,{id:cv(stc)});a.appendChild(b);return new ttc(b)},xtc=function(a){if(pv){var b=vtc(a);wtc(a,b)}else a.scrollIntoView({block:"nearest"})},ztc=function(a){return new ytc(a)},Ctc=function(a,b){b=$u(Atc,{label:b.label});a.appendChild(b);return new Btc(b)},Etc=function(a,b){for(var c=l(Dtc.values()),d=c.next();!d.done;d=c.next())a.classList.remove(d.value);(b=Dtc.get(b))&&a.classList.add(b)},Gtc=function(a,b){for(var c=l(["peoplekitThemeLight","peoplekitThemeDark"]),d=c.next();!d.done;d=
c.next())a.classList.remove(d.value);(b=Ftc.get(b))&&a.classList.add(b)},Jtc=function(a,b,c,d){b=$u(Htc,{content:b,header:d});a.appendChild(b);a=av(b,"Sx9Kwc");d=Ctc(av(b,"IbE0S"),{label:"Close"});Gtc(b,c.getTheme());Etc(a,c.getStyle());return new Itc(b,d)},Otc=function(a,b){var c=a.headerText,d=a.infoGroupConfig;a=a.collapsibleGroupConfig;if(c){var e=cv(yt.getInstance());e=$u(Ktc,{id:e,header:c});c=new Ltc(e,c);d&&(e={},d.infoType===1&&(e={infoIconVeId:185198,learnMoreLinkVeId:185199}),c=new Mtc(c,
d,b,e));a&&(c=new qv(c,a.isInitiallyCollapsed));c.getActionItems().length>0&&(b=c,b.getRoot().setAttribute("role","group"),c=new Ntc(b));return c}},Qtc=function(){return new (Function.prototype.bind.apply(Ptc,[null].concat(n(Yc.apply(0,arguments)))))},Rtc=function(a){var b,c;return(c=a==null?void 0:(b=a.collapsibleGroupConfig)==null?void 0:b.isDemoted)!=null?c:!1},Ttc=function(){return new (Function.prototype.bind.apply(Stc,[null].concat(n(Yc.apply(0,arguments)))))},Utc=function(a){return Object.values(a).filter(function(b){return b!=
null}).length},Vtc=function(a){return Object.values(a.groupConfigs).every(function(b){return b&&Utc(b)!==0?b.headerText!=null&&Utc(b)===1:!0})},Ytc=function(a,b,c,d,e,f){f?Vtc(f)?f=Ttc(a,b,c,d,e,f):(a.isInteractive!==!1&&(a.isInteractive=!1,a.isInteractive?(a.root.setAttribute("role","listbox"),a.root.setAttribute("aria-multiselectable","true")):(a.root.removeAttribute("role"),a.root.removeAttribute("aria-multiselectable"))),a=Qtc(a,b,c,d,e,f),Object.values(f.groupConfigs).some(Rtc)&&(a=new Wtc(a,
f)),f=a):f=new Xtc(a,b,c,e);return f},Ztc=function(a){switch(a){case 0:return 40;case 1:return 32;case 2:return 28;default:throw Error("Tg`"+a);}},$tc=function(a){switch(a){case 0:return"googleMaterialDefaultDensity";case 1:return"workspaceMaterialComfortableDensity";case 2:return"workspaceMaterialCompactDensity";default:throw Error("Tg`"+a);}},rv=function(a){return a==null?"":typeof a==="number"?isFinite(a)?String(a):"":a&&(a=String(a),a.length<=254)?a:""},duc=function(){var a=sv("gapi.config.get");
if((a=rv(a&&a("googleapis.config/sessionIndex")))||(a=rv(ra.__X_GOOG_AUTHUSER))||(a=rv(sv("google.authuser"))))return a;var b=ra.location.href||"",c=auc.exec(b);try{a=rv(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;c=buc.exec(b);try{a=rv(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;a=cuc.exec(b);return(a=rv(a&&a[1]))?a:""},euc=function(){var a=sv("gapi.auth.getToken");a=(a=a?a():null)&&a.access_token;var b=null;if(!a){a=(a=sv("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}},guc=function(a){a=a===void 0?"":a;var b;if(!(b=euc())){b=a;var c=c===void 0?duc():c;a={};var d=fuc([]);d&&(a.Authorization=d);b||(b=(b=sv("gapi.config.get"))&&b("client/apiKey"));b&&(a["X-Goog-Api-Key"]=b);c&&(a["X-Goog-AuthUser"]=String(c));b=a}return b},huc=function(a,b){b=b===void 0?0:b;var c;if(c=b===0)c=(c=sv("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:c="dev-";var d=".corp";break;case 1:c="autopush-";d=".sandbox";break;case 2:c="staging-";d=".sandbox";break;default:b=4,c="",d=".clients6"}switch(b){case 7:case 1:case 2:a.endsWith(".pa")?a=a.substring(0,a.length-3)+"-googleapis.pa":d="-googleapis"+d}a="https://"+c+a+d+".google.com";(b=(b=sv("gapi.config.get"))&&b("client/rewrite"))&&b[a]&&(a=String(b[a]));return a},iuc=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},juc=function(a){var b,c=(b=a.getClient())==null?void 0:b.getApplication();a=a.getRequestType();return c&&a?[c,a]:null},kuc=function(a){return(a=juc(a))?JSON.stringify(a):null},luc=function(a,b){b=b===void 0?null:b;b=a.getProfileId()||b;return b?(a=juc(a))?JSON.stringify([a,b]):null:null},muc=function(){},nuc=function(a){this.storage_=a;this.cachedIsStorageAvailable_=null},ouc=
function(){var a=null;try{a=ra.localStorage||null}catch(b){}nuc.call(this,a)},tv=function(a,b){this.mechanism_=a;this.prefix_=b+"::"},quc=function(a){return puc.map(function(b){return new tv(a,b)})},ruc=function(a,b){window.setTimeout(a,b)},suc=function(a,b){return new Promise(function(c){b>0?ruc(function(){return c(a)},b):c(a)})},tuc=function(a){return new Promise(function(b,c){a>0?ruc(function(){return c("TIMEOUT")},a):c("TIMEOUT")})},uuc=function(a,b,c){b=suc(b,c);return Promise.race([a,b])},vuc=
function(a,b){b=tuc(b);return Promise.race([a,b])},wuc=function(a){a=Math.round(a*1E3);return isFinite(a)?a:null},xuc=function(){return hba&&Ca?!Ca.mobile&&(Ea("iPad")||Ea("Android")||Ea("Silk")):Ea("iPad")||Ea("Android")&&!Ea("Mobile")||Ea("Silk")},yuc=function(a){var b=new uv;if(a instanceof vv)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},Auc=function(a){a=a===void 0?null:a;var b=(new zuc).setExperimentFlags(new wv).setSource(3);a&&b.setError(yuc(a));return b},Juc=function(a){var b=b===void 0?new ouc:b;if(Buc)return Buc;var c=new Cuc(a),d=new Duc(a),e;b.isAvailable()?e=new Euc(a,b):e=new Fuc(a);b=e;try{b.clean()}catch(f){}c=
new Guc(new Huc(b,c),d,a.runtime_);return Buc=new Iuc(a,c)},Luc=function(a){var b=a.resultCustomizationConfig,c=isc(a.result,!0);a=Kuc(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}},Kuc=function(a,b){var c=a.result,d=a.resultConfig;
a=$tc(a.appearanceConfig.getDensity());var e=[],f=Muc.getExperiments();$i(f,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:cv(Nuc),hovercardId:b.hovercardId,label:b.label,sublabel:b.sublabel,photos:b.photos,densityClass:a,tags:e,allowSublabelTranslation:!1}},Puc=function(a){var b=a.result,c=a.resultCustomizationConfig,d=a.appearanceConfig,
e=a.isRightToLeft,f=$i(a.clientConfig.internal,6);d=$tc(d.getDensity());b=psc(b,!0,e,f);if(b.flatResult)return d=Object.assign({},a,{result:b.flatResult}),d=Kuc(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:cv(Ouc),hovercardId:b.hovercardId,label:b.label,sublabel:c.shouldHideSublabel?"":a,type:b.type,photos:b.photos,densityClass:d,tags:[],allowSublabelTranslation:e}},Ruc=function(a,b,c){return ys(new Quc(a===void 0?0:a,b!=null?b:[],c!=null?c:null))},xv=function(a){return(a||"").trim()},Tuc=function(a,b,c,d){return new Suc(a,b===void 0?"":b,c===void 0?!1:c,d===void 0?null:d)},Uuc=function(a){return a.resultCustomizationConfig.shouldDisable?
2:a.selectionsState.get(a.result.getPrimaryTarget().getId())&&!a.resultConfig.getAllowResultDeselection()?1:0},Wuc=function(a){return new Vuc(a)},Yuc=function(a,b,c,d){return new Xuc(a,b===void 0?"":b,c===void 0?!1:c,d===void 0?null:d)},Zuc=function(a){var b=-1;(a=yv(a))&&Bn(a,2)&&(b=Wm(a,2));return"index:"+b},avc=function(a,b,c,d,e,f,g,k,m){return new $uc(a,b,c,d,e,f,g,k,m)},cvc=function(){return new (Function.prototype.bind.apply(bvc,[null].concat(n(Yc.apply(0,arguments)))))},zv=function(a){return a instanceof
TypeError?4:3},dvc=function(){return"https://support.google.com/contacts/answer/7345608"},fvc=function(a){return evc.some(function(b){return a instanceof b})},lvc=function(a,b,c,d,e,f,g,k,m,r,w,x){var D=d.getAutocompleteHeader(),H=d.getAutocompleteCustomGrouping();if(k.internal.getEnableAutocompleteLegalese()){var J=d.getAutocompleteGroupingType()===4||d.getAutocompleteGroupingType()===5;var O=H&&fvc(H);J=J&&O?H:new gvc}else switch(d.getAutocompleteGroupingType()){case 1:J=new gvc;break;case 2:J=
new hvc(d.getAutocompleteGroupingLabel());break;case 3:J=new ivc(d.getAutocompleteGroupingLabel());break;case 4:case 5:J=H}H=d.getAutocompleteGroupingType();e=l(e.groupingDecorators);for(O=e.next();!O.done;O=e.next())O=O.value,J=O(H,J);e=J;D=$u(jvc,{header:D||""});a.appendChild(D);a=utc(av(D,"tjneg"));b=cvc(a,f,g,d,k,b,c,m,r,w,e);return new kvc(b,c,x)},mvc=function(a){var b=Ha()&&a.event.keyCode===121&&a.event.shiftKey;b||(b=Ha()&&a.event.ctrlKey&&a.event.keyCode===13);b||(b=a.event.shiftKey&&a.event.ctrlKey&&
a.event.keyCode===88);b||(b=Ha()&&a.event.metaKey&&a.event.shiftKey&&a.event.keyCode===220);b||(b=a.event.shiftKey&&a.event.ctrlKey&&a.event.keyCode===220);return b},nvc=function(a,b){return new Av(a,b)},ovc=function(a){return a.getAttribute("peoplekit-id")==="XLuqBd"},qvc=function(a,b){return new pvc(a,b)},rvc=function(){return!1},svc=function(){},uvc=function(){return new (Function.prototype.bind.apply(tvc,[null].concat(n(Yc.apply(0,arguments)))))},xvc=function(a,b){b=$u(vvc,b);a.appendChild(b);
return new wvc},Dvc=function(a,b,c,d,e,f,g,k,m,r,w){var x=$u(yvc);mv({element:x,veid:85843,actions:["impression"],componentId:"peoplekitweb"});Etc(x,g.getStyle());a.appendChild(x);a=av(x,"tjneg");var D=new zvc(x),H;w||(w=qtc(g,k,r,c,function(){return H}));r=w;d=lvc(a,d,e,g,r.injectableAutocompleteGrouping,g,r.injectableResultConfig,k,m,b,D,f);e=av(a,"rymPhb");b.setAttribute("aria-owns",e.id);b.setAttribute("aria-controls",e.id);e.setAttribute("aria-labelledby",b.id);m=g.getNoResultsMessage();e=$u(Avc);
m=m?m.display?new Bvc(e,m):xvc(e,m):new Cvc;x.appendChild(e);return H=uvc(x,b,d,c,f,g,m,k)},Gvc=function(a,b,c,d,e,f,g,k,m,r){var w=$u(Evc);Etc(w,g.getStyle());a.appendChild(w);var x;a=qtc(g,k,r,c,function(){return x});c=Dvc(w,b,c,d,e,f,g,k,m,r,a);return x=new Fvc(w,b,c,d,g)},Ivc=function(a,b){return new Hvc(a,b)},Jvc=function(a){return a.map(function(b){return b.getLoggingToken()}).filter(Boolean)},Bv=function(a){return a.filter(function(b){return!b.isPlaceholder()}).map(function(b){return b.selectionToken().getLoggingToken()}).filter(Boolean)},
Kvc=function(a,b,c){switch(b){case 1:a.reporter.reportProceed(Bv(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(Bv(c))}},Mvc=function(a,b,c){return new Lvc(a,b,c)},Svc=function(a,b){a=a.internal.getClearcut();b=new Nvc(a,b);b=new Ovc(Pvc(b));a=a.getInterfaceType();return new Qvc(new Rvc(b,a))},Tvc=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(g){e||(e=g)}}if(e)throw e;},
Uvc=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)},awc=function(a,b,c){var d=new Cv,e=duc();c=(new Vvc).setClientId(b.getClientId()).setApplication(b.getSocialApplicationOrUndefined()).setEntryPoint(c).setVersionName("1.0").setBaselineCl(839130764);d=new Wvc(d,1394,e,void 0,void 0,void 0,new Xvc(c));d.setClientSideLogOnlyForDevelopment(!b.getEnableClearcut()||!1);b=Yvc(new Zvc,Muc.getExperimentIds());d.clearcut_.setClearExperimentIds(b);d.setComponentID("peoplekitweb");
d.clearcut_.setProductID(109303191);return new $vc(a,d)},hwc=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=bwc(cwc||(cwc=dwc('[null,null,null,null,null,null,null,"AIzaSyBAMHkvD9gqERVdYmGsYLnAtfzigZdAqJQ"]')));f=new ewc(f,7)}else f=new Dv;else f=new Dv;d=d.getExperiments();a=f.loadExperiments(d.getApplication(),(new fwc).setPeopleApiEnv(a.apiEnv_),e);
Muc=new gwc(d,a);c&&c(b)},jwc=function(a,b,c,d,e,f){var g=c.beginSession(function(){},f.sessionOptions||new Ev);return iwc(a,b,c,g,d,e,f)},iwc=function(a,b,c,d,e,f,g){hwc({clientConfig:f,commonConfig:e,initializeIoC:etc});f.internal.getClearcut().setInterfaceType(4);f.internal.getClearcut().setComponentFlow(7);var k=$u(kwc,{classes:"aU4VQc"});a.appendChild(k);$i(f.internal,14,!0)&&e.setStyle(1);Gtc(k,e.getTheme());mv({element:k,veid:64611,actions:["impression"],componentId:"peoplekitweb"});a=new Fv;
var m=Mvc(d,a,e.getEntryPoint()),r=Svc(f,e.getEntryPoint());b=Gvc(k,b,d,a,m,r,e,f,new lwc(g.intelligence),c);itc(b.getRoot(),c);c=awc(k,f.internal.getClearcut(),e.getEntryPoint());c.start(mwc);return new nwc(k,b,a,m,c,e)},owc=function(a){switch(a){case 0:return 28;case 1:return 24;case 2:return 20;default:throw Error("Tg`"+a);}},pwc=function(a){var b=Number("2"),c=Number("4");return owc(a)+2*b+2*c},qwc=function(a){var b;return Object.freeze({id:"jCCvxc",iconUrl:(b=Gv.get(a))==null?void 0:b.get("jCCvxc"),
label:"Copy",keyboardShortcut:[512,67],veid:108906})},rwc=function(a){var b;return Object.freeze({id:"UkZFS",iconUrl:(b=Gv.get(a))==null?void 0:b.get("UkZFS"),label:"Cut",keyboardShortcut:[512,88],veid:119506})},swc=function(a){var b;return Object.freeze({id:"YCRBfe",iconUrl:(b=Gv.get(a))==null?void 0:b.get("YCRBfe"),label:"Change name",keyboardShortcut:[16,69],veid:120676})},twc=function(a){var b;return Object.freeze({id:"l1309",iconUrl:(b=Gv.get(a))==null?void 0:b.get("l1309"),label:"Change email address",
keyboardShortcut:[16,70],veid:135428})},uwc=function(a){var b=Hv?"Option":"Alt",c,d=Object,e=d.freeze;a=(c=Gv.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"})},vwc=function(a){return a.map(function(b){if(Hv)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)}})},ywc=function(a,b){var c=cv(yt.getInstance()),d=Object,e=d.assign;c=c+":"+a.id;var f=vwc(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("Tg`"+b);}d=$u(wwc,e.call(d,{},a,{id:c,keyboardShortcut:f,densityClass:b}));a.veid&&mv({element:d,veid:a.veid,actions:["impression","pcw-click"],componentId:"peoplekitweb"});
return new xwc(d,a)},Bwc=function(a,b,c,d){var e=$u(zwc);mv({element:e,veid:28041,actions:["impression"],componentId:"peoplekitweb"});var f=new Awc(e);a.appendChild(e);return new Iv(e,b,c,f,d)},Jwc=function(a,b){var c=a.getPrimaryTarget().getContactId(),d=a.getPrimaryTarget().getProfileId();if(c)return Cwc(Dwc(Ewc(),Fwc(c).setEdit(!0)));if(d)return Cwc(Gwc(Ewc(),(new Jv).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(g){return g.getTargetType()===1||g.getTargetType()===6}).map(function(g){return g.getDisplayValue()});a=a.getTargetList().filter(function(g){return g.getTargetType()===2||g.getTargetType()===7}).map(function(g){return g.getDisplayValue()});return Cwc(Hwc(new Kv,Iwc((new Lv).setGivenName(c).setFamilyName(b).setEmailList(f),a)))},Kwc=function(a){return(a==null?0:Mv(a).isValid())?{isValid:!1,errorMessage:"Name can't be an email address"}:
{isValid:!0}},Qwc=function(a,b,c,d){var e=jsc(b);var f=Jwc(b.result(),b.getDisplayNameWithOverrideApplied());var g=e.hovercardId;var k=e.label;var m=e.sublabel;b=e.photos;e=e.name;var r=d.description;d='<div peoplekit-id="'+Nv("bN97Pc")+'"><div class="'+Nv("peoplekitComponentsNameeditdialogImplDescription")+'">';r?(d+=Ov(r)+" ",f='To edit this contact permanently, use <a href="'+(Nv(Pv(f))+'" target="_blank" class="'+Nv("peoplekitComponentsNameeditdialogImplGoogleContactsLink")+'">Google Contacts</a>.'),
d+=f):(f='Show a different name to recipients of this message. To edit this contact permanently, use <a href="'+(Nv(Pv(f))+'" target="_blank" class="'+Nv("peoplekitComponentsNameeditdialogImplGoogleContactsLink")+'">Google Contacts</a>.'),d+=f);d+='</div><div peoplekit-id="'+Nv("PN08Xe")+'"></div></div>';f=Qv(d);g=Rv(Sv(),'<div peoplekit-id="'+Nv("tJHJj")+'" class="'+Nv("peoplekitComponentsDialogImplAvatarHeader")+'" data-hovercard-id="'+Nv(g)+'" data-name="'+Nv(e)+'"><div class="'+Nv("peoplekitComponentsDialogImplHeaderRow")+
'"><div class="'+Nv("peoplekitComponentsDialogImplLeft")+'" aria-hidden="true">');d=Qv('<div class="'+Nv("peoplekitComponentsDialogImplAvatar")+'"><div class="'+Nv("peoplekitComponentsDialogImplAvatarContainer")+'" peoplekit-id="'+Nv("d6MZcd")+'"></div></div>');g=Rv(Tv(g,d),'</div><div class="'+Nv("peoplekitComponentsDialogImplCenter")+'">');k=Qv('<div class="'+Nv("peoplekitComponentsDialogImplLabelContainer")+'"><div peoplekit-id="'+Nv("E0kCZc")+'" class="'+Nv("peoplekitComponentsDialogImplLabel")+
" "+Nv("peoplekitComponentsDialogImplLabelRow")+'" translate="no">'+Lwc(Uv(k))+"</div>"+(m?'<div class="'+Nv("peoplekitComponentsDialogImplSublabel")+" "+Nv("peoplekitComponentsDialogImplLabelRow")+'" translate="no">'+Lwc(Uv(m))+"</div>":"")+"</div>");k=Rv(Tv(g,k),"</div></div></div>");k=$u(Htc,{content:f,header:k,confirmAction:!0,labelId:void 0});a.appendChild(k);a=av(k,"Sx9Kwc");m=Ctc(av(k,"IbE0S"),{label:"Cancel"});g=g={confirmButtonText:void 0};g=g.confirmButtonText;f="";switch(gq(g)?g.toString():
g){case "Confirm":f+="Confirm";break;case "Hide":f+="Hide";break;case "Show":f+="Show";break;default:f+="Apply"}g=Ctc(av(k,"McfNlf"),{label:f});Gtc(k,c.getTheme());Etc(a,c.getStyle());g.getRoot();a=new Mwc(k,m,g);k=av(a.getRoot(),"d6MZcd");bv(k,b,36,36,c);c=av(a.getRoot(),"PN08Xe");b=$u(Nwc,{label:"Name",initialValue:e||"",id:cv(Owc)});c.appendChild(b);c=new Vv(b);return new Pwc(a,c)},Rwc=function(a,b,c,d,e,f,g,k,m,r){a={resultType:c.result().getResultType(),avatarSize:owc(f.getDensity()),resultListItemAvatarSize:Ztc(f.getDensity()),
parent:a,ariaParent:b,selection:c,selectionsState:d,actionRequestCallbacks:e,appearanceConfig:f,chipConfig:g,chipCustomization:m,isRightToLeft:r,clientConfig:k};k=Qrc(k);return jtc(ev,k).create(a)},Swc=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}}))},Vwc=function(a){return JSON.parse(a).map(function(b){var c=Twc(Wv(b.id));b.dn&&c.setDisplayName(b.dn);b.fdn&&Uwc(c,!0);return c})},Wwc=function(a){return Uwc(Twc(a.id()).setDisplayName(a.getDisplayNameOverride()),
a.getForceDisplayNameOverride())},Ywc=function(a,b,c,d,e,f,g,k,m,r){return new Xwc(a,b,c,d,e,f,g,k,m,r)},axc=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=Zwc.height;if(!f){var g=$wc();f=g;if(a.style[g]===void 0){var k=Lwa()+xj(g);a.style[k]!==
void 0&&(f=k)}Zwc.height=f}(e=f)&&(a.style[e]=0);c.body.appendChild(d);var m=b.getSelection();m&&(m.selectAllChildren(d),c.execCommand("copy"))}finally{d&&c.body.removeChild(d)}},bxc=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 ws(c,e)});axc(a.join(", "),b)},dxc=function(a,b,c,d,e,f,g,k,m,r,w){a=new Xv(a,b,c,d,e,f,g,k,m,r,w);return new cxc(a,w)},gxc=function(a,b,
c,d,e,f,g,k,m,r,w){var x=new Awc(a),D=new exc({getPrevKeyCode:function(){return gv(a)?39:37},getNextKeyCode:function(){return gv(a)?37:39},navigatePastBegin:m.navigatePastBegin,navigatePastEnd:m.navigatePastEnd});e=dxc(b,c,x,d,e,f,g,k,{chipClick:function(H,J){return D.onClick(H,new Yv(J))},chipContextMenu:function(H,J){D.onContextMenu(new Yv(J))},chipDrop:m.chipDrop||function(){},chipEditContactMethod:m.chipEditContactMethod||function(){}},r,w);D.attach(a,e.getNavigatable());return new fxc(e,b,c,
d,r,w)},hxc=function(a){switch(a){case 0:return"googleMaterialDefaultDensity";case 1:return"workspaceMaterialComfortableDensity";case 2:return"workspaceMaterialCompactDensity";default:throw Error("Tg`"+a);}},jxc=function(a){a=a.replace(/\\"/g,"%%").matchAll(ixc);return[].concat(n(a)).map(function(b){var c=b[0].replace(RegExp("%%","g"),'\\"');return{value:c,startIndex:b.index||0,length:c.length}})},kxc=function(a,b){var c=jxc(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}},lxc=function(a,b){return a.length!==b.length?!1:a.length===b.length&&a.every(function(c,d){return c.equals(b[d])})},rxc=function(a,b,c,d,e,f,g,k,m){var r=new mxc(c,new Zv(c,d,k,m),f),w=$u(nxc,{max_height:void 0});Etc(w,e.getStyle());a.appendChild(w);a=av(w,"kE8AEc");var x=$u(oxc,{multiSelectable:!0,orientation:"horizontal",isKeyboardFocusable:!1,ariaLabel:"Search Field"});a.appendChild(x);a=$u(pxc,{id:cv(qxc),ariaLabel:"",helpText:e.helpText,
shouldAutofocus:e.shouldAutofocus,height:pwc(e.getDensity()),densityClass:hxc(e.getDensity())});var D=av(a,"BbVjBd");x.appendChild(a);f=gxc(x,c,r,d,g,e,e,f,{navigatePastEnd:function(){D.focus()},chipDrop:function(){D.focus()},chipEditContactMethod:function(H){D.value=H;H=D.dispatchEvent;var J=qsc("input",D,"Event");H.call(D,J);D.focus()}},k,m);b=b(D);return new $v(w,f,a,b,c,r,d,k,e,m)},vxc=function(a,b,c,d,e,f){e.internal.getClearcut().setInterfaceType(4);e.internal.getClearcut().setComponentFlow(4);
d.setAllowContactMethodEditing($i(e.internal,5));var g=$u(sxc,{classes:"aU4VQc"});a.appendChild(g);$i(e.internal,14,!0)&&d.setStyle(1);Gtc(g,d.getTheme());mv({element:g,veid:64611,actions:["impression"],componentId:"peoplekitweb"});itc(g,b);var k=Svc(e,d.getEntryPoint()),m=new Fv,r=Mvc(c,m,d.getEntryPoint()),w=new lwc(f.intelligence);a=(new txc).setFilter(c.options_.getFilter()).setUseOriginalDisplayValue(d.getUseOriginalDisplayValue());a=rxc(g,function(x){return Gvc(g,x,c,m,r,k,d,e,w,b)},m,b,d,e,
w,a,k);f=awc(g,e.internal.getClearcut(),d.getEntryPoint());f.start(mwc);return new uxc(g,a,m,r,f)},xxc=function(a,b,c,d,e){var f=b.beginSession(function(){},e.sessionOptions||new Ev);return wxc(a,b,f,c,d,e)},wxc=function(a,b,c,d,e,f){hwc({clientConfig:e,commonConfig:d,initializeIoC:etc});return vxc(a,b,c,d,e,f)},yxc=function(a,b){return isFinite(a.fieldAffinity)?a.fieldAffinity:b&&aw(a.id)&&a.id.getType()!==9?isFinite(a.itemAffinity)?a.itemAffinity:-Infinity:-Infinity},Bxc=function(a,b,c){if(aw(a.id)||
aw(b.id)){var d=zxc.has(a.id.getType()),e=zxc.has(b.id.getType());if(d!==e)return d?-1:1;if(aw(a.id)&&aw(b.id))return Axc(a,b,c,!1)}d=yxc(a,c);c=yxc(b,c);(c=d!==c?d>c?-1:1:0)||(a=!!a.isPrimary,c=a!==!!b.isPrimary?a?-1:1:0);return c},Axc=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?Bxc(a,b,c):0},Dxc=function(a){return a?Cxc.get(a)||0:0},Hxc=function(a){switch(a.getValueCase()){case 2:return bw(a.getEmail().getValue()||
"");case 3:var b=a.getPhone();return b.getOriginalValue()&&b.getCanonicalValue()?(a=Exc(b.getOriginalValue()||""),b=Exc(b.getCanonicalValue()||""),!a.equals(b)&&a.getValue().startsWith(b.getValue())?a:b):Exc(b.getCanonicalValue()||b.getDisplayValue()||b.getOriginalValue()||"");case 4:a=lm(a,Fxc,4,cw);if(a.hasProfileId())return a=a.getProfileId()||"",new dw(8,xs(a).toLowerCase(),a);switch(Oo(a,ew)){case 2:return a=a.getEmail()||"",new dw(6,xs(a).toLowerCase(),a);case 3:return Gxc(a.getPhone()||"")}}return hw},
Lxc=function(a){return Wi(a,Ixc,5,Xi()).map(function(b){switch(b.getIdCase()){case 1:return Jxc(b.getProfileId()||"");case 2:return Kxc(b.getContactId()||"");default:return null}}).filter(Boolean)},Mxc=function(a,b){return Si(a,iw,3)&&Y(a,iw,3).getIsPlaceholder()?3:jw(b,8)?1:0},Nxc=function(a){return a&&a.hasAffinity()?Number(a.getAffinity().getValue_legacyNullable()):-Infinity},Oxc=function(a){return a.hasAffinity()?Number(a.getAffinity().getValue_legacyNullable()):-Infinity},Pxc=function(a){return!!a&&
!!jw(a,4)},Rxc=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"+Qxc(a):""},Vxc=function(a){var b=void 0;if(Y(a,iw,3)){var c;b=(c=b)!=null?c:new kw;lw(b,Sxc,Y(a,iw,3))}if(Y(a,Txc,5)){var d;b=(d=b)!=null?d:new kw;lw(b,Uxc,Y(a,Txc,5))}return b},Yxc=function(a){var b=
void 0;if(Y(a,Wxc,9)){var c;b=(c=b)!=null?c:new kw;lw(b,Xxc,Y(a,Wxc,9))}return b},$xc=function(a){var b=new mw,c=a?2:1;Zxc(b.setEventType(4),c).setToken(a);return b},byc=function(a,b){var c=new nw;c=(new mw).setLookupInfo(c);ow(c.setEventType(6),9).setItemCount(a.length).setQueryScope(ayc.get(b)||0);return c},cyc=function(){var a=new mw;ow(a.setEventType(6),10);return a},dyc=function(){var a=new mw;ow(a.setEventType(6),2);return a},eyc=function(){var a=new mw;ow(a.setEventType(6),13);return a},fyc=
function(a,b){var c=new mw;ow(c.setEventType(6),6).setQueryLength(a.length).setQueryScope(ayc.get(b)||0);return c},gyc=function(a){var b=new mw;ow(b.setEventType(6),5).setQueryScope(ayc.get(a)||0);return b},hyc=function(a,b){switch(a){case 8:case 3:case 17:return(new pw).setProfileId(b);case 1:case 6:return(new pw).setEmail(b);case 7:case 2:return(new pw).setPhone(b);case 13:case 14:return a=new pw,Vo(a,4,qw,b);case 4:case 9:return(new pw).setContactId(b);default:return null}},kyc=function(a){return((a=
Wi(a,iyc,2,Xi()).find(function(b){return rw(b,1)===1}))?jyc.get(rw(a,2)):0)||0},sw=function(a){return(a||"").trim()},oyc=function(a,b){if(b.hasAffinity()){var c=a.setFieldLoggingId;var d=b.getAffinity();d=hva(um(d,1,void 0,tw,oc));c.call(a,ra.atob(sw(d)))}if(b.hasName()){var e=b.getName();c=a.setName;d=(new lyc).setDisplayName(e.getValue()).setGivenName(e.getGivenName()).setFamilyName(e.getFamilyName());var f=d.setSourceType;a:switch(e.getSourceType()){case 1:e=3;break a;case 2:e=4;break a;default:e=
0}c.call(a,f.call(d,e))}b.hasPhoto()&&(b=b.getPhoto(),a.setPhoto((new myc).setUrl(b.getUrl()).setGlyph(b.getGlyph()).setType(nyc.get(b.getType())||0)))},qyc=function(a,b){if(b.hasProfileId())switch(Oo(b,ew)){case 2:var c=sw(b.getEmail());return pyc(uw(a.id).setValue(sw(b.getProfileId())),(new vw).setType(1).setValue(c));case 3:return c=sw(b.getPhone()),pyc(uw(a.id).setValue(sw(b.getProfileId())),(new vw).setType(2).setValue(c));default:return b=sw(b.getProfileId()),uw(a.id).setValue(b)}switch(Oo(b,
ew)){case 2:return b=sw(b.getEmail()),pyc(uw(a.id).setValue(b),(new vw).setType(1).setValue(b));case 3:return b=sw(b.getPhone()),pyc(uw(a.id).setValue(b),(new vw).setType(2).setValue(b));default:return b=sw(b.getProfileId()),uw(a.id).setValue(b)}},tyc=function(a,b){var c=uw(a.id).setIsMe(!!a.isMe);a.containerIds&&(c.sourceIds_=a.containerIds||[]);b&&oyc(c,b);a.group&&((b=Wi(a.group,ryc,6,Xi()).find(function(d){return Cr(d,1,syc)!=null}))?c.setValue(sw(ww(b,1,syc))):a.group.hasGroupId()&&c.setValue(sw(a.group.getGroupId())));
a.targetExtendedData&&c.setExtendedData(a.targetExtendedData);a.target=c},wyc=function(a){return function c(){var d,e;return uyc(c,function(f){switch(f.nextAddress){case 1:Xd(f,2),d=0;case 4:if(!(d<a)){f.jumpTo(2);break}e=vyc;return z(f,d,7);case 7:e(f.yieldResult);d++;f.jumpTo(4);break;case 2:Wd(f),Yd(f,0)}})}()},yyc=function(a){return new xyc(a)},Byc=function(a){if(a.getTargetType()===8){var b=a.getOriginatingField();if(b&&(b=b.getType(),b=zyc.get(b)))return b}return(b=Ayc.get(a.getTargetType()))?
b:aw(a.getId())?8:0},Dyc=function(a,b,c){var d=new xw,e=new yw;hj(d,yw,2,e);e.setProvenance(b);b=new zw;hj(d,zw,1,b);jj(b,9,c===1);b.setProfileId(a.getProfileId()||null);b.setContactId(a.getContactId()||null);c=Byc(a)===8?8:a.getProfileId()?3:4;Yn(b,8,c);c=null;a.getTargetType()===8&&(e=a.getOriginatingField())&&zyc.has(e.getType())&&(c=e.getValue());c||(c=a.getValue());c&&b.setFieldValue(c);aw(a.getId())||b.setName(a.getName()?a.getName().getDisplayName():null);c=Byc(a);Yn(b,7,c);b.setFieldLoggingId(a.getFieldLoggingId()||
null);b.setPersonLoggingId(a.getPersonLoggingId()||null);b.setIsPlaceholder(a.getDataSource()===3);Op(b,7)===8&&b.setGroupId(a.getId().getValue());return new Cyc(a,d)},Fyc=function(a){a=Eyc.indexOf(a.provenance);return a<0?Eyc.length:a},Gyc=function(a){return a.containerIds&&a.containerIds.some(function(b){return b.getType()===3})},Hyc=function(a){var b;return(new Set(((b=a.containerIds)!=null?b:[]).map(String))).size},Jyc=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=Hgb(d,new Iyc(f,e))}return[c,d]})));return a},Myc=function(a){return $i(a,21)?new Kyc:Lyc},Nyc=function(a){return a!==0&&a!==12},Pyc=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&&Oyc(b,d.substring(c+
1));a=a.substring(0,c+1)}if(a==="@")return b;Oyc(b,a);return b},Oyc=function(a,b){a.push(b);var c=b.length+1;Qyc.lastIndex=0;for(var d=Qyc.exec(b);d&&d.index<c;d=Qyc.exec(b))a.push(b.substring(Number(Qyc.lastIndex)))},Aw=function(a){a=Ryc(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=Syc[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))}b.length>0&&(b.push(a.substr(c)),a=b.join(""));return a.replace(Tyc,"").toUpperCase().toLowerCase()},Vyc=function(a){a=Array.from(a).flatMap(function(f){return(f||"").split(Uyc)}).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=Aw(c.value);c=l(Pyc(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})},Wyc=function(a){return a.substring(a.indexOf("@")+1)},Xyc=function(a){return a.substring(0,a.indexOf("@")+1)},$yc=function(a,b){a=a.match(Yyc);b=bw(b);return a&&a.length&&(a=a[0]||"")&&!b.equals(bw(a.replace(Zyc,"")))?!0:!1},azc=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)}}},ezc=function(a,
b,c,d){b=bzc(a,b).map(function(e){var f=l(e);e=f.next().value;f=f.next().value;return new czc(e,f)});c=bzc(a,c).map(function(e){var f=l(e);e=f.next().value;f=f.next().value;return new czc(e,f)});a=bzc(a,d).map(function(e){var f=l(e);e=f.next().value;f=f.next().value;return new czc(e,f)});return new dzc(b,c,a)},fzc=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}},gzc=
function(a){return a.reduce(function(b,c){var d=fzc(c);if(b.has(d)){var e;(e=b.get(d))==null||e.push(c)}else b.set(d,[c]);return b},new Map)},hzc=function(a,b){b=b===void 0?new Bw: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}},jzc=function(a,b){return!a||a instanceof izc?a:new izc(a,b)},lzc=function(a){var b=new kzc,c=b.setQueryId(rn(Cw(a,3))).setSelectionId(rn(Cw(a,
4))),d=rn(Cw(a,5));Nn(c,3,d).setInstanceId(a.getInstanceIdOrUndefined()).setAffinityVersion(a.getAffinityVersionOrUndefined());return b},nzc=function(a){var b=new mzc,c;if(a=(c=Y(a,Dw,18))==null?void 0:c.getSessionState())c=lzc(a),hj(b,kzc,2,c);return b},pzc=function(a){return ozc.get(a)||0},szc=function(a,b){var c=qzc(rzc("PeopleStore").setLogSource(Ri(a,4,574)).setApplication(a.getSocialApplication()).setEnvironment(b.getPeopleApiEnv()).setVersion("1004").setBaselineCl(839130764).setEnableClearcut(a.getEnableClearcut()),
[].concat(n(b.getExperiments().getExperimentIdsList()),n(Ew?Ew.getExperimentIds():[]))).setClientAgent(2);b.getClearcutUrl()&&c.setClearcutUrl(b.getClearcutUrl());if(a=Wi(a,Fw,5,Xi()).find(function(d){return d.getEntryPoint()===0}))c.setEventSource(Op(a,4)),c.setEventSourceId(Op(a,4));return c},uzc=function(a,b){return new tzc(a,b)},vzc=function(a){Si(a,Gw,12)?(a=Y(a,Gw,12),a=Y(a,Fw,2)):a=Y(a,Fw,10);return a||new Fw},wzc=function(a){Si(a,Gw,12)?(a=Y(a,Gw,12),a=Y(a,Fw,3)):a=Y(a,Fw,10);return a||new Fw},
xzc=function(a){return a.filter(function(b){var c,d=(c=yv(b))==null?void 0:Ri(c,4),e;return((e=b.getInfo())==null?void 0:Ri(e,8))!==3||d!==2&&d!==1?!0:!1})},zzc=function(a){return a.filter(function(b){var c;return(b=(c=b.getInfo())==null?void 0:c.getFieldType())&&yzc.has(b)?!1:!0})},Azc=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)},Bzc=function(a){if(!a.hasSessionState())return"";a=a.getSessionState();return Hn(a,3)+":"+Hn(a,4)+":"+
Hn(a,5)+":"+a.getInstanceId()},Czc=function(a){return Si(a,yw,2)?yv(a).getContext()||0:0},Dzc=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?Hn(d,3)+"-"+Hn(d,4)+"-"+Hn(d,5)+"-"+d.getInstanceId():"";b.has(d)?b.get(d).push(c):b.set(d,[c])}return Array.from(b.values())},Hw=function(a,b,c,d){d=d===void 0?!1:d;a=a.filter(function(g){return!$i(g,4)});if(d){d=l(a);for(var e=d.next();!e.done;e=d.next())jj(e.value,4,!0)}if(c)for(d=a.filter(function(g){return g&&
!g.hasSessionState()}),d=l(d),e=d.next();!e.done;e=d.next())e.value.setSessionState(c.clone());a=Dzc(a);c=[];a=l(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=d.find(function(g){return g&&g.hasSessionState()})){e=e.getSessionState();var f=new Ezc;f.setSessionState(e);f.setEventType(b);ij(f,3,d);f.setEventSources(Y(e,Fw,10));c.push(f)}return c},Fzc=function(a){var b;a=a.getMetadata();a.hasCacheState()&&(a=a.getCacheState(),a.hasSource()&&(b=a.getSource()));return b||new Iw},Jzc=function(a,b,
c){var d=Gzc(b.getTargetType(),b.getValue()),e=[],f=e.concat;var g=Xm(b,5,Xi());g=n(g.map(Jxc));var k=n(Xm(b,6,Xi()).map(Kxc));var m=Xm(b,13,Xi());e=f.call(e,g,k,n(m.map(Hzc)));Izc.includes(d.getType())&&e.push(d);return{id:d,containerIds:e,dataSource:Xm(b,6,Xi()).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}},Kzc=function(a){return(a||"").trim()},Nzc=function(a){var b=a.resultData,c=a.targetData,d=uw(a.id).setDataSource(a.dataSource||0).setIsMe(!!a.isMe);a.containerIds&&(d.sourceIds_=a.containerIds||[]);ym(b,1)&&d.setResultType(b.getResultType());c.hasValue()&&d.setValue(Kzc(c.getValue()));c.hasCanonicalValue()&&d.setCanonicalValue(Kzc(c.getCanonicalValue()));c.hasDescription()&&d.setDescription(c.getDescription());if(c.hasName()){var e=c.getName();
d.setName((new lyc).setDisplayName(e.getDisplayName()).setGivenName(e.getGivenName()).setFamilyName(e.getFamilyName()).setSourceType(e.getSourceType()))}c.hasPhoto()&&(e=c.getPhoto(),d.setPhoto((new myc).setUrl(e.getUrl()).setType(e.getType()).setSourceType(e.getSourceType()).setGlyph(e.getGlyph())));if(Bn(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()||
"");ym(c,10)&&d.setOrgState(c.getOrgState());c.hasDataSource()&&d.setDataSource(c.getDataSource());c.getTagList().length&&d.setTagList(c.getTagList().map(function(g){return(new Jw).setAltText(g.getAltText()).setIconUrl(g.getIconUrl())}));c.hasExtendedData()&&d.setExtendedData(c.getExtendedData());Si(c,Kw,9)&&(a=c.getEmailSecurityInfo(),d.setEmailSecurityInfo(Lzc(a.getCertificateStatus(),qn(a.getCertificateExpirySec()),a.getEncryptionSupport()==4||a.getEncryptionSupport()==2)));Si(c,Lw,17)&&(c=c.getReachabilityInfo(),
d.setReachabilityInfo(new Mzc(c.getReachabilityStatus(),c.getClientData())));return d},Pzc=function(a){a.cacheConfigurators_.push(new Ozc);return a},Qzc=function(){var a=window.gapi;if(!a)return Promise.reject(Error("lh"));if(a.client&&a.client.load)return Promise.resolve(a);nn("loading gapi client");return new Promise(function(b,c){a.load("client",{callback:function(){nn("gapi client has finished loading");b(a)},onerror:c})})},Rzc=function(a,b){var c={};return Gh("a",(c.href=b,c.target="_blank",
c.rel="noopener noreferrer nofollow",c),a)},Uzc=function(){return q(Zu).getEnvironmentType()==="QA"?Szc:Tzc},Xzc=function(){return q(Zu).getEnvironmentType()==="QA"?Vzc:Wzc},$zc=function(){return q(Zu).getEnvironmentType()==="QA"?Yzc:Zzc},aAc=Object.create,bAc=Object.defineProperty,cAc=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");
},da=cAc(this),dAc="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");da.BigInt64Array&&(dAc.push("BigInt64"),dAc.push("BigUint64"));
var fAc=function(a,b){if(b)for(var c=0;c<dAc.length;c++)eAc(dAc[c]+"Array.prototype."+a,b)},Mw=function(a,b){b&&eAc(a,b)},eAc=function(a,b){var c=da;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))return;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&b!=null&&bAc(c,a,{configurable:!0,writable:!0,value:b})},gAc=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=aAc(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),Nw=Object.setPrototypeOf,Z=function(a,b){a.prototype=aAc(b.prototype);a.prototype.constructor=a;Nw(a,b);a.superClass_=b.prototype},hAc=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},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:hAc(a)};throw Error("b`"+String(a));},yj=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c},n=function(a){return a instanceof Array?a:yj(l(a))},Pw=function(a){return Ow(a,a)},Ow=function(a,b){a.raw=b;Object.freeze&&(Object.freeze(a),Object.freeze(b));return a},Qw=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},iAc=Object.assign;
Mw("Object.assign",function(a){return a||iAc});var Rw=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};Rw.prototype.start_=function(){if(this.isRunning_)throw new TypeError("d");this.isRunning_=!0};Rw.prototype.next_=function(a){this.yieldResult=a};
Rw.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.nextAddress=this.catchAddress_||this.finallyAddress_};Rw.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};var z=function(a,b,c){a.nextAddress=c;return{value:b}};Rw.prototype.jumpTo=function(a){this.nextAddress=a};
var $d=function(a){a.nextAddress=0},Vd=function(a,b,c){a.catchAddress_=b;c!=void 0&&(a.finallyAddress_=c)},Xd=function(a,b){a.catchAddress_=0;a.finallyAddress_=b||0},bk=function(a,b){a.nextAddress=b;a.catchAddress_=0},Zd=function(a){a.catchAddress_=0;var b=a.abruptCompletion_.exception;a.abruptCompletion_=null;return b},Wd=function(a,b,c,d){d?a.finallyContexts_[d]=a.abruptCompletion_:a.finallyContexts_=[a.abruptCompletion_];a.catchAddress_=b||0;a.finallyAddress_=c||0},Yd=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},jAc=function(a){this.context_=new Rw;this.program_=a};
jAc.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return kAc(this,this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return lAc(this)};var mAc=function(a,b){a.context_.start_();var c=a.context_.yieldAllIterator_;if(c)return kAc(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.context_.return);a.context_.return(b);return lAc(a)};
jAc.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return kAc(this,this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return lAc(this)};
var kAc=function(a,b,c,d){try{var e=b.call(a.context_.yieldAllIterator_,c);if(!(e instanceof Object))throw new TypeError("c`"+e);if(!e.done)return a.context_.isRunning_=!1,e;var f=e.value}catch(g){return a.context_.yieldAllIterator_=null,a.context_.throw_(g),lAc(a)}a.context_.yieldAllIterator_=null;d.call(a.context_,f);return lAc(a)},lAc=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}},nAc=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return mAc(a,b)};this[Symbol.iterator]=function(){return this}},uyc=function(a,b){b=new nAc(new jAc(b));Nw&&a.prototype&&Nw(b,a.prototype);
return b},oAc=function(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})},y=function(a){return oAc(new nAc(new jAc(a)))};
Mw("Symbol",function(a){if(a)return a;var b=function(f,g){this.$jscomp$symbol$id_=f;bAc(this,"description",{configurable:!0,writable:!0,value:g})};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("e");return new b(c+(f||"")+"_"+d++,f)};return e});
Mw("Symbol.iterator",function(a){if(a)return a;a=Symbol("f");bAc(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return pAc(hAc(this))}});return a});Mw("Symbol.asyncIterator",function(a){return a?a:Symbol("g")});Mw("Symbol.toStringTag",function(a){return a?a:Symbol("h")});
var pAc=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a},Lha=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))})},
Yc=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b},vyc=function(a){return a};Mw("globalThis",function(a){return a||da});Mw("Reflect",function(a){return a?a:{}});Mw("Reflect.construct",function(){return gAc});Mw("Reflect.setPrototypeOf",function(a){return a?a:Nw?function(b,c){try{return Nw(b,c),!0}catch(d){return!1}}:null});
Mw("Promise",function(a){function b(){this.batch_=null}function c(g){return g instanceof e?g:new e(function(k){k(g)})}if(a)return a;b.prototype.asyncExecute=function(g){if(this.batch_==null){this.batch_=[];var k=this;this.asyncExecuteFunction(function(){k.executeBatch_()})}this.batch_.push(g)};var d=da.setTimeout;b.prototype.asyncExecuteFunction=function(g){d(g,0)};b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var g=this.batch_;this.batch_=[];for(var k=0;k<g.length;++k){var m=
g[k];g[k]=null;try{m()}catch(r){this.asyncThrow_(r)}}}this.batch_=null};b.prototype.asyncThrow_=function(g){this.asyncExecuteFunction(function(){throw g;})};var e=function(g){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var k=this.createResolveAndReject_();try{g(k.resolve,k.reject)}catch(m){k.reject(m)}};e.prototype.createResolveAndReject_=function(){function g(r){return function(w){m||(m=!0,r.call(k,w))}}var k=this,m=!1;return{resolve:g(this.resolveTo_),
reject:g(this.reject_)}};e.prototype.resolveTo_=function(g){if(g===this)this.reject_(new TypeError("j"));else if(g instanceof e)this.settleSameAsPromise_(g);else{a:switch(typeof g){case "object":var k=g!=null;break a;case "function":k=!0;break a;default:k=!1}k?this.resolveToNonPromiseObj_(g):this.fulfill_(g)}};e.prototype.resolveToNonPromiseObj_=function(g){var k=void 0;try{k=g.then}catch(m){this.reject_(m);return}typeof k=="function"?this.settleSameAsThenable_(k,g):this.fulfill_(g)};e.prototype.reject_=
function(g){this.settle_(2,g)};e.prototype.fulfill_=function(g){this.settle_(1,g)};e.prototype.settle_=function(g,k){if(this.state_!=0)throw Error("k`"+g+"`"+k+"`"+this.state_);this.state_=g;this.result_=k;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};e.prototype.scheduleUnhandledRejectionCheck_=function(){var g=this;d(function(){if(g.notifyUnhandledRejection_()){var k=da.console;typeof k!=="undefined"&&k.error(g.result_)}},1)};e.prototype.notifyUnhandledRejection_=
function(){if(this.isRejectionHandled_)return!1;var g=da.CustomEvent,k=da.Event,m=da.dispatchEvent;if(typeof m==="undefined")return!0;typeof g==="function"?g=new g("unhandledrejection",{cancelable:!0}):typeof k==="function"?g=new k("unhandledrejection",{cancelable:!0}):(g=da.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.result_;return m(g)};e.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var g=
0;g<this.onSettledCallbacks_.length;++g)f.asyncExecute(this.onSettledCallbacks_[g]);this.onSettledCallbacks_=null}};var f=new b;e.prototype.settleSameAsPromise_=function(g){var k=this.createResolveAndReject_();g.callWhenSettled_(k.resolve,k.reject)};e.prototype.settleSameAsThenable_=function(g,k){var m=this.createResolveAndReject_();try{g.call(k,m.resolve,m.reject)}catch(r){m.reject(r)}};e.prototype.then=function(g,k){function m(D,H){return typeof D=="function"?function(J){try{r(D(J))}catch(O){w(O)}}:
H}var r,w,x=new e(function(D,H){r=D;w=H});this.callWhenSettled_(m(g,r),m(k,w));return x};e.prototype.catch=function(g){return this.then(void 0,g)};e.prototype.callWhenSettled_=function(g,k){function m(){switch(r.state_){case 1:g(r.result_);break;case 2:k(r.result_);break;default:throw Error("l`"+r.state_);}}var r=this;this.onSettledCallbacks_==null?f.asyncExecute(m):this.onSettledCallbacks_.push(m);this.isRejectionHandled_=!0};e.resolve=c;e.reject=function(g){return new e(function(k,m){m(g)})};e.race=
function(g){return new e(function(k,m){for(var r=l(g),w=r.next();!w.done;w=r.next())c(w.value).callWhenSettled_(k,m)})};e.all=function(g){var k=l(g),m=k.next();return m.done?c([]):new e(function(r,w){function x(J){return function(O){D[J]=O;H--;H==0&&r(D)}}var D=[],H=0;do D.push(void 0),H++,c(m.value).callWhenSettled_(x(D.length-1),w),m=k.next();while(!m.done)})};return e});var Sw=function(a,b,c){if(a==null)throw new TypeError("m`"+c);if(b instanceof RegExp)throw new TypeError("n`"+c);return a+""};
Mw("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Sw(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}});Mw("Object.setPrototypeOf",function(a){return a||Nw});Mw("Symbol.dispose",function(a){return a?a:Symbol("o")});Mw("Array.prototype.keys",function(a){return a?a:function(){return this[Symbol.iterator]()}});Mw("Object.getOwnPropertySymbols",function(a){return a?a:function(){return[]}});
var qAc=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}};Mw("Array.prototype.find",function(a){return a?a:function(b,c){return qAc(this,b,c).v}});
Mw("WeakMap",function(a){function b(){}function c(m){var r=typeof m;return r==="object"&&m!==null||r==="function"}function d(m){if(!Qw(m,f)){var r=new b;bAc(m,f,{value:r})}}function e(m){var r=Object[m];r&&(Object[m]=function(w){if(w instanceof b)return w;Object.isExtensible(w)&&d(w);return r(w)})}if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),r=Object.seal({}),w=new a([[m,2],[r,3]]);if(w.get(m)!=2||w.get(r)!=3)return!1;w.delete(m);w.set(r,4);return!w.has(m)&&w.get(r)==4}catch(x){return!1}}())return a;
var f="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var g=0,k=function(m){this.id_=(g+=Math.random()+1).toString();if(m){m=l(m);for(var r;!(r=m.next()).done;)r=r.value,this.set(r[0],r[1])}};k.prototype.set=function(m,r){if(!c(m))throw Error("p");d(m);if(!Qw(m,f))throw Error("q`"+m);m[f][this.id_]=r;return this};k.prototype.get=function(m){return c(m)&&Qw(m,f)?m[f][this.id_]:void 0};k.prototype.has=function(m){return c(m)&&Qw(m,f)&&Qw(m[f],this.id_)};k.prototype.delete=
function(m){return c(m)&&Qw(m,f)&&Qw(m[f],this.id_)?delete m[f][this.id_]:!1};return k});
Mw("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}),m=new a(l([[k,"s"]]));if(m.get(k)!="s"||m.size!=1||m.get({x:4})||m.set({x:4},"t")!=m||m.size!=2)return!1;var r=m.entries(),w=r.next();if(w.done||w.value[0]!=k||w.value[1]!="s")return!1;w=r.next();return w.done||w.value[0].x!=4||w.value[1]!="t"||!r.next().done?!1:!0}catch(x){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 m;!(m=k.next()).done;)m=m.value,this.set(m[0],m[1])}};c.prototype.set=function(k,m){k=k===0?0:k;var r=d(this,k);r.list||(r.list=this[0][r.id]=[]);r.entry?r.entry.value=m:(r.entry={next:this[1],previous:this[1].previous,head:this[1],key:k,value:m},r.list.push(r.entry),this[1].previous.next=r.entry,this[1].previous=r.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,m){for(var r=this.entries(),w;!(w=r.next()).done;)w=w.value,k.call(m,w[1],w[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(k,m){var r=m&&typeof m;r=="object"||r=="function"?b.has(m)?r=b.get(m):(r=""+ ++g,b.set(m,r)):r="p_"+m;var w=k[0][r];if(w&&Qw(k[0],r))for(k=0;k<w.length;k++){var x=w[k];if(m!==m&&x.key!==x.key||m===x.key)return{id:r,list:w,index:k,entry:x}}return{id:r,list:w,index:-1,entry:void 0}},e=function(k,
m){var r=k[1];return pAc(function(){if(r){for(;r.head!=k[1];)r=r.previous;for(;r.next!=r.head;)return r=r.next,{done:!1,value:m(r)};r=null}return{done:!0,value:void 0}})},f=function(){var k={};return k.previous=k.next=k.head=k},g=0;return c});
Mw("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(g){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});Mw("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Qw(b,d)&&c.push(b[d]);return c}});Mw("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}});
Mw("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}});Mw("String.prototype.includes",function(a){return a?a:function(b,c){return Sw(this,b,"includes").indexOf(b,c||0)!==-1}});Mw("Math.log10",function(a){return a?a:function(b){return Math.log(b)/Math.LN10}});
Mw("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 g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});Mw("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Qw(b,d)&&c.push([d,b[d]]);return c}});
Mw("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}});Mw("Number.EPSILON",function(){return 2.220446049250313E-16});Mw("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});Mw("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});Mw("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
Mw("Number.isSafeInteger",function(a){return a?a:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}});Mw("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Sw(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}});Mw("Array.prototype.entries",function(a){return a?a:function(){return this[Symbol.iterator]()}});
Mw("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}});Mw("Number.isNaN",function(a){return a?a:function(b){return typeof b==="number"&&isNaN(b)}});Mw("Array.prototype.values",function(a){return a?a:function(){return this[Symbol.iterator]()}});
Mw("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}});fAc("fill",function(a){return a?a:Array.prototype.fill});
Mw("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}});
Mw("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)}});
Mw("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}});Mw("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)}});
Mw("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}});Mw("Array.prototype.findIndex",function(a){return a?a:function(b,c){return qAc(this,b,c).i}});Mw("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}});
Mw("String.prototype.repeat",function(a){return a?a:function(b){var c=Sw(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}});Mw("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;})})}});
Mw("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 g=c.exec(d);if(!g)return e=!0,{value:void 0,done:!0};g[0]===""&&(c.lastIndex+=1);return{value:g,done:!1}}};f[Symbol.iterator]=function(){return f};return f}});var rAc=function(a){a=Math.trunc(a)||0;a<0&&(a+=this.length);if(!(a<0||a>=this.length))return this[a]};
Mw("Array.prototype.at",function(a){return a?a:rAc});fAc("at",function(a){return a?a:rAc});Mw("String.prototype.at",function(a){return a?a:rAc});Mw("Number.parseInt",function(a){return a||parseInt});Mw("Reflect.isExtensible",function(a){return a?a:Object.isExtensible});Mw("Reflect.getOwnPropertyDescriptor",function(a){return a||Object.getOwnPropertyDescriptor});Mw("Reflect.getPrototypeOf",function(a){return a||Object.getPrototypeOf});
var sAc=function(a,b){for(;a;){var c=Reflect.getOwnPropertyDescriptor(a,b);if(c)return c;a=Reflect.getPrototypeOf(a)}};Mw("Reflect.set",function(a){return a?a:function(b,c,d,e){var f=sAc(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}});Mw("Reflect.get",function(a){return a?a:function(b,c,d){if(arguments.length<=2)return b[c];var e=sAc(b,c);if(e)return e.get?e.get.call(d):e.value}});
Mw("String.prototype.codePointAt",function(a){return a?a:function(b){var c=Sw(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}}});
Mw("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}});var tAc=function(a,b){a=a!==void 0?String(a):" ";return b>0&&a?a.repeat(Math.ceil(b/a.length)).substring(0,b):""};
Mw("String.prototype.padEnd",function(a){return a?a:function(b,c){var d=Sw(this,null,"padStart");return d+tAc(c,b-d.length)}});Mw("Set.prototype.difference",function(a){return a?a:function(b){uAc(this);vAc(b);var c=wAc(this,b);b=new Set(this);var d=c.smallerSetIterator;c=c.largerSet;for(var e=d.next();!e.done;)c.has(e.value)&&b.delete(e.value),e=d.next();return b}});
Mw("Set.prototype.intersection",function(a){return a?a:function(b){uAc(this);vAc(b);var c=new Set,d=wAc(this,b);b=d.smallerSetIterator;d=d.largerSet;for(var e=b.next();!e.done;)d.has(e.value)&&c.add(e.value),e=b.next();return c}});
var vAc=function(a){if(typeof a!=="object"||a===null||typeof a.size!=="number"||a.size<0||typeof a.keys!=="function"||typeof a.has!=="function")throw new TypeError("x");},wAc=function(a,b){if(a.size<=b.size)a={smallerSetIterator:a.keys(),largerSet:b};else{b=b.keys();if(typeof b!=="object"||b===null||typeof b.next!=="function")throw new TypeError("y");a={smallerSetIterator:b,largerSet:a}}return a},uAc=function(a){if(!(a instanceof Set))throw new TypeError("z");};
Mw("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Sw(this,null,"padStart");return tAc(c,b-d.length)+d}});
Mw("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)}});Mw("Array.of",function(a){return a?a:function(b){return Array.from(arguments)}});var xAc=xAc||{},ra=this||self,Tw=function(a,b){var c=sv("WIZ_global_data.oxN3nb");a=c&&c[a];return a!=null?a:b},Uw=ra._F_toggles_default_b||[],sv=function(a,b){a=a.split(".");b=b||ra;for(var c=0;c<a.length;c++)if(b=b[a[c]],b==null)return null;return b},Gca=function(a){var b=typeof a;return b!="object"?b:a?Array.isArray(a)?"array":b:"null"},Na=function(a){var b=Gca(a);return b=="array"||b=="object"&&typeof a.length=="number"},gq=function(a){var b=typeof a;return b=="object"&&a!=null||b=="function"},
Owa=function(a){return Object.prototype.hasOwnProperty.call(a,yAc)&&a[yAc]||(a[yAc]=++zAc)},yAc="closure_uid_"+(Math.random()*1E9>>>0),zAc=0,AAc=function(a,b,c){return a.call.apply(a.bind,arguments)},Dj=function(a,b,c){Dj=AAc;return Dj.apply(null,arguments)},et=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)}},BAc=function(a){(0,eval)(a)},Vw=function(a,b){a=a.split(".");for(var c=ra,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},Wb=function(a){return a},Ww=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 g=Array(arguments.length-2),k=2;k<arguments.length;k++)g[k-2]=arguments[k];return b.prototype[e].apply(d,g)}};var Xw=function(a,b,c,d){var e=arguments.length,f=e<3?b:d===null?d=Object.getOwnPropertyDescriptor(b,c):d,g;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")f=Reflect.decorate(a,b,c,d);else for(var k=a.length-1;k>=0;k--)if(g=a[k])f=(e<3?g(f):e>3?g(b,c,f):g(b,c))||f;e>3&&f&&Object.defineProperty(b,c,f)},CAc=function(a){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata("design:type",a)};var DAc={agentId:"a2a:duckie_default",agentDisplayName:"Default Duckie",agentDescription:"The default Duckie you know and love."},EAc={agentDisplayName:"Default Duckie",agentDescription:"The default Duckie you know and love."},FAc={agentId:"a2a:duckie_default",modelId:"gemini-for-google-2.5-pro",agentDisplayName:"Big Bird",agentDescription:"The default Duckie you know and love, on a larger model.",iconName:"spark"},Yw={agentId:"duckie_on_goose",modelId:"gemini-for-google-2.5-pro",agentDisplayName:"Big Bird",
agentDescription:"The default Duckie you know and love, on a larger model.",iconName:"spark"},Zw={agentId:"duckie_dynamic",modelId:"gemini_flash-2.5-x3",agentDisplayName:"Agentic Search",agentDescription:"Experimental Duckie with function calling enabled.",showExperimentalIcon:!0,iconName:"search_spark"},$w={agentId:"duckie_dynamic",modelId:"gemini_pro-2.5-prev-x3",agentDisplayName:"Dynamic RAG",agentDescription:"Experimental Duckie with function calling enabled.",showExperimentalIcon:!0,iconName:"search_spark"},
GAc={agentId:"nexus_experimental_dynamic",modelId:"gemini_flash-2.5",agentDisplayName:"Nexus",agentDescription:"Experimental Duckie with Nexus integration."},HAc={agentId:"spanner_experimental_dynamic",modelId:"gemini_flash-2.5-x3",agentDisplayName:"Spanner",agentDescription:"Experimental Duckie with Spanner integration."},IAc=[DAc,EAc,Zw,{agentId:"nexus_dynamic",modelId:"gemini_flash-2.5",agentDisplayName:"Nexus",agentDescription:"Duckie with Nexus integration."},GAc,{agentId:"search_debug_dynamic",
modelId:"gemini_flash-2.5-x3",agentDisplayName:"Search Debug",agentDescription:"Duckie with Search Debug (go/search-applied-ai) integration."},HAc,{agentId:"quil_dynamic",modelId:"gemini_flash-2.5-x3",agentDisplayName:"Quil",agentDescription:"Duckie with QuIL (go/quil) integration."},{agentId:"datanexus_dynamic",modelId:"gemini_flash-2.5-x3",agentDisplayName:"DataNexus",agentDescription:"Duckie with DataNexus integration."},{agentId:"a2a:devintel",modelId:"gemini-for-google-2.5-pro",agentDisplayName:"Fieldglass Agent",
agentDescription:"Duckie with DevIntel integration."},{agentId:"a2a:datanexus_gdm",modelId:"gemini-for-google-2.5-pro",agentDisplayName:"DataNexus GDM",agentDescription:"Duckie with DataNexus GDM integration."},{agentId:"a2a:xmanager",modelId:"gemini-for-google-2.5-flash",agentDisplayName:"XManager",agentDescription:"Duckie with XManager integration."},{agentId:"a2a:xborg",modelId:"gemini-for-google-2.5-pro",agentDisplayName:"XBorg",agentDescription:"Duckie with XBorg integration."},{agentId:"a2a:buganizer_agent",
agentDisplayName:"Buganizer Agent",agentDescription:"Duckie with Buganizer integration."},{agentId:"a2a:triage_agent",agentDisplayName:"Triage Agent",agentDescription:"Duckie with Buganizer issue triage integration."},{agentId:"a2a:taskflow_agent",modelId:"gemini-for-google-2.5-pro",agentDisplayName:"TaskFlow Agent",agentDescription:"Duckie with TaskFlow integration."},{agentId:"a2a:mendel_insights_agent",modelId:"gemini-for-google-2.5-pro",agentDisplayName:"Mendel Insights Agent",agentDescription:"Mendel Insights Agent powered by Duckie."}];var JAc={agentId:"a2a:gpp",modelId:"gemini-2.5-flash",agentDisplayName:"Production Agent",agentDescription:"Production Agent"},KAc={agentId:"a2a:gpp_experimental",modelId:"gemini-2.5-flash",agentDisplayName:"Production Agent",agentDescription:"Production Agent"};var aa=globalThis;var kaa=Object.getOwnPropertyDescriptor,paa=Object.defineProperty,taa=Object.getPrototypeOf,Haa=Object.create,Iaa=Array.prototype.slice,Oaa=ca("addEventListener"),Paa=ca("removeEventListener"),xaa=ca(""),LAc=typeof window!=="undefined",MAc=LAc?window:void 0,fa=LAc&&MAc||globalThis,NAc=typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope,Aaa=!("nw"in fa)&&typeof fa.process!=="undefined"&&fa.process.toString()==="[object process]",Jaa=!Aaa&&!NAc&&!(!LAc||!MAc.HTMLElement),Kaa=typeof fa.process!==
"undefined"&&fa.process.toString()==="[object process]"&&!NAc&&!(!LAc||!MAc.HTMLElement),naa={},OAc=ca("enable_beforeunload"),oaa=function(a){if(a=a||fa.event){var b=naa[a.type];b||(b=naa[a.type]=ca("ON_PROPERTY"+a.type));var c=this||a.target||fa;b=c[b];Jaa&&c===MAc&&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"&&fa[OAc]&&typeof c==="string"?a.returnValue=c:c==void 0||c||a.preventDefault());
return c}},ha=ca("originalInstance");var Caa={useG:!0},ka={},Baa={},Eaa=new RegExp("^"+xaa+"(\\w+)(true|false)$"),zaa=ca("propagationStopped");var Naa=ca("zoneTask");Ww(oa,Error);oa.prototype.name="CustomError";var PAc;Ww(Saa,oa);Saa.prototype.name="AssertionError";var Xaa=void 0,Vaa,Waa,QAc=typeof TextDecoder!=="undefined",aba,$aa=typeof String.prototype.isWellFormed==="function",Zaa=typeof TextEncoder!=="undefined";var Aa=function(a){return a.trim()},RAc=/&/g,SAc=/</g,TAc=/>/g,UAc=/"/g,VAc=/'/g,WAc=/\x00/g,XAc=/[\x00&<>"']/;var YAc=!!(Uw[0]>>17&1),ZAc=!!(Uw[0]&4096),$Ac=!!(Uw[0]>>18&1),aBc=!!(Uw[0]&16),bBc=!!(Uw[0]&256),cBc=!!(Uw[0]&32),dBc=!!(Uw[0]&1024);var eBc=Tw(1,!0),hba=YAc?$Ac:Tw(610401301,!1),QLb=YAc?aBc:Tw(1331761403,!1),aea=YAc?ZAc||!bBc:Tw(748402147,!0),fBc=YAc?ZAc||!cBc:Tw(824648567,!0),Db=YAc?ZAc||!dBc:Tw(824656860,eBc);var Ca,gBc=ra.navigator;Ca=gBc?gBc.userAgentData||null:null;var Aba=function(a,b){return Array.prototype.indexOf.call(a,b,void 0)},Ja=function(a,b){Array.prototype.forEach.call(a,b,void 0)},iBc=function(a){return Array.prototype.filter.call(a,hBc,void 0)},jBc=function(a,b){return Array.prototype.map.call(a,b,void 0)},kBc=function(a,b){return Array.prototype.some.call(a,b,void 0)};var lBc=function(a){lBc[" "](a);return a};lBc[" "]=function(){};var Lsc=function(a,b){try{return lBc(a[b]),!0}catch(c){}return!1};var mBc=jba(),pv=kba(),nBc=Ea("Edge"),wj=Ea("Gecko")&&!(eba(Ba(),"WebKit")&&!Ea("Edge"))&&!(Ea("Trident")||Ea("MSIE"))&&!Ea("Edge"),vj=eba(Ba(),"WebKit")&&!Ea("Edge"),oBc=vj&&Ea("Mobile"),Hv=Ha(),pBc=uba(),qBc=(rba()?Ca.platform==="Linux":Ea("Linux"))||vba(),rBc=sba(),sBc=tba(),tBc=Ea("iPad"),uBc=Ea("iPod"),Esc=Ga();eba(Ba(),"KaiOS");var vBc;
a:{var wBc="",xBc=function(){var a=Ba();if(wj)return/rv:([^\);]+)(\)|;)/.exec(a);if(nBc)return/Edge\/([\d\.]+)/.exec(a);if(pv)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(vj)return/WebKit\/(\S+)/.exec(a);if(mBc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();xBc&&(wBc=xBc?xBc[1]:"");if(pv){var yBc,zBc=ra.document;yBc=zBc?zBc.documentMode:void 0;if(yBc!=null&&yBc>parseFloat(wBc)){vBc=String(yBc);break a}}vBc=wBc}var ABc=vBc;var BBc=lba(),CBc=tba()||Ea("iPod"),DBc=Ea("iPad"),EBc=oba(),Gsc=mba(),Csc=nba()&&!Ga();var Rba={},Wba=null;var Zba=/[-_.]/g,Xba={"-":"+",_:"/",".":"="},Xa={},FBc=typeof structuredClone!="undefined";var Wa=function(a,b){if(b!==Xa)throw Error("S");this.value_=a;if(a!=null&&a.length===0)throw Error("R");},fca=function(a){return a?new Wa(a,Xa):Va()},Va=function(){return GBc||(GBc=new Wa(null,Xa))},Rda=function(a){var b=a.value_;if(b==null)a="";else if(typeof b==="string")a=b;else{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);a=a.value_=btoa(c)}return a},iva=function(a){return new Uint8Array($b(a)||
0)};Wa.prototype.isEmpty=function(){return this.value_==null};Wa.prototype.sizeBytes=function(){var a=$b(this);return a?a.length:0};
var qYa=function(a){var b={};b=b.parsingErrorsAreFatal===void 0?!0:b.parsingErrorsAreFatal;if(a=$b(a)){var c=a.length;b=QAc?Yaa(a,0,c,b):Uaa(a,0,c,b)}else b="";return b},HBc=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=
$b(a);b=$b(b);return aca(c,b)},$b=function(a){if(Xa!==Xa)throw Error("S");var b=a.value_;b=b==null||Oa(b)?b:typeof b==="string"?$ba(b):null;return b==null?b:a.value_=b},oda=function(a,b){if(typeof b==="string")b=fca(b);else if(b instanceof Uint8Array)b=new Wa(b,Xa);else if(!(b instanceof Wa))return!1;return HBc(a,b)},GBc;var dda=Qa(),qea=Qa(),mea=Qa(),Xb=Qa(),Gda=Qa(),Ida=Qa(),$ua=Qa(),cea=Qa(),Ya=Qa("m_m",!0),Tda=Qa(),Dda=Qa();var Ra=Qa("jas",!0),ic,IBc=[];IBc[Ra]=7;ic=Object.freeze(IBc);var Za={},bb={},JBc=function(a,b,c){this.iterable=a;this.mapper=b;this.thisArg=c};JBc.prototype.next=function(){var a=this.iterable.next();a.done||(a.value=this.mapper.call(this.thisArg,a.value));return a};JBc.prototype[Symbol.iterator]=function(){return this};var en=Object.freeze({}),ewa=Object.freeze({}),fb={};var Uda={};var pca=hb(function(a){return typeof a==="number"}),oca=hb(function(a){return typeof a==="string"}),rca=hb(function(a){return typeof a==="boolean"}),h7b=hb(function(a){return!!a&&(typeof a==="object"||typeof a==="function")}),mca=hb(function(a){return Array.isArray(a)});var qca=typeof ra.BigInt==="function"&&typeof ra.BigInt(0)==="bigint";var Jb=hb(function(a){return qca?a>=KBc&&a<=LBc:a[0]==="-"?sca(a,MBc):sca(a,NBc)}),MBc=Number.MIN_SAFE_INTEGER.toString(),KBc=qca?BigInt(Number.MIN_SAFE_INTEGER):void 0,NBc=Number.MAX_SAFE_INTEGER.toString(),LBc=qca?BigInt(Number.MAX_SAFE_INTEGER):void 0;var kb=0,lb=0,OBc;var Dca=void 0;var Eb=typeof BigInt==="function"?BigInt.asIntN:void 0,Ib=typeof BigInt==="function"?BigInt.asUintN:void 0,Hb=Number.isSafeInteger,xb=Number.isFinite,Gb=Math.trunc,hda=jb(0),Hca=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var zda={},ax=function(){var a=function(){return gAc(Map,[],this.constructor)};Z(a,Map);return a}(),Vb=function(a,b,c,d){c=c===void 0?sda:c;d=d===void 0?sda:d;var e=ax.call(this)||this;e.arrayState=a[Ra]|0;e.valueCtor=b;e.keyToApi=c;e.valueToApi=e.valueCtor?tda:d;for(var f=0;f<a.length;f++){var g=a[f],k=c(g[0],!1,!0),m=g[1];b?m===void 0&&(m=null):m=d(g[1],!1,!0,void 0,void 0,e.arrayState);ax.prototype.set.call(e,k,m)}return e};Z(Vb,ax);
var PBc=function(a){if(a.arrayState&2)throw Error("V");},Sda=function(a,b){return cca(Array.from(ax.prototype.entries.call(a),b))};h=Vb.prototype;h.clear=function(){PBc(this);ax.prototype.clear.call(this)};h.delete=function(a){PBc(this);return ax.prototype.delete.call(this,this.keyToApi(a,!0,!1))};h.entries=function(){if(this.valueCtor){var a=ax.prototype.keys.call(this);a=new JBc(a,xda,this)}else a=ax.prototype.entries.call(this);return a};
h.values=function(){if(this.valueCtor){var a=ax.prototype.keys.call(this);a=new JBc(a,Vb.prototype.get,this)}else a=ax.prototype.values.call(this);return a};h.forEach=function(a,b){this.valueCtor?ax.prototype.forEach.call(this,function(c,d,e){a.call(b,e.get(d),d,e)}):ax.prototype.forEach.call(this,a,b)};h.set=function(a,b){PBc(this);a=this.keyToApi(a,!0,!1);return a==null?this:b==null?(ax.prototype.delete.call(this,a),this):ax.prototype.set.call(this,a,this.valueToApi(b,!0,!0,this.valueCtor,!1,this.arrayState))};
h.has=function(a){return ax.prototype.has.call(this,this.keyToApi(a,!1,!1))};h.get=function(a){a=this.keyToApi(a,!1,!1);var b=ax.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&&ax.prototype.set.call(this,a,c),c):b}};var nda=function(a,b,c){return b instanceof Vb?uda(a,b,c):wda(a,b,c)};Vb.prototype[Symbol.iterator]=function(){return this.entries()};Vb.prototype.toJSON=void 0;var yda;var Mda=function(){},Kda=function(a,b){for(var c in a)!isNaN(c)&&b(a,+c,a[c])},Nda=function(a){var b=new Mda;Kda(a,function(c,d,e){b[d]=qb(e)});b.reviveUnknownFields=a.reviveUnknownFields;return b},Eda={reviveIntoImmutable:!0};var z5a=FBc?structuredClone:function(a){return Oda(a,0,Yb)},Lda;var Wda,Xda;var Zb=function(a,b,c){this.buffer=a;if(c&&!b)throw Error();this.isImmutable=b};var QBc=function(a,b,c,d){this.buffer_=this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.start_=0;this.init(a,b,c,d)};h=QBc.prototype;
h.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&&(this.buffer_=a=dea(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_)};h.free=function(){this.clear();RBc.length<100&&RBc.push(this)};
h.clear=function(){this.buffer_=this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.start_=0;this.aliasBytesFields=!1};h.getEnd=function(){return this.end_};h.setEnd=function(a){this.end_=a};h.reset=function(){this.cursor_=this.start_};h.getCursor=function(){return this.cursor_};h.advance=function(a){SBc(this,this.cursor_+a)};
var TBc=function(a,b){var c=0,d=0,e=0,f=a.bytes_,g=a.cursor_;do{var k=f[g++];c|=(k&127)<<e;e+=7}while(e<32&&k&128);if(e>32)for(d|=(k&127)>>4,e=3;e<32&&k&128;e+=7)k=f[g++],d|=(k&127)<<e;SBc(a,g);if(!(k&128))return b(c>>>0,d>>>0);throw Error();},SBc=function(a,b){a.cursor_=b;if(b>a.end_)throw Error();},bx=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();SBc(a,c);return e},cx=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},UBc=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 SBc(a,c),!!(b&127)}throw Error();},VBc=function(a,b){if(b<0)throw Error();var c=a.cursor_;b=c+b;if(b>a.end_)throw Error();a.cursor_=b;return c};
QBc.prototype.readString=function(a,b){var c=VBc(this,a),d=this.bytes_;return QAc?Yaa(d,c,a,b):Uaa(d,c,a,b)};QBc.prototype.readByteString=function(a){if(a==0)return Va();var b=VBc(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):c.slice(b,a)}return eca(b)};var RBc=[];var WBc=function(a,b,c,d){if(RBc.length){var e=RBc.pop();e.init(a,b,c,d);a=e}else a=new QBc(a,b,c,d);this.decoder_=a;this.fieldCursor_=this.decoder_.getCursor();this.nextWireType_=this.nextTag_=this.nextField_=-1;this.setOptions(d)};WBc.prototype.setOptions=function(a){a=a===void 0?{}:a;this.discardUnknownFields=a.discardUnknownFields===void 0?!1:a.discardUnknownFields};
var Rua=function(a,b,c,d){if(XBc.length){var e=XBc.pop();e.setOptions(d);e.decoder_.init(a,b,c,d);return e}return new WBc(a,b,c,d)};h=WBc.prototype;h.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=this.nextTag_=-1;XBc.length<100&&XBc.push(this)};h.getCursor=function(){return this.decoder_.getCursor()};h.getTag=function(){return this.nextTag_};
h.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.getCursor();this.nextWireType_=this.nextField_=this.nextTag_=-1};h.advance=function(a){this.decoder_.advance(a)};
var Mua=function(a){var b=a.decoder_;if(b.cursor_==b.end_)return!1;a.fieldCursor_=a.decoder_.getCursor();b=bx(a.decoder_)>>>0;var c=b>>>3,d=b&7;if(!(d>=0&&d<=5))throw Error();if(c<1)throw Error();a.nextTag_=b;a.nextField_=c;a.nextWireType_=d;return!0},Oua=function(a){switch(a.nextWireType_){case 0:a.nextWireType_!=0?Oua(a):UBc(a.decoder_);break;case 1:a.decoder_.advance(8);break;case 2:if(a.nextWireType_!=2)Oua(a);else{var b=bx(a.decoder_)>>>0;a.decoder_.advance(b)}break;case 5:a.decoder_.advance(4);
break;case 3:b=a.nextField_;do{if(!Mua(a))throw Error();if(a.nextWireType_==4){if(a.nextField_!=b)throw Error();break}Oua(a)}while(1);break;default:throw Error();}},YBc=function(a,b,c){var d=a.decoder_.getEnd(),e=bx(a.decoder_)>>>0;e=a.decoder_.getCursor()+e;var f=e-d;f<=0&&(a.decoder_.setEnd(e),c(b,a,void 0,void 0,void 0),f=e-a.decoder_.getCursor());if(f)throw Error();a.decoder_.cursor_=e;a.decoder_.setEnd(d)};WBc.prototype.readString=function(){return ZBc(this)};
var ZBc=function(a){var b=bx(a.decoder_)>>>0;return a.decoder_.readString(b,!0)};WBc.prototype.readByteString=function(){var a=bx(this.decoder_)>>>0;return this.decoder_.readByteString(a)};var XBc=[];var $Bc=jb(0),tw={},um=function(a,b,c,d,e){b=nc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b,c,e);if(b!==null||d&&a.noLegacyNull!==bb)return b},nc=function(a,b,c,d){if(b===-1)return null;var e=b+(c?0:-1),f=a.length-1;if(!(f<1+(c?0:-1))){if(e>=f){var g=a[f];if(g!=null&&typeof g==="object"&&g.constructor===Object){c=g[b];var k=!0}else if(e===f)c=g;else return}else c=a[e];if(d&&c!=null){d=d(c);if(d==null)return d;if(!Object.is(d,c))return k?g[b]=d:a[e]=d,d}return c}},$r=function(a,b,c,
d){ec(a);var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;hc(e,e[Ra]|0,b,c,d);return a},Si=function(a,b,c,d){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return uea(a,a[Ra]|0,b,c,d)!==void 0},lj=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return uea(e,e[Ra]|0,b,bj(a,d,c))!==void 0},Ui=function(a,b,c){var d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return vea(a,d,d[Ra]|0,b,c,3).length},dx=function(a,b,c,d,e,f){zc(a,b,c,
f,e,d,1);return a},Xi=function(a){return a===en?2:4},lo=function(a,b,c,d){a=um(a,b,d,void 0,oc);return a==null?c===null?c:c===void 0?Va():fca(c):a},ex=function(a,b,c){return $r(a,b,void 0,c)},fx=function(a,b){ec(a);var c=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;tea(c,c[Ra]|0,b,0);return a},ip=function(a,b,c,d){ec(a);var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ra]|0;if(d==null){var g=rea(e);if(sea(g,e,f,c)===b)g.set(c,0);else return a}else f=tea(e,f,c,b);hc(e,
f,b,d);return a},gx=function(a,b,c,d){var e=a[Ra]|0,f=gb(e);e=tea(a,e,c,b,f);hc(a,e,b,d,f)},bj=function(a,b,c,d){return Oo(a,b,d)===c?c:-1},Oo=function(a,b,c){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return sea(rea(a),a,void 0,b,c)},cj=function(a,b,c,d,e){ec(a);a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var f=a[Ra]|0,g=nc(a,c,e);d=d===ewa;b=fda(g,b,!d,f);if(!d||b)return b=Ub(b),g!==b&&(f=hc(a,f,c,b,e),fc(a,f)),b},aCc=function(a,b,c){var d=a[Ra]|0,e=gb(d),f=nc(a,c,
e);if($a(f)){if(!cb(f))return dc(f),f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var g=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(f)&&(g=f);if(g){var k=g[Ra]|0;k&2&&(g=cc(g,k))}g=$da(g,b);g!==f&&hc(a,d,c,g,e);return g},ktb=function(a,b,c,d){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return uea(a,a[Ra]|0,b,c,d)||b[dda]||(b[dda]=eda(b))},bCc=function(a,b,c){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return uea(a,a[Ra]|0,b,
c)},Y=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ra]|0;b=uea(e,f,b,c,d);if(b==null)return b;f=e[Ra]|0;if(!cb(a,f)){var g=Ub(b);g!==b&&(dc(a)&&(e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ra]|0),b=g,f=hc(e,f,c,b,d),fc(e,f))}return b},cCc=function(a,b,c){var d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return vea(a,d,d[Ra]|0,b,c,1)},Wi=function(a,b,c,d,e){var f=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return vea(a,
f,f[Ra]|0,b,c,d,e,!1,!0)},hj=function(a,b,c,d,e){d=wea(d);$r(a,c,d,e);d&&!cb(d)&&fc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a},op=function(a,b,c,d){d=wea(d);ip(a,b,c,d);d&&!cb(d)&&fc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a},ij=function(a,b,c,d){ec(a);var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ra]|0;if(c==null)return hc(e,f,b,void 0,d),a;for(var g=c===ic?7:c[Ra]|0,k=g,m=mc(g),r=m||Object.isFrozen(c),w=!0,x=!0,D=0;D<c.length;D++){var H=
c[D];m||(H=cb(H),w&&(w=!H),x&&(x=H))}m||(g=w?13:5,g=x?g&-4097:g|4096);r&&g===k||(c=qb(c),k=0,g=jc(g,f));g!==k&&(c[Ra]=g);f=hc(e,f,b,c,d);2&g||!(4096&g||16&g)||fc(e,f);return a},fq=function(a,b,c,d,e,f){zc(a,b,c,f,d,e);return a},hx=function(a,b,c,d,e){zc(a,b,c,e,void 0,d,1,!0);return a},eq=function(a,b,c,d,e){ec(a);var f=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;b=vea(a,f,f[Ra]|0,c,b,2,e,!0);e=c=0;if(Array.isArray(d))for(var g=d.length,k=0;k<g;k++){var m=d[k];b.push(m);(m=cb(m))&&!c++&&
(b[Ra]&=-9);m||e++||Ta(b,4096)}else for(d=l(d),g=d.next();!g.done;g=d.next())g=g.value,b.push(g),(g=cb(g))&&!c++&&(b[Ra]&=-9),g||e++||Ta(b,4096);e&&fc(f);return a},dCc=function(a,b,c){return Db?Kb(um(a,b,c,void 0,Mb)):Kb(um(a,b,c))},ix=function(a,b,c){return Db?Lb(um(a,b,c,void 0,Mb)):Lb(um(a,b,c),!0)},Cw=function(a,b,c,d){return Db?um(a,b,c,d,Mb):Mb(um(a,b,c,d))},jx=function(a,b,c){return Db?um(a,b,void 0,c,$ca):$ca(um(a,b,void 0,c))},c7a=function(a,b,c){return lc(a,b,Kb,c,void 0,0)},kx=function(a,
b,c,d,e){return lc(a,b,Mb,c,e,1024,d)},mn=function(a,b,c){return lc(a,b,xea,1,void 0,512,c)},lx=function(a,b,c,d){return Cb(um(a,b,c,d))},mx=function(a,b,c,d){return Ob(um(a,b,c,d))},Op=function(a,b,c,d){return Ab(um(a,b,c,d))},$i=function(a,b,c,d){c=c===void 0?!1:c;var e;return(e=wb(um(a,b,d)))!=null?e:c},Wm=function(a,b,c,d){c=c===void 0?0:c;var e;return(e=lx(a,b,d))!=null?e:c},Vp=function(a,b,c,d){c=c===void 0?0:c;var e;return(e=dCc(a,b,d))!=null?e:c},eCc=function(a,b){var c=c===void 0?"0":c;var d;
return(d=Lb(um(a,b)))!=null?d:c},Hn=function(a,b,c,d){c=c===void 0?$Bc:c;var e;return(e=Cw(a,b,d))!=null?e:c},fCc=function(a){var b=b===void 0?$Bc:b;var c;return(c=jx(a,23))!=null?c:b},tm=function(a,b,c){c=c===void 0?0:c;var d;return(d=um(a,b,void 0,void 0,ub))!=null?d:c},Fi=function(a,b,c,d){c=c===void 0?"":c;var e;return(e=mx(a,b,d))!=null?e:c},Ri=function(a,b,c,d){c=c===void 0?0:c;var e;return(e=Op(a,b,d))!=null?e:c},Ln=function(a,b,c,d){c=c===void 0?"0":c;var e;return(e=ix(a,b,d))!=null?e:c},
En=function(a,b,c,d){c=c===void 0?"0":c;var e;return(e=ix(a,b,d))!=null?e:c},Ym=function(a,b,c,d,e){return lc(a,b,Cb,c,e,void 0,d)},nx=function(a,b,c){a=Ym(a,b,3,void 0,!0);eb(a,c);return a[c]},gCc=function(a,b,c){a=kx(a,b,3,void 0,!0);eb(a,c);return a[c]},Xm=function(a,b,c,d,e){return lc(a,b,Ob,c,e,void 0,d)},ox=function(a,b,c,d){a=Xm(a,b,3,d,!0);eb(a,c);return a[c]},On=function(a,b,c,d,e){return lc(a,b,Ab,c,e,void 0,d)},px=function(a,b,c){a=On(a,b,3,void 0,!0);eb(a,c);return a[c]},So=function(a,
b,c){return Fi(a,bj(a,c,b))},ww=function(a,b,c){return Ml(a,bj(a,c,b))},lm=function(a,b,c,d,e){return Y(a,b,bj(a,d,c,e),e)},bpb=function(a,b){b=bj(a,kt,b);return ix(a,b)},Cr=function(a,b,c){b=bj(a,c,b);return mx(a,b)},cpb=function(a,b){b=bj(a,kt,b);return um(a,b,void 0,void 0,oc)},hCc=function(a,b){return wb(um(a,b))},jw=function(a,b){return wb(um(a,b,void 0,tw))},qx=function(a,b){return lx(a,b,void 0,tw)},rx=function(a,b){return Cw(a,b,void 0,tw)},sx=function(a,b){return um(a,b,void 0,tw,ub)},Ml=
function(a,b){return mx(a,b,void 0,tw)},rw=function(a,b){return Op(a,b,void 0,tw)},jj=function(a,b,c){return $r(a,b,c==null?c:vb(c))},sp=function(a,b,c,d){return uc(a,b,c==null?c:vb(c),!1,d)},Wn=function(a,b,c){return $r(a,b,c==null?c:Bb(c))},sn=function(a,b,c){return uc(a,b,c==null?c:Bb(c),0)},Nn=function(a,b,c,d,e){return $r(a,b,c==null?c:Fb(c,d),e)},ap=function(a,b,c){return uc(a,b,c==null?c:Fb(c,void 0),"0")},ao=function(a,b,c,d,e){return $r(a,b,c==null?c:Fb(c,d),e)},tx=function(a,b,c){return $r(a,
b,c==null?c:Eca(c))},Jp=function(a,b,c){return uc(a,b,c==null?c:Eca(c),0)},BYa=function(a,b,c,d){ip(a,b,c,d==null?d:Eca(d))},Gj=function(a,b,c,d){return $r(a,b,cda(c),d)},$m=function(a,b,c,d){return uc(a,b,cda(c),"",d)},Vo=function(a,b,c,d){return ip(a,b,c,cda(d))},fp=function(a,b,c){return uc(a,b,db(c,!1,!0),Va())},Yn=function(a,b,c,d){return $r(a,b,Ica(c),d)},cn=function(a,b,c,d){return uc(a,b,Ica(c),0,d)},Kr=function(a,b,c,d){return tc(a,b,c,Fb,d)},xx=function(a,b,c,d,e){return wc(a,b,Fb,c,d,Kb,
e)},iCc=function(a,b,c){return wc(a,b,Fb,void 0,c,Kb,void 0,1,!1,!0)},yx=function(a,b,c){yc(a,b,Fb,c,Kb)},an=function(a,b,c,d){return tc(a,b,c,Nb,d)},Vq=function(a,b,c){return wc(a,b,Nb,c,void 0,Ob)},zx=function(a,b,c,d){return wc(a,b,Nb,d,c,Ob,void 0,1)},Ax=function(a,b,c){return tc(a,b,c,zb)},Zi=function(a,b){return wb(um(a,b))!=null},Bn=function(a,b){return lx(a,b)!=null},Gn=function(a,b,c){return dCc(a,b,c)!=null},vZa=function(a,b){b=bj(a,b,2);return um(a,b,void 0,void 0,ub)!=null},xm=function(a,
b,c){return mx(a,b,c)!=null},ym=function(a,b,c){return Op(a,b,c)!=null};var X=function(a,b,c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,b,c)};X.prototype.toJSON=function(){return Vda(this)};X.prototype.serialize=function(a){return JSON.stringify(Vda(this,a))};var Gi=function(a,b){if(b==null||b=="")return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("ea");return new a(dca(b))};
X.prototype.getExtension=function(a){Hda(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a.fieldIndex);Fda(this,a.fieldIndex);return a.ctor?a.isRepeated?a.getExtensionFn(this,a.ctor,a.fieldIndex,Xi(),a.hasMessageId):a.getExtensionFn(this,a.ctor,a.fieldIndex,a.hasMessageId):a.isRepeated?a.getExtensionFn(this,a.fieldIndex,Xi(),a.hasMessageId):a.getExtensionFn(this,a.fieldIndex,a.defaultValue,a.hasMessageId)};
var jCc=function(a,b){Hda(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b.fieldIndex);Fda(a,b.fieldIndex);a=b.ctor?b.getExtensionFn(a,b.ctor,b.fieldIndex,b.hasMessageId):b.getExtensionFn(a,b.fieldIndex,null,b.hasMessageId);return a===null?void 0:a};X.prototype.hasExtension=function(a){Hda(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a.fieldIndex);Fda(this,a.fieldIndex);return a.ctor?Si(this,a.ctor,a.fieldIndex,a.hasMessageId):jCc(this,a)!==void 0};
var NSa=function(a,b){return a===b||a==null&&b==null||!(!a||!b)&&a instanceof b.constructor&&mda(a,b)};X.prototype.clone=function(){var a=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=a[Ra]|0;return iea(this,a,b)?hea(this,a,!0):new this.constructor(cc(a,b,!1))};X.prototype.isMutable=function(){return!cb(this)};X.prototype.isImmutable=function(){return cb(this)};
var bwc=function(a){return Ub(a)},lw=function(a,b,c){Cda(a,b.fieldIndex);return b.ctor?b.setExtensionFn(a,b.ctor,b.fieldIndex,c,b.hasMessageId):b.setExtensionFn(a,b.fieldIndex,c,b.hasMessageId)};X.prototype[Ya]=Za;X.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Ac=function(a,b){this.key_=a;this.value_=b},kCc=function(a){throw Error("fa`"+a.key_);},lCc=function(a,b){return new TypeError("ga`"+b+"`"+a.key_+"`"+a.value_+"`"+typeof a.value_)};Ac.prototype.string=function(a){if(arguments.length==0)var b=mCc(this);else{var c;b=(c=nCc(this))!=null?c:a}return b};var mCc=function(a){var b=nCc(a);b===null&&kCc(a);return b},nCc=function(a){var b=a.value_;if(b==null)return null;if(typeof b==="string")return b;throw lCc(a,"string");};
Ac.prototype.bool=function(a){if(arguments.length==0){var b=oCc(this);b===null&&kCc(this)}else b=pCc(this,a);return b};var pCc=function(a,b){var c;return(c=oCc(a))!=null?c:b},oCc=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 lCc(a,"boolean");};
Ac.prototype.number=function(a){if(arguments.length==0){var b=qCc(this);b===null&&kCc(this)}else{var c;b=(c=qCc(this))!=null?c:a}return b};var qCc=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 lCc(a,"number");};Ac.prototype.toString=function(){return mCc(this)};
Ac.prototype.array=function(a){if(arguments.length==0){var b=rCc(this);b===null&&kCc(this);return b}b=rCc(this);return b==null?a:b};var tCc=function(a){var b=[],c=rCc(a);return c===null?sCc(a,b):c},rCc=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 sCc(a,b)},sCc=function(a,b){var c=a.key_+"[";return Array.from(b,function(d,e){return new Ac(c+e+"]",d)})};
Ac.prototype.object=function(a){var b=this.value_;if(b==null)return a===void 0&&kCc(this),a;if(typeof b==="object"&&b.constructor===Object){a={};var c=this.key_+".",d;for(d in b)a[d]=new Ac(c+d,b[d]);return a}throw lCc(this,"object");};if(typeof window==="undefined"||pCc(Aea("mXaIFf"),!0)){var Bx=globalThis,uCc=Bx[ca("forceDuplicateZoneCheck")]===!0;if(Bx.Zone&&(uCc||typeof Bx.Zone.__symbol__!=="function"))throw Error("ka");Bx.Zone!=null||(Bx.Zone=haa());var la=Bx.Zone;Bea();Cea();Dea();Laa();Qaa();Raa()};var Eea=Bc({"\u0275prov":Bc}),Hea=Bc({"\u0275inj":Bc});var Ec=null,Kea=!1,Mea=1,Kc=Symbol("ma"),Cx={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},producerRecomputeValue:function(){},consumerMarkedDirty:function(){},consumerOnSignalRead:function(){}};var Dx=Symbol("na"),Ex=Symbol("oa"),Jc=Symbol("pa"),Uea=Object.assign({},Cx,{value:Dx,dirty:!0,error:null,equal:Jea,kind:"computed",producerMustRecompute:function(a){return a.value===Dx||a.value===Ex},producerRecomputeValue:function(a){if(a.value===Ex)throw Error("la");var b=a.value;a.value=Ex;var c=Ic(a),d=!1;try{var e=a.computation();Fc(null);d=b!==Dx&&b!==Jc&&e!==Jc&&a.equal(b,e)}catch(f){e=Jc,a.error=f}finally{Sea(a,c)}d?a.value=b:(a.value=e,a.version++)}});var vCc=Object.assign({},Cx,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var Xea=function(){throw Error();};var Wea=Object.assign({},Cx,{equal:Jea,value:void 0,kind:"signal"});var Zea=Object.assign({},Cx,{value:Dx,dirty:!0,error:null,equal:Jea,kind:"linkedSignal",producerMustRecompute:function(a){return a.value===Dx||a.value===Ex},producerRecomputeValue:function(a){if(a.value===Ex)throw Error("la");var b=a.value;a.value=Ex;var c=Ic(a);try{var d=a.source();var e=a.computation(d,b===Dx||b===Jc?void 0:{source:a.sourceValue,value:b});a.sourceValue=d}catch(f){e=Jc,a.error=f}finally{Sea(a,c)}b!==Dx&&e!==Jc&&a.equal(b,e)?a.value=b:(a.value=e,a.version++)}});Object.assign({},Cx,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(a){a.schedule!==null&&a.schedule(a.ref)},cleanupFn:function(){}});var bd=function(a,b){this._desc=a;this.ngMetadataName="InjectionToken";this.\u0275prov=void 0;typeof b=="number"?this.__NG_ELEMENT_ID__=b:b!==void 0&&(this.\u0275prov=Cc({token:this,providedIn:b.providedIn||"root",factory:b.factory}))};bd.prototype.toString=function(){return"InjectionToken "+this._desc};da.Object.defineProperties(bd.prototype,{multi:{configurable:!0,enumerable:!0,get:function(){return this}}});new bd("",{factory:function(){return!1}});new bd("",{factory:function(){return 4E3}});var Pc=function(a,b){b=Error.call(this,bfa(a,b));this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a};Z(Pc,Error);var Zc=Bc({"\u0275cmp":Bc}),Lka=Bc({"\u0275dir":Bc}),rfa=Bc({"\u0275pipe":Bc}),wCc=Bc({"\u0275mod":Bc}),tfa=Bc({"\u0275fac":Bc}),Aga=Bc({__NG_ELEMENT_ID__:Bc}),xCc=Bc({__NG_ENV_ID__:Bc});var dfa=Bc({ngErrorCode:Bc}),efa=Bc({ngErrorMessage:Bc});Bc({ngTokenPath:Bc});var gfa;var ifa=void 0;var jfa=Symbol("ra");var mfa=Bc({__forward_ref__:Bc});var Je=globalThis;var Fx={},Sfa=function(a){this.injector=a};Sfa.prototype.retrieve=function(a,b){b=ofa(b)||0;try{return this.injector.get(a,b&8?null:Fx,b)}catch(c){if(kfa(c))return c;throw c;}};var Ffa=new bd("");var yCc=new bd("",-1);var Efa=new bd("");var Jfa=function(){};Jfa.prototype.get=function(a,b){b=b===void 0?Fx:b;if(b===Fx)throw a=ffa(-201),a.name="\u0275NotFound",a;return b};var hd={},$c=[];var Gfa=Bc({provide:String,useValue:Bc});var spa=new bd("");var Ofa={},zCc={},Ifa=void 0,Xe=function(){},dd=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;Rfa(a,function(f){return ACc(e,f)});this.records.set(yCc,cd(void 0,this));d.has("environment")&&this.records.set(Xe,cd(void 0,this));a=this.records.get(spa);a!=null&&typeof a.value==="string"&&this.scopes.add(a.value);this.injectorDefTypes=new Set(this.get(Efa,$c,{self:!0}))};Z(dd,Xe);
h=dd.prototype;h.retrieve=function(a,b){b=ofa(b)||0;try{return this.get(a,Fx,b)}catch(c){if(kfa(c))return c;throw c;}};h.destroy=function(){Qfa(this);this._destroyed=!0;var a=Fc(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 g=f.value;g()}}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Fc(a)}};
h.onDestroy=function(a){var b=this;Qfa(this);this._onDestroyHooks.push(a);return function(){var c=b._onDestroyHooks.indexOf(a);c!==-1&&b._onDestroyHooks.splice(c,1)}};
h.get=function(a,b,c){b=b===void 0?Fx:b;Qfa(this);if(a.hasOwnProperty(xCc))return a[xCc](this);c=ofa(c);var d=Rc(this),e=Qc();try{if(!(c&4)){var f=this.records.get(a);if(f===void 0){var g=(typeof a==="function"||typeof a==="object"&&a.ngMetadataName==="InjectionToken")&&Fea(a),k;if(k=g)if(g.providedIn){var m=Vc(g.providedIn);k=typeof m==="string"?m==="any"||this.scopes.has(m):this.injectorDefTypes.has(m)}else k=!1;k?f=cd(Mfa(a),Ofa):f=null;this.records.set(a,f)}if(f!=null){a:{b=f;var r=Fc(null);try{if(b.value===
zCc)throw Nc(a),ffa(-200);b.value===Ofa&&(b.value=zCc,b.value=b.factory(void 0,c));var w;if(w=typeof b.value==="object"&&b.value){var x=b.value;w=x!==null&&typeof x==="object"&&typeof x.ngOnDestroy==="function"}w&&this._ngOnDestroyHooks.add(b.value);var D=b.value;break a}finally{Fc(r)}D=void 0}return D}}var H=c&2?Kfa():this.parent;b=c&8&&b===Fx?null:b;return H.get(a,b)}catch(O){var J=O[dfa];if(J===-200||J===-201)throw new Pc(J,null);throw O;}finally{Qc(e),Rc(d)}};
h.resolveInjectorInitializers=function(){var a=Fc(null),b=Rc(this),c=Qc();try{for(var d=this.get(Ffa,$c,{self:!0}),e=l(d),f=e.next();!f.done;f=e.next()){var g=f.value;g()}}finally{Rc(b),Qc(c),Fc(a)}};h.toString=function(){for(var a=[],b=l(this.records.keys()),c=b.next();!c.done;c=b.next())a.push(Nc(c.value));return"R3Injector["+a.join(", ")+"]"};
var ACc=function(a,b){b=Vc(b);var c=ad(b)?b:Vc(b&&b.provide),d=Pfa(b);if(!ad(b)&&b.multi===!0){var e=a.records.get(c);e||(e=cd(void 0,Ofa,!0),e.factory=function(){return pfa(e.multi)},a.records.set(c,e));c=b;e.multi.push(b)}a.records.set(c,d)};da.Object.defineProperties(dd.prototype,{destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});var Wfa=function(a,b,c){this.previousValue=a;this.currentValue=b;this.firstChange=c};var Gx=function(){var a=function(){return Vfa};a.ngInherit=!0;return a}();var BCc=[],Ad=function(a,b,c){b=b===void 0?null:b;for(var d=0;d<BCc.length;d++)(0,BCc[d])(a,b,c)};var od=mga(null),Ue=null,fga=!1,Pe=!0;var Pga=function(a,b){var c=Ve;this.factory=a;this.name=null;this.resolving=!1;this.canSeeViewProviders=b;this.injectImpl=c};var yga=!0,Bga=0,Cd={},Dd=function(a,b){this._tNode=a;this._lView=b};Dd.prototype.get=function(a,b,c){return Lga(this._tNode,this._lView,a,ofa(c),b)};var Hx=function(a){var b=this;this.attributeName=a;this.__NG_ELEMENT_ID__=function(){return Iga(b.attributeName)}};Hx.prototype.toString=function(){return"HostAttributeToken "+this.attributeName};var CCc=function(){var a=new bd("");a.__NG_ELEMENT_ID__=function(b){var c=rd();if(c===null)throw new Pc(204,!1);if(c.type&2)return c.value;if(b&8)return null;throw new Pc(204,!1);};return a}();var DCc=qfa(Sga("Inject",function(a){return{token:a}}),-1),ECc=qfa(Sga("Optional"),8);qfa(Sga("Self"),2);var FCc=qfa(Sga("SkipSelf"),4);qfa(Sga("Host"),1);Bc({provide:String,useValue:Bc});var xe=function(){},$g=function(a){if(Array.isArray(a))return Uga({name:""},void 0,a,"");var b,c=(b=a.name)!=null?b:"";return Uga({name:c},a.parent,a.providers,c)},GCc=new Jfa;xe.\u0275prov=Cc({token:xe,providedIn:"any",factory:function(){return Wc(yCc)}});xe.__NG_ELEMENT_ID__=-1;var HCc=function(){};var Ix=function(){},Jza=function(){};var Ze=function(){},apa=new bd("",{factory:function(){return!0}});new bd("",{factory:function(){return!1}});var bpa=new bd("");/*

 Copyright 2024 Google, Inc
 SPDX-License-Identifier: MIT
*/
Symbol.for("propagationStopped");var Yh=new bd("");var ICc=new bd("",{factory:function(){return"ng"}}),tpa=new bd(""),JCc=new bd("",{providedIn:"platform",factory:function(){return"unknown"}}),qi=new bd(""),KCc=new bd("",{factory:function(){var a,b;return((a=q(Yh).body)==null?void 0:(b=a.querySelector("[ngCspNonce]"))==null?void 0:b.getAttribute("ngCspNonce"))||null}}),LCc={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1};new bd("",{factory:function(){return LCc}});new bd("",{factory:function(){return{}}});new bd("");var Mja=new bd("",{factory:function(){return!1}});new bd("");new bd("");new bd("");new bd("",{factory:function(){return new Map}});var MCc=new bd("");new bd("");var Zga=void 0;var aha=new Map,cja=0;var NCc=function(){},OCc=function(){};var Gd=function(a){this.nativeElement=a};Gd.__NG_ELEMENT_ID__=function(){return Hd(rd(),t())};new bd("",{factory:function(){return!0}});var Ye=function(){},ji=function(){this.destroyNode=null};ji.__NG_ELEMENT_ID__=function(){var a=t(),b=kd(rd().index,a);return(fd(b)?b:a)[11]};var PCc={};var Fka=function(a,b){this.injector=a;this.parentInjector=b};Fka.prototype.get=function(a,b,c){var d=this.injector.get(a,PCc,c);return d!==PCc||b===PCc?d:this.parentInjector.get(a,b,c)};var eha=/^>|^->|\x3c!--|--\x3e|--!>|<!-$/g,fha=/(<|>)/g;var Jd={};var Be=function(){};Be.__NG_ELEMENT_ID__=nha;Be.__NG_ENV_ID__=function(a){return a};var Md=function(a){this._lView=a};Z(Md,Be);Md.__NG_ENV_ID__=Be.__NG_ENV_ID__;Md.__NG_ELEMENT_ID__=Be.__NG_ELEMENT_ID__;Md.prototype.onDestroy=function(a){var b=this._lView;aga(b,a);return function(){if(b[21]!==null){var c=b[21].indexOf(a);c!==-1&&b[21].splice(c,1)}}};da.Object.defineProperties(Md.prototype,{destroyed:{configurable:!0,enumerable:!0,get:function(){return(this._lView[2]&256)===256}}});var QCc=function(a){var b=Error.call(this,a?a.length+" errors occurred during unsubscription:\n"+a.map(function(c,d){return d+1+") "+c.toString()}).join("\n  "):"");this.message=b.message;"stack"in b&&(this.stack=b.stack);this.errors=a;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};Z(QCc,Error);var Od=function(a){this.initialTeardown=a;this.closed=!1;this._teardowns=this._parentage=null};h=Od.prototype;
h.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(Nd(b))try{b()}catch(f){var d=f instanceof QCc?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{Nd(c)?c():c.unsubscribe()}catch(f){c=void 0,d=(c=d)!=null?c:[],f instanceof QCc?d=[].concat(n(d),n(f.errors)):d.push(f)}}if(d)throw new QCc(d);
}};h.add=function(a){if(a&&a!==this)if(this.closed)Nd(a)?a():a.unsubscribe();else{if(a instanceof Od){if(a.closed||a._hasParent(this))return;a._addParent(this)}var b;(this._teardowns=(b=this._teardowns)!=null?b:[]).push(a)}};h._hasParent=function(a){var b=this._parentage;return b===a||Array.isArray(b)&&b.includes(a)};h._addParent=function(a){var b=this._parentage;this._parentage=Array.isArray(b)?(b.push(a),b):b?[b,a]:a};
h._removeParent=function(a){var b=this._parentage;b===a?this._parentage=null:Array.isArray(b)&&oha(b,a)};h.remove=function(a){var b=this._teardowns;b&&oha(b,a);a instanceof Od&&a._removeParent(this)};var RCc=new Od;RCc.closed=!0;Od.EMPTY=RCc;var qha=function(){setTimeout.apply(null,n(Yc.apply(0,arguments)))};var Jx=function(a){Od.call(this);this.isStopped=!1;this.destination=a instanceof Jx?a:new SCc(!a||Nd(a)?{next:a!=null?a:void 0}:a);pha(a)&&a.add(this)};Z(Jx,Od);Jx.EMPTY=Od.EMPTY;Jx.create=function(a,b,c){return new de(a,b,c)};h=Jx.prototype;h.next=function(a){this.isStopped||this._next(a)};h.error=function(a){this.isStopped||(this.isStopped=!0,this._error(a))};h.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())};h.unsubscribe=function(){this.closed||(this.isStopped=!0,Od.prototype.unsubscribe.call(this))};
h._next=function(a){this.destination.next(a)};h._error=function(a){this.destination.error(a);this.unsubscribe()};h._complete=function(){this.destination.complete();this.unsubscribe()};var SCc=function(a){this.partialObserver=a};SCc.prototype.next=function(a){var b=this.partialObserver;if(b.next)try{b.next(a)}catch(c){rha(c)}};SCc.prototype.error=function(a){var b=this.partialObserver;if(b.error)try{b.error(a)}catch(c){rha(c)}else rha(a)};
SCc.prototype.complete=function(){var a=this.partialObserver;if(a.complete)try{a.complete()}catch(b){rha(b)}};var de=function(a,b,c){Jx.call(this);var d;Nd(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 SCc(d)};Z(de,Jx);de.EMPTY=Jx.EMPTY;de.create=Jx.create;var zha=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Sd=function(a){a&&(this._subscribe=a)};h=Sd.prototype;h.lift=function(a){var b=new Sd;b.source=this;b.operator=a;return b};h.subscribe=function(a,b,c){a=a&&a instanceof Jx||a&&Nd(a.next)&&Nd(a.error)&&Nd(a.complete)&&pha(a)?a:new de(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};h._trySubscribe=function(a){try{return this._subscribe(a)}catch(b){a.error(b)}};
h.forEach=function(a,b){var c=this;b=tha(b);return new b(function(d,e){var f=c.subscribe(function(g){try{a(g)}catch(k){e(k),f==null||f.unsubscribe()}},e,d)})};h._subscribe=function(a){var b;return(b=this.source)==null?void 0:b.subscribe(a)};Sd.prototype[zha]=function(){return this};Sd.prototype.pipe=function(){var a=Yc.apply(0,arguments);return a.length?sha(a)(this):this};Sd.create=function(a){return new Sd(a)};var TCc=function(){var a=Error.call(this,"object unsubscribed");this.message=a.message;"stack"in a&&(this.stack=a.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};Z(TCc,Error);var rf=function(){this.observers=[];this.hasError=this.isStopped=this.closed=!1;this.thrownError=null};Z(rf,Sd);h=rf.prototype;h.lift=function(a){var b=new Kx(this,this);b.operator=a;return b};h._throwIfClosed=function(){if(this.closed)throw new TCc;};h.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)};
h.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)}};h.complete=function(){this._throwIfClosed();if(!this.isStopped){this.isStopped=!0;for(var a=this.observers;a.length;)a.shift().complete()}};h.unsubscribe=function(){this.isStopped=this.closed=!0;this.observers=null};h._trySubscribe=function(a){this._throwIfClosed();return Sd.prototype._trySubscribe.call(this,a)};
h._subscribe=function(a){this._throwIfClosed();this._checkFinalizedStatuses(a);return this._innerSubscribe(a)};h._innerSubscribe=function(a){var b=this,c=this.isStopped,d=this.observers;return this.hasError||c?Od.EMPTY:(d.push(a),new Od(function(){return oha(b.observers,a)}))};h._checkFinalizedStatuses=function(a){var b=this.thrownError,c=this.isStopped;this.hasError?a.error(b):c&&a.complete()};h.asObservable=function(){var a=new Sd;a.source=this;return a};
da.Object.defineProperties(rf.prototype,{observed:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.observers)==null?void 0:a.length)>0}}});rf.create=function(a,b){return new Kx(a,b)};var Kx=function(a,b){rf.call(this);this.destination=a;this.source=b};Z(Kx,rf);Kx.create=rf.create;Kx.prototype.next=function(a){var b,c;(b=this.destination)==null||(c=b.next)==null||c.call(b,a)};Kx.prototype.error=function(a){var b,c;(b=this.destination)==null||(c=b.error)==null||c.call(b,a)};
Kx.prototype.complete=function(){var a,b;(a=this.destination)==null||(b=a.complete)==null||b.call(a)};Kx.prototype._subscribe=function(a){var b,c;return(c=(b=this.source)==null?void 0:b.subscribe(a))!=null?c:Od.EMPTY};var Xj=function(a){rf.call(this);this._value=a};Z(Xj,rf);Xj.create=rf.create;Xj.prototype._subscribe=function(a){var b=rf.prototype._subscribe.call(this,a);!b.closed&&a.next(this._value);return b};Xj.prototype.getValue=function(){var a=this.thrownError,b=this._value;if(this.hasError)throw a;this._throwIfClosed();return b};Xj.prototype.next=function(a){rf.prototype.next.call(this,this._value=a)};da.Object.defineProperties(Xj.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var re=new Sd(function(a){return a.complete()});var xha=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var Dha=function(a){return a&&typeof a.length==="number"&&typeof a!=="function"};var sf=function(a,b,c){this.kind=a;this.value=b;this.error=c;this.hasValue=a==="N"};sf.prototype.observe=function(a){return Oha(this,a)};sf.prototype.accept=function(a,b,c){if(Nd(a==null?void 0:a.next))a=this.observe(a);else{var d=this.kind,e=this.value,f=this.error;a=d==="N"?a==null?void 0:a(e):d==="E"?b==null?void 0:b(f):c==null?void 0:c()}return a};sf.createError=function(a){return new sf("E",void 0,a)};var Bla=new sf("C");var UCc={now:function(){return(UCc.delegate||Date).now()},delegate:void 0};var vf=function(a,b,c){a=a===void 0?Infinity:a;b=b===void 0?Infinity:b;c=c===void 0?UCc:c;rf.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)};Z(vf,rf);vf.create=rf.create;
vf.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));VCc(this);rf.prototype.next.call(this,a)};vf.prototype._subscribe=function(a){this._throwIfClosed();VCc(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 VCc=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 XCc=function(a,b){b=b===void 0?WCc:b;this.schedulerActionCtor=a;this.now=b};XCc.prototype.schedule=function(a,b,c){b=b===void 0?0:b;return(new this.schedulerActionCtor(this,a)).schedule(c,b)};var WCc=UCc.now;var Pha=function(){var a=Error.call(this,"no elements in sequence");this.message=a.message;"stack"in a&&(this.stack=a.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};Z(Pha,Error);var ge=function(a,b,c,d,e){Jx.call(this,a);this.onUnsubscribe=e;b&&(this._next=function(f){try{b(f)}catch(g){this.destination.error(g)}});c&&(this._error=function(f){try{c(f)}catch(g){this.destination.error(g)}this.unsubscribe()});d&&(this._complete=function(){try{d()}catch(f){this.destination.error(f)}this.unsubscribe()})};Z(ge,Jx);ge.EMPTY=Jx.EMPTY;ge.create=Jx.create;ge.prototype.unsubscribe=function(){var a;this.closed||(a=this.onUnsubscribe)!=null&&a.call(this);Jx.prototype.unsubscribe.call(this)};var tf=function(a,b){this.source=a;this.subjectFactory=b;this._subject=null;this._refCount=0;this._connection=null};Z(tf,Sd);tf.create=Sd.create;tf.prototype._subscribe=function(a){return YCc(this).subscribe(a)};var YCc=function(a){var b=a._subject;if(!b||b.isStopped)a._subject=a.subjectFactory();return a._subject};tf.prototype._teardown=function(){this._refCount=0;var a=this._connection;this._subject=this._connection=null;a==null||a.unsubscribe()};
tf.prototype.connect=function(){var a=this,b=this._connection;if(!b){b=this._connection=new Od;var c=YCc(this);b.add(this.source.subscribe(new ge(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=Od.EMPTY)}return b};tf.prototype.refCount=function(){return Qha()(this)};var Tha=Array.isArray;var Vha=Array.isArray,ZCc=Object,Wha=ZCc.getPrototypeOf,Xha=ZCc.prototype,Yha=ZCc.keys;var bia=function(a,b,c){Jx.call(this,a);this._next=b;this.shouldComplete=c};Z(bia,Jx);bia.EMPTY=Jx.EMPTY;bia.create=Jx.create;bia.prototype._complete=function(){this.shouldComplete()?Jx.prototype._complete.call(this):this.unsubscribe()};var $Cc=function(){return requestAnimationFrame.apply(null,n(Yc.apply(0,arguments)))},aDc=function(){cancelAnimationFrame.apply(null,n(Yc.apply(0,arguments)))};var fia=["addListener","removeListener"],eia=["addEventListener","removeEventListener"],hia=["on","off"];var Lx=function(){Od.call(this)};Z(Lx,Od);Lx.EMPTY=Od.EMPTY;Lx.prototype.schedule=function(){return this};var bDc=function(a,b){return setInterval.apply(null,[a,b].concat(n(Yc.apply(2,arguments))))};var Mx=function(a,b){Od.call(this);this.scheduler=a;this.work=b;this.pending=!1};Z(Mx,Lx);Mx.EMPTY=Lx.EMPTY;h=Mx.prototype;h.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};h.requestAsyncId=function(a,b,c){c=c===void 0?0:c;return bDc(a.flush.bind(a,this),c)};
h.recycleAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!=null&&this.delay===c&&this.pending===!1)return b;clearInterval(b)};h.execute=function(a,b){if(this.closed)return Error("ya");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))};h._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};
h.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;oha(c,this);a!=null&&(this.id=this.recycleAsyncId(b,a,null));this.delay=null;Lx.prototype.unsubscribe.call(this)}};var Nx=function(a,b){b=b===void 0?WCc:b;XCc.call(this,a,b);this.actions=[];this.active=!1;this.scheduled=void 0};Z(Nx,XCc);Nx.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 pe=new Nx(Mx);var Ox=new Sd(Pd);var lia=Array.isArray;var qia=function(a){var b=Error.call(this,"Timeout has occurred");this.message=b.message;"stack"in b&&(this.stack=b.stack);this.info=a===void 0?null:a;Object.setPrototypeOf(this,this.constructor.prototype);this.name="TimeoutError"};Z(qia,Error);var cDc=function(a,b){Mx.call(this,a,b);this.scheduler=a;this.work=b};Z(cDc,Mx);cDc.EMPTY=Mx.EMPTY;cDc.prototype.requestAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!==null&&c>0)return Mx.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=$Cc(function(){return a.flush(void 0)}))};
cDc.prototype.recycleAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!=null&&c>0||c==null&&this.delay>0)return Mx.prototype.recycleAsyncId.call(this,a,b,c);a.actions.length===0&&(aDc(b),a.scheduled=void 0)};var dDc=function(){Nx.apply(this,arguments)};Z(dDc,Nx);dDc.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 eDc=new dDc(cDc);var fDc=1,gDc,ria={},hDc=function(a){var b=fDc++;ria[b]=!0;gDc||(gDc=Promise.resolve());gDc.then(function(){return sia(b)&&a()});return b};var iDc=function(){return hDc.apply(null,n(Yc.apply(0,arguments)))};var jDc=function(a,b){Mx.call(this,a,b);this.scheduler=a;this.work=b};Z(jDc,Mx);jDc.EMPTY=Mx.EMPTY;jDc.prototype.requestAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!==null&&c>0)return Mx.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=iDc(a.flush.bind(a,void 0)))};
jDc.prototype.recycleAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!=null&&c>0||c==null&&this.delay>0)return Mx.prototype.recycleAsyncId.call(this,a,b,c);a.actions.length===0&&(sia(b),a.scheduled=void 0)};var kDc=function(){Nx.apply(this,arguments)};Z(kDc,Nx);kDc.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 Rr=new kDc(jDc);var Px=function(a,b){Mx.call(this,a,b);this.scheduler=a;this.work=b};Z(Px,Mx);Px.EMPTY=Mx.EMPTY;Px.prototype.schedule=function(a,b){b=b===void 0?0:b;if(b>0)return Mx.prototype.schedule.call(this,a,b);this.delay=b;this.state=a;this.scheduler.flush(this);return this};Px.prototype.execute=function(a,b){return b>0||this.closed?Mx.prototype.execute.call(this,a,b):this._execute(a,b)};
Px.prototype.requestAsyncId=function(a,b,c){c=c===void 0?0:c;return c!=null&&c>0||c==null&&this.delay>0?Mx.prototype.requestAsyncId.call(this,a,b,c):a.flush(this)};var lDc=function(){Nx.apply(this,arguments)};Z(lDc,Nx);var Rha=new lDc(Px);var Wg=function(){this.taskId=0;this.pendingTasks=new Set;this.destroyed=!1;this.pendingTask=new Xj(!1)};Wg.prototype.add=function(){this.hasPendingTasks||this.destroyed||this.pendingTask.next(!0);var a=this.taskId++;this.pendingTasks.add(a);return a};Wg.prototype.has=function(a){return this.pendingTasks.has(a)};Wg.prototype.remove=function(a){this.pendingTasks.delete(a);this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)};
Wg.prototype.ngOnDestroy=function(){this.pendingTasks.clear();this.hasPendingTasks&&this.pendingTask.next(!1);this.destroyed=!0;this.pendingTask.unsubscribe()};da.Object.defineProperties(Wg.prototype,{hasPendingTasks:{configurable:!0,enumerable:!0,get:function(){return this.destroyed?!1:this.pendingTask.value}},hasPendingTasksObservable:{configurable:!0,enumerable:!0,get:function(){return this.destroyed?new Sd(function(a){a.next(!1);a.complete()}):this.pendingTask}}});
Wg.\u0275prov=Cc({token:Wg,providedIn:"root",factory:function(){return new Wg}});var ui=function(a){a=a===void 0?!1:a;rf.call(this);this.pendingTasks=this.destroyRef=void 0;this.__isAsync=a;if(gfa!==void 0||ifa!=null){var b;this.destroyRef=(b=q(Be,{optional:!0}))!=null?b:void 0;var c;this.pendingTasks=(c=q(Wg,{optional:!0}))!=null?c:void 0}};Z(ui,rf);ui.create=rf.create;ui.prototype.emit=function(a){var b=Fc(null);try{rf.prototype.next.call(this,a)}finally{Fc(b)}};
ui.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 g;c=(g=a.complete)==null?void 0:g.bind(a)}this.__isAsync&&(b=mDc(this,b),d&&(d=mDc(this,d)),c&&(c=mDc(this,c)));d=rf.prototype.subscribe.call(this,{next:d,error:b,complete:c});a instanceof Od&&a.add(d);return d};
var mDc=function(a,b){return function(c){var d,e=(d=a.pendingTasks)==null?void 0:d.add();setTimeout(function(){try{b(c)}finally{if(e!==void 0){var f;(f=a.pendingTasks)==null||f.remove(e)}}})}};var zia=0,Tg=function(a){this.hasPendingMicrotasks=this.hasPendingMacrotasks=!1;this.isStable=!0;this.onUnstable=new ui(!1);this.onMicrotaskEmpty=new ui(!1);this.onStable=new ui(!1);this.onError=new ui(!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 Pc(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;Cia(this)},AAa=function(){return typeof Zone!=="undefined"&&Zone.current.get("isAngularZone")===
!0},nDc=function(){if(AAa())throw new Pc(909,!1);};Tg.prototype.run=function(a,b,c){return this._inner.run(a,b,c)};Tg.prototype.runTask=function(a,b,c,d){var e=this._inner;a=e.scheduleEventTask("NgZoneEvent: "+d,a,oDc,tia,tia);try{return e.runTask(a,b,c)}finally{e.cancelTask(a)}};Tg.prototype.runGuarded=function(a,b,c){return this._inner.runGuarded(a,b,c)};Tg.prototype.runOutsideAngular=function(a){return this._outer.run(a)};
var oDc={},pDc=function(){this.hasPendingMacrotasks=this.hasPendingMicrotasks=!1;this.isStable=!0;this.onUnstable=new ui;this.onMicrotaskEmpty=new ui;this.onStable=new ui;this.onError=new ui};pDc.prototype.run=function(a,b,c){return a.apply(b,c)};pDc.prototype.runGuarded=function(a,b,c){return a.apply(b,c)};pDc.prototype.runOutsideAngular=function(a){return a()};pDc.prototype.runTask=function(a,b,c){return a.apply(b,c)};var Qx=function(){this._console=console};Qx.prototype.handleError=function(a){this._console.error("ERROR",a)};var Se=new bd("",{factory:function(){var a=q(Tg),b=q(Xe),c;return function(d){a.runOutsideAngular(function(){b.destroyed&&!c?setTimeout(function(){throw d;}):(c!=null||(c=b.get(Qx)),c.handleError(d))})}}}),qDc={provide:Ffa,useValue:function(){q(Qx,{optional:!0})},multi:!0};
new bd("",{factory:function(){var a=q(Yh).defaultView;if(a){var b=q(Se),c=function(f){b(f.reason);f.preventDefault()},d=function(f){f.error?b(f.error):b(Error(f.message,{cause:f}));f.preventDefault()},e=function(){a.addEventListener("unhandledrejection",c);a.addEventListener("error",d)};typeof Zone!=="undefined"?Zone.root.run(e):e();q(Be).onDestroy(function(){a.removeEventListener("error",d);a.removeEventListener("unhandledrejection",c)})}}});var Ria=new Set;var Ae=new bd("");var ye=function(){this.impl=null};ye.prototype.execute=function(){var a;(a=this.impl)==null||a.execute()};ye.\u0275prov=Cc({token:ye,providedIn:"root",factory:function(){return new ye}});var rDc=[0,1,2,3],ze=function(){this.ngZone=q(Tg);this.scheduler=q(Ze);this.errorHandler=q(Qx,{optional:!0});this.sequences=new Set;this.deferredRegistrations=new Set;this.executing=!1;q(Ae,{optional:!0})};
ze.prototype.execute=function(){var a=this.sequences.size>0;a&&Ad(16);this.executing=!0;for(var b=l(rDc),c=b.next(),d={};!c.done;d={phase:void 0},c=b.next()){d.phase=c.value;c=l(this.sequences);for(var e=c.next(),f={};!e.done;f={sequence:void 0},e=c.next())if(f.sequence=e.value,!f.sequence.erroredOrDestroyed&&f.sequence.hooks[d.phase])try{f.sequence.pipelinedValue=this.ngZone.runOutsideAngular(function(g,k){return function(){return sDc(function(){return(0,g.sequence.hooks[k.phase])(g.sequence.pipelinedValue)},
g.sequence.snapshot)}}(f,d))}catch(g){f.sequence.erroredOrDestroyed=!0,e=void 0,(e=this.errorHandler)==null||e.handleError(g)}}this.executing=!1;b=l(this.sequences);for(d=b.next();!d.done;d=b.next())d=d.value,d.afterRun(),d.once&&(this.sequences.delete(d),d.destroy());b=l(this.deferredRegistrations);for(d=b.next();!d.done;d=b.next())this.sequences.add(d.value);this.deferredRegistrations.size>0&&this.scheduler.notify(7);this.deferredRegistrations.clear();a&&Ad(17)};
ze.prototype.register=function(a){var b=a.view;if(b!==void 0){var c;((c=b[25])!=null?c:b[25]=[]).push(a);md(b);b[2]|=8192}else this.executing?this.deferredRegistrations.add(a):(this.sequences.add(a),this.scheduler.notify(7))};ze.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 sDc=function(a,b){return b?b.run(1,a):a()};
ze.\u0275prov=Cc({token:ze,providedIn:"root",factory:function(){return new ze}});var Ce=function(a,b,c,d,e,f){var g=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 g.destroy()})};Ce.prototype.afterRun=function(){this.erroredOrDestroyed=!1;this.pipelinedValue=void 0;var a;(a=this.snapshot)==null||a.dispose();this.snapshot=null};
Ce.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 Fia=function(a,b){this.view=a;this.node=b};Fia.__NG_ELEMENT_ID__=Gia;var Hia=new Set;var Iia=new bd("",{factory:function(){return{queue:new Set,isScheduled:!1,scheduler:null,injector:q(Xe)}}});var $ia;var Via=Uia,Wia;var Ge=function(a){this.changingThisBreaksApplicationSecurity=a};Ge.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss)"};var tDc=function(){Ge.apply(this,arguments)};Z(tDc,Ge);tDc.prototype.getTypeName=function(){return"HTML"};var uDc=function(){Ge.apply(this,arguments)};Z(uDc,Ge);uDc.prototype.getTypeName=function(){return"URL"};
var vDc=function(){Ge.apply(this,arguments)};Z(vDc,Ge);vDc.prototype.getTypeName=function(){return"ResourceURL"};var hja;var lja=function(a){this.inertDocumentHelper=a};lja.prototype.getInertBodyElement=function(a){a="<body><remove></remove>"+a;try{var b=(new window.DOMParser).parseFromString(jja(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 kja=function(a){this.defaultDoc=a;this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")};
kja.prototype.getInertBodyElement=function(a){var b=this.inertDocument.createElement("template");b.innerHTML=jja(a);return b};var nja=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var wDc=Ke("area,br,col,hr,img,wbr"),xDc=Ke("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),yDc=Ke("rp,rt"),zDc=pja(yDc,xDc),ADc=pja(xDc,Ke("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")),BDc=pja(yDc,Ke("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")),
xja=pja(wDc,ADc,BDc,zDc),zja=Ke("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),CDc=Ke("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"),
DDc=Ke("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"),
yja=pja(zja,CDc,DDc),Aja=Ke("script,style,template"),vja=function(){this.buf=[]};vja.prototype.endElement=function(a){a=qja(a).toLowerCase();xja.hasOwnProperty(a)&&!wDc.hasOwnProperty(a)&&(this.buf.push("</"),this.buf.push(a),this.buf.push(">"))};var rja=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,sja=/([^#-~ |!])/g,uja;var EDc={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 Cja;var Kka=Symbol("Da");new bd("");var uka=[],vka=Object.assign({},Cx,{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:function(a){md(a.lView)},consumerOnSignalRead:function(){this.lView[24]=this}}),wka=Object.assign({},Cx,{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:function(a){for(a=nd(a.lView);a&&a[1].type===2;)a=nd(a);a&&Yfa(a)},consumerOnSignalRead:function(){this.lView[24]=this}});var Sg=function(a,b){this._lView=a;this._cdRefInjectingView=b;this._appRef=null;this._attachedToViewContainer=!1};h=Sg.prototype;h.destroy=function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var a=this._lView[3];if(gd(a)){var b=a[8],c=b?b.indexOf(this):-1;c>-1&&(Bka(a,c),vfa(b,c))}this._attachedToViewContainer=!1}Qia(this._lView[1],this._lView)};h.onDestroy=function(a){aga(this._lView,a)};
h.markForCheck=function(){mha(this._cdRefInjectingView||this._lView,4)};h.detach=function(){this._lView[2]&=-129};h.reattach=function(){$fa(this._lView);this._lView[2]|=128};h.detectChanges=function(){this._lView[2]|=1024;ska(this._lView)};
da.Object.defineProperties(Sg.prototype,{rootNodes:{configurable:!0,enumerable:!0,get:function(){var a=this._lView,b=a[1];return oka(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 Hka=function(){};Hka.\u0275prov=Cc({token:Hka,providedIn:"root",factory:function(){return null}});var FDc=function(a){this.ngModule=a};Z(FDc,HCc);var GDc=function(a,b){return new dh(b[Zc]||null,a.ngModule)},dh=function(a,b){this.componentDef=a;this.ngModule=b;this.cachedOutputs=this.cachedInputs=null;this.componentType=a.type;this.selector=a.selectors.map(Yga).join(",");var c;this.ngContentSelectors=(c=a.ngContentSelectors)!=null?c:[];this.isBoundToModule=!!b};Z(dh,OCc);
dh.prototype.create=function(a,b,c,d,e,f){Ad(22);var g=Fc(null);try{var k=this.componentDef,m=Nka(c,k,f,e),r=Gka(k,d||this.ngModule,a),w=Ika(r),x=w.rendererFactory.createRenderer(null,k),D=c?Nja(x,c,k.encapsulation,r):Jka(k,x),H=(f==null?void 0:f.some(Oka))||(e==null?void 0:e.some(function(R){return typeof R!=="function"&&R.bindings.some(Oka)})),J=dja(null,m,null,512|eja(k),null,null,w,x,r,null,null);J[27]=D;lga(J);a=null;try{var O=lka(27,J,2,"#host",function(){return m.directiveRegistry},0);hha(x,
D,O);Fd(D,J);Lja(m,J,O);bka(m,O,J);mka(m,O);b!==void 0&&Pka(O,this.ngContentSelectors,b);a=kd(O.index,J);J[8]=a[8];dka(m,J,null)}catch(R){throw a!==null&&aha.delete(a[19]),aha.delete(J[19]),R;}finally{Ad(23),oga()}return new Rx(this.componentType,J,!!H)}finally{Fc(g)}};
da.Object.defineProperties(dh.prototype,{inputs:{configurable:!0,enumerable:!0,get:function(){this.cachedInputs!=null||(this.cachedInputs=Dka(this.componentDef.inputs));return this.cachedInputs}},outputs:{configurable:!0,enumerable:!0,get:function(){this.cachedOutputs!=null||(this.cachedOutputs=Eka(this.componentDef.outputs));return this.cachedOutputs}}});
var Rx=function(a,b,c){this._rootLView=b;this._hasInputBindings=c;this.previousInputValues=null;this._tNode=b[1].data[27];this.location=Hd(this._tNode,b);this.instance=kd(this._tNode.index,b)[8];this.hostView=this.changeDetectorRef=new Sg(b,void 0);this.componentType=a};Z(Rx,NCc);
Rx.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;Oe(c,d[1],d,a,b);this.previousInputValues.set(a,b);a=kd(c.index,d);mha(a,1)}};Rx.prototype.destroy=function(){this.hostView.destroy()};Rx.prototype.onDestroy=function(a){this.hostView.onDestroy(a)};
da.Object.defineProperties(Rx.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return new Dd(this._tNode,this._rootLView)}}});var Sx=function(a,b,c,d){d=d===void 0?!0:d;this.ngModuleType=a;this._parent=b;this._bootstrapComponents=[];this.destroyCbs=[];this.componentFactoryResolver=new FDc(this);var e=(a[wCc]||null).bootstrap;this._bootstrapComponents=e instanceof Function?e():e;this._r3Injector=Tga(a,b,[{provide:Ix,useValue:this},{provide:HCc,useValue:this.componentFactoryResolver}].concat(n(c)),Nc(a),new Set(["environment"]));d&&this.resolveInjectorInitializers()};Z(Sx,Ix);
Sx.prototype.resolveInjectorInitializers=function(){this._r3Injector.resolveInjectorInitializers();this.instance=this._r3Injector.get(this.ngModuleType)};Sx.prototype.destroy=function(){var a=this._r3Injector;!a.destroyed&&a.destroy();this.destroyCbs.forEach(function(b){return b()});this.destroyCbs=null};Sx.prototype.onDestroy=function(a){this.destroyCbs.push(a)};da.Object.defineProperties(Sx.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return this._r3Injector}}});
var Kza=function(a){this.moduleType=a};Z(Kza,Jza);Kza.prototype.create=function(a){return new Sx(this.moduleType,a,[])};var Qka=function(a){this.componentFactoryResolver=new FDc(this);this.instance=null;var b=new dd([].concat(n(a.providers),[{provide:Ix,useValue:this},{provide:HCc,useValue:this.componentFactoryResolver}]),a.parent||Kfa(),a.debugName,new Set(["environment"]));this.injector=b;a.runEnvironmentInitializers&&b.resolveInjectorInitializers()};Z(Qka,Ix);Qka.prototype.destroy=function(){this.injector.destroy()};
Qka.prototype.onDestroy=function(a){this.injector.onDestroy(a)};var Tka=function(a){this._injector=a;this.cachedInjectors=new Map};Tka.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()}};Tka.\u0275prov=Cc({token:Tka,providedIn:"environment",factory:function(){return new Tka(Wc(Xe))}});var $ka=new bd(""),Xg=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=q($ka,{optional:!0}))!=null?b:[];this.injector=q(xe)},hpa=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=ed(a.injector,d.value),Yka(e.initResult)?b.push(e.initResult):Zka(e.initResult)&&(d=new Promise(function(f){return function(g,k){f.initResult.subscribe({complete:g,
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}};Xg.\u0275fac=function(a){return new (a||Xg)};Xg.\u0275prov=Cc({token:Xg,factory:Xg.\u0275fac,providedIn:"root"});var Tx=function(){};Tx.prototype.log=function(a){console.log(a)};Tx.prototype.warn=function(a){console.warn(a)};Tx.\u0275fac=function(a){return new (a||Tx)};Tx.\u0275prov=Cc({token:Tx,factory:Tx.\u0275fac,providedIn:"platform"});var dla=function(){};dla.\u0275prov=Cc({token:dla,providedIn:"root",factory:function(){return new HDc}});var HDc=function(){this.dirtyEffectCount=0;this.queues=new Map};h=HDc.prototype;h.add=function(a){this.enqueue(a);this.schedule(a)};h.schedule=function(a){a.dirty&&this.dirtyEffectCount++};h.remove=function(a){var b=this.queues.get(a.zone);b.has(a)&&(b.delete(a),a.dirty&&this.dirtyEffectCount--)};
h.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)||b.add(a)};h.flush=function(){for(var a=this;this.dirtyEffectCount>0;){for(var b=!1,c=l(this.queues),d=c.next(),e={};!d.done;e={queue$jscomp$4:void 0},d=c.next()){var f=l(d.value);d=f.next().value;f=f.next().value;e.queue$jscomp$4=f;d===null?b||(b=IDc(this,e.queue$jscomp$4)):b||(b=d.run(function(g){return function(){return IDc(a,g.queue$jscomp$4)}}(e)))}b||(this.dirtyEffectCount=0)}};
var IDc=function(a,b){var c=!1;b=l(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.dirty&&(a.dirtyEffectCount--,c=!0,d.run());return c};var ela=function(a){this[Kc]=a};ela.prototype.destroy=function(){this[Kc].destroy()};
var JDc=Object.assign({},vCc,{cleanupFns:void 0,zone:null,onDestroyFns:null,run:function(){var a=gga(!1);try{if(this.dirty=!1,!(this.version>0)||Nea(this)){this.version++;var b=Ic(this);try{this.cleanup(),this.fn()}finally{Sea(this,b)}}}finally{gga(a)}},cleanup:function(){var a;if((a=this.cleanupFns)!=null&&a.length){a=Fc(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],Fc(a)}}}}),hla=Object.assign({},JDc,{consumerMarkedDirty:function(){this.scheduler.schedule(this);
this.notifier.notify(12)},destroy:function(){Tea(this);if(this.onDestroyFns!==null)for(var a=l(this.onDestroyFns),b=a.next();!b.done;b=a.next())b=b.value,b();this.cleanup();this.scheduler.remove(this)}}),fla=Object.assign({},JDc,{consumerMarkedDirty:function(){this.view[2]|=8192;md(this.view);this.notifier.notify(13)},destroy:function(){Tea(this);if(this.onDestroyFns!==null)for(var a=l(this.onDestroyFns),b=a.next();!b.done;b=a.next())b=b.value,b();this.cleanup();var c;(c=this.view[23])==null||c.delete(this)}});var KDc=new bd(""),LDc=new bd(""),Ux=function(a,b,c){var d=this;this._ngZone=a;this.registry=b;this._isZoneStable=!0;this._callbacks=[];this._taskTrackingZone=null;if(gfa!==void 0||ifa!=null){var e;this._destroyRef=(e=q(Be,{optional:!0}))!=null?e:void 0}MDc||(MDc=c,NDc(b));this._watchAngularEvents();a.run(function(){d._taskTrackingZone=typeof Zone=="undefined"?null:Zone.current.get("TaskTrackingZone")})};
Ux.prototype._watchAngularEvents=function(){var a=this,b=this._ngZone.onUnstable.subscribe({next:function(){a._isZoneStable=!1}}),c=this._ngZone.runOutsideAngular(function(){return a._ngZone.onStable.subscribe({next:function(){nDc();queueMicrotask(function(){a._isZoneStable=!0;a._runCallbacksIfReady()})}})}),d;(d=this._destroyRef)==null||d.onDestroy(function(){b.unsubscribe();c.unsubscribe()})};Ux.prototype.isStable=function(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks};
Ux.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=ODc(this);this._callbacks=this._callbacks.filter(function(c){return c.updateCb&&c.updateCb(b)?(clearTimeout(c.timeoutId),!1):!0})}};
var ODc=function(a){return a._taskTrackingZone?a._taskTrackingZone.macroTasks.map(function(b){return{source:b.source,creationLocation:b.creationLocation,data:b.data}}):[]};h=Ux.prototype;h.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})};
h.whenStable=function(a,b,c){if(c&&!this._taskTrackingZone)throw Error("Fa");this.addCallback(a,b,c);this._runCallbacksIfReady()};h.registerApplication=function(a){this.registry.registerApplication(a,this)};h.unregisterApplication=function(a){this.registry.unregisterApplication(a)};h.findProviders=function(){return[]};Ux.\u0275fac=function(a){return new (a||Ux)(Wc(Tg),Wc(Vx),Wc(LDc))};Ux.\u0275prov=Cc({token:Ux,factory:Ux.\u0275fac});var Vx=function(){this._applications=new Map};
Vx.prototype.registerApplication=function(a,b){this._applications.set(a,b)};Vx.prototype.unregisterApplication=function(a){this._applications.delete(a)};Vx.prototype.findTestabilityInTree=function(a,b){var c,d;return(d=(c=MDc)==null?void 0:c.findTestabilityInTree(this,a,b===void 0?!0:b))!=null?d:null};Vx.\u0275fac=function(a){return new (a||Vx)};Vx.\u0275prov=Cc({token:Vx,factory:Vx.\u0275fac,providedIn:"platform"});var MDc;var yla=function(){ge.apply(this,arguments);this.activeGroups=0;this.teardownAttempted=!1};Z(yla,ge);yla.EMPTY=ge.EMPTY;yla.create=ge.create;yla.prototype.unsubscribe=function(){this.teardownAttempted=!0;this.activeGroups===0&&ge.prototype.unsubscribe.call(this)};var Nla={leading:!0,trailing:!1};var PDc=new bd(""),Yg=function(){var a=this;this._destroyed=this._runningTick=!1;this._destroyListeners=[];this._views=[];this.internalErrorHandler=q(Se);this.afterRenderManager=q(ye);this.zonelessEnabled=q(apa);this.rootEffectScheduler=q(dla);this.dirtyFlags=0;this.tracingSnapshot=null;this.autoDetectTestViews=new Set;this.afterTick=new rf;this.componentTypes=[];this.components=[];this.internalPendingTask=q(Wg);this._injector=q(Xe);this._rendererFactory=null;this.tickImpl=function(){if(a._runningTick)throw Ad(13),
new Pc(101,!1);var b=Fc(null);try{a._runningTick=!0;a._rendererFactory!==null||a._injector.destroyed||(a._rendererFactory=a._injector.get(Ye,null,{optional:!0}));for(var c=0;a.dirtyFlags!==0&&c++<10;){Ad(14);try{a:{var d=void 0,e=void 0,f=void 0,g=void 0;a.dirtyFlags&16&&(a.dirtyFlags&=-17,a.rootEffectScheduler.flush());var k=!1;if(a.dirtyFlags&7){var m=!!(a.dirtyFlags&1);a.dirtyFlags&=-8;a.dirtyFlags|=8;for(var r=l(a.allViews),w=r.next();!w.done;w=r.next()){var x=w.value._lView;if(m||Zfa(x))ska(x,
m&&!a.zonelessEnabled?0:1),k=!0}a.dirtyFlags&=-5;QDc(a);if(a.dirtyFlags&23)break a}k||((g=a._rendererFactory)==null||(f=g.begin)==null||f.call(g),(e=a._rendererFactory)==null||(d=e.end)==null||d.call(e));a.dirtyFlags&8&&(a.dirtyFlags&=-9,a.afterRenderManager.execute());QDc(a)}}finally{Ad(15)}}}finally{a._runningTick=!1;var D;(D=a.tracingSnapshot)==null||D.dispose();a.tracingSnapshot=null;Fc(b);a.afterTick.next();Ad(13)}};q(Ae,{optional:!0})};
Yg.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()})};Yg.prototype.bootstrap=function(a,b){return RDc(this,a,b)};
var RDc=function(a,b,c){var d=d===void 0?GCc:d;return a._injector.get(Tg).run(function(){Ad(10);var e=b instanceof OCc;if(!a._injector.get(Xg).done)throw new Pc(405,"");var f;e?f=b:f=GDc(a._injector.get(HCc),b);a.componentTypes.push(f.componentType);e=f.isBoundToModule?void 0:a._injector.get(Ix);var g=f.create(d,[],c||f.selector,e),k=g.location.nativeElement,m=g.injector.get(KDc,null);m==null||m.registerApplication(k);g.onDestroy(function(){a.detachView(g.hostView);Rla(a.components,g);m==null||m.unregisterApplication(k)});
a._loadComponent(g);Ad(11,g);return g})};Yg.prototype.tick=function(){this.zonelessEnabled||(this.dirtyFlags|=1);this._tick()};Yg.prototype._tick=function(){Ad(12);this.tracingSnapshot!==null?this.tracingSnapshot.run(0,this.tickImpl):this.tickImpl()};
var QDc=function(a){a.allViews.some(function(b){return Zfa(b._lView)})?a.dirtyFlags|=2:a.dirtyFlags&=-8},SDc=function(a,b){a._views.push(b);if(b._attachedToViewContainer)throw new Pc(902,!1);b._appRef=a;a=(b._lView[2]&512)!==0;var c=b._lView[16];c===null||a||zka(c,b._lView);$fa(b._lView)};h=Yg.prototype;h.detachView=function(a){Rla(this._views,a);a._appRef=null;var b=(a._lView[2]&512)!==0,c=a._lView[16];c===null||b||Oia(c,a._lView);Nia(a._lView[1],a._lView)};
h._loadComponent=function(a){SDc(this,a.hostView);try{this.tick()}catch(b){this.internalErrorHandler(b)}this.components.push(a);this._injector.get(PDc,[]).forEach(function(b){return b(a)})};h.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=[]}};
h.onDestroy=function(a){var b=this;this._destroyListeners.push(a);return function(){return Rla(b._destroyListeners,a)}};h.destroy=function(){if(this._destroyed)throw new Pc(406,!1);var a=this._injector;a.destroy&&!a.destroyed&&a.destroy()};
da.Object.defineProperties(Yg.prototype,{allViews:{configurable:!0,enumerable:!0,get:function(){return[].concat(n(this.autoDetectTestViews.keys()),n(this._views))}},destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}},isStable:{configurable:!0,enumerable:!0,get:function(){return this.internalPendingTask.hasPendingTasksObservable.pipe(A(function(a){return!a}))}},injector:{configurable:!0,enumerable:!0,get:function(){return this._injector}},viewCount:{configurable:!0,enumerable:!0,
get:function(){return this._views.length}}});Yg.\u0275fac=function(a){return new (a||Yg)};Yg.\u0275prov=Cc({token:Yg,factory:Yg.\u0275fac,providedIn:"root"});var TDc=new Map;new bd("DEFER_BLOCK_DEPENDENCY_INTERCEPTOR");new bd("");var Wx=function(){this.internalPendingTasks=q(Wg);this.scheduler=q(Ze);this.errorHandler=q(Se)};Wx.prototype.add=function(){var a=this,b=this.internalPendingTasks.add();return function(){a.internalPendingTasks.has(b)&&(a.scheduler.notify(11),a.internalPendingTasks.remove(b))}};Wx.prototype.run=function(a){var b=this.add();a().catch(this.errorHandler).finally(b)};Wx.\u0275prov=Cc({token:Wx,providedIn:"root",factory:function(){return new Wx}});var ig=function(){};ig.__NG_ELEMENT_ID__=kma;var Gf=function(a,b,c){this._lContainer=a;this._hostTNode=b;this._hostLView=c};Z(Gf,ig);Gf.__NG_ELEMENT_ID__=ig.__NG_ELEMENT_ID__;h=Gf.prototype;h.clear=function(){for(;this.length>0;)this.remove(this.length-1)};h.get=function(a){var b=this._lContainer[8];return b!==null&&b[a]||null};
h.createEmbeddedView=function(a,b,c){if(typeof c==="number")var d=c;else if(c!=null){d=c.index;var e=c.injector}a=UDc(a,b||{},e,null);VDc(this,a,d,Ef(this._hostTNode,null));return a};
h.createComponent=function(a,b,c,d,e,f,g){var k=a&&typeof a!=="function";k||(g=b||{},b=g.index,c=g.injector,d=g.projectableNodes,e=g.environmentInjector||g.ngModuleRef,f=g.directives,g=g.bindings);a=k?a:new dh(a[Zc]||null);c=c||this.parentInjector;e||a.ngModule!=null||(k=(k?c:this.parentInjector).get(Xe,null))&&(e=k);d=a.create(c,d,null,e,f,g);VDc(this,d.hostView,b,Ef(this._hostTNode,null));return d};h.insert=function(a,b){return VDc(this,a,b,!0)};
var VDc=function(a,b,c,d){var e=b._lView;if(gd(e[3])){var f=a.indexOf(b);f!==-1?a.detach(f):(f=e[3],f=new Gf(f,f[5],f[3]),f.detach(f.indexOf(b)))}c=a._adjustIndex(c);a=a._lContainer;Aka(a,e,c,d);if(b._appRef)throw new Pc(902,!1);b._attachedToViewContainer=!0;d=lma(a);c>=d.length?d.push(b):d.splice(c,0,b);return b};h=Gf.prototype;h.move=function(a,b){return this.insert(a,b)};h.indexOf=function(a){var b=this._lContainer[8];return b!==null?b.indexOf(a):-1};
h.remove=function(a){a=this._adjustIndex(a,-1);var b=Bka(this._lContainer,a);b&&(vfa(lma(this._lContainer),a),Qia(b[1],b))};h.detach=function(a){a=this._adjustIndex(a,-1);var b=Bka(this._lContainer,a);return b&&vfa(lma(this._lContainer),a)!=null?new Sg(b):null};h._adjustIndex=function(a,b){return a==null?this.length+(b===void 0?0:b):a};
da.Object.defineProperties(Gf.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return Hd(this._hostTNode,this._hostLView)}},injector:{configurable:!0,enumerable:!0,get:function(){return new Dd(this._hostTNode,this._hostLView)}},parentInjector:{configurable:!0,enumerable:!0,get:function(){var a=Fga(this._hostTNode,this._hostLView);if(a!==-1){var b=wga(a,this._hostLView);return new Dd(b[1].data[(a&32767)+8],b)}return new Dd(null,this._hostLView)}},length:{configurable:!0,enumerable:!0,
get:function(){return this._lContainer.length-10}}});var mma=nma;var oma=rma;var Dma=Symbol("Ia");var Oma=Bc({disabled:Bc}),Vma=Bc({max:Bc}),Xma=Bc({maxLength:Bc}),Wma=Bc({min:Bc}),Yma=Bc({minLength:Bc}),Qma=Bc({name:Bc}),Sma=Bc({readonly:Bc}),Tma=Bc({required:Bc}),Lma=Bc({controlValue:Bc}),Nma={disabled:"disabled",disabledReasons:"disabledReasons",errors:"errors",invalid:"invalid",max:"max",maxLength:"maxLength",min:"min",minLength:"minLength",name:"name",pattern:"pattern",readonly:"readonly",required:"required",touched:"touched"},Mma=Object.keys(Nma);var WDc=function(){};WDc.prototype.destroy=function(){};WDc.prototype.updateValue=function(){};var $ma=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)};WDc.prototype.move=function(a,b){this.attach(b,this.detach(a))};var ana=function(){this.kvMap=new Map;this._vMap=void 0};h=ana.prototype;h.has=function(a){return this.kvMap.has(a)};
h.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};h.get=function(a){return this.kvMap.get(a)};h.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)};
h.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 XDc=function(a,b,c){this.lContainer=a;this.$implicit=b;this.$index=c};da.Object.defineProperties(XDc.prototype,{$count:{configurable:!0,enumerable:!0,get:function(){return this.lContainer.length-10}}});var fna=function(a){this.hasEmptyBlock=!1;this.trackByFn=a;this.liveCollection=void 0},gna=function(a,b,c){this.lContainer=a;this.hostLView=b;this.templateTNode=c;this.operationsCounter=void 0;this.needsIndexUpdate=!1};Z(gna,WDc);h=gna.prototype;h.at=function(a){return yka(this.lContainer,a)[8].$implicit};
h.attach=function(a,b){var c=b[6];this.needsIndexUpdate||(this.needsIndexUpdate=a!==this.length);Aka(this.lContainer,b,a,Ef(this.templateTNode,c));b=this.lContainer;if(!(b.length<=10)&&(b=(a=b[10+a])?a[26]:void 0,a&&b&&b.detachedLeaveAnimationFns&&b.detachedLeaveAnimationFns.length>0)){c=a[9].get(Iia);if(b.detachedLeaveAnimationFns){for(var d=l(b.detachedLeaveAnimationFns),e=d.next();!e.done;e=d.next())c.queue.delete(e.value);b.detachedLeaveAnimationFns=void 0}Ria.delete(a);b.detachedLeaveAnimationFns=
void 0}};h.detach=function(a){this.needsIndexUpdate||(this.needsIndexUpdate=a!==this.length-1);var b=this.lContainer;b.length<=10||(b=(b=b[10+a])?b[26]:void 0)&&b.leave&&b.leave.size>0&&(b.detachedLeaveAnimationFns=[]);return Bka(this.lContainer,a)};h.create=function(a,b){a=Sla(this.hostLView,this.templateTNode,new XDc(this.lContainer,b,a),{dehydratedView:null});var c;(c=this.operationsCounter)==null||c.recordCreate();return a};
h.destroy=function(a){Qia(a[1],a);var b;(b=this.operationsCounter)==null||b.recordDestroy()};h.updateValue=function(a,b){yka(this.lContainer,a)[8].$implicit=b};h.reset=function(){this.needsIndexUpdate=!1;var a;(a=this.operationsCounter)==null||a.reset()};da.Object.defineProperties(gna.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.lContainer.length-10}}});var ina=function(a,b,c,d){Pe=!0;return b[11].createElement(d,od.currentNamespace)};var jna=function(a,b){Pe=!0;return b[11].createComment(gha(""))};var lna=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],["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\u202fa","h:mm:ss\u202fa","h:mm:ss\u202fa z","h:mm:ss\u202fa zzzz"],["{1}, {0}",void 0,void 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 mna={};var wna=["zero","one","two","few","many"];var vna="en-US";var una={marker:"element"},tna={marker:"ICU"};var pna=0,nna=0,rna=function(a,b,c){Pe=!0;a:{a=a[11];switch(c){case Node.COMMENT_NODE:b=a.createComment(gha(b));break a;case Node.TEXT_NODE:b=a.createText(b);break a;case Node.ELEMENT_NODE:b=a.createElement(b,null);break a}b=void 0}return b};var Ana=/\ufffd(\d+):?\d*\ufffd/gi,Jna=/\ufffd(\d+)\ufffd/,Gna=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Cna=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Lna=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Kna=/\uE500/g;var Nna={};var YDc,jg=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[YDc]=Qna};h=jg.prototype;h.get=function(a){return this._results[a]};h.map=function(a){return this._results.map(a)};h.filter=function(a){return this._results.filter(a)};h.find=function(a){return this._results.find(a)};h.reduce=function(a,b){return this._results.reduce(a,b)};h.forEach=function(a){this._results.forEach(a)};
h.some=function(a){return this._results.some(a)};h.toArray=function(){return this._results.slice()};h.toString=function(){return this._results.toString()};h.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 ng=function(a){a._changes===void 0||!a._changesDetected&&a._emitDistinctChangesOnly||a._changes.next(a)},eoa=function(a,b){a._onDirty=b};jg.prototype.setDirty=function(){this.dirty=!0;var a;(a=this._onDirty)==null||a.call(this)};jg.prototype.destroy=function(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())};da.Object.defineProperties(jg.prototype,{changes:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this._changes)!=null?a:this._changes=new rf}}});
YDc=Symbol.iterator;var hg=function(a,b,c){this._declarationLView=a;this._declarationTContainer=b;this.elementRef=c};hg.prototype.createEmbeddedView=function(a,b){return UDc(this,a,b)};var UDc=function(a,b,c,d){a=Sla(a._declarationLView,a._declarationTContainer,b,{embeddedViewInjector:c,dehydratedView:d});return new Sg(a)};da.Object.defineProperties(hg.prototype,{ssrId:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this._declarationTContainer.tView)==null?void 0:a.ssrId)||null}}});
hg.__NG_ELEMENT_ID__=Sna;var Wna=function(a){this.queryList=a;this.matches=null};Wna.prototype.clone=function(){return new Wna(this.queryList)};Wna.prototype.setDirty=function(){this.queryList.setDirty()};var Vna=function(a){this.queries=a=a===void 0?[]:a};Vna.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 Vna(c)}return null};
Vna.prototype.detachView=function(a){cka(this,a)};var cka=function(a,b){for(var c=0;c<a.queries.length;c++)b.queries.queries[c].matches!==null&&a.queries[c].setDirty()},Zna=function(a,b,c){this.flags=b;this.read=c===void 0?null:c;typeof a==="string"?this.predicate=$na(a):this.predicate=a},aoa=function(a){this.queries=a=a===void 0?[]:a};h=aoa.prototype;h.elementStart=function(a,b){for(var c=0;c<this.queries.length;c++)this.queries[c].elementStart(a,b)};h.elementEnd=function(a){for(var b=0;b<this.queries.length;b++)this.queries[b].elementEnd(a)};
h.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 aoa(b):null};h.template=function(a,b){for(var c=0;c<this.queries.length;c++)this.queries[c].template(a,b)};h.track=function(a){this.queries.push(a)};da.Object.defineProperties(aoa.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.queries.length}}});
var mg=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};
mg.prototype.elementStart=function(a,b){if(ZDc(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 g=0;g<f.length;g+=2)if(f[g]===e){f=f[g+1];break a}f=null}$Dc(this,a,b,f);$Dc(this,a,b,Nga(b,a,e,!1,!1))}else c===hg?b.type&4&&$Dc(this,a,b,-1):$Dc(this,a,b,Nga(b,a,c,!1,!1))}};mg.prototype.elementEnd=function(a){this._declarationNodeIndex===a.index&&(this._appliesToNextNode=!1)};
mg.prototype.template=function(a,b){this.elementStart(a,b)};mg.prototype.embeddedTView=function(a,b){return ZDc(this,a)?(this.crossesNgTemplate=!0,aEc(this,-a.index,b),new mg(this.metadata)):null};
var ZDc=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},$Dc=function(a,b,c,d){if(d!==null){var e=a.metadata.read;e!==null?e===Gd||e===ig||e===hg&&c.type&4?aEc(a,c.index,-2):(b=Nga(c,b,e,!1,!1),b!==null&&aEc(a,c.index,b)):aEc(a,c.index,d)}},aEc=function(a,b,c){a.matches===null?a.matches=[b,c]:a.matches.push(b,c)};var tg=0,ug=0,vg=0,joa=0,loa=0;var Xx=function(){};Xx.\u0275fac=function(a){return new (a||Xx)(Wc(Yg))};Xx.\u0275mod=$e({type:Xx});Xx.\u0275inj=Dc({});new bd("",{providedIn:"platform",factory:function(){return null}});new bd("",{providedIn:"platform",factory:function(){return null}});new bd("",{providedIn:"platform",factory:function(){return null}});var Qoa=Symbol("Ka"),Roa=Object.assign({},Wea,{transformFn:void 0,applyValueToInputSignal:function(a,b){Lc(a,b)}});var Toa=function(){var a=this;this.destroyed=!1;this.listeners=null;this.errorHandler=q(Qx,{optional:!0});this.destroyRef=q(Be);this.destroyRef.onDestroy(function(){a.destroyed=!0;a.listeners=null})};Toa.prototype.subscribe=function(a){var b=this;if(this.destroyed)throw new Pc(953,!1);var c;((c=this.listeners)!=null?c:this.listeners=[]).push(a);return{unsubscribe:function(){var d,e=(d=b.listeners)==null?void 0:d.indexOf(a);if(e!==void 0&&e!==-1){var f;(f=b.listeners)==null||f.splice(e,1)}}}};
Toa.prototype.emit=function(a){if(this.destroyed)console.warn(bfa(953,!1));else if(this.listeners!==null){var b=Fc(null);try{for(var c=l(this.listeners),d=c.next();!d.done;d=c.next()){var e=d.value;try{e(a)}catch(g){var f=void 0;(f=this.errorHandler)==null||f.handleError(g)}}}finally{Fc(b)}}};Qg.required=function(a){return Soa(Qoa,a)};Voa.required=function(){return Uoa(Qoa)};Rg.required=function(){return doa(!0,!0)};Xoa.required=function(){return doa(!0,!0)};var Yx=function(){};Yx.__NG_ELEMENT_ID__=Yoa;var bEc=function(){};bEc.prototype.supports=function(a){return jha(a)};bEc.prototype.create=function(a){return new Zx(a)};var cEc=function(a,b){return b},Zx=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||cEc};
Zx.prototype.forEachItem=function(a){var b;for(b=this._itHead;b!==null;b=b._next)a(b)};var dEc=function(a,b){var c=a._itHead;a=a._removalsHead;for(var d=0,e=null;c||a;){var f=!a||c&&c.currentIndex<Zoa(a,d,e)?c:a,g=Zoa(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 m=g-d,r=k-d;if(m!=r){for(var w=0;w<m;w++){var x=w<e.length?e[w]:e[w]=0,D=x+w;r<=D&&D<m&&(e[w]=x+1)}e[f.previousIndex]=r-m}}g!==k&&b(f,g,k)}};
Zx.prototype.forEachAddedItem=function(a){var b;for(b=this._additionsHead;b!==null;b=b._nextAdded)a(b)};Zx.prototype.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;b!==null;b=b._nextRemoved)a(b)};var eEc=function(a,b){for(a=a._identityChangesHead;a!==null;a=a._nextIdentityChange)b(a)};h=Zx.prototype;h.diff=function(a){a==null&&(a=[]);if(!jha(a))throw new Pc(900,!1);return this.check(a)?this:null};h.onDestroy=function(){};
h.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 g=this._trackByFn(e,f);c!==null&&Object.is(c.trackById,g)?(d&&(c=this._verifyReinsertion(c,f,g,e)),Object.is(c.item,f)||this._addIdentityChange(c,f)):(c=this._mismatch(c,f,g,e),d=!0);c=c._next}}else{var k=0;kha(a,function(m){g=b._trackByFn(k,m);c!==null&&Object.is(c.trackById,g)?(d&&(c=b._verifyReinsertion(c,m,g,k)),Object.is(c.item,m)||b._addIdentityChange(c,
m)):(c=b._mismatch(c,m,g,k),d=!0);c=c._next;k++});this.length=k}this._truncate(c);this.collection=a;return this.isDirty};
h._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}};
h._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 fEc(b,c),e,d));return a};
h._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};
h._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)};
h._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};h._moveAfter=function(a,b,c){this._unlink(a);this._insertAfter(a,b,c);this._addToMoves(a,c);return a};
h._addAfter=function(a,b,c){this._insertAfter(a,b,c);this._additionsTail=this._additionsTail===null?this._additionsHead=a:this._additionsTail._nextAdded=a;return a};h._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 ay);this._linkedRecords.put(a);a.currentIndex=c;return a};h._remove=function(a){return this._addToRemovals(this._unlink(a))};
h._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};h._addToMoves=function(a,b){if(a.previousIndex===b)return a;this._movesTail=this._movesTail===null?this._movesHead=a:this._movesTail._nextMoved=a;return a};
h._addToRemovals=function(a){this._unlinkedRecords===null&&(this._unlinkedRecords=new ay);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};
h._addIdentityChange=function(a,b){a.item=b;this._identityChangesTail=this._identityChangesTail===null?this._identityChangesHead=a:this._identityChangesTail._nextIdentityChange=a;return a};da.Object.defineProperties(Zx.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}}});
var fEc=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},gEc=function(){this._tail=this._head=null};gEc.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)};
gEc.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};gEc.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 ay=function(){this.map=new Map};ay.prototype.put=function(a){var b=a.trackById,c=this.map.get(b);c||(c=new gEc,this.map.set(b,c));c.add(a)};
ay.prototype.get=function(a,b){var c=this.map.get(a);return c?c.get(a,b):null};ay.prototype.remove=function(a){var b=a.trackById;this.map.get(b).remove(a)&&this.map.delete(b);return a};ay.prototype.clear=function(){this.map.clear()};da.Object.defineProperties(ay.prototype,{isEmpty:{configurable:!0,enumerable:!0,get:function(){return this.map.size===0}}});var hEc=function(){};hEc.prototype.supports=function(a){return a instanceof Map||iha(a)};hEc.prototype.create=function(){return new iEc};var iEc=function(){this._records=new Map;this._removalsTail=this._removalsHead=this._additionsTail=this._additionsHead=this._changesTail=this._changesHead=this._previousMapHead=this._appendAfter=this._mapHead=null};iEc.prototype.forEachItem=function(a){var b;for(b=this._mapHead;b!==null;b=b._next)a(b)};var jEc=function(a,b){for(a=a._changesHead;a!==null;a=a._nextChanged)b(a)};
h=iEc.prototype;h.forEachAddedItem=function(a){var b;for(b=this._additionsHead;b!==null;b=b._nextAdded)a(b)};h.forEachRemovedItem=function(a){var b;for(b=this._removalsHead;b!==null;b=b._nextRemoved)a(b)};h.diff=function(a){if(!a)a=new Map;else if(!(a instanceof Map||iha(a)))throw new Pc(900,!1);return this.check(a)?this:null};h.onDestroy=function(){};
h.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};h._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};
h._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 kEc(a);this._records.set(a,c);c.currentValue=b;this._addToAdditions(c);return c};
h._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}};
h._maybeAddToChanges=function(a,b){Object.is(b,a.currentValue)||(a.previousValue=a.currentValue,a.currentValue=b,this._addToChanges(a))};h._addToAdditions=function(a){this._additionsHead===null?this._additionsHead=this._additionsTail=a:this._additionsTail=this._additionsTail._nextAdded=a};h._addToChanges=function(a){this._changesHead===null?this._changesHead=this._changesTail=a:this._changesTail=this._changesTail._nextChanged=a};
h._forEach=function(a,b){a instanceof Map?a.forEach(b):Object.keys(a).forEach(function(c){return b(a[c],c)})};da.Object.defineProperties(iEc.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}}});var kEc=function(a){this.key=a;this._nextChanged=this._nextRemoved=this._nextAdded=this._prev=this._next=this._nextPrevious=this.currentValue=this.previousValue=null};var by=function(a){this.factories=a};by.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(b!=null)return b;throw new Pc(901,!1);};by.\u0275prov=Cc({token:by,providedIn:"root",factory:function(){return new by([new bEc])}});var cy=function(a){this.factories=a};cy.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(b)return b;throw new Pc(901,!1);};cy.\u0275prov=Cc({token:cy,providedIn:"root",factory:function(){return new cy([new hEc])}});var dy=function(){var a=this;this.applicationErrorHandler=q(Se);this.appRef=q(Yg);this.taskService=q(Wg);this.ngZone=q(Tg);this.zonelessEnabled=q(apa);this.tracing=q(Ae,{optional:!0});this.zoneIsDefined=typeof Zone!=="undefined"&&!!Zone.root.run;this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];this.subscriptions=new Od;var b;this.angularZoneId=this.zoneIsDefined?(b=this.ngZone._inner)==null?void 0:b.get("isAngularZone_ID"):null;var c;this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&
((c=q(bpa,{optional:!0}))!=null?c:!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()}))};
dy.prototype.notify=function(a){var b=this;if(this.zonelessEnabled||a!==5){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;break;case 12:this.appRef.dirtyFlags|=16;break;case 13:this.appRef.dirtyFlags|=2;break;case 11:break;default:this.appRef.dirtyFlags|=8}var c,d;this.appRef.tracingSnapshot=(d=(c=this.tracing)==null?void 0:c.snapshot(this.appRef.tracingSnapshot))!=null?d:null;if(!(this.appRef.destroyed||
this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get("isAngularZone_ID"+this.angularZoneId))){var e=this.useMicrotaskScheduler?via:uia;this.pendingRenderTaskId=this.taskService.add();this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(function(){return e(function(){return b.tick()})}):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(function(){return e(function(){return b.tick()})})}}};
dy.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;via(function(){a.useMicrotaskScheduler=
!1;a.taskService.remove(b)})}};dy.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe();this.cleanup()};dy.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))};dy.\u0275fac=function(a){return new (a||dy)};dy.\u0275prov=Cc({token:dy,factory:dy.\u0275fac,providedIn:"root"});var Ug=function(){this.zone=q(Tg);this.changeDetectionScheduler=q(Ze);this.applicationRef=q(Yg);this.applicationErrorHandler=q(Se)};Ug.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.dirtyFlags|=1,a.applicationRef._tick()}catch(b){a.applicationErrorHandler(b)}})}}))};
Ug.prototype.ngOnDestroy=function(){var a;(a=this._onMicrotaskEmptySubscription)==null||a.unsubscribe()};Ug.\u0275fac=function(a){return new (a||Ug)};Ug.\u0275prov=Cc({token:Ug,factory:Ug.\u0275fac,providedIn:"root"});var dpa=new bd("",{factory:function(){return!1}}),Vg=function(){this.subscription=new Od;this.initialized=!1;this.zone=q(Tg);this.pendingTasks=q(Wg)};
Vg.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(){nDc();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(!AAa())throw new Pc(909,
!1);b!=null||(b=a.pendingTasks.add())}))}};Vg.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()};Vg.\u0275fac=function(a){return new (a||Vg)};Vg.\u0275prov=Cc({token:Vg,factory:Vg.\u0275fac,providedIn:"root"});var ipa=new bd("",{factory:function(){return q(ipa,{optional:!0,skipSelf:!0})||(typeof xAc!=="undefined"?"en-US":typeof $localize!=="undefined"&&$localize.locale||"en-US")}});new bd("",{factory:function(){return"USD"}});new bd("");new bd("");var fpa=new bd("");var jpa=new bd(""),kpa;var ey=function(){};ey.\u0275fac=function(a){return new (a||ey)};ey.\u0275prov=Cc({token:ey,factory:ey.\u0275fac,providedIn:"root"});new bd("");var Zg=function(a){this._injector=a;this._modules=[];this._destroyListeners=[];this._destroyed=!1},mEc=function(){var a=lEc(),b=fy,c={applicationProviders:[epa()]};c=c===void 0?[]:c;var d=Qla({},c);kpa=mpa;Promise.resolve(new Kza(b)).then(function(e){var f,g=[[{provide:Ze,useExisting:dy},{provide:Tg,useClass:pDc},{provide:apa,useValue:!0}]].concat(n((f=d==null?void 0:d.applicationProviders)!=null?f:[]),[qDc],n([]));e=new Sx(e.moduleType,a.injector,g,!1);kpa=mpa;return lpa({moduleRef:e,allPlatformModules:a._modules,
platformInjector:a.injector})})};Zg.prototype.onDestroy=function(a){this._destroyListeners.push(a)};Zg.prototype.destroy=function(){if(this._destroyed)throw new Pc(404,!1);this._modules.slice().forEach(function(b){return b.destroy()});this._destroyListeners.forEach(function(b){return b()});var a=this._injector.get(fpa,null);a&&(a.forEach(function(b){return b()}),a.clear());this._destroyed=!0};
da.Object.defineProperties(Zg.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return this._injector}},destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});Zg.\u0275fac=function(a){return new (a||Zg)(Wc(xe))};Zg.\u0275prov=Cc({token:Zg,factory:Zg.\u0275fac,providedIn:"platform"});var ppa=null;var upa=function(a){return a};var nEc=function(a){var b=this;this.isError=ah(function(){return b.status()==="error"});this.isValueDefined=ah(function(){return b.isError()?!1:b.value()!==void 0});this.value=a;this.value.set=this.set.bind(this);this.value.update=this.update.bind(this);this.value.asReadonly=coa;this.isLoading=ah(function(){return b.status()==="loading"||b.status()==="reloading"},void 0)};nEc.prototype.update=function(a){this.set(a(Mc(this.value)))};nEc.prototype.hasValue=function(){return this.isValueDefined()};
nEc.prototype.asReadonly=function(){return this};
var gy=function(a,b,c,d,e,f){nEc.call(this,ah(function(){var k,m,r=(m=(k=g.state()).stream)==null?void 0:m.call(k);if(!r||g.state().status==="loading"&&g.error())return c;if(r.error!==void 0)throw new oEc(g.error());return r.value},Object.assign({},{equal:d},void 0)),e);var g=this;this.loaderFn=b;this.equal=d;this.debugName=e;this.resolvePendingTask=void 0;this.destroyed=!1;this.extRequest=wpa(Object.assign({},{source:a,computation:function(k){return{request:k,reload:0}}},void 0));this.state=wpa(Object.assign({},
{source:this.extRequest,computation:function(k,m){var r=k.request===void 0?"idle":"loading";return m?{extRequest:k,status:r,previousStatus:xpa(m.value),stream:m.value.extRequest.request===k.request?m.value.stream:void 0}:{extRequest:k,status:r,previousStatus:"idle",stream:void 0}}},void 0));this.effectRef=df(this.loadEffect.bind(this),Object.assign({},{injector:f,manualCleanup:!0},void 0));this.pendingTasks=f.get(Wx);this.unregisterOnDestroy=f.get(Be).onDestroy(function(){return g.destroy()});this.status=
ah(function(){return xpa(g.state())},void 0);this.error=ah(function(){var k,m,r=(m=(k=g.state()).stream)==null?void 0:m.call(k);return r&&r.error!==void 0?r.error:void 0},void 0)};Z(gy,nEc);gy.prototype.set=function(a){if(!this.destroyed){var b=Mc(this.error),c=Mc(this.state);if(!b&&(b=Mc(this.value),c.status==="local"&&(this.equal?this.equal(b,a):b===a)))return;this.state.set({extRequest:c.extRequest,status:"local",previousStatus:"local",stream:qg({value:a},void 0)});pEc(this)}};
gy.prototype.reload=function(){var a=Mc(this.state).status;if(a==="idle"||a==="loading")return!1;this.extRequest.update(function(b){return{request:b.request,reload:b.reload+1}});return!0};gy.prototype.destroy=function(){this.destroyed=!0;this.unregisterOnDestroy();this.effectRef.destroy();pEc(this);this.state.set({extRequest:{request:void 0,reload:0},status:"idle",previousStatus:"idle",stream:void 0})};
gy.prototype.loadEffect=function(){var a=this,b,c,d,e,f,g,k,m,r,w;return y(function(x){switch(x.nextAddress){case 1:b=a.extRequest();c=Mc(a.state);d=c.status;e=c.previousStatus;if(b.request===void 0||d!=="loading")return x.return();pEc(a);f=a.resolvePendingTask=a.pendingTasks.add();g=a.pendingController=new AbortController;k=g.signal;Vd(x,2,3);return z(x,Mc(function(){return a.loaderFn({params:b.request,request:b.request,abortSignal:k,previous:{status:e}})}),5);case 5:m=x.yieldResult;if(k.aborted||
Mc(a.extRequest)!==b)return x.return();a.state.set({extRequest:b,status:"resolved",previousStatus:"resolved",stream:m});case 3:Wd(x);(r=f)==null||r();f=void 0;Yd(x,0);break;case 2:w=Zd(x);if(k.aborted||Mc(a.extRequest)!==b)return x.return();a.state.set({extRequest:b,status:"resolved",previousStatus:"error",stream:qg({error:w instanceof Error?w:new qEc(w)},void 0)});x.jumpTo(3)}})};
var pEc=function(a){Mc(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},oEc=function(a){a=Error.call(this,a.message,{cause:a});this.message=a.message;"stack"in a&&(this.stack=a.stack)};Z(oEc,Error);var qEc=function(a){a=Error.call(this,String(a),{cause:a});this.message=a.message;"stack"in a&&(this.stack=a.stack)};Z(qEc,Error);var rEc=Symbol("La"),sEc=new Set,tEc=Object.assign({},Wea,{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:rEc,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!==rEc&&
!Nea(this))return this.signal;try{for(var b,c=l((b=this.cleanup)!=null?b:sEc),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=Ic(this);try{var g=this.userFn.apply(null,b)}finally{Sea(this,a)}this.value!==rEc&&this.equal(this.value,g)||(this.value=g,this.version++);return this.signal}}),ypa=function(a,b,c,d,e,f){f=f===void 0?null:f;Ce.call(this,a,[void 0,void 0,void 0,void 0],c,!1,e.get(Be),
f);this.scheduler=d;this.lastPhase=null;this.nodes=[void 0,void 0,void 0,void 0];this.onDestroyFns=null;a=l(rDc);d=a.next();for(c={};!d.done;c={node$jscomp$135:void 0,$jscomp$logical$assign$tmp367619693$0:void 0},d=a.next())d=d.value,e=b[d],e!==void 0&&(c.node$jscomp$135=Object.create(tEc),c.node$jscomp$135.sequence=this,c.node$jscomp$135.phase=d,c.node$jscomp$135.userFn=e,c.node$jscomp$135.dirty=!0,c.node$jscomp$135.signal=function(g){return function(){Hc(g.node$jscomp$135);return g.node$jscomp$135.value}}(c),
c.node$jscomp$135.signal[Kc]=c.node$jscomp$135,c.$jscomp$logical$assign$tmp367619693$0=void 0,c.node$jscomp$135.registerCleanupFn=function(g){return function(k){var m;return((m=(g.$jscomp$logical$assign$tmp367619693$0=g.node$jscomp$135).cleanup)!=null?m:g.$jscomp$logical$assign$tmp367619693$0.cleanup=new Set).add(k)}}(c),this.nodes[d]=c.node$jscomp$135,this.hooks[d]=function(g){return function(k){return g.node$jscomp$135.phaseFn(k)}}(c))};Z(ypa,Ce);
ypa.prototype.afterRun=function(){Ce.prototype.afterRun.call(this);this.lastPhase=null};ypa.prototype.destroy=function(){if(this.onDestroyFns!==null)for(var a=l(this.onDestroyFns),b=a.next();!b.done;b=a.next())b=b.value,b();Ce.prototype.destroy.call(this);a=l(this.nodes);for(b=a.next();!b.done;b=a.next())if(b=b.value)try{for(var c=void 0,d=l((c=b.cleanup)!=null?c:sEc),e=d.next();!e.done;e=d.next()){var f=e.value;f()}}finally{Tea(b)}};var uEc=rpa(null,"core",[]);var vEc=/\s+/,wEc=[],hy=function(a,b){this._ngEl=a;this._renderer=b;this.initialClasses=wEc;this.stateMap=new Map};hy.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()};
hy.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})};hy.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}};
hy.prototype._toggleClass=function(a,b){var c=this;a=a.trim();a.length>0&&a.split(vEc).forEach(function(d){b?c._renderer.addClass(c._ngEl.nativeElement,d):c._renderer.removeClass(c._ngEl.nativeElement,d)})};da.Object.defineProperties(hy.prototype,{klass:{configurable:!0,enumerable:!0,set:function(a){this.initialClasses=a!=null?a.trim().split(vEc):wEc}},ngClass:{configurable:!0,enumerable:!0,set:function(a){this.rawClass=typeof a==="string"?a.trim().split(vEc):a}}});
hy.\u0275fac=function(a){return new (a||hy)(Ve(Gd),Ve(ji))};hy.\u0275dir=af({type:hy,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}});var xEc=function(a,b,c,d){this.$implicit=a;this.ngForOf=b;this.index=c;this.count=d};da.Object.defineProperties(xEc.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 iy=function(a,b,c){this._viewContainer=a;this._template=b;this._differs=c;this._ngForOf=null;this._ngForOfDirty=!0;this._differ=null};iy.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)};
iy.prototype._applyChanges=function(a){var b=this,c=this._viewContainer;dEc(a,function(g,k,m){g.previousIndex==null?c.createEmbeddedView(b._template,new xEc(g.item,b._ngForOf,-1,-1),m===null?void 0:m):m==null?c.remove(k===null?void 0:k):k!==null&&(k=c.get(k),c.move(k,m),k.context.$implicit=g.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}eEc(a,function(g){c.get(g.currentIndex).context.$implicit=g.item})};
da.Object.defineProperties(iy.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)}}});iy.\u0275fac=function(a){return new (a||iy)(Ve(ig),Ve(hg),Ve(by))};
iy.\u0275dir=af({type:iy,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}});var jy=function(a,b){this._viewContainer=a;this._context=new yEc;this._elseViewRef=this._thenViewRef=this._elseTemplateRef=null;this._thenTemplateRef=b};
jy.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)))};
da.Object.defineProperties(jy.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){Cpa(a);this._thenTemplateRef=a;this._thenViewRef=null;this._updateView()}},ngIfElse:{configurable:!0,enumerable:!0,set:function(a){Cpa(a);this._elseTemplateRef=a;this._elseViewRef=null;this._updateView()}}});jy.\u0275fac=function(a){return new (a||jy)(Ve(ig),Ve(hg))};
jy.\u0275dir=af({type:jy,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}});var yEc=function(){this.ngIf=this.$implicit=null};var zEc=function(a,b){this._viewContainerRef=a;this._templateRef=b;this._created=!1};zEc.prototype.create=function(){this._created=!0;this._viewContainerRef.createEmbeddedView(this._templateRef)};zEc.prototype.destroy=function(){this._created=!1;this._viewContainerRef.clear()};var ky=function(){this._defaultViews=[];this._defaultUsed=!1;this._lastCaseCheckIndex=this._caseCount=0;this._lastCasesMatched=!1};ky.prototype._addCase=function(){return this._caseCount++};ky.prototype._addDefault=function(a){this._defaultViews.push(a)};
ky.prototype._matchCase=function(a){a=a===this._ngSwitch;this._lastCasesMatched||(this._lastCasesMatched=a);this._lastCaseCheckIndex++;this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1);return a};
ky.prototype._updateDefaultCases=function(a){if(this._defaultViews.length>0&&a!==this._defaultUsed){this._defaultUsed=a;for(var b=l(this._defaultViews),c=b.next();!c.done;c=b.next()){c=c.value;var d=a;d&&!c._created?c.create():!d&&c._created&&c.destroy()}}};da.Object.defineProperties(ky.prototype,{ngSwitch:{configurable:!0,enumerable:!0,set:function(a){this._ngSwitch=a;this._caseCount===0&&this._updateDefaultCases(!0)}}});ky.\u0275fac=function(a){return new (a||ky)};
ky.\u0275dir=af({type:ky,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}});var ly=function(a,b,c){this.ngSwitch=c;c._addCase();this._view=new zEc(a,b)};ly.prototype.ngDoCheck=function(){var a=this._view,b=this.ngSwitch._matchCase(this.ngSwitchCase);b&&!a._created?a.create():!b&&a._created&&a.destroy()};ly.\u0275fac=function(a){return new (a||ly)(Ve(ig),Ve(hg),Ve(ky,9))};ly.\u0275dir=af({type:ly,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}});
var my=function(a,b,c){c._addDefault(new zEc(a,b))};my.\u0275fac=function(a){return new (a||my)(Ve(ig),Ve(hg),Ve(ky,9))};my.\u0275dir=af({type:my,selectors:[["","ngSwitchDefault",""]]});var ny=function(a,b,c){this._ngEl=a;this._differs=b;this._renderer=c;this._differ=this._ngStyle=null};ny.prototype.ngDoCheck=function(){if(this._differ){var a=this._differ.diff(this._ngStyle);a&&this._applyChanges(a)}};ny.prototype._setStyle=function(a,b){var c=l(a.split("."));a=c.next().value;c=c.next().value;var d=a.indexOf("-")===-1?void 0:2;b!=null?this._renderer.setStyle(this._ngEl.nativeElement,a,c?""+b+c:b,d):this._renderer.removeStyle(this._ngEl.nativeElement,a,d)};
ny.prototype._applyChanges=function(a){var b=this;a.forEachRemovedItem(function(c){return b._setStyle(c.key,null)});a.forEachAddedItem(function(c){return b._setStyle(c.key,c.currentValue)});jEc(a,function(c){return b._setStyle(c.key,c.currentValue)})};da.Object.defineProperties(ny.prototype,{ngStyle:{configurable:!0,enumerable:!0,set:function(a){this._ngStyle=a;!this._differ&&a&&(this._differ=this._differs.find(a).create())}}});ny.\u0275fac=function(a){return new (a||ny)(Ve(Gd),Ve(cy),Ve(ji))};
ny.\u0275dir=af({type:ny,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}});var oy=function(a){this._viewContainerRef=a;this.ngTemplateOutletInjector=this.ngTemplateOutlet=this.ngTemplateOutletContext=this._viewRef=null};oy.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};
oy.prototype._shouldRecreateView=function(a){return!!a.ngTemplateOutlet||!!a.ngTemplateOutletInjector};oy.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)}})};oy.\u0275fac=function(a){return new (a||oy)(Ve(ig))};
oy.\u0275dir=af({type:oy,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Gx]});var AEc=function(){};AEc.prototype.createSubscription=function(a,b,c){return Mc(function(){return a.subscribe({next:b,error:c})})};AEc.prototype.dispose=function(a){Mc(function(){return a.unsubscribe()})};var BEc=function(){};BEc.prototype.createSubscription=function(a,b,c){a.then(function(d){var e;return(e=b)==null?void 0:e(d)},function(d){var e;return(e=c)==null?void 0:e(d)});return{unsubscribe:function(){c=b=null}}};BEc.prototype.dispose=function(a){a.unsubscribe()};
var CEc=new BEc,DEc=new AEc,py=function(a){this._latestValue=null;this.markForCheckOnValueUpdate=!0;this._strategy=this._obj=this._subscription=null;this.applicationErrorHandler=q(Se);this._ref=a};h=py.prototype;h.ngOnDestroy=function(){this._subscription&&this._dispose();this._ref=null};
h.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};h._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)})};
h._selectStrategy=function(a){if(Yka(a))return CEc;if(Zka(a))return DEc;throw gh();};h._dispose=function(){this._strategy.dispose(this._subscription);this._obj=this._subscription=this._latestValue=null};h._updateLatestValue=function(a,b){if(a===this._obj&&(this._latestValue=b,this.markForCheckOnValueUpdate)){var c;(c=this._ref)==null||c.markForCheck()}};py.\u0275fac=function(a){return new (a||py)(Ve(Yx,16))};py.\u0275pipe=cf({name:"async",type:py,pure:!1});var qy=function(){};qy.prototype.transform=function(a){if(a==null)return null;if(typeof a!=="string")throw gh();return a.toLowerCase()};qy.\u0275fac=function(a){return new (a||qy)};qy.\u0275pipe=cf({name:"lowercase",type:qy,pure:!0});
var EEc=/(?:[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,ry=
function(){};ry.prototype.transform=function(a){if(a==null)return null;if(typeof a!=="string")throw gh();return a.replace(EEc,function(b){return b[0].toUpperCase()+b.slice(1).toLowerCase()})};ry.\u0275fac=function(a){return new (a||ry)};ry.\u0275pipe=cf({name:"titlecase",type:ry,pure:!0});var bqa=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Xpa={},Opa=/((?:[^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]*)/,Rpa={};var FEc=new bd(""),GEc=new bd(""),sy=function(a,b,c){this.locale=a;this.defaultTimezone=b;this.defaultOptions=c};sy.prototype.transform=function(a,b,c,d){if(a==null||a===""||a!==a)return null;try{var e,f,g=(f=b!=null?b:(e=this.defaultOptions)==null?void 0:e.dateFormat)!=null?f:"mediumDate",k,m,r,w=(r=(m=c!=null?c:(k=this.defaultOptions)==null?void 0:k.timezone)!=null?m:this.defaultTimezone)!=null?r:void 0;return Vpa(a,g,d||this.locale,w)}catch(x){throw gh();}};
sy.\u0275fac=function(a){return new (a||sy)(Ve(ipa,16),Ve(FEc,24),Ve(GEc,24))};sy.\u0275pipe=cf({name:"date",type:sy,pure:!0});var ty=function(){};ty.prototype.transform=function(a){return JSON.stringify(a,null,2)};ty.\u0275fac=function(a){return new (a||ty)};ty.\u0275pipe=cf({name:"json",type:ty,pure:!1});var uy=function(a){this.differs=a;this.keyValues=[];this.compareFn=dqa};uy.prototype.transform=function(a,b){var c=this;b=b===void 0?dqa: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};
uy.\u0275fac=function(a){return new (a||uy)(Ve(cy,16))};uy.\u0275pipe=cf({name:"keyvalue",type:uy,pure:!1});var gqa=/^(\d+)?\.((\d+)(-(\d+))?)?$/;var vy=function(a){this._locale=a};
vy.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 new Pc(2309,!1);var d=a}else d=Number(a);a=d;var e=Zf(c)[14][0],f=fh(c,5);f=f===void 0?"-":f;d={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0};var g=e.split(";"),k=g[0],m=g[1],r=k.indexOf(".")!==-1?k.split("."):[k.substring(0,k.lastIndexOf("0")+1),k.substring(k.lastIndexOf("0")+
1)],w=r[0],x=r[1]||"";d.posPre=w.substring(0,w.indexOf("#"));for(e=0;e<x.length;e++){var D=x.charAt(e);D==="0"?d.minFrac=d.maxFrac=e+1:D==="#"?d.maxFrac=e+1:d.posSuf+=D}var H=w.split(",");d.gSize=H[1]?H[1].length:0;d.lgSize=H[2]||H[1]?(H[2]||H[1]).length:0;if(m){var J=k.length-d.posPre.length-d.posSuf.length,O=m.indexOf("#");d.negPre=m.substring(0,O).replace(/'/g,"");d.negSuf=m.slice(O+J).replace(/'/g,"")}else d.negPre=f+d.posPre,d.negSuf=d.posSuf;return jqa(a,d,c,b)}catch(R){throw gh();}};
vy.\u0275fac=function(a){return new (a||vy)(Ve(ipa,16))};vy.\u0275pipe=cf({name:"number",type:vy,pure:!0});var wy=function(){};wy.prototype.transform=function(a,b,c){if(a==null)return null;if(typeof a!=="string"&&!Array.isArray(a))throw gh();return a.slice(b,c)};wy.\u0275fac=function(a){return new (a||wy)};wy.\u0275pipe=cf({name:"slice",type:wy,pure:!1});var xy=function(){};xy.\u0275fac=function(a){return new (a||xy)};xy.\u0275mod=$e({type:xy});xy.\u0275inj=Dc({});var HEc=function(a){return a.src};new bd("",{factory:function(){return HEc}});new bd("");new bd("",{factory:function(){return new Set}});var Tl=null,IEc=function(){};var yy=function(){};yy.prototype.historyGo=function(){throw Error("la");};yy.\u0275fac=function(a){return new (a||yy)};yy.\u0275prov=Cc({token:yy,factory:function(){return q(zy)},providedIn:"platform"});var JEc=new bd(""),zy=function(){this._doc=q(Yh);this._location=window.location;this._history=window.history};Z(zy,yy);zy.prototype.onPopState=function(a){var b=KEc(this._doc,"window");b.addEventListener("popstate",a,!1);return function(){return b.removeEventListener("popstate",a)}};
var LEc=function(a,b){var c=KEc(a._doc,"window");c.addEventListener("hashchange",b,!1);return function(){return c.removeEventListener("hashchange",b)}};h=zy.prototype;h.pushState=function(a,b,c){this._history.pushState(a,b,c)};h.replaceState=function(a,b,c){this._history.replaceState(a,b,c)};h.forward=function(){this._history.forward()};h.back=function(){this._history.back()};h.historyGo=function(a){this._history.go(a===void 0?0:a)};h.getState=function(){return this._history.state};
da.Object.defineProperties(zy.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}}});zy.\u0275fac=function(a){return new (a||zy)};zy.\u0275prov=Cc({token:zy,factory:function(){return new zy},providedIn:"platform"});var Ay=function(){};Ay.prototype.historyGo=function(){throw Error("la");};Ay.\u0275fac=function(a){return new (a||Ay)};Ay.\u0275prov=Cc({token:Ay,factory:function(){return q(By)},providedIn:"root"});var MEc=new bd(""),By=function(a,b){this._platformLocation=a;this._removeListenerFns=[];var c,d,e;this._baseHref=(e=(d=b!=null?b:Tl.getBaseHref())!=null?d:(c=q(Yh).location)==null?void 0:c.origin)!=null?e:""};Z(By,Ay);h=By.prototype;h.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};
h.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),LEc(this._platformLocation,a))};h.getBaseHref=function(){return this._baseHref};h.prepareExternalUrl=function(a){return kqa(this._baseHref,a)};h.path=function(a){var b=this._platformLocation.pathname+lh(this._platformLocation.search),c=this._platformLocation.hash;return c&&(a===void 0?0:a)?b+c:b};h.pushState=function(a,b,c,d){this._platformLocation.pushState(a,b,this.prepareExternalUrl(c+lh(d)))};
h.replaceState=function(a,b,c,d){this._platformLocation.replaceState(a,b,this.prepareExternalUrl(c+lh(d)))};h.forward=function(){this._platformLocation.forward()};h.back=function(){this._platformLocation.back()};h.getState=function(){return this._platformLocation.getState()};h.historyGo=function(a){var b,c;(c=(b=this._platformLocation).historyGo)==null||c.call(b,a===void 0?0:a)};By.\u0275fac=function(a){return new (a||By)(Wc(yy),Wc(MEc,8))};By.\u0275prov=Cc({token:By,factory:By.\u0275fac,providedIn:"root"});var Cy=function(a,b){this._platformLocation=a;this._baseHref="";this._removeListenerFns=[];b!=null&&(this._baseHref=b)};Z(Cy,Ay);h=Cy.prototype;h.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};h.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),LEc(this._platformLocation,a))};h.getBaseHref=function(){return this._baseHref};
h.path=function(){var a,b=(a=this._platformLocation.hash)!=null?a:"#";return b.length>0?b.substring(1):b};h.prepareExternalUrl=function(a){a=kqa(this._baseHref,a);return a.length>0?"#"+a:a};h.pushState=function(a,b,c,d){this._platformLocation.pushState(a,b,this.prepareExternalUrl(c+lh(d))||this._platformLocation.pathname)};h.replaceState=function(a,b,c,d){this._platformLocation.replaceState(a,b,this.prepareExternalUrl(c+lh(d))||this._platformLocation.pathname)};h.forward=function(){this._platformLocation.forward()};
h.back=function(){this._platformLocation.back()};h.getState=function(){return this._platformLocation.getState()};h.historyGo=function(a){var b,c;(c=(b=this._platformLocation).historyGo)==null||c.call(b,a===void 0?0:a)};Cy.\u0275fac=function(a){return new (a||Cy)(Wc(yy),Wc(MEc,8))};Cy.\u0275prov=Cc({token:Cy,factory:Cy.\u0275fac});var oi=function(a){var b=this;this._subject=new rf;this._urlChangeListeners=[];this._urlChangeSubscription=null;this._locationStrategy=a;a=this._locationStrategy.getBaseHref();this._basePath=mqa(lqa(a.replace(/\/index.html$/,"")));this._locationStrategy.onPopState(function(c){b._subject.next({url:b.path(!0),pop:!0,state:c.state,type:c.type})})};h=oi.prototype;h.ngOnDestroy=function(){var a;(a=this._urlChangeSubscription)==null||a.unsubscribe();this._urlChangeListeners=[]};
h.path=function(a){return this.normalize(this._locationStrategy.path(a===void 0?!1:a))};h.getState=function(){return this._locationStrategy.getState()};h.normalize=function(a){var b=oi.stripTrailingSlash;var c=this._basePath;a=a.replace(/\/index.html$/,"");c&&a.startsWith(c)?(c=a.substring(c.length),c=c===""||["/",";","?","#"].includes(c[0])?c:a):c=a;return b.call(oi,c)};h.prepareExternalUrl=function(a){a&&a[0]!=="/"&&(a="/"+a);return this._locationStrategy.prepareExternalUrl(a)};
h.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+lh(b)),c)};h.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+lh(b)),c)};h.forward=function(){this._locationStrategy.forward()};h.back=function(){this._locationStrategy.back()};
h.historyGo=function(a){var b,c;(c=(b=this._locationStrategy).historyGo)==null||c.call(b,a===void 0?0:a)};h._notifyUrlChangeListeners=function(a,b){a=a===void 0?"":a;this._urlChangeListeners.forEach(function(c){return c(a,b)})};h.subscribe=function(a,b,c){return this._subject.subscribe({next:a,error:b!=null?b:void 0,complete:c!=null?c:void 0})};oi.stripTrailingSlash=lqa;oi.\u0275fac=function(a){return new (a||oi)(Wc(Ay))};oi.\u0275prov=Cc({token:oi,factory:function(){return new oi(Wc(Ay))},providedIn:"root"});var NEc=function(){};NEc.\u0275prov=Cc({token:NEc,providedIn:"root",factory:function(){return new OEc}});var OEc=function(){var a=q(Yh),b=window;this.document=a;this.window=b;this.offset=function(){return[0,0]}},PEc=function(a,b){a.offset=Array.isArray(b)?function(){return b}:b};OEc.prototype.getScrollPosition=function(){return[this.window.scrollX,this.window.scrollY]};OEc.prototype.scrollToPosition=function(a,b){this.window.scrollTo(Object.assign({},b,{left:a[0],top:a[1]}))};var QEc=function(){};var Dy=function(){this.supportsDOMEvents=!0};Z(Dy,IEc);var REc=function(a,b,c,d){a.addEventListener(b,c,d);return function(){a.removeEventListener(b,c,d)}};Dy.prototype.dispatchEvent=function(a,b){a.dispatchEvent(b)};Dy.prototype.remove=function(a){a.remove()};Dy.prototype.createElement=function(a,b){b=b||document;return b.createElement(a)};var KEc=function(a,b){return b==="window"?window:b==="document"?a:b==="body"?a.body:null};
Dy.prototype.getBaseHref=function(){var a=(SEc=SEc||document.head.querySelector("base"))?SEc.getAttribute("href"):null;return a==null?null:(new URL(a,document.baseURI)).pathname};var SEc=null;var TEc=function(){},NDc=function(a){Je.getAngularTestability=function(b,c){b=a.findTestabilityInTree(b,c===void 0?!0:c);if(b==null)throw new Pc(5103,!1);return b};Je.getAllAngularTestabilities=function(){return Array.from(a._applications.values())};Je.getAllAngularRootElements=function(){return Array.from(a._applications.keys())};Je.frameworkStabilizers||(Je.frameworkStabilizers=[]);Je.frameworkStabilizers.push(function(b){var c=Je.getAllAngularTestabilities(),d=c.length,e=function(){d--;d==0&&b()};
c.forEach(function(f){f.whenStable(e)})})};TEc.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 Ey=function(){};Ey.prototype.build=function(){return new XMLHttpRequest};Ey.\u0275fac=function(a){return new (a||Ey)};Ey.\u0275prov=Cc({token:Ey,factory:Ey.\u0275fac});var UEc=function(a){this._doc=a};var Fy=function(a){this._doc=a};Z(Fy,UEc);Fy.prototype.supports=function(){return!0};Fy.prototype.addEventListener=function(a,b,c,d){var e=this;a.addEventListener(b,c,d);return function(){return e.removeEventListener(a,b,c,d)}};Fy.prototype.removeEventListener=function(a,b,c,d){return a.removeEventListener(b,c,d)};Fy.\u0275fac=function(a){return new (a||Fy)(Wc(Yh))};Fy.\u0275prov=Cc({token:Fy,factory:Fy.\u0275fac});var VEc=new bd(""),Gy=function(a,b){var c=this;this._zone=b;this._eventNameToPlugin=new Map;a.forEach(function(d){d.manager=c});this._plugins=a.filter(function(d){return!(d instanceof Fy)}).slice().reverse();(a=a.find(function(d){return d instanceof Fy}))&&this._plugins.push(a)};Gy.prototype.addEventListener=function(a,b,c,d){return this._findPluginFor(b).addEventListener(a,b,c,d)};
Gy.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 Pc(5101,!1);this._eventNameToPlugin.set(a,b);return b};Gy.\u0275fac=function(a){return new (a||Gy)(Wc(VEc),Wc(Tg))};Gy.\u0275prov=Cc({token:Gy,factory:Gy.\u0275fac});var Hy=function(a,b,c){this.doc=a;this.appId=b;this.nonce=c;this.inline=new Map;this.external=new Map;this.hosts=new Set;c=this.inline;var d=this.external,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)},
XEc=function(a,b,c){b=l(b);for(var d=b.next();!d.done;d=b.next())WEc(a,d.value,a.inline,oqa);c==null||c.forEach(function(e){return WEc(a,e,a.external,pqa)})},ZEc=function(a,b,c){b=l(b);for(var d=b.next();!d.done;d=b.next())YEc(d.value,a.inline);c==null||c.forEach(function(e){return YEc(e,a.external)})},WEc=function(a,b,c,d){var e=c.get(b);e?e.usage++:c.set(b,{usage:1,elements:[].concat(n(a.hosts)).map(function(f){return a.addElement(f,d(b,a.doc))})})},YEc=function(a,b){var c=b.get(a);c&&(c.usage--,
c.usage<=0&&(nqa(c.elements),b.delete(a)))};Hy.prototype.ngOnDestroy=function(){for(var a=l([].concat(n(this.inline),n(this.external))),b=a.next();!b.done;b=a.next())b=l(b.value),b.next(),b=b.next().value.elements,nqa(b);this.hosts.clear()};Hy.prototype.addElement=function(a,b){this.nonce&&b.setAttribute("nonce",this.nonce);return a.appendChild(b)};Hy.\u0275fac=function(a){return new (a||Hy)(Wc(Yh),Wc(ICc),Wc(KCc,8),Wc(JCc))};Hy.\u0275prov=Cc({token:Hy,factory:Hy.\u0275fac});var $Ec={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"},qqa=/%COMP%/g,aFc=new bd("",{factory:function(){return!0}}),Jy=function(a,b,c,d,e,f,g,k){this.eventManager=a;this.sharedStylesHost=b;this.appId=c;this.removeStylesOnCompDestroy=d;this.doc=e;this.ngZone=f;this.nonce=g===void 0?null:g;this.tracingService=k===void 0?
null:k;this.rendererByCompId=new Map;this.platformIsServer=!1;this.defaultRenderer=new Iy(a,e,f,this.platformIsServer,this.tracingService)};
Jy.prototype.createRenderer=function(a,b){if(!a||!b)return this.defaultRenderer;a:{var c=this.rendererByCompId,d=c.get(b.id);if(!d){d=this.doc;var e=this.ngZone,f=this.eventManager,g=this.sharedStylesHost,k=this.removeStylesOnCompDestroy,m=this.platformIsServer,r=this.tracingService;switch(b.encapsulation){case 0:d=new bFc(f,g,b,this.appId,k,d,e,m,r);break;case 3:b=new cFc(f,a,b,d,e,this.nonce,m,r,g);break a;case 4:b=new cFc(f,a,b,d,e,this.nonce,m,r);break a;default:d=new Ky(f,g,b,k,d,e,m,r)}c.set(b.id,
d)}b=d}b instanceof bFc?(XEc(b.sharedStylesHost,b.styles,b.styleUrls),b.setAttribute(a,b.hostAttr,"")):b instanceof Ky&&XEc(b.sharedStylesHost,b.styles,b.styleUrls);return b};Jy.prototype.ngOnDestroy=function(){this.rendererByCompId.clear()};Jy.\u0275fac=function(a){return new (a||Jy)(Wc(Gy),Wc(Hy),Wc(ICc),Wc(aFc),Wc(Yh),Wc(Tg),Wc(KCc),Wc(Ae,8))};Jy.\u0275prov=Cc({token:Jy,factory:Jy.\u0275fac});
var Iy=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};h=Iy.prototype;h.destroy=function(){};h.createElement=function(a,b){return b?this.doc.createElementNS($Ec[b]||b,a):this.doc.createElement(a)};h.createComment=function(a){return this.doc.createComment(a)};h.createText=function(a){return this.doc.createTextNode(a)};
h.appendChild=function(a,b){(a.tagName==="TEMPLATE"&&a.content!==void 0?a.content:a).appendChild(b)};h.insertBefore=function(a,b,c){a&&(a.tagName==="TEMPLATE"&&a.content!==void 0?a.content:a).insertBefore(b,c)};h.removeChild=function(a,b){b.remove()};h.selectRootElement=function(a,b){a=typeof a==="string"?this.doc.querySelector(a):a;if(!a)throw new Pc(-5104,!1);b||(a.textContent="");return a};h.parentNode=function(a){return a.parentNode};h.nextSibling=function(a){return a.nextSibling};
h.setAttribute=function(a,b,c,d){d?(b=d+":"+b,(d=$Ec[d])?a.setAttributeNS(d,b,c):a.setAttribute(b,c)):a.setAttribute(b,c)};h.removeAttribute=function(a,b,c){if(c){var d=$Ec[c];d?a.removeAttributeNS(d,b):a.removeAttribute(c+":"+b)}else a.removeAttribute(b)};h.addClass=function(a,b){a.classList.add(b)};h.removeClass=function(a,b){a.classList.remove(b)};h.setStyle=function(a,b,c,d){d&3?a.style.setProperty(b,c,d&1?"important":""):a.style[b]=c};
h.removeStyle=function(a,b,c){c&2?a.style.removeProperty(b):a.style[b]=""};h.setProperty=function(a,b,c){a!=null&&(a[b]=c)};h.setValue=function(a,b){a.nodeValue=b};h.listen=function(a,b,c,d){if(typeof a==="string"&&(a=KEc(this.doc,a),!a))throw new Pc(5102,!1);c=dFc(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 dFc=function(a){return function(b){if(b==="__ngUnwrap__")return a;a(b)===!1&&b.preventDefault()}},cFc=function(a,b,c,d,e,f,g,k,m){Iy.call(this,a,d,e,g,k);this.hostEl=b;this.sharedStylesHost=m;this.shadowRoot=b.attachShadow({mode:"open"});if(this.sharedStylesHost){a=this.sharedStylesHost;b=this.shadowRoot;a.hosts.add(b);e=l(a.inline);for(g=e.next();!g.done;g=e.next())g=l(g.value),k=g.next().value,g.next().value.elements.push(a.addElement(b,oqa(k,a.doc)));e=l(a.external);for(g=e.next();!g.done;g=
e.next())g=l(g.value),k=g.next().value,g.next().value.elements.push(a.addElement(b,pqa(k,a.doc)))}a=c.styles;a=rqa(c.id,a);a=l(a);for(b=a.next();!b.done;b=a.next())b=b.value,e=document.createElement("style"),f&&e.setAttribute("nonce",f),e.textContent=b,this.shadowRoot.appendChild(e);var r;if(a=(r=c.getExternalStyles)==null?void 0:r.call(c))for(c=l(a),r=c.next();!r.done;r=c.next())r=pqa(r.value,d),f&&r.setAttribute("nonce",f),this.shadowRoot.appendChild(r)};Z(cFc,Iy);
var eFc=function(a,b){return b===a.hostEl?a.shadowRoot:b};h=cFc.prototype;h.appendChild=function(a,b){return Iy.prototype.appendChild.call(this,eFc(this,a),b)};h.insertBefore=function(a,b,c){return Iy.prototype.insertBefore.call(this,eFc(this,a),b,c)};h.removeChild=function(a,b){return Iy.prototype.removeChild.call(this,null,b)};h.parentNode=function(a){return eFc(this,Iy.prototype.parentNode.call(this,eFc(this,a)))};h.destroy=function(){this.sharedStylesHost&&this.sharedStylesHost.hosts.delete(this.shadowRoot)};
var Ky=function(a,b,c,d,e,f,g,k,m){Iy.call(this,a,e,f,g,k);this.sharedStylesHost=b;this.removeStylesOnCompDestroy=d;a=c.styles;this.styles=m?rqa(m,a):a;var r;this.styleUrls=(r=c.getExternalStyles)==null?void 0:r.call(c,m)};Z(Ky,Iy);Ky.prototype.destroy=function(){this.removeStylesOnCompDestroy&&Ria.size===0&&ZEc(this.sharedStylesHost,this.styles,this.styleUrls)};
var bFc=function(a,b,c,d,e,f,g,k,m){d=d+"-"+c.id;Ky.call(this,a,b,c,e,f,g,k,m,d);this.contentAttr="_ngcontent-%COMP%".replace(qqa,d);this.hostAttr="_nghost-%COMP%".replace(qqa,d)};Z(bFc,Ky);bFc.prototype.createElement=function(a,b){a=Ky.prototype.createElement.call(this,a,b);Ky.prototype.setAttribute.call(this,a,this.contentAttr,"");return a};var fFc=["alt","control","meta","shift"],gFc={"\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"},hFc={alt:function(a){return a.altKey},control:function(a){return a.ctrlKey},meta:function(a){return a.metaKey},shift:function(a){return a.shiftKey}},Qy=function(a){this._doc=a};Z(Qy,UEc);Qy.prototype.supports=function(a){return iFc(a)!=null};
Qy.prototype.addEventListener=function(a,b,c,d){var e=iFc(b),f=jFc(e.fullKey,c,this.manager._zone);return this.manager._zone.runOutsideAngular(function(){return REc(a,e.domEventName,f,d)})};
var iFc=function(a){var b=a.toLowerCase().split(".");a=b.shift();if(b.length===0||a!=="keydown"&&a!=="keyup")return null;var c=kFc(b.pop()),d="",e=b.indexOf("code");e>-1&&(b.splice(e,1),d="code.");fFc.forEach(function(f){var g=b.indexOf(f);g>-1&&(b.splice(g,1),d+=f+".")});d+=c;if(b.length!=0||c.length===0)return null;a={domEventName:a};a.fullKey=d;return a},lFc=function(a,b){var c=gFc[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");fFc.forEach(function(e){e!==c&&(0,hFc[e])(a)&&(d+=e+".")});d+=c;return d===b},jFc=function(a,b,c){return function(d){lFc(d,a)&&c.runGuarded(function(){return b(d)})}},kFc=function(a){return a==="esc"?"escape":a};Qy.\u0275fac=function(a){return new (a||Qy)(Wc(Yh))};Qy.\u0275prov=Cc({token:Qy,factory:Qy.\u0275fac});var lEc=rpa(uEc,"browser",[{provide:JCc,useValue:"browser"},{provide:tpa,useValue:function(){var a=new Dy;Tl!=null||(Tl=a)},multi:!0},{provide:Yh,useFactory:function(){return Zga=document}}]);new bd("");
var mFc=[{provide:LDc,useClass:TEc},{provide:KDc,useClass:Ux},{provide:Ux,useClass:Ux}],nFc=[{provide:spa,useValue:"root"},{provide:Qx,useFactory:function(){return new Qx}},{provide:VEc,useClass:Fy,multi:!0},{provide:VEc,useClass:Qy,multi:!0},Jy,Hy,Gy,{provide:Ye,useExisting:Jy},{provide:QEc,useClass:Ey},[]],Ry=function(){};Ry.\u0275fac=function(a){return new (a||Ry)};Ry.\u0275mod=$e({type:Ry});Ry.\u0275inj=Dc({providers:[].concat(n(nFc),n(mFc)),imports:[xy,Xx]});var Sy=function(a){this._doc=a};Sy.prototype.getTitle=function(){return this._doc.title};Sy.prototype.setTitle=function(a){this._doc.title=a||""};Sy.\u0275fac=function(a){return new (a||Sy)(Wc(Yh))};Sy.\u0275prov=Cc({token:Sy,factory:Sy.\u0275fac,providedIn:"root"});new bd("");new bd("");var nh=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&&oFc(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){oFc(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;pFc(b,c,d)})}:this.headers=
new Map};h=nh.prototype;h.has=function(a){this.init();return this.headers.has(a.toLowerCase())};h.get=function(a){this.init();return(a=this.headers.get(a.toLowerCase()))&&a.length>0?a[0]:null};h.keys=function(){this.init();return Array.from(this.normalizedNames.values())};h.getAll=function(a){this.init();return this.headers.get(a.toLowerCase())||null};h.append=function(a,b){return this.clone({name:a,value:b,op:"a"})};h.set=function(a,b){return this.clone({name:a,value:b,op:"s"})};
h.delete=function(a,b){return this.clone({name:a,value:b,op:"d"})};var qFc=function(a,b,c){a.normalizedNames.has(c)||a.normalizedNames.set(c,b)};nh.prototype.init=function(){var a=this;this.lazyInit&&(this.lazyInit instanceof nh?rFc(this,this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(b){return sFc(a,b)}),this.lazyUpdate=null))};
var rFc=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))})};nh.prototype.clone=function(a){var b=new nh;b.lazyInit=this.lazyInit&&this.lazyInit instanceof nh?this.lazyInit:this;b.lazyUpdate=(this.lazyUpdate||[]).concat([a]);return b};
var sFc=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;qFc(a,b.name,c);b=(b.op==="a"?a.headers.get(c):void 0)||[];b.push.apply(b,n(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)}},oFc=function(a,
b,c){var d=b.toLowerCase();qFc(a,b,d);a.headers.has(d)?a.headers.get(d).push(c):a.headers.set(d,[c])},pFc=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);qFc(a,b,d)};nh.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 tFc=function(){this.map=new Map};h=tFc.prototype;h.set=function(a,b){this.map.set(a,b);return this};h.get=function(a){this.map.has(a)||this.map.set(a,a.defaultValue());return this.map.get(a)};h.delete=function(a){this.map.delete(a);return this};h.has=function(a){return this.map.has(a)};h.keys=function(){return this.map.keys()};var uFc=function(){},tqa=/%(\d[a-f0-9])/gi,uqa={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"},oh=function(a){var b=this;a=a===void 0?{}:a;this.cloneFrom=this.updates=null;this.encoder=a.encoder||new uFc;if(a.fromString){if(a.fromObject)throw new Pc(2805,!1);this.map=sqa(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(wqa):[""+d];b.map.set(c,d)})):this.map=null};h=oh.prototype;
h.has=function(a){this.init();return this.map.has(a)};h.get=function(a){this.init();return(a=this.map.get(a))?a[0]:null};h.getAll=function(a){this.init();return this.map.get(a)||null};h.keys=function(){this.init();return Array.from(this.map.keys())};h.append=function(a,b){return this.clone({param:a,value:b,op:"a"})};h.set=function(a,b){return this.clone({param:a,value:b,op:"s"})};h.delete=function(a,b){return this.clone({param:a,value:b,op:"d"})};
h.toString=function(){var a=this;this.init();return this.keys().map(function(b){var c=vqa(b);return a.map.get(b).map(function(d){return c+"="+vqa(d)}).join("&")}).filter(function(b){return b!==""}).join("&")};h.clone=function(a){var b=new oh({encoder:this.encoder});b.cloneFrom=this.cloneFrom||this;b.updates=(this.updates||[]).concat(a);return b};
h.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 ph=function(a,b,c,d){this.url=b;this.body=null;this.keepalive=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;if(c){this.reportProgress=!!c.reportProgress;this.withCredentials=!!c.withCredentials;this.keepalive=!!c.keepalive;c.responseType&&(this.responseType=c.responseType);c.headers&&(this.headers=
c.headers);c.context&&(this.context=c.context);c.params&&(this.params=c.params);c.priority&&(this.priority=c.priority);c.cache&&(this.cache=c.cache);c.credentials&&(this.credentials=c.credentials);if(typeof c.timeout==="number"){if(c.timeout<1||!Number.isInteger(c.timeout))throw new Pc(2822,"");this.timeout=c.timeout}c.mode&&(this.mode=c.mode);c.redirect&&(this.redirect=c.redirect);c.integrity&&(this.integrity=c.integrity);c.referrer&&(this.referrer=c.referrer);c.referrerPolicy&&(this.referrerPolicy=
c.referrerPolicy);this.transferCache=c.transferCache}this.headers!=null||(this.headers=new nh);this.context!=null||(this.context=new tFc);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 oh,this.urlWithParams=b)},vFc=function(a){return a.body===null?null:typeof a.body==="string"||xqa(a.body)||yqa(a.body)||zqa(a.body)||typeof URLSearchParams!=="undefined"&&a.body instanceof URLSearchParams?
a.body:a.body instanceof oh?a.body.toString():typeof a.body==="object"||typeof a.body==="boolean"||Array.isArray(a.body)?JSON.stringify(a.body):a.body.toString()};
ph.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.keepalive)!=null?e:this.keepalive;e=a.priority||this.priority;var g=a.cache||this.cache,k=a.mode||this.mode,m=a.redirect||this.redirect,r=a.credentials||this.credentials,w=a.referrer||this.referrer,x=a.integrity||this.integrity,D=a.referrerPolicy||this.referrerPolicy,H,J=(H=a.transferCache)!=null?H:this.transferCache,O;H=(O=a.timeout)!=null?O:this.timeout;O=a.body!==
void 0?a.body:this.body;var R,V=(R=a.withCredentials)!=null?R:this.withCredentials,ba;R=(ba=a.reportProgress)!=null?ba:this.reportProgress;ba=a.headers||this.headers;var pa=a.params||this.params,ua,ma=(ua=a.context)!=null?ua:this.context;a.setHeaders!==void 0&&(ba=Object.keys(a.setHeaders).reduce(function(Da,ja){return Da.set(ja,a.setHeaders[ja])},ba));a.setParams&&(pa=Object.keys(a.setParams).reduce(function(Da,ja){return Da.set(ja,a.setParams[ja])},pa));return new ph(b,c,O,{params:pa,headers:ba,
context:ma,reportProgress:R,responseType:d,withCredentials:V,transferCache:J,keepalive:f,cache:g,priority:e,timeout:H,mode:k,redirect:m,credentials:r,referrer:w,integrity:x,referrerPolicy:D})};var Ty=function(a,b,c){b=b===void 0?200:b;c=c===void 0?"OK":c;this.headers=a.headers||new nh;this.status=a.status!==void 0?a.status:b;this.statusText=a.statusText||c;this.url=a.url||null;this.redirected=a.redirected;this.responseType=a.responseType;this.ok=this.status>=200&&this.status<300},wFc=function(a){a=a===void 0?{}:a;Ty.call(this,a);this.type=2};Z(wFc,Ty);
wFc.prototype.clone=function(a){a=a===void 0?{}:a;return new wFc({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 Uy=function(a){a=a===void 0?{}:a;Ty.call(this,a);this.type=4;this.body=a.body!==void 0?a.body:null};Z(Uy,Ty);
Uy.prototype.clone=function(a){a=a===void 0?{}:a;var b,c;return new Uy({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,redirected:(b=a.redirected)!=null?b:this.redirected,responseType:(c=a.responseType)!=null?c:this.responseType})};
var xFc=function(a){Ty.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};Z(xFc,Ty);var yFc=new bd("");var zFc=new bd(""),AFc=new bd("",{factory:function(){return[]}}),BFc=new bd(""),CFc=new bd("",{providedIn:"root",factory:function(){return!0}});var DFc=/^\)\]\}',?\n/,Vy=function(a){this.xhrFactory=a;this.tracingService=q(Ae,{optional:!0})},EFc=function(a,b){var c;return((c=a.tracingService)==null?0:c.propagate)?a.tracingService.propagate(b):b};
Vy.prototype.handle=function(a){var b=this;if(a.method==="JSONP")throw new Pc(-2800,!1);var c=this.xhrFactory;return be(null).pipe(zf(function(){return new Sd(function(d){var e=c.build();e.open(a.method,a.urlWithParams);a.withCredentials&&(e.withCredentials=!0);a.headers.forEach(function(O,R){return e.setRequestHeader(O,R.join(","))});a.headers.has("Accept")||e.setRequestHeader("Accept","application/json, text/plain, */*");if(!a.headers.has("Content-Type")){var f=a.body===null||zqa(a.body)?null:yqa(a.body)?
a.body.type||null:xqa(a.body)?null:typeof a.body==="string"?"text/plain":a.body instanceof oh?"application/x-www-form-urlencoded;charset=UTF-8":typeof a.body==="object"||typeof a.body==="number"||typeof a.body==="boolean"?"application/json":null;f!==null&&e.setRequestHeader("Content-Type",f)}a.timeout&&(e.timeout=a.timeout);a.responseType&&(f=a.responseType.toLowerCase(),e.responseType=f!=="json"?f:"text");var g=vFc(a),k=null,m=function(){if(k!==null)return k;var O=e.statusText||"OK",R=new nh(e.getAllResponseHeaders());
return k=new wFc({headers:R,status:e.status,statusText:O,url:e.responseURL||a.url})},r=EFc(b,function(){var O=m(),R=O.headers,V=O.status,ba=O.statusText;O=O.url;var pa=null;V!==204&&(pa=typeof e.response==="undefined"?e.responseText:e.response);V===0&&(V=pa?200:0);var ua=V>=200&&V<300;if(a.responseType==="json"&&typeof pa==="string"){var ma=pa;pa=pa.replace(DFc,"");try{pa=pa!==""?JSON.parse(pa):null}catch(Da){pa=ma,ua&&(ua=!1,pa={error:Da,text:pa})}}ua?(d.next(new Uy({body:pa,headers:R,status:V,statusText:ba,
url:O||void 0})),d.complete()):d.error(new xFc({error:pa,headers:R,status:V,statusText:ba,url:O||void 0}))}),w=EFc(b,function(O){var R=m().url;O=new xFc({error:O,status:e.status||0,statusText:e.statusText||"Unknown Error",url:R||void 0});d.error(O)}),x=w;a.timeout&&(x=EFc(b,function(){var O=m().url;O=new xFc({error:new DOMException("Request timed out","TimeoutError"),status:e.status||0,statusText:e.statusText||"Request timeout",url:O||void 0});d.error(O)}));var D=!1,H=EFc(b,function(O){D||(d.next(m()),
D=!0);var R={type:3,loaded:O.loaded};O.lengthComputable&&(R.total=O.total);a.responseType==="text"&&e.responseText&&(R.partialText=e.responseText);d.next(R)}),J=EFc(b,function(O){var R={type:1,loaded:O.loaded};O.lengthComputable&&(R.total=O.total);d.next(R)});e.addEventListener("load",r);e.addEventListener("error",w);e.addEventListener("timeout",x);e.addEventListener("abort",w);a.reportProgress&&(e.addEventListener("progress",H),g!==null&&e.upload&&e.upload.addEventListener("progress",J));e.send(g);
d.next({type:0});return function(){e.removeEventListener("error",w);e.removeEventListener("abort",w);e.removeEventListener("load",r);e.removeEventListener("timeout",x);a.reportProgress&&(e.removeEventListener("progress",H),g!==null&&e.upload&&e.upload.removeEventListener("progress",J));e.readyState!==e.DONE&&e.abort()}})}))};Vy.\u0275fac=function(a){return new (a||Vy)(Wc(QEc))};Vy.\u0275prov=Cc({token:Vy,factory:Vy.\u0275fac,providedIn:"root"});var Wy=function(){};Wy.\u0275fac=function(a){return new (a||Wy)};Wy.\u0275prov=Cc({token:Wy,factory:function(a){var b=null;return b=a?new (a||Wy):Wc(Vy)},providedIn:"root"});var Xy=function(a,b){this.backend=a;this.injector=b;this.chain=null;this.pendingTasks=q(Wx);this.contributeToStability=q(CFc)};
Xy.prototype.handle=function(a){var b=this;this.chain===null&&(this.chain=Array.from(new Set([].concat(n(this.injector.get(AFc)),n(this.injector.get(BFc,[]))))).reduceRight(function(d,e){return Cqa(d,e,b.injector)},Aqa));if(this.contributeToStability){var c=this.pendingTasks.add();return this.chain(a,function(d){return b.backend.handle(d)}).pipe(pf(c))}return this.chain(a,function(d){return b.backend.handle(d)})};Xy.\u0275fac=function(a){return new (a||Xy)(Wc(Wy),Wc(Xe))};
Xy.\u0275prov=Cc({token:Xy,factory:Xy.\u0275fac,providedIn:"root"});var Yy=function(){};Yy.\u0275fac=function(a){return new (a||Yy)};Yy.\u0275prov=Cc({token:Yy,factory:function(a){var b=null;return b=a?new (a||Yy):Wc(Xy)},providedIn:"root"});var Zy=function(a){this.handler=a};h=Zy.prototype;
h.request=function(a,b,c){var d=this;c=c===void 0?{}:c;if(a instanceof ph)b=a;else{var e=void 0;e=c.headers instanceof nh?c.headers:new nh(c.headers);var f=void 0;c.params&&(f=c.params instanceof oh?c.params:new oh({fromObject:c.params}));b=new ph(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,keepalive:c.keepalive,priority:c.priority,cache:c.cache,
mode:c.mode,redirect:c.redirect,credentials:c.credentials,referrer:c.referrer,referrerPolicy:c.referrerPolicy,integrity:c.integrity,timeout:c.timeout})}e=be(b).pipe(mla(function(g){return d.handler.handle(g)}));if(a instanceof ph||c.observe==="events")return e;a=e.pipe(te(function(g){return g instanceof Uy}));switch(c.observe||"body"){case "body":switch(b.responseType){case "arraybuffer":return a.pipe(A(function(g){if(g.body!==null&&!(g.body instanceof ArrayBuffer))throw new Pc(2806,!1);return g.body}));
case "blob":return a.pipe(A(function(g){if(g.body!==null&&!(g.body instanceof Blob))throw new Pc(2807,!1);return g.body}));case "text":return a.pipe(A(function(g){if(g.body!==null&&typeof g.body!=="string")throw new Pc(2808,!1);return g.body}));default:return a.pipe(A(function(g){return g.body}))}case "response":return a;default:throw new Pc(2809,!1);}};h.delete=function(a,b){b=b===void 0?{}:b;return this.request("DELETE",a,b)};h.get=function(a,b){b=b===void 0?{}:b;return this.request("GET",a,b)};
h.head=function(a,b){b=b===void 0?{}:b;return this.request("HEAD",a,b)};h.options=function(a,b){b=b===void 0?{}:b;return this.request("OPTIONS",a,b)};h.post=function(a,b,c){c=c===void 0?{}:c;return this.request("POST",a,Dqa(c,b))};h.put=function(a,b,c){c=c===void 0?{}:c;return this.request("PUT",a,Dqa(c,b))};Zy.\u0275fac=function(a){return new (a||Zy)(Wc(Yy))};Zy.\u0275prov=Cc({token:Zy,factory:Zy.\u0275fac,providedIn:"root"});var Eqa=new bd("",{factory:function(){return!0}}),FFc=new bd("",{providedIn:"root",factory:function(){return"XSRF-TOKEN"}}),Gqa=new bd("",{providedIn:"root",factory:function(){return"X-XSRF-TOKEN"}}),$y=function(){this.cookieName=q(FFc);this.doc=q(Yh);this.lastCookieString="";this.lastToken=null};
$y.prototype.getToken=function(){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};$y.\u0275fac=function(a){return new (a||$y)};
$y.\u0275prov=Cc({token:$y,factory:$y.\u0275fac,providedIn:"root"});var mh=function(){};mh.\u0275fac=function(a){return new (a||mh)};mh.\u0275prov=Cc({token:mh,factory:function(a){var b=null;return b=a?new (a||mh):Wc($y)},providedIn:"root"});var Fqa=/^(?:https?:)?\/\//i;var GFc=new bd("");var az=function(){};az.\u0275fac=function(a){return new (a||az)};az.\u0275mod=$e({type:az});
az.\u0275inj=Dc({providers:[function(){for(var a=[Zy,Xy,{provide:Yy,useExisting:Xy},{provide:Wy,useFactory:function(){var d;return(d=q(yFc,{optional:!0}))!=null?d:q(Vy)}},{provide:AFc,useValue:Hqa,multi:!0}],b=l(Yc.apply(0,arguments)),c=b.next();!c.done;c=b.next())a.push.apply(a,n(c.value.\u0275providers));return{"\u0275providers":a}}({"\u0275kind":1,"\u0275providers":[{provide:GFc,useFactory:function(){var a=null;return function(b,c){if(a===null){var d;a=((d=q(zFc,{optional:!0}))!=null?d:[]).reduceRight(Bqa,
Aqa)}d=q(Wx);return q(CFc)?(d=d.add(),a(b,c).pipe(pf(d))):a(b,c)}}},{provide:AFc,useExisting:GFc,multi:!0}]})]});var HFc=Jqa("json");HFc.arrayBuffer=Jqa("arraybuffer");HFc.blob=Jqa("blob");HFc.text=Jqa("text");
var Iqa=function(a,b,c,d,e,f){gy.call(this,b,function(k){var m=k.params;var r=k.abortSignal;var w=function(){return J.unsubscribe()};r.addEventListener("abort",w);var x=qg.apply(null,[{value:void 0}].concat(n([]))),D;k=new Promise(function(O){return D=O});var H=function(O){x.set(O);var R;(R=D)==null||R(x);D=void 0};var J=g.client.request(m).subscribe({next:function(O){switch(O.type){case 4:g._headers.set(O.headers);g._statusCode.set(O.status);try{H({value:e?e(O.body):O.body})}catch(R){H({error:R instanceof
Error?R:new qEc(R)})}break;case 3:g._progress.set(O)}},error:function(O){O instanceof xFc&&(g._headers.set(O.headers),g._statusCode.set(O.status));H({error:O});r.removeEventListener("abort",w)},complete:function(){D&&H({error:new Pc(991,!1)});r.removeEventListener("abort",w)}});return k},c,f,d,a);var g=this;this._headers=wpa(Object.assign({},{},{source:this.extRequest,computation:function(){}}));this._progress=wpa(Object.assign({},{},{source:this.extRequest,computation:function(){}}));this._statusCode=
wpa(Object.assign({},{},{source:this.extRequest,computation:function(){}}));this.headers=ah.apply(null,[function(){return g.status()==="resolved"||g.status()==="error"?g._headers():void 0}].concat(n([])));this.progress=this._progress.asReadonly();this.statusCode=this._statusCode.asReadonly();this.client=a.get(Zy)};Z(Iqa,gy);Iqa.prototype.set=function(a){gy.prototype.set.call(this,a);this._headers.set(void 0);this._progress.set(void 0);this._statusCode.set(void 0)};new bd("");new bd("");var bz=function(){};bz.\u0275fac=function(a){return new (a||bz)};bz.\u0275prov=Cc({token:bz,factory:function(a){var b=null;return b=a?new (a||bz):Wc(cz)},providedIn:"root"});var cz=function(a){this._doc=a};Z(cz,bz);
cz.prototype.sanitize=function(a,b){if(b==null)return null;switch(a){case 0:return b;case 1:return Ie(b,"HTML")?He(b):Bja(this._doc,String(b)).toString();case 2:return Ie(b,"Style")?He(b):b;case 3:if(Ie(b,"Script"))return He(b);throw new Pc(5200,!1);case 4:return Ie(b,"URL")?He(b):oja(String(b));case 5:if(Ie(b,"ResourceURL"))return He(b);throw new Pc(5201,!1);default:throw new Pc(5202,!1);}};cz.prototype.bypassSecurityTrustHtml=function(a){return new tDc(a)};cz.prototype.bypassSecurityTrustUrl=function(a){return new uDc(a)};
cz.prototype.bypassSecurityTrustResourceUrl=function(a){return new vDc(a)};cz.\u0275fac=function(a){return new (a||cz)(Wc(Yh))};cz.\u0275prov=Cc({token:cz,factory:cz.\u0275fac,providedIn:"root"});var Rra=function(a){this.privateDoNotAccessOrElseWrappedAttributePrefix=a};Rra.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var IFc=Pw([""]),JFc=Ow(["\x00"],["\\0"]),KFc=Ow(["\n"],["\\n"]),LFc=Ow(["\x00"],["\\u0000"]),MFc=Pw([""]),NFc=Ow(["\x00"],["\\0"]),OFc=Ow(["\n"],["\\n"]),PFc=Ow(["\x00"],["\\u0000"]);Lqa(function(a){return a(IFc)})||Lqa(function(a){return a(JFc)})||Lqa(function(a){return a(KFc)})||Lqa(function(a){return a(LFc)});Kqa(MFc)&&Kqa(NFc)&&Kqa(OFc)&&Kqa(PFc);var QFc=globalThis.trustedTypes,Mqa=QFc,Oqa;var rh=function(a){this.privateDoNotAccessOrElseWrappedHtml=a};rh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};var Lj=qh(function(){return new rh(QFc?QFc.emptyHTML:"")});var Qqa=function(a){this.privateDoNotAccessOrElseWrappedStyleSheet=a};Qqa.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var wh=function(a){this.privateDoNotAccessOrElseWrappedResourceUrl=a};wh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var Sqa=function(a){this.privateDoNotAccessOrElseWrappedUrl=a};Sqa.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};var Yqa=zh("about:invalid#zClosurez");var Uqa=function(a){this.isValid=a},Wqa=[Vqa("data"),Vqa("http"),Vqa("https"),Vqa("mailto"),Vqa("ftp"),new Uqa(function(a){return/^[^:]*([/?#]|$)/.test(a)})],Zqa=qh(function(){return typeof URL==="function"}),RFc=["data:","http:","https:","mailto:","ftp:"],ara=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var cra=function(a){this.privateDoNotAccessOrElseWrappedScript=a};cra.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var gra=/^[a-z][a-z\d-]*$/i,hra="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),kra="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),lra=["action","formaction","href"];var SFc=new function(a){var b=new Map([["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],
["VIDEO",new Map([["src",{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]]),c=new Set("title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "));
this.allowedElements=new Set("ARTICLE SECTION NAV ASIDE H1 H2 H3 H4 H5 H6 HEADER FOOTER ADDRESS P HR PRE BLOCKQUOTE OL UL LH LI DL DT DD FIGURE FIGCAPTION MAIN DIV EM STRONG SMALL S CITE Q DFN ABBR RUBY RB RT RTC RP DATA TIME CODE VAR SAMP KBD SUB SUP I B U MARK BDI BDO SPAN BR WBR NOBR INS DEL PICTURE PARAM TRACK MAP TABLE CAPTION COLGROUP COL TBODY THEAD TFOOT TR TD TH SELECT DATALIST OPTGROUP OPTION OUTPUT PROGRESS METER FIELDSET LEGEND DETAILS SUMMARY MENU DIALOG SLOT CANVAS FONT CENTER ACRONYM BASEFONT BIG DIR HGROUP STRIKE TT".split(" "));
this.elementPolicies=b;this.allowedGlobalAttributes=c;this.globalAttributePolicies=a}(new Map([["dir",{policyAction:3,conditions:qh(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],["async",{policyAction:3,conditions:qh(function(){return new Map([["async",new Set(["async"])]])})}],["loading",{policyAction:3,conditions:qh(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],["target",{policyAction:3,conditions:qh(function(){return new Map([["target",new Set(["_self",
"_blank"])]])})}]]));var TFc=function(){this.sanitizerTable=SFc;this.changes=[]};TFc.prototype.sanitize=function(a){var b=document.implementation.createHTMLDocument("");return fra(UFc(this,a,b),b.body)};
var UFc=function(a,b,c){b=nra(b,c);b=document.createTreeWalker(b,5,function(k){if(k.nodeType===3)k=1;else if(pra(k))if(k=ora(k),k===null)k=2;else{var m=a.sanitizerTable;k=k!=="FORM"&&(m.allowedElements.has(k)||m.elementPolicies.has(k))?1:2}else k=2;return k});for(var d=b.nextNode(),e=c.createDocumentFragment(),f=e;d!==null;){var g=void 0;if(d.nodeType===3)g=a.createTextNode(d.data);else if(pra(d))g=VFc(a,d,c);else throw Error("la");f.appendChild(g);if(d=b.firstChild())f=g;else for(;!(d=b.nextSibling())&&
(d=b.parentNode());)f=f.parentNode}return e};TFc.prototype.createTextNode=function(a){return document.createTextNode(a)};
var VFc=function(a,b,c){var d=ora(b);c=c.createElement(d);b=b.attributes;for(var e=l(b),f=e.next();!f.done;f=e.next()){var g=f.value;f=g.name;g=g.value;var k=a.sanitizerTable;var m=k.elementPolicies.get(d);k=(m==null?0:m.has(f))?m.get(f):k.allowedGlobalAttributes.has(f)?{policyAction:1}:(k=k.globalAttributePolicies.get(f))?k:{policyAction:0};a:{if(m=k.conditions){m=l(m);for(var r=m.next();!r.done;r=m.next()){var w=l(r.value);r=w.next().value;w=w.next().value;var x=void 0;if((r=(x=b.getNamedItem(r))==
null?void 0:x.value)&&!w.has(r)){m=!1;break a}}}m=!0}if(m)switch(k.policyAction){case 1:Hh(c,f,g);break;case 2:throw Error();case 3:Hh(c,f,g.toLowerCase());break;case 4:Hh(c,f,g);break;case 5:Hh(c,f,g);break;case 6:Hh(c,f,g);break;case 7:k=$qa(g),g=k!==void 0&&RFc.indexOf(k.toLowerCase())!==-1?g:"about:invalid#zClosurez",Hh(c,f,g)}}return c},Wra=qh(function(){return new TFc});var dz=function(a){this.decorated=new cz(a)};Z(dz,bz);dz.prototype.sanitize=function(a,b){if(b==null)return null;if(b instanceof wh||Ah(b)||b instanceof rh){if(WFc(b,a))return this.decorated.sanitize(a,XFc(this,b));throw Error("Ma`"+EDc[a]+"`"+b);}return this.decorated.sanitize(a,b)};dz.prototype.bypassSecurityTrustHtml=function(){throw Error("Na");};dz.prototype.bypassSecurityTrustUrl=function(){throw Error("Na");};dz.prototype.bypassSecurityTrustResourceUrl=function(){throw Error("Na");};
var XFc=function(a,b){if(b!=null){if(b instanceof rh)return a.decorated.bypassSecurityTrustHtml(String(b));if(Ah(b))return a.decorated.bypassSecurityTrustUrl(Tqa(b));if(b instanceof wh)return a.decorated.bypassSecurityTrustResourceUrl(String(b))}return null},WFc=function(a,b){switch(b){case 1:return a instanceof rh;case 4:return Ah(a)||a instanceof wh;case 5:return a instanceof wh;case 3:return!1;default:return!1}};dz.\u0275fac=function(a){return new (a||dz)(Wc(Yh))};dz.\u0275prov=Cc({token:dz,factory:dz.\u0275fac});var YFc=[{provide:Hka,useExisting:bz},{provide:bz,useClass:dz}],ez=function(){};ez.\u0275fac=function(a){return new (a||ez)};ez.\u0275mod=$e({type:ez});ez.\u0275inj=Dc({providers:YFc,imports:[Ry]});var ZFc={FORMATTED_HTML_CONTENT:0,EMBEDDED_INTERNAL_CONTENT:1,EMBEDDED_TRUSTED_EXTERNAL_CONTENT:2,0:"FORMATTED_HTML_CONTENT",1:"EMBEDDED_INTERNAL_CONTENT",2:"EMBEDDED_TRUSTED_EXTERNAL_CONTENT"},fz=function(a,b){var c=Error.call(this,a+" cannot be used with intent "+ZFc[b]);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.type=a;this.intent=b;this.name="TypeCannotBeUsedWithIframeIntentError"};Z(fz,Error);var $Fc="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var aGc=["href","xlink:href"];var dGc=function(a){var b=sv("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(g){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||ra.$googDebugFname||b}catch(g){e="Not available",c=!0}b=bGc(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,cGc[c])c=cGc[c];else{c=String(c);if(!cGc[c]){var f=/function\s+([^\(]+)/m.exec(c);cGc[c]=f?f[1]:"[Anonymous]"}c=cGc[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}},bGc=function(a,b){b||(b={});b[eGc(a)]=!0;var c=a.stack||"",d=a.cause;d&&!b[eGc(d)]&&(c+="\nCaused by: ",d.stack&&d.stack.indexOf(d.toString())==0||(c+=typeof d==="string"?d:d.message+"\n"),c+=bGc(d,b));a=a.errors;if(Array.isArray(a)){d=1;var e;for(e=0;e<a.length&&!(d>4);e++)b[eGc(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+=bGc(a[e],
b));e<a.length&&(c+="\n... "+(a.length-e)+" more inner errors")}return c},eGc=function(a){var b="";typeof a.toString==="function"&&(b=""+a);return b+a.stack},cGc={};var fGc=function(a,b,c){var d=Error.call(this,a+" was requested as a "+b+', but the response Content-Type, "'+c+" is not appropriate for this type of content.");this.message=d.message;"stack"in d&&(this.stack=d.stack);this.url=a;this.typeName=b;this.contentType=c};Z(fGc,Error);var Lh={};Lh.setAnchorHref=sra;Lh.setAnchorHrefLite=function(a,b){ara.test(b)&&(a.href=b)};Lh.setAreaHref=tra;Lh.setBaseHref=ura;Lh.setButtonFormaction=vra;Lh.buildPrefixedAttributeSetter=function(a){var b=[a].concat(n(Yc.apply(1,arguments)));return function(c,d,e){Sra(b,c,d,e)}};Lh.elementInsertAdjacentHtml=function(a,b,c){var d=b==="beforebegin"||b==="afterend"?a.parentElement:a;d!==null&&Tra(d);a.insertAdjacentHTML(b,uh(c))};
Lh.setElementAttribute=function(a,b,c){if(a.namespaceURI!=="http://www.w3.org/1999/xhtml")throw Error("Pa`"+b+"`"+a.tagName);b=b.toLowerCase();switch(a.tagName+" "+b){case "A href":sra(a,c);break;case "AREA href":tra(a,c);break;case "BASE href":ura(a,c);break;case "BUTTON formaction":vra(a,c);break;case "EMBED src":wra(a,c);break;case "FORM action":xra(a,c);break;case "IFRAME src":yra(a,c);break;case "IFRAME srcdoc":zra(a,c);break;case "IFRAME sandbox":throw Error("Qa");case "INPUT formaction":Ara(a,
c);break;case "LINK href":throw Error("Ra");case "LINK rel":throw Error("Sa");case "OBJECT data":Bra(a,c);break;case "SCRIPT src":Fra(a,c);break;default:if(/^on./.test(b))throw Error("Ta`"+b);a.setAttribute(b,c)}};Lh.setElementInnerHtml=function(a,b){a.nodeType===1&&Tra(a);a.innerHTML=uh(b)};Lh.setElementOuterHtml=function(a,b){var c=a.parentElement;c!==null&&Tra(c);a.outerHTML=uh(b)};Lh.setElementPrefixedAttribute=Sra;Lh.setEmbedSrc=wra;Lh.setFormAction=xra;
Lh.setFormActionLite=function(a,b){ara.test(b)&&(a.action=b)};Lh.IframeIntent=ZFc;Lh.setIframeSrc=yra;Lh.setIframeSrcdoc=zra;
Lh.setIframeSrcdocWithIntent=function(a,b,c){a.removeAttribute("src");switch(b){case 0:if(c instanceof rh)throw new fz("SafeHtml",0);a.csp="default-src 'none'";Kh(a,[]);zra(a,sh(c));break;case 1:if(!(c instanceof rh))throw new fz("string",1);Kh(a,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));zra(a,c);break;case 2:if(c instanceof rh)throw new fz("SafeHtml",1);Kh(a,["allow-scripts","allow-forms","allow-popups",
"allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"]);zra(a,sh(c));break;default:sb(b)}};
Lh.setIframeSrcWithIntent=function(a,b,c){a.removeAttribute("srcdoc");switch(b){case 0:if(c instanceof wh)throw new fz("TrustedResourceUrl",0);Kh(a,[]);b=Ch(c);b!==void 0&&(a.src=b);break;case 1:if(!(c instanceof wh))throw new fz(typeof c,1);Kh(a,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));yra(a,c);break;case 2:if(c instanceof wh)throw new fz("TrustedResourceUrl",2);Kh(a,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
b=Ch(c);b!==void 0&&(a.src=b);break;default:sb(b)}};Lh.TypeCannotBeUsedWithIframeIntentError=fz;Lh.setInputFormaction=Ara;Lh.setLinkHrefAndRel=function(a,b){if(b instanceof wh)Ura(a,b,"icon");else{if($Fc.indexOf("icon")===-1)throw Error("Ua`icon");b=Ch(b);b!==void 0&&(a.href=b,a.rel="icon")}};Lh.setLinkWithResourceUrlHrefAndRel=Ura;Lh.setObjectData=Bra;Lh.setScriptSrc=Fra;Lh.setScriptTextContent=function(a,b,c){a.textContent=era(b);(c==null?0:c.omitNonce)||Era(a)};
Lh.setStyleTextContent=function(a,b){a.textContent=Rqa(b)};Lh.setSvgAttribute=function(a,b,c){var d=b.toLowerCase();if(aGc.indexOf(d)!==-1||d.indexOf("on")===0)throw Error("la");a.setAttribute(b,c)};Lh.setSvgUseHref=function(a,b){var c=$qa(b);c!=="javascript:"&&c!=="data:"&&a.setAttribute("href",b)};Lh.documentExecCommand=function(a,b,c){b=String(b);var d=c;b.toLowerCase()==="inserthtml"&&(d=uh(c));return a.execCommand(b,!1,d)};
Lh.documentExecCommandInsertHtml=function(a,b){return a.execCommand("insertHTML",!1,uh(b))};Lh.documentWrite=function(a,b){a.write(uh(b))};Lh.domParserParseFromString=Vra;Lh.domParserParseHtml=function(a,b){return Vra(a,b,"text/html")};
Lh.domParserParseXml=function(a,b){a=Vra(a,sh(b),"text/xml");b=document.createNodeIterator(a,NodeFilter.SHOW_ELEMENT);for(var c;c=b.nextNode();)if(c=c.namespaceURI,c==="http://www.w3.org/1999/xhtml"||c==="http://www.w3.org/2000/svg"||c==="http://www.w3.org/1998/Math/MathML")throw Error("Va");return a};
Lh.fetchResourceUrl=function(a,b){var c,d,e,f,g;return y(function(k){if(k.nextAddress==1)return z(k,fetch(yh(a).toString(),b),2);c=k.yieldResult;g=(d=c.headers.get("Content-Type"))==null?void 0:(e=d.split(";",2))==null?void 0:(f=e[0])==null?void 0:f.toLowerCase();return k.return({html:function(){var m;return y(function(r){if(r.nextAddress==1){if(g!=="text/html")throw new fGc(c.url,"SafeHtml","text/html");return z(r,c.text(),2)}m=r.yieldResult;return r.return(sh(m))})},script:function(){var m;return y(function(r){if(r.nextAddress==
1){if(g!=="text/javascript"&&g!=="application/javascript")throw new fGc(c.url,"SafeScript","text/javascript");return z(r,c.text(),2)}m=r.yieldResult;return r.return(dra(m))})},styleSheet:function(){var m;return y(function(r){if(r.nextAddress==1){if(g!=="text/css")throw new fGc(c.url,"SafeStyleSheet","text/css");return z(r,c.text(),2)}m=r.yieldResult;return r.return(new Qqa(m))})}})})};Lh.globalEval=function(a,b){b=era(b);var c=a.eval(b);c===b&&(c=a.eval(b.toString()));return c};
Lh.locationAssign=function(a,b){b=Ch(b);b!==void 0&&a.assign(b)};Lh.locationReplace=function(a){var b=window.location;a=Ch(a);a!==void 0&&b.replace(a)};Lh.setLocationHref=function(a,b){b=Ch(b);b!==void 0&&(a.href=b)};Lh.rangeCreateContextualFragment=mra;Lh.serviceWorkerContainerRegister=function(a,b,c){return a.register(yh(b),c)};
Lh.objectUrlFromSafeSource=function(a){var b=window;if(typeof MediaSource!=="undefined"&&a instanceof MediaSource||typeof b.ManagedMediaSource!=="undefined"&&a instanceof b.ManagedMediaSource)a=zh(URL.createObjectURL(a));else{b=a.type;b.toLowerCase()==="application/octet-stream"?b=!0:(b=b.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),b=(b==null?void 0:b.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(b[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(b[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(b[1])||/^font\/[\w-]+$/i.test(b[1])));if(!b)throw Error("la");a=zh(URL.createObjectURL(a))}return a.toString()};Lh.getScriptNonce=Dra;Lh.getStyleNonce=function(a){return Cra("style",a)};Lh.windowOpen=function(a,b,c,d){b=Ch(b);return b!==void 0?a.open(b,c,d):null};Lh.createSharedWorker=function(a,b){return new SharedWorker(yh(a),b)};Lh.createWorker=function(a,b){return new Worker(yh(a),b)};
Lh.workerGlobalScopeImportScripts=function(a){a.importScripts.apply(a,n(Yc.apply(1,arguments).map(function(b){return yh(b)})))};var gGc=new WeakMap,fi=function(){this._injector=q(xe);this._environmentInjector=q(Xe)};fi.prototype.load=function(a){var b=this._appRef=this._appRef||this._injector.get(Yg),c=gGc.get(b);c||(c={loaders:new Set,refs:[]},gGc.set(b,c),b.onDestroy(function(){var d;(d=gGc.get(b))==null||d.refs.forEach(function(e){return e.destroy()});gGc.delete(b)}));c.loaders.has(a)||(c.loaders.add(a),c.refs.push(Apa(a,{environmentInjector:this._environmentInjector})))};fi.\u0275fac=function(a){return new (a||fi)};
fi.\u0275prov=Cc({token:fi,factory:fi.\u0275fac,providedIn:"root"});var Yra;var gz=function(){};gz.\u0275fac=function(a){return new (a||gz)};gz.\u0275cmp=C({type:gz,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 hGc=function(a,b,c){this.url=a;this.svgText=b;this.options=c},hz=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},iGc=function(a,b){return a._fontCssClassesByAlias.get(b)||b};
hz.prototype.setDefaultFontSetClass=function(){this._defaultFontSetClass=Yc.apply(0,arguments)};var jGc=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):ce(Error("Wa`"+d))};h=hz.prototype;
h.ngOnDestroy=function(){this._resolvers=[];this._svgIconConfigs.clear();this._iconSetConfigs.clear();this._cachedIconsByUrl.clear()};h._getSvgFromConfig=function(a){return a.svgText?be(this._svgElementFromConfig(a).cloneNode(!0)):this._loadSvgIconFromConfig(a).pipe(A(function(b){return b.cloneNode(!0)}))};
h._getSvgFromIconSetConfigs=function(a,b){var c=this,d=this._extractIconWithNameFromAnySet(a,b);if(d)return be(d);d=b.filter(function(e){return!e.svgText}).map(function(e){return c._loadSvgIconSetFromConfig(e).pipe(hf(function(f){f="Loading icon set URL: "+c._sanitizer.sanitize(5,e.url)+" failed: "+f.message;c._errorHandler.handleError(Error(f));return be(null)}))});return me(d).pipe(A(function(){var e=c._extractIconWithNameFromAnySet(a,b);if(!e)throw Error("Wa`"+a);return e}))};
h._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};h._loadSvgIconFromConfig=function(a){var b=this;return this._fetchIcon(a).pipe(Bf(function(c){return a.svgText=c}),A(function(){return b._svgElementFromConfig(a)}))};
h._loadSvgIconSetFromConfig=function(a){return a.svgText?be(null):this._fetchIcon(a).pipe(Bf(function(b){return a.svgText=b}))};
h._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($ra("<svg></svg>"));b.appendChild(a);return this._setSvgAttributes(b,c)};
h._svgElementFromString=function(a){var b=this._document.createElement("DIV");b.innerHTML=a;a=b.querySelector("svg");if(!a)throw Error("$a");return a};h._toSvgElement=function(a){for(var b=this._svgElementFromString($ra("<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};
h._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};
h._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("Xa");if(c==null)throw Error("ab`"+c);var f=this._sanitizer.sanitize(5,c);if(!f)throw Error("Ya`"+c);if(c=this._inProgressUrlFetches.get(f))return c;c=this._httpClient.get(f,{responseType:"text",withCredentials:a}).pipe(A(function(g){return $ra(g)}),pf(function(){return b._inProgressUrlFetches.delete(f)}),Jla());this._inProgressUrlFetches.set(f,c);return c};
h._addSvgIconConfig=function(a,b,c){this._svgIconConfigs.set(a+":"+b,c);return this};h._addSvgIconSetConfig=function(a,b){var c=this._iconSetConfigs.get(a);c?c.push(b):this._iconSetConfigs.set(a,[b]);return this};h._svgElementFromConfig=function(a){if(!a.svgElement){var b=this._svgElementFromString(a.svgText);this._setSvgAttributes(b,a.options);a.svgElement=b}return a.svgElement};
h._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 hGc(d.url,null,d.options):new hGc(d,null)}};hz.\u0275fac=function(a){return new (a||hz)(Wc(Zy,8),Wc(bz),Wc(Yh,8),Wc(Qx))};hz.\u0275prov=Cc({token:hz,factory:hz.\u0275fac,providedIn:"root"});var kGc=new bd("MAT_ICON_DEFAULT_OPTIONS"),lGc=new bd("mat-icon-location",{providedIn:"root",factory:function(){var a=q(Yh),b=a?a.location:null;return{getPathname:function(){return b?b.pathname+b.search:""}}}}),mGc="clip-path color-profile src cursor fill filter marker marker-start marker-mid marker-end mask stroke".split(" "),nGc=mGc.map(function(a){return"["+a+"]"}).join(", "),oGc=/^url\(['"]?#(.*?)['"]?\)$/,iz=function(){this._elementRef=q(Gd);this._iconRegistry=q(hz);this._location=q(lGc);this._errorHandler=
q(Qx);this.inline=!1;this._previousFontSetClass=[];this._currentIconFetch=Od.EMPTY;var a=q(new Hx("aria-hidden"),{optional:!0}),b=q(kGc,{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")};h=iz.prototype;h._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("bb`"+a);}};h.ngOnInit=function(){this._updateFontIconClasses()};
h.ngAfterViewChecked=function(){var a=this._elementsWithExternalReferences;a&&a.size&&(a=this._location.getPathname(),a!==this._previousPath&&(this._previousPath=a,this._prependPathToReferences(a)))};h.ngOnDestroy=function(){this._currentIconFetch.unsubscribe();this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()};h._usingFontIcon=function(){return!this.svgIcon};
h._setSvgElement=function(a){this._clearSvgElement();var b=this._location.getPathname();this._previousPath=b;this._cacheChildrenWithExternalReferences(a);this._prependPathToReferences(b);this._elementRef.nativeElement.appendChild(a)};h._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()}};
h._updateFontIconClasses=function(){if(this._usingFontIcon()){var a=this._elementRef.nativeElement,b=(this.fontSet?iGc(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)}};h._cleanupFontValue=function(a){return typeof a==="string"?a.trim().split(" ")[0]:a};h._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+"')")})})};
h._cacheChildrenWithExternalReferences=function(a){var b=a.querySelectorAll(nGc),c=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(a={i$jscomp$431:0};a.i$jscomp$431<b.length;a={i$jscomp$431:a.i$jscomp$431},a.i$jscomp$431++)mGc.forEach(function(d){return function(e){var f=b[d.i$jscomp$431],g=f.getAttribute(e);if(g=g?g.match(oGc):null){var k=c.get(f);k||(k=[],c.set(f,k));k.push({name:e,value:g[1]})}}}(a))};
h._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=jGc(this._iconRegistry,d,c).pipe(mf(1)).subscribe(function(e){return b._setSvgElement(e)},function(e){b._errorHandler.handleError(Error("cb`"+c+"`"+d+"`"+e.message))})}};
da.Object.defineProperties(iz.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())}}});iz.\u0275fac=function(a){return new (a||iz)};
iz.\u0275cmp=C({type:iz,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(a,b){a&2&&(Jf("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),zg(b.color?"mat-"+b.color:""),yg("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",bh],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(fg(),gg(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 pGc=new bd("cdk-dir-doc",{providedIn:"root",factory:function(){return q(Yh)}});var qGc=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,ii=function(){this.valueSignal=qg.apply(null,["ltr"].concat(n([])));this.change=new ui;var a=q(pGc,{optional:!0});if(a){var b=a.documentElement?a.documentElement.dir:null,c=this.valueSignal,d=c.set;b=(a.body?a.body.dir:null)||b||"ltr";var e=(b==null?void 0:b.toLowerCase())||"",f;b=e==="auto"&&typeof navigator!=="undefined"&&((f=navigator)==null?0:f.language)?qGc.test(navigator.language)?
"rtl":"ltr":e==="rtl"?"rtl":"ltr";d.call(c,b)}};ii.prototype.ngOnDestroy=function(){this.change.complete()};da.Object.defineProperties(ii.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.valueSignal()}}});ii.\u0275fac=function(a){return new (a||ii)};ii.\u0275prov=Cc({token:ii,factory:ii.\u0275fac,providedIn:"root"});var jz=function(){};jz.\u0275fac=function(a){return new (a||jz)};jz.\u0275mod=$e({type:jz});jz.\u0275inj=Dc({});var kz=function(){};kz.\u0275fac=function(a){return new (a||kz)};kz.\u0275mod=$e({type:kz});kz.\u0275inj=Dc({imports:[jz]});var csa,dsa="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 fsa;var jsa,hsa;var lsa;var rGc;try{rGc=typeof Intl!=="undefined"&&Intl.v8BreakIterator}catch(a){rGc=!1}
var bi=function(){this.EDGE=(this.isBrowser=(this._platformId=q(JCc))?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&&!rGc)&&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};bi.\u0275fac=function(a){return new (a||bi)};bi.\u0275prov=Cc({token:bi,factory:bi.\u0275fac,providedIn:"root"});var sGc=new bd("cdk-input-modality-detector-options"),tGc={ignoreKeys:[18,17,224,91,16]},uGc={passive:!0,capture:!0},lz=function(){var a=this;this._platform=q(bi);this._mostRecentTarget=null;this._modality=new Xj(null);this._lastTouchMs=0;this._onKeydown=function(f){var g,k;((g=a._options)==null?0:(k=g.ignoreKeys)==null?0:k.some(function(m){return m===f.keyCode}))||(a._modality.next("keyboard"),a._mostRecentTarget=Qh(f))};this._onMousedown=function(f){Date.now()-a._lastTouchMs<650||(a._modality.next(asa(f)?
"keyboard":"mouse"),a._mostRecentTarget=Qh(f))};this._onTouchstart=function(f){bsa(f)?a._modality.next("keyboard"):(a._lastTouchMs=Date.now(),a._modality.next("touch"),a._mostRecentTarget=Qh(f))};var b=q(Tg),c=q(Yh),d=q(sGc,{optional:!0});this._options=Object.assign({},tGc,d);this.modalityDetected=this._modality.pipe(xf(1));this.modalityDetected.pipe(of());if(this._platform.isBrowser){var e=q(Ye).createRenderer(null,null);this._listenerCleanups=b.runOutsideAngular(function(){return[e.listen(c,"keydown",
a._onKeydown,uGc),e.listen(c,"mousedown",a._onMousedown,uGc),e.listen(c,"touchstart",a._onTouchstart,uGc)]})}};lz.prototype.ngOnDestroy=function(){this._modality.complete();var a;(a=this._listenerCleanups)==null||a.forEach(function(b){return b()})};da.Object.defineProperties(lz.prototype,{mostRecentModality:{configurable:!0,enumerable:!0,get:function(){return this._modality.value}}});lz.\u0275fac=function(a){return new (a||lz)};lz.\u0275prov=Cc({token:lz,factory:lz.\u0275fac,providedIn:"root"});var vGc=new bd("cdk-focus-monitor-default-options"),wGc=Oh({passive:!0,capture:!0}),mz=function(){var a=this;this._ngZone=q(Tg);this._platform=q(bi);this._inputModalityDetector=q(lz);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=
q(Yh);this._stopInputModalityDetector=new rf;this._rootNodeFocusAndBlurListener=function(c){for(var d=Qh(c);d;d=d.parentElement)c.type==="focus"?a._onFocus(c,d):a._onBlur(c,d)};var b;this._detectionMode=((b=q(vGc,{optional:!0}))==null?void 0:b.detectionMode)||0};
mz.prototype.monitor=function(a,b){b=b===void 0?!1:b;a=Uh(a);if(!this._platform.isBrowser||a.nodeType!==1)return be();var c=msa(a)||this._document,d=this._elementInfo.get(a);if(d)return b&&(d.checkChildren=!0),d.subject;b={checkChildren:b,subject:new rf,rootNode:c};this._elementInfo.set(a,b);this._registerGlobalListeners(b);return b.subject};mz.prototype.stopMonitoring=function(a){a=Uh(a);var b=this._elementInfo.get(a);b&&(b.subject.complete(),this._setClasses(a),this._elementInfo.delete(a),this._removeGlobalListeners(b))};
var nz=function(a,b,c,d){b=Uh(b);b===a._document.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))};h=mz.prototype;h.ngOnDestroy=function(){var a=this;this._elementInfo.forEach(function(b,c){return a.stopMonitoring(c)})};h._getWindow=function(){return this._document.defaultView||window};
h._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"};h._shouldBeAttributedToTouch=function(a){return this._detectionMode===1||!(a==null||!a.contains(this._inputModalityDetector._mostRecentTarget))};
h._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")};
h._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))})};h._onFocus=function(a,b){var c=this._elementInfo.get(b);a=Qh(a);c&&(c.checkChildren||b===a)&&this._originChanged(b,this._getFocusOrigin(a),c)};
h._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))};h._emitOrigin=function(a,b){a.subject.observers.length&&this._ngZone.run(function(){return a.subject.next(b)})};
h._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,wGc);c.addEventListener("blur",b._rootNodeFocusAndBlurListener,wGc)});this._rootNodeFocusListenerCount.set(c,a+1);++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(function(){b._getWindow().addEventListener("focus",b._windowFocusListener)}),
this._inputModalityDetector.modalityDetected.pipe(Af(this._stopInputModalityDetector)).subscribe(function(d){b._setOrigin(d,!0)}))}};
h._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,wGc),a.removeEventListener("blur",this._rootNodeFocusAndBlurListener,wGc),this._rootNodeFocusListenerCount.delete(a))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),
clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))};h._originChanged=function(a,b,c){this._setClasses(a,b);this._emitOrigin(c,b);this._lastFocusOrigin=b};h._getClosestElementsInfo=function(a){var b=[];this._elementInfo.forEach(function(c,d){(d===a||c.checkChildren&&d.contains(a))&&b.push([d,c])});return b};
h._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};mz.\u0275fac=function(a){return new (a||mz)};mz.\u0275prov=Cc({token:mz,factory:mz.\u0275fac,providedIn:"root"});
var oz=function(){this._elementRef=q(Gd);this._focusMonitor=q(mz);this._focusOrigin=null;this.cdkFocusChange=new ui};oz.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)})};oz.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._monitorSubscription&&this._monitorSubscription.unsubscribe()};
da.Object.defineProperties(oz.prototype,{focusOrigin:{configurable:!0,enumerable:!0,get:function(){return this._focusOrigin}}});oz.\u0275fac=function(a){return new (a||oz)};oz.\u0275dir=af({type:oz,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]});var pz=function(){this._platform=q(bi)};pz.prototype.isDisabled=function(a){return a.hasAttribute("disabled")};pz.prototype.isVisible=function(a){return!!(a.offsetWidth||a.offsetHeight||typeof a.getClientRects==="function"&&a.getClientRects().length)&&getComputedStyle(a).visibility==="visible"};
var xGc=function(a,b){if(!a._platform.isBrowser)return!1;try{var c=(b.ownerDocument&&b.ownerDocument.defaultView||window).frameElement}catch(g){c=null}if(c&&(psa(c)===-1||!a.isVisible(c)))return!1;c=b.nodeName.toLowerCase();var d=psa(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};
pz.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")||osa(a);return c&&!this.isDisabled(a)&&((b==null?void 0:b.ignoreVisibility)||this.isVisible(a))};pz.\u0275fac=function(a){return new (a||pz)};pz.\u0275prov=Cc({token:pz,factory:pz.\u0275fac,providedIn:"root"});var sz=function(a,b,c,d,e,f){var g=this;this._element=a;this._checker=b;this._ngZone=c;this._document=d;this._injector=f;this._hasAttached=!1;this.startAnchorListener=function(){return yGc(g)};this.endAnchorListener=function(){return qz(g)};this._enabled=!0;(e===void 0?0:e)||rz(this)};
sz.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 rz=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))},zGc=function(a){return new Promise(function(b){a._executeOnStable(function(){return b(a.focusInitialElement())})})},
AGc=function(a){new Promise(function(b){a._executeOnStable(function(){return b(qz(a))})})};sz.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)};
sz.prototype.focusInitialElement=function(a){var b=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(b){if(!this._checker.isFocusable(b))return b=this._getFirstTabbableElement(b),b==null||b.focus(a),!!b;b.focus(a);return!0}return qz(this,a)};var qz=function(a,b){(a=a._getRegionBoundary("start"))&&a.focus(b);return!!a},yGc=function(a){(a=a._getRegionBoundary("end"))&&a.focus(void 0);return!!a};h=sz.prototype;h.hasAttached=function(){return this._hasAttached};
h._getFirstTabbableElement=function(a){if(this._checker.isFocusable(a)&&xGc(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};h._getLastTabbableElement=function(a){if(this._checker.isFocusable(a)&&xGc(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};
h._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};h._toggleAnchorTabIndex=function(a,b){a?b.setAttribute("tabindex","0"):b.removeAttribute("tabindex")};var BGc=function(a,b){a._startAnchor&&a._endAnchor&&(a._toggleAnchorTabIndex(b,a._startAnchor),a._toggleAnchorTabIndex(b,a._endAnchor))};
sz.prototype._executeOnStable=function(a){this._injector?De(a,{injector:this._injector}):setTimeout(a)};da.Object.defineProperties(sz.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 tz=function(){this._checker=q(pz);this._ngZone=q(Tg);this._document=q(Yh);this._injector=q(xe);q(fi).load(gz)};
tz.prototype.create=function(a,b){return new sz(a,this._checker,this._ngZone,this._document,b===void 0?!1:b,this._injector)};tz.\u0275fac=function(a){return new (a||tz)};tz.\u0275prov=Cc({token:tz,factory:tz.\u0275fac,providedIn:"root"});var uz=function(){this._elementRef=q(Gd);this._focusTrapFactory=q(tz);this._previouslyFocusedElement=null;q(bi).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))};h=uz.prototype;
h.ngOnDestroy=function(){var a;(a=this.focusTrap)==null||a.destroy();this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)};h.ngAfterContentInit=function(){var a;(a=this.focusTrap)==null||rz(a);this.autoCapture&&this._captureFocus()};h.ngDoCheck=function(){this.focusTrap&&!this.focusTrap.hasAttached()&&rz(this.focusTrap)};
h.ngOnChanges=function(a){a=a.autoCapture;var b;a&&!a.firstChange&&this.autoCapture&&((b=this.focusTrap)==null?0:b.hasAttached())&&this._captureFocus()};h._captureFocus=function(){this._previouslyFocusedElement=Ph();var a;(a=this.focusTrap)==null||zGc(a)};da.Object.defineProperties(uz.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)}}});
uz.\u0275fac=function(a){return new (a||uz)};uz.\u0275dir=af({type:uz,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",bh],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",bh]},exportAs:["cdkTrapFocus"],features:[Gx]});var CGc=new Set,vz,si=function(){this._platform=q(bi);this._nonce=q(KCc,{optional:!0});this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):qsa};si.prototype.matchMedia=function(a){if(this._platform.WEBKIT||this._platform.BLINK){var b=this._nonce;if(!CGc.has(a))try{vz||(vz=document.createElement("style"),b&&vz.setAttribute("nonce",b),vz.setAttribute("type","text/css"),document.head.appendChild(vz)),vz.sheet&&(vz.sheet.insertRule("@media "+a+" {body{ }}",0),CGc.add(a))}catch(c){console.error(c)}}return this._matchMedia(a)};
si.\u0275fac=function(a){return new (a||si)};si.\u0275prov=Cc({token:si,factory:si.\u0275fac,providedIn:"root"});var wz=function(){this._mediaMatcher=q(si);this._zone=q(Tg);this._queries=new Map;this._destroySubject=new rf};wz.prototype.ngOnDestroy=function(){this._destroySubject.next();this._destroySubject.complete()};
wz.prototype.observe=function(a){var b=this;a=rsa(Rh(a)).map(function(c){return b._registerQuery(c).observable});a=he(a);a=ke(a.pipe(mf(1)),a.pipe(xf(1),kf(0)));return a.pipe(A(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}))};
wz.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 Sd(function(e){var f=function(g){return b._zone.run(function(){return e.next(g)})};c.addListener(f);return function(){c.removeListener(f)}})).pipe(yf(c),A(function(e){return{query:a,matches:e.matches}}),Af(this._destroySubject)),mql:c};this._queries.set(a,d);return d};wz.\u0275fac=function(a){return new (a||wz)};
wz.\u0275prov=Cc({token:wz,factory:wz.\u0275fac,providedIn:"root"});var xz=function(){var a=this;this._platform=q(bi);this._document=q(Yh);this._breakpointSubscription=q(wz).observe("(forced-colors: active)").subscribe(function(){a._hasCheckedHighContrastMode&&(a._hasCheckedHighContrastMode=!1,a._applyBodyHighContrastModeCssClasses())})},DGc=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};xz.prototype.ngOnDestroy=function(){this._breakpointSubscription.unsubscribe()};
xz.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=DGc(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")}};
xz.\u0275fac=function(a){return new (a||xz)};xz.\u0275prov=Cc({token:xz,factory:xz.\u0275fac,providedIn:"root"});var EGc=new bd("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),FGc=new bd("LIVE_ANNOUNCER_DEFAULT_OPTIONS");var yz=function(){};yz.prototype.create=function(a){return typeof MutationObserver==="undefined"?null:new MutationObserver(a)};yz.\u0275fac=function(a){return new (a||yz)};yz.\u0275prov=Cc({token:yz,factory:yz.\u0275fac,providedIn:"root"});var zz=function(){this._mutationObserverFactory=q(yz);this._observedElements=new Map;this._ngZone=q(Tg)};h=zz.prototype;h.ngOnDestroy=function(){var a=this;this._observedElements.forEach(function(b,c){return a._cleanupObserver(c)})};
h.observe=function(a){var b=this,c=Uh(a);return new Sd(function(d){var e=b._observeElement(c).pipe(A(function(f){return f.filter(function(g){return!ssa(g)})}),te(function(f){return!!f.length})).subscribe(function(f){b._ngZone.run(function(){d.next(f)})});return function(){e.unsubscribe();b._unobserveElement(c)}})};
h._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 rf,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})};
h._unobserveElement=function(a){this._observedElements.has(a)&&(this._observedElements.get(a).count--,this._observedElements.get(a).count||this._cleanupObserver(a))};h._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)}};zz.\u0275fac=function(a){return new (a||zz)};zz.\u0275prov=Cc({token:zz,factory:zz.\u0275fac,providedIn:"root"});
var Az=function(){this._contentObserver=q(zz);this._elementRef=q(Gd);this.event=new ui;this._disabled=!1;this._currentSubscription=null};Az.prototype.ngAfterContentInit=function(){this._currentSubscription||this.disabled||this._subscribe()};Az.prototype.ngOnDestroy=function(){this._unsubscribe()};Az.prototype._subscribe=function(){this._unsubscribe();var a=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?a.pipe(kf(this.debounce)):a).subscribe(this.event)};
Az.prototype._unsubscribe=function(){var a;(a=this._currentSubscription)==null||a.unsubscribe()};da.Object.defineProperties(Az.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=Vh(a);this._subscribe()}}});Az.\u0275fac=function(a){return new (a||Az)};
Az.\u0275dir=af({type:Az,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",bh],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});var Bz=function(){};Bz.\u0275fac=function(a){return new (a||Bz)};Bz.\u0275mod=$e({type:Bz});Bz.\u0275inj=Dc({providers:[yz]});var GGc=0,Cz=function(){this._ngZone=q(Tg);this._defaultOptions=q(FGc,{optional:!0});this._document=q(Yh);this._sanitizer=q(bz);this._liveElement=q(EGc,{optional:!0})||this._createLiveElement()};h=Cz.prototype;
h.announce=function(a){var b=Yc.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(g){return c._currentResolve=g}));clearTimeout(c._previousTimeout);c._previousTimeout=setTimeout(function(){a&&typeof a!=="string"?Xra(c._liveElement,a,c._sanitizer):c._liveElement.textContent=a;typeof e==="number"&&(c._previousTimeout=setTimeout(function(){return c.clear()},e));var g;(g=c._currentResolve)==null||g.call(c);c._currentPromise=c._currentResolve=void 0},100);return c._currentPromise})};h.clear=function(){this._liveElement&&(this._liveElement.textContent="")};
h.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};
h._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-"+GGc++;this._document.body.appendChild(b);return b};
h._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)}};Cz.\u0275fac=function(a){return new (a||Cz)};Cz.\u0275prov=Cc({token:Cz,factory:Cz.\u0275fac,providedIn:"root"});var Dz=function(){q(xz)._applyBodyHighContrastModeCssClasses()};Dz.\u0275fac=function(a){return new (a||Dz)};Dz.\u0275mod=$e({type:Dz});Dz.\u0275inj=Dc({imports:[Bz]});var wsa=0,Ez=function(){this._platform=q(bi);this._document=q(Yh);this._messageRegistry=new Map;this._messagesContainer=null;this._id=""+wsa++;q(fi).load(gz);this._id=q(ICc)+"-"+wsa++},Fz=function(a,b,c,d){if(a._canBeDescribed(b,c)){var e=vsa(c,d);typeof c!=="string"?(xsa(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)}},Gz=function(a,b,c,d){if(c&&a._isElementNode(b)){d=
vsa(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)}};h=Ez.prototype;
h.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()};
h._createMessageElement=function(a,b){var c=this._document.createElement("div");xsa(c,this._id);c.textContent=a;b&&c.setAttribute("role",b);this._createMessagesContainer();this._messagesContainer.appendChild(c);this._messageRegistry.set(vsa(a,b),{messageElement:c,referenceCount:0})};h._deleteMessageElement=function(a){var b,c;(b=this._messageRegistry.get(a))==null||(c=b.messageElement)==null||c.remove();this._messageRegistry.delete(a)};
h._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}};
h._removeCdkDescribedByReferenceIds=function(a){var b=tsa(a,"aria-describedby").filter(function(c){return c.indexOf("cdk-describedby-message")!=0});a.setAttribute("aria-describedby",b.join(" "))};h._addMessageReference=function(a,b){b=this._messageRegistry.get(b);usa(a,"aria-describedby",b.messageElement.id);a.setAttribute("cdk-describedby-host",this._id);b.referenceCount++};
h._removeMessageReference=function(a,b){b=this._messageRegistry.get(b);b.referenceCount--;Wh(a,"aria-describedby",b.messageElement.id);a.removeAttribute("cdk-describedby-host")};h._isElementDescribedByMessage=function(a,b){a=tsa(a,"aria-describedby");b=(b=this._messageRegistry.get(b))&&b.messageElement.id;return!!b&&a.indexOf(b)!=-1};
h._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};h._isElementNode=function(a){return a.nodeType===this._document.ELEMENT_NODE};Ez.\u0275fac=function(a){return new (a||Ez)};Ez.\u0275prov=Cc({token:Ez,factory:Ez.\u0275fac,providedIn:"root"});var Hz=function(a,b,c,d,e,f,g,k){sz.call(this,a,b,c,d,g.defer,k);this._focusTrapManager=e;this._inertStrategy=f;this._focusTrapManager.register(this)};Z(Hz,sz);Hz.prototype.destroy=function(){this._focusTrapManager.deregister(this);sz.prototype.destroy.call(this)};Hz.prototype._enable=function(){this._inertStrategy.preventFocus(this);BGc(this,!0)};Hz.prototype._disable=function(){this._inertStrategy.allowFocus(this);BGc(this,!1)};
da.Object.defineProperties(Hz.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 HGc=function(){this._listener=null};HGc.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)})};HGc.prototype.allowFocus=function(a){this._listener&&(a._document.removeEventListener("focus",this._listener,!0),this._listener=null)};
HGc.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)&&qz(a)})};var IGc=new bd("FOCUS_TRAP_INERT_STRATEGY");var Iz=function(){this._focusTrapStack=[]};Iz.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()};Iz.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())};Iz.\u0275fac=function(a){return new (a||Iz)};Iz.\u0275prov=Cc({token:Iz,factory:Iz.\u0275fac,providedIn:"root"});var Jz=function(){this._checker=q(pz);this._ngZone=q(Tg);this._focusTrapManager=q(Iz);this._document=q(Yh);this._injector=q(xe);this._inertStrategy=q(IGc,{optional:!0})||new HGc};Jz.prototype.create=function(a,b){b=b===void 0?{defer:!1}:b;var c;typeof b==="boolean"?c={defer:b}:c=b;return new Hz(a,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,c,this._injector)};Jz.\u0275fac=function(a){return new (a||Jz)};Jz.\u0275prov=Cc({token:Jz,factory:Jz.\u0275fac,providedIn:"root"});var JGc={},hi=function(){this._appId=q(ICc)};hi.prototype.getId=function(a,b){b=b===void 0?!1:b;this._appId!=="ng"&&(a+=this._appId);JGc.hasOwnProperty(a)||(JGc[a]=0);return a+(b?hi._infix+"-":"")+JGc[a]++};hi._infix="a"+Math.floor(Math.random()*1E5).toString();hi.\u0275fac=function(a){return new (a||hi)};hi.\u0275prov=Cc({token:hi,factory:hi.\u0275fac,providedIn:"root"});var KGc=function(a,b){this._letterKeyStream=new rf;this._items=[];this._selectedItemIndex=-1;this._pressedLetters=[];this.selectedItem=this._selectedItem=new rf;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)};h=KGc.prototype;h.destroy=function(){this._pressedLetters=[];this._letterKeyStream.complete();this._selectedItem.complete()};
h.setItems=function(a){this._items=a};h.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))};h.isTyping=function(){return this._pressedLetters.length>0};h.reset=function(){this._pressedLetters=[]};
h._setupKeyHandler=function(a){var b=this;this._letterKeyStream.pipe(Bf(function(c){return b._pressedLetters.push(c)}),kf(a),te(function(){return b._pressedLetters.length>0}),A(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,g=void 0,k=void 0,m=void 0;if(((g=(f=b)._skipPredicateFn)==null||!g.call(f,e))&&((m=(k=e).getLabel)==null?void 0:m.call(k).toLocaleUpperCase().trim().indexOf(c))===
0){b._selectedItem.next(e);break}}b._pressedLetters=[]})};var Kz=function(a,b){var c=this;this._items=a;this._activeItemIndex=qg.apply(null,[-1].concat(n([])));this._activeItem=qg.apply(null,[null].concat(n([])));this._wrap=!1;this._typeaheadSubscription=Od.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 rf;this.change=new rf;a instanceof jg?this._itemChangesSubscription=a.changes.subscribe(function(d){return c._itemsChanged(d.toArray())}):
ef(a)&&(this._effectRef=df(function(){return c._itemsChanged(a())},Object.assign({},{},{injector:b})))};Kz.prototype.skipPredicate=function(a){this._skipPredicateFn=a;return this};
var Lz=function(a){a._wrap=!0;return a},Mz=function(a,b){a._vertical=b===void 0?!0:b;return a},Nz=function(a,b){a._horizontal=b;return a},LGc=function(a){a._allowedModifierKeys=["shiftKey"];return a},MGc=function(a,b){b=b===void 0?200:b;a._typeaheadSubscription.unsubscribe();var c=a._getItemsArray();a._typeahead=new KGc(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},Oz=function(a){a._homeAndEnd=!0;return a},NGc=function(a){a._pageUpAndDown={enabled:!0,delta:10};return a};Kz.prototype.setActiveItem=function(a){var b=this._activeItem();Pz(this,a);this._activeItem()!==b&&this.change.next(this._activeItemIndex())};
Kz.prototype.onKeydown=function(a){var b=this,c=a.keyCode,d=["altKey","ctrlKey","metaKey","shiftKey"].every(function(g){return!a[g]||b._allowedModifierKeys.indexOf(g)>-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){OGc(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||Nh(a,"shiftKey")){var e;(e=this._typeahead)==null||e.handleKey(a)}return}var f;(f=this._typeahead)==null||f.reset();a.preventDefault()};Kz.prototype.isTyping=function(){return!!this._typeahead&&this._typeahead.isTyping()};var OGc=function(a){a._setActiveItemByIndex(a._getItemsArray().length-1,-1)};Kz.prototype.setNextItemActive=function(){this._activeItemIndex()<0?this._setActiveItemByIndex(0,1):this._setActiveItemByDelta(1)};
Kz.prototype.setPreviousItemActive=function(){this._activeItemIndex()<0&&this._wrap?OGc(this):this._setActiveItemByDelta(-1)};var Pz=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.set(b);(a=a._typeahead)!=null&&(a._selectedItemIndex=b)};h=Kz.prototype;
h.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()};h._setActiveItemByDelta=function(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)};
h._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}}};h._setActiveInDefaultMode=function(a){this._setActiveItemByIndex(this._activeItemIndex()+a,a)};h._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)}};
h._getItemsArray=function(){return ef(this._items)?this._items():this._items instanceof jg?this._items.toArray():this._items};h._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.set(a),(b=this._typeahead)!=null&&(b._selectedItemIndex=a))};
da.Object.defineProperties(Kz.prototype,{activeItemIndex:{configurable:!0,enumerable:!0,get:function(){return this._activeItemIndex()}},activeItem:{configurable:!0,enumerable:!0,get:function(){return this._activeItem()}}});var Qz=function(){Kz.apply(this,arguments)};Z(Qz,Kz);Qz.prototype.setActiveItem=function(a){this.activeItem&&this.activeItem.setInactiveStyles();Kz.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.setActiveStyles()};var Rz=function(){Kz.apply(this,arguments);this._origin="program"};Z(Rz,Kz);var PGc=function(a,b){a._origin=b;return a};Rz.prototype.setActiveItem=function(a){Kz.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.focus(this._origin)};var QGc=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=Od.EMPTY;this._hasInitialFocused=!1;this.change=new rf;a instanceof jg?(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()})):ve(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)};h=QGc.prototype;
h._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 Sz(this,a);this._hasInitialFocused=!0}};
h.destroy=function(){this._typeaheadSubscription.unsubscribe();var a;(a=this._typeahead)==null||a.destroy();this.change.complete()};
h.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()};h._focusFirstItem=function(){Sz(this,this._findNextAvailableItemIndex(-1))};h._focusLastItem=function(){Sz(this,this._findPreviousAvailableItemIndex(this._items.length))};h._focusNextItem=function(){Sz(this,this._findNextAvailableItemIndex(this._activeItemIndex))};h._focusPreviousItem=function(){Sz(this,this._findPreviousAvailableItemIndex(this._activeItemIndex))};
var Sz=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 g;(g=a._activeItem)==null||g.focus();f==null||f.unfocus();c.emitChangeEvent&&
a.change.next(a._activeItem);a._shouldActivationFollowFocus&&a._activateCurrentItem()}}};h=QGc.prototype;h._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)}};
h._setTypeAhead=function(a){var b=this;this._typeahead=new KGc(this._items,{debounceInterval:typeof a==="number"?a:void 0,skipPredicate:function(c){return b._skipPredicateFn(c)}});this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(function(c){Sz(b,c)})};h._findNextAvailableItemIndex=function(a){for(var b=a+1;b<this._items.length;b++)if(!this._skipPredicateFn(this._items[b]))return b;return a};
h._findPreviousAvailableItemIndex=function(a){for(var b=a-1;b>=0;b--)if(!this._skipPredicateFn(this._items[b]))return b;return a};h._collapseCurrentItem=function(){if(this._activeItem)if(this._isCurrentItemExpanded())this._activeItem.collapse();else{var a=this._activeItem.getParent();a&&!this._skipPredicateFn(a)&&Sz(this,a)}};
h._expandCurrentItem=function(){var a=this;this._activeItem&&(this._isCurrentItemExpanded()?ysa(this._activeItem.getChildren()).pipe(mf(1)).subscribe(function(b){(b=b.find(function(c){return!a._skipPredicateFn(c)}))&&Sz(a,b)}):this._activeItem.expand())};h._isCurrentItemExpanded=function(){return this._activeItem?typeof this._activeItem.isExpanded==="boolean"?this._activeItem.isExpanded:this._activeItem.isExpanded():!1};
h._isItemDisabled=function(a){var b;return typeof a.isDisabled==="boolean"?a.isDisabled:(b=a.isDisabled)==null?void 0:b.call(a)};h._expandAllItemsAtCurrentItemLevel=function(){if(this._activeItem){var a=this._activeItem.getParent();(a?ysa(a.getChildren()):be(this._items.filter(function(b){return b.getParent()===null}))).pipe(mf(1)).subscribe(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next())c.value.expand()})}};h._activateCurrentItem=function(){var a;(a=this._activeItem)==null||a.activate()};
new bd("tree-key-manager",{providedIn:"root",factory:function(){return function(a,b){return new QGc(a,b)}}});var Tz=function(){this._attachedOverlays=[];this._document=q(Yh)};Tz.prototype.ngOnDestroy=function(){this.detach()};Tz.prototype.add=function(a){this.remove(a);this._attachedOverlays.push(a)};Tz.prototype.remove=function(a){a=this._attachedOverlays.indexOf(a);a>-1&&this._attachedOverlays.splice(a,1);this._attachedOverlays.length===0&&this.detach()};Tz.\u0275fac=function(a){return new (a||Tz)};Tz.\u0275prov=Cc({token:Tz,factory:Tz.\u0275fac,providedIn:"root"});var ni=function(){Tz.apply(this,arguments);var a=this;this._ngZone=q(Tg);this._renderer=q(Ye).createRenderer(null,null);this._keydownListener=function(b){var c=a._attachedOverlays,d={};for(d.i$jscomp$448=c.length-1;d.i$jscomp$448>-1;d={i$jscomp$448:d.i$jscomp$448},d.i$jscomp$448--)if(c[d.i$jscomp$448]._keydownEvents.observers.length>0){a._ngZone.run(function(e){return function(){return c[e.i$jscomp$448]._keydownEvents.next(b)}}(d));break}}};Z(ni,Tz);
ni.prototype.add=function(a){var b=this;Tz.prototype.add.call(this,a);this._isAttached||(this._ngZone.runOutsideAngular(function(){b._cleanupKeydown=b._renderer.listen("body","keydown",b._keydownListener)}),this._isAttached=!0)};ni.prototype.detach=function(){if(this._isAttached){var a;(a=this._cleanupKeydown)==null||a.call(this);this._isAttached=!1}};ni.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(ni)))(b||ni)}}();ni.\u0275prov=Cc({token:ni,factory:ni.\u0275fac,providedIn:"root"});var pi=function(){Tz.apply(this,arguments);var a=this;this._platform=q(bi);this._ngZone=q(Tg);this._renderer=q(Ye).createRenderer(null,null);this._cursorStyleIsSet=!1;this._pointerDownListener=function(b){a._pointerDownEventTarget=Qh(b)};this._clickListener=function(b){var c=Qh(b),d=b.type==="click"&&a._pointerDownEventTarget?a._pointerDownEventTarget:c;a._pointerDownEventTarget=null;for(var e=a._attachedOverlays.slice(),f={},g=e.length-1;g>-1;f={outsidePointerEvents:void 0},g--){var k=e[g];if(!(k._outsidePointerEvents.observers.length<
1)&&k.hasAttached()){if(zsa(k.overlayElement,c)||zsa(k.overlayElement,d))break;f.outsidePointerEvents=k._outsidePointerEvents;a._ngZone?a._ngZone.run(function(m){return function(){return m.outsidePointerEvents.next(b)}}(f)):f.outsidePointerEvents.next(b)}}}};Z(pi,Tz);
pi.prototype.add=function(a){var b=this;Tz.prototype.add.call(this,a);if(!this._isAttached){var c=this._document.body,d={capture:!0},e=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(function(){return[e.listen(c,"pointerdown",b._pointerDownListener,d),e.listen(c,"click",b._clickListener,d),e.listen(c,"auxclick",b._clickListener,d),e.listen(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}};pi.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}};pi.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(pi)))(b||pi)}}();pi.\u0275prov=Cc({token:pi,factory:pi.\u0275fac,providedIn:"root"});var gi=function(){};gi.\u0275fac=function(a){return new (a||gi)};
gi.\u0275cmp=C({type:gi,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;touch-action:manipulation;z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.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}.cdk-overlay-popover{background:none;border:none;padding:0;outline:0;overflow:visible;position:fixed;pointer-events:none;white-space:normal;color:inherit;text-decoration:none;width:100%;height:100%;inset:auto;top:0;left:0}.cdk-overlay-popover::backdrop{display:none}.cdk-overlay-popover .cdk-overlay-backdrop{position:fixed;z-index:auto}\n"],encapsulation:2,
changeDetection:0});var ci=function(){this._platform=q(bi);this._document=q(Yh);this._styleLoader=q(fi)};ci.prototype.ngOnDestroy=function(){var a;(a=this._containerElement)==null||a.remove()};var Lsa=function(a){a._loadStyles();a._containerElement||a._createContainer();return a._containerElement};
ci.prototype._createContainer=function(){if(this._platform.isBrowser||nsa())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");nsa()?a.setAttribute("platform","test"):this._platform.isBrowser||a.setAttribute("platform","server");this._document.body.appendChild(a);this._containerElement=a};
ci.prototype._loadStyles=function(){this._styleLoader.load(gi)};ci.\u0275fac=function(a){return new (a||ci)};ci.\u0275prov=Cc({token:ci,factory:ci.\u0275fac,providedIn:"root"});var RGc=new bd("VIRTUAL_SCROLL_STRATEGY");var SGc=function(a,b,c){this._scrolledIndexChange=new rf;this.scrolledIndexChange=this._scrolledIndexChange.pipe(of());this._viewport=null;this._itemSize=a;this._minBufferPx=b;this._maxBufferPx=c};SGc.prototype.attach=function(a){this._viewport=a;this._updateTotalContentSize();this._updateRenderedRange()};SGc.prototype.detach=function(){this._scrolledIndexChange.complete();this._viewport=null};
SGc.prototype._updateTotalContentSize=function(){if(this._viewport){var a=this._viewport,b=this._viewport._dataLength*this._itemSize;a._totalContentSize!==b&&(a._totalContentSize=b,a._calculateSpacerSize(),a._markChangeDetectionNeeded())}};
SGc.prototype._updateRenderedRange=function(){if(this._viewport){var a=this._viewport._renderedRange;a={start:a.start,end:a.end};var b=this._viewport.getViewportSize(),c=this._viewport._dataLength,d=this._viewport.measureScrollOffset(),e=this._itemSize>0?d/this._itemSize:0;if(a.end>c){var f=Math.ceil(b/this._itemSize),g=Math.max(0,Math.min(e,c-f));e!=g&&(e=g,d=g*this._itemSize,a.start=Math.floor(e));a.end=Math.max(0,Math.min(c,a.start+f))}f=d-a.start*this._itemSize;f<this._minBufferPx&&a.start!=0?
(a.start=Math.max(0,a.start-Math.ceil((this._maxBufferPx-f)/this._itemSize)),a.end=Math.min(c,Math.ceil(e+(b+this._minBufferPx)/this._itemSize))):(b=a.end*this._itemSize-(d+b),b<this._minBufferPx&&a.end!=c&&(b=Math.ceil((this._maxBufferPx-b)/this._itemSize),b>0&&(a.end=Math.min(c,a.end+b),a.start=Math.max(0,Math.floor(e-this._minBufferPx/this._itemSize)))));TGc(this._viewport,a);UGc(this._viewport,Math.round(this._itemSize*a.start));this._scrolledIndexChange.next(Math.floor(e))}};
var Uz=function(){this._itemSize=20;this._minBufferPx=100;this._maxBufferPx=200;this._scrollStrategy=new SGc(this.itemSize,this.minBufferPx,this.maxBufferPx)};Uz.prototype.ngOnChanges=function(){var a=this._scrollStrategy,b=this.minBufferPx,c=this.maxBufferPx;a._itemSize=this.itemSize;a._minBufferPx=b;a._maxBufferPx=c;a._updateTotalContentSize();a._updateRenderedRange()};
da.Object.defineProperties(Uz.prototype,{itemSize:{configurable:!0,enumerable:!0,get:function(){return this._itemSize},set:function(a){this._itemSize=Vh(a)}},minBufferPx:{configurable:!0,enumerable:!0,get:function(){return this._minBufferPx},set:function(a){this._minBufferPx=Vh(a)}},maxBufferPx:{configurable:!0,enumerable:!0,get:function(){return this._maxBufferPx},set:function(a){this._maxBufferPx=Vh(a)}}});Uz.\u0275fac=function(a){return new (a||Uz)};
Uz.\u0275dir=af({type:Uz,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[Ig([{provide:RGc,useFactory:function(a){return a._scrollStrategy},deps:[Tc(function(){return Uz})]}]),Gx]});var Zh=function(){this._ngZone=q(Tg);this._platform=q(bi);this._renderer=q(Ye).createRenderer(null,null);this._scrolled=new rf;this._scrolledCount=0;this.scrollContainers=new Map};Zh.prototype.register=function(a){var b=this;this.scrollContainers.has(a)||this.scrollContainers.set(a,a._elementScrolled.subscribe(function(){return b._scrolled.next(a)}))};Zh.prototype.deregister=function(a){var b=this.scrollContainers.get(a);b&&(b.unsubscribe(),this.scrollContainers.delete(a))};
Zh.prototype.scrolled=function(a){var b=this;a=a===void 0?20:a;return this._platform.isBrowser?new Sd(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(gf(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}}}):be()};Zh.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 VGc=function(a,b){var c=[];a.scrollContainers.forEach(function(d,e){a._scrollableContainsElement(e,b)&&c.push(e)});return c};
Zh.prototype._scrollableContainsElement=function(a,b){b=Uh(b);a=a.elementRef.nativeElement;do if(b==a)return!0;while(b=b.parentElement);return!1};Zh.\u0275fac=function(a){return new (a||Zh)};Zh.\u0275prov=Cc({token:Zh,factory:Zh.\u0275fac,providedIn:"root"});var Vz=function(){this.elementRef=q(Gd);this.scrollDispatcher=q(Zh);this.ngZone=q(Tg);this.dir=q(ii,{optional:!0});this._scrollElement=this.elementRef.nativeElement;this._destroyed=new rf;this._renderer=q(ji);this._elementScrolled=new rf};h=Vz.prototype;h.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)};
h.ngOnDestroy=function(){var a;(a=this._cleanupScroll)==null||a.call(this);this._elementScrolled.complete();this.scrollDispatcher.deregister(this);this._destroyed.next();this._destroyed.complete()};
h.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&&ksa()!=0?(a.left!=null&&(a.right=b.scrollWidth-b.clientWidth-a.left),ksa()==2?a.left=a.right:ksa()==1&&(a.left=a.right?-a.right:a.right)):a.right!=null&&(a.left=b.scrollWidth-b.clientWidth-a.right);this._applyScrollToOptions(a)};
h._applyScrollToOptions=function(a){var b=this.elementRef.nativeElement;isa()?b.scrollTo(a):(a.top!=null&&(b.scrollTop=a.top),a.left!=null&&(b.scrollLeft=a.left))};
h.measureScrollOffset=function(a){var b=this.elementRef.nativeElement;if(a=="top")return b.scrollTop;if(a=="bottom")return b.scrollHeight-b.clientHeight-b.scrollTop;var c=this.dir&&this.dir.value=="rtl";a=="start"?a=c?"right":"left":a=="end"&&(a=c?"left":"right");return c&&ksa()==2?a=="left"?b.scrollWidth-b.clientWidth-b.scrollLeft:b.scrollLeft:c&&ksa()==1?a=="left"?b.scrollLeft+b.scrollWidth-b.clientWidth:-b.scrollLeft:a=="left"?b.scrollLeft:b.scrollWidth-b.clientWidth-b.scrollLeft};
Vz.\u0275fac=function(a){return new (a||Vz)};Vz.\u0275dir=af({type:Vz,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]});var WGc=function(){};var XGc=function(a){this._data=a};Z(XGc,WGc);XGc.prototype.connect=function(){return ve(this._data)?this._data:be(this._data)};XGc.prototype.disconnect=function(){};var YGc=new bd("_ViewRepeater");var ZGc=function(){};ZGc.prototype.applyChanges=function(a,b,c,d,e){dEc(a,function(f,g,k){if(f.previousIndex==null){var m=c(f,g,k);m=b.createEmbeddedView(m.templateRef,m.context,m.index);g=1}else k==null?(b.remove(g),g=3):(m=b.get(g),b.move(m,k),g=2);if(e){var r;e({context:(r=m)==null?void 0:r.context,operation:g,record:f})}})};ZGc.prototype.detach=function(){};var $Gc=function(){this.viewCacheSize=20;this._viewCache=[]};h=$Gc.prototype;h.applyChanges=function(a,b,c,d,e){var f=this;dEc(a,function(g,k,m){var r;if(g.previousIndex==null)var w=(r=f._insertView(function(){return c(g,k,m)},m,b,d(g)))?1:0;else m==null?(f._detachAndCacheView(k,b),w=3):(r=f._moveView(k,m,b,d(g)),w=2);if(e){var x;e({context:(x=r)==null?void 0:x.context,operation:w,record:g})}})};
h.detach=function(){for(var a=l(this._viewCache),b=a.next();!b.done;b=a.next())b.value.destroy();this._viewCache=[]};h._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)};h._detachAndCacheView=function(a,b){a=b.detach(a);this._maybeCacheView(a,b)};h._moveView=function(a,b,c,d){a=c.get(a);c.move(a,b);a.context.$implicit=d;return a};
h._maybeCacheView=function(a,b){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(a);else{var c=b.indexOf(a);c===-1?a.destroy():b.remove(c)}};h._insertViewFromCache=function(a,b){var c=this._viewCache.pop();c&&b.insert(c,a);return c||null};var Wz=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 rf;b&&b.length&&(a?b.forEach(function(f){return e._markSelected(f)}):this._markSelected(b[0]),this._selectedToEmit.length=0)};h=Wz.prototype;
h.select=function(){var a=this;Yc.apply(0,arguments).forEach(function(c){return a._markSelected(c)});var b=this._hasQueuedChanges();this._emitChangeEvent();return b};h.deselect=function(){var a=this;Yc.apply(0,arguments).forEach(function(c){return a._unmarkSelected(c)});var b=this._hasQueuedChanges();this._emitChangeEvent();return b};h.toggle=function(a){return this.isSelected(a)?this.deselect(a):this.select(a)};
h.clear=function(a){a=a===void 0?!0:a;this._unmarkAll();var b=this._hasQueuedChanges();a&&this._emitChangeEvent();return b};h.isSelected=function(a){return this._selection.has(this._getConcreteValue(a))};h.isEmpty=function(){return this._selection.size===0};h.hasValue=function(){return!this.isEmpty()};h.sort=function(a){this._multiple&&this.selected&&this._selected.sort(a)};
h._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=[]};h._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))};
h._unmarkSelected=function(a){a=this._getConcreteValue(a);this.isSelected(a)&&(this._selection.delete(a),this._emitChanges&&this._deselectedToEmit.push(a))};h._unmarkAll=function(){var a=this;this.isEmpty()||this._selection.forEach(function(b){return a._unmarkSelected(b)})};h._verifyValueAssignment=function(){};h._hasQueuedChanges=function(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)};
h._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};da.Object.defineProperties(Wz.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){this._selected||(this._selected=Array.from(this._selection.values()));return this._selected}}});var Xz=function(){this._listeners=[]};Xz.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)};Xz.prototype.listen=function(a){var b=this;this._listeners.push(a);return function(){b._listeners=b._listeners.filter(function(c){return a!==c})}};Xz.prototype.ngOnDestroy=function(){this._listeners=[]};Xz.\u0275fac=function(a){return new (a||Xz)};Xz.\u0275prov=Cc({token:Xz,factory:Xz.\u0275fac,providedIn:"root"});var Xh=function(){var a=this;this._platform=q(bi);this._change=new rf;this._document=q(Yh);var b=q(Tg),c=q(Ye).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})})};h=Xh.prototype;h.ngOnDestroy=function(){var a;(a=this._listeners)==null||a.forEach(function(b){return b()});this._change.complete()};
h.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var a={width:this._viewportSize.width,height:this._viewportSize.height};this._platform.isBrowser||(this._viewportSize=null);return a};
h.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}};h.change=function(a){a=a===void 0?20:a;return a>0?this._change.pipe(gf(a)):this._change};h._getWindow=function(){return this._document.defaultView||window};
h._updateViewportSize=function(){var a=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:a.innerWidth,height:a.innerHeight}:{width:0,height:0}};Xh.\u0275fac=function(a){return new (a||Xh)};Xh.\u0275prov=Cc({token:Xh,factory:Xh.\u0275fac,providedIn:"root"});var aHc=new bd("VIRTUAL_SCROLLABLE"),Yz=function(){Vz.call(this)};Z(Yz,Vz);Yz.\u0275fac=function(a){return new (a||Yz)};Yz.\u0275dir=af({type:Yz,features:[Ff]});var bHc=["contentWrapper"],cHc=typeof requestAnimationFrame!=="undefined"?eDc:Rr,Zz=function(){Vz.call(this);var a=this;this.elementRef=q(Gd);this._changeDetectorRef=q(Yx);this._scrollStrategy=q(RGc,{optional:!0});this.scrollable=q(aHc,{optional:!0});this._platform=q(bi);this._detachedSubject=new rf;this._renderedRangeSubject=new rf;this._orientation="vertical";this.appendOnly=!1;this.scrolledIndexChange=new Sd(function(c){return a._scrollStrategy.scrolledIndexChange.subscribe(function(d){return Promise.resolve().then(function(){return a.ngZone.run(function(){return c.next(d)})})})});
this.renderedRangeStream=this._renderedRangeSubject;this._totalContentSize=0;this._totalContentWidth=qg.apply(null,[""].concat(n([])));this._totalContentHeight=qg.apply(null,[""].concat(n([])));this._renderedRange={start:0,end:0};this._renderedContentOffset=this._viewportSize=this._dataLength=0;this._renderedContentOffsetNeedsRewrite=!1;this._changeDetectionNeeded=qg.apply(null,[!1].concat(n([])));this._runAfterChangeDetection=[];this._viewportChanges=Od.EMPTY;this._injector=q(xe);this._isDestroyed=
!1;this._viewportChanges=q(Xh).change().subscribe(function(){a._measureViewportSize();var c=a._scrollStrategy;c._updateTotalContentSize();c._updateRenderedRange()});this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this);var b=df(function(){a._changeDetectionNeeded()&&a._doChangeDetection()},Object.assign({},{},{injector:q(Yg).injector}));q(Be).onDestroy(function(){return void b.destroy()})};Z(Zz,Yz);Zz.\u0275dir=Yz.\u0275dir;h=Zz.prototype;
h.ngOnInit=function(){var a=this;this._platform.isBrowser&&(this.scrollable===this&&Yz.prototype.ngOnInit.call(this),this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){a._measureViewportSize();a._scrollStrategy.attach(a);a.scrollable._elementScrolled.pipe(yf(null),gf(0,cHc),Af(a._destroyed)).subscribe(function(){a._scrollStrategy._updateRenderedRange()});a._markChangeDetectionNeeded()})}))};
h.ngOnDestroy=function(){this.detach();this._scrollStrategy.detach();this._renderedRangeSubject.complete();this._detachedSubject.complete();this._viewportChanges.unsubscribe();this._isDestroyed=!0;Yz.prototype.ngOnDestroy.call(this)};
h.attach=function(a){var b=this;this.ngZone.runOutsideAngular(function(){b._forOf=a;b._forOf.dataStream.pipe(Af(b._detachedSubject)).subscribe(function(c){c=c.length;c!==b._dataLength&&(b._dataLength=c,c=b._scrollStrategy,c._updateTotalContentSize(),c._updateRenderedRange());b._doChangeDetection()})})};h.detach=function(){this._forOf=null;this._detachedSubject.next()};h.getViewportSize=function(){return this._viewportSize};
var TGc=function(a,b){Bsa(a._renderedRange,b)||(a.appendOnly&&(b={start:0,end:Math.max(a._renderedRange.end,b.end)}),a._renderedRangeSubject.next(a._renderedRange=b),a._markChangeDetectionNeeded(function(){}))},UGc=function(a,b){var c=c===void 0?"to-start":c;b=a.appendOnly&&c==="to-start"?0:b;var d=a.dir&&a.dir.value=="rtl",e=a.orientation=="horizontal",f=e?"X":"Y";d="translate"+f+"("+Number((e&&d?-1:1)*b)+"px)";a._renderedContentOffset=b;c==="to-end"&&(d+=" translate"+f+"(-100%)",a._renderedContentOffsetNeedsRewrite=
!0);a._renderedContentTransform!=d&&(a._renderedContentTransform=d,a._markChangeDetectionNeeded(function(){if(a._renderedContentOffsetNeedsRewrite){var g=a._contentWrapper.nativeElement;a._renderedContentOffset-=a.orientation==="horizontal"?g.offsetWidth:g.offsetHeight;a._renderedContentOffsetNeedsRewrite=!1;UGc(a,a._renderedContentOffset)}}))};
Zz.prototype.measureScrollOffset=function(a){var b=this;return Math.max(0,(this.scrollable==this?function(c){return Yz.prototype.measureScrollOffset.call(b,c)}:function(c){return b.scrollable.measureScrollOffset(c)})(a!=null?a:this.orientation==="horizontal"?"start":"top")-dHc(this))};var dHc=function(a){var b=a.orientation==="horizontal"?"left":"top";var c=a.scrollable.elementRef.nativeElement.getBoundingClientRect()[b];return a.elementRef.nativeElement.getBoundingClientRect()[b]-c};
Zz.prototype._measureViewportSize=function(){var a=this.scrollable.elementRef.nativeElement;this._viewportSize=this.orientation==="horizontal"?a.clientWidth:a.clientHeight};Zz.prototype._markChangeDetectionNeeded=function(a){var b=this;a&&this._runAfterChangeDetection.push(a);Mc(this._changeDetectionNeeded)||this.ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){b.ngZone.run(function(){b._changeDetectionNeeded.set(!0)})})})};
Zz.prototype._doChangeDetection=function(){var a=this;this._isDestroyed||this.ngZone.run(function(){a._changeDetectorRef.markForCheck();a._contentWrapper.nativeElement.style.transform=a._renderedContentTransform;De(function(){a._changeDetectionNeeded.set(!1);var b=a._runAfterChangeDetection;a._runAfterChangeDetection=[];b=l(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c()},{injector:a._injector})})};
Zz.prototype._calculateSpacerSize=function(){this._totalContentHeight.set(this.orientation==="horizontal"?"":this._totalContentSize+"px");this._totalContentWidth.set(this.orientation==="horizontal"?this._totalContentSize+"px":"")};da.Object.defineProperties(Zz.prototype,{orientation:{configurable:!0,enumerable:!0,get:function(){return this._orientation},set:function(a){this._orientation!==a&&(this._orientation=a,this._calculateSpacerSize())}}});Zz.\u0275fac=function(a){return new (a||Zz)};
Zz.\u0275cmp=C({type:Zz,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(a,b){a&1&&kg(bHc,7);if(a&2){var c;og(c=pg())&&(b._contentWrapper=c.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(a,b){a&2&&yg("cdk-virtual-scroll-orientation-horizontal",b.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",b.orientation!=="horizontal")},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",bh]},outputs:{scrolledIndexChange:"scrolledIndexChange"},
features:[Ig([{provide:Vz,useFactory:function(){return q(aHc,{optional:!0})||q(Zz)}}]),Ff],ngContentSelectors:["*"],decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(a,b){a&1&&(fg(),Sf(0,"div",1,0),gg(2),Tf(),Uf(3,"div",2));a&2&&(B(3),xg("width",b._totalContentWidth())("height",b._totalContentHeight()))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}\n"],
encapsulation:2,changeDetection:0});var $z=function(){var a=this;this._viewContainerRef=q(ig);this._template=q(hg);this._differs=q(by);this._viewRepeater=q(YGc);this._viewport=q(Zz,{skipSelf:!0});this.viewChange=new rf;this._dataSourceChanges=new rf;this.dataStream=this._dataSourceChanges.pipe(yf(null),uf(),zf(function(c){var d=l(c);c=d.next().value;d=d.next().value;return a._changeDataSource(c,d)}),wf(1));this._differ=null;this._needsUpdate=!1;this._destroyed=new rf;var b=q(Tg);this.dataStream.subscribe(function(c){a._data=c;a._onRenderedDataChange()});
this._viewport.renderedRangeStream.pipe(Af(this._destroyed)).subscribe(function(c){a._renderedRange=c;a.viewChange.observers.length&&b.run(function(){return a.viewChange.next(a._renderedRange)});a._onRenderedDataChange()});this._viewport.attach(this)};h=$z.prototype;h.ngDoCheck=function(){if(this._differ&&this._needsUpdate){var a=this._differ.diff(this._renderedItems);a?this._applyChanges(a):this._updateContext();this._needsUpdate=!1}};
h.ngOnDestroy=function(){this._viewport.detach();this._dataSourceChanges.next(void 0);this._dataSourceChanges.complete();this.viewChange.complete();this._destroyed.next();this._destroyed.complete();this._viewRepeater.detach()};
h._onRenderedDataChange=function(){var a=this;this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create(function(b,c){return a.cdkVirtualForTrackBy?a.cdkVirtualForTrackBy(b,c):c})),this._needsUpdate=!0)};h._changeDataSource=function(a,b){a&&a.disconnect(this);this._needsUpdate=!0;return b?b.connect(this):be()};
h._updateContext=function(){for(var a=this._data.length,b=this._viewContainerRef.length;b--;){var c=this._viewContainerRef.get(b);c.context.index=this._renderedRange.start+b;c.context.count=a;this._updateComputedContextProperties(c.context);c.detectChanges()}};
h._applyChanges=function(a){var b=this;this._viewRepeater.applyChanges(a,this._viewContainerRef,function(e,f,g){return b._getEmbeddedViewArgs(e,g)},function(e){return e.item});eEc(a,function(e){b._viewContainerRef.get(e.currentIndex).context.$implicit=e.item});a=this._data.length;for(var c=this._viewContainerRef.length;c--;){var d=this._viewContainerRef.get(c);d.context.index=this._renderedRange.start+c;d.context.count=a;this._updateComputedContextProperties(d.context)}};
h._updateComputedContextProperties=function(a){a.first=a.index===0;a.last=a.index===a.count-1;a.even=a.index%2===0;a.odd=!a.even};h._getEmbeddedViewArgs=function(a,b){return{templateRef:this._template,context:{$implicit:a.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:b}};
da.Object.defineProperties($z.prototype,{cdkVirtualForOf:{configurable:!0,enumerable:!0,get:function(){return this._cdkVirtualForOf},set:function(a){this._cdkVirtualForOf=a;Asa(a)?this._dataSourceChanges.next(a):this._dataSourceChanges.next(new XGc(ve(a)?a:Array.from(a||[])))}},cdkVirtualForTrackBy:{configurable:!0,enumerable:!0,get:function(){return this._cdkVirtualForTrackBy},set:function(a){var b=this;this._needsUpdate=!0;this._cdkVirtualForTrackBy=a?function(c,d){return a(c+(b._renderedRange?
b._renderedRange.start:0),d)}:void 0}},cdkVirtualForTemplate:{configurable:!0,enumerable:!0,set:function(a){a&&(this._needsUpdate=!0,this._template=a)}},cdkVirtualForTemplateCacheSize:{configurable:!0,enumerable:!0,get:function(){return this._viewRepeater.viewCacheSize},set:function(a){this._viewRepeater.viewCacheSize=Vh(a)}}});$z.\u0275fac=function(a){return new (a||$z)};
$z.\u0275dir=af({type:$z,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[Ig([{provide:YGc,useClass:$Gc}])]});var aA=function(){};aA.\u0275fac=function(a){return new (a||aA)};aA.\u0275mod=$e({type:aA});aA.\u0275inj=Dc({});var bA=function(){};bA.\u0275fac=function(a){return new (a||bA)};bA.\u0275mod=$e({type:bA});bA.\u0275inj=Dc({imports:[jz,aA,jz,aA]});var eHc=isa(),Csa=function(a,b){this._viewportRuler=a;this._previousHTMLStyles={top:"",left:""};this._isEnabled=!1;this._document=b};Csa.prototype.attach=function(){};
Csa.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=Th(-this._previousScrollPosition.left);a.style.top=Th(-this._previousScrollPosition.top);a.classList.add("cdk-global-scrollblock");this._isEnabled=!0}};
Csa.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");eHc&&(b.scrollBehavior=c.scrollBehavior="auto");window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top);eHc&&(b.scrollBehavior=d,c.scrollBehavior=e)}};
Csa.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var a=this._document.documentElement,b=this._viewportRuler.getViewportSize();return a.scrollHeight>b.height||a.scrollWidth>b.width};var fHc=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()})}};fHc.prototype.attach=function(a){this._overlayRef=a};
fHc.prototype.enable=function(){var a=this;if(!this._scrollSubscription){var b=this._scrollDispatcher.scrolled(0).pipe(te(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)}};fHc.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};fHc.prototype.detach=function(){this.disable();this._overlayRef=null};var gHc=function(){};gHc.prototype.enable=function(){};gHc.prototype.disable=function(){};gHc.prototype.attach=function(){};var Gsa=function(a,b,c,d){this._scrollDispatcher=a;this._viewportRuler=b;this._ngZone=c;this._config=d;this._scrollSubscription=null};Gsa.prototype.attach=function(a){this._overlayRef=a};
Gsa.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;Esa(b,[{width:d,height:c,bottom:c,right:d,top:0,left:0}])&&(a.disable(),a._ngZone.run(function(){return a._overlayRef.detach()}))}}))};
Gsa.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};Gsa.prototype.detach=function(){this.disable();this._overlayRef=null};var cA=function(){var a=this;this._injector=q(xe);this.noop=function(){return new gHc};this.close=function(b){var c=a._injector;return new fHc(c.get(Zh),c.get(Tg),c.get(Xh),b)};this.block=function(){return Dsa(a._injector)};this.reposition=function(b){return $h(a._injector,b)}};cA.\u0275fac=function(a){return new (a||cA)};cA.\u0275prov=Cc({token:cA,factory:cA.\u0275fac,providedIn:"root"});var ki=function(a){this.scrollStrategy=new gHc;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 hHc=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 g;(g=e._cleanupTransitionEnd)==null||g.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)};
hHc.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 li=function(a,b,c,d,e,f,g,k,m,r,w,x){r=r===void 0?!1:r;this._portalOutlet=a;this._host=b;this._pane=c;this._config=d;this._ngZone=e;this._keyboardDispatcher=f;this._document=g;this._location=k;this._outsideClickDispatcher=m;this._animationsDisabled=r;this._injector=w;this._renderer=x;this._backdropClick=new rf;this._attachments=new rf;this._detachments=new rf;this._locationChanges=Od.EMPTY;this._backdropRef=null;this._keydownEvents=new rf;this._outsidePointerEvents=new rf;d.scrollStrategy&&(this._scrollStrategy=
d.scrollStrategy,this._scrollStrategy.attach(this));this._positionStrategy=d.positionStrategy};h=li.prototype;
h.attach=function(a){var b=this;this._attachHost();a=this._portalOutlet.attach(a);var c;(c=this._positionStrategy)==null||c.attach(this);this._updateStackingOrder();this._updateElementSize();this._updateElementDirection();this._scrollStrategy&&this._scrollStrategy.enable();var d;(d=this._afterNextRenderRef)==null||d.destroy();this._afterNextRenderRef=De(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._completeDetachContent();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};h.detach=function(){if(this.hasAttached()){iHc(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._completeDetachContent();this._keyboardDispatcher.remove(this);this._detachContentWhenEmpty();this._locationChanges.unsubscribe();this._outsideClickDispatcher.remove(this);return a}};
h.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._completeDetachContent()};h.hasAttached=function(){return this._portalOutlet.hasAttached()};h.backdropClick=function(){return this._backdropClick};h.attachments=function(){return this._attachments};h.keydownEvents=function(){return this._keydownEvents};h.outsidePointerEvents=function(){return this._outsidePointerEvents};
h.getConfig=function(){return this._config};h.updatePosition=function(){this._positionStrategy&&this._positionStrategy.apply()};var jHc=function(a,b){b!==a._positionStrategy&&(a._positionStrategy&&a._positionStrategy.dispose(),a._positionStrategy=b,a.hasAttached()&&(b.attach(a),a.updatePosition()))};li.prototype.updateSize=function(a){this._config=Object.assign({},this._config,a);this._updateElementSize()};
li.prototype.setDirection=function(a){this._config=Object.assign({},this._config,{direction:a});this._updateElementDirection()};li.prototype.addPanelClass=function(a){this._pane&&this._toggleClasses(this._pane,a,!0)};li.prototype.removePanelClass=function(a){this._pane&&this._toggleClasses(this._pane,a,!1)};var kHc=function(a){return(a=a._config.direction)?typeof a==="string"?a:a.value:"ltr"};h=li.prototype;h._updateElementDirection=function(){this._host.setAttribute("dir",kHc(this))};
h._updateElementSize=function(){if(this._pane){var a=this._pane.style;a.width=Th(this._config.width);a.height=Th(this._config.height);a.minWidth=Th(this._config.minWidth);a.minHeight=Th(this._config.minHeight);a.maxWidth=Th(this._config.maxWidth);a.maxHeight=Th(this._config.maxHeight)}};h._togglePointerEvents=function(a){this._pane.style.pointerEvents=a?"":"none"};
h._attachHost=function(){if(!this._host.parentElement){var a,b,c=this._config.usePopover?(a=this._positionStrategy)==null?void 0:(b=a.getPopoverInsertionPoint)==null?void 0:b.call(a):null;if(c&&c.nodeType===1)c.after(this._host);else if((c==null?void 0:c.type)==="parent")c.element.appendChild(this._host);else{var d;(d=this._previousHostParent)==null||d.appendChild(this._host)}}if(this._config.usePopover)try{this._host.showPopover()}catch(e){}};
h._attachBackdrop=function(){var a=this,b;(b=this._backdropRef)==null||b.dispose();this._backdropRef=new hHc(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._config.usePopover?this._host.prepend(this._backdropRef.element):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")})})};h._updateStackingOrder=function(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host)};
var iHc=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()}};h=li.prototype;h._toggleClasses=function(a,b,c){b=Rh(b||[]).filter(function(d){return!!d});b.length&&(c?a.classList.add.apply(a.classList,n(b)):a.classList.remove.apply(a.classList,n(b)))};
h._detachContentWhenEmpty=function(){var a=this,b=!1;try{this._detachContentAfterRenderRef=De(function(){b=!0;a._detachContent()},{injector:this._injector})}catch(c){if(b)throw c;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||(this._detachContentMutationObserver=new globalThis.MutationObserver(function(){a._detachContent()})),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))};
h._detachContent=function(){this._pane&&this._host&&this._pane.children.length!==0||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent())};
h._completeDetachContent=function(){var a;(a=this._detachContentAfterRenderRef)==null||a.destroy();this._detachContentAfterRenderRef=void 0;var b;(b=this._detachContentMutationObserver)==null||b.disconnect()};h._disposeScrollStrategy=function(){var a=this._scrollStrategy;a==null||a.disable();var b;a==null||(b=a.detach)==null||b.call(a)};
da.Object.defineProperties(li.prototype,{overlayElement:{configurable:!0,enumerable:!0,get:function(){return this._pane}},hostElement:{configurable:!0,enumerable:!0,get:function(){return this._host}}});var lHc=function(a,b){this.connectionPair=a;this.scrollableViewProperties=b};var Hsa=/([A-Za-z%]+)$/,ai=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 rf;this._resizeSubscription=Od.EMPTY;this._offsetY=this._offsetX=0;this._appliedPanelClasses=[];this._popoverLocation=
"global";this.positionChanges=this._positionChanges;this.setOrigin(a)};ai.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()})};
ai.prototype.apply=function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)mHc(this);else{this._clearPanelClasses();this._resetOverlayElementStyles();this._resetBoundingBoxStyles();this._viewportRect=this._getNarrowedViewportRect();this._originRect=this._getOriginRect();this._overlayRect=this._pane.getBoundingClientRect();this._containerRect=Lsa(this._overlayContainer).getBoundingClientRect();for(var a=this._originRect,b=this._overlayRect,
c=this._viewportRect,d=this._containerRect,e=[],f,g=l(this._preferredPositions),k=g.next();!k.done;k=g.next()){k=k.value;var m=this._getOriginPoint(a,d,k),r=this._getOverlayPoint(m,b,k),w=this._getOverlayFit(r,b,c,k);if(w.isCompletelyWithinViewport){this._isPushed=!1;this._applyPosition(k,m);return}if(this._canFitWithFlexibleDimensions(w,r,c))e.push({position:k,origin:m,overlayRect:b,boundingBoxRect:this._calculateBoundingBoxRect(m,k)});else if(!f||f.overlayFit.visibleArea<w.visibleArea)f={overlayFit:w,
overlayPoint:r,originPoint:m,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)}};ai.prototype.detach=function(){this._clearPanelClasses();this._previousPushAmount=this._lastPosition=null;this._resizeSubscription.unsubscribe()};
ai.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&ei(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 mHc=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=Lsa(a._overlayContainer).getBoundingClientRect();var c=a._getOriginPoint(a._originRect,a._containerRect,b);a._applyPosition(b,c)}else a.apply()}},nHc=function(a,b){a._scrollables=b;return a},dA=function(a,b){a._preferredPositions=b;b.indexOf(a._lastPosition)===-1&&(a._lastPosition=
null);return a},eA=function(a,b){a._viewportMargin=b;return a},fA=function(a,b){a._hasFlexibleDimensions=b===void 0?!0:b;return a},oHc=function(a,b){a._growAfterOpen=b===void 0?!0:b;return a},pHc=function(a,b){a._canPush=b===void 0?!0:b;return a},qHc=function(a,b){a._positionLocked=b===void 0?!0:b;return a};ai.prototype.setOrigin=function(a){this._origin=a;return this};var rHc=function(a,b){a._transformOriginSelector=b;return a},sHc=function(a,b){a._popoverLocation=b;return a};h=ai.prototype;
h.getPopoverInsertionPoint=function(){if(this._popoverLocation==="global")var a=null;else this._popoverLocation!=="inline"?a=this._popoverLocation:this._origin instanceof Gd?a=this._origin.nativeElement:a=(a=this._origin)&&a.nodeType===1?this._origin:null;return a};
h._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}};
h._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)}};
h._getOverlayFit=function(a,b,c,d){b=Jsa(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}};
h._canFitWithFlexibleDimensions=function(a,b,c){if(this._hasFlexibleDimensions){var d=c.bottom-b.y;c=c.right-b.x;b=Isa(this._overlayRef.getConfig().minHeight);var e=Isa(this._overlayRef.getConfig().minWidth);c=a.fitsInViewportHorizontally||e!=null&&e<=c;return(a.fitsInViewportVertically||b!=null&&b<=d)&&c}return!1};
h._pushOverlayOnScreen=function(a,b,c){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};b=Jsa(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),g=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._getViewportMarginStart()?d.left-c.left-a.x:0;c=b.height<=d.height?g||-f:a.y<this._getViewportMarginTop()?d.top-c.top-a.y:0;this._previousPushAmount=
{x:e,y:c};return{x:a.x+e,y:a.y+c}};
h._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 lHc(a,b));this._lastScrollVisibility=b}this._lastPosition=a;this._isInitialRender=!1};h._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}};
h._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._getViewportMarginBottom()}else if(b.overlayY==="bottom"){var g=c.height-a.y+this._getViewportMarginTop()+this._getViewportMarginBottom();f=c.height-g+this._getViewportMarginTop()}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 m=c.width-a.x+this._getViewportMarginStart()+this._getViewportMarginEnd();b=a.x-this._getViewportMarginStart()}else if(k){var r=a.x;b=c.right-a.x-this._getViewportMarginEnd()}else r=Math.min(c.right-a.x+c.left,a.x),c=this._lastBoundingBoxSize.width,b=r*2,r=a.x-r,b>c&&!this._isInitialRender&&!this._growAfterOpen&&(r=a.x-c/2);return{top:e,left:r,bottom:g,right:m,width:b,height:f}};
h._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="auto",c.maxHeight=c.maxWidth="",c.width=c.height="100%";else{var d=this._overlayRef.getConfig().maxHeight,e=this._overlayRef.getConfig().maxWidth;c.width=Th(a.width);c.height=Th(a.height);
c.top=Th(a.top)||"auto";c.bottom=Th(a.bottom)||"auto";c.left=Th(a.left)||"auto";c.right=Th(a.right)||"auto";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=Th(d));e&&(c.maxWidth=Th(e))}this._lastBoundingBoxSize=a;ei(this._boundingBox.style,c)};
h._resetBoundingBoxStyles=function(){ei(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})};h._resetOverlayElementStyles=function(){ei(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})};
h._setOverlayElementStyles=function(a,b){var c={},d=this._hasExactPosition(),e=this._hasFlexibleDimensions,f=this._overlayRef.getConfig();if(d){var g=this._viewportRuler.getViewportScrollPosition();ei(c,this._getExactOverlayY(b,a,g));ei(c,this._getExactOverlayX(b,a,g))}else c.position="static";a="";g=this._getOffset(b,"x");b=this._getOffset(b,"y");g&&(a+="translateX("+g+"px) ");b&&(a+="translateY("+b+"px)");c.transform=a.trim();f.maxHeight&&(d?c.maxHeight=Th(f.maxHeight):e&&(c.maxHeight=""));f.maxWidth&&
(d?c.maxWidth=Th(f.maxWidth):e&&(c.maxWidth=""));ei(this._pane.style,c)};h._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=Th(b.y);return d};
h._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=Th(b.x);return d};
h._getScrollVisibility=function(){var a=this._getOriginRect(),b=this._pane.getBoundingClientRect(),c=this._scrollables.map(function(d){return d.elementRef.nativeElement.getBoundingClientRect()});return{isOriginClipped:Fsa(a,c),isOriginOutsideView:Esa(a,c),isOverlayClipped:Fsa(b,c),isOverlayOutsideView:Esa(b,c)}};h._subtractOverflows=function(a){return Yc.apply(1,arguments).reduce(function(b,c){return b-Math.max(c,0)},a)};
h._getNarrowedViewportRect=function(){var a=this._document.documentElement.clientWidth,b=this._document.documentElement.clientHeight,c=this._viewportRuler.getViewportScrollPosition();return{top:c.top+this._getViewportMarginTop(),left:c.left+this._getViewportMarginStart(),right:c.left+a-this._getViewportMarginEnd(),bottom:c.top+b-this._getViewportMarginBottom(),width:a-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:b-this._getViewportMarginTop()-this._getViewportMarginBottom()}};
h._isRtl=function(){return kHc(this._overlayRef)==="rtl"};h._hasExactPosition=function(){return!this._hasFlexibleDimensions||this._isPushed};h._getOffset=function(a,b){return b==="x"?a.offsetX==null?this._offsetX:a.offsetX:a.offsetY==null?this._offsetY:a.offsetY};h._validatePositions=function(){};h._addPanelClasses=function(a){var b=this;this._pane&&Rh(a).forEach(function(c){c!==""&&b._appliedPanelClasses.indexOf(c)===-1&&(b._appliedPanelClasses.push(c),b._pane.classList.add(c))})};
h._clearPanelClasses=function(){var a=this;this._pane&&(this._appliedPanelClasses.forEach(function(b){a._pane.classList.remove(b)}),this._appliedPanelClasses=[])};h._getViewportMarginStart=function(){if(typeof this._viewportMargin==="number")return this._viewportMargin;var a,b;return(b=(a=this._viewportMargin)==null?void 0:a.start)!=null?b:0};
h._getViewportMarginEnd=function(){if(typeof this._viewportMargin==="number")return this._viewportMargin;var a,b;return(b=(a=this._viewportMargin)==null?void 0:a.end)!=null?b:0};h._getViewportMarginTop=function(){if(typeof this._viewportMargin==="number")return this._viewportMargin;var a,b;return(b=(a=this._viewportMargin)==null?void 0:a.top)!=null?b:0};
h._getViewportMarginBottom=function(){if(typeof this._viewportMargin==="number")return this._viewportMargin;var a,b;return(b=(a=this._viewportMargin)==null?void 0:a.bottom)!=null?b:0};h._getOriginRect=function(){var a=this._origin;if(a instanceof Gd)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}};
da.Object.defineProperties(ai.prototype,{positions:{configurable:!0,enumerable:!0,get:function(){return this._preferredPositions}}});var gA=function(){this._cssPosition="static";this._height=this._width=this._xOffset=this._xPosition=this._alignItems=this._bottomOffset=this._topOffset="";this._isDisposed=!1};h=gA.prototype;h.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};
h.top=function(a){this._bottomOffset="";this._topOffset=a===void 0?"":a;this._alignItems="flex-start";return this};h.left=function(a){this._xOffset=a===void 0?"":a;this._xPosition="left";return this};h.bottom=function(a){this._topOffset="";this._bottomOffset=a===void 0?"":a;this._alignItems="flex-end";return this};h.right=function(a){this._xOffset=a===void 0?"":a;this._xPosition="right";return this};h.start=function(a){this._xOffset=a===void 0?"":a;this._xPosition="start";return this};
h.end=function(a){this._xOffset=a===void 0?"":a;this._xPosition="end";return this};h.width=function(a){a=a===void 0?"":a;this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a;return this};h.height=function(a){a=a===void 0?"":a;this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a;return this};var hA=function(a){a.left("");a._xPosition="center";return a},tHc=function(a){a.top("");a._alignItems="center";return a};
gA.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 g=this._overlayRef.getConfig().direction==="rtl",k="",m="",r="";if(d)r="flex-start";else if(f==="center")r=
"center",g?m=c:k=c;else if(g)if(f==="left"||f==="end")r="flex-end",k=c;else{if(f==="right"||f==="start")r="flex-start",m=c}else if(f==="left"||f==="start")r="flex-start",k=c;else if(f==="right"||f==="end")r="flex-end",m=c;a.position=this._cssPosition;a.marginLeft=d?"0":k;a.marginTop=e?"0":this._topOffset;a.marginBottom=this._bottomOffset;a.marginRight=d?"0":m;b.justifyContent=r;b.alignItems=e?"flex-start":this._alignItems}};
gA.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 iA=function(){this._injector=q(xe)};iA.prototype.global=function(){return new gA};var jA=function(a,b){return di(a._injector,b)};iA.\u0275fac=function(a){return new (a||iA)};iA.\u0275prov=Cc({token:iA,factory:iA.\u0275fac,providedIn:"root"});var kA=function(){};kA.prototype.attach=function(a){this._attachedHost=a;return a.attach(this)};kA.prototype.detach=function(){var a=this._attachedHost;a!=null&&(this._attachedHost=null,a.detach())};da.Object.defineProperties(kA.prototype,{isAttached:{configurable:!0,enumerable:!0,get:function(){return this._attachedHost!=null}}});var lA=function(a,b,c,d){this.component=a;this.viewContainerRef=b;this.injector=c;this.projectableNodes=d};Z(lA,kA);
var mA=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.context=c;this.injector=d};Z(mA,kA);mA.prototype.attach=function(a,b){this.context=b=b===void 0?this.context:b;return kA.prototype.attach.call(this,a)};mA.prototype.detach=function(){this.context=void 0;return kA.prototype.detach.call(this)};da.Object.defineProperties(mA.prototype,{origin:{configurable:!0,enumerable:!0,get:function(){return this.templateRef.elementRef}}});var nA=function(){this._isDisposed=!1};h=nA.prototype;
h.hasAttached=function(){return!!this._attachedPortal};h.attach=function(a){if(a instanceof lA)return this._attachedPortal=a,this.attachComponentPortal(a);if(a instanceof mA)return this._attachedPortal=a,this.attachTemplatePortal(a)};h.detach=function(){this._attachedPortal&&(this._attachedPortal=this._attachedPortal._attachedHost=null);this._invokeDisposeFn()};h.dispose=function(){this.hasAttached()&&this.detach();this._invokeDisposeFn();this._isDisposed=!0};
h.setDisposeFn=function(a){this._disposeFn=a};h._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)};var mi=function(a,b,c){this._isDisposed=!1;this.outletElement=a;this._appRef=b;this._defaultInjector=c};Z(mi,nA);
mi.prototype.attachComponentPortal=function(a){if(a.viewContainerRef){var b=a.injector||a.viewContainerRef.injector,c=b.get(Ix,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||GCc;c=b.get(Xe,e.injector);d=Apa(a.component,{elementInjector:b,environmentInjector:c,
projectableNodes:a.projectableNodes||void 0});SDc(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};
mi.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};mi.prototype.dispose=function(){nA.prototype.dispose.call(this);this.outletElement.remove()};mi.prototype._getComponentRootNode=function(a){return a.hostView.rootNodes[0]};var oA=function(){var a=q(hg),b=q(ig);mA.call(this,a,b)};Z(oA,mA);oA.\u0275fac=function(a){return new (a||oA)};oA.\u0275dir=af({type:oA,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Ff]});var pA=function(){this._isDisposed=!1;this._moduleRef=q(Ix,{optional:!0});this._document=q(Yh);this._viewContainerRef=q(ig);this._isInitialized=!1;this.attached=new ui};Z(pA,nA);h=pA.prototype;h.ngOnInit=function(){this._isInitialized=!0};
h.ngOnDestroy=function(){nA.prototype.dispose.call(this);this._attachedRef=this._attachedPortal=null};
h.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]);nA.prototype.setDisposeFn.call(this,function(){return c.destroy()});this._attachedPortal=a;this._attachedRef=c;this.attached.emit(c);
return c};h.attachTemplatePortal=function(a){var b=this;a._attachedHost=this;var c=this._viewContainerRef.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});nA.prototype.setDisposeFn.call(this,function(){return b._viewContainerRef.clear()});this._attachedPortal=a;this._attachedRef=c;this.attached.emit(c);return c};h._getRootNode=function(){var a=this._viewContainerRef.element.nativeElement;return a.nodeType===a.ELEMENT_NODE?a:a.parentNode};
da.Object.defineProperties(pA.prototype,{portal:{configurable:!0,enumerable:!0,get:function(){return this._attachedPortal},set:function(a){if(!this.hasAttached()||a||this._isInitialized)this.hasAttached()&&nA.prototype.detach.call(this),a&&nA.prototype.attach.call(this,a),this._attachedPortal=a||null}}});pA.\u0275fac=function(a){return new (a||pA)};
pA.\u0275dir=af({type:pA,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Ff]});var qA=function(){};qA.\u0275fac=function(a){return new (a||qA)};qA.\u0275mod=$e({type:qA});qA.\u0275inj=Dc({});var Ksa=new bd("OVERLAY_DEFAULT_CONFIG"),rA=function(){this.scrollStrategies=q(cA);this._positionBuilder=q(iA);this._injector=q(xe)};rA.prototype.create=function(a){return ri(this._injector,a)};rA.prototype.position=function(){return this._positionBuilder};rA.\u0275fac=function(a){return new (a||rA)};rA.\u0275prov=Cc({token:rA,factory:rA.\u0275fac,providedIn:"root"});var uHc=[{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"}],vHc=new bd("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:function(){var a=q(xe);return function(){return $h(a)}}}),sA=function(){this.elementRef=q(Gd)};sA.\u0275fac=function(a){return new (a||sA)};
sA.\u0275dir=af({type:sA,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]});
var wHc=new bd("cdk-connected-overlay-default-config"),tA=function(){this._dir=q(ii,{optional:!0});this._injector=q(xe);this._positionSubscription=this._detachSubscription=this._attachSubscription=this._backdropSubscription=Od.EMPTY;this._scrollStrategyFactory=q(vHc);this._ngZone=q(Tg);this.viewportMargin=0;this.matchWidth=this.disposeOnNavigation=this.push=this.growAfterOpen=this.flexibleDimensions=this.lockPosition=this.hasBackdrop=this.disableClose=this.open=!1;this.backdropClick=new ui;this.positionChange=
new ui;this.attach=new ui;this.detach=new ui;this.overlayKeydown=new ui;this.overlayOutsideClick=new ui;var a=q(hg),b=q(ig),c=q(wHc,{optional:!0}),d;this.usePopover=((d=q(Ksa,{optional:!0}))==null?void 0:d.usePopover)===!1?null:"global";this._templatePortal=new mA(a,b);this.scrollStrategy=this._scrollStrategyFactory();c&&this._assignConfig(c)};h=tA.prototype;
h.ngOnDestroy=function(){this._attachSubscription.unsubscribe();this._detachSubscription.unsubscribe();this._backdropSubscription.unsubscribe();this._positionSubscription.unsubscribe();var a;(a=this._overlayRef)==null||a.dispose()};
h.ngOnChanges=function(a){if(this._position){this._updatePositionStrategy(this._position);var b;(b=this._overlayRef)==null||b.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight});a.origin&&this.open&&this._position.apply()}a.open&&(this.open?xHc(this):yHc(this))};
h._createOverlay=function(){var a=this;this.positions&&this.positions.length||(this.positions=uHc);var b=this._overlayRef=ri(this._injector,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||Nh(c)||(c.preventDefault(),yHc(a))});this._overlayRef.outsidePointerEvents().subscribe(function(c){var d=
a._getOriginElement(),e=Qh(c);d&&(d===e||d.contains(e))||a.overlayOutsideClick.next(c)})};
h._buildConfig=function(){var a=this._position=this.positionStrategy||this._createPositionStrategy();a=new ki({direction:this._dir||"ltr",positionStrategy:a,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});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};
h._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 sHc(rHc(qHc(eA(oHc(pHc(fA(dA(a.setOrigin(this._getOrigin()),c),this.flexibleDimensions),this.push),this.growAfterOpen),this.viewportMargin),this.lockPosition),this.transformOriginSelector),this.usePopover===null?"global":this.usePopover)};
h._createPositionStrategy=function(){var a=di(this._injector,this._getOrigin());this._updatePositionStrategy(a);return a};h._getOrigin=function(){return this.origin instanceof sA?this.origin.elementRef:this.origin};h._getOriginElement=function(){return this.origin instanceof sA?this.origin.elementRef.nativeElement:this.origin instanceof Gd?this.origin.nativeElement:typeof Element!=="undefined"&&this.origin instanceof Element?this.origin:null};
h._getWidth=function(){if(this.width)return this.width;var a,b;return this.matchWidth?(a=this._getOriginElement())==null?void 0:(b=a.getBoundingClientRect)==null?void 0:b.call(a).width:void 0};
var xHc=function(a){a._overlayRef||a._createOverlay();var b=a._overlayRef;b.getConfig().hasBackdrop=a.hasBackdrop;b.updateSize({width:a._getWidth()});b.hasAttached()||b.attach(a._templatePortal);a.hasBackdrop?a._backdropSubscription=b.backdropClick().subscribe(function(c){return a.backdropClick.emit(c)}):a._backdropSubscription.unsubscribe();a._positionSubscription.unsubscribe();a.positionChange.observers.length>0&&(a._positionSubscription=a._position.positionChanges.pipe(Mla(function(){return a.positionChange.observers.length>
0})).subscribe(function(c){a._ngZone.run(function(){return a.positionChange.emit(c)});a.positionChange.observers.length===0&&a._positionSubscription.unsubscribe()}));a.open=!0},yHc=function(a){var b;(b=a._overlayRef)==null||b.detach();a._backdropSubscription.unsubscribe();a._positionSubscription.unsubscribe();a.open=!1};
tA.prototype._assignConfig=function(a){var b;this.origin=(b=a.origin)!=null?b:this.origin;var c;this.positions=(c=a.positions)!=null?c:this.positions;var d;this.positionStrategy=(d=a.positionStrategy)!=null?d:this.positionStrategy;var e;this.offsetX=(e=a.offsetX)!=null?e:this.offsetX;var f;this.offsetY=(f=a.offsetY)!=null?f:this.offsetY;var g;this.width=(g=a.width)!=null?g:this.width;var k;this.height=(k=a.height)!=null?k:this.height;var m;this.minWidth=(m=a.minWidth)!=null?m:this.minWidth;var r;
this.minHeight=(r=a.minHeight)!=null?r:this.minHeight;var w;this.backdropClass=(w=a.backdropClass)!=null?w:this.backdropClass;var x;this.panelClass=(x=a.panelClass)!=null?x:this.panelClass;var D;this.viewportMargin=(D=a.viewportMargin)!=null?D:this.viewportMargin;var H;this.scrollStrategy=(H=a.scrollStrategy)!=null?H:this.scrollStrategy;var J;this.disableClose=(J=a.disableClose)!=null?J:this.disableClose;var O;this.transformOriginSelector=(O=a.transformOriginSelector)!=null?O:this.transformOriginSelector;
var R;this.hasBackdrop=(R=a.hasBackdrop)!=null?R:this.hasBackdrop;var V;this.lockPosition=(V=a.lockPosition)!=null?V:this.lockPosition;var ba;this.flexibleDimensions=(ba=a.flexibleDimensions)!=null?ba:this.flexibleDimensions;var pa;this.growAfterOpen=(pa=a.growAfterOpen)!=null?pa:this.growAfterOpen;var ua;this.push=(ua=a.push)!=null?ua:this.push;var ma;this.disposeOnNavigation=(ma=a.disposeOnNavigation)!=null?ma:this.disposeOnNavigation;var Da;this.usePopover=(Da=a.usePopover)!=null?Da:this.usePopover;
var ja;this.matchWidth=(ja=a.matchWidth)!=null?ja:this.matchWidth};
da.Object.defineProperties(tA.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)}},_config:{configurable:!0,enumerable:!0,set:function(a){typeof a!=="string"&&this._assignConfig(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"}}});tA.\u0275fac=function(a){return new (a||tA)};
tA.\u0275dir=af({type:tA,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",bh],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",bh],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",bh],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",bh],push:[2,"cdkConnectedOverlayPush","push",bh],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",
bh],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",bh],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Gx]});var uA=function(){};uA.\u0275fac=function(a){return new (a||uA)};uA.\u0275mod=$e({type:uA});uA.\u0275inj=Dc({providers:[rA],imports:[jz,qA,bA,bA]});var Msa=new bd("MATERIAL_ANIMATIONS"),Nsa=null;var zHc=function(a,b,c,d,e){this._defaultMatcher=a;this.ngControl=b;this._parentFormGroup=c;this._parentForm=d;this._stateChanges=e;this.errorState=!1};zHc.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 bd("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return q(ipa)}});var vA=function(){this.localeChanges=this._localeChanges=new rf};vA.prototype.setTime=function(){throw Error("db");};vA.prototype.getHours=function(){throw Error("db");};vA.prototype.getMinutes=function(){throw Error("db");};vA.prototype.getSeconds=function(){throw Error("db");};var wA=function(a,b){return AHc(b)&&a.isValid(b)?b:null},xA=function(a,b){return b==null||AHc(b)&&a.isValid(b)?b:a.invalid()};
vA.prototype.setLocale=function(a){this.locale=a;this._localeChanges.next()};var yA=function(a,b,c){return a.getYear(b)-a.getYear(c)||a.getMonth(b)-a.getMonth(c)||a.getDate(b)-a.getDate(c)};vA.prototype.sameDate=function(a,b){if(a&&b){var c=this.isValid(a),d=this.isValid(b);return c&&d?!yA(this,a,b):c==d}return a==b};var BHc=function(a,b,c,d){return c&&yA(a,b,c)<0?c:d&&yA(a,b,d)>0?d:b};var zA=new bd("mat-date-formats");var AA=function(){};AA.prototype.isErrorState=function(a,b){return!!(a&&a.invalid&&(a.touched||b&&b.submitted))};AA.\u0275fac=function(a){return new (a||AA)};AA.\u0275prov=Cc({token:AA,factory:AA.\u0275fac,providedIn:"root"});var BA=function(){};BA.\u0275fac=function(a){return new (a||BA)};
BA.\u0275cmp=C({type:BA,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 CA=function(){};CA.\u0275fac=function(a){return new (a||CA)};
CA.\u0275cmp=C({type:CA,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(a,b){a&2&&yg("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&&(fg(),gg(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 CHc=new bd("MAT_OPTION_PARENT_COMPONENT");var DHc=new bd("MatOptgroup");var EHc=Oh({passive:!0,capture:!0}),GHc=function(a,b,c,d){var e=FHc,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,EHc)}))};var HHc=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 IHc={enterDuration:225,exitDuration:150},JHc=Oh({passive:!0,capture:!0}),KHc=["mousedown","touchstart"],LHc=["mouseup","mouseleave","touchend","touchcancel"],MHc=function(){};MHc.\u0275fac=function(a){return new (a||MHc)};
MHc.\u0275cmp=C({type:MHc,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 NHc=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=Uh(c));e&&e.get(fi).load(MHc)},OHc=function(a,b,c,d){d=d===void 0?{}:d;var e=a._containerRect=a._containerRect||a._containerElement.getBoundingClientRect(),f=Object.assign({},IHc,d.animation);d.centered&&(b=e.left+e.width/2,c=e.top+e.height/2);var g=d.radius||Psa(b,c,e);b-=e.left;c-=e.top;var k=f.enterDuration,
m=document.createElement("div");m.classList.add("mat-ripple-element");m.style.left=b-g+"px";m.style.top=c-g+"px";m.style.height=g*2+"px";m.style.width=g*2+"px";d.color!=null&&(m.style.backgroundColor=d.color);m.style.transitionDuration=k+"ms";a._containerElement.appendChild(m);g=window.getComputedStyle(m);c=g.transitionDuration;e=g.transitionProperty==="none"||c==="0s"||c==="0s, 0s"||e.width===0&&e.height===0;var r=new HHc(a,m,d,e);m.style.transform="scale3d(1, 1, 1)";r.state=0;d.persistent||(a._mostRecentTransientRipple=
r);var w=null;e||!k&&!f.exitDuration||a._ngZone.runOutsideAngular(function(){var x=function(){w&&(w.fallbackTimer=null);clearTimeout(H);a._finishRippleTransition(r)},D=function(){return a._destroyRipple(r)},H=setTimeout(D,k+100);m.addEventListener("transitionend",x);m.addEventListener("transitioncancel",D);w={onTransitionEnd:x,onTransitionCancel:D,fallbackTimer:H}});a._activeRipples.set(r,w);!e&&k||a._finishRippleTransition(r);return r},PHc=function(a,b){if(b.state!==2&&b.state!==3){var c=b.element,
d=Object.assign({},IHc,b.config.animation);c.style.transitionDuration=d.exitDuration+"ms";c.style.opacity="0";b.state=2;!b._animationForciblyDisabledThroughCss&&d.exitDuration||a._finishRippleTransition(b)}};NHc.prototype.fadeOutAllNonPersistent=function(){this._getActiveRipples().forEach(function(a){a.config.persistent||PHc(a._renderer,a)})};
var QHc=function(a,b){var c=Uh(b);a._platform.isBrowser&&c&&c!==a._triggerElement&&(a._removeTriggerEvents(),a._triggerElement=c,KHc.forEach(function(d){GHc(a._ngZone,d,c,a)}))};h=NHc.prototype;
h.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(){LHc.forEach(function(c){b._triggerElement.addEventListener(c,b,JHc)})}),this._pointerUpEventsRegistered=!0)};h._finishRippleTransition=function(a){a.state===0?this._startFadeOutTransition(a):a.state===2&&this._destroyRipple(a)};
h._startFadeOutTransition=function(a){var b=a===this._mostRecentTransientRipple,c=a.config.persistent;a.state=1;c||b&&this._isPointerDown||PHc(a._renderer,a)};
h._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()};
h._onMousedown=function(a){var b=asa(a),c=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||b||c||(this._isPointerDown=!0,OHc(this,a.clientX,a.clientY,this._target.rippleConfig))};h._onTouchStart=function(a){if(!this._target.rippleDisabled&&!bsa(a)&&(this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0,a=a.changedTouches))for(var b=0;b<a.length;b++)OHc(this,a[b].clientX,a[b].clientY,this._target.rippleConfig)};
h._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&&PHc(a._renderer,a)}))};h._getActiveRipples=function(){return Array.from(this._activeRipples.keys())};
h._removeTriggerEvents=function(){var a=this,b=this._triggerElement;b&&(KHc.forEach(function(c){var d=FHc,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,EHc)))}}),this._pointerUpEventsRegistered&&(LHc.forEach(function(c){return b.removeEventListener(c,a,JHc)}),this._pointerUpEventsRegistered=!1))};
var FHc=new function(){var a=this;this._events=new Map;this._delegateEventHandler=function(b){var c=Qh(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(g){return g.handleEvent(b)})})}}};var DA=new bd("mat-ripple-global-options"),EA=function(){this._elementRef=q(Gd);this._animationsDisabled=ti();this.radius=0;this._isInitialized=this._disabled=!1;var a=q(Tg),b=q(bi),c=q(DA,{optional:!0}),d=q(xe);this._globalOptions=c||{};this._rippleRenderer=new NHc(this,a,this._elementRef,b,d)};h=EA.prototype;h.ngOnInit=function(){this._isInitialized=!0;this._setupTriggerEventsIfEnabled()};h.ngOnDestroy=function(){this._rippleRenderer._removeTriggerEvents()};h.fadeOutAllNonPersistent=function(){this._rippleRenderer.fadeOutAllNonPersistent()};
h._setupTriggerEventsIfEnabled=function(){!this.disabled&&this._isInitialized&&QHc(this._rippleRenderer,this.trigger)};h.launch=function(a,b,c){return typeof a==="number"?OHc(this._rippleRenderer,a,b===void 0?0:b,Object.assign({},this.rippleConfig,c)):OHc(this._rippleRenderer,0,0,Object.assign({},this.rippleConfig,a))};
da.Object.defineProperties(EA.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}}});EA.\u0275fac=function(a){return new (a||EA)};
EA.\u0275dir=af({type:EA,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(a,b){a&2&&yg("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 FA=function(){this._animationsDisabled=ti();this.state="unchecked";this.disabled=!1;this.appearance="full"};FA.\u0275fac=function(a){return new (a||FA)};
FA.\u0275cmp=C({type:FA,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(a,b){a&2&&yg("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-pseudo-checkbox-minimal-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-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-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-pseudo-checkbox-full-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-pseudo-checkbox-full-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-pseudo-checkbox-full-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-pseudo-checkbox-full-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-pseudo-checkbox-full-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 RHc=["text"],SHc=[[["mat-icon"]],"*"],THc=function(a,b){this.source=a;this.isUserInput=b===void 0?!1:b},GA=function(){this._element=q(Gd);this._changeDetectorRef=q(Yx);this._parent=q(CHc,{optional:!0});this.group=q(DHc,{optional:!0});this._active=this._selected=this._signalDisableRipple=!1;this._mostRecentViewValue="";this.id=q(hi).getId("mat-option-");this._disabled=qg.apply(null,[!1].concat(n([])));this.onSelectionChange=new ui;this._stateChanges=new rf;var a=q(fi);a.load(BA);a.load(gz);this._signalDisableRipple=
!!this._parent&&ef(this._parent.disableRipple)};h=GA.prototype;h.select=function(a){a=a===void 0?!0:a;this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),a&&this._emitSelectionChangeEvent())};h.deselect=function(a){a=a===void 0?!0:a;this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),a&&this._emitSelectionChangeEvent())};h.focus=function(a,b){var c=this._getHostElement();typeof c.focus==="function"&&c.focus(b)};
h.setActiveStyles=function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())};h.setInactiveStyles=function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())};h.getLabel=function(){return this.viewValue};h._handleKeydown=function(a){a.keyCode!==13&&a.keyCode!==32||Nh(a)||(this._selectViaInteraction(),a.preventDefault())};
h._selectViaInteraction=function(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))};h._getTabIndex=function(){return this.disabled?"-1":"0"};h._getHostElement=function(){return this._element.nativeElement};h.ngAfterViewChecked=function(){if(this._selected){var a=this.viewValue;a!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=a)}};h.ngOnDestroy=function(){this._stateChanges.complete()};
h._emitSelectionChangeEvent=function(a){this.onSelectionChange.emit(new THc(this,a===void 0?!1:a))};
da.Object.defineProperties(GA.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.set(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()}}});GA.\u0275fac=function(a){return new (a||GA)};
GA.\u0275cmp=C({type:GA,selectors:[["mat-option"]],viewQuery:function(a,b){a&1&&kg(RHc,7);if(a&2){var c;og(c=pg())&&(b._text=c.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(a,b){a&1&&N("click",function(){return b._selectViaInteraction()})("keydown",function(c){return b._handleKeydown(c)});a&2&&(Rf("id",b.id),Jf("aria-selected",b.selected)("aria-disabled",b.disabled.toString()),yg("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",bh]},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&&(fg(SHc),F(0,Qsa,1,2,"mat-pseudo-checkbox",1),gg(1),K(2,"span",2,0),gg(4,1),L(),F(5,Rsa,1,1,"mat-pseudo-checkbox",3),F(6,Ssa,2,1,"span",4),M(7,"div",5));a&2&&(G(b.multiple?0:-1),B(5),G(b.multiple||!b.selected||b.hideSingleSelectionIndicator?-1:5),B(),G(b.group&&b.group._inert?6:-1),B(),I("matRippleTrigger",
b._getHostElement())("matRippleDisabled",b.disabled||b.disableRipple))},dependencies:[FA,EA],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-active,.mat-mdc-option-multiple,:focus,:hover){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-active,.mat-mdc-option-multiple,:focus,:hover) .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-pseudo-checkbox-minimal-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{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}\n'],
encapsulation:2,changeDetection:0});var HA=function(){};HA.\u0275fac=function(a){return new (a||HA)};HA.\u0275mod=$e({type:HA});HA.\u0275inj=Dc({imports:[jz]});var IA=function(){};IA.\u0275fac=function(a){return new (a||IA)};IA.\u0275mod=$e({type:IA});IA.\u0275inj=Dc({imports:[jz]});var JA=function(){};JA.\u0275fac=function(a){return new (a||JA)};JA.\u0275mod=$e({type:JA});JA.\u0275inj=Dc({imports:[HA,IA,GA,jz]});var UHc={capture:!0},VHc=["focus","mousedown","mouseenter","touchstart"],KA=function(){var a=this;this._document=q(Yh);this._animationsDisabled=ti();this._globalRippleOptions=q(DA,{optional:!0});this._platform=q(bi);this._ngZone=q(Tg);this._injector=q(xe);this._hosts=new Map;this._onInteraction=function(c){c=Qh(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=q(Ye).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(function(){return VHc.map(function(c){return b.listen(a._document,c,a._onInteraction,UHc)})})};KA.prototype.ngOnDestroy=function(){var a=this._hosts.keys();a=l(a);for(var b=a.next();!b.done;b=a.next())WHc(this,b.value);this._eventCleanups.forEach(function(c){return c()})};
var XHc=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","")};
KA.prototype.setDisabled=function(a,b){var c=this._hosts.get(a);c?(c.target.rippleDisabled=b,b||c.hasSetUpEvents||(c.hasSetUpEvents=!0,QHc(c.renderer,a))):b?a.setAttribute("mat-ripple-loader-disabled",""):a.removeAttribute("mat-ripple-loader-disabled")};
KA.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:IHc.enterDuration,g,k;d=this._animationsDisabled?0:(k=c==null?void 0:(g=c.animation)==null?void 0:
g.exitDuration)!=null?k:IHc.exitDuration;g={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 NHc(g,this._ngZone,b,this._platform,this._injector);(k=!g.rippleDisabled)&&QHc(b,a);this._hosts.set(a,{target:g,renderer:b,hasSetUpEvents:k});a.removeAttribute("mat-ripple-loader-uninitialized")}};
var WHc=function(a,b){var c=a._hosts.get(b);c&&(c.renderer._removeTriggerEvents(),a._hosts.delete(b))};KA.\u0275fac=function(a){return new (a||KA)};KA.\u0275prov=Cc({token:KA,factory:KA.\u0275fac,providedIn:"root"});var YHc=["tooltip"],ZHc=new bd("mat-tooltip-scroll-strategy",{providedIn:"root",factory:function(){var a=q(xe);return function(){return $h(a,{scrollThrottle:20})}}}),$Hc=new bd("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),aIc=Oh({passive:!0}),MA=function(){this._elementRef=q(Gd);this._ngZone=q(Tg);this._platform=q(bi);this._ariaDescriber=q(Ez);this._focusMonitor=q(mz);this._dir=q(ii);this._injector=q(xe);this._viewContainerRef=
q(ig);this._animationsDisabled=ti();this._defaultOptions=q($Hc,{optional:!0});this._position="below";this._pointerExitEventsInitialized=this._viewInitialized=this._disabled=this._positionAtOrigin=!1;this._tooltipComponent=LA;this._viewportMargin=8;this._cssClassPrefix="mat-mdc";this._dirSubscribed=!1;this.touchGestures="auto";this._message="";this._passiveListeners=[];this._touchstartTimeout=null;this._destroyed=new rf;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};h=MA.prototype;
h.ngAfterViewInit=function(){var a=this;this._viewInitialized=!0;this._setupPointerEnterEventsIfNeeded();this._focusMonitor.monitor(this._elementRef).pipe(Af(this._destroyed)).subscribe(function(b){b?b==="keyboard"&&a._ngZone.run(function(){return a.show()}):a._ngZone.run(function(){return a.hide(0)})})};
h.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,aIc)});this._passiveListeners.length=0;this._destroyed.next();this._destroyed.complete();this._isDestroyed=!0;Gz(this._ariaDescriber,a,this.message,"tooltip");this._focusMonitor.stopMonitoring(a)};
h.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 lA(this._tooltipComponent,this._viewContainerRef),b=this._tooltipInstance=b.attach(this._portal).instance,b._triggerElement=this._elementRef.nativeElement,b._mouseLeaveHideDelay=this._hideDelay,b.afterHidden().pipe(Af(this._destroyed)).subscribe(function(){return c._detach()}),
this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),b.show(a)};h.hide=function(a){a=a===void 0?this.hideDelay:a;var b=this._tooltipInstance;b&&(b.isVisible()?b.hide(a):(b._cancelPendingAnimations(),this._detach()))};h.toggle=function(a){this._isTooltipVisible()?this.hide():this.show(void 0,a)};h._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()};
h._createOverlay=function(a){var b=this;if(this._overlayRef){var c=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!a)&&c._origin instanceof Gd)return this._overlayRef;this._detach()}var d=VGc(this._injector.get(Zh),this._elementRef);c=this._cssClassPrefix+"-tooltip-panel";a=sHc(nHc(eA(fA(rHc(di(this._injector,this.positionAtOrigin?a||this._elementRef:this._elementRef),"."+this._cssClassPrefix+"-tooltip"),!1),this._viewportMargin),d),"global");a.positionChanges.pipe(Af(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=ri(this._injector,{direction:this._dir,positionStrategy:a,panelClass:this._overlayPanelClass?[].concat(n(this._overlayPanelClass),[c]):c,scrollStrategy:this._injector.get(ZHc)(),disableAnimations:this._animationsDisabled,usePopover:!0});this._updatePosition(this._overlayRef);this._overlayRef._detachments.pipe(Af(this._destroyed)).subscribe(function(){return b._detach()});
this._overlayRef.outsidePointerEvents().pipe(Af(this._destroyed)).subscribe(function(){var f;return(f=b._tooltipInstance)==null?void 0:f._handleBodyInteraction()});this._overlayRef.keydownEvents().pipe(Af(this._destroyed)).subscribe(function(f){b._isTooltipVisible()&&f.keyCode===27&&!Nh(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(Af(this._destroyed)).subscribe(function(){b._overlayRef&&b._updatePosition(b._overlayRef)}));return this._overlayRef};h._detach=function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach();this._tooltipInstance=null};
h._updatePosition=function(a){a=a.getConfig().positionStrategy;var b=this._getOrigin(),c=this._getOverlayPosition();dA(a,[this._addOffset(Object.assign({},b.main,c.main)),this._addOffset(Object.assign({},b.fallback,c.fallback))])};h._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};
h._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}}};
h._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}}};
h._updateTooltipMessage=function(){var a=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),De(function(){a._tooltipInstance&&a._overlayRef.updatePosition()},{injector:this._injector}))};h._setTooltipClass=function(a){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=a,this._tooltipInstance._markForCheck())};
h._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}};
h._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}};
h._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))};
h._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,n(b))}};h._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,aIc)})};h._platformSupportsMouseEvents=function(){return!this._platform.IOS&&!this._platform.ANDROID};
h._wheelListener=function(a){if(this._isTooltipVisible()){a=this._injector.get(Yh).elementFromPoint(a.clientX,a.clientY);var b=this._elementRef.nativeElement;a===b||b.contains(a)||this.hide()}};
h._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"}};
h._syncAriaDescription=function(a){var b=this;this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,Gz(this._ariaDescriber,this._elementRef.nativeElement,a,"tooltip"),this._isDestroyed||De({write:function(){b._ariaDescriptionPending=!1;b.message&&!b.disabled&&Fz(b._ariaDescriber,b._elementRef.nativeElement,b.message,"tooltip")}},{injector:this._injector}))};
da.Object.defineProperties(MA.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=Sh(a);this._detach();this._overlayRef=null}},disabled:{configurable:!0,
enumerable:!0,get:function(){return this._disabled},set:function(a){a=Sh(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=Vh(a)}},hideDelay:{configurable:!0,enumerable:!0,get:function(){return this._hideDelay},set:function(a){this._hideDelay=Vh(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)}}});
MA.\u0275fac=function(a){return new (a||MA)};
MA.\u0275dir=af({type:MA,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(a,b){a&2&&yg("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 LA=function(){this._changeDetectorRef=q(Yx);this._elementRef=q(Gd);this._isMultiline=!1;this._animationsDisabled=ti();this._isVisible=this._closeOnInteraction=!1;this._onHide=new rf;this._showAnimation="mat-mdc-tooltip-show";this._hideAnimation="mat-mdc-tooltip-hide"};h=LA.prototype;
h.show=function(a){var b=this;this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=setTimeout(function(){b._toggleVisibility(!0);b._showTimeoutId=void 0},a)};h.hide=function(a){var b=this;this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId);this._hideTimeoutId=setTimeout(function(){b._toggleVisibility(!1);b._hideTimeoutId=void 0},a)};h.afterHidden=function(){return this._onHide};h.isVisible=function(){return this._isVisible};
h.ngOnDestroy=function(){this._cancelPendingAnimations();this._onHide.complete();this._triggerElement=null};h._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)};h._markForCheck=function(){this._changeDetectorRef.markForCheck()};h._handleMouseLeave=function(a){(a=a.relatedTarget)&&this._triggerElement.contains(a)||(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))};h._onShow=function(){this._isMultiline=this._isTooltipMultiline();this._markForCheck()};
h._isTooltipMultiline=function(){var a=this._elementRef.nativeElement.getBoundingClientRect();return a.height>24&&a.width>=200};h._handleAnimationEnd=function(a){a=a.animationName;a!==this._showAnimation&&a!==this._hideAnimation||this._finalizeAnimation(a===this._showAnimation)};h._cancelPendingAnimations=function(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId);this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=this._hideTimeoutId=void 0};
h._finalizeAnimation=function(a){a?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()};
h._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))};LA.\u0275fac=function(a){return new (a||LA)};
LA.\u0275cmp=C({type:LA,selectors:[["mat-tooltip-component"]],viewQuery:function(a,b){a&1&&kg(YHc,7);if(a&2){var c;og(c=pg())&&(b._tooltip=c.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(a,b){a&1&&N("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=t();K(0,"div",1,0);N("animationend",
function(d){u(c);return v(b._handleAnimationEnd(d))});K(2,"div",2);S(3);L()()}a&2&&(yg("mdc-tooltip--multiline",b._isMultiline),I("ngClass",b.tooltipClass),B(3),Ag(b.message))},dependencies:[hy],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(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-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 NA=function(){};NA.\u0275fac=function(a){return new (a||NA)};NA.\u0275mod=$e({type:NA});NA.\u0275inj=Dc({imports:[Dz,uA,jz,aA]});var OA=function(){this.label=Qg.required.apply(Qg,n([]));this.linkUrl=Qg.required.apply(Qg,n([]));this.iconUrl=Qg.apply(null,n([]));this.tooltip=Qg.apply(null,n([]));this.showRemoveButton=Qg.apply(null,n([]));this.removeContextSource=Pg()};OA.prototype.openLink=function(){var a=this.linkUrl();a&&(0,Lh.windowOpen)(window,Xqa(a.startsWith("http://")||a.startsWith("https://")?a:"http://"+a),"_blank")};OA.\u0275fac=function(a){return new (a||OA)};
OA.\u0275cmp=C({type:OA,selectors:[["link-chip"]],inputs:{label:[1,"label"],linkUrl:[1,"linkUrl"],iconUrl:[1,"iconUrl"],tooltip:[1,"tooltip"],showRemoveButton:[1,"showRemoveButton"]},outputs:{removeContextSource:"removeContextSource"},features:[Ig([{provide:$Hc,useValue:{showDelay:300,hideDelay:100,touchendHideDelay:100}}])],decls:7,vars:6,consts:[[1,"link-chip"],[1,"link-chip-button",3,"click","matTooltip"],[1,"flex-row","align-items-center"],["alt","Icon for chip",1,"padded-xs-left","link-chip-icon",
3,"src"],[1,"type-s","padded-xs","link-chip-label"],["mat-icon-button","",1,"link-chip-remove-button"],["mat-icon-button","",1,"link-chip-remove-button",3,"click"],[1,"link-chip-remove-icon"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"button",1),N("click",function(){return b.openLink()}),K(2,"div",2),F(3,Vsa,1,1,"img",3),K(4,"span",4),S(5),L()()(),F(6,Wsa,3,0,"button",5),L());a&2&&(yg("link-chip-with-remove-button",b.showRemoveButton()),B(),I("matTooltip",b.tooltip()),B(2),G(b.iconUrl()?3:-1),
B(2),Ag(b.label()),B(),G(b.showRemoveButton()?6:-1))},dependencies:[xy,NA,MA,kz,iz],styles:['.link-chip[_ngcontent-%COMP%]{background-color:var(--page-bg);border:1px solid var(--hairline);border-radius:calc(var(--base-px, 1rem)*28);height:calc(var(--base-px, 1rem)*28);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;gap:0}.link-chip[_ngcontent-%COMP%]   .link-chip-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;gap:0;padding:0 calc(var(--base-px, 1rem)*2);border:none;background-color:transparent;border-radius:calc(var(--base-px, 1rem)*28)}.link-chip[_ngcontent-%COMP%]   .link-chip-button[_ngcontent-%COMP%]   .link-chip-label[_ngcontent-%COMP%]{font-size:1em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:Google Sans;font-weight:500}.link-chip[_ngcontent-%COMP%]   .link-chip-button[_ngcontent-%COMP%]   .link-chip-icon[_ngcontent-%COMP%]{width:16px;height:16px}.link-chip.link-chip-with-remove-button[_ngcontent-%COMP%]   .link-chip-button[_ngcontent-%COMP%]{border-radius:calc(var(--base-px, 1rem)*28) 0 0 calc(var(--base-px, 1rem)*28)}.link-chip[_ngcontent-%COMP%]   .link-chip-remove-button[_ngcontent-%COMP%]{background-color:transparent;color:var(--icon);border:none;height:calc(var(--base-px, 1rem)*28);width:calc(var(--base-px, 1rem)*28);padding:0;margin:0;border-radius:0 calc(var(--base-px, 1rem)*28) calc(var(--base-px, 1rem)*28) 0}.link-chip[_ngcontent-%COMP%]   .link-chip-remove-button[_ngcontent-%COMP%]   .link-chip-remove-icon[_ngcontent-%COMP%]{font-size:calc(var(--base-px, 1rem)*20);height:calc(var(--base-px, 1rem)*20);width:calc(var(--base-px, 1rem)*20)}.link-chip[_ngcontent-%COMP%]   .link-chip-button[_ngcontent-%COMP%], .link-chip[_ngcontent-%COMP%]   .link-chip-remove-button[_ngcontent-%COMP%]{position:relative}.link-chip[_ngcontent-%COMP%]   .link-chip-button[_ngcontent-%COMP%]:hover, .link-chip[_ngcontent-%COMP%]   .link-chip-remove-button[_ngcontent-%COMP%]:hover{background-color:var(--hover)}.link-chip[_ngcontent-%COMP%]   .link-chip-button[_ngcontent-%COMP%]:after, .link-chip[_ngcontent-%COMP%]   .link-chip-remove-button[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:calc(var(--base-px, 1rem)*-10) 0}'],
changeDetection:0});var PA=function(){};PA.\u0275fac=function(a){return new (a||PA)};PA.\u0275prov=Cc({token:PA,factory:PA.\u0275fac,providedIn:"root"});var bIc={USER_PROVIDED_CONTEXT_LINK_TYPE_UNSPECIFIED:0,USER_PROVIDED_CONTEXT_LINK_TYPE_CRITIQUE:1,USER_PROVIDED_CONTEXT_LINK_TYPE_G3DOC:2,USER_PROVIDED_CONTEXT_LINK_TYPE_CODESEARCH:3,USER_PROVIDED_CONTEXT_LINK_TYPE_BUGANIZER:4,USER_PROVIDED_CONTEXT_LINK_TYPE_SNIPIT_SCREENSHOT:5,USER_PROVIDED_CONTEXT_LINK_TYPE_DRIVE:6,USER_PROVIDED_CONTEXT_LINK_TYPE_YAQS:7,USER_PROVIDED_CONTEXT_LINK_TYPE_IRM:8,USER_PROVIDED_CONTEXT_LINK_TYPE_GO_LINK:9,USER_PROVIDED_CONTEXT_LINK_TYPE_GERRIT:10,USER_PROVIDED_CONTEXT_LINK_TYPE_DUCKIE_SKILL:11,
USER_PROVIDED_CONTEXT_LINK_TYPE_ELDAR:12};var cIc=/(?:^|\b)(?:https?:\/\/)?(?:cr|critique|cl)(?:\.corp\.google\.com)?(?:\/cl)?\/([0-9]+)/gi,dIc=RegExp("(?<=^|\\s|\\()(((?:https://source\\.corp\\.google\\.com/piper///depot/google3/|https://cs\\.corp\\.google\\.com/piper///depot/google3/|(?:(?:https?:)?//)?cs/|(?:(?:https?:)?//)?codesearch/|//depot/google3/|http://google3/|google3/|depot/google3/)))([^\\s),)]+)","gi"),eIc=RegExp("(?<=^|\\s|\\()(((?:https://source\\.corp\\.google\\.com/piper///depot/google3/|https://cs\\.corp\\.google\\.com/piper///depot/google3/|https://source\\.corp\\.google\\.com/h/|https://cs\\.corp\\.google\\.com/h/|(?:(?:https?:)?//)?cs/h/|(?:(?:https?:)?//)?codesearch/h/|(?:(?:https?:)?//)?cs/|(?:(?:https?:)?//)?codesearch/|//depot/google3/|http://google3/|google3/|depot/google3/)))([^\\s),)]+)",
"gi"),fIc=new RegExp(/(?:^|\b)(?:https?:\/\/)?(g3doc(?:\.corp\.google\.com)?(?:\/[\S]+)*\/(?:[\S]+\.md))(?:[\?;#][\S]*[A-Za-z0-9]+)?/,"gi"),gIc=/(?:^|\b)(?:https?:\/\/)?(?:b|buganizer)(?:\.corp\.google\.com)?\/(?:issues\/)?([0-9]+)/gi,hIc=/(?:^|\b)(?:https?:\/\/)?(?:screen|screenshot)(?:\.corp\.google\.com)?(?:\.googleplex\.com)?\/([0-9A-Za-z]+)/gi,iIc=/(?:^|\b)(?:https?:\/\/)?(?:yaqs)(?:\.corp\.google\.com)?\/eng\/q\/([0-9]+)/gi,jIc=/(?:^|\b)(?:https?:\/\/)?(?:docs|drive)(?:\.google\.com)?\/(?:(?:(?:document|spreadsheets|presentation|file)\/d\/)|(?:(?:corp\/drive\/)?folders\/))[0-9A-Za-z-_]+[^\s)]*/gi,
kIc=/(?:^|\b)(?:https?:\/\/)?(?:omg|irm)(?:\.corp\.google\.com)?\/(?:signals\/|incidents\/|triage\/from-am-incident\/)?([0-9]+|i_[A-Za-z0-9_-]+|s_[A-Za-z0-9_-]+)(?:\/[\S]+)?/gi,lIc=/(?:^|\b)(?:https?:\/\/)?go\/([^\s,)]*[^\s,."')?!;:\[\]{}\n])/gi,mIc=/(?:^|\b)((https?:\/\/)?(?:([\w-]+)-)?review\.(?:googlesource\.com|git\.corp\.google\.com)\/c\/.+?\/\+\/([0-9]+))/gi,nIc={chromium:"crrev","googleplex-android":"ag"},oIc=/(?:^|\b)(?:https?:\/\/)?(?:eldar)(?:\.corp\.google\.com)?\/(?:assessments\/)?([0-9]+(?:\/(?:revisions|drafts)\/[0-9]+)?)/gi,
pIc=/([^/;\s]+)\/?(?:;|\\s|$)/,qIc=/\/\d{3,}/,rIc=/([^/\\]+\.md)/,sIc=/(?:(?:\/d\/)|(?:folders\/))([A-Za-z0-9_-]+?)(?:[\/?#]|$)/i,tIc=/go\/[^\s),)]+/i,uIc=[1,3,2,4,5,7,6,8,9,10,12],QA=function(){this.experimentsService=q(PA);this.userContextServiceErrorInternal$=new Xj(null);this.userContextServiceError$=this.userContextServiceErrorInternal$.pipe(wf({bufferSize:1,refCount:!0}));this.suggestedUserProvidedContextContentInternal$=new Xj([]);this.suggestedUserProvidedContextContent$=this.suggestedUserProvidedContextContentInternal$.pipe(wf({bufferSize:1,
refCount:!0}));this.ignoredSuggestedUserProvidedContextSources=[]},vIc=function(a,b){a.suggestedUserProvidedContextContentInternal$.next(a.suggestedUserProvidedContextContentInternal$.value.filter(function(c){c.fullUrl===b&&a.ignoredSuggestedUserProvidedContextSources.push(c);return c.fullUrl!==b}))},wIc=function(a){a.suggestedUserProvidedContextContentInternal$.next([]);a.ignoredSuggestedUserProvidedContextSources=[]},xIc=function(a){return a?nIc[a]||a:"gerrit"},zIc=function(a,b,c,d){var e=[];d=
d!=null?d:uIc;var f=[];d.includes(1)&&[].concat(n(b.matchAll(cIc))).forEach(function(R){var V,ba=(V=R[0])==null?void 0:V.match(qIc);ba&&f.push({label:c?"cl"+ba[0]:ba[0].substring(1),index:R.index,imgSrc:Xsa(),imgAlt:"Critique logo",source:1,fullUrl:R[0]})});var g=[];d.includes(3)&&[].concat(n(b.matchAll(a.experimentsService.userProvidedContextGobEnabled?eIc:dIc))).forEach(function(R){var V=R[0].slice(-1)==="."?R[0].slice(0,-1):R[0],ba=R[R.length-1],pa=ba.slice(-1)==="."?ba.slice(0,-1):ba;c&&(pa="cs/"+
(V==null?void 0:V.match(pIc))[1]);ba=g.push;for(var ua=pa.length,ma=l([";","?"]),Da=ma.next();!Da.done;Da=ma.next())Da=pa.indexOf(Da.value),Da!==-1&&Da<ua&&(ua=Da);ba.call(g,{label:pa.substring(0,ua),index:R.index,imgSrc:Ysa(),imgAlt:RA(3),source:3,fullUrl:V})});var k=[];d.includes(2)&&[].concat(n(b.matchAll(fIc))).forEach(function(R){var V,ba=(V=R[1])==null?void 0:V.match(rIc);V=R[1];k.push({label:c&&ba?"g3doc/"+ba[0]:V,index:R.index,imgSrc:Zsa(),imgAlt:RA(2),source:2,fullUrl:R[0]})});var m=[];d.includes(4)&&
[].concat(n(b.matchAll(gIc))).forEach(function(R){m.push({label:c?"b/"+R[1]:R[1],index:R.index,imgSrc:$sa(),imgAlt:RA(4),source:4,fullUrl:R[0]})});var r=[];a.experimentsService.screenshotLinkFollowingEnabled&&d.includes(5)&&[].concat(n(b.matchAll(hIc))).forEach(function(R){r.push({label:c?"screen/"+R[1]:R[1],index:R.index,imgSrc:ata(),imgAlt:RA(5),source:5,fullUrl:R[0]})});var w=[];a.experimentsService.userProvidedContextYaqsEnabled&&d.includes(7)&&[].concat(n(b.matchAll(iIc))).forEach(function(R){w.push({label:c?
"yaqs/"+R[1]:R[0],index:R.index,imgSrc:bta(),imgAlt:RA(7),source:7,fullUrl:R[0]})});var x=[];a.experimentsService.userProvidedContextDriveEnabled&&d.includes(6)&&[].concat(n(b.matchAll(jIc))).forEach(function(R){var V=R[0].match(sIc),ba=yIc(R[0]);x.push({label:c&&V&&V.length>1?ba.prefix+V[1].slice(-5):R[0],index:R.index,imgSrc:ba.logoSource,imgAlt:RA(6),source:6,fullUrl:R[0]})});var D=[];a.experimentsService.userProvidedContextIrmEnabled&&d.includes(8)&&[].concat(n(b.matchAll(kIc))).forEach(function(R){D.push({label:c?
"irm/"+R[1]:R[0],index:R.index,imgSrc:"https://www.gstatic.com/uif/product_icons/irm.svg",imgAlt:RA(8),source:8,fullUrl:R[0]})});var H=[];a.experimentsService.userProvidedContextGoLinkEnabled&&d.includes(9)&&[].concat(n(b.matchAll(lIc))).forEach(function(R){var V,ba=(V=R[0])==null?void 0:V.match(tIc);H.push({label:c&&ba?ba[0]:R[0],index:R.index,imgSrc:cta(),imgAlt:RA(9),source:9,fullUrl:R[0]})});var J=[];a.experimentsService.userProvidedContextGerritEnabled&&d.includes(10)&&[].concat(n(b.matchAll(mIc))).forEach(function(R){var V=
R[1],ba=xIc(R[3]),pa=R[4];J.push({label:c?ba+"/"+pa:V,index:R.index,imgSrc:dta(),imgAlt:RA(10),source:10,fullUrl:V})});var O=[];a.experimentsService.userProvidedContextEldarEnabled&&d.includes(12)&&[].concat(n(b.matchAll(oIc))).forEach(function(R){O.push({label:c?"eldar/"+R[1]:R[0],index:R.index,imgSrc:eta(),imgAlt:RA(12),source:12,fullUrl:R[0]})});b=[].concat(n(f),n(g),n(k),n(m),n(r),n(w),n(x),n(D),n(H),n(J),n(O)).filter(function(R){return!a.ignoredSuggestedUserProvidedContextSources.some(function(V){return V.fullUrl===
R.fullUrl})});if(b.length>20)a.userContextServiceErrorInternal$.next("Warning: link following is disabled because the maximum number of links (20) has been exceeded");else for(a.userContextServiceErrorInternal$.next(null),b.sort(function(R,V){return R.index-V.index}),b=l(b),d=b.next();!d.done;d=b.next())d=d.value,e.push({imgSrc:d.imgSrc,imgAlt:d.imgAlt,label:d.label,source:d.source,fullUrl:d.fullUrl});return e},yIc=function(a){a=a.toLowerCase();return a.includes("document")?{logoSource:"https://www.gstatic.com/images/branding/productlogos/docs/v7/192px.svg",
prefix:"docs/..."}:a.includes("presentation")?{logoSource:"https://www.gstatic.com/images/branding/productlogos/slides/v7/192px.svg",prefix:"slides/..."}:a.includes("spreadsheets")?{logoSource:"https://www.gstatic.com/images/branding/productlogos/sheets/v7/192px.svg",prefix:"sheets/..."}:{logoSource:"https://www.gstatic.com/images/branding/productlogos/drive_2020q4/v10/192px.svg",prefix:"drive/..."}},CIc=function(a){var b=[],c=[];a.messages.forEach(function(e){var f;(f=e.userProvidedContext)==null||
f.forEach(function(g){var k=g.getType(),m=g.getUrl();g=Fi(g,3);c.findIndex(function(r){return r.source===k&&r.url===m})===-1&&c.push({label:AIc(k,m),imgSrc:BIc(k,m),imgAlt:RA(k),source:k,url:m,fullUrl:g})})});a=l(c);for(var d=a.next();!d.done;d=a.next())d=d.value,b.push({imgSrc:d.imgSrc,imgAlt:d.imgAlt,label:d.label,source:d.source,fullUrl:d.fullUrl});return b},AIc=function(a,b){switch(a){case 1:return"cl/"+b;case 2:var c=b.match(rIc);return"g3doc/"+(c?c[0]:b);case 3:return c=b.match(pIc),"cs/"+(c?
c[0]:b);case 4:return"b/"+b;case 5:return"screen/"+b;case 9:return(c=b.match(tIc))?c[0]:"go/"+b;case 6:return a=(a=b.match(sIc))?(c=a[1])==null?void 0:c.slice(-5):b.slice(-5),yIc(b).prefix+a;case 10:return(c=b.match(new RegExp(mIc.source,"i")))?xIc(c[3])+"/"+c[4]:b;case 12:return"eldar/"+b;default:return b}},BIc=function(a,b){switch(a){case 1:return Xsa();case 2:return Zsa();case 3:return Ysa();case 4:return $sa();case 5:return ata();case 7:return bta();case 9:return cta();case 6:return yIc(b).logoSource;
case 10:return dta();case 12:return eta();default:return""}},RA=function(a){switch(a){case 1:return"Critique logo";case 2:return"G3Doc logo";case 3:return"CodeSearch logo";case 4:return"Buganizer logo";case 5:return"SnipIt Screenshot logo";case 7:return"YAQS logo";case 9:return"Go Link logo";case 6:return"Drive logo";case 8:return"IRM logo";case 10:return"Gerrit logo";case 12:return"Eldar logo";default:return""}};QA.\u0275fac=function(a){return new (a||QA)};
QA.\u0275prov=Cc({token:QA,factory:QA.\u0275fac,providedIn:"root"});var DIc=new bd("GM2_BUTTON_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var EIc=new bd("MAT_BUTTON_CONFIG"),SA=function(){this._elementRef=q(Gd);this._ngZone=q(Tg);this._animationsDisabled=ti();this._config=q(EIc,{optional:!0});this._focusMonitor=q(mz);this._renderer=q(ji);this._rippleLoader=q(KA);this._disabled=this._disableRipple=this._isFab=!1;q(fi).load(BA);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||XHc(f,a,{className:"mat-mdc-button-ripple"})};h=SA.prototype;h.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0);this._isAnchor&&this._setupAsAnchor()};h.ngOnDestroy=function(){var a;(a=this._cleanupClick)==null||a.call(this);this._focusMonitor.stopMonitoring(this._elementRef);var b;(b=this._rippleLoader)==null||WHc(b,this._elementRef.nativeElement)};
h.focus=function(a,b){(a=a===void 0?"program":a)?nz(this._focusMonitor,this._elementRef.nativeElement,a,b):this._elementRef.nativeElement.focus(b)};h._getAriaDisabled=function(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?!0:null};h._getDisabledAttribute=function(){return this.disabledInteractive||!this.disabled?null:!0};
h._updateRippleDisabled=function(){var a;(a=this._rippleLoader)==null||a.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)};h._getTabIndex=function(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex};h._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())})})};
da.Object.defineProperties(SA.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}}});SA.\u0275fac=function(a){return new (a||SA)};
SA.\u0275dir=af({type:SA,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(a,b){a&2&&(Jf("disabled",b._getDisabledAttribute())("aria-disabled",b._getAriaDisabled())("tabindex",b._getTabIndex()),zg(b.color?"mat-"+b.color:""),yg("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",bh],disabled:[2,
"disabled","disabled",bh],ariaDisabled:[2,"aria-disabled","ariaDisabled",bh],disabledInteractive:[2,"disabledInteractive","disabledInteractive",bh],tabIndex:[2,"tabIndex","tabIndex",fta],_tabindex:[2,"tabindex","_tabindex",fta]}});var FIc=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],GIc=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"]]]),TA=function(){SA.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)&&HIc(this,a)};Z(TA,SA);TA.\u0275dir=SA.\u0275dir;
var HIc=function(a,b){if(b!==a._appearance){var c=a._elementRef.nativeElement.classList,d=a._appearance?GIc.get(a._appearance):null,e=GIc.get(b);d&&c.remove.apply(c,n(d));c.add.apply(c,n(e));a._appearance=b}};da.Object.defineProperties(TA.prototype,{appearance:{configurable:!0,enumerable:!0,get:function(){return this._appearance},set:function(a){var b;HIc(this,a||((b=this._config)==null?void 0:b.defaultAppearance)||"text")}}});TA.\u0275fac=function(a){return new (a||TA)};
TA.\u0275cmp=C({type:TA,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:[Ff],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&&(fg(FIc),Uf(0,"span",0),gg(1),Sf(2,"span",1),gg(3,1),Tf(),gg(4,2),Uf(5,"span",2)(6,"span",3));a&2&&yg("mdc-button__ripple",!b._isFab)("mdc-fab__ripple",b._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mat-mdc-button-base .mat-icon{min-height:fit-content;flex-shrink:0}@media(hover: none){.mat-mdc-button-base:hover>span.mat-mdc-button-persistent-ripple::before{opacity:0}}.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-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-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(--mat-button-text-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-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-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-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-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-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-text-touch-target-size, 48px);display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-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-button-filled-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-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-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-button-filled-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-button-filled-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:var(--mat-button-filled-touch-target-size, 48px);display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-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(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-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(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-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-button-protected-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-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-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-button-protected-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-button-protected-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:var(--mat-button-protected-touch-target-size, 48px);display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}@media(hover: hover){.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-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(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-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(--mat-button-protected-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(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-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-button-outlined-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-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-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-button-outlined-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-button-outlined-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:var(--mat-button-outlined-touch-target-size, 48px);display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-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(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-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-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-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-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-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-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-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-button-tonal-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-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-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-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-tonal-touch-target-size, 48px);display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.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;border-radius:inherit}.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:"";border-radius:inherit}.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 IIc=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],KIc=new bd("mat-mdc-fab-default-options",{providedIn:"root",factory:function(){return JIc}}),JIc={color:"accent"},UA=function(){SA.call(this);this._options=q(KIc,{optional:!0});this._isFab=!0;this._options=this._options||JIc;this.color=
this._options.color||JIc.color};Z(UA,SA);UA.\u0275dir=SA.\u0275dir;UA.\u0275fac=function(a){return new (a||UA)};
UA.\u0275cmp=C({type:UA,selectors:[["button","mat-fab",""],["a","mat-fab",""],["button","matFab",""],["a","matFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mat-mdc-fab"],hostVars:4,hostBindings:function(a,b){a&2&&yg("mdc-fab--extended",b.extended)("mat-mdc-extended-fab",b.extended)},inputs:{extended:[2,"extended","extended",bh]},exportAs:["matButton","matAnchor"],features:[Ff],attrs:["mat-fab",""],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&&(fg(IIc),Uf(0,"span",0),gg(1),Sf(2,"span",1),gg(3,1),Tf(),gg(4,2),Uf(5,"span",2)(6,"span",3));a&2&&yg("mdc-button__ripple",!b._isFab)("mdc-fab__ripple",b._isFab)},styles:['.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus>.mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::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}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mat-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-container-elevation-shadow, var(--mat-sys-level3))}@media(hover: hover){.mat-mdc-fab:hover{box-shadow:var(--mat-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}}.mat-mdc-fab:focus{box-shadow:var(--mat-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mat-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-touch-target-size, 48px);display:var(--mat-fab-touch-target-display, block);left:50%;width:var(--mat-fab-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mat-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-small-container-elevation-shadow, var(--mat-sys-level3))}@media(hover: hover){.mat-mdc-mini-fab:hover{box-shadow:var(--mat-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}}.mat-mdc-mini-fab:focus{box-shadow:var(--mat-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mat-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-small-touch-target-size, 48px);display:var(--mat-fab-small-touch-target-display);left:50%;width:var(--mat-fab-small-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mat-fab-extended-container-elevation-shadow, var(--mat-sys-level3));height:var(--mat-fab-extended-container-height, 56px);border-radius:var(--mat-fab-extended-container-shape, var(--mat-sys-corner-large));font-family:var(--mat-fab-extended-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-fab-extended-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-fab-extended-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-fab-extended-label-text-tracking, var(--mat-sys-label-large-tracking))}@media(hover: hover){.mat-mdc-extended-fab:hover{box-shadow:var(--mat-fab-extended-hover-container-elevation-shadow, var(--mat-sys-level4))}}.mat-mdc-extended-fab:focus{box-shadow:var(--mat-fab-extended-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mat-fab-extended-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}\n'],
encapsulation:2,changeDetection:0});var VA=function(){SA.call(this);XHc(this._rippleLoader,this._elementRef.nativeElement,{centered:!0})};Z(VA,SA);VA.\u0275dir=SA.\u0275dir;VA.\u0275fac=function(a){return new (a||VA)};
VA.\u0275cmp=C({type:VA,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:[Ff],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&&(fg(),Uf(0,"span",0),
gg(1),Uf(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;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));flex-shrink:0;text-align:center;width:var(--mat-icon-button-state-layer-size, 40px);height:var(--mat-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);font-size:var(--mat-icon-button-icon-size, 24px);color:var(--mat-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;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.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:var(--mat-icon-button-touch-target-size, 48px);display:var(--mat-icon-button-touch-target-display, block);left:50%;width:var(--mat-icon-button-touch-target-size, 48px);transform:translate(-50%, -50%)}.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(--mat-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(--mat-icon-button-icon-size, 24px);height:var(--mat-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 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 WA=function(){};WA.\u0275fac=function(a){return new (a||WA)};WA.\u0275mod=$e({type:WA});WA.\u0275inj=Dc({imports:[HA,jz]});var XA=function(a,b){this.elementRef=a;this.options=b;if(b.disableGmatStyle)throw Error("eb");};XA.prototype.ngOnInit=function(){var a=this.elementRef.nativeElement;a.querySelector(".mat-icon, .material-icons")&&a.classList.add("gmat-mdc-button-with-prefix")};XA.\u0275fac=function(a){return new (a||XA)(Ve(Gd),Ve(DIc))};
XA.\u0275dir=af({type:XA,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",""],[""]],hostAttrs:[1,"gmat-mdc-button"],standalone:!1});
var YA=function(a,b){this.options=a;this.button=b;this.appearance="outline";this.loweredInternal=!1;if(a.disableGmatStyle)throw Error("eb");};YA.prototype.ngOnInit=function(){};da.Object.defineProperties(YA.prototype,{lowered:{configurable:!0,enumerable:!0,get:function(){return this.loweredInternal},set:function(a){this.loweredInternal=Sh(a)}}});YA.\u0275fac=function(a){return new (a||YA)(Ve(DIc),Ve(UA,10))};
YA.\u0275dir=af({type:YA,selectors:[["button","matFab",""],["a","matFab",""],["button","mat-fab",""],["a","mat-fab",""],["button","matMiniFab",""],["a","matMiniFab",""],["button","mat-mini-fab",""],["a","mat-mini-fab",""]],hostAttrs:[1,"gmat-mdc-button"],hostVars:8,hostBindings:function(a,b){a&2&&yg("gmat-mdc-fab-fill",b.appearance=="fill")("gmat-mdc-fab-outline",b.appearance=="outline")("gmat-mdc-fab-branded",b.appearance=="branded")("gmat-mdc-fab-lowered",b.lowered)},inputs:{appearance:"appearance",
lowered:"lowered"},standalone:!1});var ZA=function(){};ZA.\u0275fac=function(a){return new (a||ZA)};ZA.\u0275mod=$e({type:ZA});ZA.\u0275inj=Dc({providers:[{provide:KIc,useValue:{color:"primary"}}],imports:[WA]});var LIc=new bd("GM2_DIALOG_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var MIc=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 NIc=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 $A=function(){this._isDisposed=!1;this._elementRef=q(Gd);this._focusTrapFactory=q(tz);this._interactivityChecker=q(pz);this._ngZone=q(Tg);this._focusMonitor=q(mz);this._renderer=q(ji);this._changeDetectorRef=q(Yx);this._injector=q(xe);this._platform=q(bi);this._document=q(Yh);this._focusTrapped=new rf;this._closeInteractionType=this._elementFocusedBeforeDialogWasOpened=this._focusTrap=null;this._ariaLabelledByQueue=[];this._isDestroyed=!1;this._config=q(NIc,{optional:!0})||new NIc;this._config.ariaLabelledBy&&
this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)};Z($A,nA);h=$A.prototype;h._addAriaLabelledBy=function(a){this._ariaLabelledByQueue.push(a);this._changeDetectorRef.markForCheck()};h._removeAriaLabelledBy=function(a){a=this._ariaLabelledByQueue.indexOf(a);a>-1&&(this._ariaLabelledByQueue.splice(a,1),this._changeDetectorRef.markForCheck())};h._contentAttached=function(){this._initializeFocusTrap();this._captureInitialFocus()};h._captureInitialFocus=function(){this._trapFocus()};
h.ngOnDestroy=function(){this._focusTrapped.complete();this._isDestroyed=!0;this._restoreFocus()};h.attachComponentPortal=function(a){a=this._portalOutlet.attachComponentPortal(a);this._contentAttached();return a};h.attachTemplatePortal=function(a){a=this._portalOutlet.attachTemplatePortal(a);this._contentAttached();return a};h._recaptureFocus=function(){this._containsFocus()||this._trapFocus()};
h._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)};h._focusByCssSelector=function(a,b){(a=this._elementRef.nativeElement.querySelector(a))&&this._forceFocus(a,b)};
h._trapFocus=function(a){var b=this;this._isDestroyed||De(function(){var c=b._elementRef.nativeElement;switch(b._config.autoFocus){case !1:case "dialog":b._containsFocus()||c.focus(a);break;case !0:case "first-tabbable":var d;((d=b._focusTrap)==null?0:d.focusInitialElement(a))||b._focusDialogContainer(a);break;case "first-heading":b._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',a);break;default:b._focusByCssSelector(b._config.autoFocus,a)}b._focusTrapped.next()},{injector:this._injector})};
h._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=Ph();var c=this._elementRef.nativeElement;if(!a||a===this._document.body||a===c||c.contains(a))this._focusMonitor?(nz(this._focusMonitor,b,this._closeInteractionType),this._closeInteractionType=null):b.focus()}this._focusTrap&&this._focusTrap.destroy()};
h._focusDialogContainer=function(a){var b,c;(c=(b=this._elementRef.nativeElement).focus)==null||c.call(b,a)};h._containsFocus=function(){var a=this._elementRef.nativeElement,b=Ph();return a===b||a.contains(b)};h._initializeFocusTrap=function(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Ph()))};$A.\u0275fac=function(a){return new (a||$A)};
$A.\u0275cmp=C({type:$A,selectors:[["cdk-dialog-container"]],viewQuery:function(a,b){a&1&&kg(pA,7);if(a&2){var c;og(c=pg())&&(b._portalOutlet=c.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(a,b){a&2&&Jf("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:[Ff],
decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(a){a&1&&E(0,gta,0,0,"ng-template",0)},dependencies:[pA],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}\n"],encapsulation:2});var OIc=new bd("DialogScrollStrategy",{providedIn:"root",factory:function(){var a=q(xe);return function(){return Dsa(a)}}}),PIc=new bd("DialogData"),QIc=new bd("DefaultDialogConfig");var RIc=function(a,b){var c=this;this.overlayRef=a;this.config=b;this.closed=new rf;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||Nh(d)||(d.preventDefault(),c.close(void 0,{focusOrigin:"keyboard"}))});this.backdropClick.subscribe(function(){if(!c.disableClose&&c._canClose())c.close(void 0,{focusOrigin:"mouse"});
else{var d,e;(e=(d=c.containerInstance)._recaptureFocus)==null||e.call(d)}});this._detachSubscription=a._detachments.subscribe(function(){b.closeOnOverlayDetachments!==!1&&c.close()})};h=RIc.prototype;h.close=function(a,b){if(this._canClose(a)){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}};
h.updatePosition=function(){this.overlayRef.updatePosition()};h.updateSize=function(a,b){this.overlayRef.updateSize({width:a===void 0?"":a,height:b===void 0?"":b})};h.addPanelClass=function(a){this.overlayRef.addPanelClass(a)};h.removePanelClass=function(a){this.overlayRef.removePanelClass(a)};h._canClose=function(a){var b=this.config;return!!this.containerInstance&&(!b.closePredicate||b.closePredicate(a,b,this.componentInstance))};var aB=function(){this._injector=q(xe);this._defaultOptions=q(QIc,{optional:!0});this._parentDialog=q(aB,{optional:!0,skipSelf:!0});this._overlayContainer=q(ci);this._idGenerator=q(hi);this._openDialogsAtThisLevel=[];this._afterAllClosedAtThisLevel=new rf;this._afterOpenedAtThisLevel=new rf;this._ariaHiddenElements=new Map;this._scrollStrategy=q(OIc)};h=aB.prototype;
h.open=function(a,b){var c=this;b=Object.assign({},this._defaultOptions||new NIc,b);b.id=b.id||this._idGenerator.getId("cdk-dialog-");b.id&&this.getDialogById(b.id);var d=this._getOverlayConfig(b);d=ri(this._injector,d);var e=new RIc(d,b);d=this._attachContainer(d,e,b);e.containerInstance=d;if(!this.openDialogs.length){var f=Lsa(this._overlayContainer);d._focusTrapped?d._focusTrapped.pipe(mf(1)).subscribe(function(){c._hideNonDialogContentFromAssistiveTechnology(f)}):this._hideNonDialogContentFromAssistiveTechnology(f)}this._attachDialogContent(a,
e,d,b);this.openDialogs.push(e);e.closed.subscribe(function(){return c._removeOpenDialog(e,!0)});this.afterOpened.next(e);return e};h.closeAll=function(){ita(this.openDialogs,function(a){return a.close()})};h.getDialogById=function(a){this.openDialogs.find(function(b){return b.id===a})};
h.ngOnDestroy=function(){var a=this;ita(this._openDialogsAtThisLevel,function(b){b.config.closeOnDestroy===!1&&a._removeOpenDialog(b,!1)});ita(this._openDialogsAtThisLevel,function(b){return b.close()});this._afterAllClosedAtThisLevel.complete();this._afterOpenedAtThisLevel.complete();this._openDialogsAtThisLevel=[]};
h._getOverlayConfig=function(a){var b=new ki({positionStrategy:a.positionStrategy||tHc(hA(new gA)),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};
h._attachContainer=function(a,b,c){var d,e=c.injector||((d=c.viewContainerRef)==null?void 0:d.injector);b=[{provide:NIc,useValue:c},{provide:RIc,useValue:b},{provide:li,useValue:a}];c.container?typeof c.container==="function"?d=c.container:(d=c.container.type,b.push.apply(b,n(c.container.providers(c)))):d=$A;c=new lA(d,c.viewContainerRef,$g({parent:e||this._injector,providers:b}));return a.attach(c).instance};
h._attachDialogContent=function(a,b,c,d){if(a instanceof hg){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 mA(a,null,b,e))}else e=this._createInjector(d,b,c,this._injector),a=c.attachComponentPortal(new lA(a,d.viewContainerRef,e)),b.componentRef=a,b.componentInstance=a.instance};
h._createInjector=function(a,b,c,d){var e,f=a.injector||((e=a.viewContainerRef)==null?void 0:e.injector);e=[{provide:PIc,useValue:a.data},{provide:RIc,useValue:b}];a.providers&&(typeof a.providers==="function"?e.push.apply(e,n(a.providers(b,a,c))):e.push.apply(e,n(a.providers)));!a.direction||f&&f.get(ii,null,{optional:!0})||e.push({provide:ii,useValue:hta(a.direction)});return $g({parent:f||d,providers:e})};
h._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()))};
h._hideNonDialogContentFromAssistiveTechnology=function(a){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")||d.hasAttribute("popover")||(this._ariaHiddenElements.set(d,d.getAttribute("aria-hidden")),d.setAttribute("aria-hidden","true"))}};h._getAfterAllClosed=function(){var a=this._parentDialog;return a?a._getAfterAllClosed():this._afterAllClosedAtThisLevel};
da.Object.defineProperties(aB.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}}});aB.\u0275fac=function(a){return new (a||aB)};aB.\u0275prov=Cc({token:aB,factory:aB.\u0275fac,providedIn:"root"});var bB=function(){};bB.\u0275fac=function(a){return new (a||bB)};bB.\u0275mod=$e({type:bB});bB.\u0275inj=Dc({providers:[aB],imports:[uA,qA,Dz,qA]});var cB=function(){$A.apply(this,arguments);var a=this;this._animationStateChanged=new ui;this._animationsEnabled=!ti();this._actionSectionCount=0;this._hostElement=this._elementRef.nativeElement;var b;this._enterAnimationDuration=this._animationsEnabled?(b=kta(this._config.enterAnimationDuration))!=null?b:150:0;var c;this._exitAnimationDuration=this._animationsEnabled?(c=kta(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})}};Z(cB,$A);h=cB.prototype;h._contentAttached=function(){$A.prototype._contentAttached.call(this);this._startOpenAnimation()};
h._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()}))};
h._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()})};h._updateActionSectionCount=function(a){this._actionSectionCount+=a;this._changeDetectorRef.markForCheck()};h._clearAnimationClasses=function(){this._hostElement.classList.remove("mdc-dialog--opening","mdc-dialog--closing")};h._waitForAnimationToComplete=function(a,b){this._animationTimer!==null&&clearTimeout(this._animationTimer);this._animationTimer=setTimeout(b,a)};
h._requestAnimationFrame=function(a){this._ngZone.runOutsideAngular(function(){typeof requestAnimationFrame==="function"?requestAnimationFrame(a):a()})};h._captureInitialFocus=function(){this._config.delayFocusTrap||this._trapFocus()};h._openAnimationDone=function(a){this._config.delayFocusTrap&&this._trapFocus();this._animationStateChanged.next({state:"opened",totalTime:a})};h.ngOnDestroy=function(){$A.prototype.ngOnDestroy.call(this);this._animationTimer!==null&&clearTimeout(this._animationTimer)};
h.attachComponentPortal=function(a){a=$A.prototype.attachComponentPortal.call(this,a);a.location.nativeElement.classList.add("mat-mdc-dialog-component-host");return a};cB.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(cB)))(b||cB)}}();
cB.\u0275cmp=C({type:cB,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(a,b){a&2&&(Rf("id",b._config.id),Jf("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),yg("_mat-animation-noopable",!b._animationsEnabled)("mat-mdc-dialog-container-with-actions",
b._actionSectionCount>0))},features:[Ff],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&&(K(0,"div",0)(1,"div",1),E(2,jta,0,0,"ng-template",2),L()())},dependencies:[pA],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(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-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(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-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(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-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;box-sizing:border-box;min-height:52px;margin:0;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 dB=function(a,b,c){var d=this;this._ref=a;this._config=b;this._containerInstance=c;this._afterOpened=new vf(1);this._beforeClosed=new vf(1);this._state=0;this.disableClose=b.disableClose;this.id=a.id;a.addPanelClass("mat-mdc-dialog-panel");c._animationStateChanged.pipe(te(function(e){return e.state==="opened"}),mf(1)).subscribe(function(){d._afterOpened.next();d._afterOpened.complete()});c._animationStateChanged.pipe(te(function(e){return e.state==="closed"}),mf(1)).subscribe(function(){clearTimeout(d._closeFallbackTimeout);
d._finishDialogClose()});a.overlayRef._detachments.subscribe(function(){d._beforeClosed.next(d._result);d._beforeClosed.complete();d._finishDialogClose()});se(this.backdropClick(),this.keydownEvents().pipe(te(function(e){return e.keyCode===27&&!d.disableClose&&!Nh(e)}))).subscribe(function(e){d.disableClose||(e.preventDefault(),d._closeInteractionType=e.type==="keydown"?"keyboard":"mouse",d.close(void 0))})};
dB.prototype.close=function(a){var b=this,c=this._config.closePredicate;if(!c||c(a,this._config,this.componentInstance))this._result=a,this._containerInstance._animationStateChanged.pipe(te(function(d){return d.state==="closing"}),mf(1)).subscribe(function(d){b._beforeClosed.next(a);b._beforeClosed.complete();iHc(b._ref.overlayRef);b._closeFallbackTimeout=setTimeout(function(){return b._finishDialogClose()},d.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()};
dB.prototype.afterOpened=function(){return this._afterOpened};var eB=function(a){return a._ref.closed};h=dB.prototype;h.backdropClick=function(){return this._ref.backdropClick};h.keydownEvents=function(){return this._ref.keydownEvents};h.updatePosition=function(a){var b=this._ref.config.positionStrategy;a&&(a.left||a.right)?a.left?b.left(a.left):b.right(a.right):hA(b);a&&(a.top||a.bottom)?a.top?b.top(a.top):b.bottom(a.bottom):tHc(b);this._ref.updatePosition()};
h.updateSize=function(a,b){this._ref.updateSize(a===void 0?"":a,b===void 0?"":b)};h.addPanelClass=function(a){this._ref.addPanelClass(a)};h.removePanelClass=function(a){this._ref.removePanelClass(a)};h.getState=function(){return this._state};h._finishDialogClose=function(){this._state=2;this._ref.close(this._result,{focusOrigin:this._closeInteractionType});this.componentInstance=null};var fB=new bd("MatMdcDialogData"),SIc=new bd("mat-mdc-dialog-default-options"),TIc=new bd("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:function(){var a=q(xe);return function(){return Dsa(a)}}}),gB=function(){this._defaultOptions=q(SIc,{optional:!0});this._scrollStrategy=q(TIc);this._parentDialog=q(gB,{optional:!0,skipSelf:!0});this._idGenerator=q(hi);this._injector=q(xe);this._dialog=q(aB);this._animationsDisabled=ti();this._openDialogsAtThisLevel=[];this._afterAllClosedAtThisLevel=
new rf;this._afterOpenedAtThisLevel=new rf;this.dialogConfigClass=MIc;this._dialogRefConstructor=dB;this._dialogContainerType=cB;this._dialogDataToken=fB};h=gB.prototype;h._getAfterAllClosed=function(){var a=this._parentDialog;return a?a._getAfterAllClosed():this._afterAllClosedAtThisLevel};
h.open=function(a,b){var c=this,d;b=Object.assign({},this._defaultOptions||new MIc,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:tHc(hA(new gA)),disableClose:!0,closePredicate:void 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:NIc,useValue:b}]}},templateContext:function(){return{dialogRef:d}},providers:function(g,k,m){d=new c._dialogRefConstructor(g,b,m);var r;d.updatePosition((r=b)==null?void 0:r.position);return[{provide:c._dialogContainerType,useValue:m},{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);eB(d).subscribe(function(){var g=c.openDialogs.indexOf(d);g>-1&&(c.openDialogs.splice(g,1),c.openDialogs.length||c._getAfterAllClosed().next())});return d};h.closeAll=function(){this._closeDialogs(this.openDialogs)};h.getDialogById=function(a){this.openDialogs.find(function(b){return b.id===a})};
h.ngOnDestroy=function(){this._closeDialogs(this._openDialogsAtThisLevel);this._afterAllClosedAtThisLevel.complete();this._afterOpenedAtThisLevel.complete()};h._closeDialogs=function(a){for(var b=a.length;b--;)a[b].close()};
da.Object.defineProperties(gB.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}}});gB.\u0275fac=function(a){return new (a||gB)};gB.\u0275prov=Cc({token:gB,factory:gB.\u0275fac,providedIn:"root"});var hB=function(){this.dialogRef=q(dB,{optional:!0});this._elementRef=q(Gd);this._dialog=q(gB);this.type="button"};hB.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=lta(this._elementRef,this._dialog.openDialogs))};hB.prototype.ngOnChanges=function(a){if(a=a._matDialogClose||a._matDialogCloseResult)this.dialogResult=a.currentValue};
hB.prototype._onButtonClick=function(a){var b=this.dialogRef,c=this.dialogResult;b._closeInteractionType=a.screenX===0&&a.screenY===0?"keyboard":"mouse";b.close(c)};hB.\u0275fac=function(a){return new (a||hB)};
hB.\u0275dir=af({type:hB,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(a,b){a&1&&N("click",function(c){return b._onButtonClick(c)});a&2&&Jf("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:[Gx]});
var jB=function(){this._dialogRef=q(dB,{optional:!0});this._elementRef=q(Gd);this._dialog=q(gB)};jB.prototype.ngOnInit=function(){var a=this;this._dialogRef||(this._dialogRef=lta(this._elementRef,this._dialog.openDialogs));this._dialogRef&&Promise.resolve().then(function(){a._onAdd()})};jB.prototype.ngOnDestroy=function(){var a=this,b;((b=this._dialogRef)==null?0:b._containerInstance)&&Promise.resolve().then(function(){a._onRemove()})};jB.\u0275fac=function(a){return new (a||jB)};jB.\u0275dir=af({type:jB});
var kB=function(){jB.apply(this,arguments);this.id=q(hi).getId("mat-mdc-dialog-title-")};Z(kB,jB);kB.prototype._onAdd=function(){var a,b;(a=this._dialogRef._containerInstance)==null||(b=a._addAriaLabelledBy)==null||b.call(a,this.id)};kB.prototype._onRemove=function(){var a,b,c;(a=this._dialogRef)==null||(b=a._containerInstance)==null||(c=b._removeAriaLabelledBy)==null||c.call(b,this.id)};kB.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(kB)))(b||kB)}}();
kB.\u0275dir=af({type:kB,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(a,b){a&2&&Rf("id",b.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[Ff]});var lB=function(){};lB.\u0275fac=function(a){return new (a||lB)};
lB.\u0275dir=af({type:lB,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=Ula,c.hostDirectives=d?a.map(Wla):[a]):d?c.hostDirectives.unshift.apply(c.hostDirectives,n(a.map(Wla))):c.hostDirectives.unshift(a)};b.ngInherit=!0;return b}([Vz])]});var mB=function(){jB.apply(this,arguments)};
Z(mB,jB);mB.prototype._onAdd=function(){var a,b;(a=this._dialogRef._containerInstance)==null||(b=a._updateActionSectionCount)==null||b.call(a,1)};mB.prototype._onRemove=function(){var a,b;(a=this._dialogRef._containerInstance)==null||(b=a._updateActionSectionCount)==null||b.call(a,-1)};mB.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(mB)))(b||mB)}}();
mB.\u0275dir=af({type:mB,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&&yg("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:[Ff]});var nB=function(){};nB.\u0275fac=function(a){return new (a||nB)};nB.\u0275mod=$e({type:nB});nB.\u0275inj=Dc({providers:[gB],imports:[bB,uA,qA,jz]});var oB=function(){gB.apply(this,arguments);this.gmatDialogOptions=q(LIc);this.defaultOptions=q(SIc,{optional:!0});this.additionalClasses=["gmat-mdc-dialog"]};Z(oB,gB);oB.prototype.open=function(a,b){b=Object.assign({},this.defaultOptions||new MIc,b);if(this.gmatDialogOptions.disableGmatStyle)throw Error("eb");b.panelClass=Rh(b.panelClass||[]).concat(this.additionalClasses);return gB.prototype.open.call(this,a,b)};oB.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(oB)))(b||oB)}}();
oB.\u0275prov=Cc({token:oB,factory:oB.\u0275fac,providedIn:"root"});var pB=function(){};pB.\u0275fac=function(a){return new (a||pB)};pB.\u0275mod=$e({type:pB});pB.\u0275inj=Dc({providers:[{provide:gB,useClass:oB}],imports:[nB]});var UIc=new bd("GM2_FORM_FIELD_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var qB=function(a){this.options=a;if(a.disableGmatStyle)throw Error("eb");};qB.\u0275fac=function(a){return new (a||qB)(Ve(UIc))};qB.\u0275dir=af({type:qB,selectors:[["mat-form-field"]],hostAttrs:[1,"gmat-mdc-form-field"],standalone:!1});var VIc=new bd("MatError"),rB=function(){this.id=q(hi).getId("mat-mdc-error-")};rB.\u0275fac=function(a){return new (a||rB)};rB.\u0275dir=af({type:rB,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(a,b){a&2&&Rf("id",b.id)},inputs:{id:"id"},features:[Ig([{provide:VIc,useExisting:rB}])]});var sB=function(){this.align="start";this.id=q(hi).getId("mat-mdc-hint-")};sB.\u0275fac=function(a){return new (a||sB)};sB.\u0275dir=af({type:sB,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(a,b){a&2&&(Rf("id",b.id),Jf("align",null),yg("mat-mdc-form-field-hint-end",b.align==="end"))},inputs:{align:"align",id:"id"}});var tB=function(){};tB.\u0275fac=function(a){return new (a||tB)};tB.\u0275dir=af({type:tB,selectors:[["mat-label"]]});var WIc=new bd("MatPrefix"),uB=function(){this._isText=!1};da.Object.defineProperties(uB.prototype,{_isTextSelector:{configurable:!0,enumerable:!0,set:function(){this._isText=!0}}});uB.\u0275fac=function(a){return new (a||uB)};uB.\u0275dir=af({type:uB,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[Ig([{provide:WIc,useExisting:uB}])]});var XIc=new bd("MatSuffix"),vB=function(){this._isText=!1};da.Object.defineProperties(vB.prototype,{_isTextSelector:{configurable:!0,enumerable:!0,set:function(){this._isText=!0}}});vB.\u0275fac=function(a){return new (a||vB)};vB.\u0275dir=af({type:vB,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Ig([{provide:XIc,useExisting:vB}])]});var wB=function(){};wB.\u0275fac=function(a){return new (a||wB)};wB.\u0275dir=af({type:wB});var YIc=function(a){var b=this;this._box=a;this._destroyed=new rf;this._resizeSubject=new rf;this._elementObservables=new Map;typeof ResizeObserver!=="undefined"&&(this._resizeObserver=new ResizeObserver(function(c){return b._resizeSubject.next(c)}))};
YIc.prototype.observe=function(a){var b=this;this._elementObservables.has(a)||this._elementObservables.set(a,(new Sd(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(te(function(c){return c.some(function(d){return d.target===a})}),wf({bufferSize:1,refCount:!0}),Af(this._destroyed)));return this._elementObservables.get(a)};
YIc.prototype.destroy=function(){this._destroyed.next();this._destroyed.complete();this._resizeSubject.complete();this._elementObservables.clear()};var xB=function(){this._observers=new Map;this._ngZone=q(Tg)};xB.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)};
xB.prototype.observe=function(a,b){b=(b==null?void 0:b.box)||"content-box";this._observers.has(b)||this._observers.set(b,new YIc(b));return this._observers.get(b).observe(a)};xB.\u0275fac=function(a){return new (a||xB)};xB.\u0275prov=Cc({token:xB,factory:xB.\u0275fac,providedIn:"root"});var ZIc=new bd("FloatingLabelParent"),yB=function(){this._elementRef=q(Gd);this._monitorResize=this._floating=!1;this._resizeObserver=q(xB);this._ngZone=q(Tg);this._parent=q(ZIc);this._resizeSubscription=new Od};yB.prototype.ngOnDestroy=function(){this._resizeSubscription.unsubscribe()};
yB.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};yB.prototype._handleResize=function(){var a=this;setTimeout(function(){return a._parent._handleLabelResized()})};
yB.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()})})};
da.Object.defineProperties(yB.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}}});
yB.\u0275fac=function(a){return new (a||yB)};yB.\u0275dir=af({type:yB,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(a,b){a&2&&yg("mdc-floating-label--float-above",b.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}});var zB=function(){var a=this;this._elementRef=q(Gd);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=q(Tg),c=q(ji);b.runOutsideAngular(function(){a._cleanupTransitionEnd=c.listen(a._elementRef.nativeElement,"transitionend",a._handleTransitionEnd)})};
zB.prototype.activate=function(){var a=this._elementRef.nativeElement.classList;a.remove("mdc-line-ripple--deactivating");a.add("mdc-line-ripple--active")};zB.prototype.deactivate=function(){this._elementRef.nativeElement.classList.add("mdc-line-ripple--deactivating")};zB.prototype.ngOnDestroy=function(){this._cleanupTransitionEnd()};zB.\u0275fac=function(a){return new (a||zB)};zB.\u0275dir=af({type:zB,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]});var $Ic=["notch"],AB=function(){this._elementRef=q(Gd);this._ngZone=q(Tg);this.open=!1};AB.prototype.ngAfterViewInit=function(){var a=this._elementRef.nativeElement,b=a.querySelector(".mdc-floating-label");b?(a.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame==="function"&&(b.style.transitionDuration="0s",this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return b.style.transitionDuration=""})}))):a.classList.add("mdc-notched-outline--no-label")};
AB.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)":""};AB.prototype._setMaxWidth=function(a){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width","calc(100% - "+a+"px)")};AB.\u0275fac=function(a){return new (a||AB)};
AB.\u0275cmp=C({type:AB,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(a,b){a&1&&kg($Ic,5);if(a&2){var c;og(c=pg())&&(b._notch=c.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(a,b){a&2&&yg("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&&(fg(),Uf(0,"div",1),Sf(1,"div",2,0),gg(3),Tf(),Uf(4,"div",3))},encapsulation:2,changeDetection:0});var aJc=["iconPrefixContainer"],bJc=["textPrefixContainer"],cJc=["iconSuffixContainer"],dJc=["textSuffixContainer"],eJc=["textField"],fJc=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],gJc=new bd("MatFormField"),hJc=new bd("MAT_FORM_FIELD_DEFAULT_OPTIONS"),BB=function(){var a=this;this._elementRef=
q(Gd);this._changeDetectorRef=q(Yx);this._platform=q(bi);this._idGenerator=q(hi);this._ngZone=q(Tg);this._defaults=q(hJc,{optional:!0});this._iconPrefixContainerSignal=Rg.apply(null,["iconPrefixContainer"].concat(n([])));this._textPrefixContainerSignal=Rg.apply(null,["textPrefixContainer"].concat(n([])));this._iconSuffixContainerSignal=Rg.apply(null,["iconSuffixContainer"].concat(n([])));this._textSuffixContainerSignal=Rg.apply(null,["textSuffixContainer"].concat(n([])));this._prefixSuffixContainers=
ah.apply(null,[function(){return[a._iconPrefixContainerSignal(),a._textPrefixContainerSignal(),a._iconSuffixContainerSignal(),a._textSuffixContainerSignal()].map(function(d){return d==null?void 0:d.nativeElement}).filter(function(d){return d!==void 0})}].concat(n([])));this._labelChild=Xoa.apply(null,[tB].concat(n([])));this._hideRequiredMarker=!1;this.color="primary";this._appearanceSignal=qg.apply(null,["fill"].concat(n([])));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 rf;this._outlineLabelOffsetResizeObserver=this._previousControlValidatorFn=this._previousControl=this._isFocused=null;this._animationsDisabled=ti();this.getLabelId=ah.apply(null,[function(){return a._hasFloatingLabel()?a._labelId:null}].concat(n([])));this._hasFloatingLabel=ah.apply(null,[function(){return!!a._labelChild()}].concat(n([])));
var b=this._defaults,c=q(ii);b&&(b.appearance&&(this.appearance=b.appearance),this._hideRequiredMarker=!(b==null||!b.hideRequiredMarker),b.color&&(this.color=b.color));df(function(){return a._currentDirection=c.valueSignal()});this._syncOutlineLabelOffset()};h=BB.prototype;
h.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()};h.ngAfterContentInit=function(){this._initializeSubscript();this._initializePrefixAndSuffix()};
h.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()};
h.ngOnDestroy=function(){var a;(a=this._outlineLabelOffsetResizeObserver)==null||a.disconnect();var b;(b=this._stateChanges)==null||b.unsubscribe();var c;(c=this._valueChanges)==null||c.unsubscribe();var d;(d=this._describedByChanges)==null||d.unsubscribe();this._destroyed.next();this._destroyed.complete()};h.getConnectedOverlayOrigin=function(){return this._textField||this._elementRef};h._animateAndLockLabel=function(){this._hasFloatingLabel()&&(this.floatLabel="always")};
h._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(yf([void 0,void 0]),A(function(){return[c.errorState,c.userAriaDescribedBy]}),uf(),te(function(g){var k=l(g);var m=l(k.next().value);g=m.next().value;m=m.next().value;var r=l(k.next().value);k=r.next().value;r=r.next().value;return g!==k||m!==r})).subscribe(function(){return b._syncDescribedByIds()});var f;(f=this._valueChanges)==null||f.unsubscribe();c.ngControl&&c.ngControl.valueChanges&&(this._valueChanges=c.ngControl.valueChanges.pipe(Af(this._destroyed)).subscribe(function(){return b._changeDetectorRef.markForCheck()}))};
h._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})};
h._initializePrefixAndSuffix=function(){var a=this;this._checkPrefixAndSuffixTypes();se(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){a._checkPrefixAndSuffixTypes();a._changeDetectorRef.markForCheck()})};h._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()};
h._assertFormFieldControl=function(){};h._updateFocusState=function(){var a=this._control.focused;if(a&&!this._isFocused){this._isFocused=!0;var b;(b=this._lineRipple)==null||b.activate()}else if(!a&&(this._isFocused||this._isFocused===null)){this._isFocused=!1;var c;(c=this._lineRipple)==null||c.deactivate()}this._elementRef.nativeElement.classList.toggle("mat-focused",a);var d;(d=this._textField)==null||d.nativeElement.classList.toggle("mdc-text-field--focused",a)};
h._syncOutlineLabelOffset=function(){var a=this;zpa({earlyRead:function(){if(a._appearanceSignal()!=="outline"){var b;(b=a._outlineLabelOffsetResizeObserver)==null||b.disconnect();return null}if(globalThis.ResizeObserver){a._outlineLabelOffsetResizeObserver||(a._outlineLabelOffsetResizeObserver=new globalThis.ResizeObserver(function(){a._writeOutlinedLabelStyles(a._getOutlinedLabelOffset())}));b=l(a._prefixSuffixContainers());for(var c=b.next();!c.done;c=b.next())a._outlineLabelOffsetResizeObserver.observe(c.value,
{box:"border-box"})}return a._getOutlinedLabelOffset()},write:function(b){return a._writeOutlinedLabelStyles(b())}})};h._shouldAlwaysFloat=function(){return this.floatLabel==="always"};h._hasOutline=function(){return this.appearance==="outline"};h._forceDisplayInfixLabel=function(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()};h._shouldLabelFloat=function(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1};
h._shouldForward=function(a){var b=this._control?this._control.ngControl:null;return b&&b[a]};h._getSubscriptMessageType=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"};h._handleLabelResized=function(){this._refreshOutlineNotchWidth()};
h._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)}};h._processHints=function(){this._syncDescribedByIds()};h._validateHints=function(){};
h._syncDescribedByIds=function(){if(this._control){var a=[];this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy==="string"&&a.push.apply(a,n(this._control.userAriaDescribedBy.split(" ")));if(this._getSubscriptMessageType()==="hint"){var b=this._hintChildren?this._hintChildren.find(function(e){return e.align==="start"}):null,c=this._hintChildren?this._hintChildren.find(function(e){return e.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,n(this._errorChildren.map(function(e){return e.id})));if(b=this._control.describedByIds){var d=this._describedByIds||a;b=a.concat(b.filter(function(e){return e&&!d.includes(e)}))}else b=a;this._control.setDescribedByIds(b);this._describedByIds=a}};
h._getOutlinedLabelOffset=function(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;var a,b=(a=this._iconPrefixContainer)==null?void 0:a.nativeElement,c;a=(c=this._textPrefixContainer)==null?void 0:c.nativeElement;var d;c=(d=this._iconSuffixContainer)==null?void 0:d.nativeElement;var e;d=(e=this._textSuffixContainer)==null?void 0:e.nativeElement;var f;b=(f=b==null?void 0:b.getBoundingClientRect().width)!=
null?f:0;var g;f=(g=a==null?void 0:a.getBoundingClientRect().width)!=null?g:0;var k;g=(k=c==null?void 0:c.getBoundingClientRect().width)!=null?k:0;var m;k=(m=d==null?void 0:d.getBoundingClientRect().width)!=null?m:0;return["var(--mat-mdc-form-field-label-transform, translateY(-50%) translateX(calc("+((this._currentDirection==="rtl"?"-1":"1")+" * ("+(b+f+"px + var(--mat-mdc-form-field-label-offset-x, 0px)))))")),b+f+g+k]};
h._writeOutlinedLabelStyles=function(a){if(a!==null){var b=l(a);a=b.next().value;b=b.next().value;this._floatingLabel&&(this._floatingLabel.element.style.transform=a);if(b!==null){var c;(c=this._notchedOutline)==null||c._setMaxWidth(b)}}};h._isAttachedToDom=function(){var a=this._elementRef.nativeElement;if(a.getRootNode){var b=a.getRootNode();return b&&b!==a}return document.documentElement.contains(a)};
da.Object.defineProperties(BB.prototype,{hideRequiredMarker:{configurable:!0,enumerable:!0,get:function(){return this._hideRequiredMarker},set:function(a){this._hideRequiredMarker=Sh(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._appearanceSignal()},
set:function(a){var b;a=a||((b=this._defaults)==null?void 0:b.appearance)||"fill";this._appearanceSignal.set(a)}},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}}});BB.\u0275fac=function(a){return new (a||BB)};
BB.\u0275cmp=C({type:BB,selectors:[["mat-form-field"]],contentQueries:function(a,b,c){a&1&&(foa(b._labelChild,lg(c,tB,5)),lg(c,wB,5),lg(c,WIc,5),lg(c,XIc,5),lg(c,VIc,5),lg(c,sB,5));if(a&2){sg();var d;og(d=pg())&&(b._formFieldControl=d.first);og(d=pg())&&(b._prefixChildren=d);og(d=pg())&&(b._suffixChildren=d);og(d=pg())&&(b._errorChildren=d);og(d=pg())&&(b._hintChildren=d)}},viewQuery:function(a,b){a&1&&(rg(b._iconPrefixContainerSignal,aJc),rg(b._textPrefixContainerSignal,bJc),rg(b._iconSuffixContainerSignal,
cJc),rg(b._textSuffixContainerSignal,dJc),kg(eJc,5),kg(aJc,5),kg(bJc,5),kg(cJc,5),kg(dJc,5),kg(yB,5),kg(AB,5),kg(zB,5));if(a&2){sg(4);var c;og(c=pg())&&(b._textField=c.first);og(c=pg())&&(b._iconPrefixContainer=c.first);og(c=pg())&&(b._textPrefixContainer=c.first);og(c=pg())&&(b._iconSuffixContainer=c.first);og(c=pg())&&(b._textSuffixContainer=c.first);og(c=pg())&&(b._floatingLabel=c.first);og(c=pg())&&(b._notchedOutline=c.first);og(c=pg())&&(b._lineRipple=c.first)}},hostAttrs:[1,"mat-mdc-form-field"],
hostVars:38,hostBindings:function(a,b){a&2&&yg("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-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:[Ig([{provide:gJc,useExisting:BB},{provide:ZIc,useExisting:BB}])],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",
""],["aria-atomic","true","aria-live","polite",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=t();fg(fJc);E(0,ota,1,1,"ng-template",null,0,Og);K(2,"div",
6,1);N("click",function(d){u(c);return v(b._control.onContainerClick(d))});F(4,pta,1,0,"div",7);K(5,"div",8);F(6,sta,2,2,"div",9);F(7,tta,3,0,"div",10);F(8,uta,3,0,"div",11);K(9,"div",12);F(10,wta,1,1,null,13);gg(11);L();F(12,xta,3,0,"div",14);F(13,yta,3,0,"div",15);L();F(14,zta,1,0,"div",16);L();K(15,"div",17);F(16,Ata,2,0,"div",18)(17,Cta,5,1,"div",19);L()}a&2&&(B(2),yg("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),B(2),G(b._hasOutline()||b._control.disabled?-1:4),B(2),G(b._hasOutline()?6:-1),B(),G(b._hasIconPrefix?7:-1),B(),G(b._hasTextPrefix?8:-1),B(2),G(!b._hasOutline()||b._forceDisplayInfixLabel()?10:-1),B(2),G(b._hasTextSuffix?12:-1),B(),G(b._hasIconSuffix?13:-1),B(),G(b._hasOutline()?-1:14),B(),yg("mat-mdc-form-field-subscript-dynamic-size",b.subscriptSizing==="dynamic"),a=b._getSubscriptMessageType(),B(),G(a==="error"?16:a==="hint"?
17:-1))},dependencies:[yB,AB,oy,zB,sB],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,.mdc-text-field__input::-webkit-search-cancel-button{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(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-filled-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-filled-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(--mat-form-field-filled-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(--mat-form-field-filled-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(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-outlined-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(--mat-form-field-outlined-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(--mat-form-field-outlined-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(--mat-form-field-outlined-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(--mat-form-field-filled-error-caret-color, var(--mat-sys-error))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-outlined-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(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mat-form-field-filled-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(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mat-form-field-outlined-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(--mat-form-field-filled-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(--mat-form-field-filled-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(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-filled-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(--mat-form-field-filled-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(--mat-form-field-filled-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(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-outlined-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(--mat-form-field-outlined-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(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-outlined-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(--mat-form-field-outlined-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(--mat-form-field-outlined-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(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-outlined-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(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));border-width:var(--mat-form-field-outlined-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(--mat-form-field-outlined-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(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-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(--mat-form-field-outlined-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(--mat-form-field-outlined-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(--mat-form-field-outlined-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(--mat-form-field-outlined-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(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mat-form-field-outlined-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(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-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(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-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(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-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%),calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{max-width:min(100%,calc(100% - max(12px, var(--mat-form-field-outlined-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}[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(--mat-form-field-filled-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-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(--mat-form-field-filled-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(--mat-form-field-filled-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(--mat-form-field-filled-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(--mat-form-field-filled-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(--mat-form-field-filled-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-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(--mat-form-field-filled-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 CB=function(){};CB.\u0275fac=function(a){return new (a||CB)};CB.\u0275mod=$e({type:CB});CB.\u0275inj=Dc({imports:[Bz,BB,jz]});var DB=function(){};DB.\u0275fac=function(a){return new (a||DB)};DB.\u0275mod=$e({type:DB});DB.\u0275inj=Dc({imports:[CB]});var iJc=new bd("GM2_INPUT_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var EB=function(a){this.options=a;if(a.disableGmatStyle)throw Error("eb");};EB.\u0275fac=function(a){return new (a||EB)(Ve(iJc))};EB.\u0275dir=af({type:EB,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"gmat-mdc-input"],standalone:!1});var FB=function(){};FB.\u0275fac=function(a){return new (a||FB)};
FB.\u0275cmp=C({type:FB,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 jJc={passive:!0},GB=function(){this._platform=q(bi);this._ngZone=q(Tg);this._renderer=q(Ye).createRenderer(null,null);this._styleLoader=q(fi);this._monitoredElements=new Map};
GB.prototype.monitor=function(a){var b=this;if(!this._platform.isBrowser)return re;this._styleLoader.load(FB);var c=Uh(a);if(a=this._monitoredElements.get(c))return a.subject;var d=new rf,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 b._renderer.listen(c,"animationstart",e,jJc)});this._monitoredElements.set(c,{subject:d,unlisten:a});return d};
GB.prototype.stopMonitoring=function(a){a=Uh(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))};GB.prototype.ngOnDestroy=function(){var a=this;this._monitoredElements.forEach(function(b,c){return a.stopMonitoring(c)})};GB.\u0275fac=function(a){return new (a||GB)};GB.\u0275prov=Cc({token:GB,factory:GB.\u0275fac,providedIn:"root"});var HB=function(){var a=this;this._elementRef=q(Gd);this._platform=q(bi);this._ngZone=q(Tg);this._renderer=q(ji);this._resizeEvents=new rf;this._destroyed=new rf;this._enabled=!0;this._previousMinRows=-1;this._document=q(Yh);this._isViewInited=!1;this._handleFocusEvent=function(b){a._hasFocus=b.type==="focus"};q(fi).load(FB);this._textareaElement=this._elementRef.nativeElement};h=HB.prototype;
h._setMinHeight=function(){var a=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;a&&(this._textareaElement.style.minHeight=a)};h._setMaxHeight=function(){var a=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;a&&(this._textareaElement.style.maxHeight=a)};
h.ngAfterViewInit=function(){var a=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,kJc(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(gf(16)).subscribe(function(){a._cachedLineHeight=a._cachedPlaceholderHeight=
void 0;kJc(a,!0)})}),this._isViewInited=!0,kJc(this,!0))};h.ngOnDestroy=function(){var a;(a=this._listenerCleanups)==null||a.forEach(function(b){return b()});this._resizeEvents.complete();this._destroyed.next();this._destroyed.complete()};
h._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()}};
h._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};
h._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};h.ngDoCheck=function(){this._platform.isBrowser&&kJc(this)};
var kJc=function(a,b){b=b===void 0?!1:b;if(a._enabled&&(a._cacheTextareaLineHeight(),a._cacheTextareaPlaceholderHeight(),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}};HB.prototype.reset=function(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)};HB.prototype._noopInputHandler=function(){};HB.prototype._scrollToCaretPosition=function(a){var b=a.selectionStart,c=a.selectionEnd;!this._destroyed.isStopped&&this._hasFocus&&a.setSelectionRange(b,c)};
da.Object.defineProperties(HB.prototype,{minRows:{configurable:!0,enumerable:!0,get:function(){return this._minRows},set:function(a){this._minRows=Vh(a);this._setMinHeight()}},maxRows:{configurable:!0,enumerable:!0,get:function(){return this._maxRows},set:function(a){this._maxRows=Vh(a);this._setMaxHeight()}},enabled:{configurable:!0,enumerable:!0,get:function(){return this._enabled},set:function(a){this._enabled!==a&&((this._enabled=a)?kJc(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()}}});HB.\u0275fac=function(a){return new (a||HB)};
HB.\u0275dir=af({type:HB,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(a){a&1&&N("input",function(){})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",bh],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});var IB=function(){};IB.\u0275fac=function(a){return new (a||IB)};IB.\u0275mod=$e({type:IB});IB.\u0275inj=Dc({});var JB=function(a,b){this._renderer=a;this._elementRef=b;this.onChange=function(){};this.onTouched=function(){}};JB.prototype.setProperty=function(a,b){this._renderer.setProperty(this._elementRef.nativeElement,a,b)};JB.prototype.registerOnTouched=function(a){this.onTouched=a};JB.prototype.registerOnChange=function(a){this.onChange=a};JB.prototype.setDisabledState=function(a){this.setProperty("disabled",a)};JB.\u0275fac=function(a){return new (a||JB)(Ve(ji),Ve(Gd))};JB.\u0275dir=af({type:JB});
var yi=function(){JB.apply(this,arguments)};Z(yi,JB);yi.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(yi)))(b||yi)}}();yi.\u0275dir=af({type:yi,features:[Ff]});var KB=new bd("");var lJc={provide:KB,useExisting:Tc(function(){return xi}),multi:!0},mJc=new bd(""),xi=function(a,b,c){JB.call(this,a,b);this._compositionMode=c;this._composing=!1;this._compositionMode==null&&(this._compositionMode=!/android (\d+)/.test((Tl?window.navigator.userAgent:"").toLowerCase()))};Z(xi,JB);xi.prototype.writeValue=function(a){this.setProperty("value",a==null?"":a)};xi.prototype._handleInput=function(a){if(!this._compositionMode||this._compositionMode&&!this._composing)this.onChange(a)};
xi.prototype._compositionStart=function(){this._composing=!0};xi.prototype._compositionEnd=function(a){this._composing=!1;this._compositionMode&&this.onChange(a)};xi.\u0275fac=function(a){return new (a||xi)(Ve(ji),Ve(Gd),Ve(mJc,8))};
xi.\u0275dir=af({type:xi,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&&N("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:[Ig([lJc]),Ff]});var LB=new bd(""),nJc=new bd(""),vi=function(a){return Hta(a)};var MB=function(){this._rawValidators=[];this._rawAsyncValidators=[];this._onDestroyCallbacks=[]};h=MB.prototype;h._setValidators=function(a){this._rawValidators=a||[];this._composedValidatorFn=Rta(this._rawValidators)};h._setAsyncValidators=function(a){this._rawAsyncValidators=a||[];this._composedAsyncValidatorFn=Tta(this._rawAsyncValidators)};h._registerOnDestroy=function(a){this._onDestroyCallbacks.push(a)};
h._invokeOnDestroyCallbacks=function(){this._onDestroyCallbacks.forEach(function(a){return a()});this._onDestroyCallbacks=[]};h.reset=function(a){this.control&&this.control.reset(a)};h.hasError=function(a,b){return this.control?this.control.hasError(a,b):!1};h.getError=function(a,b){return this.control?this.control.getError(a,b):null};
da.Object.defineProperties(MB.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 NB=function(){MB.apply(this,arguments);this.valueAccessor=this.name=this._parent=null};Z(NB,MB);var OB=function(){MB.apply(this,arguments)};Z(OB,MB);da.Object.defineProperties(OB.prototype,{formDirective:{configurable:!0,enumerable:!0,get:function(){return null}},path:{configurable:!0,enumerable:!0,get:function(){return null}}});var oJc=function(a){this._cd=a};
da.Object.defineProperties(oJc.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)}}});var PB=function(a){this._cd=a};Z(PB,oJc);PB.\u0275fac=function(a){return new (a||PB)(Ve(NB,2))};
PB.\u0275dir=af({type:PB,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(a,b){a&2&&yg("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:[Ff]});var QB=function(a){this._cd=a};Z(QB,oJc);QB.\u0275fac=function(a){return new (a||QB)(Ve(OB,10))};
QB.\u0275dir=af({type:QB,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(a,b){a&2&&yg("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:[Ff]});var pJc=new bd("",{factory:function(){return"whenDisabledForLegacyCode"}});var RB=function(){},qJc=function(a,b){this.value=a;this.source=b};Z(qJc,RB);var rJc=function(a,b){this.pristine=a;this.source=b};Z(rJc,RB);var sJc=function(a,b){this.touched=a;this.source=b};Z(sJc,RB);var tJc=function(a,b){this.status=a;this.source=b};Z(tJc,RB);var uJc=function(a){this.source=a};Z(uJc,RB);var vJc=function(a){this.source=a};Z(vJc,RB);
var SB=function(a,b){var c=this;this._pendingDirty=!1;this._hasOwnPendingAsyncValidator=null;this._pendingTouched=!1;this._onCollectionChange=function(){};this._parent=null;this._status=ah.apply(null,[function(){return c.statusReactive()}].concat(n([])));this.statusReactive=qg.apply(null,[void 0].concat(n([])));this._pristine=ah.apply(null,[function(){return c.pristineReactive()}].concat(n([])));this.pristineReactive=qg.apply(null,[!0].concat(n([])));this._touched=ah.apply(null,[function(){return c.touchedReactive()}].concat(n([])));
this.touchedReactive=qg.apply(null,[!1].concat(n([])));this._events=new rf;this.events=this._events.asObservable();this._onDisabledChange=[];this._assignValidators(a);this._assignAsyncValidators(b)},gua=function(a,b){a._assignValidators(b)},hua=function(a,b){a._assignAsyncValidators(b)},Kf=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&&Kf(a._parent,Object.assign({},b,{sourceControl:e}));c&&b.emitEvent!==!1&&a._events.next(new sJc(!0,
e))},wJc=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){wJc(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 sJc(!1,e))},jua=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&&jua(a._parent,Object.assign({},b,{sourceControl:e}));
c&&b.emitEvent!==!1&&a._events.next(new rJc(!1,e))},xJc=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){xJc(f,{onlySelf:!0,emitEvent:b.emitEvent})});a._parent&&!b.onlySelf&&a._parent._updatePristine(b,e);c&&b.emitEvent!==!1&&a._events.next(new rJc(!0,e))};h=SB.prototype;
h.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 qJc(this.value,d)),this._events.next(new tJc(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)})};h.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}))});wi(this,{onlySelf:!0,emitEvent:a.emitEvent});this._updateAncestors(Object.assign({},a,{skipPristineCheck:b}),this);this._onDisabledChange.forEach(function(c){return c(!1)})};
h._updateAncestors=function(a,b){this._parent&&!a.onlySelf&&(wi(this._parent,a),a.skipPristineCheck||this._parent._updatePristine({},b),this._parent._updateTouched({},b))};h.setParent=function(a){this._parent=a};h.getRawValue=function(){return this.value};
var wi=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 qJc(a.value,c)),a._events.next(new tJc(a.status,c)),a.valueChanges.emit(a.value),a.statusChanges.emit(a.status));a._parent&&!b.onlySelf&&wi(a._parent,Object.assign({},
b,{sourceControl:c}))};h=SB.prototype;h._updateTreeValidity=function(a){a=a===void 0?{emitEvent:!0}:a;this._forEachChild(function(b){return b._updateTreeValidity(a)});wi(this,{onlySelf:!0,emitEvent:a.emitEvent})};h._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"};h._runValidator=function(){return this.validator?this.validator(this):null};
h._runAsyncValidator=function(a,b){var c=this;this.asyncValidator&&(this.status="PENDING",this._hasOwnPendingAsyncValidator={emitEvent:b!==!1,shouldHaveEmitted:a!==!1},this._asyncValidationSubscription=Mta(this.asyncValidator(this)).subscribe(function(d){c._hasOwnPendingAsyncValidator=null;c.setErrors(d,{emitEvent:b,shouldHaveEmitted:a})}))};
h._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};h.setErrors=function(a,b){b=b===void 0?{}:b;this.errors=a;this._updateControlsErrors(b.emitEvent!==!1,this,b.shouldHaveEmitted)};
h.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)};h.getError=function(a,b){return(b=b?this.get(b):this)&&b.errors?b.errors[a]:null};h.hasError=function(a,b){return!!this.getError(a,b)};
h._updateControlsErrors=function(a,b,c){this.status=this._calculateStatus();a&&this.statusChanges.emit(this.status);(a||c)&&this._events.next(new tJc(this.status,b));this._parent&&this._parent._updateControlsErrors(a,b,c)};h._initObservables=function(){this.valueChanges=new ui;this.statusChanges=new ui};
h._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"};h._anyControlsHaveStatus=function(a){return this._anyControls(function(b){return b.status===a})};h._anyControlsDirty=function(){return this._anyControls(function(a){return a.dirty})};h._anyControlsTouched=function(){return this._anyControls(function(a){return a.touched})};
h._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 rJc(this.pristine,b))};h._updateTouched=function(a,b){a=a===void 0?{}:a;this.touched=this._anyControlsTouched();this._events.next(new sJc(this.touched,b));this._parent&&!a.onlySelf&&this._parent._updateTouched(a,b)};h._registerOnCollectionChange=function(a){this._onCollectionChange=a};
h._setUpdateStrategy=function(a){zi(a)&&a.updateOn!=null&&(this._updateOn=a.updateOn)};h._parentMarkedDirty=function(a){var b=this._parent&&this._parent.dirty;return!a&&!!b&&!this._parent._anyControlsDirty()};h._find=function(){return null};h._assignValidators=function(a){a=this._rawValidators=Array.isArray(a)?a.slice():a;this._composedValidatorFn=Array.isArray(a)?Rta(a):a||null};
h._assignAsyncValidators=function(a){a=this._rawAsyncValidators=Array.isArray(a)?a.slice():a;this._composedAsyncValidatorFn=Array.isArray(a)?Tta(a):a||null};
da.Object.defineProperties(SB.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 Mc(this.statusReactive)},
set:function(a){var b=this;Mc(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 Mc(this.pristineReactive)},set:function(a){var b=this;Mc(function(){return b.pristineReactive.set(a)})}},dirty:{configurable:!0,enumerable:!0,get:function(){return!this.pristine}},touched:{configurable:!0,enumerable:!0,get:function(){return Mc(this.touchedReactive)},set:function(a){var b=this;Mc(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 TB=function(a,b,c){SB.call(this,(zi(b)?b.validators:b)||null,(zi(b)?b.asyncValidators:c)||null);this.controls=a;this._initObservables();this._setUpdateStrategy(b);this._setUpControls();wi(this,{onlySelf:!0,emitEvent:!!this.asyncValidator})};Z(TB,SB);var yJc=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};h=TB.prototype;
h.addControl=function(a){var b=b===void 0?{}:b;yJc(this,a);wi(this,{emitEvent:b.emitEvent});this._onCollectionChange()};h.removeControl=function(a){var b=b===void 0?{}:b;this.controls[a]&&this.controls[a]._registerOnCollectionChange(function(){});delete this.controls[a];wi(this,{emitEvent:b.emitEvent});this._onCollectionChange()};h.contains=function(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled};
h.setValue=function(a,b){var c=this;b=b===void 0?{}:b;oua(this,a);Object.keys(a).forEach(function(d){nua(c,!0,d);c.controls[d].setValue(a[d],{onlySelf:!0,emitEvent:b.emitEvent})});wi(this,b)};h.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})}),wi(this,b))};
h.reset=function(a,b){a=a===void 0?{}:a;b=b===void 0?{}:b;this._forEachChild(function(d,e){d.reset(a?a[e]:null,Object.assign({},b,{onlySelf:!0}))});this._updatePristine(b,this);this._updateTouched(b,this);wi(this,b);var c;((c=b)==null?void 0:c.emitEvent)!==!1&&this._events.next(new vJc(this))};h.getRawValue=function(){return this._reduceChildren({},function(a,b,c){a[c]=b.getRawValue();return a})};
h._syncPendingControls=function(){var a=this._reduceChildren(!1,function(b,c){return c._syncPendingControls()?!0:b});a&&wi(this,{onlySelf:!0});return a};h._forEachChild=function(a){var b=this;Object.keys(this.controls).forEach(function(c){var d=b.controls[c];d&&a(d,c)})};h._setUpControls=function(){var a=this;this._forEachChild(function(b){b.setParent(a);b._registerOnCollectionChange(a._onCollectionChange)})};h._updateValue=function(){this.value=this._reduceValue()};
h._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};h._reduceValue=function(){var a=this;return this._reduceChildren({},function(b,c,d){if(c.enabled||a.disabled)b[d]=c.value;return b})};h._reduceChildren=function(a,b){var c=a;this._forEachChild(function(d,e){c=b(c,d,e)});return c};
h._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};h._find=function(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null};var zJc=function(){TB.apply(this,arguments)};Z(zJc,TB);var AJc={provide:OB,useExisting:Tc(function(){return UB})},BJc=Promise.resolve(),UB=function(a,b,c){OB.call(this);var d=this;this.callSetDisabledState=c;this._submitted=ah.apply(null,[function(){return d.submittedReactive()}].concat(n([])));this.submittedReactive=qg.apply(null,[!1].concat(n([])));this._directives=new Set;this.ngSubmit=new ui;this.form=new TB({},Rta(a),Tta(b))};Z(UB,OB);h=UB.prototype;h.ngAfterViewInit=function(){this._setUpdateStrategy()};
h.addControl=function(a){var b=this;BJc.then(function(){var c=b._findContainer(a.path);a.control=yJc(c,a.name,a.control);cua(a.control,a,b.callSetDisabledState);wi(a.control,{emitEvent:!1});b._directives.add(a)})};h.removeControl=function(a){var b=this;BJc.then(function(){var c=b._findContainer(a.path);c&&c.removeControl(a.name);b._directives.delete(a)})};h.updateModel=function(a,b){var c=this;BJc.then(function(){c.form.get(a.path).setValue(b)})};h.setValue=function(a){this.control.setValue(a)};
h.onSubmit=function(a){this.submittedReactive.set(!0);lua(this.form,this._directives);this.ngSubmit.emit(a);this.form._events.next(new uJc(this.control));var b;return(a==null?void 0:(b=a.target)==null?void 0:b.method)==="dialog"};h.onReset=function(){this.resetForm()};h.resetForm=function(a){this.form.reset(a);this.submittedReactive.set(!1)};h._setUpdateStrategy=function(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)};
h._findContainer=function(a){a.pop();return a.length?this.form.get(a):this.form};da.Object.defineProperties(UB.prototype,{submitted:{configurable:!0,enumerable:!0,get:function(){return Mc(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}}});
UB.\u0275fac=function(a){return new (a||UB)(Ve(LB,10),Ve(nJc,10),Ve(pJc,8))};UB.\u0275dir=af({type:UB,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(a,b){a&1&&N("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:[Ig([AJc]),Ff]});var VB=function(a,b,c){a=a===void 0?null:a;SB.call(this,(zi(b)?b.validators:b)||null,(zi(b)?b.asyncValidators:c)||null);this.defaultValue=null;this._onChange=[];this._pendingChange=!1;this._applyFormState(a);this._setUpdateStrategy(b);this._initObservables();wi(this,{onlySelf:!0,emitEvent:!!this.asyncValidator});zi(b)&&(b.nonNullable||b.initialValueIsDefault)&&(pua(a)?this.defaultValue=a.value:this.defaultValue=a)};Z(VB,SB);h=VB.prototype;
h.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)});wi(this,b)};h.patchValue=function(a,b){b=b===void 0?{}:b;this.setValue(a,b)};
h.reset=function(a,b){a=a===void 0?this.defaultValue:a;b=b===void 0?{}:b;this._applyFormState(a);xJc(this,b);wJc(this,b);this.setValue(this.value,b);b.overwriteDefaultValue&&(this.defaultValue=this.value);this._pendingChange=!1;var c;((c=b)==null?void 0:c.emitEvent)!==!1&&this._events.next(new vJc(this))};h._updateValue=function(){};h._anyControls=function(){return!1};h._allControlsDisabled=function(){return this.disabled};h.registerOnChange=function(a){this._onChange.push(a)};
h._unregisterOnChange=function(a){var b=this._onChange;a=b.indexOf(a);a>-1&&b.splice(a,1)};h._unregisterOnDisabledChange=function(a){var b=this._onDisabledChange;a=b.indexOf(a);a>-1&&b.splice(a,1)};h._forEachChild=function(){};h._syncPendingControls=function(){return this.updateOn==="submit"&&(this._pendingDirty&&jua(this),this._pendingTouched&&Kf(this),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1};
h._applyFormState=function(a){pua(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 CJc={provide:NB,useExisting:Tc(function(){return WB})},DJc=Promise.resolve(),WB=function(a,b,c,d,e,f){NB.call(this);this._changeDetectorRef=e;this.callSetDisabledState=f;this.control=new VB;this._registered=!1;this.name="";this.update=new ui;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=mua(d)};Z(WB,NB);h=WB.prototype;
h.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);kua(a,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)};h.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)};
h.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};h._setUpControl=function(){this._setUpdateStrategy();this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this);this._registered=!0};h._setUpdateStrategy=function(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)};h._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)};
h._setUpStandalone=function(){cua(this.control,this,this.callSetDisabledState);wi(this.control,{emitEvent:!1})};h._checkForErrors=function(){this._checkName()};h._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name)};h._updateValue=function(a){var b=this;DJc.then(function(){b.control.setValue(a,{emitViewToModelChange:!1});var c;(c=b._changeDetectorRef)==null||c.markForCheck()})};
h._updateDisabled=function(a){var b=this;a=a.isDisabled.currentValue;var c=a!==0&&bh(a);DJc.then(function(){c&&!b.control.disabled?b.control.disable():!c&&b.control.disabled&&b.control.enable();var d;(d=b._changeDetectorRef)==null||d.markForCheck()})};h._getPath=function(a){return this._parent?Xta(a,this._parent):[a]};
da.Object.defineProperties(WB.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}}});WB.\u0275fac=function(a){return new (a||WB)(Ve(OB,9),Ve(LB,10),Ve(nJc,10),Ve(KB,10),Ve(Yx,8),Ve(pJc,8))};
WB.\u0275dir=af({type:WB,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:[Ig([CJc]),Ff,Gx]});var XB=function(){};XB.\u0275fac=function(a){return new (a||XB)};XB.\u0275dir=af({type:XB,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1});var EJc={provide:KB,useExisting:Tc(function(){return YB}),multi:!0},YB=function(){yi.apply(this,arguments)};Z(YB,yi);YB.prototype.writeValue=function(a){this.setProperty("value",a==null?"":a)};YB.prototype.registerOnChange=function(a){this.onChange=function(b){a(b==""?null:parseFloat(b))}};YB.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(YB)))(b||YB)}}();
YB.\u0275dir=af({type:YB,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(a,b){a&1&&N("input",function(c){return b.onChange(c.target.value)})("blur",function(){return b.onTouched()})},standalone:!1,features:[Ig([EJc]),Ff]});var FJc={provide:KB,useExisting:Tc(function(){return ZB}),multi:!0},$B=function(){this._accessors=[]};$B.prototype.add=function(a,b){this._accessors.push([a,b])};$B.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}};$B.prototype.select=function(a){var b=this;this._accessors.forEach(function(c){b._isSameGroup(c,a)&&c[1]!==a&&c[1].writeValue(a.value)})};
$B.prototype._isSameGroup=function(a,b){return a[0].control?a[0]._parent===b._control._parent&&a[1].name===b.name:!1};$B.\u0275fac=function(a){return new (a||$B)};$B.\u0275prov=Cc({token:$B,factory:$B.\u0275fac,providedIn:"root"});var ZB=function(a,b,c,d){yi.call(this,a,b);this._registry=c;this._injector=d;this.setDisabledStateFired=!1;this.onChange=function(){};var e;this.callSetDisabledState=(e=q(pJc,{optional:!0}))!=null?e:"whenDisabledForLegacyCode"};Z(ZB,yi);h=ZB.prototype;
h.ngOnInit=function(){this._control=this._injector.get(NB);this._checkName();this._registry.add(this._control,this)};h.ngOnDestroy=function(){this._registry.remove(this)};h.writeValue=function(a){this._state=a===this.value;this.setProperty("checked",this._state)};h.registerOnChange=function(a){var b=this;this._fn=a;this.onChange=function(){a(b.value);b._registry.select(b)}};
h.setDisabledState=function(a){(this.setDisabledStateFired||a||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",a);this.setDisabledStateFired=!0};h._checkName=function(){!this.name&&this.formControlName&&(this.name=this.formControlName)};ZB.\u0275fac=function(a){return new (a||ZB)(Ve(ji),Ve(Gd),Ve($B),Ve(xe))};
ZB.\u0275dir=af({type:ZB,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(a,b){a&1&&N("change",function(){return b.onChange()})("blur",function(){return b.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[Ig([FJc]),Ff]});var aC=function(a,b,c){OB.call(this);var d=this;this.callSetDisabledState=c;this._submitted=ah.apply(null,[function(){return d._submittedReactive()}].concat(n([])));this._submittedReactive=qg.apply(null,[!1].concat(n([])));this._onCollectionChange=function(){return d._updateDomValue()};this.directives=[];this._setValidators(a);this._setAsyncValidators(b)};Z(aC,OB);h=aC.prototype;h.ngOnChanges=function(a){this.onChanges(a)};h.ngOnDestroy=function(){this.onDestroy()};
h.onChanges=function(a){a.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)};h.onDestroy=function(){this.form&&(dua(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))};h.addControl=function(a){var b=this.form.get(a.path);cua(b,a,this.callSetDisabledState);wi(b,{emitEvent:!1});this.directives.push(a);return b};
h.removeControl=function(a){eua(a.control||null,a);var b=this.directives;a=b.indexOf(a);a>-1&&b.splice(a,1)};h.updateModel=function(a,b){this.form.get(a.path).setValue(b)};h.onReset=function(){this.resetForm()};h.resetForm=function(a,b){b=b===void 0?{}:b;this.form.reset(a,b);this._submittedReactive.set(!1)};
h.onSubmit=function(a){this.submitted=!0;lua(this.form,this.directives);this.ngSubmit.emit(a);this.form._events.next(new uJc(this.control));var b;return(a==null?void 0:(b=a.target)==null?void 0:b.method)==="dialog"};h._updateDomValue=function(){var a=this;this.directives.forEach(function(b){var c=b.control,d=a.form.get(b.path);c!==d&&(eua(c||null,b),d instanceof VB&&(cua(d,b,a.callSetDisabledState),b.control=d))});this.form._updateTreeValidity({emitEvent:!1})};
h._setUpFormContainer=function(a){var b=this.form.get(a.path);Yta(b,a);wi(b,{emitEvent:!1})};h._cleanUpFormContainer=function(a){if(this.form){var b=this.form.get(a.path);b&&dua(b,a)&&wi(b,{emitEvent:!1})}};h._updateRegistrations=function(){this.form._registerOnCollectionChange(this._onCollectionChange);this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})};h._updateValidators=function(){Yta(this.form,this);this._oldForm&&dua(this._oldForm,this)};h._checkFormPresent=function(){};
da.Object.defineProperties(aC.prototype,{submitted:{configurable:!0,enumerable:!0,get:function(){return Mc(this._submittedReactive)},set:function(a){this._submittedReactive.set(a)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this}},path:{configurable:!0,enumerable:!0,get:function(){return[]}}});aC.\u0275fac=function(a){return new (a||aC)(Ve(LB,10),Ve(nJc,10),Ve(pJc,8))};aC.\u0275dir=af({type:aC,features:[Ff,Gx]});var GJc=function(a,b,c){SB.call(this,(zi(b)?b.validators:b)||null,(zi(b)?b.asyncValidators:c)||null);this.controls=a;this._initObservables();this._setUpdateStrategy(b);this._setUpControls();wi(this,{onlySelf:!0,emitEvent:!!this.asyncValidator})};Z(GJc,SB);h=GJc.prototype;h.at=function(a){return this.controls[this._adjustIndex(a)]};
h.push=function(a,b){var c=this;b=b===void 0?{}:b;Array.isArray(a)?a.forEach(function(d){c.controls.push(d);c._registerControl(d)}):(this.controls.push(a),this._registerControl(a));wi(this,{emitEvent:b.emitEvent});this._onCollectionChange()};h.insert=function(a,b,c){c=c===void 0?{}:c;this.controls.splice(a,0,b);this._registerControl(b);wi(this,{emitEvent:c.emitEvent})};
h.setValue=function(a,b){var c=this;b=b===void 0?{}:b;oua(this,a);a.forEach(function(d,e){nua(c,!1,e);c.at(e).setValue(d,{onlySelf:!0,emitEvent:b.emitEvent})});wi(this,b)};h.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})}),wi(this,b))};
h.reset=function(a,b){a=a===void 0?[]:a;b=b===void 0?{}:b;this._forEachChild(function(d,e){d.reset(a[e],Object.assign({},b,{onlySelf:!0}))});this._updatePristine(b,this);this._updateTouched(b,this);wi(this,b);var c;((c=b)==null?void 0:c.emitEvent)!==!1&&this._events.next(new vJc(this))};h.getRawValue=function(){return this.controls.map(function(a){return a.getRawValue()})};
h.clear=function(a){a=a===void 0?{}:a;this.controls.length<1||(this._forEachChild(function(b){return b._registerOnCollectionChange(function(){})}),this.controls.splice(0),wi(this,{emitEvent:a.emitEvent}))};h._adjustIndex=function(a){return a<0?a+this.length:a};h._syncPendingControls=function(){var a=this.controls.reduce(function(b,c){return c._syncPendingControls()?!0:b},!1);a&&wi(this,{onlySelf:!0});return a};h._forEachChild=function(a){this.controls.forEach(function(b,c){a(b,c)})};
h._updateValue=function(){var a=this;this.value=this.controls.filter(function(b){return b.enabled||a.disabled}).map(function(b){return b.value})};h._anyControls=function(a){return this.controls.some(function(b){return b.enabled&&a(b)})};h._setUpControls=function(){var a=this;this._forEachChild(function(b){return a._registerControl(b)})};h._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};
h._registerControl=function(a){a.setParent(this);a._registerOnCollectionChange(this._onCollectionChange)};h._find=function(a){var b;return(b=this.at(a))!=null?b:null};da.Object.defineProperties(GJc.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.controls.length}}});var HJc=new bd(""),IJc={provide:NB,useExisting:Tc(function(){return bC})},bC=function(a,b,c,d,e){NB.call(this);this._ngModelWarningConfig=d;this.callSetDisabledState=e;this.update=new ui;this._ngModelWarningSent=!1;this._setValidators(a);this._setAsyncValidators(b);this.valueAccessor=mua(c)};Z(bC,NB);
bC.prototype.ngOnChanges=function(a){if(this._isControlChanged(a)){var b=a.form.previousValue;b&&eua(b,this);cua(this.form,this,this.callSetDisabledState);wi(this.form,{emitEvent:!1})}kua(a,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)};bC.prototype.ngOnDestroy=function(){this.form&&eua(this.form,this)};bC.prototype.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};bC.prototype._isControlChanged=function(a){return a.hasOwnProperty("form")};
da.Object.defineProperties(bC.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}}});bC._ngModelWarningSentOnce=!1;bC.\u0275fac=function(a){return new (a||bC)(Ve(LB,10),Ve(nJc,10),Ve(KB,10),Ve(HJc,8),Ve(pJc,8))};
bC.\u0275dir=af({type:bC,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[Ig([IJc]),Ff,Gx]});var JJc={provide:NB,useExisting:Tc(function(){return cC})},cC=function(a,b,c,d,e){NB.call(this);this._ngModelWarningConfig=e;this._added=!1;this.name=null;this.update=new ui;this._ngModelWarningSent=!1;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=mua(d)};Z(cC,NB);cC.prototype.ngOnChanges=function(a){this._added||this._setUpControl();kua(a,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))};
cC.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)};cC.prototype.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};cC.prototype._setUpControl=function(){this.control=this.formDirective.addControl(this);this._added=!0};
da.Object.defineProperties(cC.prototype,{isDisabled:{configurable:!0,enumerable:!0,set:function(){}},path:{configurable:!0,enumerable:!0,get:function(){return Xta(this.name==null?this.name:this.name.toString(),this._parent)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this._parent?this._parent.formDirective:null}}});cC._ngModelWarningSentOnce=!1;cC.\u0275fac=function(a){return new (a||cC)(Ve(OB,13),Ve(LB,10),Ve(nJc,10),Ve(KB,10),Ve(HJc,8))};
cC.\u0275dir=af({type:cC,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Ig([JJc]),Ff,Gx]});var KJc={provide:OB,useExisting:Tc(function(){return dC})},dC=function(){aC.apply(this,arguments);this.form=null;this.ngSubmit=new ui};Z(dC,aC);da.Object.defineProperties(dC.prototype,{control:{configurable:!0,enumerable:!0,get:function(){return this.form}}});dC.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(dC)))(b||dC)}}();
dC.\u0275dir=af({type:dC,selectors:[["","formGroup",""]],hostBindings:function(a,b){a&1&&N("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:[Ig([KJc]),Ff]});var eC=function(){this._validator=Jta};eC.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):Jta,this._onChange&&this._onChange())};eC.prototype.validate=function(a){return this._validator(a)};eC.prototype.registerOnValidatorChange=function(a){this._onChange=a};eC.prototype.enabled=function(a){return a!=null};eC.\u0275fac=function(a){return new (a||eC)};
eC.\u0275dir=af({type:eC,features:[Gx]});var LJc={provide:LB,useExisting:Tc(function(){return fC}),multi:!0},fC=function(){eC.apply(this,arguments);this.inputName="max";this.normalizeInput=function(a){return typeof a==="number"?a:parseFloat(a)};this.createValidator=function(a){return Gta(a)}};Z(fC,eC);fC.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(fC)))(b||fC)}}();
fC.\u0275dir=af({type:fC,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&&Jf("max",b._enabled?b.max:null)},inputs:{max:"max"},standalone:!1,features:[Ig([LJc]),Ff]});
var MJc={provide:LB,useExisting:Tc(function(){return gC}),multi:!0},gC=function(){eC.apply(this,arguments);this.inputName="min";this.normalizeInput=function(a){return typeof a==="number"?a:parseFloat(a)};this.createValidator=function(a){return Fta(a)}};Z(gC,eC);gC.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(gC)))(b||gC)}}();
gC.\u0275dir=af({type:gC,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&&Jf("min",b._enabled?b.min:null)},inputs:{min:"min"},standalone:!1,features:[Ig([MJc]),Ff]});var NJc={provide:LB,useExisting:Tc(function(){return hC}),multi:!0},hC=function(){eC.apply(this,arguments);this.inputName="required";this.normalizeInput=bh;this.createValidator=function(){return Hta}};
Z(hC,eC);hC.prototype.enabled=function(a){return a};hC.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(hC)))(b||hC)}}();hC.\u0275dir=af({type:hC,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(a,b){a&2&&Jf("required",b._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Ig([NJc]),Ff]});
var OJc={provide:LB,useExisting:Tc(function(){return iC}),multi:!0},iC=function(){eC.apply(this,arguments);this.inputName="maxlength";this.normalizeInput=function(a){return typeof a==="number"?a:parseInt(a,10)};this.createValidator=function(a){return Ita(a)}};Z(iC,eC);iC.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(iC)))(b||iC)}}();
iC.\u0275dir=af({type:iC,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&Jf("maxlength",b._enabled?b.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[Ig([OJc]),Ff]});
var PJc={provide:LB,useExisting:Tc(function(){return jC}),multi:!0},jC=function(){eC.apply(this,arguments);this.inputName="pattern";this.normalizeInput=function(a){return a};this.createValidator=function(a){return Kta(a)}};Z(jC,eC);jC.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(jC)))(b||jC)}}();
jC.\u0275dir=af({type:jC,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&Jf("pattern",b._enabled?b.pattern:null)},inputs:{pattern:"pattern"},standalone:!1,features:[Ig([PJc]),Ff]});var kC=function(){};kC.\u0275fac=function(a){return new (a||kC)};kC.\u0275mod=$e({type:kC});kC.\u0275inj=Dc({});var lC=function(){this.useNonNullable=!1};h=lC.prototype;h.group=function(a,b){b=b===void 0?null:b;a=this._reduceControls(a);var c={};qua(b)?c=b:b!==null&&(c.validators=b.validator,c.asyncValidators=b.asyncValidator);return new TB(a,c)};h.record=function(a,b){b=b===void 0?null:b;a=this._reduceControls(a);return new zJc(a,b)};h.control=function(a,b,c){var d={};if(!this.useNonNullable)return new VB(a,b,c);qua(b)?d=b:(d.validators=b,d.asyncValidators=c);return new VB(a,Object.assign({},d,{nonNullable:!0}))};
h.array=function(a,b,c){var d=this;a=a.map(function(e){return d._createControl(e)});return new GJc(a,b,c)};h._reduceControls=function(a){var b=this,c={};Object.keys(a).forEach(function(d){c[d]=b._createControl(a[d])});return c};h._createControl=function(a){return a instanceof VB?a:a instanceof SB?a:Array.isArray(a)?this.control(a[0],a.length>1?a[1]:null,a.length>2?a[2]:null):this.control(a)};
da.Object.defineProperties(lC.prototype,{nonNullable:{configurable:!0,enumerable:!0,get:function(){var a=new lC;a.useNonNullable=!0;return a}}});lC.\u0275fac=function(a){return new (a||lC)};lC.\u0275prov=Cc({token:lC,factory:lC.\u0275fac,providedIn:"root"});var mC=function(){};mC.\u0275fac=function(a){return new (a||mC)};mC.\u0275mod=$e({type:mC});mC.\u0275inj=Dc({imports:[kC]});var nC=function(){};nC.\u0275fac=function(a){return new (a||nC)};nC.\u0275mod=$e({type:nC});nC.\u0275inj=Dc({imports:[kC]});var QJc=new bd("MAT_INPUT_VALUE_ACCESSOR");var RJc="button checkbox file hidden image radio range reset submit".split(" "),SJc=new bd("MAT_INPUT_CONFIG"),oC=function(){var a=this;this._elementRef=q(Gd);this._platform=q(bi);this.ngControl=q(NB,{optional:!0,self:!0});this._autofillMonitor=q(GB);this._ngZone=q(Tg);this._formField=q(gJc,{optional:!0});this._renderer=q(ji);this._uid=q(hi).getId("mat-input-");this._config=q(SJc,{optional:!0});this.focused=!1;this.stateChanges=new rf;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(m){return esa().has(m)});this._iOSKeyupListener=function(m){m=m.target;m.value||m.selectionStart!==0||m.selectionEnd!==0||(m.setSelectionRange(1,1),m.setSelectionRange(0,0))};var b=q(UB,{optional:!0}),c=q(dC,{optional:!0}),d=q(AA),e=q(QJc,{optional:!0,self:!0}),f=this._elementRef.nativeElement,g=f.nodeName.toLowerCase();e?ef(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 zHc(d,this.ngControl,c,b,this.stateChanges);this._isServer=!this._platform.isBrowser;this._isNativeSelect=g==="select";this._isTextarea=g==="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&&df(function(){a._signalBasedValueAccessor.value();a.stateChanges.next()})};h=oC.prototype;h.ngAfterViewInit=function(){var a=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(b){a.autofilled=b.isAutofilled;a.stateChanges.next()})};h.ngOnChanges=function(){this.stateChanges.next()};
h.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)};h.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()};
h.focus=function(a){this._elementRef.nativeElement.focus(a)};h.updateErrorState=function(){this._errorStateTracker.updateErrorState()};h._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()}};h._onInput=function(){};
h._dirtyCheckNativeValue=function(){var a=this._elementRef.nativeElement.value;this._previousNativeValue!==a&&(this._previousNativeValue=a,this.stateChanges.next())};h._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")}};h._getPlaceholder=function(){return this.placeholder||null};h._validateType=function(){RJc.indexOf(this._type)};
h._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1};h._isBadInput=function(){var a=this._elementRef.nativeElement.validity;return a&&a.badInput};h.setDescribedByIds=function(a){var b=this._elementRef.nativeElement;a.length?b.setAttribute("aria-describedby",a.join(" ")):b.removeAttribute("aria-describedby")};h.onContainerClick=function(){this.focused||this.focus()};
h._isInlineSelect=function(){var a=this._elementRef.nativeElement;return this._isNativeSelect&&(a.multiple||a.size>1)};h._getReadonlyAttribute=function(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null};
da.Object.defineProperties(oC.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=Sh(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:Vta(b._rawValidators,
vi))!=null?d:!1},set:function(a){this._required=Sh(a)}},type:{configurable:!0,enumerable:!0,get:function(){return this._type},set:function(a){this._type=a||"text";this._validateType();!this._isTextarea&&esa().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},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=Sh(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}},describedByIds:{configurable:!0,enumerable:!0,get:function(){var a;
return((a=this._elementRef.nativeElement.getAttribute("aria-describedby"))==null?void 0:a.split(" "))||[]}}});oC.\u0275fac=function(a){return new (a||oC)};
oC.\u0275dir=af({type:oC,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&&N("focus",function(){return b._focusChanged(!0)})("blur",function(){return b._focusChanged(!1)})("input",function(){return b._onInput()});a&2&&(Rf("id",b.id)("disabled",b.disabled&&!b.disabledInteractive)("required",b.required),Jf("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),yg("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",bh]},exportAs:["matInput"],features:[Ig([{provide:wB,useExisting:oC}]),Gx]});var pC=function(){};pC.\u0275fac=function(a){return new (a||pC)};pC.\u0275mod=$e({type:pC});pC.\u0275inj=Dc({imports:[CB,CB,IB,jz]});var qC=function(){};qC.\u0275fac=function(a){return new (a||qC)};qC.\u0275mod=$e({type:qC});qC.\u0275inj=Dc({imports:[pC,DB]});var sua=function(a,b){return b.fullUrl},rC=function(a,b){this.dialogRef=a;this.userContextService=b;this.inputValue="";this.linkTypes=q(fB).linkTypes;this.suggestedUserProvidedContextContentConfigs$=new Xj([])};rC.prototype.parseForUserProvidedContext=function(a){a=zIc(this.userContextService,a,!0,this.linkTypes);this.suggestedUserProvidedContextContentConfigs$.next(a)};rC.prototype.closeDialog=function(){this.dialogRef.close(this.suggestedUserProvidedContextContentConfigs$.value)};
rC.prototype.removeContextSource=function(a){var b=this.suggestedUserProvidedContextContentConfigs$.getValue().filter(function(c){return c.fullUrl!==a});this.suggestedUserProvidedContextContentConfigs$.next(b);this.inputValue=this.inputValue.replace(a,"")};rC.\u0275fac=function(a){return new (a||rC)(Ve(dB),Ve(QA))};
rC.\u0275cmp=C({type:rC,selectors:[["user-provided-context-dialog"]],decls:20,vars:6,consts:[["otherReasons",""],["mat-dialog-title",""],[1,"chips-container"],["appearance","outline","floatLabel","auto"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","3","placeholder","Paste your context links here.","aria-label","Text area to enter context links to share with the Duckie model.",3,"ngModelChange","ngModel"],[1,"type-s","padded-s-right","flex-row","align-items-center","gap-xs","duckie-link-following"],
["href","http://go/duckie-link-following","target","_blank",1,"type-s","flex-row","align-items-center","gap-xs"],["align","end"],["mat-flat-button","","mat-dialog-close",""],["mat-flat-button","","color","primary",3,"click","disabled"],[3,"label","iconUrl","linkUrl","showRemoveButton"],[3,"removeContextSource","label","iconUrl","linkUrl","showRemoveButton"]],template:function(a,b){if(a&1){var c=t();bg(0);U(1,"async");K(2,"h1",1);S(3,"Add links");L();K(4,"mat-dialog-content");F(5,tua,3,0,"div",2);
K(6,"mat-form-field",3)(7,"mat-label");S(8,"Paste your context links here.");L();K(9,"textarea",4,0);N("ngModelChange",function(d){u(c);return v(b.parseForUserProvidedContext(d))});Eg("ngModelChange",function(d){u(c);Dg(b.inputValue,d)||(b.inputValue=d);return v(d)});L()();K(11,"span",5)(12,"a",6);S(13," Learn more ");L();S(14," about supported links Duckie can use. ");L()();K(15,"mat-dialog-actions",7)(16,"button",8);S(17," Cancel ");L();K(18,"button",9);N("click",function(){u(c);return v(b.closeDialog())});
S(19," Add ");L()()}a&2&&(a=cg(W(1,3,b.suggestedUserProvidedContextContentConfigs$)),B(5),G(a&&a.length>0?5:-1),B(4),Cg("ngModel",b.inputValue),B(9),I("disabled",!a||a.length<1))},dependencies:[mC,xi,PB,WB,ZA,XA,TA,pB,hB,kB,mB,lB,DB,qB,BB,tB,qC,EB,oC,HB,OA,kz,py],styles:["[_nghost-%COMP%]{display:block;width:max(250 * var(--base-px,1rem),40vw);background-color:var(--tonal-fill-blue)}.mat-mdc-dialog-title[_ngcontent-%COMP%]{margin-bottom:12px}mat-form-field.mat-mdc-form-field[_ngcontent-%COMP%]{margin-top:4px;width:100%}mat-dialog-actions[_ngcontent-%COMP%]{margin:10px}.chips-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:8px;margin-bottom:8px}"],
changeDetection:0});var TJc=new bd("Location",{factory:function(){var a;return Object.assign({},window.location,{ancestorOrigins:(a=window.location.ancestorOrigins)!=null?a:[]})},providedIn:"root"}),UJc=new bd("Referrer",{factory:function(){return window.document.referrer},providedIn:"root"}),VJc=/^https?:\/\/[^\s,]+$/,WJc=/^go\/([^\s()<>]+)/,XJc=/^https:\/\/moma.corp.google.com.*/,YJc=new bd("DUCKIE_CLIENT",{providedIn:"root",factory:function(){return 1}});var ZJc=function(a,b){this.lo=a>>>0;this.hi=b>>>0},aKc=function(a){if(!a)return $Jc||($Jc=new ZJc(0,0));if(!/^\d+$/.test(a))return null;Aca(a);return new ZJc(kb,lb)},$Jc,bKc=function(a,b){this.lo=a>>>0;this.hi=b>>>0},dKc=function(a){if(!a)return cKc||(cKc=new bKc(0,0));if(!/^-?\d+$/.test(a))return null;Aca(a);return new bKc(kb,lb)},cKc;var sC=function(){this.buffer_=[]};sC.prototype.length=function(){return this.buffer_.length};sC.prototype.end=function(){var a=this.buffer_;this.buffer_=[];return a};sC.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)};sC.prototype.writeSplitFixed64=function(a,b){this.writeUint32(a);this.writeUint32(b)};
var eKc=function(a,b){for(;b>127;)a.buffer_.push(b&127|128),b>>>=7;a.buffer_.push(b)},fKc=function(a,b){if(b>=0)eKc(a,b);else{for(var c=0;c<9;c++)a.buffer_.push(b&127|128),b>>=7;a.buffer_.push(1)}};h=sC.prototype;h.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)};h.writeUint64=function(a){tca(a);this.writeUint32(kb);this.writeUint32(lb)};
h.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)};h.writeInt64=function(a){mb(a);this.writeSplitFixed64(kb,lb)};h.writeDouble=function(a){var b=OBc||(OBc=new DataView(new ArrayBuffer(8)));b.setFloat64(0,+a,!0);kb=b.getUint32(0,!0);lb=b.getUint32(4,!0);this.writeUint32(kb);this.writeUint32(lb)};h.writeBool=function(a){this.buffer_.push(a?1:0)};h.writeEnum=function(a){fKc(this,a)};
h.writeBytes=function(a){for(;a.length>8192;)Array.prototype.push.apply(this.buffer_,a.subarray(0,8192)),a=a.subarray(8192);Array.prototype.push.apply(this.buffer_,a)};var lva=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new sC},Ci=function(a,b){b.length!==0&&(a.blocks_.push(b),a.totalLength_+=b.length)},yua=function(a,b){tC(a,b,2);b=a.encoder_.end();Ci(a,b);b.push(a.totalLength_);return b},zua=function(a,b){var c=b.pop();for(c=a.totalLength_+a.encoder_.length()-c;c>127;)b.push(c&127|128),c>>>=7,a.totalLength_++;b.push(c);a.totalLength_++},mva=function(a){Ci(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 g=c[f];b.set(g,e);e+=g.length}a.blocks_=[b];return b},tC=function(a,b,c){eKc(a.encoder_,b*8+c)};h=lva.prototype;h.writeInt32=function(a,b){b!=null&&b!=null&&(tC(this,a,0),fKc(this.encoder_,b))};
h.writeInt64=function(a,b){if(b!=null){switch(typeof b){case "string":dKc(b)}if(b!=null)switch(tC(this,a,0),typeof b){case "number":a=this.encoder_;mb(b);a.writeSplitVarint64(kb,lb);break;case "bigint":b=BigInt.asUintN(64,b);b=new bKc(Number(b&BigInt(4294967295)),Number(b>>BigInt(32)));this.encoder_.writeSplitVarint64(b.lo,b.hi);break;default:b=dKc(b),this.encoder_.writeSplitVarint64(b.lo,b.hi)}}};h.writeUint32=function(){};h.writeUint64=function(){};
h.writeDouble=function(a,b){b!=null&&(tC(this,a,1),this.encoder_.writeDouble(b))};h.writeBool=function(a,b){b!=null&&(tC(this,a,0),this.encoder_.writeBool(b))};h.writeEnum=function(a,b){b!=null&&(b=parseInt(b,10),tC(this,a,0),fKc(this.encoder_,b))};h.writeBytes=function(a,b){b!=null&&cva(this,a,dea(b,!0).buffer)};var cva=function(a,b,c){tC(a,b,2);eKc(a.encoder_,c.length);Ci(a,a.encoder_.end());Ci(a,c)};lva.prototype.writeSplitFixed64=function(a,b){tC(this,a,1);this.encoder_.writeSplitFixed64(b)};
lva.prototype.writeSplitVarint64=function(a,b){tC(this,a,0);this.encoder_.writeSplitVarint64(b)};var vua=Ai(),gKc=Ai(),hKc=Ai(),iKc=Ai(),jKc=Ai(),kKc=Ai();var Bi=function(a,b,c){this.$$binaryReaderFn=a;this.$$binaryWriterFn=b;a=Wb(vua);this.$$isMsg=!!a&&c===a||!1},Dua=wua(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;YBc(a,aCc(b,d,c),e);return!0},Aua),Fua=wua(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;YBc(a,aCc(b,d,c),e);return!0},Aua),Sua=Symbol(),Iua=Symbol(),Lua=Symbol(),Xua=Symbol(),Pua=Symbol(),Bua,Cua;var lKc=Di(gva,function(a,b,c){if(b!=null){if(b instanceof X){var d=b.serializeBinaryFnForAnyProto_;d?a.writeBytes(c,d(b)):pb($ua,3);return}if(Array.isArray(b)){pb($ua,3);return}}fva(a,b,c)},kKc),mKc=Di(function(a,b,c,d){if(a.nextWireType_!==1)return!1;var e=a.decoder_;a=cx(e);var f=cx(e);e=(f>>31)*2+1;var g=f>>>20&2047;a=4294967296*(f&1048575)+a;gx(b,c,d,g==2047?a?NaN:e*Infinity:g==0?e*4.9E-324*a:e*Math.pow(2,g-1075)*(a+4503599627370496));return!0},function(a,b,c){a.writeDouble(c,ub(b))},Ai()),nKc=
Di(function(a,b,c){if(fBc)return a.nextWireType_!==0?a=!1:(Ei(b,c,TBc(a.decoder_,yca)),a=!0),a;if(a.nextWireType_!==0)return!1;Ei(b,c,TBc(a.decoder_,wca));return!0},ava,jKc),oKc=Di(function(a,b,c,d){if(fBc)return a.nextWireType_!==0?a=!1:(gx(b,c,d,TBc(a.decoder_,yca)),a=!0),a;if(a.nextWireType_!==0)return!1;gx(b,c,d,TBc(a.decoder_,wca));return!0},ava,jKc),uC=Di(function(a,b,c){if(a.nextWireType_!==0)return!1;Ei(b,c,bx(a.decoder_));return!0},function(a,b,c){a.writeInt32(c,Cb(b))},iKc),pKc;
pKc=new Bi(function(a,b,c){if(a.nextWireType_!==0&&a.nextWireType_!==2)return!1;b=pea(b,b[Ra]|0,c);if(a.nextWireType_==2)for(c=bx(a.decoder_)>>>0,c=a.decoder_.getCursor()+c;a.decoder_.getCursor()<c;)b.push(bx(a.decoder_));else b.push(bx(a.decoder_));return!0},function(a,b,c){if(Array.isArray(b)){var d=b[Ra]|0;if(!(d&4)){for(var e=0,f=0;e<b.length;e++){var g=Cb(b[e]);g!=null&&(b[f++]=g)}f<e&&(b.length=f);e=(d|5)&-1537;e!==d&&(b[Ra]=e);e&2&&Object.freeze(b)}}else b=void 0;if(b!=null)for(d=0;d<b.length;d++)e=
a,f=c,g=b[d],g!=null&&(tC(e,f,0),fKc(e.encoder_,g))},iKc);
var qKc=Di(function(a,b,c){if(fBc){if(a.nextWireType_!==1)b=!1;else{var d=a.decoder_;a=cx(d);d=cx(d);Ei(b,c,jb(Pa()?BigInt.asUintN(64,(BigInt(d>>>0)<<BigInt(32))+BigInt(a>>>0)):nb(a,d)));b=!0}return b}if(a.nextWireType_!==1)return!1;d=a.decoder_;a=cx(d);d=cx(d);Ei(b,c,nb(a,d));return!0},function(a,b,c){b=bda(b);if(b!=null){switch(typeof b){case "string":aKc(b)}tC(a,c,1);switch(typeof b){case "number":a.encoder_.writeUint64(b);break;case "bigint":c=BigInt.asUintN(64,b);c=new ZJc(Number(c&BigInt(4294967295)),
Number(c>>BigInt(32)));a.encoder_.writeSplitFixed64(c.lo,c.hi);break;default:c=aKc(b),a.encoder_.writeSplitFixed64(c.lo,c.hi)}}},Ai()),rKc=Di(function(a,b,c){if(a.nextWireType_!==5)return!1;Ei(b,c,cx(a.decoder_));return!0},function(a,b,c){b=Kca(b);b!=null&&(tC(a,c,5),a.encoder_.writeUint32(b))},Ai()),vC=Di(function(a,b,c){if(a.nextWireType_!==0)return!1;Ei(b,c,UBc(a.decoder_));return!0},bva,gKc),sKc=Di(function(a,b,c,d){if(a.nextWireType_!==0)return!1;gx(b,c,d,UBc(a.decoder_));return!0},bva,gKc),
tKc=Di(function(a,b,c){if(a.nextWireType_!==2)return!1;a=ZBc(a);Ei(b,c,a===""?void 0:a);return!0},dva,hKc),wC=Di(function(a,b,c){if(a.nextWireType_!==2)return!1;Ei(b,c,ZBc(a));return!0},dva,hKc),uKc=Di(function(a,b,c,d){if(a.nextWireType_!==2)return!1;gx(b,c,d,ZBc(a));return!0},dva,hKc),vKc,wKc=void 0;wKc=wKc===void 0?vua:wKc;
vKc=new Bi(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;d=$da(void 0,d);pea(b,b[Ra]|0,c).push(d);YBc(a,d,e);return!0},function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)eva(a,b[f],c,d,e);a=b[Ra]|0;a&1||(b[Ra]=a|1)}},wKc);
var xKc=wua(function(a,b,c,d,e,f){if(a.nextWireType_!==2)return!1;var g=b[Ra]|0;tea(b,g,f,c,gb(g));b=aCc(b,d,c);YBc(a,b,e);return!0},eva),yKc=Di(function(a,b,c){if(a.nextWireType_!==2)return!1;Ei(b,c,a.readByteString());return!0},fva,kKc),zKc=Di(function(a,b,c,d){if(a.nextWireType_!==2)return!1;gx(b,c,d,a.readByteString());return!0},fva,kKc),AKc=Di(function(a,b,c){if(a.nextWireType_!==0)return!1;Ei(b,c,bx(a.decoder_));return!0},function(a,b,c){a.writeEnum(c,Cb(b))},Ai());var xC=function(a,b,c){this.fieldIndex=a;this.ctor=c;this.isRepeated=0;this.getExtensionFn=Y;this.setExtensionFn=hj;this.defaultValue=void 0;this.hasMessageId=b.messageId!=null?fb:void 0};xC.prototype.register=function(){lBc(this)};var yC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(yC,X);yC.prototype.getValuesList=function(a){return Wi(this,zC,1,Xi(a))};yC.prototype.setValuesList=function(a){return ij(this,1,a)};yC.prototype.setValues=function(a,b){dx(this,1,zC,a,b)};var zC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(zC,X);h=zC.prototype;h.getValueCase=function(){return Oo(this,AC)};h.getName=function(){return Fi(this,1)};
h.setName=function(a){return Gj(this,1,a)};h.hasName=function(){return xm(this,1)};h.getNameOrUndefined=function(){return mx(this,1)};h.getDescription=function(){return Fi(this,2)};h.setDescription=function(a){return Gj(this,2,a)};h.hasDescription=function(){return xm(this,2)};h.getStringValue=function(){return So(this,4,AC)};h.setStringValue=function(a){return Vo(this,4,AC,a)};h.hasStringValue=function(){return Cr(this,4,AC)!=null};var AC=[3,4];var CKc=[0,vKc,function(){return BKc}],BKc=[0,AC,wC,-1,xKc,function(){return CKc},uKc];var DKc=nva(CKc);var BC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(BC,X);BC.prototype.addPreamble=function(a){Vq(this,6,a)};var CC=function(){this.overrideOptions=new BC;this.overrideParentUrl="";this.isDarkMode$=new Xj(!1);this.overrideAppProvidedContext=new yC;this.overrideIsFirstTurnFromMoma=!0;this.overrideOnboardingExamplesList$=new Xj(void 0);this.debugDisplayOptions$=new Xj({showResponseMetadata:!1});this.overrideDisclaimer=this.overrideAgentMessageDisplayName=void 0};h=CC.prototype;h.getModelOverrideOptions=function(){return this.overrideOptions};
h.setAppProvidedContext=function(a){this.overrideAppProvidedContext=a};h.getAppProvidedContext=function(){return this.overrideAppProvidedContext};h.addPreamble=function(a){this.overrideOptions.addPreamble(a)};h.getDisallowRestrictedContent=function(){return!1};h.setOnboardingExamplesList=function(a){this.overrideOnboardingExamplesList$.next(a)};CC.\u0275fac=function(a){return new (a||CC)};CC.\u0275prov=Cc({token:CC,factory:CC.\u0275fac,providedIn:"root"});var EKc=function(a,b,c){this.requestMessage=a;this.methodDescriptor=b;this.metadata=c};EKc.prototype.getMetadata=function(){return this.metadata};var FKc=function(a,b){b=b===void 0?{}:b;this.responseMessage=a;this.metadata=b;this.status=null};FKc.prototype.getMetadata=function(){return this.metadata};FKc.prototype.getStatus=function(){return this.status};var DC=function(a,b,c,d,e){this.name=a;this.requestType=b;this.responseType=c;this.requestSerializeFn=d;this.responseDeserializeFn=e},GKc=function(a,b,c){c=c===void 0?{}:c;return new EKc(b,a,c)};DC.prototype.getName=function(){return this.name};var EC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(EC,X);EC.prototype.getSessionId=function(){return Fi(this,1)};EC.prototype.setSessionId=function(a){return Gj(this,1,a)};EC.prototype.hasSessionId=function(){return xm(this,1)};var HKc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(HKc,X);var IKc=new DC("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/DeleteSession",EC,HKc,function(a){return a.serialize()},Hi(HKc));var JKc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(JKc,X);h=JKc.prototype;h.getAgentId=function(){return Fi(this,1)};h.setAgentId=function(a){return Gj(this,1,a)};h.hasAgentId=function(){return xm(this,1)};h.getAgentVersion=function(){return Fi(this,2)};h.setAgentVersion=function(a){Gj(this,2,a)};h.hasAgentVersion=function(){return xm(this,2)};var FC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(FC,X);var GC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(GC,X);GC.prototype.getKindCase=function(){return Oo(this,HC)};GC.prototype.getStringValue=function(){return So(this,3,HC)};GC.prototype.setStringValue=function(a){return Vo(this,3,HC,a)};GC.prototype.hasStringValue=function(){return Cr(this,3,HC)!=null};
var IC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(IC,X);IC.prototype.getValuesList=function(a){return Wi(this,GC,1,Xi(a))};IC.prototype.setValuesList=function(a){return ij(this,1,a)};IC.prototype.setValues=function(a,b){dx(this,1,GC,a,b)};var HC=[1,2,3,4,5,6];var JC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(JC,X);h=JC.prototype;h.getAgentId=function(){return Fi(this,1)};h.setAgentId=function(a){return Gj(this,1,a)};h.hasAgentId=function(){return xm(this,1)};h.getModelId=function(){return Fi(this,2)};h.setModelId=function(a){return Gj(this,2,a)};h.setSystemInstruction=function(a){Gj(this,3,a)};var nj=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(nj,X);h=nj.prototype;h.getSeconds=function(){return Hn(this,1)};h.getSeconds_asString=function(){return Ln(this,1)};h.setSeconds=function(a){return ap(this,1,a)};h.getNanos=function(){return Wm(this,2)};h.setNanos=function(a){return sn(this,2,a)};h.toDate=function(){var a=Number(this.getSeconds_asString()),b=this.getNanos();return new Date(a*1E3+b/1E6)};
h.fromMillis=function(a){Number.isFinite(a)||(a=0);return this.setSeconds(Math.floor(a/1E3)).setNanos((a%1E3+1E3)%1E3*1E6)};var WUa=function(a){return(new nj).fromMillis(a.getTime())};var KKc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(KKc,X);h=KKc.prototype;h.getName=function(){return Fi(this,1)};h.setName=function(a){return Gj(this,1,a)};h.hasName=function(){return xm(this,1)};h.getNameOrUndefined=function(){return mx(this,1)};h.getArgs=function(){return Y(this,FC,2)};h.getId=function(){return Fi(this,3)};h.setId=function(a){return Gj(this,3,a)};var LKc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(LKc,X);h=LKc.prototype;h.getDataCase=function(){return Oo(this,KC)};h.clearData=function(){return fx(this,KC)};h.getText=function(){return So(this,2,KC)};h.setText=function(a){return Vo(this,2,KC,a)};h.hasText=function(){return Cr(this,2,KC)!=null};h.getFunctionCall=function(){return lm(this,KKc,3,KC)};h.hasFunctionCall=function(){return lj(this,KKc,3,KC)};h.getThought=function(){return $i(this,5)};
var KC=[2,3,4];var LC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(LC,X);h=LC.prototype;h.getPartsList=function(){return Wi(this,LKc,1,Xi())};h.addParts=function(a){return fq(this,1,LKc,a)};h.getRole=function(){return Ri(this,2)};h.setRole=function(a){return Yn(this,2,a)};h.getAuthor=function(){return Fi(this,3)};h.setAuthor=function(a){Gj(this,3,a)};h.hasAuthor=function(){return xm(this,3)};h.getMetadata=function(){return Y(this,FC,4)};
h.getMutableMetadata=function(){return cj(this,FC,4)};h.setMetadata=function(a){hj(this,FC,4,a)};h.hasMetadata=function(){return Si(this,FC,4)};var Yi=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Yi,X);var MKc=function(a,b){return ij(a,9,b)};var MC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(MC,X);h=MC.prototype;h.getFeedbackId=function(){return Fi(this,1)};h.setFeedbackId=function(a){return Gj(this,1,a)};h.getFeedbackType=function(){return Ri(this,2)};h.setFeedbackType=function(a){return Yn(this,2,a)};h.hasFeedbackType=function(){return ym(this,2)};h.getFeedbackReason=function(){return Fi(this,3)};h.setFeedbackReason=function(a){return Gj(this,3,a)};h.hasFeedbackReason=function(){return xm(this,3)};
h.getFeedbackLabelsList=function(){return Xm(this,4,Xi())};h.setFeedbackLabelsList=function(a){return an(this,4,a)};h.addAllFeedbackLabels=function(a){yc(this,4,Nb,a,Ob)};h.getCreationTimestamp=function(){return Y(this,nj,5)};h.setCreationTimestamp=function(a){return hj(this,nj,5,a)};h.getIsDeleted=function(){return $i(this,6)};h.setIsDeleted=function(a){jj(this,6,a)};h.getMessageId=function(){return Fi(this,7)};h.setMessageId=function(a){return Gj(this,7,a)};
h.hasMessageId=function(){return xm(this,7)};h.getSessionId=function(){return Fi(this,8)};h.setSessionId=function(a){return Gj(this,8,a)};h.hasSessionId=function(){return xm(this,8)};h.getHelpfulness=function(){return Ri(this,9)};h.setHelpfulness=function(a){return Yn(this,9,a)};var NC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(NC,X);NC.prototype.getValue=function(){return Fi(this,1)};NC.prototype.setValue=function(a){return Gj(this,1,a)};NC.prototype.hasValue=function(){return xm(this,1)};var NKc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(NKc,X);var OC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(OC,X);OC.prototype.getPrompt=function(){return Fi(this,1)};OC.prototype.getLabel=function(){return Fi(this,2)};OC.prototype.setLabel=function(a){return Gj(this,2,a)};OC.prototype.hasLabel=function(){return xm(this,2)};var oNa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(oNa,X);h=oNa.prototype;h.getStartTime=function(){return Y(this,nj,1)};h.setStartTime=function(a){hj(this,nj,1,a)};h.getEndTime=function(){return Y(this,nj,2)};h.setEndTime=function(a){hj(this,nj,2,a)};h.hasEndTime=function(){return Si(this,nj,2)};h.getValue=function(){return tm(this,3)};h.setValue=function(a){return tx(this,3,a)};h.hasValue=function(){return um(this,3,void 0,void 0,ub)!=null};var nNa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(nNa,X);var pNa=[1];var OKc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(OKc,X);OKc.prototype.getLabel=function(){return Fi(this,1)};OKc.prototype.setLabel=function(a){return Gj(this,1,a)};OKc.prototype.hasLabel=function(){return xm(this,1)};var PKc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(PKc,X);PKc.prototype.getTitle=function(){return Fi(this,1)};PKc.prototype.setTitle=function(a){return Gj(this,1,a)};var fwa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(fwa,X);fwa.prototype.getButton=function(){return lm(this,OC,1,QKc)};fwa.prototype.getChart=function(){return lm(this,PKc,6,QKc)};var QKc=[1,2,3,4,5,6];var nQa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(nQa,X);h=nQa.prototype;h.getTitle=function(){return Fi(this,1)};h.setTitle=function(a){return Gj(this,1,a)};h.getUrl=function(){return Fi(this,2)};h.setUrl=function(a){return Gj(this,2,a)};h.hasUrl=function(){return xm(this,2)};var RKc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(RKc,X);var SKc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(SKc,X);h=SKc.prototype;h.getTitle=function(){return Fi(this,1)};h.setTitle=function(a){return Gj(this,1,a)};h.getUrl=function(){return Fi(this,2)};h.setUrl=function(a){return Gj(this,2,a)};h.hasUrl=function(){return xm(this,2)};h.getIconUrl=function(){return Fi(this,3)};h.setIconUrl=function(a){return Gj(this,3,a)};h.getLastModificationTime=function(){return Y(this,nj,4)};
h.getIsPrivateDocument=function(){return $i(this,7)};h.setIsPrivateDocument=function(a){return jj(this,7,a)};var DXa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(DXa,X);var Am=function(a){return Wi(a,SKc,1,Xi())};var TKc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(TKc,X);TKc.prototype.setReferrerUrl=function(a){return Gj(this,2,a)};var kwa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(kwa,X);kwa.prototype.setReferrerUrl=function(a){return Gj(this,1,a)};var lwa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(lwa,X);h=lwa.prototype;h.getUrl=function(){return Fi(this,1)};h.setUrl=function(a){return Gj(this,1,a)};h.hasUrl=function(){return xm(this,1)};h.getTitle=function(){return Fi(this,2)};h.setTitle=function(a){return Gj(this,2,a)};h.getTagsList=function(a){return Xm(this,3,Xi(a))};h.getTags=function(a){return ox(this,3,a)};var Vi=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Vi,X);var zm=function(a){return lm(a,DXa,6,mj)},mj=[3,4,5,6,7];var UKc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(UKc,X);var VKc=[0,nKc,rKc,-1];var cQa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(cQa,X);var hQa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(hQa,X);var PC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(PC,X);var wm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(wm,X);var A3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(A3a,X);A3a.prototype.getValue=function(){return Hn(this,1)};A3a.prototype.setValue=function(a){return ap(this,1,a)};var kr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(kr,X);h=kr.prototype;h.getTypeName=function(){return Fi(this,1).split("/").pop()};h.pack=function(a,b,c){c=c===void 0?"type.googleapis.com/":c;c.substr(-1)!=="/"&&(c+="/");$m(this,1,c+b);return fp(this,2,a)};h.getValue=function(){var a=um(this,2);if(Array.isArray(a)||a instanceof X)throw Error("fb");return lo(this,2)};
h.setValue=function(a){if(a==null)a=this;else if(Array.isArray(a))a=$r(this,2,Oda(a,0,Yb));else if(typeof a==="string"||a instanceof Wa||Oa(a))a=fp(this,2,a);else throw Error("da`"+a);return a};h.unpack=function(a,b){return jva(this,void 0,a,b)};var jr=function(a,b,c){return jva(a,b,void 0,c)},WKc=ova(kr);var qm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(qm,X);h=qm.prototype;h.getYear=function(){return Wm(this,1)};h.setYear=function(a){return sn(this,1,a)};h.getMonth=function(){return Wm(this,2)};h.setMonth=function(a){return sn(this,2,a)};h.getDay=function(){return Wm(this,3)};var Xq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Xq,X);var z3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(z3a,X);z3a.prototype.getValue=function(){return Wm(this,1)};z3a.prototype.setValue=function(a){return sn(this,1,a)};var C3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(C3a,X);C3a.prototype.getValue=function(){return $i(this,1)};C3a.prototype.setValue=function(a){return sp(this,1,a)};var vn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(vn,X);h=vn.prototype;h.getSeconds=function(){return Hn(this,1)};h.getSeconds_asString=function(){return Ln(this,1)};h.setSeconds=function(a){return ap(this,1,a)};h.getNanos=function(){return Wm(this,2)};h.setNanos=function(a){return sn(this,2,a)};h.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 Hr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Hr,X);h=Hr.prototype;h.getHours=function(){return Wm(this,1)};h.setHours=function(a){return sn(this,1,a)};h.getMinutes=function(){return Wm(this,2)};h.setMinutes=function(a){return sn(this,2,a)};h.getSeconds=function(){return Wm(this,3)};h.setSeconds=function(a){return sn(this,3,a)};h.getNanos=function(){return Wm(this,4)};h.setNanos=function(a){return sn(this,4,a)};var EVa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(EVa,X);var B3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(B3a,X);B3a.prototype.getValue=function(){return Fi(this,1)};B3a.prototype.setValue=function(a){return $m(this,1,a)};var RPa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(RPa,X);var XKc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(XKc,X);XKc.prototype.getAltText=function(){return Ml(this,2)};XKc.prototype.setAltText=function(a){return Gj(this,2,a)};var vm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(vm,X);vm.prototype.getIcon=function(){return Y(this,XKc,3)};vm.prototype.setIcon=function(a){return hj(this,XKc,3,a)};vm.prototype.getLastModificationTime=function(){return Y(this,nj,4)};var WPa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(WPa,X);var YKc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(YKc,X);h=YKc.prototype;h.getCode=function(){return Wm(this,1)};h.setCode=function(a){return Wn(this,1,a)};h.getCodeOrUndefined=function(){return lx(this,1)};h.getMessage=function(){return Fi(this,3)};h.setMessage=function(a){return Gj(this,3,a)};var jQa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(jQa,X);var fQa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(fQa,X);var xQa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,60)};Z(xQa,X);h=xQa.prototype;h.getGoogleSearchQuery=function(){return Fi(this,1)};h.hasGoogleSearchQuery=function(){return xm(this,1)};h.getTimestamp=function(){return Y(this,nj,18)};h.setTimestamp=function(a){return hj(this,nj,18,a)};h.hasTimestamp=function(){return Si(this,nj,18)};var ZKc=[0,VKc,nKc];var $Kc=[0,tKc,lKc];var wQa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(wQa,X);var vQa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(vQa,X);var yQa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(yQa,X);yQa.prototype.getGoogleSearchQuery=function(){return tm(this,14)};yQa.prototype.hasGoogleSearchQuery=function(){return um(this,14,void 0,void 0,ub)!=null};var dwa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(dwa,X);h=dwa.prototype;h.getModelId=function(){return Fi(this,1)};h.setModelId=function(a){return Gj(this,1,a)};h.getModelOverrideOptions=function(){return Y(this,BC,6)};h.setModelOverrideOptions=function(a){hj(this,BC,6,a)};h.getCreationTimestamp=function(){return Y(this,nj,9)};h.setCreationTimestamp=function(a){return hj(this,nj,9,a)};h.getConversationAgentModelId=function(){return Fi(this,13)};
h.setConversationAgentModelId=function(a){Gj(this,13,a)};h.hasConversationAgentModelId=function(){return xm(this,13)};h.getConversationAgentId=function(){return Fi(this,14)};h.setConversationAgentId=function(a){return Gj(this,14,a)};h.hasConversationAgentId=function(){return xm(this,14)};var Ti=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Ti,X);var aLc=function(a,b){return Gj(a,2,b)};h=Ti.prototype;h.getSourceLinkList=function(){return Xm(this,3,Xi())};h.setSourceLinkList=function(a){return an(this,3,a)};h.addAllSourceLink=function(a){yc(this,3,Nb,a,Ob)};h.getCreationTimestamp=function(){return Y(this,nj,4)};h.setCreationTimestamp=function(a){return hj(this,nj,4,a)};var dj=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(dj,X);h=dj.prototype;h.getType=function(){return Ri(this,1)};h.setType=function(a){return Yn(this,1,a)};h.hasType=function(){return ym(this,1)};h.getUrl=function(){return Fi(this,2)};h.setUrl=function(a){return Gj(this,2,a)};h.hasUrl=function(){return xm(this,2)};var kj=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(kj,X);kj.prototype.getUrl=function(){return So(this,1,aj)};kj.prototype.setUrl=function(a){return Vo(this,1,aj,a)};kj.prototype.hasUrl=function(){return Cr(this,1,aj)!=null};var bLc=function(a){return lm(a,dj,2,aj)},iwa=function(a,b){return op(a,2,aj,b)},aj=[1,2,3];var fj=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(fj,X);h=fj.prototype;h.getMessageId=function(){return Fi(this,1)};h.setMessageId=function(a){return Gj(this,1,a)};h.hasMessageId=function(){return xm(this,1)};h.getSessionId=function(){return Fi(this,2)};h.setSessionId=function(a){return Gj(this,2,a)};h.hasSessionId=function(){return xm(this,2)};h.getText=function(){return Fi(this,3)};h.setText=function(a){return Gj(this,3,a)};
h.hasText=function(){return xm(this,3)};h.getUserProvidedContextList=function(){return Wi(this,kj,24,Xi())};h.setUserProvidedContextList=function(a){ij(this,24,a)};h.addAllUserProvidedContext=function(a){eq(this,24,kj,a)};h.getUserProvidedContextCount=function(){return Ui(this,kj,24)};h.getAppProvidedContext=function(){return Y(this,yC,23)};h.setAppProvidedContext=function(a){hj(this,yC,23,a)};h.hasAppProvidedContext=function(){return Si(this,yC,23)};h.getModelId=function(){return Fi(this,4)};
h.setModelId=function(a){return Gj(this,4,a)};var gwa=function(a,b){return Yn(a,5,b)};h=fj.prototype;h.getCreationTimestamp=function(){return Y(this,nj,6)};h.setCreationTimestamp=function(a){return hj(this,nj,6,a)};h.getClient=function(){return Ri(this,7)};h.setClient=function(a){return Yn(this,7,a)};h.hasClient=function(){return ym(this,7)};h.getFeedback=function(){return Y(this,MC,9)};h.setFeedback=function(a){return hj(this,MC,9,a)};h.hasFeedback=function(){return Si(this,MC,9)};
var hwa=function(a,b){jj(a,20,b)};var QC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(QC,X);h=QC.prototype;h.getPrivacyMode=function(){return Ri(this,1)};h.setPrivacyMode=function(a){return Yn(this,1,a)};h.hasPrivacyMode=function(){return ym(this,1)};h.getMessagesList=function(){return Wi(this,fj,2,Xi())};h.setMessagesList=function(a){return ij(this,2,a)};var RC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(RC,X);h=RC.prototype;h.getSessionId=function(){return Fi(this,1)};h.setSessionId=function(a){return Gj(this,1,a)};h.hasSessionId=function(){return xm(this,1)};h.getModelId=function(){return Fi(this,2)};h.setModelId=function(a){return Gj(this,2,a)};h.getText=function(){return Fi(this,3)};h.setText=function(a){return Gj(this,3,a)};h.hasText=function(){return xm(this,3)};
h.getDisallowRestrictedContent=function(){return $i(this,13)};h.setDisallowRestrictedContent=function(a){return jj(this,13,a)};h.hasDisallowRestrictedContent=function(){return Zi(this,13)};h.getConversationHistory=function(){return Y(this,QC,11)};h.setConversationHistory=function(a){return hj(this,QC,11,a)};h.hasConversationHistory=function(){return Si(this,QC,11)};h.getDuckieClient=function(){return Ri(this,5)};h.setDuckieClient=function(a){return Yn(this,5,a)};
h.getModelOverrideOptions=function(){return Y(this,BC,7)};h.setModelOverrideOptions=function(a){hj(this,BC,7,a)};h.getUserProvidedContextList=function(){return Wi(this,kj,14,Xi())};h.setUserProvidedContextList=function(a){ij(this,14,a)};h.addAllUserProvidedContext=function(a){eq(this,14,kj,a)};h.getUserProvidedContextCount=function(){return Ui(this,kj,14)};h.getAppProvidedContext=function(){return Y(this,yC,16)};h.setAppProvidedContext=function(a){hj(this,yC,16,a)};
h.hasAppProvidedContext=function(){return Si(this,yC,16)};h.getConversationAgent=function(){return Y(this,JC,15)};h.setConversationAgent=function(a){return hj(this,JC,15,a)};h.hasConversationAgent=function(){return Si(this,JC,15)};var cLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(cLc,X);h=cLc.prototype;h.getResponse=function(){return Y(this,fj,1)};h.getMutableResponse=function(){return cj(this,fj,1)};h.hasResponse=function(){return Si(this,fj,1)};h.getConversationHistory=function(){return Y(this,QC,5)};h.setConversationHistory=function(a){return hj(this,QC,5,a)};h.hasConversationHistory=function(){return Si(this,QC,5)};h.getQuery=function(){return Y(this,fj,2)};
h.setQuery=function(a){return hj(this,fj,2,a)};h.clearQuery=function(){ex(this,2)};h.hasQuery=function(){return Si(this,fj,2)};h.getUserProvidedContextList=function(){return Wi(this,kj,6,Xi())};h.setUserProvidedContextList=function(a){ij(this,6,a)};h.addAllUserProvidedContext=function(a){eq(this,6,kj,a)};h.getUserProvidedContextCount=function(){return Ui(this,kj,6)};var dLc=new DC("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GenerateAnswers",RC,cLc,function(a){return a.serialize()},Hi(cLc));var SC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(SC,X);SC.prototype.getSessionId=function(){return Fi(this,1)};SC.prototype.setSessionId=function(a){return Gj(this,1,a)};SC.prototype.hasSessionId=function(){return xm(this,1)};var eLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(eLc,X);h=eLc.prototype;h.getSessionId=function(){return Fi(this,1)};h.setSessionId=function(a){return Gj(this,1,a)};h.hasSessionId=function(){return xm(this,1)};h.getMessagesList=function(){return Wi(this,fj,2,Xi())};h.setMessagesList=function(a){return ij(this,2,a)};h.getConversationAgentModelId=function(){return Fi(this,13)};h.setConversationAgentModelId=function(a){Gj(this,13,a)};
h.hasConversationAgentModelId=function(){return xm(this,13)};h.getConversationAgentId=function(){return Fi(this,14)};h.setConversationAgentId=function(a){return Gj(this,14,a)};h.hasConversationAgentId=function(){return xm(this,14)};h.getModelId=function(){return Fi(this,3)};h.setModelId=function(a){return Gj(this,3,a)};h.getAgentId=function(){return Fi(this,10)};h.setAgentId=function(a){return Gj(this,10,a)};h.hasAgentId=function(){return xm(this,10)};h.getAgentVersion=function(){return Fi(this,11)};
h.setAgentVersion=function(a){Gj(this,11,a)};h.hasAgentVersion=function(){return xm(this,11)};h.getTitle=function(){return Fi(this,5)};h.setTitle=function(a){return Gj(this,5,a)};h.getSessionState=function(){return Ri(this,6)};h.setSessionState=function(a){return Yn(this,6,a)};h.hasSessionState=function(){return ym(this,6)};h.getPrivacyMode=function(){return Ri(this,9)};h.setPrivacyMode=function(a){return Yn(this,9,a)};h.hasPrivacyMode=function(){return ym(this,9)};
h.getCreationTimestamp=function(){return Y(this,nj,7)};h.setCreationTimestamp=function(a){return hj(this,nj,7,a)};h.getUserProvidedContextList=function(){return Wi(this,kj,12,Xi())};h.setUserProvidedContextList=function(a){ij(this,12,a)};h.addAllUserProvidedContext=function(a){eq(this,12,kj,a)};h.getUserProvidedContextCount=function(){return Ui(this,kj,12)};h.getHelpfulness=function(){return Ri(this,15)};h.setHelpfulness=function(a){return Yn(this,15,a)};var fLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(fLc,X);fLc.prototype.getSession=function(){return Y(this,eLc,1)};var gLc=new DC("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetSession",SC,fLc,function(a){return a.serialize()},Hi(fLc));var hLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(hLc,X);h=hLc.prototype;h.getAgentId=function(){return Fi(this,3)};h.setAgentId=function(a){return Gj(this,3,a)};h.hasAgentId=function(){return xm(this,3)};h.getAgentVersion=function(){return Fi(this,4)};h.setAgentVersion=function(a){Gj(this,4,a)};h.hasAgentVersion=function(){return xm(this,4)};h.getConversationAgentId=function(){return Fi(this,5)};h.setConversationAgentId=function(a){return Gj(this,5,a)};
h.hasConversationAgentId=function(){return xm(this,5)};h.getConversationAgentModelId=function(){return Fi(this,6)};h.setConversationAgentModelId=function(a){Gj(this,6,a)};h.hasConversationAgentModelId=function(){return xm(this,6)};var iLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(iLc,X);h=iLc.prototype;h.getSessionId=function(){return Fi(this,1)};h.setSessionId=function(a){return Gj(this,1,a)};h.hasSessionId=function(){return xm(this,1)};h.getConversationAgentModelId=function(){return Fi(this,11)};h.setConversationAgentModelId=function(a){Gj(this,11,a)};h.hasConversationAgentModelId=function(){return xm(this,11)};h.getConversationAgentId=function(){return Fi(this,12)};
h.setConversationAgentId=function(a){return Gj(this,12,a)};h.hasConversationAgentId=function(){return xm(this,12)};h.getAgentId=function(){return Fi(this,9)};h.setAgentId=function(a){return Gj(this,9,a)};h.hasAgentId=function(){return xm(this,9)};h.getAgentVersion=function(){return Fi(this,10)};h.setAgentVersion=function(a){Gj(this,10,a)};h.hasAgentVersion=function(){return xm(this,10)};h.getTitle=function(){return Fi(this,2)};h.setTitle=function(a){return Gj(this,2,a)};
h.getClient=function(){return Ri(this,3)};h.setClient=function(a){return Yn(this,3,a)};h.hasClient=function(){return ym(this,3)};h.getSessionState=function(){return Ri(this,4)};h.setSessionState=function(a){return Yn(this,4,a)};h.hasSessionState=function(){return ym(this,4)};h.getPrivacyMode=function(){return Ri(this,5)};h.setPrivacyMode=function(a){return Yn(this,5,a)};h.hasPrivacyMode=function(){return ym(this,5)};var jLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(jLc,X);var kLc=new DC("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetSessionSummaries",hLc,jLc,function(a){return a.serialize()},Hi(jLc));var lLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(lLc,X);var mLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(mLc,X);h=mLc.prototype;h.getClient=function(){return Ri(this,1)};h.setClient=function(a){return Yn(this,1,a)};h.hasClient=function(){return ym(this,1)};h.getTimestamp=function(){return Y(this,nj,2)};h.setTimestamp=function(a){return hj(this,nj,2,a)};h.hasTimestamp=function(){return Si(this,nj,2)};var TC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(TC,X);TC.prototype.getDisallowRestrictedContent=function(){return $i(this,4)};TC.prototype.setDisallowRestrictedContent=function(a){return jj(this,4,a)};TC.prototype.hasDisallowRestrictedContent=function(){return Zi(this,4)};TC.prototype.getDuckieModelPreferences=function(a){return px(this,5,a)};var UC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(UC,X);UC.prototype.getUserState=function(){return Y(this,TC,1)};UC.prototype.setUserState=function(a){return hj(this,TC,1,a)};var nLc=new DC("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetUserState",lLc,UC,function(a){return a.serialize()},Hi(UC));var VC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(VC,X);h=VC.prototype;h.getMessageId=function(){return Fi(this,1)};h.setMessageId=function(a){return Gj(this,1,a)};h.hasMessageId=function(){return xm(this,1)};h.getSessionId=function(){return Fi(this,2)};h.setSessionId=function(a){return Gj(this,2,a)};h.hasSessionId=function(){return xm(this,2)};h.getFeedbackType=function(){return Ri(this,3)};h.setFeedbackType=function(a){return Yn(this,3,a)};
h.hasFeedbackType=function(){return ym(this,3)};h.getFeedbackLabelsList=function(){return Xm(this,4,Xi())};h.setFeedbackLabelsList=function(a){return an(this,4,a)};h.addAllFeedbackLabels=function(a){yc(this,4,Nb,a,Ob)};h.getFeedbackReason=function(){return Fi(this,5)};h.setFeedbackReason=function(a){return Gj(this,5,a)};h.hasFeedbackReason=function(){return xm(this,5)};var oLc=function(a,b){return Yn(a,6,b)};var pLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(pLc,X);pLc.prototype.getFeedbackId=function(){return Fi(this,1)};pLc.prototype.setFeedbackId=function(a){return Gj(this,1,a)};var qLc=new DC("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/ProvideFeedback",VC,pLc,function(a){return a.serialize()},Hi(pLc));var rLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(rLc,X);h=rLc.prototype;h.getMessageId=function(){return Fi(this,1)};h.setMessageId=function(a){return Gj(this,1,a)};h.hasMessageId=function(){return xm(this,1)};h.getSessionId=function(){return Fi(this,2)};h.setSessionId=function(a){return Gj(this,2,a)};h.hasSessionId=function(){return xm(this,2)};h.getText=function(){return Fi(this,3)};h.setText=function(a){return Gj(this,3,a)};
h.hasText=function(){return xm(this,3)};h.getSourceLinkList=function(){return Xm(this,4,Xi())};h.setSourceLinkList=function(a){return an(this,4,a)};h.addAllSourceLink=function(a){yc(this,4,Nb,a,Ob)};var sLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(sLc,X);var tLc=new DC("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/ProvideRewrite",rLc,sLc,function(a){return a.serialize()},Hi(sLc));var bwa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(bwa,X);h=bwa.prototype;h.getSessionId=function(){return Fi(this,1)};h.setSessionId=function(a){return Gj(this,1,a)};h.hasSessionId=function(){return xm(this,1)};h.getText=function(){return Fi(this,2)};h.setText=function(a){return Gj(this,2,a)};h.hasText=function(){return xm(this,2)};h.getDisallowRestrictedContent=function(){return $i(this,3)};h.setDisallowRestrictedContent=function(a){return jj(this,3,a)};
h.hasDisallowRestrictedContent=function(){return Zi(this,3)};h.getConversationHistory=function(){return Y(this,QC,4)};h.setConversationHistory=function(a){return hj(this,QC,4,a)};h.hasConversationHistory=function(){return Si(this,QC,4)};h.getDuckieClient=function(){return Ri(this,5)};h.setDuckieClient=function(a){return Yn(this,5,a)};h.getUserProvidedContextList=function(){return Wi(this,kj,6,Xi())};h.setUserProvidedContextList=function(a){ij(this,6,a)};
h.addAllUserProvidedContext=function(a){eq(this,6,kj,a)};h.getUserProvidedContextCount=function(){return Ui(this,kj,6)};h.getAppProvidedContext=function(){return Y(this,yC,7)};h.setAppProvidedContext=function(a){hj(this,yC,7,a)};h.hasAppProvidedContext=function(){return Si(this,yC,7)};h.getConversationAgent=function(){return Y(this,JC,8)};h.setConversationAgent=function(a){return hj(this,JC,8,a)};h.hasConversationAgent=function(){return Si(this,JC,8)};var uLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(uLc,X);h=uLc.prototype;h.getResponse=function(){return Y(this,fj,1)};h.getMutableResponse=function(){return cj(this,fj,1)};h.hasResponse=function(){return Si(this,fj,1)};h.getConversationHistory=function(){return Y(this,QC,2)};h.setConversationHistory=function(a){return hj(this,QC,2,a)};h.hasConversationHistory=function(){return Si(this,QC,2)};h.getUserProvidedContextList=function(){return Wi(this,kj,3,Xi())};
h.setUserProvidedContextList=function(a){ij(this,3,a)};h.addAllUserProvidedContext=function(a){eq(this,3,kj,a)};h.getUserProvidedContextCount=function(){return Ui(this,kj,3)};var vLc=new DC("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/StreamGenerateAnswers",bwa,uLc,function(a){return a.serialize()},Hi(uLc));var WC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(WC,X);h=WC.prototype;h.getSessionId=function(){return Fi(this,1)};h.setSessionId=function(a){return Gj(this,1,a)};h.hasSessionId=function(){return xm(this,1)};h.getTitle=function(){return Fi(this,2)};h.setTitle=function(a){return Gj(this,2,a)};h.getSessionState=function(){return Ri(this,3)};h.setSessionState=function(a){return Yn(this,3,a)};h.hasSessionState=function(){return ym(this,3)};var wLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(wLc,X);wLc.prototype.getSession=function(){return Y(this,eLc,1)};var xLc=new DC("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/UpdateSession",WC,wLc,function(a){return a.serialize()},Hi(wLc));var XC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(XC,X);XC.prototype.getUserState=function(){return Y(this,TC,1)};XC.prototype.setUserState=function(a){return hj(this,TC,1,a)};var yLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(yLc,X);yLc.prototype.getUserState=function(){return Y(this,TC,1)};yLc.prototype.setUserState=function(a){return hj(this,TC,1,a)};var zLc=new DC("/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/UpdateUserState",XC,yLc,function(a){return a.serialize()},Hi(yLc));var ALc=new Set(["SAPISIDHASH","APISIDHASH"]);var YC=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)};Z(YC,Error);YC.prototype.toString=function(){var a="RpcError("+(sva(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};var ZC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ZC,X);ZC.prototype.getCode=function(){return Wm(this,1)};ZC.prototype.setCode=function(a){return sn(this,1,a)};ZC.prototype.getMessage=function(){return Fi(this,2)};ZC.prototype.setMessage=function(a){return $m(this,2,a)};var BLc=Hi(ZC);var CLc=[],DLc=[],ELc=!1,FLc=function(a){CLc[CLc.length]=a;if(ELc)for(var b=0;b<DLc.length;b++)a(Dj(DLc[b].wrap,DLc[b]))};var Oi=function(){this.disposed_=this.disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};Oi.prototype.disposed_=!1;Oi.prototype.isDisposed=function(){return this.disposed_};Oi.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())};Oi.prototype[Symbol.dispose]=function(){this.dispose()};var Gt=function(a,b){b=et(Ii,b);a.disposed_?b():(a.onDisposeCallbacks_||(a.onDisposeCallbacks_=[]),a.onDisposeCallbacks_.push(b))};Oi.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var at=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1};at.prototype.stopPropagation=function(){this.propagationStopped_=!0};at.prototype.preventDefault=function(){this.defaultPrevented=!0};var GLc=function(){if(!ra.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{var c=function(){};ra.addEventListener("test",c,b);ra.removeEventListener("test",c,b)}catch(d){}return a}();var $C=function(a,b){at.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)};Ww($C,at);
$C.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=vj||a.offsetX!==void 0?a.offsetX:a.layerX,this.offsetY=
vj||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=Hv?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&&$C.superClass_.preventDefault.call(this)};$C.prototype.stopPropagation=function(){$C.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};$C.prototype.preventDefault=function(){$C.superClass_.preventDefault.call(this);var a=this.event_;a.preventDefault?a.preventDefault():a.returnValue=!1};var HLc="closure_listenable_"+(Math.random()*1E6|0),aD=function(a){return!(!a||!a[HLc])};var tva=0;var ILc=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.handler=null};var Gva="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Mi.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.typeCount_++);var g=JLc(a,b,d,e);g>-1?(b=a[g],c||(b.callOnce=!1)):(b=new uva(b,this.src,f,!!d,e),b.callOnce=c,a.push(b));return b};Mi.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=JLc(e,b,c,d);return b>-1?(ILc(e[b]),Cba(e,b),e.length==0&&(delete this.listeners[a],this.typeCount_--),!0):!1};
var KLc=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=La(a.listeners[c],b);d&&(ILc(b),a.listeners[c].length==0&&(delete a.listeners[c],a.typeCount_--));return d};Mi.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,ILc(d[e]);delete this.listeners[c];this.typeCount_--}return b};
Mi.prototype.getListener=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=JLc(a,b,c,d));return e>-1?a[e]:null};Mi.prototype.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return wva(this.listeners,function(f){for(var g=0;g<f.length;++g)if(!(c&&f[g].type!=d||e&&f[g].capture!=b))return!0;return!1})};var JLc=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 LLc="closure_lm_"+(Math.random()*1E6|0),MLc={},NLc=0,Cj=function(a,b,c,d,e){if(d&&d.once)return bD(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Cj(a,b[f],c,d,e);return null}c=OLc(c);return aD(a)?a.listen(b,c,gq(d)?!!d.capture:!!d,e):PLc(a,b,c,!1,d,e)},PLc=function(a,b,c,d,e,f){if(!b)throw Error("kb");var g=gq(e)?!!e.capture:!!e,k=QLc(a);k||(a[LLc]=k=new Mi(a));c=k.add(b,c,d,g,f);if(c.proxy)return c;d=RLc();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)GLc||(e=g),e===void 0&&
(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(SLc(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("lb");NLc++;return c},RLc=function(){var a=TLc,b=function(c){return a.call(b.src,b.listener,c)};return b},bD=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)bD(a,b[f],c,d,e);return null}c=OLc(c);return aD(a)?a.listenOnce(b,c,gq(d)?!!d.capture:!!d,e):PLc(a,b,c,!0,d,e)},cD=function(a,b,c,d,e){if(Array.isArray(b))for(var f=
0;f<b.length;f++)cD(a,b[f],c,d,e);else d=gq(d)?!!d.capture:!!d,c=OLc(c),aD(a)?a.unlisten(b,c,d,e):a&&(a=QLc(a))&&(b=a.getListener(b,c,d,e))&&dD(b)},dD=function(a){if(typeof a==="number"||!a||a.removed)return!1;var b=a.src;if(aD(b))return b.unlistenByKey(a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(SLc(c),d):b.addListener&&b.removeListener&&b.removeListener(d);NLc--;(c=QLc(b))?(KLc(c,a),c.typeCount_==0&&(c.src=null,b[LLc]=null)):ILc(a);
return!0},SLc=function(a){return a in MLc?MLc[a]:MLc[a]="on"+a},TLc=function(a,b){if(a.removed)a=!0;else{b=new $C(b,this);var c=a.listener,d=a.handler||a.src;a.callOnce&&dD(a);a=c.call(d,b)}return a},QLc=function(a){a=a[LLc];return a instanceof Mi?a:null},ULc="__closure_events_fn_"+(Math.random()*1E9>>>0),OLc=function(a){if(typeof a==="function")return a;a[ULc]||(a[ULc]=function(b){return a.handleEvent(b)});return a[ULc]};FLc(function(a){TLc=a(TLc)});var VLc=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 eD=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(a){return a&&AsyncContext.Snapshot.wrap(a)}:function(a){return a};var Aj=function(){Oi.call(this);this.eventTargetListeners_=new Mi(this);this.actualEventTarget_=this;this.parentEventTarget_=null};Ww(Aj,Oi);Aj.prototype[HLc]=!0;h=Aj.prototype;h.getParentEventTarget=function(){return this.parentEventTarget_};h.setParentEventTarget=function(a){this.parentEventTarget_=a};h.addEventListener=function(a,b,c,d){Cj(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){cD(this,a,b,c,d)};
h.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 at(a,c);else if(a instanceof at)a.target=a.target||c;else{var e=a;a=new at(d,c);Hva(a,e)}e=!0;var f;if(b)for(f=b.length-1;!a.propagationStopped_&&f>=0;f--){var g=a.currentTarget=b[f];e=g.fireListeners(d,!0,a)&&e}a.propagationStopped_||(g=a.currentTarget=c,e=g.fireListeners(d,!0,a)&&e,a.propagationStopped_||(e=g.fireListeners(d,
!1,a)&&e));if(b)for(f=0;!a.propagationStopped_&&f<b.length;f++)g=a.currentTarget=b[f],e=g.fireListeners(d,!1,a)&&e;return e};h.disposeInternal=function(){Aj.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};h.listen=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!1,c,d)};h.listenOnce=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!0,c,d)};
h.unlisten=function(a,b,c,d){return this.eventTargetListeners_.remove(String(a),b,c,d)};h.unlistenByKey=function(a){return KLc(this.eventTargetListeners_,a)};h.removeAllListeners=function(){this.eventTargetListeners_&&this.eventTargetListeners_.removeAll(void 0)};
h.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 g=f.listener,k=f.handler||f.src;f.callOnce&&this.unlistenByKey(f);d=g.call(k,c)!==!1&&d}}return d&&!c.defaultPrevented};h.getListener=function(a,b,c,d){return this.eventTargetListeners_.getListener(String(a),b,c,d)};
h.hasListener=function(a,b){return this.eventTargetListeners_.hasListener(a!==void 0?String(a):void 0,b)};var WLc=function(a){try{return ra.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("mb`"+a);};Iva.prototype.serialize=function(a){var b=[];XLc(this,a,b);return b.join("")};
var XLc=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],XLc(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),YLc(d,c),c.push(":"),XLc(a,a.replacer_?a.replacer_.call(b,
d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":YLc(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("nb`"+typeof b);}}},ZLc={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},$Lc=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,YLc=function(a,b){b.push('"',a.replace($Lc,
function(c){var d=ZLc[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),ZLc[c]=d);return d}),'"')};var aMc,bMc=function(){};Ww(bMc,Jva);bMc.prototype.createInstance=function(){return new XMLHttpRequest};aMc=new bMc;var eqb=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")},cMc=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},jab=function(a){return!/[^0-9]/.test(a)},Ni=function(a){return encodeURIComponent(String(a))},mu=function(a){XAc.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(RAc,"&amp;")),a.indexOf("<")!=-1&&(a=a.replace(SAc,"&lt;")),a.indexOf(">")!=-1&&(a=a.replace(TAc,"&gt;")),a.indexOf('"')!=
-1&&(a=a.replace(UAc,"&quot;")),a.indexOf("'")!=-1&&(a=a.replace(VAc,"&#39;")),a.indexOf("\x00")!=-1&&(a=a.replace(WAc,"&#0;")));return a},dMc=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},esc=function(a,b,c){return a.replace(new RegExp(qs(b),"g"),c.replace(/\$/g,"$$$$"))},qs=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},fD=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+"0".repeat(Math.max(0,b-c))+a},pu=function(a){return a==null?"":String(a)},Mqb=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)},YJa=Math.random()*2147483648|0,Nm=function(a){var b=Number(a);return b==0&&xa(a)?NaN:b},$wc=function(){return"height".replace(/\-([a-z])/g,
function(a,b){return b.toUpperCase()})},Yrc=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()},xj=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})},Jm=function(a){isFinite(a)&&(a=String(a));return typeof a==="string"?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN},eMc=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 fMc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Tva=/#|$/;var $s=function(a){Aj.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};Ww($s,Aj);
var gMc=/^https?$/i,hMc=["POST","PUT"],iMc=[],Gtb=function(a,b,c,d,e,f,g){var k=new $s;iMc.push(k);b&&k.listen("complete",b);k.listenOnce("ready",k.cleanupSend_);f&&(k.timeoutInterval_=Math.max(0,f));g&&(k.withCredentials_=g);k.send(a,c,d,e);return k};h=$s.prototype;h.cleanupSend_=function(){this.dispose();La(iMc,this)};h.setTrustToken=function(a){this.trustToken_=a};h.setAttributionReporting=function(a){this.attributionReportingOptions_=a};
h.send=function(a,b,c,d){if(this.xhr_)throw Error("ob`"+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=eD(Dj(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.xhr_.open(b,String(a),!0),this.inOpen_=!1}catch(g){this.error_(5,g);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("pb`"+String(d));d=Array.from(c.keys()).find(function(g){return"content-type"==g.toLowerCase()});e=ra.FormData&&a instanceof ra.FormData;!Ka(hMc,b)||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(g){}if("setAttributionReporting"in this.xhr_&&this.attributionReportingOptions_)try{this.xhr_.setAttributionReporting(this.attributionReportingOptions_)}catch(g){}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(g){this.error_(5,g)}};h.createXhr=function(){return this.xmlHttpFactory_?this.xmlHttpFactory_.createInstance():aMc.createInstance()};h.timeout_=function(){typeof xAc!="undefined"&&this.xhr_&&(this.lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
h.error_=function(a,b){this.active_=!1;this.xhr_&&(this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1);this.lastError_=b;this.lastErrorCode_=a;jMc(this);kMc(this)};var jMc=function(a){a.errorDispatched_||(a.errorDispatched_=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};$s.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"),kMc(this))};
$s.prototype.disposeInternal=function(){this.xhr_&&(this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1),kMc(this,!0));$s.superClass_.disposeInternal.call(this)};$s.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)lMc(this);else this.onReadyStateChangeEntryPoint_()};$s.prototype.onReadyStateChangeEntryPoint_=function(){lMc(this)};
var lMc=function(a){if(a.active_&&typeof xAc!="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()+"]";jMc(a)}}finally{kMc(a)}}},kMc=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){}}};h=$s.prototype;h.isActive=function(){return!!this.xhr_};h.isComplete=function(){return this.getReadyState()==4};
h.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(fMc)[1]||null,!a&&ra.self&&ra.self.location&&(a=ra.self.location.protocol.slice(0,-1)),a=!gMc.test(a?a.toLowerCase():"");b=a}return b};h.getReadyState=function(){return this.xhr_?this.xhr_.readyState:0};h.getStatus=function(){try{return this.getReadyState()>2?this.xhr_.status:-1}catch(a){return-1}};
h.getLastUri=function(){return String(this.lastUri_)};h.getResponseText=function(){try{return this.xhr_?this.xhr_.responseText:""}catch(a){return""}};h.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(ra.JSON)try{var c=ra.JSON.parse(a);break a}catch(d){}c=WLc(a)}return c}};
h.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}};h.getResponseHeader=function(a){if(this.xhr_&&this.isComplete())return a=this.xhr_.getResponseHeader(a),a===null?void 0:a};
h.getAllResponseHeaders=function(){return this.xhr_&&this.getReadyState()>=2?this.xhr_.getAllResponseHeaders()||"":""};h.getResponseHeaders=function(){for(var a={},b=this.getAllResponseHeaders().split("\r\n"),c=0;c<b.length;c++)if(!xa(b[c])){var d=eMc(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 vva(a,function(g){return g.join(", ")})};var Yva=function(a,b){return a.xhr_?a.xhr_.getResponseHeader(b):null};$s.prototype.getLastErrorCode=function(){return this.lastErrorCode_};
$s.prototype.getLastError=function(){return typeof this.lastError_==="string"?this.lastError_:String(this.lastError_)};FLc(function(a){$s.prototype.onReadyStateChangeEntryPoint_=a($s.prototype.onReadyStateChangeEntryPoint_)});var nMc=function(a,b){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=a.nodeReadableStream;this.grpcResponseDeserializeFn=b;this.xhr=a.xhr;this.xhrNodeReadableStream&&mMc(this)},uMc=function(a,b){var c=new oMc;Cj(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("qb");d=atob(d)}try{var e=
a.grpcResponseDeserializeFn(d)}catch(k){pMc(a,Vva(new YC(13,"Error when deserializing response data; error: "+k+(", response: "+d)),c));return}d=rva(a.xhr.getStatus());qMc(a,rMc(a));d===0?sMc(a,e):pMc(a,Vva(new YC(d,"Xhr succeeded but the status code is not 200"),c))}else{d=a.xhr.getResponseText();e=rMc(a);if(d){var f=tMc(a,d);d=f.code;var g=f.details;f=f.metadata}else d=2,g="Rpc failed due to xhr error. uri: "+a.xhr.getLastUri()+", error code: "+(a.xhr.getLastErrorCode()+", error: ")+a.xhr.getLastError(),
f=e;qMc(a,e);pMc(a,Vva(new YC(d,g,f),c))}})},mMc=function(a){a.xhrNodeReadableStream.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.grpcResponseDeserializeFn(c)}catch(e){pMc(a,new YC(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&sMc(a,d)}if("2"in b)for(b=tMc(a,b["2"]),c=0;c<a.onStatusCallbacks.length;c++)a.onStatusCallbacks[c](b)});a.xhrNodeReadableStream.on("end",function(){qMc(a,rMc(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=rva(c);break;default:d=14}qMc(a,rMc(a));b=VLc(b)+", error: "+a.xhr.getLastError();c!==-1&&(b+=", http status code: "+c);pMc(a,new YC(d,b))}})},rMc=function(a){var b={},c=a.xhr.getResponseHeaders();Object.keys(c).forEach(function(d){b[d]=c[d]});return b},
tMc=function(a,b){var c=2,d={};try{var e=BLc(b);c=e.getCode();var f=e.getMessage();Wi(e,kr,3,Xi()).length&&(d["grpc-web-status-details-bin"]=b)}catch(g){a.xhr&&a.xhr.getStatus()===404?(c=5,f="Not Found: "+a.xhr.getLastUri()):(c=14,f="Unable to parse RpcStatus: "+g)}return{code:c,details:f,metadata:d}};
nMc.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 vMc=function(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)};
nMc.prototype.removeListener=function(a,b){a==="data"?vMc(this.onDataCallbacks,b):a==="metadata"?vMc(this.onMetadataCallbacks,b):a==="status"?vMc(this.onStatusCallbacks,b):a==="end"?vMc(this.onEndCallbacks,b):a==="error"&&vMc(this.onErrorCallbacks,b);return this};nMc.prototype.cancel=function(){this.xhr.abort()};
var sMc=function(a,b){for(var c=0;c<a.onDataCallbacks.length;c++)a.onDataCallbacks[c](b)},qMc=function(a,b){for(var c=0;c<a.onMetadataCallbacks.length;c++)a.onMetadataCallbacks[c](b)},pMc=function(a,b){for(var c=0;c<a.onErrorCallbacks.length;c++)a.onErrorCallbacks[c](b)},oMc=function(){var a=Error.call(this);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};Z(oMc,Error);var wMc=function(a){return function(){return a}},gD=function(){},hBc=function(a){return a},hD=function(a,b){var c=0;return function(d){ra.clearTimeout(c);var e=arguments;c=ra.setTimeout(function(){a.apply(void 0,e)},b)}},xMc=function(a,b){var c=0,d=!1,e=[],f=function(){c=0;d&&(d=!1,g())},g=function(){c=ra.setTimeout(f,b);var k=e;e=[];a.apply(void 0,k)};return function(k){e=arguments;c?d=!0:g()}},yMc=function(a){var b=0,c=function(){b=0};return function(d){b||(b=ra.setTimeout(c,1E3),a.apply(void 0,
arguments))}};var iD=function(a){this.worker_=a.worker||null;this.streamBinaryChunks_=a.streamBinaryChunks||!1;this.cacheMode_=this.credentialsMode_=void 0};Ww(iD,Jva);iD.prototype.createInstance=function(){var a=new jD(this.worker_,this.streamBinaryChunks_);this.credentialsMode_&&a.setCredentialsMode(this.credentialsMode_);this.cacheMode_&&a.setCacheMode(this.cacheMode_);return a};iD.prototype.setCredentialsMode=function(a){this.credentialsMode_=a};iD.prototype.setCacheMode=function(a){this.cacheMode_=a};
var jD=function(a,b){Aj.call(this);this.worker_=a;this.streamBinaryChunks_=b;this.cacheMode_=this.credentialsMode_=void 0;this.status=this.readyState=0;this.responseURL=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;this.abortController_=new AbortController};
Ww(jD,Aj);jD.prototype.open=function(a,b){if(this.readyState!=0)throw this.abort(),Error("rb");this.method_=a;this.url_=b;this.readyState=1;zMc(this)};
jD.prototype.send=function(a){if(this.readyState!=1)throw this.abort(),Error("sb");if(this.abortController_.signal.aborted)throw this.abort(),Error("tb");this.inProgress_=!0;var b={headers:this.requestHeaders_,method:this.method_,credentials:this.credentialsMode_,cache:this.cacheMode_,signal:this.abortController_.signal};a&&(b.body=a);(this.worker_||ra).fetch(new Request(this.url_,b)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
jD.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,AMc(this));this.readyState=0};
jD.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,zMc(this)),this.inProgress_&&(this.readyState=3,zMc(this),this.inProgress_)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof ra.ReadableStream!=="undefined"&&
"body"in a){this.currentReader_=a.body.getReader();if(this.streamBinaryChunks_){if(this.responseType)throw Error("ub");this.response=[]}else this.response=this.responseText="",this.textDecoder_=new TextDecoder;BMc(this)}else a.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};var BMc=function(a){a.currentReader_.read().then(a.handleDataFromStream_.bind(a)).catch(a.handleSendFailure_.bind(a))};
jD.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?AMc(this):zMc(this);this.readyState==3&&BMc(this)}};jD.prototype.handleResponseText_=function(a){this.inProgress_&&(this.response=this.responseText=a,AMc(this))};
jD.prototype.handleResponseArrayBuffer_=function(a){this.inProgress_&&(this.response=a,AMc(this))};jD.prototype.handleSendFailure_=function(){this.inProgress_&&AMc(this)};var AMc=function(a){a.readyState=4;a.fetchResponse_=null;a.currentReader_=null;a.textDecoder_=null;zMc(a)};h=jD.prototype;h.setRequestHeader=function(a,b){this.requestHeaders_.append(a,b)};h.getResponseHeader=function(a){return this.responseHeaders_?this.responseHeaders_.get(a.toLowerCase())||"":""};
h.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")};h.setCredentialsMode=function(a){this.credentialsMode_=a};h.setCacheMode=function(a){this.cacheMode_=a};var zMc=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Object.defineProperty(jD.prototype,"withCredentials",{get:function(){return this.credentialsMode_==="include"},set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});var CMc=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(Na(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return xva(a)},DMc=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(Na(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}}},EMc=function(a,b,c){if(a.forEach&&typeof a.forEach=="function")a.forEach(b,c);else if(Na(a)||typeof a==="string")Array.prototype.forEach.call(a,b,c);else for(var d=DMc(a),e=CMc(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)};var ot=function(a,b){this.domain_=this.userInfo_=this.scheme_="";this.port_=null;this.fragment_=this.path_="";this.ignoreCase_=!1;var c;a instanceof ot?(this.ignoreCase_=b!==void 0?b:a.ignoreCase_,kD(this,a.scheme_),this.userInfo_=a.userInfo_,lD(this,a.getDomain()),mD(this,a.port_),this.setPath(a.getPath()),FMc(this,a.queryData_.clone()),GMc(this,a.fragment_)):a&&(c=String(a).match(fMc))?(this.ignoreCase_=!!b,kD(this,c[1]||"",!0),this.userInfo_=nD(c[2]||""),lD(this,c[3]||"",!0),mD(this,c[4]),this.setPath(c[5]||
"",!0),FMc(this,c[6]||"",!0),GMc(this,c[7]||"",!0)):(this.ignoreCase_=!!b,this.queryData_=new qD(null,this.ignoreCase_))};
ot.prototype.toString=function(){var a=[],b=this.scheme_;b&&a.push(HMc(b,IMc,!0),":");var c=this.getDomain();if(c||b=="file")a.push("//"),(b=this.userInfo_)&&a.push(HMc(b,IMc,!0),"@"),a.push(Ni(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.port_,c!=null&&a.push(":",String(c));if(c=this.getPath())this.domain_&&c.charAt(0)!="/"&&a.push("/"),a.push(HMc(c,c.charAt(0)=="/"?JMc:KMc,!0));(c=this.queryData_.toString())&&a.push("?",c);(c=this.fragment_)&&a.push("#",HMc(c,LMc));return a.join("")};
ot.prototype.resolve=function(a){var b=this.clone(),c=!!a.scheme_;c?kD(b,a.scheme_):c=!!a.userInfo_;c?b.userInfo_=a.userInfo_:c=!!a.domain_;c?lD(b,a.getDomain()):c=a.port_!=null;var d=a.getPath();if(c)mD(b,a.port_);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(za(e,"./")||za(e,"/.")){d=e.lastIndexOf("/",0)==0;e=e.split("/");for(var f=[],g=0;g<e.length;){var k=
e[g++];k=="."?d&&g==e.length&&f.push(""):k==".."?((f.length>1||f.length==1&&f[0]!="")&&f.pop(),d&&g==e.length&&f.push("")):(f.push(k),d=!0)}d=f.join("/")}else d=e}c?b.setPath(d):c=a.hasQuery();c?FMc(b,a.queryData_.clone()):c=!!a.fragment_;c&&GMc(b,a.fragment_);return b};ot.prototype.clone=function(){return new ot(this)};var kD=function(a,b,c){a.scheme_=c?nD(b,!0):b;a.scheme_&&(a.scheme_=a.scheme_.replace(/:$/,""));return a};ot.prototype.getDomain=function(){return this.domain_};
var lD=function(a,b,c){a.domain_=c?nD(b,!0):b;return a},mD=function(a,b){if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("vb`"+b);a.port_=b}else a.port_=null;return a};ot.prototype.getPath=function(){return this.path_};ot.prototype.setPath=function(a,b){this.path_=b?nD(a,!0):a;return this};ot.prototype.hasPath=function(){return!!this.path_};ot.prototype.hasQuery=function(){return this.queryData_.toString()!==""};
var FMc=function(a,b,c){b instanceof qD?(a.queryData_=b,a.queryData_.setIgnoreCase(a.ignoreCase_)):(c||(b=HMc(b,MMc)),a.queryData_=new qD(b,a.ignoreCase_));return a};ot.prototype.setQuery=function(a){return FMc(this,a)};ot.prototype.getQuery=function(){return this.queryData_.toString()};var Kt=function(a,b,c){a.queryData_.set(b,c);return a},Jt=function(a,b){return a.queryData_.get(b)},GMc=function(a,b,c){a.fragment_=c?nD(b):b;return a},NMc=function(a){Kt(a,"zx",Mqb());return a};
ot.prototype.removeParameter=function(a){this.queryData_.remove(a);return this};ot.prototype.isReadOnly=function(){return!1};ot.prototype.setIgnoreCase=function(a){this.ignoreCase_=a;this.queryData_&&this.queryData_.setIgnoreCase(a)};
var It=function(a,b){return a instanceof ot?a.clone():new ot(a,b)},OMc=function(a,b,c,d,e){var f=new ot(null);a&&kD(f,a);b&&(f.userInfo_=b);c&&lD(f,c);d&&mD(f,d);e&&f.setPath(e);return f},nD=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},HMc=function(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,PMc),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},PMc=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},
IMc=/[#\/\?@]/g,KMc=/[#\?:]/g,JMc=/[#\?]/g,MMc=/[#\?@]/g,LMc=/#/g,qD=function(a,b){this.count_=this.keyMap_=null;this.encodedQuery_=a||null;this.ignoreCase_=!!b},rD=function(a){a.keyMap_||(a.keyMap_=new Map,a.count_=0,a.encodedQuery_&&Lva(a.encodedQuery_,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=qD.prototype;h.getCount=function(){rD(this);return this.count_};
h.add=function(a,b){rD(this);this.encodedQuery_=null;a=sD(this,a);var c=this.keyMap_.get(a);c||this.keyMap_.set(a,c=[]);c.push(b);this.count_+=1;return this};h.remove=function(a){rD(this);a=sD(this,a);return this.keyMap_.has(a)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(a).length,this.keyMap_.delete(a)):!1};h.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};h.isEmpty=function(){rD(this);return this.count_==0};h.containsKey=function(a){rD(this);a=sD(this,a);return this.keyMap_.has(a)};
h.forEach=function(a,b){rD(this);this.keyMap_.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};h.getKeys=function(){rD(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};
h.getValues=function(a){rD(this);var b=[];if(typeof a==="string")this.containsKey(a)&&(b=b.concat(this.keyMap_.get(sD(this,a))));else{a=Array.from(this.keyMap_.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};h.set=function(a,b){rD(this);this.encodedQuery_=null;a=sD(this,a);this.containsKey(a)&&(this.count_-=this.keyMap_.get(a).length);this.keyMap_.set(a,[b]);this.count_+=1;return this};h.get=function(a,b){if(!a)return b;a=this.getValues(a);return a.length>0?String(a[0]):b};
h.setValues=function(a,b){this.remove(a);b.length>0&&(this.encodedQuery_=null,this.keyMap_.set(sD(this,a),Ma(b)),this.count_+=b.length)};h.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=Ni(d);d=this.getValues(d);for(var f=0;f<d.length;f++){var g=e;d[f]!==""&&(g+="="+Ni(d[f]));a.push(g)}}return this.encodedQuery_=a.join("&")};
h.clone=function(){var a=new qD;a.encodedQuery_=this.encodedQuery_;this.keyMap_&&(a.keyMap_=new Map(this.keyMap_),a.count_=this.count_);return a};var sD=function(a,b){b=String(b);a.ignoreCase_&&(b=b.toLowerCase());return b};qD.prototype.setIgnoreCase=function(a){a&&!this.ignoreCase_&&(rD(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};
qD.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)EMc(arguments[b],function(c,d){this.add(d,c)},this)};var QMc=function(a){var b="";Ji(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});return b},RMc=function(a,b,c){if(Bva(c))return a;c=QMc(c);if(typeof a==="string")return Sva(a,Ni(b),c);Kt(a,b,c);return a};Ww(Pi,Oi);var SMc=[];Pi.prototype.listen=function(a,b,c,d){Array.isArray(b)||(b&&(SMc[0]=b.toString()),b=SMc);for(var e=0;e<b.length;e++){var f=Cj(a,b[e],c||this.handleEvent,d||!1,this.handler_||this);if(!f)break;this.keys_[f.key]=f}return this};Pi.prototype.listenOnce=function(a,b,c,d){return TMc(this,a,b,c,d)};var TMc=function(a,b,c,d,e,f){if(Array.isArray(c))for(var g=0;g<c.length;g++)TMc(a,b,c[g],d,e,f);else{b=bD(b,c,d||a.handleEvent,e,f||a.handler_||a);if(!b)return a;a.keys_[b.key]=b}return a};
Pi.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=gq(d)?!!d.capture:!!d,e=e||this.handler_||this,c=OLc(c),d=!!d,b=aD(a)?a.getListener(b,c,d,e):a?(a=QLc(a))?a.getListener(b,c,d,e):null:null,b&&(dD(b),delete this.keys_[b.key]);return this};Pi.prototype.removeAll=function(){Ji(this.keys_,function(a,b){this.keys_.hasOwnProperty(b)&&dD(a)},this);this.keys_={}};
Pi.prototype.disposeInternal=function(){Pi.superClass_.disposeInternal.call(this);this.removeAll()};Pi.prototype.handleEvent=function(){throw Error("xb");};Wva.prototype.error_=function(a,b){this.isInputValid_=!1;throw Error("yb`"+this.streamPos_+"`"+b+"`"+a);};Wva.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=Vba(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};Qi.prototype.getErrorMessage=function(){return this.errorMessage_};Qi.prototype.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_);};Qi.prototype.acceptsBinaryInput=function(){return!0};
Qi.prototype.parse=function(a){function b(m){m&128&&f.error_(g,k,"invalid tag");(m&7)!=2&&f.error_(g,k,"invalid wire type");f.tag_=m>>>3;f.tag_!=1&&f.tag_!=2&&f.tag_!=15&&f.error_(g,k,"unexpected tag");f.state_=1;f.length_=0;f.countLengthBytes_=0}function c(m){f.countLengthBytes_++;f.countLengthBytes_==5&&m&240&&f.error_(g,k,"message length too long");f.length_|=(m&127)<<(f.countLengthBytes_-1)*7;m&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(m){f.messageBuffer_[f.countMessageBytes_++]=m;f.countMessageBytes_==f.length_&&e()}function e(){if(f.tag_<15){var m={};m[f.tag_]=f.messageBuffer_;f.result_.push(m)}f.state_=0}for(var f=this,g=a instanceof Array?a:new Uint8Array(a),k=0;k<g.length;){switch(f.state_){case 3:f.error_(g,k,"stream already broken");break;case 0:b(g[k]);break;case 1:c(g[k]);break;case 2:d(g[k]);break;default:throw Error("zb`"+f.state_);}f.streamPos_++;k++}a=
f.result_;f.result_=[];return a.length>0?a:null};var $va=function(){this.errorMessage_=null;this.streamPos_=0;this.base64Decoder_=new Wva;this.pbParser_=new Qi};$va.prototype.getErrorMessage=function(){return this.errorMessage_};$va.prototype.error_=function(a,b){this.errorMessage_="The stream is broken @"+this.streamPos_+". Error: "+b+". With input:\n"+a;throw Error(this.errorMessage_);};$va.prototype.acceptsBinaryInput=function(){return!1};
$va.prototype.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 tD=function(a){return a=="\r"||a=="\n"||a==" "||a=="\t"};h=Xva.prototype;h.getErrorMessage=function(){return this.errorMessage_};h.done=function(){return this.streamState_===2};h.error_=function(a,b){this.streamState_=3;this.errorMessage_="The stream is broken @"+this.pos_+"/"+b+". With input:\n"+a;throw Error(this.errorMessage_);};h.acceptsBinaryInput=function(){return!1};
h.parse=function(a){function b(){for(;x<a.length;)if(tD(a[x]))x++,f.pos_++;else break;return x<m}function c(){for(var H;;){H=a[x++];if(!H)break;f.pos_++;switch(f.state_){case 0:H==="{"?f.state_=2:H==="["?f.state_=4:tD(H)||f.error_(a,x);continue;case 7:case 2:if(tD(H))continue;if(f.state_===7)g.push(8);else if(H==="}"){e("{}");f.state_=d();continue}else g.push(3);H==='"'?f.state_=6:f.error_(a,x);continue;case 8:case 3:if(tD(H))continue;H===":"?(f.state_===3&&(g.push(3),f.depth_++),f.state_=1):H===
"}"?(f.depth_--,e(),f.state_=d()):H===","?(f.state_===3&&g.push(3),f.state_=7):f.error_(a,x);continue;case 4:case 1:if(tD(H))continue;if(f.state_===4)if(f.depth_++,f.state_=1,H==="]"){f.depth_--;if(f.depth_===0){f.state_=5;return}e("[]");f.state_=d();continue}else g.push(5);H==='"'?f.state_=6:H==="{"?f.state_=2:H==="["?f.state_=4:H==="t"?f.state_=9:H==="f"?f.state_=12:H==="n"?f.state_=16:H!=="-"&&("0123456789".indexOf(H)!==-1?f.state_=20:f.error_(a,x));continue;case 5:if(H===",")g.push(5),f.state_=
1,f.depth_===1&&(w=x);else if(H==="]"){f.depth_--;if(f.depth_===0)return;e();f.state_=d()}else if(tD(H))continue;else f.error_(a,x);continue;case 6:var J=x;a:for(;;){for(;f.unicodeCount_>0;)if(H=a[x++],f.unicodeCount_===4?f.unicodeCount_=0:f.unicodeCount_++,!H)break a;if(H==='"'&&!f.slashed_){f.state_=d();break}if(H==="\\"&&!f.slashed_&&(f.slashed_=!0,H=a[x++],!H))break;if(f.slashed_)if(f.slashed_=!1,H==="u"&&(f.unicodeCount_=1),H=a[x++])continue;else break;k.lastIndex=x;H=k.exec(a);if(!H){x=a.length+
1;break}x=H.index+1;H=a[H.index];if(!H)break}f.pos_+=x-J;continue;case 9:if(!H)continue;H==="r"?f.state_=10:f.error_(a,x);continue;case 10:if(!H)continue;H==="u"?f.state_=11:f.error_(a,x);continue;case 11:if(!H)continue;H==="e"?f.state_=d():f.error_(a,x);continue;case 12:if(!H)continue;H==="a"?f.state_=13:f.error_(a,x);continue;case 13:if(!H)continue;H==="l"?f.state_=14:f.error_(a,x);continue;case 14:if(!H)continue;H==="s"?f.state_=15:f.error_(a,x);continue;case 15:if(!H)continue;H==="e"?f.state_=
d():f.error_(a,x);continue;case 16:if(!H)continue;H==="u"?f.state_=17:f.error_(a,x);continue;case 17:if(!H)continue;H==="l"?f.state_=18:f.error_(a,x);continue;case 18:if(!H)continue;H==="l"?f.state_=d():f.error_(a,x);continue;case 19:H==="."?f.state_=20:f.error_(a,x);continue;case 20:if("0123456789.eE+-".indexOf(H)!==-1)continue;else x--,f.pos_--,f.state_=d();continue;default:f.error_(a,x)}}}function d(){var H=g.pop();return H!=null?H:1}function e(H){f.depth_>1||(H||(H=w===-1?f.buffer_+a.substring(r,
x):a.substring(w,x)),f.deliverMessageAsRawString_?f.result_.push(H):f.result_.push(JSON.parse(H)),w=x)}for(var f=this,g=f.stack_,k=f.stringInputPattern_,m=a.length,r=0,w=-1,x=0;x<m;)switch(f.streamState_){case 3:return f.error_(a,x),null;case 2:return b()&&f.error_(a,x),null;case 0:if(b()){var D=a[x++];f.pos_++;if(D==="["){f.streamState_=1;r=x;f.state_=4;continue}else f.error_(a,x)}return null;case 1:return c(),f.depth_===0&&f.state_==5?(f.streamState_=2,f.buffer_=a.substring(x)):f.buffer_=w===-1?
f.buffer_+a.substring(r):a.substring(w),f.result_.length>0?(D=f.result_,f.result_=[],D):null}return null};var Zva=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.streamPos_=0;this.result_=[];this.statusParsed_=!1};Zva.prototype.getErrorMessage=function(){return this.errorMessage_};Zva.prototype.acceptsBinaryInput=function(){return!1};
Zva.prototype.parse=function(a){function b(m){f.state_=6;f.errorMessage_="The stream is broken @"+f.streamPos_+"/"+g+". Error: "+m+". With input:\n";throw Error(f.errorMessage_);}function c(){f.jsonStreamParser_=new Xva({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}function d(m){if(m)for(var r=0;r<m.length;r++){var w={};w[1]=m[r];f.result_.push(w)}}function e(m){if(m){(f.statusParsed_||m.length>1)&&b("extra status: "+m);f.statusParsed_=!0;var r={};r[2]=m[0];f.result_.push(r)}}for(var f=
this,g=0;g<a.length;){var k;if(k=f.state_!==2){a:{for(;g<a.length;){if(!tD(a[g])){k=!0;break a}g++;f.streamPos_++}k=!1}k=!k}if(k)return null;switch(f.state_){case 6:b("stream already broken");break;case 0:a[g]==="["?(f.state_=1,g++,f.streamPos_++):b("unexpected input token");break;case 1:a[g]==="["?(f.state_=2,c()):a[g]===","||a.slice(g,g+5)=="null,"?f.state_=3:a[g]==="]"?(f.state_=5,g++,f.streamPos_++):b("unexpected input token");break;case 2:k=f.jsonStreamParser_.parse(a.substring(g));d(k);f.jsonStreamParser_.done()?
(f.state_=3,k=f.jsonStreamParser_.buffer_,f.streamPos_+=a.length-g-k.length,a=k,g=0):(f.streamPos_+=a.length-g,g=a.length);break;case 3:a[g]===","||a.slice(g,g+5)=="null,"?(f.state_=4,c(),f.jsonStreamParser_.parse("["),g+=a[g]===","?1:5,f.streamPos_++):a[g]==="]"&&(f.state_=5,g++,f.streamPos_++);break;case 4:k=f.jsonStreamParser_.parse(a.substring(g));e(k);f.jsonStreamParser_.done()?(f.state_=5,k=f.jsonStreamParser_.buffer_,f.streamPos_+=a.length-g-k.length,a=k,g=0):(f.streamPos_+=a.length-g,g=a.length);
break;case 5:b("extra input after stream end")}}return f.result_.length>0?(a=f.result_,f.result_=[],a):null};var UMc=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 Pi(this);this.eventHandler_.listen(this.xhr_,"readystatechange",this.readyStateChangeHandler_)};UMc.prototype.getXhr=function(){return this.xhr_};
var uD=function(a,b){a.status_!=b&&(a.status_=b,a.statusHandler_&&a.statusHandler_())},VMc=function(a){a.eventHandler_.removeAll();if(a.xhr_){var b=a.xhr_;a.xhr_=null;b.abort();b.dispose()}};UMc.prototype.getStatus=function(){return this.status_};
UMc.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?uD(this,7):c==7?uD(this,8):d||uD(this,3)),this.parser_||(this.parser_=awa(this.xhr_),
this.parser_==null&&uD(this,5)),this.status_>2)VMc(this);else{if(a.length>this.pos_){var g=a.length;c=[];try{if(this.parser_.acceptsBinaryInput())for(var k=0;k<g;k++){var m=this.parser_.parse(Array.from(a[k]));m&&(c=c.concat(m))}else{m="";if(!this.textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Ab");this.textDecoder_=new TextDecoder}for(k=0;k<g;k++)m+=this.textDecoder_.decode(a[k],{stream:b==4&&k==g-1});c=this.parser_.parse(m)}a.splice(0,g);c&&this.dataHandler_(c)}catch(w){uD(this,
5);VMc(this);break a}}else if(e.length>this.pos_){k=e.slice(this.pos_);this.pos_=e.length;try{var r=this.parser_.parse(k);r!=null&&this.dataHandler_&&this.dataHandler_(r)}catch(w){uD(this,5);VMc(this);break a}}b==4?(e.length!=0||this.hasStreamingResponseData_?uD(this,2):uD(this,4),VMc(this)):uD(this,1)}}}catch(w){uD(this,6),VMc(this)}};var WMc=function(a){a=this.xhrReader_=a;var b=Dj(this.onData_,this);a.dataHandler_=b;a=this.xhrReader_;b=Dj(this.onStatusChange_,this);a.statusHandler_=b;this.callbackMap_={};this.callbackOnceMap_={}};h=WMc.prototype;h.on=function(a,b){var c=this.callbackMap_[a];c||(c=[],this.callbackMap_[a]=c);c.push(b);return this};h.addListener=function(a,b){this.on(a,b);return this};h.removeListener=function(a,b){var c=this.callbackMap_[a];c&&La(c,b);(a=this.callbackOnceMap_[a])&&La(a,b);return this};
h.once=function(a,b){var c=this.callbackOnceMap_[a];c||(c=[],this.callbackOnceMap_[a]=c);c.push(b);return this};h.onData_=function(a){var b=this.callbackMap_.data;b&&XMc(this,a,b);(b=this.callbackOnceMap_.data)&&XMc(this,a,b);this.callbackOnceMap_.data=[]};
var XMc=function(a,b,c){for(var d={},e=0;e<b.length;d={message$jscomp$898:void 0},e++)d.message$jscomp$898=b[e],c.forEach(function(f){return function(g){try{g(f.message$jscomp$898)}catch(k){a.handleError_("message-callback exception (ignored) "+k)}}}(d))};WMc.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:YMc(this,"readable");break;case 5:case 6:case 4:case 7:case 3:YMc(this,"error");break;case 8:YMc(this,"close");break;case 2:YMc(this,"end")}};
var YMc=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]=[]};WMc.prototype.handleError_=function(){};var ZMc=function(a){a=a===void 0?{}:a;this.suppressCorsPreflight=a.suppressCorsPreflight||sv("suppressCorsPreflight",a)||!1;this.withCredentials=a.withCredentials||sv("withCredentials",a)||!1;this.streamInterceptors=a.streamInterceptors||[];this.unaryInterceptors=a.unaryInterceptors||[];this.workerScope=a.workerScope;this.chunkedServerStreaming=a.useFetchDownloadStreams||!1},bNc=function(a,b,c,d,e,f){f=f===void 0?{}:f;var g=b.substring(0,b.length-e.name.length),k,m=(k=f)==null?void 0:k.signal;return $Mc(function(r){return new Promise(function(w,
x){if(m==null?0:m.aborted){var D=new YC(1,"Aborted");D.cause=m.reason;x(D)}else{var H={},J=aNc(a,r,g);J.on("error",function(O){return void x(O)});J.on("metadata",function(O){H=O});J.on("data",function(O){var R=H;R=R===void 0?{}:R;w(new FKc(O,R))});m&&m.addEventListener("abort",function(){J.cancel();var O=new YC(1,"Aborted");O.cause=m.reason;x(O)})}})},a.unaryInterceptors).call(a,GKc(e,c,d)).then(function(r){return r.responseMessage})},vD=function(a,b,c,d,e,f){f=f===void 0?{}:f;return bNc(a,b,c,d,
e,f)};ZMc.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substring(0,a.length-d.name.length);return cNc(function(g){var k=g.methodDescriptor,m=g.getMetadata(),r=dNc(e,!1);m=eNc(e,m,r,f+k.getName());var w=fNc(r,k.responseDeserializeFn,!0);g=k.requestSerializeFn(g.requestMessage);r.send(m,"POST",g);return w},this.streamInterceptors).call(this,GKc(d,b,c))};
var aNc=function(a,b,c){var d=b.methodDescriptor,e=b.getMetadata(),f=dNc(a,!0);a=eNc(a,e,f,c+d.getName());c=fNc(f,d.responseDeserializeFn,!1);uMc(c,e["X-Goog-Encode-Response-If-Executable"]==="base64");b=d.requestSerializeFn(b.requestMessage);f.send(a,"POST",b);return c},dNc=function(a,b){b=a.chunkedServerStreaming&&!b;return a.workerScope||b?new $s(new iD({worker:a.workerScope,streamBinaryChunks:b})):new $s},eNc=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&&ALc.has(e.split(" ")[0])||a.withCredentials)c.withCredentials_=!0;if(a.suppressCorsPreflight)d=RMc(d,"$httpHeaders",b);else for(a=l(Object.keys(b)),e=a.next();!e.done;e=a.next())e=e.value,c.headers.set(e,b[e]);return d},fNc=function(a,b,c){if(c){c=new UMc(a);var d=new WMc(c)}return new nMc({xhr:a,nodeReadableStream:d},b)},cNc=function(a,b){return b.reduce(function(c,d){return function(e){return d.intercept(e,c)}},a)},$Mc=function(a,b){return b.reduce(function(c,d){return function(e){return d.intercept(e,
c)}},a)};var gNc=function(a,b){b=b||{};b.format="jspb";this.client_=new ZMc(b);this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};h=gNc.prototype;h.generateAnswers=function(a){return vD(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GenerateAnswers",a,{},dLc)};h.streamGenerateAnswers=function(a){return this.client_.serverStreaming(this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/StreamGenerateAnswers",a,{},vLc)};
h.getSessionSummaries=function(a){return vD(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetSessionSummaries",a,{},kLc)};h.getSession=function(a){return vD(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetSession",a,{},gLc)};h.updateSession=function(a){return vD(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/UpdateSession",a,{},xLc)};
h.deleteSession=function(a){return vD(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/DeleteSession",a,{},IKc)};h.provideFeedback=function(a,b){return vD(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/ProvideFeedback",a,b||{},qLc)};h.provideRewrite=function(a){return vD(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/ProvideRewrite",a,{},tLc)};
h.getUserState=function(a){return vD(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/GetUserState",a,{},nLc)};h.updateUserState=function(a){return vD(this.client_,this.hostname_+"/$rpc/google.corp.devtools.devassist.ml4answers.v1.DuckieBackendService/UpdateUserState",a,{},zLc)};var wD=function(a,b){this.duckieBackendServicePromiseClientFactory=a;this.experimentsService=b;this.client=a.create(qva())};h=wD.prototype;h.generateAnswers=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.generateAnswers(a),2):c.return(c.yieldResult)})};h.updateUserState=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.updateUserState(a),2):c.return(c.yieldResult)})};
h.getSession=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.getSession(a),2):c.return(c.yieldResult)})};h.getSessionSummaries=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.getSessionSummaries(a),2):c.return(c.yieldResult)})};h.getUserState=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.getUserState(a),2):c.return(c.yieldResult)})};
h.updateSession=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.updateSession(a),2):c.return(c.yieldResult)})};h.deleteSession=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.deleteSession(a),2):c.return(c.yieldResult)})};h.streamGenerateAnswers=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.streamGenerateAnswers(a),2):c.return(c.yieldResult)})};wD.\u0275fac=function(a){return new (a||wD)(Wc(xD),Wc(PA))};
wD.\u0275prov=Cc({token:wD,factory:wD.\u0275fac,providedIn:"root"});var xD=function(){};xD.prototype.create=function(a){return new gNc(a,{withCredentials:!0,suppressCorsPreflight:!0})};xD.\u0275fac=function(a){return new (a||xD)};xD.\u0275prov=Cc({token:xD,factory:xD.\u0275fac,providedIn:"root"});var hNc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(hNc,X);hNc.prototype.getLabel=function(){return Fi(this,1)};hNc.prototype.setLabel=function(a){return $m(this,1,a)};hNc.prototype.getPrompt=function(){return Fi(this,2)};var iNc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(iNc,X);iNc.prototype.getTitle=function(){return Fi(this,1)};iNc.prototype.setTitle=function(a){return $m(this,1,a)};var yD=function(){this.hasParentIntegratorValue=!1;this.overridesService=q(CC);this.duckieService=q(wD);this.duckieClient=q(YJc)};yD.prototype.setParentIntegrator=function(a){this.hasParentIntegratorValue=a};yD.prototype.addPreamble=function(a){this.overridesService.addPreamble(a)};yD.prototype.setAppProvidedContext=function(a){this.overridesService.setAppProvidedContext(a)};
yD.prototype.setOnboardingExamplesList=function(a){var b=[];a=Wi(a,iNc,1,Xi());a=l(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=d.getTitle();var e=cCc(d,hNc,2);if(c&&e.length){d=[];e=l(e);for(var f=e.next();!f.done;f=e.next()){var g=f.value;f=g.getLabel();g=g.getPrompt();f!==void 0&&g!==void 0&&d.push({label:f,prompt:g})}c={title:c,examples:d}}else c=null;c!==null&&b.push(c)}this.overridesService.setOnboardingExamplesList(b)};
var jNc=function(a){var b=document.getElementById("ask-duckie-input");b.value=a;b.dispatchEvent(new Event("input",{bubbles:!0}))};yD.\u0275fac=function(a){return new (a||yD)};yD.\u0275prov=Cc({token:yD,factory:yD.\u0275fac,providedIn:"root"});var zD=function(){this.experimentsService=q(PA);this.communicationService=q(yD);this.availableConversationAgentsInternal=new Xj([]);this.currentConversationAgentInternal=new Xj(this.experimentsService.a2aDefaultAgentEnabled?DAc:EAc);this.currentConversationAgent$=this.currentConversationAgentInternal.pipe(wf({bufferSize:1,refCount:!0}));this.duckieConversationAgentEnabled=!this.communicationService.hasParentIntegratorValue&&this.experimentsService.experimentalDuckieAgentEnabled;this.availableConversationAgents$=
this.availableConversationAgentsInternal.pipe(wf({bufferSize:1,refCount:!0}));var a=[];this.experimentsService.sVsMGooseModelEnabled&&a.push(Yw);this.duckieConversationAgentEnabled&&a.push(Zw);this.availableConversationAgentsInternal.next(a)},AD=function(a){return a.currentConversationAgentInternal.getValue()},kNc=function(a){return AD(a).modelId===Zw.modelId||AD(a).modelId===GAc.modelId||AD(a).modelId===HAc.modelId};zD.\u0275fac=function(a){return new (a||zD)};
zD.\u0275prov=Cc({token:zD,factory:zD.\u0275fac,providedIn:"root"});var lNc={ONBOARDING:1,THREAD:2,1:"ONBOARDING",2:"THREAD"},BD=function(){this.state$=new Xj({params:{},queryParams:{},activeView:1});this.events$=new rf;this.activeView$=this.state$.pipe(A(function(a){return a.activeView}),of())},mNc=function(a){return a.filter(function(b){return typeof b==="string"}).join("")};BD.\u0275fac=function(a){return new (a||BD)};BD.\u0275prov=Cc({token:BD,factory:BD.\u0275fac,providedIn:"root"});var nNc=[[["xap-dialog-layout-title"]],[["xap-dialog-layout-subtitle"]],[["xap-dialog-layout-content"]],[["xap-dialog-layout-actions"]]],oNc=function(){};oNc.\u0275fac=function(a){return new (a||oNc)};oNc.\u0275dir=af({type:oNc,selectors:[["xap-dialog-layout-subtitle"]]});var CD=function(){this.el=q(Gd);this.cdRef=q(Yx);this.ngZone=q(Tg);this.destroyRef=q(Be);this.internalScrollable=!1;this.internalScrollPosition="bottom"};
CD.prototype.ngOnInit=function(){var a=this;this.internalScrollPosition=this.getScrollPosition(this.el.nativeElement);this.ngZone.runOutsideAngular(function(){pNc(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollable=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})});qNc(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollPosition=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})})})};
var pNc=function(a){if(!window.ResizeObserver)return be(rNc(a.el.nativeElement));var b;return iia(function(c){b=new ResizeObserver(function(){c(rNc(a.el.nativeElement))});b.observe(a.el.nativeElement)},function(){b.disconnect()}).pipe(of(),oj(a.destroyRef))},qNc=function(a){return oe(a.el.nativeElement,"scroll").pipe(pwa(),A(function(){return a.getScrollPosition(a.el.nativeElement)}),of(),oj(a.destroyRef))},rNc=function(a){return a.offsetHeight+a.scrollTop<=a.scrollHeight};
CD.prototype.getScrollPosition=function(a){return a.scrollTop===0?"top":a.offsetHeight+a.scrollTop>=a.scrollHeight?"bottom":"center"};da.Object.defineProperties(CD.prototype,{scrollable:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollable}},scrollPosition:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollPosition}}});CD.\u0275fac=function(a){return new (a||CD)};
CD.\u0275dir=af({type:CD,selectors:[["xap-dialog-layout-content"]],hostAttrs:[1,"xap-dialog-layout-content"],hostVars:6,hostBindings:function(a,b){a&2&&yg("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 DD=function(){};DD.\u0275fac=function(a){return new (a||DD)};
DD.\u0275cmp=C({type:DD,selectors:[["xap-dialog-layout"]],contentQueries:function(a,b,c){a&1&&lg(c,oNc,4);if(a&2){var d;og(d=pg())&&(b.subtitle=d)}},hostAttrs:[1,"xap-dialog-layout"],hostVars:2,hostBindings:function(a,b){a&2&&yg("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&&(fg(nNc),
Sf(0,"header",0),gg(1),gg(2,1),Tf(),gg(3,2),gg(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 Yl=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)};h=Yl.prototype;h._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};h.onStart=function(a){this._originalOnStartFns.push(a);this._onStartFns.push(a)};
h.onDone=function(a){this._originalOnDoneFns.push(a);this._onDoneFns.push(a)};h.onDestroy=function(a){this._onDestroyFns.push(a)};h.hasStarted=function(){return this._started};h.init=function(){};h.play=function(){this.hasStarted()||(this._onStart(),sNc(this));this._started=!0};var sNc=function(a){queueMicrotask(function(){return a._onFinish()})};h=Yl.prototype;h._onStart=function(){this._onStartFns.forEach(function(a){return a()});this._onStartFns=[]};h.pause=function(){};h.restart=function(){};
h.finish=function(){this._onFinish()};h.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])};h.reset=function(){this._finished=this._started=!1;this._onStartFns=this._originalOnStartFns;this._onDoneFns=this._originalOnDoneFns};h.setPosition=function(a){this._position=this.totalTime?a*this.totalTime:1};
h.getPosition=function(){return this.totalTime?this._position/this.totalTime:1};h.triggerCallback=function(a){a=a=="start"?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};var UIa=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(g){g.onDone(function(){++c==f&&b._onFinish()});g.onDestroy(function(){++d==f&&b._onDestroy()});g.onStart(function(){++e==f&&b._onStart()})});this.totalTime=this.players.reduce(function(g,
k){return Math.max(g,k.totalTime)},0)};h=UIa.prototype;h._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};h.init=function(){this.players.forEach(function(a){return a.init()})};h.onStart=function(a){this._onStartFns.push(a)};h._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[])};h.onDone=function(a){this._onDoneFns.push(a)};h.onDestroy=function(a){this._onDestroyFns.push(a)};
h.hasStarted=function(){return this._started};h.play=function(){this.parentPlayer||this.init();this._onStart();this.players.forEach(function(a){return a.play()})};h.pause=function(){this.players.forEach(function(a){return a.pause()})};h.restart=function(){this.players.forEach(function(a){return a.restart()})};h.finish=function(){this._onFinish();this.players.forEach(function(a){return a.finish()})};h.destroy=function(){this._onDestroy()};
h._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=[])};h.reset=function(){this.players.forEach(function(a){return a.reset()});this._started=this._finished=this._destroyed=!1};h.setPosition=function(a){var b=a*this.totalTime;this.players.forEach(function(c){c.setPosition(c.totalTime?Math.min(1,b/c.totalTime):1)})};
h.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};h.beforeDestroy=function(){this.players.forEach(function(a){a.beforeDestroy&&a.beforeDestroy()})};h.triggerCallback=function(a){a=a=="start"?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};var tNc=qj({opacity:0}),uNc=qj({opacity:1}),vNc=twa("dialogContainer",[rj("void, hidden",tNc),rj("visible",uNc),sj("void => *, * => visible",pj("200ms cubic-bezier(0.0,0.0,0.2,1)",uNc)),sj("* => void, * => hidden",pj("200ms cubic-bezier(0.4,0.0,0.2,1)",tNc))]);var wNc=new bd("XAP_IDCO"),ED=function(){nA.apply(this,arguments);this.portalOutlet=Rg.required(pA);this.animationState="hidden";this.options=q(wNc);this.changeDetector=q(Yx)};Z(ED,nA);ED.prototype.ngAfterViewInit=function(){};ED.prototype.attachComponentPortal=function(a){return this.portalOutlet().attachComponentPortal(a)};ED.prototype.attachTemplatePortal=function(a){return this.portalOutlet().attachTemplatePortal(a)};var xNc=function(a,b){a.animationState=b?"visible":"hidden";a.changeDetector.markForCheck()};
ED.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(ED)))(b||ED)}}();
ED.\u0275cmp=C({type:ED,selectors:[["xap-inline-dialog-container"]],viewQuery:function(a,b){a&1&&rg(b.portalOutlet,pA);a&2&&sg()},hostAttrs:["role","dialog",1,"xap-inline-dialog-container","gmat-body-2"],hostVars:3,hostBindings:function(a,b){a&2&&(hna("@dialogContainer",b.animationState),Jf("aria-label",b.options.dialogLabel)("tabindex",b.options.dialogTabIndex))},features:[Ff],decls:2,vars:0,consts:[["cdkPortalOutlet",""],["cdkFocusInitial","","tabindex","0"]],template:function(a){a&1&&(K(0,"div"),
E(1,uwa,1,0,"ng-template",0),L())},dependencies:[Dz,qA,pA],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:[vNc]},changeDetection:0});var yNc=[{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}],zNc={minWidth:220,maxWidth:420,minHeight:64,maxHeight:420},FD=function(){var a=this;this.disabledInternal=!1;this.dialogLabel=null;this.dialogTabIndex=-1;this.overlayDimensions=zNc;this.triggerDescription=
"Press space for more information.";this.forceTrapFocus=this.disableAutoFocusInternal=!1;this.scrollStrategy="close";this.stackLocation=0;this.beforeOpened=new ui;this.opened=new ui;this.closed=new ui;this.destroyed=new vf;this.openStatusChange=new Xj(!1);this.openings=this.openStatusChange.pipe(te(function(b){return b&&!a.disabled}));this.elementFocusedBeforeDialogWasOpened=void 0;this.ngZone=q(Tg);this.overlay=q(rA);this.elementRef=q(Gd);this.viewContainerRef=q(ig);this.document=q(Yh);this.focusTrapFactory=
q(Jz);this.ariaDescriber=q(Ez);this.injector=q(xe);ANc(this,this.elementRef.nativeElement);this.attachKeyboardCloseEventListeners(this.elementRef.nativeElement);BNc(this,this.elementRef.nativeElement)};FD.prototype.ngOnInit=function(){var a=this.elementRef.nativeElement;a.hasAttribute("aria-haspopup")||a.setAttribute("aria-haspopup","dialog");a.hasAttribute("aria-describedby")||Fz(this.ariaDescriber,a,this.triggerDescription)};
FD.prototype.ngOnDestroy=function(){this.closeDialog();this.openStatusChange.complete();this.destroyed.next();this.destroyed.complete();this.overlayRef&&this.overlayRef.dispose()};
var ANc=function(a,b){a.ngZone.runOutsideAngular(function(){oe(b,"keydown").pipe(Af(a.destroyed)).subscribe(function(c){switch(c.key){case "Enter":a.openDialog();c.preventDefault();break;case " ":c.preventDefault()}});oe(b,"keyup").pipe(Af(a.destroyed)).subscribe(function(c){switch(c.key){case " ":a.openDialog()}})})},BNc=function(a,b){a.ngZone.runOutsideAngular(function(){oe(b,"focus").pipe(te(function(){return a.beforeOpened.observers.length>0}),Af(a.destroyed)).subscribe(function(){a.ngZone.run(function(){a.beforeOpened.emit()})})})};
h=FD.prototype;
h.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=CNc(a);a.dialogContainerRef.instance.attach(c);var d=a.dialogContainerRef.location.nativeElement;a.attachMouseEventListeners(d);a.attachKeyboardCloseEventListeners(d);a.trapFocus(d);xNc(a.dialogContainerRef.instance,!0);a.opened.observers.length&&setTimeout(function(){a.opened.emit()},
200)}))}}};h.closeDialog=function(){var a=this,b;(b=this.overlayRef)==null||!b.hasAttached()||this.stackManager&&!this.stackManager.tryUnregister(this.stackLocation)||(xNc(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))};
h.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),rz(this.focusTrap),this.disableAutoFocus||this.focusInitialElement()};h.focusInitialElement=function(){this.focusTrap&&zGc(this.focusTrap).then(function(){})};
h.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)}};h.createPositionStrategy=function(a){var b,c;return dA(jA(this.overlay.position(),(b=this.attachedTo)!=null?b:this.elementRef),a).setOrigin((c=this.attachedTo)!=null?c:this.elementRef)};
var DNc=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()}},CNc=function(a){var b=$g({parent:a.injector,providers:[{provide:wNc,useValue:{dialogLabel:a.dialogLabel,dialogTabIndex:a.dialogTabIndex}}]});b=new lA(ED,null,b);a.overlayRef==null&&(a.overlayRef=a.overlay.create(a.createOverlayConfig(yNc)));a.overlaySize&&a.overlayRef.updateSize(a.overlaySize);a.overlayPositions&&
a.overlayPositions.length>0&&jHc(a.overlayRef,a.createPositionStrategy(a.overlayPositions));return a.overlayRef.attach(b)};
da.Object.defineProperties(FD.prototype,{dialog:{configurable:!0,enumerable:!0,set:function(a){a&&(this.portal=a instanceof hg?new mA(a,this.viewContainerRef):new lA(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=Sh(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}}}});FD.\u0275fac=function(a){return new (a||FD)};
FD.\u0275dir=af({type:FD,hostVars:1,hostBindings:function(a,b){a&2&&Jf("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 GD=function(){FD.call(this);this.hasBackdrop=Qg(!0,Object.assign({},{},{alias:"xapInlineDialogClickHasBackdrop",transform:bh}));this.renderer=q(ji);this.attachMouseEventListeners(this.elementRef.nativeElement)};Z(GD,FD);h=GD.prototype;h.ngOnInit=function(){FD.prototype.ngOnInit.call(this);this.listenForOpenEvents()};
h.listenForOpenEvents=function(){var a=this;this.openStatusChange.pipe(Af(this.destroyed)).subscribe(function(b){b?a.openDialog():a.closeDialog()});this.openings.pipe(te(function(b){return b&&a.beforeOpened.observers.length>0}),Ola(function(){return a.openStatusChange.pipe(te(function(b){return!b}))}))};
h.attachMouseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){oe(a,"mouseenter").pipe(Af(b.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})});(new Sd(function(e){return b.renderer.listen(a,"click",function(f){return void e.next(f)})})).pipe(Af(b.destroyed)).subscribe(function(e){e.target.closest("[xapInlineDialogClose]")?b.closingDialog():b.openingDialog()});var c;(c=b.overlayRef)==null||c.backdropClick().pipe(Af(b.destroyed)).subscribe(function(){b.closingDialog()});
var d;(d=b.overlayRef)==null||d.outsidePointerEvents().pipe(Af(b.destroyed)).subscribe(function(){b.hasBackdrop()||b.closingDialog()})})};
h.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){oe(a,"keyup").pipe(Af(b.destroyed)).subscribe(function(c){var d=c.target;switch(c.key){case "Escape":b.closingDialog();break;case " ":d.closest("[xapInlineDialogClose]")&&b.closingDialog()}});oe(a,"keydown").pipe(Af(b.destroyed)).subscribe(function(c){var d=c.target;switch(c.key){case "Enter":d.closest("[xapInlineDialogClose]")&&b.closingDialog()}})})};h.openingDialog=function(){this.disabled||this.openStatusChange.next(!0)};
h.closingDialog=function(){this.openStatusChange.next(!1)};h.createOverlayConfig=function(a){return new ki(Object.assign({},this.overlayDimensions,{positionStrategy:FD.prototype.createPositionStrategy.call(this,a),scrollStrategy:DNc(this),hasBackdrop:this.hasBackdrop(),backdropClass:"cdk-overlay-transparent-backdrop",panelClass:this.panelClassInternal}))};GD.\u0275fac=function(a){return new (a||GD)};
GD.\u0275dir=af({type:GD,selectors:[["","xapInlineDialogClick",""]],hostAttrs:[1,"xap-inline-dialog-click"],inputs:{dialog:[0,"xapInlineDialogClick","dialog"],disabled:[0,"xapInlineDialogDisabled","disabled"],hasBackdrop:[1,"xapInlineDialogClickHasBackdrop","hasBackdrop"]},exportAs:["xapInlineDialogClick"],features:[Ff]});var HD=new bd("MatSnackBarData"),ENc=function(){this.politeness="polite";this.announcementMessage="";this.duration=0;this.data=null;this.horizontalPosition="center";this.verticalPosition="bottom"};var FNc=function(){};FNc.\u0275fac=function(a){return new (a||FNc)};FNc.\u0275dir=af({type:FNc,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]});var GNc=function(){};GNc.\u0275fac=function(a){return new (a||GNc)};GNc.\u0275dir=af({type:GNc,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]});var HNc=function(){};HNc.\u0275fac=function(a){return new (a||HNc)};
HNc.\u0275dir=af({type:HNc,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]});var ID=function(a,b){var c=this;this._overlayRef=b;this._afterDismissed=new rf;this._afterOpened=new rf;this._onAction=new rf;this._dismissedByAction=!1;this.containerInstance=a;a._onExit.subscribe(function(){return c._finishDismiss()})};h=ID.prototype;h.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit();clearTimeout(this._durationTimeoutId)};
h.dismissWithAction=function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss());clearTimeout(this._durationTimeoutId)};h._dismissAfter=function(a){var b=this;this._durationTimeoutId=setTimeout(function(){return b.dismiss()},Math.min(a,2147483647))};h._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())};
h._finishDismiss=function(){this._overlayRef.dispose();this._onAction.closed||this._onAction.complete();this._afterDismissed.next({dismissedByAction:this._dismissedByAction});this._afterDismissed.complete();this._dismissedByAction=!1};h.afterDismissed=function(){return this._afterDismissed};h.afterOpened=function(){return this.containerInstance._onEnter};h.onAction=function(){return this._onAction};var JD=function(){this.snackBarRef=q(ID);this.data=q(HD)};JD.prototype.action=function(){this.snackBarRef.dismissWithAction()};da.Object.defineProperties(JD.prototype,{hasAction:{configurable:!0,enumerable:!0,get:function(){return!!this.data.action}}});JD.\u0275fac=function(a){return new (a||JD)};
JD.\u0275cmp=C({type:JD,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&&(K(0,"div",0),S(1),L(),F(2,vwa,3,1,"div",1));a&2&&(B(),T(" ",b.data.message,"\n"),B(),G(b.hasAction?2:-1))},dependencies:[TA,FNc,GNc,HNc],styles:[".mat-mdc-simple-snack-bar{display:flex}.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label{max-height:50vh;overflow:auto}\n"],
encapsulation:2,changeDetection:0});var INc=["label"],KD=function(){this._isDisposed=!1;this._ngZone=q(Tg);this._elementRef=q(Gd);this._changeDetectorRef=q(Yx);this._platform=q(bi);this._animationsDisabled=ti();this.snackBarConfig=q(ENc);this._document=q(Yh);this._trackedModals=new Set;this._injector=q(xe);this._announceDelay=150;this._destroyed=!1;this._onAnnounce=new rf;this._onExit=new rf;this._onEnter=new rf;this._animationState="void";this._liveElementId=q(hi).getId("mat-snack-bar-container-live-");var a=this.snackBarConfig;this._live=
a.politeness!=="assertive"||a.announcementMessage?a.politeness==="off"?"off":"polite":"assertive";this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))};Z(KD,nA);h=KD.prototype;h.attachComponentPortal=function(a){a=this._portalOutlet.attachComponentPortal(a);this._afterPortalAttached();return a};h.attachTemplatePortal=function(a){a=this._portalOutlet.attachTemplatePortal(a);this._afterPortalAttached();return a};
h.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()}))};
h.enter=function(){var a=this;this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?De(function(){a._ngZone.run(function(){return queueMicrotask(function(){return a.onAnimationEnd("_mat-snack-bar-enter")})})},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(function(){a._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible");
a.onAnimationEnd("_mat-snack-bar-enter")},200)))};
h.exit=function(){var a=this;if(this._destroyed)return be(void 0);this._ngZone.run(function(){a._animationState="hidden";a._changeDetectorRef.markForCheck();a._elementRef.nativeElement.setAttribute("mat-exit","");clearTimeout(a._announceTimeoutId);a._animationsDisabled?De(function(){a._ngZone.run(function(){return queueMicrotask(function(){return a.onAnimationEnd("_mat-snack-bar-exit")})})},{injector:a._injector}):(clearTimeout(a._exitFallback),a._exitFallback=setTimeout(function(){return a.onAnimationEnd("_mat-snack-bar-exit")},
200))});return this._onExit};h.ngOnDestroy=function(){this._destroyed=!0;this._clearFromModals();this._completeExit()};h._completeExit=function(){var a=this;clearTimeout(this._exitFallback);queueMicrotask(function(){a._onExit.next();a._onExit.complete()})};
h._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"))};
h._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)}};
h._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()};h._assertNotAttached=function(){};
h._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)})};KD.\u0275fac=function(a){return new (a||KD)};
KD.\u0275cmp=C({type:KD,selectors:[["mat-snack-bar-container"]],viewQuery:function(a,b){a&1&&(kg(pA,7),kg(INc,7));if(a&2){var c;og(c=pg())&&(b._portalOutlet=c.first);og(c=pg())&&(b._label=c.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(a,b){a&1&&N("animationend",function(c){return b.onAnimationEnd(c.animationName)})("animationcancel",function(c){return b.onAnimationEnd(c.animationName)});a&2&&yg("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:[Ff],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&&(K(0,"div",1)(1,"div",2,0)(3,"div",3),E(4,wwa,0,0,"ng-template",4),L(),M(5,"div"),L()());a&2&&(B(5),Jf("aria-live",b._live)("role",b._role)("id",b._liveElementId))},
dependencies:[pA],styles:["@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-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-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 JNc=new bd("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new ENc}}),LD=function(){this._live=q(Cz);this._injector=q(xe);this._breakpointObserver=q(wz);this._parentSnackBar=q(LD,{optional:!0,skipSelf:!0});this._defaultConfig=q(JNc);this._animationsDisabled=ti();this._snackBarRefAtThisLevel=null;this.simpleSnackBarComponent=JD;this.snackBarContainerComponent=KD;this.handsetCssClass="mat-mdc-snack-bar-handset"};h=LD.prototype;
h.openFromComponent=function(a,b){return this._attach(a,b)};h.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)};h.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()};h.ngOnDestroy=function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()};
h._attachSnackBarContainer=function(a,b){var c=$g({parent:b&&b.viewContainerRef&&b.viewContainerRef.injector||this._injector,providers:[{provide:ENc,useValue:b}]});a=a.attach(new lA(this.snackBarContainerComponent,b.viewContainerRef,c));a.instance.snackBarConfig=b;return a.instance};
h._attach=function(a,b){var c=this,d=Object.assign({},new ENc,this._defaultConfig,b),e=this._createOverlay(d);b=this._attachSnackBarContainer(e,d);var f=new ID(b,e);if(a instanceof hg)f.instance=b.attachTemplatePortal(new mA(a,null,{$implicit:d.data,snackBarRef:f}));else{var g=this._createInjector(d,f);a=b.attachComponentPortal(new lA(a,void 0,g));f.instance=a.instance}this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Af(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};
h._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()};
h._createOverlay=function(a){var b=new ki;b.direction=a.direction;var c=new gA,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"):hA(c);a.verticalPosition==="top"?c.top("0"):c.bottom("0");b.positionStrategy=c;b.disableAnimations=this._animationsDisabled;return ri(this._injector,b)};
h._createInjector=function(a,b){return $g({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:ID,useValue:b},{provide:HD,useValue:a.data}]})};da.Object.defineProperties(LD.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}}});
LD.\u0275fac=function(a){return new (a||LD)};LD.\u0275prov=Cc({token:LD,factory:LD.\u0275fac,providedIn:"root"});var MD=function(){};MD.\u0275fac=function(a){return new (a||MD)};MD.\u0275mod=$e({type:MD});MD.\u0275inj=Dc({providers:[LD],imports:[uA,qA,WA,JD,jz]});var ND=function(){this.snackBarRef=q(ID);this.data=q(HD);this.message=this.data.message||"An error occurred. Please try again.";this.error=this.data.error.message};ND.prototype.dismiss=function(){this.snackBarRef.dismiss()};ND.\u0275fac=function(a){return new (a||ND)};
ND.\u0275cmp=C({type:ND,selectors:[["error-snackbar"]],decls:11,vars:2,consts:[["withActionsTemplate",""],[1,"duckie-error-snackbar"],["dialogLabel","Actions",3,"xapInlineDialogClick"],["mat-button","","color","primary"],["mat-icon-button","","color","secondary",1,"close-button",3,"click"],[1,"error-details"]],template:function(a,b){if(a&1){var c=t();K(0,"div",1)(1,"span");S(2);L();K(3,"xap-text-trigger",2)(4,"button",3);S(5,"Details");L()();K(6,"button",4);N("click",function(){u(c);return v(b.dismiss())});
K(7,"mat-icon");S(8,"close");L()()();E(9,xwa,4,1,"ng-template",null,0,Og)}a&2&&(a=Q(10),B(2),Ag(b.message),B(),I("xapInlineDialogClick",a))},dependencies:[xy,ZA,XA,TA,VA,MD,GD,iz,DD,CD],styles:[".duckie-error-snackbar[_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;gap:8px}.duckie-error-snackbar[_ngcontent-%COMP%]   .gmat-mdc-button.mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%], .duckie-error-snackbar[_ngcontent-%COMP%]   .gmat-mdc-button[_ngcontent-%COMP%]:not(.mat-mdc-icon-button){color:var(--text-inverse)}.error-details[_ngcontent-%COMP%]{word-wrap:break-word}"],
changeDetection:0});var OD=function(){this.currentModelIdInternal=new Xj("");this.currentModelId$=this.currentModelIdInternal.pipe(wf({bufferSize:1,refCount:!0}))};OD.\u0275fac=function(a){return new (a||OD)};OD.\u0275prov=Cc({token:OD,factory:OD.\u0275fac,providedIn:"root"});var KNc={PRIVACY_MODE_UNSET:0,COMPLIANCE_ONLY:1,CONTENT_PRIVATE:2};var PD=function(a){this.duckieService=a;this.currentErrorType$=new Xj(0);this.showTosDialog$=new Xj(!1);this.showGeneralAnnouncementBanner$=new Xj(!1);this.showErrorScreen$=new Xj(!1);this.allowPersonalResults$=new Xj(!0);this.userStateLoaded$=new Xj(!1);this.isEnforcedPrivateMode$=new Xj(!0);this.duckieClient=q(YJc);LNc(this)},MNc=function(a){var b,c,d,e;y(function(f){switch(f.nextAddress){case 1:return z(f,a.getUserState(),2);case 2:b=f.yieldResult;if((c=b.getUserState())==null)var g=void 0;else g=
WUa(new Date),g=hj(c,nj,2,g);d=g;e=(new XC).setUserState(d);Vd(f,3);return z(f,a.duckieService.updateUserState(e),5);case 5:a.showGeneralAnnouncementBanner$.next(!1);bk(f,0);break;case 3:Zd(f),a.showErrorScreen$.next(!0),$d(f)}})},NNc=function(a,b){var c,d,e,f;y(function(g){switch(g.nextAddress){case 1:return z(g,a.getUserState(),2);case 2:return c=g.yieldResult,e=(d=c.getUserState())==null?void 0:d.setDisallowRestrictedContent(!b),f=(new XC).setUserState(e),Vd(g,3),z(g,a.duckieService.updateUserState(f),
5);case 5:a.allowPersonalResults$.next(b);bk(g,0);break;case 3:Zd(g),$d(g)}})},LNc=function(a){var b,c;y(function(d){if(d.nextAddress==1)return z(d,a.getUserState(),2);b=d.yieldResult;a.isEnforcedPrivateMode$.next(((c=b.getUserState())==null?void 0:Ri(c,3))===2);var e=WUa(new Date(2025,1,11)),f,g=b==null?void 0:(f=b.getUserState())==null?void 0:Y(f,nj,2);(!g||g<e)&&a.showGeneralAnnouncementBanner$.next(!0);var k;((k=b.getUserState())==null?0:k.getDisallowRestrictedContent())&&a.allowPersonalResults$.next(!1);
a.showErrorScreen$.getValue()||ONc(a,b)||a.showTosDialog$.next(!0);a.userStateLoaded$.next(!0);$d(d)})};
PD.prototype.getUserState=function(){var a=this,b,c,d;return y(function(e){if(e.nextAddress==1)return Vd(e,2),z(e,a.duckieService.getUserState(new lLc),4);if(e.nextAddress!=2)return e.return(e.yieldResult);if((b=Zd(e))&&((c=b.message)==null?0:c.includes("not found")))return e.return(new UC);((d=b.message)==null?0:d.includes("does not have permission"))?a.currentErrorType$.next(2):a.currentErrorType$.next(3);a.showErrorScreen$.next(!0);a.showTosDialog$.next(!1);return e.return(new UC)})};
var PNc=function(a){return a.getUserState().then(function(b){var c;if(b==null)b=void 0;else{var d;(c=b.getUserState())==null?d=void 0:d=On(c,5,Xi());b=d}return b})},QNc=function(a,b){var c,d,e,f,g;y(function(k){switch(k.nextAddress){case 1:return z(k,a.getUserState(),2);case 2:return d=(c=k.yieldResult)!=null?c:new UC,f=(e=d.getUserState())==null?void 0:Ax(e,5,b),g=(new XC).setUserState(f),Vd(k,3),z(k,a.duckieService.updateUserState(g),5);case 5:bk(k,0);break;case 3:Zd(k),a.showErrorScreen$.next(!0),
$d(k)}})},ONc=function(a,b){var c;return(b=b==null?void 0:(c=b.getUserState())==null?void 0:Wi(c,mLc,1,Xi()))?b.some(function(d){return d.getClient()===a.duckieClient&&Ri(d,3)===3}):!1};PD.\u0275fac=function(a){return new (a||PD)(Wc(wD))};PD.\u0275prov=Cc({token:PD,factory:PD.\u0275fac,providedIn:"root"});var RNc={SESSION_STATE_UNSPECIFIED:0,SESSION_STATE_ACTIVE:1,SESSION_STATE_PINNED:2,SESSION_STATE_ARCHIVED:3,SESSION_STATE_DEPRECATED:4};var QD=function(){var a=this;this.duckieService=q(wD);this.routingService=q(BD);this.userStateService=q(PD);this.conversationAgentsService=q(zD);this.communicationService=q(yD);this.duckieClient=q(YJc);this.sessionSummariesInternal=new Xj([]);this.sessionSummaries$=this.sessionSummariesInternal.pipe(wf({bufferSize:1,refCount:!0}));this.isLoadingSessionSummariesInternal=new Xj(!1);this.isLoadingSessionSummaries$=this.isLoadingSessionSummariesInternal.pipe(wf({bufferSize:1,refCount:!0}));this.isIncognitoMode$=
new Xj(!1);this.userStateService.userStateLoaded$.subscribe(function(b){a.isIncognitoMode$=a.userStateService.isEnforcedPrivateMode$;b&&SNc(a)})},SNc=function(a){var b,c,d;y(function(e){if(e.nextAddress==1){a.isLoadingSessionSummariesInternal.next(!0);b=[];if(a.isIncognitoMode$.getValue())return e.jumpTo(2);var f=new hLc;f=Ax(f,1,[a.duckieClient]);f=wc(f,2,zb,1,void 0,Ab);c=wc(f,2,zb,2,void 0,Ab);a.communicationService.hasParentIntegratorValue&&AD(a.conversationAgentsService).agentId!=="duckie_on_goose"&&
c.setConversationAgentId(AD(a.conversationAgentsService).agentId).setConversationAgentModelId(AD(a.conversationAgentsService).modelId);return z(e,a.duckieService.getSessionSummaries(c),3)}e.nextAddress!=2&&(d=e.yieldResult)&&(b=Wi(d,iLc,1,Xi()).map(ywa).sort(a.summarySortFunction));a.sessionSummariesInternal.next(b);a.isLoadingSessionSummariesInternal.next(!1);return e.return(b)})},UNc=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,b.serverId,2);c=f.yieldResult;if(!c)return f.return();
d=TNc(a,c,b);e=a.sessionSummariesInternal.value.filter(function(g){return g.sessionId!==c});e.unshift(d);e.sort(a.summarySortFunction);a.sessionSummariesInternal.next(e);$d(f)})},VNc=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,b.serverId,2);c=f.yieldResult;if(!c)return f.return();d=b.title;e=a.sessionSummariesInternal.value;e=e.map(function(g){return g.sessionId===c?Object.assign({},g,{title:d}):g});a.sessionSummariesInternal.next(e);$d(f)})},WNc=function(a,b){var c,
d;return y(function(e){if(e.nextAddress==1)return z(e,b.serverId,2);c=e.yieldResult;if(!c)return e.return();d=a.sessionSummariesInternal.value;d=d.map(function(f){return f.sessionId===c?Object.assign({},f,{privacyMode:b.privacyMode}):f});a.sessionSummariesInternal.next(d);$d(e)})};h=QD.prototype;
h.toggleSessionPinnedState=function(a){var b=this,c,d,e,f,g,k;return y(function(m){if(m.nextAddress==1)return c=a.sessionId,d=a.sessionState===2?1:2,e=(new WC).setSessionId(c).setSessionState(d),z(m,b.duckieService.updateSession(e),2);f=m.yieldResult;if(!f)return m.return();g=b.sessionSummariesInternal.value;if(k=g.find(function(r){return r.sessionId===c}))k.sessionState=f.getSession().getSessionState();g.sort(b.summarySortFunction);b.sessionSummariesInternal.next(g);$d(m)})};
h.toggleSessionArchivedState=function(a){var b=this,c,d,e,f,g,k;return y(function(m){if(m.nextAddress==1)return c=a.sessionId,d=a.sessionState===3?1:3,e=(new WC).setSessionId(c).setSessionState(d),z(m,b.duckieService.updateSession(e),2);f=m.yieldResult;if(!f)return m.return();g=b.sessionSummariesInternal.value;if(k=g.find(function(r){return r.sessionId===c}))k.sessionState=f.getSession().getSessionState();g=g.filter(b.filterOutArchivedSessions);b.sessionSummariesInternal.next(g);$d(m)})};
h.deleteSession=function(a){var b=this,c,d,e;return y(function(f){if(f.nextAddress==1)return c=a.sessionId,d=(new EC).setSessionId(c),z(f,b.duckieService.deleteSession(d),2);if(f.nextAddress!=3)return b.routingService.state$.value.params.id===c?z(f,XNc(b.routingService),3):f.jumpTo(3);e=b.sessionSummariesInternal.value.filter(function(g){return g.sessionId!==c});b.sessionSummariesInternal.next(e);$d(f)})};
h.summarySortFunction=function(a,b){a=a.sessionState===2;return a===(b.sessionState===2)?0:a?-1:1};h.filterOutArchivedSessions=function(a){return a.sessionState===1||a.sessionState===2};var TNc=function(a,b,c){var d,e,f;return{sessionId:b,title:c.title,agentId:(d=c.agentId)!=null?d:"",agentVersion:(e=c.agentVersion)!=null?e:"",privacyMode:(f=c.privacyMode)!=null?f:0,client:a.duckieClient,sessionState:1}};QD.\u0275fac=function(a){return new (a||QD)};
QD.\u0275prov=Cc({token:QD,factory:QD.\u0275fac,providedIn:"root"});var YNc=function(a){this.eventID=a;this.interactionMetadataHandlers=[];this.testCodeList=[];this.parentEventId=void 0};h=YNc.prototype;h.getID=function(){return this.eventID};h.addInteractionMetadataHandler=function(a){this.interactionMetadataHandlers.push(a)};h.populateInteractionMetadata=function(a){if(this.interactionMetadataHandlers.length>0)for(var b=l(this.interactionMetadataHandlers),c=b.next();!c.done;c=b.next())c=c.value,c(a)};h.setTestCodeList=function(a){this.testCodeList=Array.from(a)};
h.getTestCodeList=function(){return this.testCodeList};h.setParentEventId=function(a){this.parentEventId=a};h.getParentEventId=function(){return this.parentEventId};var ZNc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ZNc,X);ZNc.prototype.getUrl=function(){return Fi(this,1)};ZNc.prototype.setUrl=function(a){return Gj(this,1,a)};ZNc.prototype.hasUrl=function(){return xm(this,1)};var RD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(RD,X);RD.prototype.getIsPrivateDocument=function(){return $i(this,2)};RD.prototype.setIsPrivateDocument=function(a){return jj(this,2,a)};var $Nc=function(a){var b=new RD;return ij(b,7,a)};var om=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(om,X);h=om.prototype;h.getMessageId=function(){return Fi(this,1)};h.setMessageId=function(a){return Gj(this,1,a)};h.hasMessageId=function(){return xm(this,1)};h.getSessionId=function(){return Fi(this,2)};h.setSessionId=function(a){return Gj(this,2,a)};h.hasSessionId=function(){return xm(this,2)};var aOc=function(a,b){return hj(a,RD,3,b)};var bOc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(bOc,X);var nm=function(a){var b=new bOc;return hj(b,om,1,a)};var SD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,1)};Z(SD,X);var cOc=new xC(259,SD,bOc);var TD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(TD,X);TD.prototype.setVeIndex=function(a){Wn(this,1,a)};var dOc=function(a,b){Wn(a,2,b)};TD.prototype.setElementIndex=function(a){Wn(this,5,a)};TD.prototype.getResultIndex=function(){return Wm(this,6,-1)};TD.prototype.setResultIndex=function(a){Wn(this,6,a)};var eOc=[0,uC,-1,2,uC,-4,vC,uC,qKc,ZKc,uC,[0,pKc,uC],uC];var UD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(UD,X);UD.prototype.setVed=function(a){return Vo(this,5,fOc,a)};var gOc=[1,3,4],fOc=[2,5];var VD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,233)};Z(VD,X);VD.prototype.setUiType=function(a){return Wn(this,1,a)};VD.prototype.setElementIndex=function(a){Wn(this,3,a)};var hOc=function(a,b){tc(a,4,b,Bb)};VD.prototype.getResultIndex=function(){return Wm(this,7)};VD.prototype.setResultIndex=function(a){Wn(this,7,a)};VD.prototype.setVisible=function(a){return Yn(this,6,a)};var WD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,17)};Z(WD,X);h=WD.prototype;h.setVed=function(a){return Gj(this,11,a)};h.setUiType=function(a){return Wn(this,1,a)};h.setVeIndex=function(a){Wn(this,2,a)};h.getResultIndex=function(){return Wm(this,7,-1)};h.setResultIndex=function(a){Wn(this,7,a)};h.setElementIndex=function(a){Wn(this,8,a)};var iOc=function(a,b){ij(a,14,b)},jOc=ova(WD);var kOc=function(a){YNc.call(this,a)};Z(kOc,YNc);var lOc=function(a,b){a.addInteractionMetadataHandler(function(c){if(jOc(c)){var d=lw(new SD,cOc,b);hj(c,SD,15,d)}})};try{var mOc,nOc,oOc=(nOc=(mOc=window)==null?void 0:mOc.top)!=null?nOc:ra;oOc.U3bHHf!=null||(oOc.U3bHHf=0);oOc.U3bHHf++}catch(a){ra.U3bHHf!=null||(ra.U3bHHf=0),ra.U3bHHf++};tj.prototype.clone=function(){return new tj(this.x,this.y)};tj.prototype.equals=function(a){return a instanceof tj&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)};var Hsc=function(a,b){return new tj(a.x-b.x,a.y-b.y)};h=tj.prototype;h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
h.translate=function(a,b){a instanceof tj?(this.x+=a.x,this.y+=a.y):(this.x+=Number(a),typeof b==="number"&&(this.y+=b));return this};h.scale=function(a,b){this.x*=a;this.y*=typeof b==="number"?b:a;return this};h=uj.prototype;h.clone=function(){return new uj(this.width,this.height)};h.area=function(){return this.width*this.height};h.aspectRatio=function(){return this.width/this.height};h.isEmpty=function(){return!this.area()};h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};h.scale=function(a,b){this.width*=a;this.height*=typeof b==="number"?b:a;return this};var rOc=function(a,b){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a===pOc&&b||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=qOc};rOc.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};var qOc={},pOc={};var Qqb=Lh.setElementInnerHtml,sOc=Lh.setIframeSrc,tOc=Lh.setScriptSrc;var Bj=function(a){return a?new XD(iv(a)):PAc||(PAc=new XD)},YD=function(a,b){return(b||document).getElementsByTagName(String(a))},ZD=function(a,b,c,d){a=d||a;return(b=b&&b!="*"?String(b).toUpperCase():"")||c?a.querySelectorAll(b+(c?"."+c:"")):a.getElementsByTagName("*")},vOc=function(a,b){Ji(b,function(c,d){d=="style"?a.style.cssText=c:d=="class"?a.className=c:d=="for"?a.htmlFor=c:uOc.hasOwnProperty(d)?a.setAttribute(uOc[d],c):d.lastIndexOf("aria-",0)==0||d.lastIndexOf("data-",0)==0?a.setAttribute(d,
c):a[d]=c})},uOc={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"},$D=function(a){a=(a||window).document;a=a.compatMode=="CSS1Compat"?a.documentElement:a.body;return new uj(a.clientWidth,a.clientHeight)},wOc=function(a){return a.scrollingElement?a.scrollingElement:vj||a.compatMode!="CSS1Compat"?a.body||a.documentElement:
a.documentElement},hv=function(a){return a?a.defaultView:window},yOc=function(a,b,c){return xOc(document,arguments)},xOc=function(a,b){var c=b[1],d=Qt(a,String(b[0]));c&&(typeof c==="string"?d.className=c:Array.isArray(c)?d.className=c.join(" "):vOc(d,c));b.length>2&&zOc(a,d,b,2);return d},zOc=function(a,b,c,d){function e(g){g&&b.appendChild(typeof g==="string"?a.createTextNode(g):g)}for(;d<c.length;d++){var f=c[d];!Na(f)||gq(f)&&f.nodeType>0?e(f):Ja(f&&typeof f.length=="number"&&typeof f.item=="function"?
Ma(f):f,e)}},Qt=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)},AOc=function(a,b){zOc(iv(a),a,arguments,1)},aE=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},bE=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},BOc=function(a){return gq(a)&&a.nodeType==1},Dwa=function(a){return a.parentElement||null},Jqb=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},iv=function(a){return a.nodeType==9?a:a.ownerDocument||a.document},COc=function(a){return a.contentDocument||a.contentWindow.document},DOc=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 aE(a),a.appendChild(iv(a).createTextNode(String(b)))},
EOc={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},FOc={IMG:" ",BR:"\n"},GOc=function(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768},IOc=function(a){var b=[];HOc(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},HOc=function(a,b,c){if(!(a.nodeName in EOc))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 FOc)b.push(FOc[a.nodeName]);
else for(a=a.firstChild;a;)HOc(a,b,c),a=a.nextSibling},KOc=function(a){return JOc(a,function(b){return typeof b.className==="string"&&Ka(b.className.split(/\s+/),"ace-tooltip-close-button")})},JOc=function(a,b){for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null},csc=function(){var a=hv();return a.devicePixelRatio!==void 0?a.devicePixelRatio:a.matchMedia?LOc(3)||LOc(2)||LOc(1.5)||LOc(1)||.75:1},LOc=function(a){return hv().matchMedia("(min-resolution: "+a+"dppx),(min--moz-device-pixel-ratio: "+
a+"),(min-resolution: "+a*96+"dpi)").matches?a:0},XD=function(a){this.document_=a||ra.document||document};h=XD.prototype;h.getDomHelper=Bj;h.getElement=function(a){var b=this.document_;return typeof a==="string"?b.getElementById(a):a};h.$=XD.prototype.getElement;h.getElementsByTagName=function(a,b){return(b||this.document_).getElementsByTagName(String(a))};h.getElementsByTagNameAndClass=function(a,b,c){return ZD(this.document_,a,b,c)};h.$$=XD.prototype.getElementsByTagNameAndClass;
h.setProperties=vOc;h.getViewportSize=function(a){return $D(a||this.getWindow())};h.createDom=function(a,b,c){return xOc(this.document_,arguments)};h.createElement=function(a){return Qt(this.document_,a)};h.createTextNode=function(a){return this.document_.createTextNode(String(a))};h.getWindow=function(){return this.document_.defaultView};var MOc=function(a){var b=a.document_;a=wOc(b);b=b.defaultView;return new tj((b==null?void 0:b.pageXOffset)||a.scrollLeft,(b==null?void 0:b.pageYOffset)||a.scrollTop)};
h=XD.prototype;h.appendChild=function(a,b){a.appendChild(b)};h.append=AOc;h.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};
h.removeNode=bE;h.getChildren=function(a){return a.children!=void 0?a.children:Array.prototype.filter.call(a.childNodes,function(b){return b.nodeType==1})};h.getParentElement=Dwa;h.contains=Jqb;h.isFocusable=function(a){return a.tagName=="A"&&a.hasAttribute("href")||a.tagName=="INPUT"||a.tagName=="TEXTAREA"||a.tagName=="SELECT"||a.tagName=="BUTTON"?!a.disabled&&(!a.hasAttribute("tabindex")||GOc(a)):a.hasAttribute("tabindex")&&GOc(a)};var NOc=function(a,b){this.limit_=100;this.create_=a;this.reset_=b;this.occupants_=0;this.head_=null};NOc.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};NOc.prototype.put=function(a){this.reset_(a);this.occupants_<this.limit_&&(this.occupants_++,a.next=this.head_,this.head_=a)};FLc(function(){});var OOc=function(){this.workTail_=this.workHead_=null};OOc.prototype.add=function(a,b){var c=Awa.get();c.set(a,b);this.workTail_?this.workTail_.next=c:this.workHead_=c;this.workTail_=c};OOc.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 Awa=new NOc(function(){return new POc},function(a){return a.reset()}),POc=function(){this.next=this.scope=this.fn=null};
POc.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};POc.prototype.reset=function(){this.next=this.scope=this.fn=null};var QOc,Bwa=!1,zwa=new OOc,cE=function(a,b){QOc||ROc();Bwa||(QOc(),Bwa=!0);zwa.add(a,b)},ROc=function(){var a=Promise.resolve(void 0);QOc=function(){a.then(Cwa)}};var SOc=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var eE=function(a){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(a!=gD)try{var b=this;a.call(void 0,function(c){dE(b,2,c)},function(c){dE(b,3,c)})}catch(c){dE(this,3,c)}},TOc=function(){this.next=this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};TOc.prototype.reset=function(){this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};
var UOc=new NOc(function(){return new TOc},function(a){a.reset()}),VOc=function(a,b,c){var d=UOc.get();d.onFulfilled=a;d.onRejected=b;d.context=c;return d},WOc=function(a){if(a instanceof eE)return a;var b=new eE(gD);dE(b,2,a);return b},XOc=function(a){return new eE(function(b,c){c(a)})},ZOc=function(a,b,c){YOc(a,b,c,null)||cE(et(b,a))},$Oc=function(a){return new eE(function(b,c){var d=a.length,e=[];if(d)for(var f=function(r,w){d--;e[r]=w;d==0&&b(e)},g=function(r){c(r)},k,m=0;m<a.length;m++)k=a[m],
ZOc(k,et(f,m),g);else b(e)})},aPc=function(a){return new eE(function(b,c){var d=a.length,e=[];if(d)for(var f=function(r){b(r)},g=function(r,w){d--;e[r]=w;d==0&&c(e)},k,m=0;m<a.length;m++)k=a[m],ZOc(k,f,et(g,m));else b(void 0)})},cPc=function(){var a,b,c=new eE(function(d,e){a=d;b=e});return new bPc(c,a,b)};eE.prototype.then=function(a,b,c){return dPc(this,eD(typeof a==="function"?a:null),eD(typeof b==="function"?b:null),c)};eE.prototype.$goog_Thenable=!0;
var fPc=function(a,b,c,d){ePc(a,VOc(b||gD,c||null,d))};eE.prototype.finally=function(a){var b=this;a=eD(a);return new eE(function(c,d){fPc(b,function(e){a();c(e)},function(e){a();d(e)})})};eE.prototype.thenCatch=function(a,b){return dPc(this,null,eD(a),b)};eE.prototype.catch=eE.prototype.thenCatch;eE.prototype.cancel=function(a){if(this.state_==0){var b=new gPc(a);cE(function(){hPc(this,b)},this)}};
var hPc=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,g=c.callbackEntries_;g&&(g.always||(d++,g.child==a&&(e=g),!(e&&d>1)));g=g.next)e||(f=g);e&&(c.state_==0&&d==1?hPc(c,b):(f?(d=f,d.next==c.callbackEntriesTail_&&(c.callbackEntriesTail_=d),d.next=d.next.next):iPc(c),jPc(c,e,3,b)))}a.parent_=null}else dE(a,3,b)},ePc=function(a,b){a.callbackEntries_||a.state_!=2&&a.state_!=3||kPc(a);a.callbackEntriesTail_?a.callbackEntriesTail_.next=b:a.callbackEntries_=
b;a.callbackEntriesTail_=b},dPc=function(a,b,c,d){var e=VOc(null,null,null);e.child=new eE(function(f,g){e.onFulfilled=b?function(k){try{var m=b.call(d,k);f(m)}catch(r){g(r)}}:f;e.onRejected=c?function(k){try{var m=c.call(d,k);m===void 0&&k instanceof gPc?g(k):f(m)}catch(r){g(r)}}:g});e.child.parent_=a;ePc(a,e);return e.child};eE.prototype.unblockAndFulfill_=function(a){this.state_=0;dE(this,2,a)};eE.prototype.unblockAndReject_=function(a){this.state_=0;dE(this,3,a)};
var dE=function(a,b,c){a.state_==0&&(a===c&&(b=3,c=new TypeError("Bb")),a.state_=1,YOc(c,a.unblockAndFulfill_,a.unblockAndReject_,a)||(a.result_=c,a.state_=b,a.parent_=null,kPc(a),b!=3||c instanceof gPc||lPc(a,c)))},YOc=function(a,b,c,d){if(a instanceof eE)return fPc(a,b,c,d),!0;if(SOc(a))return a.then(b,c,d),!0;if(gq(a))try{var e=a.then;if(typeof e==="function")return mPc(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},mPc=function(a,b,c,d,e){var f=!1,g=function(m){f||(f=!0,c.call(e,m))},
k=function(m){f||(f=!0,d.call(e,m))};try{b.call(a,g,k)}catch(m){k(m)}},kPc=function(a){a.executing_||(a.executing_=!0,cE(a.executeCallbacks_,a))},iPc=function(a){var b=null;a.callbackEntries_&&(b=a.callbackEntries_,a.callbackEntries_=b.next,b.next=null);a.callbackEntries_||(a.callbackEntriesTail_=null);return b};eE.prototype.executeCallbacks_=function(){for(var a;a=iPc(this);)jPc(this,a,this.state_,this.result_);this.executing_=!1};
var jPc=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,nPc(b,c,d);else try{b.always?b.onFulfilled.call(b.context):nPc(b,c,d)}catch(e){oPc.call(null,e)}UOc.put(b)},nPc=function(a,b,c){b==2?a.onFulfilled.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)},lPc=function(a,b){a.hadUnhandledRejection_=!0;cE(function(){a.hadUnhandledRejection_&&oPc.call(null,b)})},oPc=sa,gPc=function(a){oa.call(this,
a);this.reportErrorToServer=!1};Ww(gPc,oa);gPc.prototype.name="cancel";var bPc=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};var pPc=1;var qPc=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};var rPc=function(){},sPc=[[],[]],tPc=0,uPc=new Set,vPc=null,wPc=0,xPc=0,yPc=0,zPc=0,APc=0,BPc=function(a){this.mutate_=this.measure_=void 0;this.runInCurrentFrameIfPossible_=!1;this.window_=window;this.context_=a;this.state_ctor_=rPc};h=BPc.prototype;h.measure=function(a){this.measure_=a;return this};h.mutate=function(a){this.mutate_=a;return this};h.runInCurrentFrameIfPossible=function(){this.runInCurrentFrameIfPossible_=!0;return this};h.window=function(a){this.window_=a;return this};
h.build=function(){return CPc({measure:this.measure_,mutate:this.mutate_,stateCtor:this.state_ctor_,window:this.window_,runInCurrentFrameIfPossible:this.runInCurrentFrameIfPossible_},this.context_)};
var CPc=function(a,b){var c=APc++,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 g=f.phase!==0;g&&(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);g&&(g=tPc,!a.runInCurrentFrameIfPossible||zPc==0||a.measure&&zPc!=1||(g=(g+1)%2),sPc[g].push(f));return DPc(a.window)}},EPc=function(a,b){var c={};
zPc=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(g){c[d]=!0,sa(g)}}}zPc=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(g){sa(g)}}wPc>0&&b>1&&(a=b-wPc,a<500&&(pPc++,a>100&&xPc++,yPc<a&&(yPc=a)));wPc=uPc.size&&b>1?b:0},DPc=function(a){if(!uPc.has(a)){uPc.size||
(vPc=new qPc);uPc.add(a);var b=vPc.resolve;a.requestAnimationFrame(function(c){uPc.clear();var d=sPc[tPc];tPc=(tPc+1)%2;try{EPc(d,c)}finally{zPc=0,d.length=0}b()})}return vPc.promise};var FPc=function(){this.client_info=this.global_metadata=this.ve_metadata=void 0;this.testCodes=[]};var fE=function(){};fE.prototype.impressionEvent=function(){return[]};fE.prototype.interactionEvent=function(){return[]};fE.prototype.visibilityEvent=function(){return[]};fE.prototype.semanticEvent=function(){return[]};var gE=function(){if(!GPc){var a=GPc=new UKc,b=Date.now()*1E3+Math.floor(Math.random()*1E3);Nn(a,1,b);$r(GPc,2,Jca());$r(GPc,3,Jca());HPc=0}a=new PC;a=hj(a,UKc,1,GPc);b=++HPc;return Nn(a,2,b)},HPc=0,GPc=void 0;var IPc=function(a){this.userAction=a};for(var JPc={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"}},Gwa=Kwa(JPc),KPc=new Map,LPc=l(Object.keys(JPc)),MPc=LPc.next();!MPc.done;MPc=LPc.next()){var NPc=MPc.value;KPc.set(JPc[NPc].xid,JPc[NPc].string)}
var Iwa=Kwa({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 OPc=function(a,b){this.visualElementProvider=a;this.traverseShadowDom=b===void 0?!1:b},QPc=function(a,b){return PPc(a,b).filter(function(c){return hE(this.visualElementProvider,c)!=null},a)},UPc=function(a,b){var c=a.visualElementProvider;a=[];for(var d=void 0,e={},f=0;f<b.length;e={parent$jscomp$102:void 0},++f){var g=hE(c,b[f]);RPc(g)||(e.parent$jscomp$102=void 0,Fwa(b[f],function(k){return function(m){m=hE(c,m);return m!=null?(k.parent$jscomp$102=m,!0):!1}}(e),!1),e.parent$jscomp$102?d&&d.has(e.parent$jscomp$102)||
(d=new Map,a.unshift(d),d.set(e.parent$jscomp$102,[]),SPc=1):(d=new Map,a.unshift(d),SPc=0),TPc(g),g.setParent(e.parent$jscomp$102),d.set(g,[]),e.parent$jscomp$102&&d.get(e.parent$jscomp$102).push(g.traversalOrder_))}return a},VPc=function(a,b){var c=a.visualElementProvider;return b.map(function(d){return hE(c,d)})},PPc=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},SPc=0;var iE=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.interactionMetadataHandler_=void 0;this.xidTagComponents_=b||!1;this.tracks_=new Set};iE.prototype.getID=function(){return this.visualElementID};var WPc=function(a,b){return b?a.tracks_.has(a.maybeXidEventLabel_(b)):a.tracks_.size!=0};h=iE.prototype;h.setIndex=function(a){this.index_=a};
h.getIndex=function(){return this.index_};h.setComponentID=function(a){this.componentID_=a};h.getComponentID=function(){return this.componentID_};h.isMutable=function(){return this.mutable_};h.setAttribute=function(a){this.attribute_=a;return this};h.getAttribute=function(){return this.attribute_};var XPc=function(a,b){for(var c=0;c<a.metadataHandlers_.length;++c)a.metadataHandlers_[c](b)};iE.prototype.addInteractionMetadataHandler=function(a){this.interactionMetadataHandler_=a};
iE.prototype.populateInteractionMetadata=function(a){this.interactionMetadataHandler_&&this.interactionMetadataHandler_(a)};iE.prototype.maybeXidEventLabel_=function(a){return this.xidTagComponents_?Hwa(a):a};iE.prototype.maybeXidPartLabel_=function(a){return this.xidTagComponents_?Jwa(a):a};iE.prototype.isMutable=iE.prototype.isMutable;var YPc=kva(TD,eOc),ZPc=nva(eOc);var jE=function(a,b){this.el_=a;this.veTag_=b;this.rootImpressionEventID=this.impressionEventID=void 0;this.neverShown=this.hidden=!0;this.serverVed_=this.parent_=this.traversalOrder_=void 0};jE.prototype.getTag=function(){return this.veTag_};jE.prototype.getElement=function(){return this.el_};var RPc=function(a){return a.impressionEventID!==void 0},TPc=function(a){var b=SPc++;a.traversalOrder_=b};jE.prototype.setParent=function(a){this.parent_=a};jE.prototype.getParent=function(){return this.parent_};
var $Pc=function(a){if(RPc(a)){var b=new TD;b.setVeIndex(a.traversalOrder_);dOc(b,a.getTag().getID());hj(b,PC,13,a.impressionEventID);a=ZPc(b);return"0"+Sba(a,4)}};var aQc=function(a,b){this.tagPopulator_=a;this.expectXidTagComponents_=b||!1;this.componentID_=void 0},hE=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||xa(d)||d!=c.getTag().getAttribute()));if(d)return c;d=b.getAttribute("jslog");if(!d)return null;d=bQc(a,
d);if(!d||(d.getComponentID()||a.componentID_)&&d.getComponentID()!=a.componentID_)return null;a=new jE(b,d);c&&c.getTag().retain_cached_impression_&&RPc(c)&&(a.impressionEventID=c.impressionEventID);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=YPc(c);e=Y(f,PC,13)}catch(g){e=null}}e&&(a.impressionEventID=e,a.rootImpressionEventID=e)}return b.LSWHIf=a},bQc=function(a,b){if(xa(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(!xa(f)){var g=eMc(f);if(g.length<2)return null;f=g[0].trim();g=g[1].trim();if(xa(f)||xa(g))return null;switch(f){case a.maybeXidPartLabel_("track"):f=g.split(",");for(g=0;g<f.length;++g){var k=d,m=f[g].trim();if(a.expectXidTagComponents_){if(!k.xidTagComponents_)throw Error("Eb");if(!KPc.has(m))throw Error("Fb`"+m);k.tracks_.add(m)}else k.tracks_.add(k.maybeXidEventLabel_(m))}break;
case a.maybeXidPartLabel_("index"):d.setIndex(Number(g));break;case a.maybeXidPartLabel_("tc"):f=g.split(",");f=f.map(Number);f=f.filter(Number.isInteger);d.testCodes_=f;break;case "cid":d.setComponentID(g);break;case a.maybeXidPartLabel_("mutable"):g=="true"?d.mutable_=!0:g=="rci"&&(d.mutable_=!0,d.retain_cached_impression_=!0)}}}return d.setAttribute(b)};aQc.prototype.maybeXidPartLabel_=function(a){return this.expectXidTagComponents_?Jwa(a):a};
aQc.prototype.setComponentID=function(a){this.componentID_=a};aQc.prototype.getComponentID=function(){return this.componentID_};var cQc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(cQc,X);cQc.prototype.setElementIndex=function(a){Wn(this,2,a)};cQc.prototype.setUserAction=function(a){return Yn(this,4,a)};var kE=function(a,b){Aj.call(this);this.interval_=a||1;this.timerObject_=b||ra;this.boundTick_=Dj(this.tick_,this);this.last_=Date.now()};Ww(kE,Aj);h=kE.prototype;h.enabled=!1;h.timer_=null;h.setInterval=function(a){this.interval_=a;this.timer_&&this.enabled?(this.stop(),this.start()):this.timer_&&this.stop()};
h.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()))}};h.start=function(){this.enabled=!0;this.timer_||(this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_),this.last_=Date.now())};
h.stop=function(){this.enabled=!1;this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null)};h.disposeInternal=function(){kE.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
var ht=function(a,b,c){if(typeof a==="function")c&&(a=Dj(a,c));else if(a&&typeof a.handleEvent=="function")a=Dj(a.handleEvent,a);else throw Error("Gb");return Number(b)>2147483647?-1:ra.setTimeout(a,b||0)},dQc=function(){var a=null;return(new eE(function(b,c){a=ht(function(){b(void 0)},5E3);a==-1&&c(Error("Hb"))})).thenCatch(function(b){ra.clearTimeout(a);throw b;})};var eQc=function(a,b,c){Oi.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};Z(eQc,Oi);h=eQc.prototype;h.fire=function(a){this.args_=arguments;this.timer_||this.pauseCount_?this.shouldFire_=!0:fQc(this)};h.stop=function(){this.timer_&&(ra.clearTimeout(this.timer_),this.timer_=null,this.shouldFire_=!1,this.args_=null)};h.pause=function(){this.pauseCount_++};
h.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.timer_||(this.shouldFire_=!1,fQc(this))};h.disposeInternal=function(){Oi.prototype.disposeInternal.call(this);this.stop()};var fQc=function(a){a.timer_=ht(function(){a.timer_=null;a.shouldFire_&&!a.pauseCount_&&(a.shouldFire_=!1,fQc(a))},a.interval_);var b=a.args_;a.args_=null;a.listener_.apply(null,b)};var gQc=function(a,b){at.call(this,"visibilitychange");this.hidden=a;this.visibilityState=b};Z(gQc,at);var Pwa=new WeakMap,Nwa=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")};Ww(Qwa,Aj);h=Qwa.prototype;h.getBrowserEventType_=zj(function(){var a=this.isSupported(),b=this.getHiddenPropertyName_()!="hidden";if(a){var c;b?c=((Lwa()||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});h.getHiddenPropertyName_=zj(function(){return Mwa("hidden",this.domHelper_.document_)});h.getVisibilityStatePropertyName_=zj(function(){return Mwa("visibilityState",this.domHelper_.document_)});h.isSupported=function(){return!!this.getHiddenPropertyName_()};
h.isHidden=function(){return!!this.domHelper_.document_[this.getHiddenPropertyName_()]};h.getVisibilityState=function(){return this.isSupported()?this.domHelper_.document_[this.getVisibilityStatePropertyName_()]:null};h.handleChange_=function(){var a=this.getVisibilityState();a=new gQc(this.isHidden(),a);this.dispatchEvent(a)};h.disposeInternal=function(){dD(this.eventKey_);Qwa.superClass_.disposeInternal.call(this)};h=Ej.prototype;h.getWidth=function(){return this.right-this.left};h.getHeight=function(){return this.bottom-this.top};h.clone=function(){return new Ej(this.top,this.right,this.bottom,this.left)};h.contains=function(a){return this&&a?a instanceof Ej?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};
h.expand=function(a,b,c,d){gq(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};h.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};
h.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};h.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};
h.translate=function(a,b){a instanceof tj?(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};h.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};Fj.prototype.clone=function(){return new Fj(this.left,this.top,this.width,this.height)};var Ksc=function(a){return new Fj(a.left,a.top,a.right-a.left,a.bottom-a.top)};Fj.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 hQc=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 Fj(c,e,d-c,a-e)}return null};h=Fj.prototype;
h.difference=function(a){var b=hQc(this,a);if(b&&b.height&&b.width){b=[];var c=this.top,d=this.height,e=this.left+this.width,f=this.top+this.height,g=a.left+a.width,k=a.top+a.height;a.top>this.top&&(b.push(new Fj(this.left,this.top,this.width,a.top-this.top)),c=a.top,d-=a.top-this.top);k<f&&(b.push(new Fj(this.left,k,this.width,f-k)),d=k-c);a.left>this.left&&b.push(new Fj(this.left,c,a.left-this.left,d));g<e&&b.push(new Fj(g,c,e-g,d));a=b}else a=[this.clone()];return a};
h.contains=function(a){return a instanceof tj?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};h.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)};h.getSize=function(){return new uj(this.width,this.height)};
h.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};h.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};h.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};
h.translate=function(a,b){a instanceof tj?(this.left+=a.x,this.top+=a.y):(this.left+=a,typeof b==="number"&&(this.top+=b));return this};h.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 lE=function(a,b,c,d,e,f,g){var k=d===void 0?{}:d;var m=k.backgroundJobDeferrer===void 0?void 0:k.backgroundJobDeferrer;d=k.expectXidTagComponents===void 0?!1:k.expectXidTagComponents;k=k.traverseShadowDom===void 0?!1:k.traverseShadowDom;Pi.call(this);var r=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 iQc;this.visualElementProvider_=
new aQc(this.metadataHandler_,this.expectXidTagComponents_);this.eventToActionMap_={click:3};this.eventToTracksLabelMap_={click:this.maybeXidEventLabel_("generic_click")};this.pageVisibilityMonitor_=new Qwa;this.logImpressionsTask_=(new BPc(this)).measure(m?function(){return m().then(r.handleImpressions_.bind(r))}:this.handleImpressions_).runInCurrentFrameIfPossible().build();this.logImpressionsThrottle_=new eQc(this.logImpressionsTask_,500,this);this.traverser_=g||new OPc(this.visualElementProvider_,
k);this.eventBuilder instanceof fE&&(this.eventHandler_=this.eventBuilder);this.zwiebackId_=e;this.windowProvider_=f};Z(lE,Pi);lE.prototype.setComponentID=function(a){this.visualElementProvider_.setComponentID(a)};var mE=function(a,b,c,d){a.eventToActionMap_[b]=c;a.eventToTracksLabelMap_[b]=a.maybeXidEventLabel_(d||b)};
lE.prototype.logEvent=function(a,b,c){var d=this.eventToActionMap_[a];d&&(a=jQc(this,a,b))&&(this.eventHandler_?kQc(this,a,new IPc(d),c):(c=this.getAncestry_(a.getElement()),lQc(this,d,a,c)))};
lE.prototype.logSyntheticEvent=function(a,b,c,d){var e=this.eventToActionMap_[a];if(!e&&a!=="impression")return!1;if(d===void 0||d||!c)var f=new jE(Qt(document,"syntheticElement"),b);else{f=new jE(c,b);var g=this.visualElementProvider_;Fwa(c,function(k){if(!BOc(k))return!1;k=hE(g,k);return k!=null?(f.setParent(k),!0):!1},!1)}if(this.eventHandler_)return kQc(this,f,new IPc(e)),!0;a=[];c&&(a=this.getAncestry_(c));lQc(this,e,f,a);return!0};
var mQc=function(a,b){a.domHelper_=new XD;a.root_=b||a.domHelper_.document_.body;b=a.domHelper_.document_;b.readyState!=="interactive"&&b.readyState!=="complete"||a.logImpressions();a.listenOnce(b,"load",a.logImpressions,!1);a.listenOnce(b,"DOMContentLoaded",a.logImpressions,!1);a.listen(a.pageVisibilityMonitor_,"visibilitychange",a.logImpressions,!1);a.listen(b,"scroll",a.logImpressions,!0);a.listen(b,"resize",a.logImpressions,!0)};lE.prototype.logImpressions=function(){this.domHelper_&&this.logImpressionsThrottle_.fire()};
var lQc=function(a,b,c,d){var e=nQc(d),f=a.getIndex(c);var g=(new cQc).setUserAction(b);var k=c.getTag().getID();g=Wn(g,1,k);e=tc(g,3,e,Bb);f!=null&&e.setElementIndex(f);f=new FPc;f.ve_metadata=a.getMetadata(c,d);f.global_metadata=a.invariantData_;f.client_info=a.appInfo_;c=oQc(new nE,e.serialize()).setTestCodeList(f.testCodes);a.transport&&a.transport.dispatch(c);if(b!=null)for(b=new IPc(b),c=0;c<a.listeners_.length;c++)a.listeners_[c](b)};lE.prototype.log=function(a){this.transport&&this.transport.dispatch(a)};
lE.prototype.addInteractionEventListener=function(a){this.listeners_.push(a)};lE.prototype.removeInteractionEventListener=function(a){La(this.listeners_,a)};var pQc=function(a){for(var b=0;b<a.impressionListeners_.length;b++)a.impressionListeners_[b]()};lE.prototype.getIndex=function(a){return a.getTag().getIndex()};var nQc=function(a){return a.map(function(b){return b.getTag().getID()})};
lE.prototype.getMetadata=function(a,b){var c=new VD;XPc(a.getTag(),c);for(a=0;a<b.length;++a)XPc(b[a].getTag(),c);return c};var jQc=function(a,b,c){var d,e=a.visualElementProvider_,f=a.eventToTracksLabelMap_[b];Fwa(c,function(g){if(!BOc(g))return!1;g=hE(e,g);var k;if(k=g!=null)if(k=g.getTag(),a.expectXidTagComponents_){if(!k.xidTagComponents_)throw Error("Eb");if(!KPc.has(f))throw Error("Fb`"+f);k=k.tracks_.has(f)}else k=WPc(k,f);return k?(d=g,!0):!1},!0);return d};h=lE.prototype;
h.getAncestry_=function(a){var b=[],c=this.visualElementProvider_;Fwa(a,function(d){if(!BOc(d))return!1;d=hE(c,d);d!=null&&b.push(d);return!1},!1);return b};
h.handleImpressions_=function(){if(!this.pageVisibilityMonitor_.isHidden()&&this.root_){var a=!(!window.performance||!window.performance.clearMarks);a&&(window.performance.clearMeasures("ZVwBtb"),window.performance.clearMarks("KtiTlc"),window.performance.mark("KtiTlc"));var b=QPc(this.traverser_,this.root_);if(this.eventHandler_){var c=this.windowProvider_?this.domHelper_.getViewportSize(this.windowProvider_()):this.domHelper_.getViewportSize();c=new Fj(0,0,c.width,c.height);var d=UPc(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]),Gj(d[e],28,this.zwiebackId_),this.transport&&this.transport.dispatch(d[e])}b=VPc(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_&&Gj(b[c],28,this.zwiebackId_),this.transport&&this.transport.dispatch(b[c]);pQc(this)}else{c=[];d=this.windowProvider_?this.domHelper_.getViewportSize(this.windowProvider_()):
this.domHelper_.getViewportSize();d=new Fj(0,0,d.width,d.height);for(e=0;e<b.length;e++){var f=b[e];this.isVisible_(f,d)&&(f=hE(this.visualElementProvider_,f))&&WPc(f.getTag(),"impression")&&c.push(f)}b=gE();for(d=0;d<c.length;d++)e=c[d],RPc(e)||(f=this.getAncestry_(e.getElement()),lQc(this,void 0,e,f),pQc(this),e.impressionEventID=b)}a&&window.performance.measure("ZVwBtb","KtiTlc")}};
h.isVisible_=function(a,b){if(a.hasAttribute("ve-visible"))return a.getAttribute("ve-visible")==="true";a=a.getBoundingClientRect();return(b=hQc(b,new Fj(a.left,a.top,a.width,a.height)))&&b.width>=10&&b.height>=10?!0:!1};h.maybeXidEventLabel_=function(a){return this.expectXidTagComponents_?Hwa(a):a};
h.logSemanticInteraction=function(a){if(this.eventHandler_){a=this.eventHandler_.semanticEvent(a);for(var b=0;b<a.length;++b)this.metadataHandler_.addEventMetadata(a[b]),this.zwiebackId_&&Gj(a[b],28,this.zwiebackId_),this.transport&&this.transport.dispatch(a[b])}};
var kQc=function(a,b,c,d){d&&b.getTag().addInteractionMetadataHandler(function(e){hj(e,SD,15,d)});b=a.eventHandler_.interactionEvent(b,c);for(c=0;c<b.length;++c)a.metadataHandler_.addEventMetadata(b[c]),a.zwiebackId_&&Gj(b[c],28,a.zwiebackId_),a.transport&&a.transport.dispatch(b[c])};
lE.prototype.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 oE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(oE,X);var pE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,7)};Z(pE,X);pE.prototype.setTarget=function(a){hj(this,UD,1,a)};pE.prototype.getType=function(){return Ri(this,2)};pE.prototype.setType=function(a){return Yn(this,2,a)};pE.prototype.hasType=function(){return ym(this,2)};var qQc=function(a){var b=Date.now();b=Number.isFinite(b)?b*1E3:void 0;Nn(a,4,b)};var rQc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(rQc,X);var qE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(qE,X);qE.prototype.getParentEventId=function(){return Y(this,PC,3)};qE.prototype.setParentEventId=function(a){hj(this,PC,3,a)};qE.prototype.setRequestContext=function(a){hj(this,WD,4,a)};var tQc=function(a,b){this.userAction=a;this.visualElementID=b;sQc++},sQc=0;var iQc=function(){this.xidTagComponents_=!1};iQc.prototype.createNewTag=function(a){return new iE(a,this.xidTagComponents_)};iQc.prototype.addEventMetadata=function(){};var rE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(rE,X);var uQc=function(a,b){ij(a,1,b)};rE.prototype.addPath=function(a,b){return fq(this,1,VD,a,b)};rE.prototype.setPath=function(a,b){return dx(this,1,VD,a,b)};var vQc=new xC(100,pE,rE);var sE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(sE,X);var tE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(tE,X);tE.prototype.getTimestamp=function(){return Y(this,sE,1)};tE.prototype.setTimestamp=function(a){return hj(this,sE,1,a)};tE.prototype.hasTimestamp=function(){return Si(this,sE,1)};var wQc=new xC(126,SD,tE);var xQc=new xC(618,VD,tE);var yQc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,2)};Z(yQc,X);var zQc=new xC(273,VD,yQc);h=Rwa.prototype;h.add=function(a){var b=this.buff_[this.nextPtr_];this.buff_[this.nextPtr_]=a;this.nextPtr_=(this.nextPtr_+1)%this.maxSize_;return b};h.get=function(a){a=AQc(this,a);return this.buff_[a]};h.set=function(a,b){a=AQc(this,a);this.buff_[a]=b};h.getCount=function(){return this.buff_.length};h.isEmpty=function(){return this.buff_.length==0};h.clear=function(){this.nextPtr_=this.buff_.length=0};
h.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};h.getKeys=function(){for(var a=[],b=this.getCount(),c=0;c<b;c++)a[c]=c;return a};h.containsKey=function(a){return a<this.getCount()};var AQc=function(a,b){if(b>=a.buff_.length)throw Error("Ib");return a.buff_.length<a.maxSize_?b:(a.nextPtr_+Number(b))%a.maxSize_};var BQc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(BQc,X);var CQc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(CQc,X);h=CQc.prototype;h.getKey=function(){return Fi(this,1)};h.hasKey=function(){return xm(this,1)};h.getValue=function(){return Fi(this,2)};h.getValue_legacyNullable=function(){return Ml(this,2)};h.setValue=function(a){return Gj(this,2,a)};h.hasValue=function(){return xm(this,2)};var DQc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(DQc,X);var EQc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(EQc,X);var uE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,4)};Z(uE,X);var nE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,36)};Z(nE,X);h=nE.prototype;h.getTag=function(){return Fi(this,2)};h.getComponentId=function(){return Fi(this,26)};h.setComponentId=function(a){return Gj(this,26,a)};h.hasComponentId=function(){return xm(this,26)};h.addValue=function(){return fq(this,3,CQc)};h.setValue=function(a,b){return dx(this,3,CQc,a,b)};var oQc=function(a,b){return Gj(a,8,b)};nE.prototype.getExperimentIds=function(){return Y(this,BQc,16)};
nE.prototype.setExperimentIds=function(a){hj(this,BQc,16,a)};nE.prototype.clearExperimentIds=function(){return ex(this,16)};var vE=function(a,b){Gj(a,24,b)};nE.prototype.getTestCodeList=function(){return Ym(this,20,Xi())};nE.prototype.setTestCodeList=function(a){return tc(this,20,a,Bb)};nE.prototype.getComplianceData=function(){return Y(this,uE,33)};nE.prototype.setComplianceData=function(a){hj(this,uE,33,a)};var Cv=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 Rwa};Z(Cv,fE);h=Cv.prototype;h.impressionEvent=function(a,b){for(var c=[],d=[],e=0;e<a.length;++e)RPc(a[e].keys().next().value)?d.push(a[e]):c.push(a[e]);a=FQc(this,c,b);b=this.enableBatching_?GQc(this,d,b):HQc(this,d,b);return a.concat(b)};
h.interactionEvent=function(a,b){var c=new qE,d=gE();hj(c,PC,1,d);d=new WD;a.serverVed_?d.setVed(a.serverVed_):d.setUiType(a.getTag().getID()).setVeIndex(a.traversalOrder_);iOc(Wn(d,3,b.userAction),this.getAncestry_(a));a.getTag().populateInteractionMetadata(d);this.setTimestamp(d);var e=new oE;hj(e,PC,1,a.impressionEventID);c.setParentEventId(a.impressionEventID);c.setRequestContext(d);hj(c,oE,9,e);this.recentInteractions_.add(new tQc(b.userAction,a.getTag().getID()));a=new nE;vE(a,c.serialize());
return[a]};
h.visibilityEvent=function(a,b){for(var c=[],d=new Map,e=0;e<a.length;++e){var f=a[e],g=f.getElement(),k=f.rootImpressionEventID,m=d.get(k);m=m?m:[];var r=new rE;this.enableAncestryLoggingForGrafts_&&uQc(r,this.getAncestry_(f));if(f.neverShown||WPc(f.getTag(),"vis"))if(g=this.isVisible_(g,b),f.hidden&&g){g=new pE;g.setType(1);var w=IQc(f);g.setTarget(w);qQc(g);this.enableAncestryLoggingForGrafts_&&lw(g,vQc,r);m.push(g);f.hidden=!1;f.neverShown=!1}else f.hidden||g||(g=new pE,g.setType(2),w=IQc(f),
g.setTarget(w),qQc(g),this.enableAncestryLoggingForGrafts_&&lw(g,vQc,r),m.push(g),f.hidden=!0);d.set(k,m)}a=l(d.keys());for(b=a.next();!b.done;b=a.next())b=b.value,f=d.get(b),f.length&&(e=new rQc,ij(e,1,f),f=new qE,k=gE(),m=new oE,hj(m,PC,1,b),hj(f,PC,1,k),f.setParentEventId(b),hj(f,rQc,7,e),hj(f,oE,9,m),b=new nE,vE(b,f.serialize()),c.push(b));return c};
h.semanticEvent=function(a){var b=new WD,c=b.setUiType(a.getID());Wn(c,3,1);a.populateInteractionMetadata(b);this.setTimestamp(b);var d=gE();c=new qE;hj(c,PC,1,d);(d=a.getParentEventId())&&c.setParentEventId(d);var e=new oE;hj(e,PC,1,d);c.setRequestContext(b);hj(c,oE,9,e);this.recentInteractions_.add(new tQc(1,a.getID()));b=new nE;b.setTestCodeList(a.getTestCodeList());vE(b,c.serialize());return[b]};
h.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=hQc(b,new Fj(a.left,a.top,a.width,a.height)))&&b.width>=10&&b.height>=10?!0:!1};
var FQc=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$2:void 0},f--){e.clientVeProto$jscomp$7=new qE;e.testCodes$jscomp$2=[];e.impressionEventID=gE();hj(e.clientVeProto$jscomp$7,PC,1,e.impressionEventID);var g=new oE;hj(g,PC,1,e.impressionEventID);hj(e.clientVeProto$jscomp$7,oE,9,g);if(g=Uva(window.location.href,"ved"))g=(new WD).setVed(g),e.clientVeProto$jscomp$7.setRequestContext(g);b[f].forEach(function(k){return function(m,
r){r.impressionEventID=k.impressionEventID;r.rootImpressionEventID=k.impressionEventID;var w=this.getVisualElementLiteProto_(r);m.length&&hOc(w,m);m=r.getElement();this.isVisible_(m,c)?(r.neverShown=!1,r.hidden=!1):w.setVisible(1);JQc(this,r)&&r.traversalOrder_!==void 0&&(m.setAttribute("data-hveid",Number(r.traversalOrder_)),Wi(k.clientVeProto$jscomp$7,VD,2,Xi()).length===0&&$Pc(r)&&(m.setAttribute("decode-data-ved","1"),m.setAttribute("data-ved",$Pc(r)+"")));this.setTimestamp(w);fq(k.clientVeProto$jscomp$7,
2,VD,w);k.testCodes$jscomp$2=k.testCodes$jscomp$2.concat(r.getTag().testCodes_)}}(e),a);g=new nE;vE(g,e.clientVeProto$jscomp$7.serialize());g.setTestCodeList(e.testCodes$jscomp$2);d.push(g)}return d},GQc=function(a,b,c){for(var d=[],e=new Map,f=b.length-1;f>=0;f--){var g=b[f],k=g.keys().next().value.rootImpressionEventID,m=e.get(k)||[];m.push(g);e.set(k,m)}e.forEach(function(r,w){var x=0,D=[],H=new qE,J=[],O=gE();hj(H,PC,1,O);H.setParentEventId(w);var R=new oE;hj(R,PC,1,w);hj(H,oE,9,R);for(R=0;R<
r.length;R++)for(var V=r[R],ba=V.keys(),pa=ba.next().value,ua=V.get(pa),ma={},Da=0;Da<ua.length;ma={startingOffset:void 0,cloneTreeRootIndex:void 0},++Da){var ja=pa;ma.cloneTreeRootIndex=0;ma.startingOffset=ua[Da];var va=V.size;Da!=ua.length-1&&(va=ua[Da+1]);for(var ya=ma.startingOffset;ya<va;++ya){var Sa=ba.next().value;ya==ma.startingOffset&&(ja=Sa,ma.cloneTreeRootIndex=x);Sa.impressionEventID=O;Sa.rootImpressionEventID=w;Sa.traversalOrder_=x;var ab=V.get(Sa),rb=this.getVisualElementLiteProto_(Sa);
ab.length&&hOc(rb,ab.map(function(ac){return function(pc){return pc-ac.startingOffset+ac.cloneTreeRootIndex}}(ma)));ab=Sa.getElement();this.isVisible_(ab,c)?(Sa.neverShown=!1,Sa.hidden=!1):rb.setVisible(1);this.setTimestamp(rb);fq(H,2,VD,rb);J=J.concat(Sa.getTag().testCodes_);x++}ma=new pE;ma.setType(3);va=IQc(pa);ma.setTarget(va);va=new UD;ya=new TD;Sa=new rE;ya.setVeIndex(ja.traversalOrder_);dOc(ya,ja.getTag().getID());op(va,2,fOc,ya);hj(ma,UD,3,va);this.enableAncestryLoggingForGrafts_&&(uQc(Sa,
this.getAncestry_(ja)),lw(ma,vQc,Sa));D.push(ma)}D.length&&(r=new rQc,ij(r,1,D),hj(H,rQc,7,r));D=new nE;vE(D,H.serialize());D.setTestCodeList(J);d.push(D)},a);return d},HQc=function(a,b,c){for(var d=[],e=b.length-1;e>=0;e--)for(var f=b[e],g=f.keys(),k=g.next().value,m=f.get(k),r={},w=0;w<m.length;r={startingOffset$jscomp$1:void 0},++w){r.startingOffset$jscomp$1=m[w];var x=f.size;w!=m.length-1&&(x=m[w+1]);var D=new qE,H=[],J=gE(),O=new oE;hj(O,PC,1,k.impressionEventID);hj(D,PC,1,J);D.setParentEventId(k.impressionEventID);
Yn(D,5,3);hj(D,oE,9,O);O=new WD;k.serverVed_?O.setVed(k.serverVed_):O.setUiType(k.getTag().getID()).setVeIndex(k.traversalOrder_);iOc(O,a.getAncestry_(k));D.setRequestContext(O);for(O=r.startingOffset$jscomp$1;O<x;++O){var R=g.next().value;R.impressionEventID=J;R.rootImpressionEventID=k.rootImpressionEventID;R.traversalOrder_!=void 0&&(R.traversalOrder_-=r.startingOffset$jscomp$1);var V=f.get(R),ba=a.getVisualElementLiteProto_(R);V.length&&hOc(ba,V.map(function(pa){return function(ua){return ua-pa.startingOffset$jscomp$1}}(r)));
V=R.getElement();a.isVisible_(V,c)?(R.neverShown=!1,R.hidden=!1):ba.setVisible(1);JQc(a,R)&&R.traversalOrder_!==void 0&&(V.setAttribute("data-hveid",Number(R.traversalOrder_)),Wi(D,VD,2,Xi()).length===0&&$Pc(R)&&(V.setAttribute("decode-data-ved","1"),V.setAttribute("data-ved",$Pc(R)+"")));a.setTimestamp(ba);fq(D,2,VD,ba);H=H.concat(R.getTag().testCodes_)}r=new nE;vE(r,D.serialize());r.setTestCodeList(H);d.push(r)}return d};
Cv.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};Cv.prototype.getVisualElementLiteProto_=function(a){var b=(new VD).setUiType(a.getTag().getID());Number.isFinite(a.getTag().getIndex())&&b.setElementIndex(a.getTag().getIndex());XPc(a.getTag(),b);JQc(this,a)&&(a=new yQc,jj(a,1,!0),lw(b,zQc,a));return b};
var IQc=function(a){var b=new UD;if(a.serverVed_)b.setVed(a.serverVed_);else{var c=new TD;op(b,3,gOc,a.impressionEventID);c.setVeIndex(a.traversalOrder_);dOc(c,a.getTag().getID());op(b,2,fOc,c)}return b};
Cv.prototype.setTimestamp=function(a){var b=Date.now();b=Number.isFinite(b)?b.toString():void 0;if(a instanceof WD&&(!Y(a,SD,15)||!Y(a,SD,15).getExtension(wQc))){var c=new tE,d=new sE,e=Y(a,SD,15);e||(e=new SD);ao(d,1,b);c.setTimestamp(d);lw(e,wQc,c);hj(a,SD,15,e)}a instanceof VD&&(c=new tE,d=new sE,ao(d,1,b),c.setTimestamp(d),lw(a,xQc,c))};var JQc=function(a,b){return a.enableAttentionLogging_?WPc(b.getTag(),"hover")||WPc(b.getTag(),"attention"):!1};var KQc=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("Jb`"+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("Kb`"+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 MQc=function(a,b,c){var d=String(ra.location.href);return d&&a&&b?[b,LQc(KQc(d),a,c||null)].join(" "):null},LQc=function(a,b,c){var d=[],e=[];if((Array.isArray(c)?2:1)==1)return e=[b,a],Ja(d,function(k){e.push(k)}),NQc(e.join(" "));var f=[],g=[];Ja(c,function(k){g.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];Ja(d,function(k){e.push(k)});a=NQc(e.join(" "));a=[c,a];g.length==0||a.push(g.join(""));return a.join("_")},NQc=function(a){var b=
Swa();b.update(a);return b.digestString().toLowerCase()};h=Twa.prototype;h.isEnabled=function(){if(!ra.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};
h.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 g=c.path||void 0;var k=c.maxAge}if(/[;=\s]/.test(a))throw Error("Lb`"+a);if(/[;\r\n]/.test(b))throw Error("Mb`"+b);k===void 0&&(k=-1);c=f?";domain="+f:"";g=g?";path="+g:"";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+g+k+d+(e!=null?";samesite="+e:"")};
h.get=function(a,b){for(var c=a+"=",d=this.getParts_(),e=0,f;e<d.length;e++){f=Aa(d[e]);if(f.lastIndexOf(c,0)==0)return f.slice(c.length);if(f==a)return""}return b};h.remove=function(a,b,c){var d=this.containsKey(a);this.set(a,"",{maxAge:0,path:b,domain:c});return d};h.getKeys=function(){return OQc(this).keys};h.getValues=function(){return OQc(this).values};h.isEmpty=function(){return!this.document_.cookie};h.getCount=function(){return this.document_.cookie?this.getParts_().length:0};
h.containsKey=function(a){return this.get(a)!==void 0};h.clear=function(){for(var a=OQc(this).keys,b=a.length-1;b>=0;b--)this.remove(a[b])};h.getParts_=function(){return(this.document_.cookie||"").split(";")};var OQc=function(a){a=a.getParts_();for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Aa(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 PQc=function(a,b,c,d){(a=ra[a])||typeof document==="undefined"||(a=(new Twa).get(b));return a?MQc(a,c,d):null},fuc=function(a){var b=KQc(ra==null?void 0:ra.location.href),c=[],d;(d=ra.__SAPISID||ra.__APISID||ra.__3PSAPISID||ra.__1PSAPISID||ra.__OVERRIDE_SID)?d=!0:(typeof document!=="undefined"&&(d=new Twa,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)?ra.__SAPISID:ra.__APISID,d||typeof document==="undefined"||(d=new Twa,d=d.get(b?"SAPISID":"APISID")||d.get("__Secure-3PAPISID")),(d=d?MQc(d,b?"SAPISIDHASH":"APISIDHASH",a):null)&&c.push(d),b&&((b=PQc("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&c.push(b),(a=PQc("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&c.push(a)));return c.length==0?null:c.join(" ")};var QQc=function(){this.minSize=1024},RQc=function(a){var b,c,d,e;return y(function(f){switch(f.nextAddress){case 1:return b=new CompressionStream("gzip"),c=(new Response(b.readable)).arrayBuffer(),d=b.writable.getWriter(),z(f,d.write((new TextEncoder).encode(a)),2);case 2:return z(f,d.close(),3);case 3:return e=Uint8Array,z(f,c,4);case 4:return f.return(new e(f.yieldResult))}})};QQc.prototype.isSupported=function(a){return a<this.minSize?!1:typeof CompressionStream!=="undefined"};var wE=function(a,b){this.intervalMs=a;this.callback=b;this.enabled=!1;this.nowFn=function(){return Date.now()};this.lastTimeMs=this.nowFn()};wE.prototype.setInterval=function(a){this.intervalMs=a;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};wE.prototype.start=function(){var a=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){a.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
wE.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};wE.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 SQc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(SQc,X);SQc.prototype.getTransmissionType=function(){return Ri(this,1)};SQc.prototype.setTransmissionType=function(a){return Yn(this,1,a)};var Xwa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Xwa,X);Xwa.prototype.getVersion=function(){return Fi(this,2)};Xwa.prototype.setVersion=function(a){return Gj(this,2,a)};Xwa.prototype.getVersionOrUndefined=function(){return mx(this,2)};var xE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(xE,X);var Wwa=function(a){ij(Ywa,1,a)};xE.prototype.setPlatform=function(a){Gj(this,3,a)};xE.prototype.setModel=function(a){return Gj(this,6,a)};var TQc=Hi(xE);var yE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(yE,X);yE.prototype.getLocale=function(){return Fi(this,5)};yE.prototype.setLocale=function(a){Gj(this,5,a)};yE.prototype.setBuildLabel=function(a){Gj(this,7,a)};var Uwa=["platform","platformVersion","architecture","model","uaFullVersion"],Ywa=new xE,Vwa=null;var zE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(zE,X);zE.prototype.getClientType=function(){return Ri(this,1)};zE.prototype.setClientType=function(){return Yn(this,1,1)};zE.prototype.getMutableJsClientInfo=function(){return cj(this,yE,11)};var UQc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,19)};Z(UQc,X);h=UQc.prototype;h.getMutableClientInfo=function(){return cj(this,zE,1)};h.setClientInfo=function(a){hj(this,zE,1,a)};h.getLogSource=function(){return Ri(this,2,-1)};h.setLogSource=function(a){return Yn(this,2,a)};h.getComplianceData=function(){return Y(this,uE,18)};h.setComplianceData=function(a){hj(this,uE,18,a)};var VQc=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 UQc;Number.isInteger(a)&&this.logRequest.setLogSource(a);b||(this.locale=document.documentElement.getAttribute("lang"));this.setClientInfo(new zE)};h=VQc.prototype;h.setLogSource=function(a){this.logRequest.setLogSource(a);return this};
h.setClientInfo=function(a){this.logRequest.setClientInfo(a);a.getClientType()||a.setClientType();this.isServiceWorkerScope||(a=this.getMutableJsClientInfo(),a.getLocale()||a.setLocale(this.locale));this.uach&&(a=this.getMutableJsClientInfo(),Y(a,xE,9)||hj(a,xE,9,this.uach))};h.setBuildLabel=function(a){this.getMutableJsClientInfo().setBuildLabel(a)};h.setTransmissionType=function(a){this.transmissionType=a;return this};
h.getMutableClientInfo=function(){var a=Y(this.logRequest,zE,1);a||(a=new zE,this.setClientInfo(a));return a};var WQc=function(a){var b=b===void 0?Uwa:b;var c=a.isServiceWorkerScope?void 0:hv();c?Zwa(c,b).then(function(d){a.uach=TQc(d!=null?d:"[]");d=a.getMutableJsClientInfo();hj(d,xE,9,a.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)};VQc.prototype.getMutableJsClientInfo=function(){var a=this.getMutableClientInfo(),b=Y(a,yE,11);b||(b=new yE,hj(a,yE,11,b));return b};
VQc.prototype.getComplianceData=function(a){var b=new DQc;a=Wn(b,13,a);b=new EQc;a=hj(b,DQc,2,a);b=new uE;a=hj(b,EQc,1,a);return Yn(a,2,9)};
VQc.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(!this.isServiceWorkerScope){var g=this.getMutableJsClientInfo();var k=(new SQc).setTransmissionType(this.transmissionType);k=jj(k,2,this.isFinal);c=Wn(k,3,c>0?c:void 0);c=Wn(c,4,e>0?e:void 0);c=Wn(c,5,f>0?f:void 0);c=jea(c);hj(g,SQc,10,c)}g=this.logRequest.clone();c=Date.now().toString();g=ao(g,4,c);a=ij(g,3,a.slice());d&&a.setComplianceData(this.getComplianceData(d));
b&&Nn(a,14,b);return a};$wa.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_};$wa.prototype.getValue=function(){return this.currValue_};var AE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(AE,X);AE.prototype.getId=function(a){return ox(this,1,a)};AE.prototype.setId=function(a){return zx(this,1,a)};var BE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,8)};Z(BE,X);BE.prototype.getExperiments=function(){return Y(this,AE,2)};BE.prototype.setExperiments=function(a){return hj(this,AE,2,a)};BE.prototype.hasExperiments=function(){return Si(this,AE,2)};var XQc=Hi(BE);var YQc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(YQc,X);var ZQc=new xC(175237375,BE,YQc);var CE=function(a){Oi.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 VQc(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&&!!hv()&&!!hv().navigator&&hv().navigator.sendBeacon!==void 0;this.isBrowserSupported=typeof URLSearchParams!=="undefined"&&!!(new URL($Qc())).searchParams&&!!(new URL($Qc())).searchParams.set;var c=(new zE).setClientType();this.logRequestBuilder.setClientInfo(c);this.flushBackoff=new $wa(1E4);a=aRc(this,a.backgroundJobDeferrer);this.flushTimer=new wE(this.flushBackoff.getValue(),
a);this.backupTimer=new wE(6E5,a);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){bRc(b);var d;(d=b.metalogService)==null||d.flush()}}),document.addEventListener("pagehide",function(){bRc(b);var d;(d=b.metalogService)==null||d.flush()}))};Z(CE,Oi);var aRc=function(a,b){return a.isBrowserSupported?b?function(){b().then(function(){a.flush()})}:function(){a.flush()}:function(){}};
h=CE.prototype;h.disposeInternal=function(){bRc(this);this.flushTimer.stop();this.backupTimer.stop();Oi.prototype.disposeInternal.call(this)};h.setClearcutUrl=function(a){this.clearcutUrl=a};h.setUseConsistentTimezoneOffset=function(a){this.useConsistentTimezoneOffset=a};h.getClearcutUrl=function(){this.clearcutUrl||(this.clearcutUrl=$Qc());try{return(new URL(this.clearcutUrl)).toString()}catch(a){return(new URL(this.clearcutUrl,hv().location.origin)).toString()}};
h.dispatch=function(a){if(a instanceof nE)this.log(a);else try{var b=oQc(new nE,a.serialize());this.log(b)}catch(c){DE(this,4,1)}};h.setClearcutClientInfo=function(a){this.logRequestBuilder.setClientInfo(a)};h.setComponentId=function(a){this.componentId=a};h.setProductID=function(a){this.productID=a};h.setPageId=function(a){this.pageId=a};h.setOpaqueExperimentIds=function(a){this.experimentIds||(this.experimentIds=new BQc);var b=this.experimentIds;a=[].concat(n(a));tc(b,2,a,Fca)};
h.setClearExperimentIds=function(a){if(a){this.experimentIds||(this.experimentIds=new BQc);var b=this.experimentIds;a=a.serialize();Gj(b,4,a)}else this.experimentIds&&ex(this.experimentIds,4)};h.setClientSideLogOnlyForDevelopment=function(a){this.clientSideLogOnlyForDevelopment=a};h.setCompressor=function(a){this.compressor=a};h.setBuildLabel=function(a){this.logRequestBuilder.setBuildLabel(a)};h.setFlushIntervalMs=function(a){this.clientSpecifiedFlushInterval=!0;cRc(this,a)};h.getLogSource=function(){return this.logSource};
var cRc=function(a,b){a.flushBackoff=new $wa(b<1?1:b);a.flushTimer.setInterval(a.flushBackoff.getValue())},DE=function(a,b,c){a.metalogService&&a.metalogService.increment(b,c)};
CE.prototype.log=function(a){DE(this,2,1);if(this.isBrowserSupported){a=a.clone();var b=this.sequencePosition++;a=Nn(a,21,b);this.componentId&&a.setComponentId(this.componentId);b=a;if(Lb(um(b,1))==null){var c=Date.now();c=Number.isFinite(c)?c.toString():"0";ao(b,1,c)}Gn(b,15)||Nn(b,15,(new Date).getTimezoneOffset()*(this.useConsistentTimezoneOffset?-60:60));this.experimentIds&&b.setExperimentIds(this.experimentIds.clone());DE(this,1,1);b=this.pendingEvents.length-this.bufferSize+1;b>0&&(this.pendingEvents.splice(0,
b),this.numLogsDroppedSinceLastFlush+=b,DE(this,3,b));this.pendingEvents.push(a);this.maybeStartFlushTimer()}};CE.prototype.maybeStartFlushTimer=function(){this.disableAutomaticFlush||this.flushTimer.enabled||this.flushTimer.start()};
CE.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),dRc(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),g=this.getAuthHeaderValue();if(g&&this.lastFailedAuth===g)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=RQc(d));var m=this.createRequestParams(d,g),r=function(D){c.flushBackoff.reset();c.flushTimer.setInterval(c.flushBackoff.getValue());if(D){var H=null;try{var J=JSON.stringify(JSON.parse(D.replace(")]}'\n","")));H=XQc(J)}catch(O){}H&&(D=Number(Hn(H,1,jb("-1"))),D>0&&(c.startWaitingMs=Date.now(),c.noFlushUntilMs=c.startWaitingMs+D),H=jCc(H,ZQc))&&(H=Wm(H,1,-1),H!==-1&&(c.clientSpecifiedFlushInterval||cRc(c,H)))}a&&a();c.numRetriesSinceLastSuccessfulFlush=0},w=function(D,H){var J=Wi(f,nE,3,Xi());
var O=Number(Hn(f,14)),R=c.flushBackoff;R.currBaseValue_=Math.min(3E5,R.currBaseValue_*2);R.currValue_=Math.min(3E5,R.currBaseValue_+Math.round(.1*(Math.random()-.5)*2*R.currBaseValue_));c.flushTimer.setInterval(c.flushBackoff.getValue());D===401&&g&&(c.lastFailedAuth=g);O&&(c.numLogsDroppedSinceLastFlush+=O);H===void 0&&(H=500<=D&&D<600||D===401||D===0);H&&(c.pendingEvents=J.concat(c.pendingEvents),c.maybeStartFlushTimer());DE(c,7,1);b&&b("net-send-failed",D);++c.numRetriesSinceLastSuccessfulFlush},
x=function(){c.network&&c.network.send(m,r,w)};k?k.then(function(D){DE(c,5,e);m.requestHeaders["Content-Encoding"]="gzip";m.requestHeaders["Content-Type"]="application/binary";m.body=D;m.bodyType=2;x()},function(){DE(c,6,e);x()}):x()}}}};
CE.prototype.createRequestParams=function(a,b){b=b===void 0?null: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 bRc=function(a){a.clientSideLogOnlyForDevelopment||(a.logRequestBuilder.isFinal=!0,a.useSendBeaconForFinalFlush&&(a.logRequestBuilder.setTransmissionType(3),dRc(a)),a.useGetRequestForFinalFlush&&(a.logRequestBuilder.setTransmissionType(2),eRc(a)),a.flush(),a.logRequestBuilder.isFinal=!1)},dRc=function(a){fRc(a,32,10,function(b,c){b=new URL(b);b.searchParams.set("format","json");var d=!1;try{d=hv().navigator.sendBeacon(b.toString(),c.serialize())}catch(e){}d||(a.isSendBeaconSupported=!1);return d})},
eRc=function(a){fRc(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=[],g=0,k=0;k<c.length;k++){var m=c.charCodeAt(k);m>255&&(f[g++]=m&255,m>>=8);f[g++]=m}c=Sba(f,3);e.call(d,"p",c);b=b.toString();if(b.length>15360)return!1;(new Image).src=b;return!0})},fRc=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 g=a.pendingEvents.slice(0,b),k=a.logRequestBuilder.build(g,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(g.length)}a.flushTimer.enabled&&a.flushTimer.stop()}},$Qc=function(){return"https://play.google.com/log?format=json&hasfast=true"};CE.prototype.setBufferSize=function(a){this.bufferSize=a};var gRc=function(){this.abortSupported=typeof AbortController!=="undefined"};
gRc.prototype.send=function(a,b,c){var d=this,e,f,g,k,m,r,w,x,D,H;return y(function(J){switch(J.nextAddress){case 1:return f=(e=d.abortSupported?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,Vd(J,2,3),g=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}),z(J,fetch(a.url,g),5);case 5:k=J.yieldResult;if(k.status!==200){(m=c)==
null||m(k.status);J.jumpTo(3);break}if((r=b)==null){J.jumpTo(7);break}return z(J,k.text(),8);case 8:r(J.yieldResult);case 7:case 3:Wd(J);clearTimeout(f);Yd(J,0);break;case 2:w=Zd(J);switch((x=w)==null?void 0:x.name){case "AbortError":(D=c)==null||D(408);break;default:(H=c)==null||H(400)}J.jumpTo(3)}})};gRc.prototype.getTransmissionType=function(){return 4};var EE=function(a,b){b=b===void 0?"0":b;Oi.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};Z(EE,Oi);h=EE.prototype;h.setBuildLabel=function(a){this.buildLabel=a};h.setCompressor=function(a){this.compressor=a};h.setComponentId=function(a){this.componentId=a;return this};h.setProductID=function(a){this.productID=a};h.setClearExperimentIds=function(a){this.clearExperimentIds=a};h.setOpaqueExperimentIds=function(a){this.opaqueExperimentIds=a};var hRc=function(a,b){a.getAuthHeaderValue=b};h=EE.prototype;
h.setClearcutClientInfo=function(a){this.clearcutClientInfo=a};h.useSendBeaconForFinalFlush=function(){this.sendBeaconForFinalFlush=!0;return this};h.useGetRequestForFinalFlush=function(){this.getRequestForFinalFlush=!0;return this};h.setFlushIntervalMs=function(a){this.flushIntervalMs=Math.max(a,1E3)};h.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};h.setUseConsistentTimezoneOffset=function(a){this.useConsistentTimezoneOffset=a};
h.setPageId=function(a){this.pageId=a};h.setBufferSize=function(a){this.bufferSize=a};
h.build=function(){this.network||(this.network=new gRc);var a=new CE({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:fuc,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});Gt(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 QQc);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);WQc(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 iRc=function(){},jRc=function(){};var kRc=Symbol("Ob"),Hj=function(a,b,c){c=c===void 0?null:c;this.tracker=null;a&&(this.tracker=lRc(a))&&(mE(this.tracker,"click",3,"generic_click"),mE(this.tracker,"dragstart",30),mE(this.tracker,"drop",37),mE(this.tracker,"hover",9),mE(this.tracker,"input_text",15),mE(this.tracker,"key_press",32));b&&(this.visualElementLookup=b.getVisualElementLookup());this.runOutsideAngular=c?c.runOutsideAngular.bind(c):Zone.root.run.bind(Zone.root);Hj.lastEventTrackerInstalled||(Hj.lastEventTrackerInstalled=!0,
this.runOutsideAngular(function(){window.addEventListener("click",function(d){Hj.lastWindowEvent=d},{capture:!0});window.addEventListener("mouseenter",function(d){Hj.lastWindowEvent=d},{capture:!0})}))};Hj.prototype.addInteractionEventListener=function(a){this.tracker&&this.tracker.addInteractionEventListener(a)};Hj.prototype.removeInteractionEventListener=function(a){this.tracker&&this.tracker.removeInteractionEventListener(a)};
var nRc=function(a,b,c){a.runOutsideAngular(function(){a.tracker&&a.visualElementLookup&&(mRc(a,b,c),c.trackImpression&&a.tracker.logImpressions())})};Hj.prototype.logEvent=function(a,b,c){this.tracker&&this.tracker.logEvent(a,b,c)};
var mRc=function(a,b,c){a:if(a=a.visualElementLookup,c.visualElementId)a=c.visualElementId;else{if(a)if(c.visualElementName)if(a=a[c.visualElementName],a===0)console.warn("ID was never assigned for VE with name: "+c.visualElementName);else{if(a)break a;console.warn("Cannot find VE with name: "+c.visualElementName)}else console.warn("No ID or name found in config.");else console.warn("No ID found in config and no VisualElementLookup was set.");a=void 0}var d=a;d!==void 0&&(a=[],c.trackClick&&a.push("generic_click"),
c.trackImpression&&a.push("impression"),c.trackDrag&&a.push("dragstart"),c.trackDrop&&a.push("drop"),c.trackHover&&a.push("hover"),c.trackAttention&&a.push("attention"),c.trackInputText&&a.push("input_text"),c.trackKeyPress&&a.push("key_press"),c.trackKeyboardEnter&&a.push("keyboard_enter"),c.trackVisibility&&a.push("vis"),d=d.toString(),a.length&&(d+=";track:"+a.join(",")),c.metadata&&(d+=";"+c.metadata),c.mutable&&(d+=";mutable:true"),c.componentId&&(d+=";cid:"+c.componentId),c.index!=null&&(d+=
";index:"+c.index),b.nativeElement.setAttribute("jslog",d),b.nativeElement[kRc]=c)};Hj.prototype.logSyntheticEvent=function(a,b,c){this.tracker&&this.tracker.logSyntheticEvent(a,b,c)};Hj.prototype.logSemanticInteraction=function(a){this.tracker&&this.tracker.logSemanticInteraction(a)};Hj.prototype.log=function(a){this.tracker&&this.tracker.log(a)};
var oRc=function(a,b,c,d){Hj.lastWindowEvent&&Hj.lastWindowEvent!==d&&(Hj.lastWindowEvent.type==="click"&&c.trackClick&&axa(b)&&a.logEvent("click",b),Hj.lastWindowEvent.type==="mouseenter"&&c.trackHover&&axa(b)&&a.logEvent("hover",b))};Hj.lastEventTrackerInstalled=!1;Hj.lastWindowEvent=null;Hj.\u0275fac=function(a){return new (a||Hj)(Wc(iRc,8),Wc(jRc,8),Wc(Tg,8))};Hj.\u0275prov=Cc({token:Hj,factory:Hj.\u0275fac,providedIn:"root"});var pRc="click mouseenter dragstart drop keydown input".split(" "),FE=function(a,b,c){var d=this;this.veLoggingService=a;this.document=b;this.ngZone=c;this.handleDomEvent=function(e){for(var f=e.target;f;f=f.parentElement){var g=f[kRc];if(g){var k=bxa(g.interactionMetadata);switch(e.type){case "click":g.trackClick&&d.logEvent("click",f,k);break;case "mouseenter":g.trackHover&&d.logEvent("hover",f,k);break;case "dragstart":g.trackDrag&&d.logEvent("dragstart",f,k);break;case "drop":g.trackDrop&&d.logEvent("drop",
f,k);break;case "keydown":g.trackKeyPress&&d.logEvent("key_press",f,k);break;case "input":g.trackInputText&&d.logEvent("input_text",f,k);break;default:console.warn("No GIL binding for events of type "+e.type)}}}};this.ngZone.runOutsideAngular(function(){for(var e=l(pRc),f=e.next();!f.done;f=e.next())d.document.addEventListener(f.value,d.handleDomEvent,{capture:!0})})};
FE.prototype.logEvent=function(a,b,c){if(a!=="input_text"||this.previousInputTextEventTarget!==b)this.veLoggingService.logEvent(a,b,c),this.previousInputTextEventTarget=a==="input_text"?b:void 0};FE.prototype.ngOnDestroy=function(){var a=this;this.ngZone.runOutsideAngular(function(){for(var b=l(pRc),c=b.next();!c.done;c=b.next())a.document.removeEventListener(c.value,a.handleDomEvent,{capture:!0})});FE.instance=void 0};FE.\u0275fac=function(a){return new (a||FE)(Wc(Hj),Wc(Yh),Wc(Tg))};
FE.\u0275prov=Cc({token:FE,factory:FE.\u0275fac});var qRc=new bd("VE config");var rRc=function(){var a=this;this.veMetadataObject=Qg.apply(null,n([]));this.veEncoder=Qg.apply(null,[Tba].concat(n([])));this.veKey=Qg.apply(null,["0"].concat(n([])));this.value=ah.apply(null,[function(){var b=a.veMetadataObject();if(!b)return"";b=b.serialize();if(b==="")return"";b=a.veEncoder()(b);return b===""?"":a.veKey()+":"+b}].concat(n([])))};rRc.\u0275fac=function(a){return new (a||rRc)};
rRc.\u0275dir=af({type:rRc,selectors:[["","veMetadataObject",""]],inputs:{veMetadataObject:[1,"veMetadataObject"],veEncoder:[1,"veEncoder"],veKey:[1,"veKey"]},exportAs:["veMetadataLoggingDirective"]});var GE=function(a,b,c,d,e,f,g){var k=this;this.el=a;this.loggingService=b;this.ngZone=c;this.renderer=d;this.globalEventListenerService=e;this.veLoggingConfig=f;this.veMetadataLoggingDirective=g;this.veMetadata="";this.veKeyPress=this.veInputText=this.veAttention=this.veHover=this.veDrop=this.veDrag=this.veClick=this.veVisibility=this.veImpression=this.veMutable=!1;this.unregisterFunctions=[];this.lastEvent=null;this.ignoreInputTextEvent=!1;this.resetIgnoreInputTextEvent=function(){k.ignoreInputTextEvent=
!1}};h=GE.prototype;h.onClick=function(a){this.veClick&&(this.logEvent("click"),this.lastEvent=a)};h.onDrag=function(){this.veDrag&&this.logEvent("dragstart")};h.onDropOn=function(){this.veDrop&&this.logEvent("drop")};h.onKeyDown=function(){this.veKeyPress&&this.logEvent("key_press")};h.onMouseEnter=function(a){this.veHover&&(this.logEvent("hover"),this.lastEvent=a)};h.onInput=function(){this.veInputText&&!this.ignoreInputTextEvent&&(this.logEvent("input_text"),this.ignoreInputTextEvent=!0)};
h.logSyntheticEvent=function(a){this.config&&this.config.visualElementId&&this.loggingService.logSyntheticEvent(a,new iE(this.config.visualElementId),this.el.nativeElement)};h.logEvent=function(a){this.loggingService.logEvent(a,this.el.nativeElement,bxa(this.veInteractionMetadata))};var sRc=function(a){if(!a.veMetadataLoggingDirective)return a.veMetadata;var b=a.veMetadataLoggingDirective.value();if(b==="")return a.veMetadata;if(a.veMetadata!=="")throw Error("Pb");return b};h=GE.prototype;
h.ngOnInit=function(){var a=this;this.trackEventsInDirective&&this.ngZone.runOutsideAngular(function(){var b=a.el.nativeElement;a.unregisterFunctions=[a.renderer.listen(b,"click",a.onClick.bind(a)),a.renderer.listen(b,"dragstart",a.onDrag.bind(a)),a.renderer.listen(b,"drop",a.onDropOn.bind(a)),a.renderer.listen(b,"keydown",a.onKeyDown.bind(a)),a.renderer.listen(b,"input",a.onInput.bind(a)),a.renderer.listen(b,"mouseenter",a.onMouseEnter.bind(a))]});this.veMetadata=sRc(this);this.config=this.getConfig();
nRc(this.loggingService,this.el,this.config);this.veInputText&&this.trackEventsInDirective&&this.loggingService.addInteractionEventListener(this.resetIgnoreInputTextEvent)};
h.getConfig=function(){var a;return{componentId:(a=this.veLoggingConfig)==null?void 0:a.componentId,metadata:this.veMetadata,interactionMetadata:this.veInteractionMetadata,mutable:this.veMutable,trackClick:this.veClick,trackDrag:this.veDrag,trackDrop:this.veDrop,trackHover:this.veHover,trackAttention:this.veAttention,trackInputText:this.veInputText,trackImpression:this.veImpression,trackVisibility:this.veVisibility,trackKeyPress:this.veKeyPress,visualElementId:this.ve,index:this.veIndex}};
h.updateConfig=function(){var a;if((a=this.config)==null?0:a.mutable)this.config=this.getConfig(),this.config.mutable=!0,mRc(this.loggingService,this.el,this.config)};h.ngOnChanges=function(){this.updateConfig()};
h.ngOnDestroy=function(){var a=this;this.config&&this.trackEventsInDirective&&oRc(this.loggingService,this.el.nativeElement,this.config,this.lastEvent);this.veInputText&&this.trackEventsInDirective&&this.loggingService.removeInteractionEventListener(this.resetIgnoreInputTextEvent);this.ngZone.runOutsideAngular(function(){for(var b=l(a.unregisterFunctions),c=b.next();!c.done;c=b.next())c=c.value,c()})};
da.Object.defineProperties(GE.prototype,{trackEventsInDirective:{configurable:!0,enumerable:!0,get:function(){var a;return this.globalEventListenerService==null&&!((a=this.veLoggingConfig)==null?0:a.disableDirectives)}}});GE.\u0275fac=function(a){return new (a||GE)(Ve(Gd),Ve(Hj),Ve(Tg),Ve(ji),Ve(FE,8),Ve(qRc,8),Ve(rRc,8))};
GE.\u0275dir=af({type:GE,selectors:[["","ve",""]],inputs:{ve:"ve",veMetadata:"veMetadata",veInteractionMetadata:"veInteractionMetadata",veMutable:"veMutable",veImpression:"veImpression",veVisibility:"veVisibility",veClick:"veClick",veDrag:"veDrag",veDrop:"veDrop",veHover:"veHover",veAttention:"veAttention",veInputText:"veInputText",veKeyPress:"veKeyPress",veIndex:"veIndex"},exportAs:["veLoggingDirective"],features:[Gx]});var HE=function(){};HE.\u0275fac=function(a){return new (a||HE)};HE.\u0275mod=$e({type:HE});HE.\u0275inj=Dc({});var tRc=new bd("DUCKIE_VE_CONFIG",{providedIn:"root",factory:function(){return{logSource:0,veIds:{}}}}),IE=function(){this.config=q(tRc)},lRc=function(a){a=new lE(new Cv,null,(new EE(a.config.logSource,"0")).build());mQc(a);return a},mm=function(a,b,c){c=new kOc(c);lOc(c,b);lRc(a).logSemanticInteraction(c)},JE=function(a,b,c){var d=c.id;d&&(c=c.sessionId,d=(new om).setMessageId(d),c&&d.setSessionId(c),d=nm(d),mm(a,d,b))};IE.\u0275fac=function(a){return new (a||IE)};
IE.\u0275prov=Cc({token:IE,factory:IE.\u0275fac,providedIn:"root"});var uRc=function(){};var Kj=function(){this.Serializable$values={}},Ij=function(a,b){return a.Serializable$values.hasOwnProperty(b)?a.Serializable$values[b]:null},KE=function(a,b){return a.Serializable$values[b]!=null};var vRc=function(){};var wRc=function(a,b){this.requestService=a;this.hookFactory=b===void 0?null:b};Z(wRc,vRc);
var xRc=function(a,b,c){var d=cxa(a.hookFactory,b);return d==null?c:re.pipe(Bf({complete:function(){d.onBeforeSend()}}),nla(c.pipe(Bf(function(e){d.onSuccess(e)},function(e){d.onError(e)}))),pf(function(){var e;(e=d.onFinalize)==null||e.call(d)}))},yRc=function(a,b){var c=b.responseCtor||void 0,d=a.requestService,e=d.send,f=b.body instanceof Kj?hxa(b.body,exa,fxa,gxa):b.body;return xRc(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 zRc=function(){};zRc.prototype.send=function(a,b){pxa(a);return this.makeRequest(a).pipe(A(function(c){return b?lxa(b,c):c}))};var LE={COMMON_MARK_MARKDOWN_FLAVOR:"COMMON_MARK_MARKDOWN_FLAVOR",GITHUB_FLAVORED_MARKDOWN_FLAVOR:"GITHUB_FLAVORED_MARKDOWN_FLAVOR",GOOGLE_FLAVORED_MARKDOWN_FLAVOR:"GOOGLE_FLAVORED_MARKDOWN_FLAVOR",UNKNOWN:"UNKNOWN",values:function(){return[LE.UNKNOWN,LE.COMMON_MARK_MARKDOWN_FLAVOR,LE.GITHUB_FLAVORED_MARKDOWN_FLAVOR,LE.GOOGLE_FLAVORED_MARKDOWN_FLAVOR]}},ME={ALL:"ALL",BUGANIZER:"BUGANIZER",COMMON:"COMMON",EXTENDED:"EXTENDED",ISSUETRACKER:"ISSUETRACKER",LEGACY_G3DOC:"LEGACY_G3DOC",NONE:"NONE",values:function(){return[ME.NONE,
ME.COMMON,ME.EXTENDED,ME.ALL,ME.BUGANIZER,ME.ISSUETRACKER,ME.LEGACY_G3DOC]}},ARc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.markdown=a.markdown==null?null:a.markdown};Z(ARc,Kj);ARc.prototype.getPartialClassMetadata=function(){return{keys:["markdown"]}};da.Object.defineProperties(ARc.prototype,{markdown:{configurable:!0,enumerable:!0,get:function(){return KE(this,"markdown")?Ij(this,"markdown"):null},set:function(a){this.Serializable$values.markdown=a}}});
var BRc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.markdown=a.markdown==null?null:a.markdown;this.Serializable$values.markdownFlavor=a.markdownFlavor==null?null:a.markdownFlavor;this.Serializable$values.allowStyle=a.allowStyle==null?null:a.allowStyle;this.Serializable$values.escapeHtml=a.escapeHtml==null?null:a.escapeHtml;this.Serializable$values.sourcePos=a.sourcePos==null?null:a.sourcePos;this.Serializable$values.shortlinkSet=a.shortlinkSet==null?null:a.shortlinkSet;
this.Serializable$values.highlight=a.highlight==null?null:a.highlight;this.Serializable$values.graphviz=a.graphviz==null?null:a.graphviz;this.Serializable$values.allowListedTags=a.allowListedTags==null?null:a.allowListedTags};Z(BRc,Kj);BRc.prototype.getPartialClassMetadata=function(){return{enums:{markdownFlavor:LE,shortlinkSet:ME},keys:"allowListedTags allowStyle escapeHtml graphviz highlight markdown markdownFlavor shortlinkSet sourcePos".split(" ")}};
da.Object.defineProperties(BRc.prototype,{allowListedTags:{configurable:!0,enumerable:!0,get:function(){return KE(this,"allowListedTags")?Ij(this,"allowListedTags"):null},set:function(a){this.Serializable$values.allowListedTags=a}},allowStyle:{configurable:!0,enumerable:!0,get:function(){return KE(this,"allowStyle")?Ij(this,"allowStyle"):null},set:function(a){this.Serializable$values.allowStyle=a}},escapeHtml:{configurable:!0,enumerable:!0,get:function(){return KE(this,"escapeHtml")?Ij(this,"escapeHtml"):
null},set:function(a){this.Serializable$values.escapeHtml=a}},graphviz:{configurable:!0,enumerable:!0,get:function(){return KE(this,"graphviz")?Ij(this,"graphviz"):null},set:function(a){this.Serializable$values.graphviz=a}},highlight:{configurable:!0,enumerable:!0,get:function(){return KE(this,"highlight")?Ij(this,"highlight"):null},set:function(a){this.Serializable$values.highlight=a}},markdown:{configurable:!0,enumerable:!0,get:function(){return KE(this,"markdown")?Ij(this,"markdown"):null},set:function(a){this.Serializable$values.markdown=
a}},markdownFlavor:{configurable:!0,enumerable:!0,get:function(){return KE(this,"markdownFlavor")?Ij(this,"markdownFlavor"):null},set:function(a){this.Serializable$values.markdownFlavor=a}},shortlinkSet:{configurable:!0,enumerable:!0,get:function(){return KE(this,"shortlinkSet")?Ij(this,"shortlinkSet"):null},set:function(a){this.Serializable$values.shortlinkSet=a}},sourcePos:{configurable:!0,enumerable:!0,get:function(){return KE(this,"sourcePos")?Ij(this,"sourcePos"):null},set:function(a){this.Serializable$values.sourcePos=
a}}});var CRc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.safeHtml=a.safeHtml==null?null:a.safeHtml};Z(CRc,Kj);CRc.prototype.getPartialClassMetadata=function(){return{keys:["safeHtml"],objects:{safeHtml:DRc}}};da.Object.defineProperties(CRc.prototype,{safeHtml:{configurable:!0,enumerable:!0,get:function(){return KE(this,"safeHtml")?Ij(this,"safeHtml"):null},set:function(a){this.Serializable$values.safeHtml=a}}});
var DRc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.privateDoNotAccessOrElseSafeHtmlWrappedValue=a.privateDoNotAccessOrElseSafeHtmlWrappedValue==null?null:a.privateDoNotAccessOrElseSafeHtmlWrappedValue};Z(DRc,Kj);DRc.prototype.getPartialClassMetadata=function(){return{keys:["privateDoNotAccessOrElseSafeHtmlWrappedValue"]}};
da.Object.defineProperties(DRc.prototype,{privateDoNotAccessOrElseSafeHtmlWrappedValue:{configurable:!0,enumerable:!0,get:function(){return KE(this,"privateDoNotAccessOrElseSafeHtmlWrappedValue")?Ij(this,"privateDoNotAccessOrElseSafeHtmlWrappedValue"):null},set:function(a){this.Serializable$values.privateDoNotAccessOrElseSafeHtmlWrappedValue=a}}});
var ERc=new bd("API_VERSION"),FRc=new bd("REQUEST_SERVICE for g3mark_service_api_client"),GRc={$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"},NE=function(a,b,c){this.gapiVersion=a;this.gapiVersion=a==null?"v1":a;this.$apiClient=new wRc(b,c)};
NE.prototype.format=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?{}:c;return yRc(this.$apiClient,{body:a,httpMethod:"POST",methodId:"g3mark_service_api_client_from_stubby_sandbox.G3markService.format",path:"/"+this.gapiVersion+"/G3markService/Format",queryParams:qxa(b,GRc,c),responseCtor:ARc})};
var HRc=function(a,b){var c=c===void 0?{}:c;var d=d===void 0?{}:d;return yRc(a.$apiClient,{body:b,httpMethod:"POST",methodId:"g3mark_service_api_client_from_stubby_sandbox.G3markService.markdownToHtml",path:"/"+a.gapiVersion+"/G3markService/MarkdownToHtml",queryParams:qxa(c,GRc,d),responseCtor:CRc})};NE.\u0275fac=function(a){return new (a||NE)(Wc(ERc,8),Wc(FRc),Wc(uRc,8))};NE.\u0275prov=Cc({token:NE,factory:NE.\u0275fac,providedIn:"root"});var IRc=function(){};
IRc.\u0275fac=function(a){return new (a||IRc)};IRc.\u0275prov=Cc({token:IRc,factory:function(a){return NE.\u0275fac(a)},providedIn:"root"});var OE=function(a){this.g3markApiClient=a},JRc=function(a,b,c){var d=new BRc,e;d.allowStyle=(e=c==null?void 0:c.allowStyle)!=null?e:d.allowStyle;var f;d.escapeHtml=(f=c==null?void 0:c.escapeHtml)!=null?f:d.escapeHtml;var g;d.shortlinkSet=(g=c==null?void 0:c.shortlinkSet)!=null?g:d.shortlinkSet;var k;d.highlight=(k=c==null?void 0:c.highlight)!=null?k:d.highlight;var m;d.graphviz=(m=c==null?void 0:c.graphviz)!=null?m:d.graphviz;d.markdown=b;d.markdownFlavor=LE.GOOGLE_FLAVORED_MARKDOWN_FLAVOR;var r=
Dh(b,{preserveNewlines:!0,preserveTabs:!0,preserveSpaces:!0});a=HRc(a.g3markApiClient,d).pipe(A(function(w){if(w=w.safeHtml)if(w){w=w.privateDoNotAccessOrElseSafeHtmlWrappedValue;if(!w)throw Error("Ub");w=sh(w)}else w=null;else w=r;return w}),hf(function(){return be(r)}));if(c==null||!c.timeoutMs)return ee(a);c=be(r).pipe(nf(c.timeoutMs));return ee(nia(a,c))};OE.\u0275fac=function(a){return new (a||OE)(Wc(IRc))};OE.\u0275prov=Cc({token:OE,factory:OE.\u0275fac});/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var KRc=!!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString())||HTMLElement.es5Shimmed||ra.Reflect===void 0||ra.customElements===void 0||ra.customElements.polyfillWrapFlushCallback||!1,LRc,MRc=function(){var a=HTMLElement;if(KRc)return a;if(LRc!==void 0)return LRc;var b=ra.Reflect,c=function(){return b.construct(a,[],this.constructor)};c.prototype=a.prototype;c.prototype.constructor=c;c.es5Shimmed=!0;Object.setPrototypeOf(c,a);return LRc=c},NRc=!1;var ORc=ra.ShadowRoot&&(ra.ShadyCSS===void 0||ra.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,PRc=Symbol(),QRc=new WeakMap,RRc=function(a,b,c){this._$cssResult$=!0;if(c!==PRc)throw Error("Vb");this.cssText=a;this._strings=b};RRc.prototype.toString=function(){return this.cssText};
da.Object.defineProperties(RRc.prototype,{styleSheet:{configurable:!0,enumerable:!0,get:function(){var a=this._styleSheet,b=this._strings;if(ORc&&a===void 0){var c=b!==void 0&&b.length===1;c&&(a=QRc.get(b));a===void 0&&((this._styleSheet=a=new CSSStyleSheet).replaceSync(this.cssText),c&&QRc.set(b,a))}return a}}});
var SRc=function(a,b){if(ORc)a.adoptedStyleSheets=b.map(function(f){return f instanceof CSSStyleSheet?f:f.styleSheet});else{b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=document.createElement("style"),e=ra.litNonce;e!==void 0&&d.setAttribute("nonce",e);d.textContent=c.cssText;a.appendChild(d)}}},TRc=ORc?function(a){return a}:function(a){if(a instanceof CSSStyleSheet){var b="";a=l(a.cssRules);for(var c=a.next();!c.done;c=a.next())b+=c.value.cssText;b=new RRc(typeof b==="string"?b:
String(b),void 0,PRc)}else b=a;return b};var URc=function(a){if(globalThis.ShadyCSS!==void 0&&(!globalThis.ShadyCSS.nativeShadow||globalThis.ShadyCSS.ApplyShim)){a=a.ReactiveElement.prototype;globalThis.ShadyDOM&&globalThis.ShadyDOM.inUse&&globalThis.ShadyDOM.noPatch===!0&&globalThis.ShadyDOM.patchElementProto(a);var b=a.createRenderRoot;a.createRenderRoot=function(){var e=this.localName;if(globalThis.ShadyCSS.nativeShadow)return b.call(this);if(!this.constructor.hasOwnProperty("__scoped")){this.constructor.__scoped=!0;var f=this.constructor.elementStyles.map(function(r){return r instanceof
CSSStyleSheet?Array.from(r.cssRules).reduce(function(w,x){return w+x.cssText},""):r.cssText}),g,k;(g=globalThis.ShadyCSS)==null||(k=g.ScopingShim)==null||k.prepareAdoptedCssText(f,e);this.constructor._$handlesPrepareStyles===void 0&&globalThis.ShadyCSS.prepareTemplateStyles(document.createElement("template"),e)}var m;return(m=this.shadowRoot)!=null?m:this.attachShadow(this.constructor.shadowRootOptions)};var c=a.connectedCallback;a.connectedCallback=function(){c.call(this);this.hasUpdated&&globalThis.ShadyCSS.styleElement(this)};
var d=a._$didUpdate;a._$didUpdate=function(e){this.hasUpdated||globalThis.ShadyCSS.styleElement(this);d.call(this,e)}}},VRc;(VRc=globalThis).reactiveElementPolyfillSupport!=null||(VRc.reactiveElementPolyfillSupport=URc);KRc||NRc||(NRc=!0,ra.HTMLElement=MRc());
var WRc=MRc(),PE=Object,XRc=PE.is,YRc=PE.defineProperty,ZRc=PE.getOwnPropertyDescriptor,$Rc=PE.getOwnPropertyNames,aSc=PE.getOwnPropertySymbols,bSc=PE.getPrototypeOf,cSc=ra.trustedTypes,dSc=cSc?cSc.emptyScript:"",eSc=ra.reactiveElementPolyfillSupport,fSc={toAttribute:function(a,b){switch(b){case Boolean:a=a?dSc:null;break;case Object:case Array:a=a==null?a:JSON.stringify(a)}return a},fromAttribute:function(a,b){var c=a;switch(b){case Boolean:c=a!==null;break;case Number:c=a===null?null:Number(a);
break;case Object:case Array:try{c=JSON.parse(a)}catch(d){c=null}}return c}},gSc=function(a,b){return!XRc(a,b)},hSc={attribute:!0,type:String,converter:fSc,reflect:!1,useDefault:!1,hasChanged:gSc},iSc;Symbol.metadata==null&&(Symbol.metadata=Symbol("Wb"));iSc=Symbol.metadata;var jSc=new WeakMap,QE=function(){var a=WRc.call(this)||this;a.__instanceProperties=void 0;a.isUpdatePending=!1;a.hasUpdated=!1;a.__reflectingProperty=null;a.__initialize();return a};Z(QE,WRc);
QE.addInitializer=function(a){this.__prepare();var b;((b=this._initializers)!=null?b:this._initializers=[]).push(a)};QE.createProperty=function(a,b){b=b===void 0?hSc:b;b.state&&(b.attribute=!1);this.__prepare();this.prototype.hasOwnProperty(a)&&(b=Object.create(b),b.wrapped=!0);this.elementProperties.set(a,b);b.noAccessor||(b=this.getPropertyDescriptor(a,Symbol(),b),b!==void 0&&YRc(this.prototype,a,b))};
QE.getPropertyDescriptor=function(a,b,c){var d,e=(d=ZRc(this.prototype,a))!=null?d:{get:function(){return this[b]},set:function(k){this[b]=k}},f=e.get,g=e.set;return{get:f,set:function(k){var m=f==null?void 0:f.call(this);g==null||g.call(this,k);kSc(this,a,m,c)},configurable:!0,enumerable:!0}};QE.getPropertyOptions=function(a){var b;return(b=this.elementProperties.get(a))!=null?b:hSc};
QE.__prepare=function(){if(!this.hasOwnProperty("elementProperties")){var a=bSc(this);a.finalize();a._initializers!==void 0&&(this._initializers=[].concat(n(a._initializers)));this.elementProperties=new Map(a.elementProperties)}};
QE.finalize=function(){lSc();if(!this.hasOwnProperty("finalized")){this.finalized=!0;this.__prepare();if(this.hasOwnProperty("properties")){var a=this.properties,b=[].concat(n($Rc(a)),n(aSc(a)));b=l(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.createProperty(c,a[c])}a=this[iSc];if(a!==null&&(a=jSc.get(a),a!==void 0))for(a=l(a),b=a.next();!b.done;b=a.next())c=l(b.value),b=c.next().value,c=c.next().value,this.elementProperties.set(b,c);this.__attributeToPropertyMap=new Map;a=l(this.elementProperties);
for(b=a.next();!b.done;b=a.next())c=l(b.value),b=c.next().value,c=c.next().value,c=this.__attributeNameForProperty(b,c),c!==void 0&&this.__attributeToPropertyMap.set(c,b);this.elementStyles=this.finalizeStyles(this.styles)}};QE.finalizeStyles=function(a){var b=[];if(Array.isArray(a)){a=new Set(a.flat(Infinity).reverse());a=l(a);for(var c=a.next();!c.done;c=a.next())b.unshift(TRc(c.value))}else a!==void 0&&b.push(TRc(a));return b};
QE.__attributeNameForProperty=function(a,b){b=b.attribute;return b===!1?void 0:typeof b==="string"?b:typeof a==="string"?a.toLowerCase():void 0};h=QE.prototype;h.__initialize=function(){var a=this;this.__updatePromise=new Promise(function(c){return a.enableUpdating=c});this._$changedProperties=new Map;this.__saveInstanceProperties();kSc(this);var b;(b=this.constructor._initializers)==null||b.forEach(function(c){return c(a)})};
h.__saveInstanceProperties=function(){for(var a=new Map,b=l(this.constructor.elementProperties.keys()),c=b.next();!c.done;c=b.next())c=c.value,this.hasOwnProperty(c)&&(a.set(c,this[c]),delete this[c]);a.size>0&&(this.__instanceProperties=a)};h.createRenderRoot=function(){var a,b=(a=this.shadowRoot)!=null?a:this.attachShadow(this.constructor.shadowRootOptions);SRc(b,this.constructor.elementStyles);return b};
h.connectedCallback=function(){this.renderRoot!=null||(this.renderRoot=this.createRenderRoot());this.enableUpdating(!0);var a;(a=this.__controllers)==null||a.forEach(function(b){var c;return(c=b.hostConnected)==null?void 0:c.call(b)})};h.enableUpdating=function(){};h.disconnectedCallback=function(){var a;(a=this.__controllers)==null||a.forEach(function(b){var c;return(c=b.hostDisconnected)==null?void 0:c.call(b)})};h.attributeChangedCallback=function(a,b,c){this._$attributeToProperty(a,c)};
h.__propertyToAttribute=function(a,b){var c=this.constructor.elementProperties.get(a),d=this.constructor.__attributeNameForProperty(a,c);if(d!==void 0&&c.reflect===!0){var e,f=(((e=c.converter)==null?void 0:e.toAttribute)!==void 0?c.converter:fSc).toAttribute(b,c.type);this.__reflectingProperty=a;f==null?this.removeAttribute(d):this.setAttribute(d,f);this.__reflectingProperty=null}};
h._$attributeToProperty=function(a,b){var c=this.constructor;a=c.__attributeToPropertyMap.get(a);if(a!==void 0&&this.__reflectingProperty!==a){c=c.getPropertyOptions(a);var d,e=typeof c.converter==="function"?{fromAttribute:c.converter}:((d=c.converter)==null?void 0:d.fromAttribute)!==void 0?c.converter:fSc;this.__reflectingProperty=a;b=e.fromAttribute(b,c.type);var f,g;this[a]=(g=b!=null?b:(f=this.__defaultValues)==null?void 0:f.get(a))!=null?g:b;this.__reflectingProperty=null}};
var kSc=function(a,b,c,d){if(b!==void 0){var e=a.constructor,f=a[b];d!=null||(d=e.getPropertyOptions(b));var g,k;if(((k=d.hasChanged)!=null?k:gSc)(f,c)||d.useDefault&&d.reflect&&f===((g=a.__defaultValues)==null?void 0:g.get(b))&&!a.hasAttribute(e.__attributeNameForProperty(b,d)))a._$changeProperty(b,c,d);else return}a.isUpdatePending===!1&&(a.__updatePromise=a.__enqueueUpdate())};
QE.prototype._$changeProperty=function(a,b,c,d){var e=c.useDefault;var f=c.reflect;c=c.wrapped;var g;if(e&&!((g=this.__defaultValues)!=null?g:this.__defaultValues=new Map).has(a)){var k;this.__defaultValues.set(a,(k=d!=null?d:b)!=null?k:this[a]);if(c!==!0||d!==void 0)return}this._$changedProperties.has(a)||(this.hasUpdated||e||(b=void 0),this._$changedProperties.set(a,b));if(f===!0&&this.__reflectingProperty!==a){var m;((m=this.__reflectingProperties)!=null?m:this.__reflectingProperties=new Set).add(a)}};
QE.prototype.__enqueueUpdate=function(){var a=this,b,c;return y(function(d){switch(d.nextAddress){case 1:return a.isUpdatePending=!0,Vd(d,2),z(d,a.__updatePromise,4);case 4:bk(d,3);break;case 2:b=Zd(d),a.squelchUpdateErrorsDuringLit2Migration||Promise.reject(b);case 3:c=mSc(a);if(c==null){d.jumpTo(5);break}return z(d,c,5);case 5:return d.return(!a.isUpdatePending)}})};
var mSc=function(a){if(a.isUpdatePending){if(!a.hasUpdated){a.renderRoot!=null||(a.renderRoot=a.createRenderRoot());if(a.__instanceProperties){for(var b=l(a.__instanceProperties),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;a[c]=d}a.__instanceProperties=void 0}b=a.constructor.elementProperties;if(b.size>0)for(b=l(b),c=b.next();!c.done;c=b.next()){d=l(c.value);c=d.next().value;d=d.next().value;var e=a[c];d.wrapped!==!0||a._$changedProperties.has(c)||e===void 0||
a._$changeProperty(c,void 0,d,e)}}b=!1;c=a._$changedProperties;try{b=!0;var f;(f=a.__controllers)==null||f.forEach(function(g){var k;return(k=g.hostUpdate)==null?void 0:k.call(g)});a.update(c)}catch(g){throw b=!1,a.__markUpdated(),g;}b&&a._$didUpdate(c)}};QE.prototype._$didUpdate=function(a){var b;(b=this.__controllers)==null||b.forEach(function(c){var d;return(d=c.hostUpdated)==null?void 0:d.call(c)});this.hasUpdated||(this.hasUpdated=!0);this.updated(a)};
QE.prototype.__markUpdated=function(){this._$changedProperties=new Map;this.isUpdatePending=!1};QE.prototype.update=function(){var a=this;this.__reflectingProperties&&(this.__reflectingProperties=this.__reflectingProperties.forEach(function(b){return a.__propertyToAttribute(b,a[b])}));this.__markUpdated()};QE.prototype.updated=function(){};da.Object.defineProperties(QE.prototype,{updateComplete:{configurable:!0,enumerable:!0,get:function(){return this.__updatePromise}}});
da.Object.defineProperties(QE,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){this.finalize();return this.__attributeToPropertyMap&&[].concat(n(this.__attributeToPropertyMap.keys()))}}});QE.elementStyles=[];QE.shadowRootOptions={mode:"open"};QE.elementProperties=new Map;QE.finalized=new Map;eSc==null||eSc({ReactiveElement:QE});var lSc=function(){var a;((a=ra.reactiveElementVersions)!=null?a:ra.reactiveElementVersions=[]).push("2.0.4");lSc=function(){}};var nSc={attribute:!0,type:String,converter:fSc,reflect:!1,hasChanged:gSc},txa=function(a,b,c){a=a===void 0?nSc:a;var d=c.kind,e=c.metadata,f=jSc.get(e);f===void 0&&jSc.set(e,f=new Map);d==="setter"&&(a=Object.create(a),a.wrapped=!0);f.set(c.name,a);if(d==="accessor"){var g=c.name;return{set:function(m){var r=b.get.call(this);b.set.call(this,m);kSc(this,g,r,a)},init:function(m){m!==void 0&&this._$changeProperty(g,void 0,a,m);return m}}}if(d==="setter"){var k=c.name;return function(m){var r=this[k];
b.call(this,m);kSc(this,k,r,a)}}throw Error("Xb`"+d);};var oSc=function(a,b,c){c.configurable=!0;c.enumerable=!0;Reflect.decorate&&typeof b!=="object"&&Object.defineProperty(a,b,c);return c};var pSc=Pw(["about:invalid#zClosurez"]),qSc=xxa,rSc=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,sSc=yh(Jh(pSc)),vxa=function(a){return a},tSc=function(a){return rSc.test(String(a))?a:sSc},RE=function(){return sSc},uSc=function(a){return a instanceof wh?yh(a):sSc},wxa=new Map([["A href",tSc],["AREA href",tSc],["BASE href",RE],["BUTTON formaction",tSc],["EMBED src",RE],["FORM action",tSc],["FRAME src",RE],["IFRAME src",uSc],["IFRAME srcdoc",function(a){return th(a)?uh(a):uh(Lj)}],["INPUT formaction",
tSc],["LINK href",uSc],["OBJECT codebase",RE],["OBJECT data",RE],["SCRIPT href",uSc],["SCRIPT src",uSc],["SCRIPT text",RE],["USE href",uSc]]);var vSc=new Set,wSc=new Map,xSc=function(a,b){if(globalThis.ShadyCSS!==void 0&&(!globalThis.ShadyCSS.nativeShadow||globalThis.ShadyCSS.ApplyShim)){var c,d,e=((c=globalThis.ShadyDOM)==null?0:c.inUse)&&((d=globalThis.ShadyDOM)==null?void 0:d.noPatch)===!0?globalThis.ShadyDOM.wrap:function(x){return x},f=function(x){var D=wSc.get(x);D===void 0&&wSc.set(x,D=[]);return D},g=new Map,k=a.createElement;a.createElement=function(x,D){x=k.call(a,x,D);D=D==null?void 0:D.scope;D!==void 0&&(globalThis.ShadyCSS.nativeShadow||
globalThis.ShadyCSS.prepareTemplateDom(x,D),D===void 0||vSc.has(D)||(D=f(D),D.push.apply(D,n(Array.from(x.content.querySelectorAll("style")).map(function(H){var J;(J=H.parentNode)==null||J.removeChild(H);return H.textContent})))));return x};var m=document.createDocumentFragment(),r=document.createComment("");b=b.prototype;var w=b._$setValue;b._$setValue=function(x,D){D=D===void 0?this:D;var H=e(this._$startNode).parentNode,J,O=(J=this.options)==null?void 0:J.scope,R;if((H instanceof ShadowRoot||H===
((R=this.options)==null?void 0:R.renderContainer))&&O!==void 0&&!vSc.has(O)){J=this._$startNode;R=this._$endNode;m.appendChild(r);this._$startNode=r;this._$endNode=null;w.call(this,x,D);x=(x==null?0:x._$litType$)?this._$committedValue._$template.el:document.createElement("template");D=f(O);var V=D.length!==0;if(V){var ba=document.createElement("style");ba.textContent=D.join("\n");x.content.appendChild(ba)}vSc.add(O);wSc.delete(O);globalThis.ShadyCSS.prepareTemplateStyles(x,O);V&&globalThis.ShadyCSS.nativeShadow&&
(O=x.content.querySelector("style"),O!==null&&x.content.appendChild(O));m.removeChild(r);var pa;if((pa=globalThis.ShadyCSS)==null?0:pa.nativeShadow)pa=x.content.querySelector("style"),pa!==null&&m.appendChild(pa.cloneNode(!0));H.insertBefore(m,R);this._$startNode=J;this._$endNode=R}else w.call(this,x,D)};b._$getTemplate=function(x){var D,H=(D=this.options)==null?void 0:D.scope;D=g.get(H);D===void 0&&g.set(H,D=new Map);H=D.get(x.strings);H===void 0&&D.set(x.strings,H=new a(x,this.options));return H}}},
ySc;(ySc=globalThis).litHtmlPolyfillSupport!=null||(ySc.litHtmlPolyfillSupport=xSc);var zSc="";if(globalThis.Symbol){var ASc=Symbol();typeof ASc!=="symbol"&&(zSc=Object.keys(ASc)[0])}var BSc=zSc!=="",CSc=BSc?function(a){return a!=null&&a[zSc]!==void 0}:function(){return!1};if(BSc&&!globalThis.Symbol.for){var DSc=new Map;globalThis.Symbol.for=function(a){DSc.has(a)||DSc.set(a,Symbol(a));return DSc.get(a)}};var ESc,FSc,GSc,SE=((ESc=ra.ShadyDOM)==null?0:ESc.inUse)&&(((FSc=ra.ShadyDOM)==null?void 0:FSc.noPatch)===!0||((GSc=ra.ShadyDOM)==null?void 0:GSc.noPatch)==="on-demand")?ra.ShadyDOM.wrap:function(a){return a},HSc=ra.trustedTypes,zxa=HSc?HSc.createPolicy("lit-html",{createHTML:function(a){return a}}):void 0,ISc=function(a){return a},JSc=function(){return ISc},TE="lit$"+Math.random().toFixed(9).slice(2)+"$",KSc="?"+TE,LSc="<"+KSc+">",UE=document,Bxa=function(a){return a===null||typeof a!="object"&&
typeof a!="function"||CSc(a)},yxa=Array.isArray,MSc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,NSc=/--\x3e/g,OSc=/>/g,VE=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),PSc=/'/g,QSc=/"/g,RSc=/^(?:script|style|textarea|title)$/i,SSc=function(a){var b=Yc.apply(1,arguments),c={};return c._$litType$=1,c.strings=a,c.values=b,c},Mj=Symbol.for?Symbol.for("lit-noChange"):Symbol("Zb"),WE=Symbol.for?Symbol.for("lit-nothing"):Symbol("$b"),
TSc=new WeakMap,XE=UE.createTreeWalker(UE,129),USc=function(a,b){var c=a.strings;var d=a._$litType$;this.parts=[];for(var e=a=0,f=c.length-1,g=this.parts,k=c.length-1,m=[],r=d===2?"<svg>":d===3?"<math>":"",w,x=MSc,D=0;D<k;D++){for(var H=c[D],J=-1,O=void 0,R=0,V;R<H.length;){x.lastIndex=R;V=x.exec(H);if(V===null)break;R=x.lastIndex;x===MSc?V[1]==="!--"?x=NSc:V[1]!==void 0?x=OSc:V[2]!==void 0?(RSc.test(V[2])&&(w=new RegExp("</"+V[2],"g")),x=VE):V[3]!==void 0&&(x=VE):x===VE?V[0]===">"?(J=void 0,x=(J=
w)!=null?J:MSc,J=-1):V[1]===void 0?J=-2:(J=x.lastIndex-V[2].length,O=V[1],x=V[3]===void 0?VE:V[3]==='"'?QSc:PSc):x===QSc||x===PSc?x=VE:x===NSc||x===OSc?x=MSc:(x=VE,w=void 0)}R=x===VE&&c[D+1].startsWith("/>")?" ":"";r+=x===MSc?H+LSc:J>=0?(m.push(O),H.slice(0,J)+"$lit$"+H.slice(J))+TE+R:H+TE+(J===-2?D:R)}c=[Axa(c,r+(c[k]||"<?>")+(d===2?"</svg>":d===3?"</math>":"")),m];c=l(c);w=c.next().value;c=c.next().value;this.el=USc.createElement(w,b);XE.currentNode=this.el.content;if(d===2||d===3)b=this.el.content.firstChild,
b.replaceWith.apply(b,n(b.childNodes));for(;(b=XE.nextNode())!==null&&g.length<f;){if(b.nodeType===1){if(b.hasAttributes())for(d=l(b.getAttributeNames()),w=d.next();!w.done;w=d.next())w=w.value,w.endsWith("$lit$")?(m=c[e++],k=b.getAttribute(w).split(TE),m=/([.?@])?(.*)/.exec(m),g.push({type:1,index:a,name:m[2],strings:k,ctor:m[1]==="."?VSc:m[1]==="?"?WSc:m[1]==="@"?XSc:YE}),b.removeAttribute(w)):w.startsWith(TE)&&(g.push({type:6,index:a}),b.removeAttribute(w));if(RSc.test(b.tagName)&&(d=b.textContent.split(TE),
w=d.length-1,w>0)){b.textContent=HSc?HSc.emptyScript:"";for(k=0;k<w;k++)b.append(d[k],UE.createComment("")),XE.nextNode(),g.push({type:2,index:++a});b.append(d[w],UE.createComment(""))}}else if(b.nodeType===8)if(b.data===KSc)g.push({type:2,index:a});else for(d=-1;(d=b.data.indexOf(TE,d+1))!==-1;)g.push({type:7,index:a}),d+=TE.length-1;a++}};USc.createElement=function(a){var b=UE.createElement("template");b.innerHTML=a;return b};
var YSc=function(a,b){this._$parts=[];this._$disconnectableChildren=void 0;this._$template=a;this._$parent=b};
YSc.prototype._clone=function(a){var b=this._$template,c=b.el.content;b=b.parts;var d,e=((d=a==null?void 0:a.creationScope)!=null?d:UE).importNode(c,!0);XE.currentNode=e;c=XE.nextNode();for(var f=d=0,g=b[0];g!==void 0;){if(d===g.index){var k=void 0;g.type===2?k=new ZE(c,c.nextSibling,this,a):g.type===1?k=new g.ctor(c,g.name,g.strings,this,a):g.type===6&&(k=new ZSc(c,this,a));this._$parts.push(k);g=b[++f]}k=void 0;d!==((k=g)==null?void 0:k.index)&&(c=XE.nextNode(),d++)}XE.currentNode=UE;return e};
YSc.prototype._update=function(a){for(var b=0,c=l(this._$parts),d=c.next();!d.done;d=c.next())d=d.value,d!==void 0&&(d.strings!==void 0?(d._$setValue(a,d,b),b+=d.strings.length-2):d._$setValue(a[b])),b++};da.Object.defineProperties(YSc.prototype,{parentNode:{configurable:!0,enumerable:!0,get:function(){return this._$parent.parentNode}},_$isConnected:{configurable:!0,enumerable:!0,get:function(){return this._$parent._$isConnected}}});
var ZE=function(a,b,c,d){this.type=2;this._$committedValue=WE;this._$disconnectableChildren=void 0;this._$startNode=a;this._$endNode=b;this._$parent=c;this.options=d;var e;this.__isConnected=(e=d==null?void 0:d.isConnected)!=null?e:!0;this._textSanitizer=void 0};h=ZE.prototype;
h._$setValue=function(a,b){a=Nj(this,a,b===void 0?this:b);Bxa(a)?a===WE||a==null||a===""?(this._$committedValue!==WE&&this._$clear(),this._$committedValue=WE):a!==this._$committedValue&&a!==Mj&&this._commitText(a):a._$litType$!==void 0?this._commitTemplateResult(a):a.nodeType!==void 0?this._commitNode(a):yxa(a)||typeof(a==null?void 0:a[Symbol.iterator])==="function"?this._commitIterable(a):this._commitText(a)};h._insert=function(a){return SE(SE(this._$startNode).parentNode).insertBefore(a,this._$endNode)};
h._commitNode=function(a){if(this._$committedValue!==a){this._$clear();if(qSc!==JSc){var b,c=(b=this._$startNode.parentNode)==null?void 0:b.nodeName;if(c==="STYLE"||c==="SCRIPT")throw Error("bc");}this._$committedValue=this._insert(a)}};
h._commitText=function(a){if(this._$committedValue!==WE&&Bxa(this._$committedValue)){var b=SE(this._$startNode).nextSibling;this._textSanitizer===void 0&&(this._textSanitizer=qSc(b,"data","property"));a=this._textSanitizer(a);b.data=a}else b=UE.createTextNode(""),this._commitNode(b),this._textSanitizer===void 0&&(this._textSanitizer=qSc(b,"data","property")),a=this._textSanitizer(a),b.data=a;this._$committedValue=a};
h._commitTemplateResult=function(a){var b=a.values,c=a._$litType$;a=typeof c==="number"?this._$getTemplate(a):(c.el===void 0&&(c.el=USc.createElement(Axa(c.h,c.h[0]),this.options)),c);var d;((d=this._$committedValue)==null?void 0:d._$template)===a?this._$committedValue._update(b):(d=new YSc(a,this),a=d._clone(this.options),d._update(b),this._commitNode(a),this._$committedValue=d)};h._$getTemplate=function(a){var b=TSc.get(a.strings);b===void 0&&TSc.set(a.strings,b=new USc(a));return b};
h._commitIterable=function(a){yxa(this._$committedValue)||(this._$committedValue=[],this._$clear());var b=this._$committedValue,c=0,d;a=l(a);for(var e=a.next();!e.done;e=a.next())e=e.value,c===b.length?b.push(d=new ZE(this._insert(UE.createComment("")),this._insert(UE.createComment("")),this,this.options)):d=b[c],d._$setValue(e),c++;c<b.length&&(this._$clear(d&&SE(d._$endNode).nextSibling,c),b.length=c)};
h._$clear=function(a,b){a=a===void 0?SE(this._$startNode).nextSibling:a;var c;for((c=this._$notifyConnectionChanged)==null||c.call(this,!1,!0,b);a&&a!==this._$endNode;)b=SE(a).nextSibling,SE(a).remove(),a=b};var $Sc=function(a,b){if(a._$parent===void 0){a.__isConnected=b;var c;(c=a._$notifyConnectionChanged)==null||c.call(a,b)}};
da.Object.defineProperties(ZE.prototype,{_$isConnected:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this._$parent)==null?void 0:a._$isConnected)!=null?b:this.__isConnected}},parentNode:{configurable:!0,enumerable:!0,get:function(){var a=SE(this._$startNode).parentNode,b=this._$parent,c;b!==void 0&&((c=a)==null?void 0:c.nodeType)===11&&(a=b.parentNode);return a}}});
var YE=function(a,b,c,d,e){this.type=1;this._$committedValue=WE;this._$disconnectableChildren=void 0;this.element=a;this.name=b;this._$parent=d;this.options=e;c.length>2||c[0]!==""||c[1]!==""?(this._$committedValue=Array(c.length-1).fill(new String),this.strings=c):this._$committedValue=WE;this._sanitizer=void 0};
YE.prototype._$setValue=function(a,b,c,d){b=b===void 0?this:b;var e=this.strings,f=!1;if(e===void 0){if(a=Nj(this,a,b,0),f=!Bxa(a)||a!==this._$committedValue&&a!==Mj)this._$committedValue=a}else{var g=a;a=e[0];var k;for(k=0;k<e.length-1;k++){var m=Nj(this,g[c+k],b,k);m===Mj&&(m=this._$committedValue[k]);f||(f=!Bxa(m)||m!==this._$committedValue[k]);if(m===WE)a=WE;else if(a!==WE){var r=void 0;a+=((r=m)!=null?r:"")+e[k+1]}this._$committedValue[k]=m}}f&&!d&&this._commitValue(a)};
YE.prototype._commitValue=function(a){if(a===WE)SE(this.element).removeAttribute(this.name);else{this._sanitizer===void 0&&(this._sanitizer=qSc(this.element,this.name,"attribute"));var b;a=this._sanitizer((b=a)!=null?b:"");var c;SE(this.element).setAttribute(this.name,(c=a)!=null?c:"")}};da.Object.defineProperties(YE.prototype,{tagName:{configurable:!0,enumerable:!0,get:function(){return this.element.tagName}},_$isConnected:{configurable:!0,enumerable:!0,get:function(){return this._$parent._$isConnected}}});
var VSc=function(){YE.apply(this,arguments);this.type=3};Z(VSc,YE);VSc.prototype._commitValue=function(a){this._sanitizer===void 0&&(this._sanitizer=qSc(this.element,this.name,"property"));a=this._sanitizer(a);this.element[this.name]=a===WE?void 0:a};var WSc=function(){YE.apply(this,arguments);this.type=4};Z(WSc,YE);WSc.prototype._commitValue=function(a){SE(this.element).toggleAttribute(this.name,!!a&&a!==WE)};var XSc=function(a,b,c,d,e){YE.call(this,a,b,c,d,e);this.type=5};Z(XSc,YE);
XSc.prototype._$setValue=function(a,b){var c;a=(c=Nj(this,a,b===void 0?this:b,0))!=null?c:WE;if(a!==Mj){b=this._$committedValue;c=a===WE&&b!==WE||a.capture!==b.capture||a.once!==b.once||a.passive!==b.passive;var d=a!==WE&&(b===WE||c);c&&this.element.removeEventListener(this.name,this,b);d&&this.element.addEventListener(this.name,this,a);this._$committedValue=a}};
XSc.prototype.handleEvent=function(a){if(typeof this._$committedValue==="function"){var b,c;this._$committedValue.call((c=(b=this.options)==null?void 0:b.host)!=null?c:this.element,a)}else this._$committedValue.handleEvent(a)};var ZSc=function(a,b,c){this.element=a;this.type=6;this._$disconnectableChildren=void 0;this._$parent=b;this.options=c};ZSc.prototype._$setValue=function(a){Nj(this,a)};da.Object.defineProperties(ZSc.prototype,{_$isConnected:{configurable:!0,enumerable:!0,get:function(){return this._$parent._$isConnected}}});
var aTc;(aTc=globalThis.litHtmlPolyfillSupport)==null||aTc(USc,ZE);var bTc,cTc;((cTc=ra.litHtmlVersions)!=null?cTc:ra.litHtmlVersions=[]).push("3.2.1");bTc=function(a,b,c){var d,e=(d=c==null?void 0:c.renderBefore)!=null?d:b;d=e._$litPart$;if(d===void 0){var f;d=(f=c==null?void 0:c.renderBefore)!=null?f:null;e._$litPart$=d=new ZE(b.insertBefore(UE.createComment(""),d),d,void 0,c!=null?c:{})}d._$setValue(a);return d};var dTc=function(a){return function(){var b=Yc.apply(0,arguments),c={};return c._$litDirective$=a,c.values=b,c}},$E=function(){};$E.prototype._$initialize=function(a,b,c){this.__part=a;this._$parent=b;this.__attributeIndex=c};$E.prototype._$resolve=function(a,b){return this.update(a,b)};$E.prototype.update=function(a,b){return this.render.apply(this,n(b))};da.Object.defineProperties($E.prototype,{_$isConnected:{configurable:!0,enumerable:!0,get:function(){return this._$parent._$isConnected}}});var eTc=function(a){this.value=WE;if(a.type!==2)throw Error("cc`"+this.constructor.directiveName);};Z(eTc,$E);eTc.prototype.render=function(a){if(a===WE||a===void 0)return this.templateResult=void 0,this.value=a;if(a===Mj)return a;if(a===this.value)return this.templateResult;this.value=a;a=[uh(a)];a.raw=a;var b={};return this.templateResult=(b._$litType$=this.constructor.resultType,b.strings=a,b.values=[],b)};eTc.directiveName="safeHTML";eTc.resultType=1;var fTc=dTc(eTc);/*

 Copyright 2020 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var Fxa=function(a,b){a=a._$disconnectableChildren;if(a!==void 0){a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=void 0,e=void 0;(e=(d=c)._$notifyDirectiveConnectionChanged)==null||e.call(d,b,!1);Fxa(c,b)}}},Cxa=function(a){var b,c;do{if((b=a._$parent)===void 0)break;var d=b._$disconnectableChildren;d.delete(a);a=b}while(((c=d)==null?void 0:c.size)===0)},Dxa=function(a){for(var b;b=a._$parent;a=b){var c=b._$disconnectableChildren;if(c===void 0)b._$disconnectableChildren=c=new Set;else if(c.has(a))break;
c.add(a);a=b;a.type==2&&(a._$notifyConnectionChanged!=null||(a._$notifyConnectionChanged=Gxa),a._$reparentDisconnectables!=null||(a._$reparentDisconnectables=Exa))}},aF=function(){this._$disconnectableChildren=void 0};Z(aF,$E);aF.prototype._$initialize=function(a,b,c){$E.prototype._$initialize.call(this,a,b,c);Dxa(this);this.isConnected=a._$isConnected};
aF.prototype._$notifyDirectiveConnectionChanged=function(a,b){b=b===void 0?!0:b;if(a!==this.isConnected)if(this.isConnected=a){var c;(c=this.reconnected)==null||c.call(this)}else{var d;(d=this.disconnected)==null||d.call(this)}b&&(Fxa(this,a),Cxa(this))};aF.prototype.setValue=function(a){if(this.__part.strings===void 0)this.__part._$setValue(a,this);else{var b=[].concat(n(this.__part._$committedValue));b[this.__attributeIndex]=a;this.__part._$setValue(b,this,0)}};aF.prototype.disconnected=function(){};
aF.prototype.reconnected=function(){};/*

 Copyright 2021 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var gTc=function(a){this._ref=a};gTc.prototype.disconnect=function(){this._ref=void 0};gTc.prototype.deref=function(){return this._ref};var hTc=function(){this._resolve=this._promise=void 0};hTc.prototype.get=function(){return this._promise};hTc.prototype.pause=function(){var a=this;this._promise!=null||(this._promise=new Promise(function(b){return a._resolve=b}))};hTc.prototype.resume=function(){var a;(a=this._resolve)==null||a.call(this);this._promise=this._resolve=void 0};var iTc=function(a){return!(a===null||typeof a!="object"&&typeof a!="function")&&typeof a.then==="function"},bF=function(){aF.apply(this,arguments);this.__lastRenderedIndex=1073741823;this.__values=[];this.__weakThis=new gTc(this);this.__pauser=new hTc};Z(bF,aF);bF.prototype.render=function(){var a;return(a=Yc.apply(0,arguments).find(function(b){return!iTc(b)}))!=null?a:Mj};
bF.prototype.update=function(a,b){var c=this.__values,d=c.length;this.__values=b;var e=this.__weakThis,f=this.__pauser;this.isConnected||this.disconnected();for(var g={},k=0;k<b.length&&!(k>this.__lastRenderedIndex);g={value$jscomp$8425:void 0},k++){g.value$jscomp$8425=b[k];if(!iTc(g.value$jscomp$8425))return this.__lastRenderedIndex=k,g.value$jscomp$8425;k<d&&g.value$jscomp$8425===c[k]||(this.__lastRenderedIndex=1073741823,d=0,Promise.resolve(g.value$jscomp$8425).then(function(m){return function(r){var w,
x;return y(function(D){if(D.nextAddress==1)return f.get()?z(D,f.get(),1):D.jumpTo(4);w=e.deref();w!==void 0&&(x=w.__values.indexOf(m.value$jscomp$8425),x>-1&&x<w.__lastRenderedIndex&&(w.__lastRenderedIndex=x,w.setValue(r)));$d(D)})}}(g)))}return Mj};bF.prototype.disconnected=function(){this.__weakThis.disconnect();this.__pauser.pause()};bF.prototype.reconnected=function(){this.__weakThis._ref=this;this.__pauser.resume()};var jTc=dTc(bF);var kTc=function(a){a=a.LitElement;if(globalThis.ShadyCSS!==void 0&&(!globalThis.ShadyCSS.nativeShadow||globalThis.ShadyCSS.ApplyShim)){a._$handlesPrepareStyles=!0;a=a.prototype;var b=a.createRenderRoot;a.createRenderRoot=function(){this.renderOptions.scope=this.localName;return b.call(this)}}},lTc;(lTc=globalThis).litElementPolyfillSupport!=null||(lTc.litElementPolyfillSupport=kTc);var cF=function(){var a=QE.apply(this,arguments)||this;a.renderOptions={host:a};a.__childPart=void 0;return a};Z(cF,QE);cF.shadowRootOptions=QE.shadowRootOptions;cF.elementStyles=QE.elementStyles;cF.__attributeNameForProperty=QE.__attributeNameForProperty;cF.finalizeStyles=QE.finalizeStyles;cF.__prepare=QE.__prepare;cF.getPropertyOptions=QE.getPropertyOptions;cF.getPropertyDescriptor=QE.getPropertyDescriptor;cF.createProperty=QE.createProperty;cF.addInitializer=QE.addInitializer;h=cF.prototype;
h.createRenderRoot=function(){var a=QE.prototype.createRenderRoot.call(this),b;(b=this.renderOptions).renderBefore!=null||(b.renderBefore=a.firstChild);return a};h.update=function(a){var b=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected);QE.prototype.update.call(this,a);this.__childPart=bTc(b,this.renderRoot,this.renderOptions)};h.connectedCallback=function(){QE.prototype.connectedCallback.call(this);var a;(a=this.__childPart)==null||$Sc(a,!0)};
h.disconnectedCallback=function(){QE.prototype.disconnectedCallback.call(this);var a;(a=this.__childPart)==null||$Sc(a,!1)};h.render=function(){return Mj};cF.finalize=function(){mTc();return QE.finalize.call(this)};cF._$litElement$=!0;cF.finalized=!0;var nTc;(nTc=ra.litElementPolyfillSupport)==null||nTc({LitElement:cF});var mTc=function(){var a;((a=ra.litElementVersions)!=null?a:ra.litElementVersions=[]).push("4.1.1");mTc=function(){}};var oTc=Pw(["<div>","</div>"]),pTc=sxa("g3mark-service-backend","https://g3mark-service-backend.corp.google.com"),dF=function(){var a=cF.apply(this,arguments)||this;a.content="";a.svg=new Promise(function(){});a.fetch=sxa("fetch",function(b,c){return fetch(b,c)});return a};Z(dF,cF);dF.shadowRootOptions=cF.shadowRootOptions;dF.elementStyles=cF.elementStyles;dF.__attributeNameForProperty=cF.__attributeNameForProperty;dF.finalizeStyles=cF.finalizeStyles;dF.__prepare=cF.__prepare;
dF.getPropertyOptions=cF.getPropertyOptions;dF.getPropertyDescriptor=cF.getPropertyDescriptor;dF.createProperty=cF.createProperty;dF.addInitializer=cF.addInitializer;dF.finalize=cF.finalize;
dF.prototype.connectedCallback=function(){var a=this;cF.prototype.connectedCallback.call(this);this.div.then(function(b){a.width&&(b.style.width=a.width);a.height&&(b.style.height=a.height)});this.svg=this.fetch(pTc+"/sanitize_svg",{credentials:"include",method:"POST",body:decodeURIComponent(window.atob(this.content))}).then(rxa).then(function(b){b=b.privateDoNotAccessOrElseSafeHtmlWrappedValue;if(b===void 0||b===null)throw Error("Tb");b=sh(b);return fTc(b)}).catch(function(b){console.error(b)})};
dF.prototype.render=function(){return SSc(oTc,jTc(this.svg,"Loading"))};dF.prototype.createRenderRoot=function(){return this};Xw([uxa({type:String}),CAc(Object)],dF.prototype,"content",void 0);Xw([uxa({type:String}),CAc(String)],dF.prototype,"width",void 0);Xw([uxa({type:String}),CAc(String)],dF.prototype,"height",void 0);Xw([uxa(Object.assign({},void 0,{state:!0,attribute:!1})),CAc(Object)],dF.prototype,"svg",void 0);
Xw([function(a){return function(b,c){return oSc(b,c,{get:function(){var d=this,e,f;return y(function(g){return g.nextAddress==1?z(g,d.updateComplete,2):g.return((f=(e=d.renderRoot)==null?void 0:e.querySelector(a))!=null?f:null)})}})}}("div"),CAc(Promise)],dF.prototype,"div",void 0);Xw([function(a){return function(b,c){c!==void 0?c.addInitializer(function(){customElements.define(a,b)}):customElements.define(a,b)}}("g3mark-svg")],dF);var qTc=new BC,fF=function(){var a=this;this.currentThreadAgentVersion=this.currentThreadAgentId="";this.isDuckieSourceEmbedded=!1;this.dataQueue=[];this.isProcessingStream=!1;this.duckieService=q(wD);this.overridesService=q(CC);this.conversationAgentsService=q(zD);this.duckieEventTrackerService=q(IE);this.communicationService=q(yD);this.sessionSummaryService=q(QD);this.routingService=q(BD);this.markdownService=q(OE);this.backendModelService=q(OD);this.snackBar=q(LD);this.experimentsService=q(PA);
this.userContextService=q(QA);this.duckieClient=q(YJc);this.currentThreadInternal=new Xj(void 0);this.currentThread$=this.currentThreadInternal.pipe(wf({bufferSize:1,refCount:!0}));this.cache=new Map;this.isLoadingThreadInternal=new Xj(!1);this.isLoadingThread$=this.isLoadingThreadInternal.pipe(wf({bufferSize:1,refCount:!0}));this.isDuckieThinkingInternal=new Xj(!1);this.isDuckieThinking$=this.isDuckieThinkingInternal.pipe(wf({bufferSize:1,refCount:!0}));this.canStartNewThread$=this.currentThread$.pipe(A(function(b){return b===
void 0?!1:b.messages.length>=2||b.messages.length===1&&b.messages[0].isUser}));this.cancelPendingCurrentThreadUpdate$=new rf;this.referrer=q(UJc);this.ancestorOrigins=q(TJc).ancestorOrigins;this.hostname=q(TJc).hostname;new dF;this.routingService.activeView$.pipe(te(function(b){return b===1})).subscribe(function(){eF(a)})},eF=function(a,b){wIc(a.userContextService);a.currentThreadInternal.next(b);rTc(a.communicationService,b);b&&b.modelId!==void 0&&a.backendModelService.currentModelIdInternal.next(b.modelId)};
fF.prototype.startNewThread=function(a,b){a=a===void 0?"":a;b=b===void 0?"":b;wIc(this.userContextService);XNc(this.routingService);this.isDuckieThinkingInternal.next(!1);this.cancelPendingCurrentThreadUpdate$.next();this.currentThreadAgentId=a;this.currentThreadAgentVersion=b;this.currentThreadInternal.next(sTc(this));this.communicationService.newThread$.next(!0)};
var uTc=function(a,b){return y(function(c){a.isDuckieThinkingInternal.next(!1);a.cancelPendingCurrentThreadUpdate$.next();return a.cache.has(b)?(eF(a,a.cache.get(b)),c.return()):z(c,tTc(a,b),0)})},tTc=function(a,b){var c,d,e,f,g;return y(function(k){if(k.nextAddress==1)return a.isLoadingThreadInternal.next(!0),c=(new SC).setSessionId(b),z(k,a.duckieService.getSession(c),2);if(k.nextAddress!=3){d=k.yieldResult;if(!d)return eF(a),k.return();f=(e=d)==null?void 0:e.getSession();if(!f)return eF(a),k.return();
vTc(f);g=owa(f);return z(k,Promise.all(g.messages.map(a.setMessageTextHtml,a)),3)}g.messages=k.yieldResult;a.cache.set(b,g);eF(a,g);a.isLoadingThreadInternal.next(!1);$d(k)})},vTc=function(a){a.getMessagesList().forEach(function(b,c){$i(b,19)&&a.setMessagesList(a.getMessagesList().slice(0,c+1))})};
fF.prototype.setMessageTextHtml=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1){if(!a.text)return d.return(a);c=a;return z(d,JRc(b.markdownService,a.text,{highlight:!0,escapeHtml:!0,graphviz:!0}),2)}c.textHtml=d.yieldResult;return d.return(a)})};
var wTc=function(a,b){var c,d,e,f;y(function(g){if(g.nextAddress==1)return z(g,ee(a.currentThread$),2);if(g.nextAddress!=3){c=g.yieldResult;if(!c)return g.return();b=b.substring(0,200);d=c.serverId;e=(new WC).setSessionId(d).setTitle(b);return z(g,a.duckieService.updateSession(e),3)}f=g.yieldResult;if(!f)return g.return();c.title=b;eF(a,c);return z(g,VNc(a.sessionSummaryService,c),0)})},CTc=function(a,b){var c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:if(b.length>2621440)return a.snackBar.openFromComponent(ND,
{data:{message:"Message exceeds maximum character limit of 2621440.",error:Error("dc")}}),g.return(sTc(a));c=sTc(a);c.title=b.substring(0,200);d=(new RC).setDuckieClient(a.duckieClient).setText(b);return z(g,xTc(a,d,c),2);case 2:return z(g,yTc(a),3);case 3:return(e=g.yieldResult)?(f=cwa(d),z(g,zTc(a,c,f),5)):z(g,ATc(a,c,d),5);case 5:return z(g,UNc(a.sessionSummaryService,c),8);case 8:return z(g,BTc(a,c),9);case 9:return g.return(c)}})},DTc=function(a,b){var c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:return b.length>
2621440?(a.snackBar.openFromComponent(ND,{data:{message:"Message exceeds maximum character limit of 2621440.",error:Error("dc")}}),g.return()):z(g,ee(a.currentThread$),2);case 2:c=g.yieldResult;if(!c)return g.return();d=(new RC).setDuckieClient(a.duckieClient).setText(b);return z(g,xTc(a,d,c),3);case 3:return z(g,yTc(a),4);case 4:return(e=g.yieldResult)?(f=cwa(d),z(g,zTc(a,c,f),6)):z(g,ATc(a,c,d),6);case 6:return z(g,BTc(a,c),0)}})},FTc=function(a,b,c){var d;return y(function(e){return e.nextAddress==
1?z(e,ee(a.currentThread$),2):(d=e.yieldResult)?z(e,ETc(a,d,b,c),0):e.return()})};
fF.prototype.cancelDuckieStream=function(){var a=this,b,c,d,e,f,g,k;return y(function(m){if(m.nextAddress==1){if(!a.currentActiveStream)return m.jumpTo(0);a.currentActiveStream.cancel();a.currentActiveStream=void 0;return z(m,ee(a.currentThread$),3)}b=m.yieldResult;if(!b||b.messages.length===0)return m.return();c=b.messages.slice().reverse().find(function(r){return r.isUser});d=b.messages.slice().reverse().find(function(r){return!r.isUser&&r.id!==""});mm(a.duckieEventTrackerService,nm((new om).setMessageId((f=
(e=d)==null?void 0:e.id)!=null?f:"")),293477);GTc(a,b,(k=(g=c)==null?void 0:g.text)!=null?k:"");$d(m)})};
var ETc=function(a,b,c,d){return y(function(e){b.messages.forEach(function(f){f.id===c&&(f.feedback?f.feedback.setHelpfulness(d):f.feedback=(new MC).setHelpfulness(d).setFeedbackType(0))});a.cache.set(b.serverId,b);$d(e)})},xTc=function(a,b,c){var d;return y(function(e){if(e.nextAddress==1){c.serverId&&b.setSessionId(c.serverId);var f=a.backendModelService.currentModelIdInternal.value;f!==""&&b.setModelId(f);d=Xm(a.overridesService.overrideOptions,6,Xi());if(d.length>0){f=b.setModelOverrideOptions;
var g=new BC;g=an(g,6,d);f.call(b,g)}return z(e,HTc(a,b,c),2)}if(a.isDuckieSourceEmbedded){g=new Vi;var k=new TKc;k=Yn(k,1,2);k=Gj(k,3,a.hostname);g=op(g,7,mj,k);fq(b,6,Vi,g)}else if(a.referrer.length!==0){var m=a.ancestorOrigins.length>0&&a.ancestorOrigins[0]!==a.referrer?1:3;g=XJc.test(a.referrer)&&!a.overridesService.overrideIsFirstTurnFromMoma?"":a.referrer;if(g.length>0){k=new Vi;var r=(new TKc).setReferrerUrl(g);m=Yn(r,1,m);k=op(k,7,mj,m);fq(b,6,Vi,k)}XJc.test(g)&&(g=new Vi,k=(new kwa).setReferrerUrl(a.referrer),
g=op(g,4,mj,k),fq(b,6,Vi,g))}a.referrer.length!==0&&XJc.test(a.referrer)&&a.overridesService.overrideIsFirstTurnFromMoma&&(a.overridesService.overrideIsFirstTurnFromMoma=!1);g=[];for(k=0;k<c.messages.length;k++)m=c.messages[k],m.isUser||m.id?g.push(jwa(m)):g.pop();g=(new QC).setMessagesList(g);c.privacyMode!==void 0&&g.setPrivacyMode(c.privacyMode);b.setConversationHistory(g);if(a.experimentsService.userProvidedContextEnabled){g=(f=c.userProvidedContext)!=null?f:[];f=zIc(a.userContextService,b.getText());
f=l(f);for(k=f.next();!k.done;k=f.next()){k=k.value;m=g;r=m.push;var w=new kj;var x=(new dj).setType(k.source);x=Gj(x,3,k.fullUrl);r.call(m,iwa(w,x.setUrl(k.label)))}b.addAllUserProvidedContext(g);wIc(a.userContextService)}c.conversationAgentId&&c.conversationAgentModelId&&(f=(new JC).setAgentId(c.conversationAgentId).setModelId(c.conversationAgentModelId),c.systemInstruction&&f.setSystemInstruction(c.systemInstruction),b.setConversationAgent(f));return e.return(b)})},zTc=function(a,b,c){var d,e,
f;return y(function(g){if(g.nextAddress==1)return d=!0,e=a.cancelPendingCurrentThreadUpdate$.pipe(mf(1)).subscribe(function(){d=!1}),b.serverId&&c.setSessionId(b.serverId),a.isDuckieThinkingInternal.next(!0),z(g,a.duckieService.streamGenerateAnswers(c),2);a.currentActiveStream=g.yieldResult;ITc(a,b,c.getText());eF(a,b);f=null;a.currentActiveStream.on("data",function(k){var m,r,w,x,D;return y(function(H){f=k;a.dataQueue.push({text:(x=(m=k.getResponse())==null?void 0:m.getText())!=null?x:"",state:Ri(k,
4),hiddenMessages:(D=(r=k.getResponse())==null?void 0:(w=Y(r,Yi,17))==null?void 0:Wi(w,LC,9,Xi()))!=null?D:[]});return z(H,JTc(a,b),0)})});a.currentActiveStream.on("error",function(){GTc(a,b,c.getText())});a.currentActiveStream.on("end",function(){var k,m;return y(function(r){switch(r.nextAddress){case 1:if(!f){r.jumpTo(2);break}return z(r,KTc(a,b,f),3);case 3:if(!a.experimentsService.userProvidedContextEnabled){r.jumpTo(4);break}return z(r,LTc(b,f),4);case 4:if((k=f.getResponse())==null?0:$i(k,20)){r.jumpTo(6);
break}return z(r,MTc(a.communicationService,(m=f.getResponse())==null?void 0:m.getText()),6);case 6:NTc(a,f,c),f.hasResponse()&&f.getResponse().hasSessionId()&&(b.serverId=f.getResponse().getSessionId());case 2:return a.currentThreadInternal.next(b),z(r,UNc(a.sessionSummaryService,b),8);case 8:d&&eF(a,b),e.unsubscribe(),a.isDuckieThinkingInternal.next(!1),$d(r)}})});return g.return(b)})},JTc=function(a,b){var c,d,e,f,g,k,m,r,w,x,D,H,J,O,R,V,ba,pa,ua,ma,Da;return y(function(ja){switch(ja.nextAddress){case 1:if(a.isProcessingStream||
a.dataQueue.length===0)return ja.return();a.isProcessingStream=!0;c=[3,4];d=[];e=a.dataQueue[a.dataQueue.length-1].state;a.dataQueue.length>1&&c.includes(e)?(d=a.dataQueue.slice(0,-1),a.dataQueue=[a.dataQueue[a.dataQueue.length-1]]):(d=a.dataQueue,a.dataQueue=[]);f=b.messages.length-1;k=g=b.messages[f];if(c.includes(d[0].state))m=d[0],w=((r=g.text)!=null?r:"")+m.text,x=MKc((g.executionMetadata||new Yi).clone(),m.hiddenMessages),k=Object.assign({},g,{text:w,executionMetadata:x});else{D=[];H=l(d);for(J=
H.next();!J.done;J=H.next())O=J.value,D=D.concat(O.hiddenMessages);ba=(V=(R=g.executionMetadata)==null?void 0:cCc(R,LC,9))!=null?V:[];pa=[].concat(n(ba.concat(D)));ua=MKc((g.executionMetadata||new Yi).clone(),pa);k=Object.assign({},g,{executionMetadata:ua,isStreamingThoughts:g.isStreamingThoughts})}Vd(ja,2,3);return z(ja,a.setMessageTextHtml(k),5);case 5:k=ja.yieldResult,ma=b.messages.map(function(va,ya){return ya===f?k:va}),b.messages=ma,a.cache.set(b.serverId,b),eF(a,b);case 3:Wd(ja);a.isProcessingStream=
!1;if(!(a.dataQueue.length>0)){ja.jumpTo(6);break}return z(ja,JTc(a,b),6);case 6:Yd(ja,0);break;case 2:Da=Zd(ja),console.error("Error processing message:",Da),ja.jumpTo(3)}})},ATc=function(a,b,c){var d,e,f,g,k,m;return y(function(r){switch(r.nextAddress){case 1:return d=!0,e=a.cancelPendingCurrentThreadUpdate$.pipe(mf(1)).subscribe(function(){d=!1}),ITc(a,b,c.getText()),eF(a,b),a.isDuckieThinkingInternal.next(!0),Vd(r,2),z(r,a.duckieService.generateAnswers(c),4);case 4:f=r.yieldResult;bk(r,3);break;
case 2:return g=Zd(r),a.snackBar.openFromComponent(ND,{data:{message:"An error occurred. Please try again.",error:g instanceof Error?g:Error(String(g))}}),b.messages.splice(-2),eF(a,b),jNc(c.getText()),a.isDuckieThinkingInternal.next(!1),r.return(b);case 3:return f?z(r,OTc(a,b,f),5):r.return(b);case 5:if(!a.experimentsService.userProvidedContextEnabled){r.jumpTo(6);break}return z(r,LTc(b,f),6);case 6:if((k=f.getResponse())==null?0:$i(k,20)){r.jumpTo(8);break}return z(r,MTc(a.communicationService,
(m=f.getResponse())==null?void 0:m.getText()),8);case 8:return NTc(a,f,c),f.hasResponse()&&f.getResponse().hasSessionId()&&(b.serverId=f.getResponse().getSessionId()),a.cache.set(b.serverId,b),d&&eF(a,b),e.unsubscribe(),a.isDuckieThinkingInternal.next(!1),r.return(b)}})},HTc=function(a,b,c){var d,e,f,g,k,m;return y(function(r){d=a.overridesService.getModelOverrideOptions();NSa(d,qTc)||b.setModelOverrideOptions(d);(f=(e=c.agentId)!=null?e:"")&&cj(b,JKc,10).setAgentId(f);(k=(g=c.agentVersion)!=null?
g:"")&&cj(b,JKc,10).setAgentVersion(k);(m=a.overridesService.getDisallowRestrictedContent())&&b.setDisallowRestrictedContent(m);a.overridesService.getAppProvidedContext().getValuesList().length>0&&b.setAppProvidedContext(a.overridesService.getAppProvidedContext());$d(r)})},ITc=function(a,b,c){c={text:c,isUser:!0,trackingId:uua()};a={text:void 0,isUser:!1,isStreamingThoughts:yTc(a),trackingId:uua()};b.messages.push(c);b.messages.push(a)},OTc=function(a,b,c){var d,e,f,g,k,m,r;return y(function(w){if(w.nextAddress==
1){d=c.getQuery();if(!d)return w.return();e=b.messages.length-2;f=ej(d);return z(w,a.setMessageTextHtml(f),2)}if(w.nextAddress!=3){f=w.yieldResult;b.messages[e]=f;g=c.getResponse();if(!g)return w.return();PTc(b,g);k=ej(g);return z(w,a.setMessageTextHtml(k),3)}k=w.yieldResult;m=b.messages.length-1;b.messages[m]=k;b.privacyMode=(r=c.getConversationHistory())==null?void 0:r.getPrivacyMode();$d(w)})},KTc=function(a,b,c){var d,e,f,g,k,m,r,w,x,D,H;return y(function(J){if(J.nextAddress==1){d=c.getConversationHistory();
if(!d||!d.getMessagesList())return console.error("No conversation history or messages in response."),J.return();if(d.getMessagesList().length!==b.messages.length)return console.error("Conversation history and thread messages have different lengths."),J.return();e=d.getMessagesList();f=b.messages.length-1;g=b.messages.length-2;k=b.messages[f].trackingId;m=b.messages[g].trackingId;r=e[g];w=ej(r);return z(J,a.setMessageTextHtml(w),2)}if(J.nextAddress!=3)return w=J.yieldResult,x=e[f],PTc(b,x),D=ej(x),
z(J,a.setMessageTextHtml(D),3);D=J.yieldResult;D.isStreamingThoughts=!1;w.trackingId=m;D.trackingId=k;w.sessionId=D.sessionId;b.messages[g]=w;b.messages[f]=D;b.privacyMode=(H=c.getConversationHistory())==null?void 0:H.getPrivacyMode();$d(J)})},LTc=function(a,b){var c,d,e,f,g,k;return y(function(m){c=b.getUserProvidedContextList();if(!c)return m.return();d=[];e=l(c);for(f=e.next();!f.done;f=e.next()){g=f.value;k=iwa(new kj,(new dj).setType(bLc(g).getType()).setUrl(bLc(g).getUrl()));var r=bLc(g);if(xm(r,
3)){r=bLc(k);var w=bLc(g);w=Fi(w,3);Gj(r,3,w)}d.push(k)}a.userProvidedContext=d;$d(m)})},BTc=function(a,b){var c;return y(function(d){if(d.nextAddress==1){if(b.privacyMode===2||!b.messages.some(function(e){return e.hasPrivateContent}))return d.jumpTo(0);c=Object.assign({},b,{privacyMode:2});return z(d,WNc(a.sessionSummaryService,c),3)}eF(a,c);a.cache.set(c.serverId,c);$d(d)})},PTc=function(a,b){$i(b,20)||hwa(b,a.messages.some(function(c){return c.hasPrivateContent}))},NTc=function(a,b,c){if(b=b.getResponse())if(b=
ej(b),JE(a.duckieEventTrackerService,201778,b),JE(a.duckieEventTrackerService,201478,b),c=zIc(a.userContextService,c.getText(),!0).map(function(e){var f=(new ZNc).setUrl(e.fullUrl);return Yn(f,2,e.source)}),c.length>0){var d;mm(a.duckieEventTrackerService,nm(aOc(new om,$Nc(c)).setMessageId(b.id).setSessionId((d=b.sessionId)!=null?d:"")),243707)}},GTc=function(a,b,c){a.isDuckieThinkingInternal.next(!1);a.dataQueue=[];a.isProcessingStream=!1;b.messages.splice(-2);eF(a,b);jNc(c)},sTc=function(a){var b=
AD(a.conversationAgentsService),c,d,e;return{serverId:null,messages:[],title:"",agentId:a.currentThreadAgentId,agentVersion:a.currentThreadAgentVersion,conversationAgentId:(c=b==null?void 0:b.agentId)!=null?c:void 0,conversationAgentModelId:(d=b==null?void 0:b.modelId)!=null?d:void 0,systemInstruction:(e=b==null?void 0:b.systemInstruction)!=null?e:void 0}},yTc=function(a){var b;if(!(b=!a.experimentsService.duckieStreamingMvpEnabled)){var c;if(b=!((c=AD(a.conversationAgentsService).agentId)==null?
0:c.startsWith("a2a:")))a=AD(a.conversationAgentsService),c=a.agentId===Zw.agentId&&a.modelId===Zw.modelId,b=!(a.agentId===$w.agentId&&a.modelId===$w.modelId||c)}return!b};fF.\u0275fac=function(a){return new (a||fF)};fF.\u0275prov=Cc({token:fF,factory:fF.\u0275fac,providedIn:"root"});var Bya=Symbol("ec"),gF=function(a){this.params=a||{}};gF.prototype.has=function(a){return Object.prototype.hasOwnProperty.call(this.params,a)};gF.prototype.get=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a[0]:a):null};gF.prototype.getAll=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a:[a]):[]};da.Object.defineProperties(gF.prototype,{keys:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.params)}}});var Nxa={exact:Sxa,subset:Vxa},Oxa={exact:Qxa,subset:Txa,ignored:function(){return!0}},Sj=function(a,b,c){a=a===void 0?new Rj([],{}):a;b=b===void 0?{}:b;this.root=a;this.queryParams=b;this.fragment=c===void 0?null:c};Sj.prototype.toString=function(){return QTc.serialize(this)};da.Object.defineProperties(Sj.prototype,{queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap!=null||(this._queryParamMap=new gF(this.queryParams));return this._queryParamMap}}});
var Rj=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})};Rj.prototype.hasChildren=function(){return this.numberOfChildren>0};Rj.prototype.toString=function(){return $xa(this)};da.Object.defineProperties(Rj.prototype,{numberOfChildren:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.children).length}}});var Uj=function(a,b){this.path=a;this.parameters=b};
Uj.prototype.toString=function(){return Yxa(this.path)+Zxa(this.parameters)};var hF=function(){};hF.\u0275fac=function(a){return new (a||hF)};hF.\u0275prov=Cc({token:hF,factory:function(){return new iF},providedIn:"root"});var iF=function(){};
iF.prototype.parse=function(a){a=new RTc(a);jF(a,"/");var b=a.remaining===""||a.remaining.startsWith("?")||a.remaining.startsWith("#")?new Rj([],{}):new Rj([],STc(a));var c={};if(jF(a,"?")){do{var d,e,f=a.remaining.match(TTc);if(e=f?f[0]:"")a.capture(e),f="",jF(a,"=")&&(d=(d=a.remaining.match(UTc))?d[0]:"")&&(f=d,a.capture(f)),e=decodeURIComponent(e.replace(/\+/g,"%20")),f=decodeURIComponent(f.replace(/\+/g,"%20")),c.hasOwnProperty(e)?(d=c[e],Array.isArray(d)||(d=[d],c[e]=d),d.push(f)):c[e]=f}while(jF(a,
"&"))}return new Sj(b,c,jF(a,"#")?decodeURIComponent(a.remaining):null)};iF.prototype.serialize=function(a){var b="/"+aya(a.root,!0),c=dya(a.queryParams);a=typeof a.fragment==="string"?"#"+encodeURI(a.fragment):"";return b+c+a};
var QTc=new iF,eya=/^[^\/()?;#]+/,VTc=/^[^\/()?;=#]+/,TTc=/^[^=?&#]+/,UTc=/^[^&#]+/,RTc=function(a){this.remaining=this.url=a},STc=function(a){if(a.remaining==="")return{};jF(a,"/");var b=[];for(a.remaining.startsWith("(")||b.push(WTc(a));a.remaining.startsWith("/")&&!a.remaining.startsWith("//")&&!a.remaining.startsWith("/(");)a.capture("/"),b.push(WTc(a));var c={};a.remaining.startsWith("/(")&&(a.capture("/"),c=XTc(a,!0));var d={};a.remaining.startsWith("(")&&(d=XTc(a,!1));if(b.length>0||Object.keys(c).length>
0)d.primary=new Rj(b,c);return d},WTc=function(a){var b=fya(a.remaining);if(b===""&&a.remaining.startsWith(";"))throw new Pc(4009,!1);a.capture(b);b=decodeURIComponent(b);for(var c={};jF(a,";");){var d,e=a;if(d=(d=e.remaining.match(VTc))?d[0]:""){e.capture(d);var f="";if(jF(e,"=")){var g=fya(e.remaining);g&&(f=g,e.capture(f))}c[decodeURIComponent(d)]=decodeURIComponent(f)}}return new Uj(b,c)},XTc=function(a,b){var c={};for(a.capture("(");!jF(a,")")&&a.remaining.length>0;){var d=fya(a.remaining),e=
a.remaining[d.length];if(e!=="/"&&e!==")"&&e!==";")throw new Pc(4010,!1);e=void 0;d.indexOf(":")>-1?(e=d.slice(0,d.indexOf(":")),a.capture(e),a.capture(":")):b&&(e="primary");d=STc(a);var f=void 0;c[(f=e)!=null?f:"primary"]=Object.keys(d).length===1&&d.primary?d.primary:new Rj([],d);jF(a,"//")}return c},jF=function(a,b){return a.remaining.startsWith(b)?(a.remaining=a.remaining.substring(b.length),!0):!1};RTc.prototype.capture=function(a){if(!jF(this,a))throw new Pc(4011,!1);};var tya=function(a,b,c){this.isAbsolute=a;this.numberOfDoubleDots=b;this.commands=c;if(a&&c.length>0&&mya(c[0]))throw new Pc(4003,!1);if((a=c.find(qya))&&a!==(c.length>0?c[c.length-1]:null))throw new Pc(4004,!1);},lya=function(a,b,c){this.segmentGroup=a;this.processChildren=b;this.index=c};var kF=function(a,b){this.id=a;this.url=b},xr=function(a,b,c,d){c=c===void 0?"imperative":c;d=d===void 0?null:d;kF.call(this,a,b);this.type=0;this.navigationTrigger=c;this.restoredState=d};Z(xr,kF);xr.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"};var ck=function(a,b,c){kF.call(this,a,b);this.urlAfterRedirects=c;this.type=1};Z(ck,kF);
ck.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"};var dk=function(a,b,c,d){kF.call(this,a,b);this.reason=c;this.code=d;this.type=2};Z(dk,kF);dk.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"};var fk=function(a,b,c,d){kF.call(this,a,b);this.reason=c;this.code=d;this.type=16};Z(fk,kF);
var ek=function(a,b,c,d){kF.call(this,a,b);this.error=c;this.target=d;this.type=3};Z(ek,kF);ek.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"};var YTc=function(a,b,c,d){kF.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=4};Z(YTc,kF);YTc.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};
var ZTc=function(a,b,c,d){kF.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=7};Z(ZTc,kF);ZTc.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var $Tc=function(a,b,c,d,e){kF.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.shouldActivate=e;this.type=8};Z($Tc,kF);
$Tc.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"};var aUc=function(a,b,c,d){kF.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=5};Z(aUc,kF);aUc.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};
var bUc=function(a,b,c,d){kF.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=6};Z(bUc,kF);bUc.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var cUc=function(a){this.route=a;this.type=9};cUc.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"};var dUc=function(a){this.route=a;this.type=10};
dUc.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"};var dza=function(a){this.snapshot=a;this.type=11};dza.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var eUc=function(a){this.snapshot=a;this.type=12};eUc.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};
var eza=function(a){this.snapshot=a;this.type=13};eza.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var fUc=function(a){this.snapshot=a;this.type=14};fUc.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var gUc=function(a,b,c){this.position=a;this.anchor=b;this.scrollBehavior=c;this.type=15};
gUc.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"};var hUc=function(){},iUc=function(a,b){this.url=a;this.navigationBehaviorOptions=b};var jUc=function(a){this.rootInjector=a;this.attachRef=this.route=this.outlet=null;this.children=new lF(this.rootInjector)};da.Object.defineProperties(jUc.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.route)==null?void 0:a.snapshot._environmentInjector)!=null?b:this.rootInjector}}});
var lF=function(a){this.rootInjector=a;this.contexts=new Map},kUc=function(a,b){if(a=a.getContext(b))a.outlet=null,a.attachRef=null},lUc=function(a,b){var c=a.getContext(b);c||(c=new jUc(a.rootInjector),a.contexts.set(b,c));return c};lF.prototype.getContext=function(a){return this.contexts.get(a)||null};lF.\u0275fac=function(a){return new (a||lF)(Wc(Xe))};lF.\u0275prov=Cc({token:lF,factory:lF.\u0275fac,providedIn:"root"});var mF=function(a){this._root=a};mF.prototype.parent=function(a){a=this.pathFromRoot(a);return a.length>1?a[a.length-2]:null};mF.prototype.children=function(a){return(a=yya(a,this._root))?a.children.map(function(b){return b.value}):[]};mF.prototype.firstChild=function(a){return(a=yya(a,this._root))&&a.children.length>0?a.children[0].value:null};mF.prototype.pathFromRoot=function(a){return zya(a,this._root).map(function(b){return b.value})};
da.Object.defineProperties(mF.prototype,{root:{configurable:!0,enumerable:!0,get:function(){return this._root.value}}});var Vj=function(a,b){this.value=a;this.children=b};Vj.prototype.toString=function(){return"TreeNode("+this.value+")"};var Kya=function(a,b){this._root=a;this.snapshot=b;Dya(this,a)};Z(Kya,mF);Kya.prototype.toString=function(){return this.snapshot.toString()};
var Wj=function(a,b,c,d,e,f,g,k){this.urlSubject=a;this.paramsSubject=b;this.queryParamsSubject=c;this.fragmentSubject=d;this.dataSubject=e;this.outlet=f;this.component=g;this._futureSnapshot=k;var m,r;this.title=(r=(m=this.dataSubject)==null?void 0:m.pipe(A(function(w){return w[Bya]})))!=null?r:be(void 0);this.url=a;this.params=b;this.queryParams=c;this.fragment=d;this.data=e};Wj.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"};
da.Object.defineProperties(Wj.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(A(function(a){return new gF(a)})));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap!=null||(this._queryParamMap=this.queryParams.pipe(A(function(a){return new gF(a)})));return this._queryParamMap}}});
var nF=function(a,b,c,d,e,f,g,k,m,r){this.url=a;this.params=b;this.queryParams=c;this.fragment=d;this.data=e;this.outlet=f;this.component=g;this.routeConfig=k;this._resolve=m;this._environmentInjector=r};nF.prototype.toString=function(){return"Route(url:'"+this.url.map(function(a){return a.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"};
da.Object.defineProperties(nF.prototype,{title:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a[Bya]}},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 gF(this.params));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap!=null||(this._queryParamMap=new gF(this.queryParams));return this._queryParamMap}}});var mUc=function(a,b){this._root=b;this.url=a;Dya(this,b)};Z(mUc,mF);mUc.prototype.toString=function(){return Eya(this._root)};var nUc=new bd(""),oF=function(){this._activatedRoute=this.activated=null;this.name="primary";this.activateEvents=new ui;this.deactivateEvents=new ui;this.attachEvents=new ui;this.detachEvents=new ui;this.routerOutletData=Qg.apply(null,n([]));this.parentContexts=q(lF);this.location=q(ig);this.changeDetector=q(Yx);this.inputBinder=q(oUc,{optional:!0})};
oF.prototype.ngOnChanges=function(a){if(a.name){a=a.name;var b=a.previousValue;a.firstChange||(pUc(this,b)&&(this.deactivate(),kUc(this.parentContexts,b)),qUc(this))}};oF.prototype.ngOnDestroy=function(){pUc(this,this.name)&&kUc(this.parentContexts,this.name);var a;(a=this.inputBinder)==null||rUc(a,this)};var pUc=function(a,b){var c;return((c=a.parentContexts.getContext(b))==null?void 0:c.outlet)===a};oF.prototype.ngOnInit=function(){qUc(this)};
var qUc=function(a){var b=a.parentContexts,c=a.name,d=lUc(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):sUc(a,b.route,b.injector))};oF.prototype.detach=function(){if(!this.activated)throw new Pc(4012,!1);this.location.detach();var a=this.activated;this._activatedRoute=this.activated=null;this.detachEvents.emit(a.instance);return a};
oF.prototype.attach=function(a,b){this.activated=a;this._activatedRoute=b;this.location.insert(a.hostView);(b=this.inputBinder)!=null&&(rUc(b,this),tUc(b,this));this.attachEvents.emit(a.instance)};oF.prototype.deactivate=function(){if(this.activated){var a=this.component;this.activated.destroy();this._activatedRoute=this.activated=null;this.deactivateEvents.emit(a)}};
var sUc=function(a,b,c){if(a.isActivated)throw new Pc(4013,!1);a._activatedRoute=b;var d=a.location,e=b.snapshot.component,f=lUc(a.parentContexts,a.name).children;a.activated=d.createComponent(e,{index:d.length,injector:new uUc(b,f,d.injector,a.routerOutletData),environmentInjector:c});a.changeDetector.markForCheck();(b=a.inputBinder)!=null&&(rUc(b,a),tUc(b,a));a.activateEvents.emit(a.activated.instance)};
da.Object.defineProperties(oF.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 Pc(4012,!1);return this.activated.instance}},activatedRoute:{configurable:!0,enumerable:!0,get:function(){if(!this.activated)throw new Pc(4012,!1);return this._activatedRoute}}});
oF.\u0275fac=function(a){return new (a||oF)};oF.\u0275dir=af({type:oF,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Gx]});var uUc=function(a,b,c,d){this.route=a;this.childContexts=b;this.parent=c;this.outletData=d};
uUc.prototype.get=function(a,b){return a===Wj?this.route:a===lF?this.childContexts:a===nUc?this.outletData:this.parent.get(a,b)};
var oUc=new bd(""),pF=function(){this.outletDataSubscriptions=new Map},rUc=function(a,b){var c;(c=a.outletDataSubscriptions.get(b))==null||c.unsubscribe();a.outletDataSubscriptions.delete(b)},tUc=function(a,b){var c=b.activatedRoute,d=he([c.queryParams,c.params,c.data]).pipe(zf(function(e,f){var g=l(e);e=g.next().value;var k=g.next().value;g=g.next().value;g=Object.assign({},e,k,g);return f===0?be(g):Promise.resolve(g)})).subscribe(function(e){if(b.isActivated&&b.activatedComponentRef&&b.activatedRoute===
c&&c.component!==null){var f=Bpa(c.component);if(f){f=l(f.inputs);for(var g=f.next();!g.done;g=f.next())g=g.value.templateName,b.activatedComponentRef.setInput(g,e[g])}else rUc(a,b)}else rUc(a,b)});a.outletDataSubscriptions.set(b,d)};pF.\u0275fac=function(a){return new (a||pF)};pF.\u0275prov=Cc({token:pF,factory:pF.\u0275fac});var Iya=function(){};Iya.\u0275fac=function(a){return new (a||Iya)};Iya.\u0275cmp=C({type:Iya,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(a){a&1&&M(0,"router-outlet")},dependencies:[oF],encapsulation:2});var vUc=function(a,b,c,d,e){this.routeReuseStrategy=a;this.futureState=b;this.currState=c;this.forwardEvent=d;this.inputBindingEnabled=e};vUc.prototype.activate=function(a){var b=this.futureState._root,c=this.currState?this.currState._root:null;wUc(this,b,c,a);Fya(this.futureState.root);xUc(this,b,c,a)};
var wUc=function(a,b,c,d){var e=Aya(c);b.children.forEach(function(f){var g=f.value.outlet,k=e[g],m=f.value,r=k?k.value:null;m===r?m.component?(m=d.getContext(m.outlet))&&wUc(a,f,k,m.children):wUc(a,f,k,d):r&&yUc(a,k,d);delete e[g]});Object.values(e).forEach(function(f){yUc(a,f,d)})},yUc=function(a,b,c){var d=c.getContext(b.value.outlet);c=d&&b.value.component?d.children:c;b=Aya(b);b=l(Object.values(b));for(var e=b.next();!e.done;e=b.next())yUc(a,e.value,c);d&&(d.outlet&&(d.outlet.deactivate(),d.children.contexts=
new Map),d.attachRef=null,d.route=null)},xUc=function(a,b,c,d){var e=Aya(c);b.children.forEach(function(f){var g=e[f.value.outlet],k=f.value,m=g?g.value:null;Fya(k);k===m?k.component?(k=lUc(d,k.outlet),xUc(a,f,g,k.children)):xUc(a,f,g,d):k.component?(g=lUc(d,k.outlet),g.attachRef=null,g.route=k,g.outlet&&sUc(g.outlet,k,g.injector),xUc(a,f,null,g.children)):xUc(a,f,null,d);a.forwardEvent(new fUc(f.value.snapshot))});b.children.length&&a.forwardEvent(new eUc(b.value.snapshot))};var Rya=Symbol("gc");var Uya=function(a){this.path=a;this.route=this.path[this.path.length-1]},Wya=function(a,b){this.component=a;this.route=b};var qF=function(a){var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.segmentGroup=a||null;Object.setPrototypeOf(this,qF.prototype)};Z(qF,Error);var zUc=function(a){var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.urlTree=a;Object.setPrototypeOf(this,zUc.prototype)};Z(zUc,Error);
var AUc=function(a,b){this.urlSerializer=a;this.urlTree=b},BUc=function(a){var b,c;return y(function(d){b=[];for(c=a.root;;){b=b.concat(c.segments);if(c.numberOfChildren===0)return d.return(b);if(c.numberOfChildren>1||!c.children.primary)throw new Pc(4E3,!1);c=c.children.primary}$d(d)})},EUc=function(a,b,c,d,e,f){var g,k;return y(function(m){if(m.nextAddress==1)return z(m,kza(c,e,f),2);g=m.yieldResult;if(g instanceof Sj)throw new zUc(g);var r=g,w=a.urlSerializer.parse(g);r=CUc(a,r,w.root,b,d);k=new Sj(r,
DUc(w.queryParams,a.urlTree.queryParams),w.fragment);if(g[0]==="/")throw new zUc(k);return m.return(k)})},DUc=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},CUc=function(a,b,c,d,e){var f=FUc(c.segments,d,e),g={};Object.entries(c.children).forEach(function(k){var m=l(k);k=m.next().value;m=m.next().value;g[k]=CUc(a,b,m,d,e)});return new Rj(f,g)},FUc=function(a,b,c){return a.map(function(d){if(d.path[0]===
":"){if(d=c[d.path.substring(1)],!d)throw new Pc(4001,!1);}else a:for(var e=0,f=l(b),g=f.next();!g.done;g=f.next()){g=g.value;if(g.path===d.path){b.splice(e);d=g;break a}e++}return d})};var oza={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};var GUc=function(){},uza=function(a,b,c,d,e,f,g,k){this.injector=a;this.configLoader=b;this.rootComponentType=c;this.config=d;this.urlTree=e;this.paramsInheritanceStrategy=f;this.urlSerializer=g;this.abortSignal=k;this.absoluteRedirectCount=0;this.allowRedirects=!0;this.applyRedirects=new AUc(this.urlSerializer,this.urlTree)};
uza.prototype.recognize=function(){var a=this,b,c,d,e,f,g,k;return y(function(m){if(m.nextAddress==1)return b=tza(a.urlTree.root,[],[],a.config).segmentGroup,z(m,a.match(b),2);c=m.yieldResult;d=c.children;e=c.rootSnapshot;f=new Vj(e,d);g=new mUc("",f);var r=e,w=a.urlTree.queryParams,x=a.urlTree.fragment;w=w===void 0?null:w;x=x===void 0?null:x;var D=D===void 0?new iF:D;r=iya(r);k=pya(r,[],w,x,D);k.queryParams=a.urlTree.queryParams;g.url=a.urlSerializer.serialize(k);return m.return({state:g,tree:k})})};
uza.prototype.match=function(a){var b=this,c,d,e;return y(function(f){if(f.nextAddress==1)return c=new nF([],Object.freeze({}),Object.freeze(Object.assign({},b.urlTree.queryParams)),b.urlTree.fragment,Object.freeze({}),"primary",b.rootComponentType,null,{},b.injector),Vd(f,2),z(f,HUc(b,b.injector,b.config,a,"primary",c),4);if(f.nextAddress!=2)return d=f.yieldResult,f.return({children:d,rootSnapshot:c});e=Zd(f);if(e instanceof zUc)return b.urlTree=e.urlTree,f.return(b.match(e.urlTree.root));if(e instanceof
qF)throw new Pc(4002,"'"+e.segmentGroup+"'");throw e;})};var HUc=function(a,b,c,d,e,f){var g;return y(function(k){if(k.nextAddress==1)return d.segments.length===0&&d.hasChildren()?k.return(a.processChildren(b,c,d,f)):z(k,IUc(a,b,c,d,d.segments,e,!0,f),2);g=k.yieldResult;return k.return(g instanceof Vj?[g]:[])})};
uza.prototype.processChildren=function(a,b,c,d){var e=this,f,g,k,m,r,w,x,D,H,J,O,R;return y(function(V){switch(V.nextAddress){case 1:f=[];g=l(Object.keys(c.children));for(k=g.next();!k.done;k=g.next())m=k.value,m==="primary"?f.unshift(m):f.push(m);r=[];w=l(f);x=w.next();case 2:if(x.done){V.jumpTo(4);break}D=x.value;H=c.children[D];J=mza(b,D);return z(V,HUc(e,a,J,H,D,d),5);case 5:O=V.yieldResult;r.push.apply(r,n(O));x=w.next();V.jumpTo(2);break;case 4:return R=yza(r),wza(R),V.return(R)}})};
var IUc=function(a,b,c,d,e,f,g,k){var m,r,w,x,D;return y(function(H){switch(H.nextAddress){case 1:m=l(c),r=m.next();case 2:if(r.done){H.jumpTo(4);break}w=r.value;Vd(H,5);x=void 0;return z(H,JUc(a,(x=w._injector)!=null?x:b,c,w,d,e,f,g,k),7);case 7:return H.return(H.yieldResult);case 5:D=Zd(H);if(D instanceof qF||Zya(D)){H.jumpTo(3);break}throw D;case 3:r=m.next();H.jumpTo(2);break;case 4:if(e.length===0&&!d.children[f])return H.return(new GUc);throw new qF(d);}})},JUc=function(a,b,c,d,e,f,g,k,m){return y(function(r){if(ak(d)!==
g&&(g==="primary"||!sza(e,f,d)))throw new qF(e);if(d.redirectTo===void 0)return r.return(KUc(a,b,e,d,f,g,m));if(a.allowRedirects&&k)return r.return(LUc(a,b,e,c,d,f,g,m));throw new qF(e);})},LUc=function(a,b,c,d,e,f,g,k){var m,r,w,x,D,H,J,O,R,V,ba,pa;return y(function(ua){if(ua.nextAddress==1){m=nza(c,e,f);r=m.matched;w=m.parameters;x=m.consumedSegments;D=m.positionalParamSegments;H=m.remainingSegments;if(!r)throw new qF(c);typeof e.redirectTo==="string"&&e.redirectTo[0]==="/"&&(a.absoluteRedirectCount++,
a.absoluteRedirectCount>31&&(a.allowRedirects=!1));R=new nF(f,w,Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,e.data||{},ak(e),(O=(J=e.component)!=null?J:e._loadedComponent)!=null?O:null,e,e.resolve||{},b);V=Cya(R,k,a.paramsInheritanceStrategy);R.params=Object.freeze(V.params);R.data=Object.freeze(V.data);if(a.abortSignal.aborted)throw Error(a.abortSignal.reason);return z(ua,EUc(a.applyRedirects,x,e.redirectTo,D,R,b),2)}if(ua.nextAddress!=3)return ba=ua.yieldResult,z(ua,
BUc(ba),3);pa=ua.yieldResult;return ua.return(IUc(a,b,d,c,pa.concat(H),g,!1,k))})},KUc=function(a,b,c,d,e,f,g){var k,m,r,w,x,D,H,J,O,R,V,ba,pa,ua,ma,Da,ja,va,ya,Sa,ab;return y(function(rb){switch(rb.nextAddress){case 1:if(a.abortSignal.aborted)throw Error(a.abortSignal.reason);return z(rb,Jxa(pza(c,d,e,b,a.abortSignal)),2);case 2:k=rb.yieldResult;d.path==="**"&&(c.children={});if((m=k)==null||!m.matched)throw new qF(c);b=(r=d._injector)!=null?r:b;return z(rb,MUc(a,b,d,e),3);case 3:w=rb.yieldResult;
x=w.routes;H=(D=d._loadedInjector)!=null?D:b;J=k;O=J.parameters;R=J.consumedSegments;V=J.remainingSegments;ua=new nF(R,O,Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,d.data||{},ak(d),(pa=(ba=d.component)!=null?ba:d._loadedComponent)!=null?pa:null,d,d.resolve||{},b);ma=Cya(ua,g,a.paramsInheritanceStrategy);ua.params=Object.freeze(ma.params);ua.data=Object.freeze(ma.data);Da=tza(c,R,V,x);ja=Da.segmentGroup;va=Da.slicedSegments;if(va.length!==0||!ja.hasChildren()){rb.jumpTo(4);
break}return z(rb,a.processChildren(H,x,ja,ua),5);case 5:return ya=rb.yieldResult,rb.return(new Vj(ua,ya));case 4:if(x.length===0&&va.length===0)return rb.return(new Vj(ua,[]));Sa=ak(d)===f;return z(rb,IUc(a,H,x,ja,va,Sa?"primary":f,!0,ua),6);case 6:return ab=rb.yieldResult,rb.return(new Vj(ua,ab instanceof Vj?[ab]:[]))}})},MUc=function(a,b,c,d){var e,f;return y(function(g){switch(g.nextAddress){case 1:if(c.children)return g.return({routes:c.children,injector:b});if(!c.loadChildren){g.jumpTo(2);break}if(c._loadedRoutes!==
void 0)return g.return({routes:c._loadedRoutes,injector:c._loadedInjector});if(a.abortSignal.aborted)throw Error(a.abortSignal.reason);return z(g,Jxa(iza(b,c,d,a.abortSignal)),3);case 3:e=g.yieldResult;if(!e){g.jumpTo(4);break}return z(g,a.configLoader.loadChildren(b,c),5);case 5:return f=g.yieldResult,c._loadedRoutes=f.routes,c._loadedInjector=f.injector,g.return(f);case 4:throw Oya(3);case 2:return g.return({routes:[],injector:b})}})};var zza=new bd("",{factory:function(){return vza}});var rF=function(){},NUc=function(a){for(a=a.root;a!==void 0;){var b=void 0;var c=(b=a.data[Bya])!=null?b:c;a=a.children.find(function(d){return d.outlet==="primary"})}return c};rF.\u0275fac=function(a){return new (a||rF)};rF.\u0275prov=Cc({token:rF,factory:function(){return q(sF)},providedIn:"root"});var sF=function(a){this.title=a};Z(sF,rF);sF.prototype.updateTitle=function(a){a=NUc(a);a!==void 0&&this.title.setTitle(a)};sF.\u0275fac=function(a){return new (a||sF)(Wc(Sy))};
sF.\u0275prov=Cc({token:sF,factory:sF.\u0275fac,providedIn:"root"});var tF=new bd("",{factory:function(){return{}}});var Lza=new bd(""),uF=function(){this.componentLoaders=new WeakMap;this.childrenLoaders=new WeakMap;q(ey)};
uF.prototype.loadComponent=function(a,b){var c=this,d;return y(function(e){if(c.componentLoaders.get(b))return e.return(c.componentLoaders.get(b));if(b._loadedComponent)return e.return(Promise.resolve(b._loadedComponent));if(c.onLoadStartListener)c.onLoadStartListener(b);d=function(){var f,g;return y(function(k){switch(k.nextAddress){case 1:return Xd(k,2),z(k,Mxa(ed(a,function(){return b.loadComponent()})),4);case 4:return f=k.yieldResult,z(k,Hza(Iza(f)?f["default"]:f),5);case 5:g=k.yieldResult;if(c.onLoadEndListener)c.onLoadEndListener(b);
b._loadedComponent=g;return k.return(g);case 2:Wd(k),c.componentLoaders.delete(b),Yd(k,0)}})}();c.componentLoaders.set(b,d);return e.return(d)})};
uF.prototype.loadChildren=function(a,b){var c=this;if(this.childrenLoaders.get(b))return this.childrenLoaders.get(b);if(b._loadedRoutes)return Promise.resolve({routes:b._loadedRoutes,injector:b._loadedInjector});if(this.onLoadStartListener)this.onLoadStartListener(b);var d=function(){var e;return y(function(f){if(f.nextAddress==1)return Xd(f,2),z(f,Mza(b,a,c.onLoadEndListener),4);if(f.nextAddress!=2)return e=f.yieldResult,b._loadedRoutes=e.routes,b._loadedInjector=e.injector,f.return(e);Wd(f);c.childrenLoaders.delete(b);
return Yd(f,0)})}();this.childrenLoaders.set(b,d);return d};uF.\u0275fac=function(a){return new (a||uF)};uF.\u0275prov=Cc({token:uF,factory:uF.\u0275fac,providedIn:"root"});var vF=function(){};vF.\u0275fac=function(a){return new (a||vF)};vF.\u0275prov=Cc({token:vF,factory:function(){return q(wF)},providedIn:"root"});var wF=function(){};wF.prototype.merge=function(a){return a};wF.\u0275fac=function(a){return new (a||wF)};wF.\u0275prov=Cc({token:wF,factory:wF.\u0275fac,providedIn:"root"});var OUc=new bd(""),Nza=new bd("");var PUc=function(){},QUc=new bd(""),xF=function(){var a=this;this.currentNavigation=qg(null,Object.assign({},{},{equal:function(){return!1}}));this.currentTransition=null;this.lastSuccessfulNavigation=qg.apply(null,[null].concat(n([])));this.events=new rf;this.transitionAbortWithErrorSubject=new rf;this.configLoader=q(uF);this.environmentInjector=q(Xe);this.destroyRef=q(Be);this.urlSerializer=q(hF);this.rootContexts=q(lF);this.location=q(oi);this.inputBindingEnabled=q(oUc,{optional:!0})!==null;this.titleStrategy=
q(rF);this.options=q(tF,{optional:!0})||{};this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";this.urlHandlingStrategy=q(vF);this.createViewTransition=q(OUc,{optional:!0});this.navigationErrorHandler=q(QUc,{optional:!0});this.navigationId=0;this.afterPreactivation=function(){return be(void 0)};this.rootComponentType=null;this.destroyed=!1;this.configLoader.onLoadEndListener=function(b){return a.events.next(new dUc(b))};this.configLoader.onLoadStartListener=function(b){return a.events.next(new cUc(b))};
this.destroyRef.onDestroy(function(){a.destroyed=!0})};xF.prototype.complete=function(){var a;(a=this.transitions)==null||a.complete()};
var RUc=function(a,b){var c=++a.navigationId;Mc(function(){var d;(d=a.transitions)==null||d.next(Object.assign({},b,{extractedUrl:b.rawUrl,targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:c}))})},VUc=function(a,b){a.transitions=new Xj(null);return a.transitions.pipe(te(function(c){return c!==null}),zf(function(c){var d=!1,e=new AbortController,f=function(){var g;return!d&&((g=a.currentTransition)==null?void 0:g.id)===c.id};return be(c).pipe(zf(function(g){if(a.navigationId>
c.id)return SUc(a,c,"",1),re;a.currentTransition=c;var k=a.lastSuccessfulNavigation();a.currentNavigation.set({id:g.id,initialUrl:g.rawUrl,extractedUrl:g.extractedUrl,targetBrowserUrl:typeof g.extras.browserUrl==="string"?a.urlSerializer.parse(g.extras.browserUrl):g.extras.browserUrl,trigger:g.source,extras:g.extras,previousNavigation:k?Object.assign({},k,{previousNavigation:null}):null,abort:function(){return e.abort()}});k=!b.navigated||TUc(a)||UUc(a);var m,r=(m=g.extras.onSameUrlNavigation)!=null?
m:b.onSameUrlNavigation;return k||r==="reload"?be(g).pipe(zf(function(w){a.events.next(new xr(w.id,a.urlSerializer.serialize(w.extractedUrl),w.source,w.restoredState));return w.id!==a.navigationId?re:Promise.resolve(w)}),Aza(a.environmentInjector,a.configLoader,a.rootComponentType,b.config,a.urlSerializer,a.paramsInheritanceStrategy,e.signal),Bf(function(w){c.targetSnapshot=w.targetSnapshot;c.urlAfterRedirects=w.urlAfterRedirects;a.currentNavigation.update(function(D){D.finalUrl=w.urlAfterRedirects;
return D});var x=new YTc(w.id,a.urlSerializer.serialize(w.extractedUrl),a.urlSerializer.serialize(w.urlAfterRedirects),w.targetSnapshot);a.events.next(x)})):(a.events.next(new fk(g.id,a.urlSerializer.serialize(g.rawUrl),"",0)),g.resolve(!1),re)}),A(function(g){var k=new ZTc(g.id,a.urlSerializer.serialize(g.extractedUrl),a.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);a.events.next(k);k=Object;var m=k.assign;var r=g.currentSnapshot;var w=g.targetSnapshot._root;r=Vya(w,r?r._root:null,
a.rootContexts,[w.value]);return a.currentTransition=c=m.call(k,{},g,{guards:r})}),bza(function(g){return a.events.next(g)}),zf(function(g){if((c.guardsResult=g.guardsResult)&&typeof g.guardsResult!=="boolean")throw Pya(g.guardsResult);var k=new $Tc(g.id,a.urlSerializer.serialize(g.extractedUrl),a.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot,!!g.guardsResult);a.events.next(k);if(!f())return re;if(!g.guardsResult)return SUc(a,g,"",3),re;if(g.guards.canActivateChecks.length===0)return be(g);
k=new aUc(g.id,a.urlSerializer.serialize(g.extractedUrl),a.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);a.events.next(k);if(!f())return re;var m=!1;return be(g).pipe(Dza(a.paramsInheritanceStrategy),Bf({next:function(){m=!0;var r=new bUc(g.id,a.urlSerializer.serialize(g.extractedUrl),a.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);a.events.next(r)},complete:function(){m||SUc(a,g,"",2)}}))}),Gza(function(g){var k=function(r){var w=[],x;if((x=r.routeConfig)==null?
0:x._loadedComponent){var D;r.component=(D=r.routeConfig)==null?void 0:D._loadedComponent}else{var H;((H=r.routeConfig)==null?0:H.loadComponent)&&w.push(a.configLoader.loadComponent(r._environmentInjector,r.routeConfig).then(function(J){r.component=J}))}x=l(r.children);for(D=x.next();!D.done;D=x.next())w.push.apply(w,n(k(D.value)));return w},m=k(g.targetSnapshot.root);return m.length===0?be(g):Ud(Promise.all(m).then(function(){return g}))}),Gza(function(){return a.afterPreactivation()}),zf(function(){var g=
c,k=g.currentSnapshot;g=g.targetSnapshot;var m,r=(m=a.createViewTransition)==null?void 0:m.call(a,a.environmentInjector,k.root,g.root);return r?Ud(r).pipe(A(function(){return c})):be(c)}),mf(1),A(function(g){var k=Lya(b.routeReuseStrategy,g.targetSnapshot,g.currentRouterState);a.currentTransition=c=g=Object.assign({},g,{targetRouterState:k});a.currentNavigation.update(function(r){r.targetRouterState=k;return r});a.events.next(new hUc);if(f()&&((new vUc(b.routeReuseStrategy,c.targetRouterState,c.currentRouterState,
function(r){return a.events.next(r)},a.inputBindingEnabled)).activate(a.rootContexts),f())){d=!0;a.currentNavigation.update(function(r){r.abort=PUc;return r});a.lastSuccessfulNavigation.set(Mc(a.currentNavigation));a.events.next(new ck(g.id,a.urlSerializer.serialize(g.extractedUrl),a.urlSerializer.serialize(g.urlAfterRedirects)));var m;(m=a.titleStrategy)==null||m.updateTitle(g.targetRouterState.snapshot);g.resolve(!0)}}),Af(Sya(e.signal).pipe(te(function(){return!d&&!c.targetRouterState}),Bf(function(){SUc(a,
c,e.signal.reason+"",4)}))),Bf({complete:function(){d=!0}}),Af(a.transitionAbortWithErrorSubject.pipe(Bf(function(g){throw g;}))),pf(function(){e.abort();d||SUc(a,c,"",1);var g;((g=a.currentTransition)==null?void 0:g.id)===c.id&&(a.currentNavigation.set(null),a.currentTransition=null)}),hf(function(g){d=!0;if(a.destroyed)return c.resolve(!1),re;if(Qya(g))a.events.next(new dk(c.id,a.urlSerializer.serialize(c.extractedUrl),g.message,g.cancellationCode)),Qya(g)&&Tj(g.url)?a.events.next(new iUc(g.url,
g.navigationBehaviorOptions)):c.resolve(!1);else{var k,m=new ek(c.id,a.urlSerializer.serialize(c.extractedUrl),g,(k=c.targetSnapshot)!=null?k:void 0);try{throw ed(a.environmentInjector,function(){var r;return(r=a.navigationErrorHandler)==null?void 0:r.call(a,m)}),a.events.next(m),g;}catch(r){a.options.resolveNavigationPromiseOnError?c.resolve(!1):c.reject(r)}}return re}))}))},SUc=function(a,b,c,d){c=new dk(b.id,a.urlSerializer.serialize(b.extractedUrl),c,d);a.events.next(c);b.resolve(!1)},TUc=function(a){var b,
c;return((b=a.currentTransition)==null?void 0:b.extractedUrl.toString())!==((c=a.currentTransition)==null?void 0:c.currentUrlTree.toString())},UUc=function(a){var b=a.urlSerializer.parse(a.location.path(!0));a=Mc(a.currentNavigation);var c,d=(c=a==null?void 0:a.targetBrowserUrl)!=null?c:a==null?void 0:a.extractedUrl;return b.toString()!==(d==null?void 0:d.toString())&&!(a==null?0:a.extras.skipLocationChange)};
da.Object.defineProperties(xF.prototype,{hasRequestedNavigation:{configurable:!0,enumerable:!0,get:function(){return this.navigationId!==0}}});xF.\u0275fac=function(a){return new (a||xF)};xF.\u0275prov=Cc({token:xF,factory:xF.\u0275fac,providedIn:"root"});var yF=function(){};yF.\u0275fac=function(a){return new (a||yF)};yF.\u0275prov=Cc({token:yF,factory:function(){return q(zF)},providedIn:"root"});var WUc=function(){};WUc.prototype.store=function(){};WUc.prototype.retrieve=function(){return null};WUc.prototype.shouldReuseRoute=function(a,b){return a.routeConfig===b.routeConfig};var zF=function(){};Z(zF,WUc);zF.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(zF)))(b||zF)}}();zF.\u0275prov=Cc({token:zF,factory:zF.\u0275fac,providedIn:"root"});var AF=function(){this.urlSerializer=q(hF);this.options=q(tF,{optional:!0})||{};this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";this.location=q(oi);this.urlHandlingStrategy=q(vF);this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";this.rawUrlTree=this.currentUrlTree=new Sj;var a=q(Xe);a=new mUc("",new Vj(new nF([],{},{},"",{},"primary",null,null,{},a),[]));var b=new Wj(new Xj([new Uj("",{})]),new Xj({}),new Xj({}),new Xj(""),new Xj({}),"primary",
null,a.root);b.snapshot=a.root;this.routerState=new Kya(new Vj(b,[]),a);this._stateMemento=XUc(this)},YUc=function(a,b){var c=b.finalUrl;var d=b.initialUrl;b=b.targetBrowserUrl;c=c!==void 0?a.urlHandlingStrategy.merge(c,d):d;c=b!=null?b:c;return c instanceof Sj?a.urlSerializer.serialize(c):c},ZUc=function(a,b){var c=b.targetRouterState;var d=b.finalUrl;b=b.initialUrl;d&&c?(a.currentUrlTree=d,a.rawUrlTree=a.urlHandlingStrategy.merge(d,b),a.routerState=c):a.rawUrlTree=b},XUc=function(a){return{rawUrlTree:a.rawUrlTree,
currentUrlTree:a.currentUrlTree,routerState:a.routerState}};AF.prototype.restoredState=function(){return this.location.getState()};da.Object.defineProperties(AF.prototype,{stateMemento:{configurable:!0,enumerable:!0,get:function(){return this._stateMemento}}});AF.\u0275fac=function(a){return new (a||AF)};AF.\u0275prov=Cc({token:AF,factory:function(){return q(BF)},providedIn:"root"});var BF=function(){AF.apply(this,arguments);this.currentPageId=0;this.lastSuccessfulId=-1};Z(BF,AF);
var $Uc=function(a,b){return a.location.subscribe(function(c){c.type==="popstate"&&setTimeout(function(){b(c.url,c.state,"popstate")})})},bVc=function(a,b,c){var d=c.extras;c=c.id;var e=d.replaceUrl;d=d.state;var f=a.location;var g=g===void 0?"":g;f.path()==f.normalize(b+lh(g))||e?(g=Object.assign({},d,aVc(a,c,a.browserPageId)),a.location.replaceState(b,"",g)):(g=Object.assign({},d,aVc(a,c,a.browserPageId+1)),a.location.go(b,"",g))},eVc=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&&(cVc(a,b),dVc(a))):a.canceledNavigationResolution==="replace"&&(c&&cVc(a,b),dVc(a))},cVc=function(a,b){b=b.finalUrl;a.routerState=a.stateMemento.routerState;a.currentUrlTree=a.stateMemento.currentUrlTree;a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,b!=null?b:a.rawUrlTree)},dVc=function(a){a.location.replaceState(a.urlSerializer.serialize(a.rawUrlTree),"",aVc(a,a.lastSuccessfulId,
a.currentPageId))},aVc=function(a,b,c){return a.canceledNavigationResolution==="computed"?{navigationId:b,"\u0275routerPageId":c}:{navigationId:b}};da.Object.defineProperties(BF.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}}});
BF.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(BF)))(b||BF)}}();BF.\u0275prov=Cc({token:BF,factory:BF.\u0275fac,providedIn:"root"});var fVc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gVc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},CF=function(){var a=this;this.disposed=!1;this.console=q(Tx);this.stateManager=q(AF);this.options=q(tF,{optional:!0})||{};this.pendingTasks=q(Wg);this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";this.navigationTransitions=q(xF);this.urlSerializer=q(hF);this.location=q(oi);this.urlHandlingStrategy=q(vF);this.injector=
q(Xe);this._events=new rf;this.navigated=!1;this.routeReuseStrategy=q(yF);this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";var b,c;this.config=(c=(b=q(Lza,{optional:!0}))==null?void 0:b.flat())!=null?c:[];q(oUc,{optional:!0});this.currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();this.eventsSubscription=new Od;this.config=this.config.map(Hya);this.navigated=!1;VUc(this.navigationTransitions,this).subscribe({error:function(d){a.console.warn(d)}});hVc(this)},
hVc=function(a){var b=a.navigationTransitions.events.subscribe(function(c){try{var d=a.navigationTransitions.currentTransition,e=Mc(a.navigationTransitions.currentNavigation);if(d!==null&&e!==null){var f=a.stateManager;c instanceof xr?f._stateMemento=XUc(f):c instanceof fk?ZUc(f,e):c instanceof YTc?f.urlUpdateStrategy==="eager"&&(e.extras.skipLocationChange||bVc(f,YUc(f,e),e)):c instanceof hUc?(ZUc(f,e),f.urlUpdateStrategy!=="deferred"||e.extras.skipLocationChange||bVc(f,YUc(f,e),e)):c instanceof
dk&&(!(c instanceof dk)||c.code!==0&&c.code!==1)?eVc(f,e):c instanceof ek?eVc(f,e,!0):c instanceof ck&&(f.lastSuccessfulId=c.id,f.currentPageId=f.browserPageId);if(c instanceof dk&&c.code!==0&&c.code!==1)a.navigated=!0;else if(c instanceof ck)a.navigated=!0;else if(c instanceof iUc){var g=c.navigationBehaviorOptions,k=a.urlHandlingStrategy.merge(c.url,d.currentRawUrl),m=Object.assign({},{scroll:d.extras.scroll,browserUrl:d.extras.browserUrl,info:d.extras.info,skipLocationChange:d.extras.skipLocationChange,
replaceUrl:d.extras.replaceUrl||a.urlUpdateStrategy==="eager"||d.source!=="imperative"},g);iVc(a,k,"imperative",null,m,{resolve:d.resolve,reject:d.reject,promise:d.promise})}}c instanceof hUc||c instanceof iUc||a._events.next(c)}catch(r){a.navigationTransitions.transitionAbortWithErrorSubject.next(r)}});a.eventsSubscription.add(b)};CF.prototype.initialNavigation=function(){jVc(this);this.navigationTransitions.hasRequestedNavigation||kVc(this,this.location.path(!0),"imperative",this.stateManager.restoredState())};
var jVc=function(a){a.nonRouterCurrentEntryChangeSubscription!=null||(a.nonRouterCurrentEntryChangeSubscription=$Uc(a.stateManager,function(b,c,d){kVc(a,b,d,c)}))},kVc=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);iVc(a,b,c,f,e).catch(function(g){a.disposed||a.injector.get(Se)(g)})};CF.prototype.ngOnDestroy=function(){this.dispose()};
CF.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 DF=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 g;switch((g=d.queryParamsHandling)!=null?g:a.options.defaultQueryParamsHandling){case "merge":g=Object.assign({},a.currentUrlTree.queryParams,e);break;case "preserve":g=a.currentUrlTree.queryParams;break;default:g=e||null}g!==null&&(g=lVc(g));try{var k=iya(c?c.snapshot:a.routerState.snapshot.root)}catch(m){if(typeof b[0]!=="string"||b[0][0]!=="/")b=[];
k=a.currentUrlTree.root}return pya(k,b,g,f!=null?f:null,a.urlSerializer)},hu=function(a,b,c){c=c===void 0?{skipLocationChange:!1}:c;b=Tj(b)?b:a.parseUrl(b);b=a.urlHandlingStrategy.merge(b,a.rawUrlTree);return iVc(a,b,"imperative",null,c)};CF.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 Pc(4008,!1);return hu(this,DF(this,a,b),b)};
CF.prototype.parseUrl=function(a){try{return this.urlSerializer.parse(a)}catch(b){return this.console.warn(bfa(4018,!1)),this.urlSerializer.parse("/")}};CF.prototype.isActive=function(a,b){var c;b===!0?c=Object.assign({},fVc):b===!1?c=Object.assign({},gVc):c=b;if(Tj(a))return Pxa(this.currentUrlTree,a,c);a=this.parseUrl(a);return Pxa(this.currentUrlTree,a,c)};
var lVc=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},{})},iVc=function(a,b,c,d,e,f){if(a.disposed)return Promise.resolve(!1);if(f){var g=f.resolve;var k=f.reject;f=f.promise}else f=new Promise(function(r,w){g=r;k=w});var m=a.pendingTasks.add();Qza(a,function(){queueMicrotask(function(){return a.pendingTasks.remove(m)})});RUc(a.navigationTransitions,{source:c,restoredState:d,currentUrlTree:a.currentUrlTree,
currentRawUrl:a.currentUrlTree,rawUrl:b,extras:e,resolve:g,reject:k,promise:f,currentSnapshot:a.routerState.snapshot,currentRouterState:a.routerState});return f.catch(function(r){return Promise.reject(r)})};
da.Object.defineProperties(CF.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}}});CF.\u0275fac=function(a){return new (a||CF)};CF.\u0275prov=Cc({token:CF,factory:CF.\u0275fac,providedIn:"root"});var EF=function(a,b,c,d,e,f){this.router=a;this.route=b;this.tabIndexAttribute=c;this.renderer=d;this.el=e;this.locationStrategy=f;this.reactiveHref=qg.apply(null,[null].concat(n([])));this.onChanges=new rf;this.applicationErrorHandler=q(Se);this.options=q(tF,{optional:!0});this.replaceUrl=this.skipLocationChange=this.preserveFragment=!1;this.routerLinkInput=null;this.reactiveHref.set(q(new Hx("href"),{optional:!0}));var g;a=(g=e.nativeElement.tagName)==null?void 0:g.toLowerCase();var k,m,r;(this.isAnchorElement=
a==="a"||a==="area"||!!(typeof customElements==="object"&&((k=customElements.get(a))==null?0:(m=k.observedAttributes)==null?0:(r=m.includes)==null?0:r.call(m,"href"))))?mVc(this,"0"):nVc(this)},nVc=function(a){if(a.subscription===void 0&&a.isAnchorElement){var b=a.preserveFragment,c=function(e){return e==="merge"||e==="preserve"};b||(b=c(a.queryParamsHandling));var d;b||(b=!a.queryParamsHandling&&!c((d=a.options)==null?void 0:d.defaultQueryParamsHandling));b&&(a.subscription=a.router.events.subscribe(function(e){e instanceof
ck&&oVc(a)}))}},mVc=function(a,b){if(a.tabIndexAttribute==null&&!a.isAnchorElement){var c=a.renderer;a=a.el.nativeElement;b!==null?c.setAttribute(a,"tabindex",b):c.removeAttribute(a,"tabindex")}};EF.prototype.ngOnChanges=function(){this.isAnchorElement&&(oVc(this),nVc(this));this.onChanges.next(this)};
EF.prototype.onClick=function(a,b,c,d,e){var f=this,g=this.urlTree;if(g===null||this.isAnchorElement&&(a!==0||b||c||d||e||typeof this.target==="string"&&this.target!="_self"))return!0;var k;(k=hu(this.router,g,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}))==null||k.catch(function(m){f.applicationErrorHandler(m)});return!this.isAnchorElement};EF.prototype.ngOnDestroy=function(){var a;(a=this.subscription)==null||a.unsubscribe()};
var oVc=function(a){var b=a.urlTree,c,d;a.reactiveHref.set(b!==null&&a.locationStrategy?(d=(c=a.locationStrategy)==null?void 0:c.prepareExternalUrl(a.router.urlSerializer.serialize(b)))!=null?d:"":null)};
da.Object.defineProperties(EF.prototype,{href:{configurable:!0,enumerable:!0,get:function(){return Mc(this.reactiveHref)},set:function(a){this.reactiveHref.set(a)}},routerLink:{configurable:!0,enumerable:!0,set:function(a){a==null?(this.routerLinkInput=null,mVc(this,null)):(Tj(a)?this.routerLinkInput=a:this.routerLinkInput=Array.isArray(a)?a:[a],mVc(this,"0"))}},urlTree:{configurable:!0,enumerable:!0,get:function(){return this.routerLinkInput===null?null:Tj(this.routerLinkInput)?this.routerLinkInput:
DF(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})}}});EF.\u0275fac=function(a){return new (a||EF)(Ve(CF),Ve(Wj),Iga("tabindex"),Ve(ji),Ve(Gd),Ve(Ay))};
EF.\u0275dir=af({type:EF,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(a,b){a&1&&N("click",function(c){return b.onClick(c.button,c.ctrlKey,c.shiftKey,c.altKey,c.metaKey)});a&2&&Jf("href",b.reactiveHref(),Jja)("target",b.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",bh],skipLocationChange:[2,"skipLocationChange",
"skipLocationChange",bh],replaceUrl:[2,"replaceUrl","replaceUrl",bh],routerLink:"routerLink"},features:[Gx]});var FF=function(a,b,c,d){var e=this;this.router=a;this.element=b;this.renderer=c;this.cdr=d;this.classes=[];this._isActive=!1;this.routerLinkActiveOptions={exact:!1};this.isActiveChange=new ui;this.link=q(EF,{optional:!0});this.routerEventsSubscription=a.events.subscribe(function(f){f instanceof ck&&e.update()})};FF.prototype.ngAfterContentInit=function(){var a=this;be(this.links.changes,be(null)).pipe(je()).subscribe(function(){a.update();pVc(a)})};
var pVc=function(a){var b;(b=a.linkInputChangesSubscription)==null||b.unsubscribe();b=[].concat(n(a.links.toArray()),[a.link]).filter(function(c){return!!c}).map(function(c){return c.onChanges});a.linkInputChangesSubscription=Ud(b).pipe(je()).subscribe(function(c){a._isActive!==qVc(a,a.router)(c)&&a.update()})};FF.prototype.ngOnChanges=function(){this.update()};FF.prototype.ngOnDestroy=function(){this.routerEventsSubscription.unsubscribe();var a;(a=this.linkInputChangesSubscription)==null||a.unsubscribe()};
FF.prototype.update=function(){var a=this;this.links&&this.router.navigated&&queueMicrotask(function(){var b=rVc(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 qVc=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}},rVc=function(a){var b=qVc(a,a.router);return a.link&&b(a.link)||a.links.some(b)};
da.Object.defineProperties(FF.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})}}});FF.\u0275fac=function(a){return new (a||FF)(Ve(CF),Ve(Gd),Ve(ji),Ve(Yx))};
FF.\u0275dir=af({type:FF,selectors:[["","routerLinkActive",""]],contentQueries:function(a,b,c){a&1&&lg(c,EF,5);if(a&2){var d;og(d=pg())&&(b.links=d)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Gx]});var sVc=function(){},GF=function(a,b,c,d){this.router=a;this.injector=b;this.preloadingStrategy=c;this.loader=d},tVc=function(a){a.subscription=a.router.events.pipe(te(function(b){return b instanceof ck}),mla(function(){return a.preload()})).subscribe(function(){})};GF.prototype.preload=function(){return uVc(this,this.injector,this.router.config)};GF.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()};
var uVc=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=Rka(e.providers,b,"Route: "+e.path));var f=void 0,g=(f=e._injector)!=null?f:b,k=void 0;f=(k=e._loadedInjector)!=null?k:g;(e.loadChildren&&!e._loadedRoutes&&e.canLoad===void 0||e.loadComponent&&!e._loadedComponent)&&d.push(vVc(a,g,e));if(e.children||e._loadedRoutes)g=void 0,d.push(uVc(a,f,(g=e.children)!=null?g:e._loadedRoutes))}return Ud(d).pipe(je())},vVc=function(a,b,
c){return a.preloadingStrategy.preload(c,function(){var d=(c.loadChildren&&c.canLoad===void 0?Ud(a.loader.loadChildren(b,c)):be(null)).pipe(ie(function(f){if(f===null)return be(void 0);c._loadedRoutes=f.routes;c._loadedInjector=f.injector;var g;return uVc(a,(g=f.injector)!=null?g:b,f.routes)}));if(c.loadComponent&&!c._loadedComponent){var e=a.loader.loadComponent(b,c);return Ud([d,e]).pipe(je())}return d})};GF.\u0275fac=function(a){return new (a||GF)(Wc(CF),Wc(Xe),Wc(sVc),Wc(uF))};
GF.\u0275prov=Cc({token:GF,factory:GF.\u0275fac,providedIn:"root"});var wVc=new bd(""),HF=function(a){this.options=a;this.lastId=0;this.lastSource="imperative";this.restoredId=0;this.store={};this.urlSerializer=q(hF);this.zone=q(Tg);this.viewportScroller=q(NEc);this.transitions=q(xF);var b;(b=this.options).scrollPositionRestoration||(b.scrollPositionRestoration="disabled");var c;(c=this.options).anchorScrolling||(c.anchorScrolling="disabled")};
HF.prototype.init=function(){if(this.options.scrollPositionRestoration!=="disabled")try{this.viewportScroller.window.history.scrollRestoration="manual"}catch(a){console.warn(bfa(2400,!1))}this.routerEventsSubscription=xVc(this);this.scrollEventsSubscription=yVc(this)};
var xVc=function(a){return a.transitions.events.subscribe(function(b){b instanceof xr?(a.store[a.lastId]=a.viewportScroller.getScrollPosition(),a.lastSource=b.navigationTrigger,a.restoredId=b.restoredState?b.restoredState.navigationId:0):b instanceof ck?(a.lastId=b.id,zVc(a,a.urlSerializer.parse(b.urlAfterRedirects).fragment)):b instanceof fk&&b.code===0&&(a.lastSource=void 0,a.restoredId=0,zVc(a,a.urlSerializer.parse(b.url).fragment))})},yVc=function(a){return a.transitions.events.subscribe(function(b){if(b instanceof
gUc&&b.scrollBehavior!=="manual"){var c={behavior:"instant"};if(b.position)a.options.scrollPositionRestoration==="top"?a.viewportScroller.scrollToPosition([0,0],c):a.options.scrollPositionRestoration==="enabled"&&a.viewportScroller.scrollToPosition(b.position,c);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(Object.assign({},void 0,{left:d-f[0],top:e-f[1]}));b.focus()}}else a.options.scrollPositionRestoration!=="disabled"&&a.viewportScroller.scrollToPosition([0,0])}})},zVc=function(a,
b){var c,d=(c=Mc(a.transitions.currentNavigation))==null?void 0:c.extras.scroll;a.zone.runOutsideAngular(function(){return y(function(e){if(e.nextAddress==1)return z(e,new Promise(function(f){setTimeout(f);typeof requestAnimationFrame!=="undefined"&&requestAnimationFrame(f)}),2);a.zone.run(function(){a.transitions.events.next(new gUc(a.lastSource==="popstate"?a.store[a.restoredId]:null,b,d))});$d(e)})})};
HF.prototype.ngOnDestroy=function(){var a;(a=this.routerEventsSubscription)==null||a.unsubscribe();var b;(b=this.scrollEventsSubscription)==null||b.unsubscribe()};HF.\u0275fac=function(){We()};HF.\u0275prov=Cc({token:HF,factory:HF.\u0275fac});new bd("",{factory:function(){return!1}});var AVc=new bd("",{factory:function(){return new rf}}),BVc=new bd("",{factory:function(){return 1}}),CVc=new bd("");new bd("");var DVc=[oi,{provide:hF,useClass:iF},CF,lF,{provide:Wj,useFactory:function(){return q(CF).routerState.root}},uF,[]],IF=function(){};IF.\u0275fac=function(a){return new (a||IF)};IF.\u0275mod=$e({type:IF});IF.\u0275inj=Dc({});var EVc=new bd("");var FVc=new bd("MAT_MENU_PANEL");var GVc=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],JF=function(){this._elementRef=q(Gd);this._document=q(Yh);this._focusMonitor=q(mz);this._parentMenu=q(FVc,{optional:!0});this._changeDetectorRef=q(Yx);this.role="menuitem";this.disableRipple=this.disabled=!1;this._hovered=new rf;this._focused=new rf;this._triggersSubmenu=this._highlighted=!1;q(fi).load(BA);var a,b;(a=this._parentMenu)==null||(b=a.addItem)==null||b.call(a,this)};h=JF.prototype;
h.focus=function(a,b){this._focusMonitor&&a?nz(this._focusMonitor,this._getHostElement(),a,b):this._getHostElement().focus(b);this._focused.next(this)};h.ngAfterViewInit=function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)};h.ngOnDestroy=function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef);this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this);this._hovered.complete();this._focused.complete()};
h._getTabIndex=function(){return this.disabled?"-1":"0"};h._getHostElement=function(){return this._elementRef.nativeElement};h._checkDisabled=function(a){this.disabled&&(a.preventDefault(),a.stopPropagation())};h._handleMouseEnter=function(){this._hovered.next(this)};h.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())||""};
h._setHighlighted=function(a){this._highlighted=a;this._changeDetectorRef.markForCheck()};h._setTriggersSubmenu=function(a){this._triggersSubmenu=a;this._changeDetectorRef.markForCheck()};h._hasFocus=function(){return this._document&&this._document.activeElement===this._getHostElement()};JF.\u0275fac=function(a){return new (a||JF)};
JF.\u0275cmp=C({type:JF,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-focus-indicator"],hostVars:8,hostBindings:function(a,b){a&1&&N("click",function(c){return b._checkDisabled(c)})("mouseenter",function(){return b._handleMouseEnter()});a&2&&(Jf("role",b.role)("tabindex",b._getTabIndex())("aria-disabled",b.disabled)("disabled",b.disabled||null),yg("mat-mdc-menu-item-highlighted",b._highlighted)("mat-mdc-menu-item-submenu-trigger",b._triggersSubmenu))},inputs:{role:"role",
disabled:[2,"disabled","disabled",bh],disableRipple:[2,"disableRipple","disableRipple",bh]},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&&(fg(GVc),gg(0),K(1,
"span",0),gg(2,1),L(),M(3,"div",1),F(4,Sza,2,0,":svg:svg",2));a&2&&(B(3),I("matRippleDisabled",b.disableRipple||b.disabled)("matRippleTrigger",b._getHostElement()),B(),G(b._triggersSubmenu?4:-1))},dependencies:[EA],encapsulation:2,changeDetection:0});var HVc=new bd("MatMenuContent"),KF=function(){this._template=q(hg);this._appRef=q(Yg);this._injector=q(xe);this._viewContainerRef=q(ig);this._document=q(Yh);this._changeDetectorRef=q(Yx);this._attached=new rf};
KF.prototype.attach=function(a){a=a===void 0?{}:a;this._portal||(this._portal=new mA(this._template,this._viewContainerRef));this.detach();this._outlet||(this._outlet=new mi(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()};
KF.prototype.detach=function(){var a;((a=this._portal)==null?0:a.isAttached)&&this._portal.detach()};KF.prototype.ngOnDestroy=function(){this.detach();var a;(a=this._outlet)==null||a.dispose()};KF.\u0275fac=function(a){return new (a||KF)};KF.\u0275dir=af({type:KF,selectors:[["ng-template","matMenuContent",""]],features:[Ig([{provide:HVc,useExisting:KF}])]});var IVc=new bd("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),LF=function(){this._elementRef=q(Gd);this._changeDetectorRef=q(Yx);this._injector=q(xe);this._animationsDisabled=ti();this._directDescendantItems=new jg;this._classList={};this._panelAnimationState="void";this._animationDone=new rf;this._isAnimating=qg.apply(null,[!1].concat(n([])));this.close=this.closed=
new ui;this.panelId=q(hi).getId("mat-menu-panel-");var a=q(IVc);this.overlayPanelClass=a.overlayPanelClass||"";this._xPosition=a.xPosition;this._yPosition=a.yPosition;this.backdropClass=a.backdropClass;this.overlapTrigger=a.overlapTrigger;this.hasBackdrop=a.hasBackdrop};h=LF.prototype;h.ngOnInit=function(){this.setPositionClasses()};
h.ngAfterContentInit=function(){var a=this;this._updateDirectDescendants();this._keyManager=Oz(MGc(Lz(new Rz(this._directDescendantItems))));this._keyManager.tabOut.subscribe(function(){return a.closed.emit("tab")});this._directDescendantItems.changes.pipe(yf(this._directDescendantItems),zf(function(b){return se.apply(null,n(b.map(function(c){return c._focused})))})).subscribe(function(b){return Pz(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())})};h.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)};
h._hovered=function(){return this._directDescendantItems.changes.pipe(yf(this._directDescendantItems),zf(function(a){return se.apply(null,n(a.map(function(b){return b._hovered})))}))};h.addItem=function(){};h.removeItem=function(){};
h._handleKeydown=function(a){var b=a.keyCode,c=this._keyManager;switch(b){case 27:Nh(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||PGc(c,"keyboard"),c.onKeydown(a)}};
var JVc=function(a,b){b=b===void 0?"program":b;var c;(c=a._firstItemFocusRef)==null||c.destroy();a._firstItemFocusRef=De(function(){var d=a._resolvePanel();if(!d||!d.contains(document.activeElement)){var e=a._keyManager;PGc(e,b)._setActiveItemByIndex(0,1);!e.activeItem&&d&&d.focus()}},{injector:a._injector})};h=LF.prototype;
h.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()};
h._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.set(!1)};h._onAnimationStart=function(a){a!=="_mat-menu-enter"&&a!=="_mat-menu-exit"||this._isAnimating.set(!0)};
h._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()};
h._updateDirectDescendants=function(){var a=this;this._allItems.changes.pipe(yf(this._allItems)).subscribe(function(b){a._directDescendantItems.reset(b.filter(function(c){return c._parentMenu===a}));ng(a._directDescendantItems)})};h._resolvePanel=function(){var a=null;this._directDescendantItems.length&&(a=this._directDescendantItems.first._getHostElement().closest('[role="menu"]'));return a};
da.Object.defineProperties(LF.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}}});LF.\u0275fac=function(a){return new (a||LF)};
LF.\u0275cmp=C({type:LF,selectors:[["mat-menu"]],contentQueries:function(a,b,c){a&1&&(lg(c,HVc,5),lg(c,JF,5),lg(c,JF,4));if(a&2){var d;og(d=pg())&&(b.lazyContent=d.first);og(d=pg())&&(b._allItems=d);og(d=pg())&&(b.items=d)}},viewQuery:function(a,b){a&1&&kg(hg,5);if(a&2){var c;og(c=pg())&&(b.templateRef=c.first)}},hostVars:3,hostBindings:function(a){a&2&&Jf("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",bh],hasBackdrop:[2,"hasBackdrop","hasBackdrop",function(a){return a==null?null:bh(a)}],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ig([{provide:FVc,useExisting:LF}])],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&&(fg(),Hf(0,Tza,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{border-top-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 KVc=new bd("mat-menu-scroll-strategy",{providedIn:"root",factory:function(){var a=q(xe);return function(){return $h(a)}}}),MF=new WeakMap,NF=function(a){this._canHaveBackdrop=a;this._element=q(Gd);this._viewContainerRef=q(ig);this._menuItemInstance=q(JF,{optional:!0,self:!0});this._dir=q(ii,{optional:!0});this._focusMonitor=q(mz);this._ngZone=q(Tg);this._injector=q(xe);this._scrollStrategy=q(KVc);this._changeDetectorRef=q(Yx);this._animationsDisabled=ti();this._overlayRef=null;this._menuOpen=
!1;this._menuCloseSubscription=this._closingActionsSubscription=Od.EMPTY;this._openedBy=void 0;var b=q(FVc,{optional:!0});this._parentMaterialMenu=b instanceof LF?b:void 0};h=NF.prototype;h.ngOnDestroy=function(){this._menu&&this._ownsMenu(this._menu)&&MF.delete(this._menu);var a;(a=this._pendingRemoval)==null||a.unsubscribe();this._menuCloseSubscription.unsubscribe();this._closingActionsSubscription.unsubscribe();this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)};
h._triggersSubmenu=function(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)};h._closeMenu=function(){var a;(a=this._menu)==null||a.close.emit()};
h._openMenu=function(a){var b=this,c=this._menu;if(!this._menuOpen&&c){var d;(d=this._pendingRemoval)==null||d.unsubscribe();d=MF.get(c);MF.set(c,this);d&&d!==this&&d._closeMenu();d=this._createOverlay(c);var e=d.getConfig(),f=e.positionStrategy;this._setPosition(c,f);e.hasBackdrop=this._canHaveBackdrop?c.hasBackdrop==null?!this._triggersSubmenu():c.hasBackdrop:!1;if(!d.hasAttached()){d.attach(this._getPortal(c));var g;(g=c.lazyContent)==null||g.attach(this.menuData)}this._closingActionsSubscription=
this._menuClosingActions().subscribe(function(){return b._closeMenu()});c.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0;c.direction=this.dir;a&&JVc(c,this._openedBy||"program");this._setIsMenuOpen(!0);c instanceof LF&&(c._setIsOpen(!0),c._directDescendantItems.changes.pipe(Af(c.close)).subscribe(function(){mHc(qHc(f,!1));qHc(f,!0)}))}};h.focus=function(a,b){this._focusMonitor&&a?nz(this._focusMonitor,this._element,a,b):this._element.nativeElement.focus(b)};
h._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 LF&&this._ownsMenu(c))this._pendingRemoval=c._animationDone.pipe(mf(1)).subscribe(function(){b.detach();if(!MF.has(c)){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)&&MF.delete(c);!this.restoreFocus||
a!=="keydown"&&this._openedBy&&this._triggersSubmenu()||this.focus(this._openedBy);this._openedBy=void 0;this._setIsMenuOpen(!1)}};h._setIsMenuOpen=function(a){a!==this._menuOpen&&((this._menuOpen=a)?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(a),this._changeDetectorRef.markForCheck())};
h._createOverlay=function(a){var b=this;if(!this._overlayRef){var c=this._getOverlayConfig(a);this._subscribeToPositions(a,c.positionStrategy);this._overlayRef=ri(this._injector,c);this._overlayRef.keydownEvents().subscribe(function(d){b._menu instanceof LF&&b._menu._handleKeydown(d)})}return this._overlayRef};
h._getOverlayConfig=function(a){return new ki({positionStrategy:rHc(oHc(qHc(di(this._injector,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})};
h._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")})})};
h._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 g=l([f,e]),k=g.next().value;g=g.next().value;var m=l([d,c]),r=m.next().value;m=m.next().value;var w=0;this._triggersSubmenu()?(m=d=a.xPosition==="before"?"start":"end",c=r=d==="end"?"start":"end",this._parentMaterialMenu&&(this._parentInnerPadding==null&&(this._parentInnerPadding=
(a=this._parentMaterialMenu.items.first)?a._getHostElement().offsetTop:0),w=f==="bottom"?this._parentInnerPadding:-this._parentInnerPadding)):a.overlapTrigger||(k=f==="top"?"bottom":"top",g=e==="top"?"bottom":"top");dA(b,[{originX:d,originY:k,overlayX:r,overlayY:f,offsetY:w},{originX:c,originY:k,overlayX:m,overlayY:f,offsetY:w},{originX:d,originY:g,overlayX:r,overlayY:e,offsetY:-w},{originX:c,originY:g,overlayX:m,overlayY:e,offsetY:-w}])};
h._menuClosingActions=function(){var a=this,b=this._getOutsideClickStream(this._overlayRef),c=this._overlayRef._detachments,d=this._parentMaterialMenu?this._parentMaterialMenu.closed:be(),e=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(te(function(f){return a._menuOpen&&f!==a._menuItemInstance})):be();return se(b,d,e,c)};h._getPortal=function(a){this._portal&&this._portal.templateRef===a.templateRef||(this._portal=new mA(a.templateRef,this._viewContainerRef));return this._portal};
h._ownsMenu=function(a){return MF.get(a)===this};
da.Object.defineProperties(NF.prototype,{_menu:{configurable:!0,enumerable:!0,get:function(){return this._menuInternal},set:function(a){var b=this;if(a!==this._menuInternal){this._menuInternal=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(this._triggersSubmenu())}}},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"}}});NF.\u0275fac=function(){We()};NF.\u0275dir=af({type:NF});var OF=function(){NF.call(this,!0);var a=this;this._hoverSubscription=Od.EMPTY;this.restoreFocus=!0;this.onMenuOpen=this.menuOpened=new ui;this.onMenuClose=this.menuClosed=new ui;this._cleanupTouchstart=q(ji).listen(this._element.nativeElement,"touchstart",function(b){bsa(b)||(a._openedBy="touch")},{passive:!0})};Z(OF,NF);h=OF.prototype;h.openMenu=function(){this._openMenu(!0)};h.closeMenu=function(){this._closeMenu()};h.updatePosition=function(){var a;(a=this._overlayRef)==null||a.updatePosition()};
h.ngAfterContentInit=function(){this._handleHover()};h.ngOnDestroy=function(){NF.prototype.ngOnDestroy.call(this);this._cleanupTouchstart();this._hoverSubscription.unsubscribe()};h._getOverlayOrigin=function(){return this._element};h._getOutsideClickStream=function(a){return a.backdropClick()};h._handleMousedown=function(a){asa(a)||(this._openedBy=a.button===0?"mouse":void 0,NF.prototype._triggersSubmenu.call(this)&&a.preventDefault())};
h._handleKeydown=function(a){a=a.keyCode;if(a===13||a===32)this._openedBy="keyboard";NF.prototype._triggersSubmenu.call(this)&&(a===39&&this.dir==="ltr"||a===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())};h._handleClick=function(a){NF.prototype._triggersSubmenu.call(this)?(a.stopPropagation(),this.openMenu()):this.menuOpen?this.closeMenu():this.openMenu()};
h._handleHover=function(){var a=this;NF.prototype._triggersSubmenu.call(this)&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(function(b){var c;b!==a._menuItemInstance||b.disabled||((c=a._parentMaterialMenu)==null?void 0:c._panelAnimationState)==="void"||(a._openedBy="mouse",a._openMenu(!1))}))};
da.Object.defineProperties(OF.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){this._menu=a}}});OF.\u0275fac=function(a){return new (a||OF)};
OF.\u0275dir=af({type:OF,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(a,b){a&1&&N("click",function(c){return b._handleClick(c)})("mousedown",function(c){return b._handleMousedown(c)})("keydown",function(c){return b._handleKeydown(c)});a&2&&Jf("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"],features:[Ff]});var PF=function(){};PF.\u0275fac=function(a){return new (a||PF)};PF.\u0275mod=$e({type:PF});PF.\u0275inj=Dc({imports:[HA,uA,jz,aA]});var LVc=["textarea"],MVc=new bd("MessageInputTemplate"),QF=function(){var a=this;this.threadService=q(fF);this.routingService=q(BD);this.experimentsService=q(PA);this.userContextService=q(QA);this.overridesService=q(CC);this.conversationAgentsService=q(zD);this.dialog=q(gB);this.UserProvidedContextLinkType=bIc;this.inputText=Voa.apply(null,n([]));this.submitMessage=Pg();this.inputPlaceholder=Qg.apply(null,["Ask anything"].concat(n([])));this.textarea=Rg.apply(null,["textarea"].concat(n([])));this.ve=
{DuckieChatMessageSendButton:201478};this.isDuckieThinking$=this.threadService.isDuckieThinking$;this.userProvidedContextEnabled=this.experimentsService.userProvidedContextEnabled;this.currentThread$=this.threadService.currentThread$;this.sessionStateDeprecated=4;this.responseMetadataEnabled=this.experimentsService.responseMetadataEnabled;this.duckieStreamingMvpEnabled=this.experimentsService.duckieStreamingMvpEnabled;this.userProvidedContextSources$=this.userContextService.suggestedUserProvidedContextContent$;
this.userProvidedContextServiceError$=this.userContextService.userContextServiceError$;this.disclaimer=this.overridesService.overrideDisclaimer;this.duckieAddKnowledgeMvpEnabled=this.experimentsService.duckieAddKnowledgeMvpEnabled;this.agentName=this.overridesService.overrideAgentMessageDisplayName||"Duckie";this.viewContainerRef=q(ig);df(function(){a.inputText()&&NVc(a)})};
QF.prototype.ngAfterViewInit=function(){var a=this;NVc(this);this.routingService.events.pipe(te(function(b){return b instanceof ck})).subscribe(function(){NVc(a)})};var NVc=function(a){var b;(b=a.textarea())==null||b.nativeElement.focus()};QF.prototype.cancelDuckieStream=function(){this.threadService.cancelDuckieStream()};
QF.prototype.parseForUserProvidedContext=function(a){if(this.userProvidedContextEnabled){var b=this.userContextService;b.suggestedUserProvidedContextContentInternal$.next(zIc(b,a,!0))}};QF.prototype.removeContextSource=function(a){vIc(this.userContextService,a)};
var OVc=function(a,b){return y(function(c){a.dialog.open(rC,{viewContainerRef:a.viewContainerRef,data:{linkTypes:b}});$d(c)})},PVc=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return z(d,ee(a.isDuckieThinking$),2);if(c=d.yieldResult)return d.return();!b.shiftKey&&!b.isComposing&&a.inputText()&&(a.inputText()||"").trim().length>0&&(b.preventDefault(),a.sendMessage());$d(d)})};QF.prototype.sendMessage=function(){this.submitMessage.emit(this.inputText()||"");this.inputText.set("")};
QF.\u0275fac=function(a){return new (a||QF)};
QF.\u0275cmp=C({type:QF,selectors:[["message-input"]],viewQuery:function(a,b){a&1&&rg(b.textarea,LVc);a&2&&sg()},hostAttrs:[1,"padded-m-left","padded-right","flex-column","gap-xs"],inputs:{inputText:[1,"inputText"],inputPlaceholder:[1,"inputPlaceholder"]},outputs:{inputText:"inputTextChange",submitMessage:"submitMessage"},decls:41,vars:19,consts:[["textarea",""],["addContextLinksMenu",""],[1,"flex-row","flex-row-wrap","padded-xs-left","align-items-center"],[1,"full-width","flex-row","align-items-center",
"gap-xs"],"appearance outline floatLabel auto subscriptSizing dynamic".split(" "),["id","ask-duckie-input","matInput","","aria-label","Textarea to input message",1,"ask-duckie-input",3,"ngModelChange","keydown.enter","placeholder","disabled","ngModel","ve","veClick","veImpression"],["color","primary","id","ask-duckie-submit","mat-icon-button","","aria-label","Stop Duckie's response",1,"submit-message"],["color","primary","id","ask-duckie-submit","mat-icon-button","",1,"submit-message",3,"disabled"],
[1,"duckie-disclaimer","text-secondary","type-xs"],[1,"duckie-disclaimer-content"],["panelClass","rounded-menu"],["mat-menu-item","",1,"context-links-menu-item",3,"click"],[1,"type-s","medium"],[1,"type-xs"],[1,"error-message","type-s","padded-s-right","flex-row","align-items-center","gap-xs"],[1,"type-s","padded-s-right","flex-row","align-items-center","gap-xs","duckie-link-following"],[1,"type-s","padded-s-right","medium"],[3,"label","iconUrl","linkUrl","showRemoveButton"],[3,"removeContextSource",
"label","iconUrl","linkUrl","showRemoveButton"],[1,"error-icon"],["mat-icon-button","","aria-label","Add context links",1,"add-context-links-button","small","margin-s-right",3,"matMenuTriggerFor"],[1,"medium"],["href","http://go/duckie-link-following","target","_blank",1,"type-s","flex-row","align-items-center","gap-xs"],["inline",""],["color","primary","id","ask-duckie-submit","mat-icon-button","","aria-label","Stop Duckie's response",1,"submit-message",3,"click"],[1,"filled"],["color","primary",
"id","ask-duckie-submit","mat-icon-button","",1,"submit-message",3,"click","disabled"]],template:function(a,b){if(a&1){var c=t();bg(0);U(1,"async");bg(2);U(3,"async");F(4,Zza,4,1,"div",2);K(5,"div",3)(6,"mat-form-field",4)(7,"textarea",5,0);U(9,"async");N("ngModelChange",function(e){u(c);return v(b.parseForUserProvidedContext(e))});Eg("ngModelChange",function(e){u(c);Dg(b.inputText,e)||(b.inputText=e);return v(e)});N("keydown.enter",function(e){u(c);return v(PVc(b,e))});S(10,"    ");L()();F(11,$za,
3,0,"button",6);U(12,"async");Mf(13,aAa,5,6,"button",7);L();K(14,"p",8)(15,"span",9);S(16);L()();K(17,"mat-menu",10,1)(19,"button",11);N("click",function(){u(c);var e=b.userContextService,f=[3,2,4,1];e.experimentsService.userProvidedContextEldarEnabled&&f.push(12);e.experimentsService.screenshotLinkFollowingEnabled&&f.push(5);e.experimentsService.userProvidedContextYaqsEnabled&&f.push(7);e.experimentsService.userProvidedContextDriveEnabled&&f.push(6);e.experimentsService.userProvidedContextGoLinkEnabled&&
f.push(9);e.experimentsService.userProvidedContextGerritEnabled&&f.push(10);e.experimentsService.userProvidedContextEldarEnabled&&f.push(12);return v(OVc(b,f))});K(20,"mat-icon");S(21," link ");L();K(22,"div",12);S(23,"Links");L();K(24,"div",13);S(25," Critique, Buganizer, and more... ");L()();K(26,"button",11);N("click",function(){u(c);var e=[3];b.userContextService.experimentsService.userProvidedContextGerritEnabled&&e.push(10);return v(OVc(b,e))});K(27,"mat-icon");S(28," folder_code ");L();K(29,
"div",12);S(30,"Code Directory");L();K(31,"div",13);S(32," Code Search, Gerrit ");L()();K(33,"button",11);N("click",function(){u(c);return v(OVc(b,[b.UserProvidedContextLinkType.USER_PROVIDED_CONTEXT_LINK_TYPE_DUCKIE_SKILL]))});K(34,"mat-icon");S(35," menu_book ");L();K(36,"div")(37,"div",12);S(38,"Skills");L();K(39,"div",13);S(40," Instructions, MCPs, Agents, Links... ");L()()()()}if(a&2){var d;cg(W(1,9,b.userProvidedContextSources$));B(2);cg(W(3,12,b.userProvidedContextServiceError$));B(2);G(b.userProvidedContextEnabled?
4:-1);B(3);I("placeholder",b.inputPlaceholder())("disabled",((d=W(9,15,b.currentThread$))==null?null:d.sessionState)===b.sessionStateDeprecated&&!b.responseMetadataEnabled);Cg("ngModel",b.inputText);I("ve",b.ve.DuckieChatMessageSendButton)("veClick",!0)("veImpression",!0);B(4);G(W(12,17,b.isDuckieThinking$)&&b.duckieStreamingMvpEnabled&&kNc(b.conversationAgentsService)?11:13);B(5);T(" ",b.disclaimer||"Duckie can make mistakes. Consider double-checking its responses."," ")}},dependencies:[xy,mC,xi,
PB,WB,ZA,XA,VA,DB,qB,BB,qC,EB,oC,kz,iz,PF,LF,JF,OF,IB,HE,GE,OA,py],styles:["mat-form-field[_ngcontent-%COMP%]{--mdc-shape-small:calc(var(--base-px, 1rem)*28);-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}mat-form-field[_ngcontent-%COMP%]     .mat-mdc-text-field-wrapper{--mat-form-field-filled-container-shape:var(--mdc-shape-small);--mat-form-field-outlined-container-shape:var(--mdc-shape-small)}mat-form-field[_ngcontent-%COMP%]     .mat-mdc-form-field-infix{-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}mat-form-field[_ngcontent-%COMP%]   .ask-duckie-input[_ngcontent-%COMP%]{resize:none;field-sizing:content;max-height:18em}mat-form-field[_ngcontent-%COMP%]:not(.boost-specificity){font-size:calc(var(--base-px, 1rem)*14)}.duckie-disclaimer[_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;width:100%}.duckie-disclaimer-content[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;text-align:center}.error-message[_ngcontent-%COMP%]{color:var(--warn-high-contrast)}.context-links-menu-item[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:16px;height:16px;width:16px}"],
changeDetection:0});var QVc=["customMessageInput"],RF=function(){this.inputText=Qg.apply(null,n([]));this.inputPlaceholder=Qg.apply(null,["Ask anything"].concat(n([])));this.submitMessage=Pg();this.messageInputTemplate=q(MVc,{optional:!0});this.customMessageInput=Rg("customMessageInput",Object.assign({},{},{read:ig}))};
RF.prototype.ngAfterViewInit=function(){var a=this;this.messageInputTemplate&&this.customMessageInput()&&(this.componentRef=this.customMessageInput().createComponent(this.messageInputTemplate),this.componentRef.instance.inputText=qg.apply(null,[this.inputText()].concat(n([]))),this.componentRef.instance.inputPlaceholder=qg.apply(null,[this.inputPlaceholder()].concat(n([]))),this.componentRef.instance.submitMessage.subscribe(function(b){a.submitMessage.emit(b)}))};
RF.\u0275fac=function(a){return new (a||RF)};
RF.\u0275cmp=C({type:RF,selectors:[["message-input-wrapper"]],viewQuery:function(a,b){a&1&&rg(b.customMessageInput,QVc,ig);a&2&&sg()},inputs:{inputText:[1,"inputText"],inputPlaceholder:[1,"inputPlaceholder"]},outputs:{submitMessage:"submitMessage"},decls:2,vars:1,consts:[["customMessageInput",""],[3,"inputText","inputPlaceholder"],[3,"submitMessage","inputText","inputPlaceholder"]],template:function(a,b){a&1&&F(0,bAa,2,0,"ng-container")(1,cAa,1,2,"message-input",1);a&2&&G(b.messageInputTemplate?0:
1)},dependencies:[xy,QF],encapsulation:2,changeDetection:0});var RVc=new bd("ReminderBlurbTemplate"),SF=function(){this.overridesService=q(CC);this.overrideAgentName=this.overridesService.overrideAgentMessageDisplayName};SF.\u0275fac=function(a){return new (a||SF)};
SF.\u0275cmp=C({type:SF,selectors:[["reminder-blurb"]],decls:13,vars:1,consts:[[1,"reminder-blurb"],[1,"title"],["href","http://go/duckie","target","_blank"],["href","http://go/code-ai-policy","target","_blank"]],template:function(a,b){a&1&&(Sf(0,"div",0)(1,"p",1),S(2,"Reminder"),Tf(),Sf(3,"p"),S(4," Do not prompt "),F(5,dAa,2,1,"span")(6,eAa,2,0,"a",2),S(7," with user data or personally identifiable information (PII). Review "),Sf(8,"a",3),S(9,"go/code-ai-policy"),Tf(),S(10," before using this tool or its outputs in production. "),
Tf(),Sf(11,"p"),S(12," Note: If you are part of a Bet, you must also review and follow any AI policies specific to your Bet. "),Tf()());a&2&&(B(5),G(b.overrideAgentName?5:6))},dependencies:[xy],styles:[".reminder-blurb[_ngcontent-%COMP%]{background-color:var(--tonal-fill-blue);border:1px solid var(--primary-container);border-radius:1em;font-size:calc(var(--base-px, 1rem)*14);margin:1em 0;padding:1em}.reminder-blurb[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:1em;font-weight:700;margin-bottom:.5em}.reminder-blurb[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .reminder-blurb[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited{color:var(--tonal-blue)}"],
changeDetection:0});var SVc=["customReminderBlurb"],TF=function(){this.reminderBlurbTemplate=q(RVc,{optional:!0});this.customReminderBlurb=Rg("customReminderBlurb",Object.assign({},{},{read:ig}))};TF.prototype.ngAfterViewInit=function(){this.reminderBlurbTemplate&&this.customReminderBlurb()&&(this.componentRef=this.customReminderBlurb().createComponent(this.reminderBlurbTemplate))};TF.\u0275fac=function(a){return new (a||TF)};
TF.\u0275cmp=C({type:TF,selectors:[["reminder-blurb-wrapper"]],viewQuery:function(a,b){a&1&&rg(b.customReminderBlurb,SVc,ig);a&2&&sg()},decls:2,vars:1,consts:[["customReminderBlurb",""]],template:function(a,b){a&1&&F(0,fAa,2,0,"ng-container")(1,gAa,1,0,"reminder-blurb");a&2&&G(b.reminderBlurbTemplate?0:1)},dependencies:[xy,SF],encapsulation:2,changeDetection:0});var TVc=function(a,b){return b.title},jAa=function(a,b){return b.label},UF=function(){var a=this;this.ve={ProductionAgentZeroStateSuggestionChip:278387};this.threadService=q(fF);this.routingService=q(BD);this.overridesService=q(CC);this.configurationKey=Qg.apply(null,n([]));this.pageId=Qg.apply(null,n([]));this.draftQuery=qg.apply(null,[""].concat(n([])));this.isLoading=qg.apply(null,[!1].concat(n([])));this.onboardingExamples=swa(this.overridesService.overrideOnboardingExamplesList$.asObservable().pipe(Bf(function(){a.isLoading.set(!0)}),
nf(800),Bf(function(){a.isLoading.set(!1)})))};UF.prototype.sendQuestion=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,lOa(b.routingService,""),2):z(c,CTc(b.threadService,a),0)})};UF.\u0275fac=function(a){return new (a||UF)};
UF.\u0275cmp=C({type:UF,selectors:[["gpp-custom-onboarding"]],inputs:{configurationKey:[1,"configurationKey"],pageId:[1,"pageId"]},decls:6,vars:2,consts:[[1,"onboarding-list"],[1,"shimmer-line-container"],[1,"onboarding-section",3,"hidden"],[3,"submitMessage","inputText"],[1,"shimmer-line",2,"width","100%"],[1,"shimmer-line",2,"width","90%"],[1,"shimmer-line",2,"width","80%"],[1,"onboarding-section"],[1,"gmat-overline","title"],["color","primary","mat-stroked-button","",1,"prompt-button",3,"ve","veClick",
"aria-label"],["color","primary","mat-stroked-button","",1,"prompt-button",3,"click","ve","veClick","aria-label"]],template:function(a,b){a&1&&(M(0,"reminder-blurb-wrapper"),K(1,"div",0),F(2,hAa,4,0,"div",1),Pf(3,kAa,5,3,"div",2,TVc),L(),K(5,"message-input-wrapper",3),N("submitMessage",function(c){return b.sendQuestion(c)}),L());a&2&&(B(2),G(b.isLoading()?2:-1),B(),Qf(b.onboardingExamples()),B(2),I("inputText",b.draftQuery()))},dependencies:[WA,TA,RF,TF,GE],styles:['[_nghost-%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;gap:8px;height:100%}[_nghost-%COMP%]   .onboarding-list[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1 1 auto;-moz-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;overflow-y:auto;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;-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}[_nghost-%COMP%]   .onboarding-list[_ngcontent-%COMP%]   .onboarding-section[_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;gap:8px;margin-bottom:16px}[_nghost-%COMP%]   .onboarding-list[_ngcontent-%COMP%]   .onboarding-section[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{text-transform:uppercase}[_nghost-%COMP%]   .onboarding-list[_ngcontent-%COMP%]   .onboarding-section.hidden[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .prompt-button[_ngcontent-%COMP%]{line-height:18px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-radius:36px;background-color:var(--xap-color-surface)}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1}[_nghost-%COMP%]   .shimmer-line-container[_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;gap:16px;padding:16px 0;width:300px}[_nghost-%COMP%]   .shimmer-line[_ngcontent-%COMP%]{height:16px;background:var(--xap-color-surface-container-high);position:relative;overflow:hidden;border-radius:4px}[_nghost-%COMP%]   .shimmer-line[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:-100%;height:100%;width:100%;background:-webkit-gradient(linear,left top,right top,from(var(--xap-color-surface-container-high)),color-stop(50%,var(--xap-color-surface-container)),to(var(--xap-color-surface-container-high)));background:-webkit-linear-gradient(left,var(--xap-color-surface-container-high) 0,var(--xap-color-surface-container) 50%,var(--xap-color-surface-container-high) 100%);background:linear-gradient(to right,var(--xap-color-surface-container-high) 0,var(--xap-color-surface-container) 50%,var(--xap-color-surface-container-high) 100%);-webkit-animation:_ngcontent-%COMP%_shimmer 2.2s infinite;animation:_ngcontent-%COMP%_shimmer 2.2s infinite}@-webkit-keyframes _ngcontent-%COMP%_shimmer{to{left:100%}}@keyframes _ngcontent-%COMP%_shimmer{to{left:100%}}\n/*# sourceMappingURL=gpp_custom_onboarding.css.map */',
"[_nghost-%COMP%] { height: 100%; }"],changeDetection:0});var VF=function(){};VF.prototype.transform=function(a){var b=a.getPrompt();return b?"Prompt: "+b:a.getLabel()||null};VF.\u0275fac=function(a){return new (a||VF)};VF.\u0275pipe=cf({name:"interactiveButtonTooltip",type:VF,pure:!0});/*

 Copyright (c) 2013 Marc J. Schmidt

 Use of this source code is governed by a MIT-style
 license that can be found in the LICENSE file or at
 https://opensource.org/licenses/MIT.
*/
"use strict";
var UVc=typeof window!=="undefined"?window:this,VVc=function(){function a(m,r){var w=Object.prototype.toString.call(m),x=0,D=m.length;if("[object Array]"===w||"[object NodeList]"===w||"[object HTMLCollection]"===w||"[object Object]"===w||"undefined"!==typeof jQuery&&m instanceof jQuery||"undefined"!==typeof Elements&&m instanceof Elements)for(;x<D;x++)r(m[x]);else r(m)}function b(m){if(!m.getBoundingClientRect)return{width:m.offsetWidth,height:m.offsetHeight};m=m.getBoundingClientRect();return{width:Math.round(m.width),
height:Math.round(m.height)}}function c(m,r){Object.keys(r).forEach(function(w){m.style[w]=r[w]})}if(typeof window==="undefined")return null;var d=typeof window!="undefined"&&Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:globalThis,e=d.requestAnimationFrame||d.mozRequestAnimationFrame||d.webkitRequestAnimationFrame||function(m){return d.setTimeout(m,20)},f=d.cancelAnimationFrame||d.mozCancelAnimationFrame||d.webkitCancelAnimationFrame||function(m){d.clearTimeout(m)},g=function(m,
r){function w(){var H=[];this.add=function(R){H.push(R)};var J,O;this.call=function(R){J=0;for(O=H.length;J<O;J++)H[J].call(this,R)};this.remove=function(R){var V=[];J=0;for(O=H.length;J<O;J++)H[J]!==R&&V.push(H[J]);H=V};this.length=function(){return H.length}}function x(H,J){if(H)if(H.resizedAttached)H.resizedAttached.add(J);else{H.resizedAttached=new w;H.resizedAttached.add(J);H.resizeSensor=document.createElement("div");H.resizeSensor.dir="ltr";H.resizeSensor.className="resize-sensor";var O={pointerEvents:"none",
position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"};J={position:"absolute",left:"0px",top:"0px",transition:"0s"};c(H.resizeSensor,O);var R=document.createElement("div");R.className="resize-sensor-expand";c(R,O);var V=document.createElement("div");c(V,J);R.appendChild(V);var ba=document.createElement("div");ba.className="resize-sensor-shrink";c(ba,O);O=document.createElement("div");c(O,J);c(O,{width:"200%",height:"200%"});
ba.appendChild(O);H.resizeSensor.appendChild(R);H.resizeSensor.appendChild(ba);H.appendChild(H.resizeSensor);J=(J=window.getComputedStyle(H))?J.getPropertyValue("position"):null;"absolute"!==J&&"relative"!==J&&"fixed"!==J&&"sticky"!==J&&(H.style.position="relative");var pa=!1,ua=0,ma=b(H),Da=0,ja=0,va=!0;D=0;var ya=function(){var rb=H.offsetWidth,ac=H.offsetHeight;V.style.width=rb+10+"px";V.style.height=ac+10+"px";R.scrollLeft=rb+10;R.scrollTop=ac+10;ba.scrollLeft=rb+10;ba.scrollTop=ac+10},Sa=function(){if(va){if(H.offsetWidth===
0&&H.offsetHeight===0){D||(D=e(function(){D=0;Sa()}));return}va=!1}ya()};H.resizeSensor.resetSensor=Sa;var ab=function(){ua=0;pa&&(Da=ma.width,ja=ma.height,H.resizedAttached&&H.resizedAttached.call(ma))};J=function(){ma=b(H);(pa=ma.width!==Da||ma.height!==ja)&&!ua&&(ua=e(ab));Sa()};O=function(rb,ac,pc){rb.attachEvent?rb.attachEvent("on"+ac,pc):rb.addEventListener(ac,pc)};O(R,"scroll",J);O(ba,"scroll",J);D=e(function(){D=0;Sa()})}}var D=0;a(m,function(H){x(H,r)});this.detach=function(H){D&&(f(D),D=
0);g.detach(m,H)};this.reset=function(){m.resizeSensor.resetSensor&&m.resizeSensor.resetSensor()}};g.reset=function(m){a(m,function(r){m.resizeSensor.resetSensor&&r.resizeSensor.resetSensor()})};g.detach=function(m,r){a(m,function(w){if(w){if(w.resizedAttached&&typeof r==="function"&&(w.resizedAttached.remove(r),w.resizedAttached.length()))return;w.resizeSensor&&(w.contains(w.resizeSensor)&&w.removeChild(w.resizeSensor),delete w.resizeSensor,delete w.resizedAttached)}})};if(typeof MutationObserver!==
"undefined"){var k=new MutationObserver(function(m){for(var r in m)if(m.hasOwnProperty(r))for(var w=m[r].addedNodes,x=0;x<w.length;x++)w[x].resizeSensor&&g.reset(w[x])});document.addEventListener("DOMContentLoaded",function(){k.observe(document.body,{childList:!0,subtree:!0})})}return g};typeof define==="function"&&define.amd?define(VVc):typeof exports==="object"?module.exports=VVc():UVc.ResizeSensor=VVc();var WVc=window.ResizeSensor;var WF=function(){this.eventsDomainSelector_=this.metricsDomainSelector_=this.appDomainSelector_=null};Vw("awesomecharts.config.RestDomainsConfig",WF);WF.prototype.getApp=function(){return this.appDomainSelector_};WF.prototype.getApp=WF.prototype.getApp;WF.prototype.setApp=function(a){this.appDomainSelector_=XVc(this,a);return this};WF.prototype.setApp=WF.prototype.setApp;WF.prototype.getPublicApi=function(){return this.publicApiSelector_};WF.prototype.getPublicApi=WF.prototype.getPublicApi;
WF.prototype.setPublicApi=function(a){this.publicApiSelector_=XVc(this,a);return this};WF.prototype.setPublicApi=WF.prototype.setPublicApi;WF.prototype.getPublicCharts=function(){return this.publicChartsSelector_};WF.prototype.getPublicCharts=WF.prototype.getPublicCharts;WF.prototype.setPublicCharts=function(a){this.publicChartsSelector_=XVc(this,a);return this};WF.prototype.setPublicCharts=WF.prototype.setPublicCharts;WF.prototype.getMetrics=function(){return this.metricsDomainSelector_};
WF.prototype.getMetrics=WF.prototype.getMetrics;WF.prototype.setMetrics=function(a){this.metricsDomainSelector_=XVc(this,a);return this};WF.prototype.setMetrics=WF.prototype.setMetrics;WF.prototype.getEvents=function(){return this.eventsDomainSelector_};WF.prototype.getEvents=WF.prototype.getEvents;WF.prototype.setEvents=function(a){this.eventsDomainSelector_=XVc(this,a);return this};WF.prototype.setEvents=WF.prototype.setEvents;WF.prototype.setIterFactory=function(a){this.iterFactory_=a};
WF.prototype.setIterFactory=WF.prototype.setIterFactory;var XVc=function(a,b){if(!b)return null;typeof b==="string"&&(b=[b]);Array.isArray(b)&&(b=a.iterFactory_(b));return b};var YVc=function(){};Vw("awesomecharts.interfaces.AnalyticsInterface",YVc);YVc.prototype.sinceLoad=function(){};YVc.prototype.sinceLoad=YVc.prototype.sinceLoad;var XF=function(){};Vw("awesomecharts.interfaces.AuthInterface",XF);XF.prototype.checkAuth=function(){};XF.prototype.checkAuth=XF.prototype.checkAuth;XF.prototype.isAuthInProgress=function(){};XF.prototype.isAuthInProgress=XF.prototype.isAuthInProgress;XF.prototype.isReady=function(){};XF.prototype.isReady=XF.prototype.isReady;XF.prototype.request=function(){};XF.prototype.request=XF.prototype.request;XF.prototype.clear=function(){};XF.prototype.clear=XF.prototype.clear;
XF.prototype.handleRequestError=function(){};XF.prototype.handleRequestError=XF.prototype.handleRequestError;XF.prototype.authorizeRequest=function(){};XF.prototype.authorizeRequest=XF.prototype.authorizeRequest;var ZVc=function(){};ZVc.prototype.sinceLoad=function(){};
var YF=function(){this.qnAuth_=this.auth_=null;this.throwPartials_=!0;this.restDomainsConfig_=new WF;this.colorTheme_=this.dateTimeDisplayFormatter_=this.timezonePreference_=null;this.whitelist_={};this.baseUrls_={gcm_v3:"https://monitoring.googleapis.com"};this.analytics_=new ZVc;this.forceSync_=!1;this.stats_={transportRead:[],chartLoading:[],dashboardLoading:[],chartErrors:0};this.timezoneUtils_={timezoneOffset:function(){return-(new Date).getTimezoneOffset()},localOffset:function(){return-(new Date).getTimezoneOffset()}};
this.useTerminatingDrawQueue=!1};YF.prototype.setAuth=function(a){this.auth_=a;return this};YF.prototype.setAuth=YF.prototype.setAuth;YF.prototype.setQnAuth=function(a){this.qnAuth_=a;return this};YF.prototype.setQnAuth=YF.prototype.setQnAuth;YF.prototype.getAuth=function(){return this.auth_};YF.prototype.getAuth=YF.prototype.getAuth;YF.prototype.getQnAuth=function(){return this.qnAuth_};YF.prototype.getQnAuth=YF.prototype.getQnAuth;
YF.prototype.setThrowPartials=function(a){this.throwPartials_=a;return this};YF.prototype.setThrowPartials=YF.prototype.setThrowPartials;YF.prototype.getThrowPartials=function(){return this.throwPartials_};YF.prototype.getThrowPartials=YF.prototype.getThrowPartials;YF.prototype.setTimezoneUtils=function(a){this.timezoneUtils_=a;return this};YF.prototype.setTimezoneUtils=YF.prototype.setTimezoneUtils;YF.prototype.getTimezoneUtils=function(){return this.timezoneUtils_};
YF.prototype.getTimezoneUtils=YF.prototype.getTimezoneUtils;YF.prototype.setAnalytics=function(a){this.analytics_=a;return this};YF.prototype.setAnalytics=YF.prototype.setAnalytics;YF.prototype.getAnalytics=function(){return this.analytics_||null};YF.prototype.getAnalytics=YF.prototype.getAnalytics;YF.prototype.setTimezone=function(a){this.timezonePreference_=a;return this};YF.prototype.setTimezone=YF.prototype.setTimezone;
YF.prototype.getTimezone=function(){return this.timezonePreference_?this.timezonePreference_:window&&window.sd&&window.sd.timezonePreference?window.sd.timezonePreference:"LocalTime"};YF.prototype.getTimezone=YF.prototype.getTimezone;YF.prototype.setDateTimeDisplayFormatter=function(a){this.dateTimeDisplayFormatter_=a;return this};YF.prototype.setDateTimeDisplayFormatter=YF.prototype.setDateTimeDisplayFormatter;YF.prototype.getDateTimeDisplayFormatter=function(){return this.dateTimeDisplayFormatter_};
YF.prototype.getDateTimeDisplayFormatter=YF.prototype.getDateTimeDisplayFormatter;YF.prototype.setColorTheme=function(a){this.colorTheme_=a;return this};YF.prototype.setColorTheme=YF.prototype.setColorTheme;YF.prototype.getColorTheme=function(){return this.colorTheme_?this.colorTheme_:window&&window.sd&&window.sd.colorTheme?window.sd.colorTheme:null};YF.prototype.getColorTheme=YF.prototype.getColorTheme;YF.prototype.getRestDomainsConfig=function(){return this.restDomainsConfig_};
YF.prototype.getRestDomainsConfig=YF.prototype.getRestDomainsConfig;YF.prototype.setWhitelist=function(a,b){this.whitelist_[a]=b;return this};YF.prototype.setWhitelist=YF.prototype.setWhitelist;
var $Vc=function(a,b,c){Array.isArray(c)||(c=[]);return Object.keys(a.whitelist_).concat(c).some(function(d){return d.indexOf(b)===0&&(!!a.whitelist_[d]||c.indexOf(d)>=0)})},aWc=function(a,b,c){return Array.isArray(c)&&c.includes(b)?!0:!!a.whitelist_[b]},cWc=function(a){var b=null;bWc(a).forEach(function(c){c.indexOf("chart-throttle-")===0&&(b=Math.min(c.substring(15),b===null?Infinity:b))});return b},bWc=function(a){return Object.keys(a.whitelist_).filter(function(b){return a.whitelist_[b]})};
YF.prototype.setBaseUrl=function(a,b){this.baseUrls_[a]=b};YF.prototype.setBaseUrl=YF.prototype.setBaseUrl;YF.prototype.getBaseUrl=function(){return this.baseUrls_[void 0]};YF.prototype.setAsyncEventWrapperFn=function(){};YF.prototype.setAsyncEventWrapperFn=YF.prototype.setAsyncEventWrapperFn;YF.prototype.setForceSync=function(a){this.forceSync_=a};YF.prototype.setForceSync=YF.prototype.setForceSync;YF.prototype.isForceSync=function(){return this.forceSync_};YF.prototype.isForceSync=YF.prototype.isForceSync;
YF.prototype.transportReadEvent=function(a){var b=this.stats_.transportRead;b.push(a);b.length>1E3&&b.shift()};YF.prototype.transportReadEvent=YF.prototype.transportReadEvent;YF.prototype.chartLoadingEvent=function(a,b){var c=this.stats_.chartLoading;c.push(a);c.length>1E3&&c.shift();b&&this.stats_.chartErrors++};YF.prototype.chartLoadingEvent=YF.prototype.chartLoadingEvent;YF.prototype.dashboardLoadingEvent=function(a){var b=this.stats_.dashboardLoading;b.push(a);b.length>1E3&&b.shift()};
YF.prototype.dashboardLoadingEvent=YF.prototype.dashboardLoadingEvent;
YF.prototype.showStats=function(){aWc(this,"chart-adaptive")?console.log("tile loading is on."):console.log("tile loading is off.");aWc(this,"chart-grpc")?console.log("grpc is on."):console.log("grpc is off.");console.log("throttle is "+cWc(this));var a=0,b=0;performance&&performance.getEntries&&performance.getEntries().forEach(function(c){!c.name||c.name.indexOf("/batch")===-1&&c.name.indexOf("/timeSeries?")===-1&&c.name.indexOf("/ListTimeSeries")===-1||(a+=.5,b+=+c.duration)});a>0&&(console.log("XHRs:",
a),console.log("average XHR latency:",b/a));a=this.stats_.transportRead.length;b=0;this.stats_.transportRead.forEach(function(c){b+=+c});console.log("transport reads:",a);console.log("average transport read latency:",a===0?"n/a":b/a);a=this.stats_.chartLoading.length;b=0;this.stats_.chartLoading.forEach(function(c){b+=+c});console.log("charts:",a);console.log("average chart latency:",a===0?"n/a":b/a);console.log("chart errors:",this.stats_.chartErrors);this.stats_.dashboardLoading.forEach(function(c){console.log("dashboard latency:",
c)});console.log("XHR latency includes stalled time and network time, per tile.");console.log("transport latency includes stalled time, network time, and parse time, per tile.");console.log("chart latency includes stalled time, network time, parse time, translate, and merge, per chart.");console.log("dashboard latency includes stalled, network, parse, translate, merge, and draw, per dashboard.")};YF.prototype.showStats=YF.prototype.showStats;
YF.prototype.doUseDataWorkers=function(a){return typeof self.Worker==="function"?aWc(this,"chart-data-workers",a)||$Vc(this,"chart-override-performance-",a)?!0:$Vc(this,"chart-performance-",a)&&aWc(this,"chart-rollout-performance",a):!1};YF.prototype.doUseDataWorkers=YF.prototype.doUseDataWorkers;YF.prototype.setUseTerminatingDrawQueue=function(a){this.useTerminatingDrawQueue=a};YF.prototype.setUseTerminatingDrawQueue=YF.prototype.setUseTerminatingDrawQueue;
YF.prototype.getUseTerminatingDrawQueue=function(){return this.useTerminatingDrawQueue};YF.prototype.getUseTerminatingDrawQueue=YF.prototype.getUseTerminatingDrawQueue;var ZF=new YF;Vw("awesomecharts.config.settings",ZF);var lAa={};var $F=function(){Xj.call(this,{type:"@ngrx/store/init"})};Z($F,Xj);$F.create=Xj.create;$F.prototype.next=function(a){if(typeof a==="function")throw new TypeError("jc");if(typeof a==="undefined")throw new TypeError("kc");if(typeof a.type==="undefined")throw new TypeError("lc");Xj.prototype.next.call(this,a)};$F.prototype.complete=function(){};$F.prototype.ngOnDestroy=function(){Xj.prototype.complete.call(this)};$F.\u0275fac=function(a){return new (a||$F)};$F.\u0275prov=Cc({token:$F,factory:$F.\u0275fac});
var dWc=[$F];var eWc=new bd("@ngrx/store Internal Root Guard"),fWc=new bd("@ngrx/store Internal Initial State"),gWc=new bd("@ngrx/store Initial State"),hWc=new bd("@ngrx/store Reducer Factory"),iWc=new bd("@ngrx/store Internal Reducer Factory Provider"),jWc=new bd("@ngrx/store Initial Reducers"),kWc=new bd("@ngrx/store Internal Initial Reducers"),lWc=new bd("@ngrx/store Store Features"),mWc=new bd("@ngrx/store Internal Store Reducers"),nWc=new bd("@ngrx/store Internal Feature Reducers"),oWc=new bd("@ngrx/store Internal Feature Configs"),
pWc=new bd("@ngrx/store Internal Store Features"),qWc=new bd("@ngrx/store Internal Feature Reducers Token"),rWc=new bd("@ngrx/store Feature Reducers"),sWc=new bd("@ngrx/store User Provided Meta Reducers"),tWc=new bd("@ngrx/store Meta Reducers"),uWc=new bd("@ngrx/store Internal Resolved Meta Reducers"),vWc=new bd("@ngrx/store User Runtime Checks Config"),wWc=new bd("@ngrx/store Internal User Runtime Checks Config"),GAa=new bd("@ngrx/store Internal Runtime Checks"),FAa=new bd("@ngrx/store Check if Action types are unique");
new bd("@ngrx/store Root Store Provider");new bd("@ngrx/store Feature State Provider");var xWc=function(){Sd.apply(this,arguments)};Z(xWc,Sd);xWc.create=Sd.create;var aG=function(){$F.apply(this,arguments)};Z(aG,$F);aG.create=$F.create;aG.\u0275prov=$F.\u0275prov;aG.\u0275fac=$F.\u0275fac;var bG=function(a,b,c,d){Xj.call(this,d(c,b));this.dispatcher=a;this.initialState=b;this.reducers=c;this.reducerFactory=d};Z(bG,Xj);bG.create=Xj.create;
var zWc=function(a,b){b=b.reduce(function(c,d){var e=d.reducers;var f=d.reducerFactory;var g=d.metaReducers;var k=d.initialState;d=d.key;e=typeof e==="function"?xAa(g)(e,k):wAa(f,g)(e,k);c[d]=e;return c},{});yWc(a,b)},BWc=function(a,b){AWc(a,b.map(function(c){return c.key}))},yWc=function(a,b){a.reducers=Object.assign({},a.reducers,b);CWc(a,Object.keys(b))},AWc=function(a,b){b.forEach(function(c){a.reducers=uAa(a.reducers,c)});CWc(a,b)},CWc=function(a,b){a.next(a.reducerFactory(a.reducers,a.initialState));
a.dispatcher.next({type:"@ngrx/store/update-reducers",features:b})};bG.prototype.ngOnDestroy=function(){this.complete()};bG.\u0275fac=function(a){return new (a||bG)(Wc(aG),Wc(gWc),Wc(jWc),Wc(hWc))};bG.\u0275prov=Cc({token:bG,factory:bG.\u0275fac});var DWc=[bG,{provide:xWc,useExisting:bG},{provide:aG,useExisting:$F}];var cG=function(){rf.apply(this,arguments)};Z(cG,rf);cG.create=rf.create;cG.prototype.ngOnDestroy=function(){this.complete()};cG.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(cG)))(b||cG)}}();cG.\u0275prov=Cc({token:cG,factory:cG.\u0275fac});var EWc=[cG];var FWc=function(){Sd.apply(this,arguments)};Z(FWc,Sd);FWc.create=Sd.create;var dG=function(a,b,c,d){Xj.call(this,d);var e=this;this.stateSubscription=a.pipe(Sha()).pipe(Df(b)).pipe(Ila(JAa,{state:d})).subscribe(function(f){var g=f.state;f=f.action;e.next(g);c.next(f)});this.state=swa(this,{manualCleanup:!0,requireSync:!0})};Z(dG,Xj);dG.create=Xj.create;dG.prototype.ngOnDestroy=function(){this.stateSubscription.unsubscribe();this.complete()};dG.INIT="@ngrx/store/init";
dG.\u0275fac=function(a){return new (a||dG)(Wc($F),Wc(xWc),Wc(cG),Wc(gWc))};dG.\u0275prov=Cc({token:dG,factory:dG.\u0275fac});var GWc=[dG,{provide:FWc,useExisting:dG}];var eG=function(a,b,c,d){this.actionsObserver=b;this.reducerManager=c;this.injector=d;this.source=a;this.state=a.state};Z(eG,Sd);eG.create=Sd.create;h=eG.prototype;h.select=function(a){return lk.call.apply(lk,[null,a].concat(n(Yc.apply(1,arguments))))(this)};h.lift=function(a){var b=new eG(this,this.actionsObserver,this.reducerManager);b.operator=a;return b};h.dispatch=function(a,b){if(typeof a==="function")return HWc(this,a,b);this.actionsObserver.next(a)};h.next=function(a){this.actionsObserver.next(a)};
h.error=function(a){this.actionsObserver.error(a)};h.complete=function(){this.actionsObserver.complete()};var HWc=function(a,b,c){nAa(a.injector);var d;if((c=c==null?void 0:c.injector)!=null)var e=c;else a:{try{e=q(xe);break a}catch(f){}e=void 0}e=(d=e)!=null?d:a.injector;return df(function(){var f=b();Mc(function(){return a.dispatch(f)})},{injector:e})};eG.\u0275fac=function(a){return new (a||eG)(Wc(FWc),Wc($F),Wc(bG),Wc(xe))};eG.\u0275prov=Cc({token:eG,factory:eG.\u0275fac});var IWc=[eG];var fG=function(){};fG.\u0275fac=function(a){return new (a||fG)(Wc($F),Wc(xWc),Wc(cG),Wc(eG),Wc(eWc,8),Wc(FAa,8))};fG.\u0275mod=$e({type:fG});fG.\u0275inj=Dc({});var gG=function(a,b,c){this.features=a;this.reducerManager=c;a=a.map(function(d,e){e=b.shift()[e];return Object.assign({},d,{reducers:e,initialState:KAa(d.initialState)})});zWc(c,a)};gG.prototype.ngOnDestroy=function(){BWc(this.reducerManager,this.features)};
gG.\u0275fac=function(a){return new (a||gG)(Wc(pWc),Wc(rWc),Wc(bG),Wc(fG),Wc(FAa,8))};gG.\u0275mod=$e({type:gG});gG.\u0275inj=Dc({});var hG=gk("[AC] Add chart",hk()),iG=gk("[AC] Remove chart",hk()),jG=gk("[AC] Rename chart",hk()),JWc=gk("[AC] Remove ChartGroup",hk()),KWc=gk("[AC] Add X Axis",hk()),LWc=gk("[AC] Remove X Axis",hk()),MWc=gk("[AC] Add Categorical Axis",hk()),NWc=gk("[AC] Remove Categorical Axis",hk()),OWc=gk("[AC] Add Layer",hk()),PWc=gk("[AC] Remove layer",hk()),kG=gk("[AC] Rename layer",hk()),LAa=gk("[AC] Batch actions",hk()),MAa=new WeakMap;var lG=function(a){this.selectorService=a;this.logger=null;this.setupCalled=!1;this.stateObservableSwitcher=new Xj(be({previousValue:null,currentValue:null}));this.stateObservableInternal=this.stateObservableSwitcher.pipe(zf(function(b){return b}));this.store=q(eG)},mG=function(a,b){return a.scopeObservable.pipe(zf(function(c){return a.store.pipe(lk(b(c)))}),wf({bufferSize:1,refCount:!0}))};
lG.prototype.selectorFactoryToObservable=function(a){var b=this;return this.scopeObservable.pipe(zf(function(c){return b.selectorService.getSelection(a,c)}),wf({bufferSize:1,refCount:!0}))};lG.prototype.select=function(a){var b=this,c=void 0;this.scopeObservable.pipe(zf(function(d){return b.selectorService.getSelection(a,d)}),mf(1)).subscribe(function(d){c=d});return c};lG.prototype.setup=function(a){this.setupCalled||(this.stateObservable=QWc(a.stateSelectionObservables),this.setupCalled=!0)};
var QWc=function(a){var b=Object.keys(a);return he(Object.values(a)).pipe(A(function(c){for(var d={},e=0;e<b.length;e++)d[b[e]]=c[e];return d}),yf(null),uf(),A(rk),wf({bufferSize:1,refCount:!0}))};da.Object.defineProperties(lG.prototype,{stateObservable:{configurable:!0,enumerable:!0,set:function(a){this.stateObservableSwitcher.next(a)},get:function(){return this.stateObservableInternal}}});var Ak=function(a){return kk(function(b){return b[a]},function(b){return b})}("awesomecharts");var tk=function(a){this.getKey=a.getKey;this.getSelector=a.getSelector},uk=jk(function(a){return ik(a,OAa,PAa)});var RWc=new tk({getKey:RAa,getSelector:function(){return be(kk(SAa(),function(a){return a}))}}),SWc=new tk({getKey:RAa,getSelector:function(a){var b=a.chartGroupId;var c=a.chartId;return be(kk(SAa(),function(d){return(d==null?void 0:d.chartGroupId)===b&&(d==null?void 0:d.chartId)===c}))}});var VAa=kk(Ak,function(a){return a.resize}),TWc=new tk({getKey:yk,getSelector:function(a){var b=a.chartId;return be(kk(VAa,function(c){return c.entities[b]}))}}),UWc=new tk({getKey:function(a){return a.chartId},getSelector:function(a){return be(kk(Dk({chartId:a.chartId}),function(b){if(b)return Math.max(0,b.height-b.margins.top-b.margins.bottom)}))}}),VWc=new tk({getKey:function(a){return a.chartId},getSelector:function(a){return be(kk(Dk({chartId:a.chartId}),function(b){if(b)return Math.max(0,b.width-
b.margins.left-b.margins.right)}))}}),WWc=new tk({getKey:function(a){return a.chartId},getSelector:function(a){return be(kk(Dk({chartId:a.chartId}),function(b){if(b)return Math.max(0,b.margins.top)}))}}),XWc=new tk({getKey:function(a){return a.chartId},getSelector:function(a){return be(kk(Dk({chartId:a.chartId}),function(b){if(b)return Math.max(0,b.margins.left)}))}}),YWc=new tk({getKey:function(a){return a.chartId},getSelector:function(a){return be(kk(Dk({chartId:a.chartId}),function(b){if(b)return Math.max(0,
b.width-b.margins.right)}))}}),ZWc=new tk({getKey:function(a){return a.chartId},getSelector:function(a){return be(kk(Dk({chartId:a.chartId}),function(b){if(b)return Math.max(0,b.height-b.margins.bottom)}))}}),$Wc=vk(function(a){return a.chartId},function(a,b){if(a!==void 0&&b!==void 0)return{bodyLeft:a,bodyRight:b}},XWc,YWc),aXc=new tk({getKey:function(a){return a.chartId},getSelector:function(a){return be(kk(Dk({chartId:a.chartId}),function(b){return b==null?void 0:b.width}))}}),bXc=new tk({getKey:function(a){return a.chartId},
getSelector:function(a){return be(kk(Dk({chartId:a.chartId}),function(b){return b==null?void 0:b.height}))}}),cXc=new tk({getKey:function(a){return a.chartId},getSelector:function(a){return be(kk(Dk({chartId:a.chartId}),function(b){return b==null?void 0:b.margins}))}}),dXc=new tk({getKey:function(a){return"chartId:"+a.chartId+",layerId:"+a.layerId},getSelector:function(a){var b=a.chartId;var c=a.layerId;return be(kk(Dk({chartId:b}),function(d){var e;return(e=d==null?void 0:d.reservedMarginsByLayer.entities[c])!=
null?e:void 0}))}}),eXc=new tk({getKey:function(a){return a.chartId},getSelector:function(a,b){return he([b.getSelector(bXc,a),b.getSelector(aXc,a),b.getSelector(cXc,a)]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;d=d.next().value;return kk(c,e,d,function(f,g,k){if(f!==void 0&&f>0&&g!==void 0&&g>0&&k!==void 0)return{height:f,width:g,margins:k}})}))}}),nG=vk(yk,function(a,b,c){if(a&&b!==void 0&&c!==void 0)return Object.assign({},a,{chartWidth:b,chartHeight:c})},vk(yk,function(a,
b,c,d,e,f){if(a!==void 0&&b!==void 0&&c!==void 0&&d!==void 0&&e!==void 0&&f!==void 0)return{bodyTop:a,bodyLeft:b,bodyRight:c,bodyBottom:d,bodyWidth:e,bodyHeight:f}},WWc,XWc,YWc,ZWc,VWc,UWc),aXc,bXc);var fXc=function(a){if(!Array.isArray(a))return null;var b=[],c;for(c=0;c<a.length;++c){var d=a[c];Array.isArray(d)?b=b.concat(d):b.push(d)}return b},WAa=function(a,b){if(!Array.isArray(a))return-1;for(var c=a.length-1;c>=0;--c)if(b(a[c]))return c;return-1};var oG={},pG=function(a){this.name=this.name||"ACError";this.code=this.code||500;this.message=this.message||a||"An unknown error occurred";this.details={}};Vw("awesomecharts.utils.errors.ACError",pG);oG.ACError=pG;Ww(pG,Error);var gXc=function(a){this.name="RequestAbortedError";this.message=a||"";this.code=499;pG.call(this)};oG.RequestAbortedError=gXc;Ww(gXc,pG);var hXc=function(a){this.name="ServiceUnavailableError";this.message=a||"";this.code=503;pG.call(this)};oG.ServiceUnavailableError=hXc;
Ww(hXc,pG);var iXc=function(a){this.name="TooManyRequestsError";this.message=a||"";this.code=429;pG.call(this)};oG.TooManyRequestsError=iXc;Ww(iXc,pG);var jXc=function(a,b){this.code=415;this.name="ContentTypeError";this.message=a||this.name+" for path "+b;pG.call(this)};Vw("awesomecharts.utils.errors.ContentTypeError",jXc);oG.ContentTypeError=jXc;Ww(jXc,pG);var kXc=function(a){this.code=200;this.name="NoDataError";this.message=a||"Query response did not contain any data.";pG.call(this)};
Vw("awesomecharts.utils.errors.NoDataError",kXc);oG.NoDataError=kXc;Ww(kXc,pG);var lXc=function(a,b){this.status=b;this.code=403;this.name="UnauthorizedError";this.message=a||"You do not have permissions for this request.";pG.call(this)};Vw("awesomecharts.utils.errors.UnauthorizedError",lXc);oG.UnauthorizedError=lXc;Ww(lXc,pG);var mXc=function(a,b){this.code=404;this.name="NotFoundError";this.message=a||"One or more resources could not be found.";this.status=b;pG.call(this)};
Vw("awesomecharts.utils.errors.NotFoundError",mXc);oG.NotFoundError=mXc;Ww(mXc,pG);var nXc=function(a,b){this.status=b||null;this.code=400;this.name="InvalidRequestError";this.message=a||"Request was invalid.";pG.call(this)};Vw("awesomecharts.utils.errors.InvalidRequestError",nXc);oG.InvalidRequestError=nXc;Ww(nXc,pG);var oXc=function(a){this.message=a||"Request timed out";this.code=504;this.name="TimeoutError";pG.call(this)};Vw("awesomecharts.utils.errors.TimeoutError",oXc);oG.TimeoutError=oXc;
Ww(oXc,pG);var pXc=function(a){this.code=499;this.name="FetchStrategyError";this.message=a||"Encountered error executing fetch strategy.";pG.call(this)};Vw("awesomecharts.utils.errors.FetchStrategyError",pXc);oG.FetchStrategyError=pXc;Ww(pXc,pG);var qXc=function(a){this.code=-1;this.name="CustomError";this.message=a||"Unknown error.";pG.call(this)};Vw("awesomecharts.utils.errors.CustomError",qXc);oG.CustomError=qXc;Ww(qXc,pG);var rXc,sXc=-1;
if(oG)if(Array.isArray(oG))for(rXc=oG.length;++sXc<rXc;)new oG[sXc];else{var tXc=Object.keys(oG),uXc;for(rXc=tXc.length;++sXc<rXc;)uXc=tXc[sXc],new oG[uXc]}var vXc=function(a){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack)};Z(vXc,Error);Vw("awesomecharts.utils.errors.ValidationError",vXc);var wXc=function(){};Vw("awesomecharts.interfaces.LabelFormatterInterface",wXc);wXc.prototype.format=function(){};var xXc=/(["'])(?:(?=(\\?))\2.)*?\1/,yXc=/\$\{\s*\w[^\(\}]*?(?:\(\))?\s*}/,zXc=/^\w[\w\.]*?(?:\(\))$/,AXc=/\\([\\"])/g,BXc=/\\([\\'])/g,CXc=new Map([["metric.labels.",["metric","labels"]],["resource.labels.",["resource","labels"]],["metadata.system_labels.",["metadata","system_labels"]],["metadata.user_labels.",["metadata","user_labels"]]]),qG=function(){},Ek=function(a){this.quoteType_=a[0];this.quotedValue_=a;this.unquotedValue_=a.slice(1,a.length-1).replace(this.quoteType_==='"'?AXc:BXc,"$1")};
Z(Ek,qG);Ek.prototype.toString=function(){return this.quotedValue_};Ek.prototype.value=function(){return this.unquotedValue_};
var rG=function(a){this.identifier_=a.slice(2,a.length-1).trim();if(this.isFunction_=!!this.identifier_.match(zXc))this.identifier_=this.identifier_.slice(0,-2);this.identifier_.indexOf("\\.")||this.identifier_.indexOf("\\'")?(a=this.identifier_.replace(/\\\./g,"@@@periodtoken@@@"),a=a.replace(/\\'/g,"@@@apostrophetoken@@@"),this.identifierParts_=this.getParts_(a).map(function(b){return b.replaceAll("@@@periodtoken@@@",".").replaceAll("@@@apostrophetoken@@@","'")})):this.identifierParts_=this.getParts_(this.identifier_)};
Z(rG,qG);rG.prototype.toString=function(){var a=this.identifier_;this.isFunction_&&(a+="()");return a};rG.prototype.value=function(){return this.identifier_};rG.prototype.getParts_=function(a){for(var b=l(CXc.entries()),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;if(a.startsWith(c))return a=a.substring(c.length),[].concat(n(d),[a])}var e;return(e=a.split("."))!=null?e:[]};var DXc=function(){};DXc.prototype.format=function(){};
var Dl=function(a){this.originalString_=a;this.parsed=this.parse_()};Z(Dl,DXc);var EXc=function(a,b){b=a.parseQuoted(b);b=b.map(function(c){return c instanceof qG?c:a.parseToken_(yXc,rG,c)});return fXc(b)};Dl.prototype.parse_=function(){return this.parsed?this.parsed:EXc(this,this.originalString)};
Dl.prototype.parseToken_=function(a,b,c){var d=[];a=a.toString();a=a.substring(1,a.length-1);a=new RegExp(a,"g");var e,f=0;for(c||(c="");(e=a.exec(c))!==null;)f!==e.index&&d.push(e.input.slice(f,e.index)),d.push(new b(e[0])),f=a.lastIndex;f!==c.length&&d.push(c.slice(f));return d};Dl.prototype.parseQuoted=function(a){return this.parseToken_(xXc,Ek,a)};
Dl.prototype.format=function(a,b){for(var c=null,d=null,e=[],f=this.parsed.map(function(m,r){if(m instanceof Ek)var w=c instanceof rG&&d===""?"":m.value();else if(m instanceof rG){w=a;if(b&&m.isFunction_&&m.identifierParts_.length===1){var x=m.identifierParts_[0];(w=b[x])||(w=a[x])}else{x=l(m.identifierParts_);for(var D=x.next();!D.done&&(w=w[D.value],w);D=x.next());}w=m.isFunction_?w&&typeof w==="function"?w(a):"#ERR":w===void 0||w===null?null:w;if(w===void 0||w===null)w="";c instanceof Ek&&w===
""&&(e.push(r-1),w="")}else w=m;c=m;return d=w}),g=l(e),k=g.next();!k.done;k=g.next())f[k.value]="";f=f.join("");return f.trim()===""?"":f};da.Object.defineProperties(Dl.prototype,{originalString:{configurable:!0,enumerable:!0,get:function(){return this.originalString_}}});var FXc=/\s?<=|>=|!=|=|<|>\s?/,GXc=/\sAND\s|\sOR\s/,HXc=/^\sAND\s$/,IXc=/(\sAND\s)$/,JXc=/^\sOR\s$/,KXc=/(\sOR\s)$/,LXc=/^(.*?)(\sAND\s|\sOR\s|\s)?(\S+)$/,MXc=/^(\w[\w\.]*?\()(.*)(\))$/,NXc=/(select_.*?)(\(.+\)+)/,sG=function(a){this.value_=a};Z(sG,qG);sG.prototype.toString=function(){return String(this.value_)};sG.prototype.value=function(){return this.value_};
sG.prototype.equals=function(a){return a instanceof this.constructor&&(a.toString().trim()===this.toString().trim()||a.toString().replace(/\(|\)/g,"").trim()===this.toString().replace(/\(|\)/g,"").trim())};var tG=function(a){this.value_="";this.subtokens_=[a]};Z(tG,sG);h=tG.prototype;h.numSubtokens=function(){return this.subtokens_.length};h.subtoken=function(a){return this.subtokens_.length>a?this.subtokens_[a]:null};h.append=function(a){this.subtokens_.push(a)};h.prepend=function(a){this.subtokens_.unshift(a)};
h.toString=function(){return this.subtokens_.map(function(a){return a instanceof Ek?a.toString():a}).join("")};tG.prototype.toString=tG.prototype.toString;tG.prototype.prepend=tG.prototype.prepend;tG.prototype.append=tG.prototype.append;tG.prototype.subtoken=tG.prototype.subtoken;tG.prototype.numSubtokens=tG.prototype.numSubtokens;var uG=function(){sG.apply(this,arguments)};Z(uG,sG);var Fk=function(){tG.apply(this,arguments)};Z(Fk,tG);
var Gk=function(a){if(a instanceof Ek)tG.call(this,a);else{var b=a.match(MXc);b?(tG.call(this,b[1]),b[2].length>0&&this.append(b[2]),this.append(b[3])):tG.call(this,a)}};Z(Gk,tG);var vG=function(){sG.apply(this,arguments)};Z(vG,sG);var wG=function(){vG.apply(this,arguments)};Z(wG,vG);var OXc=function(){vG.apply(this,arguments)};Z(OXc,vG);
var PXc=[{token:Fk},{token:uG},{token:Gk,canBeLast:!0},{token:vG}],Hk=function(a){this.originalString=a;this.parsed=this.parse_();this.validate()},dBa=function(a){return a.parsed?a.parsed.map(function(b){return $Aa(b)}):void 0};
Hk.prototype.parse_=function(){if(this.parsed)return this.parsed;var a=this.parseTss(this.originalString);a=this.parseQuoted(a);if(a instanceof Array){var b=[];for(a=a.slice();a.length;){var c=a.shift();if(typeof c==="string"&&c.endsWith(".")&&a[0]instanceof Ek){c=LXc.exec(c);var d=l([c&&c[1]?c[1]:"",c&&c[2]?c[2]:"",c&&c[3]?c[3]:""]);c=d.next().value;var e=d.next().value;d=d.next().value;c.length&&b.push(c);e.length&&(HXc.test(e)||/^\s*$/.test(e)?b.push(new wG(e)):JXc.test(e)?b.push(new OXc(e)):b.push(e));
c=new Fk(d);c.append(a[0]);b.push(c);a.shift()}else b.push(c)}a=b}a=this.parseExpressions(a);b=a=fXc(a);a=[];e=null;for(c=0;c<b.length;c++)if(d=b[c],d instanceof Ek)!e||e instanceof vG?(e=new Fk(d),a.push(e)):e instanceof uG?(e=new Gk(d),a.push(e)):e instanceof tG&&e.append(d);else if(d instanceof Fk)if(e instanceof Fk)e.append(d.toString());else if(e instanceof Gk){d=d.toString();var f=d.match(/^\s+/);f?(e=f[0],a.push(new wG(e)),e=new Fk(d.slice(e.length)),a.push(e)):QXc(this)}else a.push(d),e=d;
else d instanceof Gk?e instanceof Gk?e.append(d.toString()):e instanceof Fk?QXc(this):(a.push(d),e=d):(a.push(d),e=d);return a};Hk.prototype.validate=function(){for(var a=0,b=0;b<this.parsed.length;b++){var c=PXc[a],d=this.parsed[b+1];this.parsed[b]instanceof c.token&&(d||c.canBeLast)||QXc(this);a++;a===PXc.length&&(a=0)}};
Hk.prototype.parseToken_=function(a,b,c){var d=[];a=a.toString();a=a.substring(1,a.length-1);a=new RegExp(a,"g");var e,f=0;for(c||(c="");(e=a.exec(c))!==null;)f!==e.index&&d.push(e.input.slice(f,e.index)),d.push(new b(e[0])),f=a.lastIndex;f!==c.length&&d.push(c.slice(f));return d};
var RXc=function(a,b){var c=[],d=GXc.toString();d=d.substring(1,d.length-1);d=new RegExp(d,"g");var e=0,f=d.exec(b);f||(b=b.trim());f?(e!==f.index&&c.push(new Gk(f.input.slice(e,f.index))),HXc.test(f[0])?c.push(new wG(f[0])):JXc.test(f[0])&&c.push(new OXc(f[0])),e=d.lastIndex,e!==b.length&&c.push(new Fk(b.slice(e)))):(d=b.split(" "),c.push(new Gk(d.shift())),d.length>0&&(d[d.length-1]!==""?(b=new Fk(d.pop()),d=d.join(" "),d.match(/[^ ]/)&&QXc(a),c.push(new wG(d||" ")),c.push(b)):c.push(new wG(" "))));
return c};h=Hk.prototype;h.parseTss=function(a){var b=a.match(NXc);if(!b)return[a];var c=new Fk(b[1]),d=new Gk(b[2].slice(1,b[2].length-1));d.prepend("(");d.append(")");a=a.replace(NXc,"");b.index>0&&(a=" "+a);return[c,new uG(""),d,a]};h.parseQuoted=function(a){var b=this;a=a.map(function(c){return c instanceof qG?c:b.parseToken_(xXc,Ek,c)});return fXc(a)};
h.parseExpressions=function(a){var b=this;a=a.map(function(c){if(!(c instanceof qG)){var d=c;c=[];var e=FXc.toString();e=e.substring(1,e.length-1);e=new RegExp(e,"g");var f,g=0;for(d||(d="");(f=e.exec(d))!==null;){if(g!==f.index){var k=f.input.slice(g,f.index);g===0?(g=RXc(b,k),g.length>1?c.push(g):c.push(new Fk(k))):c.push(RXc(b,k))}c.push(new uG(f[0]));g=e.lastIndex}g!==d.length&&(d=d.slice(g),g===0?c.push(RXc(b,d)):(e=IXc.exec(d),f=KXc.exec(d),e?(c.push(new Gk(d.substr(0,d.length-e[1].length))),
c.push(new wG(e[1]))):f?(c.push(new Gk(d.substr(0,d.length-f[1].length))),c.push(new OXc(f[1]))):c.push(new Gk(d))))}return c});return fXc(a)};h.toString=function(){return this.parsed.reduce(function(a,b){return a+b.toString()},"")};h.hasToken=function(a){return this.parsed.findIndex(function(b){return b.equals(a)})>-1};
h.addExpression=function(a,b,c,d){this.parsed.length>0&&(a.trim()===""||a.trim()==="AND"?this.parsed.push(new wG(a)):this.parsed.push(new OXc(a)));var e=b+" "+c+" "+d;a=(e.toString().match(/\(/g)||[]).length;e=(e.toString().match(/\)/g)||[]).length;this.parsed.push(new Fk(b));a<e&&this.parsed[this.parsed.length-1].prepend("(");this.parsed.push(new uG(c));this.parsed.push(new Gk(d));a>e&&this.parsed[this.parsed.length-1].append(")");this.validate()};
h.removeLhsExpression=function(a){var b=new Fk(a);a=this.parsed.findIndex(function(f){return f.equals(b)});if(a===-1)return null;var c=this.parsed.splice(a,3),d=(c.toString().match(/\(/g)||[]).length,e=(c.toString().match(/\)/g)||[]).length;if(d!==e)if(d>e){for(d=a+1;d<this.parsed.length&&!(this.parsed[d]instanceof tG);)d++;this.parsed[d].prepend("(")}else{for(d=a-1;d>=0&&!(this.parsed[d]instanceof tG);)d--;this.parsed[d].append(")")}a>0?c.unshift(this.parsed.splice(a-1,1)[0]):c.unshift(new vG(""));
return c};var QXc=function(a){throw new vXc("Invalid metric filter. Can not parse '"+a.originalString+"'.");};Hk.prototype.removeLhsExpression=Hk.prototype.removeLhsExpression;Hk.prototype.addExpression=Hk.prototype.addExpression;Hk.prototype.hasToken=Hk.prototype.hasToken;Hk.prototype.toString=Hk.prototype.toString;Hk.prototype.parseExpressions=Hk.prototype.parseExpressions;Hk.prototype.parseQuoted=Hk.prototype.parseQuoted;Hk.prototype.parseTss=Hk.prototype.parseTss;var eBa={"=":"eq","<":"lt",">":"gt","<=":"lte",">=":"gte","=~":"rgx"};var aBa=kk(Ak,function(a){return a.timeSeries}),SXc=new tk({getKey:yk,getSelector:function(a){var b=a.chartId;return be(kk(aBa,function(c){return c.entities[b]}))}});var gBa=kk(Ak,function(a){return a.xAxisPin}),TXc=new tk({getKey:zk,getSelector:function(a){var b=a.chartGroupId;return be(kk(gBa,function(c){return c.entities[b]}))}}),UXc=new tk({getKey:zk,getSelector:function(a){var b=a.chartGroupId;return be(kk(gBa,function(c){var d,e;return(e=(d=c.entities[b])==null?void 0:d.xPos)!=null?e:void 0}))}}),VXc=new tk({getKey:zk,getSelector:function(a){var b=a.chartGroupId;return be(kk(gBa,function(c){var d;return(d=c.entities[b])==null?void 0:d.locked}))}}),WXc=new tk({getKey:zk,
getSelector:function(a){var b=a.chartGroupId;return be(kk(gBa,function(c){var d;return(d=c.entities[b])==null?void 0:d.trackingNow}))}});var XXc=0,xG=function(a,b){lG.call(this,b);var c=this;this.el=a;this.destroyed=new rf;this.logger=null;this.objectiveChartId="ac-composable-chart-"+XXc++;this.boundingClientRectCache=null;this.boundingClientRectCachedAsOf=0;this.chartGroupId="default";this.chartId=this.objectiveChartId;this.title="Untitled";this.scopeObservable=this.scopeSubject=new vf(1);this.eventHandlerRegistry=new Map;this.mouseDownObservable=this.mouseDownSubject=new rf;this.mouseUpObservable=this.mouseUpSubject=new rf;this.mouseEnterObservable=
this.mouseEnterSubject=new rf;this.mouseLeaveObservable=this.mouseLeaveSubject=new rf;this.mouseClickObservable=this.mouseClickSubject=new rf;this.afterMouseClickObservable=this.afterMouseClickSubject=new rf;this.keyDownObservable=this.keyDownSubject=new rf;this.syncKeyDownObservable=this.syncKeyDownSubject=new rf;this.keyUpObservable=this.keyUpSubject=new rf;this.scrollObservable=this.scrollSubject=new rf;this.syncScrollObservable=this.syncScrollSubject=new rf;this.documentMouseUpObservable=this.documentMouseUpSubject=
new rf;this.dragStartSubject=new rf;this.syncDragStartObservable=this.syncDragStartSubject=new rf;this.dragSubject=new rf;this.syncDragObservable=this.syncDragSubject=new rf;this.dragEndSubject=new rf;this.syncDragEndObservable=this.syncDragEndSubject=new rf;this.windowCaptureScrollSubject=new rf;this.touchStartObservable=this.touchStartSubject=new rf;this.syncTouchStartObservable=this.syncTouchStartSubject=new rf;this.touchMoveObservable=this.touchMoveSubject=new rf;this.syncTouchMoveObservable=
this.syncTouchMoveSubject=new rf;this.touchEndObservable=this.touchEndSubject=new rf;this.syncTouchEndObservable=this.syncTouchEndSubject=new rf;this.context={scope:{chartGroupId:this.chartGroupId,chartId:this.chartId},state:null};this.changeDetectionActionsBatch=[];this.globalHoverDisabled=!1;this.defaultStateSelectionObservables={focus:mG(this,SAa),resize:mG(this,Dk),xAxisPin:mG(this,hBa),timeSeries:mG(this,bBa)};he([this.scopeObservable,this.stateObservable]).pipe(Af(this.destroyed)).subscribe(function(d){var e=
l(d);d=e.next().value;e=e.next().value;c.context.scope=d;c.context.state=e.currentValue})};Z(xG,lG);h=xG.prototype;
h.setup=function(a){var b=this;a=Object.assign({},this.defaultStateSelectionObservables,a.stateSelectionObservables);lG.prototype.setup.call(this,{stateSelectionObservables:a});this.scopeObservable.pipe(yf(null),uf(),A(rk),Df(this.stateObservable),Af(this.destroyed)).subscribe(function(c){var d=l(c);c=d.next().value;d.next();if(c.currentValue)b.onScopeChange(c)});this.setupStateChangeHandler(a.resize,function(c,d){return b.onResizeChange(sk(c,function(e){return e.resize}),d)},"resize");this.setupStateChangeHandler(a.xAxisPin,
function(c,d){return b.onXAxisPinChange(sk(c,function(e){return e.xAxisPin}),d)},"xAxisPin");this.setupStateChangeHandler(a.timeSeries,function(c,d){return b.onTimeSeriesChange(sk(c,function(e){return e.timeSeries}),d)},"timeSeries");this.setupStateChangeHandler(a.focus,function(c,d){return b.onFocusChange(sk(c,function(e){return e.focus}),d)},"focus")};
h.setupStateChangeHandler=function(a,b,c){var d=this;if(this.setupCalled&&a){var e=null;a.pipe(iBa(this.scopeObservable,this.stateObservable),Af(this.destroyed)).subscribe(function(f){var g=l(f);f=g.next().value;g=g.next().value;var k={scope:f,state:g.currentValue},m={previousValue:e,currentValue:g.currentValue};e=g.currentValue;d.scheduleStateChangeHandler({changes:m,context:k,componentHandlerUsingContext:b,mergeKey:f.chartId+"-"+c,scope:f})})}};
h.onScopeChange=function(a){var b=a.previousValue,c=a.currentValue,d=[];c&&(b==null?void 0:b.chartId)!==(c==null?void 0:c.chartId)&&(d.push(jG({chartGroupId:c.chartGroupId,previousChartId:b==null?void 0:b.chartId,currentChartId:c.chartId})),YXc(this.selectorService,a));yG(this,d)};h.onResizeChange=function(){};h.onXAxisPinChange=function(){};h.onTimeSeriesChange=function(){};h.onFocusChange=function(){};h.withLatest=function(a){a({scope:this.context.scope,state:this.context.state})};
h.scheduleStateChangeHandler=function(a){kBa(a)?a.viewHandlerUsingContext(a.changes,a.context):mBa(a)&&(a=a.componentHandlerUsingContext(a.changes,a.context))&&a.length&&this.store.dispatch(pk({actions:a}))};h.scheduleChangeHandler=function(a){var b=a.changes;jBa(a)&&a.viewHandler(b);lBa(a)&&(a=a.componentHandler(b))&&a.length&&this.store.dispatch(pk({actions:a}))};
h.getBoundingClientRect=function(){var a=Date.now();if(!this.boundingClientRectCache||a-this.boundingClientRectCachedAsOf>500){var b=this.el.nativeElement.getBoundingClientRect();this.boundingClientRectCache=b;this.boundingClientRectCachedAsOf=a;return b}return this.boundingClientRectCache};
var ZXc=function(a,b){var c=a.eventHandlerRegistry.get(b);c||(c=new Map,a.eventHandlerRegistry.set(b,c));a=c.get("mousemove");a||(a=new Set,c.set("mousemove",a))},$Xc=function(a,b){a=a.eventHandlerRegistry.get(b);return a?(a=a.get("mousemove"))?a:new Set:new Set},zG=function(a,b,c,d){var e=$Xc(a,b),f=c;f=function(g){return a.globalHoverDisabled?[]:c(g)};e.add(f);d&&d.pipe(mf(1)).subscribe(function(){var g=f;$Xc(a,b).delete(g)})},yG=function(a,b){a.changeDetectionActionsBatch=a.changeDetectionActionsBatch.concat(b)},
aYc=function(a){if(a.changeDetectionActionsBatch.length){var b=a.changeDetectionActionsBatch;a.changeDetectionActionsBatch=[];a.store.dispatch(pk({actions:b}))}};xG.prototype.ngOnInit=function(){var a=this;this.scopeSubject.next({chartGroupId:this.chartGroupId,chartId:this.chartId});yG(this,[hG({chartId:this.chartId,chartGroupId:this.chartGroupId})]);mG(this,TAa).pipe(Af(this.destroyed)).subscribe(function(b){var c;a.globalHoverDisabled=(c=b==null?void 0:b.disabled)!=null?c:!1})};
xG.prototype.ngOnChanges=function(a){("chartId"in a||"chartGroupId"in a)&&this.scopeSubject.next({chartGroupId:this.chartGroupId,chartId:this.chartId})};xG.prototype.ngAfterViewChecked=function(){aYc(this)};xG.prototype.ngOnDestroy=function(){var a=iG({chartId:this.chartId,chartGroupId:this.chartGroupId});yG(this,[a]);aYc(this);this.destroyed.next();this.destroyed.complete()};xG.\u0275fac=function(){We()};
xG.\u0275dir=af({type:xG,inputs:{chartGroupId:"chartGroupId",chartId:"chartId",title:"title"},features:[Ff,Gx]});var Qk=function(a){if(typeof a=="number"){var b=new uBa;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(":",fD(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=bYc(a);b.tzNames_=[c,c];b.tzNamesExt_={STD_LONG_NAME_GMT:a,STD_GENERIC_LOCATION:a};b.transitions_=[];return b}b=new uBa;b.timeZoneId_=
a.id;b.standardOffset_=-a.std_offset;b.tzNames_=a.names;b.tzNamesExt_=a.names_ext;b.transitions_=a.transitions;return b},bYc=function(a){var b=["GMT"];b.push(a<=0?"+":"-");a=Math.abs(a);b.push(fD(Math.floor(a/60)%100,2),":",fD(a%60,2));return b.join("")},cYc=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]},bl=function(a,b){a=a.standardOffset_-
cYc(a,b);return a===-1440?0:a};var wBa={};var xBa={americaLosAngeles:{id:"America/Los_Angeles",names:["PST","Pacific Standard Time","PDT","Pacific Daylight Time"],names_ext:{STD_LONG_NAME_GMT:"GMT-08:00",STD_GENERIC_LOCATION:"Los Angeles Time",DST_LONG_NAME_GMT:"GMT-07:00",DST_GENERIC_LOCATION:"Los Angeles Time"},std_offset:-480,transitions:[2770,60,7137,0,11506,60,16041,0,20410,60,24777,0,29146,60,33513,0,35194,60,42249,0,45106,60,50985,0,55354,60,59889,0,64090,60,68625,0,72994,60,77361,0,81730,60,86097,0,90466,60,94833,0,99202,60,103569,
0,107938,60,112473,0,116674,60,121209,0,125578,60,129945,0,134314,60,138681,0,143050,60,147417,0,151282,60,156153,0,160018,60,165057,0,168754,60,173793,0,177490,60,182529,0,186394,60,191265,0,195130,60,200001,0,203866,60,208905,0,212602,60,217641,0,221338,60,226377,0,230242,60,235113,0,238978,60,243849,0,247714,60,252585,0,256450,60,261489,0,265186,60,270225,0,273922,60,278961,0,282826,60,287697,0,291562,60,296433,0,300298,60,305337,0,309034,60,314073,0,317770,60,322809,0,326002,60,331713,0,334738,
60,340449,0,343474,60,349185,0,352378,60,358089,0,361114,60,366825,0,369850,60,375561,0,378586,60,384297,0,387322,60,393033,0,396058,60,401769,0,404962,60,410673,0,413698,60,419409,0,422434,60,428145,0,431170,60,436881,0,439906,60,445617,0,448810,60,454521,0,457546,60,463257,0,466282,60,471993,0,475018,60,480729,0,483754,60,489465,0,492490,60,498201,0,501394,60,507105,0,510130,60,515841,0,518866,60,524577,0,527602,60,533313,0,536338,60,542049,0,545242,60,550953,0,553978,60,559689,0,562714,60,568425,
0,571450,60,577161,0,580186,60,585897,0,588922,60,594633,0]},americaNewYork:{id:"America/New_York",names:["EST","Eastern Standard Time","EDT","Eastern Daylight Time"],names_ext:{STD_LONG_NAME_GMT:"GMT-05:00",STD_GENERIC_LOCATION:"New York Time",DST_LONG_NAME_GMT:"GMT-04:00",DST_GENERIC_LOCATION:"New York Time"},std_offset:-300,transitions:[2767,60,7134,0,11503,60,16038,0,20407,60,24774,0,29143,60,33510,0,35191,60,42246,0,45103,60,50982,0,55351,60,59886,0,64087,60,68622,0,72991,60,77358,0,81727,60,
86094,0,90463,60,94830,0,99199,60,103566,0,107935,60,112470,0,116671,60,121206,0,125575,60,129942,0,134311,60,138678,0,143047,60,147414,0,151279,60,156150,0,160015,60,165054,0,168751,60,173790,0,177487,60,182526,0,186391,60,191262,0,195127,60,199998,0,203863,60,208902,0,212599,60,217638,0,221335,60,226374,0,230239,60,235110,0,238975,60,243846,0,247711,60,252582,0,256447,60,261486,0,265183,60,270222,0,273919,60,278958,0,282823,60,287694,0,291559,60,296430,0,300295,60,305334,0,309031,60,314070,0,317767,
60,322806,0,325999,60,331710,0,334735,60,340446,0,343471,60,349182,0,352375,60,358086,0,361111,60,366822,0,369847,60,375558,0,378583,60,384294,0,387319,60,393030,0,396055,60,401766,0,404959,60,410670,0,413695,60,419406,0,422431,60,428142,0,431167,60,436878,0,439903,60,445614,0,448807,60,454518,0,457543,60,463254,0,466279,60,471990,0,475015,60,480726,0,483751,60,489462,0,492487,60,498198,0,501391,60,507102,0,510127,60,515838,0,518863,60,524574,0,527599,60,533310,0,536335,60,542046,0,545239,60,550950,
0,553975,60,559686,0,562711,60,568422,0,571447,60,577158,0,580183,60,585894,0,588919,60,594630,0]},UTC:{id:"UTC",names:["UTC","Coordinated Universal Time"],names_ext:{STD_LONG_NAME_GMT:"GMT",STD_GENERIC_LOCATION:"GMT"},std_offset:0,transitions:[]},americaAnchorage:{id:"America/Anchorage",names:["AKST","Alaska Standard Time","AKDT","Alaska Daylight Time"],names_ext:{STD_LONG_NAME_GMT:"GMT-09:00",STD_GENERIC_LOCATION:"Anchorage Time",DST_LONG_NAME_GMT:"GMT-08:00",DST_GENERIC_LOCATION:"Anchorage Time"},
std_offset:-540,transitions:[2772,60,7139,0,11508,60,16043,0,20412,60,24779,0,29148,60,33515,0,35196,60,42251,0,45108,60,50987,0,55356,60,59891,0,64092,60,68627,0,72996,60,77363,0,81732,60,86099,0,90468,60,94835,0,99204,60,103571,0,107940,60,112475,0,116676,60,121211,0,125579,60,129946,0,134315,60,138682,0,143051,60,147418,0,151283,60,156154,0,160019,60,165058,0,168755,60,173794,0,177491,60,182530,0,186395,60,191266,0,195131,60,200002,0,203867,60,208906,0,212603,60,217642,0,221339,60,226378,0,230243,
60,235114,0,238979,60,243850,0,247715,60,252586,0,256451,60,261490,0,265187,60,270226,0,273923,60,278962,0,282827,60,287698,0,291563,60,296434,0,300299,60,305338,0,309035,60,314074,0,317771,60,322810,0,326003,60,331714,0,334739,60,340450,0,343475,60,349186,0,352379,60,358090,0,361115,60,366826,0,369851,60,375562,0,378587,60,384298,0,387323,60,393034,0,396059,60,401770,0,404963,60,410674,0,413699,60,419410,0,422435,60,428146,0,431171,60,436882,0,439907,60,445618,0,448811,60,454522,0,457547,60,463258,
0,466283,60,471994,0,475019,60,480730,0,483755,60,489466,0,492491,60,498202,0,501395,60,507106,0,510131,60,515842,0,518867,60,524578,0,527603,60,533314,0,536339,60,542050,0,545243,60,550954,0,553979,60,559690,0,562715,60,568426,0,571451,60,577162,0,580187,60,585898,0,588923,60,594634,0]},asiaCalcutta:{id:"Asia/Calcutta",names:["GMT+5:30","India Standard Time"],names_ext:{STD_LONG_NAME_GMT:"GMT+05:30",STD_GENERIC_LOCATION:"India Time"},std_offset:330,transitions:[]}};var yBa=(new Date).getTimezoneOffset();var dYc={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},AG=dYc;AG=dYc;var eYc=RegExp("^((?:[-+]\\d*)?\\d{4})(?:(?:-?(\\d{2})(?:-?(\\d{2}))?)|(?:-?(\\d{3}))|(?:-?W(\\d{2})(?:-?([1-7]))?))?$"),fYc=/^(\d{2})(?::?(\d{2})(?::?(\d{2})(\.\d+)?)?)?$/,gYc=/Z|(?:([-+])(\d{2})(?::?(\d{2}))?)$/,hYc=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},iYc=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},BG=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)};h=BG.prototype;
h.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("")};h.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};h.clone=function(){return new BG(this.years,this.months,this.days,this.hours,this.minutes,this.seconds)};
h.isZero=function(){return this.years==0&&this.months==0&&this.days==0&&this.hours==0&&this.minutes==0&&this.seconds==0};h.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 Bm=function(a,b,c){typeof a==="number"?(this.date=jYc(a,b||0,c||1),kYc(this,c||1)):gq(a)?(this.date=jYc(a.getFullYear(),a.getMonth(),a.getDate()),kYc(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),kYc(this,a))},jYc=function(a,b,c){b=new Date(a,b,c);a>=0&&a<100&&b.setFullYear(b.getFullYear()-1900);return b};h=Bm.prototype;h.firstDayOfWeek_=AG.FIRSTDAYOFWEEK;
h.firstWeekCutOffDay_=AG.FIRSTWEEKCUTOFFDAY;h.clone=function(){var a=new Bm(this.date);a.firstDayOfWeek_=this.firstDayOfWeek_;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};h.getFullYear=function(){return this.date.getFullYear()};h.getYear=function(){return this.getFullYear()};h.getMonth=function(){return this.date.getMonth()};h.getDate=function(){return this.date.getDate()};h.getTime=function(){return this.date.getTime()};h.getDay=function(){return this.date.getDay()};
h.getUTCFullYear=function(){return this.date.getUTCFullYear()};h.getUTCMonth=function(){return this.date.getUTCMonth()};h.getUTCDate=function(){return this.date.getUTCDate()};h.getUTCDay=function(){return this.date.getDay()};h.getUTCHours=function(){return this.date.getUTCHours()};h.getUTCMinutes=function(){return this.date.getUTCMinutes()};h.getFirstDayOfWeek=function(){return this.firstDayOfWeek_};var lYc=function(a){return hYc(a.getFullYear(),a.getMonth())};h=Bm.prototype;h.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
h.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};h.setFullYear=function(a){this.date.setFullYear(a)};h.setYear=function(a){this.setFullYear(a)};h.setMonth=function(a){this.date.setMonth(a)};h.setDate=function(a){this.date.setDate(a)};h.setTime=function(a){this.date.setTime(a)};h.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};h.setUTCMonth=function(a){this.date.setUTCMonth(a)};h.setUTCDate=function(a){this.date.setUTCDate(a)};
h.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(hYc(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()),kYc(this,a.getDate()))};
h.toIsoString=function(a){var b=this.getFullYear(),c=b<0?"-":b>=1E4?"+":"";return[c+fD(Math.abs(b),c?6:4),fD(this.getMonth()+1,2),fD(this.getDate(),2)].join(a?"-":"")};h.equals=function(a){return!(!a||this.getYear()!=a.getYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};h.toString=function(){return this.toIsoString()};var kYc=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};Bm.prototype.valueOf=function(){return this.date.valueOf()};
var Dm=function(a,b,c,d,e,f,g){this.date=typeof a==="number"?new Date(a,b||0,c||1,d||0,e||0,f||0,g||0):new Date(a&&a.getTime?a.getTime():Date.now())};Ww(Dm,Bm);h=Dm.prototype;h.getHours=function(){return this.date.getHours()};h.getMinutes=function(){return this.date.getMinutes()};h.getSeconds=function(){return this.date.getSeconds()};h.getMilliseconds=function(){return this.date.getMilliseconds()};h.getUTCDay=function(){return this.date.getUTCDay()};h.getUTCHours=function(){return this.date.getUTCHours()};
h.getUTCMinutes=function(){return this.date.getUTCMinutes()};h.getUTCSeconds=function(){return this.date.getUTCSeconds()};h.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};h.setHours=function(a){this.date.setHours(a)};h.setMinutes=function(a){this.date.setMinutes(a)};h.setSeconds=function(a){this.date.setSeconds(a)};h.setMilliseconds=function(a){this.date.setMilliseconds(a)};h.setUTCHours=function(a){this.date.setUTCHours(a)};h.setUTCMinutes=function(a){this.date.setUTCMinutes(a)};
h.setUTCSeconds=function(a){this.date.setUTCSeconds(a)};h.setUTCMilliseconds=function(a){this.date.setUTCMilliseconds(a)};h.add=function(a){Bm.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)};
h.toIsoString=function(a){var b=Bm.prototype.toIsoString.call(this,a);return a?b+"T"+fD(this.getHours(),2)+":"+fD(this.getMinutes(),2)+":"+fD(this.getSeconds(),2):b+"T"+fD(this.getHours(),2)+fD(this.getMinutes(),2)+fD(this.getSeconds(),2)};h.equals=function(a){return this.getTime()==a.getTime()};h.toString=function(){return this.toIsoString()};h.clone=function(){var a=new Dm(this.date),b=this.getFirstDayOfWeek();a.firstDayOfWeek_=b;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};var yl=function(a){this.patternParts_=[];this.dateTimeSymbols_=AG;typeof a=="number"?this.applyStandardPattern_(a):this.applyPattern_(a)},mYc=[/^'(?:[^']|'')*('|$)/,/^(?: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]+/],nYc=function(a){return a.getHours?a.getHours():0};
yl.prototype.applyPattern_=function(a){for(oYc&&(a=a.replace(/\u200f/g,""));a;){for(var b=a,c=0;c<mYc.length;++c){var d=a.match(mYc[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("qc`"+a);}};
yl.prototype.format=function(a,b){if(!a)throw Error("rc");var c=b?(a.getTimezoneOffset()-bl(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 g=this.patternParts_[f].text;1==this.patternParts_[f].type?c.push(pYc(this,g,a,d,e,b)):c.push(g)}return c.join("")};
yl.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 CG=function(a,b){return w9a(b,a.dateTimeSymbols_)},oYc=!1,w9a=function(a,b){a=String(a);b=b||AG;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("")},rYc=function(a,b,c,d){c=c.getFullYear();c<=0&&d&&(c=1-c);return CG(a,qYc(c,b))},qYc=function(a,b){b==2&&(a%=100);a<0&&b++;return fD(a,b)},DG=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("sc");},sYc=function(a,
b){DG(b);b=nYc(b);return a.dateTimeSymbols_.AMPMS[b>=12&&b<24?1:0]},pYc=function(a,b,c,d,e,f){var g=b.length;switch(b.charAt(0)){case "G":return c=d.getFullYear()>0?1:0,g>=4?a.dateTimeSymbols_.ERANAMES[c]:a.dateTimeSymbols_.ERAS[c];case "y":return rYc(a,g,d,!0);case "Y":return c=d.getFullYear(),e=d.getMonth(),c=iYc(c,e,d.getDate(),a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),c=(new Date(c)).getFullYear(),g==2&&(c%=100),CG(a,qYc(c,g));case "u":return rYc(a,g,d,!1);case "M":a:switch(c=
d.getMonth(),g){case 5:g=a.dateTimeSymbols_.NARROWMONTHS[c];break a;case 4:g=a.dateTimeSymbols_.MONTHS[c];break a;case 3:g=a.dateTimeSymbols_.SHORTMONTHS[c];break a;default:g=CG(a,fD(c+1,g))}return g;case "k":return DG(e),c=nYc(e)||24,CG(a,fD(c,g));case "S":return CG(a,(e.getMilliseconds()/1E3).toFixed(Math.min(3,g)).slice(2)+(g>3?fD(0,g-3):""));case "E":return c=d.getDay(),g>=4?a.dateTimeSymbols_.WEEKDAYS[c]:a.dateTimeSymbols_.SHORTWEEKDAYS[c];case "a":return sYc(a,e);case "b":return sYc(a,e);case "B":return sYc(a,
e);case "h":return DG(e),c=nYc(e)%12||12,CG(a,fD(c,g));case "K":return DG(e),c=nYc(e)%12,CG(a,fD(c,g));case "H":return DG(e),c=nYc(e),CG(a,fD(c,g));case "c":a:switch(c=d.getDay(),g){case 5:g=a.dateTimeSymbols_.STANDALONENARROWWEEKDAYS[c];break a;case 4:g=a.dateTimeSymbols_.STANDALONEWEEKDAYS[c];break a;case 3:g=a.dateTimeSymbols_.STANDALONESHORTWEEKDAYS[c];break a;default:g=CG(a,fD(c,1))}return g;case "L":a:switch(c=d.getMonth(),g){case 5:g=a.dateTimeSymbols_.STANDALONENARROWMONTHS[c];break a;case 4:g=
a.dateTimeSymbols_.STANDALONEMONTHS[c];break a;case 3:g=a.dateTimeSymbols_.STANDALONESHORTMONTHS[c];break a;default:g=CG(a,fD(c+1,g))}return g;case "Q":return c=Math.floor(d.getMonth()/3),g<4?a.dateTimeSymbols_.SHORTQUARTERS[c]:a.dateTimeSymbols_.QUARTERS[c];case "d":return CG(a,fD(d.getDate(),g));case "m":return DG(e),CG(a,fD(e.getMinutes?e.getMinutes():0,g));case "s":return DG(e),CG(a,fD(e.getSeconds(),g));case "v":return(f||Qk(c.getTimezoneOffset())).timeZoneId_;case "V":return a=f||Qk(c.getTimezoneOffset()),
g<=2?a.timeZoneId_:cYc(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=iYc(c,d,e.getDate(),a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),CG(a,fD(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,
g));case "z":return a=f||Qk(c.getTimezoneOffset()),g<4?a.tzNames_[cYc(a,c)>0?2:0]:a.tzNames_[cYc(a,c)>0?3:1];case "Z":return d=f||Qk(c.getTimezoneOffset()),g<4?(g=-bl(d,c),a=[g<0?"-":"+"],g=Math.abs(g),a.push(fD(Math.floor(g/60)%100,2),fD(g%60,2)),g=a.join("")):g=CG(a,bYc(bl(d,c))),g;default:return""}};var tYc={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"}}},uYc=tYc;uYc=tYc;var vYc={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 wYc={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"},Xk=wYc;Xk=wYc;var EG=function(a){this.maximumIntegerDigits_=40;this.minimumIntegerDigits_=1;this.significantDigits_=0;this.maximumFractionDigits_=3;this.minExponentDigits_=this.minimumFractionDigits_=0;this.showTrailingZeros_=this.useSignForPositiveExponent_=!1;this.positiveSuffix_=this.positivePrefix_="";this.negativePrefix_=Xk.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)},VBa=function(a,b){if(b>308)throw Error("vc`"+b);a.maximumFractionDigits_=b},XBa=function(a,b){if(a.minimumFractionDigits_>0&&b>=0)throw Error("uc");a.significantDigits_=b};
EG.prototype.applyPattern_=function(a){this.pattern_=a.replace(/ /g,"\u00a0");var b=[0];this.positivePrefix_=xYc(this,a,b);for(var c=b[0],d=-1,e=0,f=0,g=0,k=-1,m=a.length,r=!0;b[0]<m&&r;b[0]++)switch(a.charAt(b[0])){case "#":f>0?g++:e++;k>=0&&d<0&&k++;break;case "0":if(g>0)throw Error("Cc`"+a);f++;k>=0&&d<0&&k++;break;case ",":k>0&&this.groupingArray_.push(k);k=0;break;case ".":if(d>=0)throw Error("Dc`"+a);d=e+f+g;break;case "E":if(this.useExponentialNotation_)throw Error("Ec`"+a);this.useExponentialNotation_=
!0;this.minExponentDigits_=0;b[0]+1<m&&a.charAt(b[0]+1)=="+"&&(b[0]++,this.useSignForPositiveExponent_=!0);for(;b[0]+1<m&&a.charAt(b[0]+1)=="0";)b[0]++,this.minExponentDigits_++;if(e+f<1||this.minExponentDigits_<1)throw Error("Fc`"+a);r=!1;break;default:b[0]--,r=!1}f==0&&e>0&&d>=0&&(f=d,f==0&&f++,g=e-f,e=f-1,f=1);if(d<0&&g>0||d>=0&&(d<e||d>e+f)||k==0)throw Error("Gc`"+a);g=e+f+g;this.maximumFractionDigits_=d>=0?g-d:0;d>=0&&(this.minimumFractionDigits_=e+f-d,this.minimumFractionDigits_<0&&(this.minimumFractionDigits_=
0));this.minimumIntegerDigits_=(d>=0?d:g)-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==g;c=b[0]-c;this.positiveSuffix_=xYc(this,a,b);b[0]<a.length&&a.charAt(b[0])==";"?(b[0]++,this.multiplier_!=1&&(this.negativePercentSignExpected_=!0),this.negativePrefix_=xYc(this,a,b),b[0]+=c,
this.negativeSuffix_=xYc(this,a,b)):(this.negativePrefix_+=this.positivePrefix_,this.negativeSuffix_+=this.positiveSuffix_)};
EG.prototype.applyStandardPattern_=function(a){switch(a){case 1:this.applyPattern_(Xk.DECIMAL_PATTERN);break;case 2:this.applyPattern_(Xk.SCIENTIFIC_PATTERN);break;case 3:this.applyPattern_(Xk.PERCENT_PATTERN);break;case 4:a=this.applyPattern_;var b=Xk.CURRENCY_PATTERN;var c=["0"],d=vYc[Xk.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:yYc(this,1);break;case 6:yYc(this,2);break;default:throw Error("wc");
}};var yYc=function(a,b){a.compactStyle_=b;a.applyPattern_(Xk.DECIMAL_PATTERN);a.minimumFractionDigits_=0;VBa(a,2);XBa(a,2)};
EG.prototype.parse=function(a,b){b=b||[0];if(this.compactStyle_!==0)throw Error("xc");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(Xk.INFINITY,b[0])==b[0]){b[0]+=Xk.INFINITY.length;var e=Infinity}else{e=
a;var f=!1,g=!1,k=!1,m=-1,r=1,w=Xk.DECIMAL_SEP,x=Xk.GROUP_SEP,D=Xk.EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("yc");x=x.replace(/\u202f/g,"\u00a0");for(var H="";b[0]<e.length;b[0]++){var J=e.charAt(b[0]),O=zYc(J);if(O>=0&&O<=9)H+=O,k=!0;else if(J==w.charAt(0)){if(f||g)break;H+=".";f=!0}else if(J==x.charAt(0)&&("\u00a0"!=x.charAt(0)||b[0]+1<e.length&&zYc(e.charAt(b[0]+1))>=0)){if(f||g)break}else if(J==D.charAt(0)){if(g)break;H+="E";g=!0;m=b[0]}else if(J=="+"||J=="-"){if(k&&m!=b[0]-1)break;H+=
J}else if(this.multiplier_==1&&J==Xk.PERCENT.charAt(0)){if(r!=1)break;r=100;if(k){b[0]++;break}}else if(this.multiplier_==1&&J==Xk.PERMILL.charAt(0)){if(r!=1)break;r=1E3;if(k){b[0]++;break}}else break}this.multiplier_!=1&&(r=this.multiplier_);e=parseFloat(H)/r}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};
EG.prototype.format=function(a){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("zc");if(isNaN(a))return Xk.NAN;var b=[];var c=a;if(this.compactStyle_==0)c=AYc;else{c=Math.abs(c);var d=BYc(this,c<=1?0:CYc(c)).divisorBase;c=BYc(this,d+CYc(DYc(this,FG(c,-d)).intValue))}a=FG(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)EYc(this,e,this.minimumIntegerDigits_,b),FYc(this,0,b);else{var f=Math.floor(Math.log(e)/Math.log(10)+2E-15);e=FG(e,-f);var g=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(g=f%this.maximumIntegerDigits_,g<0&&(g=this.maximumIntegerDigits_+g),e=FG(e,g),f-=g,g=1):this.minimumIntegerDigits_<1?(f++,e=FG(e,-1)):(f-=this.minimumIntegerDigits_-1,e=FG(e,this.minimumIntegerDigits_-
1));EYc(this,e,g,b);FYc(this,f,b)}}else EYc(this,a,this.minimumIntegerDigits_,b);else b.push(Xk.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 DYc=function(a,b){var c=FG(b,a.maximumFractionDigits_);a.significantDigits_>0&&(c=GYc(c,a.significantDigits_,a.maximumFractionDigits_));c=Math.round(c);if(isFinite(c)){var d=Math.floor(FG(c,-a.maximumFractionDigits_));c=Math.floor(c-FG(d,a.maximumFractionDigits_));if(c<0||c>=FG(1,a.maximumFractionDigits_))d=Math.round(b),c=0}else d=b,c=0;return{intValue:d,fracValue:c}},EYc=function(a,b,c,d){if(a.minimumFractionDigits_>a.maximumFractionDigits_)throw Error("zc");d||(d=[]);b=DYc(a,b);var e=b.intValue,
f=b.fracValue,g=e==0?0:CYc(e)+1,k=a.minimumFractionDigits_>0||f>0||a.showTrailingZeros_&&g<a.significantDigits_;b=a.minimumFractionDigits_;k&&(b=a.showTrailingZeros_&&a.significantDigits_>0?a.significantDigits_-g:a.minimumFractionDigits_);var m="";for(g=e;g>1E20;)m="0"+m,g=Math.round(FG(g,-1));m=g+m;var r=Xk.DECIMAL_SEP;g=Xk.ZERO_DIGIT.codePointAt(0);var w=m.length,x=0;if(e>0||c>0){for(e=w;e<c;e++)d.push(String.fromCodePoint(g));if(a.groupingArray_.length>=2)for(c=1;c<a.groupingArray_.length;c++)x+=
a.groupingArray_[c];c=w-x;if(c>0){e=a.groupingArray_;x=w=0;for(var D,H=Xk.GROUP_SEP,J=m.length,O=0;O<J;O++)if(d.push(String.fromCodePoint(g+Number(m.charAt(O)))),J-O>1)if(D=e[x],O<c){var R=c-O;(D===1||D>0&&R%D===1)&&d.push(H)}else x<e.length&&(O===c?x+=1:D===O-c-w+1&&(d.push(H),w+=D,x+=1))}else{c=m;m=a.groupingArray_;e=Xk.GROUP_SEP;D=c.length;H=[];for(w=m.length-1;w>=0&&D>0;w--){x=m[w];for(J=0;J<x&&D-J-1>=0;J++)H.push(String.fromCodePoint(g+Number(c.charAt(D-J-1))));D-=x;D>0&&H.push(e)}d.push.apply(d,
H.reverse())}}else k||d.push(String.fromCodePoint(g));(a.decimalSeparatorAlwaysShown_||k)&&d.push(r);f=String(f);k=f.split("e+");k.length==2&&(f=String(GYc(parseFloat(k[0]),a.significantDigits_,1)),f=f.replace(".",""),f+="0".repeat(parseInt(k[1],10)-f.length+1));a.maximumFractionDigits_+1>f.length&&(f="1"+"0".repeat(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(g+Number(f.charAt(b))))},FYc=function(a,b,c){c.push(Xk.EXP_SYMBOL);
b<0?(b=-b,c.push(Xk.MINUS_SIGN)):a.useSignForPositiveExponent_&&c.push(Xk.PLUS_SIGN);b=""+b;for(var d=Xk.ZERO_DIGIT,e=b.length;e<a.minExponentDigits_;e++)c.push(d);a=d.codePointAt(0)-HYc;for(d=0;d<b.length;d++)c.push(String.fromCodePoint(a+b.codePointAt(d)))},zYc=function(a){a=a.codePointAt(0);if(48<=a&&a<58)return a-48;var b=Xk.ZERO_DIGIT.codePointAt(0);return b<=a&&a<b+10?a-b:-1},HYc="0".codePointAt(0),xYc=function(a,b,c){for(var d="",e=!1,f=b.length;c[0]<f;c[0]++){var g=b.charAt(c[0]);if(g=="'")c[0]+
1<f&&b.charAt(c[0]+1)=="'"?(c[0]++,d+="'"):e=!e;else if(e)d+=g;else switch(g){case "#":case "0":case ",":case ".":case ";":return d;case "\u00a4":c[0]+1<f&&b.charAt(c[0]+1)=="\u00a4"?(c[0]++,d+=Xk.DEF_CURRENCY_CODE):(g=Xk.DEF_CURRENCY_CODE,d+=g in vYc?vYc[g][1]:g);break;case "%":if(!a.negativePercentSignExpected_&&a.multiplier_!=1)throw Error("Ac");if(a.negativePercentSignExpected_&&a.multiplier_!=100)throw Error("Bc");a.multiplier_=100;a.negativePercentSignExpected_=!1;d+=Xk.PERCENT;break;case "\u2030":if(!a.negativePercentSignExpected_&&
a.multiplier_!=1)throw Error("Ac");if(a.negativePercentSignExpected_&&a.multiplier_!=1E3)throw Error("Bc");a.multiplier_=1E3;a.negativePercentSignExpected_=!1;d+=Xk.PERMILL;break;default:d+=g}}return d},AYc={divisorBase:0,negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},BYc=function(a,b){a=a.compactStyle_==1?uYc.COMPACT_DECIMAL_SHORT_PATTERN:uYc.COMPACT_DECIMAL_LONG_PATTERN;a==null&&(a=uYc.COMPACT_DECIMAL_SHORT_PATTERN);if(b<3)return AYc;b=Math.min(14,b);var c=a[FG(1,b)];for(--b;!c&&b>=
3;)c=a[FG(1,b)],b--;if(!c)return AYc;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]}:AYc:AYc},CYc=function(a){if(!isFinite(a))return a>0?a:0;for(var b=0;(a/=10)>=1;)b++;return b},FG=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))},IYc=function(a,b){return a&&isFinite(a)?FG(Math.round(FG(a,b)),-b):a},GYc=function(a,b,c){if(!a)return a;b=b-CYc(a)-1;return b<-c?IYc(a,-c):IYc(a,b)};var CCa=Math.sqrt(50),DCa=Math.sqrt(10),ECa=Math.sqrt(2),FBa={1:{key:"1",coef:1,base:1},"%":{key:"%",suffix:"%",coef:.01,base:4},ratio:{key:"ratio",coef:1,base:4},"10^2":{key:"10^2",suffix:"\u00b7100",coef:100,base:4},s:{key:"s",suffix:"s",coef:1,base:5},min:{key:"min",suffix:"min",coef:60,base:5},h:{key:"h",suffix:"h",coef:3600,base:5},d:{key:"d",suffix:"d",coef:86400,base:5},w:{key:"w",suffix:"w",coef:604800,base:5},By:{key:"By",suffix:"B",coef:1,base:2,scale:2},"\u00a2":{key:"\u00a2",suffix:"\u00a2",
coef:.01,base:3},$:{key:"$",prefix:"$",coef:1,base:3}},JYc={1:["count","load","Count","Cycles"],"%":["whole_percent"],"10^2.%":["percent"],s:["second","seconds"],min:["minute","minutes"],h:["hour","hours"],d:["day","days"],By:["byte","bytes","BY","by"],kBy:["KB","KBy","kB"],MBy:["MB"],GBy:["GB"],TBy:["TB"],KiBy:"kilobyte kilobytes kibibyte kibibytes Ki KIB".split(" "),MiBy:"megabyte megabytes mebibyte mebibytes Mi MIB".split(" "),GiBy:"gigabyte gigabytes gibibyte gibibytes Gi GIB".split(" "),TiBy:"terabyte terabytes tebibyte tebibytes Ti TIB".split(" "),
$:["us_dollar","USD"],"\u00a2":["us_cent"]},JBa=Object.keys(JYc).reduce(function(a,b){for(var c=l(JYc[b]),d=c.next();!d.done;d=c.next())a[d.value]=b;return a},{}),GBa={y:{coef:1E-24,scale:1},z:{coef:1E-21,scale:1},a:{coef:1E-18,scale:1},f:{coef:1E-15,scale:1},p:{coef:1E-12,scale:1},n:{coef:1E-9,scale:1},u:{coef:1E-6,scale:1},m:{coef:.001,scale:1},k:{coef:1E3,scale:1},K:{coef:1E3,scale:1},M:{coef:1E6,scale:1},G:{coef:1E9,scale:1},T:{coef:1E12,scale:1},P:{coef:1E15,scale:1},E:{coef:1E18,scale:1},Z:{coef:1E21,
scale:1},Y:{coef:1E24,scale:1},Ki:{coef:1024,scale:2},Mi:{coef:1048576,scale:2},Gi:{coef:1073741824,scale:2},Ti:{coef:1099511627776,scale:2},Pi:{coef:0x4000000000000,scale:2},Ei:{coef:0x1000000000000000,scale:2},Zi:{coef:1.1805916207174113E21,scale:2},Yi:{coef:1.2089258196146292E24,scale:2}},GG={},LBa=(GG["1,1"]="1kMGTPEZY".split(""),GG["1,2"]="By kBy MBy GBy TBy PBy EBy ZBy YBy".split(" "),GG["2,2"]="By KiBy MiBy GiBy TiBy PiBy EiBy ZiBy YiBy".split(" "),GG["1,3"]="\u00a2 $ k$ M$ G$ T$ P$ E$ Z$ Y$".split(" "),
GG["1,4"]=["%","ratio"],GG["1,5"]="ys zs as fs ps ns us ms s min h d w".split(" "),GG),KYc=Object.keys(GBa).map(BBa).join("|"),LYc=Object.keys(FBa).map(BBa).join("|"),EBa=new RegExp("^("+KYc+")?("+LYc+")?$"),hCa={neverScaleRates:!0,idealMaxMagnitude:1,idealMinMagnitude:0,countPrefixMaxMagnitude:Math.log10(1E12),countPrefixMinMagnitude:Math.log10(1)},WBa=new EG(1),YBa=new EG(2);XBa(YBa,3);var ZBa=new EG("#,##0.00"),eCa=new yl(8);var MYc={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"},HG=MYc;HG=MYc;var al={WEEKLY:6048E5,DAILY:864E5,QUARTER_DAY:216E5,TWO_HOURLY:72E5,HOURLY:36E5,HALF_HOURLY:18E5,TEN_MINUTES:6E5,FIVE_MINUTES:3E5,ONE_MINUTE:6E4,THIRTY_SECONDS:3E4,TEN_SECONDS:1E4,ONE_SECOND:1E3,HUNDRED_MILLIS:100,TEN_MILLIS:10,ONE_MILLI:1},tCa=Object.values(al),IG={},wCa=(IG[al.WEEKLY]=new yl(2),IG[al.DAILY]=new yl(HG.MONTH_DAY_ABBR),IG[al.QUARTER_DAY]=new yl(7),IG[al.TWO_HOURLY]=new yl(7),IG[al.HOURLY]=new yl(7),IG[al.HALF_HOURLY]=new yl(7),IG[al.TEN_MINUTES]=new yl(7),IG[al.FIVE_MINUTES]=new yl(7),
IG[al.ONE_MINUTE]=new yl(7),IG[al.THIRTY_SECONDS]=new yl(6),IG[al.TEN_SECONDS]=new yl(6),IG[al.ONE_SECOND]=new yl(6),IG[al.HUNDRED_MILLIS]=new yl("HH:mm:ss.SSS"),IG[al.TEN_MILLIS]=new yl("HH:mm:ss.SSS"),IG[al.ONE_MILLI]=new yl("HH:mm:ss.SSS"),IG);new yl(2);new yl(HG.MONTH_DAY_ABBR);new yl("HH:mm");new yl("HH:mm");new yl("HH:mm");new yl("HH:mm");new yl("HH:mm");new yl("HH:mm");new yl("HH:mm");new yl("HH:mm:ss");new yl("HH:mm:ss");new yl("HH:mm:ss");new yl("HH:mm:ss.SSS");new yl("HH:mm:ss.SSS");new yl("HH:mm:ss.SSS");
var JG={},vCa=(JG[al.DAILY]=new yl(HG.YEAR_FULL),JG[al.QUARTER_DAY]=new yl(HG.MONTH_DAY_ABBR),JG[al.TWO_HOURLY]=new yl(HG.MONTH_DAY_ABBR),JG[al.HOURLY]=new yl(HG.MONTH_DAY_ABBR),JG[al.HALF_HOURLY]=new yl(HG.MONTH_DAY_ABBR),JG[al.TEN_MINUTES]=new yl(HG.MONTH_DAY_ABBR),JG[al.FIVE_MINUTES]=new yl(HG.MONTH_DAY_ABBR),JG[al.ONE_MINUTE]=new yl(HG.MONTH_DAY_ABBR),JG[al.THIRTY_SECONDS]=new yl(HG.MONTH_DAY_ABBR),JG[al.TEN_SECONDS]=new yl(HG.MONTH_DAY_ABBR),JG[al.ONE_SECOND]=new yl(HG.MONTH_DAY_ABBR),JG[al.HUNDRED_MILLIS]=
new yl("HH:mm:ss.SSS"),JG[al.TEN_MILLIS]=new yl("HH:mm:ss.SSS"),JG[al.ONE_MILLI]=new yl("HH:mm:ss.SSS"),JG);new yl("yyyy-MM-dd");new yl("MM-dd");new yl("HH:mm");new yl("HH:mm");new yl("HH:mm");new yl("HH:mm");new yl("HH:mm");new yl("HH:mm");new yl("HH:mm");new yl("HH:mm:ss");new yl("HH:mm:ss");new yl("HH:mm:ss");new yl("HH:mm:ss.SSS");new yl("HH:mm:ss.SSS");new yl("HH:mm:ss.SSS");new yl(HG.YEAR_FULL);new yl("MM-dd");new yl("MM-dd");new yl("MM-dd");new yl("MM-dd");new yl("MM-dd");new yl("MM-dd");new yl("MM-dd");
new yl("MM-dd");new yl("MM-dd");new yl("MM-dd");new yl("HH:mm:ss.SSS");new yl("HH:mm:ss.SSS");new yl("HH:mm:ss.SSS");var NYc={format:Yk,ignoreFloatImprecision:!1};var KG=function(){this.valueStrategyRegistry=new Map},OYc=function(a,b,c){var d=a.valueStrategyRegistry.get(b.chartId);d?d.next(c):(d=new Xj(c),a.valueStrategyRegistry.set(b.chartId,d))};KG.prototype.getValueStrategy=function(a){var b=this.valueStrategyRegistry.get(a.chartId);b||(b=new Xj(NYc),this.valueStrategyRegistry.set(a.chartId,b));return b.pipe(of())};var PYc=function(a,b,c){var d=a.valueStrategyRegistry.get(b);d&&(d.pipe(mf(1)).subscribe(function(e){OYc(a,{chartId:c},e)}),a.valueStrategyRegistry.delete(b))};
KG.\u0275fac=function(a){return new (a||KG)};KG.\u0275prov=Cc({token:KG,factory:KG.\u0275fac,providedIn:"root"});var QYc=new bd("TOOLTIP_POSITION"),RYc=new bd("TOOLTIP_VISIBLE_ON_OVERLAY_HOVER"),SYc=new bd("TOOLTIP_MOCK_REQUEST_ANIMATION_FRAME"),TYc=new bd("TOOLTIP_RENDER_DEBOUNCE_MS");var UYc=[{style:"alert",color:"var(--ac-sys-color-status-error, #d93025)",icon:"alert"},{style:"warning",color:"var(--ac-sys-color-status-warning, #e37400)",icon:"warning"},{style:"comment",color:"var(--ac-sys-color-status-info, #3367D6)",icon:"topic"},{style:"info",color:"var(--ac-sys-color-status-default, #757575)",icon:"info"},{style:"error",color:"var(--ac-sys-color-status-error, #d93025)",icon:"error"}],VYc=new Map([["warning","M 9.3731 4.5 C 10.5338 2.4688 13.4626 2.4688 14.6233 4.5 L 21.5073 16.5469 C 22.6591 18.5625 21.2038 21.0705 18.8822 21.0705 H 5.1142 C 2.7927 21.0705 1.3373 18.5625 2.4891 16.5469 L 9.3731 4.5 Z M 10.4866 13.5117 H 13.5101 V 7.4648 H 10.4866 V 13.5117 Z M 13.5101 18.047 H 10.4866 V 15.0235 H 13.5101 V 18.047 Z"],
["alert","M 14 19.3333 H 10 C 10 20.7999 10.9 21.9999 12 21.9999 C 13.1 21.9999 14 20.7999 14 19.3333 Z M 13.3269 3.4654 C 16.373 4.0806 18.6666 6.7724 18.6666 10 V 15.3277 L 19.9999 16.661 V 17.9999 H 4 V 16.661 L 5.3333 15.3277 V 10 C 5.3333 6.7724 7.6269 4.0806 10.673 3.4654 C 10.6688 3.4219 10.6666 3.3779 10.6666 3.3333 C 10.6666 2.5969 11.2636 2 12 2 C 12.7363 2 13.3333 2.5969 13.3333 3.3333 C 13.3333 3.3779 13.3311 3.4219 13.3269 3.4654 Z"],["topic","M 5.5715 4 C 4.1572 4 3.0128 5.1572 3.0128 6.5715 L 3 22 L 6.8572 18.1428 H 18.4286 C 19.8428 18.1428 21 16.9857 21 15.5714 V 6.5715 C 21 5.1572 19.8428 4 18.4286 4 H 5.5715 Z M 6.8572 9.1428 V 7.8572 H 17.1428 V 9.1428 H 6.8572 Z M 6.8572 11.7143 V 10.4286 H 17.1428 V 11.7143 H 6.8572 Z M 6.8572 14.2857 V 13 H 13.2857 V 14.2857 H 6.8572 Z"],
["info","M 12 21 C 16.9705 21 21 16.9705 21 12 C 21 7.0295 16.9705 3 12 3 C 7.0295 3 3 7.0295 3 12 C 3 16.9705 7.0295 21 12 21 Z M 13.2857 10.7143 V 17.1428 H 10.7143 V 10.7143 H 13.2857 Z M 13.2857 9.4285 V 6.8572 H 10.7143 V 9.4285 H 13.2857 Z"],["insights","M3 20q-.825 0-1.412-.587Q1 18.825 1 18q0-.825.588-1.413Q2.175 16 3 16h.263q.112 0 .237.05l4.55-4.55Q8 11.375 8 11.262V11q0-.825.588-1.413Q9.175 9 10 9t1.413.587Q12 10.175 12 11q0 .05-.05.5l2.55 2.55q.125-.05.238-.05h.524q.113 0 .238.05l3.55-3.55q-.05-.125-.05-.238V10q0-.825.587-1.413Q20.175 8 21 8q.825 0 1.413.587Q23 9.175 23 10q0 .825-.587 1.412Q21.825 12 21 12h-.262q-.113 0-.238-.05l-3.55 3.55q.05.125.05.238V16q0 .825-.587 1.413Q15.825 18 15 18q-.825 0-1.412-.587Q13 16.825 13 16v-.262q0-.113.05-.238l-2.55-2.55q-.125.05-.238.05H10q-.05 0-.5-.05L4.95 17.5q.05.125.05.238V18q0 .825-.588 1.413Q3.825 20 3 20ZM4 9.975l-.625-1.35L2.025 8l1.35-.625L4 6.025l.625 1.35L5.975 8l-1.35.625ZM15 9l-.95-2.05L12 6l2.05-.95L15 3l.95 2.05L18 6l-2.05.95Z"],
["error","M 12 3 C 7.0295 3 3 7.0295 3 12 C 3 16.9705 7.0295 21 12 21 C 16.9705 21 21 16.9705 21 12 C 21 7.0295 16.9705 3 12 3 Z M 10.7143 13.2857 V 6.8572 H 13.2857 V 13.2857 H 10.7143 Z M 10.7143 14.5715 V 17.1428 H 13.2857 V 14.5715 H 10.7143 Z"]]),WYc=["left","right"],XYc=["chart_group","bottom","ops_group"],YYc=new bd("AC_USE_MINIMUM_CANVASES");var KCa=Math.log10(1E12),LCa=Math.log10(1);var LG=function(a,b){this.store=a;this.formatterService=b;this.factoryRegistry=new Map;this.xAxisTickStrategyRegistry=new Map;this.yAxisTickStrategyRegistry=new Map;this.categoricalAxisTickStrategyRegistry=new Map},ZYc=function(a,b){var c=a.factoryRegistry.get(b);c||(c={selectors:new Map,selections:new Map},a.factoryRegistry.set(b,c));return c};
LG.prototype.getSelector=function(a,b){var c=this,d=ZYc(this,a),e=a.getKey(b),f=d.selectors.get(e);f||(f=oia(function(){var g=new rf;return{selectorObservable:a.getSelector(b,c),destroyed:g,unsubscribe:function(){d.selectors.delete(e);g.next();g.complete()}}},function(g){var k=new vf(1);g.selectorObservable.pipe(Af(g.destroyed)).subscribe(function(m){k.next(m)});return k}).pipe(wf({refCount:!0,bufferSize:1})),d.selectors.set(e,f));return f};
LG.prototype.getSelection=function(a,b){var c=this,d=ZYc(this,a),e=a.getKey(b),f=d.selections.get(e);f||(f=this.getSelector(a,b).pipe(zf(function(g){return c.store.pipe(lk(g))})),d.selections.set(e,f));return f};
var $Yc=function(a,b,c){b=b.chartId+","+b.yAxisId;var d=a.yAxisTickStrategyRegistry.get(b);d?d.next(c):(d=new Xj(c),a.yAxisTickStrategyRegistry.set(b,d))},aZc=function(a,b){b=b.chartId+","+b.yAxisId;var c=a.yAxisTickStrategyRegistry.get(b);c||(c=new Xj(MCa),a.yAxisTickStrategyRegistry.set(b,c));return c.pipe(of())},bZc=function(a,b,c){b=Pk(b.chartGroupId,b.chartId,b.xAxisId);var d=a.xAxisTickStrategyRegistry.get(b);d?d.next(c):(d=new Xj(c),a.xAxisTickStrategyRegistry.set(b,d))},cZc=function(a,b){b=
Pk(b.chartGroupId,b.chartId,b.xAxisId);var c=a.xAxisTickStrategyRegistry.get(b);c||(c=new Xj(xCa),a.xAxisTickStrategyRegistry.set(b,c));return c.pipe(of())},dZc=function(a,b,c,d){b=Pk(b.chartGroupId,b.chartId,b.xAxisId);var e=a.categoricalAxisTickStrategyRegistry.get(b);c={strategy:c,options:d};e?e.next(c):(e=new Xj(c),a.categoricalAxisTickStrategyRegistry.set(b,e))},eZc=function(a,b){b=Pk(b.chartGroupId,b.chartId,b.xAxisId);var c=a.categoricalAxisTickStrategyRegistry.get(b);c||(c=new Xj({strategy:zCa}),
a.categoricalAxisTickStrategyRegistry.set(b,c));return c.pipe(of(function(d,e){if(d.strategy!==e.strategy)return!1;if(d.options===e.options)return!0;if(!d.options||!e.options)return!1;var f,g;return Mba((f=d.options.customOrder)!=null?f:[],(g=e.options.customOrder)!=null?g:[])}))};LG.prototype.getValueStrategy=function(a){return this.formatterService.getValueStrategy(a)};
var YXc=function(a,b){var c=b.previousValue,d=b.currentValue;if((c==null?0:c.chartGroupId)&&(c==null?0:c.chartId)&&(d==null?0:d.chartGroupId)&&(d==null?0:d.chartId)&&(c.chartGroupId!==d.chartGroupId||c.chartId!==d.chartId)){b=l(XYc);for(var e=b.next(),f={};!e.done;f={xAxisId$jscomp$3:void 0},e=b.next())f.xAxisId$jscomp$3=e.value,(e=a.xAxisTickStrategyRegistry.get(Pk(c.chartGroupId,c.chartId,f.xAxisId$jscomp$3)))&&e.pipe(mf(1)).subscribe(function(g){return function(k){bZc(a,{chartGroupId:d.chartGroupId,
chartId:d.chartId,xAxisId:g.xAxisId$jscomp$3},k)}}(f));b=l(WYc);e=b.next();for(f={};!e.done;f={yAxisId$jscomp$3:void 0},e=b.next())f.yAxisId$jscomp$3=e.value,(e=a.yAxisTickStrategyRegistry.get(c.chartId+","+f.yAxisId$jscomp$3))&&e.pipe(mf(1)).subscribe(function(g){return function(k){$Yc(a,{chartId:d.chartId,yAxisId:g.yAxisId$jscomp$3},k)}}(f));PYc(a.formatterService,c.chartId,d.chartId)}};LG.\u0275fac=function(a){return new (a||LG)(Wc(eG),Wc(KG))};LG.\u0275prov=Cc({token:LG,factory:LG.\u0275fac,providedIn:"root"});var MG={chartGroupId:"",axis:0,panning:!1,brushing:!1,xPos:null,xPosStart:null,yAxes:[],chartId:null};var fZc=gk("[AC] Set project id for chart",hk()),gZc=gk("[AC] Set y axis orientation for chart",hk());var hZc=gk("[AC] Update chart dimensions",hk()),NG=gk("[AC] Set chart margin requirement",hk()),iZc=gk("[AC] Remove chart margin requirements",hk()),jZc=gk("[AC] Set margins strategy to use max chart group margins",hk());var kZc=gk("[AC] Set Y Axis requirement",hk()),lZc=gk("[AC] Set Y Axis label",hk()),mZc=gk("[AC] Remove Y Axis requirements by priority",hk()),nZc=gk("[AC] Remove Y Axis requirement by id",hk()),oZc=gk("[AC] Set for Y Axis",hk());var pZc,qZc=pZc=pZc=NCa;var rZc,sZc=rZc=rZc=OCa;var em=function(a){this.pattern_=a;this.parsedPattern_=this.literals_=this.initialLiterals_=null;a=Xk;var b=uYc;if(tZc!==a||uZc!==b)tZc=a,uZc=b,vZc=new EG(1);this.numberFormatter_=vZc},tZc=null,uZc=null,vZc=null,wZc=RegExp("'([{}#].*?)'","g"),xZc=RegExp("''","g");em.prototype.format=function(a){return this.format_(a,!1)};
em.prototype.format_=function(a,b){if(this.pattern_){this.initialLiterals_=[];var c=yZc(this,this.pattern_);this.parsedPattern_=zZc(this,c);this.pattern_=null}if(!this.parsedPattern_||this.parsedPattern_.length==0)return"";this.literals_=Ma(this.initialLiterals_);c=[];AZc(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 AZc=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 g=b[f].value;var k=a,m=e,r=c[g];r===void 0?m.push("Undefined parameter - "+g):(k.literals_.push(r),m.push(k.buildPlaceholder_(k.literals_)));break;case 2:g=b[f].value;k=a;m=c;r=d;var w=e,x=g.argumentIndex;m[x]===void 0?w.push("Undefined parameter - "+x):(x=g[m[x]],x===void 0&&(x=g.other),AZc(k,x,m,r,w));break;case 0:g=b[f].value;BZc(a,g,c,sZc,d,e);break;case 1:g=b[f].value,BZc(a,g,c,
qZc,d,e)}},BZc=function(a,b,c,d,e,f){var g=b.argumentIndex,k=b.argumentOffset,m=+c[g];isNaN(m)?f.push("Undefined or invalid parameter - "+g):(k=m-k,g=b[c[g]],g===void 0&&(d=d(Math.abs(k)),g=b[d],g===void 0&&(g=b.other)),b=[],AZc(a,g,c,e,b),c=b.join(""),e?f.push(c):(a=a.numberFormatter_.format(k),f.push(c.replace(/#/g,a))))},yZc=function(a,b){var c=a.initialLiterals_,d=a.buildPlaceholder_.bind(a);b=b.replace(xZc,function(){c.push("'");return d(c)});return b=b.replace(wZc,function(e,f){c.push(f);return d(c)})},
CZc=function(a){var b=0,c=[],d=[],e=/[{}]/g;e.lastIndex=0;for(var f;f=e.exec(a);){var g=f.index;f[0]=="}"?(c.pop(),c.length==0&&(f={type:1},f.value=a.substring(b,g),d.push(f),b=g+1)):(c.length==0&&(b=a.substring(b,g),b!=""&&d.push({type:0,value:b}),b=g+1),c.push("{"))}a=a.substring(b);a!=""&&d.push({type:0,value:a});return d},DZc=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,EZc=/^\s*(\w+)\s*,\s*selectordinal\s*,/,FZc=/^\s*(\w+)\s*,\s*select\s*,/,zZc=function(a,b){var c=[];b=CZc(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(DZc.test(f)?0:EZc.test(f)?1:FZc.test(f)?2:/^\s*\w+\s*/.test(f)?3:5){case 2:e.type=2;e.value=GZc(a,b[d].value);break;case 0:e.type=0;e.value=HZc(a,b[d].value);break;case 1:e.type=1;e.value=IZc(a,b[d].value);break;case 3:e.type=3,e.value=b[d].value}}c.push(e)}return c},GZc=function(a,b){var c="";b=b.replace(FZc,function(k,m){c=m;return""});var d={};d.argumentIndex=c;b=CZc(b);for(var e=0;e<
b.length;){var f=b[e].value;e++;var g=void 0;1==b[e].type&&(g=zZc(a,b[e].value));d[f.replace(/\s/g,"")]=g;e++}return d},HZc=function(a,b){var c="",d=0;b=b.replace(DZc,function(m,r,w){c=r;w&&(d=parseInt(w,10));return""});var e={};e.argumentIndex=c;e.argumentOffset=d;b=CZc(b);for(var f=0;f<b.length;){var g=b[f].value;f++;var k=void 0;1==b[f].type&&(k=zZc(a,b[f].value));e[g.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=k;f++}return e},IZc=function(a,b){var c="";b=b.replace(EZc,function(k,m){c=m;return""});var d=
{};d.argumentIndex=c;d.argumentOffset=0;b=CZc(b);for(var e=0;e<b.length;){var f=b[e].value;e++;var g=void 0;1==b[e].type&&(g=zZc(a,b[e].value));d[f.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=g;e++}return d};em.prototype.buildPlaceholder_=function(a){return"\ufddf_"+(a.length-1).toString(10)+"_"};var ZCa={get scaleFactor(){return window.devicePixelRatio||2}};var WCa=/var\((--[\w\-]+)(?:\s*,\s*(.+?))?\)$/,XCa=/^#([0-9a-f]{1,8})$/i,VCa=document.createElement("div");VCa.style.display="none";var JZc=Pw(["pan-"]),OG=function(a){this.base=a;this.canvas=document.createElement("canvas");this.fastResizeBufferMap=new Map;this.lastDrawnDomain=null;this.drawListener=function(){};this.panInstrumentationAdded=!1;this.canvas.setAttribute("aria-hidden","true");this.canvas.style.position="absolute";var b=this.canvas.getContext("2d");if(!b)throw Error("Jc");this.ctx=b;a.appendChild(this.canvas)};OG.prototype.detach=function(){this.isAttached()&&this.base.removeChild(this.canvas)};
OG.prototype.reattach=function(){this.isAttached()||this.base.appendChild(this.canvas)};OG.prototype.isAttached=function(){return this.base.contains(this.canvas)};var PG=function(a,b){a.drawListener=b},KZc=function(a){a.drawListener=function(){}},QG=function(a){a.panInstrumentationAdded||((0,Lh.setElementPrefixedAttribute)([new Rra(JZc[0].toLowerCase())],a.base,"pan-async-rendered",""),a.panInstrumentationAdded=!0)};
OG.prototype.destroy=function(){this.canvas&&(this.canvas.height=0,this.canvas.width=0)};OG.prototype.pan=function(a){this.ctx.save();var b=ZCa.scaleFactor,c=new Path2D;c.rect(a.clip.left,a.clip.top,a.clip.width,a.clip.height);this.ctx.clip(c);this.ctx.globalCompositeOperation="copy";this.ctx.translate(a.shift,0);this.ctx.drawImage(this.canvas,0,0,this.canvas.width,this.canvas.height,0,0,this.canvas.width/b,this.canvas.height/b);this.lastDrawnDomain={min:a.xAxisMin,max:a.xAxisMax};this.ctx.restore()};
var RG=function(a,b,c){a.lastDrawnDomain={min:b,max:c}},SG=function(a,b){a.fastResizeBufferMap.delete(b)};
OG.prototype.resize=function(a,b,c,d){d=d===void 0?!1:d;var e=a.height,f=a.width;a=a.margins;var g=f,k=e;d&&(g=f-a.left-a.right,k=e-a.top-a.bottom);e=this.fastResizeBufferMap.get(b);e||(e=document.createElement("canvas"),f=e.getContext("2d"),ml(e,this.base,b.height,b.width,"transparent",1),b.width!==0&&b.height!==0&&f.drawImage(b,0,0,b.width,b.height,0,0,b.width,b.height),f=c.getTransform&&c.getTransform()||c.getTransform&&c.getTransform(),e={bufferCanvas:e,bufferScaleFactor:f&&(f.a||f.a)||1},this.fastResizeBufferMap.set(b,
e));f=e;e=f.bufferCanvas;f=f.bufferScaleFactor;if(d)b.style.left=a.left+"px",b.style.top=a.top+"px",ml(b,this.base,k,g),e.width!==0&&e.height!==0&&c.drawImage(e,0,0,e.width,e.height,0,0,g,k);else{d=g/(e.width/f);f=k/(e.height/f);b.style.left="0px";b.style.top="0px";ml(b,this.base,k,g);b=a.left*(1-d);var m=a.top*(1-f);g=g-b-a.right*(1-d);a=k-m-a.bottom*(1-f);e.width!==0&&e.height!==0&&c.drawImage(e,0,0,e.width,e.height,b|0,m|0,g|0,a|0)}};var TG=function(){OG.apply(this,arguments)};Z(TG,OG);
TG.prototype.draw=function(a){this.lastChanges=a;this.drawInternal(a)};TG.prototype.redraw=function(){this.lastChanges&&this.drawInternal(this.lastChanges)};var UG=function(){OG.apply(this,arguments)};Z(UG,OG);h=UG.prototype;h.draw=function(a,b){this.lastChanges=a;this.lastChangeContext=b;this.drawV1(b)};h.redraw=function(){this.lastChanges&&this.lastChangeContext&&this.drawV1(this.lastChangeContext)};h.onConfigChange=function(){};h.onResizeChange=function(){};h.onXAxisChange=function(){};
h.onCategoricalAxisChange=function(){};h.onYAxisChange=function(){};h.onErrorChange=function(){};h.onLoadingChange=function(){};h.onBrushChange=function(){};h.onSeriesSelectionChange=function(){};h.onXAxisPinChange=function(){};h.onTimeSeriesChange=function(){};h.onFocusChange=function(){};h.onColorScaleChange=function(){};h.onColorMapChange=function(){};
var LZc=function(a,b){b=b.state;if(!b)return null;var c=b.resize,d=b.xAxis;if(!c||!d)return null;b=d.min;var e=d.max;if(d.lastUpdateCausedBy!==3||!b||!e||!a.lastDrawnDomain||e-b!==a.lastDrawnDomain.max-a.lastDrawnDomain.min)return null;var f=c.width-c.margins.left-c.margins.right;c=c.height-c.margins.top-c.margins.bottom;return(d=hl(d,0,f))?{shift:d(a.lastDrawnDomain.min)-d(b),xAxisMin:b,xAxisMax:e,clip:{left:0,top:0,width:f,height:c}}:null},VG=function(a,b,c,d,e){(b=b.state)&&(b=b.resize)&&a.resize({height:b.height,
width:b.width,margins:b.margins},c,d,e===void 0?!1:e)},NZc=function(a,b){UG.call(this,a);var c=this;this.drawScheduler=new MZc(this.canvas,b,function(d){c.drawInternal(d)})};Z(NZc,UG);NZc.prototype.drawV1=function(a){this.drawScheduler.schedule(a)};
var MZc=function(a,b,c){var d=this;this.callback=c;this.isVisible=!1;this.contextForScheduledCallback=this.contextForWhenVisible=null;b.runOutsideAngular(function(){(new IntersectionObserver(function(e){var f=e[0];e=l(e);for(var g=e.next();!g.done;g=e.next())g=g.value,g.time>f.time&&(f=g);d.isVisible=f.isIntersecting;d.isVisible&&d.contextForWhenVisible!==null&&(d.schedule(d.contextForWhenVisible),d.contextForWhenVisible=null)},{rootMargin:"50% 0px 50% 0px"})).observe(a)})};
MZc.prototype.schedule=function(a){var b=this;this.contextForScheduledCallback!==null?this.contextForScheduledCallback=a:this.isVisible?(this.contextForScheduledCallback=a,queueMicrotask(function(){b.contextForScheduledCallback===null?console.error("tried to run a scheduled callback, but there was no context set"):(b.callback(b.contextForScheduledCallback),b.contextForScheduledCallback=null)})):this.contextForWhenVisible=a};var ql=kk(Ak,function(a){return a.brush}),OZc=new tk({getKey:zk,getSelector:function(a){var b=a.chartGroupId;return be(kk(ql,function(c){return c.entities[b]}))}}),PZc=new tk({getKey:zk,getSelector:function(a){var b=a.chartGroupId;return be(kk(ql,function(c){var d;return(d=c.entities[b])==null?void 0:d.brushing}))}}),QZc=new tk({getKey:zk,getSelector:function(a){var b=a.chartGroupId;return be(kk(ql,function(c){var d;return(d=c.entities[b])==null?void 0:d.panning}))}}),RZc=new tk({getKey:zk,getSelector:function(a){var b=
a.chartGroupId;return be(kk(ql,function(c){var d;return(d=c.entities[b])==null?void 0:d.xPosStart}))}}),SZc=new tk({getKey:zk,getSelector:function(a){var b=a.chartGroupId;return be(kk(ql,function(c){var d;return(d=c.entities[b])==null?void 0:d.xPos}))}}),TZc=new tk({getKey:zk,getSelector:function(a){var b=a.chartGroupId;return be(kk(ql,function(c){var d;return(d=c.entities[b])==null?void 0:d.axis}))}});var UZc=gk("[AC] Set Categorical Axis requirement",hk()),VZc=gk("[AC] Remove Categorical Axis requirement by id",hk()),WZc=gk("[AC] Set Categorical Axis gutter ratio",hk());var XZc=kk(Ak,function(a){return a.categoricalAxis}),YZc=new tk({getKey:eDa,getSelector:function(a){return be(kk(XZc,function(b){var c;return(c=b.entities[eDa(a)])==null?void 0:c.requirements}))}}),ZZc=new tk({getKey:eDa,getSelector:function(a){return be(kk(XZc,function(b){var c;return(c=b.entities[eDa(a)])==null?void 0:c.gutterRatio}))}}),$Zc=new tk({getKey:fDa,getSelector:function(a,b){return he([eZc(b,a),b.getSelector(YZc,a)]).pipe(A(function(c){c=l(c);var d=c.next().value;var e=d.strategy;var f=
d.options;c=c.next().value;return jk(function(g){return ik(g,function(k,m){return k===m},dDa)})(c,function(g){if(g!==void 0&&g.length>0)return e(g,f!=null?f:{})})}))}}),a_c=new tk({getKey:fDa,getSelector:function(a,b){return he([b.getSelector(YZc,a),b.getSelector($Zc,a)]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return kk(c,d,function(e,f){if(e!==void 0&&f!==void 0)return Object.assign({},a,{requirements:e},f)})}))}});var b_c=gk("[AC] Set layer color map",hk());var c_c=kk(Ak,function(a){return a.colorMap}),d_c=new tk({getKey:yk,getSelector:function(a){var b=a.chartId;return be(kk(c_c,function(c){return c.entities[b]}))}});var e_c=kk(Ak,function(a){return a.colorScale}),f_c=new tk({getKey:yk,getSelector:function(a){var b=a.chartId;return be(kk(e_c,function(c){return c.entities[b]}))}});var g_c=gk("[AC] Set chart error for source",hk()),h_c=gk("[AC] Clear chart error for source",hk()),i_c=gk("[AC] Set non-blocking chart error for source",hk()),j_c=gk("[AC] Clear non-blocking chart error for source",hk());var k_c=kk(Ak,function(a){return a.error}),l_c=new tk({getKey:yk,getSelector:function(a){var b=a.chartId;return be(kk(k_c,function(c){return c.entities[b]}))}});var m_c=gk("[AC] Set focus requirement",hk()),n_c=gk("[AC] Remove focus requirement",hk());var o_c=kk(Ak,function(a){return a.lastInteraction}),p_c=new tk({getKey:yk,getSelector:function(a){var b=a.chartId;return be(kk(o_c,function(c){return c.entities[b]}))}});var q_c=gk("[AC] Set chart loading for source",hk()),r_c=gk("[AC] Clear chart loading for source",hk());var s_c=kk(Ak,function(a){return a.loading}),t_c=new tk({getKey:yk,getSelector:function(a){var b=a.chartId;return be(kk(s_c,function(c){return c.entities[b]}))}});var u_c=kk(Ak,function(a){return a.seriesSelection}),v_c=new tk({getKey:yk,getSelector:function(a){var b=a.chartId;return be(kk(u_c,function(c){return c.entities[b]}))}});var w_c=kk(Ak,function(a){return a.chartSpec}),x_c=new tk({getKey:yk,getSelector:function(a){var b=a.chartId;return be(kk(w_c,function(c){return c.entities[b]}))}});var y_c=gk("[AC] Set X Axis requirement",hk()),z_c=gk("[AC] Remove X Axis requirements by priority",hk()),A_c=gk("[AC] Remove X Axis requirement by id",hk()),B_c=gk("[AC] Set X axis relative-to",hk()),C_c=gk("[AC] Set X axis timezone offset",hk()),D_c=gk("[AC] Set X axis time zone ID",hk());var E_c={chartGroupId:"",chartId:"",xAxisId:"chart_group",requirements:[],min:null,max:null,unit:"ms_since_epoch",bucketWidth:void 0,ticks:[],scaleType:0,lastUpdateCausedBy:0};var WG=function(a){return Pk(a.chartGroupId,a.chartId,a.xAxisId)},XG=function(a){var b=a.chartGroupId;var c=a.chartId;return"chartGroupId:"+b+",chartId:"+c+",xAxisKey:"+Pk(b,c,a.xAxisId)},YG=kk(Ak,function(a){return a.xAxis}),F_c=new tk({getKey:WG,getSelector:function(a){return be(kk(YG,function(b){var c;return(c=b.entities[WG(a)])==null?void 0:c.requirements}))}}),G_c=new tk({getKey:WG,getSelector:function(a){return be(kk(YG,function(b){var c;return(c=b.entities[WG(a)])==null?void 0:c.lastUpdateCausedBy}))}}),
H_c=new tk({getKey:WG,getSelector:function(a){return be(kk(YG,function(b){var c;return(c=b.entities[WG(a)])==null?void 0:c.timezoneOffset}))}}),I_c=new tk({getKey:WG,getSelector:function(a){return be(kk(YG,function(b){var c;return(c=b.entities[WG(a)])==null?void 0:c.timeZoneId}))}}),J_c=vk(XG,function(a,b){return Rk(a,b)},H_c,I_c),K_c=new tk({getKey:WG,getSelector:function(a){return be(kk(YG,function(b){var c;return(c=b.entities[WG(a)])==null?void 0:c.relativeTo}))}}),ZG=new tk({getKey:XG,getSelector:function(a,
b){return b.getSelection(K_c,a).pipe(zf(function(c){var d=a;(c==null?0:c.xAxisId)&&(c==null?0:c.shift)&&(d=Object.assign({},a,{xAxisId:c.xAxisId}));return he([cZc(b,d),b.getSelector(F_c,d),b.getSelector(G_c,d),b.getSelector(H_c,d),b.getSelector(I_c,d),b.getSelector(VWc,d)]).pipe(A(function(e){var f=l(e);var g=f.next().value;e=f.next().value;var k=f.next().value;var m=f.next().value;var r=f.next().value;f=f.next().value;return jk(function(w){return ik(w,function(x,D){return x===D},jDa)})(e,k,m,r,f,
function(w,x,D,H,J){if(w!==void 0&&x!==void 0)return g(w,{lastUpdateCausedBy:x,timezoneOffset:D,timeZoneId:H,axisWidth:J,shift:c==null?void 0:c.shift})})}))}))}}),L_c=new tk({getKey:XG,getSelector:function(a,b){return he([b.getSelector(F_c,a),b.getSelector(G_c,a),b.getSelector(H_c,a),b.getSelector(I_c,a),b.getSelector(K_c,a),b.getSelector(ZG,a)]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;var f=d.next().value;var g=d.next().value;var k=d.next().value;d=d.next().value;return kk(c,
e,f,g,k,d,function(m,r,w,x,D,H){if(m!==void 0&&r!==void 0&&H!==void 0)return Object.assign({},a,{requirements:m,lastUpdateCausedBy:r,timezoneOffset:w,timeZoneId:x,relativeTo:D},H)})}))}}),M_c=new tk({getKey:XG,getSelector:function(a,b){return b.getSelector(ZG,a).pipe(A(function(c){return kk(c,function(d){if(d!==void 0)return d.min})}))}}),N_c=new tk({getKey:XG,getSelector:function(a,b){return b.getSelector(ZG,a).pipe(A(function(c){return kk(c,function(d){if(d!==void 0)return d.max})}))}}),O_c=new tk({getKey:XG,
getSelector:function(a,b){return b.getSelector(ZG,a).pipe(A(function(c){return kk(c,function(d){if(d!==void 0)return d.tickIncrement})}))}}),P_c=new tk({getKey:XG,getSelector:function(a,b){return b.getSelector(ZG,a).pipe(A(function(c){return kk(c,function(d){if(d!==void 0)return d.unit})}))}}),Q_c=new tk({getKey:XG,getSelector:function(a,b){return b.getSelector(ZG,a).pipe(A(function(c){return jk(function(d){return ik(d,function(e,f){return e===f},function(e,f){return Array.isArray(e)&&Array.isArray(f)?
zBa(e,f):e===f})})(c,function(d){if(d!==void 0)return d.ticks})}))}}),$G=new tk({getKey:XG,getSelector:function(a,b){return he([b.getSelector(M_c,a),b.getSelector(N_c,a),b.getSelector(P_c,a)]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;d=d.next().value;return kk(c,e,d,function(f,g,k){if(f!=null&&g!=null&&k!==void 0)return{min:f,max:g,unit:k}})}))}});var R_c=kk(Ak,function(a){return a.chart}),aH=new tk({getKey:function(a){return a.chartId},getSelector:function(a){var b=a.chartId;return be(kk(R_c,function(c){var d;return(d=c.entities[b])==null?void 0:d.yAxisOrientation}))}});var rBa={chartId:"",yAxisId:"right",label:"",requirements:[],min:0,max:1,unit:"count",ticks:[],scaleType:0,lastUpdateCausedBy:0,position:"right"};var bH=function(a){return a.chartId+","+a.yAxisId},S_c=kk(Ak,function(a){return a.yAxis}),T_c=new tk({getKey:bH,getSelector:function(a){var b=a.chartId;var c=a.yAxisId;return be(kk(S_c,function(d){var e;return(e=d.entities[b+","+c])==null?void 0:e.label}))}}),U_c=new tk({getKey:bH,getSelector:function(a){var b=a.chartId;var c=a.yAxisId;return be(kk(S_c,function(d){var e;return(e=d.entities[b+","+c])==null?void 0:e.requirements}))}}),V_c=new tk({getKey:bH,getSelector:function(a){var b=a.chartId;var c=
a.yAxisId;return be(kk(S_c,function(d){var e;return(e=d.entities[b+","+c])==null?void 0:e.lastUpdateCausedBy}))}}),W_c=new tk({getKey:bH,getSelector:function(a){var b=a.chartId;var c=a.yAxisId;return be(kk(S_c,function(d){var e;return(e=d.entities[b+","+c])==null?void 0:e.position}))}}),X_c=new tk({getKey:bH,getSelector:function(a,b){return he([he([aZc(b,a),b.getValueStrategy(a),b.getSelector(U_c,a),b.getSelector(V_c,a),b.getSelector(UWc,a),b.getSelector(VWc,a)]),b.getSelector(aH,a),b.getSelector(W_c,
a)]).pipe(A(function(c){var d=l(c);var e=l(d.next().value);var f=e.next().value;var g=e.next().value;c=e.next().value;var k=e.next().value;var m=e.next().value;e=e.next().value;var r=d.next().value;d=d.next().value;return jk(function(w){return ik(w,function(x,D){return x===D},kDa)})(c,k,m,e,r,d,function(w,x,D,H,J,O){if(w!==void 0&&x!==void 0&&D!==void 0&&H!==void 0)return f(w,{lastUpdateCausedBy:x,axisLength:J==="vertical"?D:H,valueFormatter:function(R,V,ba,pa){var ua,ma;return(ma=(ua=g.formatShort)==
null?void 0:ua.call(g,R,V,ba,Object.assign({},pa,{yAxisPosition:O})))!=null?ma:g.format(R,V,ba,Object.assign({},pa,{yAxisPosition:O}))}})})}))}}),cH=new tk({getKey:bH,getSelector:function(a,b){return he([b.getSelector(T_c,a),b.getSelector(U_c,a),b.getSelector(V_c,a),b.getSelector(W_c,a),b.getSelector(X_c,a)]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;var f=d.next().value;var g=d.next().value;d=d.next().value;return kk(c,e,f,g,d,function(k,m,r,w,x){if(m!==void 0&&r!==void 0&&
w!==void 0&&x!==void 0)return Object.assign({},a,{label:k!=null?k:"",requirements:m,lastUpdateCausedBy:r,position:w},x)})}))}});var dH=function(){};dH.\u0275fac=function(a){return new (a||dH)};dH.\u0275prov=Cc({token:dH,factory:dH.\u0275fac});var Y_c=0,eH=function(a,b,c,d){lG.call(this,c);var e=this;this.el=a;this.chart=b;this.deprecateOmnibusStateObservable=d;this.destroyed=new rf;this.logger=null;this.views=[];this.layerType=null;this.layerId=this.objectiveLayerId="ac-composable-layer-"+Y_c++;this.xAxisId="chart_group";this.yAxisId="right";this.chartId=this.chartGroupId="default";this.layerScopeSubject=new vf(1);this.dataObservableSwitcher=new Xj(be({previousValue:null,currentValue:null}));this.dataObservableInternal=this.dataObservableSwitcher.pipe(zf(function(f){return f}));
this.configObservableSwitcher=new Xj(be({previousValue:null,currentValue:null}));this.configObservableInternal=this.configObservableSwitcher.pipe(zf(function(f){return f}));this.context={scope:{chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,yAxisId:this.yAxisId,layerId:this.layerId},data:null,state:null,config:null};this.redrawableViews=this.views;b.scopeObservable.pipe(Af(this.destroyed)).subscribe(function(f){e.chartId=f.chartId;e.chartGroupId=f.chartGroupId});this.scopeObservable=
he([b.scopeObservable,this.layerScopeSubject]).pipe(A(function(f){var g=l(f);f=g.next().value;g=g.next().value;return Object.assign({},f,g)}));this.defaultStateSelectionObservables=d?{brush:be(void 0),colorMap:be(void 0),colorScale:be(void 0),error:be(void 0),focus:be(void 0),loading:be(void 0),resize:be(void 0),seriesSelection:be(void 0),spec:be(void 0),xAxisPin:be(void 0),timeSeries:be(void 0),xAxis:be(void 0),yAxis:be(void 0),categoricalAxis:be(void 0),lastInteraction:be(void 0)}:{brush:this.selectorFactoryToObservable(OZc),
colorMap:this.selectorFactoryToObservable(d_c),colorScale:this.selectorFactoryToObservable(f_c),error:this.selectorFactoryToObservable(l_c),focus:this.selectorFactoryToObservable(RWc),loading:this.selectorFactoryToObservable(t_c),resize:this.selectorFactoryToObservable(TWc),seriesSelection:this.selectorFactoryToObservable(v_c),spec:this.selectorFactoryToObservable(x_c),xAxisPin:this.selectorFactoryToObservable(TXc),timeSeries:this.selectorFactoryToObservable(SXc),xAxis:this.selectorFactoryToObservable(L_c),
yAxis:this.selectorFactoryToObservable(cH),categoricalAxis:this.selectorFactoryToObservable(a_c),lastInteraction:this.selectorFactoryToObservable(p_c)};this.latestObservable=he([this.scopeObservable,this.dataObservable,this.stateObservable,this.configObservable]);this.latestObservable.pipe(Af(this.destroyed)).subscribe(function(f){var g=l(f);f=g.next().value;var k=g.next().value;var m=g.next().value;g=g.next().value;e.context.scope=f;e.context.data=k.currentValue;e.context.state=m.currentValue;e.context.config=
g.currentValue});(a=q(dH,{optional:!0}))&&a.redrawTrigger$.pipe(Af(this.destroyed)).subscribe(function(){for(var f=l(e.redrawableViews),g=f.next();!g.done;g=f.next())g.value.redraw()})};Z(eH,lG);var fH=function(a,b){a=a.chart.getBoundingClientRect();return{x:b.clientX-a.left,y:b.clientY-a.top}};h=eH.prototype;
h.setup=function(a){var b=this,c=a.dataObservable,d=a.configObservable;c&&(this.dataObservable=c.pipe(yf(null),uf(),A(rk)));d&&(this.configObservable=d.pipe(yf(null),uf(),A(rk)));this.scopeObservable.pipe(Af(this.destroyed),yf(null),uf(),A(rk)).subscribe(function(e){var f=e.previousValue;e=e.currentValue;if((f||e)&&b.layerType!=null){var g=[],k=e!=null&&f!=null&&(e.chartId!==f.chartId||e.chartGroupId!==f.chartGroupId),m=e&&(f==null||k),r=f&&(e==null||k);!k&&e!=null&&f!=null&&e.layerId!==f.layerId&&
e&&f&&g.push(kG({chartGroupId:e.chartGroupId,chartId:e.chartId,previousLayerId:f.layerId,currentLayerId:e.layerId}));r&&f&&g.push(PWc({layerType:b.layerType,layerId:f.layerId,chartId:f.chartId,chartGroupId:f.chartGroupId}));m&&e&&g.push(OWc({layerType:b.layerType,layerId:e.layerId,chartId:e.chartId,chartGroupId:e.chartGroupId}));yG(b.chart,g)}});this.deprecateOmnibusStateObservable||(a=Object.assign({},this.defaultStateSelectionObservables,a.stateSelectionObservables),lG.prototype.setup.call(this,
{stateSelectionObservables:a}),this.dataObservable.pipe(Af(this.destroyed)).subscribe(function(e){b.chart.scheduleStateChangeHandler({changes:e,context:b.context,componentHandlerUsingContext:ul(function(f,g){return b.onDataChange(f,g)},b.destroyed),viewHandlerUsingContext:ul(function(f,g){for(var k=l(b.views),m=k.next();!m.done;m=k.next())m.value.draw(f,g)},b.destroyed),mergeKey:b.context.scope.layerId+"-data",scope:b.context.scope})}),this.configObservable.pipe(Af(this.destroyed)).subscribe(function(e){b.chart.scheduleStateChangeHandler({changes:e,
context:b.context,componentHandlerUsingContext:ul(function(f,g){return b.onConfigChange(f,g)},b.destroyed),viewHandlerUsingContext:ul(function(f,g){for(var k=l(b.views),m=k.next();!m.done;m=k.next())m.value.onConfigChange(f,g)},b.destroyed),mergeKey:b.context.scope.layerId+"-config",scope:b.context.scope})}),this.scopeObservable.pipe(Af(this.destroyed),yf(null),uf(),A(rk),Df(this.dataObservable,this.stateObservable,this.configObservable)).subscribe(function(e){var f=l(e);e=f.next().value;f.next();
f.next();f.next();if(e.currentValue)b.onScopeChange(e)}),(this.onResizeChange!==eH.prototype.onResizeChange||this.views.some(function(e){return e.onResizeChange!==UG.prototype.onResizeChange}))&&this.setupStateChangeHandler(a.resize,function(e,f){e=sk(e,function(g){return g.resize});return b.onResizeChange(e,f)},function(e,f){e=sk(e,function(m){return m.resize});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onResizeChange(e,f)},"resize"),(this.onXAxisChange!==eH.prototype.onXAxisChange||
this.views.some(function(e){return e.onXAxisChange!==UG.prototype.onXAxisChange}))&&this.setupStateChangeHandler(a.xAxis,function(e,f){e=sk(e,function(g){return g.xAxis});return b.onXAxisChange(e,f)},function(e,f){e=sk(e,function(m){return m.xAxis});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onXAxisChange(e,f)},"xAxis"),(this.onCategoricalAxisChange!==eH.prototype.onCategoricalAxisChange||this.views.some(function(e){return e.onCategoricalAxisChange!==UG.prototype.onCategoricalAxisChange}))&&
this.setupStateChangeHandler(a.categoricalAxis,function(e,f){e=sk(e,function(g){return g.categoricalAxis});return b.onCategoricalAxisChange(e,f)},function(e,f){e=sk(e,function(m){return m.categoricalAxis});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onCategoricalAxisChange(e,f)},"categoricalAxis"),(this.onYAxisChange!==eH.prototype.onYAxisChange||this.views.some(function(e){return e.onYAxisChange!==UG.prototype.onYAxisChange}))&&this.setupStateChangeHandler(a.yAxis,function(e,f){e=
sk(e,function(g){return g.yAxis});return b.onYAxisChange(e,f)},function(e,f){e=sk(e,function(m){return m.yAxis});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onYAxisChange(e,f)},"yAxis"),(this.onErrorChange!==eH.prototype.onErrorChange||this.views.some(function(e){return e.onErrorChange!==UG.prototype.onErrorChange}))&&this.setupStateChangeHandler(a.error,function(e,f){e=sk(e,function(g){return g.error});return b.onErrorChange(e,f)},function(e,f){e=sk(e,function(m){return m.error});
for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onErrorChange(e,f)},"error"),(this.onLoadingChange!==eH.prototype.onLoadingChange||this.views.some(function(e){return e.onLoadingChange!==UG.prototype.onLoadingChange}))&&this.setupStateChangeHandler(a.loading,function(e,f){e=sk(e,function(g){return g.loading});return b.onLoadingChange(e,f)},function(e,f){e=sk(e,function(m){return m.loading});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onLoadingChange(e,f)},"loading"),(this.onBrushChange!==
eH.prototype.onBrushChange||this.views.some(function(e){return e.onBrushChange!==UG.prototype.onBrushChange}))&&this.setupStateChangeHandler(a.brush,function(e,f){e=sk(e,function(g){return g.brush});return b.onBrushChange(e,f)},function(e,f){e=sk(e,function(m){return m.brush});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onBrushChange(e,f)},"brush"),(this.onSeriesSelectionChange!==eH.prototype.onSeriesSelectionChange||this.views.some(function(e){return e.onSeriesSelectionChange!==UG.prototype.onSeriesSelectionChange}))&&
this.setupStateChangeHandler(a.seriesSelection,function(e,f){e=sk(e,function(g){return g.seriesSelection});return b.onSeriesSelectionChange(e,f)},function(e,f){e=sk(e,function(m){return m.seriesSelection});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onSeriesSelectionChange(e,f)},"seriesSelection"),(this.onXAxisPinChange!==eH.prototype.onXAxisPinChange||this.views.some(function(e){return e.onXAxisPinChange!==UG.prototype.onXAxisPinChange}))&&this.setupStateChangeHandler(a.xAxisPin,function(e,
f){e=sk(e,function(g){return g.xAxisPin});return b.onXAxisPinChange(e,f)},function(e,f){e=sk(e,function(m){return m.xAxisPin});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onXAxisPinChange(e,f)},"xAxisPin"),(this.onTimeSeriesChange!==eH.prototype.onTimeSeriesChange||this.views.some(function(e){return e.onTimeSeriesChange!==UG.prototype.onTimeSeriesChange}))&&this.setupStateChangeHandler(a.timeSeries,function(e,f){e=sk(e,function(g){return g.timeSeries});return b.onTimeSeriesChange(e,
f)},function(e,f){e=sk(e,function(m){return m.timeSeries});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onTimeSeriesChange(e,f)},"timeSeries"),(this.onFocusChange!==eH.prototype.onFocusChange||this.views.some(function(e){return e.onFocusChange!==UG.prototype.onFocusChange}))&&this.setupStateChangeHandler(a.focus,function(e,f){e=sk(e,function(g){return g.focus});return b.onFocusChange(e,f)},function(e,f){e=sk(e,function(m){return m.focus});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onFocusChange(e,
f)},"focus"),(this.onColorScaleChange!==eH.prototype.onColorScaleChange||this.views.some(function(e){return e.onColorScaleChange!==UG.prototype.onColorScaleChange}))&&this.setupStateChangeHandler(a.colorScale,function(e,f){e=sk(e,function(g){return g.colorScale});return b.onColorScaleChange(e,f)},function(e,f){e=sk(e,function(m){return m.colorScale});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onColorScaleChange(e,f)},"colorScale"),(this.onColorMapChange!==eH.prototype.onColorMapChange||
this.views.some(function(e){return e.onColorMapChange!==UG.prototype.onColorMapChange}))&&this.setupStateChangeHandler(a.colorMap,function(e,f){e=sk(e,function(g){return g.colorMap});return b.onColorMapChange(e,f)},function(e,f){e=sk(e,function(m){return m.colorMap});for(var g=l(b.views),k=g.next();!k.done;k=g.next())k.value.onColorMapChange(e,f)},"colorMap"))};
h.setupStateChangeHandler=function(a,b,c,d){var e=this;if(this.setupCalled&&a){var f=null;a.pipe(iBa(this.stateObservable),Af(this.destroyed)).subscribe(function(g){g=l(g).next().value;var k={previousValue:f,currentValue:g.currentValue};f=g.currentValue;e.chart.scheduleStateChangeHandler({changes:k,context:e.context,componentHandlerUsingContext:ul(b,e.destroyed),viewHandlerUsingContext:ul(c,e.destroyed),mergeKey:e.context.scope.layerId+"-"+d,scope:e.context.scope})})}};h.onDataChange=function(){};
h.onScopeChange=function(a){var b=a.previousValue;a=a.currentValue;var c=[];a&&(b==null?0:b.layerId)&&(b==null?void 0:b.layerId)!==(a==null?void 0:a.layerId)&&c.push(kG({chartGroupId:a.chartGroupId,chartId:a.chartId,previousLayerId:b==null?void 0:b.layerId,currentLayerId:a.layerId}));yG(this.chart,c)};h.onConfigChange=function(){};h.onResizeChange=function(){};h.onXAxisChange=function(){};h.onCategoricalAxisChange=function(){};h.onYAxisChange=function(){};h.onErrorChange=function(){};
h.onLoadingChange=function(){};h.onBrushChange=function(){};h.onSeriesSelectionChange=function(){};h.onXAxisPinChange=function(){};h.onTimeSeriesChange=function(){};h.onFocusChange=function(){};h.onColorScaleChange=function(){};h.onLastInteractionChange=function(){};h.onColorMapChange=function(){};h.withLatest=function(a){a({scope:this.context.scope,data:this.context.data,state:this.context.state,config:this.context.config})};
h.onFocus=function(){var a=this;this.withLatest(function(b){b=b.scope;a.store.dispatch(m_c({chartGroupId:b.chartGroupId,chartId:b.chartId,layerId:b.layerId}))})};h.onBlur=function(){var a=this;this.withLatest(function(b){b=b.scope;a.store.dispatch(n_c({chartGroupId:b.chartGroupId,chartId:b.chartId,layerId:b.layerId}))})};h.ngOnInit=function(){this.layerScopeSubject.next({layerId:this.layerId,xAxisId:this.xAxisId,yAxisId:this.yAxisId})};
h.ngOnChanges=function(a){("layerId"in a||"yAxisId"in a||"xAxisId"in a)&&this.layerScopeSubject.next({layerId:this.layerId,xAxisId:this.xAxisId,yAxisId:this.yAxisId})};h.ngOnDestroy=function(){for(var a=this,b=l(this.views),c=b.next();!c.done;c=b.next())c=c.value,KZc(c),c.destroy();this.withLatest(function(d){yG(a.chart,[PWc(Object.assign({},d.scope,{layerType:a.layerType}))])});this.destroyed.next();this.destroyed.complete()};
var gH=function(a,b,c){c=c?a.objectiveLayerId+"-"+c:a.objectiveLayerId;return b?kZc(Object.assign({},b,{chartId:a.chartId,yAxisId:a.yAxisId,id:c})):nZc({chartId:a.chartId,yAxisId:a.yAxisId,id:c})},hH=function(a,b){var c=c===void 0?a.objectiveLayerId:c;return b?y_c(Object.assign({},b,{chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,id:c})):A_c({chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,id:c,keepLastCause:!0})},Z_c=function(a,b){var c=c===void 0?a.objectiveLayerId:
c;return b?UZc(Object.assign({},b,{chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,id:c})):VZc({chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,id:c})},iH=function(a,b,c){return b?q_c({chartId:a.chartId,sourceId:a.objectiveLayerId,loading:b,loadingDescription:c}):r_c({chartId:a.chartId,sourceId:a.objectiveLayerId})},jH=function(a,b,c){return b&&b.name==="NoDataError"&&c?g_c({chartId:a.chartId,layerId:a.layerId,sourceId:a.objectiveLayerId,success:!0,error:null}):b?g_c({chartId:a.chartId,
layerId:a.layerId,sourceId:a.objectiveLayerId,success:!1,error:b}):c?g_c({chartId:a.chartId,layerId:a.layerId,sourceId:a.objectiveLayerId,success:!0,error:null}):h_c({chartId:a.chartId,sourceId:a.objectiveLayerId})},kH=function(a,b,c,d){if(a.onDataChange){a=a.onDataChange(b,c,d);var e=d==null?void 0:d.colorMap;if(a){d=a.order;var f=a.colorMap,g=a.shapeMap;if(!e||Object.keys(f).some(function(k){return f[k]!==e.colorMap[k]})||Object.keys(g).some(function(k){return g[k]!==e.shapeMap[k]}))return b_c({chartId:b.chartId,
layerId:b.layerId,order:d,colorMap:f,shapeMap:g})}}return null};da.Object.defineProperties(eH.prototype,{dataObservable:{configurable:!0,enumerable:!0,set:function(a){this.dataObservableSwitcher.next(a)},get:function(){return this.dataObservableInternal}},configObservable:{configurable:!0,enumerable:!0,set:function(a){this.configObservableSwitcher.next(a)},get:function(){return this.configObservableInternal}}});eH.\u0275fac=function(){We()};
eH.\u0275dir=af({type:eH,inputs:{layerId:"layerId",xAxisId:"xAxisId",yAxisId:"yAxisId"},features:[Ff,Gx]});var $_c=gk("[AC] Start brushing on the x axis",hk()),a0c=gk("[AC] Stop brushing on the x axis",hk()),b0c=gk("[AC] Update brush position on the x axis",hk()),c0c=gk("[AC] Start panning on the x axis",hk()),d0c=gk("[AC] Stop panning on the x axis",hk()),e0c=gk("[AC] Start brushing on the y axis",hk()),f0c=gk("[AC] Stop brushing on the y axis",hk()),g0c=gk("[AC] Update brush position on the y axis",hk());var lH=gk("[AC] Set last interaction for chart X axis",hk()),mH=gk("[AC] Set last interaction for Y axis",hk()),h0c=gk("[AC] Set last interaction for categorical axis",hk()),i0c=gk("[AC] Set last interaction for gauge threshold",hk());var nH=gk("[AC] Sets x axis pin position",hk()),oH=gk("[AC] Sets whether x axis pin is locked",hk()),pH=gk("[AC] Sets whether x axis pin is tracking now",hk());var j0c=new yl(HG.MONTH_DAY_ABBR),k0c=new yl(7),l0c=function(a,b){return k0c.format(a,b)},mDa=function(a,b){var c=j0c.format(a,b);a=l0c(a,b);return c+", "+a},qH={},lDa=(qH[al.WEEKLY]=mDa,qH[al.DAILY]=mDa,qH[al.QUARTER_DAY]=mDa,qH[al.TWO_HOURLY]=mDa,qH[al.HOURLY]=l0c,qH[al.HALF_HOURLY]=l0c,qH[al.TEN_MINUTES]=l0c,qH[al.FIVE_MINUTES]=l0c,qH);var m0c={globalAlpha:1,fillStyle:"var(--ac-sys-color-chart-brush-selection, #B2B2B240)",lineWidth:2,lineCap:"square",strokeStyle:"var(--ac-sys-color-chart-brush-line, #CCC)"},n0c=[4,4],o0c=function(a){TG.call(this,a);this.canvas.className="overlay-z-index"};Z(o0c,TG);
o0c.prototype.drawInternal=function(a){if(a=a.currentValue){var b=a.state;if(b){a=b.bodyTop;var c=b.bodyLeft,d=b.bodyHeight,e=b.bodyWidth,f=b.chartHeight,g=b.chartWidth,k=b.brushing,m=b.brushStart,r=b.brushEnd;b=b.brushAxis;this.canvas.style.left="0px";this.canvas.style.top="0px";ml(this.canvas,this.base,f,g);f=new Path2D;f.rect(c,a,e,d);this.ctx.clip(f);r&&b===0&&(m&&k&&(this.drawBrushSelection(m,r,a,d),this.drawBrushLine(m,a,d)),this.drawBrushLine(r,a,d))}}};
o0c.prototype.drawBrushLine=function(a,b,c){var d=d===void 0?m0c:d;this.ctx.save();kl(this.ctx,d,this.base);this.ctx.setLineDash(n0c);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,n(nl([a,b],d.lineWidth)));this.ctx.lineTo.apply(this.ctx,n(nl([a,b+c],d.lineWidth)));this.ctx.stroke();this.ctx.restore()};o0c.prototype.drawBrushSelection=function(a,b,c,d){var e=e===void 0?m0c:e;this.ctx.save();kl(this.ctx,e,this.base);this.ctx.fillRect(Math.min(a,b),c,Math.abs(b-a),d);this.ctx.restore()};var p0c;
p0c={DAY:{LONG:{R:{"-1":"yesterday",0:"today",1:"tomorrow"},P:"one{# day ago}other{# days ago}",F:"one{in # day}other{in # days}"},NARROW:{R:{"-1":"yesterday",0:"today",1:"tomorrow"},P:"one{#d ago}other{#d ago}",F:"one{in #d}other{in #d}"}},HOUR:{LONG:{R:{0:"this hour"},P:"one{# hour ago}other{# hours ago}",F:"one{in # hour}other{in # hours}"},SHORT:{R:{0:"this hour"},P:"one{# hr. ago}other{# hr. ago}",F:"one{in # hr.}other{in # hr.}"},NARROW:{R:{0:"this hour"},P:"one{#h ago}other{#h ago}",F:"one{in #h}other{in #h}"}},
MINUTE:{LONG:{R:{0:"this minute"},P:"one{# minute ago}other{# minutes ago}",F:"one{in # minute}other{in # minutes}"},SHORT:{R:{0:"this minute"},P:"one{# min. ago}other{# min. ago}",F:"one{in # min.}other{in # min.}"},NARROW:{R:{0:"this minute"},P:"one{#m ago}other{#m ago}",F:"one{in #m}other{in #m}"}},MONTH:{LONG:{R:{"-1":"last month",0:"this month",1:"next month"},P:"one{# month ago}other{# months ago}",F:"one{in # month}other{in # months}"},SHORT:{R:{"-1":"last mo.",0:"this mo.",1:"next mo."},P:"one{# mo. ago}other{# mo. ago}",
F:"one{in # mo.}other{in # mo.}"},NARROW:{R:{"-1":"last mo.",0:"this mo.",1:"next mo."},P:"one{#mo ago}other{#mo ago}",F:"one{in #mo}other{in #mo}"}},QUARTER:{LONG:{R:{"-1":"last quarter",0:"this quarter",1:"next quarter"},P:"one{# quarter ago}other{# quarters ago}",F:"one{in # quarter}other{in # quarters}"},SHORT:{R:{"-1":"last qtr.",0:"this qtr.",1:"next qtr."},P:"one{# qtr. ago}other{# qtrs. ago}",F:"one{in # qtr.}other{in # qtrs.}"},NARROW:{R:{"-1":"last qtr.",0:"this qtr.",1:"next qtr."},P:"one{#q ago}other{#q ago}",
F:"one{in #q}other{in #q}"}},SECOND:{LONG:{R:{0:"now"},P:"one{# second ago}other{# seconds ago}",F:"one{in # second}other{in # seconds}"},SHORT:{R:{0:"now"},P:"one{# sec. ago}other{# sec. ago}",F:"one{in # sec.}other{in # sec.}"},NARROW:{R:{0:"now"},P:"one{#s ago}other{#s ago}",F:"one{in #s}other{in #s}"}},WEEK:{LONG:{R:{"-1":"last week",0:"this week",1:"next week"},P:"one{# week ago}other{# weeks ago}",F:"one{in # week}other{in # weeks}"},SHORT:{R:{"-1":"last wk.",0:"this wk.",1:"next wk."},P:"one{# wk. ago}other{# wk. ago}",
F:"one{in # wk.}other{in # wk.}"},NARROW:{R:{"-1":"last wk.",0:"this wk.",1:"next wk."},P:"one{#w ago}other{#w ago}",F:"one{in #w}other{in #w}"}},YEAR:{LONG:{R:{"-1":"last year",0:"this year",1:"next year"},P:"one{# year ago}other{# years ago}",F:"one{in # year}other{in # years}"},SHORT:{R:{"-1":"last yr.",0:"this yr.",1:"next yr."},P:"one{# yr. ago}other{# yr. ago}",F:"one{in # yr.}other{in # yr.}"},NARROW:{R:{"-1":"last yr.",0:"this yr.",1:"next yr."},P:"one{#y ago}other{#y ago}",F:"one{in #y}other{in #y}"}}};var sDa=function(){this.rdtfSymbols_=p0c};sDa.prototype.format=function(a,b){b=q0c(this,b).LONG;if(b){var c=Math.abs(a);a=(new em("{N,plural,"+(a>0||a==0&&1/a==Infinity?b.F:b.P)+"}")).format({N:c})}else a="";return a};
var q0c=function(a,b){switch(b){default:case 0:return a.rdtfSymbols_.YEAR;case 1:return a.rdtfSymbols_.QUARTER;case 2:return a.rdtfSymbols_.MONTH;case 3:return a.rdtfSymbols_.WEEK;case 4:return a.rdtfSymbols_.DAY;case 5:return a.rdtfSymbols_.HOUR;case 6:return a.rdtfSymbols_.MINUTE;case 7:return a.rdtfSymbols_.SECOND}};var nDa=[24192E5,25056E5,2592E6,26784E5],oDa=[7776E6,78624E5,79488E5],qDa=[31536E6,316224E5],pDa=3/90,rDa=5/365;var rH={globalAlpha:1,font:"10px sans-serif",fillStyle:"var(--ac-sys-color-chart-axis-label, #3C4043)",textAlign:"center",textBaseline:"top",strokeStyle:"var(--ac-sys-color-chart-axis, #80868B)",lineWidth:1,lineCap:"square"},r0c={globalAlpha:1,strokeStyle:"var(--ac-sys-color-chart-grid, #EBEBEB)",lineWidth:1,lineCap:"square"},s0c=[4,4],t0c={globalAlpha:1,fillStyle:"var(--ac-sys-color-chart-brush-selection, #B2B2B240)",lineWidth:2,lineCap:"square",strokeStyle:"var(--ac-sys-color-chart-brush-line, #CCC)"},
u0c=Object.assign({},rH,{strokeStyle:"var(--ac-sys-color-chart-x-axis-pin, #5F6368)"}),v0c={globalAlpha:.2},w0c={globalAlpha:1,lineWidth:2,lineCap:"square",globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-extensions-neutral, #BDBDBD)"};var x0c=function(){TG.apply(this,arguments);this.lastDrawnState=null};Z(x0c,TG);h=x0c.prototype;
h.drawInternal=function(a){var b=performance.now(),c=a.currentValue;if(c){var d=c.state;c=c.config;if(d&&c){var e=d.bodyTop,f=d.bodyRight,g=d.bodyLeft,k=d.chartWidth,m=d.ticks,r=d.axisTopEdge,w=d.timeZoneLabel,x=c.shift?tDa(c.shift):"";this.canvas.style.left="0px";this.canvas.style.top="0px";ml(this.canvas,this.base,r+20,k);var D;if(!(c==null?0:(D=c.styles)==null?0:D.hideAxis)){D=rH;var H,J,O,R;D=Object.assign({},D,{fillStyle:(O=c==null?void 0:(H=c.styles)==null?void 0:H.textColor)!=null?O:D.fillStyle,
font:(R=c==null?void 0:(J=c.styles)==null?void 0:J.font)!=null?R:D.font});H=x||w;J=0;var V;H&&(c==null?void 0:(V=c.styles)==null?void 0:V.hideLeftLabel)!==!0&&(J=this.drawLeftLabel(r,g,H,D));V=this.drawAxisTickLabels(r,m,J,k,D);var ba;((ba=c.styles)==null?0:ba.drawGrid)&&this.drawAxisGridLines(r,e,V,r0c);this.drawAxisAndTickLines(r,g,f,V,c.styles,D);this.drawBrushInternal(a);if(a=a.currentValue)if(m=a.state)a=m.bodyHeight,ba=m.bodyWidth,c=m.bodyLeft,e=m.bodyTop,f=m.bodyRight,g=m.bodyBottom,r=m.bottomMarginHeight,
V=m.xAxisPinPosition,k=m.xAxisPinLocked,m=m.xAxisPinCanTrackNow,D=k?u0c:w0c,H=D.lineWidth===void 0?0:D.lineWidth,(new Path2D).rect(c-H,e,ba+H*2,a+r),V&&(m&&!k&&this.drawXAxisPinGradient(e,f,a),this.drawXAxisPinLine(V,e,g,D));a=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a});this.lastDrawnState=d}}}};
h.withinBodyOrAxis=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyRight,e=c.bodyTop,f=c.axisTopEdge;return a>=c.bodyLeft&&a<=d&&b>=e&&b<=f+20};h.withinAxis=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyRight,e=c.axisTopEdge;return a>=c.bodyLeft&&a<=d&&b>=e&&b<=e+20};h.withinBody=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyTop,e=c.bodyRight,f=c.bodyBottom;return a>=c.bodyLeft&&a<=e&&b>=d&&b<=f};
h.calculateDataValue=function(a){var b,c,d=(b=this.lastDrawnState)==null?void 0:(c=b.domainMaps)==null?void 0:c.inverseDomainMap;return d?d(a):null};h.pxToXAxisUnit=function(a){var b,c,d=(b=this.lastDrawnState)==null?void 0:(c=b.domainMaps)==null?void 0:c.inverseDomainMap;return d?d(a)-d(0):null};
h.drawAxisGridLines=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();kl(this.ctx,d,this.base);this.ctx.save();this.ctx.beginPath();c=l(c);for(var e=c.next();!e.done;e=c.next())e=e.value.value,this.ctx.moveTo.apply(this.ctx,n(nl([e,b],d.lineWidth))),this.ctx.lineTo.apply(this.ctx,n(nl([e,a],d.lineWidth)));this.ctx.stroke();this.ctx.restore()};
h.drawAxisAndTickLines=function(a,b,c,d,e,f){f=f===void 0?{}:f;this.ctx.save();kl(this.ctx,f,this.base);this.ctx.save();this.ctx.beginPath();(e==null?0:e.lineDash)&&kl(this.ctx,Object.assign({},f,{lineDash:e.lineDash}),this.base);this.ctx.moveTo.apply(this.ctx,n(nl([b,a],f.lineWidth)));this.ctx.lineTo.apply(this.ctx,n(nl([c,a],f.lineWidth)));this.ctx.stroke();this.ctx.restore();this.ctx.beginPath();b=l(d.length?d:[{value:b,label:""},{value:c,label:""}]);for(c=b.next();!c.done;c=b.next())c=c.value.value,
this.ctx.moveTo.apply(this.ctx,n(nl([c,a],f.lineWidth))),this.ctx.lineTo.apply(this.ctx,n(nl([c,a+5],f.lineWidth)));this.ctx.stroke();this.ctx.restore()};h.drawAxisTickLabels=function(a,b,c,d,e){e=e===void 0?{}:e;var f=[];this.ctx.save();kl(this.ctx,e,this.base);b=l(b);for(e=b.next();!e.done;e=b.next()){var g=e=e.value,k=g.label;g=g.value;var m=this.ctx.measureText(k).width,r=g-m/2;m=g+m/2;r<0||r<c+6||m>d||(ol(this.ctx,k,g,a+8),c=m,f.push(e))}this.ctx.restore();return f};
h.drawLeftLabel=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();kl(this.ctx,Object.assign({},d,{textAlign:"left"}),this.base);a=ol(this.ctx,c,b,a+8);this.ctx.restore();return b+a};h.drawBrushInternal=function(a){if(a=a.currentValue){var b=a.state;if(b){a=b.bodyTop;var c=b.bodyHeight,d=b.brushing,e=b.brushStart,f=b.brushEnd;b=b.brushAxis;f&&b===0&&(e&&d&&(this.drawBrushSelection(e,f,a,c),this.drawBrushLine(e,a,c)),this.drawBrushLine(f,a,c))}}};
h.drawBrushLine=function(a,b,c){var d=d===void 0?t0c:d;this.ctx.save();kl(this.ctx,d,this.base);this.ctx.setLineDash(s0c);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,n(nl([a,b],d.lineWidth)));this.ctx.lineTo.apply(this.ctx,n(nl([a,b+c],d.lineWidth)));this.ctx.stroke();this.ctx.restore()};h.drawBrushSelection=function(a,b,c,d){var e=e===void 0?t0c:e;this.ctx.save();kl(this.ctx,e,this.base);this.ctx.fillRect(Math.min(a,b),c,Math.abs(b-a),d);this.ctx.restore()};
h.drawXAxisPinLine=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();kl(this.ctx,d,this.base);this.ctx.setLineDash(s0c);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,n(nl([a,b],d.lineWidth)));this.ctx.lineTo.apply(this.ctx,n(nl([a,c+4],d.lineWidth)));this.ctx.stroke();this.ctx.restore()};
h.drawXAxisPinGradient=function(a,b,c){this.ctx.save();var d=b-30;b=this.ctx.createLinearGradient(b,a,d,a);b.addColorStop(0,jl("var(--ac-sys-color-extensions-pin-stop, #000)",this.base));b.addColorStop(.7,"hsla(0, 0%, 0%, 0.125)");b.addColorStop(.9,"hsla(0, 0%, 0%, 0.02)");b.addColorStop(.95,"hsla(0, 0%, 0%, 0.008)");b.addColorStop(1,"transparent");kl(this.ctx,Object.assign({},v0c,{fillStyle:b}),this.base);this.ctx.fillRect(d,a,30,c);this.ctx.restore()};var y0c=vk(wk,function(a,b){if(a&&a.min!==null&&a.max!==null&&a.unit==="ms_since_epoch")return a=b.tzNames_[cYc(b,new Date(a.min))>0?2:0],a!=null?a:void 0},ZG,J_c),sH=vk(wk,function(a,b){if(a&&b){var c=a.bodyLeft,d=a.bodyRight;if(d>0&&c>0&&d>c){var e=b.min,f=b.max;return{domainMap:function(g){return cl(e,f,c,d,g)},inverseDomainMap:function(g){return cl(c,d,e,f,g)}}}}},$Wc,$G),z0c=vk(wk,function(a,b){return a&&b===0||!1},QZc,TZc),A0c=vk(wk,function(a,b){if(a)return(b!=null?b:[]).map(function(c){return{label:c.label,
value:a.domainMap(c.value)}})},sH,Q_c),B0c=vk(xk,function(a,b,c){return{position:a,locked:b!=null?b:!1,trackingNow:c!=null?c:!1}},UXc,VXc,WXc),C0c=vk(QAa,function(a,b){if(a!==void 0)return Math.max(a+((b==null?void 0:b.bottom)||0),0)},ZWc,dXc),D0c=vk(wk,function(a,b){if(a!==void 0&&a!==null&&b!==null&&b!==void 0&&b>0)return Date.now()-b<=a},N_c,O_c),E0c=vk(wk,function(a,b,c,d,e,f){if(a&&a.bodyWidth>0&&a.bodyHeight>0){var g;return Object.assign({},a,{brushing:(g=c&&f===0)!=null?g:!1,brushStart:d!==
void 0&&d!==null&&b?b.domainMap(d):null,brushEnd:e!==void 0&&e!==null&&b?b.domainMap(e):null,brushAxis:f!=null?f:0})}},vk(yk,function(a,b,c,d,e,f){if(a!==void 0&&b!==void 0&&c!==void 0&&d!==void 0&&e!==void 0&&f!==void 0)return{bodyTop:a,bodyLeft:b,bodyWidth:c,bodyHeight:d,chartWidth:e,chartHeight:f}},WWc,XWc,VWc,UWc,aXc,bXc),sH,PZc,RZc,SZc,TZc),F0c=vk(wk,function(a,b,c,d,e){if(a&&a.bodyWidth>0&&a.bodyHeight>0)return Object.assign({},a,{bottomMarginHeight:Math.max(0,a.chartHeight-a.bodyBottom),xAxisPinPosition:c!==
void 0&&b?b.domainMap(c):null,xAxisPinLocked:d!=null?d:!1,xAxisPinCanTrackNow:e!=null?e:!1})},nG,sH,UXc,VXc,D0c),G0c=vk(xk,function(a,b,c,d,e){if(a&&a.bodyWidth>0&&a.chartHeight>0&&d!==void 0)return{bodyTop:a.bodyTop,bodyLeft:a.bodyLeft,bodyRight:a.bodyRight,bodyBottom:a.bodyBottom,chartWidth:a.chartWidth,axisTopEdge:d,ticks:b!=null?b:[],timeZoneLabel:c,domainMaps:e}},nG,A0c,y0c,C0c,sH),H0c=vk(xk,function(a,b,c){if(a&&b&&c)return Object.assign({},a,b,c)},vk(xk,function(a,b,c,d,e){if(a&&a.bodyWidth>
0&&a.chartHeight>0&&d!==void 0)return{bodyTop:a.bodyTop,bodyLeft:a.bodyLeft,bodyRight:a.bodyRight,bodyBottom:a.bodyBottom,chartWidth:a.chartWidth,chartHeight:a.chartHeight,bodyHeight:a.bodyHeight,bodyWidth:a.bodyWidth,bottomMarginHeight:Math.max(0,a.chartHeight-a.bodyBottom),axisTopEdge:d,ticks:b!=null?b:[],timeZoneLabel:c,domainMaps:e}},nG,A0c,y0c,C0c,sH),vk(wk,function(a,b,c,d,e){var f;return{brushing:(f=b&&e===0)!=null?f:!1,brushStart:c!==void 0&&c!==null&&a?a.domainMap(c):null,brushEnd:d!==void 0&&
d!==null&&a?a.domainMap(d):null,brushAxis:e!=null?e:0}},sH,PZc,RZc,SZc,TZc),vk(wk,function(a,b,c,d){return{xAxisPinPosition:b!==void 0&&a?a.domainMap(b):null,xAxisPinLocked:c!=null?c:!1,xAxisPinCanTrackNow:d!=null?d:!1}},sH,UXc,VXc,D0c)),I0c=vk(xk,function(a,b){if(a!==void 0&&b)return{xAxisPinPxPos:b.domainMap(a)}},UXc,sH),J0c=vk(xk,function(a,b,c,d,e,f){if(e.position!==void 0&&a&&a.max!==null&&d&&f!==void 0)return{xAxisPinPxPos:d.xAxisPinPxPos,xAxisPinPosition:e.trackingNow?a.max:e.position,axisTopEdge:f,
xAxisTickIncrement:b,xAxisUnit:a.unit,xAxisTimeZone:c,xAxisPinTrackingNow:e.trackingNow,xAxisPinLocked:e.locked}},$G,O_c,J_c,I0c,B0c,C0c),K0c=vk(xk,function(a,b){if(a)return{xAxisMin:a.min,xAxisMax:a.max,xAxisUnit:a.unit,xAxisTimeZone:b}},$G,J_c),L0c=vk(xk,function(a,b,c){if(a.position!==void 0&&b&&b.unit==="ms_since_epoch")return{xAxisPinPosition:a.position,xAxisPinLocked:a.locked,xAxisPinTrackingNow:a.trackingNow,xAxisPinCanTrackNow:c!=null?c:!1,xAxisMin:b.min,xAxisMax:b.max}},B0c,$G,D0c),M0c=vk(wk,
function(a,b,c,d,e){return{brushPanning:e!=null?e:!1,brushBrushing:b!=null?b:!1,brushAxis:d!=null?d:0,brushPositionStart:c!=null?c:null,xAxisUnit:a!=null?a:null}},P_c,PZc,RZc,TZc,QZc),N0c=vk(wk,function(a,b,c){return{xAxisMax:a!=null?a:null,xAxisPinCanTrackNow:b!=null?b:!1,xAxisUnit:c!=null?c:null}},N_c,D0c,P_c),O0c=vk(wk,function(a,b,c,d,e){var f;return{brushPanning:a!=null?a:!1,xAxisMax:b!=null?b:null,xAxisPinCanTrackNow:c!=null?c:!1,xAxisPinLocked:d.locked,xAxisPinPosition:(f=d.position)!=null?
f:null,xAxisPinTrackingNow:d.trackingNow,xAxisUnit:e!=null?e:null}},QZc,N_c,D0c,B0c,P_c),P0c=vk(wk,function(a,b,c,d,e){var f,g,k;return{brushAxis:a!=null?a:0,brushBrushing:b!=null?b:!1,brushPanning:c!=null?c:!1,brushPosition:d!=null?d:null,xAxisMax:(f=e==null?void 0:e.max)!=null?f:null,xAxisMin:(g=e==null?void 0:e.min)!=null?g:null,xAxisUnit:(k=e==null?void 0:e.unit)!=null?k:null}},TZc,PZc,QZc,SZc,$G);var Q0c={globalAlpha:1,lineWidth:2,lineCap:"square",globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-extensions-neutral, #BDBDBD)"},R0c=Object.assign({},Q0c,{strokeStyle:"var(--ac-sys-color-chart-x-axis-pin, #5F6368)"}),S0c={globalAlpha:.2},T0c=function(a){TG.call(this,a);this.canvas.className="overlay-z-index"};Z(T0c,TG);
T0c.prototype.drawInternal=function(a){if(a=a.currentValue){var b=a.state;if(b){a=b.bodyHeight;var c=b.bodyWidth,d=b.bodyLeft,e=b.bodyTop,f=b.bodyRight,g=b.bodyBottom,k=b.chartHeight,m=b.chartWidth,r=b.bottomMarginHeight,w=b.xAxisPinPosition,x=b.xAxisPinLocked;b=b.xAxisPinCanTrackNow;this.canvas.style.left="0px";this.canvas.style.top="0px";ml(this.canvas,this.base,k,m);k=x?R0c:Q0c;m=k.lineWidth===void 0?0:k.lineWidth;var D=new Path2D;D.rect(d-m,e,c+m*2,a+r);this.ctx.clip(D);w&&(b&&!x&&this.drawXAxisPinGradient(e,
f,a),this.drawXAxisPinLine(w,e,g,k))}}};T0c.prototype.drawXAxisPinLine=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();kl(this.ctx,d,this.base);this.ctx.setLineDash(n0c);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,n(nl([a,b],d.lineWidth)));this.ctx.lineTo.apply(this.ctx,n(nl([a,c+4],d.lineWidth)));this.ctx.stroke();this.ctx.restore()};
T0c.prototype.drawXAxisPinGradient=function(a,b,c){this.ctx.save();var d=b-30;b=this.ctx.createLinearGradient(b,a,d,a);b.addColorStop(0,jl("var(--ac-sys-color-extensions-pin-stop, #000)",this.base));b.addColorStop(.7,"hsla(0, 0%, 0%, 0.125)");b.addColorStop(.9,"hsla(0, 0%, 0%, 0.02)");b.addColorStop(.95,"hsla(0, 0%, 0%, 0.008)");b.addColorStop(1,"transparent");kl(this.ctx,Object.assign({},S0c,{fillStyle:b}),this.base);this.ctx.fillRect(d,a,30,c);this.ctx.restore()};var U0c=function(){TG.apply(this,arguments);this.lastDrawnState=null};Z(U0c,TG);h=U0c.prototype;
h.drawInternal=function(a){var b=performance.now(),c=a.currentValue;if(c&&(a=c.state,c=c.config,a&&c)){var d=a.bodyTop,e=a.bodyRight,f=a.bodyLeft,g=a.chartWidth,k=a.ticks,m=a.axisTopEdge,r=a.timeZoneLabel,w=c.shift?tDa(c.shift):"";this.canvas.style.left="0px";this.canvas.style.top="0px";ml(this.canvas,this.base,m+20,g);var x;if(!(c==null?0:(x=c.styles)==null?0:x.hideAxis)){x=rH;var D,H,J,O;x=Object.assign({},x,{fillStyle:(J=c==null?void 0:(D=c.styles)==null?void 0:D.textColor)!=null?J:x.fillStyle,
font:(O=c==null?void 0:(H=c.styles)==null?void 0:H.font)!=null?O:x.font});D=w||r;H=0;var R;D&&(c==null?void 0:(R=c.styles)==null?void 0:R.hideLeftLabel)!==!0&&(H=this.drawLeftLabel(m,f,D,x));R=this.drawAxisTickLabels(m,k,H,g,x);var V;((V=c.styles)==null?0:V.drawGrid)&&this.drawAxisGridLines(m,d,R,r0c);this.drawAxisAndTickLines(m,f,e,R,c.styles,x);V=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:V});this.lastDrawnState=a}}};
h.withinBodyOrAxis=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyRight,e=c.bodyTop,f=c.axisTopEdge;return a>=c.bodyLeft&&a<=d&&b>=e&&b<=f+20};h.withinAxis=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyRight,e=c.axisTopEdge;return a>=c.bodyLeft&&a<=d&&b>=e&&b<=e+20};h.withinBody=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyTop,e=c.bodyRight,f=c.bodyBottom;return a>=c.bodyLeft&&a<=e&&b>=d&&b<=f};
h.calculateDataValue=function(a){var b,c,d=(b=this.lastDrawnState)==null?void 0:(c=b.domainMaps)==null?void 0:c.inverseDomainMap;return d?d(a):null};h.pxToXAxisUnit=function(a){var b,c,d=(b=this.lastDrawnState)==null?void 0:(c=b.domainMaps)==null?void 0:c.inverseDomainMap;return d?d(a)-d(0):null};
h.drawAxisGridLines=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();kl(this.ctx,d,this.base);this.ctx.save();this.ctx.beginPath();c=l(c);for(var e=c.next();!e.done;e=c.next())e=e.value.value,this.ctx.moveTo.apply(this.ctx,n(nl([e,b],d.lineWidth))),this.ctx.lineTo.apply(this.ctx,n(nl([e,a],d.lineWidth)));this.ctx.stroke();this.ctx.restore()};
h.drawAxisAndTickLines=function(a,b,c,d,e,f){f=f===void 0?{}:f;this.ctx.save();kl(this.ctx,f,this.base);this.ctx.save();this.ctx.beginPath();(e==null?0:e.lineDash)&&kl(this.ctx,Object.assign({},f,{lineDash:e.lineDash}),this.base);this.ctx.moveTo.apply(this.ctx,n(nl([b,a],f.lineWidth)));this.ctx.lineTo.apply(this.ctx,n(nl([c,a],f.lineWidth)));this.ctx.stroke();this.ctx.restore();this.ctx.beginPath();b=l(d.length?d:[{value:b,label:""},{value:c,label:""}]);for(c=b.next();!c.done;c=b.next())c=c.value.value,
this.ctx.moveTo.apply(this.ctx,n(nl([c,a],f.lineWidth))),this.ctx.lineTo.apply(this.ctx,n(nl([c,a+5],f.lineWidth)));this.ctx.stroke();this.ctx.restore()};h.drawAxisTickLabels=function(a,b,c,d,e){e=e===void 0?{}:e;var f=[];this.ctx.save();kl(this.ctx,e,this.base);b=l(b);for(e=b.next();!e.done;e=b.next()){var g=e=e.value,k=g.label;g=g.value;var m=this.ctx.measureText(k).width,r=g-m/2;m=g+m/2;r<0||r<c+6||m>d||(ol(this.ctx,k,g,a+8),c=m,f.push(e))}this.ctx.restore();return f};
h.drawLeftLabel=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();kl(this.ctx,Object.assign({},d,{textAlign:"left"}),this.base);a=ol(this.ctx,c,b,a+8);this.ctx.restore();return b+a};var V0c=function(a){iE.call(this,a)};Z(V0c,iE);var Fl=function(a){var b=this;this.lastAveEvent=this.tracker=null;this.interactionEventListener=function(){b.lastAveEvent=null};a&&(this.tracker=lRc(a))&&this.tracker.addInteractionEventListener(this.interactionEventListener)},El=function(a,b,c,d,e){e=e===void 0?{}:e;!(a.tracker&&a.tracker.logSyntheticEvent&&d)||e.debounce&&a.lastAveEvent&&a.lastAveEvent.eventType===b&&a.lastAveEvent.visualElement===c&&a.lastAveEvent.el===d||(a.tracker.logSyntheticEvent(b,new V0c(c),d),a.lastAveEvent={eventType:b,
visualElement:c,el:d})};Fl.prototype.ngOnDestroy=function(){this.tracker&&this.tracker.removeInteractionEventListener(this.interactionEventListener)};Fl.ve={AccessibilityGrid:118923,AwesomeChartImage:68528,AwesomeChartLegendPane:68529,HovercardCloseButton:164075,HovercardPinToggle:164076,HovercardUnpinToggle:164077,HovercardZone:118924,LineDeselectToggle:68567,LineMultiSelectToggle:118925,LineSelectToggle:68568,LineSpecificSelectToggle:118926,XPanZone:118927,XZoomZone:68583,YZoomZone:68585};
Fl.\u0275fac=function(a){return new (a||Fl)(Wc(iRc,8))};Fl.\u0275prov=Cc({token:Fl,factory:Fl.\u0275fac,providedIn:"root"});var wl=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);var W0c=gk("[AC] Map chart IDs to a dashboard ID",hk());var tH=function(a){var b=this;this.document=a;this.hiddenPageMeasurements=new Map;this.isPageHidden=this.document.visibilityState!=="visible";this.onVisibilityChange=function(){if(b.document.visibilityState==="visible"){var c=performance.now();b.isPageHidden=!1;for(var d=l(b.hiddenPageMeasurements.values()),e=d.next();!e.done;e=d.next())e=e.value.hiddenSpans,(e=e[e.length-1])?e.endTimestamp=c:console.error("No latest span was found for a hidden time measurement")}else for(c=performance.now(),b.isPageHidden=
!0,d=l(b.hiddenPageMeasurements.values()),e=d.next();!e.done;e=d.next())e.value.hiddenSpans.push({startTimestamp:c})};this.document.addEventListener("visibilitychange",this.onVisibilityChange)},X0c=function(a,b){var c=performance.now();return(b=a.hiddenPageMeasurements.get(b))?b.hiddenSpans.reduce(function(d,e){var f=e.startTimestamp;e=e.endTimestamp;if(e==null){if(a.isPageHidden)return d+c-f;console.error("Page hidden time span is missing an end timestamp");return d}return d+e-f},0):null};
tH.prototype.endHiddenMeasurement=function(a){var b=X0c(this,a);this.hiddenPageMeasurements.delete(a);return b};tH.prototype.ngOnDestroy=function(){this.document.removeEventListener("visibilitychange",this.onVisibilityChange)};tH.prototype.endHiddenMeasurement=tH.prototype.endHiddenMeasurement;tH.\u0275fac=function(a){return new (a||tH)(Wc(Yh))};tH.\u0275prov=Cc({token:tH,factory:tH.\u0275fac,providedIn:"root"});var uH=function(a,b){var c=this;this.pageVisibilityService=a;this.store=b;this.generator=this.logger=null;this.didWarnMissingGenerator=!1;this.signalsFlushed$=new rf;this.isRequestIdleCallbackSupported="requestIdleCallback"in window;this.signalsToSendOnIdle=[];this.idleTimerId=0;this.processSignalQueue=function(d){for(var e;(d.didTimeout||d.timeRemaining()>0)&&(e=c.signalsToSendOnIdle.shift());){var f=void 0;(f=c.generator)==null||f.receiveSignal(e)}c.idleTimerId=0;Y0c(c);c.signalsToSendOnIdle.length||
c.signalsFlushed$.next()};this.dashboardState$=this.store.pipe(lk(uDa()),te(function(d){return(d==null?void 0:d.chartIdToDashboardId)!=null}))},vH=function(a,b){a.didWarnMissingGenerator||a.generator!==null?a.generator&&(b.dashboardId!=null||"dashboardId"in b?Z0c(a,b):$0c(a,b.chartId).subscribe(function(c){b.dashboardId=c;Z0c(a,b)})):a.didWarnMissingGenerator=!0},Z0c=function(a,b){if(a.isRequestIdleCallbackSupported)a.signalsToSendOnIdle.push(b),Y0c(a);else{var c;(c=a.generator)==null||c.receiveSignal(b)}},
Y0c=function(a){!a.idleTimerId&&a.signalsToSendOnIdle.length&&(a.idleTimerId=requestIdleCallback(a.processSignalQueue,{timeout:5E3}))};uH.prototype.initialize=function(){this.didWarnMissingGenerator||this.generator!==null?this.generator&&this.generator.initialize():this.didWarnMissingGenerator=!0};uH.prototype.stop=function(){this.didWarnMissingGenerator||this.generator!==null?this.generator&&this.generator.stop():this.didWarnMissingGenerator=!0};
var $0c=function(a,b){return a.dashboardState$.pipe(te(function(c){return c.chartIdToDashboardId[b]!=null}),A(function(c){return c.chartIdToDashboardId[b]}),mf(1))};uH.\u0275fac=function(a){return new (a||uH)(Wc(tH),Wc(eG))};uH.\u0275prov=Cc({token:uH,factory:uH.\u0275fac,providedIn:"root"});var a1c=["pinPill"],wDa=function(a,b){return{left:a,top:b}},CDa=function(a,b,c){return{locked:a,draggable:b,dragging:c}},DDa=function(a,b,c){return{top:a,"min-height":b,"border-radius":c}},EDa=function(a,b){return{"margin-left":a,"margin-right":b}},FDa=function(a,b,c){return{height:a,width:b,padding:c}},b1c=new bd("AwesomechartsTimezoneOffset");new bd("AwesomechartsTimeZoneId");
var c1c={dragZoom:!0,ctrlScrollZoom:!0,ctrlDragPan:!0,hoverBrush:!0,clickTimePin:!0,hoverTimePin:!0,moveTimePinOnChartClick:!1,touchPan:!0,touchZoom:!0},d1c={lineDash:[],hideAxis:!1},e1c=new em("Data in this chart spans a time range from {MIN} to {MAX}."),f1c=new em("Independent values in this chart along the X axis range from {MIN} to {MAX}."),g1c=new em("Unpin X axis cursor at {PIN_LABEL}"),h1c=new em("Pin X axis cursor at {PIN_LABEL}"),i1c=0,j1c={comment:"M11 14H13V11H16V9H13V6H11V9H8V11H11ZM2 22V4Q2 3.175 2.588 2.587Q3.175 2 4 2H20Q20.825 2 21.413 2.587Q22 3.175 22 4V16Q22 16.825 21.413 17.413Q20.825 18 20 18H6ZM4 16H20Q20 16 20 16Q20 16 20 16V4Q20 4 20 4Q20 4 20 4H4Q4 4 4 4Q4 4 4 4V16ZM4 16V4Q4 4 4 4Q4 4 4 4Q4 4 4 4Q4 4 4 4V16Q4 16 4 16Q4 16 4 16Z"},
wH=function(a,b,c,d,e,f,g,k,m){eH.call(this,a,b,c,!0);this.interactionService=d;this.instrumentationService=e;this.liveAnnouncer=f;this.ngZone=g;this.tickStrategy=xCa;this.timePinLabelStrategy=vl;this.relativeTo=null;this.rightOverhangMargin=this.leftOverhangMargin=10;this.xAxisBrushActionButtonConfig=null;this.onPinChange=new ui;this.axisDescriptionObservable=be("");this.dataSubject=new Xj(null);var r;this.configSubject=new Xj({shift:((r=this.relativeTo)==null?void 0:r.shift)||0,styles:this.styles});
this.stylesInternal=d1c;this.interactionsInternal=c1c;this.isMouseDown=!1;this.lastMouseMoveEvent=this.lastMouseDownEvent=this.lastXAxisPinButtonClickEvent=null;this.touchState={lastTouchDistance:null,lastTouchCenter:null};var w;this.timePinLabelStrategySubject=new Xj((w=this.timePinLabelStrategy)!=null?w:vl);var x,D;this.showXAxisPinPillSubject=new Xj(!!(((x=this.interactions)==null?0:x.clickTimePin)||((D=this.interactions)==null?0:D.hoverTimePin)));this.relativeToSubject=new Xj(null);this.xAxisPinPillObservable=
be(null);this.xAxisUnpinAriaLabelObservable=be("Unpin X axis cursor");this.xAxisPinAriaLabelObservable=be("Pin X axis cursor");this.actionButtonPosition$=be(null);this.isActionButtonBeingHovered$=new Xj(!1);this.xAxisCursorDescribedById="ac-x-axis-aria-describedby-"+i1c++;this.isCurrentChartBeingHovered$=new Xj(!1);this.AC_SYS_COLOR_EXTENSIONS_ON_SURFACE="var(--ac-sys-color-extensions-on-surface, #202124)";this.layerType="axis";k&&(this.timezoneOffset=k);m?(this.axisView=new x0c(a.nativeElement),
this.redrawableViews=[this.axisView]):(this.axisView=new U0c(a.nativeElement),this.brushView=new o0c(a.nativeElement),this.xAxisPinView=new T0c(a.nativeElement),this.redrawableViews=[this.axisView,this.brushView,this.xAxisPinView]);this.bindDrawInstrumentation()};Z(wH,eH);wH.\u0275dir=eH.\u0275dir;h=wH.prototype;h.isPrimaryModifierKeyDown=function(a){return wl?a.metaKey:a.ctrlKey};
h.bindDrawInstrumentation=function(){var a=this;PG(this.axisView,function(b){var c=b.drawStartTimestamp;var d=b.drawStopTimestamp;a.scopeObservable.pipe(mf(1)).subscribe(function(e){var f=e.chartId;e=e.layerId;vH(a.instrumentationService,{type:"draw-start",layerType:"axis",timestamp:c,chartId:f,layerId:e});vH(a.instrumentationService,{type:"draw-stop",layerType:"axis",timestamp:d,chartId:f,layerId:e,metadata:{hasCompleteData:!1}})})})};
h.ngOnInit=function(){var a=this;eH.prototype.ngOnInit.call(this);var b=[];this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});this.chart.mouseClickObservable.pipe(Af(this.destroyed)).subscribe(function(g){a.onClick(g)});this.chart.mouseDownObservable.pipe(Af(this.destroyed)).subscribe(function(g){a.onMouseDown(g)});he([this.chart.mouseLeaveObservable,this.isActionButtonBeingHovered$]).pipe(Af(this.destroyed)).subscribe(function(g){g=l(g);g.next();if(!g.next().value)a.onMouseLeave()});
zG(this.chart,"chart",function(g){return a.onMouseMove(g)},this.destroyed);this.chart.keyDownObservable.pipe(Af(this.destroyed)).subscribe(function(g){a.onKeyDown(g)});this.chart.keyUpObservable.pipe(Af(this.destroyed)).subscribe(function(g){a.onKeyUp(g)});this.chart.scrollObservable.pipe(Af(this.destroyed)).subscribe(function(g){a.onScroll(g)});this.chart.syncScrollObservable.pipe(Af(this.destroyed)).subscribe(function(g){a.syncOnScroll(g)});this.chart.touchStartObservable.pipe(Af(this.destroyed)).subscribe(function(g){if(g.touches.length===
2){var k,m;if(((k=a.interactions)==null?0:k.touchPan)||((m=a.interactions)==null?0:m.touchZoom))g.preventDefault(),k=g.touches[0],g=g.touches[1],a.touchState.lastTouchDistance=Math.abs(k.clientX-g.clientX),a.touchState.lastTouchCenter=fH(a,{clientX:(k.clientX+g.clientX)/2,clientY:(k.clientY+g.clientY)/2})}});this.chart.touchMoveObservable.pipe(Af(this.destroyed)).subscribe(function(g){a:if(g.touches.length===2){var k,m;if(((k=a.interactions)==null?0:k.touchPan)||((m=a.interactions)==null?0:m.touchZoom)){g.preventDefault();
k=g.touches[0];m=g.touches[1];g=Math.abs(k.clientX-m.clientX);k=fH(a,{clientX:(k.clientX+m.clientX)/2,clientY:(k.clientY+m.clientY)/2});if(a.touchState.lastTouchDistance!==null&&a.touchState.lastTouchCenter!==null){var r=a.touchState.lastTouchDistance/g;m=k.x-a.touchState.lastTouchCenter.x;var w=a.select($G);if(!w)break a;var x=w.min,D=w.max;w=w.unit;var H=a.axisView.calculateDataValue(a.touchState.lastTouchCenter.x);if(H===null)break a;x=H-(H-x)*r;r=H+(D-H)*r;if(m=a.axisView.pxToXAxisUnit(-m))x+=
m,r+=m;k1c(a,x,r,w)}a.touchState.lastTouchDistance=g;a.touchState.lastTouchCenter=k}}});this.chart.touchEndObservable.pipe(Af(this.destroyed)).subscribe(function(){a.touchState.lastTouchDistance=null;a.touchState.lastTouchCenter=null});this.chart.documentMouseUpObservable.pipe(Af(this.destroyed)).subscribe(function(g){a.onMouseUp(g)});zG(this.chart,"document",function(g){return a.onDocumentMouseMove(g)},this.destroyed);this.chart.mouseEnterObservable.pipe(Af(this.destroyed)).subscribe(function(g){a.onMouseEnter(g)});
se(this.chart.syncDragStartObservable,this.chart.syncDragObservable,this.chart.syncDragEndObservable).pipe(Af(this.destroyed)).subscribe(function(g){var k,m;if(((k=a.interactions)==null?0:k.ctrlDragPan)||((m=a.interactions)==null?0:m.dragZoom))g.preventDefault(),g.stopPropagation()});se(this.chart.syncTouchStartObservable,this.chart.syncTouchMoveObservable,this.chart.syncTouchEndObservable).pipe(Af(this.destroyed)).subscribe(function(g){var k,m;if(((k=a.interactions)==null?0:k.touchZoom)||((m=a.interactions)==
null?0:m.touchPan))g.preventDefault(),g.stopPropagation()});this.timezoneOffset!==void 0&&this.timezoneOffset!==null&&b.push(C_c({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,timezoneOffset:this.timezoneOffset}));this.timeZoneId&&b.push(D_c({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,timeZoneId:this.timeZoneId}));b.push(NG({chartGroupId:this.chartGroupId,chartId:this.chartId,layerId:this.layerId,reservedMargins:{bottom:this.styles.hideAxis?
0:20},overlappingMargins:{left:this.leftOverhangMargin,right:this.rightOverhangMargin}}));bZc(this.selectorService,{chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId},this.tickStrategy);var c=this.selectorFactoryToObservable(G0c),d=this.selectorFactoryToObservable(E0c),e=this.selectorFactoryToObservable(F0c),f=this.selectorFactoryToObservable(H0c);he([f,this.configObservable]).pipe(A(function(g){var k=l(g);g=k.next().value;return{data:null,config:k.next().value.currentValue,
state:g!=null?g:null}}),yf(null),uf(),A(rk),Af(this.destroyed),Df(this.scopeObservable)).subscribe(function(g){var k=l(g);g=k.next().value;k=k.next().value;a.chart.scheduleChangeHandler({mergeKey:(k.layerId||a.layerId)+"-drawFromSelection",changes:g,viewHandler:function(m){a.axisView.draw(m)},scope:k||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});he([c,this.configObservable]).pipe(A(function(g){var k=l(g);g=k.next().value;return{data:null,
config:k.next().value.currentValue,state:g!=null?g:null}}),yf(null),uf(),A(rk),Af(this.destroyed),Df(this.scopeObservable)).subscribe(function(g){var k=l(g);g=k.next().value;k=k.next().value;a.chart.scheduleChangeHandler({mergeKey:(k.layerId||a.layerId)+"-drawFromSelection",changes:g,viewHandler:function(m){a.axisView instanceof U0c&&a.axisView.draw(m)},scope:k||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});he([d,this.configObservable]).pipe(A(function(g){var k=
l(g);g=k.next().value;return{data:null,config:k.next().value.currentValue,state:g!=null?g:null}}),yf(null),uf(),A(rk),Af(this.destroyed),Df(this.scopeObservable)).subscribe(function(g){var k=l(g);g=k.next().value;k=k.next().value;a.chart.scheduleChangeHandler({mergeKey:(k.layerId||a.layerId)+"-drawBrushFromSelection",changes:g,viewHandler:function(m){var r;(r=a.brushView)==null||r.draw(m)},scope:k||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});
he([e,this.configObservable]).pipe(A(function(g){var k=l(g);g=k.next().value;return{data:null,config:k.next().value.currentValue,state:g!=null?g:null}}),yf(null),uf(),A(rk),Af(this.destroyed),Df(this.scopeObservable)).subscribe(function(g){var k=l(g);g=k.next().value;k=k.next().value;a.chart.scheduleChangeHandler({mergeKey:(k.layerId||a.layerId)+"-drawTimePinFromSelection",changes:g,viewHandler:function(m){var r;(r=a.xAxisPinView)==null||r.draw(m)},scope:k||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,
xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});this.xAxisPinPillObservable=he([this.selectorFactoryToObservable(J0c),this.timePinLabelStrategySubject,this.showXAxisPinPillSubject]).pipe(A(function(g){var k=l(g);g=k.next().value;var m=k.next().value;if(!k.next().value||!g)return null;k=g.xAxisPinPxPos;var r=g.xAxisPinPosition,w=g.xAxisPinTrackingNow,x=g.xAxisPinLocked,D=g.axisTopEdge;return r?{label:m({position:r,tickIncrement:g.xAxisTickIncrement,timeZone:g.xAxisTimeZone,trackingNow:w,unit:g.xAxisUnit||
"ms_since_epoch"}),locked:x,draggable:!x,dragging:!x,left:k,top:D+4,height:16,trackingNow:w}:null}));this.xAxisUnpinAriaLabelObservable=this.xAxisPinPillObservable.pipe(A(function(g){return(g==null?0:g.label)?g1c.format({PIN_LABEL:g.label}):"Unpin X axis cursor"}));this.xAxisPinAriaLabelObservable=this.xAxisPinPillObservable.pipe(A(function(g){return(g==null?0:g.label)?h1c.format({PIN_LABEL:g.label}):"Pin X axis cursor"}));this.actionButtonPosition$=(d!=null?d:f).pipe(A(function(g){return g&&g.brushEnd?
{left:g.brushEnd,top:g.bodyTop}:null}),Af(this.destroyed));this.axisDescriptionObservable=this.selectorFactoryToObservable(K0c).pipe(A(function(g){if(!g)return"";var k=g.xAxisUnit,m=g.xAxisMin,r=g.xAxisMax;g=g.xAxisTimeZone;return m!==null&&r!==null?k==="ms_since_epoch"?e1c.format({MIN:fCa(new Date(m),g),MAX:fCa(new Date(r),g)}):f1c.format({MIN:Yk(m,k),MAX:Yk(r,k)}):""}),nf(0),Ik(this.ngZone));this.selectorFactoryToObservable(L0c).pipe(Af(this.destroyed)).subscribe(function(g){if(g){var k=g.xAxisPinPosition,
m=g.xAxisPinTrackingNow,r=g.xAxisPinCanTrackNow,w=g.xAxisMin,x=g.xAxisMax;g.xAxisPinLocked&&m?r?a.store.dispatch(nH({chartGroupId:a.chartGroupId,position:x})):a.store.dispatch(pk({actions:l1c(a,!0)})):w!==null&&x!==null&&(k<w||x<k)&&a.store.dispatch(pk({actions:l1c(a,!0)}))}});this.scopeObservable.pipe(Af(this.destroyed),yf(null),uf(),A(rk)).subscribe(function(g){var k=g.previousValue;(g=g.currentValue)&&(k==null?void 0:k.layerId)!==(g==null?void 0:g.layerId)&&yG(a.chart,[kG({chartGroupId:g.chartGroupId,
chartId:g.chartId,previousLayerId:k==null?void 0:k.layerId,currentLayerId:g.layerId})])});yG(this.chart,b)};h.ngAfterViewInit=function(){var a=this;he([this.selectorFactoryToObservable(I0c),this.showXAxisPinPillSubject,this.pillEl.changes]).pipe(Af(this.destroyed)).subscribe(function(b){var c=l(b);b=c.next().value;c.next().value&&a.pillEl&&a.pillEl.length&&b&&(a.pillEl.first.nativeElement.style.left=b.xAxisPinPxPos+"px")})};
h.ngOnChanges=function(a){eH.prototype.ngOnChanges.call(this,a);var b=[];"tickStrategy"in a&&(bZc(this.selectorService,{chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId},this.tickStrategy),this.interactions=this.interactionsInternal);if("timePinLabelStrategy"in a){var c;this.timePinLabelStrategySubject.next((c=this.timePinLabelStrategy)!=null?c:vl)}"timezoneOffset"in a&&this.timezoneOffset!==void 0&&this.timezoneOffset!==null&&b.push(C_c({chartGroupId:this.chartGroupId,chartId:this.chartId,
xAxisId:this.xAxisId,timezoneOffset:this.timezoneOffset}));"timeZoneId"in a&&this.timeZoneId&&b.push(D_c({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,timeZoneId:this.timeZoneId}));if("styles"in a||"relativeTo"in a){var d;this.configSubject.next({shift:(d=this.relativeTo)==null?void 0:d.shift,styles:this.styles})}if("interactions"in a){var e,f,g;if(((e=this.interactions)==null?0:e.hoverBrush)||((f=this.interactions)==null?0:f.dragZoom)||(g=this.brushView)==null||!g.isAttached()){var k,
m,r;if((((k=this.interactions)==null?0:k.hoverBrush)||((m=this.interactions)==null?0:m.dragZoom))&&((r=this.brushView)==null||!r.isAttached())){var w;(w=this.brushView)==null||w.reattach()}}else this.brushView.detach();var x,D,H;if(((x=this.interactions)==null?0:x.clickTimePin)||((D=this.interactions)==null?0:D.hoverTimePin)||(H=this.xAxisPinView)==null||!H.isAttached()){var J,O,R;if((((J=this.interactions)==null?0:J.clickTimePin)||((O=this.interactions)==null?0:O.hoverTimePin))&&((R=this.xAxisPinView)==
null||!R.isAttached())){var V;(V=this.xAxisPinView)==null||V.reattach();this.showXAxisPinPillSubject.next(!0)}}else this.xAxisPinView.detach(),this.showXAxisPinPillSubject.next(!1)}"relativeTo"in a&&(this.relativeTo&&b.push(B_c({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,relativeToId:this.relativeTo.xAxisId,shift:this.relativeTo.shift})),this.relativeToSubject.next(this.relativeTo));("leftOverhangMargin"in a||"rightOverhangMargin"in a)&&b.push(NG({chartGroupId:this.chartGroupId,
chartId:this.chartId,layerId:this.layerId,reservedMargins:{bottom:this.styles.hideAxis?0:20},overlappingMargins:{left:this.leftOverhangMargin,right:this.rightOverhangMargin}}));yG(this.chart,b)};h.ngOnDestroy=function(){eH.prototype.ngOnDestroy.call(this);this.axisView.destroy();var a;(a=this.brushView)==null||a.destroy();var b;(b=this.xAxisPinView)==null||b.destroy();a=hH(this,null);this.store.dispatch(pk({actions:[iZc({chartGroupId:this.chartGroupId,chartId:this.chartId,layerId:this.layerId}),a]}))};
h.onClick=function(a){var b=this.select(N0c);if(b){var c=b.xAxisUnit,d=b.xAxisMax,e=b.xAxisPinCanTrackNow,f=fH(this,a);b=this.axisView.calculateDataValue(f.x);this.axisView.withinBodyOrAxis(f.x,f.y)&&this.store.dispatch(lH({chartId:this.chartId,lastInteraction:{click:f.x}}));var g,k;if(((g=this.interactions)==null?0:g.clickTimePin)&&a.pageX!==((k=this.lastXAxisPinButtonClickEvent)==null?void 0:k.pageX)&&(this.interactions.moveTimePinOnChartClick&&this.axisView.withinBodyOrAxis(f.x,f.y)||this.axisView.withinAxis(f.x,
f.y))){if((g=this.pillEl.first)&&g.nativeElement.className.includes("x-axis-pin")&&g.nativeElement.querySelector(".x-axis-pin-icon-wrapper")&&(g=g.nativeElement.children[1].getBoundingClientRect(),k=a.clientX-g.x,f=a.clientY-g.y,k>0&&k<g.width&&f>0&&f<g.height)){BDa(this,a,!0);return}if(c=(a=m1c(this,e,b,c,d))&&c==="ms_since_epoch"&&d!==null?d:b)this.onPinChange.emit(c),this.store.dispatch(pk({actions:[nH({chartGroupId:this.chartGroupId,position:c}),oH({chartGroupId:this.chartGroupId,locked:!0}),
pH({chartGroupId:this.chartGroupId,trackingNow:a})]}))}}};h.onMouseDown=function(a){this.isMouseDown=!0;this.lastMouseDownEvent=a};
h.onMouseMove=function(a){var b=[],c=this.select(O0c);if(!c)return b;var d=c.xAxisPinLocked,e=c.xAxisPinPosition,f=c.xAxisPinTrackingNow,g=c.xAxisPinCanTrackNow,k=c.brushPanning,m=c.xAxisUnit;c=c.xAxisMax;a=fH(this,a);var r;((r=this.interactions)==null?0:r.hoverTimePin)&&!d&&!k&&(this.interactions.moveTimePinOnChartClick&&this.axisView.withinBodyOrAxis(a.x,a.y)||this.axisView.withinAxis(a.x,a.y)?(d=this.axisView.calculateDataValue(a.x),g=m1c(this,g,d,m,c),b.push(nH({chartGroupId:this.chartGroupId,
position:g&&m==="ms_since_epoch"&&c!==null?c:d})),b.push(pH({chartGroupId:this.chartGroupId,trackingNow:g}))):d||(e!==null&&b.push(nH({chartGroupId:this.chartGroupId,position:null})),f&&b.push(pH({chartGroupId:this.chartGroupId,trackingNow:!1}))));this.axisView.withinBody(a.x,a.y)?(b.push(lH({chartId:this.chartId,lastInteraction:{hover:a.x}})),this.isCurrentChartBeingHovered$.getValue()||this.isCurrentChartBeingHovered$.next(!0)):b.push(lH({chartId:this.chartId,lastInteraction:{hover:null}}));return b};
h.onMouseEnter=function(){this.isCurrentChartBeingHovered$.next(!0)};
h.onMouseLeave=function(){this.isCurrentChartBeingHovered$.next(!1);var a=this.select(B0c);if(a){a.locked||(a.position!==void 0&&this.store.dispatch(nH({chartGroupId:this.chartGroupId,position:null})),a.trackingNow&&this.store.dispatch(pH({chartGroupId:this.chartGroupId,trackingNow:!1})));var b;((b=this.interactions)==null?0:b.hoverBrush)&&this.store.dispatch(b0c({chartGroupId:this.chartGroupId,position:null}));this.store.dispatch(lH({chartId:this.chartId,lastInteraction:{hover:null}}))}};
h.onDocumentMouseMove=function(a){var b=[],c=this.select(P0c);if(!c)return b;var d=c.brushBrushing,e=c.brushPanning,f=c.brushAxis,g=c.brushPosition,k=c.xAxisMin,m=c.xAxisMax;c=c.xAxisUnit;var r=fH(this,a),w;if(this.axisView.withinBody(r.x,r.y)&&((w=this.interactions)==null?0:w.dragZoom)&&!this.isPrimaryModifierKeyDown(a)&&this.isMouseDown&&this.lastMouseDownEvent){w=fH(this,this.lastMouseDownEvent);var x=this.axisView.withinBody(w.x,w.y),D;if(D=!d){var H=this.lastMouseDownEvent;D=a.clientX-H.clientX;
H=a.clientY-H.clientY;var J=Math.sqrt(Math.pow(D,2)+Math.pow(H,2));D=Math.abs(H/D)<1&&J>10}D&&x&&(r=this.axisView.calculateDataValue(r.x),(w=this.axisView.calculateDataValue(w.x))&&r&&b.push($_c({chartGroupId:this.chartGroupId,positionStart:(new Date(w)).valueOf(),position:(new Date(r)).valueOf()})))}r=0;var O;if(((O=this.interactions)==null?0:O.ctrlDragPan)&&this.isPrimaryModifierKeyDown(a)&&this.isMouseDown&&this.lastMouseMoveEvent&&k!==null&&m!==null&&(e||b.push(c0c({chartGroupId:this.chartGroupId})),
O=fH(this,this.lastMouseMoveEvent),w=fH(this,a),this.axisView.withinBody(w.x,w.y)&&(O=this.axisView.pxToXAxisUnit(O.x-w.x)))){r=m-k;var R,V;w=(V=(R=this.interactionBounds)==null?void 0:R.max)!=null?V:Date.now();var ba,pa;R=(pa=(ba=this.interactionBounds)==null?void 0:ba.max)!=null?pa:c==="ms_since_epoch"?w:r;ba=Math.min(k+O,R-r);this.interactionBounds&&this.interactionBounds.min!=null&&this.interactionBounds.min>ba&&(O+=this.interactionBounds.min-ba,ba=this.interactionBounds.min);m=Math.min(m+O,R);
r=ba-k;b.push(z_c({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,priority:4}));b.push(y_c({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,id:this.layerId,priority:4,cause:3,min:ba,max:m,unit:c}))}if(this.isEventInsideWindow(a)){var ua;k=((ua=this.interactions)==null?void 0:ua.dragZoom)&&!this.isPrimaryModifierKeyDown(a)&&this.isMouseDown&&d&&f===0;m=this.lastMouseDownEvent&&fH(this,this.lastMouseDownEvent);ua=fH(this,a);c=this.lastMouseMoveEvent&&
fH(this,this.lastMouseMoveEvent);m=m&&this.axisView.withinBody(m.x,m.y);c=c&&this.axisView.withinBody(c.x,c.y);var ma;ba=((ma=a.target)==null?void 0:ma.offsetParent)===this.el.nativeElement||a.target===document||e;e=this.axisView.withinBody(ua.x,ua.y)&&ba;var Da;((Da=this.interactions)==null?0:Da.hoverBrush)&&e&&(!d||f!==0)||k&&m?(d=this.axisView.calculateDataValue(ua.x))&&b.push(b0c({chartGroupId:this.chartGroupId,position:d+r})):!c||e||g===null||this.isActionButtonBeingHovered$.getValue()||b.push(b0c({chartGroupId:this.chartGroupId,
position:null}))}else b.push(a0c({chartGroupId:this.chartGroupId}));this.lastMouseMoveEvent=a;return b};
h.onMouseUp=function(a){var b=this.select(M0c);if(b){var c=b.brushPanning,d=b.brushBrushing,e=b.brushAxis,f=b.brushPositionStart;b=b.xAxisUnit;var g;((g=this.interactions)==null?0:g.ctrlDragPan)&&this.isPrimaryModifierKeyDown(a)&&c&&e===0&&(this.store.dispatch(d0c({chartGroupId:this.chartGroupId})),El(this.interactionService,"drag",Fl.ve.XPanZone,this.el.nativeElement));var k;if(((k=this.interactions)==null?0:k.dragZoom)&&!this.isPrimaryModifierKeyDown(a)&&d&&e===0&&this.isEventInsideWindow(a)&&(a=
fH(this,a),c=this.axisView.calculateDataValue(a.x),d=(d=this.lastMouseDownEvent&&fH(this,this.lastMouseDownEvent))&&this.axisView.withinBody(d.x,d.y),c&&d&&f!==null)){d=f<c;this.store.dispatch(pk({actions:[a0c({chartGroupId:this.chartGroupId}),z_c({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,priority:4}),y_c({chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId,id:this.layerId,priority:4,cause:4,min:d?f:c,max:d?c:f,unit:b})]}));El(this.interactionService,
"drag",Fl.ve.XZoomZone,this.el.nativeElement);var m;(f=(m=this.select(sH))==null?void 0:m.inverseDomainMap)&&this.store.dispatch(b0c({chartGroupId:this.chartGroupId,position:f(a.x)}))}this.isMouseDown=!1;this.lastMouseDownEvent=null}};h.syncOnScroll=function(a){var b;((b=this.interactions)==null?0:b.ctrlScrollZoom)&&this.isPrimaryModifierKeyDown(a)&&this.lastMouseMoveEvent&&(b=fH(this,this.lastMouseMoveEvent),this.axisView.withinBodyOrAxis(b.x,b.y)&&a.preventDefault())};
h.onScroll=function(a){var b;((b=this.interactions)==null?0:b.ctrlScrollZoom)&&this.isPrimaryModifierKeyDown(a)&&this.lastMouseMoveEvent&&(b=fH(this,this.lastMouseMoveEvent),this.axisView.withinBodyOrAxis(b.x,b.y)&&this.scrollZoom(b,a.deltaY))};
h.scrollZoom=function(a,b){var c=this.select($G);if(c&&this.lastMouseMoveEvent){var d=c.min,e=c.max;c=c.unit;if(b=this.axisView.pxToXAxisUnit(b))if(a=this.axisView.calculateDataValue(a.x))a=(a-d)/(e-d),k1c(this,d-b*a,e+b*(1-a),c),El(this.interactionService,"scroll",Fl.ve.XZoomZone,this.el.nativeElement,{debounce:!0})}};h.onKeyDown=function(a){var b=this.select(SWc);switch(a.key){case "Escape":b&&(a=l1c(this,!0),this.store.dispatch(pk({actions:a})))}};
h.onKeyUp=function(a){var b=this.select(z0c),c;((c=this.interactions)==null?0:c.ctrlDragPan)&&b&&!this.isPrimaryModifierKeyDown(a)&&(this.store.dispatch(d0c({chartGroupId:this.chartGroupId})),El(this.interactionService,"drag",Fl.ve.XPanZone,this.el.nativeElement))};
var BDa=function(a,b,c){if(c)a.store.dispatch(pk({actions:l1c(a)})),a.liveAnnouncer.announce("X axis cursor unpinned.",2E3),a.onPinChange.emit(null),a.lastXAxisPinButtonClickEvent=b;else{var d;if(c=(d=a.lastXAxisPinButtonClickEvent)==null?void 0:d.timeStamp)a.store.dispatch(oH({chartGroupId:a.chartGroupId,locked:!0})),a.liveAnnouncer.announce("X axis cursor pinned.",2E3),a.onPinChange.emit(c),a.lastXAxisPinButtonClickEvent=b}},vDa=function(a){a.xAxisBrushActionButtonConfig&&a.actionButtonPosition$.pipe(mf(1),
A(function(b){return b&&b.left})).subscribe(function(b){if((b=b&&a.axisView.calculateDataValue(b))&&a.xAxisBrushActionButtonConfig)a.xAxisBrushActionButtonConfig.onClick(b)})},l1c=function(a,b){b=b===void 0?!1:b;var c=[];c.push(oH({chartGroupId:a.chartGroupId,locked:!1}));b&&(c.push(nH({chartGroupId:a.chartGroupId,position:null})),c.push(pH({chartGroupId:a.chartGroupId,trackingNow:!1})));return c};
wH.prototype.isEventInsideWindow=function(a){return a.clientX>=0&&a.clientY>=0&&a.clientX<=window.innerWidth&&a.clientY<=window.innerHeight};
var m1c=function(a,b,c,d,e){if(!b||!c||d!=="ms_since_epoch"||e===null)return!1;a=a.axisView.pxToXAxisUnit(30);c=Math.abs(e-c);return!!a&&c<=a},k1c=function(a,b,c,d){if(d==="ms_since_epoch"){var e,f,g=(f=(e=a.interactionBounds)==null?void 0:e.max)!=null?f:Date.now();c>g&&(e=c-g,c-=e,b-=e)}if(a.interactionBounds){var k;e=(k=a.interactionBounds.max)!=null?k:d==="ms_since_epoch"?Date.now():Infinity;var m;k=(m=a.interactionBounds.min)!=null?m:-Infinity;e<c?(b=Math.max(k,b+e-c),c=e):k>b&&(c=Math.min(e,
c+k-b),b=k)}a.store.dispatch(pk({actions:[z_c({chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,priority:4}),y_c({chartGroupId:a.chartGroupId,chartId:a.chartId,xAxisId:a.xAxisId,id:a.layerId,priority:4,cause:4,min:b,max:c,unit:d})]}))};
da.Object.defineProperties(wH.prototype,{interactions:{configurable:!0,enumerable:!0,set:function(a){a?this.interactionsInternal=Object.assign({},c1c,a):this.interactionsInternal=c1c},get:function(){return this.interactionsInternal}},styles:{configurable:!0,enumerable:!0,set:function(a){this.stylesInternal=Object.assign({},d1c,a)},get:function(){return this.stylesInternal}},topButtonIconPath:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.xAxisBrushActionButtonConfig)!=null&&a.icon?
j1c[this.xAxisBrushActionButtonConfig.icon]||"":""}}});wH.\u0275fac=function(a){return new (a||wH)(Ve(Gd),Ve(xG),Ve(LG),Ve(Fl),Ve(uH),Ve(Cz),Ve(Tg),Ve(b1c,8),Ve(YYc,8))};
wH.\u0275cmp=C({type:wH,selectors:[["ac-x-axis"]],viewQuery:function(a,b){a&1&&kg(a1c,5);if(a&2){var c;og(c=pg())&&(b.pillEl=c)}},hostAttrs:[1,"composable-layer","ac-x-axis"],inputs:{timeZoneId:"timeZoneId",timezoneOffset:"timezoneOffset",tickStrategy:"tickStrategy",timePinLabelStrategy:"timePinLabelStrategy",interactions:"interactions",relativeTo:"relativeTo",styles:"styles",leftOverhangMargin:"leftOverhangMargin",rightOverhangMargin:"rightOverhangMargin",xAxisBrushActionButtonConfig:"xAxisBrushActionButtonConfig",
interactionBounds:"interactionBounds"},outputs:{onPinChange:"onPinChange"},features:[Ff,Gx],decls:9,vars:10,consts:function(){return[["pinPill",""]," Unpinning the X axis cursor allows the cursor to follow the mouse while hovering over the chart. The X axis cursor will always be pinned while using keyboard navigation to indicate that the values reflected in the tooltip or the legend are associated with the position of the X axis cursor.\n",[1,"ac-screen-reader-only-content"],[4,"ngIf"],["class","x-axis-pin overlay-z-index",
3,"ngClass","ngStyle",4,"ngIf"],[1,"ac-screen-reader-only-content",3,"id"],["class","x-axis-cursor-action-button overlay-z-index",3,"ngStyle","mouseenter","mouseleave",4,"ngIf"],[1,"x-axis-cursor-action-button","overlay-z-index",3,"mouseenter","mouseleave","ngStyle"],["type","button","aria-label","Select a point on a chart",1,"ac-a11y-focusable",3,"click"],"width;16px;height;16px;viewBox;0 0 24 24".split(";"),[1,"x-axis-pin","overlay-z-index",3,"ngClass","ngStyle"],[1,"x-axis-pin-label",3,"ngStyle"],
[1,"x-axis-pin-icon-wrapper",3,"ngStyle"],["type","button",1,"x-axis-icon","ac-a11y-focusable",3,"click"],["svgIcon","ac:time_pin_unset",1,"icon","x-axis-pin-mat-icon"],["svgIcon","ac:time_pin_set",1,"icon","x-axis-pin-mat-icon"]]},template:function(a,b){a&1&&(K(0,"p",2),S(1),U(2,"async"),L(),E(3,yDa,3,3,"ng-container",3),U(4,"async"),E(5,GDa,10,28,"div",4),U(6,"async"),K(7,"p",5),$f(8,1),L());a&2&&(B(),Ag(W(2,4,b.axisDescriptionObservable)),B(2),I("ngIf",W(4,6,b.xAxisBrushActionButtonConfig&&b.isCurrentChartBeingHovered$)),
B(2),I("ngIf",W(6,8,b.xAxisPinPillObservable)),B(2),I("id",b.xAxisCursorDescribedById))},dependencies:[iz,hy,jy,ny,py],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}.ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px, 1px, 1px, 1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus, #3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}.x-axis-cursor-action-button[_ngcontent-%COMP%]{position:absolute;display:flex;transform:translateX(-50%) translateY(-100%);padding-bottom:4px}.x-axis-cursor-action-button[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:none;padding:0;margin:0;line-height:inherit;font-size:inherit;background:none;display:flex;background-color:var(--ac-sys-color-extensions-surface, #fff);border-radius:10000px;box-shadow:0 0 5px var(--ac-sys-color-extensions-on-surface-variant, #5F6368);justify-content:center;align-items:center;width:24px;height:24px}.x-axis-pin[_ngcontent-%COMP%]{position:absolute;display:flex;transform:translateX(-50%);border:none;box-sizing:border-box;cursor:default;line-height:10px;width:fit-content;white-space:nowrap}.x-axis-pin[_ngcontent-%COMP%]:focus-within{outline-offset:1px}.x-axis-pin.draggable[_ngcontent-%COMP%]{cursor:grabbing}.x-axis-pin[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:none;padding:0;margin:0;line-height:inherit;font-size:inherit;background:none;color:var(--ac-sys-color-extensions-on-primary, #fff)}.x-axis-pin[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:focus{outline-offset:3px}.x-axis-pin[_ngcontent-%COMP%]   .x-axis-pin-icon-wrapper[_ngcontent-%COMP%]{box-sizing:border-box}.x-axis-pin[_ngcontent-%COMP%]   .x-axis-pin-icon[_ngcontent-%COMP%]{background:rgba(0,0,0,0);border-radius:50%;text-align:center;display:block;cursor:default}.x-axis-pin[_ngcontent-%COMP%]   .x-axis-pin-label[_ngcontent-%COMP%]{margin:auto 6px;vertical-align:top;font-family:sans-serif;font-style:normal;font-weight:400;font-size:10px}.x-axis-pin.locked[_ngcontent-%COMP%]{background:var(--ac-sys-color-chart-x-axis-pin, #5F6368);color:var(--ac-sys-color-extensions-on-primary, #fff)}.x-axis-pin.locked[_ngcontent-%COMP%]   .x-axis-pin-mat-icon[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-primary, #fff);cursor:pointer}.x-axis-pin[_ngcontent-%COMP%]:not(.locked){background:var(--ac-sys-color-extensions-neutral, #bdbdbd);color:var(--ac-sys-color-extensions-on-neutral, #404040)}.x-axis-pin[_ngcontent-%COMP%]:not(.locked)   .x-axis-pin-mat-icon[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-neutral, #404040);cursor:pointer}.x-axis-pin[_ngcontent-%COMP%]   .x-axis-pin-mat-icon[_ngcontent-%COMP%]{height:100%;width:100%;vertical-align:top}.dragging[_ngcontent-%COMP%]{cursor:grabbing}"],
changeDetection:0});var xH=function(a){this.liveAnnouncer=a;this.subscriptions=new Map;this.currentlyLoading=0},n1c=function(a,b,c){a.subscriptions.set(b,c.pipe(yf(!1),of()).subscribe(function(d){d?(a.currentlyLoading===0&&a.liveAnnouncer.announce("One or more charts on this pages are loading."),++a.currentlyLoading):a.currentlyLoading>0&&(--a.currentlyLoading,a.currentlyLoading===0&&a.liveAnnouncer.announce("All charts have finished loading."))}))},o1c=function(a,b){var c=a.subscriptions.get(b);c&&(c.unsubscribe(),
a.subscriptions.delete(b))};xH.\u0275fac=function(a){return new (a||xH)(Wc(Cz))};xH.\u0275prov=Cc({token:xH,factory:xH.\u0275fac,providedIn:"root"});var yH=function(a,b,c,d){this.store=a;this.ngZone=b;this.instrumentationService=c;this.pageVisibilityService=d;this.pendingComponentRequests=new Map;this.pendingViewRequests=new Map;this.nextSetTimeoutId=this.nextAnimationFrameId=null;this.pendingEventTimeouts=new Map;this.trailingDelays=[];this.trailingDelaysSum=0;this.timeInit=Date.now();this.logger=this.lastTaskRunTime=this.eventStartTime=this.timeToInteractivity=this.timeToFirstDraw=this.timeToFirstQueue=null},zH=function(a,b,c){var d=Date.now(),
e=a.pendingEventTimeouts.has(b);a.pendingEventTimeouts.set(b,c);e||setTimeout(function(){var f=a.pendingEventTimeouts.get(b);a.eventStartTime=d;f&&f();a.eventStartTime=null;a.pendingEventTimeouts.delete(b)},0)};
yH.prototype.scheduleChangeHandler=function(a){var b=this;a.mergeKey?p1c(this,a):this.ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){var c=a.changes;jBa(a)?a.viewHandler(c):kBa(a)&&a.viewHandlerUsingContext(c,a.context);var d;lBa(a)?d=a.componentHandler(c):mBa(a)&&(d=a.componentHandlerUsingContext(c,a.context));d&&d.length&&b.store.dispatch(pk({actions:d}))})})};
var p1c=function(a,b){var c=b.changes,d=b.mergeKey,e=Date.now();if(jBa(b)||kBa(b)){var f=a.pendingViewRequests.get(d);f?f.changes={previousValue:f.changes.previousValue,currentValue:c.currentValue}:jBa(b)?a.pendingViewRequests.set(d,{handler:b.viewHandler,changes:c,scheduledTime:e,scope:b.scope,eventStartTime:a.eventStartTime}):a.pendingViewRequests.set(d,{handlerUsingContext:b.viewHandlerUsingContext,changes:c,context:b.context,scheduledTime:e,scope:b.scope,eventStartTime:a.eventStartTime});a.timeToFirstQueue===
null&&(a.timeToFirstQueue=Date.now()-a.timeInit)}if(lBa(b)||mBa(b))(e=a.pendingComponentRequests.get(d))?e.changes={previousValue:e.changes.previousValue,currentValue:c.currentValue}:lBa(b)?a.pendingComponentRequests.set(d,{handler:b.componentHandler,changes:c,scope:b.scope,eventStartTime:a.eventStartTime}):a.pendingComponentRequests.set(d,{handlerUsingContext:b.componentHandlerUsingContext,changes:c,context:b.context,scope:b.scope,eventStartTime:a.eventStartTime});(lBa(b)||mBa(b))&&q1c(a);(jBa(b)||
kBa(b))&&r1c(a)},q1c=function(a){a.nextSetTimeoutId||a.ngZone.runOutsideAngular(function(){a.nextSetTimeoutId=setTimeout(function(){a.nextSetTimeoutId=null;var b=[],c=Array.from(a.pendingComponentRequests.keys());c=l(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;if(d=a.pendingComponentRequests.get(e))a.eventStartTime=d.eventStartTime,a.pendingComponentRequests.delete(e),e=void 0,d.handlerUsingContext?e=d.handlerUsingContext(d.changes,d.context):d.handler&&(e=d.handler(d.changes)),a.eventStartTime=
null,e&&(b=b.concat(e))}b.length&&a.store.dispatch(pk({actions:b}));a.pendingComponentRequests.size&&q1c(a)},0)})},r1c=function(a){a.nextAnimationFrameId||a.ngZone.runOutsideAngular(function(){a.nextAnimationFrameId=requestAnimationFrame(function(){a.nextAnimationFrameId=null;var b=Array.from(a.pendingViewRequests.keys());b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.pendingViewRequests.get(c);if(d){var e=void 0;if(a.timeToFirstDraw===null){var f=void 0,g=a;g.timeToFirstDraw=Date.now()-
((f=g.timeToFirstQueue)!=null?f:0)-g.timeInit;f=g.pageVisibilityService;g=performance.now();var k=[];f.isPageHidden&&k.push({startTimestamp:g});f.hiddenPageMeasurements.set("timeToInteractivity",{hiddenSpans:k})}if(f=a.pendingViewRequests.get(c))if(g=Date.now(),k=g-Math.max(f.scheduledTime,(e=a.lastTaskRunTime)!=null?e:0),a.lastTaskRunTime=g,k>50&&s1c(a,performance.now(),f.scope,k),a.timeToInteractivity===null){a.trailingDelays.unshift({delay:k,time:g});a.trailingDelaysSum+=k;for(e=g-500;a.trailingDelays[a.trailingDelays.length-
1].time<e;)g=f=void 0,a.trailingDelaysSum-=(g=(f=a.trailingDelays.pop())==null?void 0:f.delay)!=null?g:0;(a.trailingDelays.length>=10?a.trailingDelaysSum/a.trailingDelays.length:Infinity)<50&&(f=e=void 0,g=a,g.timeToInteractivity=Date.now()-((f=g.timeToFirstDraw)!=null?f:0)-((e=g.timeToFirstQueue)!=null?e:0)-g.timeInit,g.pageVisibilityService.endHiddenMeasurement("timeToInteractivity"))}a.eventStartTime=d.eventStartTime;a.pendingViewRequests.delete(c);d.handlerUsingContext?d.handlerUsingContext(d.changes,
d.context):d.handler&&d.handler(d.changes);a.eventStartTime=null}}a.pendingViewRequests.size&&r1c(a)})})},s1c=function(a,b,c,d){$0c(a.instrumentationService,c.chartId).subscribe(function(e){vH(a.instrumentationService,{type:"dashboard-non-interactivity",dashboardId:e,timestamp:b,metadata:{blockingTimeMs:d}})})};yH.\u0275fac=function(a){return new (a||yH)(Wc(eG),Wc(Tg),Wc(uH),Wc(tH))};yH.\u0275prov=Cc({token:yH,factory:yH.\u0275fac,providedIn:"root"});ZF.setThrowPartials&&ZF.setThrowPartials(!1);
var t1c=new bd("window-with-resize-observer",{providedIn:"root",factory:function(){return window}}),u1c=0,AH=function(a,b,c,d,e,f,g,k,m,r){xG.call(this,a,b);var w=this;this.window=c;this.renderer=d;this.queueService=e;this.liveAnnouncerService=f;this.formatterService=g;this.instrumentationService=k;this.ngZone=m;this.testingTimezoneOffset=r;this.lastMeasuredBoundingClientRect=null;this.labelledById="ac-chart-aria-labelledby-"+u1c++;this.describedById="ac-chart-aria-describedby-"+u1c++;this.keyboardNavInstructions=
"This chart is described by one or more grids. A grid row represents a time series. A grid column corresponds to a timestamp. By default, charts hide most columns. To display the hidden columns next to the activated column, use the Read previous item (up arrow) key until you access the column header, and then use the Activate button (enter) key.";this.defaultTimezone=(new Date).getTimezoneOffset();this.featureFlags={};this.useChartGroupHorizontalMargins=!1;this.yAxisOrientation="vertical";this.refactorA11yNavInstructions=
!1;this.anyLayerLoading=new ui;this.ve={AwesomechartsGeneric:170573,AwesomechartsHeatmap:84053,AwesomechartsStackedArea:84058,AwesomechartsTimeBar:84059,AwesomechartsLine:84054,AwesomeChartImage:68528};this.chartVe=170573;this.unregisterFunctions=[];n1c(this.liveAnnouncerService,this.objectiveChartId,this.anyLayerLoading);this.setup({});this.mouseUpObservable.pipe(Df(this.mouseDownObservable),Af(this.destroyed)).subscribe(function(H){var J=l(H);H=J.next().value;J=J.next().value;Math.abs(J.clientX-
H.clientX)+Math.abs(J.clientY-H.clientY)<10&&(w.mouseClickSubject.next(H),w.afterMouseClickSubject.next(H))});var x=a.nativeElement,D=navigator.maxTouchPoints>1;AH.sharedWindowScrollCapture$.pipe(Af(this.destroyed)).subscribe(function(H){w.windowCaptureScrollSubject.next(H)});this.ngZone.runOutsideAngular(function(){v1c(w,"chart");v1c(w,"document");w.unregisterFunctions.push(d.listen(x,"mousedown",function(H){zH(e,w.objectiveChartId+"-mousedown",function(){HDa(H)&&w.mouseDownSubject.next(H)})}),d.listen(x,
"mouseup",function(H){zH(e,w.objectiveChartId+"-mouseup",function(){HDa(H)&&w.mouseUpSubject.next(H)})}),d.listen(x,"mouseenter",function(H){zH(e,w.objectiveChartId+"-mouseenter",function(){w.mouseEnterSubject.next(H)})}),d.listen(x,"mouseleave",function(H){zH(e,w.objectiveChartId+"-mouseleave",function(){w.mouseLeaveSubject.next(H)})}),d.listen(x,"wheel",function(H){w.syncScrollSubject.next(H);zH(e,w.objectiveChartId+"-wheel",function(){w.scrollSubject.next(H)})}),d.listen(x,"dragstart",function(H){w.syncDragStartSubject.next(H);
zH(e,w.objectiveChartId+"-dragstart",function(){w.dragStartSubject.next(H)})}),d.listen(x,"drag",function(H){w.syncDragSubject.next(H);zH(e,w.objectiveChartId+"-drag",function(){w.dragSubject.next(H)})}),d.listen(x,"dragend",function(H){w.syncDragEndSubject.next(H);zH(e,w.objectiveChartId+"-dragend",function(){w.dragEndSubject.next(H)})}),D?d.listen(x,"touchstart",function(H){w.syncTouchStartSubject.next(H);zH(e,w.objectiveChartId+"-touchstart",function(){w.touchStartSubject.next(H)})}):null,D?d.listen(x,
"touchmove",function(H){w.syncTouchMoveSubject.next(H);zH(e,w.objectiveChartId+"-touchmove",function(){w.touchMoveSubject.next(H)})}):null,D?d.listen(x,"touchend",function(H){w.syncTouchEndSubject.next(H);zH(e,w.objectiveChartId+"-touchend",function(){w.touchEndSubject.next(H)})}):null,d.listen(c,"keydown",function(H){w.syncKeyDownSubject.next(H);zH(e,w.objectiveChartId+"-window-keydown",function(){w.keyDownSubject.next(H)})}),d.listen(c,"keyup",function(H){zH(e,w.objectiveChartId+"-window-keyup",
function(){w.keyUpSubject.next(H)})}),d.listen(document,"mouseup",function(H){zH(e,w.objectiveChartId+"-document-mouseup",function(){HDa(H)&&w.documentMouseUpSubject.next(H)})}))})};Z(AH,xG);AH.\u0275dir=xG.\u0275dir;AH.prototype.ngOnInit=function(){var a=this;xG.prototype.ngOnInit.call(this);vH(this.instrumentationService,{type:"chart-initialization-start",timestamp:performance.now(),chartId:this.chartId});this.mouseEnterObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onMouseEnter(b)})};
AH.prototype.onMouseEnter=function(){w1c(this)};var v1c=function(a,b){switch(b){case "chart":var c=a.el.nativeElement;break;case "document":c=document;break;case "window":c=window;break;default:sb(b,"Unknown event target for chart.")}ZXc(a,b);a.unregisterFunctions.push(a.renderer.listen(c,"mousemove",function(d){zH(a.queueService,a.objectiveChartId+"-"+b+"-mousemove",function(){var e=$Xc(a,b),f=[];e=l(e.values());for(var g=e.next();!g.done;g=e.next())g=g.value,f=f.concat(g(d));f.length&&a.store.dispatch(pk({actions:f}))})}))};
AH.prototype.ngAfterViewInit=function(){var a=this;typeof this.window.ResizeObserver==="function"?(this.resizeObserver=new ResizeObserver(function(){a.resizeObserverTimeout=setTimeout(function(){a.resizeObserverTimeout=void 0;x1c(a,a.el.nativeElement.getBoundingClientRect())},0)}),this.resizeObserver.observe(this.el.nativeElement)):this.resizeSensor=new WVc(this.el.nativeElement,function(){x1c(a,a.el.nativeElement.getBoundingClientRect())});w1c(this,!0);AH.sharedWindowScrollCapture$.pipe(Af(this.destroyed)).subscribe(function(){var b=
a.el.nativeElement.getBoundingClientRect();a.lastMeasuredBoundingClientRect&&b.height===a.lastMeasuredBoundingClientRect.height&&b.width===a.lastMeasuredBoundingClientRect.width&&b.left===a.lastMeasuredBoundingClientRect.left&&b.top===a.lastMeasuredBoundingClientRect.top||(a.lastMeasuredBoundingClientRect=b,b=hZc({chartGroupId:a.chartGroupId,chartId:a.chartId,height:b.height,width:b.width,offsets:{top:b.top,left:b.left}}),NAa(a.store,b))})};
AH.prototype.ngOnChanges=function(a){xG.prototype.ngOnChanges.call(this,a);var b=[];if("height"in a||"width"in a){var c,d,e=(d=this.height)!=null?d:(c=this.lastMeasuredBoundingClientRect)==null?void 0:c.height,f,g;c=(g=this.width)!=null?g:(f=this.lastMeasuredBoundingClientRect)==null?void 0:f.width;e!==void 0&&c!==void 0&&this.resize(e,c)}"useChartGroupHorizontalMargins"in a&&b.push(jZc({chartGroupId:this.chartGroupId,chartId:this.chartId,useChartGroupHorizontalMargins:this.useChartGroupHorizontalMargins}));
"yAxisOrientation"in a&&b.push(gZc({chartId:this.chartId,yAxisOrientation:this.yAxisOrientation}));"valueStrategy"in a&&this.valueStrategy&&OYc(this.formatterService,{chartId:this.chartId},this.valueStrategy);yG(this,b)};
AH.prototype.ngOnDestroy=function(){xG.prototype.ngOnDestroy.call(this);this.resizeObserver&&this.resizeObserver.unobserve(this.el.nativeElement);this.resizeObserverTimeout&&clearTimeout(this.resizeObserverTimeout);this.resizeSensor&&this.resizeSensor.detach(function(){});for(var a=l(this.unregisterFunctions),b=a.next();!b.done;b=a.next())(b=b.value)&&b();this.formatterService.valueStrategyRegistry.delete(this.chartId);o1c(this.liveAnnouncerService,this.objectiveChartId)};
var w1c=function(a,b){var c=a.el.nativeElement.getBoundingClientRect();x1c(a,c,b)},x1c=function(a,b,c){a.lastMeasuredBoundingClientRect=b;var d,e;a.resize((d=a.height)!=null?d:b.height,(e=a.width)!=null?e:b.width,b.top,b.left,c)};
AH.prototype.resize=function(a,b,c,d,e){if(c===void 0||d===void 0)this.lastMeasuredBoundingClientRect=d=this.el.nativeElement.getBoundingClientRect(),c=d.top,d=d.left;var f,g;a=hZc({chartGroupId:this.chartGroupId,chartId:this.chartId,height:a,width:b,offsets:{top:(f=c)!=null?f:0,left:(g=d)!=null?g:0}});e?yG(this,[a]):this.store.dispatch(a)};AH.prototype.trackByIndex=function(a){return a};
AH.prototype.scheduleStateChangeHandler=function(a){this.queueService.scheduleChangeHandler(Object.assign({},a,{mergeKey:this.chartId+"-"+a.mergeKey}))};AH.prototype.scheduleChangeHandler=function(a){this.queueService.scheduleChangeHandler(Object.assign({},a,{mergeKey:this.chartId+"-"+a.mergeKey}))};
da.Object.defineProperties(AH.prototype,{disableZoomAndPan:{configurable:!0,enumerable:!0,set:function(){}},timezoneOffset:{configurable:!0,enumerable:!0,set:function(a){this.timezoneOffsetInternal=a},get:function(){if(this.testingTimezoneOffset)return this.testingTimezoneOffset;var a;return(a=this.timezoneOffsetInternal)!=null?a:this.defaultTimezone}}});AH.sharedWindowScrollCapture$=oe(window,"scroll",{passive:!0,capture:!0}).pipe(Cf(250),Jla());
AH.\u0275fac=function(a){return new (a||AH)(Ve(Gd),Ve(LG),Ve(t1c),Ve(ji),Ve(yH),Ve(xH),Ve(KG),Ve(uH),Ve(Tg),Ve(b1c,8))};
AH.\u0275cmp=C({type:AH,selectors:[["ac-chart"]],hostAttrs:["draggable","true",1,"ac-chart","ac-composable-chart"],hostVars:4,hostBindings:function(a,b){a&2&&xg("height",b.height,"px")("width",b.width,"px")},inputs:{disableZoomAndPan:"disableZoomAndPan",timezoneOffset:"timezoneOffset",timeZoneId:"timeZoneId",height:"height",width:"width",featureFlags:"featureFlags",xAxisBrushActionButtonConfig:"xAxisBrushActionButtonConfig",useChartGroupHorizontalMargins:"useChartGroupHorizontalMargins",yAxisOrientation:"yAxisOrientation",
refactorA11yNavInstructions:"refactorA11yNavInstructions",valueStrategy:"valueStrategy"},outputs:{anyLayerLoading:"anyLayerLoading"},features:[Ig([{provide:xG,useExisting:AH}]),Ff,Gx],ngContentSelectors:["*"],decls:8,vars:8,consts:[[3,"ve","veMutable"],[1,"ac-screen-reader-only-content",3,"id"]],template:function(a,b){a&1&&(fg(),K(0,"figure",0)(1,"div",1)(2,"p"),S(3),L()(),K(4,"div",1)(5,"p"),S(6),L()(),gg(7),L());a&2&&(I("ve",b.chartVe)("veMutable",!0),Jf("aria-labelledby",b.labelledById)("aria-describedby",
b.describedById),B(),I("id",b.labelledById),B(2),Ag(b.title),B(),I("id",b.describedById),B(2),Ag(b.keyboardNavInstructions))},dependencies:[GE],styles:[".ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px, 1px, 1px, 1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus, #3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}[_nghost-%COMP%]{position:relative;width:100%;height:100%;display:block}[_nghost-%COMP%]   figure[_ngcontent-%COMP%]{margin:0}.ac-composable-chart[_ngcontent-%COMP%]{position:relative;width:100%;height:100%}/*# sourceMappingURL=ac_chart_style.css.map */"],
changeDetection:0});var y1c=kk(Ak,function(a){return a.map}),z1c=new tk({getKey:zk,getSelector:function(a){var b=a.chartGroupId;return be(kk(y1c,function(c){return c.entities[b]}))}});var A1c={chartGroupId:"",chartId:"",xAxisId:"chart_group",yAxisId:"right",layerId:""},B1c=0,BH=function(a,b){lG.call(this,a);var c=this;this.deprecateOmnibusStateObservable=b;this.destroyed=new rf;this.logger=null;this.extensionId="ac-extension-"+B1c++;this.inputScopeSubject=new Xj({});var d;this.enclosingChart=(d=q(xG,{optional:!0}))!=null?d:void 0;var e;this.enclosingLayer=(e=q(eH,{optional:!0}))!=null?e:void 0;var f,g;a=((f=this.enclosingLayer)==null?void 0:f.scopeObservable)||((g=this.enclosingChart)==
null?void 0:g.scopeObservable)||be({});this.scopeObservable=he([a,this.inputScopeSubject]).pipe(A(function(D){var H=l(D);D=H.next().value;H=H.next().value;return Object.assign({},A1c,D,H)}));this.defaultStateSelectionObservables=b?{brush:be(void 0),colorScale:be(void 0),error:be(void 0),focus:be(void 0),lastInteraction:be(void 0),loading:be(void 0),map:be(void 0),resize:be(void 0),seriesSelection:be(void 0),spec:be(void 0),xAxisPin:be(void 0),timeSeries:be(void 0),xAxis:be(void 0),yAxis:be(void 0)}:
{brush:this.selectorFactoryToObservable(OZc),colorScale:this.selectorFactoryToObservable(f_c),error:this.selectorFactoryToObservable(l_c),focus:this.selectorFactoryToObservable(RWc),lastInteraction:this.selectorFactoryToObservable(p_c),loading:this.selectorFactoryToObservable(t_c),map:this.selectorFactoryToObservable(z1c),resize:this.selectorFactoryToObservable(TWc),seriesSelection:this.selectorFactoryToObservable(v_c),spec:this.selectorFactoryToObservable(x_c),xAxisPin:this.selectorFactoryToObservable(TXc),
timeSeries:this.selectorFactoryToObservable(SXc),xAxis:this.selectorFactoryToObservable(L_c),yAxis:this.selectorFactoryToObservable(cH)};var k,m,r,w,x;this.context={scope:{chartGroupId:((k=this.scope)==null?void 0:k.chartGroupId)||"",chartId:((m=this.scope)==null?void 0:m.chartId)||"",yAxisId:((r=this.scope)==null?void 0:r.yAxisId)||"right",xAxisId:((w=this.scope)==null?void 0:w.xAxisId)||"chart_group",layerId:((x=this.scope)==null?void 0:x.layerId)||""},state:null};he([this.scopeObservable,this.stateObservable]).pipe(Af(this.destroyed)).subscribe(function(D){var H=
l(D);D=H.next().value;H=H.next().value;c.context.scope=D;c.context.state=H.currentValue})};Z(BH,lG);h=BH.prototype;
h.setup=function(a){var b=this;this.deprecateOmnibusStateObservable||(a=Object.assign({},this.defaultStateSelectionObservables,a.stateSelectionObservables),lG.prototype.setup.call(this,{stateSelectionObservables:a}),this.scopeObservable.pipe(yf(null),uf(),A(rk),Df(this.stateObservable),Af(this.destroyed)).subscribe(function(c){var d=l(c);c=d.next().value;d.next();if(c.currentValue)b.onScopeChange(c)}),this.setupStateChangeHandler(a.resize,function(c,d){c=sk(c,function(e){return e.resize});b.onResizeChange(c,
d)},"resize"),this.setupStateChangeHandler(a.xAxis,function(c,d){c=sk(c,function(e){return e.xAxis});b.onXAxisChange(c,d)},"xAxis"),this.setupStateChangeHandler(a.yAxis,function(c,d){c=sk(c,function(e){return e.yAxis});b.onYAxisChange(c,d)},"yAxis"),this.setupStateChangeHandler(a.error,function(c,d){c=sk(c,function(e){return e.error});b.onErrorChange(c,d)},"error"),this.setupStateChangeHandler(a.loading,function(c,d){c=sk(c,function(e){return e.loading});b.onLoadingChange(c,d)},"loading"),this.setupStateChangeHandler(a.brush,
function(c,d){c=sk(c,function(e){return e.brush});b.onBrushChange(c,d)},"brush"),this.setupStateChangeHandler(a.seriesSelection,function(c,d){c=sk(c,function(e){return e.seriesSelection});b.onSeriesSelectionChange(c,d)},"seriesSelection"),this.setupStateChangeHandler(a.xAxisPin,function(c,d){c=sk(c,function(e){return e.xAxisPin});b.onXAxisPinChange(c,d)},"xAxisPin"),this.setupStateChangeHandler(a.timeSeries,function(c,d){c=sk(c,function(e){return e.timeSeries});b.onTimeSeriesChange(c,d)},"timeSeries"),
this.setupStateChangeHandler(a.focus,function(c,d){c=sk(c,function(e){return e.focus});b.onFocusChange(c,d)},"focus"),this.setupStateChangeHandler(a.lastInteraction,function(c,d){c=sk(c,function(e){return e.lastInteraction});b.onLastInteractionChange(c,d)},"lastInteraction"),this.setupStateChangeHandler(a.colorScale,function(c,d){c=sk(c,function(e){return e.colorScale});b.onColorScaleChange(c,d)},"colorScale"),this.setupStateChangeHandler(a.spec,function(c){c=sk(c,function(d){return d.spec});b.onChartSpecChange(c)},
"spec"),this.setupStateChangeHandler(a.map,function(c,d){c=sk(c,function(e){return e.map});b.onMapChange(c,d)},"map"))};h.setupStateChangeHandler=function(a,b,c){var d=this;if(this.setupCalled&&a){var e=null;a.pipe(iBa(this.stateObservable),Af(this.destroyed)).subscribe(function(f){f=l(f).next().value;var g={previousValue:e,currentValue:f.currentValue};e=f.currentValue;d.scheduleStateChangeHandler(g,d.context,b,d.extensionId+"-"+c,d.context.scope)})}};h.onScopeChange=function(){};
h.onResizeChange=function(){};h.onXAxisChange=function(){};h.onYAxisChange=function(){};h.onErrorChange=function(){};h.onLoadingChange=function(){};h.onBrushChange=function(){};h.onSeriesSelectionChange=function(){};h.onXAxisPinChange=function(){};h.onTimeSeriesChange=function(){};h.onFocusChange=function(){};h.onLastInteractionChange=function(){};h.onColorScaleChange=function(){};h.onChartSpecChange=function(){};h.onMapChange=function(){};h.withLatest=function(a){a({scope:this.context.scope,state:this.context.state})};
h.scheduleStateChangeHandler=function(a,b,c){c(a,b)};h.ngOnChanges=function(a){"scope"in a&&this.inputScopeSubject.next(Object.assign({},this.scope))};h.ngOnDestroy=function(){this.destroyed.next();this.destroyed.complete()};BH.\u0275fac=function(){We()};BH.\u0275dir=af({type:BH,inputs:{scope:"scope"},features:[Ff,Gx]});var aNa={chartId:"",byLayer:{ids:[],entities:{}}},C1c={layerId:"",yAxisId:"right",xAxisId:"chart_group",valueType:1,unit:null,bySeries:{ids:[],entities:{}}},D1c={seriesId:"",name:"",atTimeKey:{}};var E1c={chartGroupId:"",xPos:null,locked:!1,trackingNow:!1,directionOfTravel:0};var F1c=["hoverContent"],CH=function(a,b,c,d,e,f,g){eH.call(this,a,b,c);var k=this;this.queueService=d;this.overlay=e;this.viewContainerRef=f;this.ngZone=g;this.mouseInBounds=new Xj(!1);this.focusAndXAxisPinInChart=new Xj(!1);this.isPinned$=new Xj(!1);this.showHovercardOverrideSubject=new Xj("no_override");this.shouldShowSeriesActionText$=new Xj(!0);this.dataSubject=new Xj(null);this.defaultShowHovercard=he([this.mouseInBounds,this.focusAndXAxisPinInChart]).pipe(Df(this.isPinned$),zf(function(m){var r=
l(m);var w=l(r.next().value);m=w.next().value;w=w.next().value;return r.next().value?be(!0):w?be(!0):m?G1c(k).pipe(A(function(x){return!x})):be(!1)}));this.globalHoverDisabled=this.isShowing=!1;this.showHovercard=this.showHovercardOverrideSubject.pipe(zf(function(m){return H1c(k,m)}),wf({bufferSize:1,refCount:!0}),of(),Bf(function(m){k.isShowing=m}),Ik(this.ngZone));this.timeKeySubject=new Xj(1);this.timeKeyObservable=this.timeKeySubject.pipe(of());this.globalOverlayPositionStrategy=this.overlay.position().global();
this.overlayRef=this.overlay.create(new ki({positionStrategy:this.globalOverlayPositionStrategy,scrollStrategy:this.overlay.scrollStrategies.close()}));this.setup({dataObservable:this.dataSubject});this.chart.mouseEnterObservable.pipe(Af(this.destroyed)).subscribe(function(m){if(!k.globalHoverDisabled)k.onMouseEnter(m)});zG(this.chart,"chart",function(m){if(k.mouseInBounds.value&&!k.globalHoverDisabled)k.onMouseMove(m);return[]},this.destroyed);this.chart.mouseLeaveObservable.pipe(Af(this.destroyed)).subscribe(function(){k.onMouseLeave()});
this.showHovercard.pipe(te(function(m){return!m}),Af(this.destroyed)).subscribe(function(){return void k.detachHovercard()})};Z(CH,eH);h=CH.prototype;h.ngOnInit=function(){var a=this;eH.prototype.ngOnInit.call(this);mG(this,TAa).pipe(Af(this.destroyed)).subscribe(function(b){var c;a.globalHoverDisabled=(c=b==null?void 0:b.disabled)!=null?c:!1})};
h.ngAfterViewInit=function(){this.connectedOverlayPositionStrategy=this.connectedOverlayPositionAnchor?dA(jA(this.overlay.position(),this.connectedOverlayPositionAnchor),[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"start",originY:"top",overlayX:"end",overlayY:"bottom"}]):void 0};h.onFocusChange=function(a,b){I1c(this,b);J1c(this,b)};
h.onXAxisPinChange=function(a,b){I1c(this,b)};h.onLastInteractionChange=function(a,b){J1c(this,b)};
var J1c=function(a,b){var c=b.state;b=b.scope;if(c){var d=c.focus,e=c.resize,f=c.lastInteraction;c=c.xAxisPin;d&&e&&f&&c&&!a.isPinned$.value&&(f=xl(b,f),d.chartGroupId===b.chartGroupId&&d.chartId===b.chartId&&f.focus!==null&&f.focus.x!==null&&f.focus.y!==null&&e.offsets?(b=new MouseEvent("mousemove",{clientX:f.focus.x+e.offsets.left,clientY:f.focus.y+e.offsets.top}),a.reposition(b,0,c.directionOfTravel)):(a.isPinned$.next(!1),a.detachHovercard()))}};h=CH.prototype;h.onAttach=function(){};
h.onDetach=function(){};h.onMouseEnter=function(a){this.mouseInBounds.next(!0);this.reposition(a,1)};h.onMouseMove=function(a){this.reposition(a,1)};h.onMouseLeave=function(){this.mouseInBounds.next(!1)};
h.reposition=function(a,b,c,d){var e=this;b=b===void 0?1:b;c=c===void 0?0:c;this.withLatest(function(f){f=f.state;if(f!=null&&f.resize&&!e.isPinned$.value)if(f=e.positionStrategy(a,{height:e.overlayRef.overlayElement.offsetHeight,width:e.overlayRef.overlayElement.offsetWidth},f.resize,c,d),f===void 0)e.detachHovercard();else{e.timeKeySubject.next(b);e.overlayRef.hasAttached()||e.attachHovercard();if(d&&e.connectedOverlayPositionStrategy){jHc(e.overlayRef,e.connectedOverlayPositionStrategy);var g=
e.connectedOverlayPositionStrategy;g._offsetX=f.x;g._offsetY=f.y}else jHc(e.overlayRef,e.globalOverlayPositionStrategy),e.globalOverlayPositionStrategy.top(f.y+"px").left(f.x+"px");e.overlayRef.updatePosition()}})};h.onResizeChange=function(a){this.isPinned$.value&&(a=a.currentValue,(a==null?void 0:a.height)===0||(a==null?void 0:a.width)===0)&&(this.isPinned$.next(!1),this.detachHovercard())};
h.attachHovercard=function(){this.overlayRef.hasAttached()||(this.overlayRef.attach(new mA(this.hoverContent,this.viewContainerRef)),this.onAttach())};h.detachHovercard=function(){this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.onDetach())};h.ngOnDestroy=function(){eH.prototype.ngOnDestroy.call(this);this.detachHovercard()};
var H1c=function(a,b){switch(b){case "no_override":return a.defaultShowHovercard;case "show":return be(!0);case "hide":return be(!1);default:return sb(b)}},I1c=function(a,b){var c=b.state;b=b.scope;if(c){var d=c.focus;c=(c=c.xAxisPin)&&c.locked&&c.xPos&&c.chartGroupId===b.chartGroupId;b=!(!d||d.chartGroupId!==b.chartGroupId||d.chartId!==b.chartId||!c);a.focusAndXAxisPinInChart.value!==b&&a.focusAndXAxisPinInChart.next(b)}},G1c=function(a){return a.scopeObservable.pipe(zf(function(b){return a.store.select(bDa(b))}),
wf({bufferSize:1,refCount:!0}),A(function(b){return!(b==null||!b.brushing)}))};da.Object.defineProperties(CH.prototype,{showHovercardOverride:{configurable:!0,enumerable:!0,set:function(a){this.showHovercardOverrideSubject.next(a)}}});CH.\u0275fac=function(a){return new (a||CH)(Ve(Gd),Ve(xG),Ve(LG),Ve(yH),Ve(rA),Ve(ig),Ve(Tg))};
CH.\u0275dir=af({type:CH,viewQuery:function(a,b){a&1&&kg(F1c,5);if(a&2){var c;og(c=pg())&&(b.hoverContent=c.first)}},inputs:{positionStrategy:"positionStrategy",connectedOverlayPositionAnchor:"connectedOverlayPositionAnchor",showHovercardOverride:"showHovercardOverride"},features:[Ff]});var K1c=[[["","prefix",""]],[["","suffix",""]]],DH=function(){BH.call(this,q(LG));var a=this;this.timeKey=1;this.updateDebouncedTriggerSubject=new rf;this.dateFormatStrategy=IDa;this.numericFormatStrategy=JDa;this.dateTimeSubject=new Xj({cursor:null,min:null,max:null,unit:null});this.timeZoneSubject=new Xj(Qk(yBa));this.queueService=q(yH);this.formattedDateTimeObservable=he([this.dateTimeSubject,this.timeZoneSubject]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;if(c.unit==="ms_since_epoch"){var e,
f,g;return c.cursor?a.dateFormatStrategy(new Date((e=c.cursor)!=null?e:""),c.min?new Date((f=c.min)!=null?f:""):null,c.max?new Date((g=c.max)!=null?g:""):null,d):""}return a.numericFormatStrategy(c.cursor,c.min,c.max)}));this.setup({});var b=q(CH,{optional:!0});b&&b.timeKeyObservable.pipe(Af(this.destroyed)).subscribe(function(c){a.timeKey=c;a.withLatest(function(d){a.update(d)})});q(Tg).runOutsideAngular(function(){a.updateDebouncedTriggerSubject.pipe(Cf(250)).pipe(Af(a.destroyed)).subscribe(function(){a.withLatest(function(c){a.update(c)})})})};
Z(DH,BH);DH.\u0275dir=BH.\u0275dir;h=DH.prototype;h.onLastInteractionChange=function(){this.updateDebouncedTriggerSubject.next()};h.onXAxisChange=function(a){if(fl(a)||gl(a)){var b,c=(b=a.currentValue)==null?void 0:b.timezoneOffset,d;a=(d=a.currentValue)==null?void 0:d.timeZoneId;c=Rk(c,a);this.timeZoneSubject.next(c)}};h.onXAxisPinChange=function(){this.timeKey===0&&this.updateDebouncedTriggerSubject.next()};h.onTimeSeriesChange=function(){this.updateDebouncedTriggerSubject.next()};
h.update=function(a){var b=a.state;if(b){var c=b.xAxis,d=b.resize,e=b.lastInteraction,f=b.xAxisPin;b=b.timeSeries;if(c&&d&&e&&f){a=xl(a.scope,e);d=il(c,d.margins.left,d.width-d.margins.right);a:{switch(this.timeKey){case 0:var g;var k=(g=f==null?void 0:f.xPos)!=null?g:null;break a;case 2:g=(k=a.click)==null?void 0:k.x;k=d&&g?d(g):null;break a;case 1:var m;g=(m=a.hover)==null?void 0:m.x;k=d&&g?d(g):null;break a;case 3:k=c.max;break a;case 4:var r;g=(r=a.multiselectAnchor)==null?void 0:r.x;k=d&&g?d(g):
null;break a;default:sb(this.timeKey,"unknown data source")}k=void 0}g=k;if(g!==null){d=b==null?void 0:b.byLayer.ids;b=b==null?void 0:b.byLayer.entities;m=k=null;f=r=Infinity;if((d==null?0:d.length)&&b)for(d=l(d),a=d.next();!a.done;a=d.next())if((e=b[a.value])&&(e.valueType===1||e.valueType===2)){var w=void 0,x=void 0,D=void 0;a=(w=e)==null?void 0:(x=w.snapshotMetadata)==null?void 0:(D=x[this.timeKey])==null?void 0:D.alignmentRange.x0;D=x=w=void 0;e=(w=e)==null?void 0:(x=w.snapshotMetadata)==null?
void 0:(D=x[this.timeKey])==null?void 0:D.alignmentRange.x;a&&e?(w=Math.abs(e-g)+Math.abs(a-g),w<f&&(m=a,k=e,f=w)):e&&f===Infinity&&(a=Math.abs(e-g),a<r&&(k=e,r=a))}this.dateTimeSubject.next({cursor:g,max:k,min:m,unit:c.unit})}}}};h.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({changes:a,context:b,scope:e,componentHandlerUsingContext:c,mergeKey:d})};
da.Object.defineProperties(DH.prototype,{dataSource:{configurable:!0,enumerable:!0,set:function(a){switch(a){case "click":this.timeKey=2;break;case "hover":this.timeKey=1;break;case "time_pin":this.timeKey=0;break;case "most_recent":this.timeKey=3;break;case "multiselect_anchor":this.timeKey=4;break;default:sb(a,"unknown data source")}this.updateDebouncedTriggerSubject.next()}}});DH.\u0275fac=function(a){return new (a||DH)};
DH.\u0275cmp=C({type:DH,selectors:[["ac-date-time"]],inputs:{dataSource:"dataSource",dateFormatStrategy:"dateFormatStrategy",numericFormatStrategy:"numericFormatStrategy"},features:[Ff],ngContentSelectors:["[prefix]","[suffix]"],decls:2,vars:3,consts:[[1,"date-time-card"]],template:function(a,b){a&1&&(fg(K1c),F(0,KDa,4,1,"div",0),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.formattedDateTimeObservable))?0:-1,c)}},dependencies:[py],styles:[".date-time-card[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);text-align:left;height:16px;font-size:12px}/*# sourceMappingURL=ac_date_time.css.map */"]});var EH=gk("[AC] Set selected series for chart and layer",hk()),FH=gk("[AC] Clear selected series for chart and layer",hk()),L1c=gk("[AC] Add a selected series for chart and layer",hk()),M1c=gk("[AC] Remove a selected series for chart and layer",hk()),GH=gk("[AC] Set hovered series for chart and layer",hk()),N1c=gk("[AC] Set last clicked series for chart and layer",hk()),O1c=gk("[AC] Set multiselect anchor series for chart and layer",hk()),P1c=gk("[AC] Set tooltip annotations for chart and layer",
hk()),Q1c=gk("[AC] Set selected annotations for chart and layer",hk());var R1c="m -6.5 0 a 6.5 6.5 0 1 0 13 0 a 6.5 6.5 0 1 0 -13 0;m 5.835 5.835 h -11.67 v -11.67 h 11.67 v 11.67 z m -5.835 -5.835;m 0 -7.82 l 7.82 7.82 l -7.82 7.82 l -7.82 -7.82 l 7.82 -7.82 z m 0 7.82;m -8.25 -5.28 h 16.5 l -8.25 12.17 l -8.25 -12.17 z m 8.25 5.28;m -8.25 5.28 h 16.5 l -8.25 -12.17 l -8.25 12.17 z m 8.25 -5.28;m 6.54 -0.19 a 6.54 6.54 0 1 0 -13.08 0 v 6.54 h 13.08 z m -6.54 0.19;m 2.94 -2.94 h 5.36 v 5.88 h -5.36 v 5.36 h -5.88 v -5.36 h -5.36 v -5.88 h 5.36 v -5.36 h 5.88 v 5.36 z m -2.94 2.94;m 0 -4.158 l 3.79 -3.79 l 4.158 4.158 l -3.79 3.79 l 3.79 3.79 l -4.158 4.158 l -3.79 -3.79 l -3.79 3.79 l -4.158 -4.158 l 3.79 -3.79 l -3.79 -3.79 l 4.158 -4.158 l 3.79 3.79 z m 0 4.158;m -6.54 0.19 a 6.54 6.54 0 1 0 13.08 0 v -6.54 h -13.08 z m 6.54 -0.19;m 2.85 -3.7 l 6.24 1.04 l -4.62 4.33 l 0.94 6.26 l -5.55 -3.07 l -5.66 2.83 l 1.2 -6.22 l -4.44 -4.51 l 6.28 -0.78 l 2.92 -5.62 l 2.69 5.74 z m -2.85 3.7;m 0 -8.464 l -8.05 5.85 l 3.08 9.46 l 9.95 0 l 3.08 -9.46 l -8.06 -5.85 z m 0 8.464;m 5.72 -2.36 c 0 3.17 -5.72 11.65 -5.72 11.65 s -5.72 -8.47 -5.72 -11.64 a 5.73 5.73 0 0 1 11.45 0 z m -5.72 2.36".split(";");
Array.from((new Map([["circle","m -6.5 0 a 6.5 6.5 0 1 0 13 0 a 6.5 6.5 0 1 0 -13 0"],["square","m 5.835 5.835 h -11.67 v -11.67 h 11.67 v 11.67 z m -5.835 -5.835"],["diamond","m 0 -7.82 l 7.82 7.82 l -7.82 7.82 l -7.82 -7.82 l 7.82 -7.82 z m 0 7.82"],["down_triangle","m -8.25 -5.28 h 16.5 l -8.25 12.17 l -8.25 -12.17 z m 8.25 5.28"],["up_triangle","m -8.25 5.28 h 16.5 l -8.25 -12.17 l -8.25 12.17 z m 8.25 -5.28"],["hill","m 6.54 -0.19 a 6.54 6.54 0 1 0 -13.08 0 v 6.54 h 13.08 z m -6.54 0.19"],["plus",
"m 2.94 -2.94 h 5.36 v 5.88 h -5.36 v 5.36 h -5.88 v -5.36 h -5.36 v -5.88 h 5.36 v -5.36 h 5.88 v 5.36 z m -2.94 2.94"],["cross","m 0 -4.158 l 3.79 -3.79 l 4.158 4.158 l -3.79 3.79 l 3.79 3.79 l -4.158 4.158 l -3.79 -3.79 l -3.79 3.79 l -4.158 -4.158 l 3.79 -3.79 l -3.79 -3.79 l 4.158 -4.158 l 3.79 3.79 z m 0 4.158"],["valley","m -6.54 0.19 a 6.54 6.54 0 1 0 13.08 0 v -6.54 h -13.08 z m 6.54 -0.19"],["star","m 2.85 -3.7 l 6.24 1.04 l -4.62 4.33 l 0.94 6.26 l -5.55 -3.07 l -5.66 2.83 l 1.2 -6.22 l -4.44 -4.51 l 6.28 -0.78 l 2.92 -5.62 l 2.69 5.74 z m -2.85 3.7"],
["pentagon","m 0 -8.464 l -8.05 5.85 l 3.08 9.46 l 9.95 0 l 3.08 -9.46 l -8.06 -5.85 z m 0 8.464"],["marker","m 5.72 -2.36 c 0 3.17 -5.72 11.65 -5.72 11.65 s -5.72 -8.47 -5.72 -11.64 a 5.73 5.73 0 0 1 11.45 0 z m -5.72 2.36"]])).entries()).map(function(a){var b=l(a);a=b.next().value;return[b.next().value,a]});var S1c={height:28,width:28};var XDa=function(a,b){return{fill:a,stroke:b}},T1c=new Map([[0,"line"],[1,"line-with-area"],[2,"square"],[3,"square"],[4,"band-max"],[5,"band-min"],[6,"threshold"],[7,"square"]]),U1c=0,HH=function(){this.keyShape="circle";this.color="var(--ac-sys-color-extensions-on-surface, #202124)";this.hollow=this.condensed=!1;this.clipPathId="ac-key-clip-path-"+U1c++;this.defaultCircleShape="m -6.5 0 a 6.5 6.5 0 1 0 13 0 a 6.5 6.5 0 1 0 -13 0"};
da.Object.defineProperties(HH.prototype,{drawnAs:{configurable:!0,enumerable:!0,set:function(a){this.keyShape=a!==void 0?T1c.get(a)||"circle":"circle"}}});HH.\u0275fac=function(a){return new (a||HH)};
HH.\u0275cmp=C({type:HH,selectors:[["ac-key"]],hostAttrs:["aria-hidden","true"],inputs:{drawnAs:"drawnAs",color:"color",shape:"shape",condensed:"condensed",hollow:"hollow",lineDash:"lineDash"},decls:3,vars:2,consts:[["condensedIcon",""],["circle",""],["class","icon",3,"ngSwitch","ngStyle",4,"ngIf","ngIfElse"],[1,"icon",3,"ngSwitch","ngStyle"],["class","line","viewBox","0 0 24 12",4,"ngSwitchCase"],["class","line-with-area","viewBox","0 0 24 12",4,"ngSwitchCase"],["class","band-max","viewBox","0 0 12 12",
4,"ngSwitchCase"],["class","band-min","viewBox","0 0 12 12",4,"ngSwitchCase"],["class","threshold","viewBox","0 0 12 12",4,"ngSwitchCase"],["class","square","viewBox","0 0 24 12",4,"ngSwitchCase"],["class","circle","viewBox","0 0 12 12",4,"ngSwitchDefault"],["viewBox","0 0 24 12",1,"line"],["d","M 0 6 H 18","stroke-width","2"],["transform","translate(18 6) scale(0.6 0.6)",4,"ngIf"],["transform","translate(18 6) scale(0.6 0.6)"],["stroke-width","4","stroke","white"],["viewBox","0 0 24 12",1,"line-with-area"],
"d;M 0 6 H 18 V 18 H 0 Z;fill-rule;evenodd;fill-opacity;0.38".split(";"),["viewBox","0 0 12 12",1,"band-max"],"d;M 0 4 H 12 V 12 H 0 Z;fill-rule;evenodd;fill-opacity;0.12".split(";"),"d;M 0 4 H 12;stroke-width;2;stroke-opacity;0.38".split(";"),["viewBox","0 0 12 12",1,"band-min"],"d;M 0 8 H 12 V 0 H 0 Z;fill-rule;evenodd;fill-opacity;0.12".split(";"),"d;M 0 8 H 12;stroke-width;2;stroke-opacity;0.38".split(";"),["viewBox","0 0 12 12",1,"threshold"],"d;M 0 6 H 12;stroke-width;2;stroke-dasharray;3 1".split(";"),
["viewBox","0 0 24 12",1,"square"],["d","M 3 0 h 18 v 12 h -18 Z","fill-rule","evenodd",4,"ngIf"],["transform","translate(12 6) scale(0.6 0.6)",4,"ngIf"],["d","M 3 0 h 18 v 12 h -18 Z","fill-rule","evenodd"],["transform","translate(12 6) scale(0.6 0.6)"],["viewBox","0 0 12 12",1,"circle"],"cx 6 cy 6 r 6 fill-rule evenodd".split(" "),[1,"icon","condensed",3,"ngStyle"],["viewBox","0 0 12 12",4,"ngIf","ngIfElse"],["viewBox","0 0 12 12"],["transform","translate(6 6) scale(0.6 0.6)"],["stroke-width","4"]],
template:function(a,b){a&1&&E(0,YDa,8,11,"i",2)(1,aEa,4,6,"ng-template",null,0,Og);a&2&&(a=Q(2),I("ngIf",!b.condensed)("ngIfElse",a))},dependencies:[jy,ny,ky,ly,my],styles:["i[_ngcontent-%COMP%]{position:relative;display:block;width:calc(var(--ac-sys-spacing-legend-basis, 12px)*2);height:var(--ac-sys-spacing-legend-basis,12px);line-height:0}i[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:100%;height:100%}i.condensed[_ngcontent-%COMP%]{width:var(--ac-sys-spacing-legend-basis,12px)}\n/*# sourceMappingURL=ac_key.css.map */"],
changeDetection:0});var V1c=["streamActionsMenuContents"],IH=function(a){this.cdr=a;this.streamActions=[];this.filteredStreamActions=[]};IH.prototype.ngOnChanges=function(a){var b=this;if(a.streamMetadata||a.streamActions)this.filteredStreamActions=this.streamActions.filter(function(c){return b.streamMetadata?c.relevant(b.streamMetadata):!1}),this.streamActionMenu&&this.streamActionMenu.clear(),W1c(this),this.cdr.detectChanges()};
IH.prototype.ngAfterViewInit=function(){var a;this.streamActionMenu&&((a=this.filteredStreamActions)==null?0:a.length)&&(this.streamActionMenu.clear(),W1c(this),this.cdr.detectChanges())};var W1c=function(a){if(a.streamActionMenu)for(var b=l(a.filteredStreamActions),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.streamActionMenu.createComponent(c.menuItem);d.instance.config=c.config;d.instance.streamMetadata=a.streamMetadata}};IH.\u0275fac=function(a){return new (a||IH)(Ve(Yx))};
IH.\u0275cmp=C({type:IH,selectors:[["ac-stream-action-menu"]],viewQuery:function(a,b){a&1&&kg(V1c,5,ig);if(a&2){var c;og(c=pg())&&(b.streamActionMenu=c.first)}},inputs:{streamMetadata:"streamMetadata",streamActions:"streamActions"},features:[Gx],decls:3,vars:0,consts:[["streamActionsMenuContents",""],[1,"stream-action-menu"]],template:function(a){a&1&&(Sf(0,"div",1),Uf(1,"div",null,0),Tf())},styles:[".stream-action-menu[_ngcontent-%COMP%]{display:flex;flex-direction:column}.stream-action-menu[_ngcontent-%COMP%]     .stream-action-filter-button{text-transform:none}.stream-action-menu[_ngcontent-%COMP%]     .stream-action-pantheon-link{text-transform:none}.stream-action-menu[_ngcontent-%COMP%]     .stream-action-gke-link{text-transform:none}"],
changeDetection:0});var JH=function(){this.streamActions=[];this.filteredStreamActions=[]};JH.prototype.ngOnChanges=function(){var a=this;this.filteredStreamActions=this.streamActions.filter(function(b){return a.streamMetadata&&b.relevant(a.streamMetadata)})};JH.\u0275fac=function(a){return new (a||JH)};
JH.\u0275cmp=C({type:JH,selectors:[["ac-series-stream-actions"]],inputs:{streamMetadata:"streamMetadata",streamActions:"streamActions"},features:[Gx],decls:4,vars:3,consts:[["streamActionsMenu",""],["class","stream-actions","mat-icon-button","","aria-label","Open timeserie action menu",3,"matMenuTriggerFor",4,"ngIf"],[3,"streamMetadata","streamActions"],["mat-icon-button","","aria-label","Open timeserie action menu",1,"stream-actions",3,"matMenuTriggerFor"]],template:function(a,b){a&1&&(E(0,bEa,3,
1,"button",1),K(1,"mat-menu",null,0),M(3,"ac-stream-action-menu",2),L());a&2&&(I("ngIf",b.filteredStreamActions.length>0),B(3),I("streamMetadata",b.streamMetadata)("streamActions",b.filteredStreamActions))},dependencies:[xy,jy,kz,iz,WA,VA,PF,LF,OF,IH],styles:["button.stream-actions[_ngcontent-%COMP%]{width:16px;height: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-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:0}button.stream-actions[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px;color:#202124}\n/*# sourceMappingURL=ac_series_stream_actions.css.map */"],
changeDetection:0});var X1c=function(a){this.valueType=0;this.getColor=a.getColor;this.getShape=a.getShape;this.getDisplayValue=a.getDisplayValue;this.getIsInteracted=a.getIsInteracted;this.getName=a.getName;this.getMinDisplayValue=a.getMinDisplayValue;this.getMaxDisplayValue=a.getMaxDisplayValue;this.getMetadata=a.getMetadata;this.drawnAs=a.drawnAs;this.lineDash=a.lineDash;this.rawValue=a.rawValue;this.scaledValue=a.scaledValue;this.pxValue=a.pxValue;this.stackingIndex=a.stackingIndex};
da.Object.defineProperties(X1c.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this.getColor()}},shape:{configurable:!0,enumerable:!0,get:function(){return this.getShape()}},displayValue:{configurable:!0,enumerable:!0,get:function(){return this.displayValueCache?this.displayValueCache:this.displayValueCache=this.getDisplayValue()}},minDisplayValue:{configurable:!0,enumerable:!0,get:function(){if(this.minDisplayValueCache)return this.minDisplayValueCache;if(this.getMinDisplayValue)return this.minDisplayValueCache=
this.getMinDisplayValue()}},maxDisplayValue:{configurable:!0,enumerable:!0,get:function(){if(this.maxDisplayValueCache)return this.maxDisplayValueCache;if(this.getMaxDisplayValue)return this.maxDisplayValueCache=this.getMaxDisplayValue()}},isInteracted:{configurable:!0,enumerable:!0,get:function(){return this.getIsInteracted()}},name:{configurable:!0,enumerable:!0,get:function(){return this.getName()}},timeshiftDisplayValue:{configurable:!0,enumerable:!0,get:function(){if(this.getTimeshiftDisplayValue)return this.getTimeshiftDisplayValue()}},
metadata:{configurable:!0,enumerable:!0,get:function(){if(this.getMetadata)return this.getMetadata()}}});var Y1c=function(){X1c.apply(this,arguments);this.valueType=1};Z(Y1c,X1c);var Z1c=function(){X1c.apply(this,arguments);this.valueType=2};Z(Z1c,X1c);var KH=function(){};
KH.prototype.updateLabelsModel=function(a,b){var c=!1,d=function(g){var k=a.selectedColumns.filter(function(m){return m.uniqueId!==g.uniqueId});k.length<a.selectedColumns.length&&(c=!0,a.selectedColumns=k)},e=function(g){a.selectedColumns.filter(function(k){return k.uniqueId===g.uniqueId}).length===0&&(c=!0,a.selectedColumns.push(g))},f=1;a.selectableColumns.forEach(function(g){delete g.order});b.forEach(function(g,k){g&&g.forEach(function(m){var r=!1;a.selectableColumns.forEach(function(w){m.title===w.title&&
(r=!0,w.order=w.order||f++,w.isDefault!==m.isDefault&&((w.isDefault=m.isDefault)?e(w):d(w)),m.template!==w.templates[k]&&(w.templates[k]=m.template,w.tokenizers[k]=m.tokenizer))});r||(m={isDefault:m.isDefault,title:m.title,templates:[m.template],tokenizers:[m.tokenizer],uniqueId:m.uniqueId},m.uniqueId=a.nextColumnId++,m.order=f++,a.selectableColumns.push(m),m.isDefault&&e(m))})});a.selectableColumns.forEach(function(g){g.order||d(g)});a.selectableColumns=a.selectableColumns.filter(function(g){return g.order});
a.selectableColumns=a.selectableColumns.map(function(g){return g});a.selectableColumns.sort(function(g,k){return g.order-k.order});b=a.selectedColumns;a.selectedColumns=a.selectedColumns.map(function(g){return g});a.selectedColumns.sort(function(g,k){return g.order-k.order});b.forEach(function(g,k){g.uniqueId!==a.selectedColumns[k].uniqueId&&(c=!0)});return c};
KH.prototype.updatePercents=function(a,b,c,d){d=d||640;a.labelWidths=b.map(function(k,m){var r=a.labelWidths&&a.labelWidths.length&&a.labelWidths[m]||0;r===0&&(r=a.labelHeaders&&a.labelHeaders[m]&&a.labelHeaders[m].length||0);return Math.max(r,k.length)});var e=0;a.labelWidths.forEach(function(k){e+=k});var f=Math.max(80,d/8)-e;a.scale=f<0?c-1.25*f:c;var g=a.labelWidths.length;a.labelPercents=f>0&&g?a.labelWidths.map(function(k){return k+f/g}):a.labelWidths.map(function(k){return k});e=0;a.labelPercents.forEach(function(k){e+=
k});for(a.labelPercents=a.labelPercents.map(function(k){return Math.floor(k/e*c)});a.labelPercents.includes(0);){d=Math.max.apply(Math,n(a.labelPercents));if(d<=1)break;b=a.labelPercents.indexOf(0);d=a.labelPercents.indexOf(d);a.labelPercents[b]++;a.labelPercents[d]--}};var Cl=function(a){return a[0]!=='"'||a.length<2||a[a.length-1]!=='"'?a:a.substring(1,a.length-1).replace(/\\([\\"])/g,"$1")};KH.prototype.updatePercents=KH.prototype.updatePercents;KH.prototype.updateLabelsModel=KH.prototype.updateLabelsModel;
var $1c=new KH;Vw("awesomecharts.utils.LabelUtils",$1c);var a2c=function(a){this.labelsCache=this.statsModeSummaryValueCache=this.displayValueSubstringsCache=this.displayValueCache=this.nameCache=null;this.seriesId=a.seriesId;this.color=a.color;this.shape=a.shape;this.drawnAs=a.drawnAs;this.dataSeriesMetadata=a.dataSeriesMetadata;this.isInteracted=a.isInteracted;this.isSelected=a.isSelected;this.rawValue=a.rawValue;this.pxValue=a.pxValue;this.timeshiftValue=a.timeshiftValue;this.setHovered=a.setHovered;this.setSelected=a.setSelected;this.unit=a.unit;this.hideValue=
a.hideValue;this.getNameInternal=a.getName;this.getDisplayValueInternal=a.getDisplayValue;this.getStatsModeSummaryValueInternal=a.getStatsModeSummaryValue;this.getLabelsInternal=a.getLabels;this.getColumnIdsInternal=a.getColumnIds;this.getDisplayValueAndSubstringsInternal=a.getDisplayValueAndSubstrings;this.onLabelsChange=a.onLabelsChange};
da.Object.defineProperties(a2c.prototype,{getName:{configurable:!0,enumerable:!0,set:function(a){this.nameCache=null;this.getNameInternal=a},get:function(){return this.getNameInternal}},getDisplayValue:{configurable:!0,enumerable:!0,set:function(a){this.displayValueCache=null;this.getDisplayValueInternal=a},get:function(){return this.getDisplayValueInternal}},getDisplayValueAndSubstrings:{configurable:!0,enumerable:!0,set:function(a){this.displayValueSubstringsCache=null;this.getDisplayValueAndSubstringsInternal=
a},get:function(){return this.getDisplayValueAndSubstringsInternal}},getStatsModeSummaryValue:{configurable:!0,enumerable:!0,set:function(a){this.statsModeSummaryValueCache=null;this.getStatsModeSummaryValueInternal=a},get:function(){return this.getStatsModeSummaryValueInternal}},getLabels:{configurable:!0,enumerable:!0,set:function(a){this.labelsCache=null;this.getLabelsInternal=a},get:function(){return this.getLabelsInternal}},getColumnIds:{configurable:!0,enumerable:!0,set:function(a){this.getColumnIdsInternal=
a},get:function(){return this.getColumnIdsInternal}},name:{configurable:!0,enumerable:!0,get:function(){if(this.nameCache!==null)return this.nameCache;var a=this.getName();return this.nameCache=a}},displayValue:{configurable:!0,enumerable:!0,get:function(){if(this.displayValueCache!==null)return this.displayValueCache;if(this.getDisplayValueAndSubstrings){var a=this.getDisplayValueAndSubstrings(),b=a.displayValue;a=a.displayValueSubstrings;this.displayValueCache=b;this.displayValueSubstringsCache=
a;return b}return this.displayValueCache=b=this.getDisplayValue()}},displayValueSubstrings:{configurable:!0,enumerable:!0,get:function(){if(this.displayValueSubstringsCache!==null)return this.displayValueSubstringsCache;if(this.getDisplayValueAndSubstrings){var a=this.getDisplayValueAndSubstrings(),b=a.displayValueSubstrings;this.displayValueCache=a.displayValue;return this.displayValueSubstringsCache=b}this.displayValueSubstringsCache=void 0}},statsModeSummaryValue:{configurable:!0,enumerable:!0,
get:function(){if(this.statsModeSummaryValueCache!==null)return this.statsModeSummaryValueCache;var a=this.getStatsModeSummaryValue();return this.statsModeSummaryValueCache=a}},labels:{configurable:!0,enumerable:!0,get:function(){if(this.labelsCache!==null)return this.labelsCache;var a=this.getLabels();this.labelsCache=a;if(this.onLabelsChange)this.onLabelsChange(a);return a}}});var b2c={getColor:function(a,b){a=sEa(b.max,b.colorPivots)(a);var c=l(a);a=c.next().value;b=c.next().value;c=c.next().value;return"rgb("+a+", "+b+", "+c+")"}};var PEa=function(){return[]},zEa=function(a,b){return{$implicit:a,name:b}},EEa=function(a,b,c){return{$implicit:a,seriesMetadata:b,displayValue:c}},aFa=function(a){return{"min-width":a}},c2c=["right","left"],LH=function(){var a=q(LG);BH.call(this,a);var b=this;this.queueService=q(yH);this.formatterService=q(KG);this.cdr=q(Yx);this.enclosingHovercard=q(CH,{optional:!0});this.onlyShowSelectedSeriesInternal=!1;this.timeKey=1;this.hideSelectedSection=this.hideThresholds=!1;this.visibleRowsInternal=5;
this.layout="default";this.minWidth=0;this.streamActions=[];this.hideUndefinedValues=this.condensedShapes=!1;this.layerIdsToIgnore=[];this.distributionColorStrategy=b2c;this.chartQuickActionsEnabled=this.formatDistribution=!1;this.updateTriggerSubject=new rf;this.xAxisLookup={ids:[],entities:{}};this.isQuery=!1;this.seriesMetadataForLabelTablesCache=this.labelTablesCache=null;this.valueColumnLabel="Value";this.updateTimeout=null;this.allStreamsSubject=new Xj([]);this.sortedStreamsObservable=this.allStreamsSubject.pipe(A(function(c){return c.sort(jFa)}));
this.relativeYPosSubject=new Xj(null);this.centerStreamIndexObservable=he([this.sortedStreamsObservable,this.relativeYPosSubject]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return b.getCenterStreamIndex(c,d)}),of());this.truncatedStreamsObservable=he([this.sortedStreamsObservable,this.centerStreamIndexObservable]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;d=Math.max(0,d-Math.ceil(Math.max(0,b.visibleRows-1)/2));var e=Math.min(d+b.visibleRows,c.length),f=
b.visibleRows-(e-d);f&&(d===0?e=Math.min(c.length,e+f):d=Math.max(0,d-f));return{streams:c.slice(d,e),streamsAboveCount:d,streamsBelowCount:c.length-e}}),wf({bufferSize:1,refCount:!0}));this.streamsObservable=this.truncatedStreamsObservable.pipe(A(function(c){return c.streams}),wf({bufferSize:1,refCount:!0}));this.selectedStreamsSubject=new Xj([]);this.selectedStreamsObservable=this.selectedStreamsSubject.asObservable();this.streamsAboveCountObservable=this.truncatedStreamsObservable.pipe(A(function(c){return c.streamsAboveCount}),
wf({bufferSize:1,refCount:!0}));this.streamsBelowCountObservable=this.truncatedStreamsObservable.pipe(A(function(c){return c.streamsBelowCount}),wf({bufferSize:1,refCount:!0}));this.timeshiftColumnLabelSubject=new Xj("");this.timeshiftColumnLabelObservable=this.timeshiftColumnLabelSubject.pipe(wf({bufferSize:1,refCount:!0}));this.showSelectedSeriesHeadersObservable=he([this.selectedStreamsObservable,this.timeshiftColumnLabelObservable]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;
d=b.chartQuickActionsEnabled&&d!=="";return c.length>0?!b.onlyShowSelectedSeriesInternal||d:!1}),wf({bufferSize:1,refCount:!0}));this.setup({});this.scopeObservable.pipe(zf(function(c){return b.formatterService.getValueStrategy(c)}),Af(this.destroyed)).subscribe(function(c){b.ignoreFloatImprecision=c.ignoreFloatImprecision;b.valueFormatter=function(d,e,f,g){var k,m;return(m=(k=c.formatForHovercard)==null?void 0:k.call(c,d,e,f,g))!=null?m:c.format(d,e,f,g)};b.updateTriggerSubject.next()})};Z(LH,BH);
LH.\u0275dir=BH.\u0275dir;h=LH.prototype;h.ngOnChanges=function(a){BH.prototype.ngOnChanges.call(this,a);"layerIdsToIgnore"in a&&this.update()};
h.ngOnInit=function(){var a=this;this.store.pipe(lk(YG),Af(this.destroyed)).subscribe(function(c){a.xAxisLookup=c});var b=c2c.map(function(c){return a.scopeObservable.pipe(zf(function(d){return a.selectorService.getSelection(cH,Object.assign({},d,{yAxisId:c}))}),A(function(d){return d!=null?d:null}),yf(null),uf(),A(rk),te(function(d){return zl(d)}))});this.enclosingHovercard&&(this.enclosingHovercard.timeKeyObservable.pipe(Af(this.destroyed)).subscribe(function(c){a.timeKey=c}),this.enclosingHovercard.showHovercard.pipe(Af(this.destroyed)).subscribe(function(c){c&&
a.update()}));this.truncatedStreamsObservable.pipe(Af(this.destroyed)).subscribe(function(c){if(a.showHovercardSeriesActionText!==void 0&&a.showHovercardSeriesActionText!==null&&a.enclosingHovercard){var d=!1;c=l(c.streams);for(var e=c.next();!e.done;e=c.next())e=e.value,e.metadata!==void 0&&(d=d||a.showHovercardSeriesActionText(e.metadata));a.enclosingHovercard.shouldShowSeriesActionText$.next(d)}});se.apply(null,[this.updateTriggerSubject].concat(n(b))).pipe(te(function(){var c,d;return(d=(c=a.enclosingHovercard)==
null?void 0:c.isShowing)!=null?d:!0}),Af(this.destroyed)).subscribe(function(){a.throttledUpdate()})};h.throttledUpdate=function(){var a=this;this.updateTimeout||(this.updateTimeout=setTimeout(function(){a.update();a.updateTimeout=null},0))};
h.update=function(a){var b=this,c=c2c.map(function(d){return b.scopeObservable.pipe(zf(function(e){return b.selectorService.getSelection(cH,Object.assign({},e,{yAxisId:d}))}))});he(c).pipe(mf(1)).subscribe(function(d){for(var e=new Map,f=0;f<c2c.length;f++)e.set(c2c[f],d[f]);b.withLatest(function(g){var k=g.scope;var m=g.state;if(k&&m&&m.timeSeries&&m.brush&&m.resize&&Object.keys(m.timeSeries.byLayer.entities).length!==0){g=m.colorScale;var r=m.seriesSelection,w=m.timeSeries,x=m.resize;if(!m.brush.panning){a&&
b.deselectAllSeries(k,r);m=d2c(r);r=b.getInteractedSeries(r);for(var D=new Map,H=l(c2c),J=H.next();!J.done;J=H.next()){J=J.value;var O=e.get(J);if(O){O=Al(O,x.margins.top,x.height-x.margins.bottom,O.unit);var R=void 0;D.set(J,(R=O)!=null?R:null)}else D.set(J,null)}w=b.getRelevantLayers(w);x=b.getTimeShiftColumnLabel(k,w);b.timeshiftColumnLabelSubject.next(x);g=b.buildStreams(k,w,r,D,e,g);b.allStreamsSubject.next(g);k=e2c(b,k,w,m,e);b.selectedStreamsSubject.next(k);b.cdr.markForCheck()}}})})};
h.getTimeShiftColumnLabel=function(a,b){var c=null;b=l(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=void 0,f=void 0,g=void 0,k=void 0,m=void 0,r=void 0,w=(g=this.xAxisLookup.entities[Pk((m=(e=a)==null?void 0:e.chartGroupId)!=null?m:"",(r=(f=a)==null?void 0:f.chartId)!=null?r:"",d.xAxisId)])==null?void 0:(k=g.relativeTo)==null?void 0:k.shift;d=w?tDa(w):null;if(!c)c=d;else if(d&&c!==d)throw Error("Kc");}return c||""};h.onScopeChange=function(){this.updateTriggerSubject.next()};
h.onSeriesSelectionChange=function(a){tl(a)&&this.updateTriggerSubject.next()};h.onChartSpecChange=function(a){var b,c;a=(b=a.currentValue)==null?void 0:(c=b.dataSets)==null?void 0:c[0];this.isQuery=(a==null?void 0:a.timeSeriesQuery)!==void 0||(a==null?void 0:a.prometheusQuery)!==void 0};h.onTimeSeriesChange=function(){this.updateTriggerSubject.next()};h.onResizeChange=function(){this.updateTriggerSubject.next()};
h.onLastInteractionChange=function(a,b){if(a=a.currentValue)b=this.getLastInteractionYPos(xl(b.scope,a)),this.relativeYPosSubject.next(b)};var d2c=function(a){var b=[];a&&Object.values(a.byLayer.entities).forEach(function(c){b=b.concat((c==null?void 0:c.selectedSeries)||[])});return b};h=LH.prototype;
h.deselectAllSeries=function(a,b){var c=this;b&&Object.values(b.byLayer.entities).filter(function(d){return d!==void 0&&d!==null}).forEach(function(d){d.selectedSeries&&a.chartId&&c.store.dispatch(FH({chartId:a.chartId,layerId:d.layerId}))})};h.getInteractedSeries=function(a){var b=this,c=[];a&&Object.values(a.byLayer.entities).forEach(function(d){c=c.concat(b.getLayerInteractedSeries(d))});return c};
h.getLayerInteractedSeries=function(a){if(!a)return[];switch(this.timeKey){case 2:return[];case 0:case 3:return a.selectedSeries;case 1:return a.hoveredSeries;case 4:return[];default:sb(this.timeKey,"unknown data source")}};
h.getLastInteractionYPos=function(a){if(!a)return null;switch(this.timeKey){case 0:var b,c;return(c=(b=a.focus)==null?void 0:b.y)!=null?c:null;case 2:var d,e;return(e=(d=a.click)==null?void 0:d.y)!=null?e:null;case 1:var f,g;return(g=(f=a.hover)==null?void 0:f.y)!=null?g:null;case 3:return null;case 4:var k,m;return(m=(k=a.multiselectAnchor)==null?void 0:k.y)!=null?m:null;default:sb(this.timeKey,"unknown data source")}};
h.displayName=function(a,b){var c=null;a.legendTemplate?b=new Dl(a.legendTemplate):this.labelTemplate&&(b=new Dl(this.labelTemplate));var d=oEa(a.dataSeriesMetadata);d&&b&&(c=b.format(d,this.getTranslationFunctions()));var e;return(e=c)!=null?e:a.name||a.seriesId||""};h.getRelevantLayers=function(a){var b=this;return Object.values(a.byLayer.entities).filter(function(c){return!(!c||b.layerIdsToIgnore.includes(c.layerId)||c.valueType!==1&&c.valueType!==2&&c.valueType!==3)})};
var e2c=function(a,b,c,d,e){var f=new Map,g=new Map;c=l(c);for(var k=c.next(),m={};!k.done;m={labelFormatter$jscomp$1:void 0,layer$jscomp$6:void 0,yAxisState$jscomp$1:void 0},k=c.next())if(m.layer$jscomp$6=k.value,m.yAxisState$jscomp$1=e.get(m.layer$jscomp$6.yAxisId),m.yAxisState$jscomp$1){var r=void 0,w=void 0,x=void 0,D=void 0,H=void 0,J=void 0;k=!!((x=a.xAxisLookup.entities[Pk((H=(r=b)==null?void 0:r.chartGroupId)!=null?H:"",(J=(w=b)==null?void 0:w.chartId)!=null?J:"",m.layer$jscomp$6.xAxisId)])==
null?0:(D=x.relativeTo)==null?0:D.shift);if(m.layer$jscomp$6.valueType!==2&&(m.layer$jscomp$6.valueType===1||m.layer$jscomp$6.valueType===3))for(r=Object.values(m.layer$jscomp$6.bySeries.entities),w=void 0,m.labelFormatter$jscomp$1=a.getCachedLabelFormatter(r,(w=m.layer$jscomp$6.legendTemplate)!=null?w:a.labelTemplate),r=l(r),x=r.next(),w={};!x.done;w={series$jscomp$22:void 0,value$jscomp$8634:void 0,getName:void 0},x=r.next())if(w.series$jscomp$22=x.value,w.series$jscomp$22&&(!a.hideThresholds||
w.series$jscomp$22.drawnAs!==6)&&d.map(function(ua){return ua.seriesId}).includes(w.series$jscomp$22.seriesId)){w.value$jscomp$8634=w.series$jscomp$22.atTimeKey[a.timeKey];D=function(ua){return function(){return ua.series$jscomp$22.color}}(w);H=function(ua){return function(){return ua.series$jscomp$22.shape}}(w);w.getName=function(ua,ma){return function(){return a.displayName(ua.series$jscomp$22,ma.labelFormatter$jscomp$1)}}(w,m);J=function(ua,ma){return function(){var Da;return a.formatNumericValue((Da=
ua.value$jscomp$8634)==null?void 0:Da.y,ma.layer$jscomp$6.unit,ma.layer$jscomp$6.yAxisId,ma.yAxisState$jscomp$1.min,ma.yAxisState$jscomp$1.max,ma.yAxisState$jscomp$1.unit,ma.yAxisState$jscomp$1.maximumFractionDigits,ma.layer$jscomp$6.pointConnectionMethod,(0,ua.getName)())}}(w,m);var O=void 0;x=((O=w.value$jscomp$8634)==null?void 0:O.min)!==void 0?function(ua,ma){return function(){var Da;return a.formatNumericValue((Da=ua.value$jscomp$8634)==null?void 0:Da.min,ma.layer$jscomp$6.unit,ma.layer$jscomp$6.yAxisId,
ma.yAxisState$jscomp$1.min,ma.yAxisState$jscomp$1.max,ma.yAxisState$jscomp$1.unit,ma.yAxisState$jscomp$1.maximumFractionDigits,ma.layer$jscomp$6.pointConnectionMethod,(0,ua.getName)())}}(w,m):void 0;var R=void 0;O=((R=w.value$jscomp$8634)==null?void 0:R.max)!==void 0?function(ua,ma){return function(){var Da;return a.formatNumericValue((Da=ua.value$jscomp$8634)==null?void 0:Da.max,ma.layer$jscomp$6.unit,ma.layer$jscomp$6.yAxisId,ma.yAxisState$jscomp$1.min,ma.yAxisState$jscomp$1.max,ma.yAxisState$jscomp$1.unit,
ma.yAxisState$jscomp$1.maximumFractionDigits,ma.layer$jscomp$6.pointConnectionMethod,(0,ua.getName)())}}(w,m):void 0;var V=function(ua){return function(){return ua.series$jscomp$22.dataSeriesMetadata}}(w),ba=void 0;R=w.value$jscomp$8634!==void 0&&w.value$jscomp$8634!==null?(ba=Wk(m.layer$jscomp$6.unit,m.yAxisState$jscomp$1.unit,w.value$jscomp$8634.y))!=null?ba:w.value$jscomp$8634.y:void 0;var pa=ba=void 0;D=new Y1c({getColor:D,getShape:H,getDisplayValue:J,getIsInteracted:function(){return!1},getName:w.getName,
getMetadata:V,drawnAs:w.series$jscomp$22.drawnAs,lineDash:w.series$jscomp$22.lineDash,rawValue:(pa=(ba=w.value$jscomp$8634)==null?void 0:ba.y)!=null?pa:void 0,scaledValue:R,stackingIndex:w.series$jscomp$22.stackingIndex,getMinDisplayValue:x,getMaxDisplayValue:O});k?g.set(w.series$jscomp$22.seriesId,D):f.set(w.series$jscomp$22.seriesId,D)}}b=l(f);e=b.next();for(d={};!e.done;d={shiftedStream:void 0},e=b.next())c=l(e.value),e=c.next().value,c=c.next().value,d.shiftedStream=g.get(e),d.shiftedStream&&
(c.getTimeshiftDisplayValue=function(ua){return function(){return ua.shiftedStream.displayValue}}(d),g.delete(e));return Array.from(f.values()).concat(Array.from(g.values())).sort(jFa)};h=LH.prototype;
h.buildStreams=function(a,b,c,d,e,f){var g=this,k=new Map,m=new Map;b=l(b);for(var r=b.next(),w={};!r.done;w={layer$jscomp$7:void 0,yAxisState$jscomp$2:void 0,layerColorScale:void 0,labelFormatter$jscomp$2:void 0,labelFormatter$jscomp$3:void 0},r=b.next())if(w.layer$jscomp$7=r.value,w.yAxisState$jscomp$2=e.get(w.layer$jscomp$7.yAxisId),w.yAxisState$jscomp$2){var x=void 0,D=void 0,H=void 0,J=void 0,O=void 0,R=void 0;r=!!((H=this.xAxisLookup.entities[Pk((O=(x=a)==null?void 0:x.chartGroupId)!=null?O:
"",(R=(D=a)==null?void 0:D.chartId)!=null?R:"",w.layer$jscomp$7.xAxisId)])==null?0:(J=H.relativeTo)==null?0:J.shift);if(w.layer$jscomp$7.valueType===2)for(x=void 0,w.layerColorScale=(x=f)==null?void 0:x.byLayer.entities[w.layer$jscomp$7.layerId],x=Object.values(w.layer$jscomp$7.bySeries.entities),D=void 0,w.labelFormatter$jscomp$2=this.getCachedLabelFormatter(x,(D=w.layer$jscomp$7.legendTemplate)!=null?D:this.labelTemplate),x=l(x),H=x.next(),D={};!H.done;D={series$jscomp$23:void 0,getDisplayValueAndBucketCount:void 0},
H=x.next())(D.series$jscomp$23=H.value,!D.series$jscomp$23||this.hideThresholds&&D.series$jscomp$23.drawnAs===6||(H=D.series$jscomp$23.atTimeKey[this.timeKey],this.hideUndefinedValues&&!H))||(D.getDisplayValueAndBucketCount=function(va,ya){return function(){return g.formatDistributionValue(va.series$jscomp$23,ya.layer$jscomp$7.unit,ya.layer$jscomp$7.yAxisId,ya.yAxisState$jscomp$2.min,ya.yAxisState$jscomp$2.max,ya.yAxisState$jscomp$2.unit,ya.yAxisState$jscomp$2.maximumFractionDigits)}}(D,w),H=void 0,
J=new Z1c({getColor:function(va,ya){return function(){var Sa=(0,va.getDisplayValueAndBucketCount)().bucketCount;Sa=ya.layerColorScale?g.distributionColorStrategy.getColor(Sa!=null?Sa:ya.layerColorScale.min,ya.layerColorScale):"var(--ac-sys-color-chart-on-surface, #000)";return typeof Sa!=="string"?"var(--ac-sys-color-chart-on-surface, #000)":Sa}}(D,w),getShape:function(){},getDisplayValue:function(va){return function(){return(0,va.getDisplayValueAndBucketCount)().displayValue}}(D),getIsInteracted:function(va){return function(){return c.map(function(ya){return ya.seriesId}).includes(va.series$jscomp$23.seriesId)}}(D),
getName:function(va,ya){return function(){return g.displayName(va.series$jscomp$23,ya.labelFormatter$jscomp$2)}}(D,w),getMetadata:function(va){return function(){return va.series$jscomp$23.dataSeriesMetadata}}(D),drawnAs:D.series$jscomp$23.drawnAs,lineDash:D.series$jscomp$23.lineDash,rawValue:(H=D.series$jscomp$23.atTimeKey[this.timeKey])!=null?H:void 0}),r?m.set(D.series$jscomp$23.seriesId,J):k.set(D.series$jscomp$23.seriesId,J));else if(w.layer$jscomp$7.valueType===1||w.layer$jscomp$7.valueType===
3)if(x=d.get(w.layer$jscomp$7.yAxisId))for(D=Object.values(w.layer$jscomp$7.bySeries.entities),H=void 0,w.labelFormatter$jscomp$3=this.getCachedLabelFormatter(D,(H=w.layer$jscomp$7.legendTemplate)!=null?H:this.labelTemplate),D=l(D),J=D.next(),H={};!J.done;H={series$jscomp$24:void 0,value$jscomp$8636:void 0,getName$jscomp$2:void 0},J=D.next())if(H.series$jscomp$24=J.value,H.series$jscomp$24&&(!this.hideThresholds||H.series$jscomp$24.drawnAs!==6)&&(H.value$jscomp$8636=H.series$jscomp$24.atTimeKey[this.timeKey],
!this.hideUndefinedValues||H.value$jscomp$8636)){O=function(va){return function(){return va.series$jscomp$24.color}}(H);R=function(va){return function(){return va.series$jscomp$24.shape}}(H);H.getName$jscomp$2=function(va,ya){return function(){return g.displayName(va.series$jscomp$24,ya.labelFormatter$jscomp$3)}}(H,w);var V=function(va,ya){return function(){var Sa;return g.formatNumericValue((Sa=va.value$jscomp$8636)==null?void 0:Sa.y,ya.layer$jscomp$7.unit,ya.layer$jscomp$7.yAxisId,ya.yAxisState$jscomp$2.min,
ya.yAxisState$jscomp$2.max,ya.yAxisState$jscomp$2.unit,ya.yAxisState$jscomp$2.maximumFractionDigits,ya.layer$jscomp$7.pointConnectionMethod,(0,va.getName$jscomp$2)())}}(H,w),ba=void 0;J=((ba=H.value$jscomp$8636)==null?void 0:ba.min)!==void 0?function(va,ya){return function(){var Sa;return g.formatNumericValue((Sa=va.value$jscomp$8636)==null?void 0:Sa.min,ya.layer$jscomp$7.unit,ya.layer$jscomp$7.yAxisId,ya.yAxisState$jscomp$2.min,ya.yAxisState$jscomp$2.max,ya.yAxisState$jscomp$2.unit,ya.yAxisState$jscomp$2.maximumFractionDigits,
ya.layer$jscomp$7.pointConnectionMethod,(0,va.getName$jscomp$2)())}}(H,w):void 0;var pa=void 0;ba=((pa=H.value$jscomp$8636)==null?void 0:pa.max)!==void 0?function(va,ya){return function(){var Sa;return g.formatNumericValue((Sa=va.value$jscomp$8636)==null?void 0:Sa.max,ya.layer$jscomp$7.unit,ya.layer$jscomp$7.yAxisId,ya.yAxisState$jscomp$2.min,ya.yAxisState$jscomp$2.max,ya.yAxisState$jscomp$2.unit,ya.yAxisState$jscomp$2.maximumFractionDigits,ya.layer$jscomp$7.pointConnectionMethod,(0,va.getName$jscomp$2)())}}(H,
w):void 0;var ua=function(va){return function(){return c.map(function(ya){return ya.seriesId}).includes(va.series$jscomp$24.seriesId)}}(H),ma=function(va){return function(){return va.series$jscomp$24.dataSeriesMetadata}}(H),Da=void 0;pa=H.value$jscomp$8636!==void 0&&H.value$jscomp$8636!==null?(Da=Wk(w.layer$jscomp$7.unit,w.yAxisState$jscomp$2.unit,H.value$jscomp$8636.y))!=null?Da:H.value$jscomp$8636.y:void 0;var ja=Da=void 0;O=new Y1c({getColor:O,getShape:R,getDisplayValue:V,getIsInteracted:ua,getName:H.getName$jscomp$2,
getMetadata:ma,drawnAs:H.series$jscomp$24.drawnAs,lineDash:H.series$jscomp$24.lineDash,rawValue:(ja=(Da=H.value$jscomp$8636)==null?void 0:Da.y)!=null?ja:void 0,scaledValue:pa,pxValue:H.value$jscomp$8636!==void 0&&H.value$jscomp$8636!==null?x(H.value$jscomp$8636.y):void 0,stackingIndex:H.series$jscomp$24.stackingIndex,getMinDisplayValue:J,getMaxDisplayValue:ba});r?m.set(H.series$jscomp$24.seriesId,O):k.set(H.series$jscomp$24.seriesId,O)}}a=l(k);e=a.next();for(d={};!e.done;d={shiftedStream$jscomp$1:void 0},
e=a.next())f=l(e.value),e=f.next().value,f=f.next().value,d.shiftedStream$jscomp$1=m.get(e),d.shiftedStream$jscomp$1&&(f.getTimeshiftDisplayValue=function(va){return function(){return va.shiftedStream$jscomp$1.displayValue}}(d),m.delete(e));return Array.from(k.values()).concat(Array.from(m.values()))};
h.getCachedLabelFormatter=function(a,b){a=pEa(a);var c=qEa(a,b,this.isQuery);b=c.formatter;a=c.labelTables;c=c.seriesMetadata;a&&(this.labelTablesCache=a);c&&(this.seriesMetadataForLabelTablesCache=c);return b};
h.getTranslationFunctions=function(){var a=this,b={};this.withLatest(function(c){var d,e=(d=c.state)==null?void 0:d.map;if(e!==void 0){var f,g;b=Object.assign({},(g=(f=a.customTranslationFunctions)==null?void 0:f.getBoundGlobalFunctions())!=null?g:{},{credentialNameOrId:function(k){var m,r,w;k=(w=k==null?void 0:(m=k.resource)==null?void 0:(r=m.labels)==null?void 0:r.credential_id)!=null?w:"";var x;return(x=e.instance[k])!=null?x:k},instanceNameOrId:function(k){var m,r,w;k=(w=k==null?void 0:(m=k.resource)==
null?void 0:(r=m.labels)==null?void 0:r.instance_id)!=null?w:"";var x;return(x=e.instance[k])!=null?x:k}})}});return b};
h.formatDistributionValue=function(a,b,c,d,e,f,g){var k=this,m=a.atTimeKey[this.timeKey];if(m&&m.bucketIndex!==void 0){var r=m.bucketIndex;a=m.y.bucketCounts[r]||0;var w={yAxisPosition:c,isDistribution:!0};w=this.formatDistribution?this.valueFormatter?this.valueFormatter(a,f,{maximumFractionDigits:g},w):a.toString():a.toString();var x=(a*100/m.y.count).toFixed(),D=l(Bl(m.y,r)),H=D.next().value;D=D.next().value;r===m.y.bucketCounts.length&&(D=null);H===-Infinity&&(H=null);r=l([H,D].map(function(J){if(J===
null||!isFinite(J))return null;b==="{not_a_unit}"&&(b="1");J=Wk(b,f,J)||0;var O;return((O=k.valueFormatter)!=null?O:Yk)(J,f||b,{maximumFractionDigits:g},d!==null&&e!==null&&f!==null?{domain:{min:d,max:e,unit:f},yAxisPosition:c}:void 0)}));m=r.next().value;r=r.next().value;return{displayValue:this.getBucketRangeMessage(w,x,m,r),bucketCount:a}}return{displayValue:"-",bucketCount:null}};
h.formatNumericValue=function(a,b,c,d,e,f,g,k,m){var r,w=(r=this.valueFormatter)!=null?r:Yk;c=d!==null&&e!==null&&f!==null?{domain:{min:d,max:e,unit:f},yAxisPosition:c}:void 0;if(a!==void 0&&a!==null){b==="{not_a_unit}"&&(b="1");var x;k=(x=Wk(b,f,a,this.ignoreFloatImprecision))!=null?x:a;if(m){var D;c=Object.assign({},(D=c)!=null?D:{},{displayName:m})}return w(k,f||b,{maximumFractionDigits:g},c)}switch(k){case "gap_detection":return"-";case "zero_fill":return w(0,f,void 0,c);default:return"-"}};
h.getBucketRangeMessage=function(a,b,c,d){return c===null?(new em("{COUNT} ({PERCENT}%) below {UPPER}")).format({COUNT:a,PERCENT:b,UPPER:d}):d===null?(new em("{COUNT} ({PERCENT}%) above {LOWER}")).format({COUNT:a,PERCENT:b,LOWER:c}):(new em("{COUNT} ({PERCENT}%) between {LOWER} and {UPPER}")).format({COUNT:a,PERCENT:b,LOWER:c,UPPER:d})};
h.getCenterStreamIndex=function(a,b){for(var c=0,d=a.length-1;d>=0;d--){var e=a[d];if(e.isInteracted){c=d;break}b!==null&&e.valueType===1&&e.pxValue!==void 0&&e.pxValue>b&&(c=d)}return c};h.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({mergeKey:d,context:b,changes:a,scope:e,componentHandlerUsingContext:c})};h.ngOnDestroy=function(){BH.prototype.ngOnDestroy.call(this);this.updateTimeout&&clearTimeout(this.updateTimeout)};
da.Object.defineProperties(LH.prototype,{onlyShowSelectedSeries:{configurable:!0,enumerable:!0,set:function(a){(this.onlyShowSelectedSeriesInternal=a)||this.update(!0)}},dataSource:{configurable:!0,enumerable:!0,set:function(a){switch(a){case "click":this.timeKey=2;break;case "hover":this.timeKey=1;break;case "time_pin":this.timeKey=0;break;case "most_recent":this.timeKey=3;break;case "multiselect_anchor":this.timeKey=4;break;default:sb(a,"unknown data source")}this.update()}},visibleRows:{configurable:!0,
enumerable:!0,set:function(a){this.visibleRowsInternal=a;this.update()},get:function(){return this.visibleRowsInternal}},compact:{configurable:!0,enumerable:!0,get:function(){return this.layout==="compact"}}});LH.\u0275fac=function(a){return new (a||LH)};
LH.\u0275cmp=C({type:LH,selectors:[["ac-series-snapshot"]],inputs:{onlyShowSelectedSeries:"onlyShowSelectedSeries",dataSource:"dataSource",hideThresholds:"hideThresholds",hideSelectedSection:"hideSelectedSection",visibleRows:"visibleRows",labelTemplate:"labelTemplate",customTranslationFunctions:"customTranslationFunctions",layout:"layout",seriesRowTemplate:"seriesRowTemplate",seriesValueTemplate:"seriesValueTemplate",streamActions:"streamActions",condensedShapes:"condensedShapes",hideUndefinedValues:"hideUndefinedValues",
layerIdsToIgnore:"layerIdsToIgnore",showHovercardSeriesActionText:"showHovercardSeriesActionText",showLineDash:"showLineDash",distributionColorStrategy:"distributionColorStrategy",formatDistribution:"formatDistribution",chartQuickActionsEnabled:"chartQuickActionsEnabled"},features:[Ff,Gx],decls:2,vars:3,consts:[[1,"series-snapshot"],[1,"list"],["id","above-count"],[1,"subhead","subhead-spacing"],[1,"stream-actions"],[1,"key","bright"],[3,"color","drawnAs","shape","condensed","lineDash"],[1,"name-wrapper"],
[1,"name"],[1,"value","current-value","strong"],[1,"value","current-value"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"streamMetadata","streamActions"],[1,"series-snapshot-fade","subhead-spacing"],["id","below-count"],[1,"name",3,"ngStyle"],[1,"value","current-value",3,"strong"],["colspan","4",1,"series-snapshot-fade"]],template:function(a,b){a&1&&(F(0,iFa,5,4,"div",0),U(1,"async"));if(a&2){var c;G(((c=W(1,1,b.streamsObservable))==null?0:c.length)?0:-1)}},dependencies:[HH,JH,ny,oy,py],styles:[".series-snapshot[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-surface,#202124);text-align:left;min-height:16px;font-size:12px}table[_ngcontent-%COMP%]{table-layout:auto;width:100%}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:12px;font-weight:400;line-height:20px;max-width:300px}table[_ngcontent-%COMP%]   tbody.list.compact[_ngcontent-%COMP%]{font-size:11px;line-height:16px;letter-spacing:.25px}table[_ngcontent-%COMP%]   tbody.list.compact[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{opacity:.8;padding:0}table[_ngcontent-%COMP%]   tbody.list.compact[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.series-snapshot-fade[_ngcontent-%COMP%]{opacity:.5}table[_ngcontent-%COMP%]   tbody.list.compact[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   ac-key[_ngcontent-%COMP%]{position:relative;top:2px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr.dummy-row[_ngcontent-%COMP%]{position:absolute;visibility:hidden}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{height:12px;opacity:.66;overflow:hidden;padding:1px 0;text-overflow:ellipsis;top:0;vertical-align:top;padding-right:20px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:has(+.stream-actions), table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:last-child{padding-right:0}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.strong[_ngcontent-%COMP%]{font-weight:500;opacity:1}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.subhead-spacing[_ngcontent-%COMP%]{padding:8px 0 1px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.subhead[_ngcontent-%COMP%]{font-size:10px;line-height:16px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key[_ngcontent-%COMP%]{opacity:.9;padding-right:4px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key.bright[_ngcontent-%COMP%]{opacity:1}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key.dim[_ngcontent-%COMP%]{opacity:.3}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key[_ngcontent-%COMP%]   ac-key[_ngcontent-%COMP%]{position:relative;top:4px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.name-wrapper[_ngcontent-%COMP%]{width:100%;max-width:250px;overflow-x:hidden;overflow-y:hidden;text-align:left}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.name-wrapper[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-all;max-height:60px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   td.value2[_ngcontent-%COMP%], table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.value[_ngcontent-%COMP%]{text-align:right;white-space:nowrap}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:not(:last-child){margin-right:12px}table[_ngcontent-%COMP%]   td.key[_ngcontent-%COMP%]{width:24px}\n/*# sourceMappingURL=ac_series_snapshot.css.map */"],
changeDetection:0});var f2c=["right","left"],MH=function(a,b,c,d,e){BH.call(this,a);var f=this;this.cdRef=b;this.elementRef=c;this.queueService=d;this.formatterService=e;this.hideThresholds=!1;this.valueName="Value";this.initialized=this.showAllColumnsByDefault=!1;this.streamsInternal=null;this.streamsSubject=new Xj(this.streamsInternal);this.streamsObservable=this.streamsSubject.pipe(yf(null));this.anyStreamInteractedObservable=this.streamsObservable.pipe(A(function(g){a:{if(g){g=l(g);for(var k=g.next();!k.done;k=g.next())if(k=
k.value,k.isSelected||k.isInteracted){g=!0;break a}}g=!1}return g}));this.dataSourceInternal="most_recent";this.customTemplate=this.labelTablesCacheInvalid=this.multipleLayers=this.isQuery=!1;this.statsModeSummaryColumnLabel=this.timeshiftName="";this.sortFunc=kFa();this.xAxisLookup={ids:[],entities:{}};this.legendHovered=!1;this.seriesMetadataForLabelTablesCache=this.labelTablesCache=null;this.layerIdsToIgnore=[];this.lastSeriesSelectedInLegend=null;this.isLoadingSubject=new Xj(!1);this.setup({});
this.store.pipe(lk(YG),Af(this.destroyed)).subscribe(function(g){f.xAxisLookup=g});this.scopeObservable.pipe(zf(function(g){return f.store.pipe(lk(fBa(g)))}),Af(this.destroyed)).subscribe(function(g){f.labelStats=g;f.labelTablesCacheInvalid=!0});this.scopeObservable.pipe(zf(function(g){return f.formatterService.getValueStrategy(g)}),Af(this.destroyed)).subscribe(function(g){f.valueStrategy=g;f.update()})};Z(MH,BH);h=MH.prototype;h.bringLastSelectedIntoView=function(){};
h.ngOnInit=function(){var a=this;this.initialized=!0;var b=f2c.map(function(c){return a.scopeObservable.pipe(zf(function(d){return a.selectorService.getSelection(cH,Object.assign({},d,{yAxisId:c}))}),A(function(d){return d!=null?d:null}),yf(null),uf(),A(rk),te(function(d){return zl(d)}))});se.apply(null,n(b)).pipe(Af(this.destroyed)).subscribe(function(){a.update()})};
h.ngOnChanges=function(a){BH.prototype.ngOnChanges.call(this,a);"legendTemplate"in a&&this.update();"filterByColumnValue"in a&&this.update();"layerIdsToIgnore"in a&&this.update()};
h.update=function(){var a=this,b=f2c.map(function(c){return a.scopeObservable.pipe(zf(function(d){return a.selectorService.getSelection(cH,Object.assign({},d,{yAxisId:c}))}))});he(b).pipe(mf(1)).subscribe(function(c){for(var d=new Map,e=0;e<f2c.length;e++)d.set(f2c[e],c[e]);a.withLatest(function(f){var g=f.scope;f=f.state;if(g&&f&&f.timeSeries&&Object.keys(f.timeSeries.byLayer.entities).length!==0){var k=g.layerId,m=f.seriesSelection,r=f.timeSeries;f=f.resize;g=g2c(a,m);m=h2c(m);k=a.getRelevantLayers(r,
k);a.multipleLayers!==k.length>1&&(a.multipleLayers=!a.multipleLayers,a.labelTablesCacheInvalid=!0);r=new Map;for(var w=l(f2c),x=w.next();!x.done;x=w.next()){x=x.value;var D=d.get(x);if(D&&f){D=Al(D,f.margins.top,f.height-f.margins.bottom,D.unit);var H=void 0;r.set(x,(H=D)!=null?H:null)}else r.set(x,null)}f=a.buildStreams(k,g,m,d,r);a.streams=f.slice().sort(a.sortFunc);a.initialized&&a.cdRef.detectChanges()}})})};h.onScopeChange=function(){this.update()};
h.onLastInteractionChange=function(a,b){i2c(this,b)};h.onMapChange=function(){this.update()};h.onSeriesSelectionChange=function(a,b){tl(a,b.scope.layerId)&&this.update()};h.onChartSpecChange=function(a){var b,c;a=(b=a.currentValue)==null?void 0:(c=b.dataSets)==null?void 0:c[0];this.isQuery=(a==null?void 0:a.timeSeriesQuery)!==void 0||(a==null?void 0:a.prometheusQuery)!==void 0;this.labelTablesCacheInvalid=!0;this.update()};h.onTimeSeriesChange=function(){this.update()};
h.onLoadingChange=function(a){var b;a=(b=a.currentValue)==null?void 0:b.loading;this.isLoadingSubject.next(!(!a||!(Array.isArray(a)&&(a==null?0:a.length)||!Array.isArray(a)&&a)))};h.onXAxisPinChange=function(a,b){i2c(this,b);this.update()};
var i2c=function(a,b){var c,d,e,f,g=(f=(d=((c=b.state)==null?0:c.lastInteraction)?xl(b.scope,b.state.lastInteraction):null)==null?void 0:(e=d.hover)==null?void 0:e.x)!=null?f:null,k;b=(k=b.state)==null?void 0:k.xAxisPin;a.dataSource=b&&b.xPos!==null&&b.locked?"time_pin":g!==null?"hover":"most_recent"},g2c=function(a,b){var c=[];b&&Object.values(b.byLayer.entities).forEach(function(d){c=c.concat(j2c(a,d))});return c},j2c=function(a,b){if(!b)return[];if(a.legendHovered)return b.hoveredSeries.map(function(c){return c.seriesId});
switch(a.dataSource){case "time_pin":case "click":case "most_recent":case "multiselect_anchor":return[];case "hover":return b.hoveredSeries.map(function(c){return c.seriesId});default:sb(a.dataSource,"unknown data source")}},h2c=function(a){var b=[];a&&Object.values(a.byLayer.entities).forEach(function(c){b=b.concat((c==null?void 0:c.selectedSeries.map(function(d){return d.seriesId}))||[])});return b};
MH.prototype.getRelevantLayers=function(a,b){var c=this;return Object.values(a.byLayer.entities).filter(function(d){return!(!d||c.layerIdsToIgnore.includes(d.layerId)||d.valueType!==1&&d.valueType!==3||b&&d.layerId!==b)}).filter(function(d){return!Object.values(d.bySeries.entities).every(function(e){return!e||k2c(c,e)})})};
MH.prototype.getTranslationFunctions=function(){var a,b,c=Object.assign({},(b=(a=this.customTranslationFunctions)==null?void 0:a.getBoundGlobalFunctions())!=null?b:{},{credentialNameOrId:function(d){var e,f,g;return(g=d==null?void 0:(e=d.resource)==null?void 0:(f=e.labels)==null?void 0:f.credential_id)!=null?g:""},instanceNameOrId:function(d){var e,f,g;return(g=d==null?void 0:(e=d.resource)==null?void 0:(f=e.labels)==null?void 0:f.instance_id)!=null?g:""},getName:function(d){var e;return(e=d.name)!=
null?e:""},metricDisplayName:function(d){var e;return d.metricDisplayName?d.metricDisplayName():(e=d.shortMetric)!=null?e:""}});this.withLatest(function(d){var e=d.state;if(e==null?0:e.map)c.instanceNameOrId=function(f){var g,k,m;f=(m=f==null?void 0:(g=f.resource)==null?void 0:(k=g.labels)==null?void 0:k.instance_id)!=null?m:"";var r;return(r=e.map.instance[f])!=null?r:f}});return c};
MH.prototype.buildStreams=function(a,b,c,d,e){var f=this,g=new Map,k=new Map;this.customTemplate=!!this.legendTemplate;var m="",r="";a=l(a);for(var w=a.next(),x={};!w.done;x={layerUnit$jscomp$2:void 0,layer$jscomp$10:void 0,yAxisState$jscomp$4:void 0},w=a.next())if(x.layer$jscomp$10=w.value,x.layer$jscomp$10.valueType!==2&&(x.layerUnit$jscomp$2=x.layer$jscomp$10.unit,x.layerUnit$jscomp$2==="{not_a_unit}"&&(x.layerUnit$jscomp$2="1"),x.yAxisState$jscomp$4=d.get(x.layer$jscomp$10.yAxisId),x.yAxisState$jscomp$4)){w=
e.get(x.layer$jscomp$10.yAxisId);var D=void 0,H=void 0,J=void 0,O=void 0,R=void 0,V=void 0,ba=(J=this.xAxisLookup.entities[Pk((R=(D=this.scope)==null?void 0:D.chartGroupId)!=null?R:"",(V=(H=this.scope)==null?void 0:H.chartId)!=null?V:"",x.layer$jscomp$10.xAxisId)])==null?void 0:(O=J.relativeTo)==null?void 0:O.shift;D=!!ba;ba=ba?tDa(ba):"";if(m==="")m=ba;else if(ba!==""&&m!==ba)throw Error("Kc");x.layer$jscomp$10.legendTemplate&&(this.customTemplate=!0);H=Object.values(x.layer$jscomp$10.bySeries.entities);
ba=this.legendTemplate&&new Dl(this.legendTemplate)||x.layer$jscomp$10.legendTemplate&&new Dl(x.layer$jscomp$10.legendTemplate)||l2c(this,H);H=l(H);O=H.next();for(J={};!O.done;J={series$jscomp$27:void 0,seriesLegendFormatter:void 0},O=H.next())if(J.series$jscomp$27=O.value,J.series$jscomp$27&&!k2c(this,J.series$jscomp$27)){J.series$jscomp$27.statsModeSummaryValue===null||J.series$jscomp$27.statsModeSummaryValue===void 0||r||(r="All Values");J.seriesLegendFormatter=J.series$jscomp$27.legendTemplate&&
new Dl(J.series$jscomp$27.legendTemplate)||ba;var pa=b.includes(J.series$jscomp$27.seriesId),ua=c.includes(J.series$jscomp$27.seriesId),ma=J.series$jscomp$27.atTimeKey[this.timeKey];O=ma!==void 0&&ma!==null&&typeof ma.y==="number"?Wk(x.layerUnit$jscomp$2,x.yAxisState$jscomp$4.unit,ma.y):null;V=R=void 0;pa=new a2c({seriesId:J.series$jscomp$27.seriesId,color:J.series$jscomp$27.color,shape:J.series$jscomp$27.shape,drawnAs:J.series$jscomp$27.drawnAs,dataSeriesMetadata:J.series$jscomp$27.dataSeriesMetadata,
getDisplayValue:x.layer$jscomp$10.valueType===3?function(){return""}:function(Da,ja){return function(){return f.formatNumericValue(Da.series$jscomp$27,ja.layerUnit$jscomp$2,ja.layer$jscomp$10.yAxisId,ja.yAxisState$jscomp$4.min,ja.yAxisState$jscomp$4.max,ja.yAxisState$jscomp$4.unit,ja.yAxisState$jscomp$4.maximumFractionDigits,ja.layer$jscomp$10.pointConnectionMethod)}}(J,x),getDisplayValueAndSubstrings:x.layer$jscomp$10.valueType===3?void 0:function(Da,ja){return function(){return m2c(f,Da.series$jscomp$27,
ja.layerUnit$jscomp$2,ja.layer$jscomp$10.yAxisId,ja.yAxisState$jscomp$4.min,ja.yAxisState$jscomp$4.max,ja.yAxisState$jscomp$4.unit,ja.yAxisState$jscomp$4.maximumFractionDigits,ja.layer$jscomp$10.pointConnectionMethod)}}(J,x),getStatsModeSummaryValue:function(Da,ja){return function(){a:{var va=Da.series$jscomp$27.statsModeSummaryValue,ya=ja.layerUnit$jscomp$2;var Sa=ja.layer$jscomp$10.yAxisId;var ab=ja.yAxisState$jscomp$4.min,rb=ja.yAxisState$jscomp$4.max,ac=ja.yAxisState$jscomp$4.unit,pc=ja.yAxisState$jscomp$4.maximumFractionDigits;
if(va!==void 0&&va!==null&&(ya==="{not_a_unit}"&&(ya="1"),va=Wk(ya,ac,va),va!==null)){pc={maximumFractionDigits:pc};ab=ab!==null&&rb!==null&&ac!==null?{domain:{min:ab,max:rb,unit:ac},yAxisPosition:Sa}:void 0;var kc,vc,tb;Sa=((tb=(vc=f.valueFormatter)!=null?vc:(kc=f.valueStrategy)==null?void 0:kc.format)!=null?tb:Yk)(va,ac,pc,ab);break a}Sa="-"}return Sa}}(J,x),isInteracted:pa,isSelected:ua,hideValue:x.layer$jscomp$10.valueType===3,getColumnIds:function(){return[]},getLabels:function(){return[]},getName:function(Da){return function(){var ja=
oEa(Da.series$jscomp$27.dataSeriesMetadata),va;return ja&&((va=Da.seriesLegendFormatter)==null?void 0:va.format(ja,f.getTranslationFunctions()))||Da.series$jscomp$27.name}}(J),rawValue:(V=(R=ma)==null?void 0:R.y)!=null?V:void 0,unit:x.layerUnit$jscomp$2,pxValue:typeof O==="number"&&w?w(O):void 0,setHovered:function(Da,ja){return function(va){va=va?[{seriesId:Da.series$jscomp$27.seriesId}]:[];var ya,Sa;f.store.dispatch(GH({chartId:(Sa=(ya=f.scope)==null?void 0:ya.chartId)!=null?Sa:"",layerId:ja.layer$jscomp$10.layerId,
series:va}))}}(J,x),setSelected:function(Da,ja){return function(va){if(va){f.lastSeriesSelectedInLegend=Da.series$jscomp$27.seriesId;var ya,Sa;f.store.dispatch(L1c({chartId:(Sa=(ya=f.scope)==null?void 0:ya.chartId)!=null?Sa:"",layerId:ja.layer$jscomp$10.layerId,series:{seriesId:Da.series$jscomp$27.seriesId}}))}else{var ab,rb;f.store.dispatch(M1c({chartId:(rb=(ab=f.scope)==null?void 0:ab.chartId)!=null?rb:"",layerId:ja.layer$jscomp$10.layerId,series:{seriesId:Da.series$jscomp$27.seriesId}}))}}}(J,
x)});D?k.set(J.series$jscomp$27.seriesId,pa):g.set(J.series$jscomp$27.seriesId,pa)}}this.timeshiftName=m;this.statsModeSummaryColumnLabel=r;b=l(g);for(c=b.next();!c.done;c=b.next())if(d=l(c.value),c=d.next().value,d=d.next().value,e=k.get(c))d.timeshiftValue=e.displayValue,k.delete(c);return Array.from(g.values()).concat(Array.from(k.values()))};
var k2c=function(a,b){if(a.hideThresholds&&b.drawnAs===6)return!0;if(!a.filterByColumnValue||!a.filterByColumnValue.column)return!1;var c;return((c=b.dataSeriesMetadata)==null?0:c.metadata)?b.dataSeriesMetadata.metadata[a.filterByColumnValue.column]!==a.filterByColumnValue.value:!0};MH.prototype.formatNumericValue=function(a,b,c,d,e,f,g,k){return m2c(this,a,b,c,d,e,f,g,k).displayValue};
var m2c=function(a,b,c,d,e,f,g,k,m){b=b.atTimeKey[a.timeKey];if(b!==void 0&&b!==null){c==="{not_a_unit}"&&(c="1");c=Wk(c,g,b.y)||0;m={maximumFractionDigits:k,rawValue:b.y};d=e!==null&&f!==null&&g!==null?{domain:{min:e,max:f,unit:g},yAxisPosition:d}:void 0;if(a.valueFormatter)return{displayValue:a.valueFormatter(c,g,m),displayValueSubstrings:void 0};if(a.valueStrategy)return a.valueStrategy.formatSubstrings?(a=a.valueStrategy.formatSubstrings(c,g,m,d),{displayValue:aCa(a)+a.unitSuffix,displayValueSubstrings:a}):
{displayValue:a.valueStrategy.format(c,g,m,d),displayValueSubstrings:void 0};a=$Ba(c,g,{maximumFractionDigits:k,rawValue:b.y});return{displayValue:aCa(a)+a.unitSuffix,displayValueSubstrings:a}}switch(m){case "gap_detection":return{displayValue:"-",displayValueSubstrings:void 0};case "zero_fill":return{displayValue:"0",displayValueSubstrings:void 0};default:return{displayValue:"",displayValueSubstrings:void 0}}},n2c=function(a,b,c){c=c===void 0?!1:c;if(!a.labelTablesCacheInvalid&&a.labelTablesCache&&
a.seriesMetadataForLabelTablesCache&&a.seriesMetadataForLabelTablesCache.length===b.length){for(var d=!0,e=0;e<a.seriesMetadataForLabelTablesCache.length;e++)if(a.seriesMetadataForLabelTablesCache[e]!==b[e]){d=!1;break}if(d)return a.labelTablesCache}c=a.customTemplate?iEa():a.isQuery?kEa(b):lEa(b,a.multipleLayers&&c);if(a.showAllColumnsByDefault&&c)for(d=l(c),e=d.next();!e.done;e=d.next()){e=l(e.value);for(var f=e.next();!f.done;f=e.next())f=f.value,a.filterByColumnValue&&a.filterByColumnValue.column===
f.title||(f.isDefault=!0)}if(c&&a.multipleLayers&&a.labelStats){d=a.labelStats;e="";d.metric>1&&(e=d.metric>d.shortMetric?e+'${metric.type}" "':e+'${metricDisplayName()}" "');d.aligner>1&&(e+='${requestParams.aggregation\\.perSeriesAligner}" "');d.primaryReducer>1&&(e+='${requestParams.aggregation\\.crossSeriesReducer}" "');d.secondaryReducer>1&&(e+='${requestParams.secondaryAggregation\\.crossSeriesReducer}" "');if(d.filter){f=l(Object.keys(d.filter));for(var g=f.next();!g.done;g=f.next()){g=d.filter[g.value];
for(var k=g.count,m=l(Object.keys(g.entries)),r=m.next();!r.done;r=m.next()){r=r.value;var w=g.entries[r];if(w.count!==k||w.set.size!==1)e+="${requestParams.filterTokens."+r+".key}${requestParams.filterTokens."+r+".op}${requestParams.filterTokens."+r+'.value}" "'}}}if(d=e?{isDefault:!0,title:"Metric",template:e,tokenizer:new Dl(e)}:null)for(e=l(c),f=e.next();!f.done;f=e.next())f.value.unshift(d)}a.labelTablesCache=c;a.labelTablesCacheInvalid=!1;a.seriesMetadataForLabelTablesCache=b;return c},l2c=
function(a,b){var c=b.map(function(g){var k;return(k=g.dataSeriesMetadata)!=null?k:null});b=n2c(a,c!=null?c:[],b.length>1);if(!b)return null;c=nEa(c);a="";b=l(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value){d=l(d);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.isDefault&&c.get(e.title)!==!1){var f=void 0;a+=((f=e.template)!=null?f:"")+'" "'}}return a?new Dl(a):null};
MH.prototype.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({changes:a,context:b,scope:e,componentHandlerUsingContext:c,mergeKey:d})};MH.prototype.hover=function(a){this.legendHovered=!0;var b;(b=a.setHovered)==null||b.call(a,!0)};var qFa=function(a,b){a.legendHovered=!1;var c;(c=b.setHovered)==null||c.call(b,!1)};
da.Object.defineProperties(MH.prototype,{streams:{configurable:!0,enumerable:!0,get:function(){return this.streamsInternal},set:function(a){this.streamsInternal=a;this.streamsSubject.next(a)}},dataSource:{configurable:!0,enumerable:!0,set:function(a){a!==this.dataSourceInternal&&(this.dataSourceInternal=a,this.update())},get:function(){return this.dataSourceInternal}},timeKey:{configurable:!0,enumerable:!0,get:function(){switch(this.dataSource){case "time_pin":return 0;case "click":return 2;case "hover":return 1;
case "most_recent":return 3;case "multiselect_anchor":return 4;default:sb(this.dataSource,"unknown data source")}}}});MH.\u0275fac=function(a){return new (a||MH)(Ve(LG),Ve(Yx),Ve(Gd),Ve(yH),Ve(KG))};
MH.\u0275dir=af({type:MH,inputs:{hideThresholds:"hideThresholds",valueName:"valueName",valueFormatter:"valueFormatter",filterByColumnValue:"filterByColumnValue",showAllColumnsByDefault:"showAllColumnsByDefault",customTranslationFunctions:"customTranslationFunctions",legendTemplate:"legendTemplate",layerIdsToIgnore:"layerIdsToIgnore"},features:[Ff,Gx]});var o2c=["condensedList"],sFa=function(a){return{scrollable:a}},tFa=function(){return[]},p2c=0,NH=function(){this.el=q(Gd)};NH.prototype.focus=function(){this.el.nativeElement.focus()};NH.\u0275fac=function(a){return new (a||NH)};NH.\u0275dir=af({type:NH,selectors:[["","focusableLegendItem",""]]});
var OH=function(a,b,c,d,e){MH.call(this,a,b,c,d,e);var f=this;this.cdRef=b;this.elementRef=c;this.ve={ChartLegendPane:68535};this.valueLabel="Value: ";this.describedById="ac-inline-legend-"+p2c++ +"-describedby";this.inlineLegendLabel="Legend for nearby chart";this.condensed=!1;this.condensedLayout=Qg.apply(null,["row"].concat(n([])));this.useColumnDisplay=ah.apply(null,[function(){return f.condensedLayout().toLowerCase()==="column"}].concat(n([])));this.hideAllValues=this.enableSelection=this.enableScrolling=
!1;this.maxSeriesSubject=new Xj(30);this.hideSingleSeriesLegends=this.sortByValue=!1;this.legendItems=Woa.apply(null,[NH].concat(n([])));this.focusKeyManager=new Rz(this.legendItems,q(xe));this.legendClick=new ui;this.narrowSubject=new Xj(!1);this.isLoadingObservable=this.isLoadingSubject.pipe(of());this.condensedStreamsObservable=he([this.streamsObservable,this.maxSeriesSubject]).pipe(A(function(g){var k=l(g);g=k.next().value;k=k.next().value;return g?k?g.slice(0,k):g:[]}));this.additionalStreamsObservable=
he([this.streamsObservable,this.maxSeriesSubject]).pipe(A(function(g){var k=l(g);g=k.next().value;k=k.next().value;return g===null?0:g.length-k}));this.hideSingleSeriesLegendsObservable=this.condensedStreamsObservable.pipe(A(function(g){if(f.hideSingleSeriesLegends&&g!==void 0){var k=0;g=l(g);for(var m=g.next();!m.done;m=g.next())m.value.seriesId.startsWith("ac-threshold-line")||k++;k=k<2}else k=!1;return k}));df(function(){f.legendItems();(!f.focusKeyManager.activeItemIndex||f.focusKeyManager.activeItemIndex<
0)&&Pz(f.focusKeyManager,0)})};Z(OH,MH);OH.\u0275dir=MH.\u0275dir;h=OH.prototype;h.ngAfterViewInit=function(){var a=this;this.condensedList&&(this.listResizeObserver=new ResizeObserver(function(b){var c,d;b=(d=(c=b[0])==null?void 0:c.contentRect.width)!=null?d:Infinity;a.narrowSubject.next(b<200)}),this.listResizeObserver.observe(this.condensedList.nativeElement))};
h.ngOnChanges=function(a){MH.prototype.ngOnChanges.call(this,a);"sortByValue"in a?(this.sortFunc=this.sortByValue?mFa(-1):kFa(),this.update()):"sortByMethod"in a&&this.sortByMethod!==void 0&&(this.sortFunc=this.sortByMethod,this.update())};h.toggleSelection=function(a){this.legendClick.emit({legendName:a.name});if(this.enableSelection){var b=!a.isSelected;a.isSelected=b;var c;(c=a.setSelected)==null||c.call(a,b);this.cdRef.markForCheck()}};h.trackByStreamId=function(a){return a.seriesId};
h.showMore=function(){};var xFa=function(a,b,c){return!(!a.enableSelection||!c||b.isSelected||b.isInteracted)};OH.prototype.ngOnDestroy=function(){MH.prototype.ngOnDestroy.call(this);var a;(a=this.listResizeObserver)==null||a.disconnect()};
da.Object.defineProperties(OH.prototype,{inlineLegendDescribedBy:{configurable:!0,enumerable:!0,get:function(){return this.condensed?"Name and value for each data series. Values listed are usually the most recent values for the data series. When using keyboard navigation on the chart, values listed are the values as of the focused time. Up and down arrow keys to navigate entries.":"Name and value for each data series. Values listed are usually the most recent values for the data series. When using keyboard navigation on the chart, values listed are the values as of the focused time."}},
maxSeries:{configurable:!0,enumerable:!0,set:function(a){this.maxSeriesSubject.next(a)}},chartTitle:{configurable:!0,enumerable:!0,set:function(a){this.inlineLegendLabel='Legend for chart, "'+a+'"'}}});OH.\u0275fac=function(a){return new (a||OH)(Ve(LG),Ve(Yx),Ve(Gd),Ve(yH),Ve(KG))};
OH.\u0275cmp=C({type:OH,selectors:[["ac-inline-legend"],["cola-inline-legend"]],viewQuery:function(a,b){a&1&&(rg(b.legendItems,NH),kg(o2c,5,Gd));if(a&2){sg();var c;og(c=pg())&&(b.condensedList=c.first)}},inputs:{condensed:"condensed",condensedLayout:[1,"condensedLayout"],enableScrolling:"enableScrolling",enableSelection:"enableSelection",hideAllValues:"hideAllValues",maxSeries:"maxSeries",sortByValue:"sortByValue",sortByMethod:"sortByMethod",hideSingleSeriesLegends:"hideSingleSeriesLegends",chartTitle:"chartTitle"},
outputs:{legendClick:"legendClick"},features:[Ff,Gx],decls:5,vars:4,consts:[["condensedFormat",""],["condensedList",""],["class","ac-inline-legend","role","list",3,"ve","ngClass",4,"ngIf","ngIfElse"],[1,"ac-screen-reader-only-content"],["role","list",1,"ac-inline-legend",3,"ve","ngClass"],["class","ac-inline-legend-items","role","listitem",4,"ngFor","ngForOf"],["role","listitem",1,"ac-inline-legend-items"],[1,"ac-inline-legend-item",3,"mouseenter","mouseleave","click"],[1,"ac-legend-label"],[3,"color",
"drawnAs","shape"],[4,"ngIf"],["class","ac-legend-value",4,"ngIf"],[1,"ac-legend-value"],[1,"ac-inline-legend","condensed",3,"keydown","ve"],["class","empty-placeholder",4,"ngIf"],["class","ac-inline-legend-items",4,"ngFor","ngForOf","ngForTrackBy"],["class","n-more",4,"ngIf"],[1,"empty-placeholder"],[1,"ac-inline-legend-items"],["focusableLegendItem","","type","button",1,"ac-inline-legend-item","ac-a11y-focusable",3,"mouseenter","focusin","mouseleave","focusout","click","matTooltip","matTooltipPosition",
"matTooltipShowDelay","matTooltipClass"],[3,"color","drawnAs","shape","condensed","hollow"],[1,"ac-legend-label-visible"],["aria-hidden","true",1,"ac-legend-label-ruler"],[1,"n-more"]],template:function(a,b){a&1&&(E(0,uFa,3,10,"div",2)(1,AFa,14,34,"ng-template",null,0,Og),K(3,"p",3),S(4),L());a&2&&(a=Q(2),I("ngIf",!b.condensed)("ngIfElse",a),B(3),Jf("id",b.describedById),B(),Ag(b.inlineLegendDescribedBy))},dependencies:[HH,NH,MA,hy,iy,jy,GE,py],styles:['.ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px,1px,1px,1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus,#3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}[_nghost-%COMP%]{max-height:inherit}.scrollable[_ngcontent-%COMP%]{overflow-y:auto}button[_ngcontent-%COMP%]{border:none;background:none}.ac-inline-legend[_ngcontent-%COMP%]{display:inline-block;max-height:inherit}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]{display:inline-block}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]   .ac-inline-legend-item[_ngcontent-%COMP%]{-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;display:inline-block;height:var(--ac-sys-spacing-legend-basis,12px);margin-right:6px;padding:4px 6px}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]   .ac-inline-legend-item[_ngcontent-%COMP%]   ac-key[_ngcontent-%COMP%]{display:inline-block;margin-right:6px}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]   .ac-inline-legend-item[_ngcontent-%COMP%]   .ac-legend-value[_ngcontent-%COMP%]{margin:0 5px;min-width:5em;text-overflow:ellipsis;white-space:nowrap}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]   .ac-inline-legend-item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:inline-block;height:var(--ac-sys-spacing-legend-basis,12px)}.ac-inline-legend[_ngcontent-%COMP%]   .ac-inline-legend-items[_ngcontent-%COMP%]   .ac-inline-legend-item.selected[_ngcontent-%COMP%]{font-weight:700}.ac-inline-legend.condensed[_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-flow:row wrap;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;font-family:var(--ac-sys-type-family-legend,Roboto,"Helvetica Neue",sans-serif);font-size:var(--ac-sys-spacing-legend-basis,12px);padding:0 0 0 calc(10px - var(--ac-sys-spacing-legend-basis, 12px)/3*2/2);margin:0;min-height:calc(var(--ac-sys-spacing-legend-basis, 12px)*2);line-height:calc(var(--ac-sys-spacing-legend-basis, 12px)*2)}.ac-inline-legend.condensed.column-display[_ngcontent-%COMP%]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-flow:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-flow:column;flex-flow:column}.ac-inline-legend.condensed.narrow[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]{max-width:100%}.ac-inline-legend.condensed.hidden-trivial-legend[_ngcontent-%COMP%]{display:none}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.empty-placeholder[_ngcontent-%COMP%], .ac-inline-legend.condensed[_ngcontent-%COMP%]   li.n-more[_ngcontent-%COMP%]{font-style:italic;list-style-type:none;padding:0 calc(var(--ac-sys-spacing-legend-basis, 12px)/3*2/2)}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_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;max-width:100%}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:0 calc(var(--ac-sys-spacing-legend-basis, 12px)/3*2/2);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;margin:0;max-width:100%;-moz-box-sizing:border-box;box-sizing:border-box;height:unset}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item.selected[_ngcontent-%COMP%]{font-weight:500}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item[_ngcontent-%COMP%]   ac-key[_ngcontent-%COMP%]{display:block;margin:calc((2*var(--ac-sys-spacing-legend-basis, 12px) - var(--ac-sys-spacing-legend-basis, 12px))/2) 3px calc((2*var(--ac-sys-spacing-legend-basis, 12px) - var(--ac-sys-spacing-legend-basis, 12px))/2) 0}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item[_ngcontent-%COMP%]   .ac-legend-label[_ngcontent-%COMP%]{font-family:var(--ac-sys-type-family-legend,Roboto,"Helvetica Neue",sans-serif);font-size:var(--ac-sys-spacing-legend-basis,12px);display:block;height:calc(var(--ac-sys-spacing-legend-basis, 12px)*2);position:relative;text-align:left;overflow:hidden;line-height:calc(var(--ac-sys-spacing-legend-basis, 12px)*2)}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item[_ngcontent-%COMP%]   .ac-legend-label[_ngcontent-%COMP%]   .ac-legend-label-visible[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--ac-sys-color-chart-legend-label,#000)}.ac-inline-legend.condensed[_ngcontent-%COMP%]   li.ac-inline-legend-items[_ngcontent-%COMP%]   button.ac-inline-legend-item[_ngcontent-%COMP%]   .ac-legend-label[_ngcontent-%COMP%]   .ac-legend-label-ruler[_ngcontent-%COMP%]{top:0;left:0;height:0;overflow:hidden;font-weight:500}  .mat-mdc-tooltip.ac-inline-legend-hover-tooltip{margin:0;font-family:var(--ac-sys-type-family-legend,Roboto,"Helvetica Neue",sans-serif);font-size:var(--ac-sys-spacing-legend-basis,12px);color:var(--ac-sys-color-extensions-on-surface,#202124);background:var(--ac-sys-color-extensions-neutral-container,#f1f3f4)}\n/*# sourceMappingURL=ac_inline_legend_style.css.map */'],
changeDetection:0});var PH=function(){this.registry=new Map};PH.prototype.register=function(a,b){this.registry.set(a,b)};PH.prototype.unregister=function(a,b){var c=this.registry.get(a);b===c&&this.registry.delete(a)};PH.prototype.focus=function(a,b){(a=this.registry.get(a))&&a.focus(function(){b.focus()})};PH.\u0275fac=function(a){return new (a||PH)};PH.\u0275prov=Cc({token:PH,factory:PH.\u0275fac,providedIn:"root"});var q2c=function(a){var b=this;this.isFrozen=a;this.strategy=function(c,d,e,f,g){b.isFrozen()||(b.lastPosition=BFa(c,d,e,f,g));return b.lastPosition}};var r2c=["*"],s2c=["closeButton"],t2c=function(){return".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}.ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px, 1px, 1px, 1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus, #3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}div.ac-hover-container[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;border:1px solid var(--ac-sys-color-extensions-hairline, #dadce0);padding:12px;min-width:200px}div.ac-hover-bg[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%;opacity:.9;background-color:var(--ac-sys-color-extensions-surface, #fff);z-index:-1}button.close-button[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);position:absolute;right:6px;top:0px;height:24px;width:24px;line-height:24px;padding:0;z-index:10}button.close-button-small[_ngcontent-%COMP%]{right:0px;transform:scale(0.5)}.close-icon-small[_ngcontent-%COMP%]{transform:scale(1.5)}  .close-tooltip{display:flex;flex-direction:row-reverse;color:var(--ac-sys-color-extensions-on-surface-inverse, #fff);background:var(--ac-sys-color-extensions-surface-inverse, #757575);border-radius:4px;margin:8px;word-wrap:break-word;outline:solid 1px rgba(0,0,0,0);max-width:320px;padding:2px 4px}.pinnable-cursor[_nghost-%COMP%]{cursor:pointer}.pinPromptBanner[_ngcontent-%COMP%]{padding:4px;margin:12px -12px -12px;text-align:left;height:26px;font-size:12px;font-style:italic;border-top:1px solid var(--ac-sys-color-extensions-hairline, #dadce0);background-color:var(--ac-sys-color-extensions-neutral-container, #f1f3f4);color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);width:auto}.pin-button[_ngcontent-%COMP%]{margin-left:12px;margin-right:4px;color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);height:18px;width:18px;vertical-align:middle}mat-divider[_ngcontent-%COMP%]{margin:12px -12px 0}.ac-hovercard-action-button[_ngcontent-%COMP%]{margin-bottom:0;margin-left:0}/*# sourceMappingURL=ac_hovercard.css.map */"},
QH=function(){this.initialized=!1;this.ariaLabel=Qg.apply(null,[null].concat(n([])));this.refocusAfterViewChecked=this.isPinned=this.grabFocusAndUseAsModal=!1};QH.prototype.ngOnInit=function(){this.initialized=!0};QH.prototype.ngOnChanges=function(a){this.initialized&&"grabFocusAndUseAsModal"in a&&this.grabFocusAndUseAsModal&&(this.refocusAfterViewChecked=!0)};
QH.prototype.ngAfterViewChecked=function(){if(this.refocusAfterViewChecked){var a;if((a=this.cdkTrapFocus)==null?0:qz(a.focusTrap))this.refocusAfterViewChecked=!1}};QH.\u0275fac=function(a){return new (a||QH)};
QH.\u0275cmp=C({type:QH,selectors:[["ac-hovercard-dialog"]],viewQuery:function(a,b){a&1&&kg(uz,5);if(a&2){var c;og(c=pg())&&(b.cdkTrapFocus=c.first)}},inputs:{ariaLabel:[1,"ariaLabel"],grabFocusAndUseAsModal:"grabFocusAndUseAsModal",isPinned:"isPinned"},features:[Gx],ngContentSelectors:r2c,decls:3,vars:6,consts:[[1,"ac-hover-container",3,"cdkTrapFocus"],[1,"ac-hover-bg"]],template:function(a,b){a&1&&(fg(),K(0,"div",0),M(1,"div",1),gg(2),L());a&2&&(yg("ac-hover-container-pinned",b.isPinned),I("cdkTrapFocus",
!0),Jf("aria-modal",b.grabFocusAndUseAsModal?!0:void 0)("role",b.grabFocusAndUseAsModal?"dialog":"tooltip")("aria-label",b.ariaLabel()))},dependencies:[uz],styles:[t2c()],changeDetection:0});
var RH=function(a,b,c,d,e,f,g,k,m,r){CH.call(this,a,b,c,d,e,f,r);this.cdr=g;this.interactionService=k;this.modalService=m;this.ngZone=r;this.positionStrategy=BFa;this.pinningEnabled$=new Xj(!1);this.ariaLabel=Qg.apply(null,[null].concat(n([])));this.chartQuickActionsEnabled=this.pinIfVisible=!1;this.closeOnDeselect$=new Xj(!1);this.hideHovercard=this.hasSeriesActionType=this.hidePinPrompt=!1;this.isPinnedOutput$=new ui;this.showPointerCursor=this.pinningEnabled$.value;this.onClose=function(){};this.closeAriaLabel=
"Return to chart";this.grabFocusAndUseAsModalSubject=new Xj(!1);this.grabFocusAndUseAsModalObservable=this.grabFocusAndUseAsModalSubject.pipe(Ik(this.ngZone))};Z(RH,CH);RH.\u0275dir=CH.\u0275dir;
RH.prototype.ngOnInit=function(){var a=this;CH.prototype.ngOnInit.call(this);this.pinningEnabled$.pipe(Af(this.destroyed)).subscribe(function(b){a.positionStrategy=b?(new q2c(function(){return a.isPinned$.value})).strategy:BFa;a.showPointerCursor=b;a.cdr.detectChanges()});this.overlayRef.outsidePointerEvents().pipe(Af(this.destroyed)).subscribe(function(b){a.isPinned$.value&&a.closeOnDeselect$.value&&!(a.chartQuickActionsEnabled?(wl?b.metaKey:b.ctrlKey)||b.shiftKey:b.ctrlKey)&&(b.stopPropagation(),
CFa(a))})};RH.prototype.ngAfterViewInit=function(){var a=this;CH.prototype.ngAfterViewInit.call(this);this.chart.afterMouseClickObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onMouseClick(b)});this.isPinned$.pipe(Af(this.destroyed)).subscribe(function(b){a.isPinnedOutput$.emit(b)})};
var u2c=function(a,b){var c=b.xAxis;b=b.resize;return c&&b?(c=hl(c,b.margins.left,b.width-b.margins.right))?c(a.x.valueOf()):null:null},v2c=function(a,b,c){var d=b.yAxis;b=b.resize;return d&&b?(c=Al(d,b.margins.top,b.height-b.margins.bottom,c))?c(a.y):null:null},w2c=function(a){if(!a)return null;var b,c,d,e=(d=Object.values((c=(b=a.seriesSelection)==null?void 0:b.byLayer.entities)!=null?c:{}).find(function(m){var r;return((r=m==null?void 0:m.selectedSeries)!=null?r:[]).length>0}))==null?void 0:d.selectedSeries[0].seriesId;
if(!e)return null;var f,g;b=Object.values((g=(f=a.timeSeries)==null?void 0:f.byLayer.entities)!=null?g:{});f=null;g=l(b);for(b=g.next();!b.done;b=g.next())if((c=b.value)&&c.valueType===1){var k=d=void 0;b=(d=c)==null?void 0:(k=d.bySeries.entities[e])==null?void 0:k.atTimeKey[2];k=d=void 0;c=(k=(d=c)==null?void 0:d.unit)!=null?k:null;if(b){e=u2c(b,a);a=v2c(b,a,c);e!==null&&a!==null&&(f={x:e,y:a});break}}return f};
RH.prototype.onMouseClick=function(a){var b=this;this.withLatest(function(c){c=c.state;var d,e,f=Object.values((e=c==null?void 0:(d=c.seriesSelection)==null?void 0:d.byLayer.entities)!=null?e:{});d=f.some(function(g){var k;return((k=g==null?void 0:g.selectedSeries)!=null?k:[]).length>0});e=f.some(function(g){var k;return((k=g==null?void 0:g.selectedSeries)!=null?k:[]).length===1});if(b.pinningEnabled$.value&&(!(b.chartQuickActionsEnabled?(wl?a.metaKey:a.ctrlKey)||a.shiftKey:a.ctrlKey)||e)&&(!b.chartQuickActionsEnabled||
d)){if(e=b.pinIfVisible?!!b.overlayRef.hostElement.querySelector(".ac-hover-container")&&!b.isPinned$.value:!b.isPinned$.value)b.chartQuickActionsEnabled?(c=w2c(c),b.reposition(a,2,0,c!=null?c:void 0)):b.reposition(a,2);b.isPinned$.next(e);El(b.interactionService,"click",e?Fl.ve.HovercardPinToggle:Fl.ve.HovercardUnpinToggle,b.el.nativeElement)}b.chartQuickActionsEnabled&&b.isPinned$.value&&!d&&CFa(b)})};
RH.prototype.focus=function(a){this.pinningEnabled$.value&&this.isPinned$.next(!0);this.onClose=a;this.grabFocusAndUseAsModalSubject.next(!0);var b;(b=this.closeButton)==null||b.focus()};RH.prototype.onFocusIn=function(a){this.onFocus(a)};var CFa=function(a){a.isPinned$.next(!1);a.onClose();a.detachHovercard();a.grabFocusAndUseAsModalSubject.next(!1)};RH.prototype.onDetach=function(){this.modalService.unregister(0,this);this.grabFocusAndUseAsModalSubject.next(!1)};
RH.prototype.onAttach=function(){this.modalService.register(0,this);El(this.interactionService,"hover",Fl.ve.HovercardZone,this.el.nativeElement)};da.Object.defineProperties(RH.prototype,{pinningEnabled:{configurable:!0,enumerable:!0,set:function(a){this.pinningEnabled$.next(a)}},closeOnDeselect:{configurable:!0,enumerable:!0,set:function(a){this.closeOnDeselect$.next(a)}}});RH.\u0275fac=function(a){return new (a||RH)(Ve(Gd),Ve(xG),Ve(LG),Ve(yH),Ve(rA),Ve(ig),Ve(Yx),Ve(Fl),Ve(PH),Ve(Tg))};
RH.\u0275cmp=C({type:RH,selectors:[["ac-hovercard"]],viewQuery:function(a,b){a&1&&(kg(uz,5),kg(s2c,5));if(a&2){var c;og(c=pg())&&(b.cdkTrapFocus=c.first);og(c=pg())&&(b.closeButton=c.first)}},hostAttrs:[1,"composable-layer","ac-hovercard"],hostVars:2,hostBindings:function(a,b){a&2&&yg("pinnable-cursor",b.showPointerCursor)},inputs:{ariaLabel:[1,"ariaLabel"],pinningEnabled:"pinningEnabled",pinIfVisible:"pinIfVisible",chartQuickActionsEnabled:"chartQuickActionsEnabled",closeOnDeselect:"closeOnDeselect",
hidePinPrompt:"hidePinPrompt",hasSeriesActionType:"hasSeriesActionType",hideHovercard:"hideHovercard"},outputs:{isPinnedOutput$:"isPinnedOutput$"},features:[Ig([{provide:eH,useExisting:RH},{provide:CH,useExisting:RH}]),Ff],ngContentSelectors:r2c,decls:2,vars:0,consts:function(){return[["hoverContent",""],["closeButton",""],["pinPrompt",""]," Select resources to view details. "," Click \ufffd#3\ufffdon chart\ufffd/#3\ufffd to pin card. ",[3,"grabFocusAndUseAsModal","isPinned","ariaLabel","focusin",
4,"ngIf"],[3,"focusin","grabFocusAndUseAsModal","isPinned","ariaLabel"],["mat-icon-button","","class","close-button ac-a11y-focusable",3,"close-button-small","matTooltip","matTooltipClass","click","focus",4,"ngIf"],["class","pinPromptBanner",4,"ngIf"],["mat-icon-button","",1,"close-button","ac-a11y-focusable",3,"click","focus","matTooltip","matTooltipClass"],["svgIcon","ac:close"],[1,"pinPromptBanner"],[4,"ngIf","ngIfElse"],["svgIcon","ac:time_pin_set",1,"pin-button"],[4,"ngIf"],["svgIcon","ac:pin_outline",
1,"pin-button"]]},template:function(a){a&1&&(fg(),E(0,JFa,2,3,"ng-template",null,0,Og))},dependencies:[QH,iz,VA,MA,jy,py],styles:[t2c()],changeDetection:0});var SH=gk("[AC] Set the value for multiple time series in a chart",hk()),TH=gk("[AC] Set the metadata for multiple time series in a chart",hk()),UH=gk("[AC] Sets the time series metadata for a layer",hk());var x2c,z2c=function(){x2c||(x2c=Uint8Array.from(atob(y2c),function(a){return a.charCodeAt(0)}).buffer);return x2c.slice(0)},y2c="UklGRpYGAABXQVZFZm10IBAAAAABAAEAgLsAAAB3AQACABAAZGF0YXIGAAAVABMCiwc3CUwKDPwt+nv/3pyOIa0hAoD8J+pEGwikGsU+jW+hJvM1iURL0gW7VeYNlTmB2axy1mK8ov0+UqB5+lv/f2d1JVmPFkUATsFoll+bbYUBgKvq67zF/4RSlVc1ZgBw43NEOFEPlQgfy+WoHpbNmQ+hz8X749sOoiA3VatuWmWQPAFQbRDW8PHcX7e4nKOi/7kI1y7QEg+zNstAF1EOUsFDITvYFozxXtRlyTar9rQCyzLFjt2QIvYmTSwhRoVOujizKdUS0vhe1cjT1MPysXnFVuq36iUEYRygOfg4jToXMSElmAiR+9Hmo9G4wmPOl9ZF4KntvwnXGLosrDCMLPUt7xolDSX51Oab2pjQBdj43NLd6PaZDEAVaRtILrImohwFHuYMiPbg5dDm1tz012fek/PN81kCThGcIL8eqyASGSga+QAS+WX1S+l82RXlVuxI6uz1EQ+1Ba0Xdh8SGRcTkA8oCib9tuoQ8bzneOm+5zHzOf7kAdkLRRABF7wXixAyC+ICnQED77jzJO+M527vNvcM/v0BawajEUoOKxQvECQHzwG+/1n4cvGO7yrzEfD/+Av9HAXjAt8LPhBXDg8J6gjYAl78kfm59gP1zvDd9ZP8+fvp/msIzgpLC6YGRwtDCPH/Cfzi/Ur4v/Or9Zz78/eD/ncDVgMrBhkJKgnaB3YDfgJu/Wj7Qvle+vD29/k3/EX9UQOVA/sDogcAB0cGbwNAAUv+t/ux/H36Tvj0+439nP3+/28GCgOEAvQGJAbiATYAlf6q/+v52Pqc/Kr9bvt9/wMABgXuAGwFtgNOAsMD7AAR/in+2v18+4z84vys/rv/AgCSAI8E2APUAHYCxgPcAEj9uP4t/4H7Ev6R/tj9q/5/AX8BkgAmBMACHQHDANYAGQF4/jH7NwAr/aL/Wf6Q/TsCiQFqAIYCVwFSAlEAfAAIALb+Nf45/2f9qP5YAIT/6f6uAQUBgwJJAPMANAGTAHD/JwDf/SH+sP/s/tb/ZP9u/4QBIwHUAPMAKAGDAJgAYf7+AI3+zv66/8H+r/4mAe7/BQCjAMEBFQDFAFwAuQAa/2oAHf80/4z+ewAM/7f/iAChAFIAJgCTAHgB4//g/x0AYv/i/27/Nf+c/4D/BQBGALwAq/+KAJsAxgDU/73/AwEG/2X/bwDZ/mr/IQBLACAA1f8kAH0AwwDs/8EArP9x/4IAXP/a//X/BP9dAOv/kf/OADUAzP/PAHn/MAF8/7L/nQDg/jYAFQA//+T/UgAOALD/jgAxAOL/RQCuAIv/+f/k/9//Yf+lAKX/f/87AMb/RQA8AB0AUwDP/zsA9//1/zIAof/1/9z/wv8dAM//UgDX/ysAGgD2/4cAsf/x/2wAdf/y//7//v8/AE//6/+GAMn/SwDe/zcALgCc/0QALgCW/xoAKQCI/9X/QgDy/+f/JwAkAOn/IQD9/xsABQAOAP3/uf8PADYAg/8hAAoA6v8SADQA5P/l/00A6v8iAM7/NwDU//j/BADV/8P/ZwDr/+7/FADx/xkAFADt/xMADQD3//X/2v8eAOT/1f9CAP3/AAD6/9z/PQAxAMD/9v8qANj/QADI/9z/EwDf/zoAyf82APL/1P8nACQAxv81AAAAxf8iAPD/+f/c/yUANwCL/2sAxP8oACAAq/9nANL/7f81ALb/QwDZ/9f/LgD8/wsA8v/+/xQA+P/i/04A1v/q/zUA2//a/z8A4f8RAPn/7v8JABEA8f8NAPz/BAD+/wIA+/8CAPz////+//////8DAP7/BAAAAAIAAQACAP7/AwD8/wEA/f////////8AAAIA/f8FAP3/BQD//wEAAAAAAP//////////AAD//wAA//8CAAAAAgD//wMA/v8CAP////8BAP7/AAD//wAA//8CAP//AgD+/wMA/v8DAP//AAD/////AQD+/wIA/f8BAAEA/v8EAPv/BwD6/wUA/f8BAAEA/f8CAP7/AQD//wEA/f8FAPv/BQD8/wMA//8AAAEA/v8BAAAA//8BAP//AAAAAAEA//8BAAAAAAAAAAEA/v8CAP//AAD//wIA/v8BAP//AQD//wIA/////wMA/f8CAAAA/v8DAP7/AAABAP//AQD//wEA//8BAAAA//8BAAAAAAAAAP//AgD9/wQA+/8FAPz/AwD+/wEAAAD//wEAAAAAAP//AQA=",
A2c=new function(){};var B2c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(B2c,X);var C2c=pva(B2c);var D2c;var E2c=[{frequencyMultiplier:1,gain:10},{frequencyMultiplier:4,gain:2}],F2c=function(a){this.mixerMaxGain=1/E2c.map(function(f){return f.gain}).reduce(function(f,g){return f+g},0);this.oscillators=[];this.mixer=a.createGain();this.mixer.gain.value=0;for(var b=l(E2c),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.createOscillator();d.type="sine";d.start();this.oscillators.push(d);var e=a.createGain();e.gain.value=c.gain;d.connect(e).connect(this.mixer)}};F2c.prototype.connect=function(a){return this.mixer.connect(a)};var Ll=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Ll,X);var gGa=lGa(D2c||(D2c=C2c('[null,null,null,null,null,"\'use strict\';function h(a,b,c){const e\\u003dMath.min(a.length,b.length);for(let f\\u003d0;f\\u003ce;f++){var d\\u003da[f],k\\u003db[f],n\\u003dc;const p\\u003dMath.min(d.length,k.length);for(let g\\u003d0;g\\u003cp;g++)l(d[g],k[g],n)}}function l(a,b,c){const e\\u003da.length;for(let d\\u003d0;d\\u003ce;d++)b[d]\\u003dc(a[d])}class m extends AudioWorkletProcessor{process(a,b){h(a,b,Math.abs);return!0}}class q extends AudioWorkletProcessor{process(a,b){h(a,b,c\\u003d\\u003ec\\u003e.2?0:1);return!0}}\\nfunction r(a){a\\u003d2*Math.PI*a/sampleRate;return Math.cos(a)-1+Math.sqrt(Math.pow(Math.cos(a),2)-4*Math.cos(a)+3)}\\nclass t extends AudioWorkletProcessor{constructor(){super(...arguments);this.i\\u003dr(.04);this.h\\u003dr(1E3);this.g\\u003d0}process(a,b){if(a.length!\\u003d\\u003d1)throw Error(\\"SlewWorklet only supports one input.\\");if(a[0].length!\\u003d\\u003d1)throw Error(\\"SlewWorklet only supports one input channel.\\");if(b.length!\\u003d\\u003d1)throw Error(\\"SlewWorklet only supports one output.\\");if(b[0].length!\\u003d\\u003d1)throw Error(\\"SlewWorklet only supports one output channel.\\");l(a[0][0],b[0][0],c\\u003d\\u003e{const e\\u003dc\\u003ethis.g?this.i:this.h;return this.g\\u003de*c+(1-e)*this.g});\\nreturn!0}}registerProcessor(\\"rectifier-worklet\\",m);registerProcessor(\\"threshold-worklet\\",q);registerProcessor(\\"slew-worklet\\",t);\\n"]'))),
G2c=function(){this.audioContext=new AudioContext({latencyHint:.04});this.voices=[];this.nextVoice=0;this.gain=this.audioContext.createGain();this.panner=this.audioContext.createStereoPanner();this.polyVoice=this.audioContext.createGain();this.earcons=this.audioContext.createGain();this.voiceAndEarcons=this.audioContext.createGain();this.playbackTimes=null;for(var a=this.gain.gain.value=0;a<10;a++){var b=new F2c(this.audioContext);this.voices.push(b);b.connect(this.polyVoice)}this.polyVoice.gain.value=
12/13;a=this.audioContext.createDynamicsCompressor();this.polyVoice.connect(this.voiceAndEarcons);this.earcons.connect(this.voiceAndEarcons);this.voiceAndEarcons.connect(this.panner).connect(a).connect(this.gain).connect(this.audioContext.destination)};
G2c.prototype.play=function(a){var b=this,c,d,e,f,g,k,m,r,w,x,D,H,J,O,R,V,ba,pa;return y(function(ua){switch(ua.nextAddress){case 1:return z(ua,b.audioContext.suspend(),2);case 2:c=b.audioContext.currentTime;b.gain.gain.setTargetAtTime(.8,c,.004);d="audioWorklet"in AudioContext.prototype;if(!d){ua.jumpTo(3);break}return z(ua,mGa(b.voiceAndEarcons),4);case 4:e=ua.yieldResult,e.gain.value=.3,e.connect(b.panner),e.gain.setTargetAtTime(0,c+a.durationSeconds,.004);case 3:f=l(a.notes);for(g=f.next();!g.done;g=
f.next()){k=g.value;b.panner.pan.setTargetAtTime(k.pan,c+k.onset,0);m=b.voices[b.nextVoice];b.nextVoice=(b.nextVoice+1)%10;for(var ma=m,Da=k.frequency,ja=c+k.onset,va=l(E2c.entries()),ya=va.next();!ya.done;ya=va.next()){var Sa=l(ya.value);ya=Sa.next().value;Sa=Sa.next().value;ma.oscillators[ya].frequency.setTargetAtTime(Da*Sa.frequencyMultiplier,ja,0)}ma.mixer.gain.setTargetAtTime(0,ja,0);ma.mixer.gain.linearRampToValueAtTime(ma.mixerMaxGain,ja+.005);ma.mixer.gain.exponentialRampToValueAtTime(1E-5,
ja+.8);ma.mixer.gain.setTargetAtTime(0,ja+.8,0)}r=l(a.earcons||[]);w=r.next();case 5:if(w.done)return pa=Math.max(((V=a.notes[a.notes.length-1])==null?void 0:V.onset)||0,((ba=a.earcons[a.earcons.length-1])==null?void 0:ba.onset)||0),b.playbackTimes={startTime:c,endTime:c+pa},z(ua,b.audioContext.resume(),0);D=x=w.value;H=D.onset;return z(ua,b.audioContext.decodeAudioData(z2c()),8);case 8:J=ua.yieldResult,ma=b.audioContext.createBufferSource(),ma.buffer=J,O=ma,R=b.audioContext.createGain(),R.connect(b.earcons),
R.gain.value=.25,O.connect(R),O.start(c+H),w=r.next(),ua.jumpTo(5)}})};var H2c=function(a){a.gain.gain.setTargetAtTime(0,a.audioContext.currentTime,.004);setTimeout(function(){a.audioContext.close()},1E3)};G2c.prototype.getProgress=function(){return!this.playbackTimes||this.audioContext.currentTime>this.playbackTimes.endTime?null:bGa(this.playbackTimes.startTime,this.playbackTimes.endTime,0,1,this.audioContext.currentTime)};var I2c=function(){this.xAxis=this.synth=null};I2c.prototype.play=function(a){var b=this,c,d;return y(function(e){b.stop();c=$Fa(a);d=fGa(c);b.synth=new G2c;b.xAxis=c.xAxis;return z(e,b.synth.play(d),0)})};I2c.prototype.stop=function(){this.synth&&(H2c(this.synth),this.xAxis=this.synth=null)};I2c.prototype.getProgress=function(){if(this.synth===null||this.xAxis===null)return null;var a=this.synth.getProgress();return a===null?null:bGa(0,1,this.xAxis.min,this.xAxis.max,a)};var VH=function(){this.logger=null;try{this.session=new I2c}catch(a){this.session=null}};VH.\u0275fac=function(a){return new (a||VH)};VH.\u0275prov=Cc({token:VH,factory:VH.\u0275fac,providedIn:"root"});var J2c=["topLeftCell"],K2c=["audioHeader"],L2c=["virtualTableValueButton"],M2c=["virtualTableColumnHeaderButton"],N2c=["virtualTableRowHeaderButton"],O2c=["virtualTableAudioValueButton"],qGa=function(a,b){return{"left.px":a,"top.px":b}},Moa=function(a,b,c,d){return{"left.px":a,"top.px":b,"height.px":c,"width.px":d}},P2c="ArrowUp ArrowDown ArrowLeft ArrowRight Enter Space PageDown PageUp Home End".split(" "),Q2c=0,WH=function(a,b,c,d){var e=this;this.chart=a;this.audioChartsService=b;this.cdr=c;this.ngZone=
d;this.rowMask=this.columnMaskGenerator=this.columnMask=this.gridGenerator=this.grid=null;this.onGridCellActivateDescription="Activating a grid cell will open the tooltip at this data point.";this.chartTitle="Untitled";this.layerTitle="";this.audioChartsEnabled=!0;this.refactorA11yNavInstructions=!1;this.onFocus=new ui;this.onBlur=new ui;this.onFocusedCellChange=new ui;this.onGridCellActivate=new ui;this.internalValues=[];this.internalColumns=[];this.internalRows=[];this.internalAudioValues=[];this.statusUpdate=
"";this.NAV_INSTRUCTIONS="Navigate this grid using arrow keys. Page Up and Page Down moves focus up and down by 10 rows. Home and End moves focus to the first and last cell in the current row. Ctrl+Home and Ctrl+End moves focus to the first and last cell of the grid.";this.AUDIO_HEADER="Audio";this.refocusAfterViewChecked=!1;this.ignoreKeyboardEvents=new Set;this.focused=!1;this.id="ac-accessibility-grid-"+Q2c++;this.columnToggleDescriptionId=this.id+"-column-toggle-description";this.rowToggleDescriptionId=
this.id+"-row-toggle-description";this.activateGridCellDescriptionId=this.id+"-activate-gridcell-description";this.audioChartButtonDescriptionId=this.id+"-audio-chart-button-description";this.navInstructionsId=this.id+"-nav-instructions";this.tableId=this.id+"-table";this.focusColumnMask=[];this.expansionColumnMask=[];this.baseColumnMask=[];this.focusRowMask=[];this.expansionRowMask=[];this.baseRowMask=[];this.focusedCellInternal=null;this.destroyed=new rf;this.isActive=this.internalFocusTransfer=
!1;this.chart.keyDownObservable.pipe(Af(this.destroyed)).subscribe(function(f){e.ngZone.run(function(){e.onKeyDown(f)})});this.chart.syncKeyDownObservable.pipe(Af(this.destroyed)).subscribe(function(f){e.focused?e.grid&&e.grid.rows.length&&e.grid.columns.length&&P2c.includes(f.key)&&f.preventDefault():e.ignoreKeyboardEvents.add(f)})};WH.prototype.shownColumns=function(a){for(var b=[],c=0;c<a.length;c++)rGa(this,c)&&b.push({colIndex:c,column:a[c]});return b};
var R2c=function(a,b){for(var c=[],d=0;d<b.length;d++)AGa(a,d)&&c.push({rowIndex:d,row:b[d]});return c},S2c=function(a,b){if(b===0)return a.internalRows;if(a.audioChartsEnabled&&b===1)return a.internalAudioValues;for(var c=[],d=0;d<a.internalValues.length;d++)c.push(a.internalValues[d][b-a.numberOfHeaderColumns]);return c},T2c=function(a,b,c){return b<1?b:S2c(a,c).findIndex(function(d){return d.visualRowIndex===b})+1};WH.prototype.trackByIndex=function(a){return String(a)};
WH.prototype.trackColumnById=function(a,b){return b.column.id};WH.prototype.trackRowById=function(a,b){return b.row.id};
WH.prototype.onKeyDown=function(a){if(this.focused&&this.grid&&this.grid.rows.length&&!this.ignoreKeyboardEvents.has(a)&&this.grid.columns.length&&P2c.includes(a.key)){this.statusUpdate="";var b=this.grid,c=b.rows.length+1-1,d=b.columns.length+this.numberOfHeaderColumns-1;if(this.focusedCell){var e=l(this.focusedCell);b=e.next().value;e=e.next().value;var f,g,k=(g=(f=U2c(this,b,e))==null?void 0:f.visualRowIndex)!=null?g:0;g=b;f=e;switch(a.key){case "ArrowUp":a=Math.max(0,k-1);g=T2c(this,a,f);break;
case "PageUp":a=Math.max(0,k-10);g=T2c(this,a,f);break;case "ArrowDown":a=Math.min(c,k+1);g=T2c(this,a,f);break;case "PageDown":a=Math.min(c,k+10);g=T2c(this,a,f);break;case "ArrowLeft":f=Math.max(0,e-1);break;case "ArrowRight":f=Math.min(d,e+1);break;case "Home":a.ctrlKey&&(g=0);f=0;break;case "End":f=d;a.ctrlKey&&(g=T2c(this,c,f));break;case "Enter":case "Space":vGa(this,g-1,f===1);var m;f>=this.numberOfHeaderColumns&&g>=1&&((m=this.audioChartsService.session)==null?void 0:m.getProgress())===null?
(a=this.focusedCellRef)&&this.focused&&this.onGridCellActivate.emit(a.nativeElement):f>=this.numberOfHeaderColumns&&g===0?pGa(this,f-this.numberOfHeaderColumns):f===0&&g>=1&&this.toggleRow(g-1)}if(b!==g||e!==f)this.focusedCell=[g,f],V2c(this,this.focusedCell);b!==g&&(this.statusUpdate=g>=1?(new em("Data series {SERIES_NAME} is now selected")).format({SERIES_NAME:this.internalRows[g-1].label}):"Data series unselected")}else{b=null;switch(a.key){case "ArrowUp":case "PageDown":case "ArrowLeft":case "ArrowDown":case "ArrowRight":case "PageUp":case "Home":b=
[1,0];break;case "End":b=[c,d]}b!==this.focusedCell&&(b[0]=T2c(this,b[0],b[1]),this.focusedCell=b,V2c(this,this.focusedCell))}}else this.ignoreKeyboardEvents.has(a)&&this.ignoreKeyboardEvents.delete(a)};
var U2c=function(a,b,c){if(b===0)return a.internalColumns[c-a.numberOfHeaderColumns];if(c===0)return a.internalRows[b-1];if(a.audioChartsEnabled&&c===1)return a.internalAudioValues[b-1];if(!a.focusedValue)return null;c=l(a.focusedValue);b=c.next().value;c=c.next().value;return(a=a.internalValues[b])?a[c]||null:null};
WH.prototype.focus=function(a){this.isActive||(this.isActive=!0,this.gridGenerator&&(this.grid=this.gridGenerator(),W2c(this)),this.columnMaskGenerator&&(this.columnMask=this.columnMaskGenerator()));this.focused=!0;this.onFocus.next(a);this.focusedCell||(this.focusedCell=[0,0]);this.internalFocusTransfer||V2c(this,this.focusedCell)};WH.prototype.blur=function(a){this.focused=!1;this.internalFocusTransfer||(this.onBlur.next(a),V2c(this,null))};
var DGa=function(a){return(new em('Populate data for table, "{LAYER_TITLE}", on chart, "{CHART_TITLE}"')).format({CHART_TITLE:a.chartTitle||"Untitled",LAYER_TITLE:a.layerTitle})},X2c=function(a){return a.refactorA11yNavInstructions?"Time Series Name":(new em('Grid for data, "{LAYER_TITLE}", on chart, "{CHART_TITLE}". Navigate this grid using arrow keys. Page Up and Page Down moves focus up and down by 10 rows. Home and End moves focus to the first and last cell in the current row. Ctrl+Home and Ctrl+End moves focus to the first and last cell of the grid.')).format({CHART_TITLE:a.chartTitle||
"Untitled",LAYER_TITLE:a.layerTitle})},W2c=function(a){Y2c(a);if(a.grid){var b=a.grid.columns;a.baseColumnMask=b.map(function(f,g){return g===0||g===b.length-1});a.expansionColumnMask=b.map(function(){return!1});var c=Gl(a.focusedCell,a.numberOfHeaderColumns)[1];a.focusColumnMask=b.map(function(f,g){return g===c});var d=a.grid.rows;a.baseRowMask=d.length<=12?d.map(function(){return!0}):d.map(function(f,g){return g===0||g===d.length-1});a.expansionRowMask=d.map(function(){return!1});var e=Gl(a.focusedCell,
a.numberOfHeaderColumns)[0];a.focusRowMask=d.map(function(f,g){return g===e})}};WH.prototype.ngOnChanges=function(a){if("grid"in a||"gridGenerator"in a)this.gridGenerator&&this.isActive&&(this.grid=this.gridGenerator()),W2c(this);"columnMaskGenerator"in a&&this.columnMaskGenerator&&this.isActive&&(this.columnMask=this.columnMaskGenerator())};
var rGa=function(a,b){var c=a.columnMask||[];return!!(a.baseColumnMask[b]||c[b]||a.expansionColumnMask[b]||a.focusColumnMask[b])},AGa=function(a,b){var c=a.rowMask||[];return!!(a.baseRowMask[b]||c[b]||a.expansionRowMask[b]||a.focusRowMask[b])};WH.prototype.ngAfterViewChecked=function(){if(this.refocusAfterViewChecked){this.refocusAfterViewChecked=!1;var a=this.focusedCellRef;this.internalFocusTransfer=!0;a&&a.nativeElement.focus();this.internalFocusTransfer=!1}};
var pGa=function(a,b){if(rGa(a,b+1))a.expansionColumnMask[b]=!1,a.statusUpdate="1 column hidden";else{var c=b+1,d=0;for(a.expansionColumnMask[b]=!0;c<a.expansionColumnMask.length&&!rGa(a,c)&&d<10;)a.expansionColumnMask[c]=!0,c++,d++;a.statusUpdate=(new em("{NUM_COLUMNS, plural, =1 {1 more column shown} other {{NUM_COLUMNS} more columns shown}}")).format({NUM_COLUMNS:d})}a.cdr.markForCheck()};
WH.prototype.toggleRow=function(a){if(AGa(this,a+1))this.expansionRowMask[a]=!1,this.statusUpdate="1 row hidden";else{var b=a+1,c=0;for(this.expansionRowMask[a]=!0;b<this.expansionRowMask.length&&!AGa(this,b)&&c<10;)this.expansionRowMask[b]=!0,b++,c++;this.statusUpdate=(new em("{NUM_ROWS, plural, =1 {1 more row shown} other {{NUM_ROWS} more rows shown}}")).format({NUM_ROWS:c})}this.cdr.markForCheck()};
var vGa=function(a,b,c){if(a.audioChartsEnabled){var d=Z2c(a);c&&!d&&(c=a.audioChartsService.session,b=a.internalAudioValues[b].audioChartOptions,Z2c(a),b&&(c==null||c.play(b)))}},tGa=function(a){var b;return((b=a.audioChartsService.session)==null?void 0:b.getProgress())!==null},Z2c=function(a){if(tGa(a)){var b;(b=a.audioChartsService.session)==null||b.stop();return!0}return!1},Y2c=function(a){var b=a.focusedCellRow,c=a.focusedCellColumn,d=a.focusedCell;if(a.grid){var e=a.grid,f=e.rows,g=e.columns,
k=e.values;e=[];for(var m=0;m<f.length;m++){var r=k[m];if(!r)break;e.push([]);for(var w=0;w<g.length;w++){var x=r[w];if(!x)break;e[m].push(Object.assign({},{id:a.id+"-value-"+m+"-"+w,tabindex:-1,visualRowIndex:0},x))}}for(k=0;k<g.length;k++){m=[];for(r=0;r<f.length;r++)m.push(e[r][k]);m=m.sort(function(J,O){return J.value===void 0&&O.value===void 0?0:J.value===void 0?1:O.value===void 0?-1:J.position.y-O.position.y});for(r=0;r<m.length;r++)m[r].visualRowIndex=r+1}var D=[];for(k=0;k<g.length;k++)r=
void 0,m=(r=e[0])==null?void 0:r[k],w=r=void 0,m=Object.assign({},(w=(r=m)==null?void 0:r.position)!=null?w:{},{y:0,height:void 0,width:void 0}),D.push(Object.assign({},{id:a.id+"-column-"+k,tabindex:-1,position:m,visualRowIndex:0},g[k]));g=[];k=[];m=a.grid.audioChartContext;for(r=0;r<f.length;r++){x=void 0;w=Object.assign({},(x=e[r][0])==null?void 0:x.position,{height:void 0,width:void 0});x=void 0;g.push(Object.assign({},{id:a.id+"-row-"+r,tabindex:-1,position:w,visualRowIndex:(x=e[r][0])==null?
void 0:x.visualRowIndex},f[r]));x=null;m&&(x={values:e[r].reduce(function(J,O,R){R=D[R].value;O=O.value;return R===void 0||O===void 0?J:J.concat([{x:R,y:O}])},[]),earcons:D.length>=m.xAxis.ticks.length*5?m.xAxis.ticks.map(function(J){return{x:J,earcon:A2c}}):void 0,xAxis:{density:D.length,min:m.xAxis.min,max:m.xAxis.max},yAxis:{min:m.yAxis.min,max:m.yAxis.max}});var H=void 0;k.push({id:a.id+"-audio-"+r,tabindex:-1,position:w,visualRowIndex:(H=e[r][0])==null?void 0:H.visualRowIndex,audioChartOptions:x})}a.internalValues=
e;a.internalColumns=D;a.internalRows=g;a.internalAudioValues=k}else a.internalValues=[],a.internalColumns=[],a.internalRows=[],a.internalAudioValues=[];$2c(a,d,b,c)},$2c=function(a,b,c,d){if(b){var e=null,f=null;c&&(e=a.internalRows.findIndex(function(g){return g.label===c.label}),e=e>-1?e:null);d&&(f=a.internalColumns.findIndex(function(g){return g.label===d.label}),f=f>-1?f:null);e!==null&&f!==null?a.focusedCell=[e+1,f+a.numberOfHeaderColumns]:e!==null&&f===null&&b[1]<a.numberOfHeaderColumns?a.focusedCell=
[e+1,b[1]]:f!==null&&e===null&&b[0]<1?a.focusedCell=[b[0],f+a.numberOfHeaderColumns]:a.focusedCell=null;V2c(a,a.focusedCell)}};
WH.prototype.getAriaLabel=function(){return this.grid&&this.internalRows.length?(new em("{NUM_OTHER_TIME_SERIES, plural,=0 {Data for chart, {CHART_TITLE}, including time series, {FIRST_TIME_SERIES_NAME}}=1 {Data for chart, {CHART_TITLE}, including time series, {FIRST_TIME_SERIES_NAME}, and # other}other {Data for chart, {CHART_TITLE}, including time series, {FIRST_TIME_SERIES_NAME}, and # others}}")).format({CHART_TITLE:this.chartTitle||"Untitled",FIRST_TIME_SERIES_NAME:this.internalRows[0].label,
NUM_OTHER_TIME_SERIES:this.internalRows.length-1}):(new em("No data available for table, {LAYER_TITLE}, on chart, {CHART_TITLE}")).format({CHART_TITLE:this.chartTitle||"Untitled",LAYER_TITLE:this.layerTitle})};
var wGa=function(a,b){var c=a.internalRows[b];return a.internalAudioValues[b].audioChartOptions?(new em("Play audio overview for {ROW_LABEL}")).format({ROW_LABEL:c.label}):(new em("No audio overview available for {ROW_LABEL}")).format({ROW_LABEL:c.label})},xGa=function(a,b){if(!a.internalAudioValues[b].audioChartOptions)return"";b=a.internalRows[b];b=[(new em("Pitch represents the y axis and time represents the x axis.")).format({ROW_LABEL:b.label})];var c,d=(c=a.grid)==null?void 0:c.yAxisState;d&&
d.min!==null&&d.max!==null&&b.push((new em("Y axis ranges from {MIN} to {MAX}.")).format({MIN:Yk(d.min,d.unit),MAX:Yk(d.max,d.unit)}));var e;(a=(e=a.grid)==null?void 0:e.xAxisState)&&a.min!==null&&a.max!==null&&(a.unit==="ms_since_epoch"?(e=Rk(a.timezoneOffset,a.timeZoneId),b.push((new em("X axis ranges from {MIN} to {MAX}.")).format({MIN:fCa(new Date(a.min),e),MAX:fCa(new Date(a.max),e)}))):b.push((new em("X axis ranges from {MIN} to {MAX}.")).format({MIN:Yk(a.min,a.unit),MAX:Yk(a.max,a.unit)})));
return b.join(" ")},a3c=function(a){if(!a.focusedCell)return!1;var b=l(a.focusedCell);a=b.next().value;b=b.next().value;return a===0&&b===0},nGa=function(a){if(!a.focusedCell||!a.audioChartsEnabled)return!1;var b=l(a.focusedCell);a=b.next().value;b=b.next().value;return a===0&&b===1},V2c=function(a,b){a.onFocusedCellChange.emit({focusedCell:b,focusedGridIndices:Gl(b,a.numberOfHeaderColumns)})};WH.prototype.ngOnDestroy=function(){this.destroyed.next();this.destroyed.complete()};
da.Object.defineProperties(WH.prototype,{numberOfHeaderColumns:{configurable:!0,enumerable:!0,get:function(){return this.audioChartsEnabled?2:1}},focusedCell:{configurable:!0,enumerable:!0,get:function(){return this.focusedCellInternal},set:function(a){var b=this.focusedCellProps;b&&(b.tabindex=-1);this.focusedCellInternal=a;if(b=this.focusedCellProps)b.tabindex=0;var c=Gl(a,this.numberOfHeaderColumns)[0],d=Gl(a,this.numberOfHeaderColumns)[1],e;this.focusColumnMask=((e=this.grid)==null?void 0:e.columns.map(function(g,
k){return k===d}))||[];var f;this.focusRowMask=((f=this.grid)==null?void 0:f.rows.map(function(g,k){return k===c}))||[];this.focused&&(this.refocusAfterViewChecked=!0)}},focusedValue:{configurable:!0,enumerable:!0,get:function(){var a=this.focusedCell;if(!a)return null;var b=l(a);a=b.next().value;b=b.next().value;return a<1||b<this.numberOfHeaderColumns?null:[a-1,b-this.numberOfHeaderColumns]}},focusedCellRef:{configurable:!0,enumerable:!0,get:function(){if(!this.focusedCell)return null;if(a3c(this))return this.topLeftCellRef;
if(nGa(this))return this.audioHeaderRef;var a,b=(a=this.focusedCellProps)==null?void 0:a.id;return b?this.valueRefs.find(function(c){return c.nativeElement.id===b})||this.columnHeaderRefs.find(function(c){return c.nativeElement.id===b})||this.rowHeaderRefs.find(function(c){return c.nativeElement.id===b})||this.audioValueRefs.find(function(c){return c.nativeElement.id===b})||null:null}},focusedCellProps:{configurable:!0,enumerable:!0,get:function(){if(!this.focusedCell||this.focusedCell.length!==2)return null;
var a=l(this.focusedCell),b=a.next().value;a=a.next().value;return U2c(this,b,a)}},focusedCellRow:{configurable:!0,enumerable:!0,get:function(){var a=this.focusedCell;if(!a)return null;a=l(Gl(a,this.numberOfHeaderColumns)).next().value;return a===null?null:this.internalRows[a]}},focusedCellColumn:{configurable:!0,enumerable:!0,get:function(){var a=this.focusedCell;if(!a)return null;a=l(Gl(a,this.numberOfHeaderColumns));a.next();a=a.next().value;return a===null?null:this.internalColumns[a]}}});
WH.\u0275fac=function(a){return new (a||WH)(Ve(xG),Ve(VH),Ve(Yx),Ve(Tg))};
WH.\u0275cmp=C({type:WH,selectors:[["ac-accessibility-grid"]],viewQuery:function(a,b){a&1&&(kg(J2c,5),kg(K2c,5),kg(L2c,5),kg(M2c,5),kg(N2c,5),kg(O2c,5));if(a&2){var c;og(c=pg())&&(b.topLeftCellRef=c.first);og(c=pg())&&(b.audioHeaderRef=c.first);og(c=pg())&&(b.valueRefs=c);og(c=pg())&&(b.columnHeaderRefs=c);og(c=pg())&&(b.rowHeaderRefs=c);og(c=pg())&&(b.audioValueRefs=c)}},hostAttrs:[1,"ac-accessibility-grid"],inputs:{grid:"grid",gridGenerator:"gridGenerator",columnMask:"columnMask",columnMaskGenerator:"columnMaskGenerator",
rowMask:"rowMask",onGridCellActivateDescription:"onGridCellActivateDescription",chartTitle:"chartTitle",layerTitle:"layerTitle",audioChartsEnabled:"audioChartsEnabled",refactorA11yNavInstructions:"refactorA11yNavInstructions"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onFocusedCellChange:"onFocusedCellChange",onGridCellActivate:"onGridCellActivate"},features:[Gx],decls:26,vars:32,consts:function(){return[["virtualTable",""],["topLeftCell",""],["audioHeader",""],["virtualTableColumnHeaderButton",
""],["virtualTableRowHeaderButton",""],["virtualTableAudioValueButton",""],["virtualTableValueButton",""]," If subsequent columns are omitted, activating a column header will reveal all subsequent columns up to the next revealed column.\n"," If subsequent rows are omitted, activating a row header will reveal all subsequent rows up to the next revealed row.\n"," No data. ",' To save memory, this table is inactive by default. To populate this table, click the "\ufffd0\ufffd" button just prior to this table. ',
[1,"show-on-focus","ac-screen-reader-only-content","ac-a11y-focusable",3,"click","disabled"],["role","grid",1,"ac-accessibility-grid-table"],["role","rowgroup"],["role","row",1,"table-rendering-layer"],["scope","col","role","columnheader",1,"top-left-table-header","ac-a11y-focusable","show-on-focus",3,"focus","blur"],[1,"ac-screen-reader-only-content"],["scope","col","role","columnheader","class","top-left-table-header ac-a11y-focusable",3,"focus","blur",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],
["role","row","class","table-rendering-layer series-row",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["role","status","aria-live","polite",1,"ac-screen-reader-only-content"],["scope","col","role","columnheader",1,"top-left-table-header","ac-a11y-focusable",3,"focus","blur"],["scope","col","role","columnheader",1,"positioned-table-header",3,"ngStyle"],[1,"ac-screen-reader-only-content","show-on-focus","ac-a11y-focusable",3,"click","focus","blur"],["role","row",1,"table-rendering-layer","series-row"],
["scope","row","role","rowheader",1,"positioned-table-header",3,"ngStyle"],["class","positioned-table-header","role","gridcell",3,"ngStyle",4,"ngIf"],["role","gridcell",1,"positioned-table-header",3,"ngStyle"],[1,"ac-screen-reader-only-content","show-on-focus","ac-a11y-focusable",3,"click","focus","blur","disabled"],["hidden",""],["role","presentation",1,"audio-chart-icon",3,"svgIcon"],["role","gridcell",1,"ac-a11y-focus-within","positioned-table-value",3,"ngStyle"],[1,"ac-screen-reader-only-content",
3,"click","focus","blur"],["role","gridcell","colspan","0"]]},template:function(a,b){if(a&1){var c=t();K(0,"button",11);N("click",function(){u(c);b.isActive||(b.isActive=!0,b.gridGenerator&&(b.grid=b.gridGenerator(),W2c(b)),b.columnMaskGenerator&&(b.columnMask=b.columnMaskGenerator()),b.statusUpdate=(new em("Table populated. A {NUM_ROWS} \u00d7 {NUM_COLUMNS} (rows \u00d7 columns) datasetis now available.")).format({NUM_COLUMNS:b.internalColumns.length,NUM_ROWS:b.internalRows.length}),b.focused=!0,
b.focusedCell=[0,0]);return v()});S(1);L();K(2,"p");S(3);L();K(4,"table",12,0)(6,"thead",13)(7,"tr",14)(8,"th",15,1);N("focus",function(d){u(c);return v(b.focus(d))})("blur",function(d){u(c);return v(b.blur(d))});K(10,"span",16);S(11);L()();E(12,oGa,4,3,"th",17)(13,sGa,5,10,"ng-container",18);L()();K(14,"tbody",13);E(15,BGa,8,14,"tr",19)(16,CGa,4,0,"tr",20)(17,EGa,4,1,"tr",20);L()();K(18,"p",16);$f(19,7);L();K(20,"p",16);$f(21,8);L();K(22,"p",16);S(23);L();K(24,"p",21);S(25);L()}a&2&&(I("disabled",
b.focused),Jf("aria-controls",b.tableId)("aria-expanded",b.grid!==null&&b.isActive),B(),T(" ",DGa(b),"\n"),B(),yg("hidden",!(b.refactorA11yNavInstructions&&b.focused)),Jf("id",b.navInstructionsId),B(),T(" ",b.NAV_INSTRUCTIONS,"\n"),B(),yg("ac-a11y-focusable",!0),Jf("id",b.tableId)("aria-label",b.getAriaLabel())("aria-describedby",b.refactorA11yNavInstructions?b.navInstructionsId:null)("aria-rowcount",b.internalRows.length+1)("aria-colcount",b.internalColumns.length+1),B(3),Jf("aria-rowindex",1),B(),
Jf("aria-colindex",1)("tabindex",!b.focusedCell||a3c(b)?0:-1),B(3),Ag(X2c(b)),B(),I("ngIf",b.audioChartsEnabled),B(),I("ngForOf",b.shownColumns(b.internalColumns))("ngForTrackBy",b.trackByIndex),B(2),I("ngForOf",R2c(b,b.internalRows))("ngForTrackBy",b.trackRowById),B(),I("ngIf",R2c(b,b.internalRows).length===0&&b.grid),B(),I("ngIf",!b.grid&&b.gridGenerator&&!b.isActive),B(),Jf("id",b.columnToggleDescriptionId),B(2),Jf("id",b.rowToggleDescriptionId),B(2),Jf("id",b.activateGridCellDescriptionId),B(),
T(" ",b.onGridCellActivateDescription,"\n"),B(),Jf("aria-hidden",!b.statusUpdate),B(),T(" ",b.statusUpdate,"\n"))},dependencies:[iz,iy,jy,ny],styles:[".ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px, 1px, 1px, 1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus, #3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}[_nghost-%COMP%]{position:relative}[_nghost-%COMP%]   .ac-accessibility-grid-table[_ngcontent-%COMP%]{position:relative;height:100%;width:100%}.table-rendering-layer[_ngcontent-%COMP%]{will-change:opacity}.series-row[_ngcontent-%COMP%]{position:absolute;top:0px;left:0px}.positioned-table-header[_ngcontent-%COMP%]{position:absolute;white-space:nowrap;text-align:left;padding:0;max-width:100%;background-color:var(--ac-sys-color-extensions-overlay, rgba(255, 255, 255, 0.5))}.positioned-table-value[_ngcontent-%COMP%]{position:absolute;text-align:left;padding:6px;transform:translate(-50%, -50%)}.audio-chart-icon[_ngcontent-%COMP%]{height:1em;width:1em;vertical-align:top;margin-top:-1px}.top-left-table-header[_ngcontent-%COMP%]{position:absolute;text-align:left;padding:0;font-weight:normal;top:0;left:0;background-color:var(--ac-sys-color-extensions-overlay, rgba(255, 255, 255, 0.5))}button.show-on-focus[_ngcontent-%COMP%]:focus, th.show-on-focus[_ngcontent-%COMP%]:focus > span.ac-screen-reader-only-content[_ngcontent-%COMP%]{background-color:var(--ac-sys-color-extensions-surface, #fff);font-family:sans-serif;font-size:11px;line-height:1.4em;padding:3px;color:var(--ac-sys-color-extensions-on-surface, #202124)}button.show-on-focus[_ngcontent-%COMP%]:focus.ac-screen-reader-only-content, th.show-on-focus[_ngcontent-%COMP%]:focus > span.ac-screen-reader-only-content.ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:unset;height:unset;margin:unset;overflow:unset;position:unset;white-space:unset;width:unset;z-index:unset}th.show-on-focus[_ngcontent-%COMP%]:focus > span.ac-screen-reader-only-content[_ngcontent-%COMP%]{padding:5.5px;display:block}.hidden[_ngcontent-%COMP%]{display:none}/*# sourceMappingURL=ac_accessibility_grid.css.map */"],
changeDetection:0});var b3c=function(a){this.context=a;this.line=this.t0=this.y1=this.y0=this.x1=this.x0=NaN;this.numPoints=0};b3c.prototype.lineStart=function(){this.x0=this.x1=this.y0=this.y1=this.t0=NaN;this.numPoints=0};b3c.prototype.lineEnd=function(){this.numPoints===2?this.context.lineTo(this.x1,this.y1):this.numPoints===3&&c3c(this,this.t0,d3c(this,this.t0));(this.line||this.line!==0&&this.numPoints===1)&&this.context.closePath();this.line=1-this.line};
b3c.prototype.point=function(a,b){var c=NaN;if(a!==this.x1||b!==this.y1){switch(this.numPoints){case 0:this.numPoints=1;this.line?this.context.lineTo(a,b):this.context.moveTo(a,b);break;case 1:this.numPoints=2;break;case 2:this.numPoints=3;c3c(this,d3c(this,c=e3c(this,a,b)),c);break;default:c3c(this,this.t0,c=e3c(this,a,b))}this.x0=this.x1;this.x1=a;this.y0=this.y1;this.y1=b;this.t0=c}};
var e3c=function(a,b,c){var d=a.x1-a.x0;b-=a.x1;var e=(a.y1-a.y0)/d;a=(c-a.y1)/b;return((e<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(e),Math.abs(a),.5*Math.abs((e*b+a*d)/(d+b)))||0},d3c=function(a,b){var c=a.x1-a.x0;return c?(3*(a.y1-a.y0)/c-b)/2:b},c3c=function(a,b,c){var d=a.x0,e=a.x1,f=a.y1,g=(e-d)/3;a.context.bezierCurveTo(d+g,a.y0+g*b,e-g,f-g*c,e,f)};var f3c={fillStyle:"var(--ac-sys-color-chart-on-surface, #000)",globalAlpha:1,globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-chart-on-surface, #000)",lineWidth:1.25,lineCap:"butt"},g3c={globalAlpha:.3,lineWidth:.5},h3c={globalAlpha:.05},i3c=Object.assign({},f3c,{lineWidth:1.75}),j3c=Object.assign({},g3c,{globalAlpha:1}),k3c=Object.assign({},h3c,{globalAlpha:.3}),l3c={strokeStyle:"var(--ac-sys-color-chart-surface, #FFF)",lineWidth:2},m3c=2*Math.PI,n3c=function(a,b){UG.call(this,
a);this.queueService=b;this.fullDrawDebounceId=null;this.enableManualLatencyTracking=!1};Z(n3c,UG);h=n3c.prototype;h.drawV1=function(a){this.drawInternal(a)};h.onXAxisChange=function(a,b){el(a)&&this.drawInternal(b)};h.onResizeChange=function(a,b){var c=this;Bk(a)&&(Ck(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),VG(this,b,this.canvas,this.ctx),this.fullDrawDebounceId=window.setTimeout(function(){c.drawInternal(b)},250)))};
h.onYAxisChange=function(a,b){zl(a)&&this.drawInternal(b)};h.onSeriesSelectionChange=function(a,b){(gDa(a)||tl(a,b.scope.layerId))&&this.drawInternal(b)};h.onColorMapChange=function(a,b){this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.unpackForClearing=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize;if(!d||d.height<=0||d.width<=0)return null;var e=d.width-d.margins.left-d.margins.right,f=d.height-d.margins.top-d.margins.bottom,g=d.margins.top,k=d.height-d.margins.bottom,m=d.margins.left,r=d.width-d.margins.right;b=!b||!a.colorStrategy.isReady||a.colorStrategy.isReady(b,c);return{config:a,canvasWidth:d.width,canvasHeight:d.height,bounds:{top:g,right:r,bottom:k,left:m},bodyLeft:m,bodyTop:g,bodyBottom:k,
bodyRight:r,bodyWidth:e,bodyHeight:f,isColorMapReady:b}};h.shouldShowShape=function(a,b,c,d,e){return a&&b&&!c&&!d||a&&e&&!c&&d?!1:!0};
h.unpackForDrawing=function(a){var b=this,c=a.scope,d=a.data,e=a.state,f=a.config;a=this.unpackForClearing(a);if(!e||!f||!a)return null;var g=e.xAxis,k=e.yAxis,m=e.seriesSelection,r=e.brush,w=e.lastInteraction,x=a.bodyLeft,D=a.bodyTop,H=a.bodyRight,J=a.bodyWidth,O=a.bodyHeight;if(!(g&&m&&k&&r))return null;var R=Al(k,D,a.bodyBottom,(d==null?0:d.unit)?d.unit:null),V=hl(g,x,H,d==null?void 0:d.xAxisUnit),ba=il(g,x,H,d==null?void 0:d.xAxisUnit);if(!V||!R||!ba||g.min===null||g.max===null)return null;var pa=
(c=m.byLayer.entities[c.layerId])?c.selectedSeries.map(function(vc){return vc.seriesId}):[],ua=c?c.hoveredSeries.map(function(vc){return vc.seriesId}):[],ma=Object.values(m.byLayer.entities).filter(function(vc){return!!vc}).some(function(vc){return rl(vc.selectedSeries).length||rl(vc.hoveredSeries).length});c=f.colorStrategy.getShape?function(vc){var tb,Qb;return b.shouldShowShape((tb=f.clickDotInteraction)!=null?tb:!1,ma,pa.includes(vc.id),ua.includes(vc.id),(Qb=f.multiselectMode)!=null?Qb:!1)?f.colorStrategy.getShape(vc,
e):""}:null;var Da,ja,va,ya=(va=w==null?void 0:(Da=w.domain)==null?void 0:Da.multiselectAnchor)!=null?va:w==null?void 0:(ja=w.domain)==null?void 0:ja.click,Sa,ab=w==null?void 0:(Sa=w.domain)==null?void 0:Sa.hover,rb,ac;Da=(ac=(rb=f.styles)==null?void 0:rb.lineWidth)!=null?ac:1.25;var pc;rb=((pc=f.styles)==null?0:pc.lineBorderColor)?Da*2:Da;pc=Math.ceil(rb/2);rb=new Path2D;rb.rect(x-pc,D-pc,J+2*pc+1,O+2*pc+1);var kc;return Object.assign({},a,{data:d,colorMap:function(vc){return f.colorStrategy.getColor(vc,
e)},shapeMap:c,shapeStateMap:function(vc){if(f.clickDotInteraction&&ya&&pa.includes(vc.id)){var tb=Jl(vc.data||[],ba(ya),null,!0);return{position:vc.data[tb],lineSelectedStatus:1}}return f.clickDotInteraction&&ab&&ua.includes(vc.id)&&!f.multiselectMode?(tb=Jl(vc.data||[],ba(ab),null,!0),{position:vc.data[tb],lineSelectedStatus:2}):{position:null,lineSelectedStatus:0}},shapeBoundingBox:f.colorStrategy.shapeBoundingBox,dataMap:function(vc,tb){return[V(vc.valueOf()),R(tb)]},domainMap:V,rangeMap:R,inverseDomainMap:ba,
selectedSeriesIds:pa,hoveredSeriesIds:ua,anySeriesSelectedOrHovered:ma,brushing:r.brushing||!1,xAxisMin:g.min,xAxisMax:g.max,bodyClippingPath:rb,clickDotInteraction:(kc=f.clickDotInteraction)!=null?kc:!1})};h.unpackForGetValues=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize;c=c.xAxis;return d&&c&&c.min!==null&&c.max!==null?(c=il(c,d.margins.left,d.width-d.margins.right,b==null?void 0:b.xAxisUnit))?{data:b,config:a,inverseDomainMap:c}:null:null};
h.getSeriesIdsBetween=function(a,b,c,d){var e=this.unpackForDrawing(a);if(!e)return null;a=e.config;var f=a.outputPeriodMs,g=a.useLegacyGapDetection,k=e.inverseDomainMap(d),m=[];e.data&&(m=e.data.series.reduce(function(w,x){var D=l(WFa(x,k.valueOf(),0)),H=D.next().value;D=D.next().value;H=x.data[H];D=x.data[D];var J=e.config.pointConnectionMethod;if(!H||!D)return w;J!=="always"&&(J!=="gap_detection"&&J!=="zero_fill"||Kl(f,H,D,g).gapDetected)||w.push({series:x,value:cl(+H.x,+D.x,H.y,D.y,+k)});J===
"zero_fill"&&Kl(f,H,D,g).gapDetected&&w.push({series:x,value:0});return w},[]).sort(function(w,x){return x.value>w.value?-1:x.value<w.value?1:0}).map(function(w){return w.series}));d=[];a=!1;m=l(m);for(var r=m.next();!r.done;r=m.next()){r=r.value;if(r.id===b||r.id===c)if(a){d.push(r.id);break}else a=!0;a&&d.push(r.id)}return d};
h.getSeriesIdOfClosestLine=function(a,b,c){a=this.unpackForDrawing(a);if(a==null||!a.data)return null;for(var d=Infinity,e=null,f=a.inverseDomainMap(b.x),g=a.inverseDomainMap(c)-a.inverseDomainMap(0),k=l(a.data.series),m=k.next();!m.done;m=k.next()){m=m.value;var r=l(WFa(m,f,g)),w=r.next().value;r=r.next().value;r=Math.min(r,m.data.length-1);for(w=Math.max(0,w);w<r;w++){var x=m.data[w],D=m.data[w+1];x=this.distanceFromSegment([b.x,b.y],a.dataMap(x.x,x.y),a.dataMap(D.x,D.y));x<d&&x<=c&&(d=x,e=m.id)}}return e};
h.getValuesAtPosition=function(a,b){a=this.unpackForGetValues(a);if(a==null||!a.data)return null;b=a.inverseDomainMap(b.x);return Nl(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,a.config.nearestPoint)};h.getValuesAtTime=function(a,b,c){a=this.unpackForGetValues(a);return a!=null&&a.data?Nl(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,a.config.nearestPoint,c):null};
h.distanceFromSegment=function(a,b,c){var d=function(f,g){return Math.pow(g[0]-f[0],2)+Math.pow(g[1]-f[1],2)},e=d(b,c);if(e===0)return Math.sqrt(d(a,b));e=((a[0]-b[0])*(c[0]-b[0])+(a[1]-b[1])*(c[1]-b[1]))/e;e=Math.max(0,Math.min(1,e));return Math.sqrt(d(a,[b[0]+e*(c[0]-b[0]),b[1]+e*(c[1]-b[1])]))};
h.clearInternal=function(a){a=this.unpackForClearing(a);if(!a||!a.isColorMapReady)return!1;this.canvas.style.left="0px";this.canvas.style.top="0px";ml(this.canvas,this.base,a.canvasHeight,a.canvasWidth);return!0};
h.drawInternal=function(a){var b=performance.now();if(this.clearInternal(a)&&(SG(this,this.canvas),this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),a=this.unpackForDrawing(a))){var c,d,e=(d=(c=a.config.styles)==null?void 0:c.lineWidth)!=null?d:1.25;c={lineDrawingOptions:Object.assign({},f3c,{lineWidth:e,globalAlpha:a.anySeriesSelectedOrHovered&&!a.brushing?.15:1}),bandLineDrawingOptions:g3c,bandShadingDrawingOptions:h3c};var f=a.selectedSeriesIds;a.brushing||
(f=f.concat(a.hoveredSeriesIds));var g,k;d=(k=(g=a.data)==null?void 0:g.series)!=null?k:[];g=d.filter(function(D){return!f.includes(D.id)});if(g.length){if(k=a.shapeMap){e=new Set;d=l(d);for(var m=d.next();!m.done;m=d.next())e.add(k(m.value));g.length>e.size&&(k=null)}this.drawLines(g,a.domainMap,a.rangeMap,a.colorMap,k,a.shapeStateMap,a.shapeBoundingBox,a.bounds,a.bodyClippingPath,a.config,c,a.clickDotInteraction)}var r;c=(r=a.data)==null?void 0:r.series.filter(function(D){return f.includes(D.id)});
if(c==null?0:c.length){var w,x;this.drawLines(c,a.domainMap,a.rangeMap,a.colorMap,a.shapeMap,a.shapeStateMap,a.shapeBoundingBox,a.bounds,a.bodyClippingPath,a.config,{lineDrawingOptions:Object.assign({},i3c,{lineWidth:((x=(w=a.config.styles)==null?void 0:w.lineWidth)!=null?x:1.25)+.5}),bandLineDrawingOptions:j3c,bandShadingDrawingOptions:k3c},a.clickDotInteraction)}RG(this,a.xAxisMin,a.xAxisMax);r=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:r});this.enableManualLatencyTracking&&
QG(this)}};
h.drawLines=function(a,b,c,d,e,f,g,k,m,r,w,x){this.ctx.save();a=l(a);for(var D=a.next();!D.done;D=a.next()){D=D.value;var H=d(D),J=e&&e(D),O=f&&f(D),R=void 0;if((R=r.styles)==null?0:R.lineBorderColor){var V=R=void 0,ba=void 0,pa=2*((ba=(R=w)==null?void 0:(V=R.lineDrawingOptions)==null?void 0:V.lineWidth)!=null?ba:1);R=Object.assign({},w,{lineDrawingOptions:Object.assign({},w.lineDrawingOptions,{lineWidth:pa})});V=void 0;this.drawLine({points:D.data,domainMap:b,rangeMap:c,color:(V=r.styles)==null?
void 0:V.lineBorderColor,shape:J,shapeState:O,shapeBoundingBox:g,bounds:k,bodyClippingPath:m,outputPeriodMs:r.outputPeriodMs,pointConnectionMethod:r.pointConnectionMethod,useLegacyGapDetection:r.useLegacyGapDetection,drawingOptions:R,lineInterpolationMethod:r.lineInterpolationMethod,clickDotInteraction:x})}R=void 0;this.drawLine({points:D.data,domainMap:b,rangeMap:c,color:H,shape:J,shapeState:O,shapeBoundingBox:g,bounds:k,bodyClippingPath:m,outputPeriodMs:r.outputPeriodMs,pointConnectionMethod:r.pointConnectionMethod,
useLegacyGapDetection:r.useLegacyGapDetection,drawingOptions:Object.assign({},w,{lineDrawingOptions:Object.assign({},w.lineDrawingOptions,{lineDash:(R=r.styles)==null?void 0:R.lineDash})}),lineInterpolationMethod:r.lineInterpolationMethod,clickDotInteraction:x})}this.ctx.restore()};
h.drawLine=function(a){var b=a.domainMap,c=a.rangeMap,d=a.color,e=a.shape,f=a.shapeState,g=a.shapeBoundingBox,k=a.bounds,m=a.bodyClippingPath,r=a.outputPeriodMs,w=a.pointConnectionMethod,x=a.useLegacyGapDetection,D=a.drawingOptions,H=a.lineInterpolationMethod,J=a.clickDotInteraction,O=a.points;if(O.length){var R=r||Infinity,V=[],ba=[],pa,ua,ma,Da,ja=typeof((pa=O)==null?void 0:(ua=pa[0])==null?void 0:ua.min)==="number"&&typeof((ma=O)==null?void 0:(Da=ma[0])==null?void 0:Da.max)==="number",va=void 0,
ya=null,Sa=[],ab=[],rb=void 0,ac=function(gj,Em){rb?(rb.x=gj,rb.y=Em):rb={x:gj,y:Em}},pc=typeof d==="string"?void 0:d,kc=!!pc,vc=[];if(kc){var tb=this.generateMulticolorPoints(O,pc),Qb=tb.linePathsColors;O=tb.multicolorPoints;vc=Qb}for(var ib=0;ib<O.length;ib++){var bc=O[ib-1]||null,xc=O[ib],ud=b(xc.x.valueOf()),Tb=void 0,qc=l(nl([ud,c(xc.y)],(Tb=D.lineDrawingOptions.lineWidth)!=null?Tb:1)),Sc=qc.next().value,pd=qc.next().value,Uc=Sc,ne=pd,ff=void 0,bf=void 0,Mh=void 0;if(ja){var ux=void 0,qp=void 0,
Jj=void 0,bn=l(nl([ud,c((ux=xc.min)!=null?ux:xc.y),c((qp=xc.max)!=null?qp:xc.y)],(Jj=D.bandLineDrawingOptions.lineWidth)!=null?Jj:1));ff=bn.next().value;bf=bn.next().value;Mh=bn.next().value}(!ya||Uc>ya[0])&&Uc>=k.left-1&&Uc<=k.right+1&&ne>=k.top-1&&ne<=k.bottom+1&&(ya=[Uc,ne]);var Wq=!1,vx=0,nk=!1;if(bc){if(w==="gap_detection"||w==="zero_fill"){var Ql=Kl(R,bc,xc,x);Wq=Ql.gapDetected;vx=Ql.gapWidthMs}if(xc.tileDomain&&bc.tileDomain&&xc.tileDomain!==bc.tileDomain){var rp=l(bc.tileDomain),wx=rp.next().value,
dM=rp.next().value,Rl=wx,iB=dM,CY=l(xc.tileDomain),baa=CY.next().value,caa=CY.next().value,daa=baa;if(Rl>caa||daa>iB)nk=!0}}if(Wq||nk||w==="never")if(nk||w!=="zero_fill")Sa.length&&V.push(Sa),Sa=[[Uc,ne]],ja&&(ba.push(ab),ab=[],ff!==void 0&&bf!==void 0&&Mh!==void 0&&ab.push([ff,bf,Mh]));else{for(var DY=vx/R-1,Ly=xc.x.valueOf()>bc.x.valueOf(),My=Ly?bc.x.valueOf()+R:bc.x.valueOf()-R,qP=0;qP<DY;qP++){var rP=void 0,EY=l(nl([b(My),c(0)],(rP=D.lineDrawingOptions.lineWidth)!=null?rP:1)),Ih=EY.next().value,
Gra=EY.next().value,FY=Ih,eaa=Gra;Sa.push([FY,eaa]);va=pl(va,FY,eaa,rb,k);if(ja){var AIa=l(nl([b(My),c(0)],D.bandLineDrawingOptions.lineWidth)),BIa=AIa.next().value,GY=AIa.next().value;ab.push([BIa,GY,GY])}ac(FY,eaa);My=Ly?My+R:My-R}Sa.push([Uc,ne]);va=pl(va,Uc,ne,rb,k);ja&&ff!==void 0&&bf!==void 0&&Mh!==void 0&&ab.push([ff,bf,Mh])}else Sa.push([Uc,ne]),va=pl(va,Uc,ne,rb,k),ja&&ff!==void 0&&bf!==void 0&&Mh!==void 0&&ab.push([ff,bf,Mh]);ac(Uc,ne)}Sa.length&&V.push(Sa);ja&&ab.length&&ba.push(ab);if(w===
"zero_fill"&&r&&V.length&&V[0].length&&V[V.length-1].length){var fw=Math.abs(b(r)-b(0)),Fm=V[0],Qo=V[V.length-1],HY=Fm[0][0]<Qo[Qo.length-1][0],oD=c(0),Ny=function(gj,Em,pD){var gw=pD?{x:gj[0][0],y:gj[0][1]}:{x:gj[gj.length-1][0],y:gj[gj.length-1][1]},sP;Em=l(nl([Em,oD],(sP=D.lineDrawingOptions.lineWidth)!=null?sP:1));sP=Em.next().value;Em=Em.next().value;if((!HY&&pD||HY&&!pD)&&sP>gw.x||(!HY&&!pD||HY&&pD)&&sP<gw.x)va=pl(va,sP,Em,gw,k),pD?gj.unshift([sP,Em]):gj.push([sP,Em])};HY?(Ny(Fm,Fm[0][0]-fw,
!0),Ny(Fm,k.left,!0),Ny(Qo,Qo[Qo.length-1][0]+fw,!1),Ny(Qo,k.right,!1)):(Ny(Fm,Fm[0][0]+fw,!0),Ny(Fm,k.right,!0),Ny(Qo,Qo[Qo.length-1][0]-fw,!1),Ny(Qo,k.left,!1))}this.ctx.save();if(ba.length){kc||(this.ctx.fillStyle=jl(d,this.base),this.ctx.strokeStyle=jl(d,this.base));for(var Hra=l(ba),Ira=Hra.next();!Ira.done;Ira=Hra.next()){var FI=Ira.value;if(FI.length!==0){var faa=l(FI[0]),Jra=faa.next().value,GI=faa.next().value,Kra=faa.next().value,Ct=Jra,IY=GI,tP=Kra,Fn=new Path2D,Oy=new Path2D,Ro=new Path2D;
if(FI.length===1)Fn.moveTo(Ct-2,IY),Fn.lineTo(Ct+2,IY),Oy.moveTo(Ct-2,tP),Oy.lineTo(Ct+2,tP),Ro.moveTo(Ct-2,tP),Ro.lineTo(Ct+2,tP),Ro.lineTo(Ct+2,IY),Ro.lineTo(Ct-2,IY);else{Fn.moveTo(Ct,IY);Oy.moveTo(Ct,tP);Ro.moveTo(Ct,tP);for(var HI=1;HI<FI.length;HI++){var II=l(FI[HI]),Py=II.next().value,Lra=II.next().value,Mra=II.next().value,Nra=Py,CIa=Mra;Fn.lineTo(Nra,Lra);Oy.lineTo(Nra,CIa);Ro.lineTo(Nra,CIa)}for(var Ora=FI.length-1;Ora>=0;Ora--){var gaa=l(FI[Ora]),DIa=gaa.next().value,Pra=gaa.next().value;
Ro.lineTo(DIa,Pra)}}Ro.closePath();kl(this.ctx,D.bandShadingDrawingOptions,this.base);this.ctx.fill(Ro);kl(this.ctx,D.bandLineDrawingOptions,this.base);this.ctx.stroke(Fn);this.ctx.stroke(Oy)}}}kl(this.ctx,D.lineDrawingOptions,this.base);var Qra;this.ctx.lineWidth=(Qra=D.lineDrawingOptions.lineWidth)!=null?Qra:1;kc||(this.ctx.strokeStyle=jl(d,this.base),this.ctx.fillStyle=jl(d,this.base));this.applyPathsToCanvas(V,vc,w,H,kc,m);kl(this.ctx,l3c,this.base);if(e)if(J&&f.position&&f.lineSelectedStatus!==
0)this.drawShapeWithinBounds(b(f.position.x.valueOf()),c(f.position.y),k,e,g,f.lineSelectedStatus,J);else if(va&&w!=="never"&&this.drawShapeOrInterpolate(va,k,e,g,f.lineSelectedStatus,J),ya&&(w==="never"||!va)){var EIa=l(ya),n4a=EIa.next().value,Dt=EIa.next().value;this.drawShapeWithinBounds(n4a,Dt,k,e,g,f.lineSelectedStatus,J)}this.ctx.restore()}};
h.applyPathsToCanvas=function(a,b,c,d,e,f){this.ctx.save();this.ctx.clip(f);this.ctx.beginPath();switch(d){case "linear":d=l(a);for(a=d.next();!a.done;a=d.next())if(a=a.value,a[0]){var g=l(a[0]);f=g.next().value;g=g.next().value;this.ctx.moveTo(f,g);if(a.length===1)this.drawSinglePoint(f,g,c);else for(f=1;f<a.length;f++){var k=l(a[f]);g=k.next().value;k=k.next().value;this.ctx.lineTo(g,k);e&&(this.ctx.strokeStyle=jl(b[f-1],this.base),this.ctx.fillStyle=jl(b[f-1],this.base),this.ctx.stroke(),this.ctx.beginPath(),
this.ctx.moveTo(g,k))}}break;case "step-before":case "step-after":a=l(a);for(f=a.next();!f.done;f=a.next())if(f=f.value,f[0]){k=l(f[0]);g=k.next().value;var m=k.next().value;k=g;var r=m;this.ctx.moveTo(k,r);if(f.length===1)this.drawSinglePoint(k,r,c);else for(g=1;g<f.length;g++){m=l([k,r]);k=m.next().value;var w=m.next().value;m=k;r=l(f[g]);k=r.next().value;r=r.next().value;d==="step-before"?this.ctx.lineTo(m,r):this.ctx.lineTo(k,w);this.ctx.lineTo(k,r);e&&(this.ctx.strokeStyle=jl(b[g-1],this.base),
this.ctx.fillStyle=jl(b[g-1],this.base),this.ctx.stroke(),this.ctx.beginPath(),this.ctx.moveTo(k,r))}}break;case "monotonicX":b=new b3c(this.ctx);e=l(a);for(d=e.next();!d.done;d=e.next())if(d=d.value,d[0])if(f=l(d[0]),a=f.next().value,f=f.next().value,b.lineStart(),b.point(a,f),d.length===1)this.drawSinglePoint(a,f,c);else{for(a=1;a<d.length;a++)g=l(d[a]),f=g.next().value,g=g.next().value,b.point(f,g);b.lineEnd()}break;default:sb(d,"value not in LineInterpolationMethod type.")}this.ctx.stroke();this.ctx.restore()};
h.drawSinglePoint=function(a,b,c){c==="never"?(this.ctx.beginPath(),this.ctx.arc(a,b,2,0,m3c),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke()):(this.ctx.moveTo(a-2,b),this.ctx.lineTo(a+2,b))};
h.drawShape=function(a,b,c,d,e,f){e=e===void 0?0:e;var g=(f=f===void 0?!1:f)?12:16.8;this.ctx.moveTo(a,b);a=aDa(a,b,c,d?g/d.width:1);f&&e===1?(this.ctx.save(),this.ctx.globalAlpha=1,this.ctx.lineWidth=3,this.ctx.strokeStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.ctx.fillStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.ctx.stroke(a),this.ctx.fill(a),this.ctx.restore(),this.ctx.save(),this.ctx.globalAlpha=1,this.ctx.lineWidth=3,this.ctx.strokeStyle=this.ctx.fillStyle,
this.ctx.fillStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.ctx.stroke(a),this.ctx.fill(a),this.ctx.restore(),this.ctx.globalAlpha=.25,this.ctx.fill(a),this.ctx.globalAlpha=1):(this.ctx.save(),this.ctx.globalAlpha=1,f&&(this.ctx.lineWidth=3),this.ctx.strokeStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.ctx.fillStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.ctx.stroke(a),this.ctx.fill(a),this.ctx.restore(),this.ctx.fill(a))};
h.drawShapeWithinBounds=function(a,b,c,d,e,f,g){a<c.left-1||a>c.right+1||b<c.top-1||b>c.bottom+1||this.drawShape(a,b,d,e,f===void 0?0:f,g===void 0?!1:g)};
h.drawShapeOrInterpolate=function(a,b,c,d,e,f){if(c&&a){var g=a.x1,k=a.y1;a.x0>a.x1&&(g=a.x0,k=a.y0);g>b.right+1&&(g=Math.max(b.right,Math.min(a.x0,a.x1)),k=dl(a.x0,a.y0,a.x1,a.y1,g));k<b.top-1&&(k=Math.min(b.top,Math.max(a.y0,a.y1)),g=dl(a.y0,a.x0,a.y1,a.x1,k));k>b.bottom+1&&(k=Math.max(b.bottom,Math.min(a.y0,a.y1)),g=dl(a.y0,a.x0,a.y1,a.x1,k));this.drawShapeWithinBounds(g,k,b,c,d,e===void 0?0:e,f===void 0?!1:f)}};
h.generateMulticolorPoints=function(a,b){var c=[],d=[];c.push(a[0]);for(var e=1;e<a.length;e++){var f=a[e-1],g=a[e],k=[].concat(n(b));f.y>g.y&&k.reverse();k=l(k);for(var m=k.next();!m.done;m=k.next())if(m=m.value,f.x!==g.x&&m.interval.min<=f.y&&f.y<=m.interval.max){var r=0;if(f.y===g.y){r=g.x;var w=g.y}else w=f.y<g.y?Math.min(g.y,m.interval.max):Math.max(g.y,m.interval.min),typeof g.x==="number"&&typeof f.x==="number"?r=f.x+(g.x-f.x)*(w-f.y)/(g.y-f.y):g.x instanceof Date&&f.x instanceof Date&&(r=
new Date(f.x.valueOf()+(g.x.valueOf()-f.x.valueOf())*(w-f.y)/(g.y-f.y)));f={x:r,y:w};c.push(f);d.push(m.color)}}return{multicolorPoints:c,linePathsColors:d}};h.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};var o3c={fillStyle:"var(--ac-sys-color-chart-on-surface, #000)",globalAlpha:1,globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-chart-on-surface, #000)",lineWidth:1.25},p3c={globalAlpha:.3,lineWidth:.5},q3c={globalAlpha:.05},r3c={strokeStyle:"var(--ac-sys-color-chart-surface, #FFF)",lineWidth:2},s3c=2*Math.PI,t3c=function(a,b){UG.call(this,a);this.queueService=b;this.shapeCanvas=document.createElement("canvas");this.bandCanvas=document.createElement("canvas");this.bandCanvasAttached=
!1;this.fullDrawDebounceId=null;this.enableManualLatencyTracking=!1;this.shapeCanvas.setAttribute("aria-hidden","true");this.shapeCanvas.style.position="absolute";b=this.shapeCanvas.getContext("2d");if(!b)throw Error("Jc");this.shapeCtx=b;this.bandCanvas.setAttribute("aria-hidden","true");this.bandCanvas.style.position="absolute";b=this.bandCanvas.getContext("2d");if(!b)throw Error("Jc");this.bandCtx=b;a.appendChild(this.shapeCanvas)};Z(t3c,UG);h=t3c.prototype;h.drawV1=function(a){this.drawInternal(a)};
h.onXAxisChange=function(a,b){el(a)&&this.drawInternal(b)};h.onResizeChange=function(a,b){var c=this;Bk(a)&&(Ck(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),VG(this,b,this.canvas,this.ctx),VG(this,b,this.shapeCanvas,this.shapeCtx),this.fullDrawDebounceId=setTimeout(function(){c.drawInternal(b)},250)))};h.onYAxisChange=function(a,b){zl(a)&&this.drawInternal(b)};h.onSeriesSelectionChange=function(a,b){gDa(a)&&this.drawInternal(b)};
h.onColorMapChange=function(a,b){this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.unpackForClearing=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize;if(!d||d.height<=0||d.width<=0)return null;var e=d.width-d.margins.left-d.margins.right,f=d.height-d.margins.top-d.margins.bottom,g=d.margins.top,k=d.height-d.margins.bottom,m=d.margins.left,r=d.width-d.margins.right;b=!b||!a.colorStrategy.isReady||a.colorStrategy.isReady(b,c);return{config:a,canvasWidth:d.width,canvasHeight:d.height,bounds:{top:g,right:r,bottom:k,left:m},bodyLeft:m,bodyTop:g,bodyBottom:k,
bodyRight:r,bodyWidth:e,bodyHeight:f,isColorMapReady:b}};h.shouldShowShape=function(a,b,c,d,e){return a&&b&&!c&&!d||a&&e&&!c&&d?!1:!0};
h.unpackForDrawing=function(a){var b=this,c=a.scope,d=a.data,e=a.state,f=a.config;a=this.unpackForClearing(a);if(!e||!f||!a)return null;var g=e.xAxis,k=e.yAxis,m=e.seriesSelection,r=e.brush,w=e.lastInteraction,x=a.bodyLeft,D=a.bodyRight;if(!(g&&m&&k&&r))return null;var H=Al(k,a.bodyTop,a.bodyBottom,(d==null?0:d.unit)?d.unit:null),J=hl(g,x,D,d==null?void 0:d.xAxisUnit),O=il(g,x,D,d==null?void 0:d.xAxisUnit);if(!J||!H||!O||g.min===null||g.max===null)return null;var R=(c=m.byLayer.entities[c.layerId])?
c.selectedSeries.map(function(Sa){return Sa.seriesId}):[],V=c?c.hoveredSeries.map(function(Sa){return Sa.seriesId}):[],ba=Object.values(m.byLayer.entities).filter(function(Sa){return!!Sa}).some(function(Sa){return rl(Sa.selectedSeries).length||rl(Sa.hoveredSeries).length});c=f.colorStrategy.getShape?function(Sa){var ab,rb;return b.shouldShowShape((ab=f.clickDotInteraction)!=null?ab:!1,ba,R.includes(Sa.id),V.includes(Sa.id),(rb=f.multiselectMode)!=null?rb:!1)?f.colorStrategy.getShape(Sa,e):""}:null;
var pa,ua,ma,Da=(ma=w==null?void 0:(pa=w.domain)==null?void 0:pa.multiselectAnchor)!=null?ma:w==null?void 0:(ua=w.domain)==null?void 0:ua.click,ja,va=w==null?void 0:(ja=w.domain)==null?void 0:ja.hover,ya;return Object.assign({},a,{data:d,colorMap:function(Sa){return f.colorStrategy.getColor(Sa,e)},shapeMap:c,shapeStateMap:function(Sa){if(f.clickDotInteraction&&Da&&R.includes(Sa.id)){var ab=Jl(Sa.data||[],O(Da),null,!0);return{position:Sa.data[ab],lineSelectedStatus:1}}return f.clickDotInteraction&&
va&&V.includes(Sa.id)&&!f.multiselectMode?(ab=Jl(Sa.data||[],O(va),null,!0),{position:Sa.data[ab],lineSelectedStatus:2}):{position:null,lineSelectedStatus:0}},shapeBoundingBox:f.colorStrategy.shapeBoundingBox,dataMap:function(Sa,ab){return[J(Sa.valueOf()),H(ab)]},domainMap:J,rangeMap:H,inverseDomainMap:O,selectedSeriesIds:R,hoveredSeriesIds:V,anySeriesSelectedOrHovered:ba,brushing:r.brushing||!1,xAxisMin:g.min,xAxisMax:g.max,clickDotInteraction:(ya=f.clickDotInteraction)!=null?ya:!1})};
h.unpackForGetValues=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize;c=c.xAxis;return d&&c&&c.min!==null&&c.max!==null?(c=il(c,d.margins.left,d.width-d.margins.right,b==null?void 0:b.xAxisUnit))?{data:b,config:a,inverseDomainMap:c}:null:null};
h.getSeriesIdsBetween=function(a,b,c,d){var e=this.unpackForDrawing(a);if(!e)return null;a=e.config;var f=a.outputPeriodMs,g=a.useLegacyGapDetection,k=e.inverseDomainMap(d),m=[];e.data&&(m=e.data.series.reduce(function(w,x){var D=l(WFa(x,k.valueOf(),0)),H=D.next().value;D=D.next().value;H=x.data[H];D=x.data[D];var J=e.config.pointConnectionMethod;if(!H||!D)return w;J!=="always"&&(J!=="gap_detection"&&J!=="zero_fill"||Kl(f,H,D,g).gapDetected)||w.push({series:x,value:cl(+H.x,+D.x,H.y,D.y,+k)});J===
"zero_fill"&&Kl(f,H,D,g).gapDetected&&w.push({series:x,value:0});return w},[]).sort(function(w,x){return x.value>w.value?-1:x.value<w.value?1:0}).map(function(w){return w.series}));d=[];a=!1;m=l(m);for(var r=m.next();!r.done;r=m.next()){r=r.value;if(r.id===b||r.id===c)if(a){d.push(r.id);break}else a=!0;a&&d.push(r.id)}return d};
h.getSeriesIdOfClosestLine=function(a,b,c){a=this.unpackForDrawing(a);if(a==null||!a.data)return null;for(var d=Infinity,e=null,f=a.inverseDomainMap(b.x),g=a.inverseDomainMap(c)-a.inverseDomainMap(0),k=l(a.data.series),m=k.next();!m.done;m=k.next()){m=m.value;var r=l(WFa(m,f,g)),w=r.next().value;r=r.next().value;r=Math.min(r,m.data.length-1);for(w=Math.max(0,w);w<r;w++){var x=m.data[w],D=m.data[w+1];x=this.distanceFromSegment([b.x,b.y],a.dataMap(x.x,x.y),a.dataMap(D.x,D.y));x<d&&x<=c&&(d=x,e=m.id)}}return e};
h.getValuesAtPosition=function(a,b){a=this.unpackForGetValues(a);if(a==null||!a.data)return null;b=a.inverseDomainMap(b.x);return Nl(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,a.config.nearestPoint)};h.getValuesAtTime=function(a,b,c){a=this.unpackForGetValues(a);return a!=null&&a.data?Nl(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,a.config.nearestPoint,c):null};
h.distanceFromSegment=function(a,b,c){var d=function(f,g){return Math.pow(g[0]-f[0],2)+Math.pow(g[1]-f[1],2)},e=d(b,c);if(e===0)return Math.sqrt(d(a,b));e=((a[0]-b[0])*(c[0]-b[0])+(a[1]-b[1])*(c[1]-b[1]))/e;e=Math.max(0,Math.min(1,e));return Math.sqrt(d(a,[b[0]+e*(c[0]-b[0]),b[1]+e*(c[1]-b[1])]))};
h.clearInternal=function(a){a=this.unpackForClearing(a);if(!a||!a.isColorMapReady)return!1;this.canvas.style.left="0px";this.canvas.style.top="0px";ml(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";ml(this.shapeCanvas,this.base,a.canvasHeight,a.canvasWidth);this.bandCanvas.style.left="0px";this.bandCanvas.style.top="0px";ml(this.bandCanvas,this.base,a.canvasHeight,a.canvasWidth);return!0};
h.drawInternal=function(a){var b=performance.now();if(this.clearInternal(a)&&(SG(this,this.canvas),SG(this,this.shapeCanvas),this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),a=this.unpackForDrawing(a))){var c,d,e=(d=(c=a.config.styles)==null?void 0:c.lineWidth)!=null?d:1.25;c=Math.ceil(Math.max(0,e-1.25)/2);this.ctx.save();d=new Path2D;d.rect(a.bodyLeft,a.bodyTop-c,a.bodyWidth,a.bodyHeight+2*c+1);this.ctx.clip(d);c=a.anySeriesSelectedOrHovered&&!a.brushing;
e={lineDrawingOptions:Object.assign({},o3c,{lineWidth:e,globalAlpha:c?.15:1}),bandLineDrawingOptions:p3c,bandShadingDrawingOptions:q3c};this.shapeCtx.globalAlpha=c?.15:1;var f;c=(f=a.data)==null?void 0:f.series;if(c==null?0:c.length){if(f=a.shapeMap){d=new Set;for(var g=l(c),k=g.next();!k.done;k=g.next())d.add(f(k.value));c.length>d.size&&(f=null)}this.drawLines(c,a.domainMap,a.rangeMap,a.colorMap,f,a.shapeStateMap,a.shapeBoundingBox,a.bounds,a.config,e,a.clickDotInteraction)}this.ctx.restore();RG(this,
a.xAxisMin,a.xAxisMax);a=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a});this.enableManualLatencyTracking&&QG(this)}};
h.drawLines=function(a,b,c,d,e,f,g,k,m,r,w){this.ctx.save();var x;kl(this.ctx,Object.assign({},r.lineDrawingOptions,{lineDash:(x=m.styles)==null?void 0:x.lineDash}),this.base);kl(this.shapeCtx,r3c,this.base);x=!1;a=l(a);for(var D=a.next();!D.done;D=a.next()){D=D.value;var H=d(D),J=e&&e(D),O=f&&f(D),R=void 0;if((R=m.styles)==null?0:R.lineBorderColor){var V=R=void 0,ba=void 0,pa=2*((ba=(R=r)==null?void 0:(V=R.lineDrawingOptions)==null?void 0:V.lineWidth)!=null?ba:1);R=Object.assign({},r,{lineDrawingOptions:Object.assign({},
r.lineDrawingOptions,{lineWidth:pa})});V=void 0;this.drawLine({points:D.data,domainMap:b,rangeMap:c,color:(V=m.styles)==null?void 0:V.lineBorderColor,shape:J,shapeState:O,shapeBoundingBox:g,bounds:k,outputPeriodMs:m.outputPeriodMs,pointConnectionMethod:m.pointConnectionMethod,useLegacyGapDetection:m.useLegacyGapDetection,drawingOptions:R,lineInterpolationMethod:m.lineInterpolationMethod,clickDotInteraction:w})}D=this.drawLine({points:D.data,domainMap:b,rangeMap:c,color:H,shape:J,shapeState:O,shapeBoundingBox:g,
bounds:k,outputPeriodMs:m.outputPeriodMs,pointConnectionMethod:m.pointConnectionMethod,useLegacyGapDetection:m.useLegacyGapDetection,drawingOptions:r,lineInterpolationMethod:m.lineInterpolationMethod,clickDotInteraction:w}).drewBands;x||(x=D)}x&&!this.bandCanvasAttached&&(this.base.insertBefore(this.bandCanvas,this.canvas),this.bandCanvasAttached=!0);this.ctx.restore()};
h.drawLine=function(a){var b=a.domainMap,c=a.rangeMap,d=a.color,e=a.shape,f=a.shapeState,g=a.shapeBoundingBox,k=a.bounds,m=a.outputPeriodMs,r=a.pointConnectionMethod,w=a.useLegacyGapDetection,x=a.drawingOptions,D=a.lineInterpolationMethod,H=a.clickDotInteraction,J=a.points;if(!J.length)return{drewBands:!1};var O=m||Infinity,R=[],V=[],ba,pa,ua,ma,Da=typeof((ba=J)==null?void 0:(pa=ba[0])==null?void 0:pa.min)==="number"&&typeof((ua=J)==null?void 0:(ma=ua[0])==null?void 0:ma.max)==="number",ja=void 0,
va=null,ya=[],Sa=[],ab=void 0,rb=function(Dt,gj){ab?(ab.x=Dt,ab.y=gj):ab={x:Dt,y:gj}},ac=typeof d==="string"?void 0:d,pc=!!ac,kc=[];if(pc){var vc=this.generateMulticolorPoints(J,ac),tb=vc.linePathsColors;J=vc.multicolorPoints;kc=tb}for(var Qb=0;Qb<J.length;Qb++){var ib=J[Qb-1]||null,bc=J[Qb],xc=b(bc.x.valueOf()),ud=void 0,Tb=l(nl([xc,c(bc.y)],(ud=x.lineDrawingOptions.lineWidth)!=null?ud:1)),qc=Tb.next().value,Sc=Tb.next().value,pd=qc,Uc=Sc,ne=void 0,ff=void 0,bf=void 0;if(Da){var Mh=void 0,ux=void 0,
qp=void 0,Jj=l(nl([xc,c((Mh=bc.min)!=null?Mh:bc.y),c((ux=bc.max)!=null?ux:bc.y)],(qp=x.bandLineDrawingOptions.lineWidth)!=null?qp:1));ne=Jj.next().value;ff=Jj.next().value;bf=Jj.next().value}(!va||pd>va[0])&&pd>=k.left-1&&pd<=k.right+1&&Uc>=k.top-1&&Uc<=k.bottom+1&&(va=[pd,Uc]);var bn=!1,Wq=0,vx=!1;if(ib){if(r==="gap_detection"||r==="zero_fill"){var nk=Kl(O,ib,bc,w);bn=nk.gapDetected;Wq=nk.gapWidthMs}if(bc.tileDomain&&ib.tileDomain&&bc.tileDomain!==ib.tileDomain){var Ql=l(ib.tileDomain),rp=Ql.next().value,
wx=Ql.next().value,dM=rp,Rl=wx,iB=l(bc.tileDomain),CY=iB.next().value,baa=iB.next().value,caa=CY;if(dM>baa||caa>Rl)vx=!0}}if(bn||vx||r==="never")if(vx||r!=="zero_fill")ya.length&&R.push(ya),ya=[[pd,Uc]],Da&&(V.push(Sa),Sa=[],ne!==void 0&&ff!==void 0&&bf!==void 0&&Sa.push([ne,ff,bf]));else{for(var daa=Wq/O-1,DY=bc.x.valueOf()>ib.x.valueOf(),Ly=DY?ib.x.valueOf()+O:ib.x.valueOf()-O,My=0;My<daa;My++){var qP=void 0,rP=l(nl([b(Ly),c(0)],(qP=x.lineDrawingOptions.lineWidth)!=null?qP:1)),EY=rP.next().value,
Ih=rP.next().value,Gra=EY,FY=Ih;ya.push([Gra,FY]);ja=pl(ja,Gra,FY,ab,k);if(Da){var eaa=l(nl([b(Ly),c(0)],x.bandLineDrawingOptions.lineWidth)),AIa=eaa.next().value,BIa=eaa.next().value;Sa.push([AIa,BIa,BIa])}rb(Gra,FY);Ly=DY?Ly+O:Ly-O}ya.push([pd,Uc]);ja=pl(ja,pd,Uc,ab,k);Da&&ne!==void 0&&ff!==void 0&&bf!==void 0&&Sa.push([ne,ff,bf])}else ya.push([pd,Uc]),ja=pl(ja,pd,Uc,ab,k),Da&&ne!==void 0&&ff!==void 0&&bf!==void 0&&Sa.push([ne,ff,bf]);rb(pd,Uc)}ya.length&&R.push(ya);Da&&Sa.length&&V.push(Sa);if(r===
"zero_fill"&&m&&R.length&&R[0].length&&R[R.length-1].length){var GY=Math.abs(b(m)-b(0)),fw=R[0],Fm=R[R.length-1],Qo=fw[0][0]<Fm[Fm.length-1][0],HY=c(0),oD=function(Dt,gj,Em){var pD=Em?{x:Dt[0][0],y:Dt[0][1]}:{x:Dt[Dt.length-1][0],y:Dt[Dt.length-1][1]},gw;gj=l(nl([gj,HY],(gw=x.lineDrawingOptions.lineWidth)!=null?gw:1));gw=gj.next().value;gj=gj.next().value;if((!Qo&&Em||Qo&&!Em)&&gw>pD.x||(!Qo&&!Em||Qo&&Em)&&gw<pD.x)ja=pl(ja,gw,gj,pD,k),Em?Dt.unshift([gw,gj]):Dt.push([gw,gj])};Qo?(oD(fw,fw[0][0]-GY,
!0),oD(fw,k.left,!0),oD(Fm,Fm[Fm.length-1][0]+GY,!1),oD(Fm,k.right,!1)):(oD(fw,fw[0][0]+GY,!0),oD(fw,k.right,!0),oD(Fm,Fm[Fm.length-1][0]-GY,!1),oD(Fm,k.left,!1))}this.ctx.save();var Ny;this.ctx.lineWidth=(Ny=x.lineDrawingOptions.lineWidth)!=null?Ny:1;pc||(this.ctx.strokeStyle=jl(d,this.base),this.shapeCtx.fillStyle=jl(d,this.base));this.applyPathsToCanvas(R,kc,r,D,pc);if(e)if(H&&f.position&&f.lineSelectedStatus!==0)this.drawShapeWithinBounds(b(f.position.x.valueOf()),c(f.position.y),k,e,g,f.lineSelectedStatus,
H);else if(ja&&r!=="never"&&this.drawShapeOrInterpolate(ja,k,e,g,f.lineSelectedStatus,H),va&&(r==="never"||!ja)){var Hra=l(va),Ira=Hra.next().value,FI=Hra.next().value;this.drawShapeWithinBounds(Ira,FI,k,e,g,f.lineSelectedStatus,H)}if(V.length){pc||(this.bandCtx.fillStyle=jl(d,this.base),this.bandCtx.strokeStyle=jl(d,this.base));for(var faa=l(V),Jra=faa.next();!Jra.done;Jra=faa.next()){var GI=Jra.value;if(GI.length!==0){var Kra=l(GI[0]),Ct=Kra.next().value,IY=Kra.next().value,tP=Kra.next().value,
Fn=Ct,Oy=IY,Ro=tP,HI=new Path2D,II=new Path2D,Py=new Path2D;if(GI.length===1)HI.moveTo(Fn-2,Oy),HI.lineTo(Fn+2,Oy),II.moveTo(Fn-2,Ro),II.lineTo(Fn+2,Ro),Py.moveTo(Fn-2,Ro),Py.lineTo(Fn+2,Ro),Py.lineTo(Fn+2,Oy),Py.lineTo(Fn-2,Oy);else{HI.moveTo(Fn,Oy);II.moveTo(Fn,Ro);Py.moveTo(Fn,Ro);for(var Lra=1;Lra<GI.length;Lra++){var Mra=l(GI[Lra]),Nra=Mra.next().value,CIa=Mra.next().value,Ora=Mra.next().value,gaa=Nra,DIa=Ora;HI.lineTo(gaa,CIa);II.lineTo(gaa,DIa);Py.lineTo(gaa,DIa)}for(var Pra=GI.length-1;Pra>=
0;Pra--){var Qra=l(GI[Pra]),EIa=Qra.next().value,n4a=Qra.next().value;Py.lineTo(EIa,n4a)}}Py.closePath();kl(this.bandCtx,x.bandShadingDrawingOptions,this.base);this.bandCtx.fill(Py);kl(this.bandCtx,x.bandLineDrawingOptions,this.base);this.bandCtx.stroke(HI);this.bandCtx.stroke(II)}}}this.ctx.restore();return{drewBands:!(!Da||!V.length)}};
h.applyPathsToCanvas=function(a,b,c,d,e){this.ctx.beginPath();switch(d){case "linear":d=l(a);for(a=d.next();!a.done;a=d.next())if(a=a.value,a[0]){var f=l(a[0]),g=f.next().value;f=f.next().value;this.ctx.moveTo(g,f);if(a.length===1)this.drawSinglePoint(g,f,c);else for(g=1;g<a.length;g++){var k=l(a[g]);f=k.next().value;k=k.next().value;this.ctx.lineTo(f,k);e&&(this.ctx.strokeStyle=jl(b[g-1],this.base),this.shapeCtx.fillStyle=jl(b[g-1],this.base),this.ctx.stroke(),this.ctx.beginPath(),this.ctx.moveTo(f,
k))}}break;case "step-before":case "step-after":a=l(a);for(g=a.next();!g.done;g=a.next())if(g=g.value,g[0]){k=l(g[0]);f=k.next().value;var m=k.next().value;k=f;var r=m;this.ctx.moveTo(k,r);if(g.length===1)this.drawSinglePoint(k,r,c);else for(f=1;f<g.length;f++){m=l([k,r]);k=m.next().value;var w=m.next().value;m=k;r=l(g[f]);k=r.next().value;r=r.next().value;d==="step-before"?this.ctx.lineTo(m,r):this.ctx.lineTo(k,w);this.ctx.lineTo(k,r);e&&(this.ctx.strokeStyle=jl(b[f-1],this.base),this.shapeCtx.fillStyle=
jl(b[f-1],this.base),this.ctx.stroke(),this.ctx.beginPath(),this.ctx.moveTo(k,r))}}break;case "monotonicX":b=new b3c(this.ctx);e=l(a);for(d=e.next();!d.done;d=e.next())if(d=d.value,d[0])if(g=l(d[0]),a=g.next().value,g=g.next().value,b.lineStart(),b.point(a,g),d.length===1)this.drawSinglePoint(a,g,c);else{for(a=1;a<d.length;a++)f=l(d[a]),g=f.next().value,f=f.next().value,b.point(g,f);b.lineEnd()}break;default:sb(d,"value not in LineInterpolationMethod type.")}this.ctx.stroke()};
h.drawSinglePoint=function(a,b,c){c==="never"?(this.ctx.beginPath(),this.ctx.arc(a,b,2,0,s3c),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke()):(this.ctx.moveTo(a-2,b),this.ctx.lineTo(a+2,b))};
h.drawShape=function(a,b,c,d,e,f){e=e===void 0?0:e;var g=(f=f===void 0?!1:f)?12:16.8;this.shapeCtx.moveTo(a,b);a=aDa(a,b,c,d?g/d.width:1);f&&e===1?(this.shapeCtx.save(),this.shapeCtx.globalAlpha=1,this.shapeCtx.lineWidth=3,this.shapeCtx.strokeStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.fillStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.stroke(a),this.shapeCtx.fill(a),this.shapeCtx.restore(),this.shapeCtx.save(),this.shapeCtx.globalAlpha=
1,this.shapeCtx.lineWidth=3,this.shapeCtx.strokeStyle=this.shapeCtx.fillStyle,this.shapeCtx.fillStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.stroke(a),this.shapeCtx.fill(a),this.shapeCtx.restore(),this.shapeCtx.globalAlpha=.25,this.shapeCtx.fill(a),this.shapeCtx.globalAlpha=1):(this.shapeCtx.save(),this.shapeCtx.globalAlpha=1,f&&(this.shapeCtx.lineWidth=3),this.shapeCtx.strokeStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.fillStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",
this.base),this.shapeCtx.stroke(a),this.shapeCtx.fill(a),this.shapeCtx.restore(),this.shapeCtx.fill(a))};h.drawShapeWithinBounds=function(a,b,c,d,e,f,g){a<c.left-1||a>c.right+1||b<c.top-1||b>c.bottom+1||this.drawShape(a,b,d,e,f===void 0?0:f,g===void 0?!1:g)};
h.drawShapeOrInterpolate=function(a,b,c,d,e,f){if(c&&a){var g=a.x1,k=a.y1;a.x0>a.x1&&(g=a.x0,k=a.y0);g>b.right+1&&(g=Math.max(b.right,Math.min(a.x0,a.x1)),k=dl(a.x0,a.y0,a.x1,a.y1,g));k<b.top-1&&(k=Math.min(b.top,Math.max(a.y0,a.y1)),g=dl(a.y0,a.x0,a.y1,a.x1,k));k>b.bottom+1&&(k=Math.max(b.bottom,Math.min(a.y0,a.y1)),g=dl(a.y0,a.x0,a.y1,a.x1,k));this.drawShapeWithinBounds(g,k,b,c,d,e===void 0?0:e,f===void 0?!1:f)}};
h.generateMulticolorPoints=function(a,b){var c=[],d=[];c.push(a[0]);for(var e=1;e<a.length;e++){var f=a[e-1],g=a[e],k=[].concat(n(b));f.y>g.y&&k.reverse();k=l(k);for(var m=k.next();!m.done;m=k.next())if(m=m.value,f.x!==g.x&&m.interval.min<=f.y&&f.y<=m.interval.max){var r=0;if(f.y===g.y){r=g.x;var w=g.y}else w=f.y<g.y?Math.min(g.y,m.interval.max):Math.max(g.y,m.interval.min),typeof g.x==="number"&&typeof f.x==="number"?r=f.x+(g.x-f.x)*(w-f.y)/(g.y-f.y):g.x instanceof Date&&f.x instanceof Date&&(r=
new Date(f.x.valueOf()+(g.x.valueOf()-f.x.valueOf())*(w-f.y)/(g.y-f.y)));f={x:r,y:w};c.push(f);d.push(m.color)}}return{multicolorPoints:c,linePathsColors:d}};h.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};var u3c=Object.assign({},o3c,{lineWidth:1.75}),v3c=Object.assign({},p3c,{globalAlpha:1}),w3c=Object.assign({},q3c,{globalAlpha:.3}),x3c=function(){t3c.apply(this,arguments)};Z(x3c,t3c);x3c.prototype.onSeriesSelectionChange=function(a,b){tl(a,b.scope.layerId)&&this.drawInternal(b)};
x3c.prototype.clearInternal=function(a){a=this.unpackForClearing(a);if(!a||!a.isColorMapReady)return!1;this.canvas.style.left="0px";this.canvas.style.top="0px";ml(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";ml(this.shapeCanvas,this.base,a.canvasHeight,a.canvasWidth);this.bandCanvas.style.left="0px";this.bandCanvas.style.top="0px";ml(this.bandCanvas,this.base,a.canvasHeight,a.canvasWidth);var b=new Path2D;b.rect(a.bodyLeft,
a.bodyTop,a.bodyWidth,a.bodyHeight+1);this.ctx.clip(b);return!0};
x3c.prototype.drawInternal=function(a){if(this.clearInternal(a)&&(a=this.unpackForDrawing(a))){var b=a.selectedSeriesIds;a.brushing||(b=b.concat(a.hoveredSeriesIds));var c,d=(c=a.data)==null?void 0:c.series.filter(function(g){return b.includes(g.id)});if(d==null?0:d.length){var e,f;this.drawLines(d,a.domainMap,a.rangeMap,a.colorMap,a.shapeMap,a.shapeStateMap,a.shapeBoundingBox,a.bounds,a.config,{lineDrawingOptions:Object.assign({},u3c,{lineWidth:((f=(e=a.config.styles)==null?void 0:e.lineWidth)!=
null?f:1.25)+.5}),bandLineDrawingOptions:v3c,bandShadingDrawingOptions:w3c},a.clickDotInteraction)}RG(this,a.xAxisMin,a.xAxisMax)}};var LGa="var(--ac-sys-color-palette-category1, #1A73E8);var(--ac-sys-color-palette-category2, #129EAF);var(--ac-sys-color-palette-category3, #D01884);var(--ac-sys-color-palette-category4, #E64A19);var(--ac-sys-color-palette-category5, #7627BB);var(--ac-sys-color-palette-category6, #34A853);var(--ac-sys-color-palette-category7, #283593);var(--ac-sys-color-palette-category8, #455A64);var(--ac-sys-color-palette-category9, #EF6C00);var(--ac-sys-color-palette-category10, #B31412);var(--ac-sys-color-palette-category11, #0D652D);var(--ac-sys-color-palette-category12, #0091EA)".split(";");var XH=function(){var a=a===void 0?LGa:a;var b=b===void 0?R1c:b;var c=c===void 0?S1c:c;this.colorPalette=a;this.shapePalette=b;this.shapeBoundingBox=c},y3c=function(a,b,c,d){var e={},f=new Map,g={};c=l(c);for(var k=c.next();!k.done;k=c.next()){k=l(Object.entries(k.value));for(var m=k.next();!m.done;m=k.next()){var r=l(m.value);m=r.next().value;r=r.next().value;g[m]=r;m=void 0;f.set(r,((m=f.get(r))!=null?m:0)+1)}}c=new Map(f);k=l(Object.entries(d));for(m=k.next();!m.done;m=k.next())r=l(m.value),m=
r.next().value,r=r.next().value,a.includes(m)&&(m=void 0,f.set(r,((m=f.get(r))!=null?m:0)+1));a=l(a);for(k=a.next();!k.done;k=a.next())if(k=k.value,(m=g[k])||!d[k]||c.get(d[k])||(m=d[k]),m)e[k]=m;else if(f.size<b.length)m=b.filter(function(J){return!f.get(J)}),e[k]=m[0],f.set(m[0],1);else{m=b[0];r=Infinity;for(var w=l(b),x=w.next();!x.done;x=w.next()){x=x.value;var D=void 0,H=(D=f.get(x))!=null?D:0;H<r&&(r=H,m=x)}r=void 0;f.set(m,((r=f.get(m))!=null?r:0)+1);e[k]=m}return e};
XH.prototype.onDataChange=function(a,b,c){b=b.series.map(function(r){return String(r.id)}).sort();var d,e=c==null?void 0:(d=c.colorMap)==null?void 0:d.byLayer.entities[a.layerId],f=e?e.order:z3c++,g;c=Object.values((c==null?void 0:(g=c.colorMap)==null?void 0:g.byLayer.entities)||{});g=c.filter(function(r){return r&&r.layerId!==a.layerId&&r.order<f}).map(function(r){var w;return(w=r==null?void 0:r.colorMap)!=null?w:{}});var k;g=y3c(b,this.colorPalette,g,(k=e==null?void 0:e.colorMap)!=null?k:{});k=
c.filter(function(r){return r&&r.layerId!==a.layerId&&r.order<f}).map(function(r){var w;return(w=r==null?void 0:r.shapeMap)!=null?w:{}});var m;b=y3c(b,this.shapePalette,k,(m=e==null?void 0:e.shapeMap)!=null?m:{});return{order:f,colorMap:g,shapeMap:b}};XH.prototype.isReady=function(a,b){var c,d=b==null?void 0:(c=b.colorMap)==null?void 0:c.colorMap;return d?a.series.every(function(e){return d[String(e.id)]}):!1};
XH.prototype.getColor=function(a,b){a=String(a.id);var c;return(b==null?0:(c=b.colorMap)==null?0:c.colorMap[a])?b.colorMap.colorMap[a]:this.colorPalette[Math.abs(JGa(a))%this.colorPalette.length]};XH.prototype.getShape=function(a,b){a=String(a.id);var c;return(b==null?0:(c=b.colorMap)==null?0:c.shapeMap)?b.colorMap.shapeMap[a]:this.shapePalette[Math.abs(JGa(a))%this.shapePalette.length]};var z3c=0;var A3c={clickSelect:!0,hoverHighlight:!0,clickDot:!1},B3c={lineDash:[],lineWidth:1.25},YH=function(a,b,c,d,e,f,g,k,m){eH.call(this,a,b,c);this.interactionService=e;this.instrumentationService=f;this.modalService=g;this.ngZone=k;this.data=null;this.loading=!1;this.error=null;this.pointConnectionMethod="gap_detection";this.lineInterpolationMethod="linear";this.alignmentPeriodMs=null;this.enableManualLatencyTracking=!1;this.outputPeriodMsInternal=null;this.colorStrategyInternal=new XH;this.layerName=
"";this.audioChartsEnabled=!0;this.refactorA11yNavInstructions=this.useLegacyGapDetection=!1;this.nearestPoint="default";this.onSelect=new ui;this.dataSubject=new Xj(this.data);this.updateGridTriggerSubject=new rf;this.gridGeneratorSubject=new Xj(null);this.defaultColumnMaskGeneratorSubject=new Xj(function(){return[]});this.xAxisRequirement=this.derivedMinMaxBand=this.yAxisRequirement=null;this.stylesInternal=B3c;this.interactionsInternal=A3c;this.isShiftKeyDown=this.isMetaKeyDown=this.isCtrlKeyDown=
!1;this.shiftSelectingFromSeriesId=null;this.isMouseOver=!1;this.hoverHighlightTriggerSubject=new vf(1);this.updateHoverValuesTriggerSubject=new vf(1);this.syncActionsBuffer=this.dataTypeError=null;this.colorRecalculationAttemptsRemaining=2;var r;this.configSubject=new Xj({pointConnectionMethod:this.pointConnectionMethod,lineInterpolationMethod:this.lineInterpolationMethod,colorStrategy:this.colorStrategy,outputPeriodMs:null,useLegacyGapDetection:this.useLegacyGapDetection,styles:this.styles,nearestPoint:this.nearestPoint,
clickDotInteraction:(r=this.interactions)==null?void 0:r.clickDot,multiselectMode:!1});this.gridGeneratorObservable=this.gridGeneratorSubject.pipe(nf(0),Ik(this.ngZone));this.defaultColumnMaskGeneratorObservable=this.defaultColumnMaskGeneratorSubject.pipe(nf(0),Ik(this.ngZone));this.layerType="graphic";m?(this.lineView=new n3c(a.nativeElement,d),this.views.push(this.lineView)):(this.lineView=new t3c(a.nativeElement,d),this.views.push(this.lineView),this.views.push(new x3c(a.nativeElement)));this.bindDrawInstrumentation()};
Z(YH,eH);YH.\u0275dir=eH.\u0275dir;YH.prototype.bindDrawInstrumentation=function(){var a=this;PG(this.lineView,function(b){C3c(a,Object.assign({},b,{hasCompleteData:!a.loading}))})};
var C3c=function(a,b){var c=b.drawStartTimestamp,d=b.drawStopTimestamp,e=b.hasCompleteData;a.scopeObservable.pipe(mf(1)).subscribe(function(f){var g=f.chartId;f=f.layerId;vH(a.instrumentationService,{type:"draw-start",layerType:"graphic",timestamp:c,chartId:g,layerId:f});vH(a.instrumentationService,{type:"draw-stop",layerType:"graphic",timestamp:d,chartId:g,layerId:f,metadata:{hasCompleteData:e}})})};h=YH.prototype;
h.onDataChange=function(a,b){var c=this,d=a.previousValue,e=a.currentValue;a=b.scope;var f=b.state,g=[],k;g.push(UH({chartId:b.scope.chartId,layerId:b.scope.layerId,yAxisId:b.scope.yAxisId,xAxisId:b.scope.xAxisId,valueType:1,unit:(e==null?void 0:e.unit)||null,pointConnectionMethod:((k=b.config)==null?void 0:k.pointConnectionMethod)||void 0,legendTemplate:this.legendTemplate,alignmentPeriodMs:this.alignmentPeriodMs||void 0,outputPeriodMs:this.outputPeriodMs||void 0}));g.push(TH({chartId:b.scope.chartId,
layerId:b.scope.layerId,series:(e==null?void 0:e.series.map(function(R){var V;return{seriesId:R.id,name:(V=R.name)!=null?V:R.id,drawnAs:0,lineDash:c.styles.lineDash,dataSeriesMetadata:R.metadata,statsModeSummaryValue:R.statsModeSummaryValue}}))||[]}));this.derivedMinMaxBand=mCa(e);(f==null?0:f.xAxis)&&d!==e&&((k=Zk(this.derivedMinMaxBand,(e==null?void 0:e.unit)||null,f.xAxis.min,f.xAxis.max,(e==null?void 0:e.xAxisUnit)||null,f.xAxis.unit||null))&&this.pointConnectionMethod==="zero_fill"&&(k=pCa(k)),
$k(this.yAxisRequirement,k)&&(this.yAxisRequirement=k,g.push(gH(this,this.yAxisRequirement))));d!==e&&(this.xAxisRequirement=nCa(e),g.push(hH(this,this.xAxisRequirement)));if(f&&e){if(d=kH(this.colorStrategy,a,e,f))this.store.dispatch(d),this.colorRecalculationAttemptsRemaining=2;this.withLatest(function(R){var V=R.scope;(R=R.state)&&g.push(c.createSetSeriesColorMetadataAction(V,e,R))});(d=this.updateMostRecentValues(b))&&g.push(d)}var m;if(d=f==null?void 0:(m=f.seriesSelection)==null?void 0:m.byLayer.entities[a.layerId]){m=
d.selectedSeries;d=d.hoveredSeries;var r,w=new Set((r=e==null?void 0:e.series.map(function(R){return R.id}))!=null?r:[]);r=m.filter(function(R){return w.has(R.seriesId)});r.length!==m.length&&g.push(EH({chartId:a.chartId,layerId:a.layerId,series:r}));r=d.filter(function(R){return w.has(R.seriesId)});if(r.length!==d.length){var x,D,H=f==null?void 0:(x=f.lastInteraction)==null?void 0:(D=x.domain)==null?void 0:D.hover;H&&(r=r.map(function(R){var V,ba,pa=(f==null?0:(V=f.lastInteraction)==null?0:(ba=V.domain)==
null?0:ba.hover)?c.getDatumIndices(b,R.seriesId,H,!0):void 0;return Object.assign({},R,{datumIndices:pa})}));g.push(GH({chartId:a.chartId,layerId:a.layerId,series:r}))}}this.updateGridTriggerSubject.next(b);var J,O;(f==null?0:(J=f.xAxisPin)==null?0:J.xPos)&&(f==null?0:(O=f.xAxisPin)==null?0:O.locked)&&(x=this.lineView.getValuesAtTime(b,f.xAxisPin.xPos),(x=this.updateTimeSeriesValues(x,0))&&g.push(x));return g};
h.onResizeChange=function(a,b){var c=[];Bk(a)&&(this.updateGridTriggerSubject.next(b),(a=this.updateMostRecentValues(b))&&c.push(a));return c};h.onYAxisChange=function(a,b){zl(a)&&this.updateGridTriggerSubject.next(b)};
h.onXAxisChange=function(a,b){var c=this,d=[];if(el(a)){var e=b.data,f=b.state;if(f==null?0:f.xAxis)(e=Zk(this.derivedMinMaxBand,(e==null?void 0:e.unit)||null,f.xAxis.min,f.xAxis.max,(e==null?void 0:e.xAxisUnit)||null,f.xAxis.unit||null))&&this.pointConnectionMethod==="zero_fill"&&(e=pCa(e)),$k(this.yAxisRequirement,e)&&(this.yAxisRequirement=e,d.push(gH(this,this.yAxisRequirement)));(e=this.updateMostRecentValues(b))&&d.push(e)}(el(a)||fl(a)||gl(a))&&this.updateGridTriggerSubject.next(b);if(SCa(a)){var g=
void 0;this.defaultColumnMaskGeneratorSubject.next(function(){var k=null;c.gridGeneratorSubject.pipe(mf(1)).subscribe(function(m){k=m&&m()});g===void 0&&(g=c.generateDefaultColumnMask(b,k));return g})}return d};h.onSeriesSelectionChange=function(){this.updateMultiselectMode()};
h.onXAxisPinChange=function(a,b){var c=[],d,e;if(((d=a.previousValue)==null?void 0:d.xPos)!==((e=a.currentValue)==null?void 0:e.xPos)){var f;a=this.lineView.getValuesAtTime(b,((f=a.currentValue)==null?void 0:f.xPos)||null);if(!a)return;(f=this.updateTimeSeriesValues(a,0))&&c.push(f)}return c};
h.onColorMapChange=function(a,b){var c=this;a=b.scope;var d=b.data;b=b.state;var e=[];d&&b&&(this.colorRecalculationAttemptsRemaining>0&&(b=kH(this.colorStrategy,a,d,b))&&(this.store.dispatch(b),this.colorRecalculationAttemptsRemaining--),this.withLatest(function(f){var g=f.scope;(f=f.state)&&e.push(c.createSetSeriesColorMetadataAction(g,d,f))}));return e};
h.createSetSeriesColorMetadataAction=function(a,b,c){var d=this;return TH({chartId:a.chartId,layerId:a.layerId,series:b.series.map(function(e){var f;return{seriesId:e.id,name:(f=e.name)!=null?f:e.id,drawnAs:0,lineDash:d.styles.lineDash,color:Pl(d.colorStrategy.getColor(e,c)),shape:d.colorStrategy.getShape&&d.colorStrategy.getShape(e,c)}})})};
h.onFocusedCellChange=function(a){var b=this,c=l(a.focusedGridIndices),d=c.next().value,e=c.next().value;this.withLatest(function(f){var g=f.scope;b.gridGeneratorSubject.pipe(mf(1)).subscribe(function(k){if(k=k&&k()){var m=d!==null?k.rows[d]:null,r=e!==null?k.columns[e]:null;a.focusedCell&&(b.store.dispatch(EH({chartId:g.chartId,layerId:g.layerId,series:m?[{seriesId:m.metadata.seriesId}]:[]})),r!==null||m!==null)&&(b.store.dispatch(nH({chartGroupId:g.chartGroupId,position:r?r.metadata.timeMs:null})),
b.store.dispatch(oH({chartGroupId:g.chartGroupId,locked:!!r})));b.store.dispatch(GH({chartId:g.chartId,layerId:g.layerId,series:[]}));d!==null&&e!==null&&(k=k.values[d][e],b.store.dispatch(lH({chartId:g.chartId,lastInteraction:{focus:k.position.x}})),b.store.dispatch(mH({chartId:g.chartId,yAxisId:g.yAxisId,lastInteraction:{focus:k.position.y}})))}})})};h.onGridCellActivate=function(a){this.modalService.focus(0,a)};
h.onClick=function(a){var b=this,c=fH(this,a),d=!1;this.withLatest(function(e){var f=e.scope,g=e.state,k=e.data;if(g&&k){var m=g.seriesSelection,r=g.brush,w=g.resize;g=g.lastInteraction;if(m&&r&&!r.brushing&&w&&FGa(c,w)){m=(m=m.byLayer.entities[f.layerId])?m.selectedSeries.map(function(H){return H.seriesId}):[];var x=b.lineView.getSeriesIdOfClosestLine(e,c,10);x&&(k=k.series.find(function(H){return H.id===x}))&&b.onSelect.emit(k);if(b.interactions.clickSelect){k=[];r=Fl.ve.LineDeselectToggle;if(x)if(r=
Fl.ve.LineSelectToggle,m.length===1&&m.includes(x))k=[];else if(b.isShiftKeyDown&&b.shiftSelectingFromSeriesId&&m.length>0){var D;k=b.lineView.getSeriesIdsBetween(e,b.shiftSelectingFromSeriesId,x,(D=g==null?void 0:g.domain.multiselectAnchor)!=null?D:c.x)||[x];r=Fl.ve.LineMultiSelectToggle}else b.isPrimaryModifierKeyDown?(k=m.includes(x)?m.filter(function(H){return H!==x}):m.concat([x]),r=Fl.ve.LineSpecificSelectToggle):k=[x];b.shiftSelectingFromSeriesId=x;k.length===0&&(b.store.dispatch(lH({chartId:f.chartId,
lastInteraction:{multiselectAnchor:null}})),b.store.dispatch(O1c({chartId:f.chartId,layerId:f.layerId,series:null})));m.length===0&&k.length===1&&(d=!0,b.store.dispatch(lH({chartId:f.chartId,lastInteraction:{multiselectAnchor:c.x}})),x&&b.store.dispatch(O1c({chartId:f.chartId,layerId:f.layerId,series:{seriesId:x,datumIndices:b.getDatumIndices(e,x,c.x,!0)}})));b.store.dispatch(EH({chartId:e.scope.chartId,layerId:e.scope.layerId,series:k.map(function(H){return{seriesId:H}})}));El(b.interactionService,
"click",r,b.el.nativeElement)}}}});this.withLatest(function(e){e=b.lineView.getValuesAtPosition(e,c);var f=b.updateTimeSeriesValues(e,2);f&&b.store.dispatch(f);d&&(e=b.updateTimeSeriesValues(e,4))&&b.store.dispatch(e)})};h.onKeyDown=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey;this.updateMultiselectMode()};h.onKeyUp=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey;this.updateMultiselectMode()};
h.updateMultiselectMode=function(){var a=this;this.withLatest(function(b){var c,d,e,f=(d=(c=b.state)==null?void 0:c.seriesSelection)==null?void 0:(e=d.byLayer.entities[b.scope.layerId])==null?void 0:e.selectedSeries;(f==null?0:f.length)&&a.updateViewConfig({multiselectMode:f.length>0&&(a.isShiftKeyDown||a.isPrimaryModifierKeyDown)})})};h.onMouseEnter=function(){this.isMouseOver=!0};
h.onMouseMove=function(a){var b=[];if(!this.isMouseOver)return b;a=fH(this,a);this.syncActionsBuffer=[];this.interactions.hoverHighlight&&this.hoverHighlightTriggerSubject.next(a);this.updateHoverValuesTriggerSubject.next(a);b=b.concat(this.syncActionsBuffer);this.syncActionsBuffer=null;return b};h.updateHoverValues=function(a){var b=this;this.withLatest(function(c){c=b.lineView.getValuesAtPosition(c,a);(c=b.updateTimeSeriesValues(c,1))&&(b.syncActionsBuffer?b.syncActionsBuffer.push(c):b.store.dispatch(c))})};
h.updateMostRecentValues=function(a){var b=a.data,c=a.state,d=a.config,e,f=c==null?void 0:(e=c.xAxis)==null?void 0:e.max,g;if(!(c==null?0:(g=c.xAxis)==null?0:g.min)||!f||!d)return null;b=b==null?void 0:b.series.reduce(function(k,m){m=m.data;var r=Hl(m,f,Il(d.outputPeriodMs));return(m=m[r])&&(k===null||Math.abs(f-m.x.valueOf())<Math.abs(f-k))?m.x.valueOf():k},null);c=void 0;d.outputPeriodMs&&(c=Math.max(d.outputPeriodMs,3E5));return(a=this.lineView.getValuesAtTime(a,b!=null?b:f,c))?this.updateTimeSeriesValues(a,
3):null};h.updateTimeSeriesValues=function(a,b){var c=null;this.withLatest(function(d){d=d.scope;var e,f;c=SH({chartId:d.chartId,layerId:d.layerId,valueType:1,timeKey:b,values:(e=a==null?void 0:a.values)!=null?e:[],timeRange:(f=a==null?void 0:a.timeRange)!=null?f:void 0})});return c};
h.getDatumIndices=function(a,b,c,d){d=d===void 0?!1:d;var e=a.state,f=a.data;if(e){var g;a=(g=a.data)==null?void 0:g.series.find(function(k){return k.id===b});e=b&&(e==null?0:e.xAxis)&&(e==null?0:e.resize)?il(e.xAxis,e.resize.margins.left,e.resize.width-e.resize.margins.right,f==null?void 0:f.xAxisUnit):null;return(c=a&&e?Jl(a.data||[],e(c),null,d):null)?[{index:c}]:void 0}};
h.hoverHighlight=function(a){var b=this;this.withLatest(function(c){var d=c.scope,e=c.state,f;if(!(e==null?0:(f=e.brush)==null?0:f.panning)){c=(f=a?b.lineView.getSeriesIdOfClosestLine(c,a,10):null)&&a?b.getDatumIndices(c,f,a.x,!0):void 0;var g,k;e=(e==null?void 0:(g=e.seriesSelection)==null?void 0:(k=g.byLayer.entities[d.layerId])==null?void 0:k.hoveredSeries)||[];g=f?[{seriesId:f,datumIndices:c}]:[];sl(e,g)&&(d=GH({chartId:d.chartId,layerId:d.layerId,series:g}),b.syncActionsBuffer?b.syncActionsBuffer.push(d):
b.store.dispatch(d))}})};h.onMouseLeave=function(){this.isMouseOver=!1;this.interactions.hoverHighlight&&this.hoverHighlight(null)};
h.generateGrid=function(a){var b=a.data;var c=a.state;a=a.config;if(!b||!c)return null;var d=c.xAxis,e=c.resize;c=c.yAxis;if(!d||!e||!c)return null;var f=hl(d,e.margins.left,e.width-e.margins.right,b.xAxisUnit),g=b.unit,k=c.unit,m=Al(c,e.margins.top,e.height-e.margins.bottom,g),r=d.tickIncrement||null,w=d.timezoneOffset,x=d.timeZoneId;if(!f||!m)return null;e={top:e.margins.top,right:e.width-e.margins.right,bottom:e.height-e.margins.bottom,left:e.margins.left};var D,H,J,O;return VFa({data:b,xAxisState:d,
yAxisState:c,rowFormatter:SFa(b.series,this.legendTemplate),columnFormatter:function(R){return{label:vl({position:R,tickIncrement:r,timeZone:Rk(w,x)}),value:R}},valueFormatter:QFa(g,k),positionMap:UFa(f,m,e,{outputPeriodMs:(a==null?void 0:a.outputPeriodMs)||void 0}),audioChartContext:d.min!==null&&d.max!==null&&c.min!==null&&c.max!==null?{xAxis:{ticks:d.ticks.map(function(R){return R.value}),min:(D=d.min)!=null?D:void 0,max:(H=d.max)!=null?H:void 0},yAxis:{min:(J=c.min)!=null?J:void 0,max:(O=c.max)!=
null?O:void 0}}:void 0})};h.generateDefaultColumnMask=function(a,b){a=a.state;return a&&b?(a=a.xAxis)?NFa({ticks:a.ticks,grid:b}):[]:[]};
h.ngOnInit=function(){var a=this;eH.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});this.lineView.setEnableManualLatencyTracking(this.enableManualLatencyTracking);this.updateGridTriggerSubject.pipe(Af(this.destroyed),kf(500)).subscribe(function(b){var c=void 0;a.gridGeneratorSubject.next(function(){c===void 0&&(c=a.generateGrid(b));return c})});this.hoverHighlightTriggerSubject.pipe(Af(this.destroyed)).subscribe(function(b){a.hoverHighlight(b)});
this.updateHoverValuesTriggerSubject.pipe(Af(this.destroyed)).subscribe(function(b){a.updateHoverValues(b)});this.chart.mouseEnterObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onMouseEnter(b)});zG(this.chart,"chart",function(b){return a.onMouseMove(b)},this.destroyed);this.chart.mouseLeaveObservable.pipe(Af(this.destroyed)).subscribe(function(){a.onMouseLeave()});this.chart.mouseClickObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onClick(b)});this.chart.keyDownObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onKeyDown(b)});
this.chart.keyUpObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onKeyUp(b)})};h.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};
h.ngOnChanges=function(a){eH.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&(!this.data||GGa(this.data)?(this.dataSubject.next(this.data),this.dataTypeError&&(this.dataTypeError=null),b.push(jH(this,this.error,this.hasData()))):(this.dataSubject.next(null),this.dataTypeError={name:"InvalidRequestError",code:400,displayMessage:"Only numeric data can be drawn as a line chart. The data provided cannot be drawn.",message:"Only numeric data can be drawn as a line chart. The data provided cannot be drawn.",
details:{isTimeout:!1}},b.push(jH(this,this.dataTypeError,!1))));if("pointConnectionMethod"in a||"outputPeriodMs"in a||"alignmentPeriodMs"in a||"colorStrategy"in a||"styles"in a||"useLegacyGapDetection"in a||"nearestPoint"in a||"interactions"in a){var c;this.updateViewConfig({pointConnectionMethod:this.pointConnectionMethod,lineInterpolationMethod:this.lineInterpolationMethod,outputPeriodMs:this.outputPeriodMs,colorStrategy:this.colorStrategy,useLegacyGapDetection:this.useLegacyGapDetection,styles:this.styles,
nearestPoint:this.nearestPoint,clickDotInteraction:(c=this.interactions)==null?void 0:c.clickDot})}"loading"in a&&b.push(iH(this,this.loading,"Line"));"error"in a&&b.push(jH(this,this.error,this.hasData()));yG(this.chart,b)};h.getLayerTitle=function(){return this.layerName?"Line "+this.layerName:"Line"};h.ngOnDestroy=function(){eH.prototype.ngOnDestroy.call(this);yG(this.chart,[gH(this,null),hH(this,null),iH(this,!1,"Line"),jH(this,null,!1),FH({chartId:this.chartId,layerId:this.layerId})])};
h.updateViewConfig=function(a){this.configSubject.next(Object.assign({},this.configSubject.value,a))};
da.Object.defineProperties(YH.prototype,{outputPeriodMs:{configurable:!0,enumerable:!0,set:function(a){this.outputPeriodMsInternal=a},get:function(){var a;return(a=this.outputPeriodMsInternal)!=null?a:this.alignmentPeriodMs}},colorStrategy:{configurable:!0,enumerable:!0,set:function(a){this.colorStrategyInternal=a||new XH},get:function(){return this.colorStrategyInternal}},interactions:{configurable:!0,enumerable:!0,set:function(a){this.interactionsInternal=Object.assign({},A3c,a)},get:function(){return this.interactionsInternal}},
styles:{configurable:!0,enumerable:!0,set:function(a){this.stylesInternal=Object.assign({},B3c,a)},get:function(){return this.stylesInternal}},isPrimaryModifierKeyDown:{configurable:!0,enumerable:!0,get:function(){return wl?this.isMetaKeyDown:this.isCtrlKeyDown}}});YH.\u0275fac=function(a){return new (a||YH)(Ve(Gd),Ve(xG),Ve(LG),Ve(yH),Ve(Fl),Ve(uH),Ve(PH),Ve(Tg),Ve(YYc,8))};
YH.\u0275cmp=C({type:YH,selectors:[["ac-line"]],hostAttrs:[1,"composable-layer","ac-line"],inputs:{data:"data",loading:"loading",error:"error",pointConnectionMethod:"pointConnectionMethod",lineInterpolationMethod:"lineInterpolationMethod",alignmentPeriodMs:"alignmentPeriodMs",outputPeriodMs:"outputPeriodMs",enableManualLatencyTracking:"enableManualLatencyTracking",colorStrategy:"colorStrategy",interactions:"interactions",styles:"styles",layerName:"layerName",legendTemplate:"legendTemplate",audioChartsEnabled:"audioChartsEnabled",
useLegacyGapDetection:"useLegacyGapDetection",refactorA11yNavInstructions:"refactorA11yNavInstructions",nearestPoint:"nearestPoint"},outputs:{onSelect:"onSelect"},features:[Ff,Gx],decls:3,vars:10,consts:[[3,"onGridCellActivate","onFocusedCellChange","onFocus","onBlur","gridGenerator","columnMaskGenerator","chartTitle","layerTitle","audioChartsEnabled","refactorA11yNavInstructions"]],template:function(a,b){a&1&&(K(0,"ac-accessibility-grid",0),U(1,"async"),U(2,"async"),N("onGridCellActivate",function(c){return b.onGridCellActivate(c)})("onFocusedCellChange",
function(c){return b.onFocusedCellChange(c)})("onFocus",function(c){return b.onFocus(c)})("onBlur",function(c){return b.onBlur(c)}),L());a&2&&I("gridGenerator",W(1,6,b.gridGeneratorObservable))("columnMaskGenerator",W(2,8,b.defaultColumnMaskGeneratorObservable))("chartTitle",b.chart.title)("layerTitle",b.getLayerTitle())("audioChartsEnabled",b.audioChartsEnabled)("refactorA11yNavInstructions",b.refactorA11yNavInstructions)},dependencies:[WH,py],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}/*# sourceMappingURL=ac_line.css.map */"],
changeDetection:0});var ZH=function(){};ZH.prototype.getBrushSegment=function(a,b,c,d){d=d===void 0?0:d;return{start:[d,a],end:[d+b,a]}};ZH.prototype.getBrushSelectionRect=function(a,b,c,d,e){return{x:e===void 0?0:e,y:a,width:c,height:b-a}};ZH.prototype.getRangeMap=function(a,b,c,d){return function(e){return cl(a,b,d,0,e)}};var D3c=function(){};D3c.prototype.getBrushSegment=function(a,b,c,d,e){e=e===void 0?0:e;return{start:[a,e],end:[a,e+c]}};
D3c.prototype.getBrushSelectionRect=function(a,b,c,d,e,f){return{x:a,y:f===void 0?0:f,width:b-a,height:d}};D3c.prototype.getRangeMap=function(a,b,c){return function(d){return cl(a,b,0,c,d)}};var E3c={globalAlpha:1,fillStyle:"var(--ac-sys-color-chart-brush-selection, #B2B2B240)",lineWidth:2,lineCap:"square",strokeStyle:"var(--ac-sys-color-chart-brush-line, #CCC)"},F3c=[4,4],G3c=function(a,b){UG.call(this,a);this.brushStrategy=b};Z(G3c,UG);h=G3c.prototype;h.updateStrategy=function(a,b){this.brushStrategy=a;this.drawInternal(b)};h.drawV1=function(a){this.drawInternal(a)};h.onResizeChange=function(a,b){Bk(a)&&this.drawInternal(b)};h.onYAxisChange=function(a,b){this.drawInternal(b)};
h.onBrushChange=function(a,b){this.drawInternal(b)};
h.unpack=function(a){var b=a.scope,c=a.state;if(!c)return null;a=c.resize;var d=c.yAxis;c=c.brush;if(!(a&&d&&c&&d.min!==null&&d.max)||a.height<=0||a.width<=0)return null;var e=c.yAxes.find(function(m){return m.chartId===b.chartId&&m.yAxisId===b.yAxisId}),f=a.margins.left,g=a.margins.top,k=a.height-a.margins.top-a.margins.bottom;d=this.brushStrategy.getRangeMap(d.min,d.max,a.width-a.margins.left-a.margins.right,k);return{map:d,bodyTopEdge:g,bodyLeftEdge:f,bodyHeight:k,bodyWidth:a.width-a.margins.left-
a.margins.right,brushing:c.brushing&&c.axis===1,brushStart:(e==null?0:e.yPosStart)?d(e.yPosStart):null,brushEnd:(e==null?0:e.yPos)?d(e.yPos):null,brushAxis:c.axis}};
h.drawInternal=function(a){if(a=this.unpack(a)){var b=a.bodyTopEdge,c=a.bodyHeight,d=a.bodyWidth,e=a.brushing,f=a.brushStart,g=a.brushEnd,k=a.brushAxis;this.canvas.style.left=a.bodyLeftEdge+"px";this.canvas.style.top=b+"px";ml(this.canvas,this.base,c,d);g&&k===1&&(f&&e&&(this.drawBrushSelection(this.brushStrategy.getBrushSelectionRect(f,g,d,c)),this.drawBrushLine(this.brushStrategy.getBrushSegment(f,d,c))),this.drawBrushLine(this.brushStrategy.getBrushSegment(g,d,c)))}};
h.drawBrushLine=function(a,b){b=b===void 0?E3c:b;this.ctx.save();kl(this.ctx,b,this.base);this.ctx.setLineDash(F3c);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,n(nl(a.start,b.lineWidth)));this.ctx.lineTo.apply(this.ctx,n(nl(a.end,b.lineWidth)));this.ctx.stroke();this.ctx.restore()};h.drawBrushSelection=function(a,b){b=b===void 0?E3c:b;this.ctx.save();kl(this.ctx,b,this.base);this.ctx.fillRect(a.x,a.y,a.width,a.height);this.ctx.restore()};var H3c={globalAlpha:1,strokeStyle:"var(--ac-sys-color-chart-grid, #EBEBEB)",lineWidth:1,lineCap:"square"},I3c={globalAlpha:1,font:"10px sans-serif",fillStyle:"var(--ac-sys-color-chart-axis-label, #3C4043)",strokeStyle:"var(--ac-sys-color-chart-axis, #80868B)"},J3c=Object.assign({},I3c,{textAlign:"left",textBaseline:"middle"}),K3c=Object.assign({},I3c,{textAlign:"right",textBaseline:"middle"});var L3c=[4,4],M3c={globalAlpha:1,fillStyle:"var(--ac-sys-color-chart-brush-selection, #B2B2B240)",lineWidth:2,lineCap:"square",strokeStyle:"var(--ac-sys-color-chart-brush-line, #CCC)"},$H=function(a,b,c){UG.call(this,a);this.axisStrategy=b;this.brushStrategy=c};Z($H,UG);h=$H.prototype;h.updateStrategy=function(a,b){this.axisStrategy=a;this.drawInternal(b)};h.drawV1=function(a){this.drawInternal(a)};h.onResizeChange=function(a,b){Bk(a)&&this.drawInternal(b)};h.onYAxisChange=function(a,b){this.drawInternal(b)};
h.onConfigChange=function(a,b){this.drawInternal(b)};h.withinBodyOrAxis=function(a,b,c,d){return c==="right"?a>=d.margins.left&&a<=d.width&&b>=d.margins.top&&b<=d.height:c==="left"?a>=0&&a<=d.width-d.margins.right&&b>=d.margins.top&&b<=d.height:a>=0&&a<=d.width&&b>=d.margins.top&&b<=d.height};
h.withinAxis=function(a,b,c,d){return c==="right"?a>=d.width-d.margins.right&&a<=d.width&&b>=d.margins.top&&b<=d.height:c==="left"?a>=0&&a<=d.margins.left&&b>=d.margins.top&&b<=d.height:a>=0&&a<=d.width&&b>=d.margins.top&&b<=d.height};h.calculateDataValue=function(a,b,c){b=this.unpack(b,c);var d;return this.axisStrategy.getDataValue(a,(d=b==null?void 0:b.inverse)!=null?d:null)};h.pxToScaleType=function(a,b,c){b=this.unpack(b,c);return b!=null&&b.inverse?b.inverse(a)-b.inverse(0):null};
h.unpack=function(a,b){if(!a||!b)return null;var c=a.resize;a=a.yAxis;var d=b.position;if(!c||!d||c.height<=0||c.width<=0)return null;var e=this.axisStrategy.getCanvasRange(c),f=e.rangeMin,g=e.rangeMax,k,m=(k=a==null?void 0:a.min)!=null?k:null,r,w=(r=a==null?void 0:a.max)!=null?r:null,x,D=(x=a==null?void 0:a.absoluteMin)!=null?x:null;r=k=null;m!==null&&w!==null&&(k=(a==null?void 0:a.scaleType)===1&&D!==null?function(V){return RCa(m,w,f,g,V,D)}:function(V){return cl(m,w,f,g,V)},r=function(V){return cl(f,
g,m,w,V)});var H=e=x=0,J=0;switch(d){case "right":x=c.width-c.margins.right;e=c.width-10;H=(c.margins.top+(c.height-c.margins.bottom))/2;J=Math.PI/2;break;case "left":x=c.margins.left;e=10;H=(c.margins.top+(c.height-c.margins.bottom))/2;J=-Math.PI/2;break;case "top":x=c.margins.top;e=(c.margins.left+(c.width-c.margins.right))/2;H=10;break;case "bottom":x=c.height-c.margins.bottom,e=(c.margins.left+(c.width-c.margins.right))/2,H=c.height-10}var O,R;return{config:b,map:k,inverse:r,chartBodyLeft:c.margins.left,
chartBodyRight:c.width-c.margins.right,chartBodyTop:c.margins.top,chartBodyBottom:c.height-c.margins.bottom,chartBodyHeight:c.height-c.margins.top-c.margins.bottom,yAxisTicks:(O=a==null?void 0:a.ticks)!=null?O:[],yAxisHeight:c.height,yAxisCanvasWidth:c.width,offset:x,labelAnchorX:e,labelAnchorY:H,labelRotation:J,rangeBottom:f,rangeTop:g,label:(R=a==null?void 0:a.label)!=null?R:""}};
h.drawInternal=function(a){var b=performance.now(),c=this.unpack(a.state,a.config);if(c){var d=c.map,e=c.chartBodyLeft,f=c.chartBodyRight,g=c.chartBodyTop,k=c.chartBodyBottom,m=c.yAxisTicks,r=c.yAxisHeight,w=c.yAxisCanvasWidth,x=c.offset,D=c.rangeBottom,H=c.rangeTop,J=c.label,O=c.labelAnchorX,R=c.labelAnchorY,V=c.labelRotation,ba=c.chartBodyHeight,pa=c.config.position;m=d?m.map(function(rb){return{label:rb.label,value:d(rb.value)}}):[];this.canvas.style.left="0px";this.canvas.style.top="0px";ml(this.canvas,
this.base,r,w);if(pa!=="none"){r=pa==="right"?J3c:pa==="left"?K3c:rH;var ua,ma,Da,ja;r=Object.assign({},r,{fillStyle:(Da=(ua=c.config.styles)==null?void 0:ua.textColor)!=null?Da:r.fillStyle,font:(ja=(ma=c.config.styles)==null?void 0:ma.font)!=null?ja:r.font});ua=H3c;var va,ya,Sa,ab;ua=Object.assign({},ua,{lineDash:(Sa=(va=c.config.styles)==null?void 0:va.lineDash)!=null?Sa:ua.lineDash,strokeStyle:(ab=(ya=c.config.styles)==null?void 0:ya.gridLineColor)!=null?ab:ua.strokeStyle});this.drawAxisAndTickLines(D,
H,e,f,g,k,m,ua);this.drawAxisTickLabels(x,m,pa,r);this.drawAxisLabel(J,O,R,V,ba,r);this.drawBrushInternal(a);a=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a})}}};
h.drawAxisAndTickLines=function(a,b,c,d,e,f,g,k){k=k===void 0?{}:k;this.ctx.save();kl(this.ctx,k,this.base);this.ctx.beginPath();a=this.axisStrategy.generateTickLines(g.length?g:[{value:a,label:""},{value:b,label:""}],c,d,e,f);a=l(a);for(b=a.next();!b.done;b=a.next())b=b.value,c=b.end,this.ctx.moveTo.apply(this.ctx,n(nl(b.start,k.lineWidth))),this.ctx.lineTo.apply(this.ctx,n(nl(c,k.lineWidth)));this.ctx.closePath();this.ctx.stroke();this.ctx.restore()};
h.drawAxisTickLabels=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();kl(this.ctx,d,this.base);a=this.axisStrategy.generateTickLabels(b,a,c);a=l(a);for(b=a.next();!b.done;b=a.next())b=b.value,ol(this.ctx,b.label,b.x,b.y);this.ctx.restore()};h.drawAxisLabel=function(a,b,c,d,e,f){f=f===void 0?{}:f;a&&(this.ctx.save(),kl(this.ctx,f,this.base),$Ca(this.ctx,a,b,c,e,d),this.ctx.restore())};h.onBrushChange=function(a,b){if(a=N3c(this,b)){var c=a.brushAxis;a=!!a.brushEnd&&c===1}else a=!1;a&&this.drawInternal(b)};
var N3c=function(a,b){var c=b.scope,d=b.state;if(!d)return null;b=d.resize;var e=d.yAxis;d=d.brush;if(!(b&&e&&d&&e.min!==null&&e.max)||b.height<=0||b.width<=0)return null;var f=d.yAxes.find(function(r){return r.chartId===c.chartId&&r.yAxisId===c.yAxisId}),g=b.margins.left,k=b.margins.top,m=b.height-b.margins.top-b.margins.bottom;a=a.brushStrategy.getRangeMap(e.min,e.max,b.width-b.margins.left-b.margins.right,m);return{map:a,bodyTopEdge:k,bodyLeftEdge:g,bodyHeight:m,bodyWidth:b.width-b.margins.left-
b.margins.right,brushing:d.brushing&&d.axis===1,brushStart:(f==null?0:f.yPosStart)?a(f.yPosStart):null,brushEnd:(f==null?0:f.yPos)?a(f.yPos):null,brushAxis:d.axis}};
$H.prototype.drawBrushInternal=function(a){var b=N3c(this,a);if(b){a=b.bodyTopEdge;var c=b.bodyLeftEdge,d=b.bodyHeight,e=b.bodyWidth,f=b.brushing,g=b.brushStart,k=b.brushEnd;b=b.brushAxis;var m=a;this.brushStrategy instanceof D3c&&(m=c);k&&b===1&&(g&&f&&(this.drawBrushSelection(this.brushStrategy.getBrushSelectionRect(m+g,m+k,e,d,c,a)),this.drawBrushLine(this.brushStrategy.getBrushSegment(m+g,e,d,c,a))),this.drawBrushLine(this.brushStrategy.getBrushSegment(m+k,e,d,c,a)))}};
$H.prototype.drawBrushLine=function(a,b){b=b===void 0?M3c:b;this.ctx.save();kl(this.ctx,b,this.base);this.ctx.setLineDash(L3c);this.ctx.beginPath();this.ctx.moveTo.apply(this.ctx,n(nl(a.start,b.lineWidth)));this.ctx.lineTo.apply(this.ctx,n(nl(a.end,b.lineWidth)));this.ctx.stroke();this.ctx.restore()};$H.prototype.drawBrushSelection=function(a,b){b=b===void 0?M3c:b;this.ctx.save();kl(this.ctx,b,this.base);this.ctx.fillRect(a.x,a.y,a.width,a.height);this.ctx.restore()};var aI=function(){};aI.prototype.getCanvasRange=function(a){return{rangeMin:a.height-a.margins.bottom,rangeMax:a.margins.top}};aI.prototype.getDataValue=function(a,b){return b?b(a.y):null};aI.prototype.generateTickLines=function(a,b,c){return a.map(function(d){d=d.value;return{start:[b,d],end:[c,d]}})};aI.prototype.generateTickLabels=function(a,b,c){var d=c==="right"?b+8:b-8;return a.map(function(e){return{label:e.label,x:d,y:e.value}})};var O3c=function(){};
O3c.prototype.getCanvasRange=function(a){return{rangeMin:a.margins.left,rangeMax:a.width-a.margins.right}};O3c.prototype.getDataValue=function(a,b){return b?b(a.x):null};O3c.prototype.generateTickLines=function(a,b,c,d,e){return a.map(function(f){f=f.value;return{start:[f,d],end:[f,e]}})};O3c.prototype.generateTickLabels=function(a,b,c){var d=c==="bottom"?b+8:b-8;return a.map(function(e){return{label:e.label,x:e.value,y:d}})};var P3c=function(a,b){UG.call(this,a);this.axisStrategy=b};Z(P3c,UG);h=P3c.prototype;h.updateStrategy=function(a,b){this.axisStrategy=a;this.drawInternal(b)};h.drawV1=function(a){this.drawInternal(a)};h.onResizeChange=function(a,b){Bk(a)&&this.drawInternal(b)};h.onYAxisChange=function(a,b){this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.withinBodyOrAxis=function(a,b,c,d){return c==="right"?a>=d.margins.left&&a<=d.width&&b>=d.margins.top&&b<=d.height:c==="left"?a>=0&&a<=d.width-d.margins.right&&b>=d.margins.top&&b<=d.height:a>=0&&a<=d.width&&b>=d.margins.top&&b<=d.height};h.withinAxis=function(a,b,c,d){return c==="right"?a>=d.width-d.margins.right&&a<=d.width&&b>=d.margins.top&&b<=d.height:c==="left"?a>=0&&a<=d.margins.left&&b>=d.margins.top&&b<=d.height:a>=0&&a<=d.width&&b>=d.margins.top&&b<=d.height};
h.calculateDataValue=function(a,b,c){b=this.unpack(b,c);var d;return this.axisStrategy.getDataValue(a,(d=b==null?void 0:b.inverse)!=null?d:null)};h.pxToScaleType=function(a,b,c){b=this.unpack(b,c);return b!=null&&b.inverse?b.inverse(a)-b.inverse(0):null};
h.unpack=function(a,b){if(!a||!b)return null;var c=a.resize;a=a.yAxis;var d=b.position;if(!c||!d||c.height<=0||c.width<=0)return null;var e=this.axisStrategy.getCanvasRange(c),f=e.rangeMin,g=e.rangeMax,k,m=(k=a==null?void 0:a.min)!=null?k:null,r,w=(r=a==null?void 0:a.max)!=null?r:null,x,D=(x=a==null?void 0:a.absoluteMin)!=null?x:null;r=k=null;m!==null&&w!==null&&(k=(a==null?void 0:a.scaleType)===1&&D!==null?function(V){return RCa(m,w,f,g,V,D)}:function(V){return cl(m,w,f,g,V)},r=function(V){return cl(f,
g,m,w,V)});var H=e=x=0,J=0;switch(d){case "right":x=c.width-c.margins.right;e=c.width-10;H=(c.margins.top+(c.height-c.margins.bottom))/2;J=Math.PI/2;break;case "left":x=c.margins.left;e=10;H=(c.margins.top+(c.height-c.margins.bottom))/2;J=-Math.PI/2;break;case "top":x=c.margins.top;e=(c.margins.left+(c.width-c.margins.right))/2;H=10;break;case "bottom":x=c.height-c.margins.bottom,e=(c.margins.left+(c.width-c.margins.right))/2,H=c.height-10}var O,R;return{config:b,map:k,inverse:r,chartBodyLeft:c.margins.left,
chartBodyRight:c.width-c.margins.right,chartBodyTop:c.margins.top,chartBodyBottom:c.height-c.margins.bottom,chartBodyHeight:c.height-c.margins.top-c.margins.bottom,yAxisTicks:(O=a==null?void 0:a.ticks)!=null?O:[],yAxisHeight:c.height,yAxisCanvasWidth:c.width,offset:x,labelAnchorX:e,labelAnchorY:H,labelRotation:J,rangeBottom:f,rangeTop:g,label:(R=a==null?void 0:a.label)!=null?R:""}};
h.drawInternal=function(a){var b=performance.now();if(a=this.unpack(a.state,a.config)){var c=a.map,d=a.chartBodyLeft,e=a.chartBodyRight,f=a.chartBodyTop,g=a.chartBodyBottom,k=a.yAxisTicks,m=a.yAxisHeight,r=a.yAxisCanvasWidth,w=a.offset,x=a.rangeBottom,D=a.rangeTop,H=a.label,J=a.labelAnchorX,O=a.labelAnchorY,R=a.labelRotation,V=a.chartBodyHeight,ba=a.config.position;k=c?k.map(function(ab){return{label:ab.label,value:c(ab.value)}}):[];this.canvas.style.left="0px";this.canvas.style.top="0px";ml(this.canvas,
this.base,m,r);if(ba!=="none"){m=ba==="right"?J3c:ba==="left"?K3c:rH;var pa,ua,ma,Da;m=Object.assign({},m,{fillStyle:(ma=(pa=a.config.styles)==null?void 0:pa.textColor)!=null?ma:m.fillStyle,font:(Da=(ua=a.config.styles)==null?void 0:ua.font)!=null?Da:m.font});pa=H3c;var ja,va,ya,Sa;pa=Object.assign({},pa,{lineDash:(ya=(ja=a.config.styles)==null?void 0:ja.lineDash)!=null?ya:pa.lineDash,strokeStyle:(Sa=(va=a.config.styles)==null?void 0:va.gridLineColor)!=null?Sa:pa.strokeStyle});this.drawAxisAndTickLines(x,
D,d,e,f,g,k,pa);this.drawAxisTickLabels(w,k,ba,m);this.drawAxisLabel(H,J,O,R,V,m);ja=performance.now();this.drawListener({drawStartTimestamp:b,drawStopTimestamp:ja})}}};
h.drawAxisAndTickLines=function(a,b,c,d,e,f,g,k){k=k===void 0?{}:k;this.ctx.save();kl(this.ctx,k,this.base);this.ctx.beginPath();a=this.axisStrategy.generateTickLines(g.length?g:[{value:a,label:""},{value:b,label:""}],c,d,e,f);a=l(a);for(b=a.next();!b.done;b=a.next())b=b.value,c=b.end,this.ctx.moveTo.apply(this.ctx,n(nl(b.start,k.lineWidth))),this.ctx.lineTo.apply(this.ctx,n(nl(c,k.lineWidth)));this.ctx.closePath();this.ctx.stroke();this.ctx.restore()};
h.drawAxisTickLabels=function(a,b,c,d){d=d===void 0?{}:d;this.ctx.save();kl(this.ctx,d,this.base);a=this.axisStrategy.generateTickLabels(b,a,c);a=l(a);for(b=a.next();!b.done;b=a.next())b=b.value,ol(this.ctx,b.label,b.x,b.y);this.ctx.restore()};h.drawAxisLabel=function(a,b,c,d,e,f){f=f===void 0?{}:f;a&&(this.ctx.save(),kl(this.ctx,f,this.base),$Ca(this.ctx,a,b,c,e,d),this.ctx.restore())};var Q3c={dragZoom:!0,ctrlScrollZoom:!0},R3c=new em("Data values on this chart range from a minimum of {MIN} to a maximum of {MAX}."),bI=function(a,b,c,d,e,f,g){eH.call(this,a,b,c);this.interactionService=d;this.instrumentationService=e;this.ngZone=f;this.dataSubject=new Xj(null);this.position="right";this.styles={};this.tickStrategy=MCa;this.configSubject=new Xj({position:this.position,styles:this.styles});this.interactionsInternal=Q3c;this.isMouseDown=!1;this.lastMouseMoveEvent=this.lastMouseDownEvent=
null;this.cachedScrollAmount=0;this.scrollZoomSubject=new vf(1);this.axisDescriptionSubject=new Xj("");this.lastAxisDynamicWidth=0;this.initialized=!1;this.axisDescriptionObservable=this.axisDescriptionSubject.pipe(nf(0),Ik(this.ngZone));this.rulerCanvas=document.createElement("canvas");this.rulerCanvasCtx=this.rulerCanvas.getContext("2d");this.layerType="axis";g?(this.axisView=new $H(a.nativeElement,new aI,new ZH),this.views.push(this.axisView)):(this.axisView=new P3c(a.nativeElement,new aI),this.brushView=
new G3c(a.nativeElement,new ZH),this.views.push(this.axisView),this.views.push(this.brushView));this.bindDrawInstrumentation()};Z(bI,eH);bI.\u0275dir=eH.\u0275dir;h=bI.prototype;h.isPrimaryModifierKeyDown=function(a){return wl?a.metaKey:a.ctrlKey};
h.bindDrawInstrumentation=function(){var a=this;PG(this.axisView,function(b){var c=b.drawStartTimestamp;var d=b.drawStopTimestamp;a.scopeObservable.pipe(mf(1)).subscribe(function(e){var f=e.chartId;e=e.layerId;vH(a.instrumentationService,{type:"draw-start",layerType:"axis",timestamp:c,chartId:f,layerId:e});vH(a.instrumentationService,{type:"draw-stop",layerType:"axis",timestamp:d,chartId:f,layerId:e,metadata:{hasCompleteData:!1}})})})};
h.onYAxisChange=function(){var a=this,b=[];this.withLatest(function(c){var d=c.scope;var e=c.config;c=c.state;var f,g=c==null?void 0:(f=c.yAxis)==null?void 0:f.requirements,k;f=(c==null?void 0:(k=c.yAxis)==null?void 0:k.unit)||null;if(g==null?0:g.length){k=ACa(g,[1,0]);var m;g=(m=k==null?void 0:k.min)!=null?m:null;var r;m=(r=k==null?void 0:k.max)!=null?r:null;f&&k&&f!==k.unit&&(g=Wk(k.unit,f,k.min),m=Wk(k.unit,f,k.max));g!==null&&m!==null&&a.axisDescriptionSubject.next(R3c.format({MIN:Yk(g,f),MAX:Yk(m,
f)}))}var w;if(c==null?0:(w=c.yAxis)==null?0:w.ticks){var x;r=c==null?void 0:(x=c.yAxis)==null?void 0:x.ticks.reduce(function(H,J){return Math.max(H,a.rulerCanvasCtx.measureText(J.label).width)},0);var D;x=c==null?void 0:(D=c.yAxis)==null?void 0:D.label;D=r+10+8+(x?a.rulerCanvasCtx.measureText(x).fontBoundingBoxAscent:0);a.lastAxisDynamicWidth!==D&&(a.lastAxisDynamicWidth=D,b.push(a.createMarginRequirementAction(d,e,D)))}});return b};
h.onConfigChange=function(a,b){yG(this.chart,[this.createMarginRequirementAction(b.scope,a.currentValue,this.lastAxisDynamicWidth||void 0)])};
h.ngOnInit=function(){var a=this;eH.prototype.ngOnInit.call(this);this.initialized=!0;this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});this.configSubject.next({position:this.position,styles:this.styles});S3c(this);this.scrollZoomSubject.pipe(Af(this.destroyed)).subscribe(function(b){a.scrollZoom(b)});this.chart.mouseClickObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onClick(b)});this.chart.mouseDownObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onMouseDown(b)});
this.chart.documentMouseUpObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onMouseUp(b)});this.chart.mouseLeaveObservable.pipe(Af(this.destroyed)).subscribe(function(){a.onMouseLeave()});zG(this.chart,"chart",function(b){return a.onMouseMove(b)},this.destroyed);zG(this.chart,"document",function(b){return a.onDocumentMouseMove(b)},this.destroyed);this.chart.scrollObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onScroll(b)});this.chart.syncScrollObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.syncOnScroll(b)});
se(this.chart.syncDragStartObservable,this.chart.syncDragObservable,this.chart.syncDragEndObservable).pipe(Af(this.destroyed)).subscribe(function(b){a.interactions.dragZoom&&(b.preventDefault(),b.stopPropagation())});this.withLatest(function(b){b=b.scope;var c=[];$Yc(a.selectorService,b,a.tickStrategy);c.push(oZc({chartId:b.chartId,yAxisId:b.yAxisId,position:a.position}));var d;c.push(lZc({chartId:b.chartId,yAxisId:b.yAxisId,label:(d=a.label)!=null?d:""}));var e,f;if(((e=a.includeRange)==null?void 0:
e.min)!==void 0||((f=a.includeRange)==null?void 0:f.max)!==void 0){var g,k,m,r,w,x,D,H,J,O;c.push(gH(a,{priority:1,min:Math.min((x=(g=a.includeRange)==null?void 0:g.min)!=null?x:Infinity,(D=(k=a.includeRange)==null?void 0:k.max)!=null?D:Infinity),max:Math.max((H=(m=a.includeRange)==null?void 0:m.min)!=null?H:-Infinity,(J=(r=a.includeRange)==null?void 0:r.max)!=null?J:-Infinity),unit:(O=(w=a.includeRange)==null?void 0:w.unit)!=null?O:null,constraints:{onlyApplyIfUnitCompatible:!0}},"includeRange"))}var R,
V;if(((R=a.exactRange)==null?void 0:R.min)!==void 0||((V=a.exactRange)==null?void 0:V.max)!==void 0){var ba,pa,ua,ma;c.push(gH(a,{priority:2,min:(ba=a.exactRange)==null?void 0:ba.min,max:(pa=a.exactRange)==null?void 0:pa.max,unit:(ma=(ua=a.exactRange)==null?void 0:ua.unit)!=null?ma:null,cause:2},"exactRange"))}yG(a.chart,c)})};
h.ngOnChanges=function(a){var b=this;eH.prototype.ngOnChanges.call(this,a);var c=[];if(this.initialized){"tickStrategy"in a&&this.withLatest(function(ma){$Yc(b.selectorService,ma.scope,b.tickStrategy)});"label"in a&&this.withLatest(function(ma){ma=ma.scope;var Da;c.push(lZc({chartId:ma.chartId,yAxisId:ma.yAxisId,label:(Da=b.label)!=null?Da:""}))});if("position"in a||"styles"in a)this.configSubject.next({position:this.position,styles:this.styles}),"position"in a&&(this.withLatest(function(ma){var Da=
ma.scope;ma=ma.config;c.push(oZc({chartId:Da.chartId,yAxisId:Da.yAxisId,position:b.position}));c.push(b.createMarginRequirementAction(Da,ma,b.lastAxisDynamicWidth||void 0))}),S3c(this));if("includeRange"in a){var d,e;if(((d=this.includeRange)==null?void 0:d.min)!==void 0||((e=this.includeRange)==null?void 0:e.max)!==void 0){var f,g,k,m,r,w,x,D,H,J;c.push(gH(this,{priority:1,min:Math.min((w=(f=this.includeRange)==null?void 0:f.min)!=null?w:Infinity,(x=(g=this.includeRange)==null?void 0:g.max)!=null?
x:Infinity),max:Math.max((D=(k=this.includeRange)==null?void 0:k.min)!=null?D:-Infinity,(H=(m=this.includeRange)==null?void 0:m.max)!=null?H:-Infinity),unit:(J=(r=this.includeRange)==null?void 0:r.unit)!=null?J:null,constraints:{onlyApplyIfUnitCompatible:!0}},"includeRange"))}else c.push(gH(this,null,"includeRange"))}if("exactRange"in a){var O,R;if(((O=this.exactRange)==null?void 0:O.min)!==void 0||((R=this.exactRange)==null?void 0:R.max)!==void 0){var V,ba,pa,ua;c.push(gH(this,{priority:2,min:(V=
this.exactRange)==null?void 0:V.min,max:(ba=this.exactRange)==null?void 0:ba.max,unit:(ua=(pa=this.exactRange)==null?void 0:pa.unit)!=null?ua:null,cause:2},"exactRange"))}else this.withLatest(function(){c.push(gH(b,null,"exactRange"))})}yG(this.chart,c)}};h.onMouseDown=function(a){this.isMouseDown=!0;this.lastMouseDownEvent=a};
h.onMouseMove=function(a){var b=this,c=[];this.withLatest(function(d){var e=d.scope;var f=d.state;d=d.config;if(f){var g=f.brush,k=f.resize;if(g&&k){var m=fH(b,a),r=b.axisView.withinBodyOrAxis(m.x,m.y,b.position,k);r?c.push(mH({chartId:e.chartId,yAxisId:e.yAxisId,lastInteraction:{hover:m.y}})):c.push(mH({chartId:e.chartId,yAxisId:e.yAxisId,lastInteraction:{hover:null}}));if(r&&b.interactions.dragZoom&&b.isMouseDown&&!b.isPrimaryModifierKeyDown(a)&&b.lastMouseDownEvent&&!g.panning&&!g.brushing){g=
fH(b,b.lastMouseDownEvent);var w=b.lastMouseDownEvent;r=a.clientX-w.clientX;w=a.clientY-w.clientY;var x=Math.sqrt(Math.pow(r,2)+Math.pow(w,2));r=Math.abs(w/r)>=1&&x>10;k=b.axisView.withinBodyOrAxis(g.x,g.y,b.position,k);(b.isVertical&&r||!b.isVertical&&!r)&&k&&(m=b.axisView.calculateDataValue(m,f,d),f=b.axisView.calculateDataValue(g,f,d),m&&f&&c.push(e0c({chartGroupId:e.chartGroupId,chartId:e.chartId,yAxisId:e.yAxisId,position:m,positionStart:f})))}}}});this.lastMouseMoveEvent=a;return c};
h.onDocumentMouseMove=function(a){var b=this,c=[];this.withLatest(function(d){var e=d.scope;var f=d.state;d=d.config;if(f){var g=f.brush,k=f.resize;g&&k&&(k=fH(b,a),b.isEventInsideWindow(a)?b.interactions.dragZoom&&b.isMouseDown&&g.brushing&&g.axis===1&&(f=b.axisView.calculateDataValue(k,f,d))&&c.push(g0c({chartGroupId:e.chartGroupId,chartId:e.chartId,yAxisId:e.yAxisId,position:f})):c.push(f0c({chartGroupId:e.chartGroupId,chartId:e.chartId})))}});return c};
h.onMouseUp=function(a){var b=this;this.isMouseDown=!1;this.lastMouseDownEvent=null;this.withLatest(function(c){var d=c.scope;var e=c.state;var f=c.config;if(e){var g=e.brush;c=e.yAxis;if(g&&c&&b.interactions.dragZoom&&g.brushing&&g.axis===1&&(b.store.dispatch(f0c({chartGroupId:d.chartGroupId,chartId:d.chartId})),b.isEventInsideWindow(a))){var k=fH(b,a);e=b.axisView.calculateDataValue(k,e,f);var m;g=(m=g.yAxes.find(function(r){return r.chartId===d.chartId&&r.yAxisId===d.yAxisId}))==null?void 0:m.yPosStart;
e&&g&&(m=g<e,b.store.dispatch(kZc({chartId:d.chartId,yAxisId:d.yAxisId,id:d.layerId,priority:4,cause:4,min:m?g:e,max:m?e:g,unit:c.unit})),El(b.interactionService,"drag",Fl.ve.YZoomZone,b.el.nativeElement))}}})};h.onMouseLeave=function(){var a=this;this.withLatest(function(b){b=b.scope;a.store.dispatch(mH({chartId:b.chartId,yAxisId:b.yAxisId,lastInteraction:{hover:null}}))})};
h.syncOnScroll=function(a){var b=this;this.interactions.ctrlScrollZoom&&this.isPrimaryModifierKeyDown(a)&&this.withLatest(function(c){if((c=c.state)&&b.lastMouseMoveEvent&&(c=c.resize)){var d=fH(b,b.lastMouseMoveEvent);b.axisView.withinAxis(d.x,d.y,b.position,c)&&a.preventDefault()}})};
h.onScroll=function(a){var b=this;this.interactions.ctrlScrollZoom&&this.isPrimaryModifierKeyDown(a)&&this.withLatest(function(c){if((c=c.state)&&b.lastMouseMoveEvent&&(c=c.resize)){var d=fH(b,b.lastMouseMoveEvent);b.axisView.withinAxis(d.x,d.y,b.position,c)&&(b.cachedScrollAmount+=a.deltaY,b.scrollZoomSubject.next(d))}})};
h.scrollZoom=function(a){var b=this;this.withLatest(function(c){var d=c.scope;var e=c.state;var f=c.config;if(e&&b.lastMouseMoveEvent&&(c=e.yAxis)&&c.min!==null&&c.max!==null){var g=b.axisView.pxToScaleType(b.cachedScrollAmount,e,f);if(g&&(e=b.axisView.calculateDataValue(a,e,f))){e=(e-c.min)/(c.max-c.min);g=Math.min(g,(c.max-c.min)*.999);f=c.min+g*e;var k=c.max-g*(1-e);g=f;f=k;k=1E-9-Math.abs(f-g);k>0&&(g-=k*e,f+=k*(1-e));e=l([g,f]);f=e.next().value;k=e.next().value;b.store.dispatch(kZc({chartId:d.chartId,
yAxisId:d.yAxisId,id:d.layerId,priority:4,cause:4,min:f,max:k,unit:c.unit}));El(b.interactionService,"scroll",Fl.ve.YZoomZone,b.el.nativeElement,{debounce:!0});b.cachedScrollAmount=0}}})};h.onClick=function(a){var b=this;this.withLatest(function(c){var d=c.scope;if(c=c.state)if(c=c.resize){var e=fH(b,a);b.axisView.withinBodyOrAxis(e.x,e.y,b.position,c)&&b.store.dispatch(mH({chartId:d.chartId,yAxisId:d.yAxisId,lastInteraction:{click:e.y}}))}})};
h.isEventInsideWindow=function(a){return a.clientX>=0&&a.clientY>=0&&a.clientX<=window.innerWidth&&a.clientY<=window.innerHeight};
h.createMarginRequirementAction=function(a,b,c){var d={},e={},f=Math.max(50,c||0);c=Math.max((c||0)/2,10);if(b)switch(b.position){case "right":d={right:f};e={left:10,top:10,bottom:10};break;case "left":d={left:f};e={right:10,top:10,bottom:10};break;case "top":d={top:20};e={left:c,right:c};break;case "bottom":d={bottom:20};e={left:c,right:c};break;default:e={top:10,bottom:10}}return NG({chartGroupId:a.chartGroupId,chartId:a.chartId,layerId:a.layerId,reservedMargins:d,overlappingMargins:e})};
var S3c=function(a){a.withLatest(function(b){switch(a.position){case "left":case "right":a.axisView.updateStrategy(new aI,b);if(a.axisView instanceof $H){var c=a.axisView;c.brushStrategy=new ZH;c.drawBrushInternal(b)}var d;(d=a.brushView)==null||d.updateStrategy(new ZH,b);break;case "top":case "bottom":a.axisView.updateStrategy(new O3c,b),a.axisView instanceof $H&&(d=a.axisView,d.brushStrategy=new D3c,d.drawBrushInternal(b)),(c=a.brushView)==null||c.updateStrategy(new D3c,b)}})};
bI.prototype.ngOnDestroy=function(){eH.prototype.ngOnDestroy.call(this);yG(this.chart,[iZc({chartGroupId:this.chartGroupId,chartId:this.chartId,layerId:this.layerId})])};da.Object.defineProperties(bI.prototype,{isVertical:{configurable:!0,enumerable:!0,get:function(){return this.position==="right"||this.position==="left"}},interactions:{configurable:!0,enumerable:!0,set:function(a){this.interactionsInternal=Object.assign({},Q3c,a)},get:function(){return this.interactionsInternal}}});
bI.\u0275fac=function(a){return new (a||bI)(Ve(Gd),Ve(xG),Ve(LG),Ve(Fl),Ve(uH),Ve(Tg),Ve(YYc,8))};
bI.\u0275cmp=C({type:bI,selectors:[["ac-y-axis"]],hostAttrs:[1,"composable-layer","ac-y-axis"],inputs:{label:"label",position:"position",styles:"styles",tickStrategy:"tickStrategy",interactions:"interactions",includeRange:"includeRange",exactRange:"exactRange"},features:[Ff,Gx],decls:3,vars:3,consts:[[1,"ac-screen-reader-only-content"]],template:function(a,b){a&1&&(Sf(0,"p",0),S(1),U(2,"async"),Tf());a&2&&(B(),Ag(W(2,1,b.axisDescriptionObservable)))},dependencies:[py],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}.ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px, 1px, 1px, 1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus, #3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}"],
changeDetection:0});var T3c=new bd("deferredTypes");new bd("hadPreloadClick");var cI=function(a,b,c,d){BH.call(this,a);var e=this;this.queueService=b;this.ngZone=c;this.enclosingHovercard=d;this.timeKey=1;this.updateDebouncedTriggerSubject=new rf;this.categoryHeaderObservable=this.categoryHeaderSubject=new Xj(null);this.hideCardWhenEmpty=!1;this.setup({});d&&d.timeKeyObservable.pipe(Af(this.destroyed)).subscribe(function(f){e.timeKey=f;e.withLatest(function(g){e.update(g)})});this.ngZone.runOutsideAngular(function(){e.updateDebouncedTriggerSubject.pipe(Cf(10)).pipe(Af(e.destroyed)).subscribe(function(){e.withLatest(function(f){e.update(f)})})})};
Z(cI,BH);cI.\u0275dir=BH.\u0275dir;cI.prototype.onLastInteractionChange=function(){this.updateDebouncedTriggerSubject.next()};cI.prototype.update=function(a){if(a=a.state){var b=a.lastInteraction;a.resize&&b&&(this.timeKey===1?this.categoryHeaderSubject.next(b.category.hover):this.timeKey===2&&this.categoryHeaderSubject.next(b.category.click),this.hideCardWhenEmpty&&this.enclosingHovercard&&(this.enclosingHovercard.showHovercardOverride=this.categoryHeaderSubject.value===null?"hide":"no_override"))}};
cI.prototype.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({changes:a,context:b,scope:e,componentHandlerUsingContext:c,mergeKey:d})};da.Object.defineProperties(cI.prototype,{dataSource:{configurable:!0,enumerable:!0,set:function(a){switch(a){case "click":this.timeKey=2;break;case "hover":this.timeKey=1;break;case "time_pin":this.timeKey=0;break;case "most_recent":this.timeKey=3;break;case "multiselect_anchor":this.timeKey=4;break;default:sb(a,"unknown data source")}}}});
cI.\u0275fac=function(a){return new (a||cI)(Ve(LG),Ve(yH),Ve(Tg),Ve(CH,8))};cI.\u0275cmp=C({type:cI,selectors:[["ac-category-header"]],inputs:{hideCardWhenEmpty:"hideCardWhenEmpty",dataSource:"dataSource"},features:[Ff],decls:2,vars:3,consts:[[4,"ngIf"],[1,"category-header-card"]],template:function(a,b){a&1&&(E(0,MGa,3,1,"ng-container",0),U(1,"async"));a&2&&I("ngIf",W(1,1,b.categoryHeaderObservable))},dependencies:[jy,py],styles:[".category-header-card[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);text-align:left;height:16px;font-size:12px}/*# sourceMappingURL=ac_category_header.css.map */"]});var U3c=[[["","prefix",""]],[["","suffix",""]]],V3c=0,W3c={chartGroupId:"",chartId:"",xAxisId:"chart_group",yAxisId:"right",layerId:""},dI=function(){var a=this;this.acDateTimeFastId=V3c++;this.timeKey=1;this.dateFormatStrategy=IDa;this.numericFormatStrategy=JDa;this.dateTimeSubject=new Xj({cursor:null,min:null,max:null,unit:null});this.timeZoneSubject=new Xj(Qk(yBa));this.inputScopeSubject=new Xj({});this.destroyed=new rf;this.queueService=q(yH);this.selectorService=q(LG);this.timeSeriesState=this.lastInteractionState=
this.resizeState=this.xAxisPinState=this.xAxisState=null;this.scope=W3c;var b=q(eH,{optional:!0}),c=q(xG,{optional:!0});b=(b==null?void 0:b.scopeObservable)||(c==null?void 0:c.scopeObservable)||be({});this.scopeObservable=he([b,this.inputScopeSubject]).pipe(A(function(d){var e=l(d);d=e.next().value;e=e.next().value;return Object.assign({},W3c,d,e)}));this.formattedDateTimeObservable=he([this.dateTimeSubject,this.timeZoneSubject]).pipe(A(function(d){var e=l(d);d=e.next().value;e=e.next().value;if(d.unit===
"ms_since_epoch"){var f,g,k;return d.cursor?a.dateFormatStrategy(new Date((f=d.cursor)!=null?f:""),d.min?new Date((g=d.min)!=null?g:""):null,d.max?new Date((k=d.max)!=null?k:""):null,e):""}return a.numericFormatStrategy(d.cursor,d.min,d.max)}));(b=q(CH,{optional:!0}))&&b.timeKeyObservable.pipe(Af(this.destroyed)).subscribe(function(d){a.timeKey=d;a.update()});this.setupStateChangeHandler(this.selectorFactoryToObservable(L_c),function(d){a.onXAxisChange(d)},"xAxis");this.setupStateChangeHandler(this.selectorFactoryToObservable(TXc),
function(d){a.onXAxisPinChange(d)},"xAxisPin");this.setupStateChangeHandler(this.selectorFactoryToObservable(TWc),function(d){a.onResizeChange(d)},"resize");this.setupStateChangeHandler(this.selectorFactoryToObservable(p_c),function(d){a.onLastInteractionChange(d)},"lastInteraction");this.setupStateChangeHandler(this.selectorFactoryToObservable(SXc),function(d){a.onTimeSeriesChange(d)},"timeSeries");this.scopeObservable.subscribe(function(d){a.onScopeChange(d)})};h=dI.prototype;
h.onXAxisChange=function(a){this.xAxisState=a.currentValue;if(fl(a)||gl(a)){var b,c=(b=a.currentValue)==null?void 0:b.timezoneOffset,d;a=(d=a.currentValue)==null?void 0:d.timeZoneId;c=Rk(c,a);this.timeZoneSubject.next(c)}};h.onXAxisPinChange=function(a){this.xAxisPinState=a.currentValue;this.timeKey===0&&this.update()};h.onLastInteractionChange=function(a){this.lastInteractionState=a.currentValue;this.update()};h.onResizeChange=function(a){this.resizeState=a.currentValue};
h.onTimeSeriesChange=function(a){this.timeSeriesState=a.currentValue;this.update()};h.onScopeChange=function(a){a!==null&&(this.scope=a,this.update())};
h.update=function(){var a=this.xAxisState,b=this.xAxisPinState,c=this.lastInteractionState,d=this.resizeState,e=this.timeSeriesState;if(a&&d&&c&&b){c=xl(this.scope,c);d=il(a,d.margins.left,d.width-d.margins.right);a:{var f=this.timeKey;switch(f){case 0:var g;d=(g=b==null?void 0:b.xPos)!=null?g:null;break a;case 2:var k;g=(k=c.click)==null?void 0:k.x;d=d&&g?d(g):null;break a;case 1:var m;g=(m=c.hover)==null?void 0:m.x;d=d&&g?d(g):null;break a;case 3:d=a.max;break a;case 4:var r;g=(r=c.multiselectAnchor)==
null?void 0:r.x;d=d&&g?d(g):null;break a;default:sb(f,"unknown data source")}d=void 0}if(d!==null){b=e==null?void 0:e.byLayer.ids;e=e==null?void 0:e.byLayer.entities;k=g=null;r=m=Infinity;if((b==null?0:b.length)&&e)for(b=l(b),c=b.next();!c.done;c=b.next())if((f=e[c.value])&&(f.valueType===1||f.valueType===2)){var w=void 0,x=void 0,D=void 0;c=(w=f)==null?void 0:(x=w.snapshotMetadata)==null?void 0:(D=x[this.timeKey])==null?void 0:D.alignmentRange.x0;D=x=w=void 0;f=(w=f)==null?void 0:(x=w.snapshotMetadata)==
null?void 0:(D=x[this.timeKey])==null?void 0:D.alignmentRange.x;c&&f?(w=Math.abs(f-d)+Math.abs(c-d),w<r&&(k=c,g=f,r=w)):f&&r===Infinity&&(c=Math.abs(f-d),c<m&&(g=f,m=c))}this.dateTimeSubject.next({cursor:d,max:g,min:k,unit:a.unit})}}};h.setupStateChangeHandler=function(a,b,c){var d=this,e=null;a.pipe(Af(this.destroyed)).subscribe(function(f){var g={previousValue:e,currentValue:f};e=f;d.scheduleStateChangeHandler(g,{},b,d.acDateTimeFastId+"-"+c,d.scope)})};
h.selectorFactoryToObservable=function(a){var b=this;return this.scopeObservable.pipe(zf(function(c){return b.selectorService.getSelection(a,c)}),te(function(c){return c!==void 0}))};h.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({changes:a,context:b,scope:e,componentHandlerUsingContext:c,mergeKey:d})};h.ngOnDestroy=function(){this.destroyed.next();this.destroyed.complete()};
h.ngOnChanges=function(a){"scopeInput"in a&&this.inputScopeSubject.next(Object.assign({},this.scopeInput))};da.Object.defineProperties(dI.prototype,{dataSource:{configurable:!0,enumerable:!0,set:function(a){switch(a){case "click":this.timeKey=2;break;case "hover":this.timeKey=1;break;case "time_pin":this.timeKey=0;break;case "most_recent":this.timeKey=3;break;case "multiselect_anchor":this.timeKey=4;break;default:sb(a,"unknown data source")}this.update()}}});
dI.\u0275fac=function(a){return new (a||dI)};
dI.\u0275cmp=C({type:dI,selectors:[["ac-date-time-fast"]],inputs:{dataSource:"dataSource",dateFormatStrategy:"dateFormatStrategy",numericFormatStrategy:"numericFormatStrategy",scopeInput:[0,"scope","scopeInput"]},features:[Gx],ngContentSelectors:["[prefix]","[suffix]"],decls:2,vars:3,consts:[[1,"date-time-card"]],template:function(a,b){a&1&&(fg(U3c),F(0,NGa,4,1,"div",0),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.formattedDateTimeObservable))?0:-1,c)}},dependencies:[py],styles:[".date-time-card[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);text-align:left;height:16px;font-size:12px}/*# sourceMappingURL=ac_date_time_fast.css.map */"]});var eI=function(a,b){BH.call(this,a);this.ngZone=b;this.nonblockingErrorMessageSubject=new Xj(null);this.nonblockingErrorMessageObservable=this.nonblockingErrorMessageSubject.pipe(of(),Ik(this.ngZone));this.setup({})};Z(eI,BH);eI.\u0275dir=BH.\u0275dir;eI.prototype.onErrorChange=function(a){var b,c,d;a=(b=a.currentValue)==null?void 0:(c=b.nonblockingErrors)==null?void 0:(d=c[0])==null?void 0:d.error.displayMessage;this.nonblockingErrorMessageSubject.next(a||null)};
eI.\u0275fac=function(a){return new (a||eI)(Ve(LG),Ve(Tg))};
eI.\u0275cmp=C({type:eI,selectors:[["ac-nonblocking-error-banner"]],outputs:{nonblockingErrorMessageObservable:"nonblockingErrorMessageObservable"},features:[Ff],decls:2,vars:3,consts:[["class","partial-error-div",4,"ngIf"],[1,"partial-error-div"],["svgIcon","ac:warning",1,"icon","mat-18","partial-error-icon"],[1,"partial-error-message"]],template:function(a,b){a&1&&(E(0,OGa,5,3,"div",0),U(1,"async"));a&2&&I("ngIf",W(1,1,b.nonblockingErrorMessageObservable))},dependencies:[iz,jy,py],styles:['.partial-error-div[_ngcontent-%COMP%]{width:100%;display:flex;font-family:"Roboto",sans-serif;font-size:13px;line-height:20px;margin:0;border-radius:8px;max-height:80px;overflow:auto;padding:16px 24px 12px;background:var(--ac-sys-color-extensions-warning-surface, #fef7e0);box-sizing:border-box}.partial-error-icon[_ngcontent-%COMP%]{flex:0 0 26px}.partial-error-message[_ngcontent-%COMP%]{flex:0 0 1}/*# sourceMappingURL=ac_nonblocking_error_banner.css.map */'],
changeDetection:0});var fI=function(a,b,c,d){BH.call(this,a);var e=this;this.queueService=b;this.ngZone=c;this.enclosingHovercard=d;this.hideCardWhenEmpty=!1;this.aboveLabel="Above";this.belowLabel="Below";this.updateDebouncedTriggerSubject=new rf;this.thresholdInfoObservable=this.thresholdInfoSubject=new Xj(null);this.setup({});this.ngZone.runOutsideAngular(function(){e.updateDebouncedTriggerSubject.pipe(Cf(10)).pipe(Af(e.destroyed)).subscribe(function(){e.withLatest(function(f){e.update(f)})})})};Z(fI,BH);
fI.\u0275dir=BH.\u0275dir;fI.prototype.onLastInteractionChange=function(){this.updateDebouncedTriggerSubject.next()};fI.prototype.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({changes:a,context:b,scope:e,componentHandlerUsingContext:c,mergeKey:d})};
fI.prototype.update=function(a){if(a=a.state){var b=a.lastInteraction;a.resize&&b&&(b.threshold?this.thresholdInfoSubject.next(b.threshold.hover):this.thresholdInfoSubject.next(null),this.hideCardWhenEmpty&&this.enclosingHovercard&&(this.enclosingHovercard.showHovercardOverride=this.thresholdInfoSubject.value===null?"hide":"no_override"))}};fI.\u0275fac=function(a){return new (a||fI)(Ve(LG),Ve(yH),Ve(Tg),Ve(CH,8))};
fI.\u0275cmp=C({type:fI,selectors:[["ac-threshold-info"]],inputs:{hideCardWhenEmpty:"hideCardWhenEmpty"},features:[Ff],decls:2,vars:3,consts:[[4,"ngIf"],[1,"threshold-info-body"],[1,"threshold-info-label"],[1,"threshold-info-bounds-label"]],template:function(a,b){a&1&&(E(0,PGa,8,5,"ng-container",0),U(1,"async"));a&2&&I("ngIf",W(1,1,b.thresholdInfoObservable))},dependencies:[jy,py],styles:[".threshold-info-body[_ngcontent-%COMP%]{font-size:12px;line-height:16px;font-weight:400;color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368)}.threshold-info-bounds-label[_ngcontent-%COMP%]{font-weight:800}/*# sourceMappingURL=ac_threshold_info.css.map */"]});var X3c=function(){this.streamActions=[];this.filteredStreamActions=[]};X3c.prototype.ngOnChanges=function(){var a=this;this.filteredStreamActions=this.streamActions.filter(function(b){return a.streamMetadata&&b.relevant(a.streamMetadata)})};X3c.\u0275fac=function(a){return new (a||X3c)};
X3c.\u0275cmp=C({type:X3c,selectors:[["ac-streams-legend-actions"]],inputs:{streamMetadata:"streamMetadata",streamActions:"streamActions"},features:[Gx],decls:4,vars:3,consts:[["streamActionsMenu",""],["class","stream-actions","mat-icon-button","","aria-label","Open timeserie action menu",3,"matMenuTriggerFor",4,"ngIf"],[3,"streamMetadata","streamActions"],["mat-icon-button","","aria-label","Open timeserie action menu",1,"stream-actions",3,"matMenuTriggerFor"]],template:function(a,b){a&1&&(E(0,QGa,
3,1,"button",1),K(1,"mat-menu",null,0),M(3,"ac-stream-action-menu",2),L());a&2&&(I("ngIf",b.filteredStreamActions.length>0),B(3),I("streamMetadata",b.streamMetadata)("streamActions",b.filteredStreamActions))},dependencies:[xy,jy,kz,iz,WA,VA,PF,LF,OF,IH],styles:["button.stream-actions[_ngcontent-%COMP%]{width:16px;height: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-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:0}button.stream-actions[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px;color:#202124}\n/*# sourceMappingURL=ac_streams_legend_actions.css.map */"],
changeDetection:0});var Y3c=function(a){this.valueType=0;this.getColor=a.getColor;this.getDisplayValue=a.getDisplayValue;this.getIsInteracted=a.getIsInteracted;this.getName=a.getName;this.getMinDisplayValue=a.getMinDisplayValue;this.getMaxDisplayValue=a.getMaxDisplayValue;this.getMetadata=a.getMetadata;this.drawnAs=a.drawnAs;this.lineDash=a.lineDash;this.rawValue=a.rawValue;this.scaledValue=a.scaledValue;this.pxValue=a.pxValue;this.shape=a.shape;this.stackingIndex=a.stackingIndex};
da.Object.defineProperties(Y3c.prototype,{color:{configurable:!0,enumerable:!0,get:function(){return this.getColor()}},displayValue:{configurable:!0,enumerable:!0,get:function(){return this.displayValueCache?this.displayValueCache:this.displayValueCache=this.getDisplayValue()}},minDisplayValue:{configurable:!0,enumerable:!0,get:function(){if(this.minDisplayValueCache)return this.minDisplayValueCache;if(this.getMinDisplayValue)return this.minDisplayValueCache=this.getMinDisplayValue()}},maxDisplayValue:{configurable:!0,
enumerable:!0,get:function(){if(this.maxDisplayValueCache)return this.maxDisplayValueCache;if(this.getMaxDisplayValue)return this.maxDisplayValueCache=this.getMaxDisplayValue()}},isInteracted:{configurable:!0,enumerable:!0,get:function(){return this.getIsInteracted()}},name:{configurable:!0,enumerable:!0,get:function(){return this.getName()}},timeshiftDisplayValue:{configurable:!0,enumerable:!0,get:function(){if(this.getTimeshiftDisplayValue)return this.getTimeshiftDisplayValue()}},metadata:{configurable:!0,
enumerable:!0,get:function(){if(this.getMetadata)return this.getMetadata()}}});var Z3c=function(){Y3c.apply(this,arguments);this.valueType=1};Z(Z3c,Y3c);var $3c=function(){Y3c.apply(this,arguments);this.valueType=2};Z($3c,Y3c);var eHa=function(){return[]},cHa=function(a){return{"min-width":a}},SGa=function(a,b){return{$implicit:a,name:b}},XGa=function(a){return{$implicit:a}},a4c=["right","left"],gI=function(){var a=q(LG);BH.call(this,a);var b=this;this.AC_SYS_COLOR_CHART_ON_SURFACE="var(--ac-sys-color-chart-on-surface, #000)";this.queueService=q(yH);this.formatterService=q(KG);this.cdr=q(Yx);this.enclosingHovercard=q(CH,{optional:!0});this.timeKey=1;this.hideThresholds=!1;this.minWidth=0;this.streamActions=[];this.hideUndefinedValues=
this.condensedShapes=!1;this.layerIdsToIgnore=[];this.distributionColorStrategy=b2c;this.chartQuickActionsEnabled=this.formatDistribution=!1;this.sortingSetting="by_value";this.updateTriggerSubject=new rf;this.xAxisLookup={ids:[],entities:{}};this.isQuery=!1;this.seriesMetadataForLabelTablesCache=this.labelTablesCache=null;this.valueColumnLabel="Value";this.updateTimeout=null;this.allStreamsSubject=new Xj([]);this.sortedStreamsObservable=this.allStreamsSubject.pipe(A(function(c){return b.sortingSetting===
"alphabetical"?c.sort(function(d,e){return d.name.localeCompare(e.name,"en")}):c.sort(gHa)}));this.relativeYPosSubject=new Xj(null);this.centerStreamIndexObservable=he([this.sortedStreamsObservable,this.relativeYPosSubject]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return b.getCenterStreamIndex(c,d)}),of());this.streamsObservable=this.sortedStreamsObservable;this.timeshiftColumnLabelSubject=new Xj("");this.timeshiftColumnLabelObservable=this.timeshiftColumnLabelSubject.pipe(wf({bufferSize:1,
refCount:!0}));this.setup({});this.scopeObservable.pipe(zf(function(c){return b.formatterService.getValueStrategy(c)}),Af(this.destroyed)).subscribe(function(c){b.ignoreFloatImprecision=c.ignoreFloatImprecision;b.valueFormatter=function(d,e,f,g){var k,m;return(m=(k=c.formatForHovercard)==null?void 0:k.call(c,d,e,f,g))!=null?m:c.format(d,e,f,g)};b.updateTriggerSubject.next()})};Z(gI,BH);gI.\u0275dir=BH.\u0275dir;h=gI.prototype;
h.ngOnChanges=function(a){BH.prototype.ngOnChanges.call(this,a);"layerIdsToIgnore"in a&&this.update()};
h.ngOnInit=function(){var a=this;this.store.pipe(lk(YG),Af(this.destroyed)).subscribe(function(c){a.xAxisLookup=c});var b=a4c.map(function(c){return a.scopeObservable.pipe(zf(function(d){return a.selectorService.getSelection(cH,Object.assign({},d,{yAxisId:c}))}),A(function(d){return d!=null?d:null}),yf(null),uf(),A(rk),te(function(d){return zl(d)}))});this.enclosingHovercard&&(this.enclosingHovercard.timeKeyObservable.pipe(Af(this.destroyed)).subscribe(function(c){a.timeKey=c}),this.enclosingHovercard.showHovercard.pipe(Af(this.destroyed)).subscribe(function(c){c&&
a.update()}));se.apply(null,[this.updateTriggerSubject].concat(n(b))).pipe(te(function(){var c,d;return(d=(c=a.enclosingHovercard)==null?void 0:c.isShowing)!=null?d:!0}),Af(this.destroyed)).subscribe(function(){a.throttledUpdate()})};h.throttledUpdate=function(){var a=this;this.updateTimeout||(this.updateTimeout=setTimeout(function(){a.update();a.updateTimeout=null},0))};
h.update=function(a){var b=this,c=a4c.map(function(d){return b.scopeObservable.pipe(zf(function(e){return b.selectorService.getSelection(cH,Object.assign({},e,{yAxisId:d}))}))});he(c).pipe(mf(1)).subscribe(function(d){for(var e=new Map,f=0;f<a4c.length;f++)e.set(a4c[f],d[f]);b.withLatest(function(g){var k=g.scope;var m=g.state;if(k&&m&&m.timeSeries&&m.brush&&m.resize){g=m.colorScale;var r=m.seriesSelection,w=m.timeSeries,x=m.resize;if(!m.brush.panning){a&&b.deselectAllSeries(k,r);m=b.getInteractedSeries(r);
r=new Map;for(var D=l(a4c),H=D.next();!H.done;H=D.next()){H=H.value;var J=e.get(H);if(J){J=Al(J,x.margins.top,x.height-x.margins.bottom,J.unit);var O=void 0;r.set(H,(O=J)!=null?O:null)}else r.set(H,null)}w=b.getRelevantLayers(w);x=b.getTimeShiftColumnLabel(k,w);b.timeshiftColumnLabelSubject.next(x);k=b.buildStreams(k,w,m,r,e,g);b.allStreamsSubject.next(k);b.cdr.markForCheck()}}})})};
h.getTimeShiftColumnLabel=function(a,b){var c=null;b=l(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=void 0,f=void 0,g=void 0,k=void 0,m=void 0,r=void 0,w=(g=this.xAxisLookup.entities[Pk((m=(e=a)==null?void 0:e.chartGroupId)!=null?m:"",(r=(f=a)==null?void 0:f.chartId)!=null?r:"",d.xAxisId)])==null?void 0:(k=g.relativeTo)==null?void 0:k.shift;d=w?tDa(w):null;if(!c)c=d;else if(d&&c!==d)throw Error("Kc");}return c||""};h.trackByIndex=function(a){return a};h.onScopeChange=function(){this.updateTriggerSubject.next()};
h.onSeriesSelectionChange=function(a){tl(a)&&this.updateTriggerSubject.next()};h.onChartSpecChange=function(a){var b,c;a=(b=a.currentValue)==null?void 0:(c=b.dataSets)==null?void 0:c[0];this.isQuery=(a==null?void 0:a.timeSeriesQuery)!==void 0||(a==null?void 0:a.prometheusQuery)!==void 0};h.onTimeSeriesChange=function(){this.updateTriggerSubject.next()};h.onResizeChange=function(){this.updateTriggerSubject.next()};
h.onLastInteractionChange=function(a,b){if(a=a.currentValue)b=this.getLastInteractionYPos(xl(b.scope,a)),this.relativeYPosSubject.next(b)};h.deselectAllSeries=function(a,b){var c=this;b&&Object.values(b.byLayer.entities).filter(function(d){return d!==void 0&&d!==null}).forEach(function(d){d.selectedSeries&&a.chartId&&c.store.dispatch(FH({chartId:a.chartId,layerId:d.layerId}))})};
h.getInteractedSeries=function(a){var b=this,c=[];a&&Object.values(a.byLayer.entities).forEach(function(d){c=c.concat(b.getLayerInteractedSeries(d))});return c};h.getLayerInteractedSeries=function(a){if(!a)return[];switch(this.timeKey){case 2:return[];case 0:case 3:return a.selectedSeries;case 1:return a.hoveredSeries;case 4:return[];default:sb(this.timeKey,"unknown data source")}};
h.getLastInteractionYPos=function(a){if(!a)return null;switch(this.timeKey){case 0:var b,c;return(c=(b=a.focus)==null?void 0:b.y)!=null?c:null;case 2:var d,e;return(e=(d=a.click)==null?void 0:d.y)!=null?e:null;case 1:var f,g;return(g=(f=a.hover)==null?void 0:f.y)!=null?g:null;case 3:return null;case 4:var k,m;return(m=(k=a.multiselectAnchor)==null?void 0:k.y)!=null?m:null;default:sb(this.timeKey,"unknown data source")}};
h.displayName=function(a,b){var c=null;a.legendTemplate?b=new Dl(a.legendTemplate):this.labelTemplate&&(b=new Dl(this.labelTemplate));var d=oEa(a.dataSeriesMetadata);d&&b&&(c=b.format(d,this.getTranslationFunctions()));var e;return(e=c)!=null?e:a.name||a.seriesId||""};h.getRelevantLayers=function(a){var b=this;return Object.values(a.byLayer.entities).filter(function(c){return!(!c||b.layerIdsToIgnore.includes(c.layerId)||c.valueType!==1&&c.valueType!==2&&c.valueType!==3)})};
h.buildStreams=function(a,b,c,d,e,f){var g=this,k=new Map,m=new Map;b=l(b);for(var r=b.next(),w={};!r.done;w={layer$jscomp$14:void 0,yAxisState$jscomp$8:void 0,layerColorScale$jscomp$1:void 0,labelFormatter$jscomp$5:void 0,labelFormatter$jscomp$6:void 0},r=b.next())if(w.layer$jscomp$14=r.value,w.yAxisState$jscomp$8=e.get(w.layer$jscomp$14.yAxisId),w.yAxisState$jscomp$8){var x=void 0,D=void 0,H=void 0,J=void 0,O=void 0,R=void 0;r=!!((H=this.xAxisLookup.entities[Pk((O=(x=a)==null?void 0:x.chartGroupId)!=
null?O:"",(R=(D=a)==null?void 0:D.chartId)!=null?R:"",w.layer$jscomp$14.xAxisId)])==null?0:(J=H.relativeTo)==null?0:J.shift);if(w.layer$jscomp$14.valueType===2)for(x=void 0,w.layerColorScale$jscomp$1=(x=f)==null?void 0:x.byLayer.entities[w.layer$jscomp$14.layerId],x=Object.values(w.layer$jscomp$14.bySeries.entities),D=void 0,w.labelFormatter$jscomp$5=this.getCachedLabelFormatter(x,(D=w.layer$jscomp$14.legendTemplate)!=null?D:this.labelTemplate),x=l(x),H=x.next(),D={};!H.done;D={series$jscomp$53:void 0,
getDisplayValueAndBucketCount$jscomp$1:void 0},H=x.next())(D.series$jscomp$53=H.value,!D.series$jscomp$53||this.hideThresholds&&D.series$jscomp$53.drawnAs===6||(H=D.series$jscomp$53.atTimeKey[this.timeKey],this.hideUndefinedValues&&!H))||(D.getDisplayValueAndBucketCount$jscomp$1=function(ja,va){return function(){return g.formatDistributionValue(ja.series$jscomp$53,va.layer$jscomp$14.unit,va.layer$jscomp$14.yAxisId,va.yAxisState$jscomp$8.min,va.yAxisState$jscomp$8.max,va.yAxisState$jscomp$8.unit,va.yAxisState$jscomp$8.maximumFractionDigits)}}(D,
w),H=void 0,J=new $3c({getColor:function(ja,va){return function(){var ya=(0,ja.getDisplayValueAndBucketCount$jscomp$1)().bucketCount;ya=va.layerColorScale$jscomp$1?g.distributionColorStrategy.getColor(ya!=null?ya:va.layerColorScale$jscomp$1.min,va.layerColorScale$jscomp$1):"var(--ac-sys-color-chart-on-surface, #000)";return typeof ya!=="string"?"var(--ac-sys-color-chart-on-surface, #000)":ya}}(D,w),getDisplayValue:function(ja){return function(){return(0,ja.getDisplayValueAndBucketCount$jscomp$1)().displayValue}}(D),
getIsInteracted:function(ja){return function(){return c.map(function(va){return va.seriesId}).includes(ja.series$jscomp$53.seriesId)}}(D),getName:function(ja,va){return function(){return g.displayName(ja.series$jscomp$53,va.labelFormatter$jscomp$5)}}(D,w),getMetadata:function(ja){return function(){return ja.series$jscomp$53.dataSeriesMetadata}}(D),drawnAs:D.series$jscomp$53.drawnAs,lineDash:D.series$jscomp$53.lineDash,rawValue:(H=D.series$jscomp$53.atTimeKey[this.timeKey])!=null?H:void 0}),r?m.set(D.series$jscomp$53.seriesId,
J):k.set(D.series$jscomp$53.seriesId,J));else if(w.layer$jscomp$14.valueType===1||w.layer$jscomp$14.valueType===3)if(x=d.get(w.layer$jscomp$14.yAxisId))for(D=Object.values(w.layer$jscomp$14.bySeries.entities),H=void 0,w.labelFormatter$jscomp$6=this.getCachedLabelFormatter(D,(H=w.layer$jscomp$14.legendTemplate)!=null?H:this.labelTemplate),D=l(D),J=D.next(),H={};!J.done;H={series$jscomp$54:void 0,value$jscomp$8677:void 0,getName$jscomp$4:void 0},J=D.next())if(H.series$jscomp$54=J.value,H.series$jscomp$54&&
(!this.hideThresholds||H.series$jscomp$54.drawnAs!==6)&&(H.value$jscomp$8677=H.series$jscomp$54.atTimeKey[this.timeKey],!this.hideUndefinedValues||H.value$jscomp$8677)){O=function(ja){return function(){return ja.series$jscomp$54.color}}(H);H.getName$jscomp$4=function(ja,va){return function(){return g.displayName(ja.series$jscomp$54,va.labelFormatter$jscomp$6)}}(H,w);R=function(ja,va){return function(){var ya;return g.formatNumericValue((ya=ja.value$jscomp$8677)==null?void 0:ya.y,va.layer$jscomp$14.unit,
va.layer$jscomp$14.yAxisId,va.yAxisState$jscomp$8.min,va.yAxisState$jscomp$8.max,va.yAxisState$jscomp$8.unit,va.yAxisState$jscomp$8.maximumFractionDigits,va.layer$jscomp$14.pointConnectionMethod,(0,ja.getName$jscomp$4)())}}(H,w);var V=void 0;J=((V=H.value$jscomp$8677)==null?void 0:V.min)!==void 0?function(ja,va){return function(){var ya;return g.formatNumericValue((ya=ja.value$jscomp$8677)==null?void 0:ya.min,va.layer$jscomp$14.unit,va.layer$jscomp$14.yAxisId,va.yAxisState$jscomp$8.min,va.yAxisState$jscomp$8.max,
va.yAxisState$jscomp$8.unit,va.yAxisState$jscomp$8.maximumFractionDigits,va.layer$jscomp$14.pointConnectionMethod,(0,ja.getName$jscomp$4)())}}(H,w):void 0;var ba=void 0;V=((ba=H.value$jscomp$8677)==null?void 0:ba.max)!==void 0?function(ja,va){return function(){var ya;return g.formatNumericValue((ya=ja.value$jscomp$8677)==null?void 0:ya.max,va.layer$jscomp$14.unit,va.layer$jscomp$14.yAxisId,va.yAxisState$jscomp$8.min,va.yAxisState$jscomp$8.max,va.yAxisState$jscomp$8.unit,va.yAxisState$jscomp$8.maximumFractionDigits,
va.layer$jscomp$14.pointConnectionMethod,(0,ja.getName$jscomp$4)())}}(H,w):void 0;var pa=function(ja){return function(){return c.map(function(va){return va.seriesId}).includes(ja.series$jscomp$54.seriesId)}}(H),ua=function(ja){return function(){return ja.series$jscomp$54.dataSeriesMetadata}}(H),ma=void 0;ba=H.value$jscomp$8677!==void 0&&H.value$jscomp$8677!==null?(ma=Wk(w.layer$jscomp$14.unit,w.yAxisState$jscomp$8.unit,H.value$jscomp$8677.y))!=null?ma:H.value$jscomp$8677.y:void 0;var Da=ma=void 0;
O=new Z3c({getColor:O,getDisplayValue:R,getIsInteracted:pa,getName:H.getName$jscomp$4,getMetadata:ua,drawnAs:H.series$jscomp$54.drawnAs,lineDash:H.series$jscomp$54.lineDash,rawValue:(Da=(ma=H.value$jscomp$8677)==null?void 0:ma.y)!=null?Da:void 0,scaledValue:ba,pxValue:H.value$jscomp$8677!==void 0&&H.value$jscomp$8677!==null?x(H.value$jscomp$8677.y):void 0,shape:H.series$jscomp$54.shape,stackingIndex:H.series$jscomp$54.stackingIndex,getMinDisplayValue:J,getMaxDisplayValue:V});r?m.set(H.series$jscomp$54.seriesId,
O):k.set(H.series$jscomp$54.seriesId,O)}}a=l(k);e=a.next();for(d={};!e.done;d={shiftedStream$jscomp$3:void 0},e=a.next())f=l(e.value),e=f.next().value,f=f.next().value,d.shiftedStream$jscomp$3=m.get(e),d.shiftedStream$jscomp$3&&(f.getTimeshiftDisplayValue=function(ja){return function(){return ja.shiftedStream$jscomp$3.displayValue}}(d),m.delete(e));return Array.from(k.values()).concat(Array.from(m.values()))};
h.getCachedLabelFormatter=function(a,b){a=pEa(a);var c=qEa(a,b,this.isQuery);b=c.formatter;a=c.labelTables;c=c.seriesMetadata;a&&(this.labelTablesCache=a);c&&(this.seriesMetadataForLabelTablesCache=c);return b};
h.getTranslationFunctions=function(){var a=this,b={};this.withLatest(function(c){var d,e=(d=c.state)==null?void 0:d.map;if(e!==void 0){var f,g;b=Object.assign({},(g=(f=a.customTranslationFunctions)==null?void 0:f.getBoundGlobalFunctions())!=null?g:{},{credentialNameOrId:function(k){var m,r,w;k=(w=k==null?void 0:(m=k.resource)==null?void 0:(r=m.labels)==null?void 0:r.credential_id)!=null?w:"";var x;return(x=e.instance[k])!=null?x:k},instanceNameOrId:function(k){var m,r,w;k=(w=k==null?void 0:(m=k.resource)==
null?void 0:(r=m.labels)==null?void 0:r.instance_id)!=null?w:"";var x;return(x=e.instance[k])!=null?x:k}})}});return b};
h.formatDistributionValue=function(a,b,c,d,e,f,g){var k=this,m=a.atTimeKey[this.timeKey];if(m&&m.bucketIndex!==void 0){var r=m.bucketIndex;a=m.y.bucketCounts[r]||0;var w={yAxisPosition:c,isDistribution:!0};w=this.formatDistribution?this.valueFormatter?this.valueFormatter(a,f,{maximumFractionDigits:g},w):a.toString():a.toString();var x=(a*100/m.y.count).toFixed(),D=l(Bl(m.y,r)),H=D.next().value;D=D.next().value;r===m.y.bucketCounts.length&&(D=null);H===-Infinity&&(H=null);r=l([H,D].map(function(J){if(J===
null||!isFinite(J))return null;b==="{not_a_unit}"&&(b="1");J=Wk(b,f,J)||0;var O;return((O=k.valueFormatter)!=null?O:Yk)(J,f||b,{maximumFractionDigits:g},d!==null&&e!==null&&f!==null?{domain:{min:d,max:e,unit:f},yAxisPosition:c}:void 0)}));m=r.next().value;r=r.next().value;return{displayValue:this.getBucketRangeMessage(w,x,m,r),bucketCount:a}}return{displayValue:"-",bucketCount:null}};
h.formatNumericValue=function(a,b,c,d,e,f,g,k,m){var r,w=(r=this.valueFormatter)!=null?r:Yk;c=d!==null&&e!==null&&f!==null?{domain:{min:d,max:e,unit:f},yAxisPosition:c}:void 0;if(a!==void 0&&a!==null){b==="{not_a_unit}"&&(b="1");var x;k=(x=Wk(b,f,a,this.ignoreFloatImprecision))!=null?x:a;if(m){var D;c=Object.assign({},(D=c)!=null?D:{},{displayName:m})}return w(k,f||b,{maximumFractionDigits:g},c)}switch(k){case "gap_detection":return"-";case "zero_fill":return w(0,f,void 0,c);default:return"-"}};
h.getBucketRangeMessage=function(a,b,c,d){return c===null?(new em("{COUNT} ({PERCENT}%) below {UPPER}")).format({COUNT:a,PERCENT:b,UPPER:d}):d===null?(new em("{COUNT} ({PERCENT}%) above {LOWER}")).format({COUNT:a,PERCENT:b,LOWER:c}):(new em("{COUNT} ({PERCENT}%) between {LOWER} and {UPPER}")).format({COUNT:a,PERCENT:b,LOWER:c,UPPER:d})};
h.getCenterStreamIndex=function(a,b){for(var c=0,d=a.length-1;d>=0;d--){var e=a[d];if(e.isInteracted){c=d;break}b!==null&&e.valueType===1&&e.pxValue!==void 0&&e.pxValue>b&&(c=d)}return c};h.scheduleStateChangeHandler=function(a,b,c,d,e){this.queueService.scheduleChangeHandler({mergeKey:d,context:b,changes:a,scope:e,componentHandlerUsingContext:c})};h.ngOnDestroy=function(){BH.prototype.ngOnDestroy.call(this);this.updateTimeout&&clearTimeout(this.updateTimeout)};
da.Object.defineProperties(gI.prototype,{dataSource:{configurable:!0,enumerable:!0,set:function(a){switch(a){case "click":this.timeKey=2;break;case "hover":this.timeKey=1;break;case "time_pin":this.timeKey=0;break;case "most_recent":this.timeKey=3;break;case "multiselect_anchor":this.timeKey=4;break;default:sb(a,"unknown data source")}this.update()}}});gI.\u0275fac=function(a){return new (a||gI)};
gI.\u0275cmp=C({type:gI,selectors:[["ac-streams-legend"]],inputs:{dataSource:"dataSource",hideThresholds:"hideThresholds",labelTemplate:"labelTemplate",customTranslationFunctions:"customTranslationFunctions",seriesRowTemplate:"seriesRowTemplate",seriesValueTemplate:"seriesValueTemplate",streamActions:"streamActions",condensedShapes:"condensedShapes",hideUndefinedValues:"hideUndefinedValues",layerIdsToIgnore:"layerIdsToIgnore",showHovercardSeriesActionText:"showHovercardSeriesActionText",showLineDash:"showLineDash",
distributionColorStrategy:"distributionColorStrategy",formatDistribution:"formatDistribution",chartQuickActionsEnabled:"chartQuickActionsEnabled",sortingSetting:"sortingSetting"},features:[Ff,Gx],decls:2,vars:3,consts:[[1,"legend-container",3,"itemSize"],[1,"list"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[1,"key","bright"],[3,"color","drawnAs","shape","condensed","lineDash"],[1,"name-wrapper"],[1,"name",3,"ngStyle"],[1,"value","current-value",3,"strong"],[1,"value","current-value"],
[1,"stream-actions"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"streamMetadata","streamActions"]],template:function(a,b){a&1&&(F(0,fHa,5,6,"cdk-virtual-scroll-viewport",0),U(1,"async"));if(a&2){var c;G(((c=W(1,1,b.streamsObservable))==null?0:c.length)?0:-1)}},dependencies:[HH,X3c,ny,oy,bA,Uz,$z,Zz,py],styles:[".legend-container[_ngcontent-%COMP%]{height:100%;color:var(--ac-sys-color-extensions-on-surface,#202124);text-align:left;min-height:16px;font-size:12px;overflow:auto}table[_ngcontent-%COMP%]{table-layout:auto;width:100%}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:12px;font-weight:400;line-height:20px;max-width:300px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr.dummy-row[_ngcontent-%COMP%]{position:absolute;visibility:hidden}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{height:12px;opacity:.66;overflow:hidden;padding:1px 0;text-overflow:ellipsis;top:0;vertical-align:top;padding-right:20px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:has(+.stream-actions), table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:last-child{padding-right:0}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.strong[_ngcontent-%COMP%]{font-weight:500;opacity:1}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.subhead-spacing[_ngcontent-%COMP%]{padding:8px 0 1px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.subhead[_ngcontent-%COMP%]{font-size:10px;line-height:16px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key[_ngcontent-%COMP%]{opacity:.9;padding-right:4px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key.bright[_ngcontent-%COMP%]{opacity:1}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key.dim[_ngcontent-%COMP%]{opacity:.3}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.key[_ngcontent-%COMP%]   ac-key[_ngcontent-%COMP%]{position:relative;top:4px}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.name-wrapper[_ngcontent-%COMP%]{width:100%;max-width:250px;overflow-x:hidden;overflow-y:hidden;text-align:left}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.name-wrapper[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;word-break:break-all}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   td.value2[_ngcontent-%COMP%], table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td.value[_ngcontent-%COMP%]{text-align:right;white-space:nowrap}table[_ngcontent-%COMP%]   tbody.list[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:not(:last-child){margin-right:12px}table[_ngcontent-%COMP%]   td.key[_ngcontent-%COMP%]{width:24px}\n/*# sourceMappingURL=ac_streams_legend.css.map */"],
changeDetection:0});var b4c=["content"],c4c=[[["","header",""]],"*"],d4c=function(a){return{transform:a,"z-index":"1",height:"unset"}},hHa=function(a){return{height:a}},e4c=function(a,b,c){this.element=a;this.renderer=b;this.changeDetector=c;this.items=[];this.hasHeader=!1;this.update=new ui;this.change=new ui;this.start=new ui;this.end=new ui;this.scroll$=new rf;this.startupLoop=!0;this.buriedHeader=!1};h=e4c.prototype;h.onScroll=function(a){this.scroll$.next(a)};
h.ngOnInit=function(){var a=this;this.scroll$.pipe(zf(function(){a.refresh();return be()})).subscribe();this.scrollbarHeight=this.scrollbarWidth=0};h.ngOnChanges=function(a){this.previousEnd=this.previousStart=void 0;var b=a.items||{};a.items==void 0||b.previousValue!=void 0&&b.previousValue.length!==0||(this.startupLoop=!0);this.refresh()};h.ngOnDestroy=function(){if(this.onScrollListener!==void 0)this.onScrollListener()};
h.refresh=function(){var a=this;requestAnimationFrame(function(){a.changeDetector.markForCheck();var b=a.element.nativeElement,c=f4c(a),d=a.items||[];a.scrollHeight=c.childHeight*c.itemCount/c.itemsPerRow;a.element.nativeElement.scrollTop>a.scrollHeight&&(a.element.nativeElement.scrollTop=a.scrollHeight);var e=Math.max(0,a.scrollTop||b.scrollTop)/a.scrollHeight*c.itemCount/c.itemsPerRow,f=b=Math.min(c.itemCount,Math.ceil(e)*c.itemsPerRow+c.itemsPerRow*(c.itemsPerCol+1)),g=b%c.itemsPerRow;g&&(f=b+
c.itemsPerRow-g);e=Math.min(Math.max(0,f-c.itemsPerCol*c.itemsPerRow-c.itemsPerRow),Math.floor(e)*c.itemsPerRow);a.topPadding=c.childHeight*Math.ceil(e/c.itemsPerRow);e=isNaN(e)?-1:e;b=isNaN(b)?-1:b;c=e;f=b;e!==a.previousStart||b!==a.previousEnd?(a.buriedHeader=!1,a.hasHeader&&(isNaN(e)||e===-1?c=e:e===0?(c=e,a.buriedHeader=!0):c=e-1,isNaN(b)||b===-1?f=b:b===0?(f=b,a.buriedHeader=!0):f=b-1),a.update.emit(d.slice(c,f)),e!==a.previousStart&&a.startupLoop===!1&&a.start.emit({start:e,end:b}),b!==a.previousEnd&&
a.startupLoop===!1&&a.end.emit({start:e,end:b}),a.previousStart=e,a.previousEnd=b,a.startupLoop===!0?a.refresh():a.change.emit({start:e,end:b})):a.startupLoop===!0&&(a.startupLoop=!1,a.refresh())})};
var f4c=function(a){var b=a.element.nativeElement,c=a.contentElementRef.nativeElement,d=(a.items||[]).length+(a.hasHeader?1:0),e=b.clientWidth-a.scrollbarWidth,f=b.clientHeight-a.scrollbarHeight;if(a.childWidth==void 0||a.childHeight==void 0)var g=c.children[0]?c.children[0].getBoundingClientRect():{width:e,height:f};c=a.childWidth||g.width;g=a.childHeight||g.height;var k,m=a.contentElementRef.nativeElement.children;for(k=0;k<m.length&&(r==void 0||r===m[k].offsetTop);k++)var r=m[k].offsetTop;r=Math.max(1,
k);k=Math.max(1,Math.floor(e/c));m=Math.max(1,Math.floor(f/g));b=Math.max(0,a.scrollTop||b.scrollTop);m===1&&Math.floor(b/a.scrollHeight*d)+k>=d&&(r=k);return{itemCount:d,viewWidth:e,viewHeight:f,childWidth:c,childHeight:g,itemsPerRow:r,itemsPerCol:m,itemsPerRowByCalc:k}};e4c.\u0275fac=function(a){return new (a||e4c)(Ve(Gd),Ve(ji),Ve(Yx))};
e4c.\u0275cmp=C({type:e4c,selectors:[["virtual-scroll"],["","virtualScroll",""]],viewQuery:function(a,b){a&1&&kg(b4c,5,Gd);if(a&2){var c;og(c=pg())&&(b.contentElementRef=c.first)}},hostBindings:function(a,b){a&1&&N("scroll",function(){return b.onScroll()})},inputs:{items:"items",hasHeader:"hasHeader",scrollbarWidth:"scrollbarWidth",scrollbarHeight:"scrollbarHeight",childWidth:"childWidth",childHeight:"childHeight",scrollTop:"scrollTop"},outputs:{update:"update",change:"change",start:"start",end:"end"},
exportAs:["virtualScroll"],standalone:!1,features:[Gx],ngContentSelectors:["[header]","*"],decls:7,vars:8,consts:[["content",""],[1,"total-padding"],[1,"scrollable-content","header",3,"ngStyle"],[1,"scrollable-content"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"]],template:function(a,b){a&1&&(fg(c4c),M(0,"div",1),K(1,"div",2),gg(2),L(),K(3,"div",3,0),E(5,iHa,1,3,"div",4),gg(6,1),L());a&2&&(xg("height",b.scrollHeight+"px"),B(),I("ngStyle",Kg(6,d4c,"translateY("+b.scrollTop+"px)")),B(2),xg("transform","translateY("+
b.topPadding+"px)"),B(2),I("ngIf",b.buriedHeader))},dependencies:[jy,ny],styles:["[_nghost-%COMP%] {\n      overflow: hidden;\n      overflow-y: auto;\n      position: relative;\n      -webkit-overflow-scrolling: touch;\n    }\n    .scrollable-content[_ngcontent-%COMP%] {\n      top: 0;\n      left: 0;\n      width: 100%;\n      height: 100%;\n      position: absolute;\n    }\n    .total-padding[_ngcontent-%COMP%] {\n      width: 1px;\n      opacity: 0;\n    }"]});var g4c=function(){};
g4c.\u0275fac=function(a){return new (a||g4c)};g4c.\u0275mod=$e({type:g4c});g4c.\u0275inj=Dc({imports:[xy]});var h4c=["trigger"],i4c=["panel"],j4c=[[["mat-select-trigger"]],"*"],k4c=new bd("mat-select-scroll-strategy",{providedIn:"root",factory:function(){var a=q(xe);return function(){return $h(a)}}}),l4c=new bd("MAT_SELECT_CONFIG"),m4c=new bd("MatSelectTrigger"),n4c=function(a,b){this.source=a;this.value=b},hI=function(){var a=this;this._viewportRuler=q(Xh);this._changeDetectorRef=q(Yx);this._elementRef=q(Gd);this._dir=q(ii,{optional:!0});this._idGenerator=q(hi);this._renderer=q(ji);this._parentFormField=
q(gJc,{optional:!0});this.ngControl=q(NB,{self:!0,optional:!0});this._liveAnnouncer=q(Cz);this._defaultOptions=q(l4c,{optional:!0});this._animationsDisabled=ti();this._initialized=new rf;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=q(k4c);this._panelOpen=!1;this._compareWith=function(r,w){return r===w};this._uid=this._idGenerator.getId("mat-select-");this._triggerAriaLabelledBy=null;this._destroy=new rf;this.stateChanges=new rf;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.disabled=!1;this._disableRipple=qg.apply(null,[!1].concat(n([])));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 g,k;this.canSelectNullableOptions=(k=(g=this._defaultOptions)==null?void 0:g.canSelectNullableOptions)!=null?k:!1;this.optionSelectionChanges=le(function(){var r=a.options;return r?r.changes.pipe(yf(r),zf(function(){return se.apply(null,n(r.map(function(w){return w.onSelectionChange})))})):a._initialized.pipe(zf(function(){return a.optionSelectionChanges}))});this.openedChange=new ui;this._openedStream=this.openedChange.pipe(te(function(r){return r}),A(function(){}));
this._closedStream=this.openedChange.pipe(te(function(r){return!r}),A(function(){}));this.selectionChange=new ui;this.valueChange=new ui;this._trackedModal=null;this._skipPredicate=function(r){return a.panelOpen?!1:r.disabled};b=q(AA);c=q(UB,{optional:!0});d=q(dC,{optional:!0});e=q(new Hx("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this);var m;((m=this._defaultOptions)==null?void 0:m.typeaheadDebounceInterval)!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval);
this._errorStateTracker=new zHc(b,this.ngControl,d,c,this.stateChanges);this._scrollStrategy=this._scrollStrategyFactory();this.tabIndex=e==null?0:parseInt(e)||0;this.id=this.id};h=hI.prototype;h._scrollOptionIntoView=function(a){var b=this.options.toArray()[a];if(b){var c=this.panel.nativeElement,d=Tsa(a,this.options,this.optionGroups);b=b._getHostElement();c.scrollTop=a===0&&d===1?0:Usa(b.offsetTop,b.offsetHeight,c.scrollTop,c.offsetHeight)}};
h._positioningSettled=function(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)};h._getChangeEvent=function(a){return new n4c(this,a)};h.ngOnInit=function(){var a=this;this._selectionModel=new Wz(this.multiple);this.stateChanges.next();this._viewportRuler.change().pipe(Af(this._destroy)).subscribe(function(){a.panelOpen&&(a._overlayWidth=a._getOverlayWidth(a._preferredOverlayOrigin),a._changeDetectorRef.detectChanges())})};
h.ngAfterContentInit=function(){var a=this;this._initialized.next();this._initialized.complete();this._initKeyManager();this._selectionModel.changed.pipe(Af(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(yf(null),Af(this._destroy)).subscribe(function(){a._resetOptions();a._initializeSelection()})};
h.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())};
h.ngOnChanges=function(a){(a.disabled||a.userAriaDescribedBy)&&this.stateChanges.next();a.typeaheadDebounceInterval&&this._keyManager&&MGc(this._keyManager,this.typeaheadDebounceInterval)};h.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()};h.toggle=function(){this.panelOpen?this.close():this.open()};
h.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(mf(1)).subscribe(function(){a._changeDetectorRef.detectChanges();a._positioningSettled()});xHc(this._overlayDir);Nz(this._keyManager,null);
this._highlightCorrectOption();this._changeDetectorRef.markForCheck();this.stateChanges.next();Promise.resolve().then(function(){return a.openedChange.emit(!0)})}};h._applyModalPanelOwnership=function(){var a=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(a){var b=this.id+"-panel";this._trackedModal&&Wh(this._trackedModal,"aria-owns",b);usa(a,"aria-owns",b);this._trackedModal=a}};
h._clearFromModal=function(){this._trackedModal&&(Wh(this._trackedModal,"aria-owns",this.id+"-panel"),this._trackedModal=null)};h.close=function(){var a=this;this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),Nz(this._keyManager,this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(function(){return a.openedChange.emit(!1)}))};
h._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")}};h._detachOverlay=function(){yHc(this._overlayDir);this._changeDetectorRef.markForCheck()};h.writeValue=function(a){this._assignValue(a)};h.registerOnChange=function(a){this._onChange=a};h.registerOnTouched=function(a){this._onTouched=a};h.setDisabledState=function(a){this.disabled=a;this._changeDetectorRef.markForCheck();this.stateChanges.next()};h.updateErrorState=function(){this._errorStateTracker.updateErrorState()};
h._isRtl=function(){return this._dir?this._dir.value==="rtl":!1};h._handleKeydown=function(a){this.disabled||(this.panelOpen?this._handleOpenKeydown(a):this._handleClosedKeydown(a))};
h._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||Nh(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))};
h._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||Nh(a))if(!e&&this._multiple&&c===65&&a.ctrlKey){a.preventDefault();var f=this.options.some(function(g){return!g.disabled&&!g.selected});this.options.forEach(function(g){g.disabled||(f?g.select():g.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()};h._handleOverlayKeydown=function(a){a.keyCode!==27||Nh(a)||(a.preventDefault(),this.close())};h._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())};h._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())};
h._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""};h._initializeSelection=function(){var a=this;Promise.resolve().then(function(){a.ngControl&&(a._value=a.ngControl.value);a._setSelectionByValue(a._value);a.stateChanges.next()})};
h._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))?Pz(this._keyManager,a):this.panelOpen||Pz(this._keyManager,-1);this._changeDetectorRef.markForCheck()};
h._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};h._assignValue=function(a){return a!==this._value||this._multiple&&Array.isArray(a)?(this.options&&this._setSelectionByValue(a),this._value=a,!0):!1};
h._getOverlayWidth=function(a){return this.panelWidth==="auto"?(a instanceof sA?a.elementRef:a||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth};h._syncParentProperties=function(){if(this.options)for(var a=l(this.options),b=a.next();!b.done;b=a.next())b.value._changeDetectorRef.markForCheck()};
h._initKeyManager=function(){var a=this;this._keyManager=LGc(NGc(Oz(Nz(Mz(MGc(new Qz(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()})};h._resetOptions=function(){var a=this,b=se(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Af(b)).subscribe(function(c){a._onSelect(c.source,c.isUserInput);c.isUserInput&&!a.multiple&&a._panelOpen&&(a.close(),a.focus())});se.apply(null,n(this.options.map(function(c){return c._stateChanges}))).pipe(Af(b)).subscribe(function(){a._changeDetectorRef.detectChanges();a.stateChanges.next()})};
h._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()};
h._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()}};h._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()};
h._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])};h._canOpen=function(){var a;return!this._panelOpen&&!this.disabled&&((a=this.options)==null?void 0:a.length)>0&&!!this._overlayDir};h.focus=function(a){this._elementRef.nativeElement.focus(a)};
h._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};h._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null};
h._getTriggerAriaLabelledby=function(){if(this.ariaLabel)return null;var a,b=((a=this._parentFormField)==null?void 0:a.getLabelId())||"";this.ariaLabelledby&&(b+=" "+this.ariaLabelledby);b||(b=this._valueId);return b};h.setDescribedByIds=function(a){var b=this._elementRef.nativeElement;a.length?b.setAttribute("aria-describedby",a.join(" ")):b.removeAttribute("aria-describedby")};
h.onContainerClick=function(a){a=Qh(a);a&&(a.tagName==="MAT-OPTION"||a.classList.contains("cdk-overlay-backdrop")||a.closest(".mat-mdc-select-panel"))||(this.focus(),this.open())};
da.Object.defineProperties(hI.prototype,{focused:{configurable:!0,enumerable:!0,get:function(){return this._focused||this._panelOpen}},disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple()},set:function(a){this._disableRipple.set(a)}},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:Vta(b._rawValidators,vi))!=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()}},describedByIds:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this._elementRef.nativeElement.getAttribute("aria-describedby"))==null?void 0:a.split(" "))||
[]}},shouldLabelFloat:{configurable:!0,enumerable:!0,get:function(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}}});hI.\u0275fac=function(a){return new (a||hI)};
hI.\u0275cmp=C({type:hI,selectors:[["mat-select"]],contentQueries:function(a,b,c){a&1&&(lg(c,m4c,5),lg(c,GA,5),lg(c,DHc,5));if(a&2){var d;og(d=pg())&&(b.customTrigger=d.first);og(d=pg())&&(b.options=d);og(d=pg())&&(b.optionGroups=d)}},viewQuery:function(a,b){a&1&&(kg(h4c,5),kg(i4c,5),kg(tA,5));if(a&2){var c;og(c=pg())&&(b.trigger=c.first);og(c=pg())&&(b.panel=c.first);og(c=pg())&&(b._overlayDir=c.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(a,
b){a&1&&N("keydown",function(c){return b._handleKeydown(c)})("focus",function(){return b._onFocus()})("blur",function(){return b._onBlur()});a&2&&(Jf("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()),yg("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)("mat-select-open",b.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",bh],disableRipple:[2,"disableRipple","disableRipple",bh],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ch(a)}],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",
bh],placeholder:"placeholder",required:[2,"required","required",bh],multiple:[2,"multiple","multiple",bh],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",bh],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ch],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",
canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",bh]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ig([{provide:wB,useExisting:hI},{provide:CHc,useExisting:hI}]),Gx],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","cdkConnectedOverlayUsePopover",
"inline",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=t();fg(j4c);K(0,"div",2,0);N("click",function(){u(c);return v(b.open())});K(3,"div",3);F(4,jHa,
2,1,"span",4)(5,mHa,3,1,"span",5);L();K(6,"div",6)(7,"div",7);yd();K(8,"svg",8);M(9,"path",9);L()()()();E(10,nHa,3,10,"ng-template",10);N("detach",function(){u(c);return v(b.close())})("backdropClick",function(){u(c);return v(b.close())})("overlayKeydown",function(d){u(c);return v(b._handleOverlayKeydown(d))})}a&2&&(a=Q(1),B(3),Jf("id",b._valueId),B(),G(b.empty?4:5),B(6),I("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",b._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",
b._scrollStrategy)("cdkConnectedOverlayOrigin",b._preferredOverlayOrigin||a)("cdkConnectedOverlayPositions",b._positions)("cdkConnectedOverlayWidth",b._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0))},dependencies:[sA,tA,hy],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-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.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:relative;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}.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 iI=function(){};iI.\u0275fac=function(a){return new (a||iI)};iI.\u0275dir=af({type:iI,selectors:[["mat-select-trigger"]],features:[Ig([{provide:m4c,useExisting:iI}])]});var jI=function(){};jI.\u0275fac=function(a){return new (a||jI)};jI.\u0275mod=$e({type:jI});jI.\u0275inj=Dc({imports:[uA,JA,jz,aA,CB,JA]});var o4c=["matSelect"],kI=function(){this.ve={ChartLegendMenu:68533,ColumnMenuToggle:68546,ChartLegendMenuItem:68534};this.VALUE_COLUMN_UNIQUE_ID=-1;this.TIMESHIFT_COLUMN_UNIQUE_ID=-2;this.selectedColumnsChanged=new ui;this.columnsModel=[]};kI.prototype.ngOnChanges=function(a){a.labelsModel&&(this.columnsModel=(a=this.labelsModel.selectedColumns)?[-1,-2].concat.apply([-1,-2],n(a.map(function(b){return b.uniqueId}))):[-1,-2])};
kI.prototype.valueChanged=function(a){this.columnsModel=a;var b;this.labelsModel.selectedColumns=((b=this.labelsModel.selectableColumns)==null?void 0:b.filter(function(c){return c.uniqueId&&a.indexOf(c.uniqueId)!==-1}))||[];this.selectedColumnsChanged.emit()};kI.\u0275fac=function(a){return new (a||kI)};
kI.\u0275cmp=C({type:kI,selectors:[["ac-column-selector"]],viewQuery:function(a,b){a&1&&kg(o4c,5);if(a&2){var c;og(c=pg())&&(b.matSelect=c.first)}},inputs:{labelsModel:"labelsModel",timeshiftName:"timeshiftName",valueName:"valueName"},outputs:{selectedColumnsChanged:"selectedColumnsChanged"},features:[Gx],decls:11,vars:10,consts:function(){return[["matSelect",""],["multipleOptions",""]," \ufffd0\ufffd [Required] "," \ufffd0\ufffd [Required] "," \ufffd0\ufffd ",[1,"ac-legend-column-selector-root"],
["multiple","","aria-label","Legend columns","matTooltip","Legend columns","matTooltipClass","ac-mat-tooltip",1,"ac-legend-column-selector-mat-select",3,"valueChange","value","panelClass","ve"],[3,"ve","veClick"],["svgIcon","ac:view_column","aria-label","Open legend columns selector",1,"ac-column-selector-icon"],["disabled","true",3,"value",4,"ngIf"],["disabled","true",3,"value"],[4,"ngIf","ngIfElse"],[3,"value","ve","veClick",4,"ngFor","ngForOf"],[3,"value","ve","veClick"]]},template:function(a,
b){if(a&1){var c=t();K(0,"div",5)(1,"mat-select",6,0);N("valueChange",function(d){u(c);return v(b.valueChanged(d))});K(3,"mat-select-trigger",7);M(4,"mat-icon",8);L();E(5,oHa,2,2,"mat-option",9);K(6,"mat-option",10);$f(7,2);L();E(8,pHa,3,2,"ng-container",11)(9,rHa,1,1,"ng-template",null,1,Og);L()()}a&2&&(a=Q(10),B(),I("value",b.columnsModel)("panelClass","ac-legend-column-selector-panel")("ve",b.ve.ChartLegendMenu),B(2),I("ve",b.ve.ColumnMenuToggle)("veClick",!0),B(2),I("ngIf",b.timeshiftName),B(),
I("value",b.VALUE_COLUMN_UNIQUE_ID),B(),ag(b.valueName),qna(34),B(),I("ngIf",(b.labelsModel.selectableColumns==null?null:b.labelsModel.selectableColumns.length)===1)("ngIfElse",a))},dependencies:[iz,GA,hI,iI,MA,iy,jy,GE],styles:[".ac-screen-reader-only-content{clip:rect(1px,1px,1px,1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focus-within:focus-within,.ac-a11y-focusable:focus-visible,.ac-a11y-focused,.ac-a11y-keyboard-focusable.cdk-keyboard-focused{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus,#3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable{outline:none}::ng-deep .mat-mdc-tooltip.ac-mat-tooltip{color:var(--ac-sys-color-extensions-on-surface,#202124);background:var(--ac-sys-color-extensions-neutral-container,#f1f3f4)}div.ac-legend-column-selector-root{position:absolute;z-index:1;top:1px;right:8px;height:40px;width:40px}.ac-column-selector-icon{border-radius:50%;-moz-box-sizing:border-box;box-sizing:border-box;height:32px;margin-top:4px;margin-left:4px;padding:4px;width:32px;fill:var(--ac-sys-color-extensions-on-surface,#202124)}.ac-column-selector-icon:hover{background-color:var(--ac-sys-color-extensions-on-surface-hover,#f7f8f8)}.mat-mdc-select.ac-legend-column-selector-mat-select .mat-mdc-select-trigger{width:100%}.mat-mdc-select.ac-legend-column-selector-mat-select .mat-mdc-select-arrow-wrapper{display:none}.mat-mdc-select.ac-legend-column-selector-mat-select:focus-visible{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus,#3367d6);outline-offset:-3px}div.mat-mdc-select-panel.ac-legend-column-selector-panel{max-width:448px;min-width:156px;position:absolute;right:1px;background-color:var(--ac-sys-color-extensions-surface,#fff)}div.mat-mdc-select-panel.ac-legend-column-selector-panel mat-option.mat-mdc-option{height:28px}\n/*# sourceMappingURL=ac_column_selector_style.css.map */"],
encapsulation:2,changeDetection:0});var p4c=function(a,b,c){this.baseKey=a;this.defaultValue=b;this.inputKeys=c},q4c=function(a,b,c){this._options=a;this._mediaMonitor=b;this._onMediaChanges=c;this._subscribers=[];this._registryMap=this._buildRegistryMap();this._subscribers=this._configureChangeObservers()};h=q4c.prototype;h.hasKeyValue=function(a){return typeof this._options.inputKeys[a]!=="undefined"};h.destroy=function(){this._subscribers.forEach(function(a){a.unsubscribe()});this._subscribers=[]};
h._configureChangeObservers=function(){var a=this,b=[];this._registryMap.forEach(function(c){a._keyInUse(c.key)&&b.push(a.mediaMonitor.observe(c.alias).pipe(A(function(d){d=d.clone();d.property=a._options.baseKey;return d})).subscribe(function(d){a._onMonitorEvents(d)}))});return b};h._buildRegistryMap=function(){var a=this;return this.mediaMonitor.breakpoints.map(function(b){return Sl({},b,{baseKey:a._options.baseKey,key:a._options.baseKey+b.suffix})}).filter(function(b){return a._keyInUse(b.key)})};
h._onMonitorEvents=function(a){a.property==this._options.baseKey&&(a.value=this._calculateActivatedValue(a),this._onMediaChanges(a))};h._keyInUse=function(a){return this._lookupKeyValue(a)!==void 0};h._calculateActivatedValue=function(a){var b=this._options.baseKey+a.suffix,c=this._activatedInputKey;c=a.matches?b:c==b?null:c;this._activatedInputKey=this._validateInputKey(c);return this.activatedInput};
h._validateInputKey=function(a){var b=this,c=this.mediaMonitor.activeOverlaps;!b._keyInUse(a)&&c.some(function(d){d=b._options.baseKey+d.suffix;return b._keyInUse(d)?(a=d,!0):!1});return a};h._lookupKeyValue=function(a){return this._options.inputKeys[a]};
da.Object.defineProperties(q4c.prototype,{mediaMonitor:{configurable:!0,enumerable:!0,get:function(){return this._mediaMonitor}},activatedInputKey:{configurable:!0,enumerable:!0,get:function(){return this._activatedInputKey||this._options.baseKey}},activatedInput:{configurable:!0,enumerable:!0,get:function(){var a=this.activatedInputKey;return this.hasKeyValue(a)?this._lookupKeyValue(a):this._options.defaultValue}}});var r4c=new bd("Token (@angular/flex-layout) Breakpoints");var lI=function(a){this._registry=a},s4c=function(a,b){return a._registry.find(function(c){return c.alias==b})},t4c=function(a,b){return a._registry.find(function(c){return c.mediaQuery==b})};
da.Object.defineProperties(lI.prototype,{items:{configurable:!0,enumerable:!0,get:function(){return[].concat(n(this._registry))}},sortedItems:{configurable:!0,enumerable:!0,get:function(){var a=this._registry.filter(function(c){return c.overlapping===!0}),b=this._registry.filter(function(c){return c.overlapping!==!0});return[].concat(n(a),n(b))}},overlappings:{configurable:!0,enumerable:!0,get:function(){return this._registry.filter(function(a){return a.overlapping==1})}},aliases:{configurable:!0,
enumerable:!0,get:function(){return this._registry.map(function(a){return a.alias})}},suffixes:{configurable:!0,enumerable:!0,get:function(){return this._registry.map(function(a){return a.suffix})}}});lI.\u0275fac=function(a){return new (a||lI)(Wc(r4c))};lI.\u0275prov=Cc({token:lI,factory:lI.\u0275fac});var u4c=function(a,b,c,d){this.matches=a===void 0?!1:a;this.mediaQuery=b===void 0?"all":b;this.mqAlias=c===void 0?"":c;this.suffix=d===void 0?"":d};u4c.prototype.clone=function(){return new u4c(this.matches,this.mediaQuery,this.mqAlias,this.suffix)};var mI=function(a,b){this._zone=a;this._document=b;this._registry=new Map;this._source=new Xj(new u4c(!0));this._observable$=this._source.asObservable()};mI.prototype.isActive=function(a){return this._registry.has(a)?this._registry.get(a).matches:!1};mI.prototype.observe=function(a){v4c(this,a);return this._observable$.pipe(te(function(b){return a?b.mediaQuery===a:!0}))};
var v4c=function(a,b){b=typeof b==="undefined"?[]:typeof b==="string"?[b]:vHa(b);b.length>0&&(uHa(b,a._document),b.forEach(function(c){var d=a._registry.get(c),e=function(f){a._zone.run(function(){a._source.next(new u4c(f.matches,c))})};d||(d=a._buildMQL(c),d.addListener(e),a._registry.set(c,d));d.matches&&e(d)}))};mI.prototype._buildMQL=function(a){return sHa()&&window.matchMedia("all").addListener?window.matchMedia(a):{matches:a==="all"||a==="",media:a,addListener:function(){},removeListener:function(){}}};
mI.\u0275fac=function(a){return new (a||mI)(Wc(Tg),Wc(Yh))};mI.\u0275prov=Cc({token:mI,factory:mI.\u0275fac});var tHa={};var nI=function(a,b){this._breakpoints=a;this._matchMedia=b;this._registerBreakpoints()};nI.prototype.isActive=function(a){var b=s4c(this._breakpoints,a)||t4c(this._breakpoints,a);return this._matchMedia.isActive(b?b.mediaQuery:a)};nI.prototype.observe=function(a){var b=s4c(this._breakpoints,a)||t4c(this._breakpoints,a);return this._matchMedia.observe(b?b.mediaQuery:a).pipe(A(function(c){return wHa(c,b)}),te(function(c){return b?c.mqAlias!=="":!0}))};
nI.prototype._registerBreakpoints=function(){var a=this._breakpoints.sortedItems.map(function(b){return b.mediaQuery});v4c(this._matchMedia,a)};
da.Object.defineProperties(nI.prototype,{breakpoints:{configurable:!0,enumerable:!0,get:function(){return[].concat(n(this._breakpoints.items))}},activeOverlaps:{configurable:!0,enumerable:!0,get:function(){var a=this;return this._breakpoints.overlappings.reverse().filter(function(b){return a._matchMedia.isActive(b.mediaQuery)})}},active:{configurable:!0,enumerable:!0,get:function(){var a=this,b=null;this.breakpoints.reverse().forEach(function(d){d.alias!==""&&!b&&a._matchMedia.isActive(d.mediaQuery)&&
(b=d)});var c=this.breakpoints[0];return b||(this._matchMedia.isActive(c.mediaQuery)?c:null)}}});nI.\u0275fac=function(a){return new (a||nI)(Wc(lI),Wc(mI))};nI.\u0275prov=Cc({token:nI,factory:nI.\u0275fac});var zHa=["row","column","row-reverse","column-reverse"];var oI=function(a,b,c){this._mediaMonitor=a;this._elementRef=b;this._renderer=c;this._inputMap={};this._hasInitialized=!1};h=oI.prototype;h._queryInput=function(a){return this._inputMap[a]};h.ngOnInit=function(){this._display=this._getDisplayStyle();this._hasInitialized=!0};h.ngOnChanges=function(a){throw Error("Mc`"+a);};h.ngOnDestroy=function(){this._mqActivation&&this._mqActivation.destroy();this._mediaMonitor=null};
h._getDefaultVal=function(a,b){a=this._queryInput(a);return a!==void 0&&a!==null&&a!==""?a:b};h._getDisplayStyle=function(a){a=a===void 0?this.nativeElement:a;return GHa(a||this.nativeElement,"display")};h._getAttributeValue=function(a,b){b=(b=b===void 0?this.nativeElement:b)||this.nativeElement;return DHa()?b.getAttribute(a):""};
h._getFlowDirection=function(a,b){b=b===void 0?!1:b;var c="row";a&&(c=GHa(a,"flex-direction")||"row",DHa()&&a.style["flex-direction"]||!b||FHa(this._renderer,yHa(c),[a]));return c.trim()};h._applyStyleToElement=function(a,b,c){c=c===void 0?this.nativeElement:c;var d=this._renderer;c=c||this.nativeElement;var e={};typeof a==="string"&&(e[a]=b,a=e);e=CHa(a);EHa(e,c,d)};h._applyStyleToElements=function(a,b){FHa(this._renderer,a,b||[])};
h._cacheInput=function(a,b){if(typeof b==="object")for(var c in b)this._inputMap[c]=b[c];else this._inputMap[a]=b};h._listenForMediaQueryChanges=function(a,b,c){this._mqActivation||(this._mqActivation=new q4c(new p4c(a,b,this._inputMap),this._mediaMonitor,function(d){return c(d)}));return this._mqActivation};h.hasKeyValue=function(a){return this._mqActivation.hasKeyValue(a)};
da.Object.defineProperties(oI.prototype,{parentElement:{configurable:!0,enumerable:!0,get:function(){return this._elementRef.nativeElement.parentNode}},nativeElement:{configurable:!0,enumerable:!0,get:function(){return this._elementRef.nativeElement}},hasInitialized:{configurable:!0,enumerable:!0,get:function(){return this._hasInitialized}}});oI.\u0275fac=function(a){return new (a||oI)(Ve(nI),Ve(Gd),Ve(ji))};oI.\u0275dir=af({type:oI,features:[Gx]});var pI=function(a,b,c){oI.call(this,a,b,c);this._announcer=new Xj("row");this.layout$=this._announcer.asObservable()};Z(pI,oI);pI.prototype.ngOnChanges=function(a){(a.layout!=null||this._mqActivation)&&this._updateWithDirection()};pI.prototype.ngOnInit=function(){var a=this;oI.prototype.ngOnInit.call(this);this._listenForMediaQueryChanges("layout","row",function(b){a._updateWithDirection(b.value)});this._updateWithDirection()};
pI.prototype._updateWithDirection=function(a){a=a||this._queryInput("layout")||"row";this._mqActivation&&(a=this._mqActivation.activatedInput);a=yHa(a);this._applyStyleToElement(a);this._announcer.next(a["flex-direction"])};
da.Object.defineProperties(pI.prototype,{layout:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layout",a)}},layoutXs:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutXs",a)}},layoutSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutSm",a)}},layoutMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutMd",a)}},layoutLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutLg",a)}},layoutXl:{configurable:!0,
enumerable:!0,set:function(a){this._cacheInput("layoutXl",a)}},layoutGtXs:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutGtXs",a)}},layoutGtSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutGtSm",a)}},layoutGtMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutGtMd",a)}},layoutGtLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutGtLg",a)}},layoutLtSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutLtSm",
a)}},layoutLtMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutLtMd",a)}},layoutLtLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutLtLg",a)}},layoutLtXl:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("layoutLtXl",a)}}});pI.\u0275fac=function(a){return new (a||pI)(Ve(nI),Ve(Gd),Ve(ji))};
pI.\u0275dir=af({type:pI,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{layout:[0,"fxLayout","layout"],layoutXs:[0,"fxLayout.xs","layoutXs"],layoutSm:[0,"fxLayout.sm","layoutSm"],layoutMd:[0,"fxLayout.md",
"layoutMd"],layoutLg:[0,"fxLayout.lg","layoutLg"],layoutXl:[0,"fxLayout.xl","layoutXl"],layoutGtXs:[0,"fxLayout.gt-xs","layoutGtXs"],layoutGtSm:[0,"fxLayout.gt-sm","layoutGtSm"],layoutGtMd:[0,"fxLayout.gt-md","layoutGtMd"],layoutGtLg:[0,"fxLayout.gt-lg","layoutGtLg"],layoutLtSm:[0,"fxLayout.lt-sm","layoutLtSm"],layoutLtMd:[0,"fxLayout.lt-md","layoutLtMd"],layoutLtLg:[0,"fxLayout.lt-lg","layoutLtLg"],layoutLtXl:[0,"fxLayout.lt-xl","layoutLtXl"]},standalone:!1,features:[Ff,Gx]});var qI=function(a,b,c,d){oI.call(this,a,b,c);this._layout="row";d&&(this._layoutWatcher=d.layout$.subscribe(this._onLayoutChange.bind(this)))};Z(qI,oI);h=qI.prototype;h.ngOnChanges=function(a){(a.wrap!=null||this._mqActivation)&&this._updateWithValue()};h.ngOnInit=function(){var a=this;oI.prototype.ngOnInit.call(this);this._listenForMediaQueryChanges("wrap","wrap",function(b){a._updateWithValue(b.value)});this._updateWithValue()};
h.ngOnDestroy=function(){oI.prototype.ngOnDestroy.call(this);this._layoutWatcher&&this._layoutWatcher.unsubscribe()};h._onLayoutChange=function(a){var b=this;this._layout=(a||"").toLowerCase().replace("-reverse","");zHa.find(function(c){return c===b._layout})||(this._layout="row");this._updateWithValue()};h._updateWithValue=function(a){a=a||this._queryInput("wrap");this._mqActivation&&(a=this._mqActivation.activatedInput);a=AHa(a||"wrap");this._applyStyleToElement(this._buildCSS(a))};
h._buildCSS=function(a){return{display:"flex","flex-wrap":a,"flex-direction":this.flowDirection}};
da.Object.defineProperties(qI.prototype,{wrap:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrap",a)}},wrapXs:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapXs",a)}},wrapSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapSm",a)}},wrapMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapMd",a)}},wrapLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapLg",a)}},wrapXl:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapXl",
a)}},wrapGtXs:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapGtXs",a)}},wrapGtSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapGtSm",a)}},wrapGtMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapGtMd",a)}},wrapGtLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapGtLg",a)}},wrapLtSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapLtSm",a)}},wrapLtMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapLtMd",
a)}},wrapLtLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapLtLg",a)}},wrapLtXl:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("wrapLtXl",a)}},flowDirection:{configurable:!0,enumerable:!0,get:function(){return this._layoutWatcher?this._layout:this._getFlowDirection(this.nativeElement)}}});qI.\u0275fac=function(a){return new (a||qI)(Ve(nI),Ve(Gd),Ve(ji),Ve(pI,10))};
qI.\u0275dir=af({type:qI,selectors:[["","fxLayoutWrap",""],["","fxLayoutWrap.xs",""],["","fxLayoutWrap.sm",""],["","fxLayoutWrap.lg",""],["","fxLayoutWrap.xl",""],["","fxLayoutWrap.gt-xs",""],["","fxLayoutWrap.gt-sm",""],["","fxLayoutWrap.gt-md",""],["","fxLayoutWrap.gt-lg",""],["","fxLayoutWrap.lt-xs",""],["","fxLayoutWrap.lt-sm",""],["","fxLayoutWrap.lt-md",""],["","fxLayoutWrap.lt-lg",""]],inputs:{wrap:[0,"fxLayoutWrap","wrap"],wrapXs:[0,"fxLayoutWrap.xs","wrapXs"],wrapSm:[0,"fxLayoutWrap.sm",
"wrapSm"],wrapMd:[0,"fxLayoutWrap.md","wrapMd"],wrapLg:[0,"fxLayoutWrap.lg","wrapLg"],wrapXl:[0,"fxLayoutWrap.xl","wrapXl"],wrapGtXs:[0,"fxLayoutWrap.gt-xs","wrapGtXs"],wrapGtSm:[0,"fxLayoutWrap.gt-sm","wrapGtSm"],wrapGtMd:[0,"fxLayoutWrap.gt-md","wrapGtMd"],wrapGtLg:[0,"fxLayoutWrap.gt-lg","wrapGtLg"],wrapLtSm:[0,"fxLayoutWrap.lt-sm","wrapLtSm"],wrapLtMd:[0,"fxLayoutWrap.lt-md","wrapLtMd"],wrapLtLg:[0,"fxLayoutWrap.lt-lg","wrapLtLg"],wrapLtXl:[0,"fxLayoutWrap.lt-xl","wrapLtXl"]},standalone:!1,features:[Ff,
Gx]});var rI=function(a,b,c,d,e){oI.call(this,a,b,c);var f=this;this._container=d;this._wrap=e;this._layout="row";this._cacheInput("flex","");this._cacheInput("shrink",1);this._cacheInput("grow",1);d&&(this._layoutWatcher=d.layout$.subscribe(function(g){f._onLayoutChange(g)}))};Z(rI,oI);h=rI.prototype;h.ngOnChanges=function(a){(a.flex!=null||this._mqActivation)&&this._updateStyle()};
h.ngOnInit=function(){var a=this;oI.prototype.ngOnInit.call(this);this._listenForMediaQueryChanges("flex","",function(b){a._updateStyle(b.value)});this._updateStyle()};h.ngOnDestroy=function(){oI.prototype.ngOnDestroy.call(this);this._layoutWatcher&&this._layoutWatcher.unsubscribe()};h._onLayoutChange=function(a){this._layout=a||this._layout||"row";this._updateStyle()};
h._updateStyle=function(a){a=a||this._queryInput("flex")||"";this._mqActivation&&(a=this._mqActivation.activatedInput);a=String(a).replace(";","");var b=this._queryInput("grow"),c=this._queryInput("shrink");b=b===void 0?"1":b;c=c===void 0?"1":c;var d=[b,c,a],e=a.indexOf("calc");e>0?(d[2]=HHa(a.substring(e).trim()),a=a.substr(0,e).trim().split(" "),a.length==2&&(d[0]=a[0],d[1]=a[1])):e==0?d[2]=HHa(a.trim()):(d=a.split(" "),d=d.length===3?d:[b,c,a]);this._applyStyleToElement(this._validateValue.apply(this,
d))};
h._validateValue=function(a,b,c){var d=this._getFlowDirection(this.parentElement,!0).indexOf("column")>-1?"column":"row";a=a=="0"?0:a;b=b=="0"?0:b;var e={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(c||""){case "":e=Sl(e,{flex:"1 1 0.000000001px"});break;case "initial":case "nogrow":a=0;e=Sl(e,{flex:"0 1 auto"});break;case "grow":e=Sl(e,{flex:"1 1 100%"});break;case "noshrink":b=0;e=Sl(e,{flex:"1 0 auto"});break;case "auto":e=Sl(e,{flex:a+" "+b+" auto"});break;case "none":b=
a=0;e=Sl(e,{flex:"0 0 auto"});break;default:var f=String(c).indexOf("calc")>-1;var g=String(c).indexOf("%")>-1&&!f;(f=f||String(c).indexOf("px")>-1||String(c).indexOf("em")>-1||String(c).indexOf("vw")>-1||String(c).indexOf("vh")>-1)||g||isNaN(c)||(c+="%");c==="0px"&&(c="0%");e=Sl(e,{flex:a+" "+b+" "+(f||this._wrap?c:"100%")})}g=BHa(d)?"max-width":"max-height";d=BHa(d)?"min-width":"min-height";f=String(c).indexOf("calc")>-1||c=="auto";var k=String(c).indexOf("px")>-1||f,m=!a&&!b;e[d]=c=="0%"?0:m||
k&&a?c:null;e[g]=c=="0%"?0:m||!f&&b?c:null;return Sl(e,{"box-sizing":"border-box"})};
da.Object.defineProperties(rI.prototype,{shrink:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("shrink",a)}},grow:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("grow",a)}},flex:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flex",a)}},flexXs:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexXs",a)}},flexSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexSm",a)}},flexMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexMd",
a)}},flexLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexLg",a)}},flexXl:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexXl",a)}},flexGtXs:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexGtXs",a)}},flexGtSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexGtSm",a)}},flexGtMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexGtMd",a)}},flexGtLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexGtLg",
a)}},flexLtSm:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexLtSm",a)}},flexLtMd:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexLtMd",a)}},flexLtLg:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexLtLg",a)}},flexLtXl:{configurable:!0,enumerable:!0,set:function(a){this._cacheInput("flexLtXl",a)}}});rI.\u0275fac=function(a){return new (a||rI)(Ve(nI),Ve(Gd),Ve(ji),Ve(pI,12),Ve(qI,12))};
rI.\u0275dir=af({type:rI,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""],[""]],inputs:{shrink:[0,"fxShrink","shrink"],grow:[0,"fxGrow","grow"],flex:[0,"fxFlex","flex"],flexXs:[0,"fxFlex.xs","flexXs"],flexSm:[0,"fxFlex.sm","flexSm"],flexMd:[0,
"fxFlex.md","flexMd"],flexLg:[0,"fxFlex.lg","flexLg"],flexXl:[0,"fxFlex.xl","flexXl"],flexGtXs:[0,"fxFlex.gt-xs","flexGtXs"],flexGtSm:[0,"fxFlex.gt-sm","flexGtSm"],flexGtMd:[0,"fxFlex.gt-md","flexGtMd"],flexGtLg:[0,"fxFlex.gt-lg","flexGtLg"],flexLtSm:[0,"fxFlex.lt-sm","flexLtSm"],flexLtMd:[0,"fxFlex.lt-md","flexLtMd"],flexLtLg:[0,"fxFlex.lt-lg","flexLtLg"],flexLtXl:[0,"fxFlex.lt-xl","flexLtXl"]},standalone:!1,features:[Ff,Gx]});var JHa=[{alias:"xs",mediaQuery:"(min-width: 0px) and (max-width: 599px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"(min-width: 600px)"},{alias:"lt-sm",overlapping:!0,mediaQuery:"(max-width: 599px)"},{alias:"sm",mediaQuery:"(min-width: 600px) and (max-width: 959px)"},{alias:"gt-sm",overlapping:!0,mediaQuery:"(min-width: 960px)"},{alias:"lt-md",overlapping:!0,mediaQuery:"(max-width: 959px)"},{alias:"md",mediaQuery:"(min-width: 960px) and (max-width: 1279px)"},{alias:"gt-md",overlapping:!0,mediaQuery:"(min-width: 1280px)"},
{alias:"lt-lg",overlapping:!0,mediaQuery:"(max-width: 1279px)"},{alias:"lg",mediaQuery:"(min-width: 1280px) and (max-width: 1919px)"},{alias:"gt-lg",overlapping:!0,mediaQuery:"(min-width: 1920px)"},{alias:"lt-xl",overlapping:!0,mediaQuery:"(max-width: 1920px)"},{alias:"xl",mediaQuery:"(min-width: 1920px) and (max-width: 5000px)"}];var KHa=/(\.|-|_)/g;var w4c={provide:r4c,useFactory:function(){return LHa()}};var x4c=function(){},sI=function(a,b){this.breakpoints=a;this.mediaWatcher=b;this._registerBreakPoints();this.observable$=this._buildObservable()};h=sI.prototype;h.isActive=function(a){a=this._toMediaQuery(a);return this.mediaWatcher.isActive(a)};h.subscribe=function(a,b,c){return this.observable$.subscribe(a,b,c)};h.asObservable=function(){return this.observable$};h._registerBreakPoints=function(){var a=this.breakpoints.sortedItems.map(function(b){return b.mediaQuery});v4c(this.mediaWatcher,a)};
h._buildObservable=function(){var a=this;return this.mediaWatcher.observe().pipe(te(function(b){return b.matches===!0}),te(function(b){return(b=t4c(a.breakpoints,b.mediaQuery))?!b.overlapping:!0}),A(function(b){return wHa(b,a._findByQuery(b.mediaQuery))}))};h._findByAlias=function(a){return s4c(this.breakpoints,a)};h._findByQuery=function(a){return t4c(this.breakpoints,a)};h._toMediaQuery=function(a){var b=this._findByAlias(a)||this._findByQuery(a);return b?b.mediaQuery:a};
sI.\u0275fac=function(a){return new (a||sI)(Wc(lI),Wc(mI))};sI.\u0275prov=Cc({token:sI,factory:sI.\u0275fac});var y4c={provide:x4c,deps:[[new ECc,new FCc,x4c],mI,lI],useFactory:function(a,b,c){return a||new sI(c,b)}};var tI=function(){};tI.\u0275fac=function(a){return new (a||tI)};tI.\u0275mod=$e({type:tI});tI.\u0275inj=Dc({providers:[w4c,lI,mI,nI,y4c]});var z4c={provide:nI,deps:[[new ECc,new FCc,nI],lI,mI],useFactory:function(a,b,c){return a||new nI(b,c)}};var uI=function(){};uI.\u0275fac=function(a){return new (a||uI)};uI.\u0275mod=$e({type:uI});uI.\u0275inj=Dc({providers:[z4c,w4c,y4c],imports:[tI,jz,tI]});var A4c=["valueHeader"],kIa=function(a){return{transform:a}},eIa=function(a,b){return{transform:a,width:b}},MHa=function(a){return{hidden:a}},B4c={category:"",id:null,direction:null},vI=function(a,b,c){this.focusMonitor=a;this.ngZone=b;this.cdr=c;this.columnKeys=[];this.valueColumnWidth=80;this.statsModeSummaryColumnLabel="";this.xAxisPinEnabled=!0;this.defaultSortingColumn="";this.defaultSortingDirection=null;this.streamActions=[];this.sortFunc=new ui;this.setAndSnapXAxisPin=new ui;this.currentSortColumn=
B4c;this.hoveredColumn=null;this.ve={ColumnSortButton:68547};this.sortBySelectedTooltip="Sort by selected";this.streamActionsMenuTooltip="Actions";this.isXAxisPinSet=!0;this.prevSortColumn=B4c;this.destroyed=new rf};vI.prototype.ngAfterViewInit=function(){var a=this;this.focusMonitor.monitor(this.valueHeader,!0).pipe(Af(this.destroyed)).subscribe(function(){a.ngZone.run(function(){a.cdr.markForCheck()})})};
vI.prototype.ngOnInit=function(){var a=this;this.defaultSortingColumn==="VALUE"&&(C4c(this,this.defaultSortingColumn,1E3,this.defaultSortingDirection),THa(this));this.xAxisPinEnabled&&this.xAxisPinUpdated&&this.xAxisPinUpdated.pipe(Af(this.destroyed)).subscribe(function(b){b[0]&&b[1]?(a.isXAxisPinSet||C4c(a,"VALUE",1E3,-1),a.isXAxisPinSet=!0):(a.currentSortColumn=Object.assign({},a.prevSortColumn),a.isXAxisPinSet=!1);D4c(a)})};vI.prototype.ngOnDestroy=function(){this.destroyed.next()};
var THa=function(a){a.prevSortColumn=Object.assign({},a.currentSortColumn)},D4c=function(a){if(a.currentSortColumn.id)switch(a.currentSortColumn.category){case "MAIN":a.sortFunc.emit(kFa(a.currentSortColumn.direction));break;case "LABEL":var b=0;a.labelsModel.selectedColumns&&a.labelsModel.selectedColumns.forEach(function(c,d){a.currentSortColumn.id!==null&&c.uniqueId===a.currentSortColumn.id-10&&(b=d)});a.sortFunc.emit(lFa(b,a.currentSortColumn.direction));break;case "VALUE":a.sortFunc.emit(mFa(a.currentSortColumn.direction));
break;case "IS_SELECTED":a.sortFunc.emit(nFa(a.currentSortColumn.direction))}else a.sortFunc.emit(kFa(a.currentSortColumn.direction))},SHa=function(a,b,c){if(a.currentSortColumn.id===c){a:switch(a.currentSortColumn.direction){case null:case 1:b=-1;break a;case -1:b=1;break a;default:b=null}a.currentSortColumn=Object.assign({},a.currentSortColumn,{direction:b});a.currentSortColumn.direction===null&&(a.currentSortColumn=Object.assign({},a.currentSortColumn,{id:0}))}else C4c(a,b,c,-1);D4c(a)},C4c=function(a,
b,c,d){a.currentSortColumn={category:b,id:c,direction:d};D4c(a)},E4c=function(a){return a.currentSortColumn.id===2&&(a.currentSortColumn.direction||0)>0},F4c=function(a){return a.currentSortColumn.id===2&&(a.currentSortColumn.direction||0)<0};vI.prototype.getColIndexOffset=function(){var a,b=(a=this.labelsModel.labelHeaders)==null?void 0:a.length;return b?b-1:0};vI.prototype.getColIndexOffsetForTimeshift=function(){return 3+this.getColIndexOffset()};
vI.prototype.getColIndexOffsetForStatsMode=function(){var a=3;this.timeshiftName&&(a+=1);return a+this.getColIndexOffset()};vI.prototype.getColIndexOffsetForValue=function(){var a=3;this.timeshiftName&&(a+=1);this.statsModeSummaryColumnLabel&&(a+=1);return a+this.getColIndexOffset()};
var ZHa=function(a,b){return aIa(a,b)?"ascending":bIa(a,b)?"descending":"none"},$Ha=function(a,b){return aIa(a,b)?"Sort in descending order.":bIa(a,b)?"Sort in ascending order.":"Sort in descending order."},aIa=function(a,b){return a.currentSortColumn.id===10+b&&(a.currentSortColumn.direction||0)>0},bIa=function(a,b){return a.currentSortColumn.id===10+b&&(a.currentSortColumn.direction||0)<0},G4c=function(a){return a.currentSortColumn.id===1E3&&(a.currentSortColumn.direction||0)>0},H4c=function(a){return a.currentSortColumn.id===
1E3&&(a.currentSortColumn.direction||0)<0};vI.\u0275fac=function(a){return new (a||vI)(Ve(mz),Ve(Tg),Ve(Yx))};
vI.\u0275cmp=C({type:vI,selectors:[["ac-table-legend-header"]],viewQuery:function(a,b){a&1&&kg(A4c,5);if(a&2){var c;og(c=pg())&&(b.valueHeader=c.first)}},inputs:{columnKeys:"columnKeys",xAxisPinUpdated:"xAxisPinUpdated",valueName:"valueName",valueColumnWidth:"valueColumnWidth",timeshiftName:"timeshiftName",statsModeSummaryColumnLabel:"statsModeSummaryColumnLabel",columnFlexWidth:"columnFlexWidth",scale:"scale",labelsModel:"labelsModel",scrollLeft:"scrollLeft",widthDifference:"widthDifference",xAxisPinEnabled:"xAxisPinEnabled",
defaultSortingColumn:"defaultSortingColumn",defaultSortingDirection:"defaultSortingDirection",streamActions:"streamActions"},outputs:{sortFunc:"sortFunc",setAndSnapXAxisPin:"setAndSnapXAxisPin"},decls:24,vars:35,consts:[["valueHeader",""],["fxLayout","row","role","presentation"],["role","columnheader","aria-colindex","1","aria-colspan","2",1,"ac-combined-chip-and-is-selected-container",3,"ngStyle"],["type","button","matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-header","ac-table-legend-checkbox-header",
"sortable-column",3,"click","mouseenter","mouseleave","ve","veClick","matTooltip"],[1,"ac-table-legend-checkbox-header-container"],["class","icon sort-icon hovered-icon","svgIcon","ac:keyboard_arrow_down",3,"ngClass",4,"ngIf"],["class","icon sort-icon checkbox-sort-icon","svgIcon","ac:keyboard_arrow_up",4,"ngIf"],["class","icon sort-icon checkbox-sort-icon","svgIcon","ac:keyboard_arrow_down",4,"ngIf"],["svgIcon","ac:selected_series",1,"icon","checkbox-header-icon"],["aria-colindex","2","role","columnheader",
"class","ac-table-legend-label-header-column-keys","fxFlex","100",4,"ngIf"],["fxFlex","100","role","presentation",1,"ac-legend-key"],[4,"ngIf"],["class","ac-table-legend-header ac-table-legend-value-header ac-table-value-column legend-table-cell timeshift-value ac-a11y-keyboard-focusable","role","columnheader","matTooltipClass","ac-mat-tooltip",3,"matTooltip","ngStyle","ngClass",4,"ngIf"],["class","ac-table-legend-header ac-table-legend-value-header ac-table-value-column legend-table-cell stats-mode-summary-value ac-a11y-keyboard-focusable",
"role","columnheader","matTooltipClass","ac-mat-tooltip",3,"matTooltip","ngStyle","ngClass",4,"ngIf"],["role","columnheader",1,"ac-legend-key","ac-table-value-column","current-value","sortable-column","Value","ac-a11y-keyboard-focusable",3,"ngStyle"],["fxFlex","100",1,"ac-table-legend-header","ac-table-legend-value-header","legend-table-cell",3,"mouseenter","mouseleave","click","ngClass","ve","veClick"],[1,"sort-by-value-trigger"],["class","icon sort-icon","svgIcon","ac:keyboard_arrow_up",4,"ngIf"],
["class","icon sort-icon","svgIcon","ac:keyboard_arrow_down",4,"ngIf"],["matTooltipClass","ac-mat-tooltip",3,"matTooltip"],["class","ac-table-options-column legend-table-cell last table-options","role","none",3,"ngStyle",4,"ngIf"],["class","ac-table-options-column legend-table-cell last table-options","role","columnheader",3,"ngStyle",4,"ngIf"],["svgIcon","ac:keyboard_arrow_down",1,"icon","sort-icon","hovered-icon",3,"ngClass"],["svgIcon","ac:keyboard_arrow_up",1,"icon","sort-icon","checkbox-sort-icon"],
["svgIcon","ac:keyboard_arrow_down",1,"icon","sort-icon","checkbox-sort-icon"],["aria-colindex","2","role","columnheader","fxFlex","100",1,"ac-table-legend-label-header-column-keys"],["matTooltipClass","ac-mat-tooltip",3,"class","fxFlex","matTooltip","click",4,"ngFor","ngForOf"],["matTooltipClass","ac-mat-tooltip",3,"click","fxFlex","matTooltip"],["svgIcon","ac:keyboard_arrow_up",1,"icon","sort-icon"],["svgIcon","ac:keyboard_arrow_down",1,"icon","sort-icon"],["role","columnheader",3,"fxFlex","class",
4,"ngFor","ngForOf"],["role","columnheader",3,"fxFlex"],["matTooltipClass","ac-mat-tooltip",1,"legend-table-cell","ac-table-legend-header","ac-table-legend-label-header",3,"mouseenter","mouseleave","click","ve","veClick","matTooltip"],["role","columnheader","matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-header","ac-table-legend-value-header","ac-table-value-column","legend-table-cell","timeshift-value","ac-a11y-keyboard-focusable",3,"matTooltip","ngStyle","ngClass"],["role","columnheader",
"matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-header","ac-table-legend-value-header","ac-table-value-column","legend-table-cell","stats-mode-summary-value","ac-a11y-keyboard-focusable",3,"matTooltip","ngStyle","ngClass"],["role","none",1,"ac-table-options-column","legend-table-cell","last","table-options",3,"ngStyle"],["role","columnheader",1,"ac-table-options-column","legend-table-cell","last","table-options",3,"ngStyle"],[1,"ac-screen-reader-only-content"]],template:function(a,b){if(a&1){var c=
t();K(0,"div",1)(1,"div",2)(2,"button",3);N("click",function(){u(c);SHa(b,"IS_SELECTED",2);THa(b);return v()})("mouseenter",function(){u(c);b.xAxisPinEnabled&&(b.hoveredColumn=2);return v()})("mouseleave",function(){u(c);b.xAxisPinEnabled&&(b.hoveredColumn=null);return v()});K(3,"span",4);E(4,NHa,1,3,"mat-icon",5)(5,OHa,1,0,"mat-icon",6)(6,PHa,1,0,"mat-icon",7);M(7,"mat-icon",8);L()()();E(8,VHa,2,1,"div",9);K(9,"div",10);E(10,dIa,2,1,"ng-container",11);L();E(11,fIa,2,10,"span",12)(12,gIa,2,10,"span",
13);K(13,"div",14)(14,"button",15,0);N("mouseenter",function(){u(c);b.xAxisPinEnabled&&(b.hoveredColumn=1E3);return v()})("mouseleave",function(){u(c);b.xAxisPinEnabled&&(b.hoveredColumn=null);return v()})("click",function(){u(c);b.xAxisPinEnabled&&(b.isXAxisPinSet?SHa(b,"VALUE",1E3):b.setAndSnapXAxisPin.emit());return v()});K(16,"span",16);E(17,hIa,1,3,"mat-icon",5)(18,iIa,1,0,"mat-icon",17)(19,jIa,1,0,"mat-icon",18);K(20,"span",19);S(21);L()()()();E(22,lIa,1,3,"span",20)(23,mIa,3,4,"span",21);L()}a&
2&&(B(),I("ngStyle",Kg(30,kIa,"translateX("+b.scrollLeft+"px)")),Jf("aria-sort",E4c(b)?"ascending":F4c(b)?"descending":"none"),B(),I("ve",b.ve.ColumnSortButton)("veClick",!0)("matTooltip",b.sortBySelectedTooltip),Jf("aria-label",b.sortBySelectedTooltip)("title",E4c(b)?"Sort in descending order.":F4c(b)?"Sort in ascending order.":"Sort in descending order."),B(2),I("ngIf",!(E4c(b)||F4c(b))),B(),I("ngIf",E4c(b)),B(),I("ngIf",F4c(b)),B(2),I("ngIf",!(b.labelsModel==null?0:b.labelsModel.labelHeaders==
null?0:b.labelsModel.labelHeaders.length)),B(2),I("ngIf",b.labelsModel&&b.labelsModel.labelPercents&&b.labelsModel.selectedColumns),B(),I("ngIf",b.timeshiftName),B(),I("ngIf",b.statsModeSummaryColumnLabel),B(),I("ngStyle",Lg(32,eIa,"translateX("+(-1*b.widthDifference+b.scrollLeft)+"px)",b.valueColumnWidth+"px")),Jf("aria-sort",G4c(b)?"ascending":H4c(b)?"descending":"none")("aria-colindex",b.getColIndexOffsetForValue()),B(),I("ngClass",!b.timeshiftName&&!b.statsModeSummaryColumnLabel&&b.scale>100?
"leftmost-frozen":"")("ve",b.ve.ColumnSortButton)("veClick",!0),Jf("title",G4c(b)?"Sort in descending order.":"Sort in ascending order."),B(3),I("ngIf",!(G4c(b)||H4c(b))),B(),I("ngIf",G4c(b)),B(),I("ngIf",H4c(b)),B(),I("matTooltip",Fg(b.valueName)),Jf("aria-label",b.valueName),B(),Ag(b.valueName),B(),I("ngIf",b.streamActions.length===0),B(),I("ngIf",b.streamActions.length>0))},dependencies:[uI,pI,rI,iz,MA,hy,iy,jy,ny,GE],styles:[".ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px,1px,1px,1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus,#3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}  .mat-mdc-tooltip.ac-mat-tooltip{color:var(--ac-sys-color-extensions-on-surface,#202124);background:var(--ac-sys-color-extensions-neutral-container,#f1f3f4)}button.ac-table-legend-header[_ngcontent-%COMP%], span.ac-table-legend-header[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:none;background:none;font-family:inherit;font-size:100%;font-style:inherit;font-weight:700;-moz-box-sizing:border-box;box-sizing:border-box}button.ac-table-legend-header[_ngcontent-%COMP%]{border:3px solid transparent}button.ac-table-legend-header[_ngcontent-%COMP%]:focus-visible{border:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus,#3367d6)}button.ac-table-legend-label-header[_ngcontent-%COMP%]{padding-left:1px;padding-right:5px;text-align:left}button.ac-table-legend-checkbox-header[_ngcontent-%COMP%]{padding-left:0;padding-right:0;margin-right:-3px}.checkbox-header-text[_ngcontent-%COMP%]{padding-left:4px}button.ac-table-legend-value-header[_ngcontent-%COMP%]{padding-right:5px;text-align:right}.ac-table-options-column[_ngcontent-%COMP%]{-webkit-align-content:center;-ms-flex-line-pack:center;align-content:center;display:inline-block;-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;width:40px}.ac-table-value-column[_ngcontent-%COMP%]{display:inline-block;-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;text-align:right;background:var(--ac-sys-color-extensions-surface,#fff)}.sortable-column[_ngcontent-%COMP%]{cursor:pointer}.sort-icon[_ngcontent-%COMP%]{vertical-align:middle;visibility:visible;width:18px}.sort-icon.hidden[_ngcontent-%COMP%]{overflow:hidden;visibility:hidden}.sort-icon.hovered-icon[_ngcontent-%COMP%]{color:var(--ac-sys-color-extensions-on-surface-variant,#5f6368)}.checkbox-header-icon[_ngcontent-%COMP%]{vertical-align:middle;visibility:visible;width:18px}.ac-table-legend-checkbox-header[_ngcontent-%COMP%]{-webkit-box-flex:100%;-webkit-flex:100%;-moz-box-flex:100%;-ms-flex:100%;flex:100%;text-align:right;padding-left:12px;padding-right:5px}\n/*# sourceMappingURL=ac_table_legend_header_style.css.map */",
".ac-chip-absolute-background[_ngcontent-%COMP%], .ac-chip-static-container[_ngcontent-%COMP%], .ac-is-selected-container[_ngcontent-%COMP%], .ac-table-legend-options.legend-table-cell[_ngcontent-%COMP%], .ac-table-legend-value.legend-table-cell[_ngcontent-%COMP%], .ac-table-options-column.legend-table-cell[_ngcontent-%COMP%], .ac-table-value-column.legend-table-cell[_ngcontent-%COMP%]{background-color:var(--ac-sys-color-extensions-surface,#fff)}.ac-chip-absolute-background[_ngcontent-%COMP%]{-moz-box-sizing:content-box;box-sizing:content-box;height:12px;line-height:42px;padding:15px 8px 15px 24px;position:absolute;width:12px}.ac-chip-relative-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;line-height:42px;position:relative}.ac-chip-static-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;width:50px}.ac-is-selected-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;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}.ac-legend-key[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ac-table-legend-chip[_ngcontent-%COMP%]{border-radius:50px;-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;height:12px;line-height:42px;margin:15px 8px 15px 24px;position:absolute;width:12px}.ac-table-legend-chip.ac-chip-position-static[_ngcontent-%COMP%]{position:static}.legend-table-cell[_ngcontent-%COMP%]{height:42px;padding-left:4px;padding-right:8px}.legend-table-cell[_ngcontent-%COMP%]   .current-value[_ngcontent-%COMP%]{-moz-box-sizing:content-box;box-sizing:content-box;padding:0 8px 0 0}.legend-table-cell.leftmost-frozen[_ngcontent-%COMP%]{border-left:1px solid var(--ac-sys-color-extensions-hairline,#dadce0);padding-left:8px}.legend-table-cell.last[_ngcontent-%COMP%]{padding-right:0}.ac-combined-chip-and-is-selected-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;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;width:72px}\n/*# sourceMappingURL=ac_table_legend_header_and_row_style.css.map */"],
changeDetection:0});var I4c={color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1},J4c=new bd("mat-checkbox-default-options",{providedIn:"root",factory:function(){return I4c}});var K4c=["input"],L4c=["label"],M4c=function(){},wI=function(){this._elementRef=q(Gd);this._changeDetectorRef=q(Yx);this._ngZone=q(Tg);this._animationsDisabled=ti();this._options=q(J4c,{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 ui;this.indeterminateChange=new ui;this._onTouched=function(){};this._currentAnimationClass="";this._currentCheckState=0;this._controlValueAccessorChangeFn=function(){};this._validatorChangeFn=function(){};this._disabled=this._checked=!1;this._indeterminate=qg.apply(null,[!1].concat(n([])));q(fi).load(BA);var a=q(new Hx("tabindex"),
{optional:!0});this._options=this._options||I4c;this.color=this._options.color||I4c.color;this.tabIndex=a==null?0:parseInt(a)||0;this.id=this._uniqueId=q(hi).getId("mat-mdc-checkbox-");var b,c;this.disabledInteractive=(c=(b=this._options)==null?void 0:b.disabledInteractive)!=null?c:!1};h=wI.prototype;h.focus=function(){this._inputElement.nativeElement.focus()};h._createChangeEvent=function(a){var b=new M4c;b.source=this;b.checked=a;return b};
h._getAnimationTargetElement=function(){var a;return(a=this._inputElement)==null?void 0:a.nativeElement};h.ngOnChanges=function(a){a.required&&this._validatorChangeFn()};h.ngAfterViewInit=function(){this._syncIndeterminate(this.indeterminate)};h._isRippleDisabled=function(){return this.disableRipple||this.disabled};h._onLabelTextChange=function(){this._changeDetectorRef.detectChanges()};h.writeValue=function(a){this.checked=!!a};h.registerOnChange=function(a){this._controlValueAccessorChangeFn=a};
h.registerOnTouched=function(a){this._onTouched=a};h.setDisabledState=function(a){this.disabled=a};h.validate=function(a){return this.required&&a.value!==!0?{required:!0}:null};h.registerOnValidatorChange=function(a){this._validatorChangeFn=a};
h._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)})}};h._emitChangeEvent=function(){this._controlValueAccessorChangeFn(this.checked);this.change.emit(this._createChangeEvent(this.checked));this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)};h.toggle=function(){this.checked=!this.checked;this._controlValueAccessorChangeFn(this.checked)};
h._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.set(!1);a.indeterminateChange.emit(!1)}),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};h._onInteractionEvent=function(a){a.stopPropagation()};h._onBlur=function(){var a=this;Promise.resolve().then(function(){a._onTouched();a._changeDetectorRef.markForCheck()})};
h._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""};h._syncIndeterminate=function(a){var b=this._inputElement;b&&(b.nativeElement.indeterminate=a)};h._onInputClick=function(){this._handleInputClick()};h._onTouchTargetClick=function(){this._handleInputClick();this.disabled||this._inputElement.nativeElement.focus()};h._preventBubblingFromLabel=function(a){a.target&&this._labelElement.nativeElement.contains(a.target)&&a.stopPropagation()};
da.Object.defineProperties(wI.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.set(a);b&&(a?this._transitionCheckState(3):this._transitionCheckState(this.checked?1:2),this.indeterminateChange.emit(a));this._syncIndeterminate(a)}}});wI.\u0275fac=function(a){return new (a||wI)};
wI.\u0275cmp=C({type:wI,selectors:[["mat-checkbox"]],viewQuery:function(a,b){a&1&&(kg(K4c,5),kg(L4c,5));if(a&2){var c;og(c=pg())&&(b._inputElement=c.first);og(c=pg())&&(b._labelElement=c.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(a,b){a&2&&(Rf("id",b.id),Jf("tabindex",null)("aria-label",null)("aria-labelledby",null),zg(b.color?"mat-"+b.color:"mat-accent"),yg("_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",bh],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",bh],labelPosition:"labelPosition",name:"name",value:"value",
disableRipple:[2,"disableRipple","disableRipple",bh],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?void 0:ch(a)}],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",bh],checked:[2,"checked","checked",bh],disabled:[2,"disabled","disabled",bh],indeterminate:[2,"indeterminate","indeterminate",bh]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ig([{provide:KB,useExisting:Tc(function(){return wI}),multi:!0},
{provide:LB,useExisting:wI,multi:!0}]),Gx],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=t();fg();K(0,"div",3);N("click",function(d){u(c);return v(b._preventBubblingFromLabel(d))});K(1,"div",4,0)(3,"div",5);N("click",function(){u(c);
return v(b._onTouchTargetClick())});L();K(4,"input",6,1);N("blur",function(){u(c);return v(b._onBlur())})("click",function(){u(c);return v(b._onInputClick())})("change",function(d){u(c);return v(b._onInteractionEvent(d))});L();M(6,"div",7);K(7,"div",8);yd();K(8,"svg",9);M(9,"path",10);L();zd();M(10,"div",11);L();M(11,"div",12);L();K(12,"label",13,2);gg(14);L()()}a&2&&(a=Q(2),I("labelPosition",b.labelPosition),B(4),yg("mdc-checkbox--selected",b.checked),I("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),Jf("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),B(7),I("matRippleTrigger",a)("matRippleDisabled",
b.disableRipple||b.disabled)("matRippleCentered",!0),B(),I("for",b.inputId))},dependencies:[EA,CA],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(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-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(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-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(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-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(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-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(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-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(--mat-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(--mat-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(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.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(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-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(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}@media(forced-colors: active){.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{border-color:GrayText}}.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(--mat-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(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-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(--mat-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(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-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(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.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:GrayText}}.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(--mat-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(--mat-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(--mat-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:GrayText}}.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(--mat-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(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:GrayText}}.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))}@media(forced-colors: active){.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{color:GrayText}}.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:var(--mat-checkbox-touch-target-size, 48px);width:var(--mat-checkbox-touch-target-size, 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 xI=function(){};xI.\u0275fac=function(a){return new (a||xI)};xI.\u0275mod=$e({type:xI});xI.\u0275inj=Dc({imports:[wI,jz]});var N4c=function(a){return{strong:a}},tIa=function(a){return{transform:a}},qIa=function(a,b){return{transform:a,width:b}},O4c=function(a){return[a]},oIa=function(){return{"user-select":"text"}},yI=function(a){this.liveAnnouncer=a;this.showStatsModeSummaryColumn=this.timeshift=!1;this.labelPercents=[];this.widthDifference=this.scrollLeft=0;this.scale=100;this.valueColumnWidth=80;this.streamActions=[];this.ve={LineDeselectToggle:68567,LineSelectToggle:68568,MonitoringStreamActionTableLegendMenu:137569};
this.selectedTooltip="Selected";this.notSelectedTooltip="Not selected";this.streamActionsMenuTooltip="Actions for this timeseries"};yI.prototype.getColIndexOffset=function(){var a=this.stream.labels.length;return a?a-1:0};yI.prototype.getColIndexOffsetForTimeshift=function(){return 3+this.getColIndexOffset()};yI.prototype.getColIndexOffsetForStatsMode=function(){var a=3;this.timeshift&&(a+=1);return a+this.getColIndexOffset()};
var P4c=function(a){var b=a.stream.unit,c;a=(c=a.stream.rawValue)!=null?c:null;c=b!=null?b:null;a==null?a="":(b=dCa({min:0,max:a,unit:c},{idealMaxMagnitude:1,idealMinMagnitude:0,countPrefixMaxMagnitude:Math.log10(1E12),countPrefixMinMagnitude:Math.log10(1)}),a=Wk(c,b.unit,a),a=a===null?"":Yk(a,b.unit));return a};yI.prototype.getColIndexOffsetForValue=function(){var a=3;this.timeshift&&(a+=1);this.showStatsModeSummaryColumn&&(a+=1);return a+this.getColIndexOffset()};
yI.prototype.checkboxChange=function(a){var b,c;(c=(b=this.stream).setSelected)==null||c.call(b,a.checked);this.liveAnnouncer.announce(a.checked?"Highlighted stream: "+this.stream.name:"Unhighlighted stream: "+this.stream.name)};da.Object.defineProperties(yI.prototype,{filteredStreamActions:{configurable:!0,enumerable:!0,get:function(){var a=this.stream.dataSeriesMetadata;return a?this.streamActions.filter(function(b){return b.relevant(a)}):[]}}});yI.\u0275fac=function(a){return new (a||yI)(Ve(Cz))};
yI.\u0275cmp=C({type:yI,selectors:[["ac-table-legend-row"]],inputs:{stream:"stream",timeshift:"timeshift",showStatsModeSummaryColumn:"showStatsModeSummaryColumn",labelPercents:"labelPercents",columnFlexWidth:"columnFlexWidth",scrollLeft:"scrollLeft",widthDifference:"widthDifference",scale:"scale",valueColumnWidth:"valueColumnWidth",streamActions:"streamActions"},decls:19,vars:34,consts:[["streamActionsMenu",""],["fxLayout","row","role","presentation","draggable","false",3,"ngClass"],["role","cell",
"aria-colindex","1","aria-colspan","2",1,"ac-combined-chip-and-is-selected-container",3,"ngStyle"],["role","presentation",1,"ac-chip-static-container"],[1,"ac-chip-absolute-background"],[3,"color","drawnAs","shape"],["role","presentation",1,"ac-is-selected-container"],["matTooltipClass","ac-mat-tooltip",1,"ac-is-selected",3,"change","checked","aria-label","matTooltip","ve","veClick","veMutable"],["class","ac-legend-key ac-table-legend-stream","role","rowheader","aria-colindex","2","fxFlex","100",
4,"ngIf"],["role","presentation","fxFlex","100","fxLayout","row",1,"ac-legend-key"],["class","ac-table-legend-label legend-table-cell","matTooltipClass","ac-mat-tooltip",3,"ngStyle","fxFlex","matTooltip",4,"ngFor","ngForOf"],["class","ac-table-legend-value legend-table-cell timeshift-value","role","cell","matTooltipClass","ac-mat-tooltip",3,"matTooltip","ngStyle","ngClass",4,"ngIf"],["class","ac-table-legend-value legend-table-cell stats-mode-summary-value","role","cell","matTooltipClass","ac-mat-tooltip",
3,"matTooltip","ngStyle","ngClass",4,"ngIf"],["role","cell","matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-value","legend-table-cell","current-value",3,"matTooltip","ngStyle","ngClass"],["class","ac-table-legend-options last legend-table-cell table-options","role","none",3,"ngStyle",4,"ngIf"],["class","ac-table-legend-options last legend-table-cell table-options","role","cell",3,"ngStyle",4,"ngIf"],[1,"ac-table-legend-stream-actions",3,"ve"],[3,"streamMetadata","streamActions"],["role","rowheader",
"aria-colindex","2","fxFlex","100",1,"ac-legend-key","ac-table-legend-stream"],["matTooltipClass","ac-mat-tooltip",1,"legend-table-cell",3,"matTooltip"],["matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-label","legend-table-cell",3,"ngStyle","fxFlex","matTooltip"],["role","cell","matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-value","legend-table-cell","timeshift-value",3,"matTooltip","ngStyle","ngClass"],["role","cell","matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-value","legend-table-cell",
"stats-mode-summary-value",3,"matTooltip","ngStyle","ngClass"],["role","none",1,"ac-table-legend-options","last","legend-table-cell","table-options",3,"ngStyle"],["role","cell",1,"ac-table-legend-options","last","legend-table-cell","table-options",3,"ngStyle"],["type","button","mat-icon-button","","matTooltipClass","ac-mat-tooltip",1,"ac-table-legend-stream-actions-button",3,"matTooltip","matMenuTriggerFor"],["svgIcon","ac:more_vert"]],template:function(a,b){if(a&1){var c=t();K(0,"div",1)(1,"div",
2)(2,"span",3);M(3,"span",4)(4,"ac-key",5);L();K(5,"span",6)(6,"mat-checkbox",7);N("change",function(d){u(c);return v(b.checkboxChange(d))});L()()();E(7,nIa,3,3,"div",8);K(8,"div",9);E(9,pIa,2,9,"span",10);L();E(10,rIa,2,9,"div",11)(11,sIa,2,9,"div",12);K(12,"div",13);S(13);L();E(14,uIa,1,3,"div",14)(15,vIa,3,6,"div",15);K(16,"mat-menu",16,0);M(18,"ac-stream-action-menu",17);L()()}a&2&&(I("ngClass",Kg(25,N4c,b.stream.isInteracted)),B(),I("ngStyle",Kg(27,tIa,"translateX("+b.scrollLeft+"px)")),B(3),
I("color",b.stream.color)("drawnAs",b.stream.drawnAs)("shape",b.stream.shape),B(2),I("checked",b.stream.isSelected),If("aria-label","Highlight stream: "+b.stream.name),I("matTooltip",b.stream.isSelected?b.selectedTooltip:b.notSelectedTooltip)("ve",b.stream.isSelected?b.ve.LineDeselectToggle:b.ve.LineSelectToggle)("veClick",!0)("veMutable",!0),B(),I("ngIf",!b.stream.labels.length),B(2),I("ngForOf",b.stream.labels),B(),I("ngIf",b.timeshift),B(),I("ngIf",b.showStatsModeSummaryColumn),B(),I("matTooltip",
P4c(b))("ngStyle",Lg(29,qIa,"translateX("+(-1*b.widthDifference+b.scrollLeft)+"px)",b.valueColumnWidth+"px"))("ngClass",Kg(32,O4c,!b.timeshift&&!b.showStatsModeSummaryColumn&&b.scale>100?"leftmost-frozen":"")),Jf("aria-colindex",b.getColIndexOffsetForValue()),B(),T(" ",b.stream.displayValue," "),B(),I("ngIf",b.filteredStreamActions.length===0),B(),I("ngIf",b.filteredStreamActions.length>0),B(),I("ve",b.ve.MonitoringStreamActionTableLegendMenu),B(2),I("streamMetadata",b.stream.dataSeriesMetadata)("streamActions",
b.streamActions))},dependencies:[HH,IH,uI,pI,rI,wI,iz,VA,LF,OF,MA,hy,iy,jy,ny,GE],styles:[".mat-mdc-tooltip.ac-mat-tooltip{color:var(--ac-sys-color-extensions-on-surface,#202124);background:var(--ac-sys-color-extensions-neutral-container,#f1f3f4)}.ac-table-legend-label[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}mat-checkbox[_ngcontent-%COMP%]{margin-top:-1px;margin-left:calc((var(--mat-checkbox-state-layer-size) - 18px)/-2);margin-right:calc((var(--mat-checkbox-state-layer-size) - 18px)/-2)}.ac-table-legend-options.legend-table-cell.table-options[_ngcontent-%COMP%]{min-width:40px;width:40px}.ac-table-legend-value[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;display:inline-block;-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;text-align:right;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;-moz-box-sizing:border-box;box-sizing:border-box}.ac-chip-static-container[_ngcontent-%COMP%]{position:relative}.ac-chip-static-container[_ngcontent-%COMP%]   ac-key[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.strong[_ngcontent-%COMP%]{font-weight:500;opacity:1}\n/*# sourceMappingURL=ac_table_legend_row_style.css.map */",
".ac-chip-absolute-background[_ngcontent-%COMP%], .ac-chip-static-container[_ngcontent-%COMP%], .ac-is-selected-container[_ngcontent-%COMP%], .ac-table-legend-options.legend-table-cell[_ngcontent-%COMP%], .ac-table-legend-value.legend-table-cell[_ngcontent-%COMP%], .ac-table-options-column.legend-table-cell[_ngcontent-%COMP%], .ac-table-value-column.legend-table-cell[_ngcontent-%COMP%]{background-color:var(--ac-sys-color-extensions-surface,#fff)}.ac-chip-absolute-background[_ngcontent-%COMP%]{-moz-box-sizing:content-box;box-sizing:content-box;height:12px;line-height:42px;padding:15px 8px 15px 24px;position:absolute;width:12px}.ac-chip-relative-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;line-height:42px;position:relative}.ac-chip-static-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;width:50px}.ac-is-selected-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;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}.ac-legend-key[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ac-table-legend-chip[_ngcontent-%COMP%]{border-radius:50px;-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;height:12px;line-height:42px;margin:15px 8px 15px 24px;position:absolute;width:12px}.ac-table-legend-chip.ac-chip-position-static[_ngcontent-%COMP%]{position:static}.legend-table-cell[_ngcontent-%COMP%]{height:42px;padding-left:4px;padding-right:8px}.legend-table-cell[_ngcontent-%COMP%]   .current-value[_ngcontent-%COMP%]{-moz-box-sizing:content-box;box-sizing:content-box;padding:0 8px 0 0}.legend-table-cell.leftmost-frozen[_ngcontent-%COMP%]{border-left:1px solid var(--ac-sys-color-extensions-hairline,#dadce0);padding-left:8px}.legend-table-cell.last[_ngcontent-%COMP%]{padding-right:0}.ac-combined-chip-and-is-selected-container[_ngcontent-%COMP%]{-webkit-box-flex:0;-webkit-flex:none;-moz-box-flex:0;-ms-flex:none;flex:none;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;width:72px}\n/*# sourceMappingURL=ac_table_legend_header_and_row_style.css.map */"],
changeDetection:0});var Q4c=["scrollingDiv"],R4c=["virtualScroll"],zI=function(a,b,c,d,e,f,g,k){MH.call(this,a,b,c,d,e);var m=this;this.cdRef=b;this.elementRef=c;this.focusMonitor=f;this.ngZone=g;this.interactionService=k;this.viewPortStreams=[];this.columnKeys=["Name"];this.divComputedStyle=this.contentComputedStyle=null;this.widthDifference=this.scrollTop=this.scrollLeft=0;this.scale=100;this.ve={ChartLegendPane:68535};this.isOnSdDashboard=!1;this.height=210;this.defaultSortingColumn="";this.defaultSortingDirection=
null;this.streamActions=[];this.labelsModel={columnsModel:[],selectedColumns:[],selectableColumns:[],labelHeaders:[],labelWidths:[],labelPercents:[],scale:100,nextColumnId:1};this.labelsModelSubject=new Xj(this.labelsModel);this.preventAveScrollEvents=!1;this.lastSelected=null;this.updatePercentsWithLabelsSubject=new rf;this.scrollResizeObserver=this.streamRowIndexMap=null;this.updatePercentsWithLabelsSubject.pipe(jla(this.updatePercentsWithLabelsSubject.pipe(kf(0))),Af(this.destroyed)).subscribe(function(r){var w=
S4c(m);m.labelsModel.labelWidths=[];r=l(r);for(var x=r.next();!x.done;x=r.next())$1c.updatePercents(m.labelsModel,x.value,100,w);m.labelsModel=Object.assign({},m.labelsModel);m.labelsModelSubject.next(m.labelsModel);m.cdRef.markForCheck()})};Z(zI,MH);zI.\u0275dir=MH.\u0275dir;
zI.prototype.ngAfterViewInit=function(){var a=this;this.focusMonitor.monitor(this.scrollingDiv).pipe(Af(this.destroyed)).subscribe(function(){a.ngZone.run(function(){a.cdRef.markForCheck()})});this.scrollResizeObserver=new ResizeObserver(function(b){if(b.length)a.onScroll(!1)});this.scrollResizeObserver.observe(this.scrollingDiv.nativeElement)};zI.prototype.ngOnDestroy=function(){MH.prototype.ngOnDestroy.call(this);var a;(a=this.scrollResizeObserver)==null||a.disconnect()};
zI.prototype.onMapChange=function(a,b){MH.prototype.onMapChange.call(this,a,b);T4c(this)};zI.prototype.update=function(){MH.prototype.update.call(this);T4c(this);U4c(this);this.streams&&(this.streams=this.streams.slice().sort(this.sortFunc));this.streamRowIndexMap=new Map;if(this.streams)for(var a=l(this.streams.entries()),b=a.next();!b.done;b=a.next()){var c=l(b.value);b=c.next().value;c=c.next().value;this.streamRowIndexMap.set(c,b+2)}this.bringLastSelectedIntoView();this.cdRef.markForCheck()};
var S4c=function(a){if(!a.divComputedStyle&&!a.scrollingDiv)return 0;a.divComputedStyle=a.divComputedStyle||getComputedStyle(a.scrollingDiv.nativeElement);return+a.divComputedStyle.getPropertyValue("width").replace("px","")};
zI.prototype.selectedColumnsChanged=function(){if(this.columnComparator&&this.labelsModel.selectedColumns){var a=this.columnComparator;this.labelsModel.selectedColumns.sort(function(c,d){return a(c.title,d.title)})}var b=(this.labelsModel.selectedColumns||[]).map(function(c){return c.title||""});this.labelsModel.labelHeaders=b;this.labelsModel.labelWidths=[];this.labelsModel.labelPercents=[];this.labelsModel=Object.assign({},this.labelsModel);this.labelsModelSubject.next(this.labelsModel)};
var T4c=function(a){if(a.labelsModel){var b,c,d=n2c(a,(c=(b=a.streams)==null?void 0:b.map(function(e){var f;return(f=e.dataSeriesMetadata)!=null?f:null}))!=null?c:[]);d||(d=iEa());d&&d.length>0&&(b=$1c.updateLabelsModel(a.labelsModel,d),a.labelsModel=Object.assign({},a.labelsModel),a.labelsModelSubject.next(a.labelsModel),b&&a.selectedColumnsChanged())}},U4c=function(a){var b;(b=a.streams)==null||b.forEach(function(c){c.getLabels=function(){return(a.labelsModel.selectedColumns||[]).map(function(d){var e=
c.dataSeriesMetadata&&c.dataSeriesMetadata.childId||0,f=null;if(d.tokenizers&&d.tokenizers[e]){var g;f=(g=c.dataSeriesMetadata)!=null?g:{};g=a.getTranslationFunctions();g.getName=function(k){return c.getName()||k.name||""};f=d.tokenizers[e].format(f,g)}return f||""})};c.onLabelsChange=function(d){a.updatePercentsWithLabelsSubject.next(d)};c.getColumnIds=function(){return(a.labelsModel.selectedColumns||[]).map(function(d){return d.uniqueId})}});requestAnimationFrame(function(){a.onScroll(!1)})};
zI.prototype.onScroll=function(a){if(this.scrollingDiv&&this.scrollingDiv.nativeElement&&this.scrollingDiv.nativeElement.children&&this.scrollingDiv.nativeElement.children.length){a&&!this.preventAveScrollEvents&&(El(this.interactionService,"scroll",Fl.ve.AwesomeChartLegendPane,this.elementRef.nativeElement,{debounce:!0}),this.preventAveScrollEvents=!0);this.contentComputedStyle=this.contentComputedStyle||getComputedStyle(this.scrollingDiv.nativeElement.children[0]);a=+this.contentComputedStyle.getPropertyValue("width").replace("px",
"");var b=S4c(this);a-=b;b=this.scrollingDiv.nativeElement.scrollLeft;var c=this.scrollingDiv.nativeElement.scrollTop;if(this.widthDifference!==a||this.scrollLeft!==b||this.scrollTop!==c)this.widthDifference=a,this.scrollLeft=b,this.scrollTop=c,this.cdRef.detectChanges()}};
zI.prototype.onSeriesSelectionChange=function(a,b){var c=this;this.lastSelected=iDa(a,b.scope.layerId);this.lastSeriesSelectedInLegend&&(this.lastSelected=this.lastSelected.filter(function(d){return d!==c.lastSeriesSelectedInLegend}));this.lastSeriesSelectedInLegend=null;MH.prototype.onSeriesSelectionChange.call(this,a,b)};
zI.prototype.bringLastSelectedIntoView=function(){MH.prototype.bringLastSelectedIntoView.call(this);if(this.lastSelected){if(this.lastSelected.length>=1){var a=this.lastSelected[0],b,c,d=(c=(b=this.streams)==null?void 0:b.findIndex(function(e){return e.seriesId===a}))!=null?c:-1;if(d<0)return;b=f4c(this.virtualScrollRef);d=Math.floor(d/b.itemsPerRow)*b.childHeight;b=d-Math.max(0,b.itemsPerCol-2)*b.childHeight;c=this.scrollingDiv.nativeElement.scrollTop;c>d?c=d:c<b&&(c=b);this.scrollToPosition(c)}this.lastSelected=
null}};zI.prototype.scrollToPosition=function(a){var b=this;this.scrollingDiv.nativeElement.scrollTop!==a&&(this.scrollTop=this.scrollingDiv.nativeElement.scrollTop=a,requestAnimationFrame(function(){b.onScroll(!1)}))};var V4c=function(a,b){a.scale!==b&&requestAnimationFrame(function(){a.onScroll(!1)});a.scale=b;return{width:b+"%",height:a.height+"px"}};zI.prototype.trackByStreamName=function(a,b){return b.name};
var W4c=function(a){return!!a.streams&&a.streams.length>0},yIa=function(a,b){var c;return(c=a.streamRowIndexMap)==null?void 0:c.get(b)},wIa=function(a){if(!a.streams||a.streams.length===0)return 80;a=a.streams.reduce(function(b,c){var d,e,f,g;return Math.max(b,c.displayValue.length,(f=(d=c.timeshiftValue)==null?void 0:d.length)!=null?f:0,(g=(e=c.statsModeSummaryValue)==null?void 0:e.length)!=null?g:0)},0)*10;return Math.max(a,80)};
zI.\u0275fac=function(a){return new (a||zI)(Ve(LG),Ve(Yx),Ve(Gd),Ve(yH),Ve(KG),Ve(mz),Ve(Tg),Ve(Fl))};
zI.\u0275cmp=C({type:zI,selectors:[["ac-table-legend"],["cola-table-legend"]],viewQuery:function(a,b){a&1&&(kg(Q4c,5),kg(R4c,5));if(a&2){var c;og(c=pg())&&(b.scrollingDiv=c.first);og(c=pg())&&(b.virtualScrollRef=c.first)}},inputs:{isOnSdDashboard:"isOnSdDashboard",height:"height",defaultSortingColumn:"defaultSortingColumn",defaultSortingDirection:"defaultSortingDirection",streamActions:"streamActions",columnComparator:"columnComparator"},features:[Ff],decls:7,vars:12,consts:[["scrollingDiv",""],["virtualScroll",
""],["scrollingHeader",""],[1,"ac-legend-outer-div"],[1,"ac-table-legend-switch","scrolling-div","ac-a11y-keyboard-focusable",3,"scroll","draggable","ve"],["role","presentation",1,"ac-legend-table-virtual-scroll","overflow-visible",3,"update","items","childHeight","ngStyle","scrollTop","hasHeader"],["role","rowgroup","header","",4,"ngIf"],["role","rowgroup",4,"ngIf"],["role","rowgroup","header",""],["role","row","aria-rowindex","1",1,"ac-table-legend-header",3,"sortFunc","columnKeys","labelsModel",
"valueName","columnFlexWidth","scrollLeft","widthDifference","scale","valueColumnWidth","streamActions","defaultSortingColumn","defaultSortingDirection","timeshiftName","statsModeSummaryColumnLabel"],[3,"selectedColumnsChanged","labelsModel","valueName"],["role","rowgroup"],["class","ac-table-legend-row","role","row",3,"stream","labelPercents","columnFlexWidth","scrollLeft","scale","valueColumnWidth","streamActions","widthDifference","timeshift","showStatsModeSummaryColumn","mouseenter","mouseleave",
4,"ngFor","ngForOf","ngForTrackBy"],["role","row",1,"ac-table-legend-row",3,"mouseenter","mouseleave","stream","labelPercents","columnFlexWidth","scrollLeft","scale","valueColumnWidth","streamActions","widthDifference","timeshift","showStatsModeSummaryColumn"]],template:function(a,b){if(a&1){var c=t();K(0,"div",3)(1,"div",4,0);N("scroll",function(){u(c);return v(b.onScroll(!0))});K(3,"virtual-scroll",5,1);N("update",function(d){u(c);return v(b.viewPortStreams=d)});E(5,xIa,5,17,"div",6)(6,FIa,2,2,
"div",7);L()()()}a&2&&(B(),I("draggable",b.isOnSdDashboard)("ve",b.ve.ChartLegendPane),Jf("role",W4c(b)?"table":"presentation")("aria-label",W4c(b)?"Legend":void 0)("aria-rowcount",b.streams&&W4c(b)?b.streams.length+1:void 0),B(2),I("items",b.streams)("childHeight",42)("ngStyle",V4c(b,b.labelsModel.scale))("scrollTop",b.scrollTop)("hasHeader",!0),B(2),I("ngIf",W4c(b)),B(),I("ngIf",b.viewPortStreams.length>0))},dependencies:[kI,vI,yI,iy,jy,ny,GE,g4c,e4c,py],styles:[".ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px,1px,1px,1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus,#3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}[_nghost-%COMP%]{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;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}.ac-table-legend-switch[_ngcontent-%COMP%]{-moz-box-sizing:content-box;box-sizing:content-box;-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;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}.ac-table-legend-switch.scrolling-div[_ngcontent-%COMP%]{overflow:auto}.ac-table-legend-switch[_ngcontent-%COMP%]::-webkit-scrollbar{height:7px;width:7px;-webkit-appearance:none}.ac-table-legend-switch[_ngcontent-%COMP%]::-webkit-scrollbar-corner{color:var(--ac-sys-color-extensions-surface,#fff)}.ac-table-legend-switch[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:4px;background-color:var(--ac-sys-color-extensions-scrollbar-surface,rgba(0,0,0,.4))}.ac-table-legend-switch[_ngcontent-%COMP%]   *[_ngcontent-%COMP%], .ac-table-legend-switch[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:after, .ac-table-legend-switch[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:before{-moz-box-sizing:content-box;box-sizing:content-box}.ac-table-legend-switch[_ngcontent-%COMP%]:focus{outline-offset:0}.ac-legend-table-virtual-scroll[_ngcontent-%COMP%]{display:block;-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow-y:scroll}.ac-legend-table-virtual-scroll.overflow-visible[_ngcontent-%COMP%]{overflow-y:visible;overflow:visible}.ac-table-legend-header[_ngcontent-%COMP%]{background-color:var(--ac-sys-color-extensions-surface,#fff);border-color:var(--ac-sys-color-extensions-hairline,#dadce0);display:block;font-weight:700;margin:0}ac-stats-legend-header[_ngcontent-%COMP%], ac-table-legend-header[_ngcontent-%COMP%]{border-style:solid;border-width:1px 0;cursor:default;display:block;height:42px;line-height:42px}.ac-table-legend-row[_ngcontent-%COMP%]{border-style:solid;border-width:0 0 1px;display:block;height:42px;line-height:42px}virtual-scroll[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;min-height:100px;overflow-y:scroll}virtual-scroll[_ngcontent-%COMP%]   .ac-table-legend-row[_ngcontent-%COMP%]{border-color:var(--ac-sys-color-extensions-hairline,#dadce0)}virtual-scroll[_ngcontent-%COMP%]   .ac-stream-hovered[_ngcontent-%COMP%], virtual-scroll[_ngcontent-%COMP%]   .ac-stream-selected[_ngcontent-%COMP%]{background-color:var(--ac-sys-color-extensions-on-surface-hover,#f7f8f8)}.ac-legend-outer-div[_ngcontent-%COMP%]{position:relative;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;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}\n/*# sourceMappingURL=ac_table_legend_style.css.map */"],
changeDetection:0});var X4c=function(){};var IIa=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,PIa=RegExp("{{\\s*(.+?)\\s*}}","g"),RIa=/-+([a-z0-9])/g;var Y4c=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(" ")),Z4c=function(){};Z(Z4c,X4c);
var VIa=function(a,b,c){var d="",e=b.toString().trim();Y4c.has(a)&&b!==0&&b!=="0"&&(typeof b==="number"?d="px":(a=b.match(/^[+-]?[\d\.]+([a-z]*)$/))&&a[1].length==0&&c.push(new Pc(3005,!1)));return e+d};var aJa=typeof document==="undefined"?null:document.documentElement;var $4c=function(){};var gJa=new Set(["true","1"]),hJa=new Set(["false","0"]);var iJa=RegExp("s*:selfs*,?","g"),a5c=function(a){this._driver=a};h=a5c.prototype;h.build=function(a,b){b=new b5c(b);this._resetContextStyleTimingState(b);return Xl(this,MIa(a),b)};h._resetContextStyleTimingState=function(a){a.currentQuerySelector="";a.collectedStyles=new Map;a.collectedStyles.set("",new Map);a.currentTime=0};
h.visitTrigger=function(a,b){var c=this,d=b.queryCount=0,e=b.depCount=0,f=[],g=[];a.name.charAt(0)=="@"&&b.errors.push(new Pc(3006,!1));a.definitions.forEach(function(k){c._resetContextStyleTimingState(b);if(k.type==0){var m=k.name;m.toString().split(/\s*,\s*/).forEach(function(r){k.name=r;f.push(c.visitState(k,b))});k.name=m}else k.type==1?(m=c.visitTransition(k,b),d+=m.queryCount,e+=m.depCount,g.push(m)):b.errors.push(new Pc(3007,!1))});return{type:7,name:a.name,states:f,transitions:g,queryCount:d,
depCount:e,options:null}};h.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(g){g instanceof Map&&g.forEach(function(k){NIa(k).forEach(function(m){f.hasOwnProperty(m)||e.add(m)})})});e.size&&b.errors.push(GIa([].concat(n(e.values()))))}return{type:0,name:a.name,style:c,options:d?{params:d}:null}};
h.visitTransition=function(a,b){b.queryCount=0;b.depCount=0;var c=Xl(this,MIa(a.animation),b);return{type:1,matchers:fJa(a.expr,b.errors),animation:c,queryCount:b.queryCount,depCount:b.depCount,options:am(a.options)}};h.visitSequence=function(a,b){var c=this;return{type:2,steps:a.steps.map(function(d){return Xl(c,d,b)}),options:am(a.options)}};
h.visitGroup=function(a,b){var c=this,d=b.currentTime,e=0,f=a.steps.map(function(g){b.currentTime=d;g=Xl(c,g,b);e=Math.max(e,b.currentTime);return g});b.currentTime=e;return{type:3,steps:f,options:am(a.options)}};
h.visitAnimate=function(a,b){var c=lJa(a.timings,b.errors);b.currentAnimateTimings=c;var d=a.styles?a.styles:qj({});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=qj(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}};h.visitStyle=function(a,b){a=this._makeStyleAst(a,b);this._validateStyleAst(a,b);return a};
h._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 Pc(3002,!1)):c.push(new Map(Object.entries(e)));var f=!1,g=null;c.forEach(function(k){if(k instanceof Map&&(k.has("easing")&&(g=k.get("easing"),k.delete("easing")),!f)){k=l(k.values());for(var m=k.next();!m.done;m=k.next())if(m.value.toString().indexOf("{{")>=0){f=!0;break}}});return{type:6,styles:c,easing:g,offset:a.offset,
containsDynamicStyles:f,options:null}};h._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(g,k){var m=b.collectedStyles.get(b.currentQuerySelector),r=m.get(k),w=!0;r&&(e!=d&&e>=r.startTime&&d<=r.endTime&&(b.errors.push(new Pc(3010,!1)),w=!1),e=r.startTime);w&&m.set(k,{startTime:e,endTime:d});b.options&&OIa(g,b.options,b.errors)})})};
h.visitKeyframes=function(a,b){var c=this,d={type:5,styles:[],options:null};if(!b.currentAnimateTimings)return b.errors.push(new Pc(3011,!1)),d;var e=0,f=[],g=!1,k=!1,m=0,r=a.steps.map(function(O){O=c._makeStyleAst(O,b);var R=O.offset!=null?O.offset:kJa(O.styles),V=0;R!=null&&(e++,V=O.offset=R);k=k||V<0||V>1;g=g||V<m;m=V;f.push(V);return O});k&&b.errors.push(new Pc(3012,!1));g&&b.errors.push(new Pc(3200,!1));a=a.steps.length;var w=0;e>0&&e<a?b.errors.push(new Pc(3202,!1)):e==0&&(w=1/(a-1));var x=
a-1,D=b.currentTime,H=b.currentAnimateTimings,J=H.duration;r.forEach(function(O,R){R=w>0?R==x?1:w*R:f[R];var V=R*J;b.currentTime=D+H.delay+V;H.duration=V;c._validateStyleAst(O,b);O.offset=R;d.styles.push(O)});return d};h.visitReference=function(a,b){return{type:8,animation:Xl(this,MIa(a.animation),b),options:am(a.options)}};h.visitAnimateChild=function(a,b){b.depCount++;return{type:9,options:am(a.options)}};
h.visitAnimateRef=function(a,b){return{type:10,animation:this.visitReference(a.animation,b),options:am(a.options)}};
h.visitQuery=function(a,b){var c=b.currentQuerySelector,d=a.options||{};b.queryCount++;b.currentQuery=a;var e=l(jJa(a.selector)),f=e.next().value;e=e.next().value;b.currentQuerySelector=c.length?c+" "+f:f;$l(b.collectedStyles,b.currentQuerySelector,new Map);var g=Xl(this,MIa(a.animation),b);b.currentQuery=null;b.currentQuerySelector=c;return{type:11,selector:f,limit:d.limit||0,optional:!!d.optional,includeSelf:e,animation:g,originalSelector:a.selector,options:am(a.options)}};
h.visitStagger=function(a,b){b.currentQuery||b.errors.push(new Pc(3013,!1));var c=a.timings==="full"?{duration:0,delay:0,easing:"full"}:JIa(a.timings,b.errors,!0);return{type:12,animation:Xl(this,MIa(a.animation),b),timings:c,options:null}};var b5c=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 AI=function(){this._map=new Map};AI.prototype.get=function(a){return this._map.get(a)||[]};AI.prototype.append=function(a,b){var c=this._map.get(a);c||this._map.set(a,c=[]);c.push.apply(c,n(b))};AI.prototype.has=function(a){return this._map.has(a)};AI.prototype.clear=function(){this._map.clear()};var c5c=RegExp(":enter","g"),d5c=RegExp(":leave","g"),nJa=function(){};h=nJa.prototype;
h.buildKeyframes=function(a,b,c,d,e,f,g,k,m,r){r=r===void 0?[]:r;m=m||new AI;a=new e5c(a,b,m,d,e,r,[]);a.options=k;d=k.delay?Ul(k.delay):0;a.currentTimeline.delayNextStep(d);a.currentTimeline.setStyles([f],null,a.errors,k);Xl(this,c,a);c=a.timelines.filter(function(x){return x.containsAnimation()});if(c.length&&g.size){for(f=c.length-1;f>=0;f--)if(e=c[f],e.element===b){var w=e;break}w&&w._currentEmptyStepKeyframe===w._currentKeyframe&&w.setStyles([g],null,a.errors,k)}return c.length?c.map(function(x){return x.buildKeyframes()}):
[mJa(b,[],[],[],0,d,"",!1)]};h.visitTrigger=function(){};h.visitState=function(){};h.visitTransition=function(){};h.visitAnimateChild=function(a,b){var c=b.subInstructions.get(b.element);if(c){var d=f5c(b,a.options),e=b.currentTimeline.currentTime;c=this._visitSubInstructions(c,d,d.options);e!=c&&BI(b,c)}b.previousNode=a};
h.visitAnimateRef=function(a,b){var c=f5c(b,a.options);BI(c);this._applyAnimationRefDelays([a.options,a.animation.options],b,c);this.visitReference(a.animation,c);BI(b,c.currentTimeline.currentTime);b.previousNode=a};h._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 g=e=void 0;d=typeof f==="number"?f:Ul(QIa(f,(g=(e=d)==null?void 0:e.params)!=null?g:{},b.errors));c.delayNextStep(d)}}};
h._visitSubInstructions=function(a,b,c){var d=b.currentTimeline.currentTime,e=c.duration!=null?Ul(c.duration):null,f=c.delay!=null?Ul(c.delay):null;e!==0&&a.forEach(function(g){var k={duration:e!=null?e:g.duration,delay:b.currentTimeline.currentTime+(f!=null?f:0)+g.delay,easing:""};g=new g5c(b._driver,g.element,g.keyframes,g.preStyleProps,g.postStyleProps,k,g.stretchStartingKeyframe);b.timelines.push(g);d=Math.max(d,k.duration+k.delay)});return d};
h.visitReference=function(a,b){h5c(b,a.options,!0);Xl(this,a.animation,b);b.previousNode=a};h.visitSequence=function(a,b){var c=this,d=b.subContextCount,e=b,f=a.options;f&&(f.params||f.delay)&&(e=f5c(b,f),BI(e),f.delay!=null&&(e.previousNode.type==6&&(i5c(e.currentTimeline),e.previousNode=j5c),e.delayNextStep(Ul(f.delay))));a.steps.length&&(a.steps.forEach(function(g){return Xl(c,g,e)}),CI(e.currentTimeline),e.subContextCount>d&&BI(e));b.previousNode=a};
h.visitGroup=function(a,b){var c=this,d=[],e=b.currentTimeline.currentTime,f=a.options&&a.options.delay?Ul(a.options.delay):0;a.steps.forEach(function(g){var k=f5c(b,a.options);f&&k.delayNextStep(f);Xl(c,g,k);e=Math.max(e,k.currentTimeline.currentTime);d.push(k.currentTimeline)});d.forEach(function(g){return k5c(b.currentTimeline,g)});BI(b,e);b.previousNode=a};
h._visitTiming=function(a,b){return a.dynamic?(a=a.strValue,a=b.params?QIa(a,b.params,b.errors):a,JIa(a,b.errors)):{duration:a.duration,delay:a.delay,easing:a.easing}};
h.visitAnimate=function(a,b){var c=b.currentAnimateTimings=this._visitTiming(a.timings,b),d=b.currentTimeline;c.delay&&(l5c(b.currentTimeline,b.currentTimeline.duration+c.delay),i5c(d));var e=a.style;e.type==5?this.visitKeyframes(e,b):(l5c(b.currentTimeline,b.currentTimeline.duration+c.duration),this.visitStyle(e,b),CI(d));b.currentAnimateTimings=null;b.previousNode=a};
h.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 c.setStyles(a.styles,d,b.errors,b.options);b.previousNode=
a};h.visitKeyframes=function(a,b){var c=b.currentAnimateTimings,d=b.currentTimeline.duration,e=c.duration,f=f5c(b).currentTimeline;f.easing=c.easing;a.styles.forEach(function(g){l5c(f,(g.offset||0)*e);f.setStyles(g.styles,g.easing,b.errors,b.options);CI(f)});k5c(b.currentTimeline,f);BI(b,d+e);b.previousNode=a};
h.visitQuery=function(a,b){var c=this,d=b.currentTimeline.currentTime,e=a.options||{},f=e.delay?Ul(e.delay):0;f&&(b.previousNode.type===6||d==0&&b.currentTimeline._currentKeyframe.size>0)&&(i5c(b.currentTimeline),b.previousNode=j5c);var g=d;d=m5c(b,a.selector,a.limit,a.includeSelf,e.optional?!0:!1,b.errors);b.currentQueryTotal=d.length;var k=null;d.forEach(function(m,r){b.currentQueryIndex=r;r=f5c(b,a.options,m);f&&r.delayNextStep(f);m===b.element&&(k=r.currentTimeline);Xl(c,a.animation,r);CI(r.currentTimeline);
g=Math.max(g,r.currentTimeline.currentTime)});b.currentQueryIndex=0;b.currentQueryTotal=0;BI(b,g);k&&(k5c(b.currentTimeline,k),i5c(b.currentTimeline));b.previousNode=a};
h.visitStagger=function(a,b){var c=b.parentContext,d=b.currentTimeline,e=a.timings,f=Math.abs(e.duration),g=f*(b.currentQueryTotal-1);f*=b.currentQueryIndex;switch(e.duration<0?"reverse":e.easing){case "reverse":f=g-f;break;case "full":f=c.currentStaggerTime}e=b.currentTimeline;f&&e.delayNextStep(f);e=e.currentTime;Xl(this,a.animation,b);b.previousNode=a;c.currentStaggerTime=d.currentTime-e+(d.startTime-c.currentTimeline.startTime)};
var j5c={},e5c=function(a,b,c,d,e,f,g,k){this._driver=a;this.element=b;this.subInstructions=c;this._enterClassName=d;this._leaveClassName=e;this.errors=f;this.timelines=g;this.currentAnimateTimings=this.parentContext=null;this.previousNode=j5c;this.subContextCount=0;this.options={};this.currentStaggerTime=this.currentQueryTotal=this.currentQueryIndex=0;this.currentTimeline=k||new DI(this._driver,b,0);g.push(this.currentTimeline)},h5c=function(a,b,c){if(b){var d=a.options;b.duration!=null&&(d.duration=
Ul(b.duration));b.delay!=null&&(d.delay=Ul(b.delay));var e=b.params;if(e){var f=d.params;f||(f=a.options.params={});Object.keys(e).forEach(function(g){c&&f.hasOwnProperty(g)||(f[g]=QIa(e[g],f,a.errors))})}}};e5c.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 f5c=function(a,b,c){b=b===void 0?null:b;c=c||a.element;c=new e5c(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();h5c(c,b);c.currentQueryIndex=a.currentQueryIndex;c.currentQueryTotal=a.currentQueryTotal;c.parentContext=a;a.subContextCount++;return c},BI=function(a,b){a.previousNode=j5c;a.currentTimeline=a.currentTimeline.fork(a.element,
b);a.timelines.push(a.currentTimeline)};e5c.prototype.delayNextStep=function(a){a>0&&this.currentTimeline.delayNextStep(a)};var m5c=function(a,b,c,d,e,f){var g=[];d&&g.push(a.element);b.length>0&&(b=b.replace(c5c,"."+a._enterClassName),b=b.replace(d5c,"."+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)),g.push.apply(g,n(a)));e||g.length!=0||f.push(new Pc(3014,!1));return g};
da.Object.defineProperties(e5c.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});
var DI=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()};DI.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this._currentKeyframe.size>0;default:return!0}};DI.prototype.delayNextStep=function(a){var b=this._keyframes.size===1&&this._pendingStyles.size;this.duration||b?(l5c(this,this.currentTime+a),b&&i5c(this)):this.startTime+=a};
DI.prototype.fork=function(a,b){CI(this);return new DI(this._driver,a,b||this.currentTime,this._elementTimelineStylesLookup)};DI.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 l5c=function(a,b){CI(a);a.duration=b;a._loadKeyframe()};
DI.prototype._updateStyle=function(a,b){this._localTimelineStyles.set(a,b);this._globalTimelineStyles.set(a,b);this._styleSummary.set(a,{time:this.currentTime,value:b})};
DI.prototype.setStyles=function(a,b,c,d){b&&this._previousKeyframe.set("easing",b);b=d&&d.params||{};a=pJa(a,this._globalTimelineStyles);a=l(a);for(d=a.next();!d.done;d=a.next()){var e=l(d.value);d=e.next().value;e=e.next().value;e=QIa(e,b,c);this._pendingStyles.set(d,e);if(!this._localTimelineStyles.has(d)){var f=void 0;this._backFill.set(d,(f=this._globalTimelineStyles.get(d))!=null?f:"*")}this._updateStyle(d,e)}};
var CI=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)}))},i5c=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)}},k5c=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)})};
DI.prototype.buildKeyframes=function(){var a=this;CI(this);var b=new Set,c=new Set,d=this._keyframes.size===1&&this.duration===0,e=[];this._keyframes.forEach(function(r,w){r=new Map([].concat(n(a._backFill),n(r)));r.forEach(function(x,D){x==="!"?b.add(D):x==="*"&&c.add(D)});d||r.set("offset",w/a.duration);e.push(r)});var f=[].concat(n(b.values())),g=[].concat(n(c.values()));if(d){var k=e[0],m=new Map(k);k.set("offset",0);m.set("offset",1);e=[k,m]}return mJa(this.element,e,f,g,this.duration,this.startTime,
this.easing,!1)};da.Object.defineProperties(DI.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 g5c=function(a,b,c,d,e,f,g){g=g===void 0?!1:g;DI.call(this,a,b,f.delay);this.keyframes=c;this.preStyleProps=d;this.postStyleProps=e;this._stretchStartingKeyframe=g;this.timings={duration:f.duration,delay:f.delay,easing:f.easing}};
Z(g5c,DI);g5c.prototype.containsAnimation=function(){return this.keyframes.length>1};
g5c.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,g=new Map(a[0]);g.set("offset",0);b.push(g);g=new Map(a[0]);g.set("offset",Math.round(f*100)/100);b.push(g);f=a.length-1;for(g=1;g<=f;g++){var k=new Map(a[g]),m=k.get("offset");k.set("offset",Math.round((c+m*d)/e*100)/100);b.push(k)}d=e;c=0;e="";a=b}return mJa(this.element,a,this.preStyleProps,this.postStyleProps,d,c,e,!0)};var n5c={},tJa=function(a,b,c){this._triggerName=a;this.ast=b;this._stateStyles=c};tJa.prototype.match=function(a,b,c,d){return rJa(this.ast.matchers,a,b,c,d)};tJa.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};
tJa.prototype.build=function(a,b,c,d,e,f,g,k,m,r){var w=[],x=this.ast.options&&this.ast.options.params||n5c;g=this.buildStyles(c,g&&g.params||n5c,w);var D=k&&k.params||n5c;k=this.buildStyles(d,D,w);var H=new Set,J=new Map,O=new Map,R=d==="void",V;x={params:sJa(D,x),delay:(V=this.ast.options)==null?void 0:V.delay};a=r?[]:oJa(a,b,this.ast.animation,e,f,g,k,x,m,w);var ba=0;a.forEach(function(pa){ba=Math.max(pa.duration+pa.delay,ba)});if(w.length)return qJa(b,this._triggerName,c,d,R,g,k,[],[],J,O,ba,
w);a.forEach(function(pa){var ua=pa.element,ma=$l(J,ua,new Set);pa.preStyleProps.forEach(function(ja){return ma.add(ja)});var Da=$l(O,ua,new Set);pa.postStyleProps.forEach(function(ja){return Da.add(ja)});ua!==b&&H.add(ua)});return qJa(b,this._triggerName,c,d,R,g,k,a,[].concat(n(H.values())),J,O,ba)};var o5c=function(a,b){this.styles=a;this.defaultParams=b};
o5c.prototype.buildStyles=function(a,b){var c=new Map,d=sJa(a,this.defaultParams);this.styles.styles.forEach(function(e){typeof e!=="string"&&e.forEach(function(f,g){f&&(f=QIa(f,d,b));var k=LIa(g);f=VIa(k,f,b);c.set(g,f)})});return c};var p5c=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 o5c(e.style,e.options&&e.options.params||{}))});vJa(this.states,"true","1");vJa(this.states,"false","0");b.transitions.forEach(function(e){d.transitionFactories.push(new tJa(a,e,d.states))});this.fallbackTransition=uJa(a,this.states)},q5c=function(a,b,c,d,e){return a.transitionFactories.find(function(f){return f.match(b,c,
d,e)})||null};var r5c=new AI,s5c=function(a,b,c){this.bodyNode=a;this._driver=b;this._normalizer=c;this._animations=new Map;this._playersById=new Map;this.players=[]};h=s5c.prototype;h.register=function(a,b){var c=[];b=(new a5c(this._driver)).build(b,c,[]);if(c.length)throw new Pc(3503,!1);this._animations.set(a,b)};h._buildPlayer=function(a,b,c){var d=a.element;b=WIa(a.keyframes,b,c);return this._driver.animate(d,b,a.duration,a.delay,a.easing,[],!0)};
h.create=function(a,b,c){var d=this;c=c===void 0?{}:c;var e=[],f=this._animations.get(a),g=new Map;f?(b=oJa(this._driver,b,f,"ng-enter","ng-leave",new Map,new Map,c,r5c,e),b.forEach(function(k){var m=$l(g,k.element,new Map);k.postStyleProps.forEach(function(r){return m.set(r,null)})})):(e.push(new Pc(3300,!1)),b=[]);if(e.length)throw new Pc(3504,!1);g.forEach(function(k,m){k.forEach(function(r,w){k.set(w,SIa(m,w))})});e=b.map(function(k){var m=g.get(k.element);return d._buildPlayer(k,new Map,m)});
e=Zl(e);this._playersById.set(a,e);e.onDestroy(function(){return d.destroy(a)});this.players.push(e);return e};h.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)};h._getPlayer=function(a){a=this._playersById.get(a);if(!a)throw new Pc(3301,!1);return a};h.listen=function(a,b,c,d){b=ZIa(b,"","","");YIa(this._getPlayer(a),c,b,d);return function(){}};
h.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 t5c=[],u5c={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},yJa={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},v5c=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={})},w5c=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])})}};da.Object.defineProperties(v5c.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});var x5c=new v5c("void"),y5c=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;bm(b,this._hostClassName)};h=y5c.prototype;
h.listen=function(a,b,c,d){var e=this;if(!this._triggers.has(b))throw new Pc(3302,!1);if(c==null||c.length==0)throw new Pc(3303,!1);if(c!="start"&&c!="done")throw new Pc(3400,!1);var f=$l(this._elementListeners,a,[]),g={name:b,phase:c,callback:d};f.push(g);var k=$l(this._engine.statesByElement,a,new Map);k.has(b)||(bm(a,"ng-trigger"),bm(a,"ng-trigger-"+b),k.set(b,x5c));return function(){z5c(e._engine,function(){var m=f.indexOf(g);m>=0&&f.splice(m,1);e._triggers.has(b)||k.delete(b)})}};
h.register=function(a,b){if(this._triggers.has(a))return!1;this._triggers.set(a,b);return!0};h._getTrigger=function(a){a=this._triggers.get(a);if(!a)throw new Pc(3401,!1);return a};
h.trigger=function(a,b,c,d){var e=this;d=d===void 0?!0:d;var f=this._getTrigger(b),g=new A5c(this.id,b,a),k=this._engine.statesByElement.get(a);k||(bm(a,"ng-trigger"),bm(a,"ng-trigger-"+b),this._engine.statesByElement.set(a,k=new Map));var m=k.get(b),r=new v5c(c,this.id);c&&c.hasOwnProperty("value")||!m||w5c(r,m.options);k.set(b,r);m||(m=x5c);if(r.value!=="void"&&m.value===r.value){if(!FJa(m.params,r.params)){d=[];var w=f.fallbackTransition.buildStyles(m.value,m.params,d),x=f.fallbackTransition.buildStyles(r.value,
r.params,d);d.length?this._engine.reportError(d):z5c(this._engine,function(){Wl(a,w);Vl(a,x)})}}else{c=$l(this._engine.playersByElement,a,[]);c.forEach(function(H){H.namespaceId==e.id&&H.triggerName==b&&H.queued&&H.destroy()});k=q5c(f,m.value,r.value,a,r.params);var D=!1;if(!k){if(!d)return;k=f.fallbackTransition;D=!0}this._engine.totalQueuedPlayers++;this._queue.push({element:a,triggerName:b,transition:k,fromState:m,toState:r,player:g,isFallbackTransition:D});D||(bm(a,"ng-animate-queued"),g.onStart(function(){cm(a,
"ng-animate-queued")}));g.onDone(function(){var H=e.players.indexOf(g);H>=0&&e.players.splice(H,1);if(H=e._engine.playersByElement.get(a)){var J=H.indexOf(g);J>=0&&H.splice(J,1)}});this.players.push(g);c.push(g);return g}};h.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 B5c=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))};
y5c.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=C5c(c._engine,e);f.size?f.forEach(function(g){return D5c(g,e,b,!1,!0)}):B5c(c,e)}});this._engine.afterFlushAnimationsDone(function(){return d.forEach(function(e){return B5c(c,e)})})};
var D5c=function(a,b,c,d,e){var f=a._engine.statesByElement.get(b),g=new Map;if(f){var k=[];f.forEach(function(m,r){g.set(r,m.value);a._triggers.has(r)&&(m=a.trigger(b,r,"void",e))&&k.push(m)});if(k.length){E5c(a._engine,a.id,b,!0,c,g);if(d)Zl(k).onDone(function(){return BJa(a._engine,b)});return!0}}return!1},F5c=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 g=a._triggers.get(f).fallbackTransition,
k=d.get(f)||x5c,m=new v5c("void"),r=new A5c(a.id,f,b);a._engine.totalQueuedPlayers++;a._queue.push({element:b,triggerName:f,transition:g,fromState:k,toState:m,player:r,isFallbackTransition:!0})}})}};
y5c.prototype.removeNode=function(a,b){var c=this,d=this._engine;a.childElementCount&&this._signalRemovalForInnerTriggers(a,b);if(!D5c(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}}F5c(this,a);e?E5c(d,this.id,a,!1,b):(e=a.__ng_removed,e&&e!==u5c||(z5c(d,function(){return B5c(c,a)}),G5c(d,a),d._onRemovalComplete(a,b)))}};
y5c.prototype.insertNode=function(a){bm(a,this._hostClassName)};
var H5c=function(a,b){var c=[];a._queue.forEach(function(d){var e=d.player;if(!e.destroyed){var f=d.element,g=a._elementListeners.get(f);g&&g.forEach(function(k){if(k.name==d.triggerName){var m=ZIa(f,d.triggerName,d.fromState.value,d.toState.value);m._data=b;YIa(d.player,k.phase,m,k.callback)}});e.markedForDestroy?z5c(a._engine,function(){e.destroy()}):c.push(d)}});a._queue=[];return c.sort(function(d,e){var f=d.transition.ast.depCount,g=e.transition.ast.depCount;return f==0||g==0?f-g:cJa(d.element,
e.element)?1:-1})};y5c.prototype.destroy=function(a){this.players.forEach(function(b){return b.destroy()});this._signalRemovalForInnerTriggers(this.hostElement,a)};
var EI=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(){}};
h=EI.prototype;h._onRemovalComplete=function(a,b){this.onRemovalComplete(a,b)};h._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 g=d.get(f);if(g){e=c.indexOf(g);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};
h.register=function(a,b){var c=this._namespaceLookup[a];c||(c=new y5c(a,b,this),this.bodyNode&&cJa(this.bodyNode,b)?this._balanceNamespaceList(c,b):(this.newHostElements.set(b,c),this.collectedEnterElements.push(b)),c=this._namespaceLookup[a]=c);return c};h.registerTrigger=function(a,b,c){(a=this._namespaceLookup[a])&&a.register(b,c)&&this.totalAnimations++};
h.destroy=function(a,b){var c=this;a&&(z5c(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]}))};h._fetchNamespace=function(a){return this._namespaceLookup[a]};
var C5c=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};EI.prototype.trigger=function(a,b,c,d){return wJa(b)&&(a=this._fetchNamespace(a))?(a.trigger(b,c,d),!0):!1};
EI.prototype.insertNode=function(a,b,c,d){if(wJa(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 I5c=function(a,b,c){c?a.disabledNodes.has(b)||(a.disabledNodes.add(b),bm(b,"ng-animate-disabled")):a.disabledNodes.has(b)&&(a.disabledNodes.delete(b),cm(b,"ng-animate-disabled"))};
EI.prototype.removeNode=function(a,b,c){if(wJa(b)){var d=a?this._fetchNamespace(a):null;d?d.removeNode(b,c):E5c(this,a,b,!1,c);(d=this.namespacesByHostElement.get(b))&&d.id!==a&&d.removeNode(b,c)}else this._onRemovalComplete(b,c)};var E5c=function(a,b,c,d,e,f){a.collectedLeaveElements.push(c);c.__ng_removed={namespaceId:b,setForRemoval:e,hasAnimation:d,removedBeforeQueried:!1,previousTriggersValues:f}};EI.prototype.listen=function(a,b,c,d,e){return wJa(b)?this._fetchNamespace(a).listen(b,c,d,e):function(){}};
EI.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 G5c=function(a,b){var c=a.driver.query(b,".ng-trigger",!0);c.forEach(function(d){return J5c(a,d)});a.playersByQueriedElement.size!=0&&(c=a.driver.query(b,".ng-animating",!0),c.forEach(function(d){return K5c(a,d)}))},J5c=function(a,b){(a=a.playersByElement.get(b))&&a.forEach(function(c){c.queued?c.markedForDestroy=!0:c.destroy()})},K5c=function(a,b){(a=a.playersByQueriedElement.get(b))&&a.forEach(function(c){return c.finish()})},BJa=function(a,b){var c=b.__ng_removed;if(c&&c.setForRemoval){b.__ng_removed=
u5c;if(c.namespaceId){G5c(a,b);var d=a._fetchNamespace(c.namespaceId);d&&B5c(d,b)}a._onRemovalComplete(b,c.setForRemoval)}var e;((e=b.classList)==null?0:e.contains("ng-animate-disabled"))&&I5c(a,b,!1);a.driver.query(b,".ng-animate-disabled",!0).forEach(function(f){I5c(a,f,!1)})};
EI.prototype.flush=function(a){var b=this;a=a===void 0?-1:a;var c=[];this.newHostElements.size&&(this.newHostElements.forEach(function(f,g){return b._balanceNamespaceList(f,g)}),this.newHostElements.clear());if(this.totalAnimations&&this.collectedEnterElements.length)for(var d=0;d<this.collectedEnterElements.length;d++)bm(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++)BJa(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)Zl(c).onDone(function(){e.forEach(function(f){return f()})});else e.forEach(function(f){return f()})}};
EI.prototype.reportError=function(){throw new Pc(3402,!1);};
EI.prototype._flushAnimations=function(a,b){var c=this,d=new AI,e=[],f=new Map,g=[],k=new Map,m=new Map,r=new Map,w=new Set;this.disabledNodes.forEach(function(ib){w.add(ib);ib=c.driver.query(ib,".ng-animate-queued",!0);for(var bc=0;bc<ib.length;bc++)w.add(ib[bc])});var x=this.bodyNode,D=Array.from(this.statesByElement.keys()),H=AJa(D,this.collectedEnterElements),J=new Map,O=0;H.forEach(function(ib,bc){var xc="ng-enter"+O++;J.set(bc,xc);ib.forEach(function(ud){return bm(ud,xc)})});for(var R=[],V=
new Set,ba=new Set,pa=0;pa<this.collectedLeaveElements.length;pa++){var ua=this.collectedLeaveElements[pa],ma=ua.__ng_removed;ma&&ma.setForRemoval&&(R.push(ua),V.add(ua),ma.hasAnimation?this.driver.query(ua,".ng-star-inserted",!0).forEach(function(ib){return V.add(ib)}):ba.add(ua))}var Da=new Map,ja=AJa(D,Array.from(V));ja.forEach(function(ib,bc){var xc="ng-leave"+O++;Da.set(bc,xc);ib.forEach(function(ud){return bm(ud,xc)})});a.push(function(){H.forEach(function(ib,bc){var xc=J.get(bc);ib.forEach(function(ud){return cm(ud,
xc)})});ja.forEach(function(ib,bc){var xc=Da.get(bc);ib.forEach(function(ud){return cm(ud,xc)})});R.forEach(function(ib){BJa(c,ib)})});var va=[],ya=[];for(a=this._namespaceList.length-1;a>=0;a--)H5c(this._namespaceList[a],b).forEach(function(ib){var bc=ib.player,xc=ib.element;va.push(bc);if(c.collectedEnterElements.length){var ud=xc.__ng_removed;if(ud&&ud.setForMove){if(ud.previousTriggersValues&&ud.previousTriggersValues.has(ib.triggerName)){ud=ud.previousTriggersValues.get(ib.triggerName);var Tb=
c.statesByElement.get(ib.element);if(Tb&&Tb.has(ib.triggerName)){var qc=Tb.get(ib.triggerName);qc.value=ud;Tb.set(ib.triggerName,qc)}}bc.destroy();return}}ud=!x||!cJa(x,xc);Tb=Da.get(xc);qc=J.get(xc);var Sc=c._buildInstruction(ib,d,qc,Tb,ud);if(Sc.errors&&Sc.errors.length)ya.push(Sc);else if(ud)bc.onStart(function(){return Wl(xc,Sc.fromStyles)}),bc.onDestroy(function(){return Vl(xc,Sc.toStyles)}),e.push(bc);else if(ib.isFallbackTransition)bc.onStart(function(){return Wl(xc,Sc.fromStyles)}),bc.onDestroy(function(){return Vl(xc,
Sc.toStyles)}),e.push(bc);else{var pd=[];Sc.timelines.forEach(function(Uc){Uc.stretchStartingKeyframe=!0;c.disabledNodes.has(Uc.element)||pd.push(Uc)});Sc.timelines=pd;d.append(xc,Sc.timelines);g.push({instruction:Sc,player:bc,element:xc});Sc.queriedElements.forEach(function(Uc){return $l(k,Uc,[]).push(bc)});Sc.preStyleProps.forEach(function(Uc,ne){if(Uc.size){var ff=m.get(ne);ff||m.set(ne,ff=new Set);Uc.forEach(function(bf,Mh){return ff.add(Mh)})}});Sc.postStyleProps.forEach(function(Uc,ne){var ff=
r.get(ne);ff||r.set(ne,ff=new Set);Uc.forEach(function(bf,Mh){return ff.add(Mh)})})}});if(ya.length){var Sa=[];ya.forEach(function(){Sa.push(new Pc(3505,!1))});va.forEach(function(ib){return ib.destroy()});this.reportError(Sa)}var ab=new Map,rb=new Map;g.forEach(function(ib){var bc=ib.element;d.has(bc)&&(rb.set(bc,bc),c._beforeAnimationBuild(ib.player.namespaceId,ib.instruction,ab))});e.forEach(function(ib){var bc=ib.element;c._getPreviousPlayers(bc,!1,ib.namespaceId,ib.triggerName,null).forEach(function(xc){$l(ab,
bc,[]).push(xc);xc.destroy()})});var ac=R.filter(function(ib){return GJa(ib,m,r)}),pc=new Map;zJa(pc,ba,r).forEach(function(ib){GJa(ib,m,r)&&ac.push(ib)});var kc=new Map;H.forEach(function(ib){zJa(kc,new Set(ib),m)});ac.forEach(function(ib){var bc=pc.get(ib),xc=kc.get(ib),ud,Tb;pc.set(ib,new Map([].concat(n((ud=bc==null?void 0:bc.entries())!=null?ud:[]),n((Tb=xc==null?void 0:xc.entries())!=null?Tb:[]))))});var vc=[],tb=[],Qb={};g.forEach(function(ib){var bc=ib.element,xc=ib.player,ud=ib.instruction;
if(d.has(bc))if(w.has(bc))xc.onDestroy(function(){return Vl(bc,ud.toStyles)}),xc.disabled=!0,xc.totalTime=ud.totalTime,e.push(xc);else{var Tb=Qb;if(rb.size>1){ib=bc;for(var qc=[];ib=ib.parentNode;){var Sc=rb.get(ib);if(Sc){Tb=Sc;break}qc.push(ib)}qc.forEach(function(pd){return rb.set(pd,Tb)})}ib=c._buildAnimation(xc.namespaceId,ud,ab,f,kc,pc);L5c(xc,ib);Tb===Qb?vc.push(xc):((ib=c.playersByElement.get(Tb))&&ib.length&&(xc.parentPlayer=Zl(ib)),e.push(xc))}else Wl(bc,ud.fromStyles),xc.onDestroy(function(){return Vl(bc,
ud.toStyles)}),tb.push(xc),w.has(bc)&&e.push(xc)});tb.forEach(function(ib){var bc=f.get(ib.element);bc&&bc.length&&(bc=Zl(bc),L5c(ib,bc))});e.forEach(function(ib){ib.parentPlayer?M5c(ib,ib.parentPlayer):ib.destroy()});for(b=0;b<R.length;b++)if(ba=R[b],a=ba.__ng_removed,cm(ba,"ng-leave"),!a||!a.hasAnimation){a=[];if(k.size)for((D=k.get(ba))&&D.length&&a.push.apply(a,n(D)),D=this.driver.query(ba,".ng-animating",!0),pa=0;pa<D.length;pa++)(ua=k.get(D[pa]))&&ua.length&&a.push.apply(a,n(ua));a=a.filter(function(ib){return!ib.destroyed});
a.length?CJa(this,ba,a):BJa(this,ba)}R.length=0;vc.forEach(function(ib){c.players.push(ib);ib.onDone(function(){ib.destroy();var bc=c.players.indexOf(ib);c.players.splice(bc,1)});ib.play()});return vc};var z5c=function(a,b){a._flushFns.push(b)};h=EI.prototype;h.afterFlushAnimationsDone=function(a){this._whenQuietFns.push(a)};
h._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 g=!e||e=="void";a.forEach(function(k){k.queued||(g||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};
h._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),g=f.next(),k={};!g.done;k={players$jscomp$10:void 0},g=f.next()){g=g.value.element;var m=g!==e;k.players$jscomp$10=$l(c,g,[]);this._getPreviousPlayers(g,m,a,d,b.toState).forEach(function(r){return function(w){var x=w._player;x.beforeDestroy&&x.beforeDestroy();w.destroy();r.players$jscomp$10.push(w)}}(k))}Wl(e,b.fromStyles)};
h._buildAnimation=function(a,b,c,d,e,f){var g=this,k=b.triggerName,m=b.element,r=[],w=new Set,x=new Set,D=b.timelines.map(function(J){var O=J.element;w.add(O);var R=O.__ng_removed;if(R&&R.removedBeforeQueried)return new Yl(J.duration,J.delay);R=O!==m;var V=EJa((c.get(O)||t5c).map(function(ua){return ua._player})).filter(function(ua){return ua.element?ua.element===O:!1}),ba=e.get(O),pa=f.get(O);ba=WIa(J.keyframes,ba,pa);V=g._buildPlayer(J,ba,V);J.subTimeline&&d&&x.add(O);R&&(J=new A5c(a,k,O),L5c(J,
V),r.push(J));return V});r.forEach(function(J){$l(g.playersByQueriedElement,J.element,[]).push(J);J.onDone(function(){var O=g.playersByQueriedElement,R=J.element,V=O.get(R);if(V){if(V.length){var ba=V.indexOf(J);V.splice(ba,1)}V.length==0&&O.delete(R)}return V})});w.forEach(function(J){return bm(J,"ng-animating")});var H=Zl(D);H.onDestroy(function(){w.forEach(function(J){return cm(J,"ng-animating")});Vl(m,b.toStyles)});x.forEach(function(J){$l(d,J,[]).push(H)});return H};
h._buildPlayer=function(a,b,c){return b.length>0?this.driver.animate(a.element,b,a.duration,a.delay,a.easing,c):new Yl(a.duration,a.delay)};
var A5c=function(a,b,c){this.namespaceId=a;this.triggerName=b;this.element=c;this._player=new Yl;this._containsRealPlayer=!1;this._queuedCallbacks=new Map;this.destroyed=!1;this.parentPlayer=null;this.disabled=this.markedForDestroy=!1;this.queued=!0;this.totalTime=0},L5c=function(a,b){a._containsRealPlayer||(a._player=b,a._queuedCallbacks.forEach(function(c,d){c.forEach(function(e){return YIa(b,d,void 0,e)})}),a._queuedCallbacks.clear(),a._containsRealPlayer=!0,a.totalTime=b.totalTime,a.queued=!1)},
M5c=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()})};h=A5c.prototype;h._queueEvent=function(a,b){$l(this._queuedCallbacks,a,[]).push(b)};h.onDone=function(a){this.queued&&this._queueEvent("done",a);this._player.onDone(a)};h.onStart=function(a){this.queued&&this._queueEvent("start",a);this._player.onStart(a)};
h.onDestroy=function(a){this.queued&&this._queueEvent("destroy",a);this._player.onDestroy(a)};h.init=function(){this._player.init()};h.hasStarted=function(){return this.queued?!1:this._player.hasStarted()};h.play=function(){!this.queued&&this._player.play()};h.pause=function(){!this.queued&&this._player.pause()};h.restart=function(){!this.queued&&this._player.restart()};h.finish=function(){this._player.finish()};h.destroy=function(){this.destroyed=!0;this._player.destroy()};
h.reset=function(){!this.queued&&this._player.reset()};h.setPosition=function(a){this.queued||this._player.setPosition(a)};h.getPosition=function(){return this.queued?0:this._player.getPosition()};h.triggerCallback=function(a){var b=this._player;b.triggerCallback&&b.triggerCallback(a)};var N5c=function(a,b,c){var d=this;this._driver=b;this._normalizer=c;this._triggerCache={};this.onRemovalComplete=function(){};this._transitionEngine=new EI(a.body,b,c);this._timelineEngine=new s5c(a.body,b,c);this._transitionEngine.onRemovalComplete=function(e,f){return d.onRemovalComplete(e,f)}};h=N5c.prototype;
h.registerTrigger=function(a,b,c,d,e){a=a+"-"+d;c=this._triggerCache[a];if(!c){c=[];e=(new a5c(this._driver)).build(e,c,[]);if(c.length)throw new Pc(3404,!1);c=new p5c(d,e,this._normalizer);this._triggerCache[a]=c}this._transitionEngine.registerTrigger(b,d,c)};h.register=function(a,b){this._transitionEngine.register(a,b)};h.destroy=function(a,b){this._transitionEngine.destroy(a,b)};h.disableAnimations=function(a,b){I5c(this._transitionEngine,a,b)};
h.process=function(a,b,c,d){c.charAt(0)=="@"?(c=l($Ia(c)),a=c.next().value,c=c.next().value,this._timelineEngine.command(a,b,c,d)):this._transitionEngine.trigger(a,b,c,d)};h.listen=function(a,b,c,d,e){return c.charAt(0)=="@"?(c=l($Ia(c)),a=c.next().value,c=c.next().value,this._timelineEngine.listen(a,b,c,e)):this._transitionEngine.listen(a,b,c,d,e)};h.flush=function(a){this._transitionEngine.flush(a===void 0?-1:a)};h.afterFlushAnimationsDone=function(a){this._transitionEngine.afterFlushAnimationsDone(a)};
da.Object.defineProperties(N5c.prototype,{players:{configurable:!0,enumerable:!0,get:function(){return[].concat(n(this._transitionEngine.players),n(this._timelineEngine.players))}}});var IJa=function(a,b,c){this._element=a;this._startStyles=b;this._endStyles=c;this._state=0;var d=O5c.get(a);d||O5c.set(a,d=new Map);this._initialStyles=d};IJa.prototype.start=function(){this._state<1&&(this._startStyles&&Vl(this._element,this._startStyles,this._initialStyles),this._state=1)};IJa.prototype.finish=function(){this.start();this._state<2&&(Vl(this._element,this._initialStyles),this._endStyles&&(Vl(this._element,this._endStyles),this._endStyles=null),this._state=1)};
IJa.prototype.destroy=function(){this.finish();this._state<3&&(O5c.delete(this._element),this._startStyles&&(Wl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Wl(this._element,this._endStyles),this._endStyles=null),Vl(this._element,this._initialStyles),this._state=3)};var O5c=new WeakMap;var P5c=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.domPlayer=null;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};h=P5c.prototype;
h._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};h.init=function(){this._buildPlayer()&&this._preparePlayerBeforeStart()};
h._buildPlayer=function(){var a=this;if(this._initialized)return this.domPlayer;this._initialized=!0;var b=this.keyframes,c=this._triggerWebAnimation(this.element,b,this.options);if(!c)return this._onFinish(),null;this.domPlayer=c;this._finalKeyframe=b.length?b[b.length-1]:new Map;var d=function(){return a._onFinish()};c.addEventListener("finish",d);this.onDestroy(function(){c.removeEventListener("finish",d)});return c};
h._preparePlayerBeforeStart=function(){if(this._delay)this._resetDomPlayerState();else{var a;(a=this.domPlayer)==null||a.pause()}};h._convertKeyframesToObject=function(a){var b=[];a.forEach(function(c){b.push(Object.fromEntries(c))});return b};h._triggerWebAnimation=function(a,b,c){b=this._convertKeyframesToObject(b);try{return a.animate(b,c)}catch(d){return null}};h.onStart=function(a){this._originalOnStartFns.push(a);this._onStartFns.push(a)};
h.onDone=function(a){this._originalOnDoneFns.push(a);this._onDoneFns.push(a)};h.onDestroy=function(a){this._onDestroyFns.push(a)};h.play=function(){var a=this._buildPlayer();a&&(this.hasStarted()||(this._onStartFns.forEach(function(b){return b()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),a.play())};h.pause=function(){this.init();var a;(a=this.domPlayer)==null||a.pause()};
h.finish=function(){this.init();this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish())};h.reset=function(){this._resetDomPlayerState();this._started=this._finished=this._destroyed=!1;this._onStartFns=this._originalOnStartFns;this._onDoneFns=this._originalOnDoneFns};h._resetDomPlayerState=function(){var a;(a=this.domPlayer)==null||a.cancel()};h.restart=function(){this.reset();this.play()};h.hasStarted=function(){return this._started};
h.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=[])};h.setPosition=function(a){this.domPlayer||this.init();this.domPlayer&&(this.domPlayer.currentTime=a*this.time)};h.getPosition=function(){if(!this.domPlayer)return this._initialized?1:0;var a;return+((a=this.domPlayer.currentTime)!=null?a:0)/this.time};
h.beforeDestroy=function(){var a=this,b=new Map;this.hasStarted()&&this._finalKeyframe.forEach(function(c,d){d!=="offset"&&b.set(d,a._finished?c:SIa(a.element,d))});this.currentSnapshot=b};h.triggerCallback=function(a){a=a==="start"?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};da.Object.defineProperties(P5c.prototype,{totalTime:{configurable:!0,enumerable:!0,get:function(){return this._delay+this._duration}}});var Q5c=function(){};Q5c.prototype.getParentElement=function(a){return bJa(a)};Q5c.prototype.query=function(a,b,c){a=c?Array.from(a.querySelectorAll(b)):(a=a.querySelector(b))?[a]:[];return a};
Q5c.prototype.animate=function(a,b,c,d,e,f){f=f===void 0?[]:f;var g={duration:c,delay:d,fill:d==0?"both":"forwards"};e&&(g.easing=e);var k=new Map;e=f.filter(function(r){return r instanceof P5c});c!==0&&d!==0||e.forEach(function(r){r.currentSnapshot.forEach(function(w,x){return k.set(x,w)})});var m=KIa(b).map(function(r){return new Map(r)});m=TIa(a,m,k);b=JJa(a,m);return new P5c(a,m,g,b)};var R5c=function(a,b,c,d){this.namespaceId=a;this.delegate=b;this.engine=c;this._onDestroy=d};h=R5c.prototype;h.destroyNode=function(a){var b,c;(c=(b=this.delegate).destroyNode)==null||c.call(b,a)};h.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)};h.createElement=function(a,b){return this.delegate.createElement(a,b)};
h.createComment=function(a){return this.delegate.createComment(a)};h.createText=function(a){return this.delegate.createText(a)};h.appendChild=function(a,b){this.delegate.appendChild(a,b);this.engine._transitionEngine.insertNode(this.namespaceId,b,a,!1)};h.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)};
h.removeChild=function(a,b,c,d){d?this.delegate.removeChild(a,b,c,d):this.parentNode(b)&&this.engine._transitionEngine.removeNode(this.namespaceId,b,this.delegate)};h.selectRootElement=function(a,b){return this.delegate.selectRootElement(a,b)};h.parentNode=function(a){return this.delegate.parentNode(a)};h.nextSibling=function(a){return this.delegate.nextSibling(a)};h.setAttribute=function(a,b,c,d){this.delegate.setAttribute(a,b,c,d)};
h.removeAttribute=function(a,b,c){this.delegate.removeAttribute(a,b,c)};h.addClass=function(a,b){this.delegate.addClass(a,b)};h.removeClass=function(a,b){this.delegate.removeClass(a,b)};h.setStyle=function(a,b,c,d){this.delegate.setStyle(a,b,c,d)};h.removeStyle=function(a,b,c){this.delegate.removeStyle(a,b,c)};h.setProperty=function(a,b,c){b.charAt(0)=="@"&&b=="@.disabled"?this.disableAnimations(a,!!c):this.delegate.setProperty(a,b,c)};h.setValue=function(a,b){this.delegate.setValue(a,b)};
h.listen=function(a,b,c,d){return this.delegate.listen(a,b,c,d)};h.disableAnimations=function(a,b){this.engine.disableAnimations(a,b)};da.Object.defineProperties(R5c.prototype,{data:{configurable:!0,enumerable:!0,get:function(){return this.delegate.data}}});var S5c=function(a,b,c,d,e){R5c.call(this,b,c,d,e);this.factory=a;this.namespaceId=b};Z(S5c,R5c);
S5c.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)};
S5c.prototype.listen=function(a,b,c,d){var e=this;return b.charAt(0)=="@"?(a=KJa(a),b=b.slice(1),d="",b.charAt(0)!="@"&&(d=l(LJa(b)),b=d.next().value,d=d.next().value),this.engine.listen(this.namespaceId,a,b,d,function(f){T5c(e.factory,f._data||-1,c,f)})):this.delegate.listen(a,b,c,d)};var U5c=function(){var a=q(Jy),b=q(N5c),c=q(Tg);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)}};
U5c.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 R5c("",d,this.engine,function(){return f.delete(d)}),f.set(d,b));return b}var g=b.id,k=b.id+"-"+this._currentId;this._currentId++;this.engine.register(k,a);var m=function(r){Array.isArray(r)?r.forEach(m):c.engine.registerTrigger(g,k,a,r.name,r)};b.data.animation.forEach(m);return new S5c(this,k,d,this.engine)};
U5c.prototype.begin=function(){this._cdRecurDepth++;this.delegate.begin&&this.delegate.begin()};U5c.prototype._scheduleCountTask=function(){var a=this;queueMicrotask(function(){a._microtaskId++})};
var T5c=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 g=l(f);f=g.next().value;g=g.next().value;f(g)});a._animationCallbacksBuffer=[]})});e.push([c,d])}};
U5c.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 JI=function(a,b,c){N5c.call(this,a,b,c)};Z(JI,N5c);JI.prototype.ngOnDestroy=function(){this.flush()};JI.\u0275fac=function(a){return new (a||JI)(Wc(Yh),Wc($4c),Wc(X4c))};JI.\u0275prov=Cc({token:JI,factory:JI.\u0275fac});var V5c=[{provide:X4c,useFactory:function(){return new Z4c}},{provide:N5c,useClass:JI},{provide:Ye,useFactory:function(){return new U5c}}];n(V5c);var W5c=[{provide:$4c,useFactory:function(){return new Q5c}},{provide:qi,useFactory:function(){return"BrowserAnimations"}}].concat(n(V5c));var KI=function(){};KI.\u0275fac=function(a){return new (a||KI)};KI.\u0275mod=$e({type:KI});KI.\u0275inj=Dc({providers:W5c,imports:[ez]});OJa(function(){});Oh({passive:!0,capture:!0});Oh({passive:!0,capture:!0});MJa(function(a){this._elementRef=a},"primary");var X5c=new bd("mat-progress-spinner-default-options",{providedIn:"root",factory:PJa});var Y5c=MJa(function(a){this._elementRef=a},"primary"),LI=function(a,b,c,d,e,f,g,k,m){var r=Y5c.call(this,a)||this;r._document=c;r._nonce=m;r._diameter=100;r._value=0;r._resizeSubscription=Od.EMPTY;r.mode="determinate";var w=LI._diameters;r._spinnerAnimationLabel=r._getSpinnerAnimationLabel();w.has(c.head)||w.set(c.head,new Set([100]));r._noopAnimations=d==="NoopAnimations"&&!!e&&!e._forceAnimations;a.nativeElement.nodeName.toLowerCase()==="mat-spinner"&&(r.mode="indeterminate");e&&(e.color&&(r.color=
r.defaultColor=e.color),e.diameter&&(r.diameter=e.diameter),e.strokeWidth&&(r.strokeWidth=e.strokeWidth));b.isBrowser&&b.SAFARI&&g&&f&&k&&(r._resizeSubscription=g.change(150).subscribe(function(){r.mode==="indeterminate"&&k.run(function(){return f.markForCheck()})}));return r};Z(LI,Y5c);h=LI.prototype;h.ngOnInit=function(){var a=this._elementRef.nativeElement;this._styleRoot=msa(a)||this._document.head;this._attachStyleNode();a.classList.add("mat-progress-spinner-indeterminate-animation")};
h.ngOnDestroy=function(){this._resizeSubscription.unsubscribe()};h._getCircleRadius=function(){return(this.diameter-10)/2};h._getViewBox=function(){var a=this._getCircleRadius()*2+this.strokeWidth;return"0 0 "+a+" "+a};h._getStrokeCircumference=function(){return 2*Math.PI*this._getCircleRadius()};h._getStrokeDashOffset=function(){return this.mode==="determinate"?this._getStrokeCircumference()*(100-this._value)/100:null};h._getCircleStrokeWidth=function(){return this.strokeWidth/this.diameter*100};
h._getCircleTransformOrigin=function(a){var b;a=((b=a.currentScale)!=null?b:1)*50;return a+"% "+a+"%"};h._attachStyleNode=function(){var a=this._styleRoot,b=this._diameter,c=LI._diameters,d=c.get(a);if(!d||!d.has(b)){var e=this._document.createElement("style");this._nonce&&(e.nonce=this._nonce);e.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel);e.textContent=this._getAnimationText();a.appendChild(e);d||(d=new Set,c.set(a,d));d.add(b)}};
h._getAnimationText=function(){var a=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n    0%      { stroke-dashoffset: START_VALUE;  transform: rotate(0); }\n    12.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(0); }\n    12.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(72.5deg); }\n    25%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(72.5deg); }\n\n    25.0001%   { stroke-dashoffset: START_VALUE;  transform: rotate(270deg); }\n    37.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(270deg); }\n    37.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(161.5deg); }\n    50%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(161.5deg); }\n\n    50.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(180deg); }\n    62.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(180deg); }\n    62.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(251.5deg); }\n    75%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(251.5deg); }\n\n    75.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(90deg); }\n    87.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(90deg); }\n    87.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(341.5deg); }\n    100%    { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(341.5deg); }\n  }\n".replace(/START_VALUE/g,
""+.95*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,this._spinnerAnimationLabel)};h._getSpinnerAnimationLabel=function(){return this.diameter.toString().replace(".","_")};
da.Object.defineProperties(LI.prototype,{diameter:{configurable:!0,enumerable:!0,get:function(){return this._diameter},set:function(a){this._diameter=Vh(a);this._spinnerAnimationLabel=this._getSpinnerAnimationLabel();this._styleRoot&&this._attachStyleNode()}},strokeWidth:{configurable:!0,enumerable:!0,get:function(){return this._strokeWidth||this.diameter/10},set:function(a){this._strokeWidth=Vh(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,Vh(a)))}}});LI._diameters=new WeakMap;LI.\u0275fac=function(a){return new (a||LI)(Ve(Gd),Ve(bi),Ve(Yh,8),Ve(qi,8),Ve(X5c),Ve(Yx),Ve(Xh),Ve(Tg),Ve(KCc,8))};
LI.\u0275cmp=C({type:LI,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:11,hostBindings:function(a,b){a&2&&(Jf("aria-valuemin",b.mode==="determinate"?0:null)("aria-valuemax",b.mode==="determinate"?100:null)("aria-valuenow",b.mode==="determinate"?b.value:null)("mode",b.mode)("mat-id-collision",null),xg("width",b.diameter,"px")("height",b.diameter,"px"),yg("_mat-animation-noopable",b._noopAnimations))},
inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],standalone:!1,features:[Ff],decls:4,vars:8,consts:[["svg",""],["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",
4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(a,b){a&1&&(yd(),K(0,"svg",1,0),E(2,QJa,1,11,"circle",2)(3,RJa,1,9,"circle",3),L());a&2&&(xg("width",b.diameter,"px")("height",b.diameter,"px"),I("ngSwitch",b.mode==="indeterminate"),Jf("viewBox",b._getViewBox()),B(2),I("ngSwitchCase",!0),B(),I("ngSwitchCase",!1))},dependencies:[ky,ly],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}@media(forced-colors: active){.mat-progress-spinner circle{stroke:CanvasText}}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],
encapsulation:2,changeDetection:0});var MI=function(a,b){this.elementRef=a;this.renderer=b;this.iconset="common";this.icon="";this.size="small";Z5c(this)};MI.prototype.ngOnChanges=function(a){this.icon==="working"?this.iconSpec={kind:"mat-spinner",sizePx:WJa(this.size)}:this.iconset==="material"&&this.icon?this.iconSpec={kind:"mat-icon-font",icon:this.icon}:this.icon?this.iconSpec={kind:"mat-icon",iconset:this.iconset,icon:this.icon,size:this.size}:this.iconSpec=void 0;a.size&&Z5c(this)};
var Z5c=function(a){var b=a.elementRef.nativeElement;if(b.tagName.toUpperCase()==="FOREIGNOBJECT"){var c=String(WJa(a.size));a.renderer.setAttribute(b,"height",c);a.renderer.setAttribute(b,"width",c)}};da.Object.defineProperties(MI.prototype,{classes:{configurable:!0,enumerable:!0,get:function(){return["ace-icon","ace-icon-size-"+this.size,this.icon?"ace-icon-"+this.icon:""].join(" ")}}});MI.\u0275fac=function(a){return new (a||MI)(Ve(Gd),Ve(ji))};
MI.\u0275cmp=C({type:MI,selectors:[["ace-icon"],["foreignObject","ace-icon",""]],hostVars:2,hostBindings:function(a,b){a&2&&zg(b.classes)},inputs:{iconset:"iconset",icon:"icon",size:"size"},standalone:!1,features:[Gx],decls:1,vars:1,consts:function(){return[[4,"ngIf"],[3,"svgIcon"],["color","primary","aria-label","Loading",3,"diameter","strokeWidth"]]},template:function(a,b){a&1&&E(0,VJa,4,3,"ng-container",0);a&2&&I("ngIf",b.iconSpec)},dependencies:[jy,iz,LI],styles:[".ace-icon{display:inline-block;line-height:0;vertical-align:middle;margin-top:-2px}.ace-icon svg{forced-color-adjust:auto}.ace-icon.ace-icon-size-small mat-icon{height:18px;width:18px}.ace-icon.ace-icon-size-medium mat-icon{height:24px;width:24px}.ace-icon.ace-icon-size-large mat-icon{height:32px;width:32px}.ace-icon.ace-icon-size-small .material-icons{font-size:18px}.ace-icon.ace-icon-size-medium .material-icons{font-size:24px}.ace-icon.ace-icon-size-large .material-icons{font-size:32px}.ace-icon .mat-icon{overflow:visible}\n"],
encapsulation:2,changeDetection:0});var $5c=Pw(["//ssl.gstatic.com/pantheon/images/","/icons-","_v",".svg"]),a6c=function(a){this.mdIconRegistry=a},b6c=function(a,b){var c=Jh($5c,"common",b,77);a.mdIconRegistry._addSvgIconSetConfig("common-"+b,new hGc(c,null))};a6c.\u0275fac=function(a){return new (a||a6c)(Wc(hz))};a6c.\u0275prov=Cc({token:a6c,factory:a6c.\u0275fac,providedIn:"root"});var c6c=["determinateSpinner"],d6c=new bd("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),NI=function(){this._elementRef=q(Gd);this._defaultColor="primary";this._value=0;this._diameter=100;var a=q(d6c),b=Osa(),c=this._elementRef.nativeElement;this._noopAnimations=b==="di-disabled"&&!!a&&!a._forceAnimations;this.mode=c.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate";this._noopAnimations||b!=="reduced-motion"||c.classList.add("mat-progress-spinner-reduced-motion");
a&&(a.color&&(this.color=this._defaultColor=a.color),a.diameter&&(this.diameter=a.diameter),a.strokeWidth&&(this.strokeWidth=a.strokeWidth))};h=NI.prototype;h._circleRadius=function(){return(this.diameter-10)/2};h._viewBox=function(){var a=this._circleRadius()*2+this.strokeWidth;return"0 0 "+a+" "+a};h._strokeCircumference=function(){return 2*Math.PI*this._circleRadius()};h._strokeDashOffset=function(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null};
h._circleStrokeWidth=function(){return this.strokeWidth/this.diameter*100};
da.Object.defineProperties(NI.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}}});NI.\u0275fac=function(a){return new (a||NI)};
NI.\u0275cmp=C({type:NI,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(a,b){a&1&&kg(c6c,5);if(a&2){var c;og(c=pg())&&(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&&(Jf("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",b.mode==="determinate"?b.value:null)("mode",b.mode),zg("mat-"+b.color),xg("width",b.diameter,"px")("height",b.diameter,"px")("--mat-progress-spinner-size",
b.diameter+"px")("--mat-progress-spinner-active-indicator-width",b.diameter+"px"),yg("_mat-animation-noopable",b._noopAnimations)("mdc-circular-progress--indeterminate",b.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ch],diameter:[2,"diameter","diameter",ch],strokeWidth:[2,"strokeWidth","strokeWidth",ch]},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&&(E(0,XJa,2,8,"ng-template",null,0,Og),K(2,"div",2,1),yd(),K(4,"svg",3),M(5,"circle",4),L()(),zd(),K(6,"div",5)(7,"div",6)(8,"div",7),Xf(9,8),L(),K(10,"div",9),Xf(11,8),L(),K(12,"div",10),Xf(13,8),L()()());a&2&&(a=Q(1),B(4),Jf("viewBox",b._viewBox()),B(),xg("stroke-dasharray",b._strokeCircumference(),"px")("stroke-dashoffset",b._strokeDashOffset(),
"px")("stroke-width",b._circleStrokeWidth(),"%"),Jf("r",b._circleRadius()),B(4),I("ngTemplateOutlet",a),B(2),I("ngTemplateOutlet",a),B(2),I("ngTemplateOutlet",a))},dependencies:[oy],styles:[".mat-mdc-progress-spinner{--mat-progress-spinner-animation-multiplier: 1;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(--mat-progress-spinner-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}}.mat-progress-spinner-reduced-motion{--mat-progress-spinner-animation-multiplier: 1.25}.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 calc(1568.2352941176ms*var(--mat-progress-spinner-animation-multiplier)) 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(--mat-progress-spinner-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 calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) 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 calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) 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 calc(5332ms*var(--mat-progress-spinner-animation-multiplier)) 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 e6c=function(){};e6c.\u0275fac=function(a){return new (a||e6c)};e6c.\u0275mod=$e({type:e6c});e6c.\u0275inj=Dc({imports:[jz]});var f6c=function(){};f6c.\u0275fac=function(a){return new (a||f6c)};f6c.\u0275mod=$e({type:f6c});f6c.\u0275inj=Dc({imports:[xy,jz]});var g6c=function(a){this.iconService=a;b6c(this.iconService,"small");b6c(this.iconService,"medium")};g6c.\u0275fac=function(a){return new (a||g6c)(Wc(a6c))};g6c.\u0275mod=$e({type:g6c});g6c.\u0275inj=Dc({imports:[xy,kz,f6c]});var h6c=Pw(["aria-"]),i6c="ace-labelledby-message-container-goog_"+YJa++,OI=new Map,PI=null,aKa=(0,Lh.buildPrefixedAttributeSetter)(new Rra(h6c[0].toLowerCase())),QI=function(a){this.document=a};QI.prototype.ngOnDestroy=function(){for(var a=this.document.querySelectorAll("[ace-labelledby-host]"),b=0;b<a.length;b++)j6c(a[b]),a[b].removeAttribute("ace-labelledby-host");PI&&k6c();OI.clear()};
var k6c=function(){PI&&PI.parentNode&&(PI.parentNode.removeChild(PI),PI=null)},j6c=function(a){var b=$Ja(a).filter(function(c){return c.indexOf("ace-labelledby-message")!==0});a.setAttribute("aria-labelledby",b.join(" "))},l6c=function(a,b){a=$Ja(a);b=(b=OI.get(b))&&b.messageElement.id;return!!b&&a.indexOf(b)!==-1};QI.\u0275fac=function(a){return new (a||QI)(Wc(Yh))};QI.\u0275prov=Cc({token:QI,factory:QI.\u0275fac,providedIn:"root"});var m6c=function(a){this.overlayRef=a;this.ariaHiddenSiblings=new Map},n6c=function(a){this.overlayContainer=a;this.overlayContextStack=[]},p6c=function(a,b){b=new m6c(b);o6c(a,b);a.overlayContextStack.push(b)},q6c=function(){var a=document;return a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||null},o6c=function(a,b){var c=b.overlayRef.hostElement,d=Lsa(a.overlayContainer),e,f;a=[].concat(n(Array.from(((e=d.parentElement)==null?void 0:e.children)||[])),
n(Array.from(((f=c.parentElement)==null?void 0:f.children)||[])));(e=q6c())&&a.push.apply(a,n(Array.from(e.children)));a.forEach(function(g){if(g!==d&&g.nodeName!=="SCRIPT"&&!g.classList.contains("ace-accessible-modal-overlay-do-not-hide")&&g.nodeName!=="STYLE"&&!g.hasAttribute("aria-live")){var k=g.getAttribute("aria-hidden");b.ariaHiddenSiblings.set(g,k==="true"?!0:!1);g===c?g.removeAttribute("aria-hidden"):g.setAttribute("aria-hidden","true")}})},r6c=function(a){a.ariaHiddenSiblings.forEach(function(b,
c){b?c.setAttribute("aria-hidden","true"):c.removeAttribute("aria-hidden")})};n6c.\u0275fac=function(a){return new (a||n6c)(Wc(ci))};n6c.\u0275prov=Cc({token:n6c,factory:n6c.\u0275fac,providedIn:"root"});var s6c=new bd("ace-overlay-default-config");var t6c=["mat-button",""],u6c=["*"],v6c=function(){return".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"},
w6c="mat-button mat-flat-button mat-icon-button mat-raised-button mat-stroked-button mat-mini-fab mat-fab".split(" "),x6c=MJa(OJa(NJa(function(a){this._elementRef=a}))),RI=function(a,b,c){var d=x6c.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(w6c),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};Z(RI,x6c);h=RI.prototype;h.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0)};h.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};h.focus=function(a,b){a?nz(this._focusMonitor,this._getHostElement(),a,b):this._getHostElement().focus(b)};h._getHostElement=function(){return this._elementRef.nativeElement};h._isRippleDisabled=function(){return this.disableRipple||this.disabled};
h._hasHostAttributes=function(){var a=this;return Yc.apply(0,arguments).some(function(b){return a._getHostElement().hasAttribute(b)})};RI.\u0275fac=function(a){return new (a||RI)(Ve(Gd),Ve(mz),Ve(qi,8))};
RI.\u0275cmp=C({type:RI,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&&kg(EA,5);if(a&2){var c;og(c=pg())&&(b.ripple=c.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:6,hostBindings:function(a,b){a&2&&(Jf("disabled",b.disabled||null)("mat-id-collision",null),yg("_mat-animation-noopable",b._animationMode===
"NoopAnimations")("mat-button-disabled",b.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],standalone:!1,features:[Ff],attrs:t6c,ngContentSelectors:u6c,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&&(fg(),K(0,"span",0),gg(1),L(),M(2,"span",1)(3,"span",2));a&2&&(B(2),yg("mat-button-ripple-round",
b.isRoundButton||b.isIconButton),I("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[EA],styles:[v6c()],encapsulation:2,changeDetection:0});var SI=function(a,b,c,d){var e=RI.call(this,b,a,c)||this;e._ngZone=d;e._haltDisabledEvents=function(f){e.disabled&&(f.preventDefault(),f.stopImmediatePropagation())};return e};Z(SI,RI);
SI.prototype.ngAfterViewInit=function(){var a=this;RI.prototype.ngAfterViewInit.call(this);this._ngZone?this._ngZone.runOutsideAngular(function(){a._elementRef.nativeElement.addEventListener("click",a._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)};SI.prototype.ngOnDestroy=function(){RI.prototype.ngOnDestroy.call(this);this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)};
SI.\u0275fac=function(a){return new (a||SI)(Ve(mz),Ve(Gd),Ve(qi,8),Ve(Tg,8))};
SI.\u0275cmp=C({type:SI,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:8,hostBindings:function(a,b){a&2&&(Jf("tabindex",b.disabled?-1:b.tabIndex)("disabled",b.disabled||null)("aria-disabled",b.disabled.toString())("mat-id-collision",null),yg("_mat-animation-noopable",b._animationMode==="NoopAnimations")("mat-button-disabled",
b.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],standalone:!1,features:[Ff],attrs:t6c,ngContentSelectors:u6c,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&&(fg(),K(0,"span",0),gg(1),L(),M(2,"span",1)(3,"span",2));a&2&&(B(2),yg("mat-button-ripple-round",
b.isRoundButton||b.isIconButton),I("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[EA],styles:[v6c()],encapsulation:2,changeDetection:0});var y6c=function(){};y6c.prototype.ngOnInit=function(){};var dKa=function(a){a.action.kind==="executable"&&a.action.executeCallback()};y6c.\u0275fac=function(a){return new (a||y6c)};
y6c.\u0275cmp=C({type:y6c,selectors:[["ace-tooltip-action"]],inputs:{action:"action"},standalone:!1,decls:4,vars:3,consts:[[1,"ace-tooltip-action-button"],[3,"ngSwitch"],["mat-button","","color","primary",3,"click",4,"ngSwitchCase"],["mat-button","","color","primary",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0),Vf(1,1),E(2,eKa,2,2,"button",2)(3,fKa,2,4,"a",2),Wf(),L());a&2&&(B(),I("ngSwitch",b.action.kind),B(),I("ngSwitchCase","executable"),B(),I("ngSwitchCase","link"))},dependencies:[ky,
ly,RI,SI],styles:["[_nghost-%COMP%]   .ace-tooltip-action-button[_ngcontent-%COMP%]{margin:12px 0 -12px -12px}"],changeDetection:0});var TI=function(a,b,c,d,e){this.tooltipRef=a;this.triggerElement=b;this.ariaDescriber=c;this.elementRef=d;this.id=TI.uniqueIdCounter++;this.overlayId="tooltip_overlay_"+this.id;this.tooltipContentId="tooltip_content_"+this.id;this.destroy=new rf;this.tooltipRef.onChange.pipe(Af(this.destroy)).subscribe(function(){e.markForCheck()})};
TI.prototype.ngAfterViewInit=function(){this.tooltipRef.aceTooltipInteractive||typeof this.tooltipRef.content!=="string"&&this.tooltipRef.ariaRelationship==="description"&&Fz(this.ariaDescriber,this.triggerElement,this.elementRef.nativeElement)};TI.prototype.isString=function(){return typeof this.tooltipRef.content==="string"};TI.prototype.ngOnDestroy=function(){this.tooltipRef.ariaRelationship==="description"&&Gz(this.ariaDescriber,this.triggerElement,this.elementRef.nativeElement);this.destroy.next()};
TI.uniqueIdCounter=0;TI.\u0275fac=function(a){return new (a||TI)(Ve("tooltipRef"),Ve("triggerElement"),Ve(Ez),Ve(Gd),Ve(Yx))};
TI.\u0275cmp=C({type:TI,selectors:[["cfc-tooltip-overlay"]],hostVars:9,hostBindings:function(a,b){a&2&&(Jf("id",b.overlayId)("role",b.tooltipRef.modal?"dialog":"tooltip")("aria-describedby",b.tooltipRef.modal?b.tooltipContentId:null)("aria-label",b.tooltipRef.modal?b.tooltipRef.aceTooltipInteractiveDialogAriaLabel:null)("aria-modal",b.tooltipRef.modal||null),yg("ace-tooltip-overlay-rich",b.tooltipRef.aceTooltipRich||b.tooltipRef.aceTooltipInteractive)("ace-tooltip-overlay-simple",!b.tooltipRef.aceTooltipRich&&
!b.tooltipRef.aceTooltipInteractive))},standalone:!1,decls:7,vars:5,consts:function(){return[["tooltipWithTemplate",""],["mat-icon-button","","class","mat-icon-button ace-tooltip-close-button","aria-label","Close",4,"ngIf"],[1,"ace-tooltip-content",3,"id"],[4,"ngIf"],["mat-icon-button","","aria-label","Close",1,"mat-icon-button","ace-tooltip-close-button"],["icon","close","size","medium"],[3,"action",4,"ngIf"],[3,"action"],[3,"innerHTML"],[4,"ngTemplateOutlet"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]]},
template:function(a,b){a&1&&(E(0,gKa,2,0,"button",1),K(1,"div",2),E(2,iKa,3,2,"ng-container",3)(3,kKa,3,2,"ng-container",3)(4,mKa,2,1,"ng-container",3),L(),E(5,oKa,1,2,"ng-template",null,0,Og));a&2&&(I("ngIf",b.tooltipRef.showCloseButton||b.tooltipRef.aceTooltipInteractive),B(),I("id",b.tooltipContentId),B(),I("ngIf",b.isString()),B(),I("ngIf",!1),B(),I("ngIf",b.tooltipRef.content instanceof hg))},dependencies:[jy,oy,MI,RI,y6c],styles:['ace-tooltip-overlay[_nghost-%COMP%], cfc-tooltip-overlay[_nghost-%COMP%]{color:rgba(0,0,0,.66);font-family:"Roboto";font-size:12px;font-weight:400;line-height:16px;display:flex;flex-direction:row-reverse;border-radius:4px;margin:8px;word-wrap:break-word;outline:solid 1px rgba(0,0,0,0)}ace-tooltip-overlay.ace-tooltip-overlay-simple[_nghost-%COMP%], cfc-tooltip-overlay.ace-tooltip-overlay-simple[_nghost-%COMP%]{color:#fff;background:#757575;max-width:320px;padding:4px 8px}ace-tooltip-overlay.ace-tooltip-overlay-simple[_nghost-%COMP%]   .ace-tooltip-close-button[_ngcontent-%COMP%], cfc-tooltip-overlay.ace-tooltip-overlay-simple[_nghost-%COMP%]   .ace-tooltip-close-button[_ngcontent-%COMP%]{color:#fff}ace-tooltip-overlay.ace-tooltip-overlay-rich[_nghost-%COMP%], cfc-tooltip-overlay.ace-tooltip-overlay-rich[_nghost-%COMP%]{background:#fff;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);max-height:384px;max-width:384px;overflow-y:auto;padding:16px}ace-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-close-button[_ngcontent-%COMP%], cfc-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-close-button[_ngcontent-%COMP%]{margin:-12px;margin-bottom:-11.9px;margin-left:8px}ace-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-content[_ngcontent-%COMP%], cfc-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-content[_ngcontent-%COMP%]{overflow-wrap:anywhere}@media screen and (hover: none){ace-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-disable-user-select-on-touch-device[_ngcontent-%COMP%], cfc-tooltip-overlay[_nghost-%COMP%]   .ace-tooltip-disable-user-select-on-touch-device[_ngcontent-%COMP%]{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}}'],
changeDetection:0});var UI=[{originX:"start",originY:"center",overlayX:"end",overlayY:"center"},{originX:"start",originY:"top",overlayX:"end",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"end",overlayY:"bottom"}],VI=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center"},{originX:"end",originY:"top",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"start",overlayY:"bottom"}],WI=[{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom"},{originX:"start",originY:"top",
overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],z6c=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],XI=[{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],
A6c=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],B6c=[{originX:"end",originY:"center",overlayX:"start",overlayY:"top"},{originX:"end",originY:"center",overlayX:"start",overlayY:"center"},{originX:"end",originY:"center",overlayX:"start",overlayY:"bottom"}],C6c={top:[].concat(n(WI),n(XI),n(UI),n(VI)),topleft:[].concat(n(z6c),n(A6c),n(UI),n(VI)),
bottom:[].concat(n(XI),n(WI),n(VI),n(UI)),bottomleft:[].concat(n(A6c),n(z6c),n(VI),n(UI)),left:[].concat(n(UI),n(VI),n(WI),n(XI)),right:[].concat(n(VI),n(UI),n(XI),n(WI)),righttop:[].concat(n([{originX:"end",originY:"center",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"center",overlayX:"start",overlayY:"center"},{originX:"end",originY:"top",overlayX:"start",overlayY:"top"}]),n(UI),n(XI),n(WI)),lefttop:[].concat(n([{originX:"start",originY:"center",overlayX:"end",overlayY:"bottom"},
{originX:"start",originY:"center",overlayX:"end",overlayY:"center"},{originX:"start",originY:"top",overlayX:"end",overlayY:"top"}]),n(UI),n(XI),n(VI)),leftbottom:[].concat(n([{originX:"start",originY:"center",overlayX:"end",overlayY:"top"},{originX:"start",originY:"center",overlayX:"end",overlayY:"center"},{originX:"start",originY:"center",overlayX:"start",overlayY:"bottom"}]),n(XI),n(B6c),n(WI)),rightbottom:[].concat(n(B6c),n(XI),n(UI),n(WI))};var D6c=function(a,b){this.overlay=a;this.scrollDispatcher=b},E6c=function(a,b,c){c=dA(fA(jA(a.overlay.position(),b),!1),c);nHc(c,VGc(a.scrollDispatcher,b));b=new ki;b.positionStrategy=c;b.scrollStrategy=a.overlay.scrollStrategies.reposition();return b};D6c.\u0275fac=function(a){return new (a||D6c)(Wc(rA),Wc(Zh))};D6c.\u0275prov=Cc({token:D6c,factory:D6c.\u0275fac,providedIn:"root"});var YI=function(a,b,c,d,e,f){var g=this;this.overlay=a;this.connectedOverlayHelper=b;this.accessibleModalManager=c;this.focusTrapFactory=d;this.ngZone=e;this.defaultConfig=f;this.focusTrap=void 0;this.tooltips=new Map;this.overlayRef=void 0;this.tooltipRenderTimeoutId=this.tooltipHideTimeoutId=0;this.visibleTooltipRef=void 0;this.lastTouchTimestamp=0;this.onDestroy=new rf;this.backdrop=void 0;this.eventsToListen="mouseover mouseout focusin focusout touchstart touchend touchcancel click keydown".split(" ");
document.addEventListener("click",this);e.runOutsideAngular(function(){for(var k=l(g.eventsToListen),m=k.next();!m.done;m=k.next())document.addEventListener(m.value,g)})};YI.prototype.ngOnDestroy=function(){for(var a=l(this.tooltips.values()),b=a.next();!b.done;b=a.next())b=b.value,b.disabledTooltip&&b.disableChangeSubscription.unsubscribe();a=l(this.eventsToListen);for(b=a.next();!b.done;b=a.next())document.removeEventListener(b.value,this);F6c(this);this.onDestroy.next();this.onDestroy.complete()};
var G6c=function(a,b){a.visibleTooltipRef===b&&a.hideTooltip();var c;b=(c=b.elementRef)==null?void 0:c.nativeElement;b!=null&&a.tooltips.has(b)&&(c=a.tooltips.get(b),c.enabledTooltip=void 0,c.disabledTooltip||c.enabledTooltip?a.tooltips.set(b,c):a.tooltips.delete(b))},H6c=function(a,b){if(b=JOc(b.target,function(d){if(!d)return!1;var e=a.isDisabled(d);return a.tooltips.has(d)?(d=a.tooltips.get(d),!e&&d.enabledTooltip!==void 0||e&&d.disabledTooltip!==void 0):!1})){var c=a.tooltips.get(b);return a.isDisabled(b)?
c.disabledTooltip:c.enabledTooltip}};YI.prototype.isDisabled=function(a){return a.disabled||a instanceof Element&&(a.getAttribute("aria-disabled")==="true"||a.classList.contains("ace-disabled"))};
YI.prototype.handleEvent=function(a){var b=this;if(this.visibleTooltipRef&&this.visibleTooltipRef.modal&&a.type==="click"&&a.target.classList.contains("cdk-overlay-backdrop"))this.ngZone.run(function(){b.hideTooltip()});else if(this.overlayRef&&Jqb(this.overlayRef.hostElement,a.target))this.ngZone.run(function(){a.type==="mouseover"?clearTimeout(b.tooltipHideTimeoutId):a.type!=="mouseout"||b.visibleTooltipRef&&b.visibleTooltipRef.modal?(a.type==="click"||a.type==="keydown"&&a.key==="Enter")&&KOc(a.target)&&
(a.preventDefault(),a.stopPropagation(),b.hideTooltip()):I6c(b)});else{var c=H6c(this,a);c?this.ngZone.run(function(){a.type==="mouseout"?c.modal||(c.aceTooltipRich||c.aceTooltipInteractive||c.aceTooltipVisibleOnOverlayHover?I6c(b):b.hideTooltip()):a.type==="mouseover"?b.showTooltip(c,a):a.type!=="focusin"||c.aceTooltipInteractive&&!c.aceTooltipAlwaysShowOnFocus?a.type==="focusout"?b.overlayRef&&Jqb(b.overlayRef.hostElement,a.relatedTarget)||b.hideTooltip():a.type==="touchstart"?J6c(b,a,c):a.type===
"touchend"||a.type==="touchcancel"?(b.lastTouchTimestamp=Date.now(),clearTimeout(b.touchStartSetTimeoutId)):(a.type==="click"||a.type==="keydown"&&a.key==="Enter")&&c.aceTooltipInteractive&&!c.aceTooltipDisabled&&c.content&&(b.visibleTooltipRef||b.showTooltip(c,a),K6c(b)):b.showTooltip(c,a)}):this.visibleTooltipRef&&a.type==="click"&&!this.visibleTooltipRef.modal&&this.ngZone.run(function(){b.hideTooltip()})}};
var K6c=function(a){var b=a.visibleTooltipRef,c=a.overlayRef;b.modal||(b.modal=!0,b.onChange.next(),p6c(a.accessibleModalManager,c),L6c(a),F6c(a),a.focusTrap=a.focusTrapFactory.create(c.hostElement),setTimeout(function(){var d;(d=a.focusTrap)==null||AGc(d)}))},J6c=function(a,b,c){a.lastTouchTimestamp=Date.now();clearTimeout(a.touchStartSetTimeoutId);a.touchStartSetTimeoutId=setTimeout(function(){a.showTooltip(c,b)},251)},I6c=function(a){clearTimeout(a.tooltipHideTimeoutId);a.tooltipHideTimeoutId=
setTimeout(function(){a.hideTooltip()},100)};
YI.prototype.showTooltip=function(a,b){var c=this;a.aceTooltipDisabled||!a.content||b.type!=="touchstart"&&Date.now()-this.lastTouchTimestamp<1E3&&(a.aceTooltipTapToShow!==void 0?!a.aceTooltipTapToShow:!a.aceTooltipInteractive&&!a.elementRef.nativeElement.classList.contains("ace-icon"))||(a.showCloseButton=Date.now()-this.lastTouchTimestamp<1E3||b.type==="touchstart",clearTimeout(this.tooltipHideTimeoutId),this.overlayRef&&this.visibleTooltipRef===a||(this.overlayRef&&this.hideTooltip(),a.aceTooltipRenderDebounceMs>
0?(clearTimeout(this.tooltipRenderTimeoutId),this.tooltipRenderTimeoutId=setTimeout(function(){M6c(c,a,b)},a.aceTooltipRenderDebounceMs)):M6c(this,a,b)))};
var M6c=function(a,b,c){b.onShow.next();var d=E6c(a.connectedOverlayHelper,b.elementRef,C6c[b.aceTooltipPosition]);a.overlayRef=a.overlay.create(d);var e;((e=a.defaultConfig)==null?0:e.panelClass)&&a.overlayRef.addPanelClass(a.defaultConfig.panelClass);b.aceTooltipPanelClass&&a.overlayRef.addPanelClass(b.aceTooltipPanelClass);c=$g({providers:[{provide:"tooltipRef",useValue:b},{provide:"triggerElement",useValue:c.target}]});a.overlayRef.attach(new lA(TI,void 0,c));a.overlayRef.keydownEvents().pipe(Af(a.onDestroy)).subscribe(function(f){f.key===
"Escape"&&a.hideTooltip()});a.visibleTooltipRef=b},L6c=function(a){var b=document.createElement("div");b.classList.add("cdk-overlay-backdrop");b.classList.add("cdk-overlay-dark-backdrop");b.classList.add("cdk-overlay-backdrop-showing");var c=a.overlayRef.hostElement;c.insertBefore(b,c.firstChild);a.backdrop=b};
YI.prototype.hideTooltip=function(){this.tooltipRenderTimeoutId&&clearTimeout(this.tooltipRenderTimeoutId);if(this.overlayRef){var a=this.visibleTooltipRef;if(a&&a.modal){this.backdrop&&this.backdrop.parentNode&&(this.backdrop.parentNode.removeChild(this.backdrop),this.backdrop=void 0);a.modal=!1;a.onChange.next();var b=this.accessibleModalManager,c=b.overlayContextStack[b.overlayContextStack.length-1];if(c&&this.overlayRef===c.overlayRef){do r6c(b.overlayContextStack.pop()),c=b.overlayContextStack[b.overlayContextStack.length-
1];while(c&&!c.overlayRef.hasAttached())}F6c(this);a.focusableElementRef?a.focusableElementRef.nativeElement.focus():a.elementRef.nativeElement.focus()}a&&a.onHide.next();this.overlayRef&&(this.overlayRef.detach(),this.overlayRef.dispose());this.visibleTooltipRef=this.overlayRef=void 0}};var F6c=function(a){a.focusTrap&&(a.focusTrap.destroy(),a.focusTrap=void 0)};YI.\u0275fac=function(a){return new (a||YI)(Wc(rA),Wc(D6c),Wc(n6c),Wc(Jz),Wc(Tg),Wc(s6c,8))};
YI.\u0275prov=Cc({token:YI,factory:YI.\u0275fac,providedIn:"root"});var tKa=[[],[]],uKa=0,vKa=!1,sKa=0;var ZI=function(a,b,c,d,e,f,g,k){this.tooltipManager=a;this.ariaDescriber=b;this.ariaLabeller=c;this.elementRef=d;this.aceTooltipTemplateData={};this.aceTooltipDisabled=this.aceTooltipRich=!1;this.aceTooltipTapToShow=void 0;this.aceTooltipAlwaysShowOnFocus=this.aceTooltipInteractive=!1;this.onChange=new rf;this.onShow=new rf;this.onHide=new rf;this.isInitialized=!1;this.aceTooltipPosition=(e===void 0?"bottom":e)||"bottom";this.aceTooltipVisibleOnOverlayHover=f!==!1;this.shouldMockAnimationFrames=
!!g;this.aceTooltipRenderDebounceMs=k!=null?k:0};ZI.prototype.ngOnDestroy=function(){G6c(this.tooltipManager,this)};ZI.prototype.ngOnChanges=function(){this.onChange.next()};
ZI.prototype.ngAfterViewInit=function(){var a=this.elementRef.nativeElement;this.isInitialized=!0;N6c(this);if(this.acePreventEventPropagation)for(var b=l(["click","keydown"]),c=b.next();!c.done;c=b.next())a.addEventListener(c.value,function(d){if(!(d instanceof KeyboardEvent&&d.key!=="Enter"&&d.key!=="Space")){d.preventDefault();d.stopPropagation();var e=new d.constructor(d.type,d);Object.defineProperty(e,"target",{writable:!1,value:d.target});document.dispatchEvent(e)}})};
var N6c=function(a,b){var c=typeof b==="string"||a.ariaRelationship==="description"||a.ariaRelationship==="label";if(a.isInitialized&&c){var d;c=function(){var f=a.elementRef.nativeElement;if(!((f.matches?f.matches("[tabindex], a[href], area[href], iframe, input, textarea, select, button"):Array.from(document.querySelectorAll("[tabindex], a[href], area[href], iframe, input, textarea, select, button")).includes(f))&&rKa(f))){var g=g===void 0?!1:g;for(var k=[],m=f.querySelectorAll("[tabindex], a[href], area[href], iframe, input, textarea, select, button"),
r=0;r<m.length;++r){var w=m[r];(rKa(w)||g)&&k.push(w)}f=k[0]||f}d=f};var e=function(){if(typeof b==="string"){Gz(a.ariaDescriber,d,b);var f=d;if(l6c(f,b)){var g=OI.get(b);g.referenceCount--;cKa(f,g.messageElement.id);f.removeAttribute("ace-labelledby-host")}typeof b==="string"&&(f=OI.get(b))&&f.referenceCount===0&&(f=(f=OI.get(b))&&f.messageElement,PI&&f&&PI.removeChild(f),OI.delete(b));PI&&PI.childNodes.length===0&&k6c()}if(a.ariaRelationship==="description")a.aceTooltipInteractive||typeof a.content!==
"string"||Fz(a.ariaDescriber,d,a.content);else if(a.ariaRelationship==="label"&&typeof a.content==="string"){g=a.ariaLabeller;f=d;var k=a.content;if(typeof k!=="string")ZJa(k),OI.set(k,{messageElement:k,referenceCount:0});else if(!OI.has(k)){var m=g.document.createElement("div");ZJa(m);m.textContent=k;m.setAttribute("aria-hidden","false");if(!PI){var r=g.document.getElementById(i6c);r&&r.parentNode.removeChild(r);PI=g.document.createElement("div");PI.id=i6c;PI.setAttribute("aria-hidden","true");PI.style.display=
"none";g.document.body.appendChild(PI)}PI.appendChild(m);OI.set(k,{messageElement:m,referenceCount:0})}l6c(f,k)||(g=OI.get(k),bKa(f,g.messageElement.id),f.setAttribute("ace-labelledby-host",""),g.referenceCount++)}};a.shouldMockAnimationFrames?(c(),e()):xKa({measure:c,mutate:e})()}};
da.Object.defineProperties(ZI.prototype,{aceTooltip:{configurable:!0,enumerable:!0,set:function(a){var b=this.content;if(a){var c=this.tooltipManager,d=this.elementRef.nativeElement,e=c.tooltips.get(d)||{};e.enabledTooltip=this;c.tooltips.set(d,e);if(a instanceof hg||typeof a==="string")this.content=a;else for(c=l(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,this[d]=a[d];N6c(this,b)}else G6c(this.tooltipManager,this)},get:function(){return this.content}},ariaRelationship:{configurable:!0,
enumerable:!0,get:function(){return this.aceTooltipDisabled?"none":this.elementRef.nativeElement.tagName==="ACE-ICON"||this.elementRef.nativeElement.hasAttribute("mat-icon-button")?this.ariaLabelAttribute?"none":"label":"description"}},ariaLabelAttribute:{configurable:!0,enumerable:!0,get:function(){return this.elementRef.nativeElement.getAttribute("aria-label")}}});ZI.\u0275fac=function(a){return new (a||ZI)(Ve(YI),Ve(Ez),Ve(QI),Ve(Gd),Ve(QYc,8),Ve(RYc,8),Ve(SYc,8),Ve(TYc,8))};
ZI.\u0275dir=af({type:ZI,selectors:[["","aceTooltip",""],["","cfcTooltip",""]],hostVars:6,hostBindings:function(a,b){a&2&&yg("cfc-tooltip",!0)("ace-tooltip-disable-user-select-on-touch-device",!b.aceTooltipDisabled)("cfc-tooltip-disable-user-select-on-touch-device",!b.aceTooltipDisabled)},inputs:{aceTooltip:"aceTooltip",aceTooltipTemplateData:"aceTooltipTemplateData",aceTooltipRich:"aceTooltipRich",aceTooltipDisabled:"aceTooltipDisabled",aceTooltipPosition:"aceTooltipPosition",aceTooltipTapToShow:"aceTooltipTapToShow",
aceTooltipInteractive:"aceTooltipInteractive",aceTooltipInteractiveDialogAriaLabel:"aceTooltipInteractiveDialogAriaLabel",acePreventEventPropagation:"acePreventEventPropagation",aceTooltipAlwaysShowOnFocus:"aceTooltipAlwaysShowOnFocus",aceTooltipAction:"aceTooltipAction",aceTooltipPanelClass:"aceTooltipPanelClass"},standalone:!1,features:[Gx]});var O6c=function(){};O6c.\u0275fac=function(a){return new (a||O6c)};O6c.\u0275mod=$e({type:O6c});O6c.\u0275inj=Dc({imports:[xy,uA]});var $I=function(){};$I.\u0275fac=function(a){return new (a||$I)};$I.\u0275mod=$e({type:$I});$I.\u0275inj=Dc({imports:[HA,jz]});var P6c=function(){};P6c.\u0275fac=function(a){return new (a||P6c)};P6c.\u0275mod=$e({type:P6c});P6c.\u0275inj=Dc({imports:[xy,O6c,g6c,$I,uA,HE]});var Q6c=function(){TG.apply(this,arguments)};Z(Q6c,TG);
Q6c.prototype.drawInternal=function(a){if(a.currentValue){var b=a.currentValue;a=b.data;var c=b.state;b=b.config;if(a&&c&&b)if(c.highlightedAnnotation){if(this.canvas.style.left="0px",this.canvas.style.top="0px",ml(this.canvas,this.base,c.chartHeight,c.chartWidth),a=a.find(function(f){return f.annotationId===c.highlightedAnnotation})){var d=a.start;a=a.end;b=c.domainMap(d);d=c.domainMap(a!=null?a:d);this.ctx.fillStyle=jl("var(--ac-sys-color-annotation-outline-hover, #3C4043)",this.base);this.ctx.strokeStyle=
jl("var(--ac-sys-color-annotation-outline-hover, #3C4043)",this.base);var e={top:c.bodyTop,bottom:c.bodyBottom,left:c.bodyLeft,right:c.bodyRight};b>e.right||(a===void 0||d-b<1?EKa(this.ctx,b,e):zKa(this.ctx,b,d,e))}}else ll(this.canvas,void 0,this.base)}};var R6c=new tk({getKey:function(a){return"chartGroupId:"+a.chartGroupId+",chartId:"+a.chartId+",xAxisId:"+a.xAxisId},getSelector:function(a,b){return he([b.getSelector(eXc,a),b.getSelector(ZG,a)]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return kk(c,d,function(e,f){if(e!==void 0&&f!==void 0&&(f=hl(Object.assign({},f,{unit:"ms_since_epoch"}),e.margins.left,e.width-e.margins.right)))return{chartHeight:e.height,chartWidth:e.width,bodyTop:e.margins.top,bodyBottom:e.height-e.margins.bottom,
bodyLeft:e.margins.left,bodyRight:e.width-e.margins.right,domainMap:f}})}))}});var S6c=function(){TG.apply(this,arguments);this.lastAnnotationSpans=[];this.lastBodyBottom=this.lastBodyTop=null;this.minAnnotationWidth=0};Z(S6c,TG);
S6c.prototype.drawInternal=function(a){if(a.currentValue){var b=a.currentValue,c=b.data;a=b.state;var d=b.config;if(a&&d){b=[];var e=1,f={top:a.bodyTop,bottom:a.bodyBottom,left:a.bodyLeft,right:a.bodyRight};this.canvas.style.left="0px";this.canvas.style.top="0px";ml(this.canvas,this.base,a.chartHeight,a.chartWidth);var g=[],k;c=(k=c==null?void 0:c.sort(function(R,V){return R.start-V.start}))!=null?k:[];k=void 0;c=l(c);for(var m=c.next();!m.done;m=c.next()){var r=m.value,w=r.start,x=r.end,D=r.isOngoing;
m=r.annotationId;var H=d.styleProvider.getStyle(r.style);r=w=a.domainMap(w);H=H.color;this.ctx.fillStyle=jl(H,this.base);this.ctx.strokeStyle=jl(H,this.base);w>f.right||(x!==void 0||D?(r=D?a.bodyRight+1:a.domainMap(x),r-w<this.minAnnotationWidth&&w<f.right&&r>f.left&&(x=(this.minAnnotationWidth-r+w)/2,w-x<f.left?(x=w-f.left+x,w=f.left,r=Math.min(r+x,f.right)):r+x>f.right?(x=f.right-r+x,r=f.right,w=Math.max(w-x,f.left)):(w-=x,r+=x)),d.newVisuals?yKa(this.ctx,w,r,f):AKa(this.ctx,this.base,w,r,f)):d.newVisuals?
d.pointClustering?k!==void 0&&w-k.x0<3?(k.count++,k.x1=w):(D=x=void 0,e=Math.max(e,(D=(x=k)==null?void 0:x.count)!=null?D:1),k={count:1,colors:new Set([H]),x0:w,x1:w},b.push(k)):CKa(this.ctx,w,f):BKa(this.ctx,this.base,w,f),g.push({annotationId:m,left:Math.max(w-2,a.bodyLeft),right:Math.min(r+2,a.bodyRight)}))}if(d.newVisuals&&d.pointClustering){var J,O;e=Math.max(e,(O=(J=k)==null?void 0:J.count)!=null?O:1);J=l(b);for(O=J.next();!O.done;O=J.next())O=O.value,e===1&&CKa(this.ctx,O.x0,f),d=Math.ceil(b.length/
(f.right-f.left)),d=d<.1?.375:d<.2?.3:d<.3?.225:.15,DKa(this.ctx,this.base,(O.x0+O.x1)/2,f,O.colors,O.count/e*(.75-d)+d)}this.lastBodyTop=a.bodyTop;this.lastBodyBottom=a.bodyBottom;this.lastAnnotationSpans=g.sort(function(R,V){return R.left-V.left})}}};
var T6c=function(a,b){var c=b.x;b=b.y;if(!a.lastBodyTop||b<a.lastBodyTop||!a.lastBodyBottom||b>a.lastBodyBottom)return[];b=[];a=l(a.lastAnnotationSpans);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.annotationId,f=d.right;c>=d.left&&c<=f&&b.push(e)}return b};var U6c={style:"default",color:"var(--ac-sys-color-annotation-on-surface, #202124)",icon:"info"},aJ=function(){this.fallbackAnnotationStyle=U6c;this.annotationStyleRegistry=new Map;this.annotationIconRegistry=new Map;this.stylesUpdated$=this.stylesUpdated=new rf;this.setStyles(UYc);for(var a=l(VYc.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.annotationIconRegistry.set(b,VYc.get(b));this.stylesUpdated.next()};h=aJ.prototype;h.setIcon=function(a,b){this.annotationIconRegistry.set(a,b);this.stylesUpdated.next()};
h.getIcon=function(a){var b;return(b=this.annotationIconRegistry.get(a))!=null?b:""};h.setStyle=function(a,b){this.annotationStyleRegistry.set(a,b);this.stylesUpdated.next()};h.setStyles=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.annotationStyleRegistry.set(b.style,b);this.stylesUpdated.next()};h.getStyle=function(a){var b;return(b=this.annotationStyleRegistry.get(a))!=null?b:this.fallbackAnnotationStyle};aJ.\u0275fac=function(a){return new (a||aJ)};
aJ.\u0275prov=Cc({token:aJ,factory:aJ.\u0275fac,providedIn:"root"});var V6c=["projectedContent"],PKa=function(a,b){return{left:a,top:b}},QKa=function(a){return{$implicit:a}},RKa=function(a){return{width:a}},KKa=function(a,b){return{fill:a,left:b}},bJ=function(a,b,c,d,e){eH.call(this,a,b,c,!0);var f=this;this.annotationStyleService=d;this.ngZone=e;this.data=null;this.tooltipPosition="bottom";this.pointClustering=this.newVisuals=!1;this.dataSubject=new Xj(this.data);this.iconStrokeColor="var(--ac-sys-color-annotation-surface, #FFF)";this.configSubject=new Xj({newVisuals:this.newVisuals,
pointClustering:this.pointClustering,styleProvider:this.annotationStyleService});this.highlightedAnnotationSubject=new Xj(null);this.annotationClusterSubject=new Xj([]);this.annotationClusterObservable=this.annotationClusterSubject.pipe(nf(0),Ik(this.ngZone));this.iconSize=20;this.groupedIconOffset=8;this.ve={AnnotationButton:213894};this.annotationView=new S6c(a.nativeElement);this.annotationHighlightView=new Q6c(a.nativeElement);this.redrawableViews=[this.annotationView,this.annotationHighlightView];
d.stylesUpdated$.pipe(Af(this.destroyed)).subscribe(function(){f.configSubject.next({newVisuals:f.newVisuals,pointClustering:f.pointClustering,styleProvider:f.annotationStyleService})})};Z(bJ,eH);bJ.\u0275dir=eH.\u0275dir;
bJ.prototype.ngOnInit=function(){var a=this;eH.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});var b=this.selectorFactoryToObservable(R6c);he([this.dataObservable,b,this.configObservable]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;d=d.next().value;var f;return{data:c.currentValue,config:(f=d.currentValue)!=null?f:null,state:e!=null?e:null}}),yf(null),uf(),A(rk),Df(this.scopeObservable),Af(this.destroyed)).subscribe(function(c){var d=
l(c);c=d.next().value;d=d.next().value;a.chart.scheduleChangeHandler({mergeKey:(d.layerId||a.layerId)+"-drawFromSelection",changes:c,viewHandler:function(e){a.annotationView.draw(e)},scope:d||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});he([this.dataObservable,b,this.highlightedAnnotationSubject,this.configObservable]).pipe(A(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{data:c.currentValue,
config:d.currentValue,state:e?Object.assign({},e,{highlightedAnnotation:f}):null}}),yf(null),uf(),A(rk),Df(this.scopeObservable),Af(this.destroyed)).subscribe(function(c){var d=l(c);c=d.next().value;d=d.next().value;a.chart.scheduleChangeHandler({mergeKey:(d.layerId||a.layerId)+"-drawHoverEffects",changes:c,viewHandler:function(e){a.newVisuals&&a.annotationHighlightView.draw(e)},scope:d||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});he([this.dataObservable,
this.scopeObservable]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return{data:c.currentValue,scope:d}}),yf(null),uf(),A(rk),Af(this.destroyed)).subscribe(function(c){var d,e;a.chart.scheduleChangeHandler({mergeKey:(((d=c.currentValue)==null?void 0:d.scope.layerId)||a.layerId)+"-setMarginRequirement",changes:c,componentHandler:function(f){var g;if(f.currentValue){var k=f.currentValue;f=k.scope;k=((g=k.data)==null?0:g.length)?a.newVisuals?28:33:0;g=[NG({chartGroupId:f.chartGroupId,
chartId:f.chartId,layerId:f.layerId,reservedMargins:{top:k}})]}else g=[];return g},scope:((e=c.currentValue)==null?void 0:e.scope)||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});he([this.dataObservable,b,this.configObservable,this.scopeObservable]).pipe(A(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{data:c.currentValue,config:f.currentValue,scope:d,state:e!=null?e:null}}),yf(null),
uf(),A(rk),Af(this.destroyed)).subscribe(function(c){var d,e;a.chart.scheduleChangeHandler({mergeKey:(((d=c.currentValue)==null?void 0:d.scope.layerId)||a.layerId)+"-drawIcons",changes:c,componentHandler:function(f){a.newVisuals?(f=GKa(f,a.annotationStyleService,a.severityMap),a.annotationClusterSubject.next(f)):(f=IKa(f,a.annotationStyleService),a.annotationClusterSubject.next(f))},scope:((e=c.currentValue)==null?void 0:e.scope)||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,
yAxisId:a.yAxisId}})});zG(this.chart,"chart",function(c){return a.onMouseMove(c)},this.destroyed)};bJ.prototype.onMouseMove=function(a){var b=[];a=fH(this,a);a=T6c(this.annotationView,a);var c;b.push(Q1c({chartId:this.chartId,layerId:this.layerId,annotations:(c=a==null?void 0:a.map(function(d){return{annotationId:d}}))!=null?c:[]}));return b};
var OKa=function(a,b,c){c===void 0?(NKa(a,b),b.annotationIds.length===1&&(a.highlightedAnnotation=b.annotationIds[0])):a.highlightedAnnotation=b.annotationIds[c]},NKa=function(a,b){a.scopeObservable.pipe(mf(1)).subscribe(function(c){a.store.dispatch(P1c({chartId:c.chartId,layerId:c.layerId,annotations:b.annotationIds.map(function(d){return{annotationId:d}})}))})};bJ.prototype.ngAfterViewInit=function(){for(var a=l(this.data||[]),b=a.next();!b.done&&!b.value.annotationContent;b=a.next());};
bJ.prototype.ngOnChanges=function(a){eH.prototype.ngOnChanges.call(this,a);"data"in a&&this.dataSubject.next(this.data);"newVisuals"in a&&(this.iconSize=this.newVisuals?18:20);("styles"in a||"newVisuals"in a||"pointClustering"in a)&&this.configSubject.next({newVisuals:this.newVisuals,pointClustering:this.pointClustering,styleProvider:this.annotationStyleService})};
bJ.prototype.ngOnDestroy=function(){eH.prototype.ngOnDestroy.call(this);yG(this.chart,[iZc({chartGroupId:this.chartGroupId,chartId:this.chartId,layerId:this.layerId})])};
da.Object.defineProperties(bJ.prototype,{styles:{configurable:!0,enumerable:!0,set:function(a){this.annotationStyleService.setStyles(a)}},highlightedAnnotation:{configurable:!0,enumerable:!0,set:function(a){this.highlightedAnnotationSubject.next(a)},get:function(){return this.highlightedAnnotationSubject.value}},minWidth:{configurable:!0,enumerable:!0,set:function(a){this.annotationView.minAnnotationWidth=Math.max(0,a)}}});bJ.\u0275fac=function(a){return new (a||bJ)(Ve(Gd),Ve(xG),Ve(LG),Ve(aJ),Ve(Tg))};
bJ.\u0275cmp=C({type:bJ,selectors:[["ac-annotation"]],viewQuery:function(a,b){a&1&&kg(V6c,5);if(a&2){var c;og(c=pg())&&(b.projectedContent=c.first)}},hostAttrs:[1,"composable-layer","ac-annotation"],inputs:{data:"data",styles:"styles",tooltipContentTemplate:"tooltipContentTemplate",clusterActionTemplate:"clusterActionTemplate",tooltipPosition:"tooltipPosition",newVisuals:"newVisuals",pointClustering:"pointClustering",severityMap:"severityMap",highlightedAnnotation:"highlightedAnnotation",minWidth:"minWidth"},
features:[Ff,Gx],ngContentSelectors:["*"],decls:6,vars:3,consts:function(){return[["tooltipContent",""],["projectedContent",""],["projectedTooltipContents",""],["mat-button","","aria-label","Click to view annotation detail","class","annotation-cluster-button","aceTooltipPanelClass","ac-annotation-tooltip",3,"annotation-cluster-button","new-annotation-cluster-button","ngStyle","aceTooltip","aceTooltipTemplateData","aceTooltipInteractive","aceTooltipPosition","ve","veClick","click","mouseenter","mouseleave",
4,"ngFor","ngForOf"],["mat-button","","aria-label","Click to view annotation detail","aceTooltipPanelClass","ac-annotation-tooltip",1,"annotation-cluster-button",3,"click","mouseenter","mouseleave","ngStyle","aceTooltip","aceTooltipTemplateData","aceTooltipInteractive","aceTooltipPosition","ve","veClick"],[1,"button-content"],["class","annotation-count",4,"ngIf"],[1,"icon-group",3,"ngStyle"],[4,"ngFor","ngForOf"],[1,"annotation-count"],[3,"ngStyle"],["viewBox","0 0 24 24"],"stroke-width 3 fill-rule evenodd clip-rule evenodd".split(" "),
["fill-rule","evenodd","clip-rule","evenodd"],[4,"ngIf","ngIfElse"],[1,"cluster-content",3,"mouseover","mouseout"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]]},template:function(a,b){a&1&&(fg(),E(0,SKa,6,22,"button",3),U(1,"async"),E(2,eLa,3,2,"ng-template",null,0,Og)(4,fLa,1,0,"ng-template",null,1,Og));a&2&&I("ngForOf",W(1,1,b.annotationClusterObservable))},dependencies:[TA,iy,jy,ny,ky,ly,my,oy,P6c,ZI,GE,py],styles:['.composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}.ac-screen-reader-only-content[_ngcontent-%COMP%]{clip:rect(1px, 1px, 1px, 1px);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;z-index:-1000}.ac-a11y-focused[_ngcontent-%COMP%], .ac-a11y-focusable[_ngcontent-%COMP%]:focus-visible, .ac-a11y-focus-within[_ngcontent-%COMP%]:focus-within, .ac-a11y-keyboard-focusable.cdk-keyboard-focused[_ngcontent-%COMP%]{outline:3px solid var(--ac-sys-color-extensions-primary-on-surface-focus, #3367d6);outline-offset:-3px}.ac-a11y-keyboard-focusable[_ngcontent-%COMP%]{outline:none}.annotation-cluster-button[mat-button][_ngcontent-%COMP%]{position:absolute;line-height:18px;font-size:12px;padding:3px 4px;min-width:unset;z-index:9;background:rgba(0,0,0,0);font-weight:700;color:var(--ac-sys-color-annotation-on-surface-variant, #4f4f4f);height:26px}.annotation-cluster-button[mat-button][_ngcontent-%COMP%]   .button-content[_ngcontent-%COMP%]{display:flex;flex-direction:row}.annotation-cluster-button[mat-button][_ngcontent-%COMP%]   .button-content[_ngcontent-%COMP%]   .icon-group[_ngcontent-%COMP%]{position:relative;height:20px}.annotation-cluster-button[mat-button][_ngcontent-%COMP%]   .button-content[_ngcontent-%COMP%]   .icon-group[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{position:absolute;height:20px;width:20px}.new-annotation-cluster-button[mat-button][_ngcontent-%COMP%]{position:absolute;line-height:18px;font-size:12px;padding:2px 3px;min-width:unset;z-index:9;background:rgba(0,0,0,0);font-weight:700;color:var(--ac-sys-color-annotation-on-surface-variant, #4f4f4f);height:26px;border:1px solid var(--ac-sys-color-annotation-outline, rgba(0, 0, 0, 0.125))}.new-annotation-cluster-button[mat-button][_ngcontent-%COMP%]   .button-content[_ngcontent-%COMP%]{display:flex;flex-direction:row}.new-annotation-cluster-button[mat-button][_ngcontent-%COMP%]   .button-content[_ngcontent-%COMP%]   .icon-group[_ngcontent-%COMP%]{position:relative;height:18px}.new-annotation-cluster-button[mat-button][_ngcontent-%COMP%]   .button-content[_ngcontent-%COMP%]   .icon-group[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{position:absolute;height:18px;width:18px}.new-annotation-cluster-button[mat-button][_ngcontent-%COMP%]     span.mat-mdc-button-touch-target{height:unset}.new-annotation-cluster-button[mat-button][_ngcontent-%COMP%]::before{content:"";width:0px;height:0px;position:absolute;z-index:9;border-left:4px solid rgba(0,0,0,0);border-right:4px solid rgba(0,0,0,0);border-top:4px solid var(--ac-sys-color-annotation-outline, rgba(0, 0, 0, 0.125));border-bottom:4px solid rgba(0,0,0,0);text-align:center;top:100%}.new-annotation-cluster-button[mat-button][_ngcontent-%COMP%]::after{content:"";width:0px;height:0px;position:absolute;z-index:9;border-left:4px solid rgba(0,0,0,0);border-right:4px solid rgba(0,0,0,0);border-top:4px solid var(--ac-sys-color-annotation-tail, #fff);border-bottom:4px solid rgba(0,0,0,0);text-align:center;top:calc(100% - 1px)}  .ac-annotation-tooltip.ac-annotation-tooltip.ac-annotation-tooltip .ace-tooltip-overlay-simple,   .ac-annotation-tooltip.ac-annotation-tooltip.ac-annotation-tooltip .ace-tooltip-overlay-rich{color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);background:var(--ac-sys-color-extensions-surface, #fff)}  .ac-annotation-tooltip.ac-annotation-tooltip.ac-annotation-tooltip .ace-tooltip-close-button{color:var(--ac-sys-color-extensions-on-surface-variant, #5F6368);background:var(--ac-sys-color-extensions-surface, #fff)}  .ac-annotation-tooltip.ac-annotation-tooltip.ac-annotation-tooltip .ace-tooltip-close-button:hover .mat-button-ripple{background:var(--ac-sys-color-extensions-neutral, #bdbdbd);z-index:0}  .ac-annotation-tooltip.ac-annotation-tooltip.ac-annotation-tooltip .ace-tooltip-close-button:hover .mat-button-wrapper{position:relative;z-index:1}/*# sourceMappingURL=ac_annotation.css.map */'],
changeDetection:0});var cJ=function(a,b,c){eH.call(this,a,b,c);this.color="transparent";this.canvas=document.createElement("canvas");this.marginTop=this.marginLeft=this.width=this.height=0;this.canvas.setAttribute("aria-hidden","true");this.canvas.style.position="absolute";b=this.canvas.getContext("2d");if(!b)throw Error("Jc");this.ctx=b;a.nativeElement.appendChild(this.canvas)};Z(cJ,eH);cJ.\u0275dir=eH.\u0275dir;h=cJ.prototype;h.ngOnInit=function(){eH.prototype.ngOnInit.call(this);this.setup({})};
h.drawInternal=function(){this.canvas.style.left=this.marginLeft+"px";this.canvas.style.top=this.marginTop+"px";ml(this.canvas,this.canvas,this.height,this.width,this.color)};h.onResizeChange=function(a,b){var c;if(a=b==null?void 0:(c=b.state)==null?void 0:c.resize)this.marginLeft=a.margins.left,this.marginTop=a.margins.top,this.width=a.width-a.margins.left-a.margins.right,this.height=a.height-a.margins.top-a.margins.bottom,this.drawInternal()};
h.ngOnChanges=function(a){eH.prototype.ngOnChanges.call(this,a);"color"in a&&this.drawInternal()};h.ngOnDestroy=function(){eH.prototype.ngOnDestroy.call(this)};cJ.\u0275fac=function(a){return new (a||cJ)(Ve(Gd),Ve(xG),Ve(LG))};cJ.\u0275cmp=C({type:cJ,selectors:[["ac-background"]],inputs:{color:"color"},features:[Ff,Gx],decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var W6c={fillStyle:"var(--ac-sys-color-chart-on-surface, #000)",globalCompositeOperation:"source-over"},dJ=function(){UG.apply(this,arguments);this.fullDrawDebounceId=null};Z(dJ,UG);h=dJ.prototype;h.drawV1=function(a){this.drawInternal(a)};h.onXAxisChange=function(a,b){el(a)&&this.drawInternal(b)};
h.onResizeChange=function(a,b){var c=this;Bk(a)&&(Ck(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),VG(this,b,this.canvas,this.ctx),this.fullDrawDebounceId=setTimeout(function(){SG(c,c.canvas);c.drawInternal(b)},250)))};h.onYAxisChange=function(a,b){zl(a)&&this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.unpack=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize,e=c.xAxis,f=c.yAxis;c=c.brush;if(!(d&&e&&f&&c))return null;var g=d.width,k=d.height,m=d.margins.top,r=d.height-d.margins.bottom,w=d.margins.left,x=d.width-d.margins.right,D=Al(f,m,r,b?b.unit:null),H=hl(e,w,x,b==null?void 0:b.xAxisUnit);e=il(e,w,x,b==null?void 0:b.xAxisUnit);return H&&D&&e?{data:b,config:a,colorMap:function(){return"var(--ac-sys-color-chart-on-surface, #000)"},marginTop:d.margins.top,marginLeft:d.margins.left,
canvasWidth:g,canvasHeight:k,bodyTop:m,bodyBottom:r,bodyLeft:w,bodyRight:x,bodyWidth:x-w,bodyHeight:r-m,dataMap:function(J){var O=J.x,R=J.y0,V=J.y1;if(R==null||V==null)throw Error("Oc`"+JSON.stringify(J));return[H(O.valueOf()),D(R),D(V)]},inverseDomainMap:e,brushing:c.brushing||!1}:null};
h.drawInternal=function(a){if(a=this.unpack(a)){this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null);this.canvas.style.left="0px";this.canvas.style.top="0px";ml(this.canvas,this.base,a.canvasHeight,a.canvasWidth);var b=new Path2D;b.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight);this.ctx.clip(b);b=[];if(a.data&&a.data.series.length>0&&a.data.series.length<=2){b=a.data;a:{var c=b.series;switch(c.length){case 1:c=l(c).next().value;c=gLa(hLa(c),c);break a;
case 2:var d=l(c);c=d.next().value;d=d.next().value;c=gLa(c,d);break a;default:throw Error("Nc");}}b=Object.assign({},b,{series:[c]}).series}b.length&&X6c(this,b,a.dataMap,a.colorMap,a.config)}};
var X6c=function(a,b,c,d,e){a.ctx.save();kl(a.ctx,W6c,a.base);if(e.showBand){b=l(b);for(var f=b.next(),g={};!f.done;g={color$jscomp$20:void 0},f=b.next())switch(f=f.value,g.color$jscomp$20=d(f),e.pointConnectionMethod){case "always":Y6c(f,function(k){return function(m){a.drawLineAlwaysConnect(m,c,k.color$jscomp$20)}}(g),e.outputPeriodMs||Infinity,iLa);break;case "zero_fill":Y6c(f,function(k){return function(m){a.drawLineZeroFill(m,c,k.color$jscomp$20,e.outputPeriodMs)}}(g),e.outputPeriodMs||Infinity,
iLa);break;case "never":throw Error("Pc");default:a.drawLineGapDetection(f,c,g.color$jscomp$20,e.outputPeriodMs)}}a.ctx.restore()};dJ.prototype.drawLineGapDetection=function(a,b,c,d){var e=this;Y6c(a,function(f){e.drawLineAlwaysConnect(f,b,c)},d||Infinity,function(f,g,k){return dm(f,g,k)||iLa(f,g,k)})};
var Y6c=function(a,b,c,d){d=d===void 0?dm:d;c=c!=null?c:Infinity;c=c===void 0?Infinity:c;d=d===void 0?dm:d;var e=a.shiftedData;d=jLa(a.data,c,d);c=e&&jLa(e,c);c=c===void 0?[]:c;d=l(d);for(e=d.next();!e.done;e=d.next())b(Object.assign({},a,{data:e.value}));d=l(c);for(c=d.next();!c.done;c=d.next())b(Object.assign({},a,{shiftedData:c.value}))};dJ.prototype.drawLineAlwaysConnect=function(a,b,c){this.drawLineZeroFill(a,b,c,Infinity)};
dJ.prototype.drawLineZeroFill=function(a,b,c,d,e){e=e===void 0?{}:e;a=a.data;if(a.length){d=d||Infinity;this.ctx.save();this.ctx.beginPath();var f=jl(c,this.base);typeof f==="string"&&f.length===7?(this.ctx.strokeStyle=f+"60",this.ctx.fillStyle=f+"20"):(this.ctx.strokeStyle=c,this.ctx.fillStyle=c);c=a[0];f=l(nl(b(c),e.lineWidth));c=f.next().value;f.next();f=f.next().value;this.ctx.moveTo(c,f);for(var g=1;g<a.length;g++){var k=a[g-1];c=a[g];var m=l(nl(b(c),e.lineWidth));f=m.next().value;m.next();m=
m.next().value;if(k&&dm(k,c,d)){k=new Date(k.x.valueOf()+d);for(var r={x:k,y:0,y0:0,y1:0};k<c.x;k.setMilliseconds(k.getMilliseconds()+d)){var w=l(nl(b(r),e.lineWidth)),x=w.next().value;w=w.next().value;this.ctx.lineTo(x,w)}}this.ctx.lineTo(f,m)}for(c=a.length-1;c>=0;c--){k=a[c+1];f=a[c];m=l(nl(b(f),e.lineWidth));g=m.next().value;m=m.next().value;if(k&&dm(k,f,d))for(k=new Date(k.x.valueOf()-d),r={x:k,y:0,y0:0,y1:0};k>f.x;k.setMilliseconds(k.getMilliseconds()-d))w=l(nl(b(r),e.lineWidth)),x=w.next().value,
w=w.next().value,this.ctx.lineTo(x,w);this.ctx.lineTo(g,m)}this.ctx.stroke();this.ctx.fill();this.ctx.restore()}};dJ.prototype.getValuesAtPosition=function(a,b){a=this.unpack(a);if(a==null||!a.data)return null;var c;b=(c=a.inverseDomainMap(b.x-a.marginLeft))==null?void 0:c.valueOf();return Nl(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection)};
dJ.prototype.getValuesAtTime=function(a,b){a=this.unpack(a);return a!=null&&a.data?Nl(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection):null};var eJ=function(a,b,c){eH.call(this,a,b,c);this.showBand=!0;this.loading=!1;this.outputPeriodMsInternal=this.alignmentPeriodMs=this.error=null;this.pointConnectionMethod="gap_detection";this.useLegacyGapDetection=!1;this.configSubject=new Xj({outputPeriodMs:this.outputPeriodMs,pointConnectionMethod:this.pointConnectionMethod,showBand:this.showBand,useLegacyGapDetection:this.useLegacyGapDetection});this.dataSubject=new Xj(null);this.xAxisRequirement=this.yAxisRequirement=null;this.isMouseOver=!1;this.updateHoverValuesTriggerSubject=
new vf(1);this.bandView=new dJ(a.nativeElement);this.views.push(this.bandView)};Z(eJ,eH);eJ.\u0275dir=eH.\u0275dir;h=eJ.prototype;
h.ngOnInit=function(){var a=this;eH.prototype.ngOnInit.call(this);this.setup({configObservable:this.configSubject,dataObservable:this.dataSubject});this.updateHoverValuesTriggerSubject.pipe(Cf(10),Af(this.destroyed)).subscribe(function(b){a.updateHoverValues(b)});this.chart.mouseEnterObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onMouseEnter(b)});zG(this.chart,"chart",function(b){a.onMouseMove(b);return[]},this.destroyed);this.chart.mouseLeaveObservable.pipe(Af(this.destroyed)).subscribe(function(){a.onMouseLeave()});
this.chart.mouseClickObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onClick(b)})};h.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};
h.ngOnChanges=function(a){eH.prototype.ngOnChanges.call(this,a);var b=[];("outputPeriodMs"in a||"pointConnectionMethod"in a||"alignmentPeriodMs"in a||"showBand"in a||"useLegacyGapDetection"in a)&&this.configSubject.next({outputPeriodMs:this.outputPeriodMs,pointConnectionMethod:this.pointConnectionMethod,showBand:this.showBand,useLegacyGapDetection:this.useLegacyGapDetection});"loading"in a&&b.push(iH(this,this.loading,"Band"));"error"in a&&b.push(jH(this,this.error,this.hasData()));yG(this.chart,
b)};
h.onDataChange=function(a,b){var c=a.currentValue,d=b.scope,e=b.state,f=[];if(a.previousValue!==c){if(e){var g=e.xAxis;g&&(this.yAxisRequirement=jCa(c,g.min,g.max))}this.xAxisRequirement=nCa(a.currentValue);f.push(gH(this,this.yAxisRequirement));f.push(hH(this,this.xAxisRequirement));f.push(UH({chartId:d.chartId,layerId:d.layerId,yAxisId:d.yAxisId,xAxisId:d.xAxisId,valueType:1,unit:(c==null?void 0:c.unit)||null,alignmentPeriodMs:this.alignmentPeriodMs||void 0,outputPeriodMs:this.outputPeriodMs||void 0}))}var k,
m;(e==null?0:(k=e.xAxisPin)==null?0:k.xPos)&&(e==null?0:(m=e.xAxisPin)==null?0:m.locked)&&(a=this.bandView.getValuesAtTime(b,e.xAxisPin.xPos),(a=this.updateTimeSeriesValues(a,0))&&f.push(a));f.length&&this.store.dispatch(pk({actions:f}))};h.onXAxisChange=function(a,b){b=b.data;var c=a.currentValue,d=[];el(a)&&c&&(this.yAxisRequirement=jCa(b,c.min,c.max),d.push(gH(this,this.yAxisRequirement)));return d};
h.onXAxisPinChange=function(a,b){var c=[],d,e;if(((d=a.previousValue)==null?void 0:d.xPos)!==((e=a.currentValue)==null?void 0:e.xPos)){var f;a=this.bandView.getValuesAtTime(b,((f=a.currentValue)==null?void 0:f.xPos)||null);if(!a)return;(f=this.updateTimeSeriesValues(a,0))&&c.push(f)}return c};h.onClick=function(a){var b=this,c=fH(this,a);this.withLatest(function(d){d=b.bandView.getValuesAtPosition(d,c);(d=b.updateTimeSeriesValues(d,2))&&b.store.dispatch(d)})};
h.onMouseEnter=function(){this.isMouseOver=!0};h.onMouseMove=function(a){this.isMouseOver&&(a=fH(this,a),this.updateHoverValuesTriggerSubject.next(a))};h.onMouseLeave=function(){this.isMouseOver=!1};h.updateHoverValues=function(a){var b=this;this.withLatest(function(c){c=b.bandView.getValuesAtPosition(c,a);(c=b.updateTimeSeriesValues(c,1))&&b.store.dispatch(c)})};
h.updateTimeSeriesValues=function(a,b){var c=null;this.withLatest(function(d){d=d.scope;a&&(c=SH({chartId:d.chartId,layerId:d.layerId,valueType:1,timeKey:b,values:a.values,timeRange:a.timeRange}))});return c};h.ngOnDestroy=function(){eH.prototype.ngOnDestroy.call(this);yG(this.chart,[gH(this,null),hH(this,null),jH(this,null,!1),iH(this,!1,"Band")])};
da.Object.defineProperties(eJ.prototype,{data:{configurable:!0,enumerable:!0,set:function(a){this.dataSubject.next(a)}},outputPeriodMs:{configurable:!0,enumerable:!0,set:function(a){this.outputPeriodMsInternal=a},get:function(){var a;return(a=this.outputPeriodMsInternal)!=null?a:this.alignmentPeriodMs}}});eJ.\u0275fac=function(a){return new (a||eJ)(Ve(Gd),Ve(xG),Ve(LG))};
eJ.\u0275cmp=C({type:eJ,selectors:[["ac-band"]],hostAttrs:[1,"composable-layer","ac-band"],inputs:{data:"data",showBand:"showBand",loading:"loading",error:"error",alignmentPeriodMs:"alignmentPeriodMs",outputPeriodMs:"outputPeriodMs",pointConnectionMethod:"pointConnectionMethod",useLegacyGapDetection:"useLegacyGapDetection"},features:[Ff,Gx],decls:0,vars:0,template:function(){},styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}\n/*# sourceMappingURL=ac_band.css.map */"],
changeDetection:0});var Z6c={fillStyle:"var(--ac-sys-color-chart-on-surface, #000)",globalAlpha:1,globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-chart-on-surface, #000)",lineWidth:0},$6c={strokeStyle:"var(--ac-sys-color-chart-surface, #FFF)",lineWidth:3},fJ=function(a,b){UG.call(this,a);this.queueService=b;this.drawnRects=[];this.drawnStacks=new Map;this.shapeCanvas=document.createElement("canvas");this.fullDrawDebounceId=null;this.gutterRatioInternal=.35;this.enableManualLatencyTracking=!1;this.forceMinHeight=
0;this.shapeCanvas.setAttribute("aria-hidden","true");this.shapeCanvas.style.position="absolute";b=this.shapeCanvas.getContext("2d");if(!b)throw Error("Jc");this.shapeCtx=b;a.appendChild(this.shapeCanvas)};Z(fJ,UG);h=fJ.prototype;h.drawV1=function(a){this.drawInternal(a)};h.onXAxisChange=function(a,b){el(a)&&this.drawInternal(b)};
h.onResizeChange=function(a,b){var c=this;Bk(a)&&(Ck(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),VG(this,b,this.canvas,this.ctx),VG(this,b,this.shapeCanvas,this.shapeCtx),this.fullDrawDebounceId=setTimeout(function(){SG(c,c.canvas);SG(c,c.shapeCanvas);c.drawInternal(b)},250)))};h.onYAxisChange=function(a,b){zl(a)&&this.drawInternal(b)};h.onSeriesSelectionChange=function(a,b){gDa(a)&&this.drawInternal(b)};
h.onColorMapChange=function(a,b){this.drawInternal(b)};h.getValuesAtTime=function(a,b){if(!b)return null;var c;a=(c=a.data)==null?void 0:c.series;if(!a)return null;var d=null;c=a.map(function(e){var f=a7c(b,e);if(f&&!d){var g;d={x:f.x.valueOf(),x0:(g=f.x0)==null?void 0:g.valueOf()}}return{value:f,seriesId:e.id}});return d?{values:c,timeRange:d}:null};var a7c=function(a,b){return(b=b.data.find(function(c){return c.x0==null||c.x==null?!1:c.x0.valueOf()<=a&&c.x.valueOf()>a}))?b:null};
fJ.prototype.getValuesAtXPosition=function(a,b){a:{a=this.drawnRects;for(var c=0,d=a.length-1;c<=d;){var e=Math.floor((d+c)/2),f=a[e],g=Math.ceil(this.halfGutterInverseRatio*f.width),k=f.left+f.width+g;if(b>=f.left-g){if(b<k){b=a[e];break a}c=e+1}else d=e-1}b=null}b=b?this.getStackForRect(b):null;if(!b)return null;var m,r,w;return{values:b7c(b),timeRange:{x:(m=b[0])==null?void 0:m.metadata.point.x.valueOf(),x0:(r=b[0])==null?void 0:(w=r.metadata.point.x0)==null?void 0:w.valueOf()}}};
var b7c=function(a){return a.map(function(b){return{seriesId:b.metadata.series.id,value:b.metadata.point}})};h=fJ.prototype;h.getRectAtPosition=function(a){return lLa(this.drawnRects,a)};h.getStackForRect=function(a){return this.drawnStacks.get(a.left)||null};
h.getSeriesIdsBetween=function(a,b,c){c=this.getRectAtPosition(c);if(!c)return null;var d=this.getStackForRect(c);if(!d)return null;c=[];var e=!1;d=l(d);for(var f=d.next();!f.done;f=d.next()){f=f.value.metadata;if(f.series.id===a||f.series.id===b)if(e){c.push(f.series.id);break}else e=!0;e&&c.push(f.series.id)}return c};
h.unpackForClearing=function(a){var b=a.data,c=a.state,d=a.config;if(!c||!d)return null;var e=c.resize;if(!e)return null;a=e.width;var f=e.height,g=e.margins.top,k=e.height-e.margins.bottom,m=e.margins.left;e=e.width-e.margins.right;c=!b||!d.colorStrategy.isReady||d.colorStrategy.isReady(b,c);return{data:b,canvasWidth:a,canvasHeight:f,bodyLeft:m,bodyTop:g,bodyBottom:k,bodyRight:e,bodyWidth:e-m,bodyHeight:k-g,bounds:{top:g,right:e,bottom:k,left:m},isColorMapReady:c}};
h.unpackForDrawing=function(a){var b=this.unpackForClearing(a),c=a.scope,d=a.data,e=a.state,f=a.config;if(!e||!f||!b)return null;a=e.xAxis;var g=e.yAxis,k=e.brush,m=e.seriesSelection,r=b.bodyLeft,w=b.bodyRight;if(!(a&&g&&k&&m))return null;var x=Al(g,b.bodyTop,b.bodyBottom,d?d.unit:null);g=hl(a,r,w,d==null?void 0:d.xAxisUnit);r=il(a,r,w,d==null?void 0:d.xAxisUnit);if(a.min===null||a.max===null||!g||!x||!r)return null;c=m.byLayer.entities[c.layerId];x=this.createPointToRectMap(g,x);var D=f.colorStrategy;
d=D.getShape&&(d==null?0:d.series.length)&&d.series.length>1?function(O){return D.getShape(O,e)}:null;m=Object.values(m.byLayer.entities).filter(function(O){return!!O}).some(function(O){return O.selectedSeries.length||O.hoveredSeries.length});var H,J;return Object.assign({},b,{colorMap:function(O){return Pl(f.colorStrategy.getColor(O,e))},shapeMap:d,shapeBoundingBox:f.colorStrategy.shapeBoundingBox,hideSymbolShapes:f.hideSymbolShapes,pointToRectMap:x,brushing:k.brushing||!1,hoveredSeries:(c==null?
void 0:c.hoveredSeries)||[],selectedSeries:(c==null?void 0:c.selectedSeries)||[],anySeriesSelectedOrHovered:m,inverseDomainMap:r,domainMap:g,xAxisMin:(H=a==null?void 0:a.min)!=null?H:null,xAxisMax:(J=a==null?void 0:a.max)!=null?J:null,gutterRatio:f.gutterRatio,verticalBarPadding:f.verticalBarPadding})};
h.clearInternal=function(a){a=this.unpackForClearing(a);if(!a||!a.isColorMapReady)return!1;this.canvas.style.left="0px";this.canvas.style.top="0px";ml(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";ml(this.shapeCanvas,this.base,a.canvasHeight,a.canvasWidth);this.drawnRects=[];this.drawnStacks.clear();var b=new Path2D;b.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight);this.ctx.clip(b);return!0};
h.drawInternal=function(a){var b=performance.now();if(this.clearInternal(a)&&(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),a=this.unpackForDrawing(a))){this.gutterRatio=a.gutterRatio!==void 0?a.gutterRatio:.35;var c=!a.brushing&&a.anySeriesSelectedOrHovered,d=Object.assign({},Z6c,{globalAlpha:c?.15:1});this.shapeCtx.globalAlpha=c?.15:1;var e;c=(e=a.data)==null?void 0:e.series;if(c==null?0:c.length){if(e=a.shapeMap){for(var f=new Set,g=l(c),k=g.next();!k.done;k=
g.next())f.add(e(k.value));c.length>f.size&&(e=null)}this.drawBars(c,a.pointToRectMap,a.colorMap,e,a.shapeBoundingBox,a.bounds,d,void 0,a.verticalBarPadding,a.hideSymbolShapes)}d=Array.from(this.drawnStacks.keys()).sort(function(m,r){return m-r});d=l(d);for(c=d.next();!c.done;c=d.next())c=c.value,e=this.drawnStacks.get(c)||[],e.sort(function(m,r){return m.top-r.top}),this.drawnStacks.set(c,e),this.drawnRects=this.drawnRects.concat(e);a.xAxisMin!==null&&a.xAxisMax!==null&&RG(this,a.xAxisMin,a.xAxisMax);
a=performance.now();this.enableManualLatencyTracking&&QG(this);this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a})}};
h.drawBars=function(a,b,c,d,e,f,g,k,m,r){this.ctx.save();kl(this.ctx,g,this.base);kl(this.shapeCtx,$6c,this.base);g=a.map(function(ua){return[ua.id,ua.data.map(function(ma,Da){return b(ma,ua,Da)})]});nLa(mLa(g),m);a=k?a.filter(function(ua){return k.has(ua.id)}):a;a=l(a);m=a.next();for(var w={};!m.done;w={series$jscomp$67:void 0,rects:void 0},m=a.next()){w.series$jscomp$67=m.value;m=c(w.series$jscomp$67);this.ctx.fillStyle=jl(m,this.base);this.shapeCtx.fillStyle=jl(m,this.base);m=d&&d(w.series$jscomp$67);
w.rects=[];var x=g.findIndex(function(ua){return function(ma){return l(ma).next().value===ua.series$jscomp$67.id}}(w));x>-1&&(w.rects=g[x][1],g.splice(x,1));if(k){x=k.get(w.series$jscomp$67.id);var D=void 0,H=void 0;if((D=x)==null?0:(H=D.datumIndices)==null?0:H.length)w.rects=x.datumIndices.map(function(ua){return function(ma){return ua.rects[ma.index]}}(w))}D=void 0;x=!((D=k)==null||!D.get(w.series$jscomp$67.id));H=D=null;w=l(w.rects);for(var J=w.next();!J.done;J=w.next()){J=J.value;this.ctx.fillRect(J.left,
J.top,J.width,J.height);if(m){var O=kLa(J,e),R=O.x,V=O.y,ba=O.shapeWidth,pa=O.shapeHeight;O=O.scalingFactor;D===null&&(D=ba<=10);D||r||!(x||pa<J.height)||this.drawShapeWithinBounds(R,V,f,m,O)}R=J.left+J.width;R<=f.right&&(H===null||H.left+H.width<R)&&(H=J);this.drawnStacks.set(J.left,(this.drawnStacks.get(J.left)||[]).concat([J]))}m&&D&&H&&!r&&this.drawShape(H.left+H.width+8,H.top+H.height/2,m,e?16.8/e.width:1)}this.ctx.restore()};
h.createPointToRectMap=function(a,b){var c=this;return function(d,e,f){var g=d.y1||d.y,k=d.y0||0;if(g<k){var m=l([g,k]);k=m.next().value;g=m.next().value}m=Math.round(b(g));var r=Math.round(b(k))-m;r<c.forceMinHeight&&g!==k&&(m-=c.forceMinHeight-r,r=c.forceMinHeight);var w;k=a(((w=d.x0)!=null?w:d.x).valueOf());w=a(d.x.valueOf());g=w-k;k=Math.round(k+g*c.halfGutterRatio);return{top:m,left:k,height:r,width:Math.max(Math.round(w-g*c.halfGutterRatio)-k,1),metadata:{point:d,series:e,index:f}}}};
h.drawShape=function(a,b,c,d){this.shapeCtx.moveTo(a,b);a=aDa(a,b,c,d);this.shapeCtx.save();this.shapeCtx.globalAlpha=1;this.shapeCtx.strokeStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",this.base);this.shapeCtx.fillStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",this.base);this.shapeCtx.lineWidth=d!==void 0?d>=.6?3:d>=.4?2:1:3;this.shapeCtx.stroke(a);this.shapeCtx.fill(a);this.shapeCtx.restore();this.shapeCtx.fill(a)};
h.drawShapeWithinBounds=function(a,b,c,d,e){a<c.left-1||a>c.right+1||b<c.top-1||b>c.bottom+1||this.drawShape(a,b,d,e)};h.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};
da.Object.defineProperties(fJ.prototype,{gutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatioInternal},set:function(a){this.gutterRatioInternal=a}},halfGutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatioInternal/2}},halfGutterInverseRatio:{configurable:!0,enumerable:!0,get:function(){return 1/(1-this.halfGutterRatio)-1}}});var c7c=function(){fJ.apply(this,arguments)};Z(c7c,fJ);c7c.prototype.onSeriesSelectionChange=function(a,b){this.drawInternal(b)};
c7c.prototype.drawInternal=function(a){if(this.clearInternal(a)&&(a=this.unpackForDrawing(a))){this.gutterRatio=a.gutterRatio!==void 0?a.gutterRatio:.35;var b=[];if(!a.brushing&&a.hoveredSeries.length){var c=[].concat(n(new Set(a.hoveredSeries.flatMap(function(f){return f.datumIndices||[]}).map(function(f){return f.index}))));b=a.selectedSeries.map(function(f){return Object.assign({},f,{datumIndices:c.map(function(g){return{index:g}})})}).concat(a.hoveredSeries)}else b=a.selectedSeries;b=b.reduce(function(f,
g){return f.set(g.seriesId,g)},new Map);var d,e=(d=a.data)==null?void 0:d.series;(e==null?0:e.length)&&this.drawBars(e,a.pointToRectMap,a.colorMap,a.shapeMap,a.shapeBoundingBox,a.bounds,Z6c,b,a.verticalBarPadding);a.xAxisMin!==null&&a.xAxisMax!==null&&RG(this,a.xAxisMin,a.xAxisMax)}};var d7c={clickSelect:!0,hoverHighlight:!0},gJ=function(a,b,c,d,e,f,g,k){eH.call(this,a,b,c);this.modalService=d;this.interactionService=e;this.instrumentationService=f;this.ngZone=k;this.data=null;this.loading=!1;this.error=null;this.outputPeriodMsInternal=void 0;this.layerName="";this.colorStrategyInternal=new XH;this.enableManualLatencyTracking=this.refactorA11yNavInstructions=this.hideSymbolShapes=!1;this.forceMinHeight=0;this.isBucketedData=!1;this.onSelect=new ui;this.dataSubject=new Xj(this.data);
this.configSubject=new Xj({colorStrategy:this.colorStrategy,hideSymbolShapes:this.hideSymbolShapes,gutterRatio:this.gutterRatio,isBucketedData:this.isBucketedData});this.updateGridTriggerSubject=new rf;this.gridGeneratorSubject=new Xj(null);this.defaultColumnMaskGeneratorSubject=new Xj(function(){return[]});this.xAxisRequirement=this.derivedMinMaxBand=this.yAxisRequirement=null;this.interactionsInternal=d7c;this.isShiftKeyDown=this.isMetaKeyDown=this.isCtrlKeyDown=!1;this.shiftSelectingFromSeriesId=
null;this.isMouseOver=!1;this.updateHoverValuesTriggerSubject=new vf(1);this.syncActionsBuffer=this.dataTypeError=null;this.colorRecalculationAttemptsRemaining=2;this.gridGeneratorObservable=this.gridGeneratorSubject.pipe(nf(0),Ik(this.ngZone));this.defaultColumnMaskGeneratorObservable=this.defaultColumnMaskGeneratorSubject.pipe(nf(0),Ik(this.ngZone));this.layerType="graphic";this.barView=new fJ(a.nativeElement,g);this.views.push(this.barView);this.views.push(new c7c(a.nativeElement));this.bindDrawInstrumentation()};
Z(gJ,eH);gJ.\u0275dir=eH.\u0275dir;
gJ.prototype.ngOnInit=function(){var a=this;eH.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject.pipe(A(function(b){return b?qLa(b,!1):null}),Fla(),Qha()),configObservable:this.configSubject});this.barView.setEnableManualLatencyTracking(this.enableManualLatencyTracking);this.barView.forceMinHeight=Math.max(0,this.forceMinHeight);this.updateGridTriggerSubject.pipe(kf(500),Af(this.destroyed)).subscribe(function(b){var c=void 0;a.gridGeneratorSubject.next(function(){c===void 0&&
(c=a.generateGrid(b));return c})});this.updateHoverValuesTriggerSubject.pipe(Cf(10),Af(this.destroyed)).subscribe(function(b){a.updateHoverValues(b)});this.chart.mouseEnterObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onMouseEnter(b)});zG(this.chart,"chart",function(b){return a.onMouseMove(b)},this.destroyed);this.chart.mouseLeaveObservable.pipe(Af(this.destroyed)).subscribe(function(){a.onMouseLeave()});this.chart.mouseClickObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onClick(b)});
this.chart.keyDownObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onKeyDown(b)});this.chart.keyUpObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onKeyUp(b)})};
gJ.prototype.onDataChange=function(a,b){var c=this,d=a.previousValue,e=a.currentValue,f=b.scope,g=b.state,k=[];this.derivedMinMaxBand=mCa(e);if(d!==e){if(g==null?0:g.xAxis)d=Zk(this.derivedMinMaxBand,(e==null?void 0:e.unit)||null,g.xAxis.min,g.xAxis.max,(e==null?void 0:e.xAxisUnit)||null,g.xAxis.unit||null),$k(this.yAxisRequirement,d)&&(this.yAxisRequirement=d,k.push(gH(this,this.yAxisRequirement)));this.xAxisRequirement=this.isBucketedData?e7c(this,e):nCa(a.currentValue);k.push(gH(this,this.yAxisRequirement));
k.push(hH(this,this.xAxisRequirement));k.push(UH({chartId:f.chartId,layerId:f.layerId,yAxisId:f.yAxisId,xAxisId:f.xAxisId,valueType:1,unit:(e==null?void 0:e.unit)||null,legendTemplate:this.legendTemplate,alignmentPeriodMs:this.alignmentPeriodMs||void 0,outputPeriodMs:this.outputPeriodMs||void 0}));k.push(TH({chartId:f.chartId,layerId:f.layerId,series:(e==null?void 0:e.series.map(function(H,J){var O;return{seriesId:H.id,name:(O=H.name)!=null?O:H.id,drawnAs:2,stackingIndex:e.series.length-1-J,dataSeriesMetadata:H.metadata,
statsModeSummaryValue:H.statsModeSummaryValue,legendTemplate:H.legendTemplate}}))||[]}));if(g&&e){if(a=kH(this.colorStrategy,f,e,g))this.store.dispatch(a),this.colorRecalculationAttemptsRemaining=2;this.withLatest(function(H){(H=H.state)&&k.push(c.createSetSeriesColorMetadataAction(f,e,H))});(a=this.updateMostRecentValues(b))&&k.push(a)}var m;if(a=g==null?void 0:(m=g.seriesSelection)==null?void 0:m.byLayer.entities[f.layerId]){m=a.selectedSeries;a=a.hoveredSeries;var r,w=new Set((r=e==null?void 0:
e.series.map(function(H){return H.id}))!=null?r:[]);r=m.filter(function(H){return w.has(H.seriesId)});r.length!==m.length&&k.push(EH({chartId:f.chartId,layerId:f.layerId,series:r}));r=a.filter(function(H){return w.has(H.seriesId)});r.length!==a.length&&k.push(GH({chartId:f.chartId,layerId:f.layerId,series:r}))}this.updateGridTriggerSubject.next(b)}var x,D;(g==null?0:(x=g.xAxisPin)==null?0:x.xPos)&&(g==null?0:(D=g.xAxisPin)==null?0:D.locked)&&(b=this.barView.getValuesAtTime(b,g.xAxisPin.xPos),(b=this.updateTimeSeriesValues(b,
0))&&k.push(b));return k};var e7c=function(a,b){if((b==null?0:b.series)&&b.series.length>0){var c=b.series[0];if(c.data.length>0){var d=c.data[0],e=c.data[c.data.length-1],f,g=((f=d.x0)!=null?f:d.x).valueOf();f=e.x.valueOf();c=c.data.length>1?(e.x.valueOf()-d.x.valueOf())/(c.data.length-1):void 0;var k;b=(k=b.unit)!=null?k:null;return{id:a.layerId,priority:1,min:g,max:f,unit:b,bucketWidth:c}}}return null};h=gJ.prototype;
h.bindDrawInstrumentation=function(){var a=this;PG(this.barView,function(b){var c=b.drawStartTimestamp;var d=b.drawStopTimestamp;var e=!a.loading;a.scopeObservable.pipe(mf(1)).subscribe(function(f){var g=f.chartId;f=f.layerId;vH(a.instrumentationService,{type:"draw-start",layerType:"graphic",timestamp:c,chartId:g,layerId:f});vH(a.instrumentationService,{type:"draw-stop",layerType:"graphic",timestamp:d,chartId:g,layerId:f,metadata:{hasCompleteData:e}})})})};h.onResizeChange=function(a,b){Bk(a)&&this.updateGridTriggerSubject.next(b)};
h.onYAxisChange=function(a,b){zl(a)&&this.updateGridTriggerSubject.next(b)};
h.onXAxisChange=function(a,b){var c=this,d=[];if(el(a)){var e=b.data,f=b.state;if(f==null?0:f.xAxis)e=Zk(this.derivedMinMaxBand,(e==null?void 0:e.unit)||null,f.xAxis.min,f.xAxis.max,(e==null?void 0:e.xAxisUnit)||null,f.xAxis.unit||null),$k(this.yAxisRequirement,e)&&(this.yAxisRequirement=e,d.push(gH(this,this.yAxisRequirement)));(e=this.updateMostRecentValues(b))&&d.push(e)}(el(a)||fl(a)||gl(a))&&this.updateGridTriggerSubject.next(b);if(SCa(a)){var g=void 0;this.defaultColumnMaskGeneratorSubject.next(function(){var k=
null;g===void 0&&(c.gridGeneratorSubject.pipe(mf(1)).subscribe(function(m){k=m&&m()}),g=c.generateDefaultColumnMask(b,k));return g})}return d};h.onXAxisPinChange=function(a,b){var c=[],d,e;if(((d=a.previousValue)==null?void 0:d.xPos)!==((e=a.currentValue)==null?void 0:e.xPos)){var f;a=this.barView.getValuesAtTime(b,((f=a.currentValue)==null?void 0:f.xPos)||null);(f=this.updateTimeSeriesValues(a,0))&&c.push(f)}return c};
h.onColorMapChange=function(a,b){var c=this,d=b.scope,e=b.data;a=b.state;var f=[];e&&a&&(this.colorRecalculationAttemptsRemaining>0&&(a=kH(this.colorStrategy,d,e,a))&&(this.store.dispatch(a),this.colorRecalculationAttemptsRemaining--),this.withLatest(function(g){(g=g.state)&&f.push(c.createSetSeriesColorMetadataAction(d,e,g))}));return f};h.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};
h.ngOnChanges=function(a){eH.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&(!this.data||GGa(this.data)?(this.dataSubject.next(this.data),this.dataTypeError&&(this.dataTypeError=null),b.push(jH(this,this.error,this.hasData()))):(this.dataSubject.next(null),this.dataTypeError={name:"InvalidRequestError",code:400,displayMessage:"Only numeric data can be drawn as a bar chart. The data provided cannot be drawn.",message:"Only numeric data can be drawn as a bar chart. The data provided cannot be drawn.",
details:{isTimeout:!1}},b.push(jH(this,this.dataTypeError,!1))));"isBucketedData"in a&&(this.xAxisRequirement=this.isBucketedData?e7c(this,this.data):nCa(this.data),b.push(hH(this,this.xAxisRequirement)));("outputPeriodMs"in a||"colorStrategy"in a||"alignmentPeriodMs"in a||"gutterRatio"in a||"verticalBarPadding"in a||"hideSymbolShapes"in a||"isBucketedData"in a)&&this.configSubject.next({outputPeriodMs:this.outputPeriodMs,colorStrategy:this.colorStrategy,gutterRatio:this.gutterRatio,verticalBarPadding:this.verticalBarPadding,
hideSymbolShapes:this.hideSymbolShapes,isBucketedData:this.isBucketedData});"loading"in a&&b.push(iH(this,this.loading,"Bar"));"forceMinHeight"in a&&(this.barView.forceMinHeight=Math.max(0,this.forceMinHeight));"error"in a&&b.push(jH(this,this.error,this.hasData()));yG(this.chart,b)};
h.onFocusedCellChange=function(a){var b=this,c=l(a.focusedGridIndices),d=c.next().value,e=c.next().value;this.withLatest(function(f){var g=f.scope;var k=f.config;b.gridGeneratorSubject.pipe(mf(1)).subscribe(function(m){if(m=m&&m()){var r=d!==null?m.rows[d]:null,w=e!==null?m.columns[e]:null;if(a.focusedCell){b.store.dispatch(EH({chartId:g.chartId,layerId:g.layerId,series:r?[{seriesId:r.metadata.seriesId}]:[]}));var x;r=(x=w==null?void 0:w.metadata.timeMs)!=null?x:null;r!==null&&(k==null?0:k.outputPeriodMs)&&
(r-=((k==null?void 0:k.outputPeriodMs)||0)/2);var D;b.store.dispatch(nH({chartGroupId:g.chartGroupId,position:(D=r)!=null?D:null}));b.store.dispatch(oH({chartGroupId:g.chartGroupId,locked:!!w}))}b.store.dispatch(GH({chartId:g.chartId,layerId:g.layerId,series:[]}));d!==null&&e!==null&&(x=m.values[d][e],b.store.dispatch(lH({chartId:g.chartId,lastInteraction:{focus:x.position.x}})),b.store.dispatch(mH({chartId:g.chartId,yAxisId:g.yAxisId,lastInteraction:{focus:x.position.y}})))}})})};
h.onGridCellActivate=function(a){this.modalService.focus(0,a)};h.updateHoverValues=function(a){var b=this;this.withLatest(function(c){c=b.barView.getValuesAtXPosition(c,a.x);(c=b.updateTimeSeriesValues(c,1))&&(b.syncActionsBuffer?b.syncActionsBuffer.push(c):b.store.dispatch(c))})};
h.updateMostRecentValues=function(a){var b=a.data,c=a.config,d,e,f=(d=a.state)==null?void 0:(e=d.xAxis)==null?void 0:e.max;if(!f||!c)return null;b=b==null?void 0:b.series.reduce(function(g,k){k=k.data;var m,r=Hl(k,f,Il((m=c.outputPeriodMs)!=null?m:null));return(m=k[r])&&(g===null||Math.abs(f-m.x.valueOf())<Math.abs(f-g.x.valueOf()))?m:g},null);return(a=this.barView.getValuesAtTime(a,b&&b.x0!==void 0?(b.x.valueOf()+b.x0.valueOf())/2:f))?this.updateTimeSeriesValues(a,3):null};
h.updateTimeSeriesValues=function(a,b){var c=null;this.withLatest(function(d){d=d.scope;var e,f;c=SH({chartId:d.chartId,layerId:d.layerId,valueType:1,timeKey:b,values:(e=a==null?void 0:a.values)!=null?e:[],timeRange:(f=a==null?void 0:a.timeRange)!=null?f:void 0})});return c};h.onMouseEnter=function(){this.isMouseOver=!0};
h.onMouseMove=function(a){var b=[];if(!this.isMouseOver)return b;a=fH(this,a);this.syncActionsBuffer=[];this.interactions.hoverHighlight&&this.hoverHighlight(a);this.updateHoverValuesTriggerSubject.next(a);b=b.concat(this.syncActionsBuffer);this.syncActionsBuffer=null;return b};h.onMouseLeave=function(){this.isMouseOver=!1;this.interactions.hoverHighlight&&this.hoverHighlight(null)};
h.onClick=function(a){var b=this,c=fH(this,a),d=!1;this.withLatest(function(e){var f=e.state,g=e.data;if(f&&g){var k=f.seriesSelection,m=f.brush;f=f.resize;if(k&&m&&!m.brushing&&f&&FGa(c,f)){k=k.byLayer.entities[e.scope.layerId];var r=b.barView.getRectAtPosition(c);k=k?k.selectedSeries.map(function(w){return w.seriesId}):[];if(r==null?0:r.metadata.series.id)g=g.series.find(function(w){return w.id===r.metadata.series.id}),b.onSelect.emit(g);b.interactions.clickSelect&&(g=[],m=Fl.ve.LineDeselectToggle,
r&&(m=Fl.ve.LineSelectToggle,k.length===1&&k.includes(r.metadata.series.id)?(g=[],m=Fl.ve.LineDeselectToggle):b.isShiftKeyDown&&b.shiftSelectingFromSeriesId&&k.length>0?(g=b.barView.getSeriesIdsBetween(b.shiftSelectingFromSeriesId,r.metadata.series.id,c)||[r.metadata.series.id],m=Fl.ve.LineMultiSelectToggle):b.isPrimaryModifierKeyDown?(g=k.includes(r.metadata.series.id)?k.filter(function(w){return w!==r.metadata.series.id}):k.concat([r.metadata.series.id]),m=Fl.ve.LineSpecificSelectToggle):(g=[r.metadata.series.id],
m=Fl.ve.LineSelectToggle)),b.shiftSelectingFromSeriesId=(r==null?void 0:r.metadata.series.id)||null,k.length===0&&g.length===1&&(d=!0),b.store.dispatch(EH({chartId:e.scope.chartId,layerId:e.scope.layerId,series:g.map(function(w){return{seriesId:w}})})),El(b.interactionService,"click",m,b.el.nativeElement),b.onMouseMove(a))}}});this.withLatest(function(e){e=b.barView.getValuesAtXPosition(e,c.x);var f=b.updateTimeSeriesValues(e,2);f&&b.store.dispatch(f);d&&(e=b.updateTimeSeriesValues(e,4))&&b.store.dispatch(e)})};
h.onKeyDown=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey};h.onKeyUp=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey};
h.generateGrid=function(a){var b=a.data;var c=a.state;a=a.config;if(!b||!c)return null;var d=c.xAxis,e=c.resize;c=c.yAxis;if(!d||!e||!c)return null;var f=hl(d,e.margins.left,e.width-e.margins.right,b.xAxisUnit),g=b.unit,k=c.unit,m=Al(c,e.margins.top,e.height-e.margins.bottom,g),r=d.tickIncrement||null,w=d.timezoneOffset,x=d.timeZoneId;if(!f||!m)return null;e={top:e.margins.top,right:e.width-e.margins.right,bottom:e.height-e.margins.bottom,left:e.margins.left};var D,H,J,O;return VFa({data:b,xAxisState:d,
yAxisState:c,rowFormatter:SFa(b.series,this.legendTemplate),columnFormatter:function(R){return{label:vl({position:R,tickIncrement:r,timeZone:Rk(w,x)}),value:R}},valueFormatter:QFa(g,k),positionMap:UFa(f,m,e,{outputPeriodMs:(a==null?void 0:a.outputPeriodMs)||void 0,centerInOutputPeriod:!0,widthMultiplier:1-this.barView.gutterRatio}),audioChartContext:d.min!==null&&d.max!==null&&c.min!==null&&c.max!==null?{xAxis:{ticks:d.ticks.map(function(R){return R.value}),min:(D=d.min)!=null?D:void 0,max:(H=d.max)!=
null?H:void 0},yAxis:{min:(J=c.min)!=null?J:void 0,max:(O=c.max)!=null?O:void 0}}:void 0})};h.generateDefaultColumnMask=function(a,b){a=a.state;return a&&b?(a=a.xAxis)?NFa({ticks:a.ticks,grid:b}):[]:[]};
h.hoverHighlight=function(a){var b=this;this.withLatest(function(c){var d=c.scope;if(c=c.state){var e=c.brush,f=c.seriesSelection;if(e&&f&&!e.panning){e=a&&b.barView.getRectAtPosition(a);var g,k;c=(c==null?void 0:(g=c.seriesSelection)==null?void 0:(k=g.byLayer.entities[d.layerId])==null?void 0:k.hoveredSeries)||[];g=e?[{seriesId:e.metadata.series.id,datumIndices:[{index:e.metadata.index}]}]:[];sl(c,g)&&(d=GH({chartId:d.chartId,layerId:d.layerId,series:g}),b.syncActionsBuffer?b.syncActionsBuffer.push(d):
b.store.dispatch(d))}}})};h.createSetSeriesColorMetadataAction=function(a,b,c){var d=this;return TH({chartId:a.chartId,layerId:a.layerId,series:b.series.map(function(e){var f;return{seriesId:e.id,name:(f=e.name)!=null?f:e.id,drawnAs:2,color:Pl(d.colorStrategy.getColor(e,c)),shape:d.colorStrategy.getShape&&d.colorStrategy.getShape(e,c),legendTemplate:e.legendTemplate}})})};h.getLayerTitle=function(){return this.layerName?"Bar "+this.layerName:"Bar"};
h.ngOnDestroy=function(){eH.prototype.ngOnDestroy.call(this);yG(this.chart,[gH(this,null),hH(this,null),jH(this,null,!1),iH(this,!1,"Bar")])};
da.Object.defineProperties(gJ.prototype,{outputPeriodMs:{configurable:!0,enumerable:!0,set:function(a){this.outputPeriodMsInternal=a},get:function(){var a;return(a=this.outputPeriodMsInternal)!=null?a:this.alignmentPeriodMs}},colorStrategy:{configurable:!0,enumerable:!0,set:function(a){this.colorStrategyInternal=a||this.colorStrategyInternal},get:function(){return this.colorStrategyInternal}},interactions:{configurable:!0,enumerable:!0,set:function(a){this.interactionsInternal=Object.assign({},d7c,
a)},get:function(){return this.interactionsInternal}},isPrimaryModifierKeyDown:{configurable:!0,enumerable:!0,get:function(){return wl?this.isMetaKeyDown:this.isCtrlKeyDown}}});gJ.\u0275fac=function(a){return new (a||gJ)(Ve(Gd),Ve(xG),Ve(LG),Ve(PH),Ve(Fl),Ve(uH),Ve(yH),Ve(Tg))};
gJ.\u0275cmp=C({type:gJ,selectors:[["ac-bar"]],hostAttrs:[1,"composable-layer","ac-bar"],inputs:{data:"data",loading:"loading",error:"error",alignmentPeriodMs:"alignmentPeriodMs",outputPeriodMs:"outputPeriodMs",layerName:"layerName",colorStrategy:"colorStrategy",interactions:"interactions",legendTemplate:"legendTemplate",gutterRatio:"gutterRatio",verticalBarPadding:"verticalBarPadding",hideSymbolShapes:"hideSymbolShapes",refactorA11yNavInstructions:"refactorA11yNavInstructions",enableManualLatencyTracking:"enableManualLatencyTracking",
forceMinHeight:"forceMinHeight",isBucketedData:"isBucketedData"},outputs:{onSelect:"onSelect"},features:[Ff,Gx],decls:3,vars:9,consts:[[3,"onFocusedCellChange","onGridCellActivate","onFocus","onBlur","gridGenerator","columnMaskGenerator","chartTitle","layerTitle","refactorA11yNavInstructions"]],template:function(a,b){a&1&&(K(0,"ac-accessibility-grid",0),U(1,"async"),U(2,"async"),N("onFocusedCellChange",function(c){return b.onFocusedCellChange(c)})("onGridCellActivate",function(c){return b.onGridCellActivate(c)})("onFocus",
function(c){return b.onFocus(c)})("onBlur",function(c){return b.onBlur(c)}),L());a&2&&I("gridGenerator",W(1,5,b.gridGeneratorObservable))("columnMaskGenerator",W(2,7,b.defaultColumnMaskGeneratorObservable))("chartTitle",b.chart.title)("layerTitle",b.getLayerTitle())("refactorA11yNavInstructions",b.refactorA11yNavInstructions)},dependencies:[WH,py],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}/*# sourceMappingURL=ac_bar.css.map */"],
changeDetection:0});var f7c=vk(wk,function(a,b,c){if(b&&a&&a.categories&&c)return c==="vertical"?(b.bodyRight-b.bodyLeft)/a.categories.length:(b.bodyBottom-b.bodyTop)/a.categories.length},$Zc,nG,aH),g7c=vk(wk,function(a,b,c,d,e){if(a&&a.categories&&b&&c&&d!==void 0&&e!==void 0)return a.categories.map(function(f,g){return{label:f,value:(c==="vertical"?d:e)+(.5+g)*b}})},$Zc,f7c,aH,XWc,WWc),h7c=vk(xk,function(a,b,c,d,e){if(a&&a.bodyWidth>0&&a.chartHeight>0&&c!==void 0)return{bodyTop:a.bodyTop,bodyLeft:a.bodyLeft,bodyRight:a.bodyRight,
bodyBottom:a.bodyBottom,chartWidth:a.chartWidth,chartHeight:a.chartHeight,axisTopEdge:c,ticks:b!=null?b:[],yAxisOrientation:e!=null?e:"vertical",gutterRatio:d!=null?d:0}},nG,g7c,vk(QAa,function(a,b){if(a!==void 0)return Math.max(a+((b==null?void 0:b.bottom)||0),0)},ZWc,dXc),ZZc,aH);var i7c=function(){TG.apply(this,arguments);this.lastDrawnState=null};Z(i7c,TG);
i7c.prototype.drawInternal=function(a){var b=a.currentValue;if(b&&(a=b.state,b=b.config,a&&b)){var c=a.bodyLeft,d=a.bodyRight,e=a.bodyBottom,f=a.bodyTop,g=a.chartHeight,k=a.chartWidth,m=a.ticks,r=a.axisTopEdge;if(a.yAxisOrientation==="vertical"){this.canvas.style.left="0px";this.canvas.style.top=r+"px";var w=j7c(this,m,k);e=!b.hideLabels&&w.some(function(x){return x.drawOnSecondRow});ml(this.canvas,this.base,e?33:20,k);b.hideLabels?k7c(this,c,d,m):(l7c(this,w),k7c(this,c,d,w))}else this.canvas.style.left=
"0px",this.canvas.style.top="0px",ml(this.canvas,this.base,g,k),c=(w=b.actualWidth)!=null?w:50,b.hideLabels||m7c(this,m,g,c),n7c(this,e,f,c,m);this.lastDrawnState=a}};
var n7c=function(a,b,c,d,e){var f=K3c;f=f===void 0?{}:f;a.ctx.save();kl(a.ctx,f,a.base);a.ctx.save();a.ctx.beginPath();a.ctx.moveTo.apply(a.ctx,n(nl([d,b],f.lineWidth)));a.ctx.lineTo.apply(a.ctx,n(nl([d,c],f.lineWidth)));a.ctx.stroke();a.ctx.restore();a.ctx.beginPath();b=l(e.length?e:[{value:b,label:""},{value:c,label:""}]);for(c=b.next();!c.done;c=b.next())c=c.value.value,a.ctx.moveTo.apply(a.ctx,n(nl([d-5,c],f.lineWidth))),a.ctx.lineTo.apply(a.ctx,n(nl([d,c],f.lineWidth)));a.ctx.stroke();a.ctx.restore()},
k7c=function(a,b,c,d){var e=rH;e=e===void 0?{}:e;a.ctx.save();kl(a.ctx,e,a.base);a.ctx.save();a.ctx.beginPath();a.ctx.moveTo.apply(a.ctx,n(nl([b,0],e.lineWidth)));a.ctx.lineTo.apply(a.ctx,n(nl([c,0],e.lineWidth)));a.ctx.stroke();a.ctx.restore();a.ctx.beginPath();b=l(d.length?d:[{value:b,label:""},{value:c,label:""}]);for(c=b.next();!c.done;c=b.next())c=c.value,d=c.drawOnSecondRow?18:5,a.ctx.moveTo.apply(a.ctx,n(nl([c.value,0],e.lineWidth))),a.ctx.lineTo.apply(a.ctx,n(nl([c.value,d],e.lineWidth)));
a.ctx.stroke();a.ctx.restore()},m7c=function(a,b,c,d){var e=K3c;e=e===void 0?{}:e;var f=[];a.ctx.save();kl(a.ctx,e,a.base);d=d-5-8;e=0;b=l(b);for(var g=b.next();!g.done;g=b.next()){var k=g=g.value,m=k.label;k=k.value;var r=a.ctx.measureText(m);r.width>d&&(m=o7c(a,m,r.width,d));var w=r.actualBoundingBoxAscent-r.actualBoundingBoxDescent;r=k-w/2;w=k+w/2;r<0||r<e+6||w>c||(ol(a.ctx,m,d,k),e=w,f.push(g))}a.ctx.restore()},o7c=function(a,b,c,d){if(c<=d)return b;c=Math.floor(b.length/2);if(c<=1)return b;for(;c>
0;c--){var e=b.slice(0,c)+"..."+b.slice(-c);if(a.ctx.measureText(e).width<d)return e}return b.charAt(0)+"..."},l7c=function(a,b){var c=rH;c=c===void 0?{}:c;a.ctx.save();kl(a.ctx,c,a.base);b=l(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d=c.labelCenterValue,e=c.truncatedLabel;c.drawOnSecondRow?ol(a.ctx,e,d,21):ol(a.ctx,e,d,8)}a.ctx.restore()},j7c=function(a,b,c){for(var d=[],e=0;e<b.length;e++){var f=b[e-1],g=b[e+1],k=b[e],m=k.label;k=k.value;var r=a.ctx.measureText(m).width,w=Math.min(f?Math.abs(k-
f.value)/2:k,g?Math.abs(g.value-k)/2:c-k)*2-6,x=void 0,D=k;if(r>w){var H=void 0;x=void 0;var J=(x=(H=f)==null?void 0:H.value)!=null?x:0,O=x=void 0;H=(O=(x=g)==null?void 0:x.value)!=null?O:c;f=f?Math.abs(k-f.value):k;x=g?Math.abs(g.value-k):c-k;g=Math.min(f,x)*2-6;x=o7c(a,m,r,f+x-6);r>g&&(D=(J+H)/2)}J=void 0;d.push({label:m,value:k,labelCenterValue:D,widerThanCollisionSafeWidth:r>w,truncatedLabel:(J=x)!=null?J:m,drawOnSecondRow:!1})}for(a=0;a<d.length;a++)b=d[a-1],c=d[a+1],m=e=void 0,d[a].drawOnSecondRow=
!(a%2===0||!(((e=b)==null?0:e.widerThanCollisionSafeWidth)||((m=c)==null?0:m.widerThanCollisionSafeWidth)));return d},p7c=function(a,b,c){return j7c(a,b,c).some(function(d){return d.drawOnSecondRow})};i7c.prototype.withinBody=function(a,b){if(!this.lastDrawnState)return!1;var c=this.lastDrawnState,d=c.bodyTop,e=c.bodyRight,f=c.bodyBottom;return a>=c.bodyLeft&&a<=e&&b>=d&&b<=f};
i7c.prototype.getCategory=function(a){if(!this.lastDrawnState)return null;var b=this.lastDrawnState.ticks;if(b.length===0)return null;if(b.length===1)return b[0].label;for(var c=(b[1].value-b[0].value)/2,d=0,e=b.length-1;d<=e;){var f=Math.floor((d+e)/2),g=Math.abs(b[f].value-a);if(g<c){if(g<c*(1-this.lastDrawnState.gutterRatio))return b[f].label;break}else b[f].value>a?e=f-1:d=f+1}return null};var hJ=function(a,b,c){eH.call(this,a,b,c,!0);this.tickStrategy=zCa;this.hideTickLabels=!1;this.dataSubject=new Xj(null);this.configSubject=new Xj({});this.rulerCanvas=document.createElement("canvas");this.rulerCanvasCtx=this.rulerCanvas.getContext("2d");this.yAxisOrientationSubject=new Xj("vertical");this.maxVerticalAxisWidth=50;this.initialized=!1;this.layerType="axis";this.axisView=new i7c(a.nativeElement);this.redrawableViews=[this.axisView]};Z(hJ,eH);hJ.\u0275dir=eH.\u0275dir;
hJ.prototype.onCategoricalAxisChange=function(){var a=this,b=[];this.withLatest(function(c){var d=c.scope;c=c.state;var e;if(c==null?0:(e=c.categoricalAxis)==null?0:e.categories){var f;e=(c==null?void 0:(f=c.categoricalAxis)==null?void 0:f.categories.reduce(function(g,k){return Math.max(g,a.rulerCanvasCtx.measureText(k).width)},0))+10+8;a.lastVerticalAxisDynamicWidth!==e&&(a.lastVerticalAxisDynamicWidth=e,b.push(a.createMarginRequirementAction(d,a.yAxisOrientation,e,a.lastUseDoubleHeightCheck)))}});
return b};
hJ.prototype.ngOnInit=function(){var a=this;eH.prototype.ngOnInit.call(this);this.initialized=!0;var b=[];this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});zG(this.chart,"chart",function(e){return a.onMouseMove(e)},this.destroyed);this.gutterRatio!==void 0&&this.withLatest(function(e){e=e.scope;e=WZc({chartGroupId:e.chartGroupId,chartId:e.chartId,xAxisId:a.xAxisId,gutterRatio:a.gutterRatio});b.push(e)});this.selectorFactoryToObservable(aH).pipe(yf("vertical"),Af(this.destroyed)).subscribe(function(e){e&&
a.yAxisOrientationSubject.next(e)});this.withLatest(function(e){b.push(a.createMarginRequirementAction(e.scope,a.yAxisOrientation,a.lastVerticalAxisDynamicWidth,a.lastUseDoubleHeightCheck))});var c;dZc(this.selectorService,{chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId},(c=this.tickStrategy)!=null?c:zCa,this.tickOptions);c=this.selectorFactoryToObservable(h7c);he([c,this.configObservable]).pipe(A(function(e){var f=l(e);e=f.next().value;return{data:null,config:f.next().value.currentValue,
state:e!=null?e:null}}),yf(null),uf(),A(rk),Df(this.scopeObservable),Af(this.destroyed)).subscribe(function(e){var f=l(e);e=f.next().value;f=f.next().value;a.chart.scheduleChangeHandler({mergeKey:(f.layerId||a.layerId)+"-drawFromSelection",changes:e,viewHandler:function(g){a.axisView.draw(g)},scope:f||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});this.scopeObservable.pipe(yf(null),uf(),A(rk),Af(this.destroyed)).subscribe(function(e){var f=
e.previousValue;(e=e.currentValue)&&(f==null?void 0:f.layerId)!==(e==null?void 0:e.layerId)&&yG(a.chart,[kG({chartGroupId:e.chartGroupId,chartId:e.chartId,previousLayerId:f==null?void 0:f.layerId,currentLayerId:e.layerId})])});c=this.selectorFactoryToObservable(aXc);var d=this.selectorFactoryToObservable(g7c);he([this.scopeObservable,this.yAxisOrientationSubject,c,d]).pipe(Af(this.destroyed)).subscribe(function(e){var f=l(e);e=f.next().value;var g=f.next().value;var k=f.next().value;if(f=f.next().value)a.lastVerticalAxisDynamicWidth=
q7c(a,f);f&&k!==void 0&&(a.lastUseDoubleHeightCheck=p7c(a.axisView,f,k));a.maxVerticalAxisWidth=k?Math.round(k*.3):50;yG(a.chart,[a.createMarginRequirementAction(e,g,a.lastVerticalAxisDynamicWidth,a.lastUseDoubleHeightCheck)])});yG(this.chart,b)};hJ.prototype.ngOnDestroy=function(){eH.prototype.ngOnDestroy.call(this);var a=hH(this,null);this.store.dispatch(pk({actions:[iZc({chartGroupId:this.chartGroupId,chartId:this.chartId,layerId:this.layerId}),a]}))};
hJ.prototype.onMouseMove=function(a){var b=[];a=fH(this,a);if(this.axisView.withinBody(a.x,a.y)){var c=this.axisView,d=null;c.lastDrawnState&&(d=c.getCategory(c.lastDrawnState.yAxisOrientation==="vertical"?a.x:a.y));b.push(h0c({chartId:this.chartId,lastInteraction:{hover:d}}))}else b.push(h0c({chartId:this.chartId,lastInteraction:{hover:null}}));return b};var q7c=function(a,b){return b.reduce(function(c,d){return Math.max(c,a.rulerCanvasCtx.measureText(d.label).width)},0)+10+8};
hJ.prototype.ngOnChanges=function(a){var b=this;eH.prototype.ngOnChanges.call(this,a);var c=[];this.initialized&&(("tickStrategy"in a||"tickOptions"in a)&&dZc(this.selectorService,{chartGroupId:this.chartGroupId,chartId:this.chartId,xAxisId:this.xAxisId},this.tickStrategy,this.tickOptions),"gutterRatio"in a&&this.withLatest(function(d){d=d.scope;d=WZc({chartGroupId:d.chartGroupId,chartId:d.chartId,xAxisId:b.xAxisId,gutterRatio:b.gutterRatio});c.push(d)}),"hideTickLabels"in a&&this.withLatest(function(d){c.push(b.createMarginRequirementAction(d.scope,
b.yAxisOrientation,b.lastVerticalAxisDynamicWidth,b.lastUseDoubleHeightCheck))}),yG(this.chart,c))};
hJ.prototype.createMarginRequirementAction=function(a,b,c,d){c=Math.min(this.maxVerticalAxisWidth,c!=null?c:this.maxVerticalAxisWidth);d={bottom:this.hideTickLabels?6:d?33:20};b==="horizontal"?(d={left:c},this.configSubject.next({actualWidth:c,hideLabels:this.hideTickLabels}),b={top:10,bottom:10}):(this.configSubject.next({hideLabels:this.hideTickLabels}),b={left:10,right:10});return NG({chartGroupId:a.chartGroupId,chartId:a.chartId,layerId:a.layerId,reservedMargins:d,overlappingMargins:b})};
da.Object.defineProperties(hJ.prototype,{yAxisOrientation:{configurable:!0,enumerable:!0,get:function(){return this.yAxisOrientationSubject.value}}});hJ.\u0275fac=function(a){return new (a||hJ)(Ve(Gd),Ve(xG),Ve(LG))};
hJ.\u0275cmp=C({type:hJ,selectors:[["ac-categorical-axis"]],hostAttrs:[1,"composable-layer","ac-catgorical-axis"],inputs:{tickStrategy:"tickStrategy",tickOptions:"tickOptions",gutterRatio:"gutterRatio",hideTickLabels:"hideTickLabels"},features:[Ff,Gx],decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var r7c={fillStyle:"var(--ac-sys-color-chart-on-surface, #000)",globalAlpha:1,globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-chart-on-surface, #000)",lineWidth:0},s7c={strokeStyle:"var(--ac-sys-color-chart-surface, #FFF)",lineWidth:3},iJ=function(a,b){UG.call(this,a);this.barsStrategy=b;this.drawnRects=[];this.drawnCategories=new Map;this.shapeCanvas=document.createElement("canvas");this.fullDrawDebounceId=null;this.enableManualLatencyTracking=!1;this.shapeCanvas.setAttribute("aria-hidden",
"true");this.shapeCanvas.style.position="absolute";b=this.shapeCanvas.getContext("2d");if(!b)throw Error("Jc");this.shapeCtx=b;a.appendChild(this.shapeCanvas)};Z(iJ,UG);h=iJ.prototype;h.updateStrategy=function(a,b){this.barsStrategy=a;this.drawInternal(b)};h.drawV1=function(a){this.drawInternal(a)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.onResizeChange=function(a,b){var c=this;Bk(a)&&(UAa(a)||Ck(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),VG(this,b,this.canvas,this.ctx),VG(this,b,this.shapeCanvas,this.shapeCtx),this.fullDrawDebounceId=setTimeout(function(){SG(c,c.canvas);SG(c,c.shapeCanvas);c.drawInternal(b)},250)))};h.onSeriesSelectionChange=function(a,b){gDa(a)&&this.drawInternal(b)};
h.onCategoricalAxisChange=function(a,b){a:{var c=a.previousValue;if(a=a.currentValue){var d,e;if(!c||((d=a.categories)==null?void 0:d.length)!==((e=c.categories)==null?void 0:e.length)){c=!0;break a}var f,g;for(d=0;d<((g=(f=a.categories)==null?void 0:f.length)!=null?g:0);++d){var k=e=void 0;if(((e=c.categories)==null?void 0:e[d])!==((k=a.categories)==null?void 0:k[d])){c=!0;break a}}}c=!1}c&&this.drawInternal(b)};h.onYAxisChange=function(a,b){zl(a)&&this.drawInternal(b)};
h.onColorMapChange=function(a,b){this.drawInternal(b)};h.getValuesAtPosition=function(a,b){a=this.unpack(a);if(!a||!a.reverseCategoryMap)return null;b=this.barsStrategy.getCategory(b,a.reverseCategoryMap);if(!b)return null;a=this.drawnCategories.get(b);return{values:t7c(a!=null?a:[]),category:b}};var t7c=function(a){return a.map(function(b){return{seriesId:b.metadata.series.id,value:b.metadata.point}})};h=iJ.prototype;
h.getRectAtPosition=function(a){return this.barsStrategy.getBarAtPosition(this.drawnRects,a)};h.getStackForRect=function(a){return this.drawnCategories.get(a.metadata.point.x)||null};h.getSeriesIdsBetween=function(a,b,c){c=this.getRectAtPosition(c);if(!c)return null;var d=this.getStackForRect(c);if(!d)return null;c=[];var e=!1;d=l(d);for(var f=d.next();!f.done;f=d.next()){f=f.value.metadata;if(f.series.id===a||f.series.id===b)if(e){c.push(f.series.id);break}else e=!0;e&&c.push(f.series.id)}return c};
h.unpack=function(a){var b=a.scope,c=a.data,d=a.state,e=a.config;if(!c||!d||!e)return null;var f=d.resize,g=d.categoricalAxis,k=d.yAxis;a=d.brush;var m=d.seriesSelection;if(!(f&&g&&k&&a&&m))return null;g=f.width;var r=f.height,w=f.margins.top,x=f.height-f.margins.bottom,D=f.margins.left;f=f.width-f.margins.right;k=this.barsStrategy.getRangeMap(k,w,x,D,f,c?c.unit:null);if(!e.categoryMap||!k||!e.laneWidth)return null;k=this.barsStrategy.createPointToRectMap(c,e.categoryMap,k,e.laneWidth,e.gutterRatio);
var H=e.colorStrategy.getShape,J=H&&(c==null?0:c.series.length)&&c.series.length>1?function(R){return H(R,d)}:null;b=m.byLayer.entities[b.layerId];var O=!c||!e.colorStrategy.isReady||e.colorStrategy.isReady(c,d);m=Object.values(m.byLayer.entities).filter(function(R){return!!R}).some(function(R){return R.selectedSeries.length||R.hoveredSeries.length});return{data:c,colorMap:function(R){return Pl(e.colorStrategy.getColor(R,d))},isColorMapReady:O,shapeMap:J,shapeBoundingBox:e.colorStrategy.shapeBoundingBox,
reverseCategoryMap:e.reverseCategoryMap,canvasWidth:g,canvasHeight:r,bodyLeft:D,bodyTop:w,bodyWidth:f-D,bodyHeight:x-w,bounds:{top:w,right:f,bottom:x,left:D},brushing:a.brushing||!1,hoveredSeries:(b==null?void 0:b.hoveredSeries)||[],selectedSeries:(b==null?void 0:b.selectedSeries)||[],anySeriesSelectedOrHovered:m,pointToRectMap:k,verticalBarPadding:e.verticalBarPadding,hideSymbolShapes:e.hideSymbolShapes}};
h.drawInternal=function(a){var b=performance.now();if((a=this.unpack(a))&&a.isColorMapReady){this.canvas.style.left="0px";this.canvas.style.top="0px";ml(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";ml(this.shapeCanvas,this.base,a.canvasHeight,a.canvasWidth);this.drawnRects=[];this.drawnCategories.clear();this.ctx.save();var c=new Path2D;c.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight);this.ctx.clip(c);var d=!a.brushing&&
a.anySeriesSelectedOrHovered;c=Object.assign({},r7c,{globalAlpha:d?.5:1});this.shapeCtx.globalAlpha=d?.5:1;var e,f=(e=a.data)==null?void 0:e.series;if(f==null?0:f.length){if(e=a.shapeMap){d=new Set;f=l(f);for(var g=f.next();!g.done;g=f.next())d.add(e(g.value))}this.drawBars(a.data,a.pointToRectMap,a.colorMap,a.shapeMap,a.shapeBoundingBox,a.bounds,c,void 0,a.verticalBarPadding,a.hideSymbolShapes)}this.ctx.restore();this.barsStrategy.sortDrawnCategories(this.drawnCategories);this.drawnRects=this.barsStrategy.getSortedFlattenedRects(this.drawnCategories);
a=performance.now();this.enableManualLatencyTracking&&QG(this);this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a})}};
h.drawBars=function(a,b,c,d,e,f,g,k,m,r){this.ctx.save();kl(this.ctx,g,this.base);kl(this.shapeCtx,s7c,this.base);g=k?a==null?void 0:a.series.filter(function(Da){return k.has(Da.id)}):a==null?void 0:a.series;g=l(g!=null?g:[]);for(var w=g.next(),x={};!w.done;x={series$jscomp$84:void 0,rects$jscomp$2:void 0},w=g.next()){x.series$jscomp$84=w.value;w=c(x.series$jscomp$84);this.ctx.fillStyle=jl(w,this.base);this.shapeCtx.fillStyle=jl(w,this.base);w=d&&d(x.series$jscomp$84);x.rects$jscomp$2=x.series$jscomp$84.data.map(function(Da){return function(ja,
va){return b(ja,Da.series$jscomp$84,va)}}(x));if(k){var D=k.get(x.series$jscomp$84.id),H=void 0,J=void 0;if((H=D)==null?0:(J=H.datumIndices)==null?0:J.length)x.rects$jscomp$2=D.datumIndices.map(function(Da){return function(ja){return Da.rects$jscomp$2[ja.index]}}(x))}H=void 0;D=!((H=k)==null||!H.get(x.series$jscomp$84.id));J=H=null;for(var O=l(x.rects$jscomp$2),R=O.next();!R.done;R=O.next())if(R=R.value){var V=void 0;m&&m<R.height&&x.series$jscomp$84.id!==((V=a)==null?void 0:V.series[0].id)?this.ctx.fillRect(R.left,
R.top+m,R.width,R.height-m):this.ctx.fillRect(R.left,R.top,R.width,R.height);if(w){var ba=this.barsStrategy.getShapeParams(R,e);V=ba.x;var pa=ba.y,ua=ba.shapeWidth,ma=ba.shapeHeight;ba=ba.scalingFactor;H===null&&(H=ua<=10);H||r||!D&&!this.barsStrategy.isBarLongEnoughForShape(R,ua,ma)||this.drawShapeWithinBounds(V,pa,f,w,ba)}J=this.barsStrategy.lastRectWithinBounds(R,J,f);u7c(this,R)}this.barsStrategy.shouldDrawBoundaryShapes&&w&&H&&J&&(x=this.barsStrategy.getBoundaryShapeParams(J,e),this.drawShape(x.x,
x.y,w,x.scalingFactor))}this.ctx.restore()};h.drawShape=function(a,b,c,d){this.shapeCtx.moveTo(a,b);a=aDa(a,b,c,d);this.shapeCtx.save();this.shapeCtx.globalAlpha=1;this.shapeCtx.strokeStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",this.base);this.shapeCtx.fillStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",this.base);this.shapeCtx.lineWidth=d!==void 0?d>=.6?3:d>=.4?2:1:3;this.shapeCtx.stroke(a);this.shapeCtx.fill(a);this.shapeCtx.restore();this.shapeCtx.fill(a)};
h.drawShapeWithinBounds=function(a,b,c,d,e){a<c.left-1||a>c.right+1||b<c.top-1||b>c.bottom+1||this.drawShape(a,b,d,e)};var u7c=function(a,b){var c=b.metadata.point.x;a.drawnCategories.set(c,(a.drawnCategories.get(c)||[]).concat([b]))};iJ.prototype.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};var v7c=function(){iJ.apply(this,arguments)};Z(v7c,iJ);v7c.prototype.onSeriesSelectionChange=function(a,b){this.drawInternal(b)};
v7c.prototype.drawInternal=function(a){if((a=this.unpack(a))&&a.isColorMapReady){this.canvas.style.left="0px";this.canvas.style.top="0px";ml(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";ml(this.shapeCanvas,this.base,a.canvasHeight,a.canvasWidth);var b=new Path2D;b.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight);this.ctx.clip(b);b=[];if(a.hoveredSeries.length){var c=[].concat(n(new Set(a.hoveredSeries.flatMap(function(d){return d.datumIndices||
[]}).map(function(d){return d.index}))));b=a.selectedSeries.map(function(d){return Object.assign({},d,{datumIndices:c.map(function(e){return{index:e}})})}).concat(a.hoveredSeries)}else b=a.selectedSeries;b=b.reduce(function(d,e){return d.set(e.seriesId,e)},new Map);this.drawBars(a.data,a.pointToRectMap,a.colorMap,a.shapeMap,a.shapeBoundingBox,a.bounds,r7c,b,a.verticalBarPadding,a.hideSymbolShapes)}};var w7c=function(){this.gutterRatioInternal=.35};h=w7c.prototype;h.getRangeMap=function(a,b,c,d,e,f){return Al(a,e,d,f)};h.createPointToRectMap=function(a,b,c,d,e){var f=this;return function(g,k,m){var r,w=(r=g.y1)!=null?r:g.y,x;r=(x=g.y0)!=null?x:0;w<r&&(w=l([w,r]),r=w.next().value,w=w.next().value);f.gutterRatio=e!=null?e:.35;x=d-f.gutterRatio*d;r=Math.round(c(r));w=Math.round(c(w))-r;var D=b(g.x);return D===null?null:{top:Math.round(D-x/2),left:r,height:x,width:w,metadata:{point:g,series:k,index:m}}}};
h.getCategory=function(a,b){var c;return(c=b(a.y))!=null?c:null};h.getBarAtPosition=function(a,b){var c=this.halfGutterInverseRatio;c=c===void 0?0:c;for(var d=0,e=a.length-1,f=null;d<=e;){var g=Math.floor((e+d)/2),k=a[g],m=k.left,r=k.top,w=k.height;k=k.width;var x=Math.ceil(c*w);w=r+w+x;if(b.y>=r-x)if(b.y<w)if(b.x>=m)if(b.x<m+k){f=a[g];break}else d=g+1;else e=g-1;else d=g+1;else e=g-1}return f};
h.sortDrawnCategories=function(a){for(var b=l(a.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.get(c)||[];d.sort(function(e,f){return e.left-f.left});a.set(c,d)}};h.getSortedFlattenedRects=function(a){var b=Array.from(a.keys()).sort(function(e,f){return a.get(e)[0].top-a.get(f)[0].top}),c=[];b=l(b);for(var d=b.next();!d.done;d=b.next())d=a.get(d.value)||[],c=c.concat(d);return c};
h.getShapeParams=function(a,b){var c=Math.min(16.8,a.height*.5);return{x:a.left+a.width/2,y:a.top+a.height/2,shapeWidth:c,shapeHeight:c,scalingFactor:b?c/b.width:1}};h.getBoundaryShapeParams=function(a,b){return{x:a.left+a.width/2,y:a.top+a.height+8,scalingFactor:b?16.8/b.width:1}};h.isBarLongEnoughForShape=function(a,b){return a.width>b};
h.lastRectWithinBounds=function(a,b,c){return a!==null&&a.top+a.height<=c.bottom?b===null||b.top+b.height>c.bottom?a:a.top+a.height>b.top+b.height?a:b:b!==null&&b.top+b.height<=c.bottom?b:null};
da.Object.defineProperties(w7c.prototype,{gutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatioInternal},set:function(a){this.gutterRatioInternal=a}},halfGutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatio/2}},halfGutterInverseRatio:{configurable:!0,enumerable:!0,get:function(){return 1/(1-this.halfGutterRatio)-1}},shouldDrawBoundaryShapes:{configurable:!0,enumerable:!0,get:function(){return!0}}});
var jJ=function(){this.gutterRatioInternal=.35};h=jJ.prototype;h.getRangeMap=function(a,b,c,d,e,f){return Al(a,b,c,f)};h.createPointToRectMap=function(a,b,c,d,e){var f=this;return function(g,k,m){var r,w=(r=g.y1)!=null?r:g.y,x;r=(x=g.y0)!=null?x:0;w<r&&(x=l([w,r]),r=x.next().value,w=x.next().value);f.gutterRatio=e!=null?e:.35;x=d-f.gutterRatio*d;w=Math.round(c(w));r=Math.round(c(r))-w;var D=b(g.x);return D===null?null:{top:w,left:Math.round(D-x/2),height:r,width:x,metadata:{point:g,series:k,index:m}}}};
h.getCategory=function(a,b){var c;return(c=b(a.x))!=null?c:null};h.getBarAtPosition=function(a,b){return lLa(a,b,this.halfGutterInverseRatio)};h.sortDrawnCategories=function(a){for(var b=l(a.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.get(c)||[];d.sort(function(e,f){return e.top-f.top});a.set(c,d)}};
h.getSortedFlattenedRects=function(a){var b=Array.from(a.keys()).sort(function(e,f){return a.get(e)[0].left-a.get(f)[0].left}),c=[];b=l(b);for(var d=b.next();!d.done;d=b.next())d=a.get(d.value)||[],c=c.concat(d);return c};h.getShapeParams=function(a,b){return kLa(a,b)};h.getBoundaryShapeParams=function(a,b){return{x:a.left+a.width+8,y:a.top+a.height/2,scalingFactor:b?16.8/b.width:1}};h.isBarLongEnoughForShape=function(a,b,c){return a.height>c};
h.lastRectWithinBounds=function(a,b,c){return a!==null&&a.left+a.width<=c.right?b===null||b.left+b.width>c.right?a:a.left+a.width>b.left+b.width?a:b:b!==null&&b.left+b.width<=c.right?b:null};
da.Object.defineProperties(jJ.prototype,{gutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatioInternal},set:function(a){this.gutterRatioInternal=a}},halfGutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatio/2}},halfGutterInverseRatio:{configurable:!0,enumerable:!0,get:function(){return 1/(1-this.halfGutterRatio)-1}},shouldDrawBoundaryShapes:{configurable:!0,enumerable:!0,get:function(){return!0}}});
var kJ=function(){this.gutterRatioInternal=.35};h=kJ.prototype;h.getRangeMap=function(a,b,c,d,e,f){return Al(a,b,c,f)};
h.createPointToRectMap=function(a,b,c,d,e){function f(m){return a.series.findIndex(function(r){return r.id===m.id})}var g=this,k=a.series.length;return function(m,r,w){g.gutterRatio=e!=null?e:.35;var x=d-g.gutterRatio*d,D=Math.round(c(m.y)),H=Math.round(c(0));D>H&&(D=l([D,H]),H=D.next().value,D=D.next().value);H-=D;var J=b(m.x);if(J===null)return null;J=Math.round(J-x/2);x=x/k-1;var O=f(r);return{top:D,left:J+O*(x+1),height:H,width:x,metadata:{point:m,series:r,index:w}}}};
h.getCategory=function(a,b){var c;return(c=b(a.x))!=null?c:null};h.getBarAtPosition=function(a,b){return lLa(a,b,this.halfGutterInverseRatio)};h.sortDrawnCategories=function(a){for(var b=l(a.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.get(c)||[];d.sort(function(e,f){return e.left-f.left});a.set(c,d)}};
h.getSortedFlattenedRects=function(a){var b=Array.from(a.keys()).sort(function(e,f){return a.get(e)[0].left-a.get(f)[0].left}),c=[];b=l(b);for(var d=b.next();!d.done;d=b.next())d=a.get(d.value)||[],c=c.concat(d);return c};h.getShapeParams=function(a,b){return kLa(a,b)};h.getBoundaryShapeParams=function(a,b){return{x:a.left+a.width+8,y:a.top+a.height/2,scalingFactor:b?16.8/b.width:1}};h.isBarLongEnoughForShape=function(a,b,c){return a.height>c};
h.lastRectWithinBounds=function(a,b,c){return a!==null&&a.left+a.width<=c.right?b===null||b.left+b.width>c.right?a:a.left+a.width>b.left+b.width?a:b:b!==null&&b.left+b.width<=c.right?b:null};
da.Object.defineProperties(kJ.prototype,{gutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatioInternal},set:function(a){this.gutterRatioInternal=a}},halfGutterRatio:{configurable:!0,enumerable:!0,get:function(){return this.gutterRatio/2}},halfGutterInverseRatio:{configurable:!0,enumerable:!0,get:function(){return 1/(1-this.halfGutterRatio)-1}},shouldDrawBoundaryShapes:{configurable:!0,enumerable:!0,get:function(){return!1}}});var x7c={clickSelect:!0,hoverHighlight:!0},lJ=function(a,b,c,d){eH.call(this,a,b,c);var e=this;this.interactionService=d;this.data=null;this.loading=!1;this.unstackedSubject=new Xj(!1);this.colorStrategyInternal=new XH;this.enableManualLatencyTracking=this.hideSymbolShapes=!1;this.onSelect=new ui;this.dataSubject=new Xj(this.data);this.configSubject=new Xj({colorStrategy:this.colorStrategy});this.userConfigSubject=new Xj({colorStrategy:this.colorStrategy,verticalBarPadding:this.verticalBarPadding,
hideSymbolShapes:this.hideSymbolShapes});this.categoricalAxisRequirement=this.yAxisRequirement=null;this.interactionsInternal=x7c;this.isShiftKeyDown=this.isMetaKeyDown=this.isCtrlKeyDown=!1;this.shiftSelectingFromSeriesId=null;this.isMouseOver=!1;this.updateHoverValuesTriggerSubject=new vf(1);this.syncActionsBuffer=null;this.colorRecalculationAttemptsRemaining=2;this.layerType="graphic";this.categoricalBarView=new iJ(a.nativeElement,this.unstacked?new kJ:new jJ);this.views.push(this.categoricalBarView);
this.categoricalBarSelectedView=new v7c(a.nativeElement,this.unstacked?new kJ:new jJ);this.views.push(this.categoricalBarSelectedView);this.stackedDataObservable=this.dataSubject.pipe(A(function(f){return f?qLa(f,!1):null}),wf({bufferSize:1,refCount:!0}));a=this.selectorFactoryToObservable(aH);he([this.unstackedSubject,a]).pipe(Af(this.destroyed)).subscribe(function(f){f=l(f);var g=f.next().value;var k=f.next().value;e.withLatest(function(m){var r=k==="horizontal"?new w7c:g?new kJ:new jJ;e.categoricalBarView.updateStrategy(r,
m);e.categoricalBarSelectedView.updateStrategy(r,m)})});this.unstackedSubject.pipe(Af(this.destroyed)).subscribe(function(f){e.withLatest(function(g){e.categoricalBarView.updateStrategy(f?new kJ:new jJ,g);e.categoricalBarSelectedView.updateStrategy(f?new kJ:new jJ,g)})})};Z(lJ,eH);lJ.\u0275dir=eH.\u0275dir;h=lJ.prototype;
h.ngOnChanges=function(a){eH.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&this.dataSubject.next(this.data);("colorStrategy"in a||"verticalBarPadding"in a||"hideSymbolShapes"in a)&&this.userConfigSubject.next({colorStrategy:this.colorStrategy,verticalBarPadding:this.verticalBarPadding,hideSymbolShapes:this.hideSymbolShapes});"loading"in a&&b.push(iH(this,this.loading,"Categorical Bar"));yG(this.chart,b)};
h.ngOnDestroy=function(){eH.prototype.ngOnDestroy.call(this);yG(this.chart,[gH(this,null),Z_c(this,null),jH(this,null,!1),iH(this,!1,"Categorical Bar")])};
h.ngOnInit=function(){var a=this;eH.prototype.ngOnInit.call(this);this.setup({dataObservable:this.unstackedSubject.pipe(zf(function(e){return e?a.dataSubject:a.stackedDataObservable})),configObservable:this.configSubject});this.categoricalBarView.setEnableManualLatencyTracking(this.enableManualLatencyTracking);var b=this.selectorFactoryToObservable(g7c),c=this.selectorFactoryToObservable(f7c),d=this.selectorFactoryToObservable(ZZc);he([b,c,d,this.userConfigSubject]).pipe(Af(this.destroyed)).subscribe(function(e){e=
l(e);var f=e.next().value;var g=e.next().value;var k=e.next().value;e=e.next().value;a.configSubject.next(Object.assign({},e,{categoryMap:function(m){var r,w;return(w=(r=f==null?void 0:f.find(function(x){return x.label===m}))==null?void 0:r.value)!=null?w:null},reverseCategoryMap:function(m){if(!g)return null;var r,w;return(w=(r=f==null?void 0:f.find(function(x){return Math.abs(x.value-m)<=g*(1-(k!=null?k:0))/2}))==null?void 0:r.label)!=null?w:null},laneWidth:g,gutterRatio:k}))});this.updateHoverValuesTriggerSubject.pipe(Cf(10),
Af(this.destroyed)).subscribe(function(e){a.updateHoverValues(e)});this.chart.mouseEnterObservable.pipe(Af(this.destroyed)).subscribe(function(e){a.onMouseEnter(e)});zG(this.chart,"chart",function(e){return a.onMouseMove(e)},this.destroyed);this.chart.mouseLeaveObservable.pipe(Af(this.destroyed)).subscribe(function(){a.onMouseLeave()});this.chart.mouseClickObservable.pipe(Af(this.destroyed)).subscribe(function(e){a.onClick(e)});this.chart.keyDownObservable.pipe(Af(this.destroyed)).subscribe(function(e){a.onKeyDown(e)});
this.chart.keyUpObservable.pipe(Af(this.destroyed)).subscribe(function(e){a.onKeyUp(e)})};
h.onDataChange=function(a,b){var c=a.currentValue,d=b.scope;b=b.state;var e=[];if(a.previousValue!==c&&(a=rCa(c),$k(this.yAxisRequirement,a)&&(this.yAxisRequirement=a,e.push(gH(this,this.yAxisRequirement))),this.categoricalAxisRequirement=qCa(c),e.push(Z_c(this,this.categoricalAxisRequirement)),e.push(UH({chartId:d.chartId,layerId:d.layerId,yAxisId:d.yAxisId,xAxisId:d.xAxisId,valueType:3,unit:(c==null?void 0:c.unit)||null})),e.push(TH({chartId:d.chartId,layerId:d.layerId,series:(c==null?void 0:c.series.map(function(f,
g){var k;return{seriesId:f.id,name:(k=f.name)!=null?k:f.id,drawnAs:2,stackingIndex:c.series.length-1-g,dataSeriesMetadata:f.metadata,statsModeSummaryValue:f.statsModeSummaryValue,legendTemplate:f.legendTemplate}}))||[]})),b&&c)){if(a=kH(this.colorStrategy,d,c,b))e.push(a),this.colorRecalculationAttemptsRemaining=2;e.push(this.createSetSeriesColorMetadataAction(d,c,b))}yG(this.chart,e)};
h.onColorMapChange=function(a,b){a=b.scope;var c=b.data;b=b.state;var d=[];if(c&&b){if(this.colorRecalculationAttemptsRemaining>0){var e=kH(this.colorStrategy,a,c,b);e&&(d.push(e),this.colorRecalculationAttemptsRemaining--)}d.push(this.createSetSeriesColorMetadataAction(a,c,b))}return d};var y7c=function(a,b){var c=null;a.withLatest(function(d){d=d.scope;var e;c=SH({chartId:d.chartId,layerId:d.layerId,valueType:3,timeKey:2,values:(e=b==null?void 0:b.values)!=null?e:[]})});return c};h=lJ.prototype;
h.onMouseEnter=function(){this.isMouseOver=!0};h.onMouseMove=function(a){var b=[];if(!this.isMouseOver)return b;a=fH(this,a);this.syncActionsBuffer=[];this.interactions.hoverHighlight&&this.hoverHighlight(a);this.updateHoverValuesTriggerSubject.next(a);b=b.concat(this.syncActionsBuffer);this.syncActionsBuffer=null;return b};h.onMouseLeave=function(){this.isMouseOver=!1;this.interactions.hoverHighlight&&this.hoverHighlight(null)};
h.onClick=function(a){var b=this,c=fH(this,a);this.withLatest(function(d){var e=d.state,f=d.data;if(e&&f){var g=e.seriesSelection,k=e.brush;e=e.resize;if(g&&k&&!k.brushing&&e&&FGa(c,e)){g=g.byLayer.entities[d.scope.layerId];var m=b.categoricalBarView.getRectAtPosition(c);g=g?g.selectedSeries.map(function(r){return r.seriesId}):[];(m==null?0:m.metadata.series.id)&&(f=f.series.find(function(r){return r.id===m.metadata.series.id}))&&b.onSelect.emit(Object.assign({},f,{point:m.metadata.point}));b.interactions.clickSelect&&
(f=[],k=Fl.ve.LineDeselectToggle,m&&(k=Fl.ve.LineSelectToggle,g.length===1&&g.includes(m.metadata.series.id)?(f=[],k=Fl.ve.LineDeselectToggle):b.isShiftKeyDown&&b.shiftSelectingFromSeriesId&&g.length>0?(f=b.categoricalBarView.getSeriesIdsBetween(b.shiftSelectingFromSeriesId,m.metadata.series.id,c)||[m.metadata.series.id],k=Fl.ve.LineMultiSelectToggle):b.isPrimaryModifierKeyDown?(f=g.includes(m.metadata.series.id)?g.filter(function(r){return r!==m.metadata.series.id}):g.concat([m.metadata.series.id]),
k=Fl.ve.LineSpecificSelectToggle):(f=[m.metadata.series.id],k=Fl.ve.LineSelectToggle)),b.shiftSelectingFromSeriesId=(m==null?void 0:m.metadata.series.id)||null,b.store.dispatch(EH({chartId:d.scope.chartId,layerId:d.scope.layerId,series:f.map(function(r){return{seriesId:r}})})),El(b.interactionService,"click",k,b.el.nativeElement),b.onMouseMove(a))}}});this.withLatest(function(d){d=b.categoricalBarView.getValuesAtPosition(d,c);(d=y7c(b,d))&&b.store.dispatch(d)})};
h.onKeyDown=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey};h.onKeyUp=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey};
h.hoverHighlight=function(a){var b=this;this.withLatest(function(c){var d=c.scope,e=c.state;if(e){c=a&&b.categoricalBarView.getRectAtPosition(a);var f,g;e=(e==null?void 0:(f=e.seriesSelection)==null?void 0:(g=f.byLayer.entities[d.layerId])==null?void 0:g.hoveredSeries)||[];f=c?[{seriesId:c.metadata.series.id,datumIndices:[{index:c.metadata.index}]}]:[];sl(e,f)&&(d=GH({chartId:d.chartId,layerId:d.layerId,series:f}),b.syncActionsBuffer?b.syncActionsBuffer.push(d):b.store.dispatch(d))}})};
h.createSetSeriesColorMetadataAction=function(a,b,c){var d=this;return TH({chartId:a.chartId,layerId:a.layerId,series:b.series.map(function(e){var f;return{seriesId:e.id,name:(f=e.name)!=null?f:e.id,drawnAs:2,color:Pl(d.colorStrategy.getColor(e,c)),shape:d.colorStrategy.getShape&&d.colorStrategy.getShape(e,c),legendTemplate:e.legendTemplate}})})};
h.updateHoverValues=function(a){var b=this;this.withLatest(function(c){var d=b.categoricalBarView.getValuesAtPosition(c,a),e,f;c=SH({chartId:c.scope.chartId,layerId:c.scope.layerId,valueType:3,timeKey:1,values:(e=d==null?void 0:d.values)!=null?e:[],category:(f=d==null?void 0:d.category)!=null?f:void 0});b.syncActionsBuffer?b.syncActionsBuffer.push(c):b.store.dispatch(c)})};
da.Object.defineProperties(lJ.prototype,{unstacked:{configurable:!0,enumerable:!0,set:function(a){this.unstackedSubject.next(a)},get:function(){return this.unstackedSubject.value}},colorStrategy:{configurable:!0,enumerable:!0,set:function(a){this.colorStrategyInternal=a||this.colorStrategyInternal},get:function(){return this.colorStrategyInternal}},interactions:{configurable:!0,enumerable:!0,set:function(a){this.interactionsInternal=Object.assign({},x7c,a)},get:function(){return this.interactionsInternal}},
isPrimaryModifierKeyDown:{configurable:!0,enumerable:!0,get:function(){return wl?this.isMetaKeyDown:this.isCtrlKeyDown}}});lJ.\u0275fac=function(a){return new (a||lJ)(Ve(Gd),Ve(xG),Ve(LG),Ve(Fl))};
lJ.\u0275cmp=C({type:lJ,selectors:[["ac-categorical-bar"]],hostAttrs:[1,"composable-layer","ac-categorical-bar"],inputs:{data:"data",loading:"loading",unstacked:"unstacked",colorStrategy:"colorStrategy",interactions:"interactions",hideSymbolShapes:"hideSymbolShapes",verticalBarPadding:"verticalBarPadding",enableManualLatencyTracking:"enableManualLatencyTracking"},outputs:{onSelect:"onSelect"},features:[Ff,Gx],decls:0,vars:0,template:function(){},styles:["/*# sourceMappingURL=ac_categorical_bar.css.map */"],
changeDetection:0});var z7c={useNonBlockingErrors:!1},mJ=function(a,b,c,d,e,f){eH.call(this,a,b,c,!0);this.ngZone=d;this.instrumentationService=e;this.changeDetectorRef=f;this.errorsSubject=new Xj([]);this.signalTimeoutId=null;this.installAgentHandled=!1;this.data=null;this.errorsObservable=this.errorsSubject.pipe(nf(0),Ik(this.ngZone));this.stylesSubject=new Xj(z7c);this.resizeStateSubject=new vf(1);this.isAgentMetricObservable=this.selectorFactoryToObservable(x_c).pipe(A(function(g){var k,m,r,w,x,D,H,J,O,R,V,ba,pa,
ua,ma,Da,ja,va,ya,Sa;return(g==null?void 0:(k=g.dataSets)==null?void 0:(m=k[0])==null?void 0:(r=m.timeSeriesFilter)==null?void 0:(w=r.filter)==null?void 0:w.includes("agent.googleapis.com"))||(g==null?void 0:(x=g.dataSets)==null?void 0:(D=x[0])==null?void 0:(H=D.timeSeriesQuery)==null?void 0:H.includes("agent.googleapis.com"))||(g==null?void 0:(J=g.dataSets)==null?void 0:(O=J[0])==null?void 0:(R=O.timeSeriesFilterRatio)==null?void 0:(V=R.numeratorFilter)==null?void 0:(ba=V.filter)==null?void 0:ba.includes("agent.googleapis.com"))||
(g==null?void 0:(pa=g.dataSets)==null?void 0:(ua=pa[0])==null?void 0:(ma=ua.timeSeriesFilterRatio)==null?void 0:(Da=ma.denominatorFilter)==null?void 0:(ja=Da.filter)==null?void 0:ja.includes("agent.googleapis.com"))||(g==null?void 0:(va=g.dataSets)==null?void 0:(ya=va[0])==null?void 0:(Sa=ya.prometheusQuery)==null?void 0:Sa.includes("agent_googleapis_com"))}));this.styleObservable=be({});this.ve={InstallAgentButton:114988};this.opsAgentInstallPrompt='Requires <a href="https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent" target="_blank">Ops Agent</a>';
this.errorDismissedSubject=new Xj(!1);this.errorDismissedObservable=se(this.errorDismissedSubject,this.errorsSubject.pipe(A(function(){return!1}),xf(1)));this.useNonBlockingStylingObservable=be(!1);this.installAgentRequest=new ui;A7c(this)};Z(mJ,eH);mJ.\u0275dir=eH.\u0275dir;
var A7c=function(a){a.selectorFactoryToObservable(l_c).pipe(Af(a.destroyed)).subscribe(function(b){var c;b=(c=b==null?void 0:b.statuses)!=null?c:[];a.errorsSubject.next(xLa(b).filter(function(d){return d.details.dashboardError!=="DASHBOARD_FILTER_APPLICATION_FAILED"}));B7c(a,b.filter(function(d){return!d.success}))});a.selectorFactoryToObservable(TWc).pipe(yf(null),A(function(b){return b!=null?b:null}),uf(),A(rk),Af(a.destroyed)).subscribe(function(b){b&&Bk(b)&&(a.resizeStateSubject.next(b.currentValue),
a.changeDetectorRef.detectChanges())})};mJ.prototype.ngOnChanges=function(a){eH.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&(b=b.concat(C7c(this,this.data)));yG(this.chart,b)};
var D7c=function(a){a.signalTimeoutId!=null&&(clearTimeout(a.signalTimeoutId),a.signalTimeoutId=null)},B7c=function(a,b){D7c(a);a.signalTimeoutId=setTimeout(function(){D7c(a);for(var c=performance.now(),d=l(b),e=d.next();!e.done;e=d.next())if(e=e.value,e.layerId&&e.layerId!==a.layerId){var f=void 0,g=void 0,k=void 0,m=void 0;vH(a.instrumentationService,{type:"error-display",timestamp:c,layerId:e.layerId,chartId:a.chartId,layerType:"graphic",metadata:{name:((f=e)==null?void 0:(g=f.error)==null?void 0:
g.name)||"unknown",message:((k=e)==null?void 0:(m=k.error)==null?void 0:m.message)||"unknown"}})}},0)};
mJ.prototype.ngOnInit=function(){var a=this;eH.prototype.ngOnInit.call(this);this.setup({});this.installAgentHandled=this.installAgentRequest.observers.length>0;this.useNonBlockingStylingObservable=he([this.stylesSubject,this.isAgentMetricObservable]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return!(!b.useNonBlockingErrors||a.installAgentHandled&&c)}));this.styleObservable=he([this.resizeStateSubject,this.useNonBlockingStylingObservable]).pipe(A(function(b){b=l(b);var c=b.next().value;
var d=b.next().value;return(c==null?0:c.margins)?(b=c.margins,c=a.chartGroupId==="tex-chart-group"&&c.width<736||a.chartGroupId!=="tex-chart-group"&&c.width-b.left-b.right<160,d&&!c?(c=a.chartGroupId==="tex-chart-group"?Math.max(184,b.left+32):b.left+32,d=b.right+(c-b.left),{marginLeft:c+"px",marginRight:d+"px",marginTop:b.top+"px",marginBottom:b.bottom+"px",width:"calc(100% - "+(c+d)+"px)",height:"auto",maxHeight:"calc(100% - "+(b.top+b.bottom)+"px)"}):{marginLeft:b.left+"px",marginRight:b.right+
"px",marginTop:b.top+"px",marginBottom:b.bottom+"px",width:"calc(100% - "+(b.left+b.right)+"px)",height:"calc(100% - "+(b.top+b.bottom)+"px)",maxHeight:"calc(100% - "+(b.top+b.bottom)+"px)"}):{}}),Ik(this.ngZone))};mJ.prototype.ngOnDestroy=function(){eH.prototype.ngOnDestroy.call(this);D7c(this);this.store.dispatch(pk({actions:C7c(this,null)}))};
var C7c=function(a,b){var c=[];if(b&&b.length){b=l(b);for(var d=b.next();!d.done;d=b.next())c.push(g_c({chartId:a.chartId,layerId:a.layerId,sourceId:a.objectiveLayerId,success:!1,error:d.value}))}else c.push(h_c({chartId:a.chartId,sourceId:a.objectiveLayerId}));return c};da.Object.defineProperties(mJ.prototype,{styles:{configurable:!0,enumerable:!0,set:function(a){this.stylesSubject.next(Object.assign({},z7c,a))},get:function(){return this.stylesSubject.getValue()}}});
mJ.\u0275fac=function(a){return new (a||mJ)(Ve(Gd),Ve(xG),Ve(LG),Ve(Tg),Ve(uH),Ve(Yx))};
mJ.\u0275cmp=C({type:mJ,selectors:[["ac-error"]],hostAttrs:[1,"composable-layer","ac-error"],inputs:{data:"data",styles:"styles"},outputs:{installAgentRequest:"installAgentRequest"},features:[Ff,Gx],decls:2,vars:3,consts:function(){return[["defaultMessage",""]," Install ",[4,"ngIf"],["class","ac-error-container",3,"nonblocking","ngStyle",4,"ngIf"],[1,"ac-error-container",3,"ngStyle"],[1,"ac-error-text"],[4,"ngIf","ngIfElse"],["svgIcon","ac:info",1,"icon","mat-18"],[3,"innerHTML"],["mat-raised-button",
"",1,"install-button",3,"click","ve","veClick"],["svgIcon","ac:warning"],[1,"error-text-wrapper"],["mat-icon-button","","class","close-button","aria-label","Dismiss error",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Dismiss error",1,"close-button",3,"click"],["svgIcon","ac:close"]]},template:function(a,b){a&1&&(E(0,DLa,3,3,"ng-container",2),U(1,"async"));a&2&&I("ngIf",W(1,1,b.errorsObservable))},dependencies:[TA,VA,iz,jy,ny,GE,py],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}.ac-error[_nghost-%COMP%]   .ac-error-container[_ngcontent-%COMP%]{width:100%;height:100%;background-color:var(--ac-sys-color-extensions-overlay,hsla(0,0%,100%,.5));display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;position:relative;z-index:9}.ac-error[_nghost-%COMP%]   .ac-error-container.nonblocking[_ngcontent-%COMP%]{height:auto;max-height:100%;background-color:transparent}.ac-error[_nghost-%COMP%]   .ac-error-container.nonblocking[_ngcontent-%COMP%]   .ac-error-text[_ngcontent-%COMP%]{background-color:var(--ac-sys-color-extensions-neutral-container,#f1f3f4);border-radius:0 0 4px 4px;margin:auto;padding:0 4px;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;width:auto;max-width:100%}.ac-error[_nghost-%COMP%]   .ac-error-container.nonblocking[_ngcontent-%COMP%]   .ac-error-text[_ngcontent-%COMP%]   span.error-text-wrapper[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;max-height:100px}.ac-error[_nghost-%COMP%]   .ac-error-container.nonblocking[_ngcontent-%COMP%]   .ac-error-text[_ngcontent-%COMP%]   button.close-button[_ngcontent-%COMP%]{height:20px;width:20px;padding:2px;border:none;outline:none;margin-left:8px;z-index:9}.ac-error[_nghost-%COMP%]   .ac-error-container.nonblocking[_ngcontent-%COMP%]   .ac-error-text[_ngcontent-%COMP%]   button.close-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     svg{height:16px;width:16px}.ac-error[_nghost-%COMP%]   .ac-error-text[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:13px;font-weight:400;text-align:center;text-shadow:none;width:100%;margin:auto 10px}.ac-error[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:16px;width:16px;font-size:16px;margin-right:8px;vertical-align:text-top}.ac-error[_nghost-%COMP%]   button.install-button[_ngcontent-%COMP%]{margin-left:12px;color:var(--ac-sys-color-extensions-primary,#3367d6);text-transform:uppercase}\n/*# sourceMappingURL=ac_error.css.map */"],
changeDetection:0});var nJ=function(a){TG.call(this,a);this.arcRadius=200;this.canvasWidth=400;this.canvasHeight=200;this.maxThresholdValue=0;this.centerY=this.centerX=200;this.thresholdRenderedContexts=[];this.currentValueRenderedContexts=[];this.thresholdsDict=new Map};Z(nJ,TG);
var E7c=function(a){return(a.arcRadius-.14*a.arcRadius)*2},G7c=function(a,b,c){var d=[];if(!c||!b||c.minValue>a.maxThresholdValue)return d;var e=a.arcRadius,f=Math.PI,g=0,k=a.maxThresholdValue-c.minValue;b.forEach(function(m){g=(m.upperBound-m.lowerBound)/k*Math.PI;m={arcRadius:e,startAngle:f,endAngle:f+g,arcData:m,filledColor:F7c(m.category)};f+=g;d.push(m)});return d},F7c=function(a){switch(a){case 0:return"var(--ac-sys-color-chart-unfilled, #F1F3F4)";case 1:return"var(--ac-sys-color-status-success, #188038)";
case 2:return"var(--ac-sys-color-status-warning, #e37400)";case 3:return"var(--ac-sys-color-status-error, #d93025)";case 4:return"var(--ac-sys-color-chart-unfilled, #F1F3F4)";default:return"var(--ac-sys-color-chart-unfilled, #F1F3F4)"}},H7c=function(a,b){var c=new Map;if(b==null)return c;b=b.thresholds;if(b.length===0)return c;b.forEach(function(f){c.set(f.upperBound,f.category)});b=Array.from(c.keys()).sort(function(f,g){return f-g});if(b.length===0)return c;a.maxThresholdValue=b[b.length-1];a=new Map;
b=l(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=c.get(d);e&&a.set(d,e)}return a},I7c=function(a){a=a.series[0];if(!a||a.data.length===0)throw Error("Qc");var b=a.id.toString(),c=a.data[0].y;if(isNaN(c))throw Error("Rc");return{id:b,ref:a,value:c,name:a.name||""}},K7c=function(a,b,c){var d=[];if(!c||!b)return d;var e=c.thresholds;if(e.length===0)return d;var f=J7c(e);try{var g=I7c(b),k=g.id,m=g.ref,r=c.minValue;a.thresholdsDict.forEach(function(w,x){var D=f.get(x)||"";d.push({id:k,lowerBound:r,
upperBound:x,label:D,ref:m,category:w});r=x});return d}catch(w){return[]}},J7c=function(a){var b=new Map;a.forEach(function(c){b.set(c.upperBound,c.label)});return b};nJ.prototype.clearWithBackground=function(a){ll(this.canvas,a,this.base)};nJ.prototype.updateCanvasSize=function(){SG(this,this.canvas);ml(this.canvas,this.base,this.canvasHeight,this.canvasWidth)};
var L7c=function(a,b){if(b=b.currentValue){var c=b.state.chartWidth;a.canvasHeight=b.state.chartHeight;a.canvasWidth=c;a.arcRadius=Math.min(a.canvasWidth/2,a.canvasHeight);a.centerX=a.canvasWidth/2;a.centerY=a.canvasHeight/2+a.arcRadius/2;a.updateCanvasSize()}},M7c=function(a,b,c){var d=b.arcRadius,e=b.startAngle,f=b.endAngle,g=b.filledColor;a.ctx.save();b=new Path2D;a.ctx.fillStyle=jl(g,a.base);a.ctx.lineCap="round";a.ctx.translate(.5,.5);c=d-c;a.ctx.beginPath();b.moveTo(a.centerX,a.centerY);b.arc(a.centerX,
a.centerY,c,e,f);a.ctx.fill(b);a.ctx.closePath();a.ctx.beginPath();a.ctx.strokeStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",a.base);a.ctx.lineWidth=2;a.ctx.moveTo(a.centerX+c*Math.cos(e),a.centerY+c*Math.sin(e));a.ctx.lineTo(a.centerX,a.centerY);a.ctx.stroke();a.ctx.moveTo(a.centerX+c*Math.cos(f),a.centerY+c*Math.sin(f));a.ctx.lineTo(a.centerX,a.centerY);a.ctx.stroke();a.ctx.closePath();a.ctx.restore()},N7c=function(a,b,c){a.ctx.save();a.ctx.beginPath();a.ctx.fillStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",
a.base);a.ctx.globalAlpha=c!=null?c:1;a.ctx.arc(a.centerX,a.centerY,a.arcRadius-b,Math.PI,2*Math.PI);a.ctx.fill();a.ctx.closePath();a.ctx.restore()},O7c=function(a){a.currentValueRenderedContexts.forEach(function(b){M7c(a,b,.03*a.arcRadius*2)})},P7c=function(a){a.thresholdRenderedContexts.forEach(function(b){M7c(a,b,0)})},Q7c=function(a,b){nJ.call(this,a);this.afterRenderHook=b;this.canvas.className="ac-gauge-view__canvas"};Z(Q7c,nJ);
var R7c=function(a,b,c){var d=null,e=Math.sqrt(Math.pow(b-a.centerX,2)+Math.pow(c-a.centerY,2));if(e>a.arcRadius)return d;var f=a.arcRadius-a.arcRadius*.02*2;a.thresholdRenderedContexts.forEach(function(g){var k=a.centerX;if(f<=e&&e<=a.arcRadius){var m=Math.atan2(Math.abs(c-a.centerY),Math.abs(b-k));k=b<=k?m+Math.PI:2*Math.PI-m;k=k>=g.startAngle&&k<=g.endAngle}else k=!1;k&&(d=g)});return d};
Q7c.prototype.drawInternal=function(a){var b=a.currentValue;if(b){var c=b.config;if(b.state&&c){L7c(this,a);if(b){this.thresholdsDict=H7c(this,b.config);a:{a=b.data;c=b.config;var d=[];if(a==null)var e=d;else{try{var f=I7c(a),g=f.id,k=f.ref,m=f.value,r=f.name,w=m>this.maxThresholdValue?this.maxThresholdValue:m,x=c.minValue;b:{for(var D=this.thresholdsDict.keys(),H=l(D),J=H.next();!J.done;J=H.next()){var O=J.value;if(w<=O){var R=this.thresholdsDict.get(O)||0;break b}}R=0}var V={id:g,lowerBound:w,upperBound:this.maxThresholdValue,
label:r,ref:k,category:4};d.push({id:g,lowerBound:x,upperBound:w,label:r,ref:k,category:R});d.push(V);e=d;break a}catch(pa){e=[];break a}e=void 0}}this.currentValueRenderedContexts=G7c(this,e,b.config)}this.currentValueRenderedContexts=this.currentValueRenderedContexts;b&&(this.thresholdsDict=H7c(this,b.config),this.thresholdRenderedContexts=G7c(this,K7c(this,b.data,b.config),b.config));this.thresholdRenderedContexts=this.thresholdRenderedContexts;P7c(this);N7c(this,.02*this.arcRadius*2);O7c(this);
N7c(this,.14*this.arcRadius*2);QG(this);var ba;(ba=this.afterRenderHook)==null||ba.call(this)}}};var S7c=function(a){return a.currentValueRenderedContexts.length===0?null:a.currentValueRenderedContexts[0].arcData.category};var T7c=function(a){nJ.call(this,a);this.canvas.className="ac-gauge-view__selected-canvas"};Z(T7c,nJ);
T7c.prototype.drawInternal=function(a){var b=a.currentValue;if(b){var c=b.state;b=b.config;c&&b&&(c.selectedThreshold?(this.canvas.style.left="0px",this.canvas.style.top="0px",L7c(this,a),ml(this.canvas,this.base,c.chartHeight,c.chartWidth),N7c(this,0,.6),M7c(this,c.selectedThreshold,0),a=.02*this.arcRadius*2,this.ctx.save(),this.ctx.beginPath(),this.ctx.fillStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.ctx.arc(this.centerX,this.centerY,this.arcRadius-a,Math.PI,2*Math.PI),this.ctx.globalCompositeOperation=
"destination-out",this.ctx.fill(),this.ctx.globalCompositeOperation="source-over",this.ctx.closePath(),this.ctx.restore(),N7c(this,a,.6)):ll(this.canvas,void 0,this.base))}};var U7c=vk(xk,function(a){if(a&&a.chartWidth>0&&a.chartHeight>0)return{chartWidth:a.chartWidth,chartHeight:a.chartHeight}},nG);var V7c=["labelBodyRef"],W7c=["labelViewRef"],X7c=["labelUnitRef"],oJ=function(a,b,c,d){eH.call(this,a,b,c);this.cdRef=d;this.statusColor=this.unitLabel=this.currentValueLabel=null;this.showUnitAboveValue=!1;this.data=null;this.loading=!1;this.error=null;this.thresholds=[];this.minValue=0;this.unitOverride=null;this.currentValueThresholdCategory=new ui;this.dataSubject=new Xj(null);this.selectedThresholdSubject=new Xj(null);this.layerType="graphic";this.gaugeView=new Q7c(this.el.nativeElement,this.updateLabels.bind(this));
this.configSubject=new Xj({thresholds:this.thresholds,minValue:this.minValue});this.gaugeSelectedView=new T7c(this.el.nativeElement);this.redrawableViews=[this.gaugeView,this.gaugeSelectedView]};Z(oJ,eH);oJ.\u0275dir=eH.\u0275dir;
oJ.prototype.ngOnInit=function(){var a=this;eH.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});zG(this.chart,"chart",function(c){return a.onMouseMove(c)},this.destroyed);this.chart.mouseLeaveObservable.pipe(Af(this.destroyed)).subscribe(function(){a.onMouseLeave()});var b=this.selectorFactoryToObservable(U7c);he([b,this.configObservable,this.dataObservable]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;return{data:d.next().value.currentValue,
config:e.currentValue,state:c!=null?c:null}}),yf(null),uf(),A(rk),Df(this.scopeObservable),Af(this.destroyed)).subscribe(function(c){var d=l(c);c=d.next().value;d=d.next().value;a.chart.scheduleChangeHandler({mergeKey:(d.layerId||a.layerId)+"-drawFromSelection",changes:c,viewHandler:function(e){a.gaugeView.draw(e);a.currentValueThresholdCategory.emit(S7c(a.gaugeView))},scope:d||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});he([this.configObservable,
this.dataObservable,b,this.selectedThresholdSubject]).pipe(A(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{data:e.currentValue,config:c.currentValue,state:f?Object.assign({},f,{selectedThreshold:d}):null}}),yf(null),uf(),A(rk),Df(this.scopeObservable),Af(this.destroyed)).subscribe(function(c){var d=l(c);c=d.next().value;d=d.next().value;a.chart.scheduleChangeHandler({mergeKey:(d.layerId||a.layerId)+"-drawHoverEffects",changes:c,viewHandler:function(e){a.gaugeSelectedView.draw(e)},
scope:d||{layerId:a.layerId,chartId:a.chartId,chartGroupId:a.chartGroupId,xAxisId:a.xAxisId,yAxisId:a.yAxisId}})});this.scopeObservable.pipe(yf(null),uf(),A(rk),Af(this.destroyed)).subscribe(function(c){var d=c.previousValue;(c=c.currentValue)&&(d==null?void 0:d.layerId)!==(c==null?void 0:c.layerId)&&yG(a.chart,[kG({chartGroupId:c.chartGroupId,chartId:c.chartId,previousLayerId:d==null?void 0:d.layerId,currentLayerId:c.layerId})])});this.updateLabels()};
oJ.prototype.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};oJ.prototype.ngOnChanges=function(a){eH.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&this.dataSubject.next(this.data);("minValue"in a||"thresholds"in a)&&this.configSubject.next({thresholds:this.thresholds,minValue:this.minValue});"loading"in a&&b.push(iH(this,this.loading,"Gauge"));"error"in a&&b.push(jH(this,this.error,this.hasData()));yG(this.chart,b)};
oJ.prototype.updateLabels=function(){var a,b,c,d,e=(d=(a=this.data)==null?void 0:(b=a.series[0])==null?void 0:(c=b.data[0])==null?void 0:c.y)!=null?d:null,f,g;a=(g=this.unitOverride||((f=this.data)==null?void 0:f.unit))!=null?g:null;e=iCa(e,a);if(e.value){if(this.currentValueLabel=e.value,this.unitLabel=e.unit&&!gCa(e.unit)?" "+e.unit:e.unit,this.currentValueLabel.length+this.unitLabel.length>7&&this.unitLabel&&!gCa(this.unitLabel)?this.showUnitAboveValue=!0:this.showUnitAboveValue=!1,e=S7c(this.gaugeView))this.statusColor=
F7c(e)}else this.unitLabel=this.currentValueLabel="";this.cdRef.markForCheck();a:{if(this.labelViewRef){if(E7c(this.gaugeView)===0)break a;e=this.gaugeView;this.labelViewRef.nativeElement.style.bottom=e.canvasHeight-(e.canvasHeight/2+e.arcRadius/2)+"px";this.labelViewRef.nativeElement.style.width=E7c(this.gaugeView)+"px"}this.cdRef.detectChanges()}};
var Y7c=function(a,b){if(b===""||b==="{not_a_unit}")b="1";var c=dCa({min:0,max:a,unit:b},hCa).unit,d=!c||PBa(c)?"":(Tk(c)&&Sk(c)||DBa("")).key||"unitless";if(a===0)d=Yk(0,d);else{a=Wk(b,c,a);if(!a)return"";d=Yk(a,d)}return d};
oJ.prototype.onMouseMove=function(a){var b=[];a=fH(this,a);if(a=R7c(this.gaugeView,a.x,a.y)){var c,d,e=(d=this.unitOverride||((c=this.data)==null?void 0:c.unit))!=null?d:null,f;c={label:(f=a.arcData.label)!=null?f:Z7c(a.arcData.category),lowerBound:Y7c(a.arcData.lowerBound,e!=null?e:""),upperBound:Y7c(a.arcData.upperBound,e!=null?e:"")};this.selectedThreshold=a;b.push(i0c({chartId:this.chartId,lastInteraction:{hover:c}}))}else this.selectedThreshold=null,b.push(i0c({chartId:this.chartId,lastInteraction:{hover:null}}));
return b};oJ.prototype.onMouseLeave=function(){this.selectedThreshold=null};var Z7c=function(a){switch(a){case 2:return"Warning";case 3:return"Danger";case 1:return"Normal";default:return""}};oJ.prototype.ngOnDestroy=function(){eH.prototype.ngOnDestroy.call(this)};da.Object.defineProperties(oJ.prototype,{selectedThreshold:{configurable:!0,enumerable:!0,set:function(a){this.selectedThresholdSubject.next(a)},get:function(){return this.selectedThresholdSubject.value}}});
oJ.\u0275fac=function(a){return new (a||oJ)(Ve(Gd),Ve(xG),Ve(LG),Ve(Yx))};
oJ.\u0275cmp=C({type:oJ,selectors:[["ac-gauge"]],viewQuery:function(a,b){a&1&&(kg(V7c,5),kg(W7c,5),kg(X7c,5));if(a&2){var c;og(c=pg())&&(b.labelBodyRef=c.first);og(c=pg())&&(b.labelViewRef=c.first);og(c=pg())&&(b.labelUnitRef=c.first)}},hostAttrs:[1,"composable-layer","ac-gauge"],inputs:{data:"data",loading:"loading",error:"error",thresholds:"thresholds",minValue:"minValue",unitOverride:"unitOverride",selectedThreshold:"selectedThreshold"},outputs:{currentValueThresholdCategory:"currentValueThresholdCategory"},
features:[Ff,Gx],decls:4,vars:4,consts:[["labelViewRef",""],["labelUnitRef",""],["labelBodyRef",""],[1,"ac-gauge__label-view"],["class","ac-gauge__label-unit",4,"ngIf"],["class","ac-gauge__label-body",3,"title",4,"ngIf"],[1,"ac-gauge__label-unit"],[1,"ac-gauge__label-body",3,"title"],[4,"ngIf"]],template:function(a,b){a&1&&(K(0,"div",3,0),E(2,ELa,3,1,"span",4)(3,GLa,4,3,"span",5),L());a&2&&(xg("color",b.statusColor),B(2),I("ngIf",b.showUnitAboveValue),B(),I("ngIf",b.currentValueLabel))},dependencies:[jy],
styles:["[_nghost-%COMP%]{display:flex;flex-direction:row;position:absolute;width:100%;height:100%;align-items:stretch}.ac-gauge__label-view[_ngcontent-%COMP%]{position:absolute;left:50%;transform:translate(-50%, 0%);align-items:center;display:flex;flex-direction:column;white-space:nowrap;line-height:normal;container-type:inline-size}.ac-gauge__label-unit[_ngcontent-%COMP%]{font-size:10cqw;font-weight:500;display:inline-block}.ac-gauge__label-body[_ngcontent-%COMP%]{font-size:15cqw;font-weight:500;display:inline-block}.ac-gauge__threshold-view[_ngcontent-%COMP%]{display:block;position:absolute;width:max-content}/*# sourceMappingURL=ac_gauge.css.map */"],
changeDetection:0});var $7c=gk("[AC] Set layer colorScale",hk());var a8c=function(a,b,c){NZc.call(this,a,b);this.queueService=c};Z(a8c,NZc);h=a8c.prototype;h.onXAxisChange=function(a,b){el(a)&&((a=LZc(this,b))?this.pan(a):this.drawScheduler.schedule(b))};h.onResizeChange=function(a,b){this.drawScheduler.schedule(b)};h.onYAxisChange=function(a,b){var c=a.previousValue,d,e=(d=a.currentValue)==null?void 0:d.position;c=c==null?void 0:c.position;(zl(a)||e!==c)&&this.drawScheduler.schedule(b)};h.onColorScaleChange=function(a,b){this.drawScheduler.schedule(b)};
h.onConfigChange=function(a,b){this.drawScheduler.schedule(b)};h.resizeCanvas=function(a,b){var c;if(b=(c=b.state)==null?void 0:c.resize){c=b.width-b.margins.left-b.margins.right;var d=b.height-b.margins.top-b.margins.bottom;a.style.left=b.margins.left+"px";a.style.top=b.margins.top+"px";ml(a,this.base,d,c)}};
var b8c=function(a){var b=a.state,c=a.config;if(!b||!c)return{};c=b.resize;var d=b.xAxis;b=b.yAxis;if(!c||!d||!b)return{};var e=c.width-c.margins.left-c.margins.right,f=c.height-c.margins.top-c.margins.bottom,g=d.min,k=d.max,m=b.min,r=b.max;c=b.scaleType;var w=b.absoluteMin;if(g===null||k===null||m===null||r===null)return{};var x,D=Vk(b.unit||"1",((x=a.data)==null?void 0:x.unit)||"1")||1;return{xMap:function(H){return cl(g,k,0,e,H.valueOf())},yMap:c===1?function(H){return H===-Infinity?f:H===Infinity?
0:RCa(m,r,f,0,H,w,D)}:function(H){return cl(m*D,r*D,f,0,H)}}},c8c=function(a,b,c,d){d=l(Bl(a.y,b).map(d));b=d.next().value;d=d.next().value;var e=c(a.x);a=c(a.x0||a.x);c=e-a;b-=d;c<1&&(a-=.5,c=1);b<1&&(d-=.5,b=1);return{x:a,y:d,width:c,height:b}};var d8c={globalAlpha:1,globalCompositeOperation:"source-over"},e8c=[[38,50,56],[25,53,172],[62,78,184],[103,52,186],[143,25,172],[218,19,95],[255,12,62],[255,109,0],[246,181,0],[255,255,0],[255,255,255]],pJ=function(a,b){a8c.call(this,a,b);this.bgCanvas=document.createElement("canvas");this.fullDrawDebounceId=null;this.enableManualLatencyTracking=!1;this.bgCanvas.setAttribute("aria-hidden","true");this.bgCanvas.style.position="absolute";b=this.bgCanvas.getContext("2d");if(!b)throw Error("Jc");this.bgCtx=
b;a.insertBefore(this.bgCanvas,this.canvas)};Z(pJ,a8c);pJ.prototype.onResizeChange=function(a,b){var c=this;Bk(a)&&(Ck(a)?this.drawScheduler.schedule(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),VG(this,b,this.canvas,this.ctx,!0),VG(this,b,this.bgCanvas,this.bgCtx,!0),this.fullDrawDebounceId=setTimeout(function(){SG(c,c.canvas);SG(c,c.bgCanvas);c.drawScheduler.schedule(b)},250)))};
pJ.prototype.unpack=function(a){var b=a.data,c=a.state;if(!b||!c||!b.series[0])return null;a=b.series[0];var d=a.data,e=c.resize,f=c.xAxis;c=c.yAxis;if(!e||!f||!c)return null;f=il(f,e.margins.left,e.width-e.margins.right);b=LDa(c,e.margins.top,e.height-e.margins.bottom,b.unit);return f&&b?{series:a,points:d,inverseDomainMap:f,ascending:d.length?d[d.length-1].x.valueOf()-d[0].x.valueOf()>0:!1,inverseRangeMap:b}:null};
var f8c=function(a,b,c){a=a.unpack(b);if(!a)return null;if(!a.points.length)return[];b=a.inverseDomainMap(c.x);c=a.inverseRangeMap(c.y);if(!b||!c)return null;b=Hl(a.points,b.valueOf(),Il(null));var d=a.points[b];if(!d||!d.y.bucketCounts)return null;c=ILa(d,c);return[{seriesId:a.series.id,datumIndices:[{index:b,bucketIndex:c}],ignoreSeriesForHighlighting:!0}]};
pJ.prototype.getValuesAtTime=function(a,b){a=this.unpack(a);if(b===null||!a)return null;if(!a.points.length)return{values:[],timeRange:null};b=Hl(a.points,b,Il(null));return{values:[{seriesId:a.series.id,value:a.points[b]}],timeRange:{x:a.points[b].x.valueOf()}}};pJ.prototype.getValuesAtXPosition=function(a,b){var c=this.unpack(a);return c?this.getValuesAtTime(a,c.inverseDomainMap(b)):null};
var g8c=function(a,b,c){if(a=a.unpack(b))if(b=a.inverseDomainMap(c.x),c=a.inverseRangeMap(c.y),b&&c&&(b=Hl(a.points,b.valueOf(),Il(null)),(a=a.points[b])&&a.y.bucketCounts))return ILa(a,c)};
pJ.prototype.drawInternal=function(a){var b=performance.now(),c=a.data,d=a.state,e=a.config,f=a.scope;if(d&&e){var g=d.xAxis,k=d.colorScale;if(d.resize&&k){this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null);var m,r=(m=k.byLayer.entities[f.layerId])!=null?m:{layerId:f.layerId,max:0,min:0,colorPivots:[[38,50,56]]};this.fullDrawDebounceId&&clearTimeout(this.fullDrawDebounceId);this.resizeCanvas(this.canvas,a);this.resizeCanvas(this.bgCanvas,a);d=function(H){return Pl(e.colorStrategy.getColor(H,
r))};e.skipZeroValues||h8c(this,d(0));f=b8c(a);a=f.xMap;f=f.yMap;if(a&&f){c=c==null?void 0:c.series;this.ctx.save();kl(this.ctx,d8c,this.base);if(c&&c.length>0){var w,x,D;i8c(this,c[0],a,f,d,(x=e.skipZeroValues)!=null?x:!1,(D=(w=e.styles)==null?void 0:w.renderBucketGap)!=null?D:!1)}this.ctx.restore();g&&g.min!==null&&g.max!==null&&RG(this,g.min,g.max);g=performance.now();this.enableManualLatencyTracking&&QG(this);this.drawListener({drawStartTimestamp:b,drawStopTimestamp:g})}}}};
var h8c=function(a,b){kl(a.bgCtx,d8c,a.base);ll(a.bgCanvas,b,a.base)},i8c=function(a,b,c,d,e,f,g){if(b.data.length){a.ctx.save();var k=g?function(D){return{x:D.x+1,y:D.y+1,width:D.width-1,height:D.height-1,color:D.color}}:function(D){return Object.assign({},D,{x:Math.floor(D.x),width:Math.ceil(D.width)})};b=b.data.flatMap(function(D){for(var H=[],J=D.y.bucketCounts,O=0;J&&O<J.length;O++)if(!(f&&J[O]<=0)){var R=c8c(D,O,c,d);H.push(Object.assign({},R,{color:e(J[O])}))}return H.map(k)});b=l(b);for(g=
b.next();!g.done;g=b.next()){g=g.value;var m=g.x,r=g.y,w=g.width,x=g.height;a.ctx.fillStyle=jl(g.color,a.base);a.ctx.fillRect(m,r,w,x)}a.ctx.restore()}};pJ.prototype.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};var j8c=Object.freeze({lineWidth:2,lineCap:"square",strokeStyle:"var(--ac-sys-color-chart-on-surface, #000)"}),k8c=function(a,b,c){a8c.call(this,a,b,c)};Z(k8c,a8c);
k8c.prototype.drawInternal=function(a){var b,c,d,e;if(((b=a.config)==null?0:(c=b.interactions)==null?0:c.clickSelect)||((d=a.config)==null?0:(e=d.interactions)==null?0:e.hoverHighlight))if(this.resizeCanvas(this.canvas,a),ll(this.canvas,"transparent",this.base),a=this.unpack(a))b=a.rect,kl(this.ctx,a.drawingOptions,this.base),this.ctx.strokeRect(b.x,b.y,b.width,b.height)};k8c.prototype.onSeriesSelectionChange=function(a,b){this.drawScheduler.schedule(b)};
k8c.prototype.unpack=function(a){var b=a.scope.layerId,c,d,e=(c=a.data)==null?void 0:(d=c.series)==null?void 0:d[0],f,g,k,m,r,w,x,D;c=a==null?void 0:(f=a.state)==null?void 0:(g=f.seriesSelection)==null?void 0:(k=g.byLayer)==null?void 0:(m=k.entities)==null?void 0:(r=m[b])==null?void 0:(w=r.selectedSeries)==null?void 0:(x=w[0])==null?void 0:(D=x.datumIndices)==null?void 0:D[0];if(!c){var H,J,O,R,V,ba,pa,ua;c=a==null?void 0:(H=a.state)==null?void 0:(J=H.seriesSelection)==null?void 0:(O=J.byLayer)==
null?void 0:(R=O.entities)==null?void 0:(V=R[b])==null?void 0:(ba=V.hoveredSeries)==null?void 0:(pa=ba[0])==null?void 0:(ua=pa.datumIndices)==null?void 0:ua[0]}if(e&&c&&(f=c.bucketIndex,f!==void 0&&(e=e.data[c.index],k=b8c(a),g=k.xMap,k=k.yMap,g&&k))){e=c8c(e,f,g,k);var ma,Da,ja,va;f=(ma=a.state)==null?void 0:(Da=ma.colorScale)==null?void 0:(ja=Da.byLayer)==null?void 0:(va=ja.entities)==null?void 0:va[b];var ya;a=f?(ya=a.config)==null?void 0:ya.colorStrategy.getColor(0,f):void 0;ya=Object.assign({},
j8c);a&&!Array.isArray(a)&&(ya.strokeStyle=a,ya.filter="invert()");return{drawingOptions:ya,rect:e}}};var l8c=Object.freeze({renderBucketGap:!1}),m8c=Object.freeze({clickSelect:!1,hoverHighlight:!1}),qJ=function(a,b,c,d,e,f,g){eH.call(this,a,b,c);this.instrumentationService=d;this.modalService=e;this.ngZone=g;this.data=null;this.loading=!1;this.error=null;this.colorPivots=e8c;this.colorStrategy=b2c;this.layerName="";this.enableManualLatencyTracking=this.skipZeroValues=this.refactorA11yNavInstructions=!1;this.onSelect=new ui;this.dataSubject=new Xj(this.data);this.configSubject=new Xj({colorStrategy:this.colorStrategy,
skipZeroValues:this.skipZeroValues,styles:this.styles,interactions:this.interactions});this.updateGridTriggerSubject=new rf;this.gridGeneratorSubject=new Xj(null);this.maxBucketCount=this.xAxisRequirement=this.yAxisRequirement=null;this.isMouseOver=!1;this.syncActionsBuffer=this.dataTypeError=null;this.gridGeneratorObservable=this.gridGeneratorSubject.pipe(nf(0),Ik(this.ngZone));this.defaultColumnMaskGeneratorSubject=new Xj(function(){return[]});this.defaultColumnMaskGeneratorObservable=this.defaultColumnMaskGeneratorSubject.pipe(nf(0),
Ik(this.ngZone));this.updateHoverSelectionTriggerSubject=new vf(1);this.updateHoverValuesTriggerSubject=new vf(1);this.stylesInternal=l8c;this.interactionsInternal=m8c;this.layerType="graphic";this.heatmapView=new pJ(a.nativeElement,this.ngZone,f);this.heatmapViewSelected=new k8c(a.nativeElement,this.ngZone,f);this.views.push(this.heatmapView,this.heatmapViewSelected);this.bindDrawInstrumentation()};Z(qJ,eH);qJ.\u0275dir=eH.\u0275dir;h=qJ.prototype;
h.ngOnInit=function(){var a=this;eH.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});this.heatmapView.setEnableManualLatencyTracking(this.enableManualLatencyTracking);this.updateGridTriggerSubject.pipe(Cf(500),Af(this.destroyed)).subscribe(function(b){var c=void 0;a.gridGeneratorSubject.next(function(){c===void 0&&(c=a.generateGrid(b));return c})});this.updateHoverValuesTriggerSubject.pipe(Cf(10),Af(this.destroyed)).subscribe(function(b){a.updateHoverValues(b)});
this.updateHoverSelectionTriggerSubject.pipe(Cf(10),Af(this.destroyed)).subscribe(function(b){n8c(a,b)});this.chart.mouseEnterObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onMouseEnter(b)});zG(this.chart,"chart",function(b){return a.onMouseMove(b)},this.destroyed);this.chart.mouseLeaveObservable.pipe(Af(this.destroyed)).subscribe(function(){a.onMouseLeave()});this.chart.mouseClickObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onClick(b)})};
h.bindDrawInstrumentation=function(){var a=this;PG(this.heatmapView,function(b){var c=b.drawStartTimestamp;var d=b.drawStopTimestamp;var e=!a.loading;a.scopeObservable.pipe(mf(1)).subscribe(function(f){var g=f.chartId;f=f.layerId;vH(a.instrumentationService,{type:"draw-start",layerType:"graphic",timestamp:c,chartId:g,layerId:f});vH(a.instrumentationService,{type:"draw-stop",layerType:"graphic",timestamp:d,chartId:g,layerId:f,metadata:{hasCompleteData:e}})})})};
h.onDataChange=function(a,b){var c=b.scope,d=b.state,e=a.currentValue,f=[];a.previousValue!==e&&(f.push(UH({chartId:c.chartId,layerId:c.layerId,yAxisId:c.yAxisId,xAxisId:c.xAxisId,valueType:2,unit:(e==null?void 0:e.unit)||null,legendTemplate:this.legendTemplate,alignmentPeriodMs:this.alignmentPeriodMs||void 0})),f.push(TH({chartId:c.chartId,layerId:c.layerId,series:(e==null?void 0:e.series.map(function(m){var r;return{seriesId:m.id,name:(r=m.name)!=null?r:m.id,drawnAs:3,dataSeriesMetadata:m.metadata}}))||
[]})),e?(this.yAxisRequirement=o8c(e),f.push(gH(this,this.yAxisRequirement)),this.xAxisRequirement=p8c(e),f.push(hH(this,this.xAxisRequirement)),a=q8c(e),a!==this.maxBucketCount&&f.push(r8c(this,a))):f.push(r8c(this,0)),this.updateGridTriggerSubject.next(b));var g,k;(d==null?0:(g=d.xAxisPin)==null?0:g.xPos)&&(d==null?0:(k=d.xAxisPin)==null?0:k.locked)&&(b=this.heatmapView.getValuesAtTime(b,d.xAxisPin.xPos),(b=this.updateTimeSeriesValues((b==null?void 0:b.values)||null,(b==null?void 0:b.timeRange)||
null,0))&&f.push(b));yG(this.chart,f)};h.onResizeChange=function(a,b){Bk(a)&&this.updateGridTriggerSubject.next(b)};h.onYAxisChange=function(a,b){zl(a)&&this.updateGridTriggerSubject.next(b)};h.onColorScaleChange=function(a,b){a=b.scope;var c,d,e=(c=b.state)==null?void 0:(d=c.colorScale)==null?void 0:d.byLayer.entities[a.layerId];if(e&&e.max!==this.maxBucketCount)for(this.maxBucketCount=e.max,c=l(this.views),d=c.next();!d.done;d=c.next())d.value.draw({currentValue:b.data,previousValue:b.data},b)};
h.onXAxisChange=function(a,b){var c=this;(el(a)||fl(a)||gl(a))&&this.updateGridTriggerSubject.next(b);if(SCa(a)){var d=void 0;this.defaultColumnMaskGeneratorSubject.next(function(){var e=null;d===void 0&&(c.gridGeneratorSubject.pipe(mf(1)).subscribe(function(f){e=f&&f()}),d=c.generateDefaultColumnMask(b,e));return d})}};
h.onXAxisPinChange=function(a,b){var c=[],d,e;if(((d=a.previousValue)==null?void 0:d.xPos)!==((e=a.currentValue)==null?void 0:e.xPos)){var f,g;a=this.heatmapView.getValuesAtTime(b,((f=a.currentValue)==null?void 0:(g=f.xPos)==null?void 0:g.valueOf())||null);var k,m;(f=this.updateTimeSeriesValues((k=a==null?void 0:a.values)!=null?k:null,(m=a==null?void 0:a.timeRange)!=null?m:null,0))&&c.push(f)}return c};h.onMouseEnter=function(){this.isMouseOver=!0};
h.onMouseMove=function(a){var b=[];if(!this.isMouseOver)return b;a=fH(this,a);this.syncActionsBuffer=[];this.updateHoverSelectionTriggerSubject.next(a);this.updateHoverValuesTriggerSubject.next(a);b=b.concat(this.syncActionsBuffer);this.syncActionsBuffer=null;return b};h.onMouseLeave=function(){var a=this;this.isMouseOver=!1;this.withLatest(function(b){a.store.dispatch(GH({chartId:b.scope.chartId,layerId:b.scope.layerId,series:[]}))})};
h.onClick=function(a){var b=this,c=fH(this,a);this.withLatest(function(d){var e=b.heatmapView.getValuesAtXPosition(d,c.x),f=g8c(b.heatmapView,d,c),g,k,m=b.updateTimeSeriesValues((g=e==null?void 0:e.values)!=null?g:null,(k=e==null?void 0:e.timeRange)!=null?k:null,2,f);m&&b.store.dispatch(m);var r;if((r=b.interactions)==null?0:r.clickSelect){e=f8c(b.heatmapView,d,c);var w,x,D,H,J;f=(w=d.state)==null?void 0:(x=w.seriesSelection)==null?void 0:(D=x.byLayer)==null?void 0:(H=D.entities)==null?void 0:(J=
H[d.scope.layerId])==null?void 0:J.selectedSeries;if(QLa(e,f))b.store.dispatch(FH({chartId:d.scope.chartId,layerId:d.scope.layerId})),b.onSelect.emit(void 0);else{w={chartId:d.scope.chartId,layerId:d.scope.layerId,series:e!=null?e:[]};b.store.dispatch(EH(w));var O,R;if(w.series&&((O=d.data)==null?0:O.series)&&((R=w.series[0].datumIndices)==null?void 0:R[0].bucketIndex)!==void 0){var V,ba,pa;b.onSelect.emit({series:(V=d.data.series)==null?void 0:V[0],bucketIndex:(ba=w.series[0].datumIndices)==null?
void 0:ba[0].bucketIndex,index:(pa=w.series[0].datumIndices)==null?void 0:pa[0].index})}}}})};
h.onFocusedCellChange=function(a){var b=this,c=l(a.focusedGridIndices),d=c.next().value,e=c.next().value;this.withLatest(function(f){var g=f.scope;b.gridGeneratorSubject.pipe(mf(1)).subscribe(function(k){if(k=k&&k()){var m=e!==null?k.columns[e]:null,r=e!==null?k.columns[e-1]:null;if(a.focusedCell){var w,x=(w=m==null?void 0:m.metadata.timeMs)!=null?w:null,D;w=(D=r==null?void 0:r.metadata.timeMs)!=null?D:null;x!==null&&w!==null&&(x=(x+w)/2);b.store.dispatch(nH({chartGroupId:g.chartGroupId,position:x}));
b.store.dispatch(oH({chartGroupId:g.chartGroupId,locked:!!m}))}d!==null&&e!==null&&(D=k.values[d][e],b.store.dispatch(lH({chartId:g.chartId,lastInteraction:{focus:D.position.x}})),b.store.dispatch(mH({chartId:g.chartId,yAxisId:g.yAxisId,lastInteraction:{focus:D.position.y}})))}})})};h.onGridCellActivate=function(a){this.modalService.focus(0,a)};
h.generateGrid=function(a){var b=a.data;var c=a.state;if(!b||!c)return null;a=c.xAxis;var d=c.resize;c=c.yAxis;if(!a||!d||!c)return null;var e=hl(a,d.margins.left,d.width-d.margins.right,b.xAxisUnit),f=b.unit,g=c.unit;d=Al(c,d.margins.top,d.height-d.margins.bottom,f);var k=a.tickIncrement||null,m=a.timezoneOffset,r=a.timeZoneId;return e&&d?PLa({data:b,xAxisState:a,yAxisState:c,rowFormatter:KLa(f,g,c.maximumFractionDigits),columnFormatter:function(w){return{label:vl({position:w,tickIncrement:k,timeZone:Rk(m,
r)}),value:w}},valueFormatter:OLa(),positionMap:MLa(e,d)}):null};var n8c=function(a,b){a.withLatest(function(c){var d=f8c(a.heatmapView,c,b);c=GH({chartId:c.scope.chartId,layerId:c.scope.layerId,series:d||[]});a.syncActionsBuffer?a.syncActionsBuffer.push(c):a.store.dispatch(c)})};
qJ.prototype.updateHoverValues=function(a){var b=this;this.withLatest(function(c){var d=b.heatmapView.getValuesAtXPosition(c,a.x);c=g8c(b.heatmapView,c,a);var e,f,g=b.updateTimeSeriesValues((e=d==null?void 0:d.values)!=null?e:null,(f=d==null?void 0:d.timeRange)!=null?f:null,1,c);g&&(b.syncActionsBuffer?b.syncActionsBuffer.push(g):b.store.dispatch(g))})};
qJ.prototype.updateTimeSeriesValues=function(a,b,c,d){var e=null;this.withLatest(function(f){f=f.scope;var g=(a!=null?a:[]).map(function(k){return k.value===null?k:Object.assign({},k,{value:Object.assign({},k.value,{bucketIndex:d})})});e=SH({chartId:f.chartId,layerId:f.layerId,valueType:2,timeKey:c,values:g,timeRange:b!=null?b:void 0})});return e};
var o8c=function(a){if(!a)return null;for(var b=-Infinity,c=Infinity,d=Infinity,e=l(a.series),f=e.next();!f.done;f=e.next()){f=l(f.value.data);for(var g=f.next();!g.done;g=f.next()){var k=g.value.y,m=k.bucketCounts;g=void 0;if((g=m)==null?0:g.length){var r=Bl(k,m.length-1);g=r[1];if(g===Infinity){var w=l(Bl(k,m.length-2)),x=w.next().value;w=w.next().value;x!==null&&w!==null?g=w+(w-x)*2:g=r[0]}m.length&&m[0]>0?(m=Bl(k,0),r=m[0],r===-Infinity&&(x=l(Bl(k,1)),k=x.next().value,x=x.next().value,k!==null&&
x!==null?r=k-(x-k)/2:r=m[1])):(m=Bl(k,1),r=m[0]);k=void 0;b=Math.max(b,(k=g)!=null?k:b);g=void 0;c=Math.min(c,(g=r)!=null?g:c);d=Math.min(d,Math.abs(r||m[1]||d))}}}return b===-Infinity||c===Infinity?null:{priority:1,absoluteMin:d,min:c,max:b,unit:a.unit||null}},p8c=function(a){if(!a)return null;var b=-Infinity,c=Infinity,d=!1;a=l(a.series);for(var e=a.next();!e.done;e=a.next())e=e.value.data,e.length!==0&&(d=e[e.length-1],b=Math.max(b,e[0].x.valueOf()),c=Math.min(c,(d.x0||d.x).valueOf()),d=!0);return d?
{priority:1,min:c,max:b,unit:"ms_since_epoch"}:null},q8c=function(a){var b=1;a=l(a.series);for(var c=a.next();!c.done;c=a.next()){c=l(c.value.data);for(var d=c.next();!d.done;d=c.next())d=d.value,d.y&&d.y.bucketCounts&&(b=Math.max(b,Math.max.apply({},d.y.bucketCounts)))}return b};qJ.prototype.generateDefaultColumnMask=function(a,b){a=a.state;return a&&b?(a=a.xAxis)?NFa({ticks:a.ticks,grid:b}):[]:[]};
qJ.prototype.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};
qJ.prototype.ngOnChanges=function(a){eH.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&(!this.data||HGa(this.data)?(this.dataSubject.next(this.data),this.dataTypeError&&(this.dataTypeError=null),b.push(jH(this,this.error,this.hasData()))):(this.dataSubject.next(null),this.dataTypeError={name:"InvalidRequestError",code:400,displayMessage:"Only distribution data can be drawn as a heatmap chart. The data provided cannot be drawn.",message:"Only distribution data can be drawn as a heatmap chart. The data provided cannot be drawn.",
details:{isTimeout:!1}},b.push(jH(this,this.dataTypeError,!1))));("colorStrategy"in a||"skipZeroValues"in a||"styles"in a||"interactions"in a)&&this.configSubject.next({colorStrategy:this.colorStrategy,skipZeroValues:this.skipZeroValues,styles:this.styles,interactions:this.interactions});if("colorPivots"in a){this.colorPivots=a.colorPivots.currentValue;var c=this.data?q8c(this.data):0;b.push(r8c(this,c))}"loading"in a&&b.push(iH(this,this.loading,"Heatmap"));"error"in a&&b.push(jH(this,this.error,
this.hasData()));yG(this.chart,b)};var r8c=function(a,b){return $7c({chartId:a.chartId,layerId:a.layerId,max:b,min:0,colorPivots:a.colorPivots})};qJ.prototype.getLayerTitle=function(){return this.layerName?"Heatmap "+this.layerName:"Heatmap"};qJ.prototype.ngOnDestroy=function(){eH.prototype.ngOnDestroy.call(this);yG(this.chart,[gH(this,null),hH(this,null),jH(this,null,!1),iH(this,!1,"Heatmap")])};
da.Object.defineProperties(qJ.prototype,{styles:{configurable:!0,enumerable:!0,set:function(a){this.stylesInternal=Object.assign({},l8c,a)},get:function(){return this.stylesInternal}},interactions:{configurable:!0,enumerable:!0,set:function(a){this.interactionsInternal=Object.assign({},m8c,a)},get:function(){return this.interactionsInternal}}});qJ.\u0275fac=function(a){return new (a||qJ)(Ve(Gd),Ve(xG),Ve(LG),Ve(uH),Ve(PH),Ve(yH),Ve(Tg))};
qJ.\u0275cmp=C({type:qJ,selectors:[["ac-heatmap"]],hostAttrs:[1,"composable-layer","ac-heatmap"],inputs:{data:"data",loading:"loading",error:"error",alignmentPeriodMs:"alignmentPeriodMs",colorPivots:"colorPivots",colorStrategy:"colorStrategy",layerName:"layerName",legendTemplate:"legendTemplate",refactorA11yNavInstructions:"refactorA11yNavInstructions",skipZeroValues:"skipZeroValues",styles:"styles",enableManualLatencyTracking:"enableManualLatencyTracking",interactions:"interactions"},outputs:{onSelect:"onSelect"},
features:[Ff,Gx],decls:3,vars:9,consts:[[3,"onFocusedCellChange","onGridCellActivate","onFocus","onBlur","gridGenerator","columnMaskGenerator","chartTitle","layerTitle","refactorA11yNavInstructions"]],template:function(a,b){a&1&&(K(0,"ac-accessibility-grid",0),U(1,"async"),U(2,"async"),N("onFocusedCellChange",function(c){return b.onFocusedCellChange(c)})("onGridCellActivate",function(c){return b.onGridCellActivate(c)})("onFocus",function(c){return b.onFocus(c)})("onBlur",function(c){return b.onBlur(c)}),
L());a&2&&I("gridGenerator",W(1,5,b.gridGeneratorObservable))("columnMaskGenerator",W(2,7,b.defaultColumnMaskGeneratorObservable))("chartTitle",b.chart.title)("layerTitle",b.getLayerTitle())("refactorA11yNavInstructions",b.refactorA11yNavInstructions)},dependencies:[WH,py],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}/*# sourceMappingURL=ac_heatmap.css.map */"],changeDetection:0});var s8c=new bd("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");new bd("mat-progress-bar-location",{providedIn:"root",factory:function(){var a=q(Yh),b=a?a.location:null;return{getPathname:function(){return b?b.pathname+b.search:""}}}});
var rJ=function(){var a=this;this._elementRef=q(Gd);this._ngZone=q(Tg);this._changeDetectorRef=q(Yx);this._renderer=q(ji);this._defaultColor="primary";this._bufferValue=this._value=0;this.animationEnd=new ui;this._mode="determinate";this._transitionendHandler=function(d){a.animationEnd.observers.length!==0&&d.target&&d.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=Osa(),c=q(s8c,{optional:!0});this._isNoopAnimation=b==="di-disabled";b==="reduced-motion"&&this._elementRef.nativeElement.classList.add("mat-progress-bar-reduced-motion");c&&(c.color&&(this.color=this._defaultColor=c.color),this.mode=c.mode||this.mode)};h=rJ.prototype;h.ngAfterViewInit=function(){var a=this;this._ngZone.runOutsideAngular(function(){a._cleanupTransitionEnd=a._renderer.listen(a._elementRef.nativeElement,"transitionend",a._transitionendHandler)})};
h.ngOnDestroy=function(){var a;(a=this._cleanupTransitionEnd)==null||a.call(this)};h._getPrimaryBarTransform=function(){return"scaleX("+(this._isIndeterminate()?1:this.value/100)+")"};h._getBufferBarFlexBasis=function(){return(this.mode==="buffer"?this.bufferValue:100)+"%"};h._isIndeterminate=function(){return this.mode==="indeterminate"||this.mode==="query"};
da.Object.defineProperties(rJ.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()}}});rJ.\u0275fac=function(a){return new (a||rJ)};
rJ.\u0275cmp=C({type:rJ,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&&(Jf("aria-valuenow",b._isIndeterminate()?null:b.value)("mode",b.mode),zg("mat-"+b.color),yg("_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",ch],bufferValue:[2,"bufferValue","bufferValue",ch],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&&(Sf(0,"div",0),Uf(1,"div",1),F(2,RLa,1,0,"div",2),Tf(),Sf(3,"div",3),Uf(4,"span",4),Tf(),Sf(5,"div",5),Uf(6,"span",4),Tf());a&2&&(B(),xg("flex-basis",b._getBufferBarFlexBasis()),B(),G(b.mode==="buffer"?2:-1),B(),xg("transform",b._getPrimaryBarTransform()))},styles:[".mat-mdc-progress-bar{--mat-progress-bar-animation-multiplier: 1;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}.mat-progress-bar-reduced-motion{--mat-progress-bar-animation-multiplier: 2}.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(--mat-progress-bar-track-height, 4px),var(--mat-progress-bar-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(--mat-progress-bar-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(--mat-progress-bar-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-progress-bar-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(--mat-progress-bar-track-height, 4px);border-radius:var(--mat-progress-bar-track-shape, var(--mat-sys-corner-none))}.mdc-linear-progress__buffer-dots{background-image:radial-gradient(circle, var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant)) calc(var(--mat-progress-bar-track-height, 4px) / 2), transparent 0);background-repeat:repeat-x;background-size:calc(calc(var(--mat-progress-bar-track-height, 4px) / 2)*5);background-position:left;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering calc(250ms*var(--mat-progress-bar-animation-multiplier)) infinite linear}@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 calc(250ms*var(--mat-progress-bar-animation-multiplier)) 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(--mat-progress-bar-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 calc(2s*var(--mat-progress-bar-animation-multiplier)) 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 calc(2s*var(--mat-progress-bar-animation-multiplier)) 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 calc(2s*var(--mat-progress-bar-animation-multiplier)) 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 calc(2s*var(--mat-progress-bar-animation-multiplier)) 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(--mat-progress-bar-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 t8c=function(){};t8c.\u0275fac=function(a){return new (a||t8c)};t8c.\u0275mod=$e({type:t8c});t8c.\u0275inj=Dc({imports:[jz]});var u8c={fillStyle:"var(--ac-sys-color-chart-primary, #3367D6)",globalAlpha:.1},v8c=function(a){UG.call(this,a)};Z(v8c,UG);v8c.prototype.drawV1=function(a){this.drawInternal(a)};v8c.prototype.onResizeChange=function(a,b){Bk(a)&&this.drawInternal(b)};v8c.prototype.onXAxisChange=function(a,b){el(a)&&this.drawInternal(b)};
v8c.prototype.drawInternal=function(a){var b;if((b=a.state)==null?0:b.xAxis){var c=a.data;b=a.state;var d=a.config;if(c&&b){var e=b.resize;b=b.xAxis;if(e&&b){var f=Math.max(0,e.width-e.margins.left-e.margins.right);a=(d==null?0:d.coverTopMargin)?e.height:Math.max(0,e.height-e.margins.top-e.margins.bottom);if(b=hl(b,0,f)){this.canvas.style.left=e.margins.left+"px";this.canvas.style.top=((d==null?0:d.coverTopMargin)?0:e.margins.top)+"px";ml(this.canvas,this.base,a,f);this.ctx.save();kl(this.ctx,u8c,
this.base);if(c.paused||typeof c.domains==="boolean"&&c.domains===!0)this.ctx.beginPath(),this.ctx.rect(0,0,f,a),this.ctx.fill();else if(Array.isArray(c.domains))for(c=l(c.domains),d=c.next();!d.done;d=c.next())e=d.value,d=b(e.start.valueOf()),e=b(e.end.valueOf()),this.ctx.beginPath(),this.ctx.rect(d,0,e-d,a),this.ctx.fill();this.ctx.restore()}}}}else if((c=a.state)==null?0:c.categoricalAxis)if(b=a.data,c=a.state,a=a.config,b&&c&&(c=c.resize)){d=Math.max(0,c.width-c.margins.left-c.margins.right);
e=(a==null?0:a.coverTopMargin)?c.height:Math.max(0,c.height-c.margins.top-c.margins.bottom);this.canvas.style.left=c.margins.left+"px";this.canvas.style.top=((a==null?0:a.coverTopMargin)?0:c.margins.top)+"px";ml(this.canvas,this.base,e,d);this.ctx.save();kl(this.ctx,u8c,this.base);if(b.paused||typeof b.domains==="boolean"&&b.domains===!0)this.ctx.beginPath(),this.ctx.rect(0,0,d,e),this.ctx.fill();this.ctx.restore()}};var w8c=new em("Loading {chartTitle}"),sJ=function(a,b,c,d,e){eH.call(this,a,b,c);var f=this;this.cdr=d;this.ngZone=e;this.showImmediately=this.coverTopMargin=this.useProgressBar=!1;this.spinnerDiameter=40;this.bodyTop=this.bodyLeft=this.bodyWidth=this.bodyHeight=0;this.dataSubject=new Xj({domains:[],paused:!1});this.configSubject=new Xj({coverTopMargin:!1});this.showObservable=this.showSubject=new Xj(!1);this.hasShownForData=!1;this.loadingIndicatorLabel=w8c.format({chartTitle:"chart"});a=new v8c(a.nativeElement);
this.views.push(a);this.ngZoneDataObservable=this.dataObservable.pipe(nf(0),Ik(this.ngZone));this.ngZoneDataObservable.pipe(A(function(g){var k;g=(k=g.currentValue)==null?void 0:k.domains;return Array.isArray(g)?g.length>0:g!=null?g:!1}),Af(this.destroyed)).subscribe(function(g){f.hasShownForData=f.hasShownForData||g;f.showImmediately&&!f.hasShownForData||f.showSubject.next(g)})};Z(sJ,eH);sJ.\u0275dir=eH.\u0275dir;
sJ.prototype.ngOnInit=function(){eH.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject})};
sJ.prototype.ngOnChanges=function(a){var b=this;eH.prototype.ngOnChanges.call(this,a);"showPausedBeforeFirstLoad"in a&&this.withLatest(function(c){c=c.state;var d;b.dataSubject.next(Object.assign({},b.dataSubject.value,{paused:!(!b.showPausedBeforeFirstLoad||(c==null?0:(d=c.loading)==null?0:d.hasLoadingEverOccurred))}))});"coverTopMargin"in a&&this.configSubject.next({coverTopMargin:this.coverTopMargin});"showImmediately"in a&&(this.hasShownForData||this.showSubject.next(this.showImmediately))};
sJ.prototype.onResizeChange=function(a,b){var c=this,d;if(a=b==null?void 0:(d=b.state)==null?void 0:d.resize)this.bodyLeft=a.margins.left,this.bodyWidth=a.width-a.margins.left-a.margins.right,this.coverTopMargin?(this.bodyTop=0,this.bodyHeight=a.height):(this.bodyTop=a.margins.top,this.bodyHeight=a.height-a.margins.top-a.margins.bottom),this.spinnerDiameter=Math.max(12,Math.min(40,this.bodyHeight-16)),this.ngZone.run(function(){c.cdr.markForCheck()})};
sJ.prototype.onLoadingChange=function(a){var b=a.currentValue;a=!(!this.showPausedBeforeFirstLoad||(b==null?0:b.hasLoadingEverOccurred));if((b==null?0:b.sourceToDescriptionMap)&&(b==null?0:b.sourceToLoadingMap)){var c=x8c(b==null?void 0:b.sourceToLoadingMap,b==null?void 0:b.sourceToDescriptionMap);if(typeof c==="boolean")this.dataSubject.next({domains:c,paused:a});else{b=[];c=l(c);for(var d=c.next();!d.done;d=c.next())d=d.value,b.push({start:d.start,end:d.end,loadingDescription:d.layerNames});this.dataSubject.next({domains:b,
paused:a})}}else this.dataSubject.next({domains:[],paused:a})};
var x8c=function(a,b){for(var c=[],d=l(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=e.value;var f=a[e];if(typeof f==="boolean"){if(f===!0)return!0}else{e=b[e];f=l(f);for(var g=f.next();!g.done;g=f.next())g=g.value,c.push({start:g[0],end:g[1],layerNames:[e]})}}c.sort(function(k,m){return m.start.getTime()-k.start.getTime()});a=c.pop();for(b=[];c.length!==0;)if(a){if(d=c.pop())a.start.getTime()<=d.start.getTime()&&a.end.getTime()>=d.start.getTime()?a={start:a.start,end:d.end.getTime()>a.end.getTime()?
d.end:a.end,layerNames:Array.from(new Set(a.layerNames.concat(d.layerNames)))}:(b.push(a),a=d)}else a=c.pop();a&&b.push(a);return b};da.Object.defineProperties(sJ.prototype,{chartTitle:{configurable:!0,enumerable:!0,set:function(a){a&&(this.loadingIndicatorLabel=w8c.format({chartTitle:a}))}}});sJ.\u0275fac=function(a){return new (a||sJ)(Ve(Gd),Ve(xG),Ve(LG),Ve(Yx),Ve(Tg))};
sJ.\u0275cmp=C({type:sJ,selectors:[["ac-loading"]],hostAttrs:[1,"composable-layer","loading"],inputs:{chartTitle:"chartTitle",showPausedBeforeFirstLoad:"showPausedBeforeFirstLoad",useProgressBar:"useProgressBar",coverTopMargin:"coverTopMargin",showImmediately:"showImmediately"},features:[Ff,Gx],decls:2,vars:3,consts:[["class","chart-body",3,"height","width","top","left",4,"ngIf"],[1,"chart-body"],["color","primary",3,"diameter","strokeWidth",4,"ngIf"],["mode","indeterminate","color","primary",4,"ngIf"],
["color","primary",3,"diameter","strokeWidth"],["mode","indeterminate","color","primary"]],template:function(a,b){a&1&&(E(0,ULa,3,10,"div",0),U(1,"async"));a&2&&I("ngIf",W(1,1,b.showObservable))},dependencies:[rJ,NI,jy,py],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}[_nghost-%COMP%]    {--mat-progress-bar-active-indicator-height: 4px;--mat-progress-bar-track-height: 4px;--mat-progress-bar-track-shape: 0;--mat-fab-container-elevation-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);--mat-fab-container-shape: 50%;--mat-fab-touch-target-size: 48px;--mat-fab-extended-container-elevation-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);--mat-fab-extended-container-height: 48px;--mat-fab-extended-container-shape: 24px;--mat-fab-extended-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-fab-extended-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-fab-extended-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12);--mat-fab-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-fab-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12);--mat-fab-small-container-elevation-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);--mat-fab-small-container-shape: 50%;--mat-fab-small-touch-target-size: 48px;--mat-fab-small-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-fab-small-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-fab-small-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12);--mat-fab-container-color: white;--mat-fab-disabled-state-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-fab-disabled-state-foreground-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-fab-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-fab-focus-state-layer-opacity: 0.12;--mat-fab-foreground-color: rgba(0, 0, 0, 0.87);--mat-fab-hover-state-layer-opacity: 0.04;--mat-fab-pressed-state-layer-opacity: 0.12;--mat-fab-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-fab-small-container-color: white;--mat-fab-small-disabled-state-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-fab-small-disabled-state-foreground-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-fab-small-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-fab-small-focus-state-layer-opacity: 0.12;--mat-fab-small-foreground-color: rgba(0, 0, 0, 0.87);--mat-fab-small-hover-state-layer-opacity: 0.04;--mat-fab-small-pressed-state-layer-opacity: 0.12;--mat-fab-small-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-fab-small-state-layer-color: rgba(0, 0, 0, 0.87);--mat-fab-state-layer-color: rgba(0, 0, 0, 0.87);--mat-fab-small-touch-target-display: block;--mat-fab-touch-target-display: block;--mat-fab-extended-label-text-font: Roboto, sans-serif;--mat-fab-extended-label-text-size: 14px;--mat-fab-extended-label-text-tracking: 0.0892857143em;--mat-fab-extended-label-text-weight: 500;--mat-button-filled-container-shape: 4px;--mat-button-filled-horizontal-padding: 16px;--mat-button-filled-icon-offset: -4px;--mat-button-filled-icon-spacing: 8px;--mat-button-filled-touch-target-size: 48px;--mat-button-outlined-container-shape: 4px;--mat-button-outlined-horizontal-padding: 15px;--mat-button-outlined-icon-offset: -4px;--mat-button-outlined-icon-spacing: 8px;--mat-button-outlined-keep-touch-target: false;--mat-button-outlined-outline-width: 1px;--mat-button-outlined-touch-target-size: 48px;--mat-button-protected-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-button-protected-container-shape: 4px;--mat-button-protected-disabled-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);--mat-button-protected-focus-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);--mat-button-protected-horizontal-padding: 16px;--mat-button-protected-hover-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);--mat-button-protected-icon-offset: -4px;--mat-button-protected-icon-spacing: 8px;--mat-button-protected-pressed-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-button-protected-touch-target-size: 48px;--mat-button-text-container-shape: 4px;--mat-button-text-horizontal-padding: 8px;--mat-button-text-icon-offset: 0;--mat-button-text-icon-spacing: 8px;--mat-button-text-with-icon-horizontal-padding: 8px;--mat-button-text-touch-target-size: 48px;--mat-button-tonal-container-shape: 4px;--mat-button-tonal-horizontal-padding: 16px;--mat-button-tonal-icon-offset: -4px;--mat-button-tonal-icon-spacing: 8px;--mat-button-tonal-touch-target-size: 48px;--mat-button-filled-container-color: white;--mat-button-filled-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-filled-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-button-filled-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-button-filled-focus-state-layer-opacity: 0.12;--mat-button-filled-hover-state-layer-opacity: 0.04;--mat-button-filled-label-text-color: rgba(0, 0, 0, 0.87);--mat-button-filled-pressed-state-layer-opacity: 0.12;--mat-button-filled-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-filled-state-layer-color: rgba(0, 0, 0, 0.87);--mat-button-outlined-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-button-outlined-disabled-outline-color: rgba(0, 0, 0, 0.12);--mat-button-outlined-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-button-outlined-focus-state-layer-opacity: 0.12;--mat-button-outlined-hover-state-layer-opacity: 0.04;--mat-button-outlined-label-text-color: rgba(0, 0, 0, 0.87);--mat-button-outlined-outline-color: rgba(0, 0, 0, 0.12);--mat-button-outlined-pressed-state-layer-opacity: 0.12;--mat-button-outlined-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-outlined-state-layer-color: rgba(0, 0, 0, 0.87);--mat-button-protected-container-color: white;--mat-button-protected-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-protected-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-button-protected-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-button-protected-focus-state-layer-opacity: 0.12;--mat-button-protected-hover-state-layer-opacity: 0.04;--mat-button-protected-label-text-color: rgba(0, 0, 0, 0.87);--mat-button-protected-pressed-state-layer-opacity: 0.12;--mat-button-protected-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-protected-state-layer-color: rgba(0, 0, 0, 0.87);--mat-button-text-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-button-text-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-button-text-focus-state-layer-opacity: 0.12;--mat-button-text-hover-state-layer-opacity: 0.04;--mat-button-text-label-text-color: rgba(0, 0, 0, 0.87);--mat-button-text-pressed-state-layer-opacity: 0.12;--mat-button-text-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-text-state-layer-color: rgba(0, 0, 0, 0.87);--mat-button-tonal-container-color: white;--mat-button-tonal-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-tonal-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-button-tonal-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-button-tonal-focus-state-layer-opacity: 0.12;--mat-button-tonal-hover-state-layer-opacity: 0.04;--mat-button-tonal-label-text-color: rgba(0, 0, 0, 0.87);--mat-button-tonal-pressed-state-layer-opacity: 0.12;--mat-button-tonal-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-button-tonal-state-layer-color: rgba(0, 0, 0, 0.87);--mat-button-filled-container-height: 36px;--mat-button-filled-touch-target-display: block;--mat-button-outlined-container-height: 36px;--mat-button-outlined-touch-target-display: block;--mat-button-protected-container-height: 36px;--mat-button-protected-touch-target-display: block;--mat-button-text-container-height: 36px;--mat-button-text-touch-target-display: block;--mat-button-tonal-container-height: 36px;--mat-button-tonal-touch-target-display: block;--mat-button-filled-label-text-font: Roboto, sans-serif;--mat-button-filled-label-text-size: 14px;--mat-button-filled-label-text-tracking: 0.0892857143em;--mat-button-filled-label-text-transform: none;--mat-button-filled-label-text-weight: 500;--mat-button-outlined-label-text-font: Roboto, sans-serif;--mat-button-outlined-label-text-size: 14px;--mat-button-outlined-label-text-tracking: 0.0892857143em;--mat-button-outlined-label-text-transform: none;--mat-button-outlined-label-text-weight: 500;--mat-button-protected-label-text-font: Roboto, sans-serif;--mat-button-protected-label-text-size: 14px;--mat-button-protected-label-text-tracking: 0.0892857143em;--mat-button-protected-label-text-transform: none;--mat-button-protected-label-text-weight: 500;--mat-button-text-label-text-font: Roboto, sans-serif;--mat-button-text-label-text-size: 14px;--mat-button-text-label-text-tracking: 0.0892857143em;--mat-button-text-label-text-transform: none;--mat-button-text-label-text-weight: 500;--mat-button-tonal-label-text-font: Roboto, sans-serif;--mat-button-tonal-label-text-size: 14px;--mat-button-tonal-label-text-tracking: 0.0892857143em;--mat-button-tonal-label-text-transform: none;--mat-button-tonal-label-text-weight: 500;--mat-checkbox-disabled-selected-checkmark-color: white;--mat-checkbox-selected-focus-state-layer-opacity: 0.12;--mat-checkbox-selected-hover-state-layer-opacity: 0.04;--mat-checkbox-selected-pressed-state-layer-opacity: 0.12;--mat-checkbox-unselected-focus-state-layer-opacity: 0.12;--mat-checkbox-unselected-hover-state-layer-opacity: 0.04;--mat-checkbox-unselected-pressed-state-layer-opacity: 0.12;--mat-checkbox-touch-target-size: 48px;--mat-checkbox-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-checkbox-label-text-color: rgba(0, 0, 0, 0.87);--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #3367d6;--mat-checkbox-selected-hover-icon-color: #3367d6;--mat-checkbox-selected-icon-color: #3367d6;--mat-checkbox-selected-pressed-icon-color: #3367d6;--mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-icon-color: rgba(0, 0, 0, 0.54);--mat-checkbox-selected-focus-state-layer-color: #3367d6;--mat-checkbox-selected-hover-state-layer-color: #3367d6;--mat-checkbox-selected-pressed-state-layer-color: #3367d6;--mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, 0.87);--mat-checkbox-touch-target-display: block;--mat-checkbox-state-layer-size: 40px;--mat-checkbox-label-text-font: Roboto, sans-serif;--mat-checkbox-label-text-line-height: 20px;--mat-checkbox-label-text-size: 14px;--mat-checkbox-label-text-tracking: 0.0178571429em;--mat-checkbox-label-text-weight: 400;--mat-icon-button-icon-size: 24px;--mat-icon-button-container-shape: 50%;--mat-icon-button-touch-target-size: 48px;--mat-icon-button-disabled-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-icon-button-disabled-state-layer-color: rgba(0, 0, 0, 0.54);--mat-icon-button-focus-state-layer-opacity: 0.12;--mat-icon-button-hover-state-layer-opacity: 0.04;--mat-icon-button-icon-color: inherit;--mat-icon-button-pressed-state-layer-opacity: 0.12;--mat-icon-button-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-icon-button-state-layer-color: rgba(0, 0, 0, 0.87);--mat-icon-button-touch-target-display: block;--mat-autocomplete-container-shape: 4px;--mat-autocomplete-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-autocomplete-background-color: white;--mat-form-field-filled-active-indicator-height: 1px;--mat-form-field-filled-focus-active-indicator-height: 2px;--mat-form-field-filled-container-shape: 4px;--mat-form-field-outlined-outline-width: 1px;--mat-form-field-outlined-focus-outline-width: 2px;--mat-form-field-outlined-container-shape: 4px;--mat-form-field-focus-select-arrow-color: color-mix(in srgb, #3367d6 87%, transparent);--mat-form-field-filled-caret-color: #3367d6;--mat-form-field-filled-focus-active-indicator-color: #3367d6;--mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #3367d6 87%, transparent);--mat-form-field-outlined-caret-color: #3367d6;--mat-form-field-outlined-focus-outline-color: #3367d6;--mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #3367d6 87%, transparent);--mat-form-field-disabled-input-text-placeholder-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-form-field-state-layer-color: rgba(0, 0, 0, 0.87);--mat-form-field-error-text-color: #d50000;--mat-form-field-select-option-text-color: inherit;--mat-form-field-select-disabled-option-text-color: GrayText;--mat-form-field-leading-icon-color: unset;--mat-form-field-disabled-leading-icon-color: unset;--mat-form-field-trailing-icon-color: unset;--mat-form-field-disabled-trailing-icon-color: unset;--mat-form-field-error-focus-trailing-icon-color: unset;--mat-form-field-error-hover-trailing-icon-color: unset;--mat-form-field-error-trailing-icon-color: unset;--mat-form-field-enabled-select-arrow-color: rgba(0, 0, 0, 0.54);--mat-form-field-disabled-select-arrow-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-form-field-hover-state-layer-opacity: 0.04;--mat-form-field-focus-state-layer-opacity: 0.12;--mat-form-field-filled-container-color: #f6f6f6;--mat-form-field-filled-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 4%, transparent);--mat-form-field-filled-label-text-color: rgba(0, 0, 0, 0.54);--mat-form-field-filled-hover-label-text-color: rgba(0, 0, 0, 0.54);--mat-form-field-filled-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-form-field-filled-input-text-color: rgba(0, 0, 0, 0.87);--mat-form-field-filled-disabled-input-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-form-field-filled-input-text-placeholder-color: rgba(0, 0, 0, 0.54);--mat-form-field-filled-error-hover-label-text-color: #d50000;--mat-form-field-filled-error-focus-label-text-color: #d50000;--mat-form-field-filled-error-label-text-color: #d50000;--mat-form-field-filled-error-caret-color: #d50000;--mat-form-field-filled-active-indicator-color: rgba(0, 0, 0, 0.54);--mat-form-field-filled-disabled-active-indicator-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-form-field-filled-hover-active-indicator-color: rgba(0, 0, 0, 0.87);--mat-form-field-filled-error-active-indicator-color: #d50000;--mat-form-field-filled-error-focus-active-indicator-color: #d50000;--mat-form-field-filled-error-hover-active-indicator-color: #d50000;--mat-form-field-outlined-label-text-color: rgba(0, 0, 0, 0.54);--mat-form-field-outlined-hover-label-text-color: rgba(0, 0, 0, 0.87);--mat-form-field-outlined-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-form-field-outlined-input-text-color: rgba(0, 0, 0, 0.87);--mat-form-field-outlined-disabled-input-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-form-field-outlined-input-text-placeholder-color: rgba(0, 0, 0, 0.54);--mat-form-field-outlined-error-caret-color: #d50000;--mat-form-field-outlined-error-focus-label-text-color: #d50000;--mat-form-field-outlined-error-label-text-color: #d50000;--mat-form-field-outlined-error-hover-label-text-color: #d50000;--mat-form-field-outlined-outline-color: rgba(0, 0, 0, 0.38);--mat-form-field-outlined-disabled-outline-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-form-field-outlined-hover-outline-color: rgba(0, 0, 0, 0.87);--mat-form-field-outlined-error-focus-outline-color: #d50000;--mat-form-field-outlined-error-hover-outline-color: #d50000;--mat-form-field-outlined-error-outline-color: #d50000;--mat-form-field-container-height: 56px;--mat-form-field-filled-label-display: block;--mat-form-field-container-vertical-padding: 16px;--mat-form-field-filled-with-label-container-padding-top: 24px;--mat-form-field-filled-with-label-container-padding-bottom: 8px;--mat-form-field-container-text-font: Roboto, sans-serif;--mat-form-field-container-text-line-height: 24px;--mat-form-field-container-text-size: 16px;--mat-form-field-container-text-tracking: 0.03125em;--mat-form-field-container-text-weight: 400;--mat-form-field-outlined-label-text-populated-size: 16px;--mat-form-field-subscript-text-font: Roboto, sans-serif;--mat-form-field-subscript-text-line-height: 20px;--mat-form-field-subscript-text-size: 12px;--mat-form-field-subscript-text-tracking: 0.0333333333em;--mat-form-field-subscript-text-weight: 400;--mat-form-field-filled-label-text-font: Roboto, sans-serif;--mat-form-field-filled-label-text-size: 16px;--mat-form-field-filled-label-text-tracking: 0.03125em;--mat-form-field-filled-label-text-weight: 400;--mat-form-field-outlined-label-text-font: Roboto, sans-serif;--mat-form-field-outlined-label-text-size: 16px;--mat-form-field-outlined-label-text-tracking: 0.03125em;--mat-form-field-outlined-label-text-weight: 400;--mat-app-background-color: #fafafa;--mat-app-text-color: rgba(0, 0, 0, 0.87);--mat-app-elevation-shadow-level-0: 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);--mat-app-elevation-shadow-level-1: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-2: 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-app-elevation-shadow-level-3: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-4: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-5: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 5px 8px 0px rgba(0, 0, 0, 0.14), 0px 1px 14px 0px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-6: 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);--mat-app-elevation-shadow-level-7: 0px 4px 5px -2px rgba(0, 0, 0, 0.2), 0px 7px 10px 1px rgba(0, 0, 0, 0.14), 0px 2px 16px 1px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-8: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-9: 0px 5px 6px -3px rgba(0, 0, 0, 0.2), 0px 9px 12px 1px rgba(0, 0, 0, 0.14), 0px 3px 16px 2px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-10: 0px 6px 6px -3px rgba(0, 0, 0, 0.2), 0px 10px 14px 1px rgba(0, 0, 0, 0.14), 0px 4px 18px 3px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-11: 0px 6px 7px -4px rgba(0, 0, 0, 0.2), 0px 11px 15px 1px rgba(0, 0, 0, 0.14), 0px 4px 20px 3px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-12: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-13: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 13px 19px 2px rgba(0, 0, 0, 0.14), 0px 5px 24px 4px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-14: 0px 7px 9px -4px rgba(0, 0, 0, 0.2), 0px 14px 21px 2px rgba(0, 0, 0, 0.14), 0px 5px 26px 4px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-15: 0px 8px 9px -5px rgba(0, 0, 0, 0.2), 0px 15px 22px 2px rgba(0, 0, 0, 0.14), 0px 6px 28px 5px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-16: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-17: 0px 8px 11px -5px rgba(0, 0, 0, 0.2), 0px 17px 26px 2px rgba(0, 0, 0, 0.14), 0px 6px 32px 5px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-18: 0px 9px 11px -5px rgba(0, 0, 0, 0.2), 0px 18px 28px 2px rgba(0, 0, 0, 0.14), 0px 7px 34px 6px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-19: 0px 9px 12px -6px rgba(0, 0, 0, 0.2), 0px 19px 29px 2px rgba(0, 0, 0, 0.14), 0px 7px 36px 6px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-20: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 20px 31px 3px rgba(0, 0, 0, 0.14), 0px 8px 38px 7px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-21: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 21px 33px 3px rgba(0, 0, 0, 0.14), 0px 8px 40px 7px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-22: 0px 10px 14px -6px rgba(0, 0, 0, 0.2), 0px 22px 35px 3px rgba(0, 0, 0, 0.14), 0px 8px 42px 7px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-23: 0px 11px 14px -7px rgba(0, 0, 0, 0.2), 0px 23px 36px 3px rgba(0, 0, 0, 0.14), 0px 9px 44px 8px rgba(0, 0, 0, 0.12);--mat-app-elevation-shadow-level-24: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mat-ripple-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-option-selected-state-label-text-color: #3367d6;--mat-option-label-text-color: rgba(0, 0, 0, 0.87);--mat-option-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 4%, transparent);--mat-option-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-option-selected-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-optgroup-label-text-color: rgba(0, 0, 0, 0.87);--mat-pseudo-checkbox-full-selected-icon-color: #3367d6;--mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, 0.54);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #3367d6;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-option-label-text-font: Roboto, sans-serif;--mat-option-label-text-line-height: 24px;--mat-option-label-text-size: 16px;--mat-option-label-text-tracking: 0.03125em;--mat-option-label-text-weight: 400;--mat-optgroup-label-text-font: Roboto, sans-serif;--mat-optgroup-label-text-line-height: 24px;--mat-optgroup-label-text-size: 16px;--mat-optgroup-label-text-tracking: 0.03125em;--mat-optgroup-label-text-weight: 400;--mat-select-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, 0.87);--mat-select-disabled-trigger-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-select-placeholder-text-color: rgba(0, 0, 0, 0.54);--mat-select-enabled-arrow-color: rgba(0, 0, 0, 0.54);--mat-select-disabled-arrow-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-select-focused-arrow-color: #3367d6;--mat-select-invalid-arrow-color: #d50000;--mat-select-arrow-transform: translateY(-8px);--mat-select-trigger-text-font: Roboto, sans-serif;--mat-select-trigger-text-line-height: 24px;--mat-select-trigger-text-size: 16px;--mat-select-trigger-text-tracking: 0.03125em;--mat-select-trigger-text-weight: 400;--mat-progress-spinner-active-indicator-width: 4px;--mat-progress-spinner-size: 48px;--mat-progress-spinner-active-indicator-color: #3367d6;--mat-menu-container-shape: 4px;--mat-menu-divider-bottom-spacing: 0;--mat-menu-divider-top-spacing: 0;--mat-menu-item-spacing: 16px;--mat-menu-item-icon-size: 24px;--mat-menu-item-leading-spacing: 16px;--mat-menu-item-trailing-spacing: 16px;--mat-menu-item-with-icon-leading-spacing: 16px;--mat-menu-item-with-icon-trailing-spacing: 16px;--mat-menu-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);--mat-menu-item-label-text-color: rgba(0, 0, 0, 0.87);--mat-menu-item-icon-color: rgba(0, 0, 0, 0.87);--mat-menu-item-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 4%, transparent);--mat-menu-item-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-menu-container-color: white;--mat-menu-divider-color: rgba(0, 0, 0, 0.12);--mat-menu-item-label-text-font: Roboto, sans-serif;--mat-menu-item-label-text-size: 16px;--mat-menu-item-label-text-tracking: 0.03125em;--mat-menu-item-label-text-line-height: 24px;--mat-menu-item-label-text-weight: 400;--mat-tooltip-container-shape: 4px;--mat-tooltip-supporting-text-line-height: 16px;--mat-tooltip-container-color: #424242;--mat-tooltip-supporting-text-color: white;--mat-tooltip-supporting-text-font: Roboto, sans-serif;--mat-tooltip-supporting-text-size: 12px;--mat-tooltip-supporting-text-weight: 400;--mat-tooltip-supporting-text-tracking: 0.0333333333em;--mat-divider-width: 1px;--mat-divider-color: rgba(0, 0, 0, 0.12)}[_nghost-%COMP%]     .mat-mdc-progress-bar{--mat-progress-bar-active-indicator-color: #3367d6;--mat-progress-bar-track-color: rgba(51, 103, 214, 0.25)}[_nghost-%COMP%]     .mat-mdc-progress-bar.mat-accent{--mat-progress-bar-active-indicator-color: #3367d6;--mat-progress-bar-track-color: rgba(51, 103, 214, 0.25)}[_nghost-%COMP%]     .mat-mdc-progress-bar.mat-warn{--mat-progress-bar-active-indicator-color: #d50000;--mat-progress-bar-track-color: rgba(213, 0, 0, 0.25)}[_nghost-%COMP%]     .mat-mdc-fab.mat-primary, [_nghost-%COMP%]     .mat-mdc-mini-fab.mat-primary{--mat-fab-container-color: #3367d6;--mat-fab-foreground-color: white;--mat-fab-ripple-color: color-mix(in srgb, #3367d6 12%, transparent);--mat-fab-small-container-color: #3367d6;--mat-fab-small-foreground-color: white;--mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-state-layer-color: white;--mat-fab-state-layer-color: white}[_nghost-%COMP%]     .mat-mdc-fab.mat-accent, [_nghost-%COMP%]     .mat-mdc-mini-fab.mat-accent{--mat-fab-container-color: #3367d6;--mat-fab-foreground-color: white;--mat-fab-ripple-color: color-mix(in srgb, #3367d6 12%, transparent);--mat-fab-small-container-color: #3367d6;--mat-fab-small-foreground-color: white;--mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-state-layer-color: white;--mat-fab-state-layer-color: white}[_nghost-%COMP%]     .mat-mdc-fab.mat-warn, [_nghost-%COMP%]     .mat-mdc-mini-fab.mat-warn{--mat-fab-container-color: #d50000;--mat-fab-foreground-color: white;--mat-fab-ripple-color: color-mix(in srgb, #d50000 12%, transparent);--mat-fab-small-container-color: #d50000;--mat-fab-small-foreground-color: white;--mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-fab-small-state-layer-color: white;--mat-fab-state-layer-color: white}[_nghost-%COMP%]     .mat-mdc-button.mat-primary, [_nghost-%COMP%]     .mat-mdc-unelevated-button.mat-primary, [_nghost-%COMP%]     .mat-mdc-raised-button.mat-primary, [_nghost-%COMP%]     .mat-mdc-outlined-button.mat-primary, [_nghost-%COMP%]     .mat-tonal-button.mat-primary{--mat-button-filled-container-color: #3367d6;--mat-button-filled-label-text-color: white;--mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-filled-state-layer-color: white;--mat-button-outlined-label-text-color: #3367d6;--mat-button-outlined-outline-color: rgba(0, 0, 0, 0.12);--mat-button-outlined-ripple-color: color-mix(in srgb, #3367d6 12%, transparent);--mat-button-outlined-state-layer-color: #3367d6;--mat-button-protected-container-color: #3367d6;--mat-button-protected-label-text-color: white;--mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-protected-state-layer-color: white;--mat-button-text-label-text-color: #3367d6;--mat-button-text-ripple-color: color-mix(in srgb, #3367d6 12%, transparent);--mat-button-text-state-layer-color: #3367d6;--mat-button-tonal-container-color: #3367d6;--mat-button-tonal-label-text-color: white;--mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-tonal-state-layer-color: white}[_nghost-%COMP%]     .mat-mdc-button.mat-accent, [_nghost-%COMP%]     .mat-mdc-unelevated-button.mat-accent, [_nghost-%COMP%]     .mat-mdc-raised-button.mat-accent, [_nghost-%COMP%]     .mat-mdc-outlined-button.mat-accent, [_nghost-%COMP%]     .mat-tonal-button.mat-accent{--mat-button-filled-container-color: #3367d6;--mat-button-filled-label-text-color: white;--mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-filled-state-layer-color: white;--mat-button-outlined-label-text-color: #3367d6;--mat-button-outlined-outline-color: rgba(0, 0, 0, 0.12);--mat-button-outlined-ripple-color: color-mix(in srgb, #3367d6 12%, transparent);--mat-button-outlined-state-layer-color: #3367d6;--mat-button-protected-container-color: #3367d6;--mat-button-protected-label-text-color: white;--mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-protected-state-layer-color: white;--mat-button-text-label-text-color: #3367d6;--mat-button-text-ripple-color: color-mix(in srgb, #3367d6 12%, transparent);--mat-button-text-state-layer-color: #3367d6;--mat-button-tonal-container-color: #3367d6;--mat-button-tonal-label-text-color: white;--mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-tonal-state-layer-color: white}[_nghost-%COMP%]     .mat-mdc-button.mat-warn, [_nghost-%COMP%]     .mat-mdc-unelevated-button.mat-warn, [_nghost-%COMP%]     .mat-mdc-raised-button.mat-warn, [_nghost-%COMP%]     .mat-mdc-outlined-button.mat-warn, [_nghost-%COMP%]     .mat-tonal-button.mat-warn{--mat-button-filled-container-color: #d50000;--mat-button-filled-label-text-color: white;--mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-filled-state-layer-color: white;--mat-button-outlined-label-text-color: #d50000;--mat-button-outlined-outline-color: rgba(0, 0, 0, 0.12);--mat-button-outlined-ripple-color: color-mix(in srgb, #d50000 12%, transparent);--mat-button-outlined-state-layer-color: #d50000;--mat-button-protected-container-color: #d50000;--mat-button-protected-label-text-color: white;--mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-protected-state-layer-color: white;--mat-button-text-label-text-color: #d50000;--mat-button-text-ripple-color: color-mix(in srgb, #d50000 12%, transparent);--mat-button-text-state-layer-color: #d50000;--mat-button-tonal-container-color: #d50000;--mat-button-tonal-label-text-color: white;--mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--mat-button-tonal-state-layer-color: white}[_nghost-%COMP%]     .mat-mdc-checkbox.mat-primary{--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #3367d6;--mat-checkbox-selected-hover-icon-color: #3367d6;--mat-checkbox-selected-icon-color: #3367d6;--mat-checkbox-selected-pressed-icon-color: #3367d6;--mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-icon-color: rgba(0, 0, 0, 0.54);--mat-checkbox-selected-focus-state-layer-color: #3367d6;--mat-checkbox-selected-hover-state-layer-color: #3367d6;--mat-checkbox-selected-pressed-state-layer-color: #3367d6;--mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, 0.87)}[_nghost-%COMP%]     .mat-mdc-checkbox.mat-warn{--mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-checkbox-selected-checkmark-color: white;--mat-checkbox-selected-focus-icon-color: #d50000;--mat-checkbox-selected-hover-icon-color: #d50000;--mat-checkbox-selected-icon-color: #d50000;--mat-checkbox-selected-pressed-icon-color: #d50000;--mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-icon-color: rgba(0, 0, 0, 0.54);--mat-checkbox-selected-focus-state-layer-color: #d50000;--mat-checkbox-selected-hover-state-layer-color: #d50000;--mat-checkbox-selected-pressed-state-layer-color: #d50000;--mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, 0.87);--mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, 0.87)}[_nghost-%COMP%]     .mat-mdc-icon-button.mat-primary{--mat-icon-button-icon-color: #3367d6;--mat-icon-button-state-layer-color: #3367d6;--mat-icon-button-ripple-color: color-mix(in srgb, #3367d6 12%, transparent)}[_nghost-%COMP%]     .mat-mdc-icon-button.mat-accent{--mat-icon-button-icon-color: #3367d6;--mat-icon-button-state-layer-color: #3367d6;--mat-icon-button-ripple-color: color-mix(in srgb, #3367d6 12%, transparent)}[_nghost-%COMP%]     .mat-mdc-icon-button.mat-warn{--mat-icon-button-icon-color: #d50000;--mat-icon-button-state-layer-color: #d50000;--mat-icon-button-ripple-color: color-mix(in srgb, #d50000 12%, transparent)}[_nghost-%COMP%]     .mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 48px;--mat-icon-button-state-layer-size: 48px;width:var(--mat-icon-button-state-layer-size);height:var(--mat-icon-button-state-layer-size);padding:12px}[_nghost-%COMP%]     .mat-mdc-standard-chip{--mat-chip-container-shape-radius: 16px;--mat-chip-disabled-container-opacity: 0.4;--mat-chip-disabled-outline-color: transparent;--mat-chip-flat-selected-outline-width: 0;--mat-chip-focus-outline-color: transparent;--mat-chip-hover-state-layer-opacity: 0.04;--mat-chip-outline-color: transparent;--mat-chip-outline-width: 0;--mat-chip-selected-hover-state-layer-opacity: 0.04;--mat-chip-selected-trailing-action-state-layer-color: transparent;--mat-chip-trailing-action-focus-opacity: 1;--mat-chip-trailing-action-focus-state-layer-opacity: 0;--mat-chip-trailing-action-hover-state-layer-opacity: 0;--mat-chip-trailing-action-opacity: 0.54;--mat-chip-trailing-action-state-layer-color: transparent;--mat-chip-with-avatar-avatar-shape-radius: 14px;--mat-chip-with-avatar-avatar-size: 28px;--mat-chip-with-avatar-disabled-avatar-opacity: 1;--mat-chip-with-icon-disabled-icon-opacity: 1;--mat-chip-with-icon-icon-size: 18px;--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity: 1}[_nghost-%COMP%]     .mat-mdc-standard-chip{--mat-chip-disabled-label-text-color: rgba(0, 0, 0, 0.87);--mat-chip-elevated-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-chip-elevated-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-chip-elevated-selected-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-chip-flat-disabled-selected-container-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-chip-focus-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-focus-state-layer-opacity: 0.12;--mat-chip-hover-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-label-text-color: rgba(0, 0, 0, 0.87);--mat-chip-selected-disabled-trailing-icon-color: rgba(0, 0, 0, 0.87);--mat-chip-selected-focus-state-layer-color: 0.12;--mat-chip-selected-focus-state-layer-opacity: 0.12;--mat-chip-selected-hover-state-layer-color: 0.04;--mat-chip-selected-label-text-color: rgba(0, 0, 0, 0.87);--mat-chip-selected-trailing-icon-color: rgba(0, 0, 0, 0.87);--mat-chip-with-icon-disabled-icon-color: rgba(0, 0, 0, 0.87);--mat-chip-with-icon-icon-color: rgba(0, 0, 0, 0.87);--mat-chip-with-icon-selected-icon-color: rgba(0, 0, 0, 0.87);--mat-chip-with-trailing-icon-disabled-trailing-icon-color: rgba(0, 0, 0, 0.87);--mat-chip-with-trailing-icon-trailing-icon-color: rgba(0, 0, 0, 0.87)}[_nghost-%COMP%]     .mat-mdc-standard-chip.mat-mdc-chip-selected.mat-primary, [_nghost-%COMP%]     .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-primary{--mat-chip-disabled-label-text-color: white;--mat-chip-elevated-container-color: #3367d6;--mat-chip-elevated-disabled-container-color: #3367d6;--mat-chip-elevated-selected-container-color: #3367d6;--mat-chip-flat-disabled-selected-container-color: #3367d6;--mat-chip-focus-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-focus-state-layer-opacity: 0.12;--mat-chip-hover-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-label-text-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-focus-state-layer-color: 0.12;--mat-chip-selected-focus-state-layer-opacity: 0.12;--mat-chip-selected-hover-state-layer-color: 0.04;--mat-chip-selected-label-text-color: white;--mat-chip-selected-trailing-icon-color: white;--mat-chip-with-icon-disabled-icon-color: white;--mat-chip-with-icon-icon-color: white;--mat-chip-with-icon-selected-icon-color: white;--mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mat-chip-with-trailing-icon-trailing-icon-color: white}[_nghost-%COMP%]     .mat-mdc-standard-chip.mat-mdc-chip-selected.mat-accent, [_nghost-%COMP%]     .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-accent{--mat-chip-disabled-label-text-color: white;--mat-chip-elevated-container-color: #3367d6;--mat-chip-elevated-disabled-container-color: #3367d6;--mat-chip-elevated-selected-container-color: #3367d6;--mat-chip-flat-disabled-selected-container-color: #3367d6;--mat-chip-focus-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-focus-state-layer-opacity: 0.12;--mat-chip-hover-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-label-text-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-focus-state-layer-color: 0.12;--mat-chip-selected-focus-state-layer-opacity: 0.12;--mat-chip-selected-hover-state-layer-color: 0.04;--mat-chip-selected-label-text-color: white;--mat-chip-selected-trailing-icon-color: white;--mat-chip-with-icon-disabled-icon-color: white;--mat-chip-with-icon-icon-color: white;--mat-chip-with-icon-selected-icon-color: white;--mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mat-chip-with-trailing-icon-trailing-icon-color: white}[_nghost-%COMP%]     .mat-mdc-standard-chip.mat-mdc-chip-selected.mat-warn, [_nghost-%COMP%]     .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-warn{--mat-chip-disabled-label-text-color: white;--mat-chip-elevated-container-color: #d50000;--mat-chip-elevated-disabled-container-color: #d50000;--mat-chip-elevated-selected-container-color: #d50000;--mat-chip-flat-disabled-selected-container-color: #d50000;--mat-chip-focus-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-focus-state-layer-opacity: 0.12;--mat-chip-hover-state-layer-color: rgba(0, 0, 0, 0.87);--mat-chip-label-text-color: white;--mat-chip-selected-disabled-trailing-icon-color: white;--mat-chip-selected-focus-state-layer-color: 0.12;--mat-chip-selected-focus-state-layer-opacity: 0.12;--mat-chip-selected-hover-state-layer-color: 0.04;--mat-chip-selected-label-text-color: white;--mat-chip-selected-trailing-icon-color: white;--mat-chip-with-icon-disabled-icon-color: white;--mat-chip-with-icon-icon-color: white;--mat-chip-with-icon-selected-icon-color: white;--mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--mat-chip-with-trailing-icon-trailing-icon-color: white}[_nghost-%COMP%]     .mat-mdc-chip.mat-mdc-standard-chip{--mat-chip-container-height: 32px}[_nghost-%COMP%]     .mat-mdc-standard-chip{--mat-chip-label-text-font: Roboto, sans-serif;--mat-chip-label-text-line-height: 20px;--mat-chip-label-text-size: 14px;--mat-chip-label-text-tracking: 0.0178571429em;--mat-chip-label-text-weight: 400}[_nghost-%COMP%]     .mat-mdc-form-field.mat-accent{--mat-form-field-focus-select-arrow-color: color-mix(in srgb, #3367d6 87%, transparent);--mat-form-field-filled-caret-color: #3367d6;--mat-form-field-filled-focus-active-indicator-color: #3367d6;--mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #3367d6 87%, transparent);--mat-form-field-outlined-caret-color: #3367d6;--mat-form-field-outlined-focus-outline-color: #3367d6;--mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #3367d6 87%, transparent)}[_nghost-%COMP%]     .mat-mdc-form-field.mat-warn{--mat-form-field-focus-select-arrow-color: color-mix(in srgb, #d50000 87%, transparent);--mat-form-field-filled-caret-color: #d50000;--mat-form-field-filled-focus-active-indicator-color: #d50000;--mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #d50000 87%, transparent);--mat-form-field-outlined-caret-color: #d50000;--mat-form-field-outlined-focus-outline-color: #d50000;--mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #d50000 87%, transparent)}[_nghost-%COMP%]     .mat-accent{--mat-option-selected-state-label-text-color: #3367d6;--mat-option-label-text-color: rgba(0, 0, 0, 0.87);--mat-option-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 4%, transparent);--mat-option-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-option-selected-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent)}[_nghost-%COMP%]     .mat-warn{--mat-option-selected-state-label-text-color: #d50000;--mat-option-label-text-color: rgba(0, 0, 0, 0.87);--mat-option-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 4%, transparent);--mat-option-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent);--mat-option-selected-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 12%, transparent)}[_nghost-%COMP%]     .mat-primary{--mat-pseudo-checkbox-full-selected-icon-color: #3367d6;--mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, 0.54);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #3367d6;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent)}[_nghost-%COMP%]     .mat-accent{--mat-pseudo-checkbox-full-selected-icon-color: #3367d6;--mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, 0.54);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #3367d6;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent)}[_nghost-%COMP%]     .mat-warn{--mat-pseudo-checkbox-full-selected-icon-color: #d50000;--mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, 0.54);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-pseudo-checkbox-minimal-selected-checkmark-color: #d50000;--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent)}[_nghost-%COMP%]     .mat-mdc-form-field.mat-accent{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, 0.87);--mat-select-disabled-trigger-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-select-placeholder-text-color: rgba(0, 0, 0, 0.54);--mat-select-enabled-arrow-color: rgba(0, 0, 0, 0.54);--mat-select-disabled-arrow-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-select-focused-arrow-color: #3367d6;--mat-select-invalid-arrow-color: #d50000}[_nghost-%COMP%]     .mat-mdc-form-field.mat-warn{--mat-select-panel-background-color: white;--mat-select-enabled-trigger-text-color: rgba(0, 0, 0, 0.87);--mat-select-disabled-trigger-text-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-select-placeholder-text-color: rgba(0, 0, 0, 0.54);--mat-select-enabled-arrow-color: rgba(0, 0, 0, 0.54);--mat-select-disabled-arrow-color: color-mix(in srgb, rgba(0, 0, 0, 0.87) 38%, transparent);--mat-select-focused-arrow-color: #d50000;--mat-select-invalid-arrow-color: #d50000}[_nghost-%COMP%]     .mat-accent{--mat-progress-spinner-active-indicator-color: #3367d6}[_nghost-%COMP%]     .mat-warn{--mat-progress-spinner-active-indicator-color: #d50000}.chart-body[_ngcontent-%COMP%]{position:absolute}.chart-body[_ngcontent-%COMP%]   mat-spinner[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:9}.chart-body[_ngcontent-%COMP%]   mat-progress-bar[_ngcontent-%COMP%]{position:absolute;z-index:9}/*# sourceMappingURL=ac_loading.css.map */"],
changeDetection:0});var tJ=function(a,b){UG.call(this,a);this.queueService=b;this.defaultSliceRadius=50;this.canvasHeight=this.canvasWidth=100;this.centerY=this.centerX=50;this.renderedContexts=[];this.donutThickness=this.fullDrawDebounceId=null};Z(tJ,UG);var z8c=function(a,b){return b?y8c(a,b):[].concat(n(a.renderedContexts))};tJ.prototype.clearWithBackground=function(a,b){ll(this.canvas,a,this.base,void 0,b)};
tJ.prototype.onResizeChange=function(a,b){var c=this;Bk(a)&&(a.currentValue!=null&&(this.canvasWidth=a.currentValue.width,this.canvasHeight=a.currentValue.height),Ck(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),VG(this,b,this.canvas,this.ctx),this.fullDrawDebounceId=setTimeout(function(){c.drawInternal(b)},250)))};
var A8c=function(a,b){if(a==null)return[];var c=[],d=new Map,e=new Map,f=0;a=a.series;if(a.length===0)return[];a.forEach(function(r){if(r.data.length!==0){var w=r.id.toString(),x=r.data[0].y,D=d.get(w);x<=0||isNaN(x)||(f+=x,e.set(w,r),D!==void 0?d.set(w,D+x):d.set(w,x))}});a=l(d);for(var g=a.next();!g.done;g=a.next()){var k=l(g.value);g=k.next().value;k=k.next().value;var m=e.get(g);if(m==null)throw Error("Tc");c.push({id:g,value:k/f,rawValue:k,ref:m})}b&&c.sort(function(r,w){return r.value-w.value});
return c};tJ.prototype.drawV1=function(a){this.drawInternal(a)};tJ.prototype.onConfigChange=function(a,b){this.drawInternal(b)};tJ.prototype.onColorMapChange=function(a,b){this.drawInternal(b)};
var B8c=function(a,b){var c=b.sliceRadius;var d=b.filledColor;var e=b.startAngle;var f=b.angle;b=b.drawLine;var g=a.centerX,k=a.centerY;a.ctx.save();var m=new Path2D;a.ctx.fillStyle=jl(d,a.base);a.ctx.lineCap="round";a.ctx.translate(.5,.5);a.ctx.beginPath();c=Math.max(c,0);m.moveTo(g,k);m.arc(g,k,c,e,e+f);a.ctx.fill(m);a.ctx.closePath();b&&(a.ctx.beginPath(),a.ctx.strokeStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",a.base),a.ctx.lineWidth=2,a.ctx.moveTo(g+c*Math.cos(e),k+c*Math.sin(e)),a.ctx.lineTo(g,
k),a.ctx.stroke(),a.ctx.closePath());a.ctx.restore()};tJ.prototype.updateCanvasSize=function(){SG(this,this.canvas);this.canvas.style.left="0px";this.canvas.style.top="0px";ml(this.canvas,this.base,this.canvasHeight,this.canvasWidth)};
var y8c=function(a,b){var c=[],d=b.data,e=b.state,f=b.config,g,k=(g=b.state)==null?void 0:g.colorMap;g=f?f.startAngle:0;var m=!(f==null?0:f.useOrderGiven);g+=Math.PI;m=A8c(b.data,m);a=a.defaultSliceRadius;d=!d||!f||!f.colorStrategy.isReady||f.colorStrategy.isReady(d,e);for(e=0;e<m.length;e++){var r=m[e].id;var w=m[e].value,x=void 0,D=void 0,H=f&&d?Pl(f.colorStrategy.getColor(m[e].ref,b.state)):(D=(x=k)==null?void 0:x.colorMap[r])!=null?D:"var(--ac-sys-color-chart-unfilled, #F1F3F4)";D=void 0;x=(D=
k)==null?void 0:D.shapeMap[r];r=2*Math.PI*w;H={sliceRadius:a,filledColor:H,startAngle:g,angle:r,shape:x,drawLine:m.length>1,data:m[e]};g+=r;c.push(H)}return c},C8c=function(a){if(a.donutThickness&&a.donutThickness.unit==="px")return Math.min(Math.abs(a.donutThickness.value),a.defaultSliceRadius);var b,c=((b=a.donutThickness)==null?void 0:b.unit)==="%"?Math.abs(a.donutThickness.value)/100:.2;return a.defaultSliceRadius*Math.min(1,c)},D8c=function(a){var b=C8c(a),c=a.centerX,d=a.centerY;a.defaultSliceRadius>
b&&(a.ctx.save(),a.ctx.beginPath(),a.ctx.fillStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",a.base),a.ctx.arc(c,d,a.defaultSliceRadius-b,0,2*Math.PI),a.ctx.fill(),a.ctx.closePath(),a.ctx.restore())};
tJ.prototype.drawInternal=function(a){this.defaultSliceRadius=this.canvasWidth&&this.canvasHeight?Math.min(this.canvasWidth,this.canvasHeight)/2-10:50;this.centerX=this.canvasWidth/2;this.centerY=this.canvasHeight/2;this.updateCanvasSize();this.renderedContexts=y8c(this,a);this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null)};var E8c=function(a,b){tJ.call(this,a);this.afterRenderHook=b;this.cachePiePaths=new Map;this.isDonut=!1;this.canvas.className="ac-pie-view__canvas"};
Z(E8c,tJ);
var F8c=function(a,b,c){var d=a.canvas.getBoundingClientRect();b-=d.left;c-=d.top;d=l(a.cachePiePaths);for(var e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;var g=f=f.next().value,k=b,m=c;f=g.startAngle;var r=g.startAngle+g.angle,w=a.centerX,x=a.centerY;g=a.defaultSliceRadius;var D=a.isDonut?a.defaultSliceRadius-C8c(a):0;D===void 0&&(D=0);var H=f+(r-f)/2;var J=g*Math.cos(H);H=-g*Math.sin(H);var O=k-w,R=x-m,V=Math.sqrt(J*J+H*H),ba=Math.sqrt(O*O+R*R);J=V===0||ba===0?0:Math.acos((J*O+
H*R)/(V*ba));k=Math.sqrt(Math.pow(k-w,2)+Math.pow(m-x,2));f=(r-f)/2;if((Math.abs(J-f)<=Number.EPSILON||J<=f)&&k<=g&&k>=D)return e}return null},G8c=function(a){return a.renderedContexts.reduce(function(b,c){return b+c.data.rawValue},0)};
E8c.prototype.drawInternal=function(a){tJ.prototype.drawInternal.call(this,a);var b=a.config;this.isDonut=a=b?b.isDonut:!1;var c;this.donutThickness=(c=b==null?void 0:b.donutThickness)!=null?c:null;c=this.renderedContexts;this.cachePiePaths=new Map;for(b=0;b<c.length;b++)this.cachePiePaths.set(c[b].data.id,c[b]),B8c(this,c[b]);c.length===0&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.fillStyle=jl("var(--ac-sys-color-chart-unfilled, #F1F3F4)",this.base),this.ctx.arc(this.centerX,this.centerY,this.defaultSliceRadius,
0,2*Math.PI),this.ctx.fill(),this.ctx.closePath(),this.ctx.restore());a&&D8c(this);QG(this);var d;(d=this.afterRenderHook)==null||d.call(this)};var H8c=function(a){tJ.call(this,a);this.selectedIds=[];this.hoveredId=null;this.canvas.className="ac-pie-view__selected-canvas"};Z(H8c,tJ);
H8c.prototype.onSeriesSelectionChange=function(a,b){var c,d,e;a=(c=b.state)==null?void 0:(d=c.seriesSelection)==null?void 0:(e=d.byLayer.entities[b.scope.layerId])==null?void 0:e.hoveredSeries[0];var f,g,k;c=(f=b.state)==null?void 0:(g=f.seriesSelection)==null?void 0:(k=g.byLayer.entities[b.scope.layerId])==null?void 0:k.selectedSeries;var m;this.hoveredId=(m=a==null?void 0:a.seriesId)!=null?m:null;var r;this.selectedIds=(r=c==null?void 0:c.map(function(w){return w.seriesId}))!=null?r:[];this.hoveredId===
null&&this.selectedIds.length===0?this.canvas.style.display="none":(this.canvas.style.display="block",this.drawInternal(b))};
H8c.prototype.drawInternal=function(a){tJ.prototype.drawInternal.call(this,a);var b=a.config;a=b?b.isDonut:!1;var c;this.donutThickness=(c=b==null?void 0:b.donutThickness)!=null?c:null;c=this.selectedIds;if(this.selectedIds.length!==0||this.hoveredId!==null){b=this.renderedContexts;this.clearWithBackground("var(--ac-sys-color-chart-surface, #FFF)",.6);for(var d=0;d<b.length;d++)(c.includes(b[d].data.id)||b[d].data.id===this.hoveredId)&&B8c(this,b[d]);a&&D8c(this)}};var I8c=["summaryBodyRef"],J8c=["summaryViewRef"],uJ=function(a,b,c,d){eH.call(this,a,b,c);this.cdRef=d;this.hoveredSlice=new ui;this.selectedSlice=new ui;this.internalCustomizedSummary=this.summaryHeader=this.summaryFooter=this.summaryBody=null;this.updateHoveredSliceTriggerSubject=new vf(1);this.syncActionsBuffer=null;this.colorRecalculationAttemptsRemaining=2;this.loading=!1;this.error=null;this.useOrderGiven=this.showSummary=!1;this.data=null;this.isDonut=!1;this.colorStrategyInternal=new XH;
this.startAngle=0;this.donutThickness="";this.dataSubject=new Xj(null);this.selectedSliceId=null;this.configSubject=new Xj({isDonut:this.isDonut,startAngle:this.startAngle,colorStrategy:this.colorStrategyInternal,useOrderGiven:this.useOrderGiven});this.pieView=new E8c(this.el.nativeElement,this.onPieViewRendered.bind(this));this.selectedPieView=new H8c(this.el.nativeElement);this.views.push(this.pieView);this.views.push(this.selectedPieView)};Z(uJ,eH);uJ.\u0275dir=eH.\u0275dir;
uJ.prototype.onPieViewRendered=function(){K8c(this);L8c(this)};uJ.prototype.onResizeChange=function(){K8c(this)};
var K8c=function(a){if(a.isDonut&&a.summaryBodyRef){var b=a.pieView;b=b.defaultSliceRadius-C8c(b);if(b!==0){b<38?a.summaryViewRef.nativeElement.classList.add("ac-pie__summary-view--small"):a.summaryViewRef.nativeElement.classList.remove("ac-pie__summary-view--small");b=Math.min(32/a.summaryBodyRef.nativeElement.offsetHeight,Math.max(5,b*2-10)/a.summaryBodyRef.nativeElement.offsetWidth);var c=Number(window.getComputedStyle(a.summaryBodyRef.nativeElement).fontSize.split("px")[0]);a.summaryBodyRef.nativeElement.style.fontSize=
c*b+"px"}}};uJ.prototype.onColorMapChange=function(a,b){var c=b.scope,d=b.data,e=b.state;a=[];if(d&&e&&this.colorRecalculationAttemptsRemaining>0){if(c=kH(this.colorStrategy,c,d,e))a.push(c),this.store.dispatch(c),this.colorRecalculationAttemptsRemaining--;this.store.dispatch(M8c(this,b))}return a};
var N8c=function(a){a=Math.max(a,0);a=Math.min(a,360);return a*Math.PI/180},M8c=function(a,b){var c=b.scope,d=z8c(a.pieView,b);return TH({chartId:c.chartId,layerId:c.layerId,series:d.map(function(e){return{seriesId:e.data.id,name:e.data.ref.name||e.data.id,shape:e.shape,drawnAs:7,dataSeriesMetadata:e.data.ref.metadata,color:Pl(a.colorStrategy.getColor(e.data.ref,b.state))}})})},L8c=function(a){if(a.internalCustomizedSummary){var b;a.summaryHeader=(b=a.internalCustomizedSummary.header)!=null?b:null;
var c;a.summaryBody=(c=a.internalCustomizedSummary.body)!=null?c:null;var d;a.summaryFooter=(d=a.internalCustomizedSummary.footer)!=null?d:null}else{var e,f;(b=(f=(e=a.data)==null?void 0:e.unit)!=null?f:null)&&PBa(b)&&(b=QBa(b));if(b===""||b==="{not_a_unit}")b="1";b&&gCa(b)?(e="Average",f=a.pieView,f=f.renderedContexts.length===0?0:G8c(f)/f.renderedContexts.length):(e="Total",f=G8c(a.pieView));f=iCa(f,b);f.value&&f.value!=="0"?(a.summaryHeader=e,f.unit.length===1?(a.summaryBody=f.value+f.unit,a.summaryFooter=
null):(a.summaryBody=f.value,a.summaryFooter=f.unit)):(a.summaryHeader=null,a.summaryBody=null,a.summaryFooter=null)}a.cdRef.detectChanges()},O8c=function(a,b){var c=b.scope;a=z8c(a.pieView,b);return SH({chartId:c.chartId,layerId:c.layerId,valueType:1,timeKey:3,values:a.map(function(d){var e;return{value:{x:(e=d.data.rawValue)!=null?e:0,y:d.data.rawValue},seriesId:d.data.id}}),timeRange:{x:0}})},P8c=function(a,b){var c=[],d=b.scope,e,f;if(b=(e=b.state)==null?void 0:(f=e.seriesSelection)==null?void 0:
f.byLayer.entities[d.layerId]){e=b.selectedSeries;f=b.hoveredSeries;var g,k=new Set((g=a==null?void 0:a.series.map(function(m){return m.id}))!=null?g:[]);a=e.filter(function(m){return k.has(m.seriesId)});a.length!==e.length&&c.push(EH({chartId:d.chartId,layerId:d.layerId,series:a}));a=f.filter(function(m){return k.has(m.seriesId)});a.length!==f.length&&c.push(GH({chartId:d.chartId,layerId:d.layerId,series:a}))}return c};
uJ.prototype.onDataChange=function(a,b){var c=[];a=a.currentValue;var d=b.scope,e=b.state;e&&a&&(d=kH(this.colorStrategy,d,a,e))&&c.push(d);var f,g;d=(g=(f=this.data)==null?void 0:f.unit)!=null?g:null;c.push(UH({xAxisId:b.scope.xAxisId,yAxisId:b.scope.yAxisId,chartId:b.scope.chartId,layerId:b.scope.layerId,valueType:1,legendTemplate:this.legendTemplate,unit:d}));c.push(gH(this,{min:0,max:1,unit:d,priority:0}));c.push(M8c(this,b));c.push(O8c(this,b));return c=c.concat(P8c(a,b))};
uJ.prototype.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};
uJ.prototype.ngOnChanges=function(a){var b=this;eH.prototype.ngOnChanges.call(this,a);var c=[];"data"in a&&this.dataSubject.next(this.data);"colorStrategy"in a&&this.withLatest(function(d){var e=d.scope;d=d.state;b.data&&d&&(e=kH(b.colorStrategy,e,b.data,d))&&c.push(e)});this.configSubject.next({isDonut:this.isDonut,donutThickness:VLa(this.donutThickness),colorStrategy:this.colorStrategy,startAngle:N8c(this.startAngle),useOrderGiven:this.useOrderGiven});"loading"in a&&c.push(iH(this,this.loading,
"Pie"));"error"in a&&c.push(jH(this,this.error,this.hasData()));yG(this.chart,c)};
var Q8c=function(a,b){a.selectedSliceId=b===a.selectedSliceId?null:b;a.selectedSlice.emit(a.selectedSliceId);a.withLatest(function(c){c=c.scope;a.store.dispatch(EH({chartId:c.chartId,layerId:c.layerId,series:a.selectedSliceId==null?[]:[{seriesId:a.selectedSliceId}]}))})},R8c=function(a,b){a.hoveredSlice.emit(b);a.withLatest(function(c){var d=c.scope;c=GH({chartId:d.chartId,layerId:d.layerId,series:b==null?[]:[{seriesId:b}]});var e=z8c(a.pieView);d=SH({chartId:d.chartId,layerId:d.layerId,valueType:1,
timeKey:1,values:e.map(function(f){var g,k;return{value:{x:(g=f.data.rawValue)!=null?g:0,y:f.data.rawValue},seriesId:(k=f.data.id)!=null?k:""}}),timeRange:void 0});a.syncActionsBuffer?(a.syncActionsBuffer.push(c),a.syncActionsBuffer.push(d)):(a.store.dispatch(c),a.store.dispatch(d))})};
uJ.prototype.onChartMouseMove=function(a){var b=[];this.syncActionsBuffer=[];a=F8c(this.pieView,a.pageX,a.pageY);this.updateHoveredSliceTriggerSubject.next(a);b=b.concat(this.syncActionsBuffer);this.syncActionsBuffer=null;return b};uJ.prototype.onChartMouseClick=function(a){a=F8c(this.pieView,a.pageX,a.pageY);Q8c(this,a)};
uJ.prototype.ngOnInit=function(){var a=this;eH.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject});this.updateHoveredSliceTriggerSubject.pipe(Cf(10),Af(this.destroyed)).subscribe(function(b){R8c(a,b)});zG(this.chart,"chart",this.onChartMouseMove.bind(this),this.destroyed);this.chart.mouseClickObservable.pipe(Af(this.destroyed)).subscribe(this.onChartMouseClick.bind(this));this.chart.mouseLeaveObservable.pipe(Af(this.destroyed)).subscribe(function(){R8c(a,
null)})};uJ.prototype.ngOnDestroy=function(){eH.prototype.ngOnDestroy.call(this);yG(this.chart,[gH(this,null)])};da.Object.defineProperties(uJ.prototype,{customizedSummary:{configurable:!0,enumerable:!0,set:function(a){this.internalCustomizedSummary=a;L8c(this)}},colorStrategy:{configurable:!0,enumerable:!0,set:function(a){this.colorStrategyInternal=a||new XH},get:function(){return this.colorStrategyInternal}}});uJ.\u0275fac=function(a){return new (a||uJ)(Ve(Gd),Ve(xG),Ve(LG),Ve(Yx))};
uJ.\u0275cmp=C({type:uJ,selectors:[["ac-pie"]],viewQuery:function(a,b){a&1&&(kg(I8c,5),kg(J8c,5));if(a&2){var c;og(c=pg())&&(b.summaryBodyRef=c.first);og(c=pg())&&(b.summaryViewRef=c.first)}},hostAttrs:[1,"composable-layer","ac-pie"],inputs:{loading:"loading",error:"error",legendTemplate:"legendTemplate",showSummary:"showSummary",useOrderGiven:"useOrderGiven",data:"data",customizedSummary:"customizedSummary",isDonut:"isDonut",colorStrategy:"colorStrategy",startAngle:"startAngle",donutThickness:"donutThickness"},
outputs:{hoveredSlice:"hoveredSlice",selectedSlice:"selectedSlice"},features:[Ff,Gx],decls:1,vars:1,consts:[["summaryViewRef",""],["summaryBodyRef",""],["class","ac-pie__summary-view",4,"ngIf"],[1,"ac-pie__summary-view"],["class","ac-pie__summary-view-header",4,"ngIf"],["class","ac-pie__summary-body",3,"title",4,"ngIf"],["class","ac-pie__summary-footer",4,"ngIf"],[1,"ac-pie__summary-view-header"],[1,"ac-pie__summary-body",3,"title"],[1,"ac-pie__summary-footer"]],template:function(a,b){a&1&&E(0,ZLa,
5,3,"div",2);a&2&&I("ngIf",b.isDonut&&b.showSummary)},dependencies:[jy],styles:["[_nghost-%COMP%]{display:flex;flex-direction:row;position:absolute;width:100%;height:100%;align-items:stretch;color:var(--ac-sys-color-chart-on-surface, #000)}.ac-pie__summary-view[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);align-items:center;display:flex;flex-direction:column;white-space:nowrap;line-height:normal}.ac-pie__summary-view-header[_ngcontent-%COMP%]{font-size:15px;line-height:20px}.ac-pie__summary-body[_ngcontent-%COMP%]{font-size:24px;max-height:32px}.ac-pie__summary-footer[_ngcontent-%COMP%]{font-size:13px;line-height:20px}.ac-pie__summary-view--small[_ngcontent-%COMP%]   .ac-pie__summary-view-header[_ngcontent-%COMP%]{display:none}.ac-pie__summary-view--small[_ngcontent-%COMP%]   .ac-pie__summary-footer[_ngcontent-%COMP%]{display:none}/*# sourceMappingURL=ac_pie.css.map */"],
changeDetection:0});var S8c=["popupContent"],vJ=function(a,b,c,d,e){eH.call(this,a,b,c);this.overlay=d;this.viewContainerRef=e;this.positionStrategy=this.overlay.position().global();this.overlayRef=this.overlay.create(new ki({positionStrategy:this.positionStrategy}))};Z(vJ,eH);vJ.\u0275dir=eH.\u0275dir;h=vJ.prototype;h.ngOnInit=function(){var a=this;eH.prototype.ngOnInit.call(this);this.chart.mouseClickObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onMouseClick(b)})};h.ngAfterViewInit=function(){};
h.onMouseClick=function(a){this.attachHovercard();var b=25+this.overlayRef.overlayElement.offsetHeight,c=25+this.overlayRef.overlayElement.offsetWidth,d=a.clientY+15,e=a.clientX+15;a.clientY+b>window.innerHeight&&(d=Math.max(0,a.clientY-b+10));a.clientX+c>window.innerWidth&&(e=Math.max(0,a.clientX-c+10));this.positionStrategy.top(d+"px").left(e+"px");this.overlayRef.updatePosition()};h.attachHovercard=function(){this.detachHovercard();this.overlayRef.attach(new mA(this.popupContent,this.viewContainerRef))};
h.detachHovercard=function(){this.overlayRef.hasAttached()&&this.overlayRef.detach()};vJ.\u0275fac=function(a){return new (a||vJ)(Ve(Gd),Ve(xG),Ve(LG),Ve(rA),Ve(ig))};
vJ.\u0275cmp=C({type:vJ,selectors:[["ac-popup-card"]],viewQuery:function(a,b){a&1&&kg(S8c,5);if(a&2){var c;og(c=pg())&&(b.popupContent=c.first)}},hostAttrs:[1,"composable-layer","ac-popup-card"],features:[Ig([{provide:eH,useExisting:vJ}]),Ff],ngContentSelectors:["*"],decls:2,vars:0,consts:[["popupContent",""],[1,"ac-popup-container"]],template:function(a){a&1&&(fg(),Hf(0,$La,2,0,"ng-template",null,0,Og))},styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}div.ac-popup-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:var(--ac-sys-color-extensions-surface, #fff);opacity:.9;border:1px solid var(--ac-sys-color-extensions-hairline, #dadce0);padding:12px;min-width:200px}/*# sourceMappingURL=ac_popup_card.css.map */"],
changeDetection:0});var T8c=[-Infinity,Infinity],U8c=Number("0x60")/255,V8c={fillStyle:"var(--ac-sys-color-chart-on-surface, #000)",globalAlpha:1,globalCompositeOperation:"source-over",strokeStyle:"var(--ac-sys-color-chart-on-surface, #000)",lineWidth:1.25,lineCap:"square"},W8c={strokeStyle:"var(--ac-sys-color-chart-surface, #FFF)",lineWidth:2},wJ=function(a,b){UG.call(this,a);this.queueService=b;this.shapeCanvas=document.createElement("canvas");this.fullDrawDebounceId=null;this.enableManualLatencyTracking=!1;this.cachedMappedData=
[];this.cachedRawData=null;this.dataMapping={yAxisUnit:null,yAxisMin:null,yAxisMax:null,yAxisAbsoluteMin:void 0,yAxisScaleType:0,xAxisMin:0,xAxisMax:0,xAxisUnit:null,bodyTop:0,bodyBottom:0,bodyLeft:0,bodyRight:0,dataUnit:null};this.shapeCanvas.setAttribute("aria-hidden","true");this.shapeCanvas.style.position="absolute";b=this.shapeCanvas.getContext("2d");if(!b)throw Error("Jc");this.shapeCtx=b;a.appendChild(this.shapeCanvas)};Z(wJ,UG);h=wJ.prototype;h.drawV1=function(a){this.drawInternal(a)};
h.onXAxisChange=function(a,b){el(a)&&this.drawInternal(b)};h.onResizeChange=function(a,b){var c=this;Bk(a)&&(Ck(a)?this.drawInternal(b):(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),VG(this,b,this.canvas,this.ctx),VG(this,b,this.shapeCanvas,this.shapeCtx),this.fullDrawDebounceId=window.setTimeout(function(){SG(c,c.canvas);SG(c,c.shapeCanvas);c.drawInternal(b)},250)))};h.onYAxisChange=function(a,b){zl(a)&&this.drawInternal(b)};
h.onSeriesSelectionChange=function(a,b){gDa(a)&&this.drawInternal(b)};h.onColorMapChange=function(a,b){this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};h.unpackForGetValues=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize;c=c.xAxis;return d&&c&&c.min!==null&&c.max!==null?(c=il(c,d.margins.left,d.width-d.margins.right,b==null?void 0:b.xAxisUnit))?{data:b,config:a,inverseDomainMap:c}:null:null};
h.getValuesAtTime=function(a,b,c){a=this.unpackForGetValues(a);return a!=null&&a.data?Nl(a.data,b,a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,"default",c):null};h.getValuesAtXPosition=function(a,b,c){a=this.unpackForGetValues(a);return a?(b=a.inverseDomainMap(b))?Nl(a.data,b==null?void 0:b.valueOf(),a.config.pointConnectionMethod,a.config.outputPeriodMs,a.config.useLegacyGapDetection,"default",c):null:null};
h.unpackForClearing=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize;if(!d)return null;var e=d.width,f=d.height,g=d.margins.top,k=d.height-d.margins.bottom,m=d.margins.left;d=d.width-d.margins.right;return{isColorMapReady:!b||!a.colorStrategy.isReady||a.colorStrategy.isReady(b,c),bounds:{top:g,right:d,bottom:k,left:m},canvasWidth:e,canvasHeight:f,bodyTop:g,bodyBottom:k,bodyLeft:m,bodyRight:d,bodyWidth:d-m,bodyHeight:k-g}};
h.shouldShowShape=function(a,b,c,d,e){return a&&b&&!c&&!d||a&&e&&!c&&d?!1:!0};
h.unpackForDrawing=function(a){var b=this,c=this.unpackForClearing(a),d=a.scope,e=a.data,f=a.state,g=a.config;if(!f||!g||!c)return null;var k=c.bodyTop,m=c.bodyBottom,r=c.bodyLeft,w=c.bodyRight;a=f.xAxis;var x=f.yAxis,D=f.seriesSelection,H=f.brush,J=f.lastInteraction;if(!(a&&D&&x&&H))return null;var O=e?e.unit:null,R=Al(x,k,m,O),V=hl(a,r,w,e==null?void 0:e.xAxisUnit),ba=il(a,r,w,e==null?void 0:e.xAxisUnit);if(a.min===null||a.max===null||!V||!R||!ba)return null;var pa=(d=D.byLayer.entities[d.layerId])?
d.selectedSeries.map(function(vc){return vc.seriesId}):[],ua=d?d.hoveredSeries.map(function(vc){return vc.seriesId}):[],ma=Object.values(D.byLayer.entities).filter(function(vc){return!!vc}).some(function(vc){return vc.selectedSeries.length||vc.hoveredSeries.length}),Da=function(vc){var tb=vc.x,Qb=vc.y0,ib=vc.y1;if(Qb==null||ib==null)throw Error("Uc`"+JSON.stringify(vc));return[V(tb.valueOf()),R(Qb),R(ib)]};d={yAxisUnit:x.unit,yAxisMin:x.min,yAxisMax:x.max,yAxisAbsoluteMin:x.absoluteMin,yAxisScaleType:x.scaleType,
xAxisMin:a.min,xAxisMax:a.max,xAxisUnit:a.unit,bodyTop:k,bodyBottom:m,bodyLeft:r,bodyRight:w,dataUnit:O};if(!aMa(d,this.dataMapping)||bMa(e,this.cachedRawData)){this.dataMapping=d;this.cachedRawData=e;var ja,va;this.cachedMappedData=(va=e==null?void 0:(ja=e.series)==null?void 0:ja.map(function(vc){return{data:vc.data.map(Da),id:vc.id}}))!=null?va:null}ja=this.cachedMappedData;va=g.colorStrategy.getShape?function(vc){var tb,Qb;return b.shouldShowShape((tb=g.clickDotInteraction)!=null?tb:!1,ma,pa.includes(vc.id),
ua.includes(vc.id),(Qb=g.multiselectMode)!=null?Qb:!1)?g.colorStrategy.getShape(vc,f):""}:null;var ya,Sa,ab,rb=(ab=J==null?void 0:(ya=J.domain)==null?void 0:ya.multiselectAnchor)!=null?ab:J==null?void 0:(Sa=J.domain)==null?void 0:Sa.click,ac,pc=J==null?void 0:(ac=J.domain)==null?void 0:ac.hover,kc;return Object.assign({},c,{data:e,mappedData:ja,config:g,colorMap:function(vc){return Pl(g.colorStrategy.getColor(vc,f))},shapeMap:va,shapeStateMap:function(vc){if(g.clickDotInteraction&&rb&&pa.includes(vc.id)){var tb=
Jl(vc.data||[],ba(rb),null,!0);return{position:vc.data[tb],lineSelectedStatus:1}}return g.clickDotInteraction&&pc&&ua.includes(vc.id)&&!g.multiselectMode?(tb=Jl(vc.data||[],ba(pc),null,!0),{position:vc.data[tb],lineSelectedStatus:2}):{position:null,lineSelectedStatus:0}},shapeBoundingBox:g.colorStrategy.shapeBoundingBox,dataMap:Da,inverseDomainMap:ba,selectedSeriesIds:pa,hoveredSeriesIds:ua,anySeriesSelectedOrHovered:ma,brushing:H.brushing||!1,xAxisMin:a.min,xAxisMax:a.max,clickDotInteraction:(kc=
g.clickDotInteraction)!=null?kc:!1})};h.clearInternal=function(a){a=this.unpackForClearing(a);if(!a||!a.isColorMapReady)return!1;this.canvas.style.left="0px";this.canvas.style.top="0px";ml(this.canvas,this.base,a.canvasHeight,a.canvasWidth);this.shapeCanvas.style.left="0px";this.shapeCanvas.style.top="0px";ml(this.shapeCanvas,this.base,a.canvasHeight,a.canvasWidth);return!0};
h.drawInternal=function(a){var b=performance.now();if(this.clearInternal(a)&&(this.fullDrawDebounceId&&(clearTimeout(this.fullDrawDebounceId),this.fullDrawDebounceId=null),a=this.unpackForDrawing(a))){var c=new Path2D;c.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight+1);var d=new Path2D;d.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight);c={line:c,area:d};var e=a.anySeriesSelectedOrHovered&&!a.brushing;d=Object.assign({},V8c,{globalAlpha:e?.15:1});this.shapeCtx.globalAlpha=e?.15:1;var f;e=(f=
a.data)==null?void 0:f.series;if(e==null?0:e.length){if(f=a.shapeMap){for(var g=new Set,k=l(e),m=k.next();!m.done;m=k.next())g.add(f(m.value));e.length>g.size&&(f=null)}this.drawLines(e,a.dataMap,a.colorMap,f,a.shapeStateMap,a.shapeBoundingBox,a.bounds,a.config,c,d,a.clickDotInteraction)}RG(this,a.xAxisMin,a.xAxisMax);a=performance.now();this.enableManualLatencyTracking&&QG(this);this.drawListener({drawStartTimestamp:b,drawStopTimestamp:a})}};
h.drawLines=function(a,b,c,d,e,f,g,k,m,r,w){this.ctx.save();kl(this.ctx,r,this.base);kl(this.shapeCtx,W8c,this.base);a=l(a);for(r=a.next();!r.done;r=a.next()){r=r.value;var x=c(r),D=d&&d(r),H=e&&e(r);switch(k.pointConnectionMethod){case "always":this.drawLineAlwaysConnect(r,b,x,D,H,f,g,m,k.lineInterpolationMethod,w);break;case "zero_fill":this.drawLineZeroFill(r,b,x,D,H,f,g,k.outputPeriodMs,k.useLegacyGapDetection,m,k.lineInterpolationMethod,w);break;case "never":throw Error("Vc");default:this.drawLineGapDetection(r,
b,x,D,H,f,g,k.outputPeriodMs,k.useLegacyGapDetection,m,k.lineInterpolationMethod,w)}}this.ctx.restore()};
h.drawLineGapDetection=function(a,b,c,d,e,f,g,k,m,r,w,x){k=k!=null?k:Infinity;var D=m;k=k===void 0?Infinity:k;D=D===void 0?!1:D;var H=a.shiftedData;m=dMa(a.data,k,D);k=H&&dMa(H,k,D);k=k===void 0?[]:k;D=X8c(m,b,g);for(H=0;H<m.length;H++)this.drawLineAlwaysConnect(Object.assign({},a,{data:m[H]}),b,c,D===H?d:null,e,f,g,r,w,x);m=X8c(k,b,g);for(D=0;D<k.length;D++)this.drawLineAlwaysConnect(Object.assign({},a,{shiftedData:k[D]}),b,c,m===D?d:null,e,f,g,r,w,x)};
h.drawLineAlwaysConnect=function(a,b,c,d,e,f,g,k,m,r){this.drawLineZeroFill(a,b,c,d,e,f,g,Infinity,!1,k,m,r)};
h.drawLineZeroFill=function(a,b,c,d,e,f,g,k,m,r,w,x){var D=D===void 0?{}:D;a=a.data;if(a.length){k=k||Infinity;this.ctx.save();this.ctx.beginPath();this.ctx.strokeStyle=jl(c,this.base);var H=this.ctx,J=jl(c,this.base);H.fillStyle=typeof J!=="string"?J:J.startsWith("#")&&J.length===7?J+"60":J.startsWith("rgb(")?"rgba("+J.substring(4,J.length-1)+", "+U8c+")":J;this.shapeCtx.fillStyle=jl(c,this.base);this.ctx.clip(r.line);var O=null;J=H=void 0;for(var R=0;R<a.length;R++){var V=a[R-1],ba=a[R],pa=l(nl(b(ba),
D.lineWidth));c=pa.next().value;pa.next();var ua=pa.next().value;pa=c;var ma=void 0;c=(ma=ba.tileDomain)!=null?ma:T8c;if(cMa(O,c)){if(V&&Kl(k,V,ba,m).gapDetected)for(O=new Date(V.x.valueOf()+k),ma={x:O,y:0,y0:0,y1:0};O<ba.x;O.setMilliseconds(O.getMilliseconds()+k)){var Da=l(nl(b(ma),D.lineWidth)),ja=Da.next().value;Da=Da.next().value;this.ctx.lineTo(ja,Da);J=pl(J,ja,Da,H,g);H={x:ja,y:Da}}switch(w){case "linear":this.ctx.lineTo(pa,ua);break;case "step-before":case "step-after":V&&(V=l(nl(b(V),D.lineWidth)),
O=V.next().value,V.next(),V=V.next().value,w==="step-before"?this.ctx.lineTo(O,ua):this.ctx.lineTo(pa,V));this.ctx.lineTo(pa,ua);break;default:sb(w,"Unsupported interpolation method for stacked are charts")}J=pl(J,pa,ua,H,g)}else this.ctx.moveTo(pa,ua);H={x:pa,y:ua};O=c}this.ctx.stroke();x&&d&&e.position&&e.lineSelectedStatus!==0?this.drawShapeWithinBounds(b(e.position)[0],b(e.position)[2],g,d,f,e.lineSelectedStatus,x):this.drawShapeOrInterpolate(J,g,d,f,e.lineSelectedStatus,x);this.ctx.clip(r.area);
for(d=a.length-1;d>=0;d--){g=a[d+1];r=a[d];e=l(nl(b(r),D.lineWidth));c=e.next().value;f=e.next().value;e=c;x=void 0;c=(x=r.tileDomain)!=null?x:T8c;if(cMa(O,c,!0)){if(g&&Kl(k,g,r,m).gapDetected)for(x=new Date(g.x.valueOf()-k),H={x:x,y:0,y0:0,y1:0};x>r.x;x.setMilliseconds(x.getMilliseconds()-k))R=l(nl(b(H),D.lineWidth)),J=R.next().value,R=R.next().value,this.ctx.lineTo(J,R);switch(w){case "linear":this.ctx.lineTo(e,f);break;case "step-before":case "step-after":g&&(r=l(nl(b(g),D.lineWidth)),g=r.next().value,
r=r.next().value,w==="step-before"?this.ctx.lineTo(e,r):this.ctx.lineTo(g,f));this.ctx.lineTo(e,f);break;default:sb(w,"Unsupported interpolation method for stacked are charts")}}else this.ctx.moveTo(e,f);O=c}this.ctx.fill();this.ctx.restore()}};
var Y8c=function(a,b,c){a=a.unpackForDrawing(b);if(a==null||!a.data||a==null||!a.mappedData)return null;var d=a.config;b=d.outputPeriodMs;d=d.useLegacyGapDetection;for(var e=a.inverseDomainMap(c.x).valueOf(),f=0;f<a.data.series.length;f++){var g=a.data.series[f],k=a.mappedData[f].data,m=Hl(g.data,e,Il(b)),r=m+1,w=g.data[m],x=g.data[r];if(x&&(!b||!Kl(b,w,x,d).gapDetected)){x=l(k[m]);m=x.next().value;w=x.next().value;x=x.next().value;r=l(k[r]);var D=r.next().value;k=r.next().value;r=r.next().value;
k=cl(m,D,w,k,c.x);if(cl(m,D,x,r,c.x)<c.y&&c.y<k)return g.id}}return null};wJ.prototype.getSeriesIdsBetween=function(a,b,c){var d=this.unpackForDrawing(a);if(d==null||!d.data)return null;b=l([b,c].map(function(e){return d.data.series.findIndex(function(f){return f.id===e})}).sort(function(e,f){return e-f}));a=b.next().value;b=b.next().value;return d.data.series.slice(a,b+1).map(function(e){return e.id})};
var X8c=function(a,b,c){for(var d=null,e=null,f=0;f<a.length;f++){var g=a[f];if(g.length){var k=b(g[0]),m=g[g.length-1]?b(g[g.length-1]):null;if(g.some(function(w){var x=l(b(w));w=x.next().value;x=x.next().value;return w<c.left-1||w>c.right+1||x<c.top-1||x>c.bottom+1?!1:!0})){var r=g=void 0;k=Math.max(k[0],(r=(g=m)==null?void 0:g[0])!=null?r:-Infinity);if(d===null||e===null||k>e)d=f,e=k}}}return d};
wJ.prototype.drawShape=function(a,b,c,d,e,f){e=e===void 0?0:e;var g=(f=f===void 0?!1:f)?12:16.8;this.shapeCtx.moveTo(a,b);a=aDa(a,b,c,d?g/d.width:1);f&&e===1?(this.shapeCtx.save(),this.shapeCtx.globalAlpha=1,this.shapeCtx.lineWidth=3,this.shapeCtx.strokeStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.fillStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.stroke(a),this.shapeCtx.fill(a),this.shapeCtx.restore(),this.shapeCtx.save(),this.shapeCtx.globalAlpha=
1,this.shapeCtx.lineWidth=3,this.shapeCtx.strokeStyle=this.shapeCtx.fillStyle,this.shapeCtx.fillStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.stroke(a),this.shapeCtx.fill(a),this.shapeCtx.restore(),this.shapeCtx.globalAlpha=.25,this.shapeCtx.fill(a),this.shapeCtx.globalAlpha=1):(this.shapeCtx.save(),this.shapeCtx.globalAlpha=1,f&&(this.shapeCtx.lineWidth=3),this.shapeCtx.strokeStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",this.base),this.shapeCtx.fillStyle=jl("var(--ac-sys-color-chart-surface, #FFF)",
this.base),this.shapeCtx.stroke(a),this.shapeCtx.fill(a),this.shapeCtx.restore(),this.shapeCtx.fill(a))};wJ.prototype.drawShapeWithinBounds=function(a,b,c,d,e,f,g){a<c.left-1||a>c.right+1||b<c.top-1||b>c.bottom+1||this.drawShape(a,b,d,e,f===void 0?0:f,g===void 0?!1:g)};
wJ.prototype.drawShapeOrInterpolate=function(a,b,c,d,e,f){if(c&&a){var g=a.x1,k=a.y1;a.x0>a.x1&&(g=a.x0,k=a.y0);g>b.right+1&&(g=b.right,k=dl(a.x0,a.y0,a.x1,a.y1,g));k<b.top-1&&(k=b.top,g=dl(a.y0,a.x0,a.y1,a.x1,k));k>b.bottom+1&&(k=b.bottom,g=dl(a.y0,a.x0,a.y1,a.x1,k));this.drawShapeWithinBounds(g,k,b,c,d,e===void 0?0:e,f===void 0?!1:f)}};wJ.prototype.setEnableManualLatencyTracking=function(a){this.enableManualLatencyTracking=a};var Z8c=Object.assign({},V8c,{lineWidth:1.75}),$8c=function(){wJ.apply(this,arguments)};Z($8c,wJ);$8c.prototype.onSeriesSelectionChange=function(a,b){tl(a,b.scope.layerId)&&this.drawInternal(b)};
$8c.prototype.drawInternal=function(a){if(this.clearInternal(a)&&(a=this.unpackForDrawing(a))){var b=new Path2D;b.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight+1);var c=new Path2D;c.rect(a.bodyLeft,a.bodyTop,a.bodyWidth,a.bodyHeight);b={line:b,area:c};var d=a.selectedSeriesIds;a.brushing||(d=d.concat(a.hoveredSeriesIds));var e;c=(e=a.data)==null?void 0:e.series.filter(function(f){return d.includes(f.id)});(c==null?0:c.length)&&this.drawLines(c,a.dataMap,a.colorMap,a.shapeMap,a.shapeStateMap,
a.shapeBoundingBox,a.bounds,a.config,b,Z8c,a.clickDotInteraction);RG(this,a.xAxisMin,a.xAxisMax)}};var a9c={clickSelect:!0,hoverHighlight:!0,clickDot:!1},xJ=function(a,b,c,d,e,f,g,k){eH.call(this,a,b,c);this.el=a;this.modalService=d;this.interactionService=e;this.instrumentationService=f;this.ngZone=k;this.data=null;this.loading=!1;this.error=null;this.pointConnectionMethod="gap_detection";this.lineInterpolationMethod="linear";this.alignmentPeriodMs=null;this.refactorA11yNavInstructions=!1;this.outputPeriodMsInternal=null;this.colorStrategyInternal=new XH;this.layerName="";this.enableManualLatencyTracking=
this.useLegacyGapDetection=!1;this.onSelect=new ui;this.onHover=new ui;this.onHoverEnd=new ui;this.closestLineId=null;var m;this.configSubject=new Xj({outputPeriodMs:this.outputPeriodMs,colorStrategy:this.colorStrategy,pointConnectionMethod:this.pointConnectionMethod,lineInterpolationMethod:this.lineInterpolationMethod,useLegacyGapDetection:this.useLegacyGapDetection,clickDotInteraction:(m=this.interactions)==null?void 0:m.clickDot,multiselectMode:!1});this.dataSubject=new Xj(null);this.updateGridTriggerSubject=
new rf;this.gridGeneratorSubject=new Xj(null);this.defaultColumnMaskGeneratorSubject=new Xj(function(){return[]});this.xAxisRequirement=this.derivedMinMaxBand=this.yAxisRequirement=null;this.interactionsInternal=a9c;this.isShiftKeyDown=this.isMetaKeyDown=this.isCtrlKeyDown=!1;this.shiftSelectingFromSeriesId=null;this.isMouseOver=!1;this.hoverHighlightTriggerSubject=new vf(1);this.updateHoverValuesTriggerSubject=new vf(1);this.syncActionsBuffer=this.dataTypeError=null;this.colorRecalculationAttemptsRemaining=
2;this.nextVersion=0;this.gridGeneratorObservable=this.gridGeneratorSubject.pipe(nf(0),Ik(this.ngZone));this.defaultColumnMaskGeneratorObservable=this.defaultColumnMaskGeneratorSubject.pipe(nf(0),Ik(this.ngZone));this.layerType="graphic";this.stackedAreaView=new wJ(this.el.nativeElement,g);this.views.push(this.stackedAreaView);this.views.push(new $8c(a.nativeElement));this.bindDrawInstrumentation()};Z(xJ,eH);xJ.\u0275dir=eH.\u0275dir;h=xJ.prototype;
h.ngOnInit=function(){var a=this;eH.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject.pipe(A(function(b){return b&&qLa(b)}),A(function(b){return b?Object.assign({},b,{version:a.nextVersion++}):null}),Fla(),Qha()),configObservable:this.configSubject});this.stackedAreaView.setEnableManualLatencyTracking(this.enableManualLatencyTracking);this.updateGridTriggerSubject.pipe(kf(500),Af(this.destroyed)).subscribe(function(b){var c=void 0;a.gridGeneratorSubject.next(function(){c===
void 0&&(c=a.generateGrid(b));return c})});this.hoverHighlightTriggerSubject.pipe(Cf(10),Af(this.destroyed)).subscribe(function(b){a.hoverHighlight(b)});this.updateHoverValuesTriggerSubject.pipe(Cf(10),Af(this.destroyed)).subscribe(function(b){a.updateHoverValues(b)});this.chart.mouseEnterObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onMouseEnter(b)});zG(this.chart,"chart",function(b){return a.onMouseMove(b)},this.destroyed);this.chart.mouseLeaveObservable.pipe(Af(this.destroyed)).subscribe(function(){a.onMouseLeave()});
this.chart.mouseClickObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onClick(b)});this.chart.keyDownObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onKeyDown(b)});this.chart.keyUpObservable.pipe(Af(this.destroyed)).subscribe(function(b){a.onKeyUp(b)})};h.hasData=function(){return this.data!=null&&this.data.series&&this.data.series.some(function(a){return a.data.length>0})};
h.ngOnChanges=function(a){eH.prototype.ngOnChanges.call(this,a);var b=[];"data"in a&&(!this.data||GGa(this.data)?(this.dataSubject.next(this.data),this.dataTypeError&&(this.dataTypeError=null),b.push(jH(this,this.error,this.hasData()))):(this.dataSubject.next(null),this.dataTypeError={name:"InvalidRequestError",code:400,displayMessage:"Only numeric data can be drawn as a stacked area chart. The data provided cannot be drawn.",message:"Only numeric data can be drawn as a stacked area chart. The data provided cannot be drawn.",
details:{isTimeout:!1}},b.push(jH(this,this.dataTypeError,!1))));if("pointConnectionMethod"in a||"lineInterpolationMethod"in a||"outputPeriodMs"in a||"alignmentPeriodMs"in a||"colorStrategy"in a||"useLegacyGapDetection"in a||"interactions"in a){var c;this.updateViewConfig({pointConnectionMethod:this.pointConnectionMethod,lineInterpolationMethod:this.lineInterpolationMethod,outputPeriodMs:this.outputPeriodMs,colorStrategy:this.colorStrategy,useLegacyGapDetection:this.useLegacyGapDetection,clickDotInteraction:(c=
this.interactions)==null?void 0:c.clickDot})}"loading"in a&&b.push(iH(this,this.loading,"Stacked Area"));"error"in a&&b.push(jH(this,this.error,this.hasData()));yG(this.chart,b)};
h.bindDrawInstrumentation=function(){var a=this;PG(this.stackedAreaView,function(b){var c=b.drawStartTimestamp;var d=b.drawStopTimestamp;var e=!a.loading;a.scopeObservable.pipe(mf(1)).subscribe(function(f){var g=f.chartId;f=f.layerId;vH(a.instrumentationService,{type:"draw-start",layerType:"graphic",timestamp:c,chartId:g,layerId:f});vH(a.instrumentationService,{type:"draw-stop",layerType:"graphic",timestamp:d,chartId:g,layerId:f,metadata:{hasCompleteData:e}})})})};
h.onDataChange=function(a,b){var c=this,d=a.previousValue,e=a.currentValue,f=b.scope,g=b.state,k=[];this.derivedMinMaxBand=mCa(e);if(d!==e){if(g==null?0:g.xAxis)(a=Zk(this.derivedMinMaxBand,(e==null?void 0:e.unit)||null,g.xAxis.min,g.xAxis.max,(e==null?void 0:e.xAxisUnit)||null,g.xAxis.unit||null))&&this.pointConnectionMethod==="zero_fill"&&(a=pCa(a)),$k(this.yAxisRequirement,a)&&(this.yAxisRequirement=a,k.push(gH(this,this.yAxisRequirement)));this.xAxisRequirement=nCa(e);k.push(hH(this,this.xAxisRequirement));
k=k.concat(b9c(this,f,e));if(g&&e){if(a=kH(this.colorStrategy,f,e,g))this.store.dispatch(a),this.colorRecalculationAttemptsRemaining=2;this.withLatest(function(R){(R=R.state)&&k.push(c.createSetSeriesColorMetadataAction(f,e,R))});(a=this.updateMostRecentValues(b))&&k.push(a)}var m;if(a=g==null?void 0:(m=g.seriesSelection)==null?void 0:m.byLayer.entities[f.layerId]){m=a.selectedSeries;a=a.hoveredSeries;var r,w=new Set((r=e==null?void 0:e.series.map(function(R){return R.id}))!=null?r:[]);r=m.filter(function(R){return w.has(R.seriesId)});
r.length!==m.length&&k.push(EH({chartId:f.chartId,layerId:f.layerId,series:r}));r=a.filter(function(R){return w.has(R.seriesId)});if(r.length!==a.length){var x,D,H=g==null?void 0:(x=g.lastInteraction)==null?void 0:(D=x.domain)==null?void 0:D.hover;H&&(r=r.map(function(R){var V,ba,pa=(g==null?0:(V=g.lastInteraction)==null?0:(ba=V.domain)==null?0:ba.hover)?c.getDatumIndices(b,R.seriesId,H,!0):void 0;return Object.assign({},R,{datumIndices:pa})}));k.push(GH({chartId:f.chartId,layerId:f.layerId,series:r}))}}this.updateGridTriggerSubject.next(b)}var J,
O;(g==null?0:(J=g.xAxisPin)==null?0:J.xPos)&&(g==null?0:(O=g.xAxisPin)==null?0:O.locked)&&(x=this.stackedAreaView.getValuesAtTime(b,g.xAxisPin.xPos,this.hoverRadiusMs),(x=this.updateTimeSeriesValues(x,0))&&k.push(x));return k};h.onResizeChange=function(a,b){Bk(a)&&this.updateGridTriggerSubject.next(b)};h.onYAxisChange=function(a,b){zl(a)&&this.updateGridTriggerSubject.next(b)};
var b9c=function(a,b,c){return[UH({chartId:b.chartId,layerId:b.layerId,yAxisId:b.yAxisId,xAxisId:b.xAxisId,valueType:1,unit:(c==null?void 0:c.unit)||null,legendTemplate:a.legendTemplate,alignmentPeriodMs:a.alignmentPeriodMs||void 0,outputPeriodMs:a.outputPeriodMs||void 0}),TH({chartId:b.chartId,layerId:b.layerId,series:c?c.series.map(function(d,e){var f;return{seriesId:d.id,name:(f=d.name)!=null?f:d.id,drawnAs:1,stackingIndex:c.series.length-1-e,dataSeriesMetadata:d.metadata,statsModeSummaryValue:d.statsModeSummaryValue,
legendTemplate:d.legendTemplate}}):[]})]};h=xJ.prototype;
h.onXAxisChange=function(a,b){var c=this,d=[];if(el(a)){var e=b.data,f=b.state;if(f==null?0:f.xAxis)(e=Zk(this.derivedMinMaxBand,(e==null?void 0:e.unit)||null,f.xAxis.min,f.xAxis.max,(e==null?void 0:e.xAxisUnit)||null,f.xAxis.unit||null))&&this.pointConnectionMethod==="zero_fill"&&(e=pCa(e)),$k(this.yAxisRequirement,e)&&(this.yAxisRequirement=e,d.push(gH(this,this.yAxisRequirement)));(e=this.updateMostRecentValues(b))&&d.push(e)}(el(a)||fl(a)||gl(a))&&this.updateGridTriggerSubject.next(b);if(SCa(a)){var g=
void 0;this.defaultColumnMaskGeneratorSubject.next(function(){var k=null;c.gridGeneratorSubject.pipe(mf(1)).subscribe(function(m){k=m&&m()});g===void 0&&(g=c.generateDefaultColumnMask(b,k));return g})}return d};h.onSeriesSelectionChange=function(){this.updateMultiselectMode()};
h.onXAxisPinChange=function(a,b){var c=[],d,e;if(((d=a.previousValue)==null?void 0:d.xPos)!==((e=a.currentValue)==null?void 0:e.xPos)){var f;a=this.stackedAreaView.getValuesAtTime(b,((f=a.currentValue)==null?void 0:f.xPos)||null,this.hoverRadiusMs);(f=this.updateTimeSeriesValues(a,0))&&c.push(f)}return c};
h.onColorMapChange=function(a,b){var c=this,d=[],e=b.scope,f=b.data;a=b.state;f&&a&&(this.colorRecalculationAttemptsRemaining>0&&(a=kH(this.colorStrategy,e,f,a))&&(this.store.dispatch(a),this.colorRecalculationAttemptsRemaining--),this.withLatest(function(g){(g=g.state)&&d.push(c.createSetSeriesColorMetadataAction(e,f,g))}));return d};
h.onFocusedCellChange=function(a){var b=this,c=l(a.focusedGridIndices),d=c.next().value,e=c.next().value;this.withLatest(function(f){var g=f.scope;b.gridGeneratorSubject.pipe(mf(1)).subscribe(function(k){if(k=k&&k()){var m=d!==null?k.rows[d]:null,r=e!==null?k.columns[e]:null;a.focusedCell&&(b.store.dispatch(EH({chartId:g.chartId,layerId:g.layerId,series:m?[{seriesId:m.metadata.seriesId}]:[]})),b.store.dispatch(nH({chartGroupId:g.chartGroupId,position:r?r.metadata.timeMs:null})),b.store.dispatch(oH({chartGroupId:g.chartGroupId,
locked:!!r})));b.store.dispatch(GH({chartId:g.chartId,layerId:g.layerId,series:[]}));d!==null&&e!==null&&(k=k.values[d][e],b.store.dispatch(lH({chartId:g.chartId,lastInteraction:{focus:k.position.x}})),b.store.dispatch(mH({chartId:g.chartId,yAxisId:g.yAxisId,lastInteraction:{focus:k.position.y}})))}})})};h.onGridCellActivate=function(a){this.modalService.focus(0,a)};
h.getDatumIndices=function(a,b,c,d){d=d===void 0?!1:d;var e=a.state,f=a.data;if(e){var g;a=(g=a.data)==null?void 0:g.series.find(function(k){return k.id===b});e=b&&(e==null?0:e.xAxis)&&(e==null?0:e.resize)?il(e.xAxis,e.resize.margins.left,e.resize.width-e.resize.margins.right,f==null?void 0:f.xAxisUnit):null;return(c=a&&e?Jl(a.data||[],e(c),null,d):null)?[{index:c}]:void 0}};
h.hoverHighlight=function(a){var b=this;this.withLatest(function(c){var d=c.scope,e=c.state,f;if(!(e==null?0:(f=e.brush)==null?0:f.panning)){c=(f=a?Y8c(b.stackedAreaView,c,a):null)&&a?b.getDatumIndices(c,f,a.x,!0):void 0;var g,k;e=(e==null?void 0:(g=e.seriesSelection)==null?void 0:(k=g.byLayer.entities[d.layerId])==null?void 0:k.hoveredSeries)||[];g=f?[{seriesId:f,datumIndices:c}]:[];sl(e,g)&&(d=GH({chartId:d.chartId,layerId:d.layerId,series:g}),b.syncActionsBuffer?b.syncActionsBuffer.push(d):b.store.dispatch(d))}})};
h.onClick=function(a){var b=this,c=fH(this,a),d=!1;this.withLatest(function(e){var f=e.config,g=e.scope,k=e.state,m=e.data;if(k&&m){var r=k.seriesSelection,w=k.resize;if(r&&w&&FGa(c,w)){var x=Y8c(b.stackedAreaView,e,c);r=(r=r.byLayer.entities[g.layerId])?r.selectedSeries.map(function(J){return J.seriesId}):[];if(x&&(m=m.series.find(function(J){return J.id===x}))){if(f){var D,H;m.color=(H=(D=f.colorStrategy)==null?void 0:D.getColor(m,k))!=null?H:void 0}b.onSelect.emit(m)}b.interactions.clickSelect&&
(f=[],k=Fl.ve.LineDeselectToggle,x&&(r.length===1&&r.includes(x)?(f=[],k=Fl.ve.LineDeselectToggle):b.isShiftKeyDown&&b.shiftSelectingFromSeriesId&&r.length>0?(f=b.stackedAreaView.getSeriesIdsBetween(e,b.shiftSelectingFromSeriesId,x,c.x)||f,k=Fl.ve.LineMultiSelectToggle):b.isPrimaryModifierKeyDown?(f=r.includes(x)?r.filter(function(J){return J!==x}):[].concat(n(r),[x]),k=Fl.ve.LineSpecificSelectToggle):(f=[x],k=Fl.ve.LineSelectToggle)),b.shiftSelectingFromSeriesId=x,f.length===0&&b.store.dispatch(lH({chartId:g.chartId,
lastInteraction:{multiselectAnchor:null}})),r.length===0&&f.length===1&&(d=!0,b.store.dispatch(lH({chartId:g.chartId,lastInteraction:{multiselectAnchor:c.x}}))),b.store.dispatch(EH({chartId:e.scope.chartId,layerId:e.scope.layerId,series:f.map(function(J){return{seriesId:J}})})),El(b.interactionService,"click",k,b.el.nativeElement))}}});this.withLatest(function(e){e=b.stackedAreaView.getValuesAtXPosition(e,c.x,b.hoverRadiusMs);var f=b.updateTimeSeriesValues(e,2);f&&b.store.dispatch(f);d&&(e=b.updateTimeSeriesValues(e,
4))&&b.store.dispatch(e)})};var c9c=function(a,b){var c=fH(a,b);a.withLatest(function(d){var e=d.config,f=d.state,g=d.data;if(f&&g&&(d=Y8c(a.stackedAreaView,d,c),d!==a.closestLineId))if(a.closestLineId=d,a.closestLineId){if(g=g.series.find(function(r){return r.id===a.closestLineId})){if(e){var k,m;g.color=(m=(k=e.colorStrategy)==null?void 0:k.getColor(g,f))!=null?m:""}a.onHover.emit(g)}}else a.onHoverEnd.emit()})};h=xJ.prototype;
h.onKeyDown=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey;this.updateMultiselectMode()};h.onKeyUp=function(a){this.isCtrlKeyDown=a.ctrlKey;this.isMetaKeyDown=a.metaKey;this.isShiftKeyDown=a.shiftKey;this.updateMultiselectMode()};
h.updateMultiselectMode=function(){var a=this;this.withLatest(function(b){var c,d,e,f=(d=(c=b.state)==null?void 0:c.seriesSelection)==null?void 0:(e=d.byLayer.entities[b.scope.layerId])==null?void 0:e.selectedSeries;(f==null?0:f.length)&&a.updateViewConfig({multiselectMode:f.length>0&&(a.isShiftKeyDown||a.isPrimaryModifierKeyDown)})})};h.onMouseEnter=function(){this.isMouseOver=!0};
h.onMouseMove=function(a){var b=[];if(!this.isMouseOver)return b;var c=fH(this,a);this.syncActionsBuffer=[];this.interactions.hoverHighlight&&this.hoverHighlightTriggerSubject.next(c);this.updateHoverValuesTriggerSubject.next(c);b=b.concat(this.syncActionsBuffer);this.syncActionsBuffer=null;c9c(this,a);return b};h.onMouseLeave=function(){this.isMouseOver=!1;this.interactions.hoverHighlight&&this.hoverHighlight(null);this.onHoverEnd.emit()};
h.generateGrid=function(a){var b=a.data;var c=a.state;a=a.config;if(!b||!c)return null;var d=c.xAxis,e=c.resize;c=c.yAxis;if(!d||!e||!c)return null;var f=hl(d,e.margins.left,e.width-e.margins.right,b.xAxisUnit),g=b.unit,k=c.unit,m=Al(c,e.margins.top,e.height-e.margins.bottom,g),r=d.tickIncrement||null,w=d.timezoneOffset,x=d.timeZoneId;if(!f||!m)return null;e={top:e.margins.top,right:e.width-e.margins.right,bottom:e.height-e.margins.bottom,left:e.margins.left};var D,H,J,O;return VFa({data:b,xAxisState:d,
yAxisState:c,rowFormatter:SFa(b.series,this.legendTemplate),columnFormatter:function(R){return{label:vl({position:R,tickIncrement:r,timeZone:Rk(w,x)}),value:R}},valueFormatter:QFa(g,k),positionMap:UFa(f,m,e,{outputPeriodMs:(a==null?void 0:a.outputPeriodMs)||void 0}),audioChartContext:d.min!==null&&d.max!==null&&c.min!==null&&c.max!==null?{xAxis:{ticks:d.ticks.map(function(R){return R.value}),min:(D=d.min)!=null?D:void 0,max:(H=d.max)!=null?H:void 0},yAxis:{min:(J=c.min)!=null?J:void 0,max:(O=c.max)!=
null?O:void 0}}:void 0})};h.generateDefaultColumnMask=function(a,b){a=a.state;return a&&b?(a=a.xAxis)?NFa({ticks:a.ticks,grid:b}):[]:[]};h.updateHoverValues=function(a){var b=this;this.withLatest(function(c){c=b.stackedAreaView.getValuesAtXPosition(c,a.x,b.hoverRadiusMs);(c=b.updateTimeSeriesValues(c,1))&&(b.syncActionsBuffer?b.syncActionsBuffer.push(c):b.store.dispatch(c))})};
h.updateMostRecentValues=function(a){var b=a.data,c=a.state,d=a.config,e,f=c==null?void 0:(e=c.xAxis)==null?void 0:e.max,g;if(!(c==null?0:(g=c.xAxis)==null?0:g.min)||!f||!d)return null;b=b==null?void 0:b.series.reduce(function(k,m){m=m.data;var r=Hl(m,f,Il(d.outputPeriodMs));return(m=m[r])&&(k===null||Math.abs(f-m.x.valueOf())<Math.abs(f-k))?m.x.valueOf():k},null);c=3E5;d.outputPeriodMs&&d.outputPeriodMs<=c&&(c=void 0);return(a=this.stackedAreaView.getValuesAtTime(a,b!=null?b:f))?this.updateTimeSeriesValues(a,
3):null};h.updateTimeSeriesValues=function(a,b){var c=null;this.withLatest(function(d){d=d.scope;var e,f;c=SH({chartId:d.chartId,layerId:d.layerId,valueType:1,timeKey:b,values:(e=a==null?void 0:a.values)!=null?e:[],timeRange:(f=a==null?void 0:a.timeRange)!=null?f:void 0})});return c};
h.createSetSeriesColorMetadataAction=function(a,b,c){var d=this;return TH({chartId:a.chartId,layerId:a.layerId,series:b.series.map(function(e){var f;return{seriesId:e.id,name:(f=e.name)!=null?f:e.id,drawnAs:1,color:Pl(d.colorStrategy.getColor(e,c)),shape:d.colorStrategy.getShape&&d.colorStrategy.getShape(e,c)}})})};h.getLayerTitle=function(){return this.layerName?"Stacked Area "+this.layerName:"Stacked Area"};
h.ngOnDestroy=function(){eH.prototype.ngOnDestroy.call(this);yG(this.chart,[gH(this,null),hH(this,null),iH(this,!1,"Stacked Area"),jH(this,null,!1),FH({chartId:this.chartId,layerId:this.layerId})])};h.updateViewConfig=function(a){this.configSubject.next(Object.assign({},this.configSubject.value,a))};
da.Object.defineProperties(xJ.prototype,{interactions:{configurable:!0,enumerable:!0,set:function(a){this.interactionsInternal=Object.assign({},a9c,a)},get:function(){return this.interactionsInternal}},outputPeriodMs:{configurable:!0,enumerable:!0,set:function(a){this.outputPeriodMsInternal=a},get:function(){var a;return(a=this.outputPeriodMsInternal)!=null?a:this.alignmentPeriodMs}},colorStrategy:{configurable:!0,enumerable:!0,set:function(a){this.colorStrategyInternal=a||this.colorStrategyInternal},
get:function(){return this.colorStrategyInternal}},isPrimaryModifierKeyDown:{configurable:!0,enumerable:!0,get:function(){return wl?this.isMetaKeyDown:this.isCtrlKeyDown}}});xJ.\u0275fac=function(a){return new (a||xJ)(Ve(Gd),Ve(xG),Ve(LG),Ve(PH),Ve(Fl),Ve(uH),Ve(yH),Ve(Tg))};
xJ.\u0275cmp=C({type:xJ,selectors:[["ac-stacked-area"]],hostAttrs:[1,"composable-layer","ac-stacked-area"],inputs:{data:"data",loading:"loading",error:"error",interactions:"interactions",pointConnectionMethod:"pointConnectionMethod",lineInterpolationMethod:"lineInterpolationMethod",alignmentPeriodMs:"alignmentPeriodMs",hoverRadiusMs:"hoverRadiusMs",outputPeriodMs:"outputPeriodMs",refactorA11yNavInstructions:"refactorA11yNavInstructions",colorStrategy:"colorStrategy",layerName:"layerName",legendTemplate:"legendTemplate",
useLegacyGapDetection:"useLegacyGapDetection",enableManualLatencyTracking:"enableManualLatencyTracking"},outputs:{onSelect:"onSelect",onHover:"onHover",onHoverEnd:"onHoverEnd"},features:[Ff,Gx],decls:3,vars:9,consts:[[3,"onGridCellActivate","onFocusedCellChange","onFocus","onBlur","gridGenerator","columnMaskGenerator","chartTitle","layerTitle","refactorA11yNavInstructions"]],template:function(a,b){a&1&&(K(0,"ac-accessibility-grid",0),U(1,"async"),U(2,"async"),N("onGridCellActivate",function(c){return b.onGridCellActivate(c)})("onFocusedCellChange",
function(c){return b.onFocusedCellChange(c)})("onFocus",function(c){return b.onFocus(c)})("onBlur",function(c){return b.onBlur(c)}),L());a&2&&I("gridGenerator",W(1,5,b.gridGeneratorObservable))("columnMaskGenerator",W(2,7,b.defaultColumnMaskGeneratorObservable))("chartTitle",b.chart.title)("layerTitle",b.getLayerTitle())("refactorA11yNavInstructions",b.refactorA11yNavInstructions)},dependencies:[WH,py],styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}/*# sourceMappingURL=ac_stacked_area.css.map */"],
changeDetection:0});var d9c=[4,4],e9c={globalAlpha:1,lineWidth:2,lineCap:"square",font:'10px "Roboto", sans-serif'},f9c=function(a){UG.call(this,a)};Z(f9c,UG);h=f9c.prototype;h.drawV1=function(a){this.drawInternal(a)};h.onSeriesSelectionChange=function(a,b){var c;tl(a)&&((c=b.data)==null?0:c.relatedSeriesId)&&this.drawInternal(b)};h.onResizeChange=function(a,b){Bk(a)&&this.drawInternal(b)};h.onConfigChange=function(a,b){this.drawInternal(b)};
h.onYAxisChange=function(a,b){var c=a.previousValue,d,e=(d=a.currentValue)==null?void 0:d.position;c=c==null?void 0:c.position;(zl(a)||e!==c)&&this.drawInternal(b)};
h.drawInternal=function(a){var b=this.unpack(a);if(b&&(this.canvas.style.left="0px",this.canvas.style.top="0px",ml(this.canvas,this.base,b.canvasHeight,b.canvasWidth),b.threshold||b.threshold===0)){this.ctx.save();kl(this.ctx,Object.assign({},e9c,{globalAlpha:b.alpha}),this.base);this.ctx.fillStyle=jl(b.color,this.base);this.ctx.strokeStyle=jl(b.color,this.base);this.ctx.setLineDash(d9c);this.ctx.beginPath();this.ctx.moveTo(b.lineStart[0],b.lineStart[1]);this.ctx.lineTo(b.lineEnd[0],b.lineEnd[1]);
this.ctx.stroke();if(b.label!==""){a=b.label;var c=this.ctx.measureText(a).width,d=c+8,e;((e=b.labelPosition)!=null?e:b.yAxisPosition)==="right"?(e=b.lineEnd[0]+4,b.marginWidth<c&&(e+=b.marginWidth-d),c=e+d-b.canvasWidth,c>0&&(e-=c)):(e=b.lineStart[0]-Math.min(c,b.marginWidth)+4,e<0&&(e+=Math.abs(e)+8));c=e-4;b=b.lineEnd[1];this.ctx.setLineDash([]);var f=this.ctx;f.beginPath();f.moveTo(c+2,b);f.lineTo(c+d-2,b);f.quadraticCurveTo(c+d,b,c+d,b+2);f.lineTo(c+d,b+14-2);f.quadraticCurveTo(c+d,b+14,c+d-
2,b+14);f.lineTo(c+2,b+14);f.quadraticCurveTo(c,b+14,c,b+14-2);f.lineTo(c,b+2);f.quadraticCurveTo(c,b,c+2,b);f.closePath();f.fill();f.stroke();d=b+10+1;this.ctx.fillStyle=jl("var(--ac-sys-color-chart-on-surface-inverse, #FFF)",this.base);this.ctx.fillText(a,e,d)}this.ctx.restore()}};
h.unpack=function(a){var b=a.data,c=a.state;a=a.config;if(!c||!a)return null;var d=c.resize,e=c.yAxis;if(!d||!e)return null;var f=d.width,g=d.height,k=Al(e,0,d.height-d.margins.top-d.margins.bottom,(b==null?0:b.unit)?b.unit:null);if(!k)return null;var m,r=(m=a.valueFormatter)!=null?m:Yk;m="";b&&(b.label!==void 0?m=b.label:(m=Wk(b.unit,e.unit,b.threshold),m=m!==null?r(m,e.unit||"1",{maximumFractionDigits:9},e.min!==null&&e.max!==null&&e.unit!==null?{domain:{min:e.min,max:e.max,unit:e.unit}}:void 0):
r(b.threshold,b.unit||e.unit||"1")));r=k(b?b.threshold:0)+d.margins.top;var w=f-d.margins.right;k=nl([d.margins.left,r],e9c.lineWidth);r=nl([w,r],e9c.lineWidth);return{color:a.color,labelPosition:a.labelPosition,label:m,threshold:b==null?void 0:b.threshold,lineStart:k,lineEnd:r,canvasWidth:f,canvasHeight:g,yAxisPosition:e.position,marginWidth:e.position==="left"?d.margins.left:d.margins.right,alpha:g9c(b,c)}};
var g9c=function(a,b){var c=[];if(a==null?0:a.relatedSeriesId){var d,e=l(((d=b.seriesSelection)==null?void 0:d.byLayer.ids)||[]);for(d=e.next();!d.done;d=e.next()){d=d.value;var f=void 0,g=void 0,k=void 0,m=void 0;c=c.concat(((f=b.seriesSelection)==null?void 0:(g=f.byLayer.entities[d])==null?void 0:g.hoveredSeries.map(function(r){return r.seriesId}))||[],((k=b.seriesSelection)==null?void 0:(m=k.byLayer.entities[d])==null?void 0:m.selectedSeries.map(function(r){return r.seriesId}))||[])}}return c.length===
0||c.some(function(r){return r===(a==null?void 0:a.relatedSeriesId)})?1:.15};var h9c=0,yJ=function(a,b,c,d){eH.call(this,a,b,c);var e=this;this.formatterService=d;this.data=null;this.color="var(--ac-sys-color-chart-threshold, #757575)";this.labelPosition=void 0;this.seriesId="ac-threshold-line-series-"+h9c++;this.dataSubject=new Xj(this.data);this.configSubject=new Xj({color:this.color,labelPosition:this.labelPosition});this.yAxisRequirement=null;this.thresholdLineView=new f9c(a.nativeElement);this.views.push(this.thresholdLineView);this.scopeObservable.pipe(zf(function(f){return e.formatterService.getValueStrategy(f)}),
Af(this.destroyed)).subscribe(function(f){var g;e.valueFormatter=(g=f.formatShort)!=null?g:f.format;e.updateConfig()})};Z(yJ,eH);yJ.\u0275dir=eH.\u0275dir;h=yJ.prototype;h.ngOnInit=function(){eH.prototype.ngOnInit.call(this);this.setup({dataObservable:this.dataSubject,configObservable:this.configSubject})};
h.onConfigChange=function(a,b){(a=a.currentValue)&&b.data&&this.store.dispatch(TH({chartId:b.scope.chartId,layerId:b.scope.layerId,series:[{seriesId:this.seriesId,name:b.data.label||"Threshold",color:a.color,drawnAs:6}]}))};
h.onDataChange=function(a,b){a=a.currentValue;var c=b.scope,d=[];this.yAxisRequirement=a?{min:a.threshold,max:a.threshold,priority:1,unit:a.unit||null}:null;d.push(gH(this,this.yAxisRequirement));d.push(UH({chartId:b.scope.chartId,layerId:b.scope.layerId,yAxisId:b.scope.yAxisId,xAxisId:b.scope.xAxisId,valueType:1,unit:(a==null?void 0:a.unit)||null}));b.config&&d.push(TH({chartId:b.scope.chartId,layerId:b.scope.layerId,series:a?[{seriesId:this.seriesId,name:a.label||"Threshold",color:b.config.color,
drawnAs:6}]:[]}));if(a){b=l([1,0,2]);for(var e=b.next();!e.done;e=b.next())d.push(SH({chartId:c.chartId,layerId:c.layerId,valueType:1,timeKey:e.value,values:[{seriesId:this.seriesId,value:{x:new Date,y:a.threshold}}]}))}return d};h.ngOnChanges=function(a){eH.prototype.ngOnChanges.call(this,a);"data"in a&&this.dataSubject.next(this.data);("color"in a||"labelPosition"in a)&&this.updateConfig()};h.ngOnDestroy=function(){eH.prototype.ngOnDestroy.call(this);yG(this.chart,[gH(this,null)])};
h.updateConfig=function(){this.configSubject.next({color:this.color,labelPosition:this.labelPosition,valueFormatter:this.valueFormatter})};yJ.\u0275fac=function(a){return new (a||yJ)(Ve(Gd),Ve(xG),Ve(LG),Ve(KG))};
yJ.\u0275cmp=C({type:yJ,selectors:[["ac-threshold-line"]],hostAttrs:[1,"composable-layer","ac-threshold-line"],inputs:{data:"data",color:"color",labelPosition:"labelPosition"},features:[Ff,Gx],decls:0,vars:0,template:function(){},styles:[".composable-layer[_nghost-%COMP%]{position:absolute;height:100%;width:100%;top:0;left:0}[_nghost-%COMP%]     .overlay-z-index{z-index:9}/*# sourceMappingURL=ac_threshold_line.css.map */"],changeDetection:0});var i9c=Pw(['<svg data-icon-name="alertIcon" viewBox="0 0 24 24" width="24" height="24"><path fill-rule="evenodd" d="M14.4 20.8H9.6c0 1.76 1.08 3.2 2.4 3.2 1.32 0 2.4-1.44 2.4-3.2zm-.808-19.041A8.003 8.003 0 0120 9.6v6.393l1.6 1.6V19.2H2.4v-1.607l1.6-1.6V9.6a8.003 8.003 0 016.408-7.841 1.6 1.6 0 113.185 0z" clip-rule="evenodd"/></svg>']),j9c=vh(i9c).firstElementChild;var k9c=Pw(['<svg data-icon-name="arrowDropDownIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M7 10l5 5 5-5z"/><path fill="none" d="M0 0h24v24H0z"/></svg>']),l9c=vh(k9c).firstElementChild;var m9c=Pw(['<svg data-icon-name="arrowRightIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M10 17l5-5-5-5v10z"/><path fill="none" d="M0 24V0h24v24H0z"/></svg>']),n9c=vh(m9c).firstElementChild;var o9c=Pw(['<svg data-icon-name="baselineCalendarToday24pxIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"/><path fill="none" d="M0 0h24v24H0z"/></svg>']),p9c=vh(o9c).firstElementChild;var q9c=Pw(['<svg data-icon-name="callMadeIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"/></svg>']),r9c=vh(q9c).firstElementChild;var s9c=Pw(['<svg data-icon-name="callReceivedIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M20 5.41L18.59 4 7 15.59V9H5v10h10v-2H8.41z"/></svg>']),t9c=vh(s9c).firstElementChild;var u9c=Pw(['<svg data-icon-name="checkCircleIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>']),v9c=vh(u9c).firstElementChild;var w9c=Pw(['<svg data-icon-name="clearIcon" viewBox="0 0 24 24" width="24" height="24"><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"/></svg>']),x9c=vh(w9c).firstElementChild;var y9c=Pw(['<svg data-icon-name="closeIcon" viewBox="0 0 24 24" width="24" height="24"><path fill-rule="evenodd" 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"/></svg>']),z9c=vh(y9c).firstElementChild;var A9c=Pw(['<svg data-icon-name="codeIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/></svg>']),B9c=vh(A9c).firstElementChild;var C9c=Pw(['<svg data-icon-name="copyFileIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"/></svg>']),D9c=vh(C9c).firstElementChild;var E9c=Pw(['<svg data-icon-name="errorIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path 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"/></svg>']),F9c=vh(E9c).firstElementChild;var G9c=Pw(['<svg data-icon-name="filterListIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/></svg>']),H9c=vh(G9c).firstElementChild;var I9c=Pw(['<svg data-icon-name="filterSmallIcon" viewBox="0 0 18 18" width="18" height="18"><path fill-rule="evenodd" d="M2 4h14v2H2V4zm2 4h10v2H4V8zm2 4h6v2H6v-2z"/></svg>']),J9c=vh(I9c).firstElementChild;var K9c=Pw(['<svg data-icon-name="helpOutlineIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M11 18h2v-2h-2v2zm1-16C6.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 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"/></svg>']),L9c=vh(K9c).firstElementChild;var M9c=Pw(['<svg data-icon-name="highlightOffIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 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>']),N9c=vh(M9c).firstElementChild;var O9c=Pw(['<svg data-icon-name="infoIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path 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-6h2v6zm0-8h-2V7h2v2z"/></svg>']),P9c=vh(O9c).firstElementChild;var Q9c=Pw(['<svg data-icon-name="infoActiveIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path 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-6h2v6zm0-8h-2V7h2v2z"/><path fill="#1a73e8" d="M16.216 4.471c0 2.806 3.036 4.559 5.467 3.156a3.643 3.643 0 001.821-3.156c0-2.807-3.037-4.56-5.466-3.158a3.648 3.648 0 00-1.822 3.158"/></svg>']),R9c=vh(Q9c).firstElementChild;var S9c=Pw(['<svg data-icon-name="keyboardArrowDownIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"/></svg>']),T9c=vh(S9c).firstElementChild;var U9c=Pw(['<svg data-icon-name="keyboardArrowUpIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/></svg>']),V9c=vh(U9c).firstElementChild;var W9c=Pw(['<svg data-icon-name="lensIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"/></svg>']),X9c=vh(W9c).firstElementChild;var Y9c=Pw(['<svg data-icon-name="lightbulbIcon" viewBox="0 0 24 24" width="24" height="24"><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"/><path fill="#F9AB00" d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7z"/></g></svg>']),Z9c=vh(Y9c).firstElementChild;var $9c=Pw(['<svg data-icon-name="listIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/><path fill="none" d="M0 0h24v24H0z"/></svg>']),a$c=vh($9c).firstElementChild;var b$c=Pw(['<svg data-icon-name="moreVertIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>']),c$c=vh(b$c).firstElementChild;var d$c=Pw(['<svg data-icon-name="musicNoteIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"/></svg>']),e$c=vh(d$c).firstElementChild;var f$c=Pw(['<svg data-icon-name="musicOffIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M21.19 21.19L14 14l-2-2-9.2-9.2-1.41 1.42 8.79 8.79c-.06 0-.12-.01-.18-.01a3.999 3.999 0 10.01 8c2.22 0 3.99-1.79 3.99-4v-.17l5.78 5.78 1.41-1.42zM14 11.17V7h4V3h-6v6.17z"/></svg>']),g$c=vh(f$c).firstElementChild;var h$c=Pw(['<svg data-icon-name="offlineBoltIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 2.02c-5.51 0-9.98 4.47-9.98 9.98s4.47 9.98 9.98 9.98 9.98-4.47 9.98-9.98S17.51 2.02 12 2.02zM11.48 20v-6.26H8L13 4v6.26h3.35L11.48 20z"/></svg>']),i$c=vh(h$c).firstElementChild;var j$c=Pw(['<svg data-icon-name="openInNewIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/></svg>']),k$c=vh(j$c).firstElementChild;var l$c=Pw(['<svg data-icon-name="pinOutlineIcon" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M17 4v7l2 3v2h-6v5l-1 1-1-1v-5H5v-2l2-3V4c0-1.1.9-2 2-2h6c1.11 0 2 .89 2 2zM9 4v7.75L7.5 14h9L15 11.75V4H9z"/></svg>']),m$c=vh(l$c).firstElementChild;var n$c=Pw(['<svg data-icon-name="playArrowIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M8 5v14l11-7z"/><path fill="none" d="M0 0h24v24H0z"/></svg>']),o$c=vh(n$c).firstElementChild;var p$c=Pw(['<svg data-icon-name="queryStatsIcon" viewBox="0 0 20 20" width="20" height="20"><path d="M17.917 19.167l-2.605-2.605q-.437.292-.937.428-.5.135-1.042.135-1.583 0-2.687-1.104-1.104-1.104-1.104-2.688 0-1.583 1.104-2.687 1.104-1.104 2.687-1.104 1.584 0 2.688 1.104t1.104 2.687q0 .542-.135 1.042-.136.5-.428.958l2.605 2.584zm-4.584-3.792q.855 0 1.448-.594.594-.593.594-1.448 0-.854-.594-1.448-.593-.593-1.448-.593-.854 0-1.448.593-.593.594-.593 1.448 0 .855.593 1.448.594.594 1.448.594zM2.271 15.25L.833 14.229l4.229-6.75 2.5 2.917 3.334-5.438 2.229 3.334q-.479.041-.937.135-.459.094-.876.302l-.354-.521-3.166 5.125-2.521-2.937zm13.083-6.521q-.416-.208-.875-.302-.458-.094-.937-.135l4.187-6.625 1.438 1.021z"/></svg>']),
q$c=vh(p$c).firstElementChild;var r$c=Pw(['<svg data-icon-name="selectedSeriesIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M12 1.5h10.5V12H12V1.5zm4.345 8.002l4.487-4.487-1.26-1.265-3.227 3.227-1.527-1.522-1.26 1.26 2.787 2.787zM2.25 3.75V12h8.25V3.75H2.25zM9 10.5H3.75V5.25H9v5.25z"/><path d="M2.25 12h8.25v-1.5H3.75z"/><path d="M9 5.25v5.25l1.5 1.5V3.75zM2.25 13.5v8.25h8.25V13.5H2.25zM9 20.25H3.75V15H9v5.25z"/><path d="M2.25 21.75h8.25v-1.5H3.75z"/><path d="M9 15v5.25l1.5 1.5V13.5zm3-1.5v8.25h8.25V13.5H12zm6.75 6.75H13.5V15h5.25v5.25z"/><path d="M12 21.75h8.25v-1.5H13.5z"/><path d="M18.75 15v5.25l1.5 1.5V13.5zM12 12h10.5v-1.5h-9z"/><path d="M21 3v7.5l1.5 1.5V1.5z"/></svg>']),
s$c=vh(r$c).firstElementChild;var t$c=Pw(['<svg data-icon-name="subtitleDownChevronIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6-6-6 1.41-1.42z"/></svg>']),u$c=vh(t$c).firstElementChild;var v$c=Pw(['<svg data-icon-name="subtitleLeftChevronIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M15.41 16.58L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.42z"/></svg>']),w$c=vh(v$c).firstElementChild;var x$c=Pw(['<svg data-icon-name="timePinSetIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M16 5h.99L17 3H7v2h1v7l-2 2v2h5v6l1 1 1-1v-6h5v-2l-2-2z"/></svg>']),y$c=vh(x$c).firstElementChild;var z$c=Pw(['<svg data-icon-name="timePinUnsetIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M12 3c-4.973 0-9 4.027-9 9s4.027 9 9 9 9-4.027 9-9-4.027-9-9-9zm4.5 12.229L15.229 16.5 12 13.271 8.771 16.5 7.5 15.229 10.729 12 7.5 8.771 8.771 7.5 12 10.729 15.229 7.5 16.5 8.771 13.271 12l3.229 3.229z"/></svg>']),A$c=vh(z$c).firstElementChild;var B$c=Pw(['<svg data-icon-name="viewColumnIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z"/><path fill="none" d="M0 0h24v24H0z"/></svg>']),C$c=vh(B$c).firstElementChild;var D$c=Pw(['<svg data-icon-name="warningIcon" viewBox="0 0 24 24" width="24" height="24"><path fill-rule="evenodd" d="M9.022 3.497c1.316-2.303 4.636-2.303 5.952 0l7.805 13.658c1.306 2.285-.344 5.129-2.976 5.129H4.193c-2.632 0-4.282-2.843-2.976-5.129L9.022 3.497zm1.262 10.217h3.428V6.858h-3.428v6.856zm3.428 5.142h-3.428v-3.428h3.428v3.428z" clip-rule="evenodd"/></svg>']),E$c=vh(D$c).firstElementChild;var F$c=Pw(['<svg data-icon-name="zoomOutIcon" viewBox="0 0 24 24" width="24" height="24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"/></svg>']),G$c=vh(F$c).firstElementChild;var I$c=function(a){this.mdIconRegistry=a;a=l(Object.entries(H$c));for(var b=a.next();!b.done;b=a.next()){var c=l(b.value);b=c.next().value;var d=c.next().value;c=this.mdIconRegistry;var e=document.createElement("span");d=fra(d,e);e=c._sanitizer.sanitize(1,d);if(!e)throw Error("Za`"+d);d=$ra(e);c._addSvgIconConfig("ac",b,new hGc("",d))}};I$c.\u0275fac=function(a){return new (a||I$c)(Wc(hz))};I$c.\u0275mod=$e({type:I$c});I$c.\u0275inj=Dc({});
var H$c={alert:j9c,arrow_drop_down:l9c,arrow_right:n9c,baseline_calendar_today_24px:p9c,call_made:r9c,call_received:t9c,check_circle:v9c,clear:x9c,close:z9c,code:B9c,copy_file:D9c,error:F9c,filter_list:H9c,filter_small:J9c,help_outline:L9c,highlight_off:N9c,info:P9c,info_active:R9c,keyboard_arrow_down:T9c,keyboard_arrow_up:V9c,lens:X9c,lightbulb:Z9c,list:a$c,more_vert:c$c,music_note:e$c,music_off:g$c,offline_bolt:i$c,open_in_new:k$c,pin_outline:m$c,play_arrow:o$c,query_stats:q$c,selected_series:s$c,
subtitle_down_chevron:u$c,subtitle_left_chevron:w$c,time_pin_set:y$c,time_pin_unset:A$c,view_column:C$c,warning:E$c,zoom_out:G$c};var zJ=gm({selectId:oBa}),J$c=ok(zJ.getInitialState({}),mk(hG,pBa(zJ,MG)),mk(JWc,qBa(zJ)),mk(jG,Mk(zJ,MG)),mk($_c,function(a,b){var c=b.chartGroupId;return zJ.upsertOne(Object.assign({},a.entities[c]||MG,{chartGroupId:c,axis:0,brushing:!0,xPos:b.position,xPosStart:b.positionStart,panning:!1}),a)}),mk(a0c,function(a,b){b=b.chartGroupId;return zJ.upsertOne(Object.assign({},a.entities[b]||MG,{chartGroupId:b,axis:0,brushing:!1,xPos:null,xPosStart:null,panning:!1}),a)}),mk(b0c,function(a,b){var c=b.chartGroupId;
return zJ.upsertOne(Object.assign({},a.entities[c]||MG,{chartGroupId:c,xPos:b.position}),a)}),mk(c0c,function(a,b){b=b.chartGroupId;return zJ.upsertOne(Object.assign({},a.entities[b]||MG,{chartGroupId:b,axis:0,brushing:!1,panning:!0}),a)}),mk(d0c,function(a,b){b=b.chartGroupId;return zJ.upsertOne(Object.assign({},a.entities[b]||MG,{chartGroupId:b,axis:0,brushing:!1,panning:!1}),a)}),mk(e0c,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.yAxisId;var f=a.entities[c];return f&&f.chartId&&
f.chartId!==d?a:zJ.upsertOne(Object.assign({},f||MG,{chartGroupId:c,axis:1,brushing:!0,yAxes:(f?f.yAxes:[]).concat([{chartId:d,yAxisId:e,yPos:b.position,yPosStart:b.positionStart}]),chartId:d}),a)}),mk(f0c,function(a,b){var c=b.chartGroupId;b=b.chartId;var d=a.entities[c];return!d||d.chartId&&d.chartId===b?zJ.upsertOne(Object.assign({},d||MG,{chartGroupId:c,axis:0,brushing:!1,yAxes:[],chartId:null}),a):a}),mk(g0c,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.yAxisId;var f=b.position;
if((b=a.entities[c])&&(!b.chartId||b.chartId!==d))return a;var g=b?b.yAxes.filter(function(k){return k.yAxisId===e&&k.chartId===d})[0]:{};f=Object.assign({},g,{chartId:d,yAxisId:e,yPos:f});g=b?b.yAxes.filter(function(k){return k.yAxisId!==e||k.chartId!==d}):[];return zJ.upsertOne(Object.assign({},b||MG,{chartGroupId:c,yAxes:g.concat(f)}),a)})),iMa=qk(J$c);var K$c={chartGroupId:"",chartId:"",xAxisId:"chart_group",requirements:[],categories:void 0};var AJ=gm({selectId:tBa}),L$c=ok(AJ.getInitialState({}),mk(jG,function(a,b){var c=b.chartGroupId;var d=b.previousChartId;var e=b.currentChartId;if(!d)return a;b=a;for(var f=l(a.ids),g=f.next();!g.done;g=f.next()){g=g.value;var k=a.entities[g];k&&k.chartGroupId===c&&k.chartId===d&&(b=AJ.mapOne({id:String(g),map:function(m){return Object.assign({},m,{chartId:e})}},b))}return b}),mk(MWc,function(a,b){var c=b.chartGroupId;var d=b.chartId;b=b.xAxisId;return a.entities[Pk(c,d,b)]?a:AJ.addOne(Object.assign({},
K$c,{chartGroupId:c,chartId:d,xAxisId:b}),a)}),mk(NWc,function(a,b){return AJ.removeOne(Pk(b.chartGroupId,b.chartId,b.xAxisId),a)}),mk(UZc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;var f=b.id;b={id:f,categories:b.categories};var g=a.entities[Pk(c,d,e)],k=[];k=g?(f?g.requirements.filter(function(m){return m.id===void 0||m.id!==f}):g.requirements).concat([b]):[b];return AJ.upsertOne(Object.assign({},g||K$c,{chartGroupId:c,chartId:d,xAxisId:e,requirements:k}),a)}),mk(VZc,function(a,
b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;var f=b.id;b=Pk(c,d,e);c=a.entities[b];if(!c||!c.requirements)return a;var g,k;c=(k=(g=c.requirements)==null?void 0:g.filter(function(m){return m.id!==f}))!=null?k:[];return AJ.updateOne({id:b,changes:{requirements:c}},a)}),mk(WZc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;return AJ.upsertOne(Object.assign({},a.entities[Pk(c,d,e)]||K$c,{chartGroupId:c,chartId:d,xAxisId:e,gutterRatio:b.gutterRatio}),a)})),kMa=qk(L$c);var M$c={chartId:"",projectId:void 0,yAxisOrientation:"vertical"};var N$c=gm({selectId:Jk}),O$c=ok(N$c.getInitialState(),mk(jG,Mk(N$c,M$c)),mk(fZc,function(a,b){var c=b.chartId;b=b.projectId;var d;return N$c.upsertOne(Object.assign({},(d=a.entities[c])!=null?d:M$c,{chartId:c,projectId:b}),a)}),mk(gZc,function(a,b){var c=b.chartId;b=b.yAxisOrientation;var d;return N$c.upsertOne(Object.assign({},(d=a.entities[c])!=null?d:M$c,{chartId:c,yAxisOrientation:b}),a)})),mMa=qk(O$c);var P$c={layerId:"",order:0,colorMap:{},shapeMap:{}},Q$c={chartId:"",byLayer:{ids:[],entities:{}},colorMap:{},shapeMap:{}};var R$c=gm({selectId:Jk}),S$c=gm({selectId:Nk}),T$c=ok(R$c.getInitialState({}),mk(hG,Kk(R$c,Q$c)),mk(iG,Lk(R$c)),mk(jG,Mk(R$c,Q$c)),mk(kG,nBa(R$c,S$c)),mk(b_c,function(a,b){var c=b.chartId;var d=b.layerId;var e=a.entities[c]||Q$c;b=S$c.upsertOne(Object.assign({},e.byLayer.entities[d]||P$c,{layerId:d,order:b.order,colorMap:b.colorMap,shapeMap:b.shapeMap}),e.byLayer);d={};for(var f={},g=l(Object.values(b.entities)),k=g.next();!k.done;k=g.next())if(k=k.value){for(var m=l(Object.entries(k.colorMap)),
r=m.next();!r.done;r=m.next()){var w=l(r.value);r=w.next().value;w=w.next().value;d[r]=w}k=l(Object.entries(k.shapeMap));for(m=k.next();!m.done;m=k.next())r=l(m.value),m=r.next().value,r=r.next().value,f[m]=r}return R$c.upsertOne(Object.assign({},e,{chartId:c,byLayer:b,colorMap:d,shapeMap:f}),a)})),oMa=qk(T$c);var U$c={chartId:"",byLayer:{ids:[],entities:{}}},V$c={layerId:"",min:0,max:1,colorPivots:[]};var W$c=gm({selectId:Jk}),X$c=gm({selectId:Nk}),Y$c=function(a){return Object.assign({},U$c,{chartId:a||"",byLayer:X$c.getInitialState({})})},Z$c=ok(W$c.getInitialState({}),mk(hG,Kk(W$c,Y$c())),mk(iG,Lk(W$c)),mk(jG,Mk(W$c,Y$c())),mk(kG,nBa(W$c,X$c,Y$c())),mk($7c,function(a,b){var c=b.chartId;var d=b.layerId;var e=b.min;var f=b.max;b=b.colorPivots;var g=a.entities[c];g||(g=Y$c(c));(c=g.byLayer.entities[d])||(c=Object.assign({},V$c,{layerId:d,min:0,max:1,colorPivots:[]}));d=g;e=Object.assign({},c,{min:e,
max:f,colorPivots:b});e=Object.assign({},d,{byLayer:X$c.upsertOne(e,d.byLayer)});return W$c.upsertOne(e,a)})),qMa=qk(Z$c);var $$c=ok({chartIdToDashboardId:{}},mk(W0c,function(a,b){var c=b.dashboardId;var d=a.chartIdToDashboardId;d=Object.assign({},d,b.chartIds.reduce(function(e,f){e[f]=c;return e},{}));return Object.assign({},a,{chartIdToDashboardId:d})})),sMa=qk($$c);var aad={chartId:"",statuses:[],nonblockingErrors:[]};var BJ=gm({selectId:Jk}),bad=ok(BJ.getInitialState({}),mk(hG,Kk(BJ,aad)),mk(iG,Lk(BJ)),mk(jG,Mk(BJ,aad)),mk(kG,function(a,b){var c=b.chartId;var d=b.previousLayerId;var e=b.currentLayerId;return(b=a.entities[c])?BJ.upsertOne(Object.assign({},b,{statuses:b.statuses.map(function(f){return f.layerId!==d?f:Object.assign({},f,{layerId:e})})}),a):a}),mk(g_c,function(a,b){var c=b.chartId;var d=b.layerId;var e=b.error;var f=b.success;var g=b.sourceId;d={layerId:d,sourceId:g,error:e,success:f};d=(b=a.entities[c])?
b.statuses.filter(function(k){return k.sourceId!==g}).concat([d]):[d];return BJ.upsertOne(Object.assign({},aad,b,{chartId:c,statuses:d}),a)}),mk(h_c,function(a,b){var c=b.chartId;var d=b.sourceId;b=a.entities[c];if(!b)return a;b=b.statuses.filter(function(e){return e.sourceId!==d});return BJ.updateOne({id:c,changes:{statuses:b}},a)}),mk(i_c,function(a,b){var c=b.chartId;var d=b.layerId;var e=b.error;var f=b.sourceId;d={sourceId:f,layerId:d,error:e,success:!1};d=(b=a.entities[c])?b.nonblockingErrors.filter(function(g){return g.sourceId!==
f}).concat([d]):[d];return BJ.upsertOne(Object.assign({},aad,b,{chartId:c,nonblockingErrors:d}),a)}),mk(j_c,function(a,b){var c=b.chartId;var d=b.sourceId;b=a.entities[c];if(!b)return a;b=b.nonblockingErrors.filter(function(e){return e.sourceId!==d});return BJ.updateOne({id:c,changes:{nonblockingErrors:b}},a)})),uMa=qk(bad);var cad=gk("[AC] Set selected exemplar for chart and layer",hk()),dad=gk("[AC] Set hovered exemplar for chart and layer",hk());var hm=gm({selectId:Jk}),xMa=gm({selectId:Nk}),wMa=function(a){return{chartId:a||"",byLayer:xMa.getInitialState({})}},ead=ok(hm.getInitialState({}),mk(hG,Kk(hm,wMa())),mk(iG,Lk(hm)),mk(jG,Mk(hm,wMa())),mk(kG,nBa(hm,xMa,wMa())),mk(cad,function(a,b){return yMa(a,b.chartId,b.layerId,{selectedExemplar:b.exemplarPoint})}),mk(dad,function(a,b){return yMa(a,b.chartId,b.layerId,{hoveredExemplar:b.exemplarPoint})})),zMa=qk(ead);var fad=Object.assign({},{requirements:[]},{chartGroupId:null,chartId:null,layerId:null});var gad=ok(fad,mk(jG,function(a,b){var c=b.chartGroupId;var d=b.previousChartId;var e=b.currentChartId;a=a.requirements.map(function(f){return f.chartGroupId===c&&f.chartId===d?Object.assign({},f,{chartId:e}):f});return Object.assign({},fad,{requirements:a},a[a.length-1])}),mk(kG,function(a,b){var c=b.chartId;var d=b.previousLayerId;var e=b.currentLayerId;a=a.requirements.map(function(f){return f.chartId===c&&f.layerId===d?Object.assign({},f,{layerId:e}):f});return Object.assign({},fad,{requirements:a},
a[a.length-1])}),mk(m_c,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.layerId;a=a.requirements.filter(function(f){return f.chartGroupId!==c&&f.chartId!==d&&f.layerId!==(e||null)}).concat([{chartGroupId:c,chartId:d,layerId:e||null}]);return Object.assign({},fad,{requirements:a},a[a.length-1])}),mk(n_c,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.layerId;a=a.requirements.filter(function(f){return f.chartGroupId!==c&&f.chartId!==d&&f.layerId!==(e||null)});return Object.assign({},
fad,{requirements:a},a[a.length-1])})),BMa=qk(gad);var had=ok({chartsByGroup:{},layersByGroup:{}},mk(jG,function(a,b){var c=b.chartGroupId;var d=b.previousChartId;b=b.currentChartId;var e=Object.assign({},a.chartsByGroup),f=e[c]?new Set(e[c]):new Set;d&&f.delete(d);f.add(b);e[c]=f;return Object.assign({},a,{chartsByGroup:e})}),mk(kG,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.previousLayerId;var f=b.currentLayerId;b=a.layersByGroup[c];var g=b==null?void 0:b[d];if(!e||!g||!g.graphicLayerIds.has(e)&&!g.axisLayerIds.has(e))return a;var k=
g.graphicLayerIds;k.has(e)&&(k=new Set(k),k.delete(e),k.add(f));var m=g.axisLayerIds;m.has(e)&&(m=new Set(m),m.delete(e),m.add(f));e={};f={};return Object.assign({},a,{layersByGroup:Object.assign({},a.layersByGroup,(f[c]=Object.assign({},b,(e[d]=Object.assign({},g,{graphicLayerIds:k,axisLayerIds:m}),e)),f))})}),mk(hG,function(a,b){var c=b.chartId;b=b.chartGroupId;var d=Object.assign({},a.chartsByGroup),e=d[b]?new Set(d[b]):new Set;e.add(c);d[b]=e;return Object.assign({},a,{chartsByGroup:d})}),mk(iG,
function(a,b){var c=b.chartId;b=b.chartGroupId;var d=Object.assign({},a.chartsByGroup),e=Object.assign({},a.layersByGroup),f=d[b]?new Set(d[b]):new Set;f.delete(c);f.size>0?d[b]=f:delete d[b];f=e[b]?Object.assign({},e[b]):{};delete f[c];Object.keys(f).length>0?e[b]=f:delete e[b];return Object.assign({},a,{chartsByGroup:d,layersByGroup:e})}),mk(OWc,function(a,b){var c=b.layerId;var d=b.chartId;var e=b.chartGroupId;var f=b.layerType;if(f==null)return a;b=Object.assign({},a.layersByGroup);var g=b[e]?
Object.assign({},b[e]):{};if(g[d]){var k=g[d],m=k.graphicLayerIds;k=k.axisLayerIds;f==="graphic"?(m=new Set(m),m.add(c)):(k=new Set(k),k.add(c));g[d]=Object.assign({},g[d],{graphicLayerIds:m,axisLayerIds:k})}else f==="graphic"?(f=new Set([c]),c=new Set):(f=new Set,c=new Set([c])),g[d]={graphicLayerIds:f,axisLayerIds:c};b[e]=g;return Object.assign({},a,{layersByGroup:b})}),mk(PWc,function(a,b){var c=b.layerId;var d=b.chartId;var e=b.chartGroupId;var f=b.layerType;if(f==null)return a;b=Object.assign({},
a.layersByGroup);var g=b[e]?Object.assign({},b[e]):{};if(!g[d])return a;if(f==="graphic"){f=g[d].axisLayerIds;var k=g[d].graphicLayerIds;k=new Set(k);k.delete(c);f.size+k.size>0?g[d]={axisLayerIds:f,graphicLayerIds:k}:delete g[d]}else f=g[d].graphicLayerIds,k=g[d].axisLayerIds,k=new Set(k),k.delete(c),k.size+f.size>0?g[d]={axisLayerIds:k,graphicLayerIds:f}:delete g[d];Object.keys(g).length>0?b[e]=g:delete b[e];return Object.assign({},a,{layersByGroup:b})})),DMa=qk(had);var iad=gk("[AC] Set hover disabled",hk());var jad={disabled:!1};var kad=ok(jad,mk(iad,function(a,b){return Object.assign({},jad,{disabled:b.disabled})})),FMa=qk(kad);var lad={chartId:"",domain:{hover:null,click:null,focus:null,multiselectAnchor:null},category:{hover:null,click:null,focus:null,multiselectAnchor:null},byYAxis:{ids:[],entities:{}},threshold:{hover:null}},mad={yAxisId:"right",hover:null,click:null,focus:null,multiselectAnchor:null};var nad={hover:null,click:null},CJ=gm({selectId:Jk}),oad=gm({selectId:function(a){return a.yAxisId}}),pad=ok(CJ.getInitialState({}),mk(hG,Kk(CJ,lad)),mk(iG,Lk(CJ)),mk(jG,Mk(CJ,lad)),mk(lH,function(a,b){var c=a.entities[b.chartId];if(!c)return a;b=Object.assign({},lad,c,{domain:Object.assign({},nad,c.domain,b.lastInteraction)});return CJ.upsertOne(b,a)}),mk(mH,function(a,b){var c=b.chartId;var d=b.yAxisId;c=a.entities[c];if(!c)return a;b=Object.assign({},mad,c.byYAxis.entities[d],{yAxisId:d},b.lastInteraction);
b=Object.assign({},c,{byYAxis:oad.upsertOne(b,c.byYAxis)});return CJ.upsertOne(b,a)}),mk(h0c,function(a,b){var c=a.entities[b.chartId];if(!c)return a;b=Object.assign({},lad,c,{category:Object.assign({},nad,c.category,b.lastInteraction)});return CJ.upsertOne(b,a)}),mk(i0c,function(a,b){var c=a.entities[b.chartId];if(!c)return a;b=Object.assign({},lad,c,{threshold:Object.assign({},nad,c.threshold,b.lastInteraction)});return CJ.upsertOne(b,a)})),HMa=qk(pad);var qad={chartId:"",sourceToLoadingMap:{},sourceToDescriptionMap:{},loading:!1,loadingDescription:"default",hasLoadingEverOccurred:!1};var rad=gm({selectId:Jk}),sad=ok(rad.getInitialState({}),mk(hG,Kk(rad,qad)),mk(iG,Lk(rad)),mk(jG,Mk(rad,qad)),mk(q_c,function(a,b){var c=b.chartId;var d=b.sourceId;var e=b.loading;var f=b.loadingDescription;b=a.entities[c];var g={};g=Object.assign({},b?b.sourceToLoadingMap:{},(g[d]=e,g));var k={};d=Object.assign({},b?b.sourceToDescriptionMap:{},(k[d]=f,k));return rad.upsertOne(Object.assign({},qad,b,{chartId:c,sourceToLoadingMap:g,sourceToDescriptionMap:d,loading:JMa(g),hasLoadingEverOccurred:(Array.isArray(e)?
!!e.length:!!e)||!(b==null||!b.hasLoadingEverOccurred)}),a)}),mk(r_c,function(a,b){var c=b.chartId;var d=b.sourceId;var e=a.entities[c];if(!e)return a;b=Object.keys(e.sourceToLoadingMap).filter(function(g){return g!==d}).reduce(function(g,k){var m={};return Object.assign({},g,(m[k]=e.sourceToLoadingMap[k],m))},{});var f=JMa(b);return rad.updateOne({id:c,changes:{sourceToLoadingMap:b,loading:f}},a)})),KMa=qk(sad);var tad=gk("[AC] Sets the group ID to name map",hk()),uad=gk("[AC] Sets the instance ID to name map",hk());var vad={chartGroupId:"",group:{},instance:{}};var wad=gm({selectId:oBa}),xad=ok(wad.getInitialState({}),mk(hG,pBa(wad,vad)),mk(JWc,qBa(wad)),mk(jG,Mk(wad,vad)),mk(tad,function(a,b){var c=b.chartGroupId;return wad.upsertOne(Object.assign({},a.entities[c]||vad,{chartGroupId:c,group:b.map}),a)}),mk(uad,function(a,b){var c=b.chartGroupId;return wad.upsertOne(Object.assign({},a.entities[c]||vad,{chartGroupId:c,instance:b.map}),a)})),MMa=qk(xad);var yad={chartGroupId:"",chartId:"",height:0,width:0,margins:{top:0,bottom:0,left:0,right:0},offsets:{top:0,left:0},requirements:[],reservedMarginsByLayer:{ids:[],entities:{}},useChartGroupHorizontalMargins:!1};var DJ=gm({selectId:Jk}),im=gm({selectId:Nk}),zad=ok(DJ.getInitialState({}),mk(hG,function(a,b){var c=b.chartGroupId;b=b.chartId;return a.entities[b]?a:DJ.addOne(Object.assign({},yad,{chartId:b,chartGroupId:c}),a)}),mk(iG,Lk(DJ)),mk(jG,function(a,b){var c=b.chartGroupId;var d=b.previousChartId;var e=b.currentChartId;return d?DJ.mapOne({id:d,map:function(f){return Object.assign({},f,{chartId:e})}},a):a.entities[e]?a:DJ.addOne(Object.assign({},yad,{chartId:e,chartGroupId:c}),a)}),mk(kG,function(a,b){var c=
b.previousLayerId;var d=b.currentLayerId;return DJ.map(function(e){return Object.assign({},e,{requirements:e.requirements.map(function(f){return f.layerId===c?Object.assign({},f,{layerId:d}):f}),reservedMarginsByLayer:im.map(function(f){return f.layerId===c?Object.assign({},f,{layerId:d}):f},e.reservedMarginsByLayer)})},a)}),mk(jZc,function(a,b){var c=b.chartGroupId;var d=b.chartId;b=b.useChartGroupHorizontalMargins;var e=a.entities[d],f=e==null?void 0:e.margins,g,k=OMa((g=e==null?void 0:e.requirements)!=
null?g:[]);g=k.margins;k=k.reservedMarginsByLayer;var m=SMa(a,c,d);if(b){m=PMa(g.left,g.right,m);var r=m.right;g.left=m.left;g.right=r}return DJ.upsertOne(Object.assign({},yad,e,{chartGroupId:c,chartId:d,useChartGroupHorizontalMargins:b,margins:g.top===(f==null?void 0:f.top)&&g.bottom===(f==null?void 0:f.bottom)&&g.left===(f==null?void 0:f.left)&&g.right===(f==null?void 0:f.right)?f:g,reservedMarginsByLayer:k}),a)}),mk(hZc,function(a,b){var c=b.chartGroupId;var d=b.chartId;return DJ.upsertOne(Object.assign({},
a.entities[d]||yad,{chartGroupId:c,chartId:d,height:Math.ceil(b.height),width:Math.ceil(b.width),offsets:b.offsets}),a)}),mk(NG,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.layerId;var f={layerId:e,reservedMargins:b.reservedMargins,overlappingMargins:b.overlappingMargins};b=a.entities[d];var g=b==null?void 0:b.margins;f=b?b.requirements.filter(function(r){return r.layerId!==e}).concat([f]):[f];var k=OMa(f),m=k.margins;b=Object.assign({},yad,b,{chartGroupId:c,chartId:d,requirements:f,
margins:m.top===(g==null?void 0:g.top)&&m.bottom===(g==null?void 0:g.bottom)&&m.left===(g==null?void 0:g.left)&&m.right===(g==null?void 0:g.right)?g:m,reservedMarginsByLayer:k.reservedMarginsByLayer});c=SMa(a,c,d);return DJ.upsertMany(RMa(b,c).concat([b]),a)}),mk(iZc,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.layerId;b=a.entities[d];if(!b)return a;var f=b.margins,g=b.requirements.filter(function(r){return r.layerId!==e}),k=OMa(g),m=k.margins;b=Object.assign({},yad,b,{chartGroupId:c,
chartId:d,requirements:g,margins:m.top===f.top&&m.bottom===f.bottom&&m.left===f.left&&m.right===f.right?f:m,reservedMarginsByLayer:k.reservedMarginsByLayer});c=SMa(a,c,d);return DJ.upsertMany(RMa(b,c).concat([b]),a)})),TMa=qk(zad);var Aad={chartId:"",byLayer:{ids:[],entities:{}}},WMa={layerId:"",selectedSeries:[],hoveredSeries:[],lastClickedSeries:[],multiselectAnchorSeries:null,tooltipAnnotations:[],hoveredAnnotations:[]};var EJ=gm({selectId:Jk}),FJ=gm({selectId:Nk}),VMa=function(a){return Object.assign({},Aad,{chartId:a||"",byLayer:FJ.getInitialState({})})},Bad=ok(EJ.getInitialState({}),mk(hG,Kk(EJ,VMa())),mk(iG,Lk(EJ)),mk(jG,Mk(EJ,VMa())),mk(kG,nBa(EJ,FJ,VMa())),mk(EH,function(a,b){var c=b.chartId;var d=b.layerId;b=b.series;d=jm(a,c,d);c=d.chartState;d=d.layerState;if(!sl(d.selectedSeries,b))return a;b=Object.assign({},d,{selectedSeries:b});b=Object.assign({},c,{byLayer:FJ.upsertOne(b,c.byLayer)});return EJ.upsertOne(b,
a)}),mk(FH,function(a,b){var c=jm(a,b.chartId,b.layerId);b=c.chartState;c=Object.assign({},c.layerState,{selectedSeries:[]});b=Object.assign({},b,{byLayer:FJ.upsertOne(c,b.byLayer)});return EJ.upsertOne(b,a)}),mk(L1c,function(a,b){var c=b.chartId;var d=b.layerId;b=b.series;d=jm(a,c,d);c=d.chartState;d=d.layerState;b=[].concat(n(d.selectedSeries),[b]);b=Object.assign({},d,{selectedSeries:b});b=Object.assign({},c,{byLayer:FJ.upsertOne(b,c.byLayer)});return EJ.upsertOne(b,a)}),mk(M1c,function(a,b){var c=
b.chartId;var d=b.layerId;var e=b.series;c=jm(a,c,d);b=c.chartState;c=c.layerState;d=c.selectedSeries.filter(function(f){return f.seriesId!==e.seriesId});c=Object.assign({},c,{selectedSeries:d});b=Object.assign({},b,{byLayer:FJ.upsertOne(c,b.byLayer)});return EJ.upsertOne(b,a)}),mk(GH,function(a,b){var c=b.chartId;var d=b.layerId;b=b.series;d=jm(a,c,d);c=d.chartState;d=d.layerState;if(!sl(d.hoveredSeries,b))return a;b=Object.assign({},d,{hoveredSeries:b});b=Object.assign({},c,{byLayer:FJ.upsertOne(b,
c.byLayer)});return EJ.upsertOne(b,a)}),mk(N1c,function(a,b){var c=b.chartId;var d=b.layerId;b=b.series;d=jm(a,c,d);c=d.chartState;b=Object.assign({},d.layerState,{lastClickedSeries:b});b=Object.assign({},c,{byLayer:FJ.upsertOne(b,c.byLayer)});return EJ.upsertOne(b,a)}),mk(O1c,function(a,b){var c=b.chartId;var d=b.layerId;b=b.series;d=jm(a,c,d);c=d.chartState;b=Object.assign({},d.layerState,{multiselectAnchorSeries:b});b=Object.assign({},c,{byLayer:FJ.upsertOne(b,c.byLayer)});return EJ.upsertOne(b,
a)}),mk(P1c,function(a,b){var c=b.chartId;var d=b.layerId;b=b.annotations;d=jm(a,c,d);c=d.chartState;b=Object.assign({},d.layerState,{tooltipAnnotations:b});b=Object.assign({},c,{byLayer:FJ.upsertOne(b,c.byLayer)});return EJ.upsertOne(b,a)}),mk(Q1c,function(a,b){var c=b.chartId;var d=b.layerId;b=b.annotations;d=jm(a,c,d);c=d.chartState;b=Object.assign({},d.layerState,{hoveredAnnotations:b});b=Object.assign({},c,{byLayer:FJ.upsertOne(b,c.byLayer)});return EJ.upsertOne(b,a)})),XMa=qk(Bad);var Cad=gk("[AC] Set Chart Spec State",hk());var Dad=gm({selectId:Jk}),Ead={chartId:"",dataSets:[]},Fad=ok(Dad.getInitialState({}),mk(hG,Kk(Dad,Ead)),mk(iG,Lk(Dad)),mk(jG,Mk(Dad,Ead)),mk(Cad,function(a,b){return Dad.upsertOne(Object.assign({},b||Ead),a)})),ZMa=qk(Fad);var km=gm({selectId:Jk}),bNa=gm({selectId:Nk}),Gad=gm({selectId:function(a){return a.seriesId}}),Had=ok(km.getInitialState(),mk(hG,Kk(km,aNa)),mk(iG,Lk(km)),mk(jG,Mk(km,aNa)),mk(kG,nBa(km,bNa)),mk(PWc,function(a,b){return cNa(a,b.chartId,b.layerId,function(){})}),mk(UH,function(a,b){var c=b.chartId;var d=b.layerId;var e=b.yAxisId;var f=b.xAxisId;var g=b.valueType;var k=b.unit;var m=b.legendTemplate;var r=b.pointConnectionMethod;var w=b.alignmentPeriodMs;var x=b.outputPeriodMs;return cNa(a,c,d,function(D){return Object.assign({},
C1c,D,{layerId:d,yAxisId:e,xAxisId:f,valueType:g,unit:k,legendTemplate:m,pointConnectionMethod:r||(D==null?void 0:D.pointConnectionMethod),alignmentPeriodMs:w,outputPeriodMs:x})})}),mk(TH,function(a,b){var c=b.chartId;var d=b.layerId;var e=b.series;return cNa(a,c,d,function(f){if(!f)return f;var g=e.map(function(k){return Object.assign({},D1c,f==null?void 0:f.bySeries.entities[k.seriesId],k)});return Object.assign({},f,{bySeries:Gad.addMany(g,Gad.getInitialState({})),layerId:d})})}),mk(SH,function(a,
b){var c=b.chartId;var d=b.layerId;var e=b.valueType;var f=b.timeKey;var g=b.values;var k=b.timeRange;var m=b.category;return cNa(a,c,d,function(r){if(!r||r.valueType!==e)return r;var w,x=(w=r.snapshotMetadata)!=null?w:{};w=dNa(x,f,k,m);var D=Object.values(r.bySeries.entities).filter(function(J){return!!J}),H=eNa(D,g,f);return x===w&&D===H?r:Object.assign({},C1c,r,{snapshotMetadata:w,bySeries:Gad.upsertMany(H,(r==null?void 0:r.bySeries)||Gad.getInitialState({})),layerId:d})})})),fNa=qk(Had);var GJ=gm({selectId:tBa}),Iad=ok(GJ.getInitialState({}),mk(jG,function(a,b){var c=b.chartGroupId;var d=b.previousChartId;var e=b.currentChartId;if(!d)return a;b=a;for(var f=l(a.ids),g=f.next();!g.done;g=f.next()){g=g.value;var k=a.entities[g];k&&k.chartGroupId===c&&k.chartId===d&&(b=GJ.mapOne({id:String(g),map:function(m){return Object.assign({},m,{chartId:e})}},b))}return b}),mk(KWc,function(a,b){var c=b.chartGroupId;var d=b.chartId;b=b.xAxisId;return a.entities[Pk(c,d,b)]?a:GJ.addOne(Object.assign({},
E_c,{chartGroupId:c,chartId:d,xAxisId:b}),a)}),mk(LWc,function(a,b){return GJ.removeOne(Pk(b.chartGroupId,b.chartId,b.xAxisId),a)}),mk(JWc,function(a,b){var c=b.chartGroupId;b=Object.values(a.entities).reduce(function(d,e){return e&&e.chartGroupId===c?d.concat([Pk(e.chartGroupId,e.chartId,e.xAxisId)]):d},[]);return GJ.removeMany(b,a)}),mk(y_c,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;var f=b.id;var g=b.priority;var k=b.absoluteMin;var m=b.min;var r=b.max;var w=b.unit;var x=
b.bucketWidth;var D=b.cause;b={id:f,priority:g,absoluteMin:k,min:m,max:r,unit:w,bucketWidth:x,constraints:b.constraints};k=a.entities[Pk(c,d,e)];m=[];m=k?(f?k.requirements.filter(function(H){return H.id===void 0||H.id!==f||H.priority!==g}):k.requirements).concat([b]):[b];return GJ.upsertOne(Object.assign({},k||E_c,{chartGroupId:c,chartId:d,xAxisId:e,requirements:m,lastUpdateCausedBy:D||0}),a)}),mk(z_c,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;var f=b.priority;var g=b.cause;
b=b.keepLastCause;c=Pk(c,d,e);d=a.entities[c];if(!d)return a;d=d.requirements.filter(function(k){return k.priority!==f});return GJ.updateOne({id:c,changes:Object.assign({},{requirements:d},b?{}:{lastUpdateCausedBy:g||0})},a)}),mk(A_c,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;var f=b.id;var g=b.cause;b=b.keepLastCause;c=Pk(c,d,e);d=a.entities[c];if(!d)return a;d=d.requirements.filter(function(k){return k.id!==f});return GJ.updateOne({id:c,changes:Object.assign({},{requirements:d},
b?{}:{lastUpdateCausedBy:g||0})},a)}),mk(B_c,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;return GJ.upsertOne(Object.assign({},a.entities[Pk(c,d,e)]||E_c,{chartGroupId:c,chartId:d,xAxisId:e,relativeTo:{xAxisId:b.relativeToId,shift:b.shift}}),a)}),mk(C_c,function(a,b){var c=b.chartGroupId;var d=b.chartId;var e=b.xAxisId;return GJ.upsertOne(Object.assign({},a.entities[Pk(c,d,e)]||E_c,{chartGroupId:c,chartId:d,xAxisId:e,timezoneOffset:b.timezoneOffset}),a)}),mk(D_c,function(a,b){var c=
b.chartGroupId;var d=b.chartId;var e=b.xAxisId;return GJ.upsertOne(Object.assign({},a.entities[Pk(c,d,e)]||E_c,{chartGroupId:c,chartId:d,xAxisId:e,timeZoneId:b.timeZoneId}),a)})),hNa=qk(Iad);var Jad=gm({selectId:oBa}),Kad=ok(Jad.getInitialState({}),mk(hG,pBa(Jad,E1c)),mk(JWc,qBa(Jad)),mk(nH,function(a,b){var c=b.chartGroupId;b=b.position;var d=a.entities[c],e=0;d&&d.xPos!==null&&b!==null&&(b>d.xPos&&(e=3),b<d.xPos&&(e=2),b===d.xPos&&(e=1));return Jad.upsertOne(Object.assign({},d||E1c,{chartGroupId:c,xPos:b,directionOfTravel:e}),a)}),mk(oH,function(a,b){var c=b.chartGroupId;return Jad.upsertOne(Object.assign({},a.entities[c]||E1c,{chartGroupId:c,locked:b.locked}),a)}),mk(pH,function(a,
b){var c=b.chartGroupId;return Jad.upsertOne(Object.assign({},a.entities[c]||E1c,{chartGroupId:c,trackingNow:b.trackingNow}),a)})),jNa=qk(Kad);var Ok=gm({selectId:function(a){return a.chartId+","+a.yAxisId}}),Lad=ok(Ok.getInitialState({}),mk(jG,function(a,b){var c=b.previousChartId;var d=b.currentChartId;return c?Ok.map(function(e){return e.chartId===c?Object.assign({},e,{chartId:d}):e},a):a}),mk(kZc,function(a,b){var c=b.chartId;var d=b.yAxisId;var e=b.id;var f=b.priority;var g=b.absoluteMin;var k=b.min;var m=b.max;var r=b.unit;var w=b.cause;b=b.constraints;r==="{not_a_unit}"&&(r="1");if(d==="right"||d==="left"){var x=d==="left"?"right":
"left",D=a.entities[c+","+x];if(D){var H=e?D.requirements.filter(function(J){return J.id===void 0||J.id!==e}):D.requirements;H.length!==D.requirements.length&&(a=Ok.upsertOne(Object.assign({},D||rBa,{chartId:c,yAxisId:x,requirements:H,lastUpdateCausedBy:w||0}),a))}}f={id:e,priority:f,absoluteMin:g,min:k,max:m,unit:r,constraints:b};g=a.entities[c+","+d];k=[];k=g?(e?g.requirements.filter(function(J){return J.id===void 0||J.id!==e}):g.requirements).concat([f]):[f];return Ok.upsertOne(Object.assign({},
g||rBa,{chartId:c,yAxisId:d,requirements:k,lastUpdateCausedBy:w||0}),a)}),mk(mZc,function(a,b){var c=b.chartId;var d=b.yAxisId;var e=b.priority;b=b.cause;var f=d?[c+","+d]:a.ids.filter(function(m){return m.startsWith(c)});d=[];f=l(f);for(var g=f.next();!g.done;g=f.next()){g=g.value;var k=a.entities[g];k&&(k=k.requirements.filter(function(m){return m.priority!==e}),d.push({id:g,changes:{requirements:k,lastUpdateCausedBy:b||0}}))}return Ok.updateMany(d,a)}),mk(nZc,function(a,b){var c=b.chartId;var d=
b.yAxisId;var e=b.id;b=b.cause;var f=c+","+d,g=a.entities[f];if(!g)return sBa()(a,{chartId:c,yAxisId:d});c=g.requirements.filter(function(k){return k.id!==e});return Ok.updateOne({id:f,changes:{requirements:c,lastUpdateCausedBy:b||0}},a)}),mk(oZc,function(a,b){var c=b.chartId;var d=b.yAxisId;return Ok.upsertOne(Object.assign({},a.entities[c+","+d]||rBa,{chartId:c,yAxisId:d,position:b.position}),a)}),mk(lZc,function(a,b){var c=b.chartId;var d=b.yAxisId;b=b.label;return Ok.upsertOne(Object.assign({},
a.entities[c+","+d]||rBa,{chartId:c,yAxisId:d,label:b&&b!=="y1Axis"&&b!=="y2Axis"?b:""}),a)})),lNa=qk(Lad);var Mad=function(){};Mad.\u0275fac=function(a){return new (a||Mad)};Mad.\u0275mod=$e({type:Mad});var Nad,Oad=void 0;Oad=Oad===void 0?{}:Oad;var Pad=[],Qad=Pad.concat,Rad,Sad=function(a,b){return tAa({brush:jMa,categoricalAxis:lMa,chart:nMa,colorMap:pMa,chartSpec:$Ma,colorScale:rMa,dashboard:tMa,error:vMa,exemplarSelection:AMa,focus:CMa,hierarchy:EMa,hoverDisabled:GMa,lastInteraction:IMa,loading:LMa,map:NMa,resize:UMa,seriesSelection:YMa,xAxisPin:kNa,timeSeries:gNa,xAxis:iNa,yAxis:mNa})(a,b)},HJ=Oad;
HJ=HJ===void 0?{}:HJ;
Rad=[{provide:oWc,multi:!0,useValue:HJ},{provide:lWc,multi:!0,useValue:{key:"awesomecharts",reducerFactory:HJ instanceof bd||!HJ.reducerFactory?tAa:HJ.reducerFactory,metaReducers:HJ instanceof bd||!HJ.metaReducers?[]:HJ.metaReducers,initialState:HJ instanceof bd||!HJ.initialState?void 0:HJ.initialState}},{provide:pWc,deps:[oWc,lWc],useFactory:function(a,b){return b.map(function(c,d){return a[d]instanceof bd?(d=q(a[d]),{key:c.key,reducerFactory:d.reducerFactory?d.reducerFactory:tAa,metaReducers:d.metaReducers?
d.metaReducers:[],initialState:d.initialState}):c})}},{provide:nWc,multi:!0,useValue:Sad},{provide:qWc,multi:!0,useExisting:Sad instanceof bd?Sad:nWc},{provide:rWc,multi:!0,deps:[nWc,[new DCc(qWc)]],useFactory:function(a){return a.map(function(b){return b instanceof bd?q(b):b})}},IAa()];Nad={ngModule:gG,providers:Qad.call(Pad,n(Rad))};Mad.\u0275inj=Dc({imports:[Nad]});var Tad=[bJ,cJ,eJ,gJ,lJ,hJ,cI,AH,DH,dI,mJ,oJ,qJ,RH,zI,OH,gI,YH,sJ,eI,vJ,LH,xJ,fI,yJ,wH,bI,uJ,uA],IJ=function(){ZF.setWhitelist("chart-analytics-events",!0);ZF.setWhitelist("chart-loading-timings",!0);ZF.setThrowPartials&&ZF.setThrowPartials(!1)};IJ.\u0275fac=function(a){return new (a||IJ)};IJ.\u0275mod=$e({type:IJ,id:"pm_awesomecharts_module"});IJ.\u0275inj=Dc({providers:[{provide:T3c,useValue:{AcChart:AH}}],imports:[Tad,Mad,I$c,uA]});var Uad=TDc.get("pm_awesomecharts_module")||null;
if(Uad&&Uad!==IJ)throw Error("Ha`pm_awesomecharts_module`"+Nc(Uad)+"`"+Nc(Uad.name));TDc.set("pm_awesomecharts_module",IJ);var Vad=["chartContainer"],Wad=function(){var a=this;this.X_AXIS_INTERACTIONS={dragZoom:!1,ctrlScrollZoom:!1,ctrlDragPan:!1,clickTimePin:!1,hoverTimePin:!1};this.Y_AXIS_INTERACTIONS={dragZoom:!1,ctrlScrollZoom:!1};this.chartContainer=Rg("chartContainer",Object.assign({},{},{read:Gd}));this.chart=Qg.required.apply(Qg,n([]));this.chartTitle=ah.apply(null,[function(){var b;return(b=a.chart().getTitle())!=null?b:""}].concat(n([])));ah.apply(null,[function(){var b=a.chart();b=Fi(b,4);return b!=null?b:
""}].concat(n([])));this.yAxisLabel=ah.apply(null,[function(){var b=a.chart();b=Fi(b,5);return b!=null?b:""}].concat(n([])));this.data=ah.apply(null,[function(){var b=a.chart();b=Wi(b,OKc,3,Xi());return qNa(b!=null?b:[])}].concat(n([])));this.legendScope=ah.apply(null,[function(){return{chartId:a.chartTitle(),yAxisId:"left"}}].concat(n([])))};Wad.\u0275fac=function(a){return new (a||Wad)};
Wad.\u0275cmp=C({type:Wad,selectors:[["interactive-element-chart"]],viewQuery:function(a,b){a&1&&rg(b.chartContainer,Vad,Gd);a&2&&sg()},inputs:{chart:[1,"chart"]},decls:12,vars:9,consts:[["chartContainer",""],[1,"gmat-subhead-2"],[3,"chartId","disableZoomAndPan"],["position","left",3,"label","interactions"],[3,"interactions"],[3,"data"],[3,"condensed","scope"]],template:function(a,b){a&1&&(K(0,"div",1),S(1),L(),K(2,"div",null,0)(4,"ac-chart",2),M(5,"ac-y-axis",3)(6,"ac-x-axis",4)(7,"ac-line",5),K(8,
"ac-hovercard"),M(9,"ac-date-time")(10,"ac-series-snapshot"),L()(),M(11,"ac-inline-legend",6),L());a&2&&(B(),Ag(b.chartTitle()),B(3),I("chartId",b.chartTitle())("disableZoomAndPan",!0),B(),I("label",b.yAxisLabel())("interactions",b.Y_AXIS_INTERACTIONS),B(),I("interactions",b.X_AXIS_INTERACTIONS),B(),I("data",b.data()),B(4),I("condensed",!0)("scope",b.legendScope()))},dependencies:[xy,IJ,AH,DH,RH,OH,YH,LH,wH,bI],styles:["[_nghost-%COMP%]{display:block}ac-chart[_ngcontent-%COMP%]{height:180px}"],changeDetection:0});var JJ=function(){};JJ.\u0275fac=function(a){return new (a||JJ)};JJ.\u0275prov=Cc({token:JJ,factory:JJ.\u0275fac,providedIn:"root"});var KJ=function(){var a=this;this.interactiveElements=Qg.apply(null,n([]));this.threadService=q(fF);this.interactiveElementService=q(JJ);this.validatedInteractiveElements=ah.apply(null,[function(){var b;return(b=a.interactiveElements())==null?void 0:b.filter(function(c){lj(c,OC,1,QKc)?(c=c.getButton(),c=xm(c,3)?Xad.includes(Fi(c,3)):!!c.getPrompt()&&!!c.getLabel()):c=!0;return c})}].concat(n([])))};
KJ.prototype.handleButtonClick=function(a){Yad(this.interactiveElementService,a)||DTc(this.threadService,a.getButton().getPrompt())};KJ.prototype.getButton=function(a){return a.getButton()};KJ.prototype.getChart=function(a){return a.getChart()};KJ.\u0275fac=function(a){return new (a||KJ)};
KJ.\u0275cmp=C({type:KJ,selectors:[["interactive-elements"]],inputs:{interactiveElements:[1,"interactiveElements"]},decls:2,vars:1,consts:[["mat-stroked-button","","color","primary",1,"interactive-element-button",3,"has-action-key","matTooltip"],[3,"chart"],["mat-stroked-button","","color","primary",1,"interactive-element-button",3,"click","matTooltip"]],template:function(a,b){a&1&&(K(0,"div"),F(1,uNa,2,0),L());if(a&2){var c;B();G((c=b.validatedInteractiveElements())?1:-1,c)}},dependencies:[xy,ZA,
XA,TA,Wad,MA,HE,VF],styles:[".interactive-element-button[_ngcontent-%COMP%]{display:block;border-radius:32px;margin-right:8px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:pre}.interactive-element-button.has-action-key[_ngcontent-%COMP%]{background-color:var(--xap-color-tonal-fill-green);color:var(--xap-color-tonal-green)}"],changeDetection:0});var LJ=function(){this.isRecentSessionsVisibleSubject=new Xj(!1);this.isRecentSessionsVisible$=this.isRecentSessionsVisibleSubject.asObservable();this.messageQueue$=new rf};LJ.prototype.sendMessage=function(a,b){this.messageQueue$.next({message:a,contextMap:b})};LJ.\u0275fac=function(a){return new (a||LJ)};LJ.\u0275prov=Cc({token:LJ,factory:LJ.\u0275fac,providedIn:"root"});var Zad={clientName:"Nexus",clientLogoUrl:"https://www.gstatic.com/partnerdash/images/nexus_icon_new.svg",onboardingExamples:[{title:"Get contextual answers for Nexus",examples:[{label:"Agent capabilities",prompt:"What are some examples of questions that can be answered by this agent?"},{label:"Nexus AI",prompt:"What are some of the current AI powered features on Nexus and how can I use them in my daily work?"},{label:"My next oncall",prompt:"For all the rotations I'm oncall for, when will I next be oncall?"}]}]},
NOa=Object.assign({},Zad,{onboardingExamples:[{title:"Get contextual answers on server/app details page",examples:[{label:"What kinds of things can you do?",prompt:"What tools do you know and what are some examples of how you can use them to answer complex, multi-step questions?"},{label:"My next oncall",prompt:"For all the rotations I'm oncall for, when will I next be oncall?"},{label:"TODOs in server code",prompt:"Does my server code have any TODOs?"},{label:"High-priority oncall bugs",prompt:"Does my server have any open P0 or P1 bugs in the oncall component?"}]}]});var $ad=new bd("InteractiveElementsTemplate"),MJ=function(){this.ve={DuckieChatInteractiveElementButton:263888};this.interactiveElements=Qg.apply(null,n([]));this.threadService=q(fF);this.interactiveElementService=q(JJ)};MJ.prototype.handleButtonClick=function(a){Yad(this.interactiveElementService,a)||DTc(this.threadService,a.getButton().getPrompt())};MJ.prototype.getButton=function(a){return a.getButton()};MJ.prototype.getChart=function(a){return a.getChart()};
MJ.\u0275fac=function(a){return new (a||MJ)};
MJ.\u0275cmp=C({type:MJ,selectors:[["interactive-elements"]],inputs:{interactiveElements:[1,"interactiveElements"]},decls:2,vars:1,consts:[["mat-stroked-button","","color","primary",1,"interactive-element-button",3,"ve","veClick","veImpression"],[3,"chart"],["mat-stroked-button","","color","primary",1,"interactive-element-button",3,"click","ve","veClick","veImpression"]],template:function(a,b){a&1&&(K(0,"div"),F(1,yNa,2,0),L());if(a&2){var c;B();G((c=b.interactiveElements())?1:-1,c)}},dependencies:[xy,
ZA,XA,TA,Wad,HE,GE],styles:[".interactive-element-button[_ngcontent-%COMP%]{margin-bottom:8px;margin-right:8px}"],changeDetection:0});var DNa=function(a){return{$implicit:a}},abd=function(){this.data=q(fB);if(!this.data)throw Error("Wc");this.iconType=this.data.dialogType;this.confirmButtonLabel=this.data.confirmButtonLabel||"OK";this.cancelButtonLabel=this.data.cancelButtonLabel||"CANCEL"};abd.prototype.ngOnInit=function(){};abd.\u0275fac=function(a){return new (a||abd)};
abd.\u0275cmp=C({type:abd,selectors:[["confirmation-dialog"]],decls:12,vars:9,consts:[[1,"confirmation-dialog-container"],["mat-dialog-title","",1,"gmat-headline-4","dialog-title-container"],[3,"class"],[1,"dialog-title","gmat-headline-4"],[1,"gmat-body-2","dialog-content"],[1,"dialog-message"],["align","end",1,"dialog-actions"],["matButton","","data-test-id","cancel-button",3,"mat-dialog-close"],["matButton","","data-test-id","confirm-button",3,"disabled","mat-dialog-close"],[4,"ngTemplateOutlet",
"ngTemplateOutletContext"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"h6",1),F(2,zNa,2,4,"mat-icon",2),F(3,ANa,2,1,"span",3),L(),K(4,"mat-dialog-content",4),F(5,BNa,2,1,"div",5),F(6,ENa,2,4,"div"),L(),K(7,"mat-dialog-actions",6)(8,"button",7),S(9),L(),K(10,"button",8),S(11),L()()());if(a&2){B(2);G(b.iconType?2:-1);B();G(b.data.title?3:-1);B(2);G(b.data.message?5:-1);B();G(b.data.contentTemplate?6:-1);B(2);I("mat-dialog-close",!1);B();T(" ",b.cancelButtonLabel," ");B();var c,d,e;a=!((e=(d=(c=b.data).contentValidationFn)==
null?void 0:d.call(c))!=null?e:1);I("disabled",a)("mat-dialog-close",!0);B();T(" ",b.confirmButtonLabel," ")}},dependencies:[xy,oy,ZA,XA,TA,pB,hB,kB,mB,lB,kz,iz],styles:[".dialog-template-content[_ngcontent-%COMP%]{padding-top:16px;padding-bottom:24px}.dialog-title-container[_ngcontent-%COMP%]{padding-bottom:16px}.dialog-content[_ngcontent-%COMP%]{padding-bottom:24px}.dialog-actions[_ngcontent-%COMP%]{padding:24px}.dialog-icon[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:7px}.dialog-icon.warning[_ngcontent-%COMP%]{color:#c5221f}.dialog-icon.info[_ngcontent-%COMP%]{color:#d56e0c}.dialog-message[_ngcontent-%COMP%]{white-space:pre-line}"],
changeDetection:0});var bbd=new bd("GM2_MENU_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var NJ=function(){this.gmatOptions=q(bbd)},cbd=function(a,b){if(a.gmatOptions.disableGmatStyle)throw Error("eb");b&&(b.overlayPanelClass=Rh(b.overlayPanelClass||[]).concat("gmat-mdc-menu"))};da.Object.defineProperties(NJ.prototype,{deprecatedPanel:{configurable:!0,enumerable:!0,set:function(a){cbd(this,a)}},panel:{configurable:!0,enumerable:!0,set:function(a){cbd(this,a)}}});NJ.\u0275fac=function(a){return new (a||NJ)};
NJ.\u0275dir=af({type:NJ,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],inputs:{deprecatedPanel:[0,"mat-menu-trigger-for","deprecatedPanel"],panel:[0,"matMenuTriggerFor","panel"]},standalone:!1});var OJ=function(){};OJ.\u0275fac=function(a){return new (a||OJ)};OJ.\u0275mod=$e({type:OJ});OJ.\u0275inj=Dc({imports:[PF]});var dbd=new bd("SessionActionsTemplate"),PJ=function(){this.sessionSummary=Qg.required.apply(Qg,n([]));this.sessionState=RNc;this.sessionSummaryService=q(QD);this.experimentsService=q(PA);this.changeDetectorRef=q(Yx);this.dialog=q(gB);this.isSessionDeletionEnabled=this.experimentsService.duckieSessionDeletionEnabled;this.isHovered=!1;this.menuTrigger=Rg.apply(null,[OF].concat(n([])))};
PJ.prototype.toggleSessionPinnedState=function(a){a.stopPropagation();a.preventDefault();var b;(b=this.menuTrigger())==null||b.closeMenu();this.sessionSummaryService.toggleSessionPinnedState(this.sessionSummary());this.sessionSummary().sessionState=this.sessionSummary().sessionState===2?1:2};
PJ.prototype.toggleSessionArchivedState=function(a){a.stopPropagation();a.preventDefault();var b;(b=this.menuTrigger())==null||b.closeMenu();this.sessionSummaryService.toggleSessionArchivedState(this.sessionSummary());this.sessionSummary().sessionState=this.sessionSummary().sessionState===3?1:3};
PJ.prototype.deleteSession=function(a){var b=this;a.stopPropagation();a.preventDefault();eB(this.dialog.open(abd,{data:{message:"Are you sure you want to delete this thread? Your thread cannot be retrieved again after deletion.",title:"Delete thread",confirmButtonLabel:"Delete",cancelButtonLabel:"Cancel"}})).subscribe(function(c){if(c){var d;(d=b.menuTrigger())==null||d.closeMenu();b.sessionSummaryService.deleteSession(b.sessionSummary())}})};PJ.\u0275fac=function(a){return new (a||PJ)};
PJ.\u0275cmp=C({type:PJ,selectors:[["session-actions"]],viewQuery:function(a,b){a&1&&rg(b.menuTrigger,OF);a&2&&sg()},inputs:{sessionSummary:[1,"sessionSummary"]},decls:10,vars:9,consts:[["actionsMenu","matMenu"],["mat-icon-button","","aria-label","toggle session actions menu",1,"session-actions-menu-button",3,"mouseenter","mouseleave","matMenuTriggerFor"],["mat-menu-item","",1,"pin-thread-toggle",3,"click"],["mat-menu-item","",1,"delete-thread-toggle"],["mat-menu-item","",1,"archive-thread-toggle"],
["mat-menu-item","",1,"delete-thread-toggle",3,"click"],["mat-menu-item","",1,"archive-thread-toggle",3,"click"]],template:function(a,b){if(a&1){var c=t();bg(0);K(1,"button",1);N("mouseenter",function(){u(c);return v(b.isHovered=!0)})("mouseleave",function(){u(c);return v(b.isHovered=!1)});K(2,"mat-icon");S(3);L()();K(4,"mat-menu",null,0)(6,"button",2);N("click",function(e){u(c);return v(b.toggleSessionPinnedState(e))});S(7);L();F(8,FNa,2,0,"button",3)(9,GNa,2,1,"button",4);L()}if(a&2){a=Q(5);var d=
b.sessionSummary().sessionState===b.sessionState.SESSION_STATE_PINNED;cg(b.sessionSummary().sessionState===b.sessionState.SESSION_STATE_ARCHIVED);B();yg("pinned",d)("is-hovered",b.isHovered);I("matMenuTriggerFor",a);B(2);Ag(d&&!b.isHovered?"keep_outline":"more_vert");B(4);T(" ",d?"Unpin thread":"Pin thread"," ");B();G(b.isSessionDeletionEnabled?8:9)}},dependencies:[xy,ZA,XA,VA,OJ,NJ,LF,JF,OF,kz,iz],styles:[".session-actions-menu-button[_ngcontent-%COMP%]{display:none}.session-actions-menu-button.pinned[_ngcontent-%COMP%]{display:inline-block}.mat-mdc-list-item:hover   [_nghost-%COMP%]   .session-actions-menu-button[_ngcontent-%COMP%]{display:inline-block}"],
changeDetection:0});var ebd=["customSessionActions"],QJ=function(){this.sessionSummary=Qg.required.apply(Qg,n([]));this.sessionActionsTemplate=q(dbd,{optional:!0});this.customSessionActions=Rg("customSessionActions",Object.assign({},{},{read:ig}))};QJ.prototype.ngAfterViewInit=function(){this.sessionActionsTemplate&&this.customSessionActions()&&(this.componentRef=this.customSessionActions().createComponent(this.sessionActionsTemplate),this.componentRef.instance.sessionSummary=qg.apply(null,[this.sessionSummary()].concat(n([]))))};
QJ.\u0275fac=function(a){return new (a||QJ)};QJ.\u0275cmp=C({type:QJ,selectors:[["session-actions-wrapper"]],viewQuery:function(a,b){a&1&&rg(b.customSessionActions,ebd,ig);a&2&&sg()},inputs:{sessionSummary:[1,"sessionSummary"]},decls:2,vars:1,consts:[["customSessionActions",""],[3,"sessionSummary"]],template:function(a,b){a&1&&F(0,HNa,2,0,"ng-container")(1,INa,1,1,"session-actions",1);a&2&&G(b.sessionActionsTemplate?0:1)},dependencies:[xy,PJ],encapsulation:2,changeDetection:0});var fbd=new bd("GM2_LIST_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var RJ=function(a){this.options=a;if(a.disableGmatStyle)throw Error("eb");};RJ.\u0275fac=function(a){return new (a||RJ)(Ve(fbd))};RJ.\u0275dir=af({type:RJ,selectors:[["mat-list"],["mat-action-list"],["mat-nav-list"],["mat-selection-list"]],hostAttrs:[1,"gmat-mdc-list"],standalone:!1});var gbd=new bd("ListOption");var hbd=function(){this._elementRef=q(Gd)};hbd.\u0275fac=function(a){return new (a||hbd)};hbd.\u0275dir=af({type:hbd,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]});var ibd=function(){this._elementRef=q(Gd)};ibd.\u0275fac=function(a){return new (a||ibd)};ibd.\u0275dir=af({type:ibd,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]});var jbd=function(){};
jbd.\u0275fac=function(a){return new (a||jbd)};jbd.\u0275dir=af({type:jbd,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]});var SJ=function(){this._listOption=q(gbd,{optional:!0})};SJ.prototype._isAlignedAtStart=function(){var a;return!this._listOption||((a=this._listOption)==null?void 0:a._getTogglePosition())==="after"};SJ.\u0275fac=function(a){return new (a||SJ)};
SJ.\u0275dir=af({type:SJ,hostVars:4,hostBindings:function(a,b){a&2&&yg("mdc-list-item__start",b._isAlignedAtStart())("mdc-list-item__end",!b._isAlignedAtStart())}});var TJ=function(){SJ.apply(this,arguments)};Z(TJ,SJ);TJ.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(TJ)))(b||TJ)}}();TJ.\u0275dir=af({type:TJ,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[Ff]});var UJ=function(){SJ.apply(this,arguments)};Z(UJ,SJ);
UJ.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(UJ)))(b||UJ)}}();UJ.\u0275dir=af({type:UJ,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[Ff]});var kbd=new bd("MAT_LIST_CONFIG");var VJ=function(){this._isNonInteractive=!0;this._disableRipple=!1;this._disabled=qg.apply(null,[!1].concat(n([])));this._defaultOptions=q(kbd,{optional:!0})};da.Object.defineProperties(VJ.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(a){this._disableRipple=Sh(a)}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled()},set:function(a){this._disabled.set(Sh(a))}}});VJ.\u0275fac=function(a){return new (a||VJ)};
VJ.\u0275dir=af({type:VJ,hostVars:1,hostBindings:function(a,b){a&2&&Jf("aria-disabled",b.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}});
var WJ=function(){this._elementRef=q(Gd);this._ngZone=q(Tg);this._listBase=q(VJ,{optional:!0});this._platform=q(bi);this._noopAnimations=ti();this._explicitLines=null;this._disableRipple=!1;this._disabled=qg.apply(null,[!1].concat(n([])));this._subscriptions=new Od;this._rippleRenderer=null;this._hasUnscopedTextContent=!1;q(fi).load(BA);this.rippleConfig=q(DA,{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")};h=WJ.prototype;h.ngAfterViewInit=function(){this._monitorProjectedLinesAndTitle();this._updateItemLines(!0)};h.ngOnDestroy=function(){this._subscriptions.unsubscribe();this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()};h._hasIconOrAvatar=function(){return!(!this._avatars.length&&!this._icons.length)};
h._initInteractiveListItem=function(){this._hostElement.classList.add("mat-mdc-list-item-interactive");this._rippleRenderer=new NHc(this,this._ngZone,this._hostElement,this._platform,q(xe));QHc(this._rippleRenderer,this._hostElement)};h._monitorProjectedLinesAndTitle=function(){var a=this;this._ngZone.runOutsideAngular(function(){a._subscriptions.add(se(a._lines.changes,a._titles.changes).subscribe(function(){return a._updateItemLines(!1)}))})};
h._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"))}};h._inferLinesFromContent=function(){var a=this._titles.length+this._lines.length;this._hasUnscopedTextContent&&(a+=1);return a};
h._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())})};
da.Object.defineProperties(WJ.prototype,{lines:{configurable:!0,enumerable:!0,set:function(a){this._explicitLines=Vh(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=Sh(a)}},disabled:{configurable:!0,enumerable:!0,get:function(){var a;return this._disabled()||!((a=this._listBase)==null||!a.disabled)},
set:function(a){this._disabled.set(Sh(a))}},rippleDisabled:{configurable:!0,enumerable:!0,get:function(){return this.disableRipple||!!this.rippleConfig.disabled}}});WJ.\u0275fac=function(a){return new (a||WJ)};
WJ.\u0275dir=af({type:WJ,contentQueries:function(a,b,c){a&1&&(lg(c,TJ,4),lg(c,UJ,4));if(a&2){var d;og(d=pg())&&(b._avatars=d);og(d=pg())&&(b._icons=d)}},hostVars:4,hostBindings:function(a,b){a&2&&(Jf("aria-disabled",b.disabled)("disabled",b._isButtonElement&&b.disabled||null),yg("mdc-list-item--disabled",b.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}});var XJ=function(){this._inset=this._vertical=!1};da.Object.defineProperties(XJ.prototype,{vertical:{configurable:!0,enumerable:!0,get:function(){return this._vertical},set:function(a){this._vertical=Sh(a)}},inset:{configurable:!0,enumerable:!0,get:function(){return this._inset},set:function(a){this._inset=Sh(a)}}});XJ.\u0275fac=function(a){return new (a||XJ)};
XJ.\u0275cmp=C({type:XJ,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(a,b){a&2&&(Jf("aria-orientation",b.vertical?"vertical":"horizontal"),yg("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-variant));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-variant));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 YJ=function(){};YJ.\u0275fac=function(a){return new (a||YJ)};YJ.\u0275mod=$e({type:YJ});YJ.\u0275inj=Dc({imports:[jz]});var lbd=["unscopedContent"],mbd=[[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["mat-divider"]],[["","matListItemAvatar",""],["","matListItemIcon",""]]],nbd=new bd("SelectionList"),ZJ=function(){WJ.apply(this,arguments);this._selectionList=q(nbd);this._changeDetectorRef=q(Yx);this.selectedChange=new ui;this.togglePosition="after";this._inputsInitialized=this._selected=!1};Z(ZJ,WJ);ZJ.\u0275dir=WJ.\u0275dir;h=ZJ.prototype;
h.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};h.ngOnDestroy=function(){var a=this;WJ.prototype.ngOnDestroy.call(this);this.selected&&Promise.resolve().then(function(){a.selected=!1})};h.toggle=function(){this.selected=!this.selected};h.focus=function(){this._hostElement.focus()};
h.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)||""};h._hasCheckboxAt=function(a){return this._selectionList.multiple&&this._getTogglePosition()===a};h._hasRadioAt=function(a){return!this._selectionList.multiple&&this._getTogglePosition()===a&&!this._selectionList.hideSingleSelectionIndicator};
h._hasIconsOrAvatarsAt=function(a){return this._hasProjected("icons",a)||this._hasProjected("avatars",a)};h._hasProjected=function(a,b){return this._getTogglePosition()!==b&&(a==="avatars"?this._avatars.length!==0:this._icons.length!==0)};h._handleBlur=function(){this._selectionList._onTouched()};h._getTogglePosition=function(){return this.togglePosition||"after"};
h._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};h._markForCheck=function(){this._changeDetectorRef.markForCheck()};
h._toggleOnInteraction=function(){this.disabled||(this._selectionList.multiple?(this.selected=!this.selected,this._selectionList._emitChangeEvent([this])):this.selected||(this.selected=!0,this._selectionList._emitChangeEvent([this])))};h._setTabindex=function(a){this._hostElement.setAttribute("tabindex",a+"")};
h._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};
da.Object.defineProperties(ZJ.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=Sh(a);a!==this._selected&&(this._setSelected(a),(a||this._selectionList.multiple)&&this._selectionList._reportValueChange())}}});ZJ.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(ZJ)))(b||ZJ)}}();
ZJ.\u0275cmp=C({type:ZJ,selectors:[["mat-list-option"]],contentQueries:function(a,b,c){a&1&&(lg(c,ibd,5),lg(c,hbd,5));if(a&2){var d;og(d=pg())&&(b._lines=d);og(d=pg())&&(b._titles=d)}},viewQuery:function(a,b){a&1&&kg(lbd,5);if(a&2){var c;og(c=pg())&&(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&&N("blur",function(){return b._handleBlur()})("click",function(){return b._toggleOnInteraction()});
a&2&&(Jf("aria-selected",b.selected),yg("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:[Ig([{provide:WJ,useExisting:ZJ},{provide:gbd,useExisting:ZJ}]),Ff],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=t();fg(mbd);E(0,JNa,1,0,"ng-template",null,0,Og)(2,KNa,6,4,"ng-template",null,1,Og)(4,LNa,5,4,"ng-template",null,2,Og);F(6,NNa,2,1,"span",4)(7,PNa,2,1,"span",5);F(8,RNa,1,1,null,6);K(9,"span",7);gg(10);gg(11,1);K(12,"span",8,3);N("cdkObserveContent",function(){u(c);return v(b._updateItemLines(!0))});gg(14,2);L()();F(15,TNa,2,1,"span",9)(16,VNa,2,1,"span",9);F(17,XNa,1,1,null,6);gg(18,3);M(19,"div",10)}a&
2&&(B(6),G(b._hasCheckboxAt("before")?6:b._hasRadioAt("before")?7:-1),B(2),G(b._hasIconsOrAvatarsAt("before")?8:-1),B(7),G(b._hasCheckboxAt("after")?15:b._hasRadioAt("after")?16:-1),B(2),G(b._hasIconsOrAvatarsAt("after")?17:-1))},dependencies:[oy,Az],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(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-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(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mat-mdc-list-option .mdc-checkbox--disabled{cursor:default;pointer-events:none}.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(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-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(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__background{border-color:GrayText}}.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(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}@media(forced-colors: active){.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{border-color:GrayText}}.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(--mat-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(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-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(--mat-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(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-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(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.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:GrayText}}.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(--mat-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(--mat-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(--mat-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:GrayText}}.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(--mat-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(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.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:GrayText}}.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(--mat-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(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-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);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-list-option .mdc-radio__inner-circle{background-color:CanvasText !important}}.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(--mat-radio-state-layer-size, 40px);height:var(--mat-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),background-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(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-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__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-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(--mat-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{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-list-option .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.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),background-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 obd=["unscopedContent"],pbd=["text"],qbd=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]];new bd("MatList");var $J=function(){VJ.apply(this,arguments)};Z($J,VJ);$J.\u0275dir=VJ.\u0275dir;$J.\u0275fac=function(){var a;return function(b){return(a||(a=Ed($J)))(b||$J)}}();
$J.\u0275cmp=C({type:$J,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Ig([{provide:VJ,useExisting:$J}]),Ff],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(fg(),gg(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(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-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(--mat-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(--mat-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(--mat-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(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-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(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-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(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-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(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-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(--mat-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(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-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(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-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(--mat-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(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-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(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-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(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-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(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-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(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-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 aK=function(){WJ.apply(this,arguments);this._activated=!1};Z(aK,WJ);aK.\u0275dir=WJ.\u0275dir;aK.prototype._getAriaCurrent=function(){return this._hostElement.nodeName==="A"&&this._activated?"page":null};aK.prototype._hasBothLeadingAndTrailing=function(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)};
da.Object.defineProperties(aK.prototype,{activated:{configurable:!0,enumerable:!0,get:function(){return this._activated},set:function(a){this._activated=Sh(a)}}});aK.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(aK)))(b||aK)}}();
aK.\u0275cmp=C({type:aK,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(a,b,c){a&1&&(lg(c,ibd,5),lg(c,hbd,5),lg(c,jbd,5));if(a&2){var d;og(d=pg())&&(b._lines=d);og(d=pg())&&(b._titles=d);og(d=pg())&&(b._meta=d)}},viewQuery:function(a,b){a&1&&(kg(obd,5),kg(pbd,5));if(a&2){var c;og(c=pg())&&(b._unscopedContent=c.first);og(c=pg())&&(b._itemText=c.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(a,
b){a&2&&(Jf("aria-current",b._getAriaCurrent()),yg("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:[Ff],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=t();fg(qbd);gg(0);K(1,"span",1);gg(2,1);gg(3,2);K(4,"span",2,0);N("cdkObserveContent",function(){u(c);return v(b._updateItemLines(!0))});gg(6,3);L()();gg(7,4);gg(8,5);M(9,"div",3)}},dependencies:[Az],encapsulation:2,changeDetection:0});new bd("MatNavList");var bK=function(){VJ.apply(this,arguments);this._isNonInteractive=!1};Z(bK,VJ);bK.\u0275dir=VJ.\u0275dir;bK.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(bK)))(b||bK)}}();
bK.\u0275cmp=C({type:bK,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[Ig([{provide:VJ,useExisting:bK}]),Ff],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(fg(),gg(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(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-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(--mat-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(--mat-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(--mat-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(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-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(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-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(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-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(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-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(--mat-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(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-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(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-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(--mat-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(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-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(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-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(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-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(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-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(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-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 rbd={provide:KB,useExisting:Tc(function(){return cK}),multi:!0},sbd=function(a,b){this.source=a;this.options=b},cK=function(){VJ.call(this);var a=this;this._element=q(Gd);this._ngZone=q(Tg);this._renderer=q(ji);this._initialized=!1;this._destroyed=new rf;this._onChange=function(){};this.selectionChange=new ui;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 Wz(this._multiple);this._onTouched=function(){};this._changeDetectorRef=q(Yx);this._selectionListDisabled=qg.apply(null,[!1].concat(n([])));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};Z(cK,VJ);cK.\u0275dir=VJ.\u0275dir;h=cK.prototype;h.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()};
h.ngOnChanges=function(a){var b=a.disabled,c=a.disableRipple;a=a.hideSingleSelectionIndicator;(c&&!c.firstChange||b&&!b.firstChange||a&&!a.firstChange)&&this._markOptionsForCheck()};h.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};h.focus=function(a){this._element.nativeElement.focus(a)};h.selectAll=function(){return this._setAllOptionsSelected(!0)};
h.deselectAll=function(){return this._setAllOptionsSelected(!1)};h._reportValueChange=function(){if(this.options&&!this._isDestroyed){var a=this._getSelectedOptionValues();this._onChange(a);this._value=a}};h._emitChangeEvent=function(a){this.selectionChange.emit(new sbd(this,a))};h.writeValue=function(a){this._value=a;this.options&&this._setOptionsFromValues(a||[])};h.setDisabledState=function(a){this.disabled=a;this._changeDetectorRef.markForCheck();this._markOptionsForCheck()};
h.registerOnChange=function(a){this._onChange=a};h.registerOnTouched=function(a){this._onTouched=a};h._watchForSelectionChange=function(){var a=this;this.selectedOptions.changed.pipe(Af(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()})};
h._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)})};h._getSelectedOptionValues=function(){return this.options.filter(function(a){return a.selected}).map(function(a){return a.value})};h._markOptionsForCheck=function(){this.options&&this.options.forEach(function(a){return a._markForCheck()})};
h._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};
h._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()&&Nh(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()};
h._setupRovingTabindex=function(){var a=this;this._keyManager=Lz(MGc(Oz(new Rz(this._items)))).skipPredicate(function(){return a.disabled});this._resetActiveOption();this._keyManager.change.subscribe(function(b){return a._setActiveOption(b)});this._items.changes.pipe(Af(this._destroyed)).subscribe(function(){var b=a._keyManager.activeItem;b&&a._items.toArray().indexOf(b)!==-1||a._resetActiveOption()})};
h._setActiveOption=function(a){this._items.forEach(function(b,c){return b._setTabindex(c===a?0:-1)});Pz(this._keyManager,a)};h._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)}};h._containsFocus=function(){var a=Ph();return a&&this._element.nativeElement.contains(a)};
da.Object.defineProperties(cK.prototype,{multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){a=Sh(a);a!==this._multiple&&(this._multiple=a,this.selectedOptions=new Wz(this._multiple,this.selectedOptions.selected))}},hideSingleSelectionIndicator:{configurable:!0,enumerable:!0,get:function(){return this._hideSingleSelectionIndicator},set:function(a){this._hideSingleSelectionIndicator=Sh(a)}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._selectionListDisabled()},
set:function(a){this._selectionListDisabled.set(Sh(a));if(this._selectionListDisabled()){var b;(b=this._keyManager)==null||b.setActiveItem(-1)}}},options:{configurable:!0,enumerable:!0,get:function(){return this._items}}});cK.\u0275fac=function(a){return new (a||cK)};
cK.\u0275cmp=C({type:cK,selectors:[["mat-selection-list"]],contentQueries:function(a,b,c){a&1&&lg(c,ZJ,5);if(a&2){var d;og(d=pg())&&(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&&N("keydown",function(c){return b._handleKeydown(c)});a&2&&Jf("aria-multiselectable",b.multiple)},inputs:{color:"color",compareWith:"compareWith",multiple:"multiple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator",
disabled:"disabled"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[Ig([rbd,{provide:VJ,useExisting:cK},{provide:nbd,useExisting:cK}]),Ff,Gx],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(fg(),gg(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(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-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(--mat-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(--mat-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(--mat-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(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-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(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-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(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-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(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-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(--mat-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(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-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(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-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(--mat-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(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-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(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-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(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-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(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-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(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-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 tbd=function(){};tbd.\u0275fac=function(a){return new (a||tbd)};tbd.\u0275dir=af({type:tbd,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-mdc-subheader","mdc-list-group__subheader"]});var ubd=function(){};ubd.\u0275fac=function(a){return new (a||ubd)};ubd.\u0275mod=$e({type:ubd});ubd.\u0275inj=Dc({imports:[Bz,HA,IA,jz,YJ]});var dK=function(){};dK.\u0275fac=function(a){return new (a||dK)};dK.\u0275mod=$e({type:dK});dK.\u0275inj=Dc({imports:[ubd]});var vbd=new EG(3);var wbd=new bd("GM2_PROGRESS_SPINNER_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var eK=function(a,b){var c=this;this.options=a;this.progressSpinner=b;this.destroyed=new rf;this.labelElement=document.createElement("label");if(a.disableGmatStyle)throw Error("eb");this.labelElement.classList.add("cdk-visually-hidden");this.labelElement.classList.add("gmat-mdc-progress-spinner-accessible-label");this.hasAriaLabelAndRole||YNa(b._elementRef.nativeElement).pipe(Af(this.destroyed)).subscribe(function(d){xbd(c,d[0],d[1])})};
eK.prototype.ngOnInit=function(){if(!this.hasAriaLabelAndRole){this.progressSpinner._elementRef.nativeElement.insertAdjacentElement("afterend",this.labelElement);var a=this.progressSpinner.mode==="indeterminate"?"indeterminate":this.progressSpinner.value.toString(),b,c=(b=this.ariaLabel)!=null?b:"";xbd(this,c,a)}};eK.prototype.ngOnDestroy=function(){this.labelElement.remove();this.destroyed.next();this.destroyed.complete()};
var xbd=function(a,b,c){b=c==="indeterminate"?b:b+" "+vbd.format(Number(c)/100);a.labelElement.textContent=b};
da.Object.defineProperties(eK.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.progressSpinner._elementRef.nativeElement.getAttribute("aria-label")}},ariaRole:{configurable:!0,enumerable:!0,get:function(){return this.progressSpinner._elementRef.nativeElement.getAttribute("role")}},hasAriaLabelAndRole:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.ariaLabel)==null||!a.length)&&this.ariaRole==="progressbar"}}});
eK.\u0275fac=function(a){return new (a||eK)(Ve(wbd),Ve(NI,10))};eK.\u0275dir=af({type:eK,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:[1,"gmat-mdc-progress-spinner"],hostVars:2,hostBindings:function(a,b){a&2&&Jf("aria-hidden",b.hasAriaLabelAndRole?void 0:!0)("tabindex",null)},standalone:!1});var fK=function(){};fK.\u0275fac=function(a){return new (a||fK)};fK.\u0275mod=$e({type:fK});fK.\u0275inj=Dc({imports:[e6c]});var ybd=["searchInput"],oOa=function(a,b){return b.sessionId},zbd=new bd("RecentSessionsTemplate"),gK=function(a,b,c,d){this.backendModelService=a;this.userStateService=b;this.duckieEventTrackerService=c;this.sessionSummaryService=d;this.showFilter=this.isShowingMoreNavItems=!1;this.navItemClicked=Pg();this.inputEl=Rg.apply(null,["searchInput"].concat(n([])));this.routingService=q(BD);this.experimentsService=q(PA);this.sessionDeletionEnabled=this.experimentsService.duckieSessionDeletionEnabled;this.userStateLoaded$=
this.userStateService.userStateLoaded$;this.isIncognitoMode$=this.userStateService.isEnforcedPrivateMode$;this.sessionSummaries$=this.sessionSummaryService.sessionSummaries$;this.PrivacyMode=KNc;this.SessionState=RNc;this.searchText$=new Xj("");this.searchTextTrimmed$=this.searchText$.pipe(A(function(e){return e.trim()}),of());this.filteredSessionSummaries$=he([this.searchTextTrimmed$.pipe(kf(100)),this.sessionSummaries$]).pipe(A(function(e){e=l(e);var f=e.next().value;return e.next().value.filter(function(g){return g.title.toLowerCase().includes(f.toLowerCase())})}));
this.isLoadingSessionSummaries$=this.sessionSummaryService.isLoadingSessionSummaries$;this.numDisplayedItems=this.initialNavItems=5;this.ve={DuckieFilterRecentSessionsButton:223452};this.isGeminiModelSelected$=this.backendModelService.currentModelId$.pipe(A(function(e){return e==="duckie_on_gemini_flash_32k"}));this.currentThreadId$=this.routingService.state$.pipe(A(function(e){return e.params.id}),of())};
gK.prototype.clearSearch=function(){this.searchText$.next("");this.inputEl()&&(this.inputEl().nativeElement.value="")};var aOa=function(a){a.clearSearch();setTimeout(function(){var b;(b=a.inputEl())==null||b.nativeElement.focus()})},hOa=function(a){var b;return y(function(c){if(c.nextAddress==1)return z(c,ee(a.sessionSummaries$),2);b=c.yieldResult;a.isShowingMoreNavItems=!0;a.numDisplayedItems=b.length;$d(c)})},mOa=function(a,b){return!!b&&b===a.sessionId};
gK.\u0275fac=function(a){return new (a||gK)(Ve(OD),Ve(PD),Ve(IE),Ve(QD))};
gK.\u0275cmp=C({type:gK,selectors:[["recent-sessions"]],viewQuery:function(a,b){a&1&&rg(b.inputEl,ybd);a&2&&sg()},outputs:{navItemClicked:"navItemClicked"},decls:5,vars:6,consts:[["searchInput",""],["mode","indeterminate",1,"align-self-center",3,"diameter"],[1,"nav-list","duckie-left-nav",3,"has-top-banner"],[1,"nav-list","duckie-left-nav"],["mat-subheader","",1,"nav-header","flex-row","align-items-center","text-secondary","font-google-sans","justify-content-space-between"],[1,"nav-header-left","flex-row",
"align-items-center","gap-s"],[1,"icon-m"],[1,"nav-header-right"],["mat-icon-button","","aria-label","Show filter",1,"toggle-filter-button",3,"click","ve","veClick"],[1,"search","flex-row","margin-s-y"],[1,"incognito-mode-banner","bg-primary-container","flex-row","align-items-center","justify-content-space-between","gap","padded"],["href","http://go/duckie-incognito-mode","target","_blank","mat-button","","color","primary","aria-label","Learn more",1,"learn-more-button"],["appearance","outline",1,
"full-width"],["matInput","","aria-label","Search thread titles",3,"input"],["matSuffix","","mat-icon-button","","aria-label","Clear",1,"clear-filter-button"],["matSuffix","","mat-icon-button","","aria-label","Clear",1,"clear-filter-button",3,"click"],["disabled",""],["mat-list-item","","color","primary",3,"click","activated","title"],[1,"nav-item-title","flex-row","align-items-center"],[1,"title-text"],[1,"privacy-icon","padded-xxs","icon-m"],["matListItemMeta",""],[3,"click","sessionSummary"],["mat-button",
"",1,"show-more-nav-toggle"],["mat-button","",1,"show-more-nav-toggle",3,"click"]],template:function(a,b){a&1&&(bg(0),U(1,"async"),F(2,ZNa,1,1,"mat-progress-spinner",1),U(3,"async"),Mf(4,qOa,17,15,"mat-nav-list",2));a&2&&(cg(W(1,1,b.isIncognitoMode$)),B(2),G(W(3,4,b.isLoadingSessionSummaries$)?2:4))},dependencies:[xy,nC,ZA,XA,TA,VA,dK,RJ,bK,aK,tbd,XJ,jbd,fK,eK,NI,YJ,CB,BB,tB,vB,pC,oC,kz,iz,HE,GE,IF,QJ,py],styles:["[_nghost-%COMP%]{font-size:14px;max-height:100%;overflow-y:auto}[_nghost-%COMP%]   .gmat-mdc-list.mat-mdc-nav-list.mat-mdc-list-base[_ngcontent-%COMP%]   a.mat-mdc-list-item[_ngcontent-%COMP%]{border-radius:30px}[_nghost-%COMP%]   .gmat-mdc-list.mat-mdc-nav-list.mat-mdc-list-base[_ngcontent-%COMP%]   a.mat-mdc-list-item[_ngcontent-%COMP%]   .nav-item-title[_ngcontent-%COMP%]{max-width:calc(100% - 8px)}[_nghost-%COMP%]   .gmat-mdc-list.mat-mdc-nav-list.mat-mdc-list-base[_ngcontent-%COMP%]   a.mat-mdc-list-item[_ngcontent-%COMP%]   .nav-item-title[_ngcontent-%COMP%]   .title-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%]   .gmat-mdc-list.mat-mdc-nav-list.mat-mdc-list-base[_ngcontent-%COMP%]   a.mat-mdc-list-item[_ngcontent-%COMP%]   .nav-item-title[_ngcontent-%COMP%]   .privacy-icon[_ngcontent-%COMP%]{min-width:calc(var(--base-px, 1rem)*20)}[_nghost-%COMP%]   .gmat-mdc-list[_ngcontent-%COMP%]   .mdc-list-item.mdc-list-item--with-trailing-meta[_ngcontent-%COMP%]   .mdc-list-item__end[_ngcontent-%COMP%]{margin:0}.incognito-mode-banner[_ngcontent-%COMP%]{margin:-4px 0}.incognito-mode-banner[_ngcontent-%COMP%]   .learn-more-button[_ngcontent-%COMP%]{min-width:10ch}.show-more-nav-toggle.show-more-nav-toggle[_ngcontent-%COMP%]{width:100%;-webkit-box-pack:start;-webkit-justify-content:flex-start;-moz-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;padding:0 8px 0 24px}.summary-pin-button[_ngcontent-%COMP%]{display:none}.mat-mdc-list-item[_ngcontent-%COMP%]:hover   .summary-pin-button[_ngcontent-%COMP%], .summary-pin-button.pinned[_ngcontent-%COMP%]{display:inline-block}.nav-header[_ngcontent-%COMP%]{margin:0;min-height:32px}.nav-header[_ngcontent-%COMP%]   .nav-header-left[_ngcontent-%COMP%]{margin-left:24px}[_nghost-%COMP%]     .search mat-form-field .mat-mdc-form-field-subscript-wrapper{display:none}.gmat-mdc-button.mat-mdc-icon-button.selected[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:var(--primary-default)}.mat-mdc-list-base.mat-mdc-list-base[_ngcontent-%COMP%]   .mdc-list-item--activated[_ngcontent-%COMP%]   [matListItemMeta][_ngcontent-%COMP%]{--mat-list-list-item-trailing-supporting-text-color:var(--tonal-blue)}mat-divider[_ngcontent-%COMP%]{margin:4px 0}.duckie-left-nav[_ngcontent-%COMP%]{padding-top:0;padding-right:16px}"],
changeDetection:0});var Abd=["customRecentSessions"],Bbd=function(){this.navItemClicked=Pg();this.recentSessionsTemplate=q(zbd,{optional:!0});this.customRecentSessions=Rg("customRecentSessions",Object.assign({},{},{read:ig}))};Bbd.prototype.ngAfterViewInit=function(){var a=this;this.recentSessionsTemplate&&this.customRecentSessions()&&(this.componentRef=this.customRecentSessions().createComponent(this.recentSessionsTemplate),this.componentRef.instance.navItemClicked.subscribe(function(){a.navItemClicked.emit()}))};
Bbd.\u0275fac=function(a){return new (a||Bbd)};Bbd.\u0275cmp=C({type:Bbd,selectors:[["recent-sessions-wrapper"]],viewQuery:function(a,b){a&1&&rg(b.customRecentSessions,Abd,ig);a&2&&sg()},outputs:{navItemClicked:"navItemClicked"},decls:2,vars:1,consts:[["customRecentSessions",""],[3,"navItemClicked"]],template:function(a,b){a&1&&F(0,rOa,2,0,"ng-container")(1,sOa,1,0,"recent-sessions");a&2&&G(b.recentSessionsTemplate?0:1)},dependencies:[xy,gK],encapsulation:2,changeDetection:0});var Cbd=function(){};Cbd.\u0275fac=function(a){return new (a||Cbd)};Cbd.\u0275mod=$e({type:Cbd});Cbd.\u0275inj=Dc({imports:[gK,PJ,QJ,Bbd]});var Dbd=new bd("GM2_TOOLTIP_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var hK=function(){if(q(Dbd).disableGmatStyle)throw Error("eb");var a=q(MA,{self:!0,optional:!0});a&&(a._overlayPanelClass=["gmat-mdc-tooltip"])};hK.\u0275fac=function(a){return new (a||hK)};hK.\u0275dir=af({type:hK,selectors:[["","matTooltip",""]]});var iK=function(){};iK.\u0275fac=function(a){return new (a||iK)};iK.\u0275mod=$e({type:iK});iK.\u0275inj=Dc({imports:[NA]});var Ebd=new bd("NewTopicButtonTemplate"),jK=function(){this.ve={DuckieChatSideNavigationPaneNewChatButton:201125};this.threadService=q(fF);this.overridesService=q(CC);this.canStartNewThread$=this.threadService.canStartNewThread$};jK.prototype.startNewThread=function(a){a.metaKey||a.ctrlKey?(0,Lh.windowOpen)(window,Xqa("http://duckie"),"_blank"):this.threadService.startNewThread("","")};jK.\u0275fac=function(a){return new (a||jK)};
jK.\u0275cmp=C({type:jK,selectors:[["new-topic-button"]],decls:5,vars:6,consts:[["mat-fab","","extended","","appearance","fill","matTooltip","New Topic (CTRL+SHIFT+o)",1,"new-thread-button","margin",3,"click","ve","veClick","veImpression","disabled"]],template:function(a,b){a&1&&(K(0,"button",0),U(1,"async"),N("click",function(c){return b.startNewThread(c)}),K(2,"mat-icon"),S(3,"add"),L(),S(4,"New topic\n"),L());a&2&&I("ve",b.ve.DuckieChatSideNavigationPaneNewChatButton)("veClick",!0)("veImpression",
!0)("disabled",!W(1,4,b.canStartNewThread$))},dependencies:[xy,ZA,UA,YA,pB,iK,hK,MA,kz,iz,HE,GE,py],styles:["[_nghost-%COMP%]{font-size:calc(var(--base-px, 1rem)*14)}[_nghost-%COMP%]   .new-thread-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{line-height:calc(var(--base-px, 1rem)*24)}"],changeDetection:0});var Fbd=["customNewTopicButton"],Gbd=function(){this.newTopicButtonTemplate=q(Ebd,{optional:!0});this.customNewTopicButton=Rg("customNewTopicButton",Object.assign({},{},{read:ig}))};Gbd.prototype.ngAfterViewInit=function(){this.newTopicButtonTemplate&&this.customNewTopicButton()&&(this.componentRef=this.customNewTopicButton().createComponent(this.newTopicButtonTemplate))};Gbd.\u0275fac=function(a){return new (a||Gbd)};
Gbd.\u0275cmp=C({type:Gbd,selectors:[["new-topic-button-wrapper"]],viewQuery:function(a,b){a&1&&rg(b.customNewTopicButton,Fbd,ig);a&2&&sg()},decls:2,vars:1,consts:[["customNewTopicButton",""]],template:function(a,b){a&1&&F(0,tOa,2,0,"ng-container")(1,uOa,1,0,"new-topic-button");a&2&&G(b.newTopicButtonTemplate?0:1)},dependencies:[xy,jK],encapsulation:2,changeDetection:0});var Hbd=function(){};Hbd.\u0275fac=function(a){return new (a||Hbd)};Hbd.\u0275mod=$e({type:Hbd});Hbd.\u0275inj=Dc({imports:[jK,Gbd]});var Ibd={BANNER_TYPE_UNSPECIFIED:0,INFO:1,WARNING:2,ERROR:3};var Jbd={DISMISSAL_TYPE_UNSPECIFIED:0,DISMISSABLE:1,NOT_DISMISSABLE:2};var Kbd=function(){this.bannerType=Qg.apply(null,n([]));this.bannerText=Qg.apply(null,n([]));this.dismissalType=Qg.apply(null,n([]));this.duckieBannerType=Ibd;this.duckieDissmissalType=Jbd;this.isVisible=!0};Kbd.prototype.onCloseBannerButtonClicked=function(){this.isVisible=!1};Kbd.\u0275fac=function(a){return new (a||Kbd)};
Kbd.\u0275cmp=C({type:Kbd,selectors:[["banner"]],inputs:{bannerType:[1,"bannerType"],bannerText:[1,"bannerText"],dismissalType:[1,"dismissalType"]},decls:1,vars:1,consts:[[1,"banner-wrapper",3,"info-banner","warning-banner","error-banner"],[1,"banner-wrapper"],[1,"banner-close-button"],["mat-icon-button","","aria-label","Close banner",3,"click"]],template:function(a,b){a&1&&F(0,wOa,4,8,"div",0);a&2&&G(b.isVisible?0:-1)},dependencies:[xy,ZA,XA,VA,kz,iz],styles:['.banner-wrapper[_ngcontent-%COMP%]{font-size:calc(var(--base-px, 1rem)*14);font-weight:700;min-height:48px;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-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;gap:1em;padding:.25em 1em .25em 4em;margin:0 -24px}.banner-wrapper[_ngcontent-%COMP%]:before{content:"info";font-family:Google Symbols;font-weight:300;font-size:calc(var(--base-px, 1rem)*24);font-optical-sizing:auto;font-variation-settings:"FILL" 0;color:var(--tonal-icon-grey);position:absolute;left:1em}@media (max-width:800px){.banner-wrapper[_ngcontent-%COMP%]{display:none}}.info-banner[_ngcontent-%COMP%]{background-color:var(--tonal-fill-cyan);border-bottom:var(--custom-border,1px solid var(--tonal-icon-cyan))}.info-banner[_ngcontent-%COMP%]:before{content:"info";color:var(--tonal-icon-cyan)}.warning-banner[_ngcontent-%COMP%]{background-color:var(--tonal-fill-orange);border-bottom:var(--custom-border,1px solid var(--tonal-icon-orange))}.warning-banner[_ngcontent-%COMP%]:before{content:"warning";color:var(--tonal-icon-orange)}.error-banner[_ngcontent-%COMP%]{background-color:var(--tonal-fill-pink);border-bottom:var(--custom-border,1px solid var(--tonal-icon-pink))}.error-banner[_ngcontent-%COMP%]:before{content:"dangerous";color:var(--tonal-icon-red)}.banner-close-button[_ngcontent-%COMP%]{-webkit-transform:scale(.8);transform:scale(.8)}'],
changeDetection:0});var Lbd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Lbd,X);h=Lbd.prototype;h.getTitle=function(){return Fi(this,1)};h.setTitle=function(a){return Gj(this,1,a)};h.getUrl=function(){return Fi(this,2)};h.setUrl=function(a){return Gj(this,2,a)};h.hasUrl=function(){return xm(this,2)};var kK=function(){};kK.\u0275fac=function(a){return new (a||kK)};kK.\u0275prov=Cc({token:kK,factory:kK.\u0275fac,providedIn:"root"});var Mbd=function(){this.ve={duckieShortsCardClicked:297407};q(kK);this.duckieShorts=tCc(Aea("VbK8T")).map(function(a){a=mCc(a);return Gi(Lbd,"["+a.substring(4))});this.currentShortIndex=this.duckieShorts.length>0?Math.floor(Math.random()*this.duckieShorts.length):0;this.currentShort=this.duckieShorts[this.currentShortIndex]};
Mbd.prototype.handleClick=function(){var a=Xqa(this.currentShort.getUrl());a&&(0,Lh.windowOpen)(window,a,"_blank");this.currentShortIndex=(this.currentShortIndex+1)%this.duckieShorts.length;this.currentShort=this.duckieShorts[this.currentShortIndex]};Mbd.\u0275fac=function(a){return new (a||Mbd)};
Mbd.\u0275cmp=C({type:Mbd,selectors:[["duckie-shorts-card"]],decls:1,vars:1,consts:[[1,"duckie-shorts-card-container"],["mat-fab","","extended","",1,"duckie-shorts-card-button",3,"click","ve","veClick"]],template:function(a,b){a&1&&F(0,xOa,5,3,"div",0);a&2&&G(b.currentShort?0:-1)},dependencies:[xy,kz,iz,ZA,UA,YA,HE,GE],styles:[".duckie-shorts-card-container[_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;-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;padding:1em}.duckie-shorts-card-container[_ngcontent-%COMP%]   .duckie-shorts-card-button.mat-primary.mat-mdc-fab[_ngcontent-%COMP%]{--mat-fab-extended-container-shape:50px;font-size:1.1em;font-weight:500;background-color:var(--page-bg);border:1px solid var(--primary-default)}"],
changeDetection:0});var Nbd=new bd("BigBirdOutageTemplate"),lK=function(){};lK.prototype.onCloseBannerButtonClicked=function(){};lK.\u0275fac=function(a){return new (a||lK)};
lK.\u0275cmp=C({type:lK,selectors:[["big-bird-outage"]],decls:6,vars:0,consts:[[1,"big-bird-outage"],["href","http://go/duckie-big-bird","target","_blank"]],template:function(a){a&1&&(Sf(0,"div",0)(1,"p"),S(2," Due to a capacity crunch, Big Bird goes offline temporarily starting 10/17. Duckie will migrate to GfG Flash. Sorry for ruffling feathers. ("),Sf(3,"a",1),S(4,"go/duckie-big-bird"),Tf(),S(5,"). "),Tf()())},dependencies:[xy],styles:[".big-bird-outage[_ngcontent-%COMP%]{background-color:var(--tonal-fill-red);border:var(--custom-border,1px solid var(--tonal-icon-red));border-radius:var(--custom-border-radius,1em);font-size:calc(var(--base-px, 1rem)*14);font-weight:500;padding:1em}.big-bird-outage[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .big-bird-outage[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited{color:var(--tonal-red)}"],
changeDetection:0});var Obd=["customBigBirdOutage"],mK=function(){this.bigBirdOutageTemplate=q(Nbd,{optional:!0});this.customBigBirdOutage=Rg("customBigBirdOutage",Object.assign({},{},{read:ig}))};mK.prototype.ngAfterViewInit=function(){this.bigBirdOutageTemplate&&this.customBigBirdOutage()&&(this.componentRef=this.customBigBirdOutage().createComponent(this.bigBirdOutageTemplate))};mK.\u0275fac=function(a){return new (a||mK)};
mK.\u0275cmp=C({type:mK,selectors:[["big-bird-outage-wrapper"]],viewQuery:function(a,b){a&1&&rg(b.customBigBirdOutage,Obd,ig);a&2&&sg()},decls:2,vars:1,consts:[["customBigBirdOutage",""]],template:function(a,b){a&1&&F(0,yOa,2,0,"ng-container")(1,zOa,1,0,"big-bird-outage");a&2&&G(b.bigBirdOutageTemplate?0:1)},dependencies:[xy,lK],encapsulation:2,changeDetection:0});var Pbd=new bd("GeneralAnnouncementTemplate"),nK=function(){this.userStateService=q(PD)};nK.prototype.onCloseBannerButtonClicked=function(){MNc(this.userStateService)};nK.\u0275fac=function(a){return new (a||nK)};
nK.\u0275cmp=C({type:nK,selectors:[["general-announcement"]],decls:9,vars:0,consts:[[1,"banner","chat-banner","bg-primary-container","flex-row","align-items-center","justify-content-space-between","gap","padded-left","padded-s-right"],["href","http://b/395969863","target","_blank"],[1,"banner-close-button"],["mat-icon-button","","aria-label","Close banner",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"span"),S(2," Duckie's old model has been turned down and sessions do not automatically migrate to the new model. Please see "),
K(3,"a",1),S(4,"b/395969863"),L()(),K(5,"div",2)(6,"button",3),N("click",function(){return b.onCloseBannerButtonClicked()}),K(7,"mat-icon"),S(8,"close"),L()()()())},dependencies:[xy,kz,iz],styles:[".banner[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:calc(var(--base-px, 1rem)*14);margin:0 -24px 2px;min-height:32px}.banner[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .banner[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited{color:var(--tonal-blue)}@media (max-width:800px){.banner[_ngcontent-%COMP%]{display:none}}.banner-close-button[_ngcontent-%COMP%]{-webkit-transform:scale(.8);transform:scale(.8)}"],
changeDetection:0});var Qbd=["customGeneralAnnouncement"],oK=function(){this.generalAnnouncementTemplate=q(Pbd,{optional:!0});this.customGeneralAnnouncement=Rg("customGeneralAnnouncement",Object.assign({},{},{read:ig}))};oK.prototype.ngAfterViewInit=function(){this.generalAnnouncementTemplate&&this.customGeneralAnnouncement()&&(this.componentRef=this.customGeneralAnnouncement().createComponent(this.generalAnnouncementTemplate))};oK.\u0275fac=function(a){return new (a||oK)};
oK.\u0275cmp=C({type:oK,selectors:[["general-announcement-wrapper"]],viewQuery:function(a,b){a&1&&rg(b.customGeneralAnnouncement,Qbd,ig);a&2&&sg()},decls:2,vars:1,consts:[["customGeneralAnnouncement",""]],template:function(a,b){a&1&&F(0,AOa,2,0,"ng-container")(1,BOa,1,0,"general-announcement");a&2&&G(b.generalAnnouncementTemplate?0:1)},dependencies:[xy,nK],encapsulation:2,changeDetection:0});var Rbd=new bd("IncognitoBannerTemplate"),Sbd=function(){};Sbd.\u0275fac=function(a){return new (a||Sbd)};
Sbd.\u0275cmp=C({type:Sbd,selectors:[["incognito-banner"]],decls:7,vars:0,consts:[[1,"banner","incognito-banner","bg-primary-container","flex-row","align-items-center","justify-content-space-between","gap","padded-left","padded-right"],[1,"banner-text","flex-row","gap-s","align-items-center","padded-s-y"],"href;http://go/duckie-incognito-mode;target;_blank;mat-button;;color;primary;aria-label;Learn more".split(";")],template:function(a){a&1&&(K(0,"div",0)(1,"div",1)(2,"mat-icon"),S(3,"incognito"),
L(),S(4," Incognito mode enabled. All threads will be deleted on closing this tab or window. "),L(),K(5,"a",2),S(6," Learn more "),L()())},dependencies:[xy,kz,iz],styles:[".banner[_ngcontent-%COMP%]{font-family:Roboto,sans-serif;font-size:calc(var(--base-px, 1rem)*14);margin:0 -24px 2px;min-height:32px}.banner[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .banner[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited{color:var(--tonal-blue)}@media (max-width:800px){.banner[_ngcontent-%COMP%]{display:none}}.banner[_ngcontent-%COMP%]   .banner-text[_ngcontent-%COMP%]{min-height:32px}"],
changeDetection:0});var Tbd=["customIncognitoBanner"],pK=function(){this.incognitoBannerTemplate=q(Rbd,{optional:!0});this.customIncognitoBanner=Rg("customIncognitoBanner",Object.assign({},{},{read:ig}))};pK.prototype.ngAfterViewInit=function(){this.incognitoBannerTemplate&&this.customIncognitoBanner()&&(this.componentRef=this.customIncognitoBanner().createComponent(this.incognitoBannerTemplate))};pK.\u0275fac=function(a){return new (a||pK)};
pK.\u0275cmp=C({type:pK,selectors:[["incognito-banner-wrapper"]],viewQuery:function(a,b){a&1&&rg(b.customIncognitoBanner,Tbd,ig);a&2&&sg()},decls:2,vars:1,consts:[["customIncognitoBanner",""]],template:function(a,b){a&1&&F(0,COa,2,0,"ng-container")(1,DOa,1,0,"incognito-banner");a&2&&G(b.incognitoBannerTemplate?0:1)},dependencies:[xy,Sbd],encapsulation:2,changeDetection:0});var Ubd=[{label:"Search for changelists",prompt:"Show me all the authors I've reviewed CLs for in the last 30 days, with the CL number and size of largest cl, in ascending order of CL size"},{label:"Explain error message",prompt:"Explain: def run_pipeline(root): # Read inputs examples = root | recordio.ReadFromRecordIO( filepattern=build_paths(), coder=tf_example_pb.Example ) producing error: , line 47, in _get_typehint_from_coder return self._coder.to_type_hint() AttributeError: to_type_hint"},{label:"Add proto validator",
prompt:"Add a proto validator rule that count of sources must be between 1 and 2: message LeaseAccountRequest { // Where to lease the account from. // To lease a Fitbit account linked to an OTA, specify 2 sources. repeated Source sources = 2; }"},{label:"Aggregate columns in plx",prompt:"I have 2 columns one named host, the other number_of_submits. I want to aggregate them both by using ARRAY_AGG. I also want to get maximum value from number_of_submits and whatever entry was in the same row in column host."},
{label:"Write a tf.math expression",prompt:"Write a euclidean distance equation using tf.math"},{label:"Generate f1 table",prompt:"Generate a table in f1 with this data: Fields: _PARTITIONDATE: Date | project_id: string Values: - 01/01/2021 | 1 - 01/01/2021 | 2 - 01/01/2021 | 3 - 01/01/2021 | 4 - 01/02/202 | 1 - 01/02/2021 | 2 - 01/02/2021 | 3 - 01/03/202 | 1 - 01/04/202 | 1 - 01/04/202 | 5 - 01/04/202 | 6 - 01/04/202 | 7 - 01/04/202 | 8 - 01/05/202 | 8"}],Vbd=[{label:"Building internal Chrome extension",
prompt:"I need to build a Chrome Extension for internal usage, any caveats or things I should know?"},{label:"Using hg rm",prompt:"I'm using hg rm to remove many obsolete files in a directory. But it is too slow and I couldn't check the progress. How to fix it?"},{label:"Shared node vs. library",prompt:"What is a difference between a shared node and library?"},{label:"Declare a new Kotlin function",prompt:"What are different ways to declare a new Kotlin function?"},{label:"Load shedding",prompt:"What is a good load shedding choice for an internal service?"},
{label:"Read experiment in Soy file",prompt:"For reading experiment in Soy file, should I use Soy injection or Soy deltemplate ?"},{label:".pbenums .pb file difference",prompt:'What is the difference between a ".pbenums" file vs a ".pb" file?'}],Wbd=[{label:"Assert a list is empty in Kotlin",prompt:"Kotlin assert that the list is empty"},{label:"Sort libraries in Python ",prompt:"Sorting libraries in Python"},{label:"Test using Blaze",prompt:'How do you run the single test "fetchTableWithTags_includesTagsInResponse" in the file "google3/javatests/com/google/cloud/helix/server/job/CatalogInterfaceLocalImplTest.java" using blaze?'},
{label:"Using dreampipe with pod",prompt:"Can you use Dreampipe with Pod Batch?"},{label:"Increment protobuf int field in C++",prompt:"How to increment protobuf int field in c++?"},{label:"Boq web lite node creation",prompt:"What is generated when I create a Boq Web Lite node?"},{label:"Explain code",prompt:"Can you explain this code : ``` [add code block here] ```"},{label:"Find table to query Google Maps POIs",prompt:"What table should I query to get a list of all the POIs on Google Maps?"},{label:"Explain function",
prompt:"Explain flume::KeyProto() function."},{label:"GWS using Java 11",prompt:"Is GWS using Java 11?"},{label:"Get current date in borg config",prompt:"How do I get the current date in the borg config. Is there a method for this?"},{label:"Commit actions in Cider",prompt:"In Cider, what are the differences between sync, evolve, upload, commit, and ammend?"},{label:"Get yesterday's date in Java",prompt:"In Java, how to get yesterday's date?"},{label:"Get Corbett access",prompt:"How do I get access to Corbett?"},
{label:"Explain import statement",prompt:'Why import "//javascript/frameworks/client/data:rpc_id"?'},{label:"Confirm server creation constraints",prompt:"Boq server which listens to pubsub and writes to spanner db. Is this possible in python?"},{label:"Create unordered list in Angular Dart",prompt:"How do I use NgFor to create an unordered list in Angular Dart?"},{label:"Find boqdash backend",prompt:"Is Boq manifest service is the backend for BoqDash(or boq universe)?"},{label:"Check empty string in GoogleSQL",
prompt:"How to check whether a string is empty in googlesql?"},{label:"Provide code summary",prompt:"Explain the following in a succinct summary: [add code block here]"},{label:"Loss in Tensorflow models",prompt:"What are common reasons that a Tensorflow model would not show any change in loss?"},{label:"Explain .dwp file",prompt:"What is a .dwp file?"},{label:"Build rules in bzl",prompt:"Can a single bzl file define two build rules?"},{label:"Workspace document access",prompt:'Does sharing a Google Workspace document with "Alphabet" make the document accessible to restricted TVCs?'},
{label:"Explain code from BUILD file",prompt:'What does this part of the BUILD file mean: borgcfg_inline( name = "index_backfill_borg_inline", src = "index_backfill.borg", deps = [ ":index_backfill_template", "//production/borg/templates/lambda:time_lib", "//production/borg/templates/lambda:ubdiff_lib", ], )'},{label:"Include data file in Blaze",prompt:"How do I include a data file which my Python binary needs in Blaze?"},{label:"GKE mixer service",prompt:"How does the mixer service in GKE work?"}];var IOa=function(a,b){return b.title},GOa=function(a,b){return b.label},Xbd=new bd("OnboardingExamplesTemplate"),qK=function(){var a=this;this.overridesService=q(CC);this.ve={ZeroStateSuggestionChipButton:201127};this.defaultOnboardingSections=[{title:"Coding",examples:EOa(Ubd)},{title:"Planning",examples:EOa(Vbd)},{title:"Learning",examples:EOa(Wbd)}];this.clientConfiguration=Qg.apply(null,n([]));this.exampleQuery=Pg();this.overrideOnboardingExamples=swa(this.overridesService.overrideOnboardingExamplesList$.asObservable());
this.onboardingExamples=ah.apply(null,[function(){if(a.overrideOnboardingExamples())return a.overrideOnboardingExamples();var b;return((b=a.clientConfiguration())==null?0:b.onboardingExamples)?a.clientConfiguration().onboardingExamples:a.defaultOnboardingSections}].concat(n([])))};qK.prototype.setExampleQuery=function(a){this.exampleQuery.emit(a)};qK.\u0275fac=function(a){return new (a||qK)};
qK.\u0275cmp=C({type:qK,selectors:[["onboarding-examples"]],inputs:{clientConfiguration:[1,"clientConfiguration"]},outputs:{exampleQuery:"exampleQuery"},decls:2,vars:1,consts:[[1,"onboarding-example-container","flex-row","gap-s"],[1,"onboarding-example","bg-surface-container","rounded","padded"],[1,"onboarding-section-title","gmat-headline-6","margin-s-bottom"],[1,"flex-row","flex-row-wrap","align-items-flex-start","gap-s"],["mat-stroked-button","",1,"example-button","bg-surface-default","text-secondary",
3,"ve","veClick","veImpression"],["mat-stroked-button","",1,"example-button","bg-surface-default","text-secondary",3,"click","ve","veClick","veImpression"]],template:function(a,b){a&1&&(K(0,"div",0),F(1,JOa,2,0),L());if(a&2){var c;B();G((c=b.onboardingExamples())?1:-1,c)}},dependencies:[xy,ZA,XA,TA,HE,GE],styles:[".onboarding-example[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1 1 auto;-moz-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;width:33%}@media (max-width:1280px){.onboarding-example-container[_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}.onboarding-example[_ngcontent-%COMP%]{width:auto}}@media (max-width:800px){.example-button[_ngcontent-%COMP%]{font-size:11px}.onboarding-section-title[_ngcontent-%COMP%]{font-size:16px}.onboarding-example[_ngcontent-%COMP%]:not(:first-child){display:none}}"],
changeDetection:0});var Ybd=["customOnboardingExamples"],rK=function(){this.clientConfiguration=Qg.apply(null,n([]));this.exampleQuery=Pg();this.onboardingExamplesTemplate=q(Xbd,{optional:!0});this.customOnboardingExamples=Rg("customOnboardingExamples",Object.assign({},{},{read:ig}))};
rK.prototype.ngAfterViewInit=function(){var a=this;this.onboardingExamplesTemplate&&this.customOnboardingExamples()&&(this.componentRef=this.customOnboardingExamples().createComponent(this.onboardingExamplesTemplate),this.componentRef.instance.clientConfiguration=this.clientConfiguration,this.componentRef.instance.exampleQuery.subscribe(function(b){a.exampleQuery.emit(b)}))};rK.\u0275fac=function(a){return new (a||rK)};
rK.\u0275cmp=C({type:rK,selectors:[["onboarding-examples-wrapper"]],viewQuery:function(a,b){a&1&&rg(b.customOnboardingExamples,Ybd,ig);a&2&&sg()},inputs:{clientConfiguration:[1,"clientConfiguration"]},outputs:{exampleQuery:"exampleQuery"},decls:2,vars:1,consts:[["customOnboardingExamples",""],[3,"clientConfiguration"],[3,"exampleQuery","clientConfiguration"]],template:function(a,b){a&1&&F(0,KOa,2,0,"ng-container")(1,LOa,1,1,"onboarding-examples",1);a&2&&G(b.onboardingExamplesTemplate?0:1)},dependencies:[xy,
qK],encapsulation:2,changeDetection:0});var MOa=new Map([["adsprivacy",{clientName:"Ads Privacy (Beta)",clientLogoUrl:"https://g3doc.corp.google.com/company/teams/ads-privacy/logo.png",onboardingExamples:[{title:"WARNING: Duckie for Ads Privacy is in Beta.\n Duckie may answer questions related to general privacy terminology but will not have information about specific Ads data.\n Please double check the sources linked to the answers.\n If no sources are listed please disregard the Duckie answer. \n Please double check the answers with your PWG (go/pwg-ads-engagement) and/or Legal (go/whichlawyer) before using the Duckie answers as authoritative.",
examples:[{label:"Create DGAC",prompt:"How do I create a DGAC?"},{label:"Best practices",prompt:"What are the best practices to annotate data for DMA?"},{label:"Anonymized data",prompt:"What is anonymized data?"}]}]}],["datanexus",{clientName:"DataNexus",clientLogoUrl:"https://data.corp.google.com/portal/static/dm_icon.png",onboardingDescription:"DataNexus (data/) is Alphabet's central destination for discovery, understanding, and management of ML, data, and data-related assets.",onboardingExamples:[{title:"Explore DataNexus with AI assistant",
examples:[{label:"Onboard to Datanexus",prompt:"What is DataNexus?"},{label:"Register assets",prompt:"How do I register an asset via DataNexus?"},{label:"Request access",prompt:"What is the table ytdata.cd_video and how do I request access to it?"},{label:"Search for assets",prompt:"Help me find a table related to PeopleView.Persons."}]}]}],["fieldglass",{clientName:"Fieldglass",clientLogoUrl:"https://www.gstatic.com/uif/product_icons/fieldglass.svg",onboardingExamples:[{title:"What can DevIntel Agent help with?",
examples:[{label:"Agent capabilities",prompt:"What are some examples of questions that can be answered by this agent?"},{label:"Measure AI Impact",prompt:"How can I measure AI Impact?"},{label:"How is CL throughput calculated?",prompt:"How is CL throughput calculated?"}]}]}],["g3doc",{clientName:"g3doc",clientLogoUrl:"https://g3doc.corp.google.com/devtools/markdown/service/g3doc/images/logo.svg",onboardingExamples:[{title:"Get answers about the current page. Past conversations can be found at http://duckie/",
examples:[{label:"Summarize",prompt:"What is this page about?"},{label:"Simplify",prompt:"Explain the basic idea in simple terms."},{label:"Edit",prompt:"Act as a tech writer. How would you improve this doc?"},{label:"Topic specific",prompt:"How do I use this tool to..."}]}]}],["nexus",Zad],["orchestration",{clientName:"Orchestration",clientLogoUrl:"https://g3doc.corp.google.com/supplychain/hw/orchestration2/g3doc/resources/images/orchestration_2_logo.svg",onboardingDescription:"DSS Orchestration 2.0 platform helps building complex system integration workflows and provides real-time execution, alerting and monitoring.",
onboardingExamples:[{title:"Get answers on DSS Orchestration",examples:[{label:"Onboard to Orchestration",prompt:"Tell me how to onboard to DSS Orchestration 2.0 system."},{label:"Debug error message",prompt:"Help me debug this error message: [add error message here]"},{label:"Design workflow definition",prompt:"How do I design my workflow definition in Orchestration 2?"}]}]}],["sfdbg",{clientName:"SFDBG",clientLogoUrl:"https://searchdebugger.corp.google.com/static/logo.svg",onboardingDescription:"See go/sfdbg-duckie-demo to learn how to use Duckie in SFDBG.",
onboardingExamples:[{title:"Get answers on SFDBG",examples:[{label:"Onboard to SFDBG",prompt:"Tell me how to onboard to SFDBG."},{label:"How to use SFDBG",prompt:"How to issue live, eval, or past queries in SFDBG?"},{label:"How to use SFDBG for debugging",prompt:"How to use SFDBG for debugging? Explain the different tabs and what they do and how to use them."}]}]}],["sigma",{clientName:"Sigma",clientLogoUrl:"https://www.gstatic.com/uif/product_icons/sigma.svg",onboardingExamples:[{title:"Get contextual answers for Sigma",
examples:[{label:"Summarize",prompt:"Summarize the data displayed in this page."},{label:"Debug",prompt:"Analyze the data in this page. Look for problems and outliers. Suggest solutions or investigation steps."}]}]}],["spanner",{clientName:"Spanner",clientLogoUrl:"https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/database_spark/default/24px.svg",onboardingExamples:[{title:"Get contextual answers on spanner details page",examples:[{label:"Spanner schema",prompt:"Show me the schema for this database."},
{label:"Query performance",prompt:"How can I improve the performance of my slowest query?"},{label:"Database backups",prompt:"What is the status of my database backups?"},{label:"Spanner automon",prompt:"Where can I find the automon dashboard for this database?"}]}],onboardingExamplesPerPageMap:new Map}],["taskflow",{clientName:"TaskFlow",clientLogoUrl:"https://www.gstatic.com/devopsconsole/images/taskflow/taskflow_logo_v1.svg",onboardingDescription:"TaskFlow assistant is a chat support agent powered by Duckie.\n      It's a customized version of Duckie web and configured to index answers\n      only in TaskFlow g3doc, TaskFlow YAQS and other planning resources.",
onboardingExamples:[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Inbox best practices",prompt:"What are the best practices for triaging items in the inbox?"},{label:"Bulk create issues",prompt:"How do I create tasks in bulk?"},{label:"Customize your views",prompt:"How do I customize saved views?"},{label:"Configure item default types",prompt:"How can I configure the default item types for my workspace?"},{label:"Manage cross-team commitments",prompt:"How to create a customized column in TaskFlow using Buganizer fields?"}]}],
onboardingExamplesPerPageMap:new Map([["homepage",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"What is a workspace?",prompt:"What is a workspace and when should I use one?"},{label:"What is a portfolio?",prompt:"What is a portfolio and when should I use one?"},{label:"Set up workspaces",prompt:"How do I set up a workspace for my team?"}]}]],["inbox",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Remove items from the inbox",prompt:"How do I remove an item from the inbox?"},
{label:"Inbox best practices",prompt:"What are the best practices for triaging items in inbox?"},{label:"Learn about triage actions",prompt:"What are triage actions and how do I use them?"},{label:"Customize your views",prompt:"How do I create saved views?"}]}]],["iteration",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"View burndown chart",prompt:"Where can I find burndown chart?"},{label:"Iteration best practices",prompt:"What are the best practices for using iterations?"},
{label:"Recurring iteration",prompt:"How to set up recurring iterations?"},{label:"Effort estimates",prompt:"How do I set up effort estimates for my team?"},{label:"Capacity planning",prompt:"How can I do capacity planning for my team?"}]}]],["goal",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"TaskFlow and OKRs",prompt:"What are the best practices of linking goals to OKRs?"},{label:"Goals best practices",prompt:"What are the best practices for organizing goals?"}]}]],
["tag",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Tags best practices",prompt:"What are the best practices for tags?"}]}]],["saved_query",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Create a saved search",prompt:"How do I create a saved search?"},{label:"TaskFlow query reference",prompt:"Show me the TaskFlow query reference."}]}]],["portofolio_inbox",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Setup automatic triage",
prompt:"How does the inbox auto-scheduler work for portfolios?"},{label:"Learn about triage actions",prompt:"What are triage actions and how do I set them up?"},{label:"Remove items from inbox",prompt:"How do I remove items from my portfolio inbox?"}]}]],["portfolio_iteration",[{title:"Set up your TaskFlow spaces and best practices",examples:[{label:"Recurring iterations",prompt:"How do I set up recurring iterations for my portfolio?"}]}]]]),modelIdOverride:"taskflow_assistant"}],["webviz",{clientName:"Webviz",
clientLogoUrl:"https://webviz.corp.google.com/static/webviz_logo.svg",onboardingDescription:"Customized version of Duckie grounded in Waymo, Webviz, and your current Webviz session.",onboardingExamples:[{title:"Getting Started",examples:[{label:"What is Webviz?",prompt:"Can you tell me more about Webviz and its main uses?"},{label:"How do I load a run segment?",prompt:"How do I load a specific run segment, for example run 20210801_220454_C01335 between 100s and 120s?"},{label:"How do I find a plugin?",
prompt:"How do I find and enable the Perception plugin?"},{label:"How do I share my session?",prompt:"How do I share my current Webviz view with someone else?"},{label:"How do I debug a hard brake?",prompt:"I see a hard brake event in the timeline, how can I investigate the cause?"}]}],onboardingExamplesPerPageMap:new Map}],["xmanager",{clientName:"XManager",clientLogoUrl:"https://xmanager.corp.google.com/static/images/logo.svg",onboardingDescription:"Ask me questions about your XManager experiments, debugging, resources, and more! File a bug at go/xm-duckie-bugs if you encounter any issues.",
onboardingExamples:[{title:"Get help with XManager",examples:[{label:"What can you do?",prompt:"What can you help me with regarding XManager?"},{label:"Debug failed experiment",prompt:"My experiment failed. Can you help me find out why?"},{label:"Check resources",prompt:"Do we have any VF accelerators available in the [Allotment Name] alloc?"},{label:"Find similar issues",prompt:"Are there any known issues in Buganizer about [Error Message Snippet]?"},{label:"Compare experiments",prompt:"What are the configuration differences between experiment [ID 1] and [ID 2]?"}]}]}],
["mendel",{clientName:"Mendel Insights Agent",clientLogoUrl:"https://experiments.corp.google.com/img/mendel-insights-logo.svg",onboardingExamples:[{title:"Get help with the Mendel Insights Agent",examples:[{label:"Analyze experiment results",prompt:"Analyze the results of this experiment"}]}]}]]);var QOa;var sK=function(a){var b=this;this.elementRef=a;this.eventType="click";this.clickOutside=new ui;this.clickHandler=function(c){if(c instanceof MouseEvent){var d=c.target;d&&(b.elementRef.nativeElement.contains(d)||b.clickOutside.emit(c))}}};sK.prototype.ngOnInit=function(){this.getRoot().addEventListener(this.eventType,this.clickHandler,!0)};sK.prototype.ngOnDestroy=function(){this.getRoot().removeEventListener(this.eventType,this.clickHandler,!0)};
sK.prototype.getRoot=function(){var a;return(a=ROa(this.elementRef.nativeElement))!=null?a:document};sK.\u0275fac=function(a){return new (a||sK)(Ve(Gd))};sK.\u0275dir=af({type:sK,selectors:[["","clickOutside",""]],inputs:{eventType:[0,"clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"},standalone:!1});var tK=function(){};tK.\u0275fac=function(a){return new (a||tK)};tK.\u0275mod=$e({type:tK});tK.\u0275inj=Dc({});var Zbd=Symbol("Xc"),$bd=Symbol("Yc"),uK=function(a){this.viewContainerRef=a;this.className="onedev-hovercard";this.onHide=new ui;this[Zbd]=new vf(1);this.wasTriggeredByKeyboard=!1;this.isOnHover$=new Xj(!1);this.closeHovercard$=new rf};uK.prototype.ngOnInit=function(){};var acd=function(a){var b=a[$bd];return b?(b.loaded||(b.viewContainerRef.createEmbeddedView(b.templateRef),b.cdr.detectChanges(),b.loaded=!0),a[Zbd].pipe(nf(0))):be(void 0)};uK.\u0275fac=function(a){return new (a||uK)(Ve(ig))};
uK.\u0275cmp=C({type:uK,selectors:[["onedev-hovercard"]],viewQuery:function(a,b){a&1&&kg(hg,7);if(a&2){var c;og(c=pg())&&(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&&(fg(),E(0,SOa,2,3,"ng-template"))},dependencies:[uz,sK],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 vK=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.cdr=c;this.loaded=!1;d[$bd]=this};vK.\u0275fac=function(a){return new (a||vK)(Ve(hg),Ve(ig),Ve(Yx),Ve(uK))};vK.\u0275dir=af({type:vK,selectors:[["","onedevHovercardLazyBody",""]],standalone:!1});var wK=function(a){this.hovercard=a;this.destroyed$=new vf(1)};wK.prototype.ngOnDestroy=function(){this.destroyed$.next()};wK.prototype.ngOnInit=function(){this.isHovercardReady$.pipe(Af(this.destroyed$)).subscribe(this.hovercard[Zbd])};
wK.\u0275fac=function(a){return new (a||wK)(Ve(uK))};wK.\u0275dir=af({type:wK,selectors:[["","onedevIsHovercardReady",""]],inputs:{isHovercardReady$:[0,"onedevIsHovercardReady","isHovercardReady$"]},standalone:!1});var bcd=function(){this.onAction=new ui;this.disabled=!1};bcd.prototype.handleClick=function(){this.onAction.emit()};bcd.\u0275fac=function(a){return new (a||bcd)};
bcd.\u0275cmp=C({type:bcd,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&&(fg(),K(0,"button",0),N("click",function(){return b.handleClick()}),gg(1),L());a&2&&I("disabled",b.disabled)},dependencies:[RI],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 uPa={originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:10},ccd={originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-10},sm={originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-10},dcd=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:10},uPa,sm,{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 rm=function(){this.showDelay=600;this.hideDelay=400;this.position=dcd;this.triggerKey=[]},xK=function(a,b){var c=this;this.overlay=a;this.origin=b;this.waitFor$=void 0;this.enabled=!0;this.config=new rm;this.active=!1;this.hovercardShown$=new vf(1);this.hide$=new rf;this.hovercard$=new Xj(null);this.isHovered$=new Xj(!1);this.isKeyboardActivated$=new Xj(!1);this.destroyed$=new vf(1);this.onDocumentKeyDown=function(e){e.key==="Escape"&&(ecd(c),e.stopPropagation(),e.preventDefault())};fcd(this);
this.handleClose();var d;(d=this.waitFor$)==null||d.pipe(Af(this.destroyed$)).subscribe()},fcd=function(a){gcd(a).pipe(Af(a.destroyed$)).subscribe(function(b){(a.active=b)?a.show():a.hide()})};xK.prototype.handleClose=function(){var a=this;this.hovercard$.pipe(zf(function(b){return(b==null?void 0:b.closeHovercard$)||Ox}),Af(this.destroyed$)).subscribe(function(){ecd(a)})};xK.prototype.dispose=function(){hcd(this);var a;(a=this.overlayRef)==null||a.dispose();this.destroyed$.next();this.destroyed$.complete()};
xK.prototype.isExpanded=function(){return this.hovercard$.getValue()?this.active:void 0};xK.prototype.toggle=function(a){this.isHovered$.next(a)};var ecd=function(a){a.isKeyboardActivated$.next(!1);a.isHovered$.next(!1);var b;(b=a.hovercard$.getValue())==null||b.isOnHover$.next(!1)};
xK.prototype.show=function(){var a=this;this.enabled&&this.overlayRef&&!this.overlayRef.hasAttached()&&this.hovercard$.getValue()&&(this.hovercard$.getValue().wasTriggeredByKeyboard=this.isKeyboardActivated$.value,acd(this.hovercard$.getValue()).pipe(mf(1),Af(this.destroyed$)).subscribe(function(){a.overlayRef&&a.templatePortal&&a.overlayRef.attach(a.templatePortal);document.addEventListener("keydown",a.onDocumentKeyDown);a.hovercardShown$.next()}))};xK.prototype.hide=function(){hcd(this);this.hide$.next()};
var hcd=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()}};xK.prototype.getPositionStrategy=function(){return dA(eA(fA(jA(this.overlay.position(),this.origin)),8),this.config.position)};
var gcd=function(a){return he([icd(a).pipe(yf(!1)),a.isKeyboardActivated$]).pipe(xf(1),A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b||c}),zf(function(b){var c;return((c=a.waitFor$)==null?void 0:c.pipe(lf(b)))||be(b)}))},icd=function(a){return a.hovercard$.pipe(zf(function(b){return he([a.isHovered$,(b==null?void 0:b.isOnHover$)||be(!1)]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c||d}),pla(function(c){return c?qe(a.config.showDelay):qe(a.config.hideDelay)}),
Af(a.destroyed$))}))};var jcd=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/events/usage";a.addNewCounter(this.metricName,pm("name"),pm("source"),{fieldType:1,fieldName:"state"})};jcd.prototype.increment=function(a,b,c){this.streamzService.incrementCounter(this.metricName,a,b,c)};jcd.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var kcd=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/events/performance";a.addNewEventMetric(this.metricName,pm("source"),pm("name"))};kcd.prototype.record=function(a,b,c){this.streamzService.record(this.metricName,a,b,c)};kcd.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var lcd=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/rpc/request_count";a.addNewCounter(this.metricName,pm("source"),pm("method_id"))};lcd.prototype.increment=function(a,b){this.streamzService.incrementCounter(this.metricName,a,b)};lcd.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var mcd=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/rpc/error_count";a.addNewCounter(this.metricName,pm("source"),pm("method_id"),{fieldType:2,fieldName:"code"})};mcd.prototype.increment=function(a,b,c){this.streamzService.incrementCounter(this.metricName,a,b,c)};mcd.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};var ncd={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 qcd=function(a){a=ocd(a);for(var b=2654435769,c=2654435769,d=314159265,e=a.length,f=e,g=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,g+=12)b+=pcd(a,g),c+=pcd(a,g+4),d+=pcd(a,g+8),k();d+=e;switch(f){case 11:d+=a[g+10]<<24;case 10:d+=a[g+9]<<16;case 9:d+=a[g+8]<<8;case 8:c+=a[g+7]<<24;case 7:c+=a[g+6]<<16;case 6:c+=a[g+5]<<8;case 5:c+=a[g+4];
case 4:b+=a[g+3]<<24;case 3:b+=a[g+2]<<16;case 2:b+=a[g+1]<<8;case 1:b+=a[g]}k();return ncd.toString(d)},rcd=function(a){return a},ocd=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b},pcd=function(a,b){return a[b]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};var scd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(scd,X);scd.prototype.getValueCase=function(){return Oo(this,tcd)};var tcd=[1,2,3];var ucd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ucd,X);ucd.prototype.getValueCase=function(){return Oo(this,vcd)};var vcd=[1,2,3];var wcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(wcd,X);var xcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(xcd,X);xcd.prototype.getFieldName=function(){return ox(this,3)};xcd.prototype.setFieldName=function(a){return zx(this,3,a)};var ycd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ycd,X);var zcd=function(a,b,c,d,e,f,g){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;Oi.call(this);this.logSource=a;this.componentId=b;f?c=f:(a=(new EE(a,"0")).setComponentId(b),Gt(this,a),c!==""&&(a.destinationUrl=c),d&&(a.serviceWorkerScopeEnabled=!0),e&&a.setBuildLabel(e),g&&(a.network=g),c=a.build());this.transport=c};Z(zcd,Oi);zcd.prototype.getLogSource=function(){return this.logSource};zcd.prototype.getComponentId=function(){return this.componentId};
zcd.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new ycd,c=[],d=0;d<a.length;d++){var e=a[d],f=new xcd;f=Gj(f,1,e.metricName);var g=Acd(e);f=an(f,3,g);g=[];var k=[];for(var m=l(e.cellMap.keys()),r=m.next();!r.done;r=m.next())k.push(r.value.split(","));for(m=0;m<k.length;m++){r=k[m];var w=e.cellType;for(var x=e.getCells(r)||[],D=[],H=0;H<x.length;H++){var J=x[H],O=J&&J.cellValue;J=new ucd;switch(w){case 3:O=Number(O);Number.isFinite(O)&&ip(J,1,vcd,O==null?O:Fb(O,void 0));break;case 2:BYa(J,
2,vcd,Number(O))}D.push(J)}w=D;for(x=0;x<w.length;x++){D=w[x];H=new wcd;D=hj(H,ucd,2,D);H=r;J=[];O=Bcd(e);for(var R=0;R<O.length;R++){var V=O[R],ba=H[R],pa=new scd;switch(V){case 3:Vo(pa,1,tcd,String(ba));break;case 2:V=Number(ba);Number.isFinite(V)&&ip(pa,2,tcd,V==null?V:Bb(V));break;case 1:V=ba==="true",ip(pa,3,tcd,V==null?V:vb(V))}J.push(pa)}ij(D,1,J);g.push(D)}}ij(f,4,g);c.push(f);e.clear()}ij(b,1,c);this.transport.dispatch(b);this.transport.flush()}};var Ccd=function(a){this.cellValue=a};var Dcd=function(a,b,c){this.metricName=a;this.cellType=b;this.fields=c||[];this.cellMap=new Map},Bcd=function(a){return a.fields.map(function(b){return b.fieldType})},Acd=function(a){return a.fields.map(function(b){return b.fieldName})};h=Dcd.prototype;h.addCell=function(a){var b=Yc.apply(1,arguments),c=this.getCells(b);c?c.push(new Ccd(a)):this.setCell(a,b)};h.setCell=function(a){var b=this.getKey(Yc.apply(1,arguments));this.cellMap.set(b,[new Ccd(a)])};
h.getCells=function(){var a=this.getKey(Yc.apply(0,arguments));return this.cellMap.has(a)?this.cellMap.get(a):void 0};h.getCell=function(){var a=this.getCells(Yc.apply(0,arguments));return a&&a.length?a[0]:void 0};h.clear=function(){this.cellMap.clear()};h.getKey=function(){var a=Yc.apply(0,arguments);return a?a.join(","):"key"};var Ecd=function(a,b){Dcd.call(this,a,3,b)};Z(Ecd,Dcd);Ecd.prototype.incrementCounter=function(){this.incrementCounterBy(1,Yc.apply(0,arguments))};Ecd.prototype.incrementCounterBy=function(a){var b=Yc.apply(1,arguments),c=0,d=this.getCell(b);d&&(c=d.cellValue);this.setCell(c+a,b)};var Fcd=function(a,b){Dcd.call(this,a,2,b)};Z(Fcd,Dcd);Fcd.prototype.record=function(a){this.addCell(a,Yc.apply(1,arguments))};var Gcd=function(a){Oi.call(this);this.streamzLogger=a;this.invocationCount=0;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.flushTimer=new kE(this.flushInterval);this.flushTimer.listen("tick",this.snapshotAndFlush,!1,this);Gt(this,this.flushTimer)};Z(Gcd,Oi);var Hcd=function(a){a.maybeStartFlushTimer();a.invocationCount++;a.invocationCount>=100&&a.snapshotAndFlush()};h=Gcd.prototype;
h.snapshotAndFlush=function(){var a=this.metricMap.values();a=[].concat(n(a)).filter(function(b){return b.cellMap.size});a.length&&this.streamzLogger.flush(a,!1);Icd(a);this.invocationCount=0;this.flushTimer.enabled&&this.flushTimer.stop()};h.addNewCounter=function(a){var b=Yc.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new Ecd(a,b))};h.addNewEventMetric=function(a){var b=Yc.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new Fcd(a,b))};
h.getMetric=function(a){return this.disabledMetrics.has(a)?void 0:this.metricMap.get(a)};h.incrementCounter=function(a){this.incrementCounterBy(a,1,Yc.apply(1,arguments))};h.incrementCounterBy=function(a,b){var c=Yc.apply(2,arguments),d=this.getMetric(a);d&&d instanceof Ecd&&(d.incrementCounterBy(b,c),Hcd(this))};h.record=function(a,b){var c=Yc.apply(2,arguments),d=this.getMetric(a);d&&d instanceof Fcd&&(d.record(b,c),Hcd(this))};h.maybeStartFlushTimer=function(){this.flushTimer.enabled||this.flushTimer.start()};
var Icd=function(a){for(var b=0;b<a.length;b++)a[b].clear()};var Jcd=new bd("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(" ")}}),Kcd=new bd("STREAMZ_PRODUCT_IDENTIFIER"),Lcd=new bd("STREAMZ_ALLOWLIST_IDENTIFIER"),Mcd=new bd("one_developer_workflow.streamz_service",{providedIn:"root",factory:function(){return q(Tg).runOutsideAngular(function(){var a=new zcd(1503);a=new Gcd(a);a.flushInterval=1E4;a.flushTimer.setInterval(1E4);
return a})}}),yK=function(a,b,c,d,e){this.streamzService=a;this.zone=b;this.oneDeveloperWorkflowUsageMetrics=new jcd(this.streamzService);new kcd(this.streamzService);new lcd(this.streamzService);new mcd(this.streamzService);this.productIdentifier=d||window.location.hostname;this.productionAllowlist=c.map(rcd);this.allowlistIdentifier=qcd(e!=null?e:this.productIdentifier)},Ocd=function(a,b,c){a.zone.runOutsideAngular(function(){Ncd(a)&&a.oneDeveloperWorkflowUsageMetrics.increment(b,a.productIdentifier,
c)})},Ncd=function(a){return a.productionAllowlist.some(function(b){return a.allowlistIdentifier===b})};yK.\u0275fac=function(a){return new (a||yK)(Wc(Mcd),Wc(Tg),Wc(Jcd),Wc(Kcd,8),Wc(Lcd,8))};yK.\u0275prov=Cc({token:yK,factory:yK.\u0275fac,providedIn:"root"});var Pcd=new bd("onedevHovercardLoggingOn"),zK=function(a,b,c,d,e){var f=this;this.viewContainerRef=c;this.injector=e;this.config=new rm;this.onHovercardShown=new ui;this.destroyed$=new vf(1);this.triggerControl=new xK(a,b);this.triggerControl.hovercardShown$.pipe(Df(d||be(!1)),Af(this.destroyed$)).subscribe(function(g){g=l(g);g.next();g=g.next().value;f.onHovercardShown.emit();g&&(f.clientStreamzService||(f.clientStreamzService=f.injector.get(yK)),Ocd(f.clientStreamzService,"hovercardShown",!0))})};
h=zK.prototype;h.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 mA(a.templateRef,c);b.hovercard$.next(a)}}};h.ngOnDestroy=function(){this.triggerControl.dispose();this.destroyed$.next();this.destroyed$.complete()};
h.isExpanded=function(){return this.triggerControl.isExpanded()};h.onKeyDown=function(a){if(this.config.triggerKey.includes(a.key)){var b=this.triggerControl;a.stopPropagation();a.preventDefault();b.isKeyboardActivated$.next(!0)}};h.toggle=function(a){this.triggerControl.toggle(a)};h.hide=function(){this.triggerControl.hide()};da.Object.defineProperties(zK.prototype,{enabled:{configurable:!0,enumerable:!0,set:function(a){this.triggerControl.enabled=a}}});
zK.\u0275fac=function(a){return new (a||zK)(Ve(rA),Ve(Gd),Ve(ig),Ve(Pcd,8),Ve(xe))};
zK.\u0275dir=af({type:zK,selectors:[["","onedevHovercardTrigger",""]],hostVars:2,hostBindings:function(a,b){a&1&&N("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&&Jf("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:[Gx]});var AK=function(){};AK.\u0275fac=function(a){return new (a||AK)};AK.\u0275mod=$e({type:AK});AK.\u0275inj=Dc({imports:[Dz,tK,xy,$I,uA]});var Qcd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Qcd,X);h=Qcd.prototype;h.getText=function(){return Fi(this,1)};h.setText=function(a){return Gj(this,1,a)};h.hasText=function(){return xm(this,1)};h.getType=function(){return Ri(this,3)};h.setType=function(a){return Yn(this,3,a)};h.hasType=function(){return ym(this,3)};var Rcd=new bd("GM2_CHIPS_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var BK=function(a){this.options=a;if(a.disableGmatStyle)throw Error("eb");};BK.\u0275fac=function(a){return new (a||BK)(Ve(Rcd))};
BK.\u0275dir=af({type:BK,selectors:[["mat-chip"],["mat-basic-chip"],["mat-chip-row"],["mat-basic-chip-row"],["mat-chip-option"],["mat-basic-chip-option"]],hostAttrs:[1,"gmat-mdc-chip"],hostVars:14,hostBindings:function(a,b){a&2&&yg("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 Scd=new bd("mat-chips-default-options",{providedIn:"root",factory:function(){return{separatorKeyCodes:[13]}}}),Tcd=new bd("MatChipAvatar"),Ucd=new bd("MatChipTrailingIcon"),Vcd=new bd("MatChipEdit"),Wcd=new bd("MatChipRemove"),Xcd=new bd("MatChip");var CK=function(){this._elementRef=q(Gd);this._parentChip=q(Xcd);this._isPrimary=!0;this._disabled=this._isLeading=!1;this.tabIndex=-1;this._allowFocusWhenDisabled=!1;q(fi).load(BA);this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")};CK.prototype._getDisabledAttribute=function(){return this.disabled&&!this._allowFocusWhenDisabled?"":null};CK.prototype.focus=function(){this._elementRef.nativeElement.focus()};
da.Object.defineProperties(CK.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}}});CK.\u0275fac=function(a){return new (a||CK)};
CK.\u0275dir=af({type:CK,selectors:[["","matChipContent",""]],hostAttrs:[1,"mat-mdc-chip-action","mdc-evolution-chip__action","mdc-evolution-chip__action--presentational"],hostVars:8,hostBindings:function(a,b){a&2&&(Jf("disabled",b._getDisabledAttribute())("aria-disabled",b.disabled),yg("mdc-evolution-chip__action--primary",b._isPrimary)("mdc-evolution-chip__action--secondary",!b._isPrimary)("mdc-evolution-chip__action--trailing",!b._isPrimary&&!b._isLeading))},inputs:{disabled:[2,"disabled","disabled",
bh],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?-1:ch(a)}],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}});var DK=function(){CK.apply(this,arguments)};Z(DK,CK);DK.prototype._getTabindex=function(){return this.disabled&&!this._allowFocusWhenDisabled?null:this.tabIndex.toString()};DK.prototype._handleClick=function(a){!this.disabled&&this._isPrimary&&(a.preventDefault(),this._parentChip._handlePrimaryActionInteraction())};
DK.prototype._handleKeydown=function(a){a.keyCode!==13&&a.keyCode!==32||this.disabled||!this._isPrimary||this._parentChip._isEditing||(a.preventDefault(),this._parentChip._handlePrimaryActionInteraction())};DK.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(DK)))(b||DK)}}();
DK.\u0275dir=af({type:DK,selectors:[["","matChipAction",""]],hostVars:3,hostBindings:function(a,b){a&1&&N("click",function(c){return b._handleClick(c)})("keydown",function(c){return b._handleKeydown(c)});a&2&&(Jf("tabindex",b._getTabindex()),yg("mdc-evolution-chip__action--presentational",!1))},features:[Ff]});var Ycd=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],EK=function(){this._changeDetectorRef=q(Yx);this._elementRef=q(Gd);this._tagName=q(CCc);this._ngZone=q(Tg);this._focusMonitor=q(mz);this._globalRippleOptions=q(DA,{optional:!0});this._document=q(Yh);this._onFocus=new rf;this._onBlur=new rf;this.role=null;this._hasFocusInternal=!1;this._animationsDisabled=ti();this.id=q(hi).getId("mat-mdc-chip-");this.ariaDescription=
this.ariaLabel=null;this._hadFocusOnRemove=this._chipListDisabled=!1;this.removable=!0;this._disabled=this.disableRipple=this.highlighted=!1;this.removed=new ui;this.destroyed=new ui;this.basicChipAttrName="mat-basic-chip";this._rippleLoader=q(KA);this._injector=q(xe);var a=q(fi);a.load(BA);a.load(gz);this._monitorFocus();var b;(b=this._rippleLoader)==null||XHc(b,this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})};h=EK.prototype;h._hasFocus=function(){return this._hasFocusInternal};
h.ngOnInit=function(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._tagName.toLowerCase()===this.basicChipAttrName};h.ngAfterViewInit=function(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label");this._pendingFocus&&(this._pendingFocus=!1,this.focus())};h.ngAfterContentInit=function(){var a=this;this._actionChanges=se(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.changes,this._allRemoveIcons.changes).subscribe(function(){return a._changeDetectorRef.markForCheck()})};
h.ngDoCheck=function(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())};h.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);var a;(a=this._rippleLoader)==null||WHc(a,this._elementRef.nativeElement);var b;(b=this._actionChanges)==null||b.unsubscribe();this.destroyed.emit({chip:this});this.destroyed.complete()};h.remove=function(){this.removable&&(this._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))};
h._isRippleDisabled=function(){var a;return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!((a=this._globalRippleOptions)==null||!a.disabled)};h._hasTrailingIcon=function(){return!(!this.trailingIcon&&!this.removeIcon)};h._handleKeydown=function(a){if(a.keyCode===8&&!a.repeat||a.keyCode===46)a.preventDefault(),this.remove()};h.focus=function(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)};
h._getSourceAction=function(a){return this._getActions().find(function(b){b=b._elementRef.nativeElement;return b===a||b.contains(a)})};h._getActions=function(){var a=[];this.editIcon&&a.push(this.editIcon);this.primaryAction&&a.push(this.primaryAction);this.removeIcon&&a.push(this.removeIcon);return a};h._handlePrimaryActionInteraction=function(){};h._hasInteractiveActions=function(){return this._getActions().length>0};h._edit=function(){};
h._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})})})))})};
da.Object.defineProperties(EK.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}}});EK.\u0275fac=function(a){return new (a||EK)};
EK.\u0275cmp=C({type:EK,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(a,b,c){a&1&&(lg(c,Tcd,5),lg(c,Vcd,5),lg(c,Ucd,5),lg(c,Wcd,5),lg(c,Tcd,5),lg(c,Ucd,5),lg(c,Vcd,5),lg(c,Wcd,5));if(a&2){var d;og(d=pg())&&(b.leadingIcon=d.first);og(d=pg())&&(b.editIcon=d.first);og(d=pg())&&(b.trailingIcon=d.first);og(d=pg())&&(b.removeIcon=d.first);og(d=pg())&&(b._allLeadingIcons=d);og(d=pg())&&(b._allTrailingIcons=d);og(d=pg())&&(b._allEditIcons=
d);og(d=pg())&&(b._allRemoveIcons=d)}},viewQuery:function(a,b){a&1&&kg(DK,5);if(a&2){var c;og(c=pg())&&(b.primaryAction=c.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(a,b){a&1&&N("keydown",function(c){return b._handleKeydown(c)});a&2&&(Rf("id",b.id),Jf("role",b.role)("aria-label",b.ariaLabel),zg("mat-"+(b.color||"primary")),yg("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",bh],highlighted:[2,"highlighted","highlighted",bh],disableRipple:[2,"disableRipple","disableRipple",bh],disabled:[2,"disabled","disabled",bh]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Ig([{provide:Xcd,useExisting:EK}])],ngContentSelectors:["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],decls:8,vars:2,
consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipContent",""],[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&&(fg(Ycd),M(0,"span",0),K(1,"span",1)(2,"span",2),F(3,TOa,2,0,"span",3),K(4,"span",4),gg(5),
M(6,"span",5),L()()(),F(7,UOa,2,0,"span",6));a&2&&(B(3),G(b.leadingIcon?3:-1),B(4),G(b._hasTrailingIcon()?7:-1))},dependencies:[CK],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(--mat-chip-outline-width, 1px);border-radius:var(--mat-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(--mat-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(--mat-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(--mat-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(--mat-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-leading-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.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-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.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--secondary{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary{color:var(--mat-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--secondary{color:var(--mat-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--secondary{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--secondary{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--secondary{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--secondary{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(--mat-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-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(--mat-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(--mat-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(--mat-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(--mat-chip-with-avatar-avatar-size, 24px);height:var(--mat-chip-with-avatar-avatar-size, 24px);font-size:var(--mat-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--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic{padding-left:0}.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(--mat-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(--mat-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(--mat-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(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mat-chip-container-shape-radius, 8px);height:var(--mat-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mat-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mat-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(--mat-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(--mat-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mat-chip-with-icon-icon-size, 18px);height:var(--mat-chip-with-icon-icon-size, 18px);font-size:var(--mat-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(--mat-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(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mat-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(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-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(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-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(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-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(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-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(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mat-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-edit,.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-edit:focus,.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-edit:hover::after,.mat-mdc-chip-remove:hover::after{opacity:calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)))}.mat-mdc-chip-edit:focus::after,.mat-mdc-chip-remove:focus::after{opacity:calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-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-chip.cdk-focused .mat-mdc-chip-edit:focus::after,.mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:focus::after{opacity:calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:hover::after,.mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:hover::after{opacity:calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.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(--mat-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-edit::before,.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-edit::after,.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-edit .mat-icon,.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:""}.mdc-evolution-chip__icon,.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content}img.mdc-evolution-chip__icon{min-height:0}\n'],
encapsulation:2,changeDetection:0});var FK=function(){this._elementRef=q(Gd);this._changeDetectorRef=q(Yx);this._dir=q(ii,{optional:!0});this._lastDestroyedFocusedChipIndex=null;this._destroyed=new rf;this._defaultRole="presentation";this._disabled=!1;this.tabIndex=0;this._explicitRole=null;this._chipActions=new jg};h=FK.prototype;h.ngAfterViewInit=function(){this._setUpFocusManagement();this._trackChipSetChanges();this._trackDestroyedFocusedChip()};
h.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();this._chipActions.destroy();this._destroyed.next();this._destroyed.complete()};h._hasFocusedChip=function(){return this._chips&&this._chips.some(function(a){return a._hasFocus()})};h._syncChipsState=function(){var a=this,b;(b=this._chips)==null||b.forEach(function(c){c._chipListDisabled=a._disabled;c._changeDetectorRef.markForCheck()})};h.focus=function(){};h._handleKeydown=function(a){if(this._originatesFromChip(a))this._keyManager.onKeydown(a)};
h._isValidIndex=function(a){return a>=0&&a<this._chips.length};h._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}))};h._getChipStream=function(a){var b=this;return this._chips.changes.pipe(yf(null),zf(function(){return se.apply(null,n(b._chips.map(a)))}))};
h._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};
h._setUpFocusManagement=function(){var a=this;this._chips.changes.pipe(yf(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);ng(a._chipActions)});this._keyManager=Oz(Nz(Mz(new Rz(this._chipActions)),this._dir?this._dir.value:"ltr")).skipPredicate(function(c){return a._skipPredicate(c)});this.chipFocusChanges.pipe(Af(this._destroyed)).subscribe(function(c){(c=c.chip._getSourceAction(document.activeElement))&&
Pz(a._keyManager,c)});var b;(b=this._dir)==null||b.change.pipe(Af(this._destroyed)).subscribe(function(c){return Nz(a._keyManager,c)})};h._skipPredicate=function(a){return a.disabled};h._trackChipSetChanges=function(){var a=this;this._chips.changes.pipe(yf(null),Af(this._destroyed)).subscribe(function(){a.disabled&&Promise.resolve().then(function(){return a._syncChipsState()});a._redirectDestroyedChipFocus()})};
h._trackDestroyedFocusedChip=function(){var a=this;this.chipDestroyedChanges.pipe(Af(this._destroyed)).subscribe(function(b){var c=a._chips.toArray().indexOf(b.chip),d=b.chip._hasFocus();b=b.chip._hadFocusOnRemove&&a._keyManager.activeItem&&b.chip._getActions().includes(a._keyManager.activeItem);d=d||b;a._isValidIndex(c)&&d&&(a._lastDestroyedFocusedChipIndex=c)})};
h._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}};
da.Object.defineProperties(FK.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()}}});FK.\u0275fac=function(a){return new (a||FK)};
FK.\u0275cmp=C({type:FK,selectors:[["mat-chip-set"]],contentQueries:function(a,b,c){a&1&&lg(c,EK,5);if(a&2){var d;og(d=pg())&&(b._chips=d)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(a,b){a&1&&N("keydown",function(c){return b._handleKeydown(c)});a&2&&Jf("role",b.role)},inputs:{disabled:[2,"disabled","disabled",bh],role:"role",tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ch(a)}]},ngContentSelectors:["*"],decls:2,vars:0,consts:[["role",
"presentation",1,"mdc-evolution-chip-set__chips"]],template:function(a){a&1&&(fg(),Sf(0,"div",0),gg(1),Tf())},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 Zcd=function(){};Zcd.\u0275fac=function(a){return new (a||Zcd)};Zcd.\u0275dir=af({type:Zcd,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:["role","img",1,"mat-mdc-chip-avatar","mdc-evolution-chip__icon","mdc-evolution-chip__icon--primary"],features:[Ig([{provide:Tcd,useExisting:Zcd}])]});var GK=function(){CK.apply(this,arguments);this._isPrimary=!1};Z(GK,CK);GK.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(GK)))(b||GK)}}();
GK.\u0275dir=af({type:GK,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:[Ig([{provide:Ucd,useExisting:GK}]),Ff]});var $cd=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],HK=function(){EK.apply(this,arguments);this._defaultOptions=q(Scd,{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 ui};Z(HK,EK);h=HK.prototype;h.ngOnInit=function(){EK.prototype.ngOnInit.call(this);this.role="presentation"};h.select=function(){this._setSelectedState(!0,!1,!0)};h.deselect=function(){this._setSelectedState(!1,!1,!0)};h._handlePrimaryActionInteraction=function(){this.disabled||(this.focus(),this.selectable&&this._setSelectedState(!this.selected,!0,!0))};h._hasLeadingGraphic=function(){return this.leadingIcon?!0:!this._chipListHideSingleSelectionIndicator||this._chipListMultiple};
h._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())};
da.Object.defineProperties(HK.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}}});
HK.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(HK)))(b||HK)}}();
HK.\u0275cmp=C({type:HK,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&&(Rf("id",b.id),Jf("tabindex",null)("aria-label",null)("aria-description",null)("role",b.role),yg("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",bh],selected:[2,"selected","selected",bh]},outputs:{selectionChange:"selectionChange"},features:[Ig([{provide:EK,useExisting:HK},{provide:Xcd,useExisting:HK}]),Ff],ngContentSelectors:["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],decls:8,vars:6,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,"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&&(fg($cd),M(0,"span",0),K(1,"span",1)(2,"button",2),F(3,VOa,5,0,"span",3),K(4,"span",4),gg(5),M(6,"span",5),L()()(),F(7,WOa,2,0,"span",6));a&2&&(B(2),I("_allowFocusWhenDisabled",!0),Jf("aria-description",b.ariaDescription)("aria-label",b.ariaLabel)("aria-selected",b.ariaSelected),B(),G(b._hasLeadingGraphic()?3:-1),B(4),G(b._hasTrailingIcon()?7:-1))},dependencies:[DK],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(--mat-chip-outline-width, 1px);border-radius:var(--mat-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(--mat-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(--mat-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(--mat-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(--mat-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-leading-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.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-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.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--secondary{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary{color:var(--mat-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--secondary{color:var(--mat-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--secondary{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--secondary{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--secondary{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--secondary{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(--mat-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-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(--mat-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(--mat-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(--mat-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(--mat-chip-with-avatar-avatar-size, 24px);height:var(--mat-chip-with-avatar-avatar-size, 24px);font-size:var(--mat-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--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic{padding-left:0}.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(--mat-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(--mat-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(--mat-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(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mat-chip-container-shape-radius, 8px);height:var(--mat-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mat-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mat-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(--mat-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(--mat-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mat-chip-with-icon-icon-size, 18px);height:var(--mat-chip-with-icon-icon-size, 18px);font-size:var(--mat-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(--mat-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(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mat-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(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-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(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-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(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-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(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-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(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mat-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-edit,.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-edit:focus,.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-edit:hover::after,.mat-mdc-chip-remove:hover::after{opacity:calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)))}.mat-mdc-chip-edit:focus::after,.mat-mdc-chip-remove:focus::after{opacity:calc(var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-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-chip.cdk-focused .mat-mdc-chip-edit:focus::after,.mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:focus::after{opacity:calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-edit:hover::after,.mat-mdc-chip.cdk-focused .mat-mdc-chip-remove:hover::after{opacity:calc(var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)) + var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.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(--mat-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-edit::before,.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-edit::after,.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-edit .mat-icon,.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:""}.mdc-evolution-chip__icon,.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content}img.mdc-evolution-chip__icon{min-height:0}\n'],
encapsulation:2,changeDetection:0});var add=function(a,b){this.source=a;this.value=b},bdd={provide:KB,useExisting:Tc(function(){return IK}),multi:!0},IK=function(){FK.apply(this,arguments);this._onTouched=function(){};this._onChange=function(){};this._defaultRole="listbox";this._defaultOptions=q(Scd,{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 ui;this._chips=void 0};Z(IK,FK);h=IK.prototype;
h.ngAfterContentInit=function(){var a=this;this._chips.changes.pipe(yf(null),Af(this._destroyed)).subscribe(function(){a.value!==void 0&&Promise.resolve().then(function(){a._setSelectionByValue(a.value,!1)});a._syncListboxProperties()});this.chipBlurChanges.pipe(Af(this._destroyed)).subscribe(function(){return a._blur()});this.chipSelectionChanges.pipe(Af(this._destroyed)).subscribe(function(b){a.multiple||a._chips.forEach(function(c){c!==b.source&&c._setSelectedState(!1,!1,!1)});b.isUserInput&&a._propagateChanges()})};
h.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()}};h.writeValue=function(a){a!=null?this.value=a:this.value=void 0};h.registerOnChange=function(a){this._onChange=a};h.registerOnTouched=function(a){this._onTouched=a};h.setDisabledState=function(a){this.disabled=a};
h._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)};h._blur=function(){var a=this;this.disabled||setTimeout(function(){a.focused||a._markAsTouched()})};h._keydown=function(a){a.keyCode===9&&FK.prototype._allowFocusEscape.call(this)};h._markAsTouched=function(){this._onTouched();this._changeDetectorRef.markForCheck()};
h._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 add(this,a));this._onChange(a);this._changeDetectorRef.markForCheck()};h._clearSelection=function(a){this._chips.forEach(function(b){b!==a&&b.deselect()})};
h._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};h._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()})})};
h._getFirstSelectedChip=function(){return Array.isArray(this.selected)?this.selected.length?this.selected[0]:void 0:this.selected};h._skipPredicate=function(){return!1};
da.Object.defineProperties(IK.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}}});IK.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(IK)))(b||IK)}}();
IK.\u0275cmp=C({type:IK,selectors:[["mat-chip-listbox"]],contentQueries:function(a,b,c){a&1&&lg(c,HK,5);if(a&2){var d;og(d=pg())&&(b._chips=d)}},hostAttrs:[1,"mdc-evolution-chip-set","mat-mdc-chip-listbox"],hostVars:10,hostBindings:function(a,b){a&1&&N("focus",function(){return b.focus()})("blur",function(){return b._blur()})("keydown",function(c){return b._keydown(c)});a&2&&(Rf("tabIndex",b.disabled||b.empty?-1:b.tabIndex),Jf("role",b.role)("aria-required",b.role?b.required:null)("aria-disabled",
b.disabled.toString())("aria-multiselectable",b.multiple)("aria-orientation",b.ariaOrientation),yg("mat-mdc-chip-list-disabled",b.disabled)("mat-mdc-chip-list-required",b.required))},inputs:{multiple:[2,"multiple","multiple",bh],ariaOrientation:[0,"aria-orientation","ariaOrientation"],selectable:[2,"selectable","selectable",bh],compareWith:"compareWith",required:[2,"required","required",bh],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",bh],value:"value"},
outputs:{change:"change"},features:[Ig([bdd]),Ff],ngContentSelectors:["*"],decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(a){a&1&&(fg(),Sf(0,"div",0),gg(1),Tf())},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 cdd=function(){};cdd.\u0275fac=function(a){return new (a||cdd)};cdd.\u0275mod=$e({type:cdd});cdd.\u0275inj=Dc({providers:[AA,{provide:Scd,useValue:{separatorKeyCodes:[13]}}],imports:[HA,jz]});var JK=function(){};JK.\u0275fac=function(a){return new (a||JK)};JK.\u0275mod=$e({type:JK});JK.\u0275inj=Dc({imports:[cdd]});var dPa=function(a){return{configuration:a}},kPa=function(a,b){return b.agentId},ddd=new bd("OnboardingTemplate"),KK=function(a,b,c,d){var e=this;this.userStateService=a;this.conversationAgentsService=b;this.overridesService=c;this.threadService=d;this.experimentsService=q(PA);this.communicationService=q(yD);q(kK);this.configurationKey=Qg.apply(null,n([]));this.pageId=Qg.apply(null,n([]));this.dynamicDuckieMModelId=$w.modelId;this.duckieBigBird=Yw.agentId;this.duckieBanners=tCc(Aea("mu7Lcf")).map(function(f){f=
mCc(f);return Gi(Qcd,"["+f.substring(4))});this.hovercardConfig=vPa();this.agentSelectorEnabled=!1;this.sVsMGooseModelEnabled=this.experimentsService.sVsMGooseModelEnabled;this.exampleQuery="";this.showDuckieShortsLinksEnabled=this.experimentsService.showDuckieShortsLinksEnabled;this.duckieBigBirdStrikeEnabled=this.experimentsService.duckieBigBirdStrikeEnabled;this.clientConfiguration=ah.apply(null,[function(){var f=POa(e.configurationKey()||""),g=e.pageId()||"";f&&e.communicationService.setParentIntegrator(!0);
var k,m;if((k=f)==null?0:(m=k.onboardingExamplesPerPageMap)==null?0:m.has(g))f=Object.assign({},f,{onboardingExamples:f.onboardingExamplesPerPageMap.get(g)});return f}].concat(n([])));this.showOnboardingExamples=ah.apply(null,[function(){var f;return((f=e.clientConfiguration())==null?void 0:f.onboardingExamples)!==void 0||!e.experimentsService.sVsMGooseModelEnabled&&!e.experimentsService.experimentalDuckieAgentEnabled}].concat(n([])));this.routingService=q(BD);this.userStateLoaded$=this.userStateService.userStateLoaded$;
this.showIncognitoBanner$=this.userStateService.isEnforcedPrivateMode$;this.showGeneralAnnouncementBanner$=new Xj(!1);this.agentSelectorEnabled=this.conversationAgentsService.duckieConversationAgentEnabled;this.availableConversationAgents$=this.conversationAgentsService.availableConversationAgents$;this.currentConversationAgent$=this.conversationAgentsService.currentConversationAgent$};
KK.prototype.ngOnInit=function(){var a=this;return y(function(b){if(b.nextAddress==1)return edd(a),z(b,fdd(a),2);gdd(a);return z(b,hdd(a),0)})};
var edd=function(a){a.routingService.queryParams.pipe(mf(1)).subscribe(function(b){var c=b.agenticSearch;b=b.bigBird;b=b!==void 0&&b!=="false";var d=[];c!==void 0&&c!=="false"&&d.push(Zw.agentDisplayName);b&&d.push(Yw.agentDisplayName);d.length>0&&mPa(a,{value:d})})},fdd=function(a){var b,c,d,e,f,g;return y(function(k){if(k.nextAddress==1)return AD(a.conversationAgentsService)!==(a.conversationAgentsService.experimentsService.a2aDefaultAgentEnabled?DAc:EAc)&&a.clientConfiguration()!==void 0?k.return():
z(k,PNc(a.userStateService),2);c=(b=k.yieldResult)!=null?b:[];a.duckieBigBirdStrikeEnabled&&((d=c)==null?0:d.includes(1))&&(c=c.filter(function(m){return m!==1}));e=c.includes(1);f=c.includes(2);e&&f?a.conversationAgentsService.currentConversationAgentInternal.next($w):c.length===1&&e?(g=a.experimentsService.a2aDefaultAgentEnabled?FAc:Yw,a.conversationAgentsService.currentConversationAgentInternal.next(g)):c.length===1&&f&&a.conversationAgentsService.currentConversationAgentInternal.next(Zw);$d(k)})},
mPa=function(a,b){b=Array.isArray(b.value)&&b.value.length!==0?b.value.length===1?a.experimentsService.a2aDefaultAgentEnabled?b.value[0]===Zw.agentDisplayName?Zw:FAc:b.value[0]===Zw.agentDisplayName?Zw:Yw:$w:a.conversationAgentsService.experimentsService.a2aDefaultAgentEnabled?DAc:EAc;var c=a.getDuckieModelPreferences(b);a.conversationAgentsService.currentConversationAgentInternal.next(b);QNc(a.userStateService,c)};
KK.prototype.getDuckieModelPreferences=function(a){switch(a){case Zw:return[2];case Yw:return[1];case FAc:return[1];case $w:return[1,2];default:return[0]}};
var gdd=function(a){a.routingService.queryParams.pipe(mf(1)).subscribe(function(b){var c=b.conversationAgentId;c&&(b=IAc.find(function(d){return d.agentId===c}))&&a.conversationAgentsService.currentConversationAgentInternal.next(b)})},hdd=function(a){var b;return y(function(c){return(b=a.routingService.snapshot.queryParams.q)?z(c,a.addMessage(b),0):c.return()})};
KK.prototype.addMessage=function(a){var b=this,c,d,e,f,g;return y(function(k){return k.nextAddress==1?(d=(c=b.routingService.snapshot.queryParams.preamble)!=null?c:void 0,f=(e=b.routingService.snapshot.queryParams.parentUrl)!=null?e:void 0,d&&b.overridesService.addPreamble(d),f&&(b.overridesService.overrideParentUrl=f),g={},z(k,lOa(b.routingService,"",{queryParams:(g.q=null,g.preamble=null,g.parentUrl=null,g),queryParamsHandling:"merge"}),2)):z(k,CTc(b.threadService,a),0)})};
KK.prototype.setExampleQuery=function(a){this.exampleQuery=a};KK.\u0275fac=function(a){return new (a||KK)(Ve(PD),Ve(zD),Ve(CC),Ve(fF))};
KK.\u0275cmp=C({type:KK,selectors:[["onboarding"]],hostAttrs:[1,"flex-column","full-height"],inputs:{configurationKey:[1,"configurationKey"],pageId:[1,"pageId"]},decls:17,vars:12,consts:[["customOnboarding",""],["customOnboardingClientLogo",""],["dynamicRagHovercard",""],["mppHovercard",""],[1,"onboarding-section"],[1,"margin-s-top",3,"submitMessage","inputText"],[3,"bannerType","bannerText","dismissalType"],[1,"onboarding-header","margin-y","gmat-headline-1"],[3,"exampleQuery","clientConfiguration"],
[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"agent-selector","flex-column","align-items-center"],["id","agent-selector-description",1,"agent-selector-description"],[1,"agent-chips-wrapper","flex-row","align-items-center"],["multiple","","aria-labelledby","agent-selector-description",1,"agent-selector-chips",3,"change"],[1,"onedev-hovercard-content","padded-s","font-google-sans","type-xs"],[1,"onedev-hovercard-body"],[1,"type-s","margin-xs-top"],[1,"margin-xs-bottom"],[1,"medium","type-xs",
"margin-s-top","margin-xs-bottom"],[1,"flex-spacer"],["appearance","input",3,"onedevHovercardTrigger","onedevHovercardConfig","disabled","selected","class"],["appearance","input",3,"onedevHovercardTrigger","onedevHovercardConfig","disabled","selected"],["matChipAvatar","",1,"agent-selector-chip-icon"],[1,"custom-onboarding","flex-column","align-items-center","gap-xs","margin-bottom","margin-auto-x","justify-content-center","text-center"],[1,"client-name","gmat-headline-5"],[1,"client-description",
"gmat-body-3","text-secondary"],[1,"client-logo"],["alt","Client logo","height","44","width","44",3,"src"]],template:function(a,b){if(a&1){var c=t();K(0,"div",4);F(1,XOa,1,0,"incognito-banner-wrapper");U(2,"async");U(3,"async");F(4,YOa,1,0,"general-announcement-wrapper");U(5,"async");Pf(6,$Oa,1,1,null,null,Of);F(8,bPa,2,1)(9,hPa,5,3);L();F(10,nPa,31,3);F(11,oPa,2,0);K(12,"message-input-wrapper",5);N("submitMessage",function(d){u(c);return v(b.addMessage(d))});L();E(13,sPa,5,3,"ng-template",null,0,
Og)(15,tPa,2,1,"ng-template",null,1,Og)}a&2&&(B(),G(W(2,6,b.userStateLoaded$)&&W(3,8,b.showIncognitoBanner$)?1:-1),B(3),G(W(5,10,b.showGeneralAnnouncementBanner$)?4:-1),B(2),Qf(b.duckieBanners),B(2),G(b.showOnboardingExamples()?9:8),B(2),G(b.communicationService.hasParentIntegratorValue||!b.agentSelectorEnabled&&!b.sVsMGooseModelEnabled?-1:10),B(),G(b.showDuckieShortsLinksEnabled?11:-1),B(),I("inputText",b.exampleQuery))},dependencies:[xy,oy,Kbd,Mbd,oK,JK,BK,Zcd,IK,HK,iK,AK,uK,zK,pK,kz,iz,RF,rK,TF,
mK,py],styles:[".onboarding-section[_ngcontent-%COMP%]{overflow-y:auto;border-radius:16px}@media (max-width:800px){.onboarding-section[_ngcontent-%COMP%]{padding-top:0}}.custom-onboarding[_ngcontent-%COMP%]{margin-top:8vh;width:80%}.custom-onboarding[_ngcontent-%COMP%]   hr[_ngcontent-%COMP%]{width:5%}@media (max-width:800px){.gmat-mdc-button.mat-mdc-outlined-button[_ngcontent-%COMP%]:not(.gmat-mdc-button-with-prefix){padding:0 16px}.onboarding-header[_ngcontent-%COMP%]{font-size:calc(var(--base-px, 1rem)*23)}}.onboarding-section[_ngcontent-%COMP%], message-input[_ngcontent-%COMP%]{padding-left:24px;padding-right:24px}.agent-selector[_ngcontent-%COMP%]{container-type:inline-size;padding-top:48px}.agent-selector[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0}.agent-selector[_ngcontent-%COMP%]   .agent-selector-chip-icon[_ngcontent-%COMP%]{color:var(--primary-default)}.agent-selector[_ngcontent-%COMP%]   .agent-selector-description[_ngcontent-%COMP%]{max-width:65cqw;margin:1em 0;font-size:.85em;text-align:center}.agent-selector[_ngcontent-%COMP%]   .agent-selector-description[_ngcontent-%COMP%]   a[_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;white-space:nowrap}  .onedev-hovercard{background-color:var(--page-bg);border-radius:16px;max-width:20em}.client-name[_ngcontent-%COMP%]{margin:0}"],
changeDetection:0});var idd=["customOnboarding"],LK=function(){this.configurationKey=Qg.apply(null,n([]));this.pageId=Qg.apply(null,n([]));this.onboardingTemplate=q(ddd,{optional:!0});this.customOnboarding=Rg("customOnboarding",Object.assign({},{},{read:ig}))};
LK.prototype.ngAfterViewInit=function(){this.onboardingTemplate&&this.customOnboarding()&&(this.componentRef=this.customOnboarding().createComponent(this.onboardingTemplate),this.componentRef.instance.configurationKey=this.configurationKey,this.componentRef.instance.pageId=this.pageId)};LK.\u0275fac=function(a){return new (a||LK)};
LK.\u0275cmp=C({type:LK,selectors:[["onboarding-wrapper"]],viewQuery:function(a,b){a&1&&rg(b.customOnboarding,idd,ig);a&2&&sg()},inputs:{configurationKey:[1,"configurationKey"],pageId:[1,"pageId"]},decls:4,vars:1,consts:[["customOnboarding",""],[1,"container","margin-auto-x"],[1,"onboarding","bg-surface-default","bordered","rounded","flex-column","justify-content-flex-end"],[3,"configurationKey","pageId"]],template:function(a,b){a&1&&(K(0,"div",1)(1,"div",2),F(2,wPa,2,0,"ng-container")(3,xPa,1,2,
"onboarding",3),L()());a&2&&(B(2),G(b.onboardingTemplate?2:3))},dependencies:[xy,KK],styles:[".container[_ngcontent-%COMP%]{max-width:1240px;min-width:300px;height:calc(100% - var(--base-px, 1rem)*16)}@media (max-width:800px){.container[_ngcontent-%COMP%]{height:100%}}.onboarding[_ngcontent-%COMP%]{box-shadow:0 6px 10px 4px var(--elevation),0 2px 3px 0 var(--elevation);-moz-box-sizing:border-box;box-sizing:border-box;height:calc(100% - var(--base-px, 1rem)*16);margin:.75em;padding-bottom:12px;position:relative}@media (max-width:800px){.onboarding[_ngcontent-%COMP%]{box-shadow:none;border:none;border-radius:0;margin:0;height:100%}}\n/*# sourceMappingURL=onboarding_wrapper.css.map */"],
changeDetection:0});var jdd=function(){};jdd.\u0275fac=function(a){return new (a||jdd)};jdd.\u0275mod=$e({type:jdd});jdd.\u0275inj=Dc({imports:[KK,SF,Sbd,nK,qK,TF,pK,oK,rK,LK,lK,mK]});var MK=function(){FD.call(this);this.hoverDelayMs=500;this.activity=new rf;this.attachMouseEventListeners(this.elementRef.nativeElement)};Z(MK,FD);h=MK.prototype;h.ngOnInit=function(){FD.prototype.ngOnInit.call(this);this.listenForOpenEvents(this.hoverDelayMs)};
h.listenForOpenEvents=function(a){var b=this,c=this.openStatusChange.pipe(ila(function(){return b.activity.pipe(kf(a))}));c.pipe(Af(this.destroyed)).subscribe(function(d){d?b.openDialog():b.closeDialog()});this.openings.pipe(te(function(d){return d&&b.beforeOpened.observers.length>0}),Ola(function(){return c.pipe(te(function(d){return!d}))}),Af(this.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})})};
h.attachMouseEventListeners=function(a){var b=this;this.stackManager&&this.stackManager.unregisterEvent().pipe(kf(this.hoverDelayMs),Af(this.destroyed)).subscribe(function(){a.matches(":hover")||b.viewContainerRef.element.nativeElement.matches(":hover")?b.openingDialog():b.closingDialog()});this.ngZone.runOutsideAngular(function(){oe(a,"mouseenter").pipe(Af(b.destroyed)).subscribe(function(){b.openingDialog()});oe(a,"click").pipe(Af(b.destroyed)).subscribe(function(c){c.target.closest("[xapInlineDialogClose]")?
b.closingDialog():(b.openingDialog(),b.openDialog())});oe(a,"mouseleave").pipe(Af(b.destroyed)).subscribe(function(){b.closingDialog()});oe(a,"mousemove").pipe(Af(b.destroyed)).subscribe(function(){b.activity.next()})})};h.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){oe(a,"keydown").pipe(Af(b.destroyed)).subscribe(function(c){switch(c.key){case "Escape":var d;((d=b.overlayRef)==null?0:d.hasAttached())&&c.stopPropagation();b.closeDialog()}})})};
h.openingDialog=function(){this.disabled||(this.openStatusChange.next(!0),this.activity.next())};h.closingDialog=function(){this.openStatusChange.next(!1);this.activity.next()};h.createOverlayConfig=function(a){return new ki(Object.assign({},this.overlayDimensions,{positionStrategy:FD.prototype.createPositionStrategy.call(this,a),scrollStrategy:DNc(this),panelClass:this.panelClassInternal}))};MK.\u0275fac=function(a){return new (a||MK)};
MK.\u0275dir=af({type:MK,selectors:[["","xapInlineDialog",""]],hostAttrs:[1,"xap-inline-dialog"],inputs:{dialog:[0,"xapInlineDialog","dialog"],disabled:[0,"xapInlineDialogDisabled","disabled"],hoverDelayMs:"hoverDelayMs"},exportAs:["xapInlineDialog"],features:[Ff]});var kdd=["*"],ldd=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}"},
mdd=function(){this.disabled=!1};mdd.\u0275fac=function(a){return new (a||mdd)};mdd.\u0275cmp=C({type:mdd,selectors:[["xap-text-trigger"]],hostAttrs:["role","button"],hostVars:4,hostBindings:function(a,b){a&2&&(Jf("tabindex",b.disabled?-1:0)("aria-disabled",b.disabled?!0:!1),yg("xap-text-trigger",!b.disabled))},inputs:{disabled:[0,"xapInlineDialogDisabled","disabled"]},ngContentSelectors:kdd,decls:1,vars:0,template:function(a){a&1&&(fg(),gg(0))},styles:[ldd()],encapsulation:2,changeDetection:0});
var NK=function(){this.disabled=!1};NK.\u0275fac=function(a){return new (a||NK)};NK.\u0275cmp=C({type:NK,selectors:[["xap-icon-trigger"]],hostAttrs:["role","button","tabindex","0",1,"xap-icon-trigger"],inputs:{disabled:[0,"xapInlineDialogDisabled","disabled"]},ngContentSelectors:kdd,decls:1,vars:0,template:function(a){a&1&&(fg(),gg(0))},styles:[ldd()],encapsulation:2,changeDetection:0});var ndd=function(){};ndd.\u0275fac=function(a){return new (a||ndd)};
ndd.\u0275cmp=C({type:ndd,selectors:[["private-content-divider-tooltip"]],decls:10,vars:3,consts:[["dividerTooltip",""],[1,"private-content-divider","flex-row","align-items-center","justify-content-center","margin-s-bottom","gap-s"],[1,"divider-line"],["tabindex","0","role","button","aria-label","Private content","dialogLabel","Private content tooltip",1,"flex-row","align-items-center","justify-content-center","padded-xs","gap-s",3,"xapInlineDialog","hoverDelayMs","dialogTabIndex"],[1,"divider-text"],
[1,"private-content-icon","padded-xxs","icon-s","rounded-full"],[1,"tooltip-container","gap","padded","bg-surface-container","flex-column"]],template:function(a){a&1&&(K(0,"div",1),M(1,"span",2),K(2,"div",3)(3,"span",4),S(4,"History is off "),L(),K(5,"mat-icon",5),S(6,"privacy_tip"),L()(),M(7,"span",2),L(),E(8,yPa,2,0,"ng-template",null,0,Og));a&2&&(a=Q(9),B(2),I("xapInlineDialog",a)("hoverDelayMs",100)("dialogTabIndex",0))},dependencies:[xy,kz,iz,ZA,MK],styles:["[_nghost-%COMP%]   .private-content-divider[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-top:-8px}[_nghost-%COMP%]   .private-content-divider[_ngcontent-%COMP%]   .divider-line[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;height:1px;background:var(--tonal-icon-grey)}[_nghost-%COMP%]   .private-content-divider[_ngcontent-%COMP%]   .divider-text[_ngcontent-%COMP%]{font-size:calc(var(--base-px, 1rem)*13)}[_nghost-%COMP%]   .private-content-divider[_ngcontent-%COMP%]   .private-content-icon[_ngcontent-%COMP%]{color:var(--tonal-green);background:var(--tonal-fill-green)}"],
changeDetection:0});var odd=new bd("GM2_CHECKBOX_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var OK=function(a){this.options=a;if(a.disableGmatStyle)throw Error("eb");};OK.\u0275fac=function(a){return new (a||OK)(Ve(odd))};OK.\u0275dir=af({type:OK,selectors:[["mat-checkbox"]],hostAttrs:[1,"gmat-mdc-checkbox"],standalone:!1});var PK=function(){};PK.\u0275fac=function(a){return new (a||PK)};PK.\u0275mod=$e({type:PK});PK.\u0275inj=Dc({providers:[{provide:J4c,useValue:{color:"primary"}}],imports:[xI]});var pdd=function(){this.dialogRef=q(dB);this.userStateService=q(PD);this.threadService=q(fF);this.allowPersonalResults$=this.userStateService.allowPersonalResults$.pipe(te(Qd));this.initialAllowPersonalResults=this.userStateService.allowPersonalResults$.getValue();this.userAllowedPersonalResults=this.userStateService.allowPersonalResults$.getValue()};pdd.\u0275fac=function(a){return new (a||pdd)};
pdd.\u0275cmp=C({type:pdd,selectors:[["user-privacy-settings-dialog"]],decls:25,vars:3,consts:[[1,"bg-surface-container","gap","padded-xs"],["mat-dialog-title",""],[1,"settings-message-content"],["href","http://go/duckie-access-protected-results","target","_blank"],[1,"flex-row","justify-content-center"],[1,"flex-row","align-items-center","gap",3,"change","checked"],["fontSet","google-symbols"],["align","end"],[1,"flex-row","gap-s"],"mat-button  color primary mat-dialog-close ".split(" "),["mat-button",
"","color","primary",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"h1",1),S(2,"Settings"),L(),K(3,"mat-dialog-content")(4,"div",2),S(5," Protected results increase the relevance of Duckie\u2019s answers to your questions. Protected results\u2014except for URLs\u2014 won\u2019t be logged or used for retraining. "),M(6,"br")(7,"br"),S(8," To opt-out, uncheck the box. "),K(9,"a",3),S(10," Learn more."),L()(),M(11,"br")(12,"br"),K(13,"div",4)(14,"mat-checkbox",5),U(15,"async"),N("change",function(c){return b.userAllowedPersonalResults=
c.checked}),K(16,"mat-icon",6),S(17,"shield_person"),L(),S(18," Use protected results "),L()()(),K(19,"mat-dialog-actions",7)(20,"div",8)(21,"button",9),S(22,"Cancel"),L(),K(23,"button",10),N("click",function(){b.userAllowedPersonalResults!==b.initialAllowPersonalResults&&(NNc(b.userStateService,b.userAllowedPersonalResults),b.threadService.startNewThread());b.dialogRef.close()}),S(24,"Done"),L()()()());a&2&&(B(14),I("checked",W(15,1,b.allowPersonalResults$)))},dependencies:[xy,ZA,XA,TA,PK,OK,wI,
pB,hB,kB,mB,lB,iK,kz,iz,py],styles:["[_nghost-%COMP%]{font-family:Google Sans,sans-serif;background-color:var(--tonal-fill-blue)}"],changeDetection:0});var qdd={maxWidth:300,disableClose:!0};var rdd=function(){this.viewContainerRef=q(ig);this.dialog=q(gB)};rdd.prototype.openUserPrivacySettingsDialog=function(){this.dialog.open(pdd,Object.assign({},qdd,{viewContainerRef:this.viewContainerRef}))};rdd.\u0275fac=function(a){return new (a||rdd)};
rdd.\u0275cmp=C({type:rdd,selectors:[["private-content-tooltip"]],decls:5,vars:3,consts:[["privateContentTooltip",""],["tabindex","0","role","button","aria-label","Private content","dialogLabel","Private content tooltip",1,"private-content-indicator","flex-row","align-items-center","justify-content-center","padded-xs","rounded-full",3,"xapInlineDialog","hoverDelayMs","dialogTabIndex"],[1,"private-content-icon","icon-m"],[1,"tooltip-container","gap","padded","bg-surface-container","flex-column"],[1,
"tooltip-actions","flex-row","gap-s"],["mat-button","","color","primary",3,"click"]],template:function(a){a&1&&(K(0,"div",1)(1,"mat-icon",2),S(2,"privacy_tip"),L()(),E(3,zPa,6,0,"ng-template",null,0,Og));a&2&&(a=Q(4),I("xapInlineDialog",a)("hoverDelayMs",100)("dialogTabIndex",0))},dependencies:[xy,kz,iz,ZA,XA,TA,MK],styles:['[_nghost-%COMP%]   .tooltip-container[_ngcontent-%COMP%]{max-width:300px}[_nghost-%COMP%]   .tooltip-container[_ngcontent-%COMP%]   .tooltip-actions[_ngcontent-%COMP%]{margin-left:-8px}[_nghost-%COMP%]   .private-content-indicator[_ngcontent-%COMP%]{background:var(--tonal-fill-green);margin:0 8px}[_nghost-%COMP%]   .private-content-indicator[_ngcontent-%COMP%]:before{content:"";display:block;position:absolute;width:48px;height:48px;border-radius:50%}[_nghost-%COMP%]   .private-content-indicator[_ngcontent-%COMP%]   .private-content-icon[_ngcontent-%COMP%]{color:var(--tonal-green)}'],
changeDetection:0});var sdd=new bd("GM2_TABS_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1,appearance:"primary"}}});var tdd=function(a){this._items=a};tdd.prototype.hide=function(){this._items.forEach(function(a){return udd(a)});this._currentItem=void 0};
var wdd=function(a,b){var c=a._items.find(function(g){return g.elementRef.nativeElement===b}),d=a._currentItem;if(c!==d&&(d==null||udd(d),c)){var e,f;d=d==null?void 0:(f=(e=d.elementRef.nativeElement).getBoundingClientRect)==null?void 0:f.call(e);vdd(c,d);a._currentItem=c}},QK=function(){this._elementRef=q(Gd);this._fitToContent=!1},vdd=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")},udd=function(a){a._elementRef.nativeElement.classList.remove("mdc-tab-indicator--active")};QK.prototype.ngOnInit=function(){this._createInkBarElement()};
QK.prototype.ngOnDestroy=function(){var a;(a=this._inkBarElement)==null||a.remove();this._inkBarElement=this._inkBarContentElement=null};QK.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()};
QK.prototype._appendInkBarElement=function(){(this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement).appendChild(this._inkBarElement)};da.Object.defineProperties(QK.prototype,{fitInkBarToContent:{configurable:!0,enumerable:!0,get:function(){return this._fitToContent},set:function(a){this._fitToContent!==a&&(this._fitToContent=a,this._inkBarElement&&this._appendInkBarElement())}}});QK.\u0275fac=function(a){return new (a||QK)};
QK.\u0275dir=af({type:QK,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",bh]}});new bd("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(a){return{left:a?(a.offsetLeft||0)+"px":"0",width:a?(a.offsetWidth||0)+"px":"0"}}}});var xdd={passive:!0},RK=function(){var a=this;this._elementRef=q(Gd);this._changeDetectorRef=q(Yx);this._viewportRuler=q(Xh);this._dir=q(ii,{optional:!0});this._ngZone=q(Tg);this._platform=q(bi);this._sharedResizeObserver=q(xB);this._injector=q(xe);this._renderer=q(ji);this._animationsDisabled=ti();this._scrollDistance=0;this._selectedIndexChanged=!1;this._destroyed=new rf;this._showPaginationControls=!1;this._disableScrollBefore=this._disableScrollAfter=!0;this._stopScrolling=new rf;this.disablePagination=
!1;this._selectedIndex=0;this.selectFocusedIndex=new ui;this.indexFocused=new ui;this._eventCleanups=this._ngZone.runOutsideAngular(function(){return[a._renderer.listen(a._elementRef.nativeElement,"mouseleave",function(){return a._stopInterval()})]})};h=RK.prototype;
h.ngAfterViewInit=function(){var a=this;this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",function(){return a._handlePaginatorPress("before")},xdd),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",function(){return a._handlePaginatorPress("after")},xdd))};
h.ngAfterContentInit=function(){var a=this,b=this._dir?this._dir.change:be("ltr"),c=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(kf(32),Af(this._destroyed)),d=this._viewportRuler.change(150).pipe(Af(this._destroyed)),e=function(){a.updatePagination();a._alignInkBarToSelectedTab()};this._keyManager=Lz(Oz(Nz(new Rz(this._items),this._getLayoutDirection()))).skipPredicate(function(){return!1});Pz(this._keyManager,Math.max(this._selectedIndex,0));De(e,{injector:this._injector});
se(b,d,c,this._items.changes,this._itemsResized()).pipe(Af(this._destroyed)).subscribe(function(){a._ngZone.run(function(){Promise.resolve().then(function(){a._scrollDistance=Math.max(0,Math.min(a._getMaxScrollDistance(),a._scrollDistance));e()})});var f;(f=a._keyManager)==null||Nz(f,a._getLayoutDirection())});this._keyManager.change.subscribe(function(f){a.indexFocused.emit(f);a._setTabFocus(f)})};
h._itemsResized=function(){var a=this;return typeof ResizeObserver!=="function"?re:this._items.changes.pipe(yf(this._items),zf(function(b){return new Sd(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()}})})}),xf(1),te(function(b){return b.some(function(c){return c.contentRect.width>0&&c.contentRect.height>0})}))};
h.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())};
h.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()};h._handleKeydown=function(a){if(!Nh(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:(b=this._keyManager)==null||b.onKeydown(a)}};
h._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()}))};h.updatePagination=function(){this._checkPaginationEnabled();this._checkScrollingControls();this._updateTabScrollPosition()};h._isValidIndex=function(a){return this._items?!!this._items.toArray()[a]:!0};
h._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)};h._getLayoutDirection=function(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"};
h._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}};h._scrollHeader=function(a){return this._scrollTo(this._scrollDistance+(a=="before"?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)};
h._handlePaginatorClick=function(a){this._stopInterval();this._scrollHeader(a)};
h._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))}}};
h._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())}};
h._checkScrollingControls=function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())};h._getMaxScrollDistance=function(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0};
h._alignInkBarToSelectedTab=function(){var a=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null;(a=a?a.elementRef.nativeElement:null)?wdd(this._inkBar,a):this._inkBar.hide()};h._stopInterval=function(){this._stopScrolling.next()};
h._handlePaginatorPress=function(a,b){var c=this;b&&b.button!=null&&b.button!==0||(this._stopInterval(),qe(650,100).pipe(Af(se(this._stopScrolling,this._destroyed))).subscribe(function(){var d=c._scrollHeader(a),e=d.maxScrollDistance;d=d.distance;(d===0||d>=e)&&c._stopInterval()}))};
h._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}};
da.Object.defineProperties(RK.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&&Pz(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)}}});RK.\u0275fac=function(a){return new (a||RK)};RK.\u0275dir=af({type:RK,inputs:{disablePagination:[2,"disablePagination","disablePagination",bh],selectedIndex:[2,"selectedIndex","selectedIndex",ch]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}});var ydd=["content"],TK=function(){pA.call(this);this._host=q(SK);this._ngZone=q(Tg);this._leavingSub=this._centeringSub=Od.EMPTY};Z(TK,pA);
TK.prototype.ngOnInit=function(){var a=this;pA.prototype.ngOnInit.call(this);this._centeringSub=this._host._beforeCentering.pipe(yf(this._host._isCenterPosition())).subscribe(function(b){a._host._content&&b&&!a.hasAttached()&&a._ngZone.run(function(){Promise.resolve().then();a.attach(a._host._content)})});this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){a._host.preserveContent||a._ngZone.run(function(){return a.detach()})})};
TK.prototype.ngOnDestroy=function(){pA.prototype.ngOnDestroy.call(this);this._centeringSub.unsubscribe();this._leavingSub.unsubscribe()};TK.\u0275fac=function(a){return new (a||TK)};TK.\u0275dir=af({type:TK,selectors:[["","matTabBodyHost",""]],features:[Ff]});
var SK=function(){var a=this;this._elementRef=q(Gd);this._dir=q(ii,{optional:!0});this._ngZone=q(Tg);this._injector=q(xe);this._renderer=q(ji);this._diAnimationsDisabled=ti();this._dirChangeSubscription=Od.EMPTY;this._onCentering=new ui;this._beforeCentering=new ui;this._afterLeavingCenter=new ui;this._onCentered=new ui(!0);this.animationDuration="500ms";this.preserveContent=!1;if(this._dir){var b=q(Yx);this._dirChangeSubscription=this._dir.change.subscribe(function(c){a._computePositionAnimationState(c);
b.markForCheck()})}};h=SK.prototype;h.ngOnInit=function(){var a=this;this._bindTransitionEvents();this._position==="center"&&(this._setActiveClass(!0),De(function(){return a._onCentering.emit(a._elementRef.nativeElement.clientHeight)},{injector:this._injector}));this._initialized=!0};h.ngOnDestroy=function(){clearTimeout(this._fallbackTimer);var a;(a=this._eventCleanups)==null||a.forEach(function(b){return b()});this._dirChangeSubscription.unsubscribe()};
h._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)]})};h._transitionStarted=function(){clearTimeout(this._fallbackTimer);var a=this._position==="center";this._beforeCentering.emit(a);a&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)};h._transitionDone=function(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()};
h._setActiveClass=function(a){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",a)};h._getLayoutDirection=function(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"};h._isCenterPosition=function(){return this._positionIndex===0};
h._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)}))};h._simulateTransitionEvents=function(){var a=this;this._transitionStarted();De(function(){return a._transitionDone()},{injector:this._injector})};h._animationsDisabled=function(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"};da.Object.defineProperties(SK.prototype,{position:{configurable:!0,enumerable:!0,set:function(a){this._positionIndex=a;this._computePositionAnimationState()}}});SK.\u0275fac=function(a){return new (a||SK)};
SK.\u0275cmp=C({type:SK,selectors:[["mat-tab-body"]],viewQuery:function(a,b){a&1&&(kg(TK,5),kg(ydd,5));if(a&2){var c;og(c=pg())&&(b._portalHost=c.first);og(c=pg())&&(b._contentElement=c.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(a,b){a&2&&Jf("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&&(K(0,"div",1,0),E(2,APa,0,0,"ng-template",2),L());a&2&&yg("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:[TK,Vz],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-tab-body-animating>.mat-mdc-tab-body-content{min-height:1px}.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 zdd=new bd("MAT_TABS_CONFIG");var Add=new bd("MatTabContent"),UK=function(){this.template=q(hg)};UK.\u0275fac=function(a){return new (a||UK)};UK.\u0275dir=af({type:UK,selectors:[["","matTabContent",""]],features:[Ig([{provide:Add,useExisting:UK}])]});var VK=function(){QK.apply(this,arguments);this.elementRef=q(Gd);this.disabled=!1};Z(VK,QK);VK.prototype.focus=function(){this.elementRef.nativeElement.focus()};VK.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(VK)))(b||VK)}}();VK.\u0275dir=af({type:VK,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Jf("aria-disabled",!!b.disabled),yg("mat-mdc-tab-disabled",b.disabled))},inputs:{disabled:[2,"disabled","disabled",bh]},features:[Ff]});var Bdd=["tabListContainer"],Cdd=["tabList"],Ddd=["tabListInner"],Edd=["nextPaginator"],Fdd=["previousPaginator"],WK=function(){RK.apply(this,arguments);this.disableRipple=!1};Z(WK,RK);WK.\u0275dir=RK.\u0275dir;WK.prototype.ngAfterContentInit=function(){this._inkBar=new tdd(this._items);RK.prototype.ngAfterContentInit.call(this)};WK.prototype._itemSelected=function(a){a.preventDefault()};WK.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(WK)))(b||WK)}}();
WK.\u0275cmp=C({type:WK,selectors:[["mat-tab-header"]],contentQueries:function(a,b,c){a&1&&lg(c,VK,4);if(a&2){var d;og(d=pg())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(kg(Bdd,7),kg(Cdd,7),kg(Ddd,7),kg(Edd,5),kg(Fdd,5));if(a&2){var c;og(c=pg())&&(b._tabListContainer=c.first);og(c=pg())&&(b._tabList=c.first);og(c=pg())&&(b._tabListInner=c.first);og(c=pg())&&(b._nextPaginator=c.first);og(c=pg())&&(b._previousPaginator=c.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(a,
b){a&2&&yg("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",bh]},features:[Ff],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=t();fg();K(0,"div",5,0);N("click",function(){u(c);
return v(b._handlePaginatorClick("before"))})("mousedown",function(d){u(c);return v(b._handlePaginatorPress("before",d))})("touchend",function(){u(c);return v(b._stopInterval())});M(2,"div",6);L();K(3,"div",7,1);N("keydown",function(d){u(c);return v(b._handleKeydown(d))});K(5,"div",8,2);N("cdkObserveContent",function(){u(c);return v(b._onContentChanges())});K(7,"div",9,3);gg(9);L()()();K(10,"div",10,4);N("mousedown",function(d){u(c);return v(b._handlePaginatorPress("after",d))})("click",function(){u(c);
return v(b._handlePaginatorClick("after"))})("touchend",function(){u(c);return v(b._stopInterval())});M(12,"div",6);L()}a&2&&(yg("mat-mdc-tab-header-pagination-disabled",b._disableScrollBefore),I("matRippleDisabled",b._disableScrollBefore||b.disableRipple),B(3),yg("_mat-animation-noopable",b._animationsDisabled),B(2),Jf("aria-label",b.ariaLabel||null)("aria-labelledby",b.ariaLabelledby||null),B(5),yg("mat-mdc-tab-header-pagination-disabled",b._disableScrollAfter),I("matRippleDisabled",b._disableScrollAfter||
b.disableRipple))},dependencies:[EA,Az],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-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-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-divider-height, 1px);border-bottom-color:var(--mat-tab-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-divider-height, 1px);border-top-color:var(--mat-tab-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(--mat-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 Gdd=new bd("MatTabLabel"),Hdd=new bd("MAT_TAB"),XK=function(){oA.apply(this,arguments);this._closestTab=q(Hdd,{optional:!0})};Z(XK,oA);XK.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(XK)))(b||XK)}}();XK.\u0275dir=af({type:XK,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Ig([{provide:Gdd,useExisting:XK}]),Ff]});var Idd=new bd("MAT_TAB_GROUP"),YK=function(){this._viewContainerRef=q(ig);this._closestTabGroup=q(Idd,{optional:!0});this.disabled=!1;this._explicitContent=void 0;this.textLabel="";this._contentPortal=this.id=null;this._stateChanges=new rf;this.origin=this.position=null;this.isActive=!1;q(fi).load(BA)};YK.prototype.ngOnChanges=function(a){(a.hasOwnProperty("textLabel")||a.hasOwnProperty("disabled"))&&this._stateChanges.next()};YK.prototype.ngOnDestroy=function(){this._stateChanges.complete()};
YK.prototype.ngOnInit=function(){this._contentPortal=new mA(this._explicitContent||this._implicitContent,this._viewContainerRef)};YK.prototype._setTemplateLabelInput=function(a){a&&a._closestTab===this&&(this._templateLabel=a)};da.Object.defineProperties(YK.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}}});
YK.\u0275fac=function(a){return new (a||YK)};
YK.\u0275cmp=C({type:YK,selectors:[["mat-tab"]],contentQueries:function(a,b,c){a&1&&(lg(c,XK,5),lg(c,UK,7,hg));if(a&2){var d;og(d=pg())&&(b.templateLabel=d.first);og(d=pg())&&(b._explicitContent=d.first)}},viewQuery:function(a,b){a&1&&kg(hg,7);if(a&2){var c;og(c=pg())&&(b._implicitContent=c.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(a){a&2&&Jf("id",null)},inputs:{disabled:[2,"disabled","disabled",bh],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,
"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Ig([{provide:Hdd,useExisting:YK}]),Gx],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(fg(),Hf(0,BPa,1,0,"ng-template"))},encapsulation:2});var Jdd=["tabBodyWrapper"],Kdd=["tabHeader"],ZK=function(){this._elementRef=q(Gd);this._changeDetectorRef=q(Yx);this._ngZone=q(Tg);this._tabBodySubscription=this._tabLabelSubscription=this._tabsSubscription=Od.EMPTY;this._diAnimationsDisabled=ti();this._tabs=new jg;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 ui;this.focusChange=new ui;this.animationDone=new ui;this.selectedTabChange=new ui(!0);this._isServer=!q(bi).isBrowser;var a=q(zdd,{optional:!0});this._groupId=q(hi).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};h=ZK.prototype;
h.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())};
h.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()})};
h.ngAfterViewInit=function(){var a=this;this._tabBodySubscription=this._tabBodies.changes.subscribe(function(){return a._bodyCentered(!0)})};h._subscribeToAllTabChanges=function(){var a=this;this._allTabs.changes.pipe(yf(this._allTabs)).subscribe(function(b){a._tabs.reset(b.filter(function(c){return c._closestTabGroup===a||!c._closestTabGroup}));ng(a._tabs)})};h.ngOnDestroy=function(){this._tabs.destroy();this._tabsSubscription.unsubscribe();this._tabLabelSubscription.unsubscribe();this._tabBodySubscription.unsubscribe()};
h.updatePagination=function(){this._tabHeader&&this._tabHeader.updatePagination()};h._focusChanged=function(a){this._lastFocusedTabIndex=a;this.focusChange.emit(this._createChangeEvent(a))};h._createChangeEvent=function(a){var b=new Ldd;b.index=a;this._tabs&&this._tabs.length&&(b.tab=this._tabs.toArray()[a]);return b};h._subscribeToTabLabels=function(){var a=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe();this._tabLabelSubscription=se.apply(null,n(this._tabs.map(function(b){return b._stateChanges}))).subscribe(function(){return a._changeDetectorRef.markForCheck()})};
h._clampTabIndex=function(a){return Math.min(this._tabs.length-1,Math.max(a||0,0))};h._getTabLabelId=function(a,b){return a.id||this._groupId+"-label-"+b};h._getTabContentId=function(a){return this._groupId+"-content-"+a};
h._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};h._removeTabBodyWrapperHeight=function(){var a=this,b=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=b.clientHeight;b.style.height="";this._ngZone.run(function(){return a.animationDone.emit()})};
h._handleClick=function(a,b,c){b.focusIndex=c;a.disabled||(this.selectedIndex=c)};h._getTabIndex=function(a){var b,c=(b=this._lastFocusedTabIndex)!=null?b:this.selectedIndex;return a===c?0:-1};h._tabFocusChanged=function(a,b){a&&a!=="mouse"&&a!=="touch"&&(this._tabHeader.focusIndex=b)};h._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)})}};
h._animationsDisabled=function(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"};
da.Object.defineProperties(ZK.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}}});
ZK.\u0275fac=function(a){return new (a||ZK)};
ZK.\u0275cmp=C({type:ZK,selectors:[["mat-tab-group"]],contentQueries:function(a,b,c){a&1&&lg(c,YK,5);if(a&2){var d;og(d=pg())&&(b._allTabs=d)}},viewQuery:function(a,b){a&1&&(kg(Jdd,5),kg(Kdd,5),kg(SK,5));if(a&2){var c;og(c=pg())&&(b._tabBodyWrapper=c.first);og(c=pg())&&(b._tabHeader=c.first);og(c=pg())&&(b._tabBodies=c)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(a,b){a&2&&(Jf("mat-align-tabs",b.alignTabs),zg("mat-"+(b.color||"primary")),xg("--mat-tab-animation-duration",
b.animationDuration),yg("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",bh],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",bh],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",bh],selectedIndex:[2,"selectedIndex","selectedIndex",ch],headerPosition:"headerPosition",
animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ch],disablePagination:[2,"disablePagination","disablePagination",bh],disableRipple:[2,"disableRipple","disableRipple",bh],preserveContent:[2,"preserveContent","preserveContent",bh],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",
selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Ig([{provide:Idd,useExisting:ZK}])],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=t();fg();K(0,"mat-tab-header",3,0);N("indexFocused",function(d){u(c);return v(b._focusChanged(d))})("selectFocusedIndex",function(d){u(c);return v(b.selectedIndex=d)});Pf(2,FPa,8,17,"div",4,Of);L();F(4,GPa,1,0);K(5,"div",5,1);Pf(7,HPa,1,10,"mat-tab-body",6,Of);L()}a&2&&(I("selectedIndex",b.selectedIndex||0)("disableRipple",b.disableRipple)("disablePagination",b.disablePagination),
If("aria-label",b.ariaLabel)("aria-labelledby",b.ariaLabelledby),B(2),Qf(b._tabs),B(2),G(b._isServer?4:-1),B(),yg("_mat-animation-noopable",b._animationsDisabled()),B(2),Qf(b._tabs))},dependencies:[WK,VK,oz,EA,pA,SK],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;touch-action:manipulation}.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(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-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(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-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-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-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-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-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-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-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.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-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-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-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-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-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-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-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-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-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-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-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 Ldd=function(){};var Mdd=["tabListContainer"],Ndd=["tabList"],Odd=["tabListInner"],Pdd=["nextPaginator"],Qdd=["previousPaginator"],Rdd=["*"],$K=function(){var a=q(zdd,{optional:!0});RK.call(this);this._focusedItem=qg.apply(null,[null].concat(n([])));this._fitInkBarToContent=new Xj(!1);this.stretchTabs=!0;this._disableRipple=qg.apply(null,[!1].concat(n([])));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};Z($K,RK);$K.\u0275dir=RK.\u0275dir;$K.prototype._itemSelected=function(){};
$K.prototype.ngAfterContentInit=function(){var a=this;this._inkBar=new tdd(this._items);this._items.changes.pipe(yf(null),Af(this._destroyed)).subscribe(function(){return Sdd(a)});RK.prototype.ngAfterContentInit.call(this);this._keyManager.change.pipe(yf(null),Af(this._destroyed)).subscribe(function(){var b;return a._focusedItem.set(((b=a._keyManager)==null?void 0:b.activeItem)||null)})};$K.prototype.ngAfterViewInit=function(){RK.prototype.ngAfterViewInit.call(this)};
var Sdd=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.tabPanel&&(a.tabPanel._activeTabId=b[c].id);a._focusedItem.set(b[c]);a._changeDetectorRef.markForCheck();return}a.selectedIndex=-1}};$K.prototype._getRole=function(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")};$K.prototype._hasFocus=function(a){var b;return((b=this._keyManager)==null?void 0:b.activeItem)===a};
da.Object.defineProperties($K.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}},disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple()},set:function(a){this._disableRipple.set(a)}}});$K.\u0275fac=function(a){return new (a||$K)};
$K.\u0275cmp=C({type:$K,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(a,b,c){a&1&&lg(c,aL,5);if(a&2){var d;og(d=pg())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(kg(Mdd,7),kg(Ndd,7),kg(Odd,7),kg(Pdd,5),kg(Qdd,5));if(a&2){var c;og(c=pg())&&(b._tabListContainer=c.first);og(c=pg())&&(b._tabList=c.first);og(c=pg())&&(b._tabListInner=c.first);og(c=pg())&&(b._nextPaginator=c.first);og(c=pg())&&(b._previousPaginator=c.first)}},hostAttrs:[1,"mat-mdc-tab-nav-bar","mat-mdc-tab-header"],hostVars:17,
hostBindings:function(a,b){a&2&&(Jf("role",b._getRole()),xg("--mat-tab-animation-duration",b.animationDuration),yg("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",bh],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",bh],animationDuration:"animationDuration",backgroundColor:"backgroundColor",disableRipple:[2,"disableRipple","disableRipple",bh],color:"color",tabPanel:"tabPanel"},exportAs:["matTabNavBar","matTabNav"],features:[Ff],attrs:["mat-tab-nav-bar",""],ngContentSelectors:Rdd,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=t();fg();K(0,"div",5,0);N("click",function(){u(c);return v(b._handlePaginatorClick("before"))})("mousedown",
function(d){u(c);return v(b._handlePaginatorPress("before",d))})("touchend",function(){u(c);return v(b._stopInterval())});M(2,"div",6);L();K(3,"div",7,1);N("keydown",function(d){u(c);return v(b._handleKeydown(d))});K(5,"div",8,2);N("cdkObserveContent",function(){u(c);return v(b._onContentChanges())});K(7,"div",9,3);gg(9);L()()();K(10,"div",10,4);N("mousedown",function(d){u(c);return v(b._handlePaginatorPress("after",d))})("click",function(){u(c);return v(b._handlePaginatorClick("after"))})("touchend",
function(){u(c);return v(b._stopInterval())});M(12,"div",6);L()}a&2&&(yg("mat-mdc-tab-header-pagination-disabled",b._disableScrollBefore),I("matRippleDisabled",b._disableScrollBefore||b.disableRipple),B(10),yg("mat-mdc-tab-header-pagination-disabled",b._disableScrollAfter),I("matRippleDisabled",b._disableScrollAfter||b.disableRipple))},dependencies:[EA,Az],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;touch-action:manipulation}.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-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-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(--mat-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-divider-height, 1px);border-bottom-color:var(--mat-tab-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-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-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-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-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-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-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-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-foreground-color)}\n"],
encapsulation:2});
var aL=function(){QK.call(this);var a=this;this._tabNavBar=q($K);this.elementRef=q(Gd);this._focusMonitor=q(mz);this._destroyed=new rf;this._isActive=!1;this._tabIndex=ah.apply(null,[function(){return a._tabNavBar._focusedItem()===a?a.tabIndex:-1}].concat(n([])));this.disabled=!1;this._disableRipple=qg.apply(null,[!1].concat(n([])));this.tabIndex=0;this.id=q(hi).getId("mat-tab-link-");q(fi).load(BA);var b=q(DA,{optional:!0}),c=q(new Hx("tabindex"),{optional:!0});this.rippleConfig=b||{};this.tabIndex=
c==null?0:parseInt(c)||0;ti()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0});this._tabNavBar._fitInkBarToContent.pipe(Af(this._destroyed)).subscribe(function(d){a.fitInkBarToContent=d})};Z(aL,QK);aL.\u0275dir=QK.\u0275dir;h=aL.prototype;h.focus=function(){this.elementRef.nativeElement.focus()};h.ngAfterViewInit=function(){this._focusMonitor.monitor(this.elementRef)};h.ngOnDestroy=function(){this._destroyed.next();this._destroyed.complete();QK.prototype.ngOnDestroy.call(this);this._focusMonitor.stopMonitoring(this.elementRef)};
h._handleFocus=function(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)};h._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())};h._getAriaControls=function(){var a;return this._tabNavBar.tabPanel?(a=this._tabNavBar.tabPanel)==null?void 0:a.id:this.elementRef.nativeElement.getAttribute("aria-controls")};
h._getAriaSelected=function(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")};h._getAriaCurrent=function(){return this.active&&!this._tabNavBar.tabPanel?"page":null};h._getRole=function(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")};
da.Object.defineProperties(aL.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this._isActive},set:function(a){a!==this._isActive&&(this._isActive=a,Sdd(this._tabNavBar))}},disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple()},set:function(a){this._disableRipple.set(a)}},rippleDisabled:{configurable:!0,enumerable:!0,get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}}});
aL.\u0275fac=function(a){return new (a||aL)};
aL.\u0275cmp=C({type:aL,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(a,b){a&1&&N("focus",function(){return b._handleFocus()})("keydown",function(c){return b._handleKeydown(c)});a&2&&(Jf("aria-controls",b._getAriaControls())("aria-current",b._getAriaCurrent())("aria-disabled",b.disabled)("aria-selected",b._getAriaSelected())("id",b.id)("tabIndex",b._tabIndex())("role",b._getRole()),yg("mat-mdc-tab-disabled",
b.disabled)("mdc-tab--active",b.active))},inputs:{active:[2,"active","active",bh],disabled:[2,"disabled","disabled",bh],disableRipple:[2,"disableRipple","disableRipple",bh],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ch(a)}],id:"id"},exportAs:["matTabLink"],features:[Ff],attrs:["mat-tab-link",""],ngContentSelectors:Rdd,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&&(fg(),M(0,"span",0)(1,"div",1),K(2,"span",2)(3,"span",3),gg(4),L()());a&2&&(B(),I("matRippleTrigger",b.elementRef.nativeElement)("matRippleDisabled",b.rippleDisabled))},dependencies:[EA],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(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-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(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-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-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-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-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-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-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-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-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.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-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-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-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 Tdd=function(){this.id=q(hi).getId("mat-tab-nav-panel-")};Tdd.\u0275fac=function(a){return new (a||Tdd)};Tdd.\u0275cmp=C({type:Tdd,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(a,b){a&2&&Jf("aria-labelledby",b._activeTabId)("id",b.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:Rdd,decls:1,vars:0,template:function(a){a&1&&(fg(),gg(0))},encapsulation:2,changeDetection:0});var Udd=function(){};Udd.\u0275fac=function(a){return new (a||Udd)};Udd.\u0275mod=$e({type:Udd});Udd.\u0275inj=Dc({imports:[jz]});var bL=function(a,b,c){this.options=a;this.changeDetectorRef=b;this.tabGroup=c;this.appearance=this.options.appearance};da.Object.defineProperties(bL.prototype,{appearance:{configurable:!0,enumerable:!0,get:function(){return this.cachedAppearance},set:function(a){this.cachedAppearance!==a&&(this.cachedAppearance=a,this.tabGroup.fitInkBarToContent=a==="primary",this.changeDetectorRef.markForCheck())}}});bL.\u0275fac=function(a){return new (a||bL)(Ve(sdd),Ve(Yx),Ve(ZK))};
bL.\u0275dir=af({type:bL,selectors:[["mat-tab-group"]],hostVars:4,hostBindings:function(a,b){a&2&&yg("gmat-mdc-tabs-primary",b.appearance==="primary")("gmat-mdc-tabs-secondary",b.appearance==="secondary")},inputs:{appearance:"appearance"},standalone:!1});var Vdd=function(a,b,c){this.options=a;this.changeDetectorRef=b;this.tabNav=c;if(this.options.disableGmatStyle)throw Error("eb");this.appearance=this.options.appearance};
da.Object.defineProperties(Vdd.prototype,{appearance:{configurable:!0,enumerable:!0,get:function(){return this.cachedAppearance},set:function(a){this.cachedAppearance!==a&&(this.cachedAppearance=a,this.tabNav.fitInkBarToContent=a==="primary",this.changeDetectorRef.markForCheck())}}});Vdd.\u0275fac=function(a){return new (a||Vdd)(Ve(sdd),Ve(Yx),Ve($K))};
Vdd.\u0275dir=af({type:Vdd,selectors:[["","mat-tab-nav-bar",""]],hostVars:4,hostBindings:function(a,b){a&2&&yg("gmat-mdc-tabs-primary",b.appearance==="primary")("gmat-mdc-tabs-secondary",b.appearance==="secondary")},inputs:{appearance:"appearance"},standalone:!1});var cL=function(){};cL.\u0275fac=function(a){return new (a||cL)};cL.\u0275mod=$e({type:cL});cL.\u0275inj=Dc({imports:[Udd]});var Wdd=new bd("CdkAccordion"),dL=function(){this._stateChanges=new rf;this._openCloseAllActions=new rf;this.id=q(hi).getId("cdk-accordion-");this.multi=!1};dL.prototype.closeAll=function(){this._openCloseAllActions.next(!1)};dL.prototype.ngOnChanges=function(a){this._stateChanges.next(a)};dL.prototype.ngOnDestroy=function(){this._stateChanges.complete();this._openCloseAllActions.complete()};dL.\u0275fac=function(a){return new (a||dL)};
dL.\u0275dir=af({type:dL,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",bh]},exportAs:["cdkAccordion"],features:[Ig([{provide:Wdd,useExisting:dL}]),Gx]});var eL=function(){this.accordion=q(Wdd,{optional:!0,skipSelf:!0});this._changeDetectorRef=q(Yx);this._expansionDispatcher=q(Xz);this._openCloseAllSubscription=Od.EMPTY;this.closed=new ui;this.opened=new ui;this.destroyed=new ui;this.expandedChange=new ui;this.id=q(hi).getId("cdk-accordion-child-");this._expanded=!1;this._disabled=qg.apply(null,[!1].concat(n([])));this._removeUniqueSelectionListener=function(){}};h=eL.prototype;
h.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())};h.ngOnDestroy=function(){this.opened.complete();this.closed.complete();this.destroyed.emit();this.destroyed.complete();this._removeUniqueSelectionListener();this._openCloseAllSubscription.unsubscribe()};
h.toggle=function(){this.disabled||(this.expanded=!this.expanded)};h.close=function(){this.disabled||(this.expanded=!1)};h.open=function(){this.disabled||(this.expanded=!0)};h._subscribeToOpenCloseAllActions=function(){var a=this;return this.accordion._openCloseAllActions.subscribe(function(b){a.disabled||(a.expanded=b)})};
da.Object.defineProperties(eL.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())}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled()},set:function(a){this._disabled.set(a)}}});
eL.\u0275fac=function(a){return new (a||eL)};eL.\u0275dir=af({type:eL,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",bh],disabled:[2,"disabled","disabled",bh]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Ig([{provide:Wdd,useValue:void 0}])]});var Xdd=function(){};Xdd.\u0275fac=function(a){return new (a||Xdd)};Xdd.\u0275mod=$e({type:Xdd});Xdd.\u0275inj=Dc({});var Ydd=new bd("MAT_ACCORDION");var Zdd=new bd("MAT_EXPANSION_PANEL");var $dd=function(){this._template=q(hg);this._expansionPanel=q(Zdd,{optional:!0})};$dd.\u0275fac=function(a){return new (a||$dd)};$dd.\u0275dir=af({type:$dd,selectors:[["ng-template","matExpansionPanelContent",""]]});var aed=["body"],bed=["bodyWrapper"],ced=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],ded=new bd("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),fL=function(){eL.call(this);var a=this;this._viewContainerRef=q(ig);this._animationsDisabled=ti();this._document=q(Yh);this._ngZone=q(Tg);this._elementRef=q(Gd);this._renderer=q(ji);this._hideToggle=!1;this.afterExpand=new ui;this.afterCollapse=new ui;this._inputChanges=new rf;this.accordion=q(Ydd,{optional:!0,skipSelf:!0});this._headerId=q(hi).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=q(ded,{optional:!0});this._expansionDispatcher=q(Xz);b&&(this.hideToggle=b.hideToggle)};Z(fL,eL);fL.\u0275dir=eL.\u0275dir;h=fL.prototype;h._hasSpacing=function(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1};
h._getExpandedState=function(){return this.expanded?"expanded":"collapsed"};h.toggle=function(){this.expanded=!this.expanded};h.close=function(){this.expanded=!1};h.open=function(){this.expanded=!0};h.ngAfterContentInit=function(){var a=this;this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(yf(null),te(function(){return a.expanded&&!a._portal}),mf(1)).subscribe(function(){a._portal=new mA(a._lazyContent._template,a._viewContainerRef)});this._setupAnimationEvents()};
h.ngOnChanges=function(a){this._inputChanges.next(a)};h.ngOnDestroy=function(){eL.prototype.ngOnDestroy.call(this);var a;(a=this._cleanupTransitionEnd)==null||a.call(this);this._inputChanges.complete()};h._containsFocus=function(){if(this._body){var a=this._document.activeElement,b=this._body.nativeElement;return a===b||b.contains(a)}return!1};
h._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)})};da.Object.defineProperties(fL.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}}});fL.\u0275fac=function(a){return new (a||fL)};
fL.\u0275cmp=C({type:fL,selectors:[["mat-expansion-panel"]],contentQueries:function(a,b,c){a&1&&lg(c,$dd,5);if(a&2){var d;og(d=pg())&&(b._lazyContent=d.first)}},viewQuery:function(a,b){a&1&&(kg(aed,5),kg(bed,5));if(a&2){var c;og(c=pg())&&(b._body=c.first);og(c=pg())&&(b._bodyWrapper=c.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(a,b){a&2&&yg("mat-expanded",b.expanded)("mat-expansion-panel-spacing",b._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",bh],
togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Ig([{provide:Ydd,useValue:void 0},{provide:Zdd,useExisting:fL}]),Ff,Gx],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&&(fg(ced),gg(0),K(1,"div",2,0)(3,"div",3,1)(5,"div",4),gg(6,1),E(7,IPa,0,0,"ng-template",5),L(),gg(8,2),L()());a&2&&(B(),Jf("inert",b.expanded?null:""),B(2),I("id",b.id),Jf("aria-labelledby",b._headerId),B(4),I("cdkPortalOutlet",b._portal))},dependencies:[pA],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:var(--mat-expansion-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-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 eed=function(){};eed.\u0275fac=function(a){return new (a||eed)};eed.\u0275dir=af({type:eed,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]});var fed=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],gL=function(){var a=this;this.panel=q(fL,{host:!0});this._element=q(Gd);this._focusMonitor=q(mz);this._changeDetectorRef=q(Yx);this._parentChangeSubscription=Od.EMPTY;this.tabIndex=0;q(fi).load(BA);var b=this.panel,c=q(ded,{optional:!0}),d=q(new Hx("tabindex"),{optional:!0}),e=b.accordion?b.accordion._stateChanges.pipe(te(function(f){return!(!f.hideToggle&&!f.togglePosition)})):re;this.tabIndex=parseInt(d||"")||0;this._parentChangeSubscription=
se(b.opened,b.closed,e,b._inputChanges.pipe(te(function(f){return!!(f.hideToggle||f.disabled||f.togglePosition)}))).subscribe(function(){return a._changeDetectorRef.markForCheck()});b.closed.pipe(te(function(){return b._containsFocus()})).subscribe(function(){return nz(a._focusMonitor,a._element,"program")});c&&(this.expandedHeight=c.expandedHeight,this.collapsedHeight=c.collapsedHeight)};h=gL.prototype;h._toggle=function(){this.disabled||this.panel.toggle()};h._isExpanded=function(){return this.panel.expanded};
h._getExpandedState=function(){return this.panel._getExpandedState()};h._getPanelId=function(){return this.panel.id};h._getTogglePosition=function(){return this.panel.togglePosition};h._showToggle=function(){return!this.panel.hideToggle&&!this.panel.disabled};h._getHeaderHeight=function(){var a=this.panel.expanded;return a&&this.expandedHeight?this.expandedHeight:!a&&this.collapsedHeight?this.collapsedHeight:null};
h._keydown=function(a){switch(a.keyCode){case 32:case 13:Nh(a)||(a.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(a)}};h.focus=function(a,b){a?nz(this._focusMonitor,this._element,a,b):this._element.nativeElement.focus(b)};h.ngAfterViewInit=function(){var a=this;this._focusMonitor.monitor(this._element).subscribe(function(b){b&&a.panel.accordion&&a.panel.accordion._handleHeaderFocus(a)})};
h.ngOnDestroy=function(){this._parentChangeSubscription.unsubscribe();this._focusMonitor.stopMonitoring(this._element)};da.Object.defineProperties(gL.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this.panel.disabled}}});gL.\u0275fac=function(a){return new (a||gL)};
gL.\u0275cmp=C({type:gL,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(a,b){a&1&&N("click",function(){return b._toggle()})("keydown",function(c){return b._keydown(c)});a&2&&(Jf("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),xg("height",b._getHeaderHeight()),yg("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:ch(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&&(fg(fed),Sf(0,"span",0),gg(1),gg(2,1),gg(3,2),Tf(),F(4,JPa,3,0,"span",1));a&2&&(yg("mat-content-hide-toggle",!b._showToggle()),B(4),G(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:"";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 ged=function(){};ged.\u0275fac=function(a){return new (a||ged)};ged.\u0275dir=af({type:ged,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]});var hL=function(){};hL.\u0275fac=function(a){return new (a||hL)};hL.\u0275dir=af({type:hL,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});var iL=function(){dL.apply(this,arguments);this._ownHeaders=new jg;this.hideToggle=!1;this.displayMode="default";this.togglePosition="after"};Z(iL,dL);iL.prototype.ngAfterContentInit=function(){var a=this;this._headers.changes.pipe(yf(this._headers)).subscribe(function(b){a._ownHeaders.reset(b.filter(function(c){return c.panel.accordion===a}));ng(a._ownHeaders)});this._keyManager=Oz(Lz(new Rz(this._ownHeaders)))};iL.prototype._handleHeaderKeydown=function(a){this._keyManager.onKeydown(a)};
iL.prototype._handleHeaderFocus=function(a){Pz(this._keyManager,a)};iL.prototype.ngOnDestroy=function(){dL.prototype.ngOnDestroy.call(this);var a;(a=this._keyManager)==null||a.destroy();this._ownHeaders.destroy()};iL.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(iL)))(b||iL)}}();
iL.\u0275dir=af({type:iL,selectors:[["mat-accordion"]],contentQueries:function(a,b,c){a&1&&lg(c,gL,5);if(a&2){var d;og(d=pg())&&(b._headers=d)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(a,b){a&2&&yg("mat-accordion-multi",b.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",bh],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[Ig([{provide:Ydd,useExisting:iL}]),Ff]});var jL=function(){};jL.\u0275fac=function(a){return new (a||jL)};jL.\u0275mod=$e({type:jL});jL.\u0275inj=Dc({imports:[Xdd,qA,jz]});var hed=function(){},tQa=function(a){switch(a){case 0:return"EXECUTION_STATUS_UNKNOWN";case 1:return"SUCCESS";case 2:return"NO_APPROPRIATE_TOOL";case 3:return"PLANNING_ERROR";case 4:return"CODE_EXECUTION_ERROR";case 5:return"TOOL_EXECUTION_ERROR";case 6:return"AGENT_NOT_FOUND";default:return sb(a,"unexpected planner status!")}};hed.\u0275fac=function(a){return new (a||hed)};
hed.\u0275cmp=C({type:hed,selectors:[["message-metadata"]],inputs:{messageData:"messageData"},decls:1,vars:1,consts:[["class","gmat-subhead-3 metadata-content",4,"ngIf"],[1,"gmat-subhead-3","metadata-content"],["mat-stretch-tabs","false","color","primary",3,"selectedIndex"],["label","model_id"],["label","lm_prefix"],["label","factuality_metadata"],[4,"ngFor","ngForOf"],["label","scores"],["label","model_override_options"],["label","citation resources",4,"ngIf"],["label","execution_metadata"],[4,"ngIf"],
["label","citation resources"],[1,"type-xs"],[1,"metadata-heading"],[1,"planner-content"],[1,"planner-code"]],template:function(a,b){a&1&&E(0,zQa,25,8,"div",0);a&2&&I("ngIf",b.messageData.responseMetadata)},dependencies:[xy,iy,jy,mC,PK,cL,bL,YK,ZK,jL,fL,gL,hL],styles:[".metadata-content[_ngcontent-%COMP%]{border:dashed red;font-size:14px;padding:16px;white-space:pre-line}.metadata-content[_ngcontent-%COMP%]   .metadata-heading[_ngcontent-%COMP%]{font-weight:700;margin:.5em 0}.metadata-content[_ngcontent-%COMP%]   .planner-code[_ngcontent-%COMP%], .metadata-content[_ngcontent-%COMP%]   .planner-content[_ngcontent-%COMP%]{margin-left:2em;font-size:.9em;font-family:monospace}"],
changeDetection:0});var ied={NO_ERROR:1,NO_REWRITE_NO_REASON:2,SOURCE_URL_NO_REWRITE:3,NO_REASONS:4,SOURCE_URL_INVALID:5,1:"NO_ERROR",2:"NO_REWRITE_NO_REASON",3:"SOURCE_URL_NO_REWRITE",4:"NO_REASONS",5:"SOURCE_URL_INVALID"};var jed=new bd("SourceUrlsFormTemplate"),kL=function(){this.showWarning=Qg.apply(null,[!1].concat(n([])));this.invalidFeedbackFormEnum=ied;this.error=1;this.rewriteSourcesList=[""]},CQa=function(a){return(a==null?void 0:a.length)>0},DQa=function(a,b){b=b.length<5?!0:VJc.test(b)||WJc.test(b);a.error=b?1:5;return b};kL.\u0275fac=function(a){return new (a||kL)};
kL.\u0275cmp=C({type:kL,selectors:[["source-urls-form"]],inputs:{showWarning:[1,"showWarning"]},decls:13,vars:2,consts:function(){return[" Enter a valid website url or go link (https://example.com) ",[1,"header-with-tooltip"],[1,"gmat-subhead-1"],["mat-icon-button","","matTooltip","URLs to pages with the correct answer.\n      Provide URLs to specific sections if citing from g3docs.","aria-label","Please provide URLs to pages with the correct answer.",1,"small"],[1,"help-icon","icon-s"],[1,"font-google-sans-text",
"type-xs","padded-s-bottom"],[1,"rewrite-source"],["color","primary","mat-button","",3,"click","disabled"],[1,"rewrite-source-input-row"],["appearance","outline","color","primary",1,"rewrite-source-input"],["matInput","","type","url",3,"ngModelChange","name","ngModel"],["mat-icon-button","","aria-label","Remove this source",1,"remove-source-input-button",3,"click","disabled"],[1,"invalid-rewrite-source-input"]]},template:function(a,b){a&1&&(K(0,"div",1)(1,"p",2),S(2,"Additional knowledge sources"),
L(),K(3,"button",3)(4,"mat-icon",4),S(5,"help"),L()()(),F(6,AQa,2,0,"div",5),Pf(7,EQa,10,5,"div",6,Nf),K(9,"button",7),N("click",function(){b.rewriteSourcesList.push("")}),K(10,"mat-icon"),S(11,"add"),L(),S(12,"Add\n"),L());a&2&&(B(6),G(b.showWarning()?6:-1),B(),Qf(b.rewriteSourcesList),B(2),I("disabled",!CQa(b.rewriteSourcesList[b.rewriteSourcesList.length-1])))},dependencies:[xy,mC,xi,PB,WB,ZA,XA,TA,VA,JK,DB,qB,BB,tB,rB,qC,EB,oC,iK,hK,MA,kz,iz,IB],styles:["[_nghost-%COMP%]:not(:empty){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;gap:8px;margin:8px 0;position:relative}[_nghost-%COMP%]:not(:empty)   mat-form-field[_ngcontent-%COMP%]{margin-bottom:4px}[_nghost-%COMP%]:not(:empty)   button[_ngcontent-%COMP%]{-webkit-align-self:baseline;-ms-flex-item-align:baseline;align-self:baseline}[_nghost-%COMP%]     mat-form-field .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint-wrapper{padding:0}.heading[_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}.feedback-form-submit[_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;gap:16px;-webkit-box-pack:end;-webkit-justify-content:end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:end}.header-with-tooltip[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;gap:4px}.help-button[_ngcontent-%COMP%]{text-align:center;text-decoration:none}.help-icon[_ngcontent-%COMP%]{color:var(--text-secondary)}.invalid-form-error[_ngcontent-%COMP%]{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;font-size:14px;margin-right:auto}.invalid-rewrite-source-input[_ngcontent-%COMP%]{font-size:14px}.rewrite-source[_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}.rewrite-source-input[_ngcontent-%COMP%]{max-height:50px;width:100%}.rewrite-source-input-header[_ngcontent-%COMP%]{color:var(--text-secondary);font-family:Google Sans,Roboto;font-size:14px;margin-bottom:8px}.rewrite-source-input-row[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex}"],
changeDetection:0});var ked=["customSourceUrlsForm"],led=["defaultSourceUrlsForm"],lL=function(){this.showWarning=Qg.apply(null,[!1].concat(n([])));this.sourceUrlsFormTemplate=q(jed,{optional:!0});this.customSourceUrlsForm=Rg("customSourceUrlsForm",Object.assign({},{},{read:ig}));this.defaultSourceUrlsForm=Rg("defaultSourceUrlsForm",Object.assign({},{},{read:kL}))};
lL.prototype.ngAfterViewInit=function(){this.sourceUrlsFormTemplate&&this.customSourceUrlsForm()&&(this.componentRef=this.customSourceUrlsForm().createComponent(this.sourceUrlsFormTemplate),this.componentRef.instance.showWarning=this.showWarning)};lL.prototype.getError=function(){if(this.componentRef)return this.componentRef.instance.error;var a,b;return(b=(a=this.defaultSourceUrlsForm())==null?void 0:a.error)!=null?b:1};lL.\u0275fac=function(a){return new (a||lL)};
lL.\u0275cmp=C({type:lL,selectors:[["source-urls-form-wrapper"]],viewQuery:function(a,b){a&1&&(rg(b.customSourceUrlsForm,ked,ig),rg(b.defaultSourceUrlsForm,led,kL));a&2&&sg(2)},inputs:{showWarning:[1,"showWarning"]},decls:2,vars:1,consts:[["customSourceUrlsForm",""],["defaultSourceUrlsForm",""],[3,"showWarning"]],template:function(a,b){a&1&&F(0,FQa,2,0,"ng-container")(1,GQa,2,1,"source-urls-form",2);a&2&&G(b.sourceUrlsFormTemplate?0:1)},dependencies:[xy,kL],encapsulation:2,changeDetection:0});var med=["sourceUrlsFormWrapper"],ned=["feedbackHeader"],HQa=new Map([["incorrect_info","Factual errors"],["incorrect_url","Broken/incorrect links"],["repetitive","Repetitive"],["irrelevant","Irrelevant information"],["hallucinated_api","Hallucinated libraries / APIs etc"],["incomplete_answer","Incomplete answer"],["followup_not_understood","Didn't understand followup"],["not_protected_content","Not protected"],["poor_use_of_tools","Poor use of tools"]]),oed=new Map([["incorrect","incorrect_info"],
["incorrect_url","incorrect_url"],["repetitive","repetitive"],["irrelevant","irrelevant"],["hallucinated_api","hallucinated_api"],["incomplete_answer","incomplete_answer"],["followup_not_understood","followup_not_understood"],["not_protected_content","not_protected_content"],["poor_use_of_tools","poor_use_of_tools"]]),ped=new bd("FeedbackReasonsFormTemplate"),mL=function(a,b){this.userStateService=a;this.conversationAgentsService=b;this.experimentsService=q(PA);this.sessionDeletionEnabled=this.experimentsService.duckieSessionDeletionEnabled;
this.sourceUrlsFormWrapper=Rg.apply(null,["sourceUrlsFormWrapper"].concat(n([])));this.feedbackHeader=Rg.apply(null,["feedbackHeader"].concat(n([])));this.messageData=Qg.required.apply(Qg,n([]));this.hasPrivateContent=Qg.required.apply(Qg,n([]));this.close=Pg();this.submit=Pg();this.invalidFeedbackFormEnum=ied;this.rewrittenResponse=this.otherReason="";this.isIncognitoMode$=this.userStateService.isEnforcedPrivateMode$;this.reasonChips="hallucinated_api incomplete_answer followup_not_understood incorrect_info incorrect_url irrelevant repetitive".split(" ");
this.error=1;this.selectedReasons=[];this.rewriteSourcesList=[""];this.ve={DuckieChatNegativeFeedbackCancelButton:201123}};
mL.prototype.ngOnInit=function(){var a,b=(a=this.messageData().feedback)==null?void 0:a.getFeedbackLabelsList();if(b)for(a=l(b),b=a.next();!b.done;b=a.next())b=b.value,oed.has(b)&&this.selectedReasons.push(oed.get(b));var c;if((c=this.messageData().feedback)==null?0:c.getFeedbackReason())this.otherReason=this.messageData().feedback.getFeedbackReason();var d;if((d=this.messageData().rewrite)==null?0:Fi(d,2))c=this.messageData().rewrite,this.rewrittenResponse=Fi(c,2);var e;if((e=this.messageData().rewrite)==
null?0:e.getSourceLinkList()){var f;this.rewriteSourcesList=((f=this.messageData().rewrite)==null?void 0:f.getSourceLinkList().slice())||[]}this.messageData().hasPrivateContent&&this.reasonChips.push("not_protected_content");kNc(this.conversationAgentsService)&&this.reasonChips.push("poor_use_of_tools")};mL.prototype.ngAfterViewInit=function(){var a;(a=this.feedbackHeader())==null||a.nativeElement.scrollIntoView()};mL.prototype.getIndex=function(a){return a};
mL.\u0275fac=function(a){return new (a||mL)(Ve(PD),Ve(zD))};
mL.\u0275cmp=C({type:mL,selectors:[["feedback-reasons-form"]],viewQuery:function(a,b){a&1&&(rg(b.sourceUrlsFormWrapper,med),rg(b.feedbackHeader,ned));a&2&&sg(2)},inputs:{messageData:[1,"messageData"],hasPrivateContent:[1,"hasPrivateContent"]},outputs:{close:"close",submit:"submit"},decls:18,vars:7,consts:function(){return[["feedbackHeader",""],["otherReasons",""],["sourceUrlsFormWrapper",""]," \ufffd0\ufffd ",[1,"heading"],[1,"gmat-subhead-1"],["mat-icon-button","","aria-label","Close feedback form",
1,"close-button",3,"click"],["multiple","","aria-label","Select feedback reasons",3,"change"],["appearance","hairline-filter",3,"value","selected"],[1,"feedback-form-submit"],[1,"invalid-form-error"],["mat-stroked-button","","color","primary",3,"click","ve","veClick","veImpression"],["mat-raised-button","","color","primary",3,"click"],[3,"showWarning"],["appearance","outline","floatLabel","auto"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","2","placeholder","Share what could be improved in the response",
"aria-label","Other negative feedback reason(s)",1,"other-reasons-input",3,"ngModelChange","ngModel"]]},template:function(a,b){if(a&1){var c=t();K(0,"div",4)(1,"p",5,0);S(3,"Reasons for feedback (Select all that apply)");L();K(4,"button",6);N("click",function(){u(c);return v(b.close.emit())});K(5,"mat-icon");S(6," close ");L()()();K(7,"mat-chip-listbox",7);N("change",function(d){u(c);b.selectedReasons=d.value;return v()});Pf(8,IQa,2,3,"mat-chip-option",8,Of);L();F(10,LQa,2,1);U(11,"async");K(12,"div",
9);F(13,MQa,2,1,"mat-error",10);K(14,"button",11);N("click",function(){u(c);return v(b.close.emit())});S(15," Cancel ");L();K(16,"button",12);N("click",function(){u(c);if(b.otherReason.length===0&&b.selectedReasons.length===0)b.error=4;else if(!b.sourceUrlsFormWrapper()||b.sourceUrlsFormWrapper().getError()===1){var d,e;if((d=b.sourceUrlsFormWrapper())==null)d=void 0;else if(d.componentRef)d=d.componentRef.instance.rewriteSourcesList;else{var f,g;d=(g=(f=d.defaultSourceUrlsForm())==null?void 0:f.rewriteSourcesList)!=
null?g:[]}f=(e=d)!=null?e:[];b.submit.emit({feedbackReason:b.otherReason||void 0,feedbackLabels:b.selectedReasons,rewrittenResponse:"",rewrittenResponseSources:f})}return v()});S(17," Submit ");L()()}a&2&&(B(8),Qf(b.reasonChips),B(2),G(W(11,5,b.isIncognitoMode$)?-1:10),B(3),G(b.error!==b.invalidFeedbackFormEnum.NO_ERROR?13:-1),B(),I("ve",b.ve.DuckieChatNegativeFeedbackCancelButton)("veClick",!0)("veImpression",!0))},dependencies:[xy,mC,xi,PB,WB,ZA,XA,TA,VA,JK,BK,IK,HK,DB,qB,BB,tB,rB,qC,EB,oC,HB,iK,
kz,iz,lL,IB,HE,GE,py],styles:["[_nghost-%COMP%]:not(:empty){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;gap:8px;margin-top:8px;padding:12px 24px;position:relative}[_nghost-%COMP%]:not(:empty)   mat-chip-listbox[_ngcontent-%COMP%], [_nghost-%COMP%]:not(:empty)   mat-form-field[_ngcontent-%COMP%]{margin-bottom:4px}[_nghost-%COMP%]:not(:empty)   button[_ngcontent-%COMP%]{-webkit-align-self:baseline;-ms-flex-item-align:baseline;align-self:baseline}.heading[_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}.feedback-form-submit[_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;gap:16px;-webkit-box-pack:end;-webkit-justify-content:end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:end}.header-with-tooltip[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;gap:8px}.help-button[_ngcontent-%COMP%]{text-align:center;text-decoration:none}.help-icon[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:16px;height:16px}.invalid-form-error[_ngcontent-%COMP%]{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;font-size:14px;margin-right:auto}.invalid-rewrite-source-input[_ngcontent-%COMP%]{font-size:14px}.rewrite-source[_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}.rewrite-source-input[_ngcontent-%COMP%]{max-height:50px;width:100%}.rewrite-source-input-header[_ngcontent-%COMP%]{color:var(--text-secondary);font-family:Google Sans,Roboto;font-size:14px;margin-bottom:8px}.rewrite-source-input-row[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex}"],
changeDetection:0});var qed=["customFeedbackReasonsForm"],red=function(){this.messageData=Qg.required.apply(Qg,n([]));this.hasPrivateContent=Qg.required.apply(Qg,n([]));this.close=Pg();this.submit=Pg();this.feedbackReasonsFormTemplate=q(ped,{optional:!0});this.customFeedbackReasonsForm=Rg("customFeedbackReasonsForm",Object.assign({},{},{read:ig}))};
red.prototype.ngAfterViewInit=function(){var a=this;this.feedbackReasonsFormTemplate&&this.customFeedbackReasonsForm()&&(this.componentRef=this.customFeedbackReasonsForm().createComponent(this.feedbackReasonsFormTemplate),this.componentRef.instance.messageData=this.messageData,this.componentRef.instance.hasPrivateContent=this.hasPrivateContent,this.componentRef.instance.close.subscribe(function(){a.close.emit()}),this.componentRef.instance.submit.subscribe(function(b){a.submit.emit(b)}))};
red.\u0275fac=function(a){return new (a||red)};
red.\u0275cmp=C({type:red,selectors:[["feedback-reasons-form-wrapper"]],viewQuery:function(a,b){a&1&&rg(b.customFeedbackReasonsForm,qed,ig);a&2&&sg()},inputs:{messageData:[1,"messageData"],hasPrivateContent:[1,"hasPrivateContent"]},outputs:{close:"close",submit:"submit"},decls:2,vars:1,consts:[["customFeedbackReasonsForm",""],[3,"messageData","hasPrivateContent"],[3,"close","submit","messageData","hasPrivateContent"]],template:function(a,b){a&1&&F(0,NQa,2,0,"ng-container")(1,OQa,1,2,"feedback-reasons-form",
1);a&2&&G(b.feedbackReasonsFormTemplate?0:1)},dependencies:[xy,mL],encapsulation:2,changeDetection:0});var nL=function(){};nL.prototype.create=function(){var a=qva();return new gNc(a,{withCredentials:!0,suppressCorsPreflight:!0})};nL.\u0275fac=function(a){return new (a||nL)};nL.\u0275prov=Cc({token:nL,factory:nL.\u0275fac,providedIn:"root"});var oL=function(a){this.duckieBackendServicePromiseClientFactory=a;this.client=this.duckieBackendServicePromiseClientFactory.create()};oL.prototype.provideFeedback=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.provideFeedback(a),2):c.return(c.yieldResult)})};oL.prototype.provideRewrite=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.client.provideRewrite(a),2):c.return(c.yieldResult)})};oL.\u0275fac=function(a){return new (a||oL)(Wc(nL))};
oL.\u0275prov=Cc({token:oL,factory:oL.\u0275fac,providedIn:"root"});var sed=new bd("FeedbackWithRewriteTemplate"),pL=function(a,b,c,d){this.userStateService=a;this.threadService=b;this.duckieEventTrackerService=c;this.duckieFeedbackService=d;this.messageData=Qg.required.apply(Qg,n([]));this.currFeedbackId="";this.hasFeedbackFormContent=this.wasFeedbackSubmitted=this.showReasonsForm=!1;this.currFeedback=new MC;this.currRewrite=new Ti;this.confirmationMessage="Thank you for your feedback, it helps improve Duckie";this.isIncognitoMode$=this.userStateService.isEnforcedPrivateMode$;
this.hasPrivateContent$=this.threadService.currentThread$.pipe(A(function(e){return e?e.privacyMode===2:!1}));this.ve={DuckieChatResponseUpvoteButton:201122,DuckieChatResponseDownvoteButton:201121}};pL.prototype.ngOnInit=function(){var a;if((a=this.messageData().feedback)==null||!a.getIsDeleted()){var b;(b=this.messageData().feedback)==null||b.getFeedbackType();this.currFeedback=this.messageData().feedback}this.messageData().rewrite&&(this.currRewrite=this.messageData().rewrite)};
pL.prototype.provideRewrite=function(a){var b=this,c,d,e;return y(function(f){c=b.messageData().id;d=(new rLc).setText(a.rewrittenResponse).setMessageId(c);a.rewrittenResponseSources.length>0&&(e=a.rewrittenResponseSources.filter(function(g){return g.length>0}),d.addAllSourceLink(e));b.currRewrite=aLc(new Ti,d.getText()).setSourceLinkList(d.getSourceLinkList());b.wasFeedbackSubmitted=!0;return z(f,b.duckieFeedbackService.provideRewrite(d),0)})};
pL.prototype.provideFeedback=function(a,b){var c=this,d,e,f,g,k,m,r,w;return y(function(x){if(x.nextAddress==1)return d=c.messageData().id,e=(new VC).setFeedbackType(a?1:2).setMessageId(d),c.hasFeedbackFormContent=((f=b)==null?void 0:f.feedbackReason)!==void 0||((g=b)==null?void 0:g.feedbackLabels.length)>0,((k=b)==null?0:k.feedbackReason)&&e.setFeedbackReason(b.feedbackReason),((m=b)==null?void 0:m.feedbackLabels.length)>0&&e.setFeedbackLabelsList((r=b)==null?void 0:r.feedbackLabels),((w=b)==null?
void 0:w.rewrittenResponseSources.length)>0?z(x,c.provideRewrite(b),2):x.jumpTo(2);JE(c.duckieEventTrackerService,a?201122:201121,c.messageData());c.wasFeedbackSubmitted=!0;return z(x,c.duckieFeedbackService.provideFeedback(e).then(function(D){c.currFeedbackId=D.getFeedbackId();c.currFeedback=(new MC).setFeedbackLabelsList(e.getFeedbackLabelsList()).setFeedbackReason(e.getFeedbackReason()).setFeedbackType(e.getFeedbackType()).setFeedbackId(c.currFeedbackId)}),0)})};
pL.\u0275fac=function(a){return new (a||pL)(Ve(PD),Ve(fF),Ve(IE),Ve(oL))};
pL.\u0275cmp=C({type:pL,selectors:[["feedback-with-rewrite"]],inputs:{messageData:[1,"messageData"]},decls:6,vars:5,consts:[[1,"vote-row"],["mat-icon-button","","aria-label","Provide feedback",3,"click","ve","veClick","veImpression"],[1,"feedback-confirmation"],[3,"messageData","hasPrivateContent"],[1,"gmat-body-2"],[3,"close","submit","messageData","hasPrivateContent"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"button",1),N("click",function(){b.showReasonsForm=!0;b.provideFeedback(!1)}),K(2,"mat-icon"),
S(3,"feedback"),L()(),F(4,PQa,3,1,"div",2),L(),F(5,QQa,2,4,"feedback-reasons-form-wrapper",3));a&2&&(B(),I("ve",b.ve.DuckieChatResponseDownvoteButton)("veClick",!0)("veImpression",!0),B(3),G(b.hasFeedbackFormContent?4:-1),B(),G(b.showReasonsForm?5:-1))},dependencies:[xy,red,ZA,XA,VA,YJ,kz,iz,HE,GE,py],styles:["button[_ngcontent-%COMP%]{overflow:hidden}.gmat-mdc-button.mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{-moz-box-sizing:border-box;box-sizing:border-box;color:var(--text-secondary);font-size:20px;padding:2px}.gmat-mdc-button.mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon.is-selected[_ngcontent-%COMP%]{color:var(--primary-default)}.gmat-mdc-button.mat-mdc-button.mat-unthemed[_ngcontent-%COMP%]{--mat-button-text-state-layer-color:var(--text-secondary);--mat-button-text-label-text-color:var(--text-secondary);--private-gmat-button-text-stateful-color:var(--primary-default)}.gmat-mdc-button.mat-mdc-button.mat-unthemed.is-selected[_ngcontent-%COMP%]{color:var(--primary-default)}.feedback-confirmation[_ngcontent-%COMP%]{margin-left:16px}.vertical-divider[_ngcontent-%COMP%]{height:24px;border-width:medium;border-color:var(--hairline)}.vote-row[_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}.vote-row[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-family:Google Sans,Roboto;margin-right:4px}"],
changeDetection:0});var ted=["customFeedbackWithRewrite"],ued=function(){this.messageData=Qg.required.apply(Qg,n([]));this.feedbackWithRewriteTemplate=q(sed,{optional:!0});this.customFeedbackWithRewrite=Rg("customFeedbackWithRewrite",Object.assign({},{},{read:ig}))};ued.prototype.ngAfterViewInit=function(){this.feedbackWithRewriteTemplate&&this.customFeedbackWithRewrite()&&(this.componentRef=this.customFeedbackWithRewrite().createComponent(this.feedbackWithRewriteTemplate),this.componentRef.instance.messageData=this.messageData)};
ued.\u0275fac=function(a){return new (a||ued)};ued.\u0275cmp=C({type:ued,selectors:[["feedback-with-rewrite-wrapper"]],viewQuery:function(a,b){a&1&&rg(b.customFeedbackWithRewrite,ted,ig);a&2&&sg()},inputs:{messageData:[1,"messageData"]},decls:2,vars:1,consts:[["customFeedbackWithRewrite",""],[3,"messageData"]],template:function(a,b){a&1&&F(0,RQa,2,0,"ng-container")(1,SQa,1,1,"feedback-with-rewrite",1);a&2&&G(b.feedbackWithRewriteTemplate?0:1)},dependencies:[xy,pL],encapsulation:2,changeDetection:0});var ved=["customInteractiveElements"],wed=function(){this.interactiveElements=Qg.apply(null,n([]));this.interactiveElementsTemplate=q($ad,{optional:!0});this.customInteractiveElements=Rg("customInteractiveElements",Object.assign({},{},{read:ig}))};
wed.prototype.ngAfterViewInit=function(){this.interactiveElementsTemplate&&this.customInteractiveElements()&&(this.componentRef=this.customInteractiveElements().createComponent(this.interactiveElementsTemplate),this.componentRef.instance.interactiveElements=qg.apply(null,[this.interactiveElements()].concat(n([]))))};wed.\u0275fac=function(a){return new (a||wed)};
wed.\u0275cmp=C({type:wed,selectors:[["interactive-elements-wrapper"]],viewQuery:function(a,b){a&1&&rg(b.customInteractiveElements,ved,ig);a&2&&sg()},inputs:{interactiveElements:[1,"interactiveElements"]},decls:2,vars:1,consts:[["customInteractiveElements",""],[3,"interactiveElements"]],template:function(a,b){a&1&&F(0,TQa,2,0,"ng-container")(1,UQa,1,1,"interactive-elements",1);a&2&&G(b.interactiveElementsTemplate?0:1)},dependencies:[xy,MJ],encapsulation:2,changeDetection:0});var xed=function(a){this.dialog=a};xed.prototype.openUserPrivacySettingsDialog=function(){this.dialog.open(pdd,qdd)};xed.\u0275fac=function(a){return new (a||xed)(Ve(gB))};
xed.\u0275cmp=C({type:xed,selectors:[["private-citation-chip-tooltip"]],decls:5,vars:3,consts:[["privateCitationTooltip",""],["tabindex","0","role","button","aria-label","Personal citation information","dialogLabel","Personal citation tooltip",1,"citation-chip","text-secondary","flex-row","align-items-center","gap-xs","rounded-full","bordered","padded-xs-x",3,"xapInlineDialog","hoverDelayMs","dialogTabIndex"],[1,"tooltip-container","gap","padded","bg-surface-container","flex-column"],[1,"tooltip-actions",
"flex-row","gap-s"],["mat-button","","color","primary",3,"click"]],template:function(a){a&1&&(K(0,"div",1)(1,"mat-icon"),S(2,"privacy_tip"),L()(),E(3,VQa,5,0,"ng-template",null,0,Og));a&2&&(a=Q(4),I("xapInlineDialog",a)("hoverDelayMs",100)("dialogTabIndex",0))},dependencies:[xy,kz,iz,ZA,XA,TA,MK],styles:["[_nghost-%COMP%]   .tooltip-container[_ngcontent-%COMP%]{max-width:300px}[_nghost-%COMP%]   .tooltip-container[_ngcontent-%COMP%]   .tooltip-actions[_ngcontent-%COMP%]{margin-left:-8px}"],changeDetection:0});var yed=new bd("MessageCitationsTemplate"),zed=function(a){var b=this;this.duckieEventTrackerService=a;this.messageData=Qg.required.apply(Qg,n([]));this.citedNonRecitationDocuments=ah.apply(null,[function(){var c,d;return(d=(c=b.messageData().relatedResources)==null?void 0:c.flatMap(function(e){var f,g;return(g=(f=zm(e))==null?void 0:Am(f).filter(function(k){return!Si(k,RKc,8)}))!=null?g:[]}))!=null?d:[]}].concat(n([])));this.recitationSources=ah.apply(null,[function(){var c,d;return(d=(c=b.messageData().relatedResources)==
null?void 0:c.flatMap(function(e){var f,g;return(g=(f=zm(e))==null?void 0:Am(f).filter(function(k){return Si(k,RKc,8)}))!=null?g:[]}))!=null?d:[]}].concat(n([])));this.ve={DuckieChatResponseCitationLink:201128};this.experimentsService=q(PA)},cRa=function(a){a=a.getTitle()||a.getUrl();return a.length>30?a.substring(0,27)+"...":a},$Qa=function(a,b){var c=a.messageData().id;if(c){var d,e=a.duckieEventTrackerService,f=new om;var g=new RD;var k=b.getUrl();g=Gj(g,1,k);k=b.getIconUrl();g=Gj(g,3,k);mm(e,
nm(aOc(f,g.setIsPrivateDocument(b.getIsPrivateDocument())).setMessageId(c).setSessionId((d=a.messageData().sessionId)!=null?d:"")),201128)}};zed.\u0275fac=function(a){return new (a||zed)(Ve(IE))};
zed.\u0275cmp=C({type:zed,selectors:[["message-citations"]],inputs:{messageData:[1,"messageData"]},decls:2,vars:2,consts:[[1,"references-title","gmat-subhead-2"],[1,"citation-item","flex-row","align-items-center","gap-s","padded-s-bottom"],["aria-hidden","true","fontSet","google-symbols",1,"external-icon"],["aria-hidden","true","alt","Icon for this cited website.",1,"citation-icon",3,"src"],["target","_blank",3,"click","href","ve","veClick","veImpression"],[1,"external-chip","citation-chip","flex-row",
"align-items-center","gap-xs","rounded-full"],[1,"margin-xs-left"],[1,"recitation-sources-list","margin-xs-top"],[1,"citation-item"],[1,"flex-row","align-items-center","gap-s","type-xs"]],template:function(a,b){a&1&&(F(0,bRa,4,0),F(1,eRa,5,0));a&2&&(G(b.citedNonRecitationDocuments().length>0?0:-1),B(),G(b.experimentsService.recitationCheckingEnabled&&b.recitationSources().length>0?1:-1))},dependencies:[xy,kz,iz,xed,HE,GE],styles:[".references-title[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:12px;padding:8px 0}.external-icon[_ngcontent-%COMP%]{font-size:18px;height:18px;margin:-1px;padding-right:8px;width:18px}.citation-icon[_ngcontent-%COMP%]{height:16px;padding-right:8px;width:16px}.citation-item[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.external-chip[_ngcontent-%COMP%]{background-color:var(--tonal-fill-yellow);border:1px solid var(--tonal-yellow)}.external-chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:var(--tonal-icon-yellow)}.execution-metadata-container[_ngcontent-%COMP%]{max-width:680px}.recitation-sources-list[_ngcontent-%COMP%]{-webkit-padding-start:12px;-moz-padding-start:12px;padding-inline-start:12px}.recitation-sources-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]::marker{font-size:.8em}.no-sources-content[_ngcontent-%COMP%]{color:var(--text-default);font-size:12px;font-weight:400;line-height:16px}"],
changeDetection:0});var Aed=["customMessageCitations"],Bed=function(){this.messageData=Qg.required.apply(Qg,n([]));this.messageCitationsTemplate=q(yed,{optional:!0});this.customMessageCitations=Rg("customMessageCitations",Object.assign({},{},{read:ig}))};Bed.prototype.ngAfterViewInit=function(){this.messageCitationsTemplate&&this.customMessageCitations()&&(this.componentRef=this.customMessageCitations().createComponent(this.messageCitationsTemplate),this.componentRef.instance.messageData=qg.apply(null,[this.messageData()].concat(n([]))))};
Bed.\u0275fac=function(a){return new (a||Bed)};Bed.\u0275cmp=C({type:Bed,selectors:[["message-citations-wrapper"]],viewQuery:function(a,b){a&1&&rg(b.customMessageCitations,Aed,ig);a&2&&sg()},inputs:{messageData:[1,"messageData"]},decls:2,vars:1,consts:[["customMessageCitations",""],[3,"messageData"]],template:function(a,b){a&1&&F(0,fRa,2,0,"ng-container")(1,gRa,1,1,"message-citations",1);a&2&&G(b.messageCitationsTemplate?0:1)},dependencies:[xy,zed],encapsulation:2,changeDetection:0});var qL=function(){this.expansionStates=new Map};qL.prototype.isExpanded=function(a){var b;return(b=this.expansionStates.get(a))!=null?b:!1};qL.\u0275fac=function(a){return new (a||qL)};qL.\u0275prov=Cc({token:qL,factory:qL.\u0275fac,providedIn:"root"});var Ced=function(){this.duckieLoadingPhrases="Quacking the code...;Getting my ducks in a row...;Paddling through the algorithms...;Ruffling some feathers in the neural net...;Waddling towards an answer...;This might be a wild goose chase... hold on.;Just winging it...;Consulting the pond of knowledge...;Don't get your feathers in a ruffle...;Filtering the data stream...;Hope this response fits the bill...;Compiling the quack-end...;My logic is im-peck-able.;Putting this on your bill...;Diving deep for the best data...;Everything is just ducky.;Warming up the breadcrumb processors...;What time do I wake up? At the quack of dawn.;Let's get this bread... crumb of information.;Preening my algorithms...;Making sure this isn't a fowl response...;This is some fowl language... (the code, I mean).;Taking to this like a duck to water...;Letting bad data roll off like water off a duck's back.;No need to duck and cover, I'm on it.;I'm no sitting duck, I'm processing!;What's a duck's favorite ballet? The Nutquacker.;Why was the duck a good detective? He always quacked the case.;Sorting the pecking order of information...;Deploying the rubber duck for debugging...;This response is anything but poultry.;Fetching results from the duck-umentation...;Down-loading the necessary files...;I've got a bill-ion ideas... narrowing it down.;Flapping my wings at ludicrous speed...;Migrating south for the winter... I mean, to a different server.;Don't worry, I'm a professional quack.;Let me take a quack at it.;Quack-ulating the possibilities...;Checking the web... feet and internet.;This is sure to quack you up.;I find your request... duck-lightful.;This is going swimmingly.;I'm feeling quite buoyant about this query.;One moment, preening my code.;Just hatching a new idea...;Don't count your ducks before they've hatched.;This better be all it's quacked up to be.;Running a bill-d... I mean, build.;Aflack-ing the servers for information...;I'm not just winging it, I have a plan!;Quacking the code;Loading quack-er-jack style;Preparing for the quack-ening;Making a quick quack-stop;Awaiting the final quack of approval;The server is singing a honking good tune;Getting the honk-key to the files;The little peep of success is coming;This is going to be quack-tastic;Just a moment, I'm quack-sperimenting;Running a quack-diagnosis;Thinking... *paddles silently*;The server is making happy honks;About to quack open the results;Data streams are quacking along;The data is about to peep out;Finishing the final quack-ter of the load;Making sure all the duckweed is cleared;The server is in a puddle of thought;Putting on my gaiters;Thinking with grace and paddling underneath;Time to dive into the next task;Splish-splash, thinking fast;Warming up the brood of results;My favorite data structure is a duck-tionary.;Checking the beak-end code...;Lightning the Quackers... \u26a1;Running Ducks-tra's algorithm...".split(";")},
Ded=function(a){return a.duckieLoadingPhrases[Math.floor(Math.random()*a.duckieLoadingPhrases.length)]};Ced.\u0275fac=function(a){return new (a||Ced)};Ced.\u0275prov=Cc({token:Ced,factory:Ced.\u0275fac,providedIn:"root"});var kRa=function(a){return{parts:a}},qRa=function(a){return{part:a}},Eed=new bd("MessagePartsTemplate"),Ged=function(a,b){var c=this;this.elementRef=a;this.markdownService=b;this.executionMetadata=Qg.required.apply(Qg,n([]));this.executionMetadata$=qwa(this.executionMetadata);this.hasRedactions=Qg.required.apply(Qg,n([]));this.shouldExpand=Qg.apply(null,[!1].concat(n([])));this.isStreamingThoughts=Qg.required.apply(Qg,n([]));this.isStreamingThoughts$=qwa(this.isStreamingThoughts);this.messageId=Qg.required.apply(Qg,
n([]));this.phrasePool$=this.executionMetadata$.pipe(A(function(d){return Fed(c,d)}),of(function(d,e){return d.length!==e.length?!1:d.every(function(f,g){return f.text===e[g].text})}),yf([]));this.messageParts=new Xj([]);this.experimentsService=q(PA);this.jokesService=q(Ced);this.messagePartsService=q(qL);this.duckieEventTrackerService=q(IE);this.id=uua();this.seenAlreadySet=new Set;this.messagePartData=new Xj({id:this.id,isExpanded:this.shouldExpand(),hiddenMessageParts:[],hasAnyThought:!1});this.messagePartsElement=
this.elementRef.nativeElement;this.duckieLoadingPhrase$=he([this.phrasePool$,this.isStreamingThoughts$]).pipe(zf(function(d){var e=l(d);d=e.next().value;if(!e.next().value)return be(Ded(c.jokesService));var f=[].concat(n(d)),g=Ded(c.jokesService);return qe(0,3E3).pipe(A(function(){for(;f.length>0&&c.seenAlreadySet.has(f[0].text);)f.shift();f.length>0&&(g=f.shift().text,c.seenAlreadySet.add(g));return g}))}),yf(Ded(this.jokesService)),of())};
Ged.prototype.ngOnChanges=function(){var a=this,b,c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:if(!a.executionMetadata()){k.jumpTo(0);break}b=Hed(a,a.executionMetadata());c=l(b);d=c.next();case 3:if(d.done){k.jumpTo(5);break}e=d.value;if(!e.text){k.jumpTo(4);break}return z(k,Ied(a,e.text),7);case 7:e.html=k.yieldResult;case 4:d=c.next();k.jumpTo(3);break;case 5:a.messageParts.next(b),g=(f=a.messagePartsService.isExpanded(a.id))!=null?f:!a.hasRedactions()&&a.shouldExpand(),a.messagePartsService.expansionStates.set(a.id,
g),a.messagePartData.next({id:a.id,isExpanded:g,hiddenMessageParts:b,hasAnyThought:b.some(function(m){return m.isThought})}),$d(k)}})};
var Fed=function(a,b){var c=[];b&&Hed(a,b).forEach(function(d){d.text&&Jed(d.text).forEach(function(e){c.push({text:e+"...",isFunctionCall:!1})});d.functionCalls.length>0&&d.functionCalls.forEach(function(e){var f=c.push,g=e.name;e=Array.from(e.args.entries());var k="";if(e.length>0){var m=l(e[0]);k=m.next().value;m=m.next().value;m.startsWith('"')&&m.endsWith('"')&&(m=m.slice(1,-1));k=" ("+k+': "'+m+'")';e.length>1&&(k+="...")}f.call(c,{text:"Executing: "+g+k,isFunctionCall:!0})})});return c},Jed=
function(a){return[].concat(n(a.matchAll(/^\s*\*\*([\s\S]*?)\*\*\s*$/gm))).map(function(b){return b[1].trim()})},Hed=function(a,b){var c=[];(b==null?void 0:Wi(b,LC,9,Xi()).flatMap(function(d){return d.getPartsList()})).forEach(function(d){var e=[],f,g=(f=d.getText())!=null?f:"";if(d.hasFunctionCall()){var k=new Map;f=d.getFunctionCall().getName();var m,r;(r=(m=d.getFunctionCall().getArgs())==null?void 0:sc(m,1,GC,Rb))==null||r.forEach(function(w,x){w=Ked(a,w);k.set(x,w)});e.push({name:f,args:k})}c.push({text:g,
functionCalls:e,isThought:d.getThought()})});return c},Ked=function(a,b){var c="";if(b.hasStringValue())c='"'+b.getStringValue()+'"';else if(vZa(b,HC))c=String(tm(b,bj(b,HC,2)));else if(hCc(b,bj(b,HC,4))!=null)c=String($i(b,bj(b,HC,4)));else if(lj(b,IC,6,HC)){var d;c="["+((d=lm(b,IC,6,HC))==null?void 0:d.getValuesList().map(function(g){return Ked(a,g)}).join(", "))+"]"}else if(lj(b,FC,5,HC)){var e=[],f;(f=lm(b,FC,5,HC))==null||sc(f,1,GC,Rb).forEach(function(g,k){e.push(k+": "+Ked(a,g))});c="{"+e.join(", ")+
"}"}return c},Ied=function(a,b){return y(function(c){return c.nextAddress==1?z(c,JRc(a.markdownService,b),2):c.return(c.yieldResult||Dh(b))})};Ged.\u0275fac=function(a){return new (a||Ged)(Ve(Gd),Ve(OE))};
Ged.\u0275cmp=C({type:Ged,selectors:[["message-parts"]],inputs:{executionMetadata:[1,"executionMetadata"],hasRedactions:[1,"hasRedactions"],shouldExpand:[1,"shouldExpand"],isStreamingThoughts:[1,"isStreamingThoughts"],messageId:[1,"messageId"]},features:[Gx],decls:6,vars:3,consts:[["messagePartContent",""],["functionCallDisplay",""],[1,"padding-xs","rounded-s","message-parts-container"],[1,"gmat-body-2","flex-row"],["matButton","","aria-label","Toggle Duckie thoughts panel","aria-controls","duckie-thoughts-content",
1,"thinking-button",3,"click"],["iconPositionEnd",""],["id","duckie-thoughts-content",1,"rounded-s","function-calls-panel"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["mode","indeterminate",1,"thinking-button-spinner","align-self-center","margin-auto-y","margin-s-right",3,"diameter"],[1,"padded-top","fit-content-width","message-part-text","gmat-body-2",3,"innerHtml"],[1,"function-call-wrapper","flex-column","gap-s","margin-s-top"],[1,"function-call"],[1,"gmat-body-2"],[1,"bold"],[1,"flex-column"],
[1,"kv-pair","margin-s-left","gmat-body-2"],[1,"key"],[1,"value"]],template:function(a,b){a&1&&(F(0,oRa,2,1),U(1,"async"),E(2,tRa,2,0,"ng-template",null,0,Og)(4,wRa,3,0,"ng-template",null,1,Og));if(a&2){var c;G((c=W(1,1,b.messagePartData))?0:-1,c)}},dependencies:[xy,oy,ZA,XA,TA,kz,iz,iK,fK,eK,NI,py],styles:["[_ngcontent-%COMP%]: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}.mat-mdc-button.mat-mdc-button.mat-unthemed[_ngcontent-%COMP%]{background:var(--tonal-fill-grey)}.mat-mdc-button.mat-mdc-button.mat-unthemed[_ngcontent-%COMP%]     .mdc-button__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.function-calls-panel[_ngcontent-%COMP%]{background:var(--tonal-fill-grey);max-height:1000vh;overflow:auto}.function-calls-panel.hidden[_ngcontent-%COMP%]{max-height:0;margin:0}.function-calls-panel.hidden[_ngcontent-%COMP%]   .function-call-wrapper[_ngcontent-%COMP%]{max-height:0;overflow:hidden}.thinking-button[_ngcontent-%COMP%]{margin-bottom:16px;padding-left:16px;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}.function-call-wrapper[_ngcontent-%COMP%]{background:var(--tonal-fill-grey);padding:8px;overflow:auto hidden;margin-top:0;max-height:1000vh}.function-call-wrapper[_ngcontent-%COMP%]   .function-call[_ngcontent-%COMP%]   .kv-pair[_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;gap:4px}.function-call-wrapper[_ngcontent-%COMP%]   .function-call[_ngcontent-%COMP%]   .kv-pair[_ngcontent-%COMP%]   .key[_ngcontent-%COMP%]{color:var(--tonal-purple)}.function-call-wrapper[_ngcontent-%COMP%]   .function-call[_ngcontent-%COMP%]   .kv-pair[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{color:var(--tonal-green)}.function-call-wrapper.hidden[_ngcontent-%COMP%]{max-height:0;margin:0}.function-call-wrapper.hidden[_ngcontent-%COMP%]   .function-call-wrapper[_ngcontent-%COMP%]{max-height:0;overflow:hidden}.thinking-button-spinner[_ngcontent-%COMP%]{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;vertical-align:text-top}.message-parts-container[_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}.message-parts-container[_ngcontent-%COMP%]   .expand-button[_ngcontent-%COMP%]{border-radius:24px;border:none;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;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;width:28px;height:20px;margin-inline:2px;margin:0;padding:1px 6px}.message-parts-container[_ngcontent-%COMP%]   .expand-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:var(--text-default);font-size:1.125em;font-weight:500;line-height:normal;width:auto;height:auto;-webkit-transform:translateY(1px);transform:translateY(1px);-webkit-transition:-webkit-transform 333ms;transition:-webkit-transform 333ms;transition:transform 333ms;transition:transform 333ms,-webkit-transform 333ms}.message-parts-container[_ngcontent-%COMP%]   .expand-button.is-expanded[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.message-parts-container[_ngcontent-%COMP%]     .message-part-text>:last-child{display:inline-block}.message-parts-container[_ngcontent-%COMP%]     .message-part-text>p:last-child{display:inline}"],
changeDetection:0});var Led=["customMessageParts"],Med=function(){this.executionMetadata=Qg.required.apply(Qg,n([]));this.hasRedactions=Qg.required.apply(Qg,n([]));this.shouldExpand=Qg.apply(null,[!1].concat(n([])));this.isStreamingThoughts=Qg.apply(null,[!1].concat(n([])));this.messageId=Qg.apply(null,[""].concat(n([])));this.messagePartsTemplate=q(Eed,{optional:!0});this.customMessageParts=Rg("customMessageParts",Object.assign({},{},{read:ig}))};
Med.prototype.ngAfterViewInit=function(){this.messagePartsTemplate&&this.customMessageParts()&&(this.componentRef=this.customMessageParts().createComponent(this.messagePartsTemplate),this.componentRef.instance.executionMetadata=qg.apply(null,[this.executionMetadata()].concat(n([]))),this.componentRef.instance.hasRedactions=qg.apply(null,[this.hasRedactions()].concat(n([]))),this.componentRef.instance.shouldExpand=qg.apply(null,[this.shouldExpand()].concat(n([]))))};
Med.\u0275fac=function(a){return new (a||Med)};
Med.\u0275cmp=C({type:Med,selectors:[["message-parts-wrapper"]],viewQuery:function(a,b){a&1&&rg(b.customMessageParts,Led,ig);a&2&&sg()},inputs:{executionMetadata:[1,"executionMetadata"],hasRedactions:[1,"hasRedactions"],shouldExpand:[1,"shouldExpand"],isStreamingThoughts:[1,"isStreamingThoughts"],messageId:[1,"messageId"]},decls:2,vars:1,consts:[["customMessageParts",""],[3,"executionMetadata","messageId","hasRedactions","shouldExpand","isStreamingThoughts"]],template:function(a,b){a&1&&F(0,xRa,2,
0,"ng-container")(1,yRa,1,5,"message-parts",1);a&2&&G(b.messagePartsTemplate?0:1)},dependencies:[xy,Ged],encapsulation:2,changeDetection:0});var Ned=function(){};Ned.\u0275fac=function(a){return new (a||Ned)};
Ned.\u0275cmp=C({type:Ned,selectors:[["typing-dots"]],hostAttrs:[1,"flex-row","gap"],decls:4,vars:0,consts:[[1,"typing"]],template:function(a){a&1&&(Sf(0,"span",0),Uf(1,"span")(2,"span")(3,"span"),Tf())},styles:['.typing[_ngcontent-%COMP%]{height:24px;position:relative;-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;background:var(--tonal-fill-grey);border-radius:30px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;padding:0 8px;gap:4px;-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}@media (max-width:800px){.typing[_ngcontent-%COMP%]{margin-bottom:8px}}.typing[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;-webkit-animation:_ngcontent-%COMP%_blink 1.5s infinite;animation:_ngcontent-%COMP%_blink 1.5s infinite;-webkit-animation-fill-mode:both;animation-fill-mode:both;background:var(--tonal-grey);border-radius:50%;content:"";height:4px;width:4px}.typing[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.2s;animation-delay:.2s}.typing[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:.4s;animation-delay:.4s}.use-compact-view[_nghost-%COMP%]   .typing[_ngcontent-%COMP%]{margin-bottom:8px}@-webkit-keyframes _ngcontent-%COMP%_blink{0%{opacity:.1}20%{opacity:1}to{opacity:.1}}@keyframes _ngcontent-%COMP%_blink{0%{opacity:.1}20%{opacity:1}to{opacity:.1}}'],changeDetection:0});var Oed=new bd("MessageTemplate"),rL=function(a,b){var c=this;this.elementRef=a;this.threadService=b;this.messageData=Qg.required.apply(Qg,n([]));this.useCompactView=Qg.apply(null,[!1].concat(n([])));this.isDuckieThinking=Qg.apply(null,[!1].concat(n([])));this.snackBar=q(LD);this.overridesService=q(CC);this.duckieEventTrackerService=q(IE);this.duckieFeedbackService=q(oL);this.avatarUrl="https://moma-teams-photos.corp.google.com/photos/me?sz=32";this.hasHiddenMessages=ah.apply(null,[function(){var d=
c.messageData();return!d.isUser&&!!d.executionMetadata&&Wi(d.executionMetadata,LC,9,Xi()).length>0}].concat(n([])));this.experimentsService=q(PA);this.recitationSources=ah.apply(null,[function(){var d,e;return(e=(d=c.messageData().relatedResources)==null?void 0:d.flatMap(function(f){var g,k;return(k=(g=zm(f))==null?void 0:Am(g).filter(function(m){return Si(m,RKc,8)}))!=null?k:[]}))!=null?e:[]}].concat(n([])));this.agentDisplayName=ah.apply(null,[function(){if(!c.messageData().isUser)return c.overridesService.overrideAgentMessageDisplayName}].concat(n([])));
this.agentIconUrl=ah.apply(null,[function(){c.messageData()}].concat(n([])));this.messageElement=this.elementRef.nativeElement;this.isDuckieThinking$=this.threadService.isDuckieThinking$;this.showResponseMetadata$=this.overridesService.debugDisplayOptions$.pipe(A(function(d){return d.showResponseMetadata}))};
rL.prototype.ngAfterViewChecked=function(){var a=this;return y(function(b){var c=Array.from(a.messageElement.querySelectorAll("message .text-container a"));c=l(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.getAttribute("target")===null&&d.setAttribute("target","_blank"),d.querySelector("del")!==null&&d.setAttribute("title","Broken link");Ped(a);a.messageData().isUser||Qed(a);$d(b)})};
var Ped=function(a){var b=Array.from(a.messageElement.querySelectorAll("message .text-container pre")).filter(function(c){var d=c.parentElement,e=d==null?void 0:d.classList.contains("execution-metadata-code");d=d==null?void 0:d.classList.contains("dot-error");c=c.querySelector(".code-block-addition-container")!==null;return!(e||d||c)});b.length>0&&Red(a,b)},Red=function(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=document.createElement("div");d.classList.add("code-block-addition-container");
var e=void 0,f=((e=c.querySelector("code"))==null?void 0:e.textContent)||"";Sed(a,c,d,f);Ted(a,c,d,f);f=void 0;e=Array.from(((f=c.querySelector("code"))==null?void 0:f.classList)||[]);f="CODE BLOCK";e.length>0&&(f=e.filter(function(g){return g.startsWith("language-")})[0].slice(9).toUpperCase());e=document.createElement("div");e.classList.add("code-title");e.textContent=f;f=document.createElement("span");f.classList.add("spacer");d.prepend(e,f);c.prepend(d)}},Ted=function(a,b,c,d){if(!b.querySelector(".copy-button")){var e=
document.createElement("button");e.classList.add("copy-button");e.setAttribute("aria-label","Copy code to clipboard");e.addEventListener("click",function(){var f,g,k;return y(function(m){if(m.nextAddress==1)return window.isSecureContext&&d?z(m,navigator.clipboard.writeText(d||""),3):m.jumpTo(0);if(m.nextAddress!=4)return f=document.createElement("div"),f.classList.add("copy-confirmation"),f.textContent="Copied to clipboard",f.setAttribute("role","alert"),b.appendChild(f),setTimeout(function(){b.removeChild(f)},
5E3),g=a.messageData().id,k=(new VC).setFeedbackType(3).setMessageId(g),z(m,a.duckieFeedbackService.provideFeedback(k),4);JE(a.duckieEventTrackerService,201931,a.messageData());$d(m)})});c.appendChild(e)}},Sed=function(a,b,c,d){b.querySelector("code").classList.contains("language-sql")&&(b=document.createElement("a"),b.classList.add("plx-button"),b.tabIndex=0,b.title="Open in Plx",b.ariaDisabled="false",b.target="_blank",window.isSecureContext&&d&&(d="https://plx.corp.google.com/scripts2/?a=go&engine=F1&sql="+
encodeURIComponent(d),(0,Lh.setAnchorHref)(b,d)),b.addEventListener("click",function(){return y(function(e){JE(a.duckieEventTrackerService,204817,a.messageData());$d(e)})}),c.appendChild(b))},Qed=function(a){var b=a.messageData().text;if(b){var c=Array.from(a.messageElement.querySelectorAll("g3mark-svg")).filter(function(g){return g.querySelector(".control-bar")===null});if(c.length>0){b=[].concat(n(b.matchAll(/\s*```dot\n([\s\S]*?)\n\s*```/g)));c=l(c.entries());for(var d=c.next();!d.done;d=c.next()){var e=
l(d.value);d=e.next().value;e=e.next().value;var f=document.createElement("div");f.classList.add("control-bar");e.appendChild(f);Ued(f,e.dataset.graphId);Ved(a,f,b[d][1])}}}},Ved=function(a,b,c){var d=document.createElement("button");d.classList.add("copy-button");d.title="Copy Graphviz code to clipboard";b.appendChild(d);d.addEventListener("click",function(){var e,f,g;return y(function(k){if(k.nextAddress==1)return window.isSecureContext&&c?z(k,navigator.clipboard.writeText(c),3):k.jumpTo(0);if(k.nextAddress!=
4)return e=document.createElement("div"),e.classList.add("copy-confirmation"),e.textContent="Copied to clipboard",b.appendChild(e),setTimeout(function(){b.removeChild(e)},5E3),f=a.messageData().id,g=(new VC).setFeedbackType(3).setMessageId(f),z(k,a.duckieFeedbackService.provideFeedback(g),4);JE(a.duckieEventTrackerService,252593,a.messageData());$d(k)})})},Ued=function(a,b){b="https://graphviz.corp.google.com/#"+(b===void 0?"":b);var c=document.createElement("a");c.classList.add("open-in-new-tab-button");
c.title="Open graphviz in new tab";c.ariaDisabled="false";c.target="_blank";(0,Lh.setAnchorHref)(c,b);a.appendChild(c)},PRa=function(a){var b=b===void 0?!0:b;var c=c===void 0?!1:c;var d,e,f,g;return y(function(k){if(k.nextAddress==1)return f=e=d="",b&&(d=a.getSourcesMarkdown()),c&&(e=Wed(a)),g=a.messageData().text||"",e.length>0&&(f+="### Thinking:\n\n"+e+"\n\n### Response:\n\n"),g.length>0&&(f+=g),d.length>0&&(f+="\n\n### Sources:\n"+d),Vd(k,2),z(k,navigator.clipboard.writeText(f),4);if(k.nextAddress!=
2)return a.snackBar.open("Copied message text to clipboard.","Dismiss",{duration:2E3}),bk(k,0);Zd(k);a.snackBar.open("Failed to copy message text to clipboard.","Dismiss",{duration:4E3});$d(k)})};rL.prototype.getSourcesMarkdown=function(){var a="",b,c;(b=this.messageData())==null||(c=b.relatedResources)==null||c.forEach(function(d){var e;(d=(e=zm(d))==null?void 0:Am(e))&&d.length>0&&d.forEach(function(f){a+="\n* ["+f.getTitle().trim()+"]("+f.getUrl()+")"})});return a};
var Wed=function(a){var b="",c,d,e;(e=(c=a.messageData())==null?void 0:(d=c.executionMetadata)==null?void 0:Wi(d,LC,9,Xi()).flatMap(function(f){return f.getPartsList()}))==null||e.forEach(function(f){var g;f=(g=f.getText())!=null?g:"";f.length>0&&(b+=f+"\n\n")});return b};rL.\u0275fac=function(a){return new (a||rL)(Ve(Gd),Ve(fF))};
rL.\u0275cmp=C({type:rL,selectors:[["message"]],hostAttrs:[1,"flex-row","gap","margin-bottom"],hostVars:6,hostBindings:function(a,b){a&2&&yg("is-user",b.messageData().isUser)("is-duckie",!b.messageData().isUser)("use-compact-view",b.useCompactView())},inputs:{messageData:[1,"messageData"],useCompactView:[1,"useCompactView"],isDuckieThinking:[1,"isDuckieThinking"]},decls:16,vars:12,consts:[["alt","Profile img for me",1,"user",3,"src"],["alt","Duckie logo",1,"duckie-logo","padded-xs",3,"src","custom-logo"],
[1,"text-container","flex-column","gap-xs","full-width"],[1,"name","gmat-subhead-2"],[3,"hidden","messageId","executionMetadata","hasRedactions","shouldExpand","isStreamingThoughts"],[1,"recitation-sources-banner","margin-bottom","gmat-body-2","gap-s","type-s","padded-s","margin-s-top","align-items-center"],[1,"message-text","italic","gmat-body-2"],[1,"message-text","gmat-body-2","raw-text-only"],[3,"interactiveElements"],[3,"use-compact-view"],[1,"message-text","gmat-body-2"],[1,"message-actions",
"flex-row","align-items-center"],["alt","Duckie logo",1,"duckie-logo","padded-xs",3,"src"],[1,"warning-icon"],["href","http://go/code-ai-policy-faq","target","_blank",1,"type-s","flex-row","align-items-center","gap-xs","open-in-new-icon"],["inline",""],[1,"message-text","gmat-body-2",3,"innerHtml"],[3,"messageData"],["mat-icon-button","","aria-label","Copy message to clipboard","matTooltip","Copy message",1,"copy-message-button",3,"click"]],template:function(a,b){a&1&&(F(0,zRa,1,1,"img",0)(1,ARa,
1,3,"img",1),K(2,"div",2)(3,"h3",3),F(4,BRa,1,0)(5,CRa,1,1),L(),M(6,"message-parts-wrapper",4),F(7,DRa,8,0,"div",5),F(8,FRa,2,2)(9,GRa,2,0,"p",6)(10,HRa,2,1,"div",7)(11,IRa,1,1,"interactive-elements-wrapper",8)(12,JRa,1,2,"typing-dots",9)(13,KRa,2,0,"p",10),F(14,NRa,3,4),F(15,QRa,5,1,"div",11),L());if(a&2){var c;G(b.messageData().isUser?0:1);B(4);G(b.messageData().isUser?4:5);B(2);var d;I("hidden",!b.hasHiddenMessages())("messageId",(d=b.messageData().id)!=null?d:"")("executionMetadata",b.messageData().executionMetadata)("hasRedactions",
b.messageData().hasRedactions)("shouldExpand",!1)("isStreamingThoughts",b.messageData().isStreamingThoughts);B();G(b.experimentsService.recitationCheckingEnabled&&b.recitationSources().length>0?7:-1);B();G((c=b.messageData().textHtml)?8:b.messageData().hasRedactions?9:b.messageData().isUser?10:b.messageData().interactiveElements&&b.messageData().interactiveElements.length>0?11:b.isDuckieThinking()?12:13,c);B(6);G(!b.messageData().isUser&&b.messageData().text?14:-1);B();G(b.messageData().text?15:-1)}},
dependencies:[xy,ued,wed,ZA,XA,VA,kz,iz,Bed,hed,Med,Ned,py],styles:['[_ngcontent-%COMP%]: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}[_nghost-%COMP%]{scroll-margin-top:8px}@media (max-width:800px){.is-user[_nghost-%COMP%]{padding:12px 12px 0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;background-color:var(--primary-container);border-radius:20px 4px 20px 20px}.is-duckie[_nghost-%COMP%]{padding:8px 8px 0}.duckie-logo[_ngcontent-%COMP%], .user[_ngcontent-%COMP%]{display:none}.name[_ngcontent-%COMP%]{width:0;height:0;overflow:hidden;margin:0;padding:0;position:absolute}}.use-compact-view.is-user[_nghost-%COMP%]{padding:12px 12px 0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;background-color:var(--primary-container);border-radius:20px 4px 20px 20px}.use-compact-view.is-user[_nghost-%COMP%]   .message-actions[_ngcontent-%COMP%]{display:none}.use-compact-view.is-duckie[_nghost-%COMP%]{padding:8px 8px 0}.use-compact-view[_nghost-%COMP%]   .duckie-logo[_ngcontent-%COMP%], .use-compact-view[_nghost-%COMP%]   .user[_ngcontent-%COMP%]{display:none}.use-compact-view[_nghost-%COMP%]   .name[_ngcontent-%COMP%]{width:0;height:0;overflow:hidden;margin:0;padding:0;position:absolute}.name.gmat-subhead-2[_ngcontent-%COMP%]{margin:unset}.duckie-logo[_ngcontent-%COMP%]{border-radius:24px;height:24px;width:24px;background-color:var(--tonal-fill-blue)}.custom-logo.duckie-logo[_ngcontent-%COMP%]{border-radius:32px;height:32px;width:32px;mix-blend-mode:luminosity;opacity:.5;padding:0}.user[_ngcontent-%COMP%]{border-radius:32px;height:32px;width:32px}.user-text[_ngcontent-%COMP%]{white-space:pre-wrap}.message-text[_ngcontent-%COMP%]{font-family:Google Sans,Roboto;overflow-wrap:anywhere;margin:0;white-space:normal}.message-text.raw-text-only[_ngcontent-%COMP%]{white-space:pre-wrap;-webkit-padding-after:.8em;padding-block-end:.8em}.message-text[_ngcontent-%COMP%]     p{word-break:break-word}.message-text[_ngcontent-%COMP%]     hr{height:0;border:0;border-top:1px solid var(--hairline)}.message-text[_ngcontent-%COMP%]     h1, .message-text[_ngcontent-%COMP%]     h2, .message-text[_ngcontent-%COMP%]     h3, .message-text[_ngcontent-%COMP%]     h4, .message-text[_ngcontent-%COMP%]     h5{font-weight:500}.message-text[_ngcontent-%COMP%]     h1{font-size:160%;font-weight:700}.message-text[_ngcontent-%COMP%]     h2{font-size:160%}.message-text[_ngcontent-%COMP%]     h3{font-size:140%}.message-text[_ngcontent-%COMP%]     h4{font-size:120%}.message-text[_ngcontent-%COMP%]     h5{font-size:100%}.message-text[_ngcontent-%COMP%]     h1, .message-text[_ngcontent-%COMP%]     h2, .message-text[_ngcontent-%COMP%]     h3, .message-text[_ngcontent-%COMP%]     h4, .message-text[_ngcontent-%COMP%]     h5{margin:0;-webkit-margin-before:.8em;margin-block-start:.8em;-webkit-margin-after:.8em;margin-block-end:.8em}.message-text[_ngcontent-%COMP%]     blockquote, .message-text[_ngcontent-%COMP%]     hr, .message-text[_ngcontent-%COMP%]     ol, .message-text[_ngcontent-%COMP%]     p, .message-text[_ngcontent-%COMP%]     ul{margin:0;-webkit-margin-before:.8em;margin-block-start:.8em;-webkit-margin-after:.8em;margin-block-end:.8em}.message-text[_ngcontent-%COMP%]    >:first-child{-webkit-margin-before:0;margin-block-start:0}.message-text[_ngcontent-%COMP%]     ol, .message-text[_ngcontent-%COMP%]     ul{-webkit-padding-start:calc(var(--base-px, 1rem)*2);-moz-padding-start:calc(var(--base-px, 1rem)*2);padding-inline-start:calc(var(--base-px, 1rem)*2)}.message-text[_ngcontent-%COMP%]     blockquote{background-color:var(--markdown-blockquote-background);border-left:4px solid var(--markdown-blockquote-border);color:var(--text-secondary);overflow:hidden;padding-left:8px}.message-text[_ngcontent-%COMP%]     ul{list-style:initial}.message-text[_ngcontent-%COMP%]     ul ul{list-style:circle}.message-text[_ngcontent-%COMP%]     ul ul ul{list-style:square}.message-text[_ngcontent-%COMP%]     ol ol, .message-text[_ngcontent-%COMP%]     ol ul, .message-text[_ngcontent-%COMP%]     ul ol, .message-text[_ngcontent-%COMP%]     ul ul{margin:0}.message-text[_ngcontent-%COMP%]     li{-webkit-margin-after:.2em;margin-block-end:.2em}.message-text[_ngcontent-%COMP%]     code, .message-text[_ngcontent-%COMP%]     pre{background-color:var(--surface-secondary);border-radius:2px;font-family:Roboto Mono,monospace}.message-text[_ngcontent-%COMP%]     pre{border:1px solid var(--hairline);overflow-x:auto}.message-text[_ngcontent-%COMP%]     code{color:var(--markdown-code);padding:0 2px}.message-text[_ngcontent-%COMP%]     pre code{color:var(--text-high-contrast);padding:0}.message-text[_ngcontent-%COMP%]     pre{padding:8px 16px}.message-text[_ngcontent-%COMP%]     pre, .message-text[_ngcontent-%COMP%]     pre code{line-height:1.5}.message-text[_ngcontent-%COMP%]     img{max-width:100%}.message-text[_ngcontent-%COMP%]     a, .message-text[_ngcontent-%COMP%]     a code{color:var(--primary-default);text-decoration:none}.message-text[_ngcontent-%COMP%]     a code:visited, .message-text[_ngcontent-%COMP%]     a:visited{color:var(--markdown-link-visited)}.message-text[_ngcontent-%COMP%]     pre code a{color:inherit;text-decoration:underline}.message-text[_ngcontent-%COMP%]     a:hover{text-decoration:underline}.message-text[_ngcontent-%COMP%]     a:focus{outline:1px auto -webkit-focus-ring-color}.message-text[_ngcontent-%COMP%]     table{border-collapse:collapse;margin:1em 0}.message-text[_ngcontent-%COMP%]     td, .message-text[_ngcontent-%COMP%]     th{background-color:var(--surface-default);border:1px solid var(--hairline);padding:4px 8px;vertical-align:top}.message-text[_ngcontent-%COMP%]     th{text-align:left;vertical-align:bottom;word-break:keep-all}.message-text[_ngcontent-%COMP%]     div.table-overflow{overflow-x:auto}.message-text[_ngcontent-%COMP%]     input[type=checkbox]{vertical-align:middle}.message-text[_ngcontent-%COMP%]     ol, .message-text[_ngcontent-%COMP%]     ul{-webkit-padding-start:calc(var(--base-px, 1rem)*16);-moz-padding-start:calc(var(--base-px, 1rem)*16);padding-inline-start:calc(var(--base-px, 1rem)*16)}.message-text[_ngcontent-%COMP%]     img:not(.citation-item){display:none}.message-text[_ngcontent-%COMP%]     pre{overflow-wrap:anywhere;position:relative;white-space:pre-wrap;border-radius:16px;border:none;padding:0 1em 1em}.message-text[_ngcontent-%COMP%]     .dot-error pre{color:var(--tonal-red);background:var(--tonal-fill-red)}.message-text[_ngcontent-%COMP%]     .dot-error pre:before{content:"Graphviz error: \\a";font-weight:700}.message-text[_ngcontent-%COMP%]     .code-block-addition-container{background-color:var(--tonal-fill-blue);border-bottom:3px solid var(--page-bg);display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:.5em;-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;height:2em;margin:0 -1em .5em;padding:.25em 1em}.message-text[_ngcontent-%COMP%]     .copy-button, .message-text[_ngcontent-%COMP%]     .open-in-new-tab-button, .message-text[_ngcontent-%COMP%]     .plx-button{background-color:transparent;background-size:1.125em;background-repeat:no-repeat;background-position-x:8px;background-position-y:8px;border:none;border-radius:100%;width:32px;height:32px}.message-text[_ngcontent-%COMP%]     .copy-button:hover, .message-text[_ngcontent-%COMP%]     .open-in-new-tab-button:hover, .message-text[_ngcontent-%COMP%]     .plx-button:hover{background-color:var(--hover);cursor:pointer}.message-text[_ngcontent-%COMP%]     .open-in-new-tab-button{background-image:url(https://www.gstatic.com/devnotify/open_in_new.svg);background-size:1.4em;background-position-x:7px;background-position-y:7px}.message-text[_ngcontent-%COMP%]     .open-in-new-tab-button.disabled{opacity:.5}.message-text[_ngcontent-%COMP%]     .copy-button{background-image:url(https://www.gstatic.com/devnotify/content_copy_icon.svg)}.message-text[_ngcontent-%COMP%]     .plx-button{background-image:url(https://static.corp.google.com/plx/favicons/plx_favicon_v2.png)}.message-text[_ngcontent-%COMP%]     .code-title{color:var(--text-secondary);font-family:Google Sans,Roboto;font-size:.8em;font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.message-text[_ngcontent-%COMP%]     .copy-confirmation{background:var(--tonal-fill-green);border:1px solid var(--tonal-tint-green);border-radius:8px;color:var(--tonal-green);font-family:Google Sans,Roboto;font-size:12px;padding:4px 8px;margin-bottom:32px;position:absolute;right:10px;top:10px}.message-text[_ngcontent-%COMP%]     g3mark-svg{display:block;max-width:90cqw;border:1px solid var(--hairline);border-radius:8px;position:relative;margin-bottom:32px}.message-text[_ngcontent-%COMP%]     g3mark-svg div:has(svg){overflow:auto;border-radius:8px}.message-text[_ngcontent-%COMP%]     g3mark-svg .control-bar{position:absolute;bottom:-36px;right:0;width:100%;border-radius:20px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:8px;-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;height:32px}.message-text[_ngcontent-%COMP%]     g3mark-svg .control-bar .copy-confirmation{right:8px;top:-36px}.message-text[_ngcontent-%COMP%]     p{white-space:pre-line}.message-text[_ngcontent-%COMP%]     p+p{margin-top:.75rem}.message-text[_ngcontent-%COMP%]     .g3mark-callout{position:relative;padding:.25em 2em;border-style:solid;border-color:transparent;border-width:0 0 0 3px;margin:.5em auto;width:90%}.message-text[_ngcontent-%COMP%]     .g3mark-callout .g3mark-callout__keyword{font-weight:500}.message-text[_ngcontent-%COMP%]     .g3mark-callout p{white-space:unset}.message-text[_ngcontent-%COMP%]     .g3mark-callout a{text-decoration:underline;padding:.2em .3em;border-radius:.3em;margin:0 -.3em}.message-text[_ngcontent-%COMP%]     .g3mark-callout a:focus, .message-text[_ngcontent-%COMP%]     .g3mark-callout a:hover{color:color-mix(in srgb,currentColor,var(--text-default) 50%);background-color:color-mix(in srgb,var(--page-bg),transparent 40%)}.message-text[_ngcontent-%COMP%]     blockquote.g3mark-callout{padding-top:1em;padding-bottom:1em}.message-text[_ngcontent-%COMP%]     blockquote.g3mark-callout .g3mark-callout__icon+*{margin-top:0}.message-text[_ngcontent-%COMP%]     blockquote.g3mark-callout :last-child{margin-bottom:0}.message-text[_ngcontent-%COMP%]     .g3mark-callout__icon:before{position:absolute;font-size:1.25em;font-family:Google Symbols;left:.4em;top:.8em}.message-text[_ngcontent-%COMP%]     .g3mark-callout-note{background-color:var(--tonal-fill-blue);border-left-color:var(--tonal-blue);color:var(--tonal-blue)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-note a{color:var(--tonal-blue)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-note .g3mark-callout__icon:before{content:"bookmark"}.message-text[_ngcontent-%COMP%]     .g3mark-callout-tip{background-color:var(--tonal-fill-green);border-left-color:var(--tonal-green);color:var(--tonal-green)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-tip a{color:var(--tonal-green)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-tip .g3mark-callout__icon:before{content:"grade"}.message-text[_ngcontent-%COMP%]     .g3mark-callout-warning{background-color:var(--tonal-fill-red);border-left-color:var(--tonal-red);color:var(--tonal-red)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-warning a{color:var(--tonal-red)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-warning .g3mark-callout__icon:before{content:"warning"}.message-text[_ngcontent-%COMP%]     .g3mark-callout-fixme, .message-text[_ngcontent-%COMP%]     .g3mark-callout-todo{background-color:var(--tonal-fill-grey);border-left-color:var(--tonal-grey);color:var(--tonal-grey)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-fixme a, .message-text[_ngcontent-%COMP%]     .g3mark-callout-todo a{color:var(--tonal-grey)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-fixme .g3mark-callout__icon:before, .message-text[_ngcontent-%COMP%]     .g3mark-callout-todo .g3mark-callout__icon:before{content:"error_outline"}.message-text[_ngcontent-%COMP%]     .g3mark-callout-question{background-color:var(--tonal-fill-cyan);border-left-color:var(--tonal-cyan);color:var(--tonal-cyan)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-question a{color:var(--tonal-cyan)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-question .g3mark-callout__icon:before{content:"help"}.message-text[_ngcontent-%COMP%]     .g3mark-callout-important{background-color:var(--tonal-fill-orange);border-left-color:var(--tonal-orange);color:var(--tonal-orange)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-important a{color:var(--tonal-orange)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-important .g3mark-callout__icon:before{content:"priority_high"}.message-text[_ngcontent-%COMP%]     .g3mark-callout-summary, .message-text[_ngcontent-%COMP%]     .g3mark-callout-tldr{background-color:var(--tonal-fill-purple);border-left-color:var(--tonal-purple);color:var(--tonal-purple)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-summary a, .message-text[_ngcontent-%COMP%]     .g3mark-callout-tldr a{color:var(--tonal-purple)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-summary .g3mark-callout__icon:before, .message-text[_ngcontent-%COMP%]     .g3mark-callout-tldr .g3mark-callout__icon:before{content:"sms"}.message-text[_ngcontent-%COMP%]     .g3mark-callout-best_practice{background-color:var(--tonal-fill-green);border-left-color:var(--tonal-green);color:var(--tonal-green)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-best_practice a{color:var(--tonal-green)}.message-text[_ngcontent-%COMP%]     .g3mark-callout-best_practice .g3mark-callout__icon:before{content:"check_circle"}message-metadata[_ngcontent-%COMP%]{container-type:inline-size}.message-actions[_ngcontent-%COMP%]{margin-left:-16px}.message-actions[_ngcontent-%COMP%]   .copy-message-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{-moz-box-sizing:border-box;box-sizing:border-box;color:var(--text-secondary);font-size:20px;padding:2px}.recitation-sources-banner[_ngcontent-%COMP%]{background-color:var(--tonal-fill-yellow);display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex}.recitation-sources-banner[_ngcontent-%COMP%]   .warning-icon[_ngcontent-%COMP%]{color:var(--tonal-yellow);font-variation-settings:"FILL" 1}.open-in-new-icon[_ngcontent-%COMP%]{margin-left:auto}.dark-mode   [_nghost-%COMP%]     .copy-button, .dark-mode   [_nghost-%COMP%]     .open-in-new-tab-button{-webkit-filter:invert(1);filter:invert(1)}.dark-mode   [_nghost-%COMP%]     .copy-button:hover, .dark-mode   [_nghost-%COMP%]     .open-in-new-tab-button:hover{background-color:var(--tonal-grey)}.dark-mode   [_nghost-%COMP%]     .message-text .plx-button:hover{background-color:var(--tonal-tint-grey)}'],
changeDetection:0});var Xed=["customMessage"],sL=function(){this.messageData=Qg.required.apply(Qg,n([]));this.useCompactView=Qg.apply(null,[!1].concat(n([])));this.isDuckieThinking=Qg.apply(null,[!1].concat(n([])));this.messageTemplate=q(Oed,{optional:!0});this.elementRef=q(Gd);this.customMessage=Rg("customMessage",Object.assign({},{},{read:ig}))};
sL.prototype.ngAfterViewInit=function(){this.messageTemplate&&this.customMessage()&&(this.componentRef=this.customMessage().createComponent(this.messageTemplate),this.componentRef.instance.messageData=qg.apply(null,[this.messageData()].concat(n([]))),this.componentRef.instance.useCompactView=qg.apply(null,[this.useCompactView()].concat(n([]))),this.componentRef.instance.isDuckieThinking=qg.apply(null,[this.isDuckieThinking()].concat(n([]))))};sL.\u0275fac=function(a){return new (a||sL)};
sL.\u0275cmp=C({type:sL,selectors:[["message-wrapper"]],viewQuery:function(a,b){a&1&&rg(b.customMessage,Xed,ig);a&2&&sg()},hostAttrs:[1,"width-almost-full"],hostVars:2,hostBindings:function(a,b){a&2&&yg("use-compact-view",b.useCompactView())},inputs:{messageData:[1,"messageData"],useCompactView:[1,"useCompactView"],isDuckieThinking:[1,"isDuckieThinking"]},decls:2,vars:1,consts:[["customMessage",""],[3,"messageData","useCompactView","isDuckieThinking"]],template:function(a,b){a&1&&F(0,RRa,2,0,"ng-container")(1,
SRa,1,3,"message",1);a&2&&G(b.messageTemplate?0:1)},dependencies:[xy,rL],styles:["[_nghost-%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}"],changeDetection:0});var Zed=function(a,b){this.threadService=a;this.dialogRef=b;this.thread=q(fB).thread;this.inputValue="";Yed(this)},Yed=function(a){y(function(b){a.inputValue=a.thread.title;$d(b)})};Zed.prototype.updateTitle=function(){this.inputValue.length>0&&(wTc(this.threadService,this.inputValue),this.dialogRef.close())};Zed.\u0275fac=function(a){return new (a||Zed)(Ve(fF),Ve(dB))};
Zed.\u0275cmp=C({type:Zed,selectors:[["rename-chat-dialog"]],decls:17,vars:2,consts:[["mat-dialog-title",""],["appearance","outline","color","primary"],["matInput","","required","",3,"ngModelChange","ngModel"],["matIconSuffix","","mat-icon-button","","aria-label","clear",3,"click"],["aria-label","cancel"],["align","end"],["mat-flat-button","","mat-dialog-close",""],["mat-flat-button","","color","primary",3,"click","disabled"]],template:function(a,b){a&1&&(K(0,"h2",0),S(1,"Rename chat"),L(),K(2,"mat-dialog-content")(3,
"mat-form-field",1)(4,"mat-label"),S(5,"Title"),L(),K(6,"input",2),Eg("ngModelChange",function(c){Dg(b.inputValue,c)||(b.inputValue=c);return c}),L(),K(7,"mat-error"),S(8,"This field is required"),L(),K(9,"button",3),N("click",function(){b.inputValue=""}),K(10,"mat-icon",4),S(11,"cancel"),L()()()(),K(12,"mat-dialog-actions",5)(13,"button",6),S(14," Cancel "),L(),K(15,"button",7),N("click",function(){return b.updateTitle()}),S(16," Save "),L()());a&2&&(B(6),Cg("ngModel",b.inputValue),B(9),I("disabled",
b.inputValue.length<1))},dependencies:[mC,xi,PB,hC,WB,ZA,XA,TA,VA,pB,hB,kB,mB,lB,DB,qB,BB,tB,rB,vB,qC,EB,oC,kz,iz],styles:["[_nghost-%COMP%]{display:block;width:max(250 * var(--base-px,1rem),40vw)}.mat-mdc-dialog-title[_ngcontent-%COMP%]{margin-bottom:12px}mat-form-field.mat-mdc-form-field[_ngcontent-%COMP%]{margin-top:4px;width:100%}mat-dialog-actions[_ngcontent-%COMP%]{margin:10px}"],changeDetection:0});var $ed=function(a,b,c,d){this.opacity=1;this.age=0;this.x=a;this.y=b;this.size=Math.random()*(c.maxSize-c.minSize)+c.minSize;var e,f;a=Math.random()*((e=c.spread)!=null?e:0)-((f=c.spread)!=null?f:0)/2;var g;e=(((g=c.angle)!=null?g:0)+a)*(Math.PI/180);var k,m;g=((k=c.speed)!=null?k:0)*((m=c.speedVariation)!=null?m:0);var r;k=((r=c.speed)!=null?r:0)+Math.random()*g*2-g;this.vx=Math.cos(e)*k;this.vy=Math.sin(e)*k*-1;this.rotation=Math.random()*360;this.rotationSpeed=(Math.random()*2-1)*c.rotationSpeed;
var w,x,D;this.duration=Math.random()*(((w=c.maxDuration)!=null?w:0)-((x=c.minDuration)!=null?x:0))+((D=c.minDuration)!=null?D:0);this.gravity=c.gravity;this.drag=c.drag;var H;this.rotation3d=(H=c.rotation3d)!=null?H:!1;this.rotationY=Math.random()*360;this.type=d[Math.floor(Math.random()*d.length)];switch(this.type){case "svg":break;case "emoji":break;case "shape":this.shape=c.shapes[Math.floor(Math.random()*c.shapes.length)];this.color=c.colors[Math.floor(Math.random()*c.colors.length)];this.cacheKey=
this.shape+"_"+this.color;break;default:console.warn("Unknown particle type: "+this.type)}};$ed.prototype.update=function(a){var b=a/(1E3/60);this.vx*=Math.pow(1-this.drag,b);this.vy*=Math.pow(1-this.drag,b);this.vy+=this.gravity*b;this.x+=this.vx*b;this.y+=this.vy*b;this.age+=a/1E3;this.rotation+=this.rotationSpeed*b;this.rotation3d&&(this.rotationY+=this.rotationSpeed*b);a=Math.min(this.age/this.duration,1);this.opacity=a>.6?1-(a-.6)/.4:1};
var tL=function(){this.particleCache=new Map;this.svgCache=new Map;this.emojiCache=new Map;this.particles=[];this.animationFrameId=null;this.lastFrameTime=0;this.canvasInitialized=!1;this.config={particleCount:100,angle:90,colors:"#ff6b6b #4ecdc4 #45b7d1 #f9ca24 #6c5ce7 #ff9ff3 #54a0ff".split(" "),svgs:[],emojis:[],shapes:["square","circle","triangle","star"],minSize:5,maxSize:20,speed:40,speedVariation:.5,spread:90,minDuration:1,maxDuration:3,rotationSpeed:5,rotation3d:!0,gravity:.5,drag:.15}},bfd=
function(a,b){b.forEach(function(c){afd(a,c)})};tL.prototype.setConfig=function(a){this.config=Object.assign({},this.config,a)};tL.prototype.getConfig=function(){return Object.assign({},this.config)};
tL.prototype.launch=function(a,b,c){var d=this;c=c===void 0?this.config:c;cfd(this);if(this.context&&!this.prefersReducedMotion){var e=Object.assign({},this.config,c),f,g,k=(g=(f=e.x)!=null?f:a)!=null?g:window.innerWidth/2,m,r,w=(r=(m=e.y)!=null?m:b)!=null?r:window.innerHeight/2,x=[];e.svgs&&e.svgs.length>0&&x.push("svg");e.emojis&&e.emojis.length>0&&x.push("emoji");x.length===0&&e.shapes&&e.shapes.length>0&&x.push("shape");a=[];e.svgs&&e.svgs.length>0&&(b=[].concat(n(new Set(e.svgs))),a.push.apply(a,
n(b.map(function(D){return afd(d,D)}))));e.emojis&&e.emojis.length>0&&(b=[].concat(n(new Set(e.emojis))),a.push.apply(a,n(b.map(function(D){return dfd(d,D)}))));a.length>0?Promise.all(a).then(function(){efd(d,k,w,e,x)}):efd(this,k,w,e,x)}};
var efd=function(a,b,c,d,e){if(e.length!==0){for(var f=[],g=0;g<d.particleCount;g++){var k=new $ed(b,c,d,e);switch(k.type){case "svg":k.svgImage=a.svgCache.get(d.svgs[Math.floor(Math.random()*d.svgs.length)]);break;case "emoji":k.emojiImage=a.emojiCache.get(d.emojis[Math.floor(Math.random()*d.emojis.length)]);break;case "shape":break;default:console.warn("Unknown particle type: "+k.type)}f.push(k)}a.particles.push.apply(a.particles,n(f));a.animationFrameId||(a.lastFrameTime=performance.now(),ffd(a))}},
cfd=function(a){a.canvasInitialized||(a.canvas=document.createElement("canvas"),a.canvas.classList.add("confetti-canvas"),a.canvas.style.position="fixed",a.canvas.style.top="0",a.canvas.style.left="0",a.canvas.style.width="100%",a.canvas.style.height="100%",a.canvas.style.pointerEvents="none",a.canvas.style.zIndex="10000",a.canvas.style.transform="translateZ(0)",document.body.appendChild(a.canvas),a.context=a.canvas.getContext("2d"),a.resizeCanvas(),window!==void 0&&window.addEventListener&&window.addEventListener("resize",
function(){a.resizeCanvas()}),a.canvasInitialized=!0)};tL.prototype.resizeCanvas=function(){this.canvas&&(this.canvas.width=window.innerWidth,this.canvas.height=window.innerHeight)};
var ffd=function(a){if(a.context){var b=performance.now(),c=b-a.lastFrameTime;a.lastFrameTime=b;a.context&&a.context.clearRect(0,0,a.canvas.width,a.canvas.height);b=[];for(var d=l(a.particles),e=d.next();!e.done;e=d.next())e=e.value,e.update(c),e.age>=e.duration||(b.push(e),gfd(a,e));a.particles=b;a.particles.length>0?a.animationFrameId=requestAnimationFrame(function(){ffd(a)}):a.animationFrameId=null}else a.animationFrameId=null},gfd=function(a,b){if(a.context){if(b.type==="shape"&&b.cacheKey&&!a.particleCache.has(b.cacheKey)){var c=
b.cacheKey,d=document.createElement("canvas"),e=d.getContext("2d");d.width=64;d.height=64;e.fillStyle=b.color;e.translate(32,32);switch(b.shape){case "circle":e.beginPath();e.arc(0,0,32,0,2*Math.PI);e.fill();break;case "triangle":e.beginPath();e.moveTo(0,-32);e.lineTo(32,32);e.lineTo(-32,32);e.closePath();e.fill();break;case "star":var f=Math.PI/2*3,g=Math.PI/5;e.beginPath();e.moveTo(0,-32);for(var k=0;k<5;k++){var m=Math.cos(f)*32;var r=Math.sin(f)*32;e.lineTo(m,r);f+=g;m=Math.cos(f)*16;r=Math.sin(f)*
16;e.lineTo(m,r);f+=g}e.lineTo(0,-32);e.closePath();e.fill();break;case "square":e.fillRect(-32,-32,64,64);break;default:console.warn("Unknown particle shape: "+b.shape)}a.particleCache.set(c,d)}a.context.save();a.context.globalAlpha=b.opacity;a.context.translate(b.x,b.y);a.context.rotate(b.rotation*Math.PI/180);b.rotation3d&&a.context.scale(1,Math.cos(b.rotationY*Math.PI/180));switch(b.type){case "emoji":var w=b.emojiImage;break;case "svg":w=b.svgImage;break;case "shape":w=a.particleCache.get(b.cacheKey);
break;default:console.warn("Unknown particle type: "+b.type)}w&&a.context.drawImage(w,-b.size/2,-b.size/2,b.size,b.size);a.context.restore()}},hfd=function(a,b,c){return new Promise(function(d){var e=new Image,f=(new TextEncoder).encode(b);f=String.fromCharCode.apply(String,n(f));f="data:image/svg+xml;base64,"+btoa(f);e.onload=function(){a.svgCache.set(c,e);d(e)};e.onerror=function(){console.error("Error loading SVG from data URL: "+c);d(new Image)};e.src=f})},afd=function(a,b){return a.svgCache.has(b)?
Promise.resolve(a.svgCache.get(b)):b.trim().startsWith("<svg")?hfd(a,b,b):fetch(b).then(function(c){if(!c.ok)throw Error("Zc`"+c.status);return c.text()}).then(function(c){return hfd(a,c,b)}).catch(function(c){console.error("Error fetching SVG: "+b,c);return new Image})},dfd=function(a,b){return new Promise(function(c){if(a.emojiCache.has(b))c(a.emojiCache.get(b));else try{var d=document.createElement("canvas"),e=d.getContext("2d");if(e){d.width=64;d.height=64;e.font="51.2px sans-serif";e.textAlign=
"center";e.textBaseline="middle";e.fillText(b,32,32);var f=new Image;f.onload=function(){a.emojiCache.set(b,f);c(f)};f.onerror=function(){console.error("Error loading emoji image generated from canvas: "+b);c(new Image)};f.src=d.toDataURL()}else c(new Image)}catch(g){console.error("Error creating emoji image: "+b,g),c(new Image)}})};da.Object.defineProperties(tL.prototype,{prefersReducedMotion:{configurable:!0,enumerable:!0,get:function(){return typeof window==="undefined"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}}});
tL.\u0275fac=function(a){return new (a||tL)};tL.\u0275prov=Cc({token:tL,factory:tL.\u0275fac,providedIn:"root"});var ifd={HELPFULNESS_UNSPECIFIED:0,HELPFUL:1,UNHELPFUL:2,DISMISSED:3};var jfd=new bd("SessionHelpfulButtonTemplate"),kfd=function(){var a=this;this.closeButton=Pg();this.messageFeedbackUpdate=Pg();this.helpfulness=ifd;this.messageData=Qg.apply(null,[null].concat(n([])));this.configurationKey=Qg.apply(null,n([]));this.pageId=Qg.apply(null,n([]));this.confirmationMessage="Thank you for your feedback, it helps improve Duckie";this.timeoutId=this.helpfulnessSelected=0;this.confettiService=q(tL);this.duckieFeedbackService=q(oL);this.clientConfiguration=ah.apply(null,[function(){var b;
return POa((b=a.configurationKey())!=null?b:"")}].concat(n([])));this.experimentsService=q(PA);this.feedbackAnimationsEnabled=this.experimentsService.feedbackAnimationsEnabled;this.showConfetti=ah.apply(null,[function(){return a.clientConfiguration()===void 0&&a.feedbackAnimationsEnabled}].concat(n([])));this.positiveFeedbackConfettiOptions={particleCount:40,minDuration:1,maxDuration:2,minSize:28,maxSize:48,svgs:["https://www.gstatic.com/devnotify/duckie_margin.svg"]};this.negativeFeedbackConfettiOptions=
{particleCount:12,gravity:.15,drag:.05,speed:12,speedVariation:.5,spread:160,minSize:32,maxSize:48,minDuration:1.5,maxDuration:2.5,rotationSpeed:4,rotation3d:!1,colors:[],shapes:[],svgs:['<svg width="172" height="174" viewBox="0 0 172 174" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M83.9115 12.9936C103.049 12.9936 126.247 18.7611 128.102 46.2294C128.197 47.6055 128.237 48.7792 128.237 49.9125C128.237 59.6532 126.227 67.4916 122.267 73.2052C118.287 78.9457 112.311 82.7503 104.007 84.8279C98.5631 86.1905 92.175 86.8246 83.9115 86.8246C74.2653 86.8246 67.0609 86.0624 61.2192 84.4299C46.2574 80.2409 39.5859 69.5895 39.5859 49.9057C39.5859 24.7243 53.6708 12.9936 83.9115 12.9936Z" fill="#C735FC" style="fill:#C735FC;fill:color(display-p3 0.7801 0.2078 0.9882);fill-opacity:1;"/> <path d="M58.7334 86.4356C59.3135 86.6251 59.9041 86.8063 60.5067 86.975C66.6742 88.6985 74.1478 89.4675 83.9116 89.4676C92.2992 89.4675 98.9214 88.825 104.648 87.3915C105.353 87.2152 106.042 87.0254 106.719 86.8245C109.898 87.9133 112.784 89.3219 115.333 91.1264C124.676 97.0695 130.672 106.908 130.672 122.206C130.672 155.05 108.203 161.006 82.4481 161.006C59.9312 161.006 42.6149 157.188 36.564 138.881C29.643 138.146 23.7067 135.825 18.9039 131.656C15.9493 129.093 11.956 124.323 15.1939 124.418C21.6898 124.6 28.6846 122.225 34.2969 119.635C34.9374 104.23 41.3569 94.7243 51.668 89.3428C53.8646 88.1674 56.2305 87.2107 58.7334 86.4356Z" fill="#C735FC" style="fill:#C735FC;fill:color(display-p3 0.7801 0.2078 0.9882);fill-opacity:1;"/> <path d="M131.192 48.1451C136.797 52.0981 147.449 58.3985 158.181 58.1692C161.797 58.0882 163.389 62.7495 160.529 64.9688C152.029 71.5593 139.192 78.3454 124.878 74.9726C129.134 68.7598 131.232 60.6246 131.232 50.3577C131.232 49.6292 131.212 48.8872 131.185 48.1451H131.192Z" fill="#E67225" style="fill:#E67225;fill:color(display-p3 0.9020 0.4471 0.1451);fill-opacity:1;"/> <path d="M90.6447 33.4708C86.0771 34.474 82.3253 36.8714 79.445 40.6142C78.8732 41.3572 79.0108 42.4213 79.7522 42.9911C80.4936 43.5609 81.5582 43.4206 82.1299 42.6776C84.5286 39.5606 87.5879 37.6117 91.3634 36.7825C95.0407 35.9748 98.4766 36.4325 101.745 38.1536C104.925 39.8283 107.146 42.279 108.468 45.5516C109.752 48.7321 109.86 51.8869 108.809 55.0886C107.789 58.1963 105.933 60.5606 103.208 62.2475C100.566 63.8826 97.7778 64.4642 94.7755 64.0211C91.8696 63.5921 89.5061 62.312 87.6136 60.1588C85.7848 58.078 84.8669 55.7167 84.8189 53.0121C84.7726 50.4033 85.5483 48.1507 87.1546 46.1794C88.7009 44.2816 90.6139 43.1401 92.9482 42.702C95.1904 42.2812 97.2311 42.6207 99.1465 43.7144C100.982 44.7624 102.214 46.2244 102.905 48.1446C103.566 49.9792 103.555 51.7383 102.894 53.4966C102.264 55.1713 101.216 56.388 99.7184 57.2186C98.2967 58.0068 96.8649 58.2282 95.3521 57.9194C93.9224 57.6276 92.8263 56.9453 91.9845 55.8558C91.1927 54.8312 90.8568 53.7459 90.924 52.5355C90.987 51.4036 91.3828 50.505 92.1112 49.7537C92.7878 49.0558 93.5356 48.7062 94.4099 48.6344C95.2159 48.5683 95.8549 48.7592 96.4194 49.1848C96.9354 49.5738 97.1958 50.0102 97.2951 50.5373C97.3851 51.0149 97.3061 51.3536 97.112 51.659C96.9367 51.9347 96.7771 52.0208 96.6037 52.0605C96.5963 52.0622 96.5892 52.0634 96.5825 52.0648C96.3879 51.3399 95.7245 50.8088 94.9381 50.8142C94.0019 50.8206 93.2461 51.5849 93.2499 52.5212C93.2541 53.5505 93.7934 54.3436 94.5181 54.8518C95.3833 55.4587 96.3817 55.5876 97.3516 55.3656C98.4811 55.1071 99.3643 54.4283 99.9719 53.4725C100.664 52.3843 100.864 51.1586 100.627 49.901C100.362 48.4949 99.6102 47.3385 98.4652 46.4752C97.2033 45.5238 95.7311 45.1246 94.1415 45.2551C92.4093 45.3973 90.9036 46.1348 89.68 47.3969C88.3588 48.7597 87.6452 50.4416 87.5388 52.3566C87.4247 54.409 88.0291 56.2896 89.2995 57.9337C90.6528 59.685 92.4679 60.7932 94.6654 61.2418C96.9939 61.717 99.2479 61.3519 101.356 60.183C103.58 58.9498 105.161 57.0923 106.067 54.6825C107.02 52.1501 107.022 49.5602 106.096 46.9878C105.125 44.2933 103.35 42.2056 100.834 40.7688C98.2057 39.2681 95.3463 38.8037 92.3316 39.3695C89.1912 39.9588 86.5719 41.5339 84.5285 44.0417C82.4047 46.6483 81.3686 49.6866 81.4289 53.0816C81.4915 56.6028 82.7169 59.7303 85.0642 62.4012C87.4944 65.1662 90.5874 66.8317 94.2715 67.3755C98.0792 67.9376 101.674 67.1793 104.986 65.1294C108.404 63.0139 110.764 59.995 112.03 56.1384C113.335 52.1639 113.191 48.1852 111.612 44.2748C109.987 40.25 107.207 37.194 103.331 35.1526C99.3458 33.0539 95.0925 32.4938 90.6447 33.4708Z" fill="black" style="fill:black;fill-opacity:1;"/> </svg>'],
emojis:["\ud83d\ude21","\u2049\ufe0f","\u203c\ufe0f","\u2753"]};bfd(this.confettiService,this.positiveFeedbackConfettiOptions.svgs)};kfd.prototype.ngOnChanges=function(a){a=a.messageData;if(a.firstChange||!a.firstChange&&a.previousValue.sessionId!==a.currentValue.sessionId){var b,c,d;this.helpfulnessSelected=(d=(b=this.messageData())==null?void 0:(c=b.feedback)==null?void 0:c.getHelpfulness())!=null?d:0}};
var lfd=function(a){clearTimeout(a.timeoutId);a.closeButton.emit()},nfd=function(a,b,c,d){d=d===void 0?!1:d;a.helpfulnessSelected=b===1?a.helpfulnessSelected===1?0:1:b===2?a.helpfulnessSelected===2?0:2:b;a.showConfetti()&&c&&(a.helpfulnessSelected===1?a.confettiService.launch(c.clientX,c.clientY,a.positiveFeedbackConfettiOptions):a.helpfulnessSelected===2&&a.confettiService.launch(c.clientX,c.clientY,a.negativeFeedbackConfettiOptions));a.duckieFeedbackService.provideFeedback(oLc(mfd(a),a.helpfulnessSelected));
clearTimeout(a.timeoutId);var e,f;a.messageFeedbackUpdate.emit({messageId:(f=(e=a.messageData())==null?void 0:e.id)!=null?f:"",helpfulness:a.helpfulnessSelected});d?lfd(a):a.timeoutId=setTimeout(function(){lfd(a)},3E3)},mfd=function(a){var b,c,d=(new VC).setMessageId((b=a.messageData())==null?void 0:b.id).setSessionId((c=a.messageData())==null?void 0:c.sessionId).setFeedbackType(0),e;a=(e=a.messageData())==null?void 0:e.feedback;if(!a)return d;a.hasFeedbackType()&&d.setFeedbackType(a.getFeedbackType());
a.hasFeedbackReason()&&d.setFeedbackReason(a.getFeedbackReason());a.getFeedbackLabelsList().length>0&&d.addAllFeedbackLabels(a.getFeedbackLabelsList());return d};kfd.\u0275fac=function(a){return new (a||kfd)};
kfd.\u0275cmp=C({type:kfd,selectors:[["session-helpful-button"]],hostAttrs:[1,"align-self-center"],inputs:{messageData:[1,"messageData"],configurationKey:[1,"configurationKey"],pageId:[1,"pageId"]},outputs:{closeButton:"closeButton",messageFeedbackUpdate:"messageFeedbackUpdate"},features:[Gx],decls:12,vars:7,consts:[[1,"font-google-sans-text","gmat-body-2","session-helpful-button"],[1,"message-text"],["mat-icon-button","","aria-label","Session is helpful",1,"helpful-button",3,"click"],["mat-icon-button",
"","aria-label","Session is not helpful",1,"not-helpful-button",3,"click"],["mat-icon-button","","aria-label","Close session helpful prompt",1,"close-helpfulness-button",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"span",1),S(2),L(),K(3,"button",2),N("click",function(c){return nfd(b,b.helpfulness.HELPFUL,c)}),K(4,"mat-icon"),S(5),L()(),K(6,"button",3),N("click",function(c){return nfd(b,b.helpfulness.UNHELPFUL,c)}),K(7,"mat-icon"),S(8),L()(),K(9,"button",4),N("click",function(){return nfd(b,
b.helpfulness.DISMISSED,void 0,!0)}),K(10,"mat-icon"),S(11," close "),L()()());a&2&&(B(2),T(" ",b.helpfulnessSelected===b.helpfulness.HELPFUL||b.helpfulnessSelected===b.helpfulness.UNHELPFUL?b.confirmationMessage:"Is this conversation helpful?"," "),B(2),yg("is-selected",b.helpfulnessSelected===b.helpfulness.HELPFUL),B(),T(" ",b.helpfulnessSelected===b.helpfulness.HELPFUL?"thumb_up_filled":"thumb_up"," "),B(2),yg("is-selected",b.helpfulnessSelected===b.helpfulness.UNHELPFUL),B(),T(" ",b.helpfulnessSelected===
b.helpfulness.UNHELPFUL?"thumb_down_filled":"thumb_down"," "))},dependencies:[xy,kz,iz,ZA,XA,VA],styles:['.session-helpful-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;border-radius:calc(var(--base-px, 1rem)*12);padding:calc(var(--base-px, 1rem)*4) calc(var(--base-px, 1rem)*4) calc(var(--base-px, 1rem)*6) calc(var(--base-px, 1rem)*16);box-shadow:0 1px 2px 0 var(--elevation),0 1px 3px 1px var(--elevation);height:auto}.session-helpful-button[_ngcontent-%COMP%]   .message-text[_ngcontent-%COMP%]{margin-right:calc(var(--base-px, 1rem)*8)}.session-helpful-button[_ngcontent-%COMP%]   .gmat-mdc-button.mat-mdc-icon-button[_ngcontent-%COMP%]{width:calc(var(--base-px, 1rem)*36);height:calc(var(--base-px, 1rem)*36)}.session-helpful-button[_ngcontent-%COMP%]   .gmat-mdc-button.mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{width:calc(var(--base-px, 1rem)*18);height:calc(var(--base-px, 1rem)*18);font-size:calc(var(--base-px, 1rem)*18)}.session-helpful-button[_ngcontent-%COMP%]   .gmat-mdc-button.mat-mdc-icon-button[_ngcontent-%COMP%]   .mat-icon.is-selected[_ngcontent-%COMP%]{color:var(--text-high-contrast);font-variation-settings:"FILL" 1}'],
changeDetection:0});var ofd=["customSessionHelpfulButton"],pfd=function(){this.messageData=Qg.apply(null,n([]));this.messageFeedbackUpdate=Pg();this.closeButton=Pg();this.sessionHelpfulButtonTemplate=q(jfd,{optional:!0});this.customSessionHelpfulButton=Rg("customSessionHelpfulButton",Object.assign({},{},{read:ig}))};
pfd.prototype.ngAfterViewInit=function(){var a=this;this.sessionHelpfulButtonTemplate&&this.customSessionHelpfulButton()&&(this.componentRef=this.customSessionHelpfulButton().createComponent(this.sessionHelpfulButtonTemplate),this.componentRef.instance.messageData=qg.apply(null,[this.messageData()].concat(n([]))),this.componentRef.instance.closeButton.subscribe(function(){a.closeButton.emit()}),this.componentRef.instance.messageFeedbackUpdate.subscribe(function(b){a.messageFeedbackUpdate.emit(b)}))};
pfd.\u0275fac=function(a){return new (a||pfd)};
pfd.\u0275cmp=C({type:pfd,selectors:[["session-helpful-button-wrapper"]],viewQuery:function(a,b){a&1&&rg(b.customSessionHelpfulButton,ofd,ig);a&2&&sg()},hostAttrs:[1,"align-self-center"],inputs:{messageData:[1,"messageData"]},outputs:{messageFeedbackUpdate:"messageFeedbackUpdate",closeButton:"closeButton"},decls:2,vars:1,consts:[["customSessionHelpfulButton",""],[3,"messageData"],[3,"closeButton","messageFeedbackUpdate","messageData"]],template:function(a,b){a&1&&F(0,TRa,2,0,"ng-container")(1,URa,
1,1,"session-helpful-button",1);a&2&&G(b.sessionHelpfulButtonTemplate?0:1)},dependencies:[xy,kfd],encapsulation:2,changeDetection:0});var qfd=new bd("ThreadSourceHeaderTemplate"),rfd={imgSrc:"https://moma.corp.google.com/images/new_logo/color/moma_n_favicon.svg",imgAlt:"Moma logo",title:"From Moma search"},sfd={imgSrc:"https://static.corp.google.com/yaqs/static/img/logo/yaqs_32x32.svg",imgAlt:"YAQS logo",title:"From YAQS"},uL=function(){this.thread=Qg.required.apply(Qg,n([]));this.config=null};
uL.prototype.ngOnChanges=function(a){a=a.thread;(a.firstChange||!a.firstChange&&a.previousValue.threadSource!==a.currentValue.threadSource)&&tfd(this)};uL.prototype.ngOnInit=function(){tfd(this)};var tfd=function(a){switch(a.thread().threadSource){case "MOMA":a.config=rfd;break;case "YAQS":a.config=sfd;break;default:a.config=null}};uL.\u0275fac=function(a){return new (a||uL)};
uL.\u0275cmp=C({type:uL,selectors:[["thread-source-header"]],inputs:{thread:[1,"thread"]},features:[Gx],decls:1,vars:1,consts:[[1,"flex-row","align-items-center","gap-s","margin-xs-top","text-secondary","gmat-caption","font-google-sans-text","medium"],["height","12","width","12",3,"src","alt"]],template:function(a,b){a&1&&F(0,VRa,3,3,"div",0);a&2&&G(b.config?0:-1)},encapsulation:2,changeDetection:0});var ufd=["customThreadSourceHeader"],vL=function(){this.thread=Qg.required.apply(Qg,n([]));this.threadSourceHeaderTemplate=q(qfd,{optional:!0});this.customThreadSourceHeader=Rg("customThreadSourceHeader",Object.assign({},{},{read:ig}))};vL.prototype.ngAfterViewInit=function(){this.threadSourceHeaderTemplate&&this.customThreadSourceHeader()&&(this.componentRef=this.customThreadSourceHeader().createComponent(this.threadSourceHeaderTemplate),this.componentRef.instance.thread=qg.apply(null,[this.thread()].concat(n([]))))};
vL.\u0275fac=function(a){return new (a||vL)};vL.\u0275cmp=C({type:vL,selectors:[["thread-source-header-wrapper"]],viewQuery:function(a,b){a&1&&rg(b.customThreadSourceHeader,ufd,ig);a&2&&sg()},inputs:{thread:[1,"thread"]},decls:2,vars:1,consts:[["customThreadSourceHeader",""],[3,"thread"]],template:function(a,b){a&1&&F(0,WRa,2,0,"ng-container")(1,XRa,1,1,"thread-source-header",1);a&2&&G(b.threadSourceHeaderTemplate?0:1)},dependencies:[xy,uL],encapsulation:2,changeDetection:0});var rSa=function(a,b){return b.trackingId},vfd=new bd("ThreadTemplate"),wL=function(){var a=this;this.useCompactView=Qg.apply(null,[!1].concat(n([])));this.inputPlaceholder=Qg.apply(null,["Ask anything"].concat(n([])));this.dialog=q(gB);this.viewContainerRef=q(ig);this.snackBar=q(LD);this.routingService=q(BD);this.liveAnnouncer=q(Cz);this.userStateService=q(PD);this.duckieEventTrackerService=q(IE);this.experimentsService=q(PA);this.userContextService=q(QA);this.threadService=q(fF);this.overridesService=
q(CC);this.conversationAgentsService=q(zD);this.messagePartsService=q(qL);this.sessionDeletionEnabled=this.experimentsService.duckieSessionDeletionEnabled;this.DYNAMIC_DUCKIE_AGENT_INFO=Zw;this.DYNAMIC_DUCKIE_M_AGENT_INFO=$w;this.M_DUCKIE_AGENT_INFO=Yw;this.SESSION_STATE_DEPRECATED=4;this.duckieBigBirdOutageEnabled=this.experimentsService.duckieBigBirdStrikeEnabled;this.showBigBirdOutageBanner=!1;this.maxVisibleUserProvidedContextCount=3;this.shouldShowSessionHelpfulButton=this.showExpandedContext=
!1;this.followUpQuestion="";this.showExperimentalAgentBanner=!1;this.experimentalAgentIds=[];this.messages=Woa.apply(null,[sL].concat(n([])));this.prevThreadLength=0;this.isIncognitoMode$=this.userStateService.isEnforcedPrivateMode$;this.thread$=this.threadService.currentThread$.pipe(Bf(function(b){if(b){if(a.prevThreadLength<b.messages.length)wfd(a);else{var c;if(c=b.messages.length>0&&!b.messages[b.messages.length-1].isStreamingThoughts){c=a.messagePartsService;var d=[].concat(n(c.expansionStates.keys()))[c.expansionStates.size-
1];c=!c.isExpanded(d)}c&&wfd(a)}a.shouldShowSessionHelpfulButton=xfd(a,b);a.prevThreadLength=b.messages.length}}),wf({bufferSize:1,refCount:!0}));this.hasPrivateContent$=this.thread$.pipe(A(function(b){return b?b.privacyMode===2:!1}));this.firstPrivateContentMessageIndex$=this.thread$.pipe(A(function(b){return b?b.messages.findIndex(function(c){return c.hasPrivateContent}):-1}));this.userProvidedContext$=this.thread$.pipe(A(function(b){return b?CIc(b):[]}));this.lastDuckieMessage$=this.thread$.pipe(A(function(b){if(b&&
(b=b.messages.slice().reverse().find(function(c){return!c.isUser&&c.id}),b!==null&&b))return b}));this.isLoadingThread$=this.threadService.isLoadingThread$.pipe(wf({bufferSize:1,refCount:!0}));this.destroyed$=new vf(1);this.ve={ZeroStateSuggestionChipButton:201127}};
wL.prototype.ngOnInit=function(){var a=this;this.thread$.pipe(Af(this.destroyed$)).subscribe(function(c){var d=!(c==null||!c.serverId);!a.routingService.snapshot.params.id&&d&&lOa(a.routingService,c.serverId,{replaceUrl:!0});c&&c.conversationAgentId&&(a.showExperimentalAgentBanner=a.experimentalAgentIds.includes(c.conversationAgentId))});this.routingService.params.pipe(Af(this.destroyed$)).subscribe(function(c){var d,e,f,g,k,m,r,w;return y(function(x){switch(x.nextAddress){case 1:return z(x,ee(a.thread$),
2);case 2:return d=x.yieldResult,f=(e=d)==null?void 0:e.serverId,g=c.id,f&&g&&g===f?x.return():g?(Vd(x,9),z(x,uTc(a.threadService,g),11)):z(x,ee(a.threadService.isLoadingThread$),5);case 5:return k=x.yieldResult,z(x,ee(a.threadService.isDuckieThinking$),6);case 6:m=x.yieldResult;if(k||m){x.jumpTo(0);break}return z(x,XNc(a.routingService),0);case 11:bk(x,0);break;case 9:if(w=r=Zd(x),w.code!==5)x.jumpTo(0);else return a.snackBar.open("Thread not found.","Dismiss"),z(x,XNc(a.routingService),0)}})});
var b=!1;this.threadService.isDuckieThinking$.pipe(Af(this.destroyed$),of()).subscribe(function(c){c?(a.liveAnnouncer.announce("Thinking...","polite"),b=!0):b&&(a.liveAnnouncer.announce("Reply ready.","polite"),b=!1)})};wL.prototype.addMessage=function(a){var b=this;return y(function(c){return z(c,DTc(b.threadService,a),0)})};
var $Ra=function(a){var b;return y(function(c){if(c.nextAddress==1)return z(c,ee(a.thread$),2);b=c.yieldResult;if(!b)return c.return();a.dialog.open(Zed,{panelClass:"rename-chat-dialog-panel",data:{thread:b},viewContainerRef:a.viewContainerRef});$d(c)})},wfd=function(a){requestAnimationFrame(function(){var b;(b=a.messages().slice().reverse().find(function(c){return c.messageData().isUser}))==null||b.elementRef.nativeElement.scrollIntoView()})},uSa=function(a,b){return y(function(c){return z(c,FTc(a.threadService,
b.messageId,b.helpfulness),0)})},xfd=function(a,b){var c=b.messages.length>=2&&!b.messages[b.messages.length-1].hasRedactions&&!b.messages.some(function(d){return d&&d.feedback&&(d.feedback.getHelpfulness()===1||d.feedback.getHelpfulness()===2||d.feedback.getHelpfulness()===3)});c&&yfd(a,b);return c},yfd=function(a,b){var c,d=(c=b.serverId)!=null?c:"",e;b=(e=b.messages[b.messages.length-1].id)!=null?e:"";b.length>0&&(a=a.duckieEventTrackerService,e=new om,c=new RD,c=jj(c,6,!0),mm(a,nm(aOc(e,c).setMessageId(b).setSessionId(d)),
256701))},qSa=function(a){var b=b===void 0?!0:b;var c,d,e,f,g,k;return y(function(m){switch(m.nextAddress){case 1:return d=c="",e="###### *Disclaimer: Duckie can make mistakes. Consider double-checking its responses.*",f=a.thread$.pipe(A(function(r){if(!r)return"";c=r.title||"# Untitled";r.serverId&&b&&(d="\n[Duckie Link](https://duckie.corp.google.com/thread/"+r.serverId+")");return r.messages.map(function(w){var x=(w.isUser?"## User:":"## Duckie:")+"\n\n"+w.text;w=a.getSourcesMarkdown(w);w.length>
0&&(x+="\n\n### Sources:\n"+w);return x}).join("\n\n")})),z(m,ee(f),2);case 2:return g=m.yieldResult,k="# "+c+d+"\n\n"+g+"\n\n"+e,Vd(m,3),z(m,navigator.clipboard.writeText(k),5);case 5:a.snackBar.open("Copied conversation to clipboard.","Dismiss",{duration:2E3});bk(m,0);break;case 3:Zd(m),a.snackBar.open("Failed to copy to clipboard.","Dismiss",{duration:4E3}),$d(m)}})};
wL.prototype.getSourcesMarkdown=function(a){var b="",c;(c=a.relatedResources)==null||c.forEach(function(d){var e;(d=(e=zm(d))==null?void 0:Am(e))&&d.length>0&&d.forEach(function(f){b+="\n* ["+f.getTitle().trim()+"]("+f.getUrl()+")"})});return b};wL.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};wL.\u0275fac=function(a){return new (a||wL)};
wL.\u0275cmp=C({type:wL,selectors:[["thread"]],viewQuery:function(a,b){a&1&&rg(b.messages,sL);a&2&&sg()},hostVars:2,hostBindings:function(a,b){a&2&&yg("use-compact-view",b.useCompactView())},inputs:{useCompactView:[1,"useCompactView"],inputPlaceholder:[1,"inputPlaceholder"]},decls:8,vars:11,consts:[["shareMenu","matMenu"],["mode","indeterminate",1,"align-self-center","margin-auto-y",3,"diameter"],[3,"messageData"],[1,"margin-s-top",3,"submitMessage","inputText","inputPlaceholder"],[1,"thread-heading",
"padded-s-y","border-bottom"],[3,"thread"],[1,"thread-title-container","flex-row"],[1,"thread-title"],["appearance","input","disabled",""],[1,"right-side-buttons"],["mat-icon-button","","aria-label","sharing options",1,"sharing-menu-button",3,"matMenuTriggerFor"],["fontSet","google-symbols"],["mat-menu-item","",3,"click"],[1,"duckie-warning-banner","flex-row","align-items-center","gap","padded-s-bottom"],[1,"user-context-bar"],[1,"duckie-experiment-banner"],[1,"incognito-mode-banner","bg-primary-container",
"flex-row","align-items-center","gap"],["id","expanded-contexts-view",1,"expanded-contexts-view"],[1,"banner-wrapper"],[1,"thread-container","flex-column","full-width","margin-bottom"],["mat-icon-button","","aria-label","Rename chat",1,"rename-chat-button"],["role","button","matTooltip","Title edit has been disabled as your\n                personal results are used in this thread",3,"matTooltipDisabled"],["mat-icon-button","","aria-label","Rename chat",1,"rename-chat-button",3,"disabled"],["mat-icon-button",
"","aria-label","Rename chat",1,"rename-chat-button",3,"click"],["matTooltip","This thread is using a deprecated model and cannot be continued.","matTooltipShowDelay","500"],[1,"user-context-bar-title","gmat-subhead-2"],["matTooltipClass","context-tooltip",3,"label","iconUrl","linkUrl","matTooltip"],[1,"more-context-counter"],[1,"spacer"],["mat-icon-button","","aria-label","Expand context","aria-controls","expanded-contexts-view",1,"expand-context-button",3,"click"],["matTooltipShowDelay","500",3,
"matTooltip"],["href","http://go/duckie-incognito-mode","target","_blank","mat-button","","color","primary","aria-label","Learn more",1,"learn-more-button"],[1,"context-item"],["alt","context.imgAlt",3,"src"],["target","_blank",3,"href"],[3,"messageData","useCompactView","isDuckieThinking"],[3,"closeButton","messageFeedbackUpdate","messageData"]],template:function(a,b){if(a&1){var c=t();bg(0);U(1,"async");F(2,YRa,1,1,"mat-progress-spinner",1);U(3,"async");Mf(4,tSa,3,4);F(5,vSa,2,3,"session-helpful-button-wrapper",
2);U(6,"async");K(7,"message-input-wrapper",3);N("submitMessage",function(d){u(c);return v(b.addMessage(d))});L()}a&2&&(cg(W(1,4,b.userProvidedContext$)),B(2),G(W(3,7,b.isLoadingThread$)?2:4),B(3),G(b.shouldShowSessionHelpfulButton&&!W(6,9,b.threadService.isDuckieThinking$)?5:-1),B(2),I("inputText",b.followUpQuestion)("inputPlaceholder",b.inputPlaceholder()))},dependencies:[xy,mC,ZA,XA,TA,VA,JK,BK,IK,HK,fK,eK,NI,iK,hK,MA,kz,iz,PF,LF,JF,OF,rdd,ndd,HE,OA,NA,sL,RF,pfd,vL,mK,py],styles:['@charset "UTF-8";[_nghost-%COMP%]{height:100%;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;-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.thread-container[_ngcontent-%COMP%], .thread-heading[_ngcontent-%COMP%], message-input[_ngcontent-%COMP%]{padding-left:24px;padding-right:24px}.thread-container[_ngcontent-%COMP%]{-moz-box-sizing:border-box;box-sizing:border-box;overflow:auto;padding-top:24px;container-type:inline-size}.thread-heading[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-bottom:auto;min-height:48px}@media (max-width:800px){.thread-heading[_ngcontent-%COMP%]{display:none}}.thread-heading[_ngcontent-%COMP%]   .duckie-on-gemini-banner[_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;gap:4px;background:var(--tonal-fill-yellow);padding:4px 24px;margin:0 -24px -8px}.thread-heading[_ngcontent-%COMP%]   .duckie-warning-banner[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;background:var(--tonal-fill-red);color:var(--tonal-red);display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:4px;padding:4px 24px;margin:0 -24px -8px}.thread-heading[_ngcontent-%COMP%]   .duckie-experiment-banner[_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;gap:4px;background:-webkit-gradient(linear,left top,right top,from(var(--duckie-experiment-banner-color-1)),to(var(--duckie-experiment-banner-color-2)));background:-webkit-linear-gradient(left,var(--duckie-experiment-banner-color-1) 0,var(--duckie-experiment-banner-color-2) 100%);background:linear-gradient(90deg,var(--duckie-experiment-banner-color-1) 0,var(--duckie-experiment-banner-color-2) 100%);font-size:.9em;padding:4px 24px;margin:0 -24px -8px}.thread-heading[_ngcontent-%COMP%]   .incognito-mode-banner[_ngcontent-%COMP%]{padding:4px 24px;margin:0 -24px -8px}.banner-wrapper[_ngcontent-%COMP%]{--custom-border-radius:0;--custom-border:0;-webkit-box-flex:1;-webkit-flex:1 0 auto;-moz-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto}.use-compact-view[_nghost-%COMP%]   .thread-heading[_ngcontent-%COMP%]   thread-source-header-wrapper[_ngcontent-%COMP%]{display:none}.use-compact-view[_nghost-%COMP%]   .thread-heading[_ngcontent-%COMP%]   .thread-title-container[_ngcontent-%COMP%]{display:none}.user-context-bar[_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;gap:4px}.user-context-bar[_ngcontent-%COMP%]   .user-context-bar-title[_ngcontent-%COMP%]{margin-right:8px}.user-context-bar[_ngcontent-%COMP%]   .more-context-counter[_ngcontent-%COMP%]{font-size:12px;font-weight:500;border:1px solid var(--hairline);border-radius:16px;padding:2px 8px}.expanded-contexts-view[_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:8px 24px;gap:8px;max-height:200px;overflow:auto}.expanded-contexts-view[_ngcontent-%COMP%]   .context-item[_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;gap:8px;container-type:inline-size}.expanded-contexts-view[_ngcontent-%COMP%]   .context-item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:20px;height:20px}.expanded-contexts-view[_ngcontent-%COMP%]   .context-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{direction:rtl;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;max-width:90cqw}.expanded-contexts-view[_ngcontent-%COMP%]   .context-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:after{content:"\u200e"}.thread-title[_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;min-height:48px;width:100%}.thread-title[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-family:Google Sans;font-size:22px;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.thread-title[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:4px}.thread-title[_ngcontent-%COMP%]   .right-side-buttons[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex:1 0 auto;-moz-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}  .context-tooltip .mat-mdc-tooltip-surface{max-width:60vw}'],
changeDetection:0});var zfd=["customThread"],xL=function(){this.threadTemplate=q(vfd,{optional:!0});this.customThread=Rg("customThread",Object.assign({},{},{read:ig}));this.useCompactView=Qg.apply(null,[!1].concat(n([])));this.inputPlaceholder=Qg.apply(null,["Ask anything"].concat(n([])))};
xL.prototype.ngAfterViewInit=function(){this.threadTemplate&&this.customThread()&&(this.componentRef=this.customThread().createComponent(this.threadTemplate),this.componentRef.instance.useCompactView=qg.apply(null,[this.useCompactView()].concat(n([]))),this.componentRef.instance.inputPlaceholder=qg.apply(null,[this.inputPlaceholder()].concat(n([]))))};xL.\u0275fac=function(a){return new (a||xL)};
xL.\u0275cmp=C({type:xL,selectors:[["thread-wrapper"]],viewQuery:function(a,b){a&1&&rg(b.customThread,zfd,ig);a&2&&sg()},inputs:{useCompactView:[1,"useCompactView"],inputPlaceholder:[1,"inputPlaceholder"]},decls:4,vars:1,consts:[["customThread",""],[1,"container","margin-auto-x"],[1,"thread","bg-surface-default","bordered","rounded","flex-column","justify-content-flex-end"],[3,"useCompactView","inputPlaceholder"]],template:function(a,b){a&1&&(K(0,"div",1)(1,"div",2),F(2,wSa,2,0,"ng-container")(3,
xSa,1,2,"thread",3),L()());a&2&&(B(2),G(b.threadTemplate?2:3))},dependencies:[wL],styles:["[_nghost-%COMP%]{overflow:hidden}.container[_ngcontent-%COMP%]{max-width:1240px;min-width:300px;height:calc(100% - var(--base-px, 1rem)*16)}@media (max-width:800px){.container[_ngcontent-%COMP%]{height:100%}}.thread[_ngcontent-%COMP%]{box-shadow:0 6px 10px 4px var(--elevation),0 2px 3px 0 var(--elevation);-moz-box-sizing:border-box;box-sizing:border-box;height:calc(100% - var(--base-px, 1rem)*16);margin:.75em;padding-bottom:12px;position:relative}@media (max-width:800px){.thread[_ngcontent-%COMP%]{box-shadow:none;border:none;border-radius:0;margin:0;height:100%}}.use-compact-view[_nghost-%COMP%]   .container[_ngcontent-%COMP%]{height:100%}.use-compact-view[_nghost-%COMP%]   .thread[_ngcontent-%COMP%]{box-shadow:none;border:none;border-radius:0;margin:0;height:100%}\n/*# sourceMappingURL=thread_wrapper.css.map */"],
changeDetection:0});var Afd=function(){};Afd.\u0275fac=function(a){return new (a||Afd)};Afd.\u0275mod=$e({type:Afd});Afd.\u0275inj=Dc({imports:[wL,xL,vL]});var Bfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Bfd,X);var Cfd=function(a,b){this.url=a;this.httpClient=b};Z(Cfd,zRc);Cfd.prototype.makeRequest=function(a){return this.httpClient.request("POST",this.url+a.path,{headers:new nh({"Content-Type":"text/plain"}),body:a.body,observe:"body",responseType:"json",withCredentials:!0})};var Dfd=new bd("url of g3mark service api"),Efd=function(){};Efd.\u0275fac=function(a){return new (a||Efd)};Efd.\u0275mod=$e({type:Efd});Efd.\u0275inj=Dc({providers:[{provide:FRc,useFactory:function(a,b){return new Cfd(a,b)},deps:[Dfd,Zy]}],imports:[az]});var Ffd=function(){};Ffd.\u0275fac=function(a){return new (a||Ffd)};Ffd.\u0275mod=$e({type:Ffd});Ffd.\u0275inj=Dc({providers:[{provide:Dfd,useFactory:function(){return window.g3mark_service_url||"https://g3mark-service.corp.google.com"}},OE],imports:[Efd]});NJa(OJa(function(){}));var Gfd={provide:KVc,deps:[rA],useFactory:function(a){return function(){return a.scrollStrategies.reposition()}}};Oh({passive:!0});var Hfd=function(){};Hfd.\u0275fac=function(a){return new (a||Hfd)};Hfd.\u0275mod=$e({type:Hfd});Hfd.\u0275inj=Dc({providers:[Gfd],imports:[xy,HA,uA,aA,jz]});var Ifd=[[["","onedevOptOutButton",""]],[["","mat-icon-button",""]]],yL=function(a){var b=this;this.zone=a;this.openedByKeyboard=!1;this.resizeObserver=new ResizeObserver(function(){b.zone.run(function(){var c=[];for(var d=c.concat,e=Array.from(b.triggers),f=Array.from(b.triggerElements),g=Math.max(e.length,f.length),k=[],m=0;m<g;m++)k.push([e[m],f[m]]);c=d.call(c,n(k),[[b.showMoreTrigger,b.showMoreElement]]);c=l(c);for(d=c.next();!d.done;d=c.next())e=l(d.value),d=e.next().value,e=e.next().value,
Number(e.nativeElement.offsetWidth===0)^Number(b.showMoreTrigger.menuOpen&&d!==b.showMoreTrigger)&&d.closeMenu();Jfd(b)})})};yL.prototype.ngOnInit=function(){};yL.prototype.ngAfterViewInit=function(){if(this.mdcButtons.length>0&&this.mdcButtons.some(function(a){return!a.nativeElement.classList.contains("gmat-mdc-button")}))throw Error("$c");Kfd(this)};yL.prototype.ngOnDestroy=function(){this.resizeObserver.disconnect()};
var Lfd=function(a){Jfd(a);var b=a.openedByKeyboard?"keyboard":"mouse";a.openedByKeyboard=!1;setTimeout(function(){JVc(a.showMoreMenu,b)})},Kfd=function(a){for(var b=l([].concat(n(a.buttons),[a.showMoreElement])),c=b.next();!c.done;c=b.next())a.resizeObserver.observe(c.value.nativeElement)},Jfd=function(a){a=l(a.showMoreMenu._directDescendantItems);for(var b=a.next();!b.done;b=a.next())b=b.value,b.disabled=b._getHostElement().offsetWidth===0};
da.Object.defineProperties(yL.prototype,{menu:{configurable:!0,enumerable:!0,set:function(a){a.panelClass="onedev-appbar-menu";this.showMoreMenu=a}}});yL.\u0275fac=function(a){return new (a||yL)(Ve(Tg))};
yL.\u0275cmp=C({type:yL,selectors:[["onedev-mdc-button-group"]],contentQueries:function(a,b,c){a&1&&(lg(c,OF,4),lg(c,OF,4,Gd),lg(c,XA,4,Gd),lg(c,TA,4,Gd));if(a&2){var d;og(d=pg())&&(b.triggers=d);og(d=pg())&&(b.triggerElements=d);og(d=pg())&&(b.buttons=d);og(d=pg())&&(b.mdcButtons=d)}},viewQuery:function(a,b){a&1&&(kg(OF,5),kg(OF,5,Gd));if(a&2){var c;og(c=pg())&&(b.showMoreTrigger=c.first);og(c=pg())&&(b.showMoreElement=c.first)}},hostVars:2,hostBindings:function(a){a&2&&xg("display","flex")},inputs:{menu:"menu"},
ngContentSelectors:["[onedevOptOutButton]","[mat-icon-button]"],decls:5,vars:1,consts:[["mat-icon-button","","aria-label","show more",1,"show-more",3,"keydown.enter","keydown.space","menuOpened","matMenuTriggerFor"]],template:function(a,b){a&1&&(fg(Ifd),gg(0),gg(1,1),K(2,"button",0),N("keydown.enter",function(){b.openedByKeyboard=!0})("keydown.space",function(){b.openedByKeyboard=!0})("menuOpened",function(){return Lfd(b)}),K(3,"mat-icon"),S(4,"more_vert"),L()());a&2&&(B(2),I("matMenuTriggerFor",
b.showMoreMenu))},dependencies:[ZA,XA,VA,kz,iz,OJ,NJ,OF],styles:["/*\n * @fileoverview Contains SCSS for button_group.scss so that it can be easily\n * tested. Media queries are unable to be mocked in tests.\n */\n.onedev-appbar-menu [mat-menu-item] {\n  -webkit-box-align: center;\n  -webkit-align-items: center;\n     -moz-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  color: var(--text-default, black);\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -moz-box;\n  display: -ms-flexbox;\n  display: flex;\n}\n.onedev-appbar-menu [mat-menu-item] mat-icon {\n  line-height: 24px;\n}\n\n@media (max-width: 960px) {\n  onedev-button-group [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button].show-more {\n    display: none;\n  }\n  onedev-button-group [mat-icon-button]:first-child:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)),\n  onedev-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)),\n  onedev-mdc-button-group [mat-icon-button]:first-child:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)),\n  onedev-mdc-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)) {\n    display: none;\n  }\n  onedev-button-group [mat-icon-button]:first-child:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)) ~ [mat-icon-button].show-more,\n  onedev-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button]:first-child:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+1):not(.show-more):not(:nth-last-child(2):nth-child(1)) ~ [mat-icon-button].show-more {\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -moz-box;\n    display: -ms-flexbox;\n    display: flex;\n  }\n  onedev-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+2):not(.show-more):not(:nth-last-child(2):nth-child(2)),\n  onedev-mdc-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+2):not(.show-more):not(:nth-last-child(2):nth-child(2)) {\n    display: none;\n  }\n  onedev-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+2):not(.show-more):not(:nth-last-child(2):nth-child(2)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+2):not(.show-more):not(:nth-last-child(2):nth-child(2)) ~ [mat-icon-button].show-more {\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -moz-box;\n    display: -ms-flexbox;\n    display: flex;\n  }\n  .onedev-appbar-menu [mat-menu-item]:nth-child(-n+0),\n  .onedev-appbar-menu [onedevOptOutMenuItem] ~ [mat-menu-item]:nth-child(1) {\n    display: none;\n  }\n  onedev-button-group [onedevOptOutButton],\n  onedev-mdc-button-group [onedevOptOutButton] {\n    display: none;\n  }\n}\n@media (min-width: 961px) and (max-width: 1280px) {\n  onedev-button-group [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button].show-more {\n    display: none;\n  }\n  onedev-button-group [mat-icon-button]:first-child:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)),\n  onedev-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)),\n  onedev-mdc-button-group [mat-icon-button]:first-child:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)),\n  onedev-mdc-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)) {\n    display: none;\n  }\n  onedev-button-group [mat-icon-button]:first-child:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)) ~ [mat-icon-button].show-more,\n  onedev-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button]:first-child:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+3):not(.show-more):not(:nth-last-child(2):nth-child(3)) ~ [mat-icon-button].show-more {\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -moz-box;\n    display: -ms-flexbox;\n    display: flex;\n  }\n  onedev-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+4):not(.show-more):not(:nth-last-child(2):nth-child(4)),\n  onedev-mdc-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+4):not(.show-more):not(:nth-last-child(2):nth-child(4)) {\n    display: none;\n  }\n  onedev-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+4):not(.show-more):not(:nth-last-child(2):nth-child(4)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+4):not(.show-more):not(:nth-last-child(2):nth-child(4)) ~ [mat-icon-button].show-more {\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -moz-box;\n    display: -ms-flexbox;\n    display: flex;\n  }\n  .onedev-appbar-menu [mat-menu-item]:nth-child(-n+2),\n  .onedev-appbar-menu [onedevOptOutMenuItem] ~ [mat-menu-item]:nth-child(3) {\n    display: none;\n  }\n}\n@media (min-width: 1281px) {\n  onedev-button-group [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button].show-more {\n    display: none;\n  }\n  onedev-button-group [mat-icon-button]:first-child:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)),\n  onedev-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)),\n  onedev-mdc-button-group [mat-icon-button]:first-child:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)),\n  onedev-mdc-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)) {\n    display: none;\n  }\n  onedev-button-group [mat-icon-button]:first-child:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)) ~ [mat-icon-button].show-more,\n  onedev-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button]:first-child:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [mat-icon-button]:first-child ~ [mat-icon-button]:nth-child(n+5):not(.show-more):not(:nth-last-child(2):nth-child(5)) ~ [mat-icon-button].show-more {\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -moz-box;\n    display: -ms-flexbox;\n    display: flex;\n  }\n  onedev-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+6):not(.show-more):not(:nth-last-child(2):nth-child(6)),\n  onedev-mdc-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+6):not(.show-more):not(:nth-last-child(2):nth-child(6)) {\n    display: none;\n  }\n  onedev-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+6):not(.show-more):not(:nth-last-child(2):nth-child(6)) ~ [mat-icon-button].show-more,\n  onedev-mdc-button-group [onedevOptOutButton] ~ [mat-icon-button]:nth-child(n+6):not(.show-more):not(:nth-last-child(2):nth-child(6)) ~ [mat-icon-button].show-more {\n    display: -webkit-box;\n    display: -webkit-flex;\n    display: -moz-box;\n    display: -ms-flexbox;\n    display: flex;\n  }\n  .onedev-appbar-menu [mat-menu-item]:nth-child(-n+4),\n  .onedev-appbar-menu [onedevOptOutMenuItem] ~ [mat-menu-item]:nth-child(5) {\n    display: none;\n  }\n}\n"],
encapsulation:2});var Mfd=function(){};Mfd.\u0275fac=function(a){return new (a||Mfd)};Mfd.\u0275mod=$e({type:Mfd});Mfd.\u0275inj=Dc({imports:[xy,$I,kz,Hfd,yL]});var Nfd=function(){};Nfd.\u0275fac=function(a){return new (a||Nfd)};Nfd.\u0275mod=$e({type:Nfd});Nfd.\u0275inj=Dc({imports:[Mfd]});var Ofd=["*"],Pfd=["content"],Qfd=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Rfd=new bd("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),Sfd=new bd("MAT_DRAWER_CONTAINER"),AL=function(){var a=q(Gd),b=q(Zh),c=q(Tg);Vz.call(this,a,b,c);this._platform=q(bi);this._changeDetectorRef=q(Yx);this._container=q(zL)};Z(AL,Vz);AL.\u0275dir=Vz.\u0275dir;AL.prototype.ngAfterContentInit=function(){var a=this;this._container._contentMarginChanges.subscribe(function(){a._changeDetectorRef.markForCheck()})};
AL.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};AL.\u0275fac=function(a){return new (a||AL)};
AL.\u0275cmp=C({type:AL,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(a,b){a&2&&(xg("margin-left",b._container._contentMargins.left,"px")("margin-right",b._container._contentMargins.right,"px"),yg("mat-drawer-content-hidden",b._shouldBeHidden()))},features:[Ig([{provide:Vz,useExisting:AL}]),Ff],ngContentSelectors:Ofd,decls:1,vars:0,template:function(a){a&1&&(fg(),gg(0))},encapsulation:2,changeDetection:0});
var BL=function(){var a=this;this._elementRef=q(Gd);this._focusTrapFactory=q(tz);this._focusMonitor=q(mz);this._platform=q(bi);this._ngZone=q(Tg);this._renderer=q(ji);this._interactivityChecker=q(pz);this._doc=q(Yh);this._container=q(Sfd,{optional:!0});this._elementFocusedBeforeDrawerWasOpened=this._focusTrap=null;this._position="start";this._mode="over";this._disableClose=!1;this._opened=qg.apply(null,[!1].concat(n([])));this._animationStarted=new rf;this._animationEnd=new rf;this.openedChange=new ui(!0);
this._openedStream=this.openedChange.pipe(te(function(b){return b}),A(function(){}));this.openedStart=this._animationStarted.pipe(te(function(){return a.opened}),lf());this._closedStream=this.openedChange.pipe(te(function(b){return!b}),A(function(){}));this.closedStart=this._animationStarted.pipe(te(function(){return!a.opened}),lf());this._destroyed=new rf;this.onPositionChanged=new ui;this._modeChanged=new rf;this._injector=q(xe);this._changeDetectorRef=q(Yx);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(Af(this._destroyed)).subscribe(function(b){b?(a._elementFocusedBeforeDrawerWasOpened=a._doc.activeElement,a._takeFocus()):a._isFocusWithinDrawer()&&a._restoreFocus(a._openedVia||"program")});this._ngZone.runOutsideAngular(function(){var b=a._elementRef.nativeElement;oe(b,"keydown").pipe(te(function(c){return c.keyCode===
27&&!a.disableClose&&!Nh(c)}),Af(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)})};h=BL.prototype;
h._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)};h._focusByCssSelector=function(a,b){(a=this._elementRef.nativeElement.querySelector(a))&&this._forceFocus(a,b)};
h._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":De(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)}}};
h._restoreFocus=function(a){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?nz(this._focusMonitor,this._elementFocusedBeforeDrawerWasOpened,a):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)};h._isFocusWithinDrawer=function(){var a=this._doc.activeElement;return!!a&&this._elementRef.nativeElement.contains(a)};
h.ngAfterViewInit=function(){this._isAttached=!0;this._position==="end"&&this._updatePositionInParent("end");this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())};
h.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()};h.open=function(a){return this.toggle(!0,a)};h.close=function(){return this.toggle(!1)};h._closeViaBackdropClick=function(){return this._setOpen(!1,!0,"mouse")};
h.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};
h._setOpen=function(a,b,c){var d=this;if(a===this.opened)return Promise.resolve(a?"open":"close");this._opened.set(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(mf(1)).subscribe(function(g){return f(g?
"open":"close")})})};h._setIsAnimating=function(a){this._elementRef.nativeElement.classList.toggle("mat-drawer-animating",a)};h._getWidth=function(){return this._elementRef.nativeElement.offsetWidth||0};h._updateFocusTrapState=function(){if(this._focusTrap){var a;this._focusTrap.enabled=!((a=this._container)==null||!a.hasBackdrop)&&this.opened}};
h._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)}};
da.Object.defineProperties(BL.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=Sh(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=Sh(a);this._autoFocus=a}},opened:{configurable:!0,enumerable:!0,get:function(){return this._opened()},set:function(a){this.toggle(Sh(a))}}});BL.\u0275fac=function(a){return new (a||BL)};
BL.\u0275cmp=C({type:BL,selectors:[["mat-drawer"]],viewQuery:function(a,b){a&1&&kg(Pfd,5);if(a&2){var c;og(c=pg())&&(b._content=c.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(a,b){a&2&&(Jf("align",null)("tabIndex",b.mode!=="side"?"-1":null),xg("visibility",b._container||b.opened?null:"hidden"),yg("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:Ofd,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(a){a&1&&(fg(),K(0,"div",1,0),gg(2),L())},dependencies:[Vz],encapsulation:2,changeDetection:0});
var zL=function(){var a=this;this._dir=q(ii,{optional:!0});this._element=q(Gd);this._ngZone=q(Tg);this._changeDetectorRef=q(Yx);this._animationDisabled=ti();this._transitionsEnabled=!1;this._drawers=new jg;this._autosize=q(Rfd);this.backdropClick=new ui;this._destroyed=new rf;this._doCheckSubject=new rf;this._contentMargins={left:null,right:null};this._contentMarginChanges=new rf;this._injector=q(xe);var b=q(bi),c=q(Xh),d;(d=this._dir)==null||d.change.pipe(Af(this._destroyed)).subscribe(function(){a._validateDrawers();
Tfd(a)});c.change().pipe(Af(this._destroyed)).subscribe(function(){return Tfd(a)});!this._animationDisabled&&b.isBrowser&&this._ngZone.runOutsideAngular(function(){setTimeout(function(){a._element.nativeElement.classList.add("mat-drawer-transition");a._transitionsEnabled=!0},200)})};
zL.prototype.ngAfterContentInit=function(){var a=this;this._allDrawers.changes.pipe(yf(this._allDrawers),Af(this._destroyed)).subscribe(function(b){a._drawers.reset(b.filter(function(c){return!c._container||c._container===a}));ng(a._drawers)});this._drawers.changes.pipe(yf(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))&&
Tfd(a);a._changeDetectorRef.markForCheck()});this._ngZone.runOutsideAngular(function(){a._doCheckSubject.pipe(kf(10),Af(a._destroyed)).subscribe(function(){return Tfd(a)})})};zL.prototype.ngOnDestroy=function(){this._contentMarginChanges.complete();this._doCheckSubject.complete();this._drawers.destroy();this._destroyed.next();this._destroyed.complete()};zL.prototype.open=function(){this._drawers.forEach(function(a){return a.open()})};zL.prototype.close=function(){this._drawers.forEach(function(a){return a.close()})};
var Tfd=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)})};
h=zL.prototype;h.ngDoCheck=function(){var a=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return a._doCheckSubject.next()})};h._watchDrawerToggle=function(a){var b=this;a._animationStarted.pipe(Af(this._drawers.changes)).subscribe(function(){Tfd(b);b._changeDetectorRef.markForCheck()});a.mode!=="side"&&a.openedChange.pipe(Af(this._drawers.changes)).subscribe(function(){return b._setContainerClass(a.opened)})};
h._watchDrawerPosition=function(a){var b=this;a.onPositionChanged.pipe(Af(this._drawers.changes)).subscribe(function(){De({read:function(){return b._validateDrawers()}},{injector:b._injector})})};h._watchDrawerMode=function(a){var b=this;a._modeChanged.pipe(Af(se(this._drawers.changes,this._destroyed))).subscribe(function(){Tfd(b);b._changeDetectorRef.markForCheck()})};h._setContainerClass=function(a){var b=this._element.nativeElement.classList;a?b.add("mat-drawer-container-has-open"):b.remove("mat-drawer-container-has-open")};
h._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)};h._isPushed=function(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"};
h._onBackdropClicked=function(){this.backdropClick.emit();this._closeModalDrawersViaBackdrop()};h._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()})};h._isShowingBackdrop=function(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)};
h._isDrawerOpen=function(a){return a!=null&&a.opened};h._drawerHasBackdrop=function(a){return this._backdropOverride==null?!!a&&a.mode!=="side":this._backdropOverride};
da.Object.defineProperties(zL.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=Sh(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:Sh(a)}},scrollable:{configurable:!0,
enumerable:!0,get:function(){return this._userContent||this._content}}});zL.\u0275fac=function(a){return new (a||zL)};
zL.\u0275cmp=C({type:zL,selectors:[["mat-drawer-container"]],contentQueries:function(a,b,c){a&1&&(lg(c,AL,5),lg(c,BL,5));if(a&2){var d;og(d=pg())&&(b._content=d.first);og(d=pg())&&(b._allDrawers=d)}},viewQuery:function(a,b){a&1&&kg(AL,5);if(a&2){var c;og(c=pg())&&(b._userContent=c.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(a,b){a&2&&yg("mat-drawer-container-explicit-backdrop",b._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},
exportAs:["matDrawerContainer"],features:[Ig([{provide:Sfd,useExisting:zL}])],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&&(fg(Qfd),F(0,ySa,1,2,"div",0),gg(1),gg(2,1),F(3,zSa,2,0,"mat-drawer-content"));a&2&&(G(b.hasBackdrop?0:-1),B(3),G(b._content?-1:3))},dependencies:[AL],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 Ufd=["*"],Vfd=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],CL=function(){AL.apply(this,arguments)};Z(CL,AL);CL.\u0275dir=AL.\u0275dir;CL.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(CL)))(b||CL)}}();CL.\u0275cmp=C({type:CL,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[Ig([{provide:Vz,useExisting:CL}]),Ff],ngContentSelectors:Ufd,decls:1,vars:0,template:function(a){a&1&&(fg(),gg(0))},encapsulation:2,changeDetection:0});
var DL=function(){BL.apply(this,arguments);this._fixedInViewport=!1;this._fixedBottomGap=this._fixedTopGap=0};Z(DL,BL);
da.Object.defineProperties(DL.prototype,{fixedInViewport:{configurable:!0,enumerable:!0,get:function(){return this._fixedInViewport},set:function(a){this._fixedInViewport=Sh(a)}},fixedTopGap:{configurable:!0,enumerable:!0,get:function(){return this._fixedTopGap},set:function(a){this._fixedTopGap=Vh(a)}},fixedBottomGap:{configurable:!0,enumerable:!0,get:function(){return this._fixedBottomGap},set:function(a){this._fixedBottomGap=Vh(a)}}});
DL.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(DL)))(b||DL)}}();
DL.\u0275cmp=C({type:DL,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(a,b){a&2&&(Jf("tabIndex",b.mode!=="side"?"-1":null)("align",null),xg("top",b.fixedInViewport?b.fixedTopGap:null,"px")("bottom",b.fixedInViewport?b.fixedBottomGap:null,"px"),yg("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:[Ig([{provide:BL,useExisting:DL}]),Ff],ngContentSelectors:Ufd,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(a){a&1&&(fg(),K(0,"div",1,0),gg(2),L())},dependencies:[Vz],encapsulation:2,changeDetection:0});var EL=function(){zL.apply(this,arguments);this._content=this._allDrawers=void 0};Z(EL,zL);
EL.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(EL)))(b||EL)}}();
EL.\u0275cmp=C({type:EL,selectors:[["mat-sidenav-container"]],contentQueries:function(a,b,c){a&1&&(lg(c,CL,5),lg(c,DL,5));if(a&2){var d;og(d=pg())&&(b._content=d.first);og(d=pg())&&(b._allDrawers=d)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(a,b){a&2&&yg("mat-drawer-container-explicit-backdrop",b._backdropOverride)},exportAs:["matSidenavContainer"],features:[Ig([{provide:Sfd,useExisting:EL},{provide:zL,useExisting:EL}]),Ff],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&&(fg(Vfd),F(0,ASa,1,2,"div",0),gg(1),gg(2,1),F(3,BSa,2,0,"mat-sidenav-content"));a&2&&(G(b.hasBackdrop?0:-1),B(3),G(b._content?-1:3))},dependencies:[CL],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 FL=function(){};FL.\u0275fac=function(a){return new (a||FL)};FL.\u0275mod=$e({type:FL});FL.\u0275inj=Dc({imports:[aA,jz,aA]});var GL=function(){var a=this;this.routingService=q(BD);this.communicationService=q(yD);this.backendModelService=q(OD);this.conversationAgentsService=q(zD);this.chatStateService=q(LJ);this.threadService=q(fF);this.destroyRef=q(Be);this.useExperimentalOrcasAgent=Qg.apply(null,[!1].concat(n([])));this.query=Qg.apply(null,n([]));this.contextValues=Qg.apply(null,[void 0].concat(n([])));this.onboardingExamples=Qg.apply(null,[void 0].concat(n([])));this.isDarkMode=Qg.apply(null,[!1].concat(n([])));this.configurationKey=
"nexus";this.DuckieView=lNc;this.activeView$=this.routingService.activeView$;this.isRecentSessionsVisible$=this.chatStateService.isRecentSessionsVisible$;var b=q(CC);b.overrideAgentMessageDisplayName="Production Agent";b.overrideDisclaimer="Production Agent can make mistakes. Consider double-checking its responses.";this.threadService.isDuckieSourceEmbedded=!0;df(function(){var c=a.conversationAgentsService,d=a.useExperimentalOrcasAgent()?KAc:JAc;c.currentConversationAgentInternal.next(d)});df(function(){a.query()&&
requestAnimationFrame(function(){a.sendQuestion(a.query())})});df(function(){var c=a.communicationService,d=a.isDarkMode();c.overridesService.isDarkMode$.next(d)});df(function(){var c,d=(c=a.onboardingExamples())!=null?c:new Bfd;a.communicationService.setOnboardingExamplesList(d)});df(function(){a.sendAppProvidedContext(a.contextValues())})};
GL.prototype.ngOnInit=function(){var a=this,b,c=(b=POa(this.configurationKey))==null?void 0:b.modelIdOverride;c&&this.backendModelService.currentModelIdInternal.next(c);this.chatStateService.messageQueue$.asObservable().pipe(oj(this.destroyRef)).subscribe(function(d){if(d.contextMap){var e=a.sendAppProvidedContext;var f=d.contextMap,g;var k=(g=a.contextValues())==null?void 0:g.clone();if(f){g=[];f=l(f.entries());for(var m=f.next();!m.done;m=f.next()){var r=l(m.value);m=r.next().value;r=r.next().value;
g.push((new zC).setName(m).setStringValue(r))}f=k==null?void 0:k.getValuesList()[0];var w;m=(new yC).setValuesList([].concat(n((f==null?void 0:(w=lm(f,yC,3,AC))==null?void 0:w.getValuesList())||[]),g));f?(op(f,3,AC,m),k.setValuesList([f].concat(k.getValuesList().slice(1)))):k=m}e.call(a,k);a.sendQuestion(d.message);a.sendAppProvidedContext(a.contextValues())}else a.sendQuestion(d.message)})};GL.prototype.sendAppProvidedContext=function(a){a!=null&&this.communicationService.setAppProvidedContext(a)};
GL.prototype.sendQuestion=function(a){jNc(a);document.getElementById("ask-duckie-submit").dispatchEvent(new Event("click",{bubbles:!0}))};GL.\u0275fac=function(a){return new (a||GL)};
GL.\u0275cmp=C({type:GL,selectors:[["gpp-agent-chat"]],inputs:{useExperimentalOrcasAgent:[1,"useExperimentalOrcasAgent"],query:[1,"query"],contextValues:[1,"contextValues"],onboardingExamples:[1,"onboardingExamples"],isDarkMode:[1,"isDarkMode"]},features:[Ig([{provide:ddd,useValue:UF},{provide:$ad,useValue:KJ}])],decls:9,vars:14,consts:[[1,"chat-container"],[3,"configurationKey"],[3,"useCompactView"],[1,"recent-sessions-container"],[3,"navItemClicked"]],template:function(a,b){a&1&&(K(0,"div")(1,"div",
0),U(2,"async"),F(3,CSa,1,1,"onboarding-wrapper",1),U(4,"async"),Mf(5,DSa,1,1,"thread-wrapper",2),L(),K(6,"div",3),U(7,"async"),K(8,"recent-sessions",4),N("navItemClicked",function(){b.chatStateService.isRecentSessionsVisibleSubject.next(!1)}),L()()());if(a&2){var c;zg(Gg("gpp-agent-container ",b.isDarkMode()?"dark-mode":"light-mode"));B();yg("hidden",!!W(2,8,b.isRecentSessionsVisible$));B(2);G((c=W(4,10,b.activeView$))===b.DuckieView.ONBOARDING?3:c===b.DuckieView.THREAD?5:-1);B(3);yg("hidden",!W(7,
12,b.isRecentSessionsVisible$))}},dependencies:[Hbd,jdd,LK,xy,Nfd,ZA,iK,Ffd,YJ,kz,FL,gK,Afd,xL,Cbd,py],styles:["[_ngcontent-%COMP%]: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}.dark-mode[_ngcontent-%COMP%], .light-mode[_ngcontent-%COMP%], [_ngcontent-%COMP%]:root{--app-bar-bg:#fff;--base-fg:#000;--button-disabled-bg:rgba(0,0,0,.12);--elevation:rgba(0,0,0,.2);--hairline:var(--grey-300);--hover:rgba(0,0,0,.06);--icon:var(--grey-700);--input-field-bg:var(--grey-100);--input-field-disabled-bg:#f5f6f7;--page-bg:#fff;--surface-default:#fff;--surface-secondary:var(--grey-50);--text-default:var(--grey-900);--text-high-contrast:var(--grey-900);--text-disabled:rgba(0,0,0,.26);--text-inverse:#fff;--text-secondary:var(--grey-700);--tooltip-bg:rgba(97,97,97,.9);--overlay-backdrop:rgba(0,0,0,.32);--button-disabled-text:var(--text-disabled);--button-focused-bg:var(--hover);--button-raised-bg:var(--surface-default);--button-selected:var(--blue-100);--button-selected-disabled-bg:var(--input-field-bg);--button-toggle-disabled-bg:var(--button-disabled-bg);--chip-unselected-bg:var(--surface-default);--hint-text:var(--text-disabled);--list-option-disabled-bg:var(--button-disabled-bg);--slider-min:var(--text-default);--slider-off-active:var(--button-disabled-text);--slider-off:var(--button-disabled-text);--slider-toggle-track:rgba(25,103,210,.54);--slider-toggle-track-warn:rgba(217,48,37,.54);--primary-default:var(--blue-600);--primary-low-contrast:var(--blue-500);--primary-high-contrast:var(--blue-700);--warn-default:var(--red-600);--warn-low-contrast:var(--red-500);--warn-high-contrast:var(--red-700);--snackbar-background:var(--grey-900);--snackbar-text:var(--grey-200);--snackbar-action-text:var(--blue-300);--snackbar-error-background:var(--red-900);--snackbar-error-text:var(--white);--snackbar-error-action-text:var(--blue-200);--radio-disabled-outline:var(--grey-800);--tonal-blue:#185abc;--tonal-cyan:#007b83;--tonal-green:#137333;--tonal-grey:#5f6368;--tonal-orange:#bd4800;--tonal-pink:#d01884;--tonal-purple:#9334e6;--tonal-red:#d42521;--tonal-yellow:#8f6b00;--tonal-fill-blue:#f2f6ff;--tonal-fill-cyan:#ebfcfe;--tonal-fill-green:#edfbf1;--tonal-fill-grey:#f4f5f6;--tonal-fill-orange:#fff3e9;--tonal-fill-pink:#fff2f9;--tonal-fill-purple:#f9f3ff;--tonal-fill-red:#fff2f1;--tonal-fill-yellow:#fff8e4;--tonal-tint-blue:#f9fbff;--tonal-tint-cyan:#f6fdfe;--tonal-tint-green:#f7fdf9;--tonal-tint-grey:#f9fafb;--tonal-tint-orange:#fff9f5;--tonal-tint-pink:#fff9fc;--tonal-tint-purple:#fcf9ff;--tonal-tint-red:#fff8f7;--tonal-tint-yellow:#fffcf3;--tonal-icon-blue:#2672e3;--tonal-icon-cyan:#34989d;--tonal-icon-green:#2b923d;--tonal-icon-grey:#878787;--tonal-icon-orange:#d46f17;--tonal-icon-pink:#f127ab;--tonal-icon-purple:#ad61f5;--tonal-icon-red:#e51d19;--tonal-icon-yellow:#9c8c30;--default-surface:var(--surface-default);--default-text:var(--text-default);--disabled-text:var(--text-disabled);--inverse-text:var(--text-inverse);--secondary-surface:var(--surface-secondary);--secondary-text:var(--text-secondary)}.dark-mode[_ngcontent-%COMP%]{--app-bar-bg:var(--grey-900);--base-fg:#fff;--button-disabled-bg:hsla(0,0%,100%,.12);--button-disabled-text:hsla(0,0%,100%,.26);--button-selected:rgba(138,180,248,.24);--elevation:rgba(0,0,0,.5);--hairline:var(--grey-700);--hover:hsla(0,0%,100%,.08);--icon:var(--grey-300);--input-field-bg:#28292c;--input-field-disabled-bg:#27292c;--page-bg:var(--grey-900);--surface-default:#28292c;--surface-secondary:#000;--text-default:var(--grey-200);--text-high-contrast:#fff;--text-disabled:hsla(0,0%,100%,.26);--text-inverse:#000;--text-secondary:var(--grey-400);--tooltip-bg:hsla(0,0%,100%,.9);--overlay-backdrop:rgba(0,0,0,.5);--primary-default:var(--blue-300);--primary-low-contrast:var(--blue-500);--primary-high-contrast:var(--blue-200);--warn-default:var(--red-300);--warn-low-contrast:var(--red-500);--warn-high-contrast:var(--red-200);--slider-toggle-track:rgba(138,180,248,.54);--slider-toggle-track-warn:hsla(5,81%,73%,.54);--snackbar-background:var(--white);--snackbar-text:var(--grey-900);--snackbar-action-text:var(--blue-600);--snackbar-error-background:var(--red-50);--snackbar-error-text:#000;--snackbar-error-action-text:var(--blue-700);--radio-disabled-outline:var(--grey-200);--tonal-blue:#99befa;--tonal-cyan:#78d9ec;--tonal-green:#81c995;--tonal-grey:#c7c7c7;--tonal-orange:#fcad70;--tonal-pink:#ff8bcb;--tonal-purple:#ca94fa;--tonal-red:#f28b82;--tonal-yellow:#fdd663;--tonal-fill-blue:#2a3952;--tonal-fill-cyan:#24424a;--tonal-fill-green:#274031;--tonal-fill-grey:#36383a;--tonal-fill-orange:#513724;--tonal-fill-pink:#502941;--tonal-fill-purple:#3e2b52;--tonal-fill-red:#4e2b2a;--tonal-fill-yellow:#453b1f;--tonal-tint-blue:#252d3b;--tonal-tint-cyan:#223339;--tonal-tint-green:#23302a;--tonal-tint-grey:#2b2c2f;--tonal-tint-orange:#382c24;--tonal-tint-pink:#382532;--tonal-tint-purple:#2f263b;--tonal-tint-red:#362627;--tonal-tint-yellow:#322e22;--tonal-icon-blue:#7391f2;--tonal-icon-cyan:#39bcd5;--tonal-icon-green:#55c374;--tonal-icon-grey:#a4a4a4;--tonal-icon-orange:#fb9546;--tonal-icon-pink:#fc78c1;--tonal-icon-purple:#ad61f5;--tonal-icon-red:#fa7775;--tonal-icon-yellow:#f4ce5d;--default-surface:var(--surface-default);--default-text:var(--text-default);--disabled-text:var(--text-disabled);--inverse-text:var(--text-inverse);--secondary-surface:var(--surface-secondary);--secondary-text:var(--text-secondary)}.themed[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{color:var(--text-default);background-color:var(--page-bg)}  html{--base-px:1px}  .gpp-agent-container{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:100%}  .gpp-agent-container .full-width{width:100%}  .gpp-agent-container .full-height{height:100%}  .gpp-agent-container body .bg-page-bg{background-color:var(--page-bg)}  .gpp-agent-container body .bg-surface-default{background-color:var(--surface-default)}  .gpp-agent-container body .bg-surface-container{background-color:var(--surface-container)}  .gpp-agent-container body .bg-primary-container{background-color:var(--primary-container)}  .gpp-agent-container .bordered{border:1px solid var(--hairline)}  .gpp-agent-container .border-bottom{border-bottom:1px solid var(--hairline)}  .gpp-agent-container .border-top{border-top:1px solid var(--hairline)}  .gpp-agent-container body .text-secondary{color:var(--text-secondary)}  .gpp-agent-container body .text-high-contrast{color:var(--text-high-contrast)}  .gpp-agent-container .italic{font-style:italic}  .gpp-agent-container .bold{font-weight:700}  .gpp-agent-container .medium{font-weight:500}  .gpp-agent-container .font-google-sans{font-family:Google Sans,sans-serif}  .gpp-agent-container .font-roboto{font-family:Roboto,sans-serif}  .gpp-agent-container .type-s{font-size:calc(var(--base-px, 1rem)*13)}  .gpp-agent-container .type-xs{font-size:calc(var(--base-px, 1rem)*12)}  .gpp-agent-container .text-center{text-align:center}  .gpp-agent-container .font-google-sans-text{font-family:Google Sans Text,Helvetica,Arial}  .gpp-agent-container .font-google-symbols{font-family:Google Symbols}  .gpp-agent-container .rounded{border-radius:16px}  .gpp-agent-container .rounded-full{border-radius:10000px}  .gpp-agent-container .rounded-s{border-radius:8px}  .gpp-agent-container .rounded-xs{border-radius:4px}  .gpp-agent-container .flex-column{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}  .gpp-agent-container .flex-row{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}  .gpp-agent-container .flex-row-wrap{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap}  .gpp-agent-container .flex-spacer{-webkit-box-flex:1;-webkit-flex:1 1 auto;-moz-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}  .gpp-agent-container .align-items-center{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}  .gpp-agent-container .align-items-flex-start{-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start}  .gpp-agent-container .align-self-center{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}  .gpp-agent-container .justify-content-flex-end{-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}  .gpp-agent-container .justify-content-space-between{-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}  .gpp-agent-container .justify-content-center{-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}  .gpp-agent-container .gap{gap:16px}  .gpp-agent-container .gap-s{gap:8px}  .gpp-agent-container .gap-xs{gap:4px}  .gpp-agent-container .spacer{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}  .gpp-agent-container .margin{margin:16px}  .gpp-agent-container .margin-top{margin-top:16px}  .gpp-agent-container .margin-s-top{margin-top:8px}  .gpp-agent-container .margin-xs-top{margin-top:4px}  .gpp-agent-container .margin-bottom{margin-bottom:16px}  .gpp-agent-container .margin-s-bottom{margin-bottom:8px}  .gpp-agent-container .margin-xs-bottom{margin-bottom:4px}  .gpp-agent-container .margin-left{margin-left:16px}  .gpp-agent-container .margin-s-left{margin-left:8px}  .gpp-agent-container .margin-xs-left{margin-left:4px}  .gpp-agent-container .margin-right{margin-right:16px}  .gpp-agent-container .margin-s-right{margin-right:8px}  .gpp-agent-container .margin-xs-right{margin-right:4px}  .gpp-agent-container .margin-y{margin-top:16px;margin-bottom:16px}  .gpp-agent-container .margin-s-y{margin-top:8px;margin-bottom:8px}  .gpp-agent-container .margin-xs-y{margin-top:4px;margin-bottom:4px}  .gpp-agent-container .margin-x{margin-left:16px;margin-right:16px}  .gpp-agent-container .margin-s-x{margin-left:8px;margin-right:8px}  .gpp-agent-container .margin-auto-y{margin-top:auto;margin-bottom:auto}  .gpp-agent-container .margin-auto-x{margin-left:auto;margin-right:auto}  .gpp-agent-container .padded{padding:16px}  .gpp-agent-container .padded-s{padding:8px}  .gpp-agent-container .padded-xs{padding:4px}  .gpp-agent-container .padded-xxs{padding:2px}  .gpp-agent-container .padded-top{padding-top:16px}  .gpp-agent-container .padded-s-top{padding-top:8px}  .gpp-agent-container .padded-xs-top{padding-top:4px}  .gpp-agent-container .padded-s-y{padding-bottom:8px;padding-top:8px}  .gpp-agent-container .padded-xs-x{padding-left:4px;padding-right:4px}  .gpp-agent-container .padded-s-x{padding-left:8px;padding-right:8px}  .gpp-agent-container .padded-m-left{padding-left:24px}  .gpp-agent-container .padded-left{padding-left:16px}  .gpp-agent-container .padded-s-left{padding-left:8px}  .gpp-agent-container .padded-xs-left{padding-left:4px}  .gpp-agent-container .padded-right{padding-right:16px}  .gpp-agent-container .padded-s-right{padding-right:8px}  .gpp-agent-container .padded-xs-bottom{padding-bottom:4px}  .gpp-agent-container .padded-s-bottom{padding-bottom:8px}  .gpp-agent-container .width-almost-full{width:90%}  .gpp-agent-container body .gmat-mdc-button.mat-mdc-button-base.small{--mat-icon-button-state-layer-size:24px;--mat-icon-button-icon-size:24px;line-height:24px}  .gpp-agent-container body .gmat-mdc-button.mat-mdc-button-base.medium{--mat-icon-button-state-layer-size:32px;--mat-icon-button-icon-size:32px;line-height:32px}  .gpp-agent-container body .mat-icon-button.small{width:24px;height:24px;line-height:24px}  .gpp-agent-container body .mat-icon-button.medium{width:32px;height:32px;line-height:32px}  .gpp-agent-container body .icon-s,   .gpp-agent-container body .icon-s>mat-icon{width:calc(var(--base-px, 1rem)*18);height:calc(var(--base-px, 1rem)*18);font-size:calc(var(--base-px, 1rem)*18)}  .gpp-agent-container body .icon-m,   .gpp-agent-container body .icon-m>mat-icon{width:calc(var(--base-px, 1rem)*20);height:calc(var(--base-px, 1rem)*20);font-size:calc(var(--base-px, 1rem)*20)}  .gpp-agent-container .chat-container.hidden,   .gpp-agent-container .recent-sessions-container.hidden{display:none}  .gpp-agent-container .chat-container{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;width:100%}  .gpp-agent-container .chat-container thread-wrapper{width:100%}  .gpp-agent-container .chat-container thread-wrapper .duckie-link-following{display:none}  .gpp-agent-container .chat-container .container>.onboarding,   .gpp-agent-container .chat-container .container>.thread{box-shadow:none;margin:0;padding-bottom:0;height:100%}  .gpp-agent-container .chat-container .container>.onboarding .onboarding-section,   .gpp-agent-container .chat-container .container>.onboarding .thread-container,   .gpp-agent-container .chat-container .container>.onboarding .thread-heading,   .gpp-agent-container .chat-container .container>.onboarding message-input,   .gpp-agent-container .chat-container .container>.thread .onboarding-section,   .gpp-agent-container .chat-container .container>.thread .thread-container,   .gpp-agent-container .chat-container .container>.thread .thread-heading,   .gpp-agent-container .chat-container .container>.thread message-input{padding-left:0;padding-right:0}  .gpp-agent-container .chat-container .container>.onboarding .thread-heading,   .gpp-agent-container .chat-container .container>.thread .thread-heading{min-height:0}  .gpp-agent-container .chat-container .container .reminder-blurb{border-radius:8px;font-size:12px;padding:0 1em}  .gpp-agent-container .chat-container .container .duckie-disclaimer{font-size:10px;margin:0}  .gpp-agent-container .chat-container .container .interactive-element-button{display:inline-block;margin-top:3px}  .gpp-agent-container .recent-sessions-container{width:100%}  .gpp-agent-container.light-mode{--primary-container:#d3e3fd;--on-primary-container:#041e49;--surface-container:#f0f4f9;--surface-secondary:#f8f9fa;--secondary-container:#c2e7ff;--duckie-experiment-banner-color-1:#d7e6ff;--duckie-experiment-banner-color-2:#dce2ff;--graphviz-bg-fill:transparent;--graphviz-text-default:#3c4043;--graphviz-stroke-default:#3c4043;--graphviz-cluster-stroke:#616161}  .gpp-agent-container.dark-mode{--primary-container:#0842a0;--on-primary-container:#d3e3fd;--surface-container:#1e1f20;--surface-secondary:#000;--secondary-container:#004a77;--duckie-experiment-banner-color-1:#0842a0;--duckie-experiment-banner-color-2:#55226e;--graphviz-text-default:#e8eaed;--graphviz-stroke-default:#e8eaed;--graphviz-cluster-stroke:#dadce0}"],
changeDetection:0});new bd("WINDOW_TOKEN",{factory:function(){return window},providedIn:"root"});var Wfd=new bd("SAFEVALUES_DOM_TOKEN",{factory:function(){return Lh},providedIn:"root"});var Xad=["query_nexus_debug_entity"],HL=function(){this.safevaluesDom=q(Wfd)};Z(HL,JJ);
var Yad=function(a,b){if(lj(b,OC,1,QKc)){b=b.getButton();if(!xm(b,3))return!1;switch(Fi(b,3)){case "query_nexus_debug_entity":b:{var c=Y(b,NKc,4);if(c&&sc(c,1,NC,Rb).has("entity")&&sc(c,1,NC,Rb).has("serialized_filters")){b=sc(c,1,NC,Rb).get("entity");c=sc(c,1,NC,Rb).get("serialized_filters");switch(b.getValue()){case "LOGS":b="debug/dashboard?tab=rdl";break;case "DAPPER_TRACES":b="debug/dashboard?tab=dapper";break;case "SHERLOG_TRACES":b="debug/dashboard?tab=sherlog_data_id";break;case "ERROR_BREAKDOWN":b=
"error_explorer?";break;case "ISSUES":b="debug/dashboard?tab=error_insights";break;default:b=void 0;break b}b+="&filters="+encodeURIComponent(c.getValue())}else b=void 0}b?(a.safevaluesDom.windowOpen(window,Bh("https://nexus.corp.google.com/"+b),"_blank"),a=!0):a=!1;return a}}return!1};HL.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(HL)))(b||HL)}}();HL.\u0275prov=Cc({token:HL,factory:HL.\u0275fac,providedIn:"root"});var IL=function(){this.screenshotLinkFollowingEnabled=this.userProvidedContextEnabled=this.responseMetadataEnabled=!0;this.experimentalDuckieAgentEnabled=this.sVsMGooseModelEnabled=!1;this.userProvidedContextDriveEnabled=this.userProvidedContextYaqsEnabled=this.displayDuckieThoughtsEnabled=!0;this.userProvidedContextIrmEnabled=this.duckieStreamingMvpEnabled=this.userProvidedContextEldarEnabled=this.userProvidedContextGerritEnabled=this.userProvidedContextGoLinkEnabled=this.recitationCheckingEnabled=
this.userProvidedContextGobEnabled=!1;this.duckieSessionDeletionEnabled=!0;this.duckieAddKnowledgeMvpEnabled=this.a2aDefaultAgentEnabled=this.showDuckieShortsLinksEnabled=this.feedbackAnimationsEnabled=this.duckieBigBirdStrikeEnabled=!1};Z(IL,PA);IL.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(IL)))(b||IL)}}();IL.\u0275prov=Cc({token:IL,factory:IL.\u0275fac,providedIn:"root"});var JL=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(JL,X);JL.prototype.getId=function(){return Fi(this,1)};JL.prototype.setId=function(a){return $m(this,1,a)};JL.prototype.getSourceId=function(){return Ri(this,2)};JL.prototype.setSourceId=function(a){return cn(this,2,a)};var Xfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Xfd,X);h=Xfd.prototype;h.getUrl=function(){return Fi(this,1)};h.setUrl=function(a){return $m(this,1,a)};h.getHeight=function(){return Wm(this,2)};h.setHeight=function(a){return sn(this,2,a)};h.getWidth=function(){return Wm(this,3)};h.setWidth=function(a){return sn(this,3,a)};var Yfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Yfd,X);Yfd.prototype.hasDuration=function(){return Si(this,vn,2)};var Zfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Zfd,X);var $fd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z($fd,X);h=$fd.prototype;h.getEmailList=function(){return Xm(this,1,Xi())};h.setEmailList=function(a){return an(this,1,a)};h.addEmail=function(a){return Vq(this,1,a)};h.removeEmail=function(a){return wc(this,1,Nb,void 0,a,Ob,void 0,1,!1,!0)};h.getEmail=function(){return ox(this,1)};h.setEmail=function(a){return zx(this,1,a)};h.getGroupId=function(a){return ox(this,2,a)};h.setGroupId=function(a){zx(this,2,a)};var agd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(agd,X);var bgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(bgd,X);bgd.prototype.getDownloadUrl=function(){return Fi(this,5)};var cgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(cgd,X);var dgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(dgd,X);var egd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(egd,X);egd.prototype.getPhotoId=function(){return Fi(this,1)};var fgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(fgd,X);var ggd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ggd,X);var KL=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(KL,X);KL.prototype.getAgentId=function(){return Ri(this,3)};KL.prototype.setAgentId=function(a){return cn(this,3,a)};var hgd=[2,4,5,6,7];var igd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(igd,X);igd.prototype.setReferrerUrl=function(a){return $m(this,2,a)};var LL=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(LL,X);h=LL.prototype;h.getId=function(){return Y(this,JL,1)};h.setId=function(a){return hj(this,JL,1,a)};h.getName=function(){return Fi(this,2)};h.setName=function(a){return $m(this,2,a)};h.getDescription=function(){return Fi(this,3)};h.setDescription=function(a){return $m(this,3,a)};h.getParentId=function(){return Fi(this,4)};h.setParentId=function(a){return $m(this,4,a)};h.getType=function(){return Ri(this,6)};
h.setType=function(a){return cn(this,6,a)};h.getMimeType=function(){return Fi(this,7)};h.setMimeType=function(a){return $m(this,7,a)};h.getUrl=function(){return Fi(this,8)};h.setUrl=function(a){return $m(this,8,a)};h.getIconUrl=function(){return Fi(this,11)};h.setIconUrl=function(a){return $m(this,11,a)};var ML=function(a){return Wi(a,Xfd,10,Xi())};h=LL.prototype;h.getLastModifiedTimestamp=function(){return Y(this,nj,12)};h.getVideoMetadata=function(){return Y(this,Yfd,34)};
h.hasVideoMetadata=function(){return Si(this,Yfd,34)};h.setOwnedByMe=function(a){return sp(this,39,a)};h.getOwner=function(){return ox(this,40)};h.setOwner=function(a){return zx(this,40,a)};h.getStarred=function(){return $i(this,44)};h.getVersion=function(){return Hn(this,45)};h.setVersion=function(a){return ap(this,45,a)};var NL=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(NL,X);h=NL.prototype;h.getShared=function(){return $i(this,1)};
h.setShared=function(a){sp(this,1,a)};h.getVideoMetadata=function(){return Y(this,Yfd,3)};h.hasVideoMetadata=function(){return Si(this,Yfd,3)};h.getDownloadUrl=function(){return Fi(this,10)};var jgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(jgd,X);jgd.prototype.getLabel=function(){return Fi(this,2)};jgd.prototype.setLabel=function(a){return $m(this,2,a)};var kgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(kgd,X);h=kgd.prototype;h.getStatus=function(){return Ri(this,1)};h.setStatus=function(a){return cn(this,1,a)};h.getItemList=function(a){return Wi(this,LL,2,Xi(a))};h.addItem=function(a,b){return fq(this,2,LL,a,b)};h.setItem=function(a,b){return dx(this,2,LL,a,b)};h.removeItem=function(a){return hx(this,2,LL,a)};h.getItemCount=function(){return Ui(this,LL,2)};
h.getInternalOnlyV1ViewInfo=function(){return Y(this,jgd,7)};var lgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(lgd,X);h=lgd.prototype;h.getSourceId=function(){return Ri(this,1)};h.setSourceId=function(a){return cn(this,1,a)};h.getName=function(){return Fi(this,8)};h.setName=function(a){return $m(this,8,a)};h.getInternalOnlyV1ViewInfo=function(){return Y(this,jgd,18)};var mgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(mgd,X);h=mgd.prototype;h.getCommand=function(){return Ri(this,1)};h.setCommand=function(a){return cn(this,1,a)};h.getSource=function(){return Y(this,lgd,2)};h.setSource=function(a){return hj(this,lgd,2,a)};h.hasSource=function(){return Si(this,lgd,2)};h.getSourceOrUndefined=function(){return bCc(this,lgd,2)};h.setVisible=function(a){return sp(this,5,a)};h.getItemList=function(a){return Wi(this,LL,7,Xi(a))};
h.addItem=function(a,b){return fq(this,7,LL,a,b)};h.setItem=function(a,b){return dx(this,7,LL,a,b)};h.removeItem=function(a){return hx(this,7,LL,a)};h.getItemCount=function(){return Ui(this,LL,7)};h.getQuery=function(){return Fi(this,8)};h.setQuery=function(a){return $m(this,8,a)};h.clearQuery=function(){ex(this,8)};h.getAppId=function(){return Fi(this,9)};h.setAppId=function(a){$m(this,9,a)};var ngd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ngd,X);h=ngd.prototype;h.getCommand=function(){return Ri(this,1)};h.setCommand=function(a){return cn(this,1,a)};h.getItemList=function(a){return Wi(this,LL,4,Xi(a))};h.addItem=function(a,b){return fq(this,4,LL,a,b)};h.setItem=function(a,b){return dx(this,4,LL,a,b)};h.removeItem=function(a){return hx(this,4,LL,a)};h.getItemCount=function(){return Ui(this,LL,4)};var ogd=Hi(ngd);var pgd=function(a){this.streamzService=a;this.metricName="/client_streamz/buganizer/load_time";a.addNewEventMetric(this.metricName,pm("action"),pm("frontend_access_mode"),pm("environment_type"))};pgd.prototype.record=function(a,b,c,d){this.streamzService.record(this.metricName,a,b,c,d)};pgd.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var qgd=function(a){this.streamzService=a;this.metricName="/client_streamz/buganizer/user_action_counts";a.addNewCounter(this.metricName,pm("action"),pm("frontend_access_mode"),pm("environment_type"))};qgd.prototype.increment=function(a,b,c){this.streamzService.incrementCounter(this.metricName,a,b,c)};qgd.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var rgd=function(a){this.streamzService=a;this.metricName="/client_streamz/buganizer/user_latency";a.addNewEventMetric(this.metricName,pm("action"),pm("frontend_access_mode"),pm("environment_type"))};rgd.prototype.record=function(a,b,c,d){this.streamzService.record(this.metricName,a,b,c,d)};rgd.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};var OL=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(OL,X);OL.prototype.getResourcePath=function(){return Fi(this,2)};OL.prototype.setResourcePath=function(a){return $m(this,2,a)};var sgd=function(a){this.servicePromise_=a;a.then(Dj(function(){},this),function(){},this)},tgd=function(a,b,c){return a.servicePromise_.then(function(d){var e=d[b];if(!e)throw Error("ad`"+b);return e.apply(d,c)})},wgd=function(a,b,c){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];e=ugd(a,b).then(function(f){return f.apply(null,d)},function(f){f=Error("bd`"+b+"`"+a+"`"+f,{cause:f});delete vgd[b];return XOc(f)});return new sgd(e)},vgd={},ugd=function(a,b){var c=
vgd[b];if(c)return c;c=(c=sv(b))?WOc(c):(new eE(function(d,e){var f=(new XD(document)).createElement("SCRIPT");f.async=!0;(0,Lh.setScriptSrc)(f,xh(a instanceof rOc&&a.constructor===rOc&&a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===qOc?a.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"));f.onload=f.onreadystatechange=function(){f.readyState&&f.readyState!="loaded"&&f.readyState!="complete"||d()};f.onerror=function(g){e(Error("cd`"+b+"`"+a,{cause:g}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(f)})).then(function(){var d=sv(b);if(!d)throw Error("dd`"+b+"`"+a);return d});return vgd[b]=c};var xgd={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},zgd=function(){var a=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=ESa(function(){return y(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()):z(b,ygd(a),2);a.rsaForList.length>
0&&document.addEventListener("click",a.requestAccessForHelpPanel);$d(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()})}}};zgd.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var ygd=function(a){var b,c,d,e;return y(function(f){switch(f.nextAddress){case 1:b=l(Object.values(xgd)),c=b.next();case 2:if(c.done){f.jumpTo(0);break}d=c.value;Vd(f,5);return z(f,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:d}),7);case 7:e=f.yieldResult;e.state!=="granted"&&a.rsaForList.push(d);bk(f,3);break;case 5:Zd(f);f.jumpTo(0);break;case 3:c=b.next(),f.jumpTo(2)}})};(new zgd).initialize();var Agd=function(a){this.loader_=a};Agd.prototype.startFeedback=function(a){tgd(this.loader_,"startFeedback",arguments)};Agd.prototype.requestSurvey=function(a){tgd(this.loader_,"requestSurvey",arguments).thenCatch(function(){},this)};Agd.prototype.presentSurvey=function(a){tgd(this.loader_,"presentSurvey",arguments).thenCatch(function(){},this)};var Bgd=new rOc(pOc,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");ugd(Bgd,"help.service.Lazy.create").thenCatch(function(){});var qZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(qZa,X);qZa.prototype.getStartDate=function(){return Y(this,qm,4)};var Kp=[1,2];var bp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(bp,X);bp.prototype.getStatus=function(){return Ri(this,1)};bp.prototype.setStatus=function(a){return cn(this,1,a)};bp.prototype.getReason=function(){return Ri(this,2)};bp.prototype.setReason=function(a){return cn(this,2,a)};var Tp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Tp,X);var Fp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Fp,X);h=Fp.prototype;h.getStartTime=function(){return Y(this,nj,1)};h.setStartTime=function(a){hj(this,nj,1,a)};h.getEndTime=function(){return Y(this,nj,2)};h.setEndTime=function(a){hj(this,nj,2,a)};h.hasEndTime=function(){return Si(this,nj,2)};h.getObjective=function(){return Y(this,vn,4)};h.setObjective=function(a){return hj(this,vn,4,a)};h.getBusinessDays=function(){return Wm(this,5)};
h.setBusinessDays=function(a){return sn(this,5,a)};h.getDayType=function(){return Ri(this,6)};h.setDayType=function(a){return cn(this,6,a)};var br=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(br,X);var cr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(cr,X);cr.prototype.getSourceIssueIdsList_asString=function(){return mn(this,1)};cr.prototype.setSourceIssueIdsList=function(a){return Kr(this,1,a)};var XZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(XZa,X);var Yo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Yo,X);Yo.prototype.getAccessLevel=function(){return Ri(this,1)};Yo.prototype.setAccessLevel=function(a){return cn(this,1,a)};var sYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(sYa,X);var Zo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Zo,X);Zo.prototype.getSeverity=function(){return Ri(this,1)};Zo.prototype.setSeverity=function(a){return cn(this,1,a)};var dq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(dq,X);var cp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(cp,X);cp.prototype.getRetentionPeriod=function(){return Y(this,vn,1)};var ep=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ep,X);h=ep.prototype;h.getAttachmentId_asString=function(){return Ln(this,1)};h.setAttachmentId=function(a){return ap(this,1,a)};h.getLength=function(){return Hn(this,3)};h.getFilename=function(){return Fi(this,4)};h.setFilename=function(a){return $m(this,4,a)};h.getEntityStatus=function(){return Y(this,bp,6)};h.setEntityStatus=function(a){return hj(this,bp,6,a)};h.getEtag=function(){return lo(this,7)};
h.setEtag=function(a){return fp(this,7,a)};h.getContentVerdict=function(){return Y(this,dq,10)};h.setContentVerdict=function(a){hj(this,dq,10,a)};h.getRestrictedRetentionState=function(){return Y(this,cp,11)};h.setRestrictedRetentionState=function(a){hj(this,cp,11,a)};h.getRestrictedRetention=function(){return Ri(this,12)};h.setRestrictedRetention=function(a){return cn(this,12,a)};var mp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(mp,X);mp.prototype.getValuesList=function(a){return Wi(this,qm,1,Xi(a))};mp.prototype.setValuesList=function(a){return ij(this,1,a)};mp.prototype.setValues=function(a,b){dx(this,1,qm,a,b)};var lp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(lp,X);lp.prototype.getValuesList=function(a){return lc(this,1,ub,Xi(a))};lp.prototype.setValuesList=function(a){return tc(this,1,a,Eca)};lp.prototype.getValues=function(a){var b=lc(this,1,ub,3,!0);eb(b,a);return b[a]};lp.prototype.setValues=function(a,b){wc(this,1,Eca,b,a,ub,void 0,1)};var kp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(kp,X);kp.prototype.getValuesList=function(a){return Xm(this,1,Xi(a))};kp.prototype.setValuesList=function(a){return an(this,1,a)};kp.prototype.getValues=function(a){return ox(this,1,a)};kp.prototype.setValues=function(a,b){zx(this,1,a,b)};var Zm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Zm,X);Zm.prototype.getEmailAddress=function(){return Fi(this,1)};var np=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(np,X);h=np.prototype;h.getValueCase=function(){return Oo(this,jp)};h.getCustomFieldId=function(){return Hn(this,1)};h.getCustomFieldId_asString=function(){return Ln(this,1)};h.setCustomFieldId=function(a){return ap(this,1,a)};h.getDateValue=function(){return lm(this,qm,3,jp)};h.getDisplayString=function(){return Fi(this,10)};var jp=[2,3,4,5,6,7,8,9,12,13,14,15,16,17];var pp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(pp,X);h=pp.prototype;h.getCustomFieldId=function(){return Hn(this,1)};h.getCustomFieldId_asString=function(){return Ln(this,1)};h.setCustomFieldId=function(a){return ap(this,1,a)};h.getComponentId=function(){return Hn(this,2)};h.getComponentId_asString=function(){return Ln(this,2)};h.setComponentId=function(a){return ap(this,2,a)};h.getType=function(){return Ri(this,3)};h.setType=function(a){return cn(this,3,a)};
h.getName=function(){return Fi(this,5)};h.setName=function(a){return $m(this,5,a)};h.getDescription=function(){return Fi(this,6)};h.setDescription=function(a){return $m(this,6,a)};h.getEnumValues=function(a){return ox(this,8,a)};h.setFieldSignificance=function(a){return cn(this,9,a)};h.getShared=function(){return $i(this,11)};h.setShared=function(a){sp(this,11,a)};var hp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(hp,X);hp.prototype.getCustomFieldId=function(){return Hn(this,bj(this,gp,1))};hp.prototype.getCustomFieldId_asString=function(){return Ln(this,bj(this,gp,1))};hp.prototype.setCustomFieldId=function(a){return ip(this,1,gp,a==null?a:Fb(a,void 0))};hp.prototype.hasCustomFieldId=function(){var a=bj(this,gp,1);return dCc(this,a)!=null};var gp=[1,2];var Ep=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Ep,X);Ep.prototype.getCount=function(){return Hn(this,2)};Ep.prototype.setCount=function(a){return ap(this,2,a)};Ep.prototype.getType=function(){return Ri(this,4)};Ep.prototype.setType=function(a){return cn(this,4,a)};var wp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(wp,X);var Bp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Bp,X);Bp.prototype.getContent=function(){return Y(this,Ll,1)};Bp.prototype.setContent=function(a){return hj(this,Ll,1,a)};Bp.prototype.hasContent=function(){return Si(this,Ll,1)};var Ap=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Ap,X);Ap.prototype.getContent=function(){return Y(this,Ll,1)};Ap.prototype.setContent=function(a){return hj(this,Ll,1,a)};Ap.prototype.hasContent=function(){return Si(this,Ll,1)};var zp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(zp,X);zp.prototype.getContent=function(){return Y(this,Ll,2)};zp.prototype.setContent=function(a){return hj(this,Ll,2,a)};zp.prototype.hasContent=function(){return Si(this,Ll,2)};var UYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(UYa,X);var Cp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Cp,X);Cp.prototype.getKindCase=function(){return Oo(this,yp)};var yp=[1,2,3];var Cgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Cgd,X);Cgd.prototype.getState=function(){return Ri(this,2)};Cgd.prototype.setState=function(a){return cn(this,2,a)};var cq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(cq,X);h=cq.prototype;h.getIssueId=function(){return Hn(this,6)};h.getIssueId_asString=function(){return Ln(this,6)};h.setIssueId=function(a){return ap(this,6,a)};h.getCommentNumber=function(){return Wm(this,7)};h.setCommentNumber=function(a){return sn(this,7,a)};h.getComment=function(){return Fi(this,1)};h.setComment=function(a){return $m(this,1,a)};h.getFormattedComment=function(){return Y(this,Cp,16)};
h.setFormattedComment=function(a){hj(this,Cp,16,a)};h.hasFormattedComment=function(){return Si(this,Cp,16)};h.getMentionsList=function(a){return Wi(this,Cgd,14,Xi(a))};h.getFormattingMode=function(){return Ri(this,9)};h.setFormattingMode=function(a){return cn(this,9,a)};h.getAttachmentsList=function(){return Wi(this,ep,2,Xi())};h.setAttachmentsList=function(a){return ij(this,2,a)};h.addAllAttachments=function(a){eq(this,2,ep,a)};h.getModifiedTime=function(){return Y(this,nj,4)};
h.setModifiedTime=function(a){return hj(this,nj,4,a)};h.getEntityStatus=function(){return Y(this,bp,5)};h.setEntityStatus=function(a){return hj(this,bp,5,a)};h.getVersion=function(){return Wm(this,8)};h.setVersion=function(a){return sn(this,8,a)};h.getContentVerdict=function(){return Y(this,dq,10)};h.setContentVerdict=function(a){hj(this,dq,10,a)};h.getRestrictedRetentionState=function(){return Y(this,cp,11)};h.setRestrictedRetentionState=function(a){hj(this,cp,11,a)};
h.getRestrictedRetention=function(){return Ri(this,12)};h.setRestrictedRetention=function(a){return cn(this,12,a)};h.getEtag=function(){return lo(this,15)};h.setEtag=function(a){return fp(this,15,a)};var Up=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Up,X);h=Up.prototype;h.getChangeNumber=function(){return Hn(this,3)};h.getChangeNumber_asLegacyNumberOrString=function(){return Vp(this,3)};h.setChangeNumber=function(a){return ap(this,3,a)};h.getState=function(){return Ri(this,4)};h.setState=function(a){return cn(this,4,a)};var Xo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Xo,X);Xo.prototype.getAccessLevel=function(){return Ri(this,1)};Xo.prototype.setAccessLevel=function(a){return cn(this,1,a)};var Lp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Lp,X);Lp.prototype.getRole=function(){return Ri(this,1)};Lp.prototype.setRole=function(a){return cn(this,1,a)};Lp.prototype.getCount=function(){return tm(this,2)};Lp.prototype.setCount=function(a){return Jp(this,2,a)};var pZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(pZa,X);h=pZa.prototype;h.getUser=function(){return Y(this,Zm,1)};h.setUser=function(a){return hj(this,Zm,1,a)};h.hasUser=function(){return Si(this,Zm,1)};h.getRole=function(){return Ri(this,2)};h.setRole=function(a){return cn(this,2,a)};h.getIsLead=function(){return $i(this,3)};h.setIsLead=function(a){return sp(this,3,a)};var Ip=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Ip,X);Ip.prototype.getUser=function(){return lm(this,pZa,1,Mp)};Ip.prototype.setUser=function(a){return op(this,1,Mp,a)};Ip.prototype.hasUser=function(){return lj(this,pZa,1,Mp)};Ip.prototype.getPlaceholder=function(){return lm(this,Lp,2,Mp)};var Mp=[1,2];var Np=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Np,X);var Sp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Sp,X);h=Sp.prototype;h.getComponentId=function(){return Hn(this,1)};h.getComponentId_asString=function(){return Ln(this,1)};h.setComponentId=function(a){return ap(this,1,a)};h.getType=function(){return Ri(this,2)};h.setType=function(a){return cn(this,2,a)};h.getStatus=function(){return Ri(this,3)};h.setStatus=function(a){return cn(this,3,a)};h.getPriority=function(){return Ri(this,4)};
h.setPriority=function(a){return cn(this,4,a)};h.getSeverity=function(){return Ri(this,5)};h.setSeverity=function(a){return cn(this,5,a)};h.getTitle=function(){return Fi(this,6)};h.setTitle=function(a){return $m(this,6,a)};h.getReporter=function(){return Y(this,Zm,7)};h.setReporter=function(a){hj(this,Zm,7,a)};h.getAssignee=function(){return Y(this,Zm,8)};h.setAssignee=function(a){return hj(this,Zm,8,a)};h.clearAssignee=function(){return ex(this,8)};h.getVerifier=function(){return Y(this,Zm,9)};
h.setVerifier=function(a){hj(this,Zm,9,a)};h.clearVerifier=function(){return ex(this,9)};h.getCcsList=function(){return Wi(this,Zm,10,Xi())};h.setCcsList=function(a){ij(this,10,a)};h.addAllCcs=function(a){eq(this,10,Zm,a)};h.setCcs=function(a,b){return dx(this,10,Zm,a,b)};h.getCollaboratorsList=function(){return Wi(this,Zm,31,Xi())};h.setCollaboratorsList=function(a){ij(this,31,a)};h.addAllCollaborators=function(a){eq(this,31,Zm,a)};h.setCollaborators=function(a,b){return dx(this,31,Zm,a,b)};
h.getStaffing=function(){return Y(this,Np,36)};h.setStaffing=function(a){hj(this,Np,36,a)};h.getCanonicalIssueId_asString=function(){return Ln(this,11)};h.setCanonicalIssueId=function(a){ap(this,11,a)};h.getBlockedByIssueIdsList=function(){return kx(this,12,1)};h.getBlockedByIssueIdsList_asString=function(){return mn(this,12)};h.setBlockedByIssueIdsList=function(a){Kr(this,12,a)};h.addAllBlockedByIssueIds=function(a){yx(this,12,a)};h.getBlockingIssueIdsList=function(){return kx(this,13,1)};
h.getBlockingIssueIdsList_asString=function(){return mn(this,13)};h.setBlockingIssueIdsList=function(a){Kr(this,13,a)};h.addAllBlockingIssueIds=function(a){yx(this,13,a)};h.getHotlistIdsList_asLegacyNumberOrString=function(a){return c7a(this,14,Xi(a))};h.getHotlistIdsList_asString=function(){return mn(this,14)};h.setHotlistIdsList=function(a){return Kr(this,14,a)};h.addHotlistIds=function(a,b){return xx(this,14,a,b)};h.addAllHotlistIds=function(a){yx(this,14,a)};
h.removeHotlistIds=function(a){return iCc(this,14,a)};h.getCustomFieldsList=function(){return Wi(this,np,15,Xi())};h.setCustomFieldsList=function(a){return ij(this,15,a)};h.addCustomFields=function(a){fq(this,15,np,a)};h.getCodeChangesList=function(a){return Xm(this,16,Xi(a))};h.setCodeChangesList=function(a){an(this,16,a)};h.addAllCodeChanges=function(a){yc(this,16,Nb,a,Ob)};h.setCodeChanges=function(a,b){return zx(this,16,a,b)};h.getGerritChangesList=function(){return Wi(this,Up,35,Xi())};
h.setGerritChangesList=function(a){ij(this,35,a)};h.addAllGerritChanges=function(a){eq(this,35,Up,a)};h.getInProd=function(){return $i(this,20)};h.setInProd=function(a){sp(this,20,a)};h.getIsArchived=function(){return $i(this,21)};h.setIsArchived=function(a){return sp(this,21,a)};h.getDuplicateIssueIdsList_asString=function(){return mn(this,22)};h.setDuplicateIssueIdsList=function(a){Kr(this,22,a)};h.getIsDeleted=function(){return $i(this,23)};h.setIsDeleted=function(a){sp(this,23,a)};
h.setDeletionReason=function(a){cn(this,24,a)};h.getEntityStatus=function(){return Y(this,bp,25)};h.setEntityStatus=function(a){return hj(this,bp,25,a)};h.getSloSnoozeUntil=function(){return Y(this,nj,26)};h.setSloSnoozeUntil=function(a){hj(this,nj,26,a)};h.getSloEndTime=function(){return Y(this,nj,34)};h.setSloEndTime=function(a){hj(this,nj,34,a)};h.hasSloEndTime=function(){return Si(this,nj,34)};h.setSloSnoozeType=function(a){cn(this,30,a)};h.getRetention=function(){return Ri(this,28)};
h.setRetention=function(a){return cn(this,28,a)};h.getEffort=function(){return Y(this,Tp,29)};h.setEffort=function(a){hj(this,Tp,29,a)};h.hasEffort=function(){return Si(this,Tp,29)};h.getAccessLimit=function(){return Y(this,Xo,32)};h.setAccessLimit=function(a){return hj(this,Xo,32,a)};var G2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(G2a,X);G2a.prototype.setNotificationSubscription=function(a){return cn(this,4,a)};var VZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(VZa,X);var UZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(UZa,X);h=UZa.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return Nn(this,1,a)};h.getCommentNumber=function(){return Wm(this,2)};h.setCommentNumber=function(a){return Wn(this,2,a)};var YZa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(YZa,X);var TZa=[1,2];var Pp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Pp,X);h=Pp.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getFormattingMode=function(){return Ri(this,4)};h.setFormattingMode=function(a){return cn(this,4,a)};h.getAuthor=function(){return Y(this,Zm,5)};h.setAuthor=function(a){hj(this,Zm,5,a)};h.hasAuthor=function(){return Si(this,Zm,5)};
h.getUpdateTime=function(){return Y(this,nj,6)};h.setUpdateTime=function(a){hj(this,nj,6,a)};h.hasUpdateTime=function(){return Si(this,nj,6)};h.getVersion=function(){return Wm(this,7)};h.setVersion=function(a){return sn(this,7,a)};h.getEntityStatus=function(){return Y(this,bp,8)};h.setEntityStatus=function(a){return hj(this,bp,8,a)};var $p=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z($p,X);h=$p.prototype;h.getIssueId=function(){return Hn(this,2)};h.getIssueId_asString=function(){return Ln(this,2)};h.setIssueId=function(a){return ap(this,2,a)};h.getIssueState=function(){return Y(this,Sp,3)};h.setIssueState=function(a){return hj(this,Sp,3,a)};h.getIssueComment=function(){return Y(this,cq,4)};h.setIssueComment=function(a){hj(this,cq,4,a)};h.hasIssueComment=function(){return Si(this,cq,4)};
h.getAttachmentsList=function(){return Wi(this,ep,18,Xi())};h.setAttachmentsList=function(a){return ij(this,18,a)};h.addAllAttachments=function(a){eq(this,18,ep,a)};h.getDescription=function(){return Y(this,cq,44)};h.setDescription=function(a){return hj(this,cq,44,a)};h.hasDescription=function(){return Si(this,cq,44)};h.getStatusUpdate=function(){return Y(this,Pp,43)};h.setStatusUpdate=function(a){hj(this,Pp,43,a)};h.hasStatusUpdate=function(){return Si(this,Pp,43)};
h.getCreatedTime=function(){return Y(this,nj,5)};h.setCreatedTime=function(a){return hj(this,nj,5,a)};h.getModifiedTime=function(){return Y(this,nj,6)};h.setModifiedTime=function(a){return hj(this,nj,6,a)};h.getMajorModifiedTime=function(){return Y(this,nj,35)};h.setMajorModifiedTime=function(a){return hj(this,nj,35,a)};h.getResolvedTime=function(){return Y(this,nj,7)};h.setResolvedTime=function(a){return hj(this,nj,7,a)};h.getVerifiedTime=function(){return Y(this,nj,8)};
h.setVerifiedTime=function(a){return hj(this,nj,8,a)};h.getUserData=function(){return Y(this,G2a,9)};h.getParentIssueIdsList_asString=function(){return mn(this,37)};h.setParentIssueIdsList=function(a){return Kr(this,37,a)};h.getAccessLimit=function(){return Y(this,Yo,11)};h.setAccessLimit=function(a){return hj(this,Yo,11,a)};h.getVersion=function(){return Wm(this,12)};h.setVersion=function(a){return sn(this,12,a)};h.getEtag=function(){return lo(this,13)};h.setEtag=function(a){return fp(this,13,a)};
h.getCustomFieldsList=function(){return Wi(this,pp,15,Xi())};h.setCustomFieldsList=function(a){return ij(this,15,a)};h.addCustomFields=function(a){fq(this,15,pp,a)};h.getSloStatus=function(){return Y(this,br,16)};h.setSloStatus=function(a){hj(this,br,16,a)};h.getSloId_asLegacyNumberOrString=function(){return Vp(this,17)};h.getSloId_asString=function(){return Ln(this,17)};h.setSloId=function(a){return ap(this,17,a)};h.getTeamId=function(){return Hn(this,33)};
h.getTeamId_asLegacyNumberOrString=function(){return Vp(this,33)};h.getTeamId_asString=function(){return Ln(this,33)};h.setTeamId=function(a){return ap(this,33,a)};h.getEscalationOwner=function(){return Y(this,Zm,48)};h.setEscalationOwner=function(a){hj(this,Zm,48,a)};h.getRetentionState=function(){return Y(this,cp,29)};h.setRetentionState=function(a){hj(this,cp,29,a)};h.getAncestorsMap=function(){return sc(this,38,cr,Pb)};h.getChildIssueCount=function(){return Wm(this,39)};
h.setChildIssueCount=function(a){return sn(this,39,a)};h.getDescendantIssueCount=function(){return Wm(this,45)};h.setDescendantIssueCount=function(a){return sn(this,45,a)};h.getOpenDescendantIssueCount=function(){return Wm(this,46)};h.setOpenDescendantIssueCount=function(a){return sn(this,46,a)};h.getIsArchived=function(){return $i(this,40)};h.setIsArchived=function(a){return sp(this,40,a)};h.getTrackerId=function(){return Hn(this,42)};h.getTrackerId_asString=function(){return Ln(this,42)};
h.setTrackerId=function(a){ap(this,42,a)};var PL=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(PL,X);PL.prototype.getCode=function(){return Ri(this,1)};PL.prototype.setCode=function(a){return Yn(this,1,a)};PL.prototype.getCodeOrUndefined=function(){return Op(this,1)};var kw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,1)};Z(kw,X);var Dgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Dgd,X);h=Dgd.prototype;h.getLoggingId=function(){return Fi(this,1)};h.setLoggingId=function(a){Gj(this,1,a)};h.getValue=function(){return tm(this,2)};h.setValue=function(a){return tx(this,2,a)};h.hasValue=function(){return um(this,2,void 0,void 0,ub)!=null};var Kw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Kw,X);Kw.prototype.getEncryptionSupport=function(){return Ri(this,1)};Kw.prototype.getCertificateStatus=function(){return Ri(this,2)};Kw.prototype.getCertificateExpirySec=function(){return Hn(this,3)};var QL=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(QL,X);h=QL.prototype;h.getDisplayName=function(){return Fi(this,1)};h.setDisplayName=function(a){return Gj(this,1,a)};h.getGivenName=function(){return Fi(this,2)};h.setGivenName=function(a){return Gj(this,2,a)};h.hasGivenName=function(){return xm(this,2)};h.getFamilyName=function(){return Fi(this,3)};h.setFamilyName=function(a){return Gj(this,3,a)};h.hasFamilyName=function(){return xm(this,3)};
h.getSourceType=function(){return Ri(this,4)};h.setSourceType=function(a){return Yn(this,4,a)};var Egd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Egd,X);h=Egd.prototype;h.getUrl=function(){return Fi(this,1)};h.setUrl=function(a){return Gj(this,1,a)};h.hasUrl=function(){return xm(this,1)};h.getType=function(){return Ri(this,2)};h.setType=function(a){return Yn(this,2,a)};h.hasType=function(){return ym(this,2)};h.getSourceType=function(){return Ri(this,3)};h.setSourceType=function(a){return Yn(this,3,a)};h.getGlyph=function(){return Fi(this,4)};
h.setGlyph=function(a){return Gj(this,4,a)};var Lw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Lw,X);Lw.prototype.getReachabilityStatus=function(){return Ri(this,1)};Lw.prototype.getClientData=function(){return Fi(this,2)};Lw.prototype.hasClientData=function(){return xm(this,2)};var RL=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(RL,X);RL.prototype.getAltText=function(){return Fi(this,1)};RL.prototype.setAltText=function(a){return Gj(this,1,a)};RL.prototype.getIconUrl=function(){return Fi(this,2)};RL.prototype.setIconUrl=function(a){return Gj(this,2,a)};var SL=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(SL,X);h=SL.prototype;h.getTargetType=function(){return Ri(this,1,18)};h.getValue=function(){return Fi(this,2)};h.setValue=function(a){return Gj(this,2,a)};h.hasValue=function(){return xm(this,2)};h.getName=function(){return Y(this,QL,3)};h.setName=function(a){return hj(this,QL,3,a)};h.hasName=function(){return Si(this,QL,3)};h.getNameOrUndefined=function(){return bCc(this,QL,3)};
h.getPhoto=function(){return Y(this,Egd,4)};h.setPhoto=function(a){hj(this,Egd,4,a)};h.hasPhoto=function(){return Si(this,Egd,4)};h.getProfileId=function(){return ox(this,5)};h.setProfileId=function(a){return zx(this,5,a)};h.getContactId=function(){return ox(this,6)};h.setContactId=function(a){return zx(this,6,a)};h.getIsMe=function(){return $i(this,7)};h.setIsMe=function(a){return jj(this,7,a)};h.getAffinity=function(){return Y(this,Dgd,8)};h.hasAffinity=function(){return Si(this,Dgd,8)};
h.getEmailSecurityInfo=function(){return Y(this,Kw,9)};h.setEmailSecurityInfo=function(a){hj(this,Kw,9,a)};h.getOrgState=function(){return Ri(this,10)};h.setOrgState=function(a){Yn(this,10,a)};h.getDataSource=function(){return Ri(this,11)};h.setDataSource=function(a){return Yn(this,11,a)};h.hasDataSource=function(){return ym(this,11)};h.getDescription=function(){return Fi(this,12)};h.setDescription=function(a){return Gj(this,12,a)};h.hasDescription=function(){return xm(this,12)};
h.getTagList=function(){return Wi(this,RL,14,Xi())};h.setTagList=function(a){ij(this,14,a)};h.addTag=function(a){fq(this,14,RL,a)};h.getExtendedData=function(){return Y(this,kw,15)};h.setExtendedData=function(a){hj(this,kw,15,a)};h.hasExtendedData=function(){return Si(this,kw,15)};h.getCanonicalValue=function(){return Fi(this,16)};h.setCanonicalValue=function(a){return Gj(this,16,a)};h.hasCanonicalValue=function(){return xm(this,16)};h.getReachabilityInfo=function(){return Y(this,Lw,17)};
h.setReachabilityInfo=function(a){hj(this,Lw,17,a)};var Fgd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Fgd,X);h=Fgd.prototype;h.getResultType=function(){return Ri(this,1,7)};h.setResultType=function(a){return Yn(this,1,a)};h.getTargetList=function(){return Wi(this,SL,2,Xi())};h.setTarget=function(a){dx(this,2,SL,a)};h.getTargetCount=function(){return Ui(this,SL,2)};h.getMemberList=function(){return Wi(this,Fgd,3,Xi())};h.getTotalMemberCount=function(){return Wm(this,4)};
h.getIsBoosted=function(){return $i(this,5)};h.setIsBoosted=function(a){jj(this,5,a)};h.getAffinity=function(){return Y(this,Dgd,6)};h.hasAffinity=function(){return Si(this,Dgd,6)};h.getExtendedData=function(){return Y(this,kw,7)};h.setExtendedData=function(a){hj(this,kw,7,a)};h.hasExtendedData=function(){return Si(this,kw,7)};var Ggd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Ggd,X);var Hgd=function(a,b){ij(a,1,b)};h=Ggd.prototype;h.setResult=function(a,b){return dx(this,1,Fgd,a,b)};h.getMetadata=function(){return Y(this,PL,2)};h.getMutableMetadata=function(){return cj(this,PL,2)};h.setMetadata=function(a){hj(this,PL,2,a)};h.hasMetadata=function(){return Si(this,PL,2)};var OSa=Object.prototype.hasOwnProperty;var iTa=new yl("M/d/yyyy");var Igd={ACCESS_LEVEL_UNSPECIFIED:"ACCESS_LEVEL_UNSPECIFIED",INTERNAL:"INTERNAL",EXTERNAL_PARTNER:"EXTERNAL_PARTNER",EXTERNAL_PUBLIC:"EXTERNAL_PUBLIC"},UXa={0:"ACCESS_LEVEL_UNSPECIFIED",1:"INTERNAL",2:"EXTERNAL_PARTNER",3:"EXTERNAL_PUBLIC"},Jgd={},WXa=(Jgd.ACCESS_LEVEL_UNSPECIFIED=0,Jgd.INTERNAL=1,Jgd.EXTERNAL_PARTNER=2,Jgd.EXTERNAL_PUBLIC=3,Jgd),Kgd={ACTION_TYPE_UNSPECIFIED:"ACTION_TYPE_UNSPECIFIED",ADD:"ADD",REMOVE:"REMOVE"},Lgd={},B2a=(Lgd.ACTION_TYPE_UNSPECIFIED=0,Lgd.ADD=1,Lgd.REMOVE=2,Lgd),
Q0a={0:"AUTO_INACTIVATION_STATE_UNSPECIFIED",1:"ENABLED",2:"DISABLED"},Mgd={},Ngd=(Mgd.AUTO_INACTIVATION_STATE_UNSPECIFIED=0,Mgd.ENABLED=1,Mgd.DISABLED=2,Mgd),f6a={0:"CATEGORY_UNSPECIFIED",1:"OWNER",2:"COLLABORATOR",3:"FOLLOWING"},xVa={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"},TL={},oVa=(TL.CHANGELIST_SIGNAL_UNSPECIFIED=0,TL.THREAD_MENTIONS_ME=
1,TL.IDLE_FOR_HOURS=2,TL.AUTHOR_GOING_OOO=3,TL.NEEDS_ATTENTION=4,TL.NUDGED=5,TL.READY_TO_SUBMIT=6,TL.CHANGELIST_MANUAL_SIGNAL=7,TL.CHANGELIST_SNOOZE_EXPIRED=8,TL),j6a={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"},UL={},D6a=(UL.CHANGELIST_SIGNAL_UNSPECIFIED=0,UL.THREAD_MENTIONS_ME=1,UL.IDLE_FOR_HOURS=2,UL.AUTHOR_GOING_OOO=3,UL.NEEDS_ATTENTION=
4,UL.NUDGED=5,UL.READY_TO_SUBMIT=6,UL.CHANGELIST_MANUAL_SIGNAL=7,UL.CHANGELIST_SNOOZE_EXPIRED=8,UL),cVa={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"},wUa={0:"COMMENT_FORMATTING_MODE_UNSPECIFIED",1:"PLAIN_FORMATTING_MODE",2:"MARKDOWN_FORMATTING_MODE",3:"LITERAL_FORMATTING_MODE"},Ogd={},TUa=(Ogd.COMMENT_FORMATTING_MODE_UNSPECIFIED=
0,Ogd.PLAIN_FORMATTING_MODE=1,Ogd.MARKDOWN_FORMATTING_MODE=2,Ogd.LITERAL_FORMATTING_MODE=3,Ogd),i_a={0:"CONFIDENCE_LEVEL_UNSPECIFIED",1:"VERY_HIGH",2:"HIGH",3:"MEDIUM",4:"LOW"},Pgd={},k_a=(Pgd.CONFIDENCE_LEVEL_UNSPECIFIED=0,Pgd.VERY_HIGH=1,Pgd.HIGH=2,Pgd.MEDIUM=3,Pgd.LOW=4,Pgd),Qgd={DAY_TYPE_UNSPECIFIED:"DAY_TYPE_UNSPECIFIED",CALENDAR:"CALENDAR",BUSINESS:"BUSINESS"},bZa={0:"DAY_TYPE_UNSPECIFIED",1:"CALENDAR",2:"BUSINESS"},Rgd={},dZa=(Rgd.DAY_TYPE_UNSPECIFIED=0,Rgd.CALENDAR=1,Rgd.BUSINESS=2,Rgd),DZa=
{0:"DELETION_REASON_UNSPECIFIED",1:"USER_REQUEST",2:"ABUSE",3:"RESTRICTED",4:"RETENTION",5:"ACCOUNT_CAPABILITIES"},VL={},KZa=(VL.DELETION_REASON_UNSPECIFIED=0,VL.USER_REQUEST=1,VL.ABUSE=2,VL.RESTRICTED=3,VL.RETENTION=4,VL.ACCOUNT_CAPABILITIES=5,VL),Sgd={COMFORTABLE:"COMFORTABLE",COZY:"COZY",COMPACT:"COMPACT"},cUa={1:"COMFORTABLE",2:"COZY",3:"COMPACT"},Tgd={},QUa=(Tgd.COMFORTABLE=1,Tgd.COZY=2,Tgd.COMPACT=3,Tgd),R6a={0:"NO_DETAILED_TYPE",1:"UNRESTRICTED_GOOGLER",2:"TVC",3:"EXTERNAL",4:"PUBLIC",5:"ISSUE_CREATION_ONLY"},
c6a={0:"DRIVE_FILE_TYPE_UNSPECIFIED",1:"DOCUMENT",2:"SPREADSHEET",3:"PRESENTATION"},vVa={0:"DRIVE_SIGNAL_UNSPECIFIED",1:"TAGGED_IN_COMMENT",2:"REQUIRES_APPROVAL",3:"COMMENTS_REQUIRE_ATTENTION",4:"DRIVE_MANUAL_SIGNAL",5:"DRIVE_SNOOZE_EXPIRED"},WL={},kVa=(WL.DRIVE_SIGNAL_UNSPECIFIED=0,WL.TAGGED_IN_COMMENT=1,WL.REQUIRES_APPROVAL=2,WL.COMMENTS_REQUIRE_ATTENTION=3,WL.DRIVE_MANUAL_SIGNAL=4,WL.DRIVE_SNOOZE_EXPIRED=5,WL),h6a={0:"DRIVE_SIGNAL_UNSPECIFIED",1:"TAGGED_IN_COMMENT",2:"REQUIRES_APPROVAL",3:"COMMENTS_REQUIRE_ATTENTION",
4:"DRIVE_MANUAL_SIGNAL",5:"DRIVE_SNOOZE_EXPIRED"},XL={},B6a=(XL.DRIVE_SIGNAL_UNSPECIFIED=0,XL.TAGGED_IN_COMMENT=1,XL.REQUIRES_APPROVAL=2,XL.COMMENTS_REQUIRE_ATTENTION=3,XL.DRIVE_MANUAL_SIGNAL=4,XL.DRIVE_SNOOZE_EXPIRED=5,XL),EYa={0:"EDIT_SIGNIFICANCE_UNSPECIFIED",1:"SILENT",2:"MINOR",3:"MAJOR",4:"BULK",5:"CLOSING"},YL={},IYa=(YL.EDIT_SIGNIFICANCE_UNSPECIFIED=0,YL.SILENT=1,YL.MINOR=2,YL.MAJOR=3,YL.BULK=4,YL.CLOSING=5,YL),Mwb={0:"ELIGIBILITY_STATE_UNSPECIFIED",1:"INELIGIBLE",2:"ELIGIBLE_NOT_STARTED",
3:"EXISTING",4:"INELIGIBLE_EXISTING"},uUa={0:"UNKNOWN_PRIORITY",4:"CLOSURE_ONLY",1:"MINIMAL",2:"IMPORTANT",3:"ALL"},Ugd={},Zn=(Ugd.UNKNOWN_PRIORITY=0,Ugd.CLOSURE_ONLY=4,Ugd.MINIMAL=1,Ugd.IMPORTANT=2,Ugd.ALL=3,Ugd),ZL={},V_a=(ZL.ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED=0,ZL.THUMBS_UP=1,ZL.THUMBS_DOWN=2,ZL.OPEN=3,ZL.CLOSE=4,ZL.COPY=5,ZL.CLOSE_AS_DUPLICATE=6,ZL.ISSUE_HOVERCARD=7,ZL.GO_TO_ISSUE=8,ZL.DELETE=9,ZL.VIEW=10,ZL.IMPRESSION=11,ZL.COPY_DEEP_LINK=12,ZL),bUa={0:"DEFAULT",1:"ASSIGNMENT",2:"RESPONSE",
3:"CLOSURE"},Vgd={},PUa=(Vgd.DEFAULT=0,Vgd.ASSIGNMENT=1,Vgd.RESPONSE=2,Vgd.CLOSURE=3,Vgd),Wgd={EVENT_TYPE_UNSPECIFIED:"EVENT_TYPE_UNSPECIFIED",EVENT_TYPE_IMPRESSION:"EVENT_TYPE_IMPRESSION",EVENT_TYPE_VIEW:"EVENT_TYPE_VIEW",EVENT_TYPE_ACCEPT:"EVENT_TYPE_ACCEPT",EVENT_TYPE_PARTIALLY_ACCEPT:"EVENT_TYPE_PARTIALLY_ACCEPT",EVENT_TYPE_REJECT:"EVENT_TYPE_REJECT",EVENT_TYPE_OPEN:"EVENT_TYPE_OPEN",EVENT_TYPE_CLOSE:"EVENT_TYPE_CLOSE",EVENT_TYPE_THUMBS_UP:"EVENT_TYPE_THUMBS_UP",EVENT_TYPE_THUMBS_DOWN:"EVENT_TYPE_THUMBS_DOWN",
EVENT_TYPE_COPY:"EVENT_TYPE_COPY",EVENT_TYPE_FEEDBACK:"EVENT_TYPE_FEEDBACK",EVENT_TYPE_DELETE:"EVENT_TYPE_DELETE",EVENT_TYPE_DISPLAYED_DURING_ISSUE_CREATION:"EVENT_TYPE_DISPLAYED_DURING_ISSUE_CREATION",EVENT_TYPE_CLOSE_AS_DUPLICATE:"EVENT_TYPE_CLOSE_AS_DUPLICATE",EVENT_TYPE_ISSUE_HOVERCARD:"EVENT_TYPE_ISSUE_HOVERCARD",EVENT_TYPE_GO_TO_ISSUE:"EVENT_TYPE_GO_TO_ISSUE",EVENT_TYPE_COPY_DEEP_LINK:"EVENT_TYPE_COPY_DEEP_LINK"},$L={},Xgd=($L.EVENT_TYPE_UNSPECIFIED=0,$L.EVENT_TYPE_IMPRESSION=5,$L.EVENT_TYPE_VIEW=
1,$L.EVENT_TYPE_ACCEPT=2,$L.EVENT_TYPE_PARTIALLY_ACCEPT=6,$L.EVENT_TYPE_REJECT=3,$L.EVENT_TYPE_OPEN=7,$L.EVENT_TYPE_CLOSE=8,$L.EVENT_TYPE_THUMBS_UP=9,$L.EVENT_TYPE_THUMBS_DOWN=10,$L.EVENT_TYPE_COPY=11,$L.EVENT_TYPE_FEEDBACK=12,$L.EVENT_TYPE_DELETE=13,$L.EVENT_TYPE_DISPLAYED_DURING_ISSUE_CREATION=4,$L.EVENT_TYPE_CLOSE_AS_DUPLICATE=14,$L.EVENT_TYPE_ISSUE_HOVERCARD=15,$L.EVENT_TYPE_GO_TO_ISSUE=16,$L.EVENT_TYPE_COPY_DEEP_LINK=17,$L),Ygd={},Y2a=(Ygd.QUERY_UNSPECIFIED=0,Ygd.QUERY_TRIAGE_PHASE=1,Ygd.QUERY_CLUSTER=
2,Ygd),Zgd={},a3a=(Zgd.SORT_UNSPECIFIED=0,Zgd.SORT_TRIAGE_PHASE=1,Zgd),aM={},$gd=(aM.FEATURE_UNSPECIFIED=0,aM.FEATURE_ISSUE_DEDUPLICATION=1,aM.FEATURE_HOTLIST=2,aM.FEATURE_ISSUE_DEDUPLICATION_BATCH=3,aM.FEATURE_NEEDS_INFO=4,aM.FEATURE_COMPONENT_ROUTING=5,aM.FEATURE_ANY_ISSUE_EDIT=11,aM.FEATURE_INSIGHT=6,aM.FEATURE_ATTACHMENT_ANALYSIS=7,aM.FEATURE_SIMILAR_ISSUES=8,aM.FEATURE_SUMMARY=10,aM.FEATURE_HELP_ME_FIX=9,aM),P1b={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",70:"INSIGHT",71:"ATTACHMENT_ANALYSIS",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",69:"ATTACHMENT_COUNT",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"},R0a={0:"FIELD_ORDERING_UNSPECIFIED",1:"INHERITED",2:"CUSTOMIZED"},ahd={},bhd=(ahd.FIELD_ORDERING_UNSPECIFIED=0,ahd.INHERITED=1,ahd.CUSTOMIZED=2,ahd),chd={FIELD_STATE_UNSPECIFIED:"FIELD_STATE_UNSPECIFIED",INHERIT:"INHERIT",DISABLED:"DISABLED",ENABLED:"ENABLED"},s0a={0:"FIELD_STATE_UNSPECIFIED",1:"INHERIT",2:"DISABLED",3:"ENABLED"},dhd={},ehd=(dhd.UNSPECIFIED_FORMATTING_AUDIENCE=
0,dhd.INTERNAL=1,dhd.EXTERNAL=2,dhd),fo={UNSPECIFIED_FORMATTING_MODE:"UNSPECIFIED_FORMATTING_MODE",PLAIN:"PLAIN",MARKDOWN:"MARKDOWN",LITERAL:"LITERAL"},Z0a={0:"UNSPECIFIED_FORMATTING_MODE",1:"PLAIN",2:"MARKDOWN",3:"LITERAL"},wVa={0:"GERRIT_CHANGE_SIGNAL_UNSPECIFIED",1:"GERRIT_CHANGE_NEEDS_ATTENTION",2:"GERRIT_CHANGE_READY_TO_SUBMIT",3:"GERRIT_MANUAL_SIGNAL",4:"GERRIT_SNOOZE_EXPIRED"},fhd={},mVa=(fhd.GERRIT_CHANGE_SIGNAL_UNSPECIFIED=0,fhd.GERRIT_CHANGE_NEEDS_ATTENTION=1,fhd.GERRIT_CHANGE_READY_TO_SUBMIT=
2,fhd.GERRIT_MANUAL_SIGNAL=3,fhd.GERRIT_SNOOZE_EXPIRED=4,fhd),t6a={0:"GERRIT_CHANGE_SIGNAL_UNSPECIFIED",1:"GERRIT_CHANGE_NEEDS_ATTENTION",2:"GERRIT_CHANGE_READY_TO_SUBMIT",3:"GERRIT_MANUAL_SIGNAL",4:"GERRIT_SNOOZE_EXPIRED"},ghd={},F6a=(ghd.GERRIT_CHANGE_SIGNAL_UNSPECIFIED=0,ghd.GERRIT_CHANGE_NEEDS_ATTENTION=1,ghd.GERRIT_CHANGE_READY_TO_SUBMIT=2,ghd.GERRIT_MANUAL_SIGNAL=3,ghd.GERRIT_SNOOZE_EXPIRED=4,ghd),yVa={0:"GOOGLE_TASKS_SIGNAL_UNSPECIFIED",1:"DUE_SOON",2:"DUE_DATE_EXPIRED",3:"GOOGLE_TASKS_MANUAL_SIGNAL",
4:"GOOGLE_TASKS_SNOOZE_EXPIRED"},hhd={},qVa=(hhd.GOOGLE_TASKS_SIGNAL_UNSPECIFIED=0,hhd.DUE_SOON=1,hhd.DUE_DATE_EXPIRED=2,hhd.GOOGLE_TASKS_MANUAL_SIGNAL=3,hhd.GOOGLE_TASKS_SNOOZE_EXPIRED=4,hhd),ihd={INVOLVEMENT_UNSPECIFIED:"INVOLVEMENT_UNSPECIFIED",HIGH:"HIGH",MEDIUM:"MEDIUM",LOW:"LOW",ZERO:"ZERO"},zVa={0:"IRM_SIGNAL_UNSPECIFIED",1:"IRM_MANUAL_SIGNAL",2:"IRM_SNOOZE_EXPIRED",3:"IRM_SEND_POSTMORTEM_FOR_REVIEW",4:"IRM_REVIEW_POSTMORTEM"},jhd={},sVa=(jhd.IRM_SIGNAL_UNSPECIFIED=0,jhd.IRM_MANUAL_SIGNAL=
1,jhd.IRM_SNOOZE_EXPIRED=2,jhd.IRM_SEND_POSTMORTEM_FOR_REVIEW=3,jhd.IRM_REVIEW_POSTMORTEM=4,jhd),YHb={0:"ISSUE_CATEGORY_UNSPECIFIED",1:"ISSUE_CATEGORY_UNSUPPORTED",2:"ISSUE_CATEGORY_STACK_TRACES",3:"ISSUE_CATEGORY_ADS",4:"ISSUE_CATEGORY_GAR",5:"ISSUE_CATEGORY_PIXEL",6:"ISSUE_CATEGORY_BORG_SRE",7:"ISSUE_CATEGORY_CLOUD_SRE",8:"ISSUE_CATEGORY_GCP",9:"ISSUE_CATEGORY_DIALER",10:"ISSUE_CATEGORY_EDSENSE",11:"ISSUE_CATEGORY_VERTEX_AI_SUPPORT",12:"ISSUE_CATEGORY_CLOUD_AI_RETAIL_SUPPORT",13:"ISSUE_CATEGORY_ANDROID_BLUE_SIGHT",
14:"ISSUE_CATEGORY_ANDROID_COASTGUARD",15:"ISSUE_CATEGORY_CORE_PROCUREMENT_WORKS",16:"ISSUE_CATEGORY_NEXUS_ERROR_HELPER",17:"ISSUE_CATEGORY_CORE_BOQ_WEB",18:"ISSUE_CATEGORY_CORE_WIPEOUT_COMPLIANCE",19:"ISSUE_CATEGORY_ANDROID_SILICON_ENGPROD",20:"ISSUE_CATEGORY_CORE_LOGS_SRE",21:"ISSUE_CATEGORY_GEO_DATA_ACCESS_API_ONBOARDING",22:"ISSUE_CATEGORY_CLOUD_NETWORKING_STAGING",23:"ISSUE_CATEGORY_FIREBASE_MESSAGING",24:"ISSUE_CATEGORY_GAR_MOBILE_PLATFORM",25:"ISSUE_CATEGORY_CLOUD_VERTEX_VECTOR_SEARCH",26:"ISSUE_CATEGORY_GCS_METERING_SUPPORT",
27:"ISSUE_CATEGORY_WCAG_WEB_PLATFORM",28:"ISSUE_CATEGORY_DEFAULT_DEBUG_DEITY",29:"ISSUE_CATEGORY_THREAD_NETWORK",30:"ISSUE_CATEGORY_EDACLOUD_OPS",31:"ISSUE_CATEGORY_MESSAGES_ENGOPS_TRIAGE",32:"ISSUE_CATEGORY_BAP_SRE",33:"ISSUE_CATEGORY_GCP_RIDGELINE_ENGINEERING",34:"ISSUE_CATEGORY_GCBP_WEB",35:"ISSUE_CATEGORY_YOUTUBE_ORCA",36:"ISSUE_CATEGORY_CLOUD_PLATFORM_APIGEE",37:"ISSUE_CATEGORY_FITBIT_LABS",38:"ISSUE_CATEGORY_RVOS_WOOF_OOBE",39:"ISSUE_CATEGORY_ASTRO_MIDDLEWARE",40:"ISSUE_CATEGORY_CORE_SRE_STANDARDIZED_ENGAGEMENTS",
41:"ISSUE_CATEGORY_YOUTUBE_CREATOR_RECOMMENDATION_PLATFORM",42:"ISSUE_CATEGORY_CORE_CHASERA_RISKS",43:"ISSUE_CATEGORY_MULTICAST_ONCALL_FRIEND",44:"ISSUE_CATEGORY_GCS_ROUTING"},khd={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",INCIDENT:"INCIDENT",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"},tUa={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",58:"INCIDENT",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"},bM={},bVa=(bM.ISSUE_ID=1,bM.COMPONENT_PATH=2,bM.TYPE=3,bM.STATUS=4,bM.PRIORITY=5,bM.SEVERITY=6,bM.REPORTER=7,bM.ASSIGNEE=8,bM.VERIFIER=9,bM.CC=10,bM.COLLABORATOR=43,bM.CHANGELIST=11,bM.INCIDENT=58,bM.POSTMORTEM=32,bM.BLOCKING_ISSUE_ID=
12,bM.BLOCKED_BY_ISSUE_ID=13,bM.CREATED_TIME=14,bM.MODIFIED_TIME=15,bM.RESOLVED_TIME=16,bM.VERIFIED_TIME=17,bM.DELETION_TIME=38,bM.TITLE=18,bM.FOUND_IN_VERSION=19,bM.TARGETED_TO_VERSION=20,bM.VERIFIED_IN_VERSION=21,bM.IN_PROD=22,bM.CANONICAL_ISSUE_ID=23,bM.ESCALATION_OWNER=51,bM.CUSTOM_FIELD=24,bM.POSITION=25,bM.VOTE_COUNT=26,bM.DUPLICATE_COUNT=27,bM.CC_COUNT=28,bM.COLLABORATOR_COUNT=44,bM.MODIFIED_BY=29,bM.LAST_MODIFIER=30,bM.ARCHIVED=31,bM.MIN_SLO=33,bM.ASSIGNMENT_SLO=35,bM.RESPONSE_SLO=36,bM.CLOSURE_SLO=
37,bM.TEAM=39,bM.ESTIMATE=40,bM.ESTIMATE_TOTAL_OPEN=41,bM.ESTIMATE_TOTAL_COMPLETE=42,bM.ACCESS_LEVEL=45,bM.DESCENDANT_COUNT=46,bM.OPEN_DESCENDANT_COUNT=47,bM.ONE_DAY_VIEW_COUNT=48,bM.SEVEN_DAY_VIEW_COUNT=49,bM.THIRTY_DAY_VIEW_COUNT=50,bM.RELATIVE_MODIFIED_TIME=52,bM.ALERTS=53,bM.TIMEFRAME=54,bM.PROGRESS=55,bM.TRIAGER=56,bM.ENRICHMENT_CATEGORIES=57,bM),lhd={},cM=(lhd.ISSUE_RELATIONSHIP_TYPE_UNSPECIFIED=0,lhd.CHILD=1,lhd.DEPENDENCY=2,lhd.LINKED=3,lhd),uVa={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"},eM={},iVa=(eM.ISSUE_SIGNAL_UNSPECIFIED=0,eM.NEAR_SLO=1,eM.COMMENT_MENTIONS_ME=2,eM.MENTIONED_NEEDS_RESPONSE=8,eM.BLOCKERS_CLOSED=3,eM.NEWLY_BLOCKING=4,eM.NEEDS_REPORTER_INPUT=5,eM.REPLIED_TO_MENTION=6,eM.NEWLY_ASSIGNED_TO_ME=7,eM.ISSUE_MANUALLY_SIGNALED=9,eM.ISSUE_SNOOZE_EXPIRED=
10,eM.CONFIGURABLE_ALERT=11,eM),p6a={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"},fM={},z6a=(fM.ISSUE_SIGNAL_UNSPECIFIED=0,fM.NEAR_SLO=1,fM.COMMENT_MENTIONS_ME=2,fM.MENTIONED_NEEDS_RESPONSE=8,fM.BLOCKERS_CLOSED=3,fM.NEWLY_BLOCKING=4,fM.NEEDS_REPORTER_INPUT=5,fM.REPLIED_TO_MENTION=
6,fM.NEWLY_ASSIGNED_TO_ME=7,fM.ISSUE_MANUALLY_SIGNALED=9,fM.ISSUE_SNOOZE_EXPIRED=10,fM.CONFIGURABLE_ALERT=11,fM),x3a={0:"ISSUE_SUMMARY_TYPE_UNSPECIFIED",1:"COMMENTS_SHORT",2:"COMMENTS_LONG"},mhd={},nhd=(mhd.ISSUE_SUMMARY_TYPE_UNSPECIFIED=0,mhd.COMMENTS_SHORT=1,mhd.COMMENTS_LONG=2,mhd),O1b={0:"NODE_JOIN_TYPE_UNSPECIFIED",1:"AND",2:"OR",3:"ERR",4:"NIL"},ohd={UNKNOWN_SUBSCRIPTION:"UNKNOWN_SUBSCRIPTION",UNSUBSCRIBED:"UNSUBSCRIBED",SUBSCRIBED_CLOSURE_ONLY:"SUBSCRIBED_CLOSURE_ONLY",SUBSCRIBED_MAJOR_UPDATES:"SUBSCRIBED_MAJOR_UPDATES",
SUBSCRIBED_ALL_UPDATES:"SUBSCRIBED_ALL_UPDATES"},QZa={0:"UNKNOWN_SUBSCRIPTION",1:"UNSUBSCRIBED",2:"SUBSCRIBED_CLOSURE_ONLY",3:"SUBSCRIBED_MAJOR_UPDATES",4:"SUBSCRIBED_ALL_UPDATES"},phd={},H2a=(phd.UNKNOWN_SUBSCRIPTION=0,phd.UNSUBSCRIBED=1,phd.SUBSCRIBED_CLOSURE_ONLY=2,phd.SUBSCRIBED_MAJOR_UPDATES=3,phd.SUBSCRIBED_ALL_UPDATES=4,phd),h2a={0:"UNSPECIFIED",1:"ADD",2:"REMOVE"},qhd={},c2a=(qhd.UNSPECIFIED=0,qhd.ADD=1,qhd.REMOVE=2,qhd),Q1b={0:"OPERATOR_UNSPECIFIED",1:"EQ",2:"GT",3:"LT",4:"GE",5:"LE"},dic=
{0:"UNKNOWN_PERMISSION",1:"OPEN_TO_JOIN"},Q6a={0:"PRINCIPAL_TYPE_UNSPECIFIED",1:"NON_GAIA",2:"USER",3:"GROUP",4:"ALIAS"},rhd={PRIORITY_UNSPECIFIED:"PRIORITY_UNSPECIFIED",P0:"P0",P1:"P1",P2:"P2",P3:"P3",P4:"P4"},Rp={0:"PRIORITY_UNSPECIFIED",1:"P0",2:"P1",3:"P2",4:"P3",5:"P4"},gM={},HZa=(gM.PRIORITY_UNSPECIFIED=0,gM.P0=1,gM.P1=2,gM.P2=3,gM.P3=4,gM.P4=5,gM),shd={REACTION_TYPE_UNSPECIFIED:"REACTION_TYPE_UNSPECIFIED",UPVOTE:"UPVOTE"},thd={},uhd=(thd.REACTION_TYPE_UNSPECIFIED=0,thd.UPVOTE=1,thd),hM={},
vhd=(hM.UNSPECIFIED=0,hM.USER_REQUEST=1,hM.ABUSE=2,hM.RESTRICTED=3,hM.RETENTION=4,hM.ACCOUNT_CAPABILITIES=5,hM),whd={},s_a=(whd.REJECTION_REASON_UNSPECIFIED=0,whd.REVERSED=1,whd.SIMILAR=2,whd.NOT_SIMILAR=3,whd.OTHER=4,whd),Nwb={0:"REJECTION_REASON_UNSPECIFIED",1:"BUG_RESTRICTED",2:"CONTAINS_GUITAR_LINK",3:"CONTAINS_LISTNR_LINK",4:"CONTAINS_MULTIMEDIA",5:"CREATOR_IS_MACHINE",20:"FILTERED_BY_COMPONENT",6:"HAS_EXISTING_CLS",7:"INELIGIBLE_ISSUE_STATUS",8:"INELIGIBLE_ISSUE_TYPE",9:"INTERNAL_ERROR",10:"ISSUE_NOT_ACCESSIBLE",
11:"IS_GOOGLE_FEEDBACK_REPORT",12:"IS_SUBSPACE_ALERT",13:"MENTIONS_SPECIFIC_ACCELERATORS",14:"MENTIONS_TPU_GPU",15:"MISSING_DESCRIPTION",16:"MISSING_TITLE",17:"REPORTER_IS_MACHINE",18:"INELIGIBLE_GOOSE_CL_PREDICTION",19:"LOW_GOOSE_SUCCESS_PROBABILITY"},xhd={},f3a=(xhd.UNSPECIFIED_RELATION=0,xhd.AND=1,xhd.OR=2,xhd),yhd={RESTRICTION_SEVERITY_UNSPECIFIED:"RESTRICTION_SEVERITY_UNSPECIFIED",NONE_DETECTED:"NONE_DETECTED",RESTRICTED:"RESTRICTED",RESTRICTED_PLUS:"RESTRICTED_PLUS"},zhd={RETENTION_UNSPECIFIED:"RETENTION_UNSPECIFIED",
COMPONENT_DEFAULT:"COMPONENT_DEFAULT",INDEFINITE:"INDEFINITE"},EZa={0:"RETENTION_UNSPECIFIED",1:"COMPONENT_DEFAULT",2:"INDEFINITE"},Ahd={UNSPECIFIED_RETENTION:"UNSPECIFIED_RETENTION",BUGANIZER_DEFAULT:"BUGANIZER_DEFAULT",CUSTOM_PERIOD:"CUSTOM_PERIOD",INDEFINITE_RETENTION:"INDEFINITE_RETENTION"},kYa={0:"UNSPECIFIED_RETENTION",1:"BUGANIZER_DEFAULT",2:"CUSTOM_PERIOD",3:"INDEFINITE_RETENTION"},Bhd={},mYa=(Bhd.UNSPECIFIED_RETENTION=0,Bhd.BUGANIZER_DEFAULT=1,Bhd.CUSTOM_PERIOD=2,Bhd.INDEFINITE_RETENTION=
3,Bhd),Xwb={0:"RUN_STATUS_UNSPECIFIED",1:"RUN_STATUS_IN_PROGRESS",2:"RUN_STATUS_SUCCESS",3:"RUN_STATUS_FAILURE"},rUa={0:"UNSPECIFIED",1:"COMPONENT",2:"TEAM"},Chd={},ZUa=(Chd.UNSPECIFIED=0,Chd.COMPONENT=1,Chd.TEAM=2,Chd),Dhd={},Ehd=(Dhd.SENTIMENT_UNSPECIFIED=0,Dhd.SENTIMENT_POSITIVE=1,Dhd.SENTIMENT_NEGATIVE=2,Dhd),Fhd={SEVERITY_UNSPECIFIED:"SEVERITY_UNSPECIFIED",S0:"S0",S1:"S1",S2:"S2",S3:"S3",S4:"S4"},BZa={0:"SEVERITY_UNSPECIFIED",1:"S0",2:"S1",3:"S2",4:"S3",5:"S4"},iM={},IZa=(iM.SEVERITY_UNSPECIFIED=
0,iM.S0=1,iM.S1=2,iM.S2=3,iM.S3=4,iM.S4=5,iM),J1b={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"},cic={0:"UNKNOWN",1:"NORMAL",2:"LARGE",3:"HUGE",4:"ENORMOUS"},AZa={0:"SLO_SNOOZE_TYPE_UNSPECIFIED",1:"STARTS_ON",2:"ASSIGNMENT_ETA",3:"RESPONSE_ETA",4:"CLOSURE_ETA"},Ghd={},LZa=(Ghd.SLO_SNOOZE_TYPE_UNSPECIFIED=0,Ghd.STARTS_ON=1,Ghd.ASSIGNMENT_ETA=
2,Ghd.RESPONSE_ETA=3,Ghd.CLOSURE_ETA=4,Ghd),P0a={0:"SLO_SOURCE_UNSPECIFIED",1:"USER",2:"BUGSCOPE"},Hhd={},fZa=(Hhd.SLO_SOURCE_UNSPECIFIED=0,Hhd.USER=1,Hhd.BUGSCOPE=2,Hhd),wYa={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",19:"INCIDENTS"},jM={},yYa=(jM.STANDARD_FIELD_UNSPECIFIED=
0,jM.REPORTER=1,jM.ASSIGNEE=2,jM.VERIFIER=3,jM.CC=4,jM.TYPE=5,jM.STATUS=6,jM.PRIORITY=7,jM.SEVERITY=8,jM.CHANGELISTS=9,jM.PENDING_CHANGELISTS=10,jM.POSTMORTEMS=11,jM.FOUND_IN=12,jM.TARGETED_TO=13,jM.VERIFIED_IN=14,jM.IN_PRODUCTION=15,jM.SLO_STATUS=16,jM.TEAM=17,jM.COLLABORATORS=18,jM.INCIDENTS=19,jM),O3a={STATE_UNSPECIFIED:"STATE_UNSPECIFIED",PENDING:"PENDING",MERGED:"MERGED"},NZa={0:"STATE_UNSPECIFIED",1:"PENDING",2:"MERGED"},Ihd={},OZa=(Ihd.STATE_UNSPECIFIED=0,Ihd.PENDING=1,Ihd.MERGED=2,Ihd),Jhd=
{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"},Qp={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"},kM={},GZa=(kM.STATUS_UNSPECIFIED=
0,kM.NEW=1,kM.ASSIGNED=2,kM.ACCEPTED=3,kM.FIXED=4,kM.VERIFIED=5,kM.NOT_REPRODUCIBLE=6,kM.INTENDED_BEHAVIOR=7,kM.OBSOLETE=8,kM.INFEASIBLE=9,kM.DUPLICATE=10,kM.INACTIVE=11,kM),Khd={TASK_RESOURCE_TYPE_UNSPECIFIED:"TASK_RESOURCE_TYPE_UNSPECIFIED",CHANGELIST:"CHANGELIST",DRIVE:"DRIVE",ISSUE:"ISSUE",LAUNCH:"LAUNCH",GERRIT:"GERRIT",GOOGLE_TASKS:"GOOGLE_TASKS",IRM:"IRM"},BUa={0:"UNKNOWN_SOURCE",1:"WTDM",2:"NON_WTDM",3:"CRITIQUE",4:"DRIVE",5:"BUGANIZER",6:"ARIANE",7:"GERRIT",8:"GOOGLE_TASKS",9:"IRM"},lM={},
tVa=(lM.UNKNOWN_SOURCE=0,lM.WTDM=1,lM.NON_WTDM=2,lM.CRITIQUE=3,lM.DRIVE=4,lM.BUGANIZER=5,lM.ARIANE=6,lM.GERRIT=7,lM.GOOGLE_TASKS=8,lM.IRM=9,lM),ITa={0:"THEME_UNSPECIFIED",1:"GOOGLE",2:"OPEN_SOURCE"},Lhd={UNSPECIFIED:"UNSPECIFIED",NEW:"NEW",CONFIRMED:"CONFIRMED",IN_PROGRESS:"IN_PROGRESS",FIXED:"FIXED",WONT_FIX:"WONT_FIX"},N1a={0:"UNSPECIFIED",1:"NEW",2:"CONFIRMED",3:"IN_PROGRESS",4:"FIXED",5:"WONT_FIX"},mM={},Q1a=(mM.UNSPECIFIED=0,mM.NEW=1,mM.CONFIRMED=2,mM.IN_PROGRESS=3,mM.FIXED=4,mM.WONT_FIX=5,mM),
Mhd={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"},O1a={0:"TRIAGE_SUBPHASE_UNSPECIFIED",1:"NEEDS_INFO",2:"PENDING_TRIAGE",3:"REPORTER_RESPONDED",4:"PENDING_OWNER",5:"EXPECTED",6:"PLANNED",7:"COMMITTED",8:"REOPENED"},nM={},R1a=(nM.TRIAGE_SUBPHASE_UNSPECIFIED=0,nM.NEEDS_INFO=1,nM.PENDING_TRIAGE=
2,nM.REPORTER_RESPONDED=3,nM.PENDING_OWNER=4,nM.EXPECTED=5,nM.PLANNED=6,nM.COMMITTED=7,nM.REOPENED=8,nM),U1b={0:"QUERY_BUILDER_RESPONSE_TYPE_UNSPECIFIED",1:"AND",2:"OR"},DYa={0:"TYPE_UNSPECIFIED",1:"TEXT",2:"DATE",3:"ENUM",4:"NUMERIC",9:"TEAM",10:"PRODUCT",11:"USER",5:"REPEATED_TEXT",6:"REPEATED_DATE",7:"REPEATED_ENUM",8:"REPEATED_NUMERIC",12:"REPEATED_TEAM",13:"REPEATED_PRODUCT",14:"REPEATED_USER"},oM={},HYa=(oM.TYPE_UNSPECIFIED=0,oM.TEXT=1,oM.DATE=2,oM.ENUM=3,oM.NUMERIC=4,oM.TEAM=9,oM.PRODUCT=10,
oM.USER=11,oM.REPEATED_TEXT=5,oM.REPEATED_DATE=6,oM.REPEATED_ENUM=7,oM.REPEATED_NUMERIC=8,oM.REPEATED_TEAM=12,oM.REPEATED_PRODUCT=13,oM.REPEATED_USER=14,oM),Nhd={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"},pM={},m2a=(pM.TYPE_UNSPECIFIED=0,pM.BUG=1,pM.FEATURE_REQUEST=2,pM.CUSTOMER_ISSUE=3,pM.INTERNAL_CLEANUP=4,pM.PROCESS=5,pM.VULNERABILITY=6,pM.PRIVACY_ISSUE=7,pM.PORTFOLIO=8,pM.PROGRAM=9,pM.PROJECT=10,pM.FEATURE=11,pM.MILESTONE=12,pM.EPIC=13,pM.STORY=14,pM.TASK=15,pM),Ohd={TYPE_UNSPECIFIED:"TYPE_UNSPECIFIED",ISSUE_DEDUPLICATION:"ISSUE_DEDUPLICATION",HOTLIST:"HOTLIST",ISSUE_DEDUPLICATION_BATCH:"ISSUE_DEDUPLICATION_BATCH",NEEDS_INFO:"NEEDS_INFO",COMPONENT_ROUTING:"COMPONENT_ROUTING",ANY_ISSUE_EDIT:"ANY_ISSUE_EDIT"},
h_a={0:"TYPE_UNSPECIFIED",1:"ISSUE_DEDUPLICATION",2:"HOTLIST",3:"ISSUE_DEDUPLICATION_BATCH",4:"NEEDS_INFO",5:"COMPONENT_ROUTING",6:"ANY_ISSUE_EDIT"},qM={},d_a=(qM.TYPE_UNSPECIFIED=0,qM.ISSUE_DEDUPLICATION=1,qM.HOTLIST=2,qM.ISSUE_DEDUPLICATION_BATCH=3,qM.NEEDS_INFO=4,qM.COMPONENT_ROUTING=5,qM.ANY_ISSUE_EDIT=6,qM),Phd={},r_a=(Phd.TYPE_UNSPECIFIED=0,Phd.VIEWED=1,Phd.PARTIALLY_ACCEPTED=4,Phd.ACCEPTED=2,Phd.REJECTED=3,Phd),Qhd={},Rhd=(Qhd.USER_ACTIVITY_TYPE_UNDEFINED=0,Qhd.VIEW=1,Qhd.RELOAD=2,Qhd.EDIT=
3,Qhd.MARK_AS_READ_OR_UNREAD=4,Qhd),L1b={0:"VALUE_TYPE_UNSPECIFIED",1:"NOT",2:"OR",3:"AND",4:"RANGE",5:"SIMPLE"},Shd={},Thd=(Shd.VIEW_UNSPECIFIED=0,Shd.BASIC=1,Shd.FULL=2,Shd);var Uhd={SINGLE_VALUE:"SINGLE_VALUE",COLLECTION:"COLLECTION",USER_COLLECTION:"USER_COLLECTION",LINKED_COLLECTION:"LINKED_COLLECTION",CUSTOM_FIELD:"CUSTOM_FIELD",STATUS_UPDATE:"STATUS_UPDATE"},jic=new Set([{alias:"googlers_unrestricted"},{alias:"google_domain"}].map(function(a){return"ALIAS:"+a.alias})),Vhd={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",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"},Whd={AGGREGATION_TYPE_UNSPECIFIED:"AGGREGATION_TYPE_UNSPECIFIED",SUM:"SUM",MAX:"MAX"},Xhd={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 l4a=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"]]),qr=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,"Inactive"],
[10,"Duplicate"],[0,""]]),rM=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,""]]),Yhd=new Map([[1,"High"],[2,"Medium"],[3,"Low"],[4,"Zero"],[0,"--"]]),sM=new Map([[1,"SWE"],[2,"SRE"],[3,"PM"],[4,"T/PgM"],[5,"UX"],[6,"UXD"],[7,"UXR"],[8,"DataSci"],[9,"L&D"],[10,"DevRel"],[11,"TW"],[12,"GTM"],[13,"CE"],[14,"Other"],[0,"--"]]),tM=new Map([[1,"Software Engineer (SWE)"],[2,"Site Reliability Engineer (SRE)"],
[3,"Product Manager (PM)"],[4,"Technical Program Manager (T/PgM)"],[5,"User Experience (UX)"],[6,"User Experience Designer (UXD)"],[7,"User Experience Researcher (UXR)"],[8,"Data Scientist (DataSci)"],[9,"Learning & Development (L&D)"],[10,"Developer Relations (DevRel)"],[11,"Technical Writer (TW)"],[12,"Go To Market (GTM)"],[13,"Customer Engagement (CE)"],[14,"Other"],[0,"--"]]);var Zhd=new Map([["STATUS_UNSPECIFIED",rM.get(0)],["NEW",rM.get(1)],["ASSIGNED",rM.get(2)],["ACCEPTED",rM.get(3)],["FIXED",rM.get(4)],["VERIFIED",rM.get(5)],["DUPLICATE",rM.get(10)],["INFEASIBLE",rM.get(9)],["INACTIVE",rM.get(11)],["NOT_REPRODUCIBLE",rM.get(6)],["OBSOLETE",rM.get(8)],["INTENDED_BEHAVIOR",rM.get(7)]]),$hd={New:1,Assigned:2,"In Progress (Accepted)":3,Fixed:4,Verified:5},wWa=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]]),uM={},aid=(uM.ASSIGNED=!0,uM.ACCEPTED=!0,uM.FIXED=!0,uM.VERIFIED=!0,uM.DUPLICATE=!0,uM.INFEASIBLE=!0,uM.INACTIVE=!0,uM.NOT_REPRODUCIBLE=!0,uM.OBSOLETE=!0,uM.INTENDED_BEHAVIOR=!0,uM),Um=new Map([["STATUS_UNSPECIFIED",qr.get(0)],["NEW",qr.get(1)],["ASSIGNED",qr.get(2)],["ACCEPTED",qr.get(3)],["FIXED",qr.get(4)],["VERIFIED",qr.get(5)],["DUPLICATE",qr.get(10)],["INFEASIBLE",qr.get(9)],["INACTIVE",
qr.get(11)],["NOT_REPRODUCIBLE",qr.get(6)],["OBSOLETE",qr.get(8)],["INTENDED_BEHAVIOR",qr.get(7)]]),vM={},bid=(vM.P0="P0",vM.P1="P1",vM.P2="P2",vM.P3="P3",vM.P4="P4",vM.PRIORITY_UNSPECIFIED="--",vM),wM={},HWa=(wM.P0=0,wM.P1=10,wM.P2=20,wM.P3=30,wM.P4=40,wM.PRIORITY_UNSPECIFIED=99,wM),xM={},cid=(xM.S0="S0",xM.S1="S1",xM.S2="S2",xM.S3="S3",xM.S4="S4",xM.SEVERITY_UNSPECIFIED="--",xM),did=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"]]),eid={},Go=(eid.INVOLVEMENT_UNSPECIFIED=Yhd.get(0),eid.HIGH=Yhd.get(1),eid.MEDIUM=Yhd.get(2),eid.LOW=Yhd.get(3),eid.ZERO=Yhd.get(4),eid),yM={},or=(yM.JOB_ROLE_UNSPECIFIED=
sM.get(0),yM.SWE=sM.get(1),yM.SRE=sM.get(2),yM.PM=sM.get(3),yM.TPGM=sM.get(4),yM.UX=sM.get(5),yM.UXD=sM.get(6),yM.UXR=sM.get(7),yM.DATASCI=sM.get(8),yM.LD=sM.get(9),yM.DEVREL=sM.get(10),yM.TW=sM.get(11),yM.GTM=sM.get(12),yM.CE=sM.get(13),yM.OTHER=sM.get(14),yM),zM={},AM=(zM.JOB_ROLE_UNSPECIFIED=tM.get(0),zM.SWE=tM.get(1),zM.SRE=tM.get(2),zM.PM=tM.get(3),zM.TPGM=tM.get(4),zM.UX=tM.get(5),zM.UXD=tM.get(6),zM.UXR=tM.get(7),zM.DATASCI=tM.get(8),zM.LD=tM.get(9),zM.DEVREL=tM.get(10),zM.TW=tM.get(11),zM.GTM=
tM.get(12),zM.CE=tM.get(13),zM.OTHER=tM.get(14),zM);var sTa=Vm("NEW",!0,"FORBIDDEN",10),tTa=Vm("ASSIGNED",!0,"REQUIRED",20),uTa=Vm("ACCEPTED",!0,"REQUIRED",30),vTa=Vm("FIXED",!1,"REQUIRED",40),wTa=Vm("VERIFIED",!1,"REQUIRED",50),xTa=Vm("DUPLICATE",!1,"ALLOWED",60),yTa=Vm("INFEASIBLE",!1,"ALLOWED",70),CTa=Vm("INACTIVE",!1,"ALLOWED",75),zTa=Vm("NOT_REPRODUCIBLE",!1,"ALLOWED",80),ATa=Vm("OBSOLETE",!1,"ALLOWED",90),BTa=Vm("INTENDED_BEHAVIOR",!1,"ALLOWED",100),Ao=new Map(DTa().map(function(a){return[a.status,a]})),fid=DTa().map(function(a){return{value:a.status,
displayText:a.displayValue}}),gid=new Set(DTa().filter(function(a){return a.assigneeRequirement==="REQUIRED"}));var HTa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(HTa,X);HTa.prototype.getLogoUrl=function(){return Fi(this,1)};HTa.prototype.getTheme=function(){return Ri(this,2)};HTa.prototype.setTheme=function(a){cn(this,2,a)};var hid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(hid,X);h=hid.prototype;h.getTrackerId=function(){return Hn(this,1)};h.getTrackerId_asString=function(){return Ln(this,1)};h.setTrackerId=function(a){ap(this,1,a)};h.getComponentId=function(){return Hn(this,2)};h.getComponentId_asString=function(){return Ln(this,2)};h.setComponentId=function(a){return ap(this,2,a)};h.getName=function(){return Fi(this,3)};h.setName=function(a){return $m(this,3,a)};
h.getInternalBaseUrl=function(){return Fi(this,8)};h.getExternalBaseUrl=function(){return Fi(this,9)};h.getEtag=function(){return lo(this,7)};h.setEtag=function(a){return fp(this,7,a)};var oo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,oo.messageId)};Z(oo,X);oo.prototype.getIt=function(){return Y(this,hid,9,fb)};oo.prototype.setIt=function(a){return hj(this,hid,9,a,fb)};oo.messageId="b.Tracker";var BM={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},commentFormattingPreferences:{},bugScreensaverPreferences:{announcementDismissed:!1,enableBugScreensaver:!1},g3nPreferences:{},teamWarningPreferences:{componentTeamWarnings:[]},dismissalTimestamps:{},showRecentEventsFirst:!1,commentFilterPreferences:{commentFilter:void 0},
showInlineImages:!0,missionControlPreferences:{}};var lt=function(a,b){this.low_=a|0;this.high_=b|0},iid=function(a){return a.high_*4294967296+(a.low_>>>0)};h=lt.prototype;h.isSafeInteger=function(){var a=this.high_>>21;return a==0||a==-1&&!(this.low_==0&&this.high_==-2097152)};
h.toString=function(a){a=a||10;if(a<2||36<a)throw Error("fd`"+a);if(this.isSafeInteger()){var b=iid(this);return a==10?""+b:b.toString(a)}b=14-(a>>2);var c=Math.pow(a,b),d=CM(c,c/4294967296);c=this.div(d);d=Math.abs(iid(DM(this,c.multiply(d))));var e=a==10?""+d:d.toString(a);e.length<b&&(e="0000000000000".slice(e.length-b)+e);d=iid(c);return(a==10?d:d.toString(a))+e};h.isZero=function(){return this.low_==0&&this.high_==0};h.equals=function(a){return a==null?!1:this.low_==a.low_&&this.high_==a.high_};
h.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 EM=function(a){var b=~a.low_+1|0;return CM(b,~a.high_+!b|0)};lt.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,g=a.low_>>>16;a=(this.low_&65535)+(a.low_&65535);g=(a>>>16)+(d+g);d=g>>>16;d+=c+f;return CM((g&65535)<<16|a&65535,((d>>>16)+(b+e)&65535)<<16|d&65535)};var DM=function(a,b){return a.add(EM(b))};
h=lt.prototype;h.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,g=a.high_&65535,k=a.low_>>>16;a=a.low_&65535;var m=e*a;var r=(m>>>16)+d*a;var w=r>>>16;r=(r&65535)+e*k;w+=r>>>16;w+=c*a;var x=w>>>16;w=(w&65535)+d*k;x+=w>>>16;w=(w&65535)+e*g;x=x+(w>>>16)+(b*a+c*k+d*g+e*f)&65535;return CM((r&65535)<<16|m&65535,x<<16|w&65535)};
h.div=function(a){if(a.isZero())throw Error("gd");if(this.high_<0){if(this.equals(jid)){if(a.equals(kid)||a.equals(lid))return jid;if(a.equals(jid))return kid;var b=this.high_;b=CM(this.low_>>>1|b<<31,b>>1);b=b.div(a).shiftLeft(1);if(b.equals(mid))return a.high_<0?kid:lid;var c=DM(this,a.multiply(b));return b.add(c.div(a))}return a.high_<0?EM(this).div(EM(a)):EM(EM(this).div(a))}if(this.isZero())return mid;if(a.high_<0)return a.equals(jid)?mid:EM(this.div(EM(a)));b=mid;for(c=this;c.compare(a)>=0;){var d=
Math.max(1,Math.floor(iid(c)/iid(a))),e=Math.ceil(Math.log(d)/Math.LN2);e=e<=48?1:Math.pow(2,e-48);for(var f=FM(d),g=f.multiply(a);g.high_<0||g.compare(c)>0;)d-=e,f=FM(d),g=f.multiply(a);f.isZero()&&(f=kid);b=b.add(f);c=DM(c,g)}return b};h.and=function(a){return CM(this.low_&a.low_,this.high_&a.high_)};h.or=function(a){return CM(this.low_|a.low_,this.high_|a.high_)};h.xor=function(a){return CM(this.low_^a.low_,this.high_^a.high_)};
h.shiftLeft=function(a){a&=63;if(a==0)return this;var b=this.low_;return a<32?CM(b<<a,this.high_<<a|b>>>32-a):CM(0,b<<a-32)};
var FM=function(a){return a>0?a>=0x7fffffffffffffff?nid:new lt(a,a/4294967296):a<0?a<=-0x7fffffffffffffff?jid:EM(new lt(-a,-a/4294967296)):mid},CM=function(a,b){return new lt(a,b)},nt=function(a,b){if(a.charAt(0)=="-")return EM(nt(a.substring(1),b));var c=parseInt(a,b||10);if(c<=9007199254740991)return new lt(c%4294967296|0,c/4294967296|0);if(a.length==0)throw Error("hd");if(a.indexOf("-")>=0)throw Error("id`"+a);b=b||10;if(b<2||36<b)throw Error("fd`"+b);c=FM(Math.pow(b,8));for(var d=mid,e=0;e<a.length;e+=
8){var f=Math.min(8,a.length-e),g=parseInt(a.substring(e,e+f),b);f<8?(f=FM(Math.pow(b,f)),d=d.multiply(f).add(FM(g))):(d=d.multiply(c),d=d.add(FM(g)))}return d},mid=CM(0,0),kid=CM(1,0),lid=CM(-1,-1),nid=CM(4294967295,2147483647),jid=CM(0,2147483648);var Kn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Kn,X);Kn.prototype.getOpen=function(){return $i(this,1,!0)};Kn.prototype.setOpen=function(a){return jj(this,1,a)};var hUa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(hUa,X);var mUa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(mUa,X);var fUa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(fUa,X);var co=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(co,X);h=co.prototype;h.getType=function(){return Ri(this,1,1)};h.setType=function(a){return Yn(this,1,a)};h.hasType=function(){return ym(this,1)};h.getCustomFieldId=function(){return Hn(this,2)};h.getCustomFieldId_asString=function(){return Ln(this,2)};h.setCustomFieldId=function(a){return Nn(this,2,a)};h.hasCustomFieldId=function(){return Gn(this,2)};var $n=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z($n,X);$n.prototype.getTimeZone=function(){return Fi(this,5)};$n.prototype.setTimeZone=function(a){return Gj(this,5,a)};$n.prototype.hasTimeZone=function(){return xm(this,5)};var bo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(bo,X);bo.prototype.getColumnList=function(){return Wi(this,co,1,Xi())};bo.prototype.setColumnList=function(a){return ij(this,1,a)};bo.prototype.setColumn=function(a){return dx(this,1,co,a)};var OUa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(OUa,X);var aUa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(aUa,X);var eo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(eo,X);eo.prototype.getColumn=function(){return Y(this,co,1)};eo.prototype.setColumn=function(a){return hj(this,co,1,a)};var Xn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Xn,X);Xn.prototype.getColumnList=function(){return Wi(this,eo,1,Xi())};Xn.prototype.setColumnList=function(a){return ij(this,1,a)};Xn.prototype.setColumn=function(a){return dx(this,1,eo,a)};var Dn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Dn,X);Dn.prototype.getDensity=function(){return Ri(this,1,1)};Dn.prototype.setDensity=function(a){return Yn(this,1,a)};var iUa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(iUa,X);var RUa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(RUa,X);RUa.prototype.setResourceId=function(a){ao(this,2,a)};var eUa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(eUa,X);var Sn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Sn,X);Sn.prototype.getSignal=function(){return Ri(this,1)};Sn.prototype.setSignal=function(a){return Yn(this,1,a)};Sn.prototype.getChecked=function(){return $i(this,2)};Sn.prototype.setChecked=function(a){return jj(this,2,a)};var Qn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Qn,X);Qn.prototype.getSignal=function(){return Ri(this,1)};Qn.prototype.setSignal=function(a){return Yn(this,1,a)};Qn.prototype.getChecked=function(){return $i(this,2)};Qn.prototype.setChecked=function(a){return jj(this,2,a)};var Rn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Rn,X);Rn.prototype.getSignal=function(){return Ri(this,1)};Rn.prototype.setSignal=function(a){return Yn(this,1,a)};Rn.prototype.getChecked=function(){return $i(this,2)};Rn.prototype.setChecked=function(a){return jj(this,2,a)};var Tn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Tn,X);Tn.prototype.getSignal=function(){return Ri(this,1)};Tn.prototype.setSignal=function(a){return Yn(this,1,a)};Tn.prototype.getChecked=function(){return $i(this,2)};Tn.prototype.setChecked=function(a){return jj(this,2,a)};var Un=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Un,X);Un.prototype.getSignal=function(){return Ri(this,1)};Un.prototype.setSignal=function(a){return Yn(this,1,a)};Un.prototype.getChecked=function(){return $i(this,2)};Un.prototype.setChecked=function(a){return jj(this,2,a)};var Pn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Pn,X);Pn.prototype.getSignal=function(){return Ri(this,1)};Pn.prototype.setSignal=function(a){return Yn(this,1,a)};Pn.prototype.getChecked=function(){return $i(this,2)};Pn.prototype.setChecked=function(a){return jj(this,2,a)};var Jn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Jn,X);Jn.prototype.getCollapsedMap=function(){return rc(this,2,gda)};var eVa=function(a,b){Ax(a,7,b)},gVa=function(a,b){Ax(a,8,b)};Jn.prototype.getMyTasksSources=function(){return px(this,8)};var hVa=function(a,b){ij(a,18,b)},jVa=function(a,b){ij(a,19,b)},lVa=function(a,b){ij(a,20,b)},nVa=function(a,b){ij(a,21,b)},pVa=function(a,b){ij(a,22,b)},rVa=function(a,b){ij(a,24,b)};var $Ta=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z($Ta,X);var Mn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Mn,X);Mn.prototype.getTeamId=function(){return Hn(this,1)};Mn.prototype.getTeamId_asLegacyNumberOrString=function(){return Vp(this,1)};Mn.prototype.getTeamId_asString=function(){return Ln(this,1)};Mn.prototype.setTeamId=function(a){return Nn(this,1,a)};var pUa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(pUa,X);var yUa=function(a,b){return Kr(a,1,b)},zUa=function(a,b){hj(a,nj,2,b)},xUa=function(a,b){return ij(a,3,b)};var In=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(In,X);In.prototype.getComponentId=function(){return Hn(this,1)};In.prototype.getComponentId_asString=function(){return Ln(this,1)};In.prototype.setComponentId=function(a){return Nn(this,1,a)};In.prototype.hasComponentId=function(){return Gn(this,1)};var jUa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(jUa,X);var dVa=function(a,b){ij(a,1,b)};var Vn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,500)};Z(Vn,X);h=Vn.prototype;h.getDisplayColumns=function(){return Y(this,bo,4)};h.setDisplayColumns=function(a){hj(this,bo,4,a)};h.getSortColumns=function(){return Y(this,Xn,6)};h.getLayoutPreferences=function(){return Y(this,OUa,10)};h.getDateTimePreferences=function(){return Y(this,$n,11)};h.getHomepagePreferences=function(){return Y(this,RUa,13)};h.getCollapsedMap=function(){return rc(this,27,gda)};
h.getShowInlineImages=function(){return $i(this,29)};var oid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(oid,X);oid.prototype.getValueCase=function(){return Oo(this,pid)};var pid=[1,2];var qid=[0,pid,uKc,zKc];var GM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(GM,X);GM.prototype.getValueCase=function(){return Oo(this,HM)};GM.prototype.getStringValue=function(){return So(this,5,HM)};GM.prototype.setStringValue=function(a){return Vo(this,5,HM,a)};GM.prototype.hasStringValue=function(){return Cr(this,5,HM)!=null};var HM=[2,3,4,5,6,8];var rid=[0,HM,nKc,oKc,sKc,mKc,uKc,xKc,$Kc,wC,xKc,qid];var sid=[0,wC];var tid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(tid,X);tid.prototype.getExperimentToken=function(){return lo(this,3)};var uid=[0,sid,vKc,rid,yKc,-1];var vid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(vid,X);var wid=function(a){return Wi(a,tid,1,Xi())},xid=Hi(vid);var yid=kva(vid,[0,vKc,uid]);var DVa=function(a){this.usesDefaultPayload=!1;var b=null;a?b=wid(yid(a))[0]:(this.usesDefaultPayload=!0,a=zea("TSDtV",window),(a=typeof a!=="string"?null:a)&&(b=wid(xid("["+a.substring(4)))[0]));if(b){a=l(Wi(b,GM,2,Xi()));for(var c=a.next();!c.done;c=a.next())if(lj(c.value,kr,6,HM))throw Error();}if(b){a={};c=l(Wi(b,GM,2,Xi()));for(var d=c.next();!d.done;d=c.next()){var e=d.value;d=Hn(e,1).toString();switch(e.getValueCase()){case 3:a[d]=$i(e,bj(e,HM,3));break;case 2:a[d]=qn(Hn(e,bj(e,HM,2)));break;
case 4:a[d]=tm(e,bj(e,HM,4));break;case 5:a[d]=e.getStringValue();break;case 6:a[d]=lm(e,kr,6,HM);break;case 8:e=ktb(e,oid,bj(e,HM,8));switch(e.getValueCase()){case 1:a[d]=So(e,1,pid);break;default:throw Error("jd`"+e.getValueCase());}break;default:throw Error("jd`"+e.getValueCase());}}}else a={};this.flagDict=a;this.token=b?b.getExperimentToken():null};DVa.prototype.getFlag=function(a){return!this.usesDefaultPayload||a.key in this.flagDict?a.ctor(this.flagDict[a.key]):a.defaultValue};
DVa.prototype.getExperimentToken=function(){return this.token};var io=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(io,X);h=io.prototype;h.getAppName=function(){return Fi(this,2)};h.getDocumentationBaseUrl=function(){return Fi(this,3)};h.getEnvironmentType=function(){return Fi(this,5)};h.setEnvironmentType=function(a){return Gj(this,5,a)};h.getOnePickUrl=function(){return Fi(this,7)};h.getOnePickSecretToken=function(){return Fi(this,12)};h.getCommentNumberLimit=function(){return Wm(this,8)};
h.getCreateComponentRedirectDelay=function(){return tm(this,9)};h.getCreateRestrictedSubresourcesComponentIds=function(){return gCc(this,13)};h.getIndefiniteRetentionComponentsAllowlist=function(){return gCc(this,20)};h.getInternalBaseUrl=function(){return Fi(this,24)};h.getExternalBaseUrl=function(){return Fi(this,25)};var ko=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ko,X);h=ko.prototype;h.getEmail=function(){return Fi(this,1)};h.setEmail=function(a){return Gj(this,1,a)};h.hasEmail=function(){return xm(this,1)};h.getSessionIdentifier=function(){return Fi(this,3)};h.getUserTypeLabel=function(){return Fi(this,5)};var mo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,mo.messageId)};Z(mo,X);mo.prototype.getId=function(){return Fi(this,1,void 0,fb)};mo.prototype.setId=function(a){return Gj(this,1,a,fb)};mo.messageId="b.TimeZoneData";var no=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,no.messageId)};Z(no,X);h=no.prototype;h.getMessage=function(){return Fi(this,1,void 0,fb)};h.setMessage=function(a){return Gj(this,1,a,fb)};h.getMessageId=function(){return Fi(this,2,void 0,fb)};h.setMessageId=function(a){return Gj(this,2,a,fb)};h.hasMessageId=function(){return xm(this,2,fb)};h.getTagsList=function(a){return Xm(this,4,Xi(a),fb)};h.getTags=function(a){return ox(this,4,a,fb)};no.messageId="b.Announcement";var jo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(jo,X);jo.prototype.getAnnouncement=function(){return Y(this,no,2)};var BVa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(BVa,X);h=BVa.prototype;h.getUser=function(){return Y(this,ko,1)};h.setUser=function(a){return hj(this,ko,1,a)};h.hasUser=function(){return Si(this,ko,1)};h.getConfig=function(){return Y(this,io,2)};h.setConfig=function(a){hj(this,io,2,a)};h.getXsrfToken=function(){return Fi(this,3)};h.getCspNonce=function(){return Fi(this,8)};h.getFrontendAccessMode=function(){return Fi(this,4)};
h.setFrontendAccessMode=function(a){return Gj(this,4,a)};h.getMustAcknowledgeTerms=function(){return $i(this,5)};h.getShowNewFeaturesDialog=function(){return $i(this,6)};h.getUserPreferences=function(){return Y(this,Vn,7)};h.getAppBaseHref=function(){return Fi(this,10)};h.getTracker=function(){return Y(this,oo,11)};h.getPassiveLoginIframeUrl=function(){return Y(this,EVa,12)};var CVa=window,ho;var AVa;var MVa=/[a-z0-9!#$%&'*+/=?^_`{|}~-]/i,NVa=/[a-z0-9]/i,PVa=RegExp("^[^\\.\\s]{2}\\.{3}@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$","i"),OVa=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"),zid=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"),TVa=["@twosync.google.com",
"@twosync-src.google.com","@twosync-loas.google.com"];var hWa=new WeakMap;var EWa=po().user.email,MWa=new WeakMap,OWa=new WeakMap;var Aid=new Map;var IM=function(){this.snackBar=q(LD)};IM.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(Bid,b)};IM.\u0275fac=function(a){return new (a||IM)};IM.\u0275prov=Cc({token:IM,factory:IM.\u0275fac,providedIn:"root"});
var Bid=function(){this.data=q(HD);this.snackBarRef=q(ID)};Bid.\u0275fac=function(a){return new (a||Bid)};
Bid.\u0275cmp=C({type:Bid,selectors:[["ng-component"]],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&&(K(0,"div",0),F(1,fXa,1,1,"span",1)(2,gXa,2,1,"span",2),K(3,"div",3),F(4,hXa,2,1,"button",
4),F(5,iXa,2,1,"button",4)(6,jXa,2,0,"button",5),L()());a&2&&(B(),G(b.data.htmlMessage?1:2),B(3),G(b.data.actionLabel?4:-1),B(),G(b.data.dismissLabel?5:6))},dependencies:[ZA,XA,TA,VA,iz],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 JM=function(){this.snackbar=q(IM)};JM.prototype.dismiss=function(){this.lastSnackbar&&this.lastSnackbar.dismiss()};var fs=function(a,b,c){a.open({message:b,duration:c===void 0?1E4:c})},Cid=function(a,b,c){a.open({message:b,duration:c===void 0?1E4:c})};JM.prototype.showWarning=function(a,b){this.open({message:a,duration:b===void 0?0:b,snackbarType:"ERROR"})};JM.prototype.open=function(a){return this.lastSnackbar=a=this.snackbar.open(a)};JM.\u0275fac=function(a){return new (a||JM)};
JM.\u0275prov=Cc({token:JM,factory:JM.\u0275fac,providedIn:"root"});var KM=function(a,b){this.key=a;this.defaultValue=b;this.flagNameForDebugging=void 0};KM.prototype.ctor=function(a){return typeof a==="boolean"?a:this.defaultValue};var Fid=function(a){var b=Did("[]"),c=Eid;this.key=a;this.defaultValue=b;this.delegateCtor=c;this.flagNameForDebugging=void 0};
Fid.prototype.ctor=function(a){if(typeof a==="string"&&a)return Gi(this.delegateCtor,a);if(!WKc(a))return this.defaultValue.clone();var b;try{var c;var d=jr(a,this.delegateCtor,(c=a.getTypeName())!=null?c:"")}catch(e){d=null}return(b=d)!=null?b:this.defaultValue.clone()};var Gid=new KM("45738046",!0);var Hid=new KM("45735884",!1);var Iid=new KM("45737528",!1),Jid=new KM("45737530",!1);var Kid=new KM("45735864",!1);var Lid=new KM("45735720",!1),Mid=new KM("45735719",!1),Nid=new KM("45735721",!1);var Oid=new KM("45740051",!1);var Pid=new KM("45742183",!1);var Eid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Eid,X);var Qid=function(a){return kx(a,1,1)};Eid.prototype.addElement=function(a,b){return xx(this,1,a,b)};Eid.prototype.removeElement=function(a){return iCc(this,1,a)};Eid.prototype.getElement=function(a){return gCc(this,1,a)};var Did=Hi(Eid);var Rid=new KM("45736883",!1),Sid=new KM("45738049",!1),Tid=new Fid("45744336");var Uid=new KM("45738050",!1),Vid=new KM("45738051",!1),Wid=new KM("45737949",!1);Did("[]");var zXa={canSeeAnnouncementBanner:Gid,clearExistingRecommendations:new KM("45741395",!1),enableBulkEditCaptchaUi:Hid,enableCustomFieldTypeProductUI:Lid,enableCustomFieldTypeTeamUI:Mid,enableCustomFieldTypeUserUI:Nid,enableDuckieLlmChat:Rid,enableGppLlmChat:Sid,enableHelpMeFixSidebar:Uid,enableInactiveFeatures:Pid,enableInactiveUserContent:Iid,enableInlineImageAttachments:Jid,enableInteractiveMarkdownCheckboxes:new KM("45737531",!1),enableIrmIntegrationMenu:new KM("45735414",!1),enableNeedsInfoUi:Vid,
enableNonWtdmFieldPerTypeVisibility:new KM("45735818",!1),enablePlaybook:new KM("45737907",!1),enablePushUpdatesClient:new KM("45744342",!1),enableSidebarIlpIcon:new KM("45735074",!0),enableSloLockingUi:new KM("45735860",!1),enableSuggestTitle:Wid,enableTailwind:new KM("45738017",!1),enableTailwindMissionControl:new KM("45738021",!1),enableTailwindV3:new KM("45740739",!1),enableTrackersAccountHack:Kid,enableTriageClientM1:new KM("45741591",!1),enableTriageRecommendationComments:new KM("45735207",
!1),readUnreadOptOut:new KM("45736751",!1),runQueryForSidebarIssueCount:new KM("45735865",!0),showHiringBanner:Oid},Xid=[].concat(n("enableChromeWizard enableCodeMentionsUi enableCommentHistoryUi enableComponentAutomationCheck enableEstado enableMarkdownInlineImages enableRefreshSsoPopup enableRostersChecks enableTeamAdmin enableTeamScope enableWaldoAvailability enableWhatsNewDialog majorReleaseNotesUpdated reportErrors TEST_ONLY_flag1 TEST_ONLY_flag2 TEST_ONLY_flag3 TEST_ONLY_flag4".split(" ")),
n(Object.keys(zXa)));var kXa=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};var Yid={clear:function(){},getItem:function(){return null},removeItem:function(){},setItem:function(){},length:0,key:function(){return null}},Jo=Yid;try{Jo=window.localStorage||Yid}catch(a){}
var Zid=function(a){return function(){var b=Jo.getItem(a);if(b!=null)return b=Number(b),isNaN(b)?void 0:b}},Lo=function(a){return function(){var b=Jo.getItem(a);if(b!=null)return String(b)}},$id=function(a){return function(b){b==null?Jo.removeItem(a):Jo.setItem(a,String(b))}},ajd=function(a){return function(b){b==null?Jo.removeItem(a):Jo.setItem(a,b)}},bjd=function(a){return function(){var b=Ko(a)();pXa(a)(!b);return!b}},Mo=function(a){return function(){var b=Jo.getItem(a);if(b!=null)try{return JSON.parse(b)}catch(c){console.warn("JSON.parse("+
a+")"),console.warn(c)}}},No=function(a){return function(b){b==null?Jo.removeItem(a):Jo.setItem(a,JSON.stringify(b))}};var yXa=oXa(function(){var a,b=((a=uXa())==null?void 0:a.overrides)||[];return new Map(b.map(function(c){return[c.flagName,c.value]}))});var cjd=new Fid("45738543");Did("[]");var Zu=function(){this.session=po()};h=Zu.prototype;h.getAppBaseHref=function(){return this.session.appBaseHref};h.userRequiresCaptcha=function(){return this.session.userRequiresCaptcha};h.getFrontendAccessMode=function(){return FVa(this.session)};h.isExternalSession=function(){return this.getFrontendAccessMode()!=="INTERNAL"};h.isInternalSession=function(){return this.getFrontendAccessMode()==="INTERNAL"};
var LM=function(a){return a.getFrontendAccessMode()==="PARTNER"},MM=function(a){return a.getFrontendAccessMode()==="PUBLIC"};Zu.prototype.isNonPublicSession=function(){return this.getFrontendAccessMode()!=="PUBLIC"};var djd=function(a){var b=a.getUserEmail().split("@")[1];return b?a.session.config.trustedEmailDomainsAllowlist.includes("@"+b):!1};Zu.prototype.getFlag=function(a){return AXa(a,this.session.config)};var ejd=function(a){return Xid.filter(function(b){return a.getFlag(b)})};
Zu.prototype.isAnonymous=function(){return this.session.user.anonymous};Zu.prototype.getUserEmail=function(){return this.session.user.email||""};Zu.prototype.getSessionIdentifier=function(){return this.session.user.sessionIdentifier||"0"};Zu.prototype.getTracker=function(){var a;return(a=this.session.tracker)!=null?a:void 0};var Is=function(a){return!!a.session.tracker};Zu.prototype.getPassiveLoginIframeUrl=function(){return this.session.passiveLoginIframeUrl};
Zu.prototype.getMustAcknowledgeTerms=function(){return this.session.mustAcknowledgeTerms};Zu.prototype.getShowNewFeaturesDialog=function(){return this.session.showNewFeaturesDialog};Zu.prototype.getEnvironmentType=function(){return this.session.config.environmentType||"QA"};var Ms=function(a){a:{a=a.session.config.environmentType||"QA";switch(a){case "NIGHTLY":case "PROD":a=!0;break a;case "QA":case "DEV":a=!1;break a;default:sb(a,"Unknown environment type.")}a=void 0}return a};h=Zu.prototype;
h.getAppBaseUrl=function(a){return(a===void 0?0:a)||!this.isInternalSession()?Ms(this)?"https://issuetracker.google.com/":"https://issuetracker-qa.corp.google.com/":Ms(this)?"http://b/":"http://b-qa/"};h.getOnePickUrl=function(){return this.session.config.onePickUrl};h.getAppName=function(){return this.session.config.appName};h.getCommentNumberLimit=function(){return this.session.config.commentNumberLimit};h.getCreateComponentRedirectDelay=function(){return this.session.config.createComponentRedirectDelay};
h.getDocumentationBaseUrl=function(){return this.session.config.documentationBaseUrl};h.getInternalBaseUrl=function(){return this.session.config.internalBaseUrl};h.getExternalBaseUrl=function(){return this.session.config.externalBaseUrl};h.getUserPreferences=function(){return this.session.userPreferences};h.getXsrfToken=function(){return this.session.xsrfToken};h.getOnePickSecretToken=function(){return this.session.config.onePickSecretToken};h.getCreateRestrictedSubresourcesComponentIds=function(){return this.session.config.createRestrictedSubresourcesComponentIds};
h.getIndefiniteRetentionComponentsAllowlist=function(){return this.session.config.indefiniteRetentionComponentsAllowlist};h.getCspNonce=function(){return this.session.cspNonce};h.getAnnouncement=function(){return this.session.preload.announcement};h.getUserTypeLabel=function(){return this.session.user.userTypeLabel||"UNKNOWN"};
var fjd=function(a){var b;a=(b=Qid(a.session.config.experimentState.getFlag(cjd)))!=null?b:[];return new Set(a.map(function(c){return String(c)}))},gjd=function(a){var b;a=(b=Qid(a.session.config.experimentState.getFlag(Tid)))!=null?b:[];return new Set(a.map(function(c){return String(c)}))};Zu.\u0275fac=function(a){return new (a||Zu)};Zu.\u0275prov=Cc({token:Zu,factory:Zu.\u0275fac,providedIn:"root"});var OM=function(){this.activeSession=q(Zu);this.clientFactory=q(NM);this.client=this.clientFactory.create(this.getServiceEndpoint())};OM.prototype.generateAnswers=function(a){var b=this;return this.activeSession.isExternalSession()?Ox:le(function(){return b.client.generateAnswers((new RC).setDuckieClient(9).setText(a).setConversationHistory((new QC).setPrivacyMode(2)).setConversationAgent((new JC).setAgentId("a2a:buganizer_agent")))}).pipe(A(CXa()))};
OM.prototype.getServiceEndpoint=function(){switch(this.activeSession.getEnvironmentType()){case "NIGHTLY":return"https://staging-ml4answers-googleapis.corp.google.com";case "PROD":return"https://ml4answers-googleapis.corp.google.com";default:return"https://autopush-ml4answers-googleapis.corp.google.com"}};OM.\u0275fac=function(a){return new (a||OM)};OM.\u0275prov=Cc({token:OM,factory:OM.\u0275fac,providedIn:"root"});var NM=function(){};
NM.prototype.create=function(a){return new gNc(a,{withCredentials:!0,suppressCorsPreflight:!0})};NM.\u0275fac=function(a){return new (a||NM)};NM.\u0275prov=Cc({token:NM,factory:NM.\u0275fac,providedIn:"root"});var FXa=new Set([].concat(n(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",INCIDENTS:"incidents",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 PM={},JXa=(PM[1]="issue_id",PM[3]="type",PM[4]="status",PM[5]="priority",PM[6]="severity",PM[18]="title",PM[15]="modified_time",PM[14]="created_time",PM[17]="verified_time",PM[16]="resolved_time",PM[38]="deletion_time",PM[13]="blocked_by_issue_ids",PM[12]="blocking_issue_ids",PM[26]="vote_count",PM[28]="cc_count",PM[44]="collaborators_count",PM[2]="component_path",PM[27]="duplicate_count",PM[10]="ccs",PM[43]="collaborators",PM[11]="code_changes",PM[58]="incidents",PM[32]="postmortems",PM[8]="assignee",
PM[9]="verifier",PM[7]="reporter",PM[19]="found_in_versions",PM[20]="targeted_to_versions",PM[21]="verified_in_versions",PM[22]="in_prod",PM[30]="last_modifier",PM[25]="position",PM[24]="custom_field",PM[29]="modified_by",PM[31]="archived",PM[23]="canonical_issue_id",PM[33]="min_slo",PM[35]="assignment_slo",PM[36]="response_slo",PM[37]="closure_slo",PM[39]="team",PM[40]="estimate",PM[41]="estimate_total_open",PM[42]="estimate_total_complete",PM[45]="access_level",PM[46]="descendant_count",PM[47]=
"open_descendant_count",PM[48]="one_day_view_count",PM[49]="seven_day_view_count",PM[50]="thirty_day_view_count",PM[51]="escalation_owner",PM[52]="relative_modified_time",PM[53]="alerts",PM[54]="timeframe",PM[55]="progress",PM[56]="triager",PM[57]="enrichment_categories",PM),QM={},LXa=(QM.issue_id=1,QM.type=3,QM.status=4,QM.priority=5,QM.severity=6,QM.title=18,QM.modified_time=15,QM.created_time=14,QM.verified_time=17,QM.resolved_time=16,QM.deletion_time=38,QM.blocked_by_issue_ids=13,QM.blocking_issue_ids=
12,QM.vote_count=26,QM.cc_count=28,QM.collaborators_count=44,QM.component_path=2,QM.duplicate_count=27,QM.ccs=10,QM.collaborators=43,QM.code_changes=11,QM.postmortems=32,QM.assignee=8,QM.verifier=9,QM.reporter=7,QM.found_in_versions=19,QM.targeted_to_versions=20,QM.verified_in_versions=21,QM.in_prod=22,QM.last_modifier=30,QM.position=25,QM.custom_field=24,QM.modified_by=29,QM.archived=31,QM.canonical_issue_id=23,QM.min_slo=33,QM.assignment_slo=35,QM.response_slo=36,QM.closure_slo=37,QM.team=39,QM.estimate=
40,QM.estimate_total_open=41,QM.estimate_total_complete=42,QM.access_level=45,QM.descendant_count=46,QM.open_descendant_count=47,QM.one_day_view_count=48,QM.seven_day_view_count=49,QM.thirty_day_view_count=50,QM.escalation_owner=51,QM.relative_modified_time=52,QM.alerts=53,QM.timeframe=54,QM.progress=55,QM.triager=56,QM.enrichment_categories=57,QM);var Yp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Yp,X);Yp.prototype.getDisplayColumns=function(){return ox(this,1)};Yp.prototype.setDisplayColumns=function(a){zx(this,1,a)};var q2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(q2a,X);h=q2a.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getIssueAccessLimit=function(){return Y(this,Xo,2)};h.setIssueAccessLimit=function(a){hj(this,Xo,2,a)};h.setAddedCollaboratorsList=function(a){ij(this,3,a)};h.setRemovedCollaboratorsList=function(a){ij(this,4,a)};var Uo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Uo,X);h=Uo.prototype;h.getUser=function(){return lm(this,Zm,1,Po)};h.setUser=function(a){return op(this,1,Po,a)};h.hasUser=function(){return lj(this,Zm,1,Po)};h.getGroup=function(){return lm(this,Zm,2,Po)};h.setGroup=function(a){op(this,2,Po,a)};var Po=[1,2,3];var hjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(hjd,X);h=hjd.prototype;h.getAppendersList=function(){return Wi(this,Uo,6,Xi())};h.setAppendersList=function(a){return ij(this,6,a)};h.getReadersList=function(){return Wi(this,Uo,8,Xi())};h.setReadersList=function(a){return ij(this,8,a)};h.setImplicitAccess=function(a){return cn(this,10,a)};var ijd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ijd,X);h=ijd.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getIssueAccessLimit=function(){return Y(this,Xo,2)};h.setIssueAccessLimit=function(a){hj(this,Xo,2,a)};h.setAddedCollaboratorsList=function(a){ij(this,3,a)};h.setRemovedCollaboratorsList=function(a){ij(this,4,a)};var $o=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z($o,X);$o.prototype.getResourcePath=function(){return Fi(this,2)};$o.prototype.setResourcePath=function(a){return $m(this,2,a)};$o.prototype.getRestrictionSeverity=function(){return Ri(this,3)};var R2a=function(a){return cn(a,5,2)};var dp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(dp,X);var up=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(up,X);up.prototype.getLabel=function(){return Fi(this,1)};up.prototype.setLabel=function(a){return $m(this,1,a)};up.prototype.getValue=function(){return tm(this,2)};up.prototype.setValue=function(a){return Jp(this,2,a)};var QYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(QYa,X);var PYa=function(a,b){return ij(a,1,b)};QYa.prototype.setOptions=function(a,b){return dx(this,1,up,a,b)};var NYa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(NYa,X);var MYa=function(a,b){return Jp(a,1,b)};var tp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(tp,X);h=tp.prototype;h.getInherit=function(){return $i(this,1)};h.setInherit=function(a){return sp(this,1,a)};h.getId=function(){return Hn(this,2)};h.getId_asLegacyNumberOrString=function(){return Vp(this,2)};h.getId_asString=function(){return Ln(this,2)};h.setId=function(a){return ap(this,2,a)};h.getName=function(){return Fi(this,3)};h.setName=function(a){return $m(this,3,a)};
var LYa=function(a,b){op(a,4,Dq,b)},OYa=function(a,b){op(a,5,Dq,b)};tp.prototype.getCustomFieldId=function(){return Hn(this,100)};tp.prototype.getCustomFieldId_asString=function(){return Ln(this,100)};tp.prototype.setCustomFieldId=function(a){return ap(this,100,a)};var Dq=[4,5];var Gp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Gp,X);h=Gp.prototype;h.getInherit=function(){return $i(this,1)};h.setInherit=function(a){return sp(this,1,a)};h.getSource=function(){return Ri(this,2)};h.setSource=function(a){return cn(this,2,a)};h.getId=function(){return Hn(this,3)};h.getId_asLegacyNumberOrString=function(){return Vp(this,3)};h.getId_asString=function(){return Ln(this,3)};h.setId=function(a){return ap(this,3,a)};
h.getSourceTeamId_asString=function(){return Ln(this,5)};h.setSourceTeamId=function(a){ap(this,5,a)};h.getComment=function(){return Fi(this,4)};h.setComment=function(a){return $m(this,4,a)};h.getEscalationOwner=function(){return Y(this,Zm,7)};h.setEscalationOwner=function(a){hj(this,Zm,7,a)};h.setInheritEscalationOwner=function(a){sp(this,8,a)};var Hp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Hp,X);h=Hp.prototype;h.getMetric=function(){return Ri(this,1)};h.getDayType=function(){return Ri(this,4)};h.setDayType=function(a){return cn(this,4,a)};h.getObjective=function(){return Y(this,vn,3)};h.setObjective=function(a){return hj(this,vn,3,a)};h.getBusinessDays=function(){return Wm(this,5)};h.setBusinessDays=function(a){return sn(this,5,a)};var Mr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Mr,X);h=Mr.prototype;h.getSloId_asLegacyNumberOrString=function(){return Vp(this,1)};h.getSloId_asString=function(){return Ln(this,1)};h.setSloId=function(a){return ap(this,1,a)};h.getParentId=function(){return Hn(this,2)};h.setParentId=function(a){return ap(this,2,a)};h.getName=function(){return Fi(this,3)};h.setName=function(a){return $m(this,3,a)};h.getDescription=function(){return Fi(this,4)};
h.setDescription=function(a){return $m(this,4,a)};h.addRules=function(a,b){return fq(this,5,Hp,a,b)};h.removeRules=function(a){return hx(this,5,Hp,a)};h.getIsArchived=function(){return $i(this,7)};h.setIsArchived=function(a){return sp(this,7,a)};var Q2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Q2a,X);Q2a.prototype.getTemplateId=function(){return Hn(this,2)};Q2a.prototype.setTemplateId=function(a){return ap(this,2,a)};var P2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(P2a,X);h=P2a.prototype;h.getIssue=function(){return Y(this,$p,1)};h.setIssue=function(a){return hj(this,$p,1,a)};h.setSignificanceOverride=function(a){return cn(this,4,a)};h.getContentJudgement=function(){return Y(this,$o,5)};h.setContentJudgement=function(a){return hj(this,$o,5,a)};var Xp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Xp,X);h=Xp.prototype;h.getHotlistId=function(){return Hn(this,1)};h.setHotlistId=function(a){return ap(this,1,a)};h.getName=function(){return Fi(this,2)};h.setName=function(a){return $m(this,2,a)};h.getDescription=function(){return Fi(this,3)};h.setDescription=function(a){return $m(this,3,a)};h.getArchived=function(){return $i(this,4)};h.setArchived=function(a){return sp(this,4,a)};
h.getDefaultOrderBy=function(){return Fi(this,5)};h.setDefaultOrderBy=function(a){return $m(this,5,a)};h.getDisplayPreferences=function(){return Y(this,Yp,6)};h.setDisplayPreferences=function(a){return hj(this,Yp,6,a)};h.getCreatedTime=function(){return Y(this,nj,7)};h.setCreatedTime=function(a){return hj(this,nj,7,a)};h.getModifiedTime=function(){return Y(this,nj,8)};h.setModifiedTime=function(a){return hj(this,nj,8,a)};h.getOwnersList=function(){return Wi(this,Zm,9,Xi())};
h.setOwnersList=function(a){return ij(this,9,a)};h.getEtag=function(){return lo(this,10)};h.setEtag=function(a){return fp(this,10,a)};var o_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(o_a,X);h=o_a.prototype;h.getAddMask=function(){return Y(this,Xq,1)};h.getMutableAddMask=function(){return cj(this,Xq,1)};h.setAddMask=function(a){return hj(this,Xq,1,a)};h.getAdd=function(){return Y(this,Sp,2)};h.setAdd=function(a){return hj(this,Sp,2,a)};h.getComment=function(){return Y(this,cq,3)};h.setComment=function(a){return hj(this,cq,3,a)};h.getRemoveMask=function(){return Y(this,Xq,5)};
h.getMutableRemoveMask=function(){return cj(this,Xq,5)};h.setRemoveMask=function(a){return hj(this,Xq,5,a)};h.getRemove=function(){return Y(this,Sp,6)};h.setRemove=function(a){return hj(this,Sp,6,a)};var l_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(l_a,X);h=l_a.prototype;h.getText=function(){return Fi(this,1)};h.setText=function(a){return $m(this,1,a)};h.getFormattingMode=function(){return Ri(this,2)};h.setFormattingMode=function(a){return cn(this,2,a)};h.getCreateTime=function(){return Y(this,nj,4)};h.setCreateTime=function(a){return hj(this,nj,4,a)};var jjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(jjd,X);jjd.prototype.getIssue=function(){return Y(this,$p,1)};jjd.prototype.setIssue=function(a){return hj(this,$p,1,a)};jjd.prototype.getRecommendation=function(){return Fi(this,2)};jjd.prototype.setRecommendation=function(a){return $m(this,2,a)};var f_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(f_a,X);f_a.prototype.getName=function(){return Fi(this,1)};f_a.prototype.setName=function(a){return $m(this,1,a)};f_a.prototype.getEntriesList=function(){return Wi(this,jjd,3,Xi())};var bq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(bq,X);h=bq.prototype;h.getContentCase=function(){return Oo(this,aq)};h.getName=function(){return Fi(this,1)};h.setName=function(a){return $m(this,1,a)};h.getSource=function(){return Fi(this,2)};h.setSource=function(a){return $m(this,2,a)};h.getResource=function(){return Fi(this,3)};h.setResource=function(a){return $m(this,3,a)};h.getType=function(){return Ri(this,4)};h.setType=function(a){return cn(this,4,a)};
h.getRecommendation=function(){return Fi(this,5)};h.setRecommendation=function(a){return $m(this,5,a)};h.getScore=function(){return tm(this,6)};h.setScore=function(a){return Jp(this,6,a)};h.getConfidence=function(){return Ri(this,7)};h.setConfidence=function(a){return cn(this,7,a)};h.getCreateTime=function(){return Y(this,nj,8)};h.setCreateTime=function(a){return hj(this,nj,8,a)};h.getIssueModification=function(){return lm(this,o_a,12,aq)};h.setIssueModification=function(a){op(this,12,aq,a)};
h.getRationale=function(){return Y(this,l_a,13)};h.setRationale=function(a){hj(this,l_a,13,a)};var aq=[9,10,11,12];var q_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(q_a,X);h=q_a.prototype;h.getType=function(){return Ri(this,2)};h.setType=function(a){return cn(this,2,a)};h.getIssueModification=function(){return lm(this,o_a,4,kjd)};h.setIssueModification=function(a){op(this,4,kjd,a)};h.getRejectionReason=function(){return Ri(this,3)};h.setRejectionReason=function(a){cn(this,3,a)};var kjd=[4];var ljd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ljd,X);h=ljd.prototype;h.getResources=function(a){return ox(this,1,a)};h.getTypesList=function(){return On(this,2,Xi())};h.setTypesList=function(a){return Ax(this,2,a)};h.setMinConfidence=function(a){cn(this,3,a)};h.setView=function(a){return cn(this,4,a)};var x_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(x_a,X);h=x_a.prototype;h.getParent=function(){return Fi(this,1)};h.setParent=function(a){return $m(this,1,a)};h.getType=function(){return Ri(this,2)};h.setType=function(a){return cn(this,2,a)};h.getResource=function(){return Fi(this,3)};h.setResource=function(a){return $m(this,3,a)};h.getRecommendationsList=function(){return Wi(this,bq,4,Xi())};h.setRecommendationsList=function(a){return ij(this,4,a)};var mjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(mjd,X);h=mjd.prototype;h.getParent=function(){return Fi(this,1)};h.setParent=function(a){return $m(this,1,a)};h.getType=function(){return Ri(this,2)};h.setType=function(a){return cn(this,2,a)};h.setRequestsList=function(a){return ij(this,3,a)};h.addAndReturnRequests=function(){return zc(this,3,x_a)};var p_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(p_a,X);p_a.prototype.getParent=function(){return Fi(this,1)};p_a.prototype.setParent=function(a){return $m(this,1,a)};var njd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(njd,X);h=njd.prototype;h.getResource=function(){return Fi(this,1)};h.setResource=function(a){return $m(this,1,a)};h.getType=function(){return Ri(this,2)};h.setType=function(a){return cn(this,2,a)};h.setMinConfidence=function(a){cn(this,3,a)};h.setPageSize=function(a){return sn(this,4,a)};h.setPageToken=function(a){return $m(this,5,a)};h.setView=function(a){return cn(this,6,a)};var RM=function(){},SM=function(){};var TM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,TM.messageId)};Z(TM,X);TM.prototype.getParent=function(){return Fi(this,1,void 0,fb)};TM.prototype.setParent=function(a){return $m(this,1,a,fb)};TM.prototype.setRequestsList=function(a){return ij(this,2,a,fb)};TM.prototype.addAndReturnRequests=function(){return zc(this,2,p_a,fb)};TM.messageId="b.BatchCreateUserEngagementsRequest";var ojd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,ojd.messageId)};Z(ojd,X);ojd.prototype.getRecommendationsList=function(){return Wi(this,bq,1,Xi(),fb)};ojd.prototype.setRecommendationsList=function(a){return ij(this,1,a,fb)};ojd.messageId="b.BatchLookupTopTopRecommendationsResponse";var pjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,pjd.messageId)};Z(pjd,X);pjd.prototype.getRecommendationsList=function(){return Wi(this,bq,1,Xi(),fb)};pjd.prototype.setRecommendationsList=function(a){return ij(this,1,a,fb)};pjd.messageId="b.BatchReplaceRecommendationsResponse";var UM=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,UM.messageId)};Z(UM,X);UM.prototype.getRecommendationsList=function(){return Wi(this,bq,1,Xi(),fb)};UM.prototype.setRecommendationsList=function(a){return ij(this,1,a,fb)};UM.prototype.getNextPageToken=function(){return Fi(this,2,void 0,fb)};UM.prototype.getTotalSize=function(){return Hn(this,3,void 0,fb)};UM.messageId="b.LookupRecommendationsResponse";var VM=function(){this.executor=q(RM)};VM.prototype.lookupRecommendations=function(a){var b=(new njd).setResource(a.resource).setType(d_a[a.type]).setPageSize(a.pageSize).setPageToken(a.pageToken).setView(Thd[a.view]);a.minConfidence!==void 0&&b.setMinConfidence(k_a[a.minConfidence]);return this.executor.post({url:"action/recommendations/lookup",body:b,responseConstructor:UM}).pipe(A(u_a))};
VM.prototype.batchLookupTopRecommendations=function(a){var b=new ljd;b=an(b,1,a.resources).setTypesList(a.types.map(e_a));a.minConfidence!==void 0&&b.setMinConfidence(k_a[a.minConfidence]);a.view!==void 0&&b.setView(Thd[a.view]);return this.executor.post({url:"action/recommendations/batch",body:b,responseConstructor:ojd}).pipe(A(v_a))};
VM.prototype.createUserEngagements=function(a){a=(new TM).setRequestsList(a.map(t_a));return this.executor.post({url:"action/recommendations/engagements/batch",body:a,responseConstructor:null})};VM.prototype.batchReplaceRecommendations=function(a){var b=(new mjd).setRequestsList(a.requests.map(y_a));a.parent&&b.setParent(a.parent);a.type&&b.setType(d_a[a.type]);return this.executor.post({url:"action/recommendations/batchReplace",body:b,responseConstructor:pjd}).pipe(A(w_a))};
VM.\u0275fac=function(a){return new (a||VM)};VM.\u0275prov=Cc({token:VM,factory:VM.\u0275fac,providedIn:"root"});var WM=function(){this.observableApi=q(VM)};WM.prototype.lookupRecommendations=function(a){return ee(this.observableApi.lookupRecommendations(a))};WM.prototype.batchLookupTopRecommendations=function(a){return ee(this.observableApi.batchLookupTopRecommendations(a))};WM.prototype.createUserEngagements=function(a){return ee(this.observableApi.createUserEngagements(a))};
WM.prototype.batchReplaceRecommendations=function(a){return ee(this.observableApi.batchReplaceRecommendations(a))};WM.\u0275fac=function(a){return new (a||WM)};WM.\u0275prov=Cc({token:WM,factory:WM.\u0275fac,providedIn:"root"});var vq=function(a){return"issues/"+a},os=function(a){var b;return(b=a.match(/issues\/(\d+)/))==null?void 0:b[1]},qbb=function(a){var b;return(b=a.match(/hotlists\/(\d+)/))==null?void 0:b[1]};var qjd=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)};Z(qjd,Error);var XM=function(){};h=XM.prototype;h.debug=function(){nn.apply(null,n(Yc.apply(0,arguments)))};h.error=function(){PTa.apply(null,n(Yc.apply(0,arguments)))};h.info=function(){on.apply(null,n(Yc.apply(0,arguments)))};h.log=function(){OTa.apply(null,n(Yc.apply(0,arguments)))};h.warn=function(){pn.apply(null,n(Yc.apply(0,arguments)))};XM.\u0275fac=function(a){return new (a||XM)};XM.\u0275prov=Cc({token:XM,factory:XM.\u0275fac,providedIn:"root"});var rjd=Symbol("Fd"),sjd=Symbol("Gd"),tjd=Symbol("Hd"),YM=function(){};YM.prototype.schedule=function(a,b){b=b===void 0?0:b;var c=Io(),d=c.promise;b=setTimeout(function(){try{var e=a()}catch(f){c.reject(f);d[tjd]=!0;return}c.resolve(e);d[tjd]=!0},b);d[rjd]=b;d[sjd]=c.reject;d[tjd]=!1;return c.promise};YM.prototype.cancel=function(a){var b=a[rjd];if(b==null||a[tjd])return!1;clearTimeout(b);var c;(c=a[sjd])==null||c.call(a,Error("Id"));return a[tjd]=!0};YM.\u0275fac=function(a){return new (a||YM)};
YM.\u0275prov=Cc({token:YM,factory:YM.\u0275fac,providedIn:"root"});var ZM=function(){this.butterBar=q(JM);this.activeSession=q(Zu);this.$log=q(XM);this.timeout=q(YM)};
ZM.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.":iq(b)?iq(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 $M=function(a,b){a.$log.warn(b);a.butterBar.showWarning(b)},aN=function(a,b){if(hq(b))a.errorHandler(null,b);else throw b;};ZM.\u0275fac=function(a){return new (a||ZM)};ZM.\u0275prov=Cc({token:ZM,factory:ZM.\u0275fac,providedIn:"root"});var ujd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ujd,X);h=ujd.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.setPageSize=function(a){return sn(this,2,a)};h.setPageToken=function(a){return $m(this,3,a)};var vjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,vjd.messageId)};Z(vjd,X);vjd.prototype.getIt=function(){return Y(this,ujd,4,fb)};vjd.prototype.setIt=function(a){return hj(this,ujd,4,a,fb)};vjd.messageId="b.AggregateIssueDescendantsRequest";var wjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(wjd,X);h=wjd.prototype;h.getPriority=function(){return Ri(this,1)};h.setPriority=function(a){return cn(this,1,a)};h.getIssueIdsList=function(){return kx(this,2,1)};h.getIssueIdsList_asString=function(){return mn(this,2)};h.setIssueIdsList=function(a){return Kr(this,2,a)};h.addIssueIds=function(a){return xx(this,2,a)};h.setIssueIds=function(a){wc(this,2,Fb,void 0,a,Kb,void 0,1)};var xjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(xjd,X);h=xjd.prototype;h.getStatus=function(){return Ri(this,1)};h.setStatus=function(a){return cn(this,1,a)};h.getIssueIdsList=function(){return kx(this,2,1)};h.getIssueIdsList_asString=function(){return mn(this,2)};h.setIssueIdsList=function(a){return Kr(this,2,a)};h.addIssueIds=function(a){return xx(this,2,a)};h.setIssueIds=function(a){wc(this,2,Fb,void 0,a,Kb,void 0,1)};var yjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(yjd,X);h=yjd.prototype;h.getIssueIdsList=function(){return kx(this,3,1)};h.getIssueIdsList_asString=function(){return mn(this,3)};h.setIssueIdsList=function(a){return Kr(this,3,a)};h.addIssueIds=function(a){return xx(this,3,a)};h.setIssueIds=function(a){wc(this,3,Fb,void 0,a,Kb,void 0,1)};h.getCollaboratorsList=function(){return Wi(this,Zm,8,Xi())};h.setCollaboratorsList=function(a){ij(this,8,a)};
h.addAllCollaborators=function(a){eq(this,8,Zm,a)};h.setCollaborators=function(a,b){return dx(this,8,Zm,a,b)};h.getCodeChangesList=function(a){return Xm(this,9,Xi(a))};h.setCodeChangesList=function(a){an(this,9,a)};h.addAllCodeChanges=function(a){yc(this,9,Nb,a,Ob)};h.setCodeChanges=function(a,b){return zx(this,9,a,b)};h.getGerritChangesList=function(){return Wi(this,Up,13,Xi())};h.setGerritChangesList=function(a){ij(this,13,a)};h.addAllGerritChanges=function(a){eq(this,13,Up,a)};
h.getBlockedByIssueIdsList=function(){return kx(this,10,1)};h.getBlockedByIssueIdsList_asString=function(){return mn(this,10)};h.setBlockedByIssueIdsList=function(a){Kr(this,10,a)};h.addAllBlockedByIssueIds=function(a){yx(this,10,a)};h.getBlockingIssueIdsList=function(){return kx(this,11,1)};h.getBlockingIssueIdsList_asString=function(){return mn(this,11)};h.setBlockingIssueIdsList=function(a){Kr(this,11,a)};h.addAllBlockingIssueIds=function(a){yx(this,11,a)};var zjd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(zjd,X);zjd.prototype.getNextPageToken=function(){return Fi(this,4)};var Ajd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Ajd.messageId)};Z(Ajd,X);Ajd.prototype.getIt=function(){return Y(this,zjd,3,fb)};Ajd.prototype.setIt=function(a){return hj(this,zjd,3,a,fb)};Ajd.messageId="b.AggregateIssueDescendantsResponse";var bN=function(){this.executor=q(RM)};
bN.prototype.get=function(a){var b=(new vjd).setIt((new ujd).setIssueId(a));return this.executor.post({url:"action/issues/aggregateIssueDescendants",body:b,responseConstructor:Ajd}).pipe(A(function(c){var d=c.getIt();d=Wm(d,2);var e=c.getIt();e=Wm(e,3);c=c.getIt();var f=Y(c,yjd,1);if(f){var g,k,m,r,w,x,D,H,J,O;c={_rootId:a,issueIds:f.getIssueIdsList().map(qn).map(hn).filter(ln),aggregatedStatus:(w=Wi(f,xjd,4,Xi()).map(A_a).filter(ln))!=null?w:[],aggregatedPriority:(x=Wi(f,wjd,12,Xi()).map(B_a).filter(ln))!=
null?x:[],reporters:(D=(g=Wi(f,Zm,5,Xi()))==null?void 0:g.map(fn))!=null?D:[],assignees:(H=(k=Wi(f,Zm,6,Xi()))==null?void 0:k.map(fn))!=null?H:[],verifiers:(J=(m=Wi(f,Zm,7,Xi()))==null?void 0:m.map(fn))!=null?J:[],collaborators:(O=(r=f.getCollaboratorsList())==null?void 0:r.map(fn))!=null?O:[],changelists:f.getCodeChangesList(en),gerritChanges:f.getGerritChangesList().map(CZa),blockedByIssueIds:f.getBlockedByIssueIdsList().map(qn).map(hn).filter(ln),blockingIssueIds:f.getBlockingIssueIdsList().map(qn).map(hn).filter(ln),
descendantCount:d,openDescendantCount:e}}else c=void 0;return c}))};bN.\u0275fac=function(a){return new (a||bN)};bN.\u0275prov=Cc({token:bN,factory:bN.\u0275fac,providedIn:"root"});var Bjd=function(a){this.isEqual=a===void 0?function(){return!1}:a;this.values$=new vf(1);this.distinctValues$=new vf(1);this.lastValue=void 0;this.empty=!0};Bjd.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 Cjd=function(a,b){this.data=a;this.cfg=b;this.lastValidated=Date.now()};h=Cjd.prototype;h.age=function(){return Date.now()-this.lastValidated};h.isFresh=function(){return this.age()<this.cfg.freshUntil};h.isAncient=function(){return this.age()>this.cfg.ancientAfter};h.getStatus=function(){return this.isFresh()?"fresh":this.isAncient()?"ancient":"uncertain"};h.toString=function(){var a=String(this.data);return Math.ceil(this.age()/1E3)+"s old -- "+a};
var Djd=function(a){this.cfg=a;this.cache=new Map},Fjd=function(a,b){a=Ejd(a,b);return a==null?Infinity:a},Ejd=function(a,b){var c;return(c=a.get(b,!0))==null?void 0:c.age()};Djd.prototype.isFresh=function(a){return Fjd(this,a)<this.cfg.freshUntil};var Gjd=function(a,b){return Fjd(a,b)<=a.cfg.ancientAfter};h=Djd.prototype;h.isAncient=function(){var a=Ejd(this);return a?a>this.cfg.ancientAfter:!1};h.getStatus=function(a){a=this.get(a,!0);if(a!=null)return a.getStatus()};
h.has=function(a,b){return!!this.get(a,b===void 0?!1:b)};h.get=function(a,b){b=b===void 0?!1:b;var c=this.cache.get(a);if(c!=null)return c.age()>this.cfg.ancientAfter&&!b&&this.cache.delete(a),this.cache.get(a)};h.getData=function(a,b){var c;return(c=this.get(a,b===void 0?!1:b))==null?void 0:c.data};h.set=function(a,b){this.cache.set(a,new Cjd(b,this.cfg))};h.touch=function(a){var b=this.cache.get(a);b&&this.cache.set(a,new Cjd(b.data,this.cfg))};
h.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)};h.debug=function(){return Object.assign({},this.cfg,{count:this.cache.size,keys:this.cache.keys()})};h.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 Hjd={trustMemory:!0},Ijd=function(){},SSa=["startIndex","totalSize","curPageToken","nextPageToken","prevPageToken"],Jjd=function(a){this.ids=[];Object.assign(this,a)};Z(Jjd,Ijd);Jjd.prototype.toString=function(){return JSON.stringify(Object.assign({},this,{ids:"["+this.ids.join(",")+"]"}))};
var Kjd={freshUntil:1E4,ancientAfter:792E5},cN=function(a){var b=this;a=a===void 0?{}:a;this.error$=new rf;this.watchOneError=function(c){typeof c==="number"&&(c=String(c));return b.error$.pipe(te(function(d){return d.idOrKey===c}))};this.memoryWasSet$=new rf;this.collectiveMemoryWasSet$=new rf;this.valsById=new Map;this.collectionsById=new Map;this.setsByLabel=new Map;this.inFlightGets$=new Xj(Object.freeze({}));this.inFlightSaves$=new Xj(Object.freeze({}));this.getting$=this.inFlightGets$.pipe(A(D_a));
this.saving$=this.inFlightSaves$.pipe(A(D_a));this.thinking$=he(this.getting$,this.saving$).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c||d}),of());this.gotOne=function(c){return function(d,e){e=e===void 0?{}:e;e=e.doNotTrack?C_a:Ljd({label:c,value:Ejd(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));Mjd(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});Njd(b,c).next(d)}};this.gotAll=function(c){return function(d){for(var e=Ljd({label:c,value:Ejd(b.collectiveMemory,c)},b.recordType),f=l(d.results),g=f.next();!g.done;g=f.next())g=g.value,b.gotOne(b.idForRecord(g))(g,{doNotTrack:!0});f=b.normalize(d);b.collectiveMemory.validate(c,f,RSa);b.collectiveMemory.set(c,f);b.collectiveMemoryWasSet$.next();e("all-isChanged");(e=b.collectionsById.get(c))?(d=Ojd(b,f,d.results),
e.next(d)):OTa(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&&pn("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?D_a(b.inFlightSaves()):!!b.inFlightSaves()[c]};this.isSaving$=function(c){return b.inFlightSaves$.pipe(A(function(d){return!!d[c]}),of())};this.isGetting=function(c){return c==null?D_a(b.inFlightGets()):!!b.inFlightGets()[c]};this.save=function(c){var d=b.idForRecord(c);if(d==null)throw Error("Jd");c=b.doSave(c).pipe(nf(0,Rr),Fla(),Qha());b.setIsSaving(d);b.subscriptions.add(c.subscribe(b.gotOne(d),
b.gotErr(d,b.inFlightSaves$),Pjd(d,b.inFlightSaves$)));return c};this.setIsSaving=function(c){var d={};E_a(b.inFlightSaves$,(d[c]=!0,d))};this.clearIsSaving=function(c){F_a(b.inFlightSaves$,c)};this.setIsGetting=function(c){var d={};E_a(b.inFlightGets$,(d[c]=!0,d))};this.clearIsGetting=function(c){F_a(b.inFlightGets$,c)};this.peekAllRecords=function(){return Array.from(b.memory.cache.entries(),function(c){c=l(c);c.next();return c.next().value.data}).filter(ln)};this.poke.bind(this);this.subscriptions=
new Od;this.memory=new Djd(Object.assign({},Kjd,a));this.collectiveMemory=new Djd(Object.assign({},Kjd,a))};h=cN.prototype;h.fetchOne=function(){throw Error("Kd");};h.fetchAll=function(){throw Error("Ld");};h.fetchSet=function(){throw Error("Md");};h.doSave=function(){throw Error("Nd");};h.copy=function(){throw Error("Od");};h.isEqual=function(a,b){return RSa(a,b,100)};h.inFlightGets=function(){return this.inFlightGets$.getValue()};h.inFlightSaves=function(){return this.inFlightSaves$.getValue()};
var Qjd=function(a,b,c){c=c===void 0?{}:c;var d=c.trustMemory;var e=c.trustUncertainMemory;c=Ljd({label:b,value:Ejd(a.memory,b)},a.recordType);d=d&&a.memory.isFresh(b);e=e&&Gjd(a.memory,b);if(d||e)return c("one-trustMemory"),c=a.memory.getData(b),L_a(c);if(a.inFlightGets()[b])return c("one-inFlight"),c=Mjd(a,b),K_a(c.values$).then(L_a);c("one-fetch");try{var f=a.fetchOne(b).pipe(mf(1),nf(0,Rr))}catch(g){f=ce(function(){return g})}a.setIsGetting(b);return new Promise(function(g,k){a.subscriptions.add(f.subscribe(function(m){a.gotOne(b)(m);
g(m)},function(m){a.gotErr(b,a.inFlightGets$)(m);k(m)},Pjd(b,a.inFlightGets$)))})},Tjd=function(a,b,c){c=(c===void 0?{}:c).trustMemory;var d="["+[].concat(n(b)).sort().join("-")+"]",e=Ljd({label:d},a.recordType);if(c&&Rjd(a,b))Sjd(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=Mjd(a,k);return K_a(k.values$)})).then(function(k){return k.filter(ln)}).then(a.gotSet(b));else{e("set-fetch");
try{var f=a.fetchSet(b).pipe(mf(1),nf(0,Rr))}catch(k){f=ce(function(){return k})}c={};c=(c[d]=!0,c);e=l(b);for(var g=e.next();!g.done;g=e.next())c[g.value]=!0;E_a(a.inFlightGets$,c);a.subscriptions.add(f.subscribe(a.gotSet(b),function(k){G_a(a.inFlightGets$,b);a.gotErr(d,a.inFlightGets$)(k)},function(){G_a(a.inFlightGets$,[d].concat(n(b)))}))}},Rjd=function(a,b){return b.every(function(c){return a.memory.isFresh(c)})},Sjd=function(a,b){var c=Ujd(a,b).filter(ln);Njd(a,b).next(c)};
cN.prototype.getAll=function(a,b){b=(b===void 0?{}:b).trustMemory;var c=H_a(a),d=Ljd({label:c,value:Ejd(this.collectiveMemory,c)},this.recordType);if(b&&this.collectiveMemory.isFresh(c)){d("all-trustMemory");a=this.collectiveMemory.getData(c);var e=Vjd(this,a);e.results.length!==a.ids.length&&pn("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=Wjd(this,a),K_a(a.values$);d("all-fetch");try{e=this.fetchAll(a).pipe(mf(1),nf(0,Rr))}catch(f){e=ce(function(){return f})}this.setIsGetting(c);this.subscriptions.add(e.subscribe(this.gotAll(c),this.gotErr(c,this.inFlightGets$),Pjd(c,this.inFlightGets$)));a=Wjd(this,a);return K_a(a.values$)};cN.prototype.gotErr=function(a,b){var c=this;return function(d){d=Object.assign({},{idOrKey:a},d);PTa(a+" gotErr()",d);F_a(b,a);JSON.stringify(d,null,2);c.error$.next(d)}};
var Pjd=function(a,b){return function(){F_a(b,a)}};cN.prototype.normalize=function(a){var b=a.results.map(this.idForRecord);return new Jjd(Object.assign({},J_a(a),{ids:b}))};
var Ojd=function(a,b,c){a=b.ids.map(a.dereferenceOne(c)).filter(Boolean);return Object.assign({},J_a(b),{results:a})},Vjd=function(a,b){var c=Ujd(a,b.ids).filter(ln);return Ojd(a,b,c)},Ujd=function(a,b){return b.map(function(c){return a.memory.getData(c)})},Wjd=function(a,b){b=H_a(b);return I_a(a.collectionsById,b,new Bjd)},Njd=function(a,b){b="["+[].concat(n(b)).sort().join("-")+"]";return I_a(a.setsByLabel,b,new Bjd)},Mjd=function(a,b){var c=new Bjd(a.isEqual),d=a.memory.getData(b);d!=null&&c.next(d);
return I_a(a.valsById,b,c)};h=cN.prototype;h.watch=function(a,b){b=b===void 0?Hjd:b;if(a==null)throw Error("Pd`"+a+"`"+this.recordType);typeof b==="number"&&(b=Hjd);typeof a==="number"&&(a=String(a));var c=Mjd(this,a);Qjd(this,a,b).catch(function(){});return c.distinctValues$.asObservable()};h.watchSet=function(a,b){b=b===void 0?Hjd:b;typeof b==="number"&&(b=Hjd);if(a.length===0)return be([]);a=a.map(function(d){return typeof d==="number"?String(d):d});var c=Njd(this,a);Tjd(this,a,b);return c.values$.asObservable()};
h.watchMany=function(a,b){b=b===void 0?Hjd:b;a=Object.assign({},this.defaultQuery,a);var c=Wjd(this,a);this.getAll(a,b);return c.values$.asObservable()};h.peek=function(a){if(a!=null)return this.memory.getData(String(a),!0)};h.poke=function(a,b){return a==null?Promise.reject(Error("Pd`"+a+"`"+this.recordType)):Qjd(this,String(a),b)};
var Xjd=function(a,b){return b==null?Promise.resolve({results:[]}):a.getAll(Object.assign({},a.defaultQuery,b),void 0)},Yjd=function(a,b){return["string","number"].includes(typeof b)?a.memory.getStatus(String(b)):a.collectiveMemory.getStatus(H_a(b))};cN.prototype.announce=function(a,b){b=b===void 0?{}:b;if(a!=null){var c=this.idForRecord(a);if(c==null)throw Error("Qd");this.gotOne(c)(a,Object.assign({},{doNotTrack:!0},b))}};
cN.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(H_a(a))};cN.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)};cN.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()};
var Ljd=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;Zjd&&nn("Fridge<"+b+">::trackEvent('"+e+"')",f)}},dN=function(){cN.apply(this,arguments);this.defaultQuery={}};Z(dN,cN);var Zjd=!1;var eN=function(){dN.call(this);this.api=q(bN);this.recordType="AggregatedIssueMetadata";this.isEqual=Gm;this.idForRecord=function(a){return a._rootId}};Z(eN,dN);eN.prototype.fetchOne=function(a){return this.api.get(a)};eN.\u0275fac=function(a){return new (a||eN)};eN.\u0275prov=Cc({token:eN,factory:eN.\u0275fac,providedIn:"root"});var as=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,as.messageId)};Z(as,X);as.prototype.getIt=function(){return Y(this,$o,6,fb)};as.prototype.setIt=function(a){return hj(this,$o,6,a,fb)};as.messageId="b.ContentJudgement";var Q_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Q_a,X);Q_a.prototype.getContent=function(){return Fi(this,1)};Q_a.prototype.setContent=function(a){return $m(this,1,a)};Q_a.prototype.getFormattedContent=function(){return Y(this,Cp,2)};var S_a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(S_a,X);h=S_a.prototype;h.getIssueIdsList=function(){return kx(this,1,1)};h.getIssueIdsList_asString=function(){return mn(this,1)};h.setIssueIdsList=function(a){return Kr(this,1,a)};h.addIssueIds=function(a){return xx(this,1,a)};h.setIssueIds=function(a){wc(this,1,Fb,void 0,a,Kb,void 0,1)};var $jd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z($jd,X);$jd.prototype.getContent=function(){return Fi(this,1)};$jd.prototype.setContent=function(a){return $m(this,1,a)};$jd.prototype.getFormattedContent=function(){return Y(this,Cp,2)};var akd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(akd,X);h=akd.prototype;h.getContentCase=function(){return Oo(this,R_a)};h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getCategory=function(){return Fi(this,2)};h.setCategory=function(a){return $m(this,2,a)};h.getSummary=function(){return lm(this,$jd,5,R_a)};h.hasSummary=function(){return lj(this,$jd,5,R_a)};
h.getAuthor=function(){return Y(this,Zm,6)};h.setAuthor=function(a){hj(this,Zm,6,a)};h.hasAuthor=function(){return Si(this,Zm,6)};h.getTimestamp=function(){return Y(this,nj,7)};h.setTimestamp=function(a){return hj(this,nj,7,a)};h.hasTimestamp=function(){return Si(this,nj,7)};var R_a=[3,4,5];var lq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(lq,X);h=lq.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getCategory=function(){return Fi(this,2)};h.setCategory=function(a){return $m(this,2,a)};h.getAttachmentId_asString=function(){return Ln(this,3)};h.setAttachmentId=function(a){return ap(this,3,a)};h.getFeedbackType=function(){return Ri(this,4)};
h.setFeedbackType=function(a){return cn(this,4,a)};var bkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(bkd,X);h=bkd.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getAttachmentId_asString=function(){return Ln(this,2)};h.setAttachmentId=function(a){return ap(this,2,a)};h.getCategory=function(){return Fi(this,3)};h.setCategory=function(a){return $m(this,3,a)};var ckd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ckd,X);h=ckd.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getCategory=function(){return Fi(this,3)};h.setCategory=function(a){return $m(this,3,a)};var dkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(dkd,X);h=dkd.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getAttachmentId_asString=function(){return Ln(this,2)};h.setAttachmentId=function(a){return ap(this,2,a)};h.getCategory=function(){return Fi(this,3)};h.setCategory=function(a){return $m(this,3,a)};var ekd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ekd,X);ekd.prototype.getQuery=function(){return Fi(this,1)};ekd.prototype.setQuery=function(a){return $m(this,1,a)};ekd.prototype.clearQuery=function(){ex(this,1)};var fkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(fkd,X);fkd.prototype.getQuery=function(){return Fi(this,1)};fkd.prototype.setQuery=function(a){return $m(this,1,a)};fkd.prototype.clearQuery=function(){ex(this,1)};var gkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(gkd,X);gkd.prototype.getName=function(){return Fi(this,1)};gkd.prototype.setName=function(a){return $m(this,1,a)};var hkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(hkd,X);hkd.prototype.getFeedback=function(){return Y(this,lq,1)};hkd.prototype.setFeedback=function(a){return hj(this,lq,1,a)};hkd.prototype.hasFeedback=function(){return Si(this,lq,1)};var fN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,fN.messageId)};Z(fN,X);fN.messageId="f.mt";var ikd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ikd,X);h=ikd.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getAttachmentId_asString=function(){return Ln(this,2)};h.setAttachmentId=function(a){return ap(this,2,a)};h.getCategory=function(){return Fi(this,3)};h.setCategory=function(a){return $m(this,3,a)};h.getContent=function(){return Fi(this,4)};
h.setContent=function(a){return $m(this,4,a)};h.getFormattedContent=function(){return Y(this,Cp,5)};h.getAuthor=function(){return Y(this,Zm,6)};h.setAuthor=function(a){hj(this,Zm,6,a)};h.hasAuthor=function(){return Si(this,Zm,6)};h.getTimestamp=function(){return Y(this,nj,7)};h.setTimestamp=function(a){return hj(this,nj,7,a)};h.hasTimestamp=function(){return Si(this,nj,7)};h.getContentVerdict=function(){return Y(this,dq,8)};h.setContentVerdict=function(a){hj(this,dq,8,a)};var jkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,jkd.messageId)};Z(jkd,X);jkd.messageId="b.GetAttachmentEnrichmentResponse";var kkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(kkd,X);h=kkd.prototype;h.getName=function(){return Fi(this,1)};h.setName=function(a){return Gj(this,1,a)};h.hasName=function(){return xm(this,1)};h.getNameOrUndefined=function(){return mx(this,1)};h.getDisplayName=function(){return Fi(this,2)};h.setDisplayName=function(a){return Gj(this,2,a)};h.getDescription=function(){return Fi(this,3)};h.setDescription=function(a){return Gj(this,3,a)};
h.hasDescription=function(){return xm(this,3)};var lkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,lkd.messageId)};Z(lkd,X);lkd.prototype.getCategory=function(){return Y(this,kkd,1,fb)};lkd.prototype.setCategory=function(a){return hj(this,kkd,1,a,fb)};lkd.messageId="b.GetEnrichmentCategoryResponse";var mkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(mkd,X);var gN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,gN.messageId)};Z(gN,X);gN.prototype.getResponse=function(){return Y(this,mkd,1,fb)};gN.prototype.getMutableResponse=function(){return cj(this,mkd,1,void 0,fb)};gN.prototype.hasResponse=function(){return Si(this,mkd,1,fb)};gN.messageId="b.ListAttachmentEnrichmentsResponse";var nkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(nkd,X);var hN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,hN.messageId)};Z(hN,X);hN.prototype.getResponse=function(){return Y(this,nkd,1,fb)};hN.prototype.getMutableResponse=function(){return cj(this,nkd,1,void 0,fb)};hN.prototype.hasResponse=function(){return Si(this,nkd,1,fb)};hN.messageId="b.ListIssueEnrichmentsResponse";var iN=function(){this.executor=q(RM)},okd=function(a,b){var c=(new gkd).setName(b);return a.executor.post({url:"action/enrichment_category/"+b+"/get",body:c,responseConstructor:lkd}).pipe(A(function(d){return d.getCategory()}),A(P_a))},pkd=function(a,b){var c="issueid:"+b;c=(new fkd).setQuery(c);return a.executor.post({url:"action/issues/"+b+"/listIssueEnrichments",body:c,responseConstructor:hN}).pipe(A(function(d){d=d.getResponse();return Wi(d,akd,1,Xi()).map(T_a)}))},qkd=function(a,b,c){var d=
(new ckd).setIssueId(b).setCategory(c);return a.executor.post({url:"action/issues/"+b+"/enrichments/"+c+"/delete",body:d,responseConstructor:fN}).pipe(A(function(){}))},rkd=function(a,b,c,d,e){var f={};e&&(f["X-Restricted-Content-Limit"]=String(M_a(e)));e=(new dkd).setIssueId(b).setAttachmentId(c).setCategory(d);return a.executor.post({url:"action/issues/"+b+"/attachments/"+c+"/categories/"+d,options:{headers:f},body:e,responseConstructor:jkd}).pipe(A(function(g){return U_a(Y(g,ikd,1,fb))}))},skd=
function(a,b){var c="issueid:"+b;c=(new ekd).setQuery(c);return a.executor.post({url:"action/issues/"+b+"/listAttachmentEnrichments",body:c,responseConstructor:gN}).pipe(A(function(d){d=d.getResponse();return Wi(d,ikd,1,Xi()).map(U_a)}))},tkd=function(a,b,c,d){var e=(new bkd).setIssueId(b).setAttachmentId(c).setCategory(d);return a.executor.post({url:"action/issues/"+b+"/attachments/"+c+"/enrichments/"+d+"/delete",body:e,responseConstructor:fN}).pipe(A(function(){}))};
iN.prototype.submitEnrichmentFeedback=function(a){var b=(new hkd).setFeedback(W_a(a));return this.executor.post({url:"action/issues/"+a.issueId+"/submitEnrichmentFeedback",body:b,responseConstructor:fN}).pipe(A(function(){}))};iN.\u0275fac=function(a){return new (a||iN)};iN.\u0275prov=Cc({token:iN,factory:iN.\u0275fac,providedIn:"root"});var jN=function(){dN.call(this);this.api=q(iN);this.recordType="AttachmentEnrichmentsForIssue";this.idForRecord=function(a){return a.issueId};this.isEqual=Gm};Z(jN,dN);jN.prototype.fetchOne=function(a){return skd(this.api,a).pipe(A(function(b){return{issueId:a,enrichments:b}}))};jN.\u0275fac=function(a){return new (a||jN)};jN.\u0275prov=Cc({token:jN,factory:jN.\u0275fac,providedIn:"root"});var mq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(mq,X);h=mq.prototype;h.getSavedSearchId=function(){return Hn(this,1)};h.getSavedSearchId_asString=function(){return Ln(this,1)};h.setSavedSearchId=function(a){return ap(this,1,a)};h.getName=function(){return Fi(this,2)};h.setName=function(a){return $m(this,2,a)};h.getDescription=function(){return Fi(this,3)};h.setDescription=function(a){return $m(this,3,a)};h.getQuery=function(){return Fi(this,4)};
h.setQuery=function(a){return $m(this,4,a)};h.clearQuery=function(){ex(this,4)};h.getDefaultOrderBy=function(){return Fi(this,5)};h.setDefaultOrderBy=function(a){return $m(this,5,a)};h.getDisplayPreferences=function(){return Y(this,Yp,6)};h.setDisplayPreferences=function(a){return hj(this,Yp,6,a)};h.getOwnersList=function(){return Wi(this,Zm,7,Xi())};h.setOwnersList=function(a){return ij(this,7,a)};var oq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(oq,X);h=oq.prototype;h.getHotlistId=function(){return Hn(this,1)};h.setHotlistId=function(a){return ap(this,1,a)};h.getHotlist=function(){return Y(this,Xp,2)};h.setHotlist=function(a){return hj(this,Xp,2,a)};h.hasHotlist=function(){return Si(this,Xp,2)};var qq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(qq,X);h=qq.prototype;h.getSavedSearchId=function(){return Hn(this,1)};h.getSavedSearchId_asString=function(){return Ln(this,1)};h.setSavedSearchId=function(a){return ap(this,1,a)};h.getSavedSearch=function(){return Y(this,mq,2)};h.setSavedSearch=function(a){return hj(this,mq,2,a)};h.hasSavedSearch=function(){return Si(this,mq,2)};var rq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(rq,X);rq.prototype.getBookmarkGroupId_asString=function(){return Ln(this,1)};rq.prototype.setBookmarkGroupId=function(a){return ap(this,1,a)};rq.prototype.getBookmarkGroup=function(){return Y(this,sq,2)};rq.prototype.setBookmarkGroup=function(a){return hj(this,sq,2,a)};var pq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(pq,X);h=pq.prototype;
h.getHotlist=function(){return lm(this,oq,1,nq)};h.setHotlist=function(a){return op(this,1,nq,a)};h.hasHotlist=function(){return lj(this,oq,1,nq)};h.getSavedSearch=function(){return lm(this,qq,2,nq)};h.setSavedSearch=function(a){return op(this,2,nq,a)};h.hasSavedSearch=function(){return lj(this,qq,2,nq)};h.getBookmarkGroup=function(){return lm(this,rq,3,nq)};h.setBookmarkGroup=function(a){return op(this,3,nq,a)};var sq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};
Z(sq,X);h=sq.prototype;h.getBookmarkGroupId_asString=function(){return Ln(this,1)};h.setBookmarkGroupId=function(a){return ap(this,1,a)};h.getName=function(){return Fi(this,2)};h.setName=function(a){return $m(this,2,a)};h.getDescription=function(){return Fi(this,3)};h.setDescription=function(a){return $m(this,3,a)};h.getArchived=function(){return $i(this,4)};h.setArchived=function(a){return sp(this,4,a)};h.addItems=function(a,b){return fq(this,5,pq,a,b)};h.setItems=function(a){dx(this,5,pq,a)};
h.removeItems=function(a){return hx(this,5,pq,a)};h.getOwnersList=function(){return Wi(this,Zm,6,Xi())};h.setOwnersList=function(a){return ij(this,6,a)};var nq=[1,2,3];var kN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,kN.messageId)};Z(kN,X);kN.prototype.getIt=function(){return Y(this,sq,10,fb)};kN.prototype.setIt=function(a){return hj(this,sq,10,a,fb)};kN.messageId="b.BookmarkGroup";var ukd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,ukd.messageId)};Z(ukd,X);ukd.messageId="b.BookmarkGroupListResponse";var lN=function(){this.executor=q(SM)};lN.prototype.get=function(a){return this.executor.get({url:"action/bookmark_groups/"+a,responseConstructor:kN}).then(e0a)};lN.prototype.query=function(a){return this.executor.get({url:"action/bookmark_groups",options:{params:{q:a}},responseConstructor:ukd}).then(f0a)};lN.prototype.create=function(a){a=(new kN).setIt((new sq).setName(a.name).setDescription(a.description));return this.executor.post({url:"action/bookmark_groups",body:a,responseConstructor:kN}).then(e0a)};
lN.prototype.update=function(a){var b=(new kN).setIt(a0a(a));return this.executor.post({url:"action/bookmark_groups/"+a.bookmarkGroupId,body:b,responseConstructor:kN}).then(e0a)};lN.\u0275fac=function(a){return new (a||lN)};lN.\u0275prov=Cc({token:lN,factory:lN.\u0275fac,providedIn:"root"});var mN=function(){dN.call(this,{freshUntil:3E5});this.bookmarkGroupApi=q(lN);this.recordType="bookmarkGroup";this.idForRecord=function(a){return String(a.bookmarkGroupId)}};Z(mN,dN);mN.prototype.fetchOne=function(a){var b=this;return le(function(){return b.bookmarkGroupApi.get(a)})};mN.prototype.fetchSet=function(a){var b=this;return he(a.map(function(c){return b.fetchOne(c)}))};mN.\u0275fac=function(a){return new (a||mN)};mN.\u0275prov=Cc({token:mN,factory:mN.\u0275fac,providedIn:"root"});var vkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,vkd.messageId)};Z(vkd,X);h=vkd.prototype;h.getAuthor=function(){return Fi(this,1,void 0,fb)};h.setAuthor=function(a){Gj(this,1,a,fb)};h.hasAuthor=function(){return xm(this,1,fb)};h.getDescription=function(){return Fi(this,2,void 0,fb)};h.setDescription=function(a){return Gj(this,2,a,fb)};h.hasDescription=function(){return xm(this,2,fb)};h.getPending=function(){return $i(this,3,void 0,fb)};
h.getTimestamp=function(){return Hn(this,4,void 0,fb)};h.setTimestamp=function(a){return Nn(this,4,a,void 0,fb)};h.hasTimestamp=function(){return Gn(this,4,fb)};vkd.messageId="b.ChangelistDetailsResponse";var wkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(wkd,X);h=wkd.prototype;h.getIssueIdsList=function(){return kx(this,1,1)};h.getIssueIdsList_asString=function(){return mn(this,1)};h.setIssueIdsList=function(a){return tc(this,1,a,Fb)};h.addIssueIds=function(a){return wc(this,1,Fb,a,void 0,Lb)};h.setIssueIds=function(a){wc(this,1,Fb,void 0,a,Lb,void 0,1)};var xkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,xkd.messageId)};Z(xkd,X);h=xkd.prototype;h.getQuery=function(){return Y(this,wkd,1,fb)};h.setQuery=function(a){return hj(this,wkd,1,a,fb)};h.clearQuery=function(){ex(this,1,fb)};h.hasQuery=function(){return Si(this,wkd,1,fb)};h.getNextPageToken=function(){return Fi(this,2,void 0,fb)};xkd.messageId="b.ListChangelistsRequest";var h0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(h0a,X);h=h0a.prototype;h.getAuthor=function(){return Fi(this,1)};h.setAuthor=function(a){Gj(this,1,a)};h.hasAuthor=function(){return xm(this,1)};h.getChangelistNumber=function(){return Wm(this,2)};h.getPending=function(){return $i(this,3)};h.getTimestamp=function(){return Y(this,nj,4)};h.setTimestamp=function(a){return hj(this,nj,4,a)};h.hasTimestamp=function(){return Si(this,nj,4)};
h.getIssueIdsList=function(){return kx(this,5,1)};h.getIssueIdsList_asString=function(){return mn(this,5)};h.setIssueIdsList=function(a){return tc(this,5,a,Fb)};h.addIssueIds=function(a){return wc(this,5,Fb,a,void 0,Lb)};h.setIssueIds=function(a){wc(this,5,Fb,void 0,a,Lb,void 0,1)};var ykd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,ykd.messageId)};Z(ykd,X);ykd.prototype.getNextPageToken=function(){return Fi(this,2,void 0,fb)};ykd.messageId="b.ListChangelistsResponse";var zkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,zkd.messageId)};Z(zkd,X);zkd.messageId="b.PendingChangelistsResponse";var nN=function(){this.executor=q(RM)};nN.prototype.getPendingChangelistsForIssue=function(a){return this.executor.get({url:"action/issues/"+a+"/pending_changelists",responseConstructor:zkd}).pipe(A(g0a))};nN.prototype.getChangelistDetails=function(a){return this.executor.get({url:"/action/changelists/"+a,responseConstructor:vkd}).pipe(A(k0a))};
var Akd=function(a,b){var c=new xkd,d=c.setQuery;b=(new wkd).setIssueIdsList(b);b=Yn(b,2,2);c=d.call(c,b);return a.executor.post({url:"action/changelists/list",body:c,responseConstructor:ykd}).pipe(A(j0a))};nN.\u0275fac=function(a){return new (a||nN)};nN.\u0275prov=Cc({token:nN,factory:nN.\u0275fac,providedIn:"root"});var oN=function(){this.changelistResources=q(nN)};oN.prototype.getPendingChangelistsForIssue=function(a){return ee(this.changelistResources.getPendingChangelistsForIssue(a))};
oN.prototype.getChangelistDetails=function(a){return ee(this.changelistResources.getChangelistDetails(a))};oN.\u0275fac=function(a){return new (a||oN)};oN.\u0275prov=Cc({token:oN,factory:oN.\u0275fac,providedIn:"root"});var pN=function(){cN.call(this);this.api=q(nN);this.defaultQuery={};this.recordType="Changelist";this.idForRecord=function(a){return String(a.changelistNumber)}};Z(pN,cN);pN.prototype.fetchAll=function(a){if(a=a.pendingForIssues)return a.length===0?be({results:[]}):Akd(this.api,a).pipe(A(function(b){var c;return{results:(c=b.changelists)!=null?c:[]}}));throw Error("Td");};pN.\u0275fac=function(a){return new (a||pN)};pN.\u0275prov=Cc({token:pN,factory:pN.\u0275fac,providedIn:"root"});var qN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,qN.messageId)};Z(qN,X);qN.prototype.getIt=function(){return Y(this,Yo,2,fb)};qN.prototype.setIt=function(a){return hj(this,Yo,2,a,fb)};qN.messageId="b.AccessLimit";var rN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,rN.messageId)};Z(rN,X);rN.prototype.getIt=function(){return Y(this,hjd,13,fb)};rN.prototype.setIt=function(a){return hj(this,hjd,13,a,fb)};rN.messageId="b.AccessPolicy";var Bkd={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",PLAYBOOK_ID:"playbookId"},zs={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)}},
viewPlaybook:{routeDeclarationPath:"playbooks/:playbookId",makeHref:function(a){return"/playbooks/"+a}},listPlaybooks:{routeDeclarationPath:"playbooks",makeHref:function(){return"/playbooks"}},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?"+r0a(a)}},listIssuesRecent:{routeDeclarationPath:"recent",makeHref:function(){return"/recent"}},createIssue:{routeDeclarationPath:"issues/new",makeHref:function(a){return a==null?"/issues/new":"/issues/new?"+r0a(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?"+r0a({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"}},editComponentFieldConfigurations:{routeDeclarationPath:"components/:componentId/edit#fieldVisibility",makeHref:function(a){return"/components/"+a+"/edit#fieldVisibility"}},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+"?"+
r0a({mimeType:c})}}};var Ckd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Ckd.messageId)};Z(Ckd,X);Ckd.messageId="b.CheckPermissionResponse";var sN=function(){this.executor=q(RM)};h=sN.prototype;h.get=function(a,b){a=kq(wq(a,b));return this.executor.get({url:"action/access_policies/"+a,responseConstructor:rN}).pipe(A(n0a))};
h.update=function(a,b,c){a=kq(wq(a,b));var d;b=new rN;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,g,k,m,r,w;d=new hjd;var x=((f=c.admins)!=null?f:[]).map(Wo);f=ij(d,2,x).setAppendersList(((g=c.appenders)!=null?g:[]).map(Wo));g=((k=c.editors)!=null?k:[]).map(Wo);k=ij(f,4,g).setReadersList(((m=c.readers)!=null?m:[]).map(Wo));m=((r=c.restrictedReaders)!=null?r:[]).map(Wo);
r=ij(k,11,m);m=((w=c.restrictedPlusReaders)!=null?w:[]).map(Wo);w=ij(r,12,m);if(c.implicitAccess){r=w.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("nd");}r.call(w,c)}b=e.call(b,w);return this.executor.post({url:"action/access_policies/"+a,body:b,responseConstructor:rN}).pipe(A(n0a))};
h.checkPermission=function(a,b,c,d){a=kq(a.join(","));b=kq(b);c=kq(wq(c,d));return this.executor.get({url:"action/check_permission/"+a+"/"+b+"/"+c,responseConstructor:Ckd}).pipe(A(m0a))};h.setAccessLimit=function(a,b,c){a=kq(wq(a,b));c=(new qN).setIt(XXa(c));return this.executor.post({url:"action/access_limits/"+a,body:c,responseConstructor:qN}).pipe(A(l0a))};h.checkComponentImplicitAccessEnabled=function(a){return this.get("COMPONENT",a).pipe(A(function(b){return b.implicitAccess==="ALLOW"}))};
sN.\u0275fac=function(a){return new (a||sN)};sN.\u0275prov=Cc({token:sN,factory:sN.\u0275fac,providedIn:"root"});var tN=function(){this.observableApi=q(sN)};h=tN.prototype;h.get=function(a,b){return ee(this.observableApi.get(a,b))};h.update=function(a,b,c){return ee(this.observableApi.update(a,b,c))};h.checkPermission=function(a,b,c,d){return ee(this.observableApi.checkPermission(a,b,c,d))};h.setAccessLimit=function(a,b,c){return ee(this.observableApi.setAccessLimit(a,b,c))};
h.checkComponentImplicitAccessEnabled=function(a){return ee(this.observableApi.checkComponentImplicitAccessEnabled(a))};tN.\u0275fac=function(a){return new (a||tN)};tN.\u0275prov=Cc({token:tN,factory:tN.\u0275fac,providedIn:"root"});var uN=function(){dN.call(this);this.accessPolicyApi=q(sN);this.recordType="componentAccessPolicy";this.isEqual=Gm;this.idForRecord=function(a){return a.id}};Z(uN,dN);uN.prototype.fetchOne=function(a){return this.accessPolicyApi.get("COMPONENT",a).pipe(A(function(b){return Object.assign({},{id:a},b)}),hf(function(){return be(void 0)}))};uN.prototype.doSave=function(a){var b=a.id;return this.accessPolicyApi.update("COMPONENT",b,a).pipe(A(function(c){return Object.assign({},{id:b},c)}))};
uN.\u0275fac=function(a){return new (a||uN)};uN.\u0275prov=Cc({token:uN,factory:uN.\u0275fac,providedIn:"root"});var vN=function(){};vN.prototype.adapt=function(a){var b,c=new Dkd(a.call.bind(a),a.split.bind(a),(b=a.bufferTimeMs)!=null?b:500,a.maxBatchSize||100);return c.get.bind(c)};vN.\u0275fac=function(a){return new (a||vN)};vN.\u0275prov=Cc({token:vN,factory:vN.\u0275fac,providedIn:"root"});
var Dkd=function(a,b,c,d){var e=this;this.batchCall=a;this.batchSplit=b;this.bufferTimeMs=c;this.maxBatchSize=d;this.inputSubject=new rf;this.inputs$=this.inputSubject.pipe(jla(this.inputSubject.pipe(gf(this.bufferTimeMs,Rr))));this.removeDuplicates=A(function(f){return[].concat(n(new Set(f)))});this.limitInputSize=A(function(f){for(var g=l(f.slice(e.maxBatchSize)),k=g.next();!k.done;k=g.next())e.inputSubject.next(k.value);return new Set(f.slice(0,e.maxBatchSize))});this.makeBatchCalls=Rd(ie(function(f){try{return e.batchCall(f).pipe(mf(1),
A(function(g){return{inputs:f,batchResponse:g,error:void 0}}),hf(function(g){return be({inputs:f,batchResponse:void 0,error:g})}))}catch(g){return be({inputs:f,batchResponse:void 0,error:g})}}),Jla());this.batchResults$=this.inputs$.pipe(this.removeDuplicates,this.limitInputSize,this.makeBatchCalls)};
Dkd.prototype.get=function(a){var b=this;return new Sd(function(c){c=b.batchResults$.pipe(te(function(d){return d.inputs.has(a)}),mf(1),A(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 M0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(M0a,X);M0a.prototype.getFieldId=function(){return Y(this,hp,1)};M0a.prototype.setFieldId=function(a){return hj(this,hp,1,a)};var xq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(xq,X);xq.prototype.getFieldId=function(){return Y(this,hp,1)};xq.prototype.setFieldId=function(a){return hj(this,hp,1,a)};xq.prototype.getState=function(){return Ri(this,2)};xq.prototype.setState=function(a){return cn(this,2,a)};var u0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(u0a,X);var z0a=function(a,b){return Ax(a,1,b)};u0a.prototype.getIssueTypes=function(){return px(this,1)};var Ekd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Ekd,X);var yq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(yq,X);h=yq.prototype;h.getName=function(){return Fi(this,1)};h.setName=function(a){return $m(this,1,a)};h.getComponentId=function(){return Hn(this,2)};h.getComponentId_asString=function(){return Ln(this,2)};h.setComponentId=function(a){return ap(this,2,a)};var x0a=function(a,b){return ij(a,3,b)},A0a=function(a){var b=new Ekd;op(a,4,v0a,b)},y0a=function(a,b){op(a,5,v0a,b)},v0a=[4,5];var Bq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Bq,X);h=Bq.prototype;h.getInherit=function(){return $i(this,1)};h.setInherit=function(a){return sp(this,1,a)};h.getId=function(){return Hn(this,2)};h.getId_asLegacyNumberOrString=function(){return Vp(this,2)};h.getId_asString=function(){return Ln(this,2)};h.setId=function(a){return ap(this,2,a)};var Aq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Aq,X);h=Aq.prototype;h.getInherit=function(){return $i(this,1)};h.setInherit=function(a){return sp(this,1,a)};h.getId=function(){return Hn(this,2)};h.getId_asLegacyNumberOrString=function(){return Vp(this,2)};h.getId_asString=function(){return Ln(this,2)};h.setId=function(a){return ap(this,2,a)};h.getSourceTeamId_asString=function(){return Ln(this,4)};h.setSourceTeamId=function(a){ap(this,4,a)};
h.getComment=function(){return Fi(this,3)};h.setComment=function(a){return $m(this,3,a)};var zq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(zq,X);h=zq.prototype;h.getVersion=function(){return Wm(this,1)};h.setVersion=function(a){return sn(this,1,a)};h.getSlo=function(){return Y(this,Aq,2)};h.setSlo=function(a){return hj(this,Aq,2,a)};h.hasSlo=function(){return Si(this,Aq,2)};h.getEscalationOwner=function(){return Y(this,Zm,6)};h.setEscalationOwner=function(a){hj(this,Zm,6,a)};h.getDefaultEscalationOwner=function(){return Y(this,Zm,7)};
h.setInheritEscalationOwner=function(a){sp(this,8,a)};var D0a=[9,10];var F0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(F0a,X);h=F0a.prototype;h.getUser=function(){return Y(this,Zm,1)};h.setUser=function(a){return hj(this,Zm,1,a)};h.hasUser=function(){return Si(this,Zm,1)};h.getIsLead=function(){return $i(this,2)};h.setIsLead=function(a){return sp(this,2,a)};var Fkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Fkd,X);h=Fkd.prototype;h.getId=function(){return Hn(this,1)};h.getId_asLegacyNumberOrString=function(){return Vp(this,1)};h.getId_asString=function(){return Ln(this,1)};h.setId=function(a){return ap(this,1,a)};h.getPathIdsList_asString=function(){return mn(this,2)};h.setPathIdsList=function(a){return Kr(this,2,a)};h.getName=function(){return Fi(this,3)};h.setName=function(a){return $m(this,3,a)};
h.getPathNamesList=function(a){return Xm(this,4,Xi(a))};h.setPathNamesList=function(a){return an(this,4,a)};h.getMembersList=function(){return Wi(this,F0a,6,Xi())};h.setMembersList=function(a){return ij(this,6,a)};h.getDescription=function(){return Fi(this,8)};h.setDescription=function(a){return $m(this,8,a)};var K0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(K0a,X);h=K0a.prototype;h.getTeamId=function(){return Hn(this,1)};h.getTeamId_asLegacyNumberOrString=function(){return Vp(this,1)};h.getTeamId_asString=function(){return Ln(this,1)};h.setTeamId=function(a){return ap(this,1,a)};h.getScore=function(){return tm(this,2)};h.setScore=function(a){return Jp(this,2,a)};var Eq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Eq,X);Eq.prototype.getInherit=function(){return $i(this,1)};Eq.prototype.setInherit=function(a){return sp(this,1,a)};Eq.prototype.getState=function(){return Ri(this,2)};Eq.prototype.setState=function(a){return cn(this,2,a)};var Cq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Cq,X);Cq.prototype.getComponentPathNames=function(a){return ox(this,2,a)};Cq.prototype.getFieldConfigsV2List=function(){return Wi(this,yq,6,Xi())};Cq.prototype.setFieldConfigsV2List=function(a){return ij(this,6,a)};var Gq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Gq,X);h=Gq.prototype;h.getComponentId=function(){return Hn(this,2)};h.getComponentId_asString=function(){return Ln(this,2)};h.setComponentId=function(a){return ap(this,2,a)};h.getName=function(){return Fi(this,4)};h.setName=function(a){return $m(this,4,a)};h.getDescription=function(){return Fi(this,5)};h.setDescription=function(a){return $m(this,5,a)};h.getIsArchived=function(){return $i(this,8)};
h.setIsArchived=function(a){return sp(this,8,a)};h.getAccessLimit=function(){return Y(this,Yo,9)};h.setAccessLimit=function(a){return hj(this,Yo,9,a)};h.setCommentEditState=function(a){return cn(this,10,a)};h.getSlo=function(){return Y(this,Gp,13)};h.setSlo=function(a){return hj(this,Gp,13,a)};h.hasSlo=function(){return Si(this,Gp,13)};h.getTeam=function(){return Y(this,Bq,16)};h.setTeam=function(a){hj(this,Bq,16,a)};h.hasTeam=function(){return Si(this,Bq,16)};
h.getEffortSpec=function(){return Y(this,tp,18)};h.getTrackerId=function(){return Hn(this,20)};h.getTrackerId_asString=function(){return Ln(this,20)};h.setTrackerId=function(a){ap(this,20,a)};var a1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(a1a,X);h=a1a.prototype;h.getComponentId=function(){return Hn(this,2)};h.getComponentId_asString=function(){return Ln(this,2)};h.setComponentId=function(a){return ap(this,2,a)};h.getTemplateId=function(){return Hn(this,3)};h.setTemplateId=function(a){return ap(this,3,a)};h.getName=function(){return Fi(this,4)};h.setName=function(a){return $m(this,4,a)};h.getDescription=function(){return Fi(this,5)};
h.setDescription=function(a){return $m(this,5,a)};h.getIssueState=function(){return Y(this,Sp,6)};h.setIssueState=function(a){return hj(this,Sp,6,a)};h.getComment=function(){return Fi(this,7)};h.setComment=function(a){return $m(this,7,a)};h.getFormattingMode=function(){return Ri(this,8)};h.setFormattingMode=function(a){return cn(this,8,a)};var wN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(wN,X);wN.prototype.getComponentId=function(){return Hn(this,2)};wN.prototype.getComponentId_asString=function(){return Ln(this,2)};wN.prototype.setComponentId=function(a){return ap(this,2,a)};var Hq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Hq.messageId)};Z(Hq,X);Hq.prototype.getIt=function(){return Y(this,Gq,28,fb)};Hq.prototype.setIt=function(a){return hj(this,Gq,28,a,fb)};Hq.messageId="b.Component";var Gkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Gkd.messageId)};Z(Gkd,X);Gkd.prototype.getIt=function(){return Y(this,wN,1,fb)};Gkd.prototype.setIt=function(a){return hj(this,wN,1,a,fb)};Gkd.messageId="b.ListPopularRoutingComponentsRequest";var Iq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Iq,X);Iq.prototype.getIt=function(){return Y(this,a1a,7)};Iq.prototype.setIt=function(a){return hj(this,a1a,7,a)};var Hkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Hkd.messageId)};Z(Hkd,X);Hkd.messageId="b.UpdateComponentSloRequest";var Ikd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Ikd.messageId)};Z(Ikd,X);Ikd.messageId="b.UpdateComponentTeamRequest";var Jkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Jkd.messageId)};Z(Jkd,X);Jkd.prototype.setComponent=function(a){return hj(this,Hq,1,a,fb)};Jkd.messageId="b.CreateComponentResponse";var Kkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Kkd.messageId)};Z(Kkd,X);Kkd.prototype.setComponent=function(a,b){return dx(this,1,Hq,a,b,fb)};Kkd.messageId="b.ListComponentsResponse";var Lkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Lkd,X);Lkd.prototype.getComponentsList=function(){return Wi(this,Gq,1,Xi())};var Mkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Mkd.messageId)};Z(Mkd,X);Mkd.prototype.getIt=function(){return Y(this,Lkd,1,fb)};Mkd.prototype.setIt=function(a){return hj(this,Lkd,1,a,fb)};Mkd.messageId="b.ListPopularRoutingComponentsResponse";var f1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(f1a,X);f1a.prototype.getComponentPath=function(){return Fi(this,1)};var Nkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Nkd.messageId)};Z(Nkd,X);Nkd.messageId="b.SubcomponentsResponse";var xN=function(){this.executor=q(RM);this.activeSession=q(Zu)};h=xN.prototype;h.get=function(a){return this.query({id:[a]}).pipe(A(function(b){return b.length?b[0]:null}))};h.getChildren=function(a,b){a={parentId:a};if(b===void 0?0:b)a.includearchived=!0;return this.query(a)};h.getDescendants=function(a){return this.executor.get({url:"action/components/"+a+"/descendants",responseConstructor:Nkd}).pipe(A(g1a))};
h.getPopularRoutingTargets=function(a){var b=this.executor,c=b.post;a=(new Gkd).setIt((new wN).setComponentId(a));return c.call(b,{url:"/action/components/popular_targets",body:a,responseConstructor:Mkd}).pipe(A(d1a))};h.fetchComponent=function(a){return this.executor.get({url:"action/components/"+a,responseConstructor:Hq}).pipe(A(Fq))};
h.query=function(a){var b={};a.id&&(b.id=a.id);a.parentId&&(b.parentId=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:Kkd}).pipe(A(c1a))};
h.create=function(a){a=W0a(a);return this.executor.post({url:"action/components",body:a,responseConstructor:Jkd}).pipe(A(function(b){return Fq(Y(b,Hq,1,fb))}))};
h.update=function(a){var b=a.componentId;var c=new Hq;var d=c.setIt,e=(new Gq).setComponentId(a.componentId);e=ap(e,3,a.parentComponentId).setName(a.name).setDescription(a.description).setIsArchived(a.archived);if(a.componentPathInfo){var f=a.componentPathInfo,g=new Cq;f.componentPathId&&Kr(g,1,f.componentPathId);if(f.componentPathName){var k=f.componentPathName.map(String);an(g,2,k)}f.allCustomField&&(f=f.allCustomField.map(JYa),ij(g,5,f));hj(e,Cq,7,g)}a.accessLimit&&e.setAccessLimit(XXa(a.accessLimit));
a.commentEditState&&e.setCommentEditState(a.commentEditState==="ENABLED"?1:2);ap(e,6,String(a.defaultTemplateId));a.slo&&e.setSlo(gZa(a.slo));a.retentionSettings&&(g=nYa(a.retentionSettings),hj(e,dp,15,g));a.fieldOrdering&&cn(e,17,bhd[a.fieldOrdering]);a.effortSpec&&(g=RYa(a.effortSpec),hj(e,tp,18,g));a.team&&e.setTeam(I0a(a.team));var m;g=((m=a.teamSuggestions)!=null?m:[]).map(L0a);ij(e,19,g);a.spamProtection!=="SPAM_PROTECTION_UNSPECIFIED"&&cn(e,21,O0a(a.spamProtection));a.autoInactivationSettings&&
(a=a.autoInactivationSettings,a=(new Eq).setInherit(a.inherit).setState(Ngd[a.state]),hj(e,Eq,22,a));c=d.call(c,e);return this.executor.post({url:"action/components/"+b,body:c,responseConstructor:Hq}).pipe(A(Fq))};h.move=function(a,b){return this.executor.post({url:"action/components/"+a+"/move",body:null,options:{params:{parentId:b}},responseConstructor:Hq}).pipe(A(Fq))};
h.updateSlo=function(a,b){var c=new Hkd;b=gZa(b);c=hj(c,Gp,2,b,fb);return this.executor.post({url:"action/components/"+a+"/updateSlo",body:c,responseConstructor:Hq}).pipe(A(Fq))};h.updateTeam=function(a,b){var c=new Ikd;b=I0a(Object.assign({},b));c=hj(c,Bq,2,b,fb);return this.executor.post({url:"action/components/"+a+"/updateTeam",body:c,responseConstructor:Hq}).pipe(A(Fq))};xN.\u0275fac=function(a){return new (a||xN)};xN.\u0275prov=Cc({token:xN,factory:xN.\u0275fac,providedIn:"root"});
var yN=function(){this.observableApi=q(xN)};h=yN.prototype;h.get=function(a){return ee(this.observableApi.get(a))};h.getChildren=function(a,b){return ee(this.observableApi.getChildren(a,b===void 0?!1:b))};h.getDescendants=function(a){return ee(this.observableApi.getDescendants(a))};h.getPopularRoutingTargets=function(a){return ee(this.observableApi.getPopularRoutingTargets(a))};h.fetchComponent=function(a){return ee(this.observableApi.fetchComponent(a))};h.query=function(a){return ee(this.observableApi.query(a))};
h.create=function(a){return ee(this.observableApi.create(a))};h.update=function(a){return ee(this.observableApi.update(a))};h.move=function(a,b){return ee(this.observableApi.move(a,b))};h.updateSlo=function(a,b){return ee(this.observableApi.updateSlo(a,b))};h.updateTeam=function(a,b){return ee(this.observableApi.updateTeam(a,b))};yN.\u0275fac=function(a){return new (a||yN)};yN.\u0275prov=Cc({token:yN,factory:yN.\u0275fac,providedIn:"root"});var AN=function(){dN.call(this,{freshUntil:12E4,ancientAfter:6048E5});this.batchedComponentApi=q(zN);this.recordType="component";this.idForRecord=function(a){return a.componentId}};Z(AN,dN);AN.prototype.fetchOne=function(a){return a==="0"?be(void 0):this.batchedComponentApi.get(a).pipe(hf(function(){return be(void 0)}))};AN.prototype.fetchSet=function(a){var b=this;return he(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(ln)}))};
AN.\u0275fac=function(a){return new (a||AN)};AN.\u0275prov=Cc({token:AN,factory:AN.\u0275fac,providedIn:"root"});var zN=function(){var a=this;this.observableComponentApi=q(xN);this.batchApiAdapter=q(vN);this.get=this.batchApiAdapter.adapt({bufferTimeMs:0,call:function(b){return a.call(b)},split:function(b,c){return a.splitBatch(b,c)}})};
zN.prototype.call=function(a){return a.size===1?this.observableComponentApi.fetchComponent([].concat(n(a))[0]).pipe(A(function(b){return new Map(b?[[b.componentId,b]]:[])})):this.observableComponentApi.query({id:[].concat(n(a))}).pipe(A(function(b){return new Map(b.map(function(c){return[c.componentId,c]}))}))};zN.prototype.splitBatch=function(a,b){return b.get(a)};zN.\u0275fac=function(a){return new (a||zN)};zN.\u0275prov=Cc({token:zN,factory:zN.\u0275fac,providedIn:"root"});var Okd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Okd.messageId)};Z(Okd,X);Okd.messageId="b.ListTemplatesResponse";var Pkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Pkd.messageId)};Z(Pkd,X);Pkd.messageId="b.TemplateResponse";var BN=function(){this.executor=q(RM)};h=BN.prototype;h.get=function(a,b){return this.executor.get({url:"action/components/"+a+"/templates/"+b,responseConstructor:Pkd}).pipe(A(h1a))};h.query=function(a){return this.executor.get({url:"action/components/"+a+"/templates",responseConstructor:Okd}).pipe(A(i1a))};h.create=function(a,b){b=b1a(b);return this.executor.post({url:"action/components/"+a+"/templates",responseConstructor:Pkd,body:b}).pipe(A(h1a))};
h.update=function(a,b,c){c=b1a(c);return this.executor.post({url:"action/components/"+a+"/templates/"+b,responseConstructor:Pkd,body:c}).pipe(A(h1a))};h.delete=function(a,b){return this.executor.delete({url:"action/components/"+a+"/templates/"+b,responseConstructor:null})};BN.\u0275fac=function(a){return new (a||BN)};BN.\u0275prov=Cc({token:BN,factory:BN.\u0275fac,providedIn:"root"});var CN=function(){this.observableApi=q(BN)};h=CN.prototype;
h.get=function(a,b){return ee(this.observableApi.get(a,b))};h.query=function(a){return ee(this.observableApi.query(a))};h.create=function(a,b){return ee(this.observableApi.create(a,b))};h.update=function(a,b,c){return ee(this.observableApi.update(a,b,c))};h.delete=function(a,b){return ee(this.observableApi.delete(a,b))};CN.\u0275fac=function(a){return new (a||CN)};CN.\u0275prov=Cc({token:CN,factory:CN.\u0275fac,providedIn:"root"});var DN=function(){this.bookmarkGroupModified=new rf;this.commentSubmitted=new rf;this.commentRendered=new rf;this.componentModified=new rf;this.contactChipsRevertChanges=new rf;this.customFieldsModified=new rf;this.dashboardPanels={moveDown:new rf,moveUp:new rf,moveToTop:new rf,moveToBottom:new rf,remove:new rf};this.favoritesModified=new rf;this.hotlistCreated=new rf;this.onClickAppMenuIcon=new rf;this.openEditField=new rf;this.sidebarWidthChanged=new rf;this.hotlistChanged=new rf;this.savedSearchModified=
new rf;this.sidebarUpdated=new rf;this.topBarEvents={browseComponents:new rf,manageHotlists:new rf,manageSlos:new rf,setDensity:new rf,openSettings:new rf};this.templateModified=new rf;this.issueViewed=new rf;this.issueEdited=new rf;this.focusCommentBox=new rf;this.scrollToCommentBox=new rf;this.recaptchaSubmitted=new rf;this.missionControlTaskCount=new Xj(void 0);this.openIssueDetailsPageSidebar=new rf;this.closeIssueDetailsPageSidebar=new rf;this.didShowIssueHovercard=new rf};
DN.\u0275fac=function(a){return new (a||DN)};DN.\u0275prov=Cc({token:DN,factory:DN.\u0275fac,providedIn:"root"});var EN=function(){EF.apply(this,arguments)};Z(EN,EF);da.Object.defineProperties(EN.prototype,{routerLinkObj:{configurable:!0,enumerable:!0,set:function(a){this.queryParams=a.queryParams;this.routerLink=a.path;this.fragment=a.fragment}}});EN.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(EN)))(b||EN)}}();EN.\u0275dir=af({type:EN,selectors:[["a","routerLinkObj",""],["area","routerLinkObj",""]],inputs:{routerLinkObj:"routerLinkObj"},features:[Ff]});var Qkd=function(){};
Qkd.\u0275fac=function(a){return new (a||Qkd)};Qkd.\u0275mod=$e({type:Qkd});Qkd.\u0275inj=Dc({imports:[IF]});var FN=function(){};FN.\u0275fac=function(a){return new (a||FN)};FN.\u0275mod=$e({type:FN});FN.\u0275inj=Dc({imports:[xy,kz,IF,Qkd]});var GN=function(){dN.call(this,{freshUntil:3E5,ancientAfter:6048E5});var a=this;this.templatesApi=q(CN);this.appEvents=q(DN);this.recordType="componentTemplates";this.idForRecord=function(b){return b.componentId};this.defaultTemplate$=function(b){return a.watch(b).pipe(te(ln),A(function(c){return c.templates}),A(function(c){var d;return(d=c.find(function(e){return e.default}))!=null?d:c[0]}))};this.appEvents.templateModified.pipe(te(function(b){return!!b&&b!=="0"})).subscribe(function(b){a.poke(b)})};
Z(GN,dN);GN.prototype.fetchOne=function(a){var b=this;return le(function(){return b.templatesApi.query(a).then(function(c){return{componentId:a,templates:c}})})};GN.\u0275fac=function(a){return new (a||GN)};GN.\u0275prov=Cc({token:GN,factory:GN.\u0275fac,providedIn:"root"});var Rkd=function(a,b){this.childIterator_=a[ra.Symbol.iterator]();this.mapFn_=b};Rkd.prototype[Symbol.iterator]=function(){return this};Rkd.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 Skd=function(a,b){return new Rkd(a,b)};var Tkd=function(){};Tkd.prototype.next=function(){return Ukd};var Ukd={done:!0,value:void 0};Tkd.prototype.__iterator__=function(){return this};var Wkd=function(a){if(a instanceof HN||a instanceof Vkd||a instanceof IN)return a;if(typeof a.next=="function")return new HN(function(){return a});if(typeof a[Symbol.iterator]=="function")return new HN(function(){return a[Symbol.iterator]()});if(typeof a.__iterator__=="function")return new HN(function(){return a.__iterator__()});throw Error("Wd");},HN=function(a){this.func_=a};HN.prototype.__iterator__=function(){return new Vkd(this.func_())};HN.prototype[Symbol.iterator]=function(){return new IN(this.func_())};
HN.prototype.toEs6=function(){return new IN(this.func_())};var Vkd=function(a){this.iter_=a};Z(Vkd,Tkd);Vkd.prototype.next=function(){return this.iter_.next()};Vkd.prototype[Symbol.iterator]=function(){return new IN(this.iter_)};Vkd.prototype.toEs6=function(){return new IN(this.iter_)};var IN=function(a){HN.call(this,function(){return a});this.iter_=a};Z(IN,HN);IN.prototype.next=function(){return this.iter_.next()};h=Jq.prototype;h.getCount=function(){return this.size};h.getValues=function(){Xkd(this);for(var a=[],b=0;b<this.keys_.length;b++)a.push(this.map_[this.keys_[b]]);return a};h.getKeys=function(){Xkd(this);return this.keys_.concat()};h.containsKey=function(a){return this.has(a)};h.has=function(a){return Ykd(this.map_,a)};h.equals=function(a,b){if(this===a)return!0;if(this.size!=a.getCount())return!1;b=b||Zkd;Xkd(this);for(var c,d=0;c=this.keys_[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};
var Zkd=function(a,b){return a===b};Jq.prototype.isEmpty=function(){return this.size==0};Jq.prototype.clear=function(){this.map_={};this.version_=this.size=this.keys_.length=0};Jq.prototype.remove=function(a){return this.delete(a)};Jq.prototype.delete=function(a){return Ykd(this.map_,a)?(delete this.map_[a],--this.size,this.version_++,this.keys_.length>2*this.size&&Xkd(this),!0):!1};
var Xkd=function(a){if(a.size!=a.keys_.length){for(var b=0,c=0;b<a.keys_.length;){var d=a.keys_[b];Ykd(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];Ykd(b,e)||(a.keys_[d++]=e,b[e]=1);c++}a.keys_.length=d}};h=Jq.prototype;h.get=function(a,b){return Ykd(this.map_,a)?this.map_[a]:b};h.set=function(a,b){Ykd(this.map_,a)||(this.size+=1,this.keys_.push(a),this.version_++);this.map_[a]=b};
h.addAll=function(a){if(a instanceof Jq)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])};h.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)}};h.clone=function(){return new Jq(this)};h.transpose=function(){for(var a=new Jq,b=0;b<this.keys_.length;b++){var c=this.keys_[b];a.set(this.map_[c],c)}return a};h.keys=function(){return Wkd(this.__iterator__(!0)).toEs6()};h.values=function(){return Wkd(this.__iterator__(!1)).toEs6()};
h.entries=function(){var a=this;return Skd(this.keys(),function(b){return[b,a.get(b)]})};h.__iterator__=function(a){Xkd(this);var b=0,c=this.version_,d=this,e=new Tkd;e.next=function(){if(c!=d.version_)throw Error("Xd");if(b>=d.keys_.length)return Ukd;var f=d.keys_[b++];return{value:a?f:d.map_[f],done:!1}};return e};var Ykd=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var ald=function(a,b){(b=a.map_.get(b))&&a.cache_&&(b.remove(),$kd(a,b));return b};h=k1a.prototype;h.get=function(a,b){return(a=ald(this,a))?a.value:b};h.set=function(a,b){var c=ald(this,a);c?c.value=b:(c=new j1a(a,b),this.map_.set(a,c),$kd(this,c))};h.peek=function(){return this.head_.next.value};h.shift=function(){return bld(this,this.head_.next)};h.pop=function(){return bld(this,this.head_.prev)};h.remove=function(a){return(a=this.map_.get(a))?(this.removeNode(a),!0):!1};
h.removeNode=function(a){a.remove();this.map_.remove(a.key)};h.getCount=function(){return this.map_.getCount()};h.isEmpty=function(){return this.map_.isEmpty()};h.getKeys=function(){return this.map(function(a,b){return b})};h.getValues=function(){return this.map(function(a){return a})};h.contains=function(a){return this.some(function(b){return b==a})};h.containsKey=function(a){return this.map_.containsKey(a)};h.clear=function(){cld(this,0)};
h.forEach=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)a.call(b,c.value,c.key,this)};h.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};h.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};h.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 $kd=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&&cld(a,a.maxCount_)},cld=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)}},bld=function(a,b){a.head_!=b&&a.removeNode(b);return b.value},j1a=function(a,b){this.key=a;this.value=b};
j1a.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var JN=function(){this.caches=new Map};JN.prototype.create=function(a,b){if(this.caches.has(a))throw Error("Yd`"+a);b=new dld(b==null?void 0:b.capacity);this.caches.set(a,b);return b};JN.prototype.get=function(a){return this.caches.get(a)};JN.\u0275fac=function(a){return new (a||JN)};JN.\u0275prov=Cc({token:JN,factory:JN.\u0275fac,providedIn:"root"});var dld=function(a){this.lruCache=new k1a(a)};dld.prototype.get=function(a){return this.lruCache.get(a)};
dld.prototype.put=function(a,b){b!==void 0&&this.lruCache.set(a,b);return b};dld.prototype.remove=function(a){this.lruCache.remove(a)};dld.prototype.removeAll=function(){this.lruCache.clear()};var Kq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Kq.messageId)};Z(Kq,X);Kq.prototype.getIt=function(){return Y(this,Xp,18,fb)};Kq.prototype.setIt=function(a){return hj(this,Xp,18,a,fb)};Kq.messageId="b.Hotlist";var eld=RegExp("action/issues/([0-9]+)/"),fld=new bd("ETAG_URL_TRANSFORMERS"),gld=["POST","PUT","DELETE"],LN=function(){this.etagStore=q(KN)};LN.prototype.intercept=function(a,b){if(gld.includes(a.method)){var c=this.etagStore.getEtag(a);c&&a.headers&&(a=a.clone({headers:a.headers.set("If-Match",c)}))}eld.exec(a.url);return hld(this,a,b)};var hld=function(a,b,c){return c.handle(b).pipe(Bf(function(d){d instanceof Uy&&(d=d.headers,d.has("etag")&&a.etagStore.setEtag(b,d.get("etag")))}))};
LN.\u0275fac=function(a){return new (a||LN)};LN.\u0275prov=Cc({token:LN,factory:LN.\u0275fac,providedIn:"root"});var KN=function(){this.transformers=q(fld,{optional:!0});this.etagStore={}};KN.prototype.setEtag=function(a,b){b!=null&&(a=ild(this,a.url),this.etagStore[a]=b)};KN.prototype.getEtag=function(a){a=ild(this,a.url);return this.etagStore[a]};var ild=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};
KN.\u0275fac=function(a){return new (a||KN)};KN.\u0275prov=Cc({token:KN,factory:KN.\u0275fac,providedIn:"root"});var jld={provide:zFc,useExisting:LN,multi:!0};var Zp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Zp,X);h=Zp.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getPosition=function(){return Wm(this,2)};h.setPosition=function(a){return sn(this,2,a)};h.getIssue=function(){return Y(this,$p,3)};h.setIssue=function(a){return hj(this,$p,3,a)};var kld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(kld,X);h=kld.prototype;h.getHotlistId=function(){return Hn(this,1)};h.setHotlistId=function(a){return ap(this,1,a)};h.setOrderBy=function(a){return $m(this,2,a)};h.setPageSize=function(a){return sn(this,3,a)};h.setPageToken=function(a){return $m(this,4,a)};h.getFilter=function(){return Fi(this,5)};h.setFilter=function(a){return $m(this,5,a)};h.setView=function(a){return cn(this,6,a)};
h.setIssueDescriptionView=function(a){return cn(this,7,a)};h.getQuery=function(){return Fi(this,8)};h.setQuery=function(a){return $m(this,8,a)};h.clearQuery=function(){ex(this,8)};var lld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(lld,X);h=lld.prototype;h.getHotlistId=function(){return Hn(this,1)};h.setHotlistId=function(a){return ap(this,1,a)};h.getIssueId=function(){return Hn(this,2)};h.getIssueId_asString=function(){return Ln(this,2)};h.setIssueId=function(a){return ap(this,2,a)};var mld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,mld.messageId)};Z(mld,X);mld.prototype.getIt=function(){return Y(this,kld,1,fb)};mld.prototype.setIt=function(a){return hj(this,kld,1,a,fb)};mld.messageId="b.ListHotlistEntriesRequest";var MN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(MN,X);MN.prototype.getNextPageToken=function(){return Fi(this,2)};MN.prototype.getTotalSize=function(){return Wm(this,3)};MN.prototype.getTotalSizeAccurate=function(){return $i(this,4)};MN.prototype.getMaySkipResults=function(){return $i(this,5)};var nld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,nld.messageId)};Z(nld,X);nld.prototype.getIt=function(){return Y(this,MN,1,fb)};nld.prototype.setIt=function(a){return hj(this,MN,1,a,fb)};nld.messageId="b.ListHotlistEntriesResponse";var NN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,NN.messageId)};Z(NN,X);NN.prototype.addHotlists=function(a){fq(this,1,Kq,a,void 0,fb)};NN.prototype.removeHotlists=function(a){return hx(this,1,Kq,a,fb)};NN.messageId="b.ListHotlistsResponse";var PN=function(){this.hotlistApi=q(ON);var a=q(JN);this.hotlistCache=a.get("hotlists-second-level-cache")||a.create("hotlists-second-level-cache",{capacity:1E3})};h=PN.prototype;h.get=function(a){var b=this.hotlistCache.get(String(a))||this.hotlistApi.get(a);return this.hotlistCache.put(String(a),b)};h.repositionHotlistIssue=function(a,b,c){return this.hotlistApi.repositionHotlistIssue(a,b,c)};h.createHotlist=function(a,b){return this.hotlistApi.createHotlist(a,b)};h.queryHotlists=function(a){return this.hotlistApi.queryHotlists(a)};
h.archiveHotlist=function(a,b){return this.hotlistApi.archiveHotlist(a,b)};h.updateMetadata=function(a,b){return this.hotlistApi.updateMetadata(a,b)};h.getPagedHotlistContent=function(a,b,c,d,e){return this.hotlistApi.getPagedHotlistContent(a,b,c,d,e)};PN.\u0275fac=function(a){return new (a||PN)};PN.\u0275prov=Cc({token:PN,factory:PN.\u0275fac,providedIn:"root"});var QN=function(){this.executor=q(RM);this.etagStore=q(KN);this.bufferTimeMs=50};
QN.prototype.call=function(a){a=Array.from(a,function(b){return String(b)});return a.length===0?be(new Map):a.length===1?this.executor.get({url:"action/hotlists/"+a[0],responseConstructor:Kq}).pipe(A(Lq),A(function(b){var c=new Map;c.set(String(b.hotlistId),b);return c})):this.executor.get({url:"action/hotlists",responseConstructor:NN,options:{params:{id:a}}}).pipe(A(function(b){var c=new Map;b=l(Wi(b,Kq,1,Xi(),fb).map(Lq));for(var d=b.next();!d.done;d=b.next())d=d.value,c.set(String(d.hotlistId),
d);return c}))};QN.prototype.split=function(a,b){if(b=b.get(a)){var c=b.etag;if(c){var d=this.etagStore;c!=null&&(a=ild(d,"action/hotlists/"+a),d.etagStore[a]=c)}}return b};QN.\u0275fac=function(a){return new (a||QN)};QN.\u0275prov=Cc({token:QN,factory:QN.\u0275fac,providedIn:"root"});var RN=function(){this.executor=q(RM);this.batchApiConfig=q(QN);this.batchApiAdapter=q(vN);this.adaptedGet=this.batchApiAdapter.adapt(this.batchApiConfig)};h=RN.prototype;
h.get=function(a){var b=this;return this.adaptedGet(String(a)).pipe(zf(function(c){return c?be(c):b.executor.get({url:"action/hotlists/"+a,responseConstructor:Kq}).pipe(A(Lq))}))};h.bulkLoad=function(a){var b=this;return a.length===0?be([]):me(a.map(function(c){return b.adaptedGet(String(c))})).pipe(A(function(c){return c.filter(ln)}))};
h.repositionHotlistIssue=function(a,b,c){var d=(new lld).setHotlistId(Number(a)).setIssueId(b);b=(new Zp).setIssueId(Number(b)).setPosition(c);d=hj(d,Zp,3,b);return this.executor.put({url:"action/hotlists/"+a+"/entry",body:d,responseConstructor:null})};h.createHotlist=function(a,b){a=(new Xp).setName(a);b&&a.setDescription(b);return this.executor.post({url:"action/hotlists",body:(new Kq).setIt(a),responseConstructor:Kq}).pipe(A(Lq))};
h.queryHotlists=function(a){return this.executor.get({url:"action/hotlists",responseConstructor:NN,options:{params:{q:a}}}).pipe(A(function(b){var c;return((c=Wi(b,Kq,1,Xi(),fb))!=null?c:[]).map(Lq)}))};h.archiveHotlist=function(a,b){return this.executor.post({url:"action/hotlists/"+a+"/archive",body:l1a(b),responseConstructor:Kq}).pipe(A(Lq))};
h.updateMetadata=function(a,b){var c={};b.etag&&(c["If-Match"]=String(b.etag));return this.executor.post({url:"action/hotlists/"+a,body:l1a(b),options:{headers:c},responseConstructor:Kq}).pipe(A(Lq))};
h.getPagedHotlistContent=function(a,b,c,d,e){var f={};e&&(f.trackerIds=e);d=d.map(function(g){return{field:{type:g.fieldId.type,customFieldId:g.fieldId.customFieldId,customFieldName:g.fieldId.customFieldName},direction:g.direction}});b=(new kld).setHotlistId(a).setOrderBy(QXa(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 mld).setIt(b),responseConstructor:nld}).pipe(A(function(g){return c_a(g.getIt())}))};
RN.\u0275fac=function(a){return new (a||RN)};RN.\u0275prov=Cc({token:RN,factory:RN.\u0275fac,providedIn:"root"});var ON=function(){this.observableApi=q(RN)};h=ON.prototype;h.get=function(a){return ee(this.observableApi.get(a))};h.bulkLoad=function(a){return ee(this.observableApi.bulkLoad(a))};h.repositionHotlistIssue=function(a,b,c){return ee(this.observableApi.repositionHotlistIssue(a,b,c))};h.createHotlist=function(a,b){return ee(this.observableApi.createHotlist(a,b))};h.queryHotlists=function(a){return ee(this.observableApi.queryHotlists(a))};
h.archiveHotlist=function(a,b){return ee(this.observableApi.archiveHotlist(a,b))};h.updateMetadata=function(a,b){return ee(this.observableApi.updateMetadata(a,b))};h.getPagedHotlistContent=function(a,b,c,d,e){return ee(this.observableApi.getPagedHotlistContent(a,b,c,d,e))};ON.\u0275fac=function(a){return new (a||ON)};ON.\u0275prov=Cc({token:ON,factory:ON.\u0275fac,providedIn:"root"});var m1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(m1a,X);m1a.prototype.getIt=function(){return Y(this,pq,6)};m1a.prototype.setIt=function(a){return hj(this,pq,6,a)};var old=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,old.messageId)};Z(old,X);old.messageId="b.Favorite";var pld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,pld.messageId)};Z(pld,X);pld.prototype.getComponentsList=function(){return Wi(this,Hq,1,Xi(),fb)};pld.messageId="b.UserRecentComponentResponse";var SN=function(){this.executor=q(RM)};h=SN.prototype;h.getUserBookmarks=function(){return this.executor.post({url:"action/getUserBookmarks",body:null,responseConstructor:kN}).pipe(A(function(a){return d0a(a.getIt())}))};h.getRecentComponents=function(){return this.executor.get({url:"action/current_user/recent_components",responseConstructor:pld}).pipe(A(X0a))};h.getUserBookmark=function(a,b){return this.executor.get({url:"action/favorites/"+a+"/"+b,responseConstructor:old}).pipe(A(n1a))};
h.addUserBookmark=function(a){a=(new m1a).setIt(c0a(a));return this.executor.post({url:"action/favorites",body:a,responseConstructor:old}).pipe(A(n1a))};h.removeUserBookmark=function(a){return this.executor.post({url:"action/removeUserBookmark",body:c0a(a),responseConstructor:null})};
var qld=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})};SN.\u0275fac=function(a){return new (a||SN)};SN.\u0275prov=Cc({token:SN,factory:SN.\u0275fac,providedIn:"root"});var TN=function(){this.observableApi=q(SN)};h=TN.prototype;
h.getUserBookmarks=function(){return ee(this.observableApi.getUserBookmarks())};h.getRecentComponents=function(){return ee(this.observableApi.getRecentComponents())};h.getUserBookmark=function(a,b){return ee(this.observableApi.getUserBookmark(a,b))};h.addUserBookmark=function(a){return ee(this.observableApi.addUserBookmark(a))};h.removeUserBookmark=function(a){return ee(this.observableApi.removeUserBookmark(a))};TN.\u0275fac=function(a){return new (a||TN)};
TN.\u0275prov=Cc({token:TN,factory:TN.\u0275fac,providedIn:"root"});var UN=function(){dN.call(this,{freshUntil:3E5});this.observableHotlistResources=q(RN);this.recordType="hotlist";this.idForRecord=function(a){return String(a.hotlistId)}};Z(UN,dN);UN.prototype.fetchOne=function(a){return a?this.observableHotlistResources.get(a).pipe(hf(function(b){return b.status===403?be(void 0):ce(function(){return b})})):be(void 0)};UN.prototype.fetchSet=function(a){return this.observableHotlistResources.bulkLoad(a.filter(Boolean)).pipe(A(function(b){return(b!=null?b:[]).filter(ln)}))};
UN.prototype.doSave=function(a){return this.observableHotlistResources.updateMetadata(a.hotlistId,a)};UN.\u0275fac=function(a){return new (a||UN)};UN.\u0275prov=Cc({token:UN,factory:UN.\u0275fac,providedIn:"root"});var Mq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Mq,X);Mq.prototype.getIt=function(){return Y(this,mq,12)};Mq.prototype.setIt=function(a){return hj(this,mq,12,a)};var rld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,rld.messageId)};Z(rld,X);rld.prototype.setSearch=function(a,b){dx(this,1,Mq,a,b,fb)};rld.messageId="b.BatchGetSearchesResponse";var VN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,VN.messageId)};Z(VN,X);VN.prototype.getSearch=function(){return Y(this,Mq,1,fb)};VN.prototype.setSearch=function(a){hj(this,Mq,1,a,fb)};VN.prototype.clearSearch=function(){ex(this,1,fb)};VN.messageId="b.SearchResponse";var WN=function(){this.jspbExecutor=q(RM)};h=WN.prototype;h.get=function(a){return this.jspbExecutor.get({url:"action/saved_searches/"+a,responseConstructor:VN}).pipe(A(p1a))};h.batchGet=function(a){if(a.length>500)throw Error("Zd");return this.jspbExecutor.get({url:"action/saved_searches?"+a.map(function(b){return"id="+b}).join("&"),responseConstructor:rld}).pipe(A(q1a))};
h.create=function(a,b){a=(new Mq).setIt((new mq).setName(a).setQuery(b));return this.jspbExecutor.post({url:"action/saved_searches",body:a,responseConstructor:VN}).pipe(A(p1a))};h.update=function(a,b){b=(new Mq).setIt(Y_a(b));return this.jspbExecutor.post({url:"action/saved_searches/"+a,body:b,responseConstructor:VN}).pipe(A(p1a))};h.delete=function(a){return this.jspbExecutor.delete({url:"action/saved_searches/"+a,responseConstructor:null})};WN.\u0275fac=function(a){return new (a||WN)};
WN.\u0275prov=Cc({token:WN,factory:WN.\u0275fac,providedIn:"root"});var XN=function(){this.observableResources=q(WN)};h=XN.prototype;h.get=function(a){return ee(this.observableResources.get(a))};h.batchGet=function(a){return ee(this.observableResources.batchGet(a))};h.create=function(a,b){return ee(this.observableResources.create(a,b))};h.update=function(a,b){return ee(this.observableResources.update(a,b))};h.delete=function(a){return ee(this.observableResources.delete(a))};
XN.\u0275fac=function(a){return new (a||XN)};XN.\u0275prov=Cc({token:XN,factory:XN.\u0275fac,providedIn:"root"});var YN=function(){dN.call(this);this.savedSearchApi=q(WN);this.recordType="savedSearch";this.idForRecord=function(a){return String(a.searchId)}};Z(YN,dN);YN.prototype.fetchOne=function(a){return this.savedSearchApi.get(a)};YN.prototype.fetchSet=function(a){return this.savedSearchApi.batchGet(a)};YN.\u0275fac=function(a){return new (a||YN)};YN.\u0275prov=Cc({token:YN,factory:YN.\u0275fac,providedIn:"root"});var ZN=function(){dN.call(this,{freshUntil:3E5});var a=this;this.userApi=q(SN);this.hotlistApi=q(RN);this.bookmarkGroupApi=q(lN);this.appEvents=q(DN);this.hotlistFridge=q(UN);this.savedSearchFridge=q(YN);this.bookmarkGroupFridge=q(mN);this.activeSession=q(Zu);this.recordType="user-bookmark";this.isEqual=Gm;this.idForRecord=function(b){return b.id};this.pokeAll=function(){a.poke("current-user-bookmark-id",void 0)};se(this.appEvents.hotlistChanged,this.appEvents.hotlistCreated,this.appEvents.bookmarkGroupModified,
this.appEvents.savedSearchModified,this.appEvents.favoritesModified).subscribe(function(){a.poke("current-user-bookmark-id")})};Z(ZN,dN);var sld=function(a){var b=a.activeSession.getUserEmail();return b?a.hotlistApi.queryHotlists("include_archived:true owner:"+b):be([])},tld=function(a){var b=a.activeSession.getUserEmail();return b?le(function(){return a.bookmarkGroupApi.query("include_archived:true owner:"+b)}):be([])};
ZN.prototype.fetchOne=function(){var a=this;return me([this.userApi.getUserBookmarks(),sld(this),tld(this)]).pipe(Bf(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)}),A(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;d=H1a([].concat(n(b.hotlists),n(d)),[].concat(n(b.bookmarkGroups),n(c)),b.savedSearches);return I1a(d,b)}))};
var uld=function(a){return a.watch("current-user-bookmark-id",void 0).pipe(te(ln))},$N=function(a){return uld(a).pipe(A(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(ln).filter(function(f){return f.resourceType==="HOTLIST"}))!=null?e:[];return[].concat(n(b),n(d))}),A(function(b){return Nq(b,function(c){return c.id})}),A(function(b){return F1a(b)}),A(function(b){return b.map(function(c){return c.id})}),
zf(function(b){return a.hotlistFridge.watchSet(b)}))},vld=function(a){return uld(a).pipe(A(function(b){var c;return(c=b==null?void 0:b.savedSearches.map(function(d){return d.id}))!=null?c:[]}),A(function(b){return b.filter(ln)}),zf(function(b){return a.savedSearchFridge.watchSet(b)}))};ZN.\u0275fac=function(a){return new (a||ZN)};ZN.\u0275prov=Cc({token:ZN,factory:ZN.\u0275fac,providedIn:"root"});
var F1a=yn(function(a){return a.name},An,"ASCENDING"),E1a=yn(function(a){return a.name},An,"ASCENDING"),G1a=yn(function(a){return a.name},An,"ASCENDING");var K1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(K1a,X);K1a.prototype.getIt=function(){return Y(this,pp,14)};K1a.prototype.setIt=function(a){return hj(this,pp,14,a)};var ar=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ar,X);ar.prototype.getIt=function(){return Y(this,np,13)};ar.prototype.setIt=function(a){return hj(this,np,13,a)};var aO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,aO.messageId)};Z(aO,X);aO.prototype.getIt=function(){return Y(this,pp,2,fb)};aO.prototype.setIt=function(a){return hj(this,pp,2,a,fb)};aO.messageId="b.CustomFieldResponse";var wld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(wld,X);h=wld.prototype;h.getCustomFieldsList=function(){return Wi(this,pp,1,Xi())};h.setCustomFieldsList=function(a){return ij(this,1,a)};h.addCustomFields=function(a){fq(this,1,pp,a)};h.getNextPageToken=function(){return Fi(this,2)};h.getTotalSize=function(){return Wm(this,3)};var xld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,xld.messageId)};Z(xld,X);xld.prototype.getIt=function(){return Y(this,wld,4,fb)};xld.prototype.setIt=function(a){return hj(this,wld,4,a,fb)};xld.messageId="b.ListCustomFieldsResponse";var bO=function(){this.executor=q(RM)};h=bO.prototype;h.get=function(a){return this.executor.get({url:"action/custom_fields/"+Number(a),responseConstructor:aO}).pipe(A(J1a))};h.getResource=function(a){return this.executor.get({url:"action/custom_fields/"+a,responseConstructor:aO}).pipe(A(J1a))};h.create=function(a,b){b=L1a(b);return this.executor.post({url:"action/custom_fields",options:{params:{componentId:a}},body:b,responseConstructor:aO}).pipe(A(J1a))};
h.update=function(a,b,c){b=Number(b);c=L1a(c);return this.executor.post({url:"action/custom_fields/"+b,options:{params:{componentId:a}},body:c,responseConstructor:aO}).pipe(A(J1a))};h.delete=function(a,b){return this.executor.delete({url:"action/custom_fields/"+Number(b),options:{params:{componentId:a}},responseConstructor:null})};
h.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:xld}).pipe(A(M1a))};bO.\u0275fac=function(a){return new (a||bO)};bO.\u0275prov=Cc({token:bO,factory:bO.\u0275fac,providedIn:"root"});var cO=function(){this.observableApi=q(bO)};h=cO.prototype;h.get=function(a){return ee(this.observableApi.get(a))};h.getResource=function(a){return ee(this.observableApi.getResource(a))};
h.create=function(a,b){return ee(this.observableApi.create(a,b))};h.update=function(a,b,c){return ee(this.observableApi.update(a,b,c))};h.delete=function(a,b){return ee(this.observableApi.delete(a,b))};h.query=function(a){return ee(this.observableApi.query(a))};cO.\u0275fac=function(a){return new (a||cO)};cO.\u0275prov=Cc({token:cO,factory:cO.\u0275fac,providedIn:"root"});var dO=function(){dN.call(this,{freshUntil:18E5,ancientAfter:2592E6});this.api=q(bO);this.recordType="customFieldResource";this.idForRecord=function(a){return String(a.customFieldId)}};Z(dO,dN);dO.prototype.fetchOne=function(a){return this.api.getResource(a).pipe(hf(function(b){console.error("error fetching custom field "+a,b);return be(void 0)}))};dO.\u0275fac=function(a){return new (a||dO)};dO.\u0275prov=Cc({token:dO,factory:dO.\u0275fac,providedIn:"root"});var eO=function(){dN.call(this);this.api=q(iN);this.recordType="EnrichmentCategory";this.idForRecord=function(a){return a.name};this.isEqual=Gm};Z(eO,dN);eO.prototype.fetchOne=function(a){return okd(this.api,a)};eO.prototype.fetchSet=function(a){var b=this;return he(a.map(function(c){return b.fetchOne(c)}))};eO.\u0275fac=function(a){return new (a||eO)};eO.\u0275prov=Cc({token:eO,factory:eO.\u0275fac,providedIn:"root"});var Pq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Pq,X);var Qq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Qq.messageId)};Z(Qq,X);h=Qq.prototype;h.getId=function(){return Hn(this,1,void 0,fb)};h.getId_asLegacyNumberOrString=function(){return Vp(this,1,void 0,fb)};h.getId_asString=function(){return Ln(this,1,void 0,fb)};h.setId=function(a){return Nn(this,1,a,void 0,fb)};h.setTriage=function(a){return hj(this,Pq,2,a,fb)};Qq.messageId="b.IssueExperiments";var Sq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Sq,X);Sq.prototype.getName=function(){return Fi(this,1)};Sq.prototype.setName=function(a){return Gj(this,1,a)};Sq.prototype.hasName=function(){return xm(this,1)};Sq.prototype.getNameOrUndefined=function(){return mx(this,1)};var g2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(g2a,X);h=g2a.prototype;h.getPhasesList=function(){return On(this,1,Xi())};h.setPhasesList=function(a){return Ax(this,1,a)};h.getSubphasesList=function(){return On(this,2,Xi())};h.setSubphasesList=function(a){return Ax(this,2,a)};h.getValue=function(){return Y(this,np,3)};h.setValue=function(a){return hj(this,np,3,a)};h.hasValue=function(){return Si(this,np,3)};var Tq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Tq,X);Tq.prototype.getCustomFieldId=function(){return Hn(this,1)};Tq.prototype.getCustomFieldId_asString=function(){return Ln(this,1)};Tq.prototype.setCustomFieldId=function(a){return Nn(this,1,a)};Tq.prototype.hasCustomFieldId=function(){return Gn(this,1)};var a2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(a2a,X);h=a2a.prototype;h.getHotlistIdsList_asLegacyNumberOrString=function(a){return c7a(this,1,Xi(a))};h.getHotlistIdsList_asString=function(){return mn(this,1)};h.setHotlistIdsList=function(a){return Kr(this,1,a)};h.addHotlistIds=function(a,b){return xx(this,1,a,b)};h.addAllHotlistIds=function(a){yx(this,1,a)};h.removeHotlistIds=function(a){return iCc(this,1,a)};h.getPhasesList=function(){return On(this,3,Xi())};
h.setPhasesList=function(a){return Ax(this,3,a)};h.getSubphasesList=function(){return On(this,4,Xi())};h.setSubphasesList=function(a){return Ax(this,4,a)};var T1a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(T1a,X);var Y1a=[1,2];var Rq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Rq,X);h=Rq.prototype;h.getScope=function(){return Fi(this,1)};h.setScope=function(a){return Gj(this,1,a)};h.setConfig=function(a){dx(this,3,T1a,a)};h.getId=function(){return Hn(this,4)};h.getId_asLegacyNumberOrString=function(){return Vp(this,4)};h.getId_asString=function(){return Ln(this,4)};h.setId=function(a){return Nn(this,4,a)};h.getDisplayName=function(){return Fi(this,5)};
h.setDisplayName=function(a){return Gj(this,5,a)};h.getDisplayColumns=function(){return Y(this,bo,6)};h.setDisplayColumns=function(a){hj(this,bo,6,a)};var fO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,fO.messageId)};Z(fO,X);h=fO.prototype;h.getId=function(){return Hn(this,1,void 0,fb)};h.getId_asLegacyNumberOrString=function(){return Vp(this,1,void 0,fb)};h.getId_asString=function(){return Ln(this,1,void 0,fb)};h.setId=function(a){return Nn(this,1,a,void 0,fb)};h.setTriage=function(a){return dx(this,2,Rq,a,void 0,fb)};fO.messageId="b.TeamExperiments";var o2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(o2a,X);h=o2a.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getAddMask=function(){return Y(this,Xq,2)};h.getMutableAddMask=function(){return cj(this,Xq,2)};h.setAddMask=function(a){return hj(this,Xq,2,a)};h.getAdd=function(){return Y(this,Sp,3)};h.setAdd=function(a){return hj(this,Sp,3,a)};
h.getRemoveMask=function(){return Y(this,Xq,4)};h.getMutableRemoveMask=function(){return cj(this,Xq,4)};h.setRemoveMask=function(a){return hj(this,Xq,4,a)};h.getRemove=function(){return Y(this,Sp,5)};h.setRemove=function(a){return hj(this,Sp,5,a)};h.getIssueComment=function(){return Y(this,cq,6)};h.setIssueComment=function(a){hj(this,cq,6,a)};h.hasIssueComment=function(){return Si(this,cq,6)};h.setSignificanceOverride=function(a){return cn(this,7,a)};var gr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(gr,X);gr.prototype.getQuery=function(){return Fi(this,1)};gr.prototype.setQuery=function(a){return $m(this,1,a)};gr.prototype.clearQuery=function(){ex(this,1)};var gO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(gO,X);gO.prototype.getIssueId=function(){return Hn(this,1)};gO.prototype.getIssueId_asString=function(){return Ln(this,1)};gO.prototype.setIssueId=function(a){return ap(this,1,a)};var x2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(x2a,X);h=x2a.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getComponentId=function(){return Hn(this,2)};h.getComponentId_asString=function(){return Ln(this,2)};h.setComponentId=function(a){return ap(this,2,a)};var e3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(e3a,X);e3a.prototype.getRelation=function(){return Ri(this,1)};e3a.prototype.setRelation=function(a){return cn(this,1,a)};var d3a=function(a,b){return sp(a,2,b)};var yld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(yld,X);h=yld.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getReason=function(){return Ri(this,2)};h.setReason=function(a){return cn(this,2,a)};h.setSignificanceOverride=function(a){return cn(this,3,a)};var U2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(U2a,X);h=U2a.prototype;h.getQuery=function(){return Fi(this,1)};h.setQuery=function(a){return $m(this,1,a)};h.clearQuery=function(){ex(this,1)};h.setOrderBy=function(a){return $m(this,2,a)};h.setPageSize=function(a){return sn(this,3,a)};h.setPageToken=function(a){return $m(this,4,a)};h.setView=function(a){return cn(this,5,a)};h.setIssueDescriptionView=function(a){return cn(this,6,a)};var u2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(u2a,X);h=u2a.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getComponentId=function(){return Hn(this,2)};h.getComponentId_asString=function(){return Ln(this,2)};h.setComponentId=function(a){return ap(this,2,a)};h.setSignificanceOverride=function(a){return cn(this,3,a)};var $q=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z($q,X);$q.prototype.getIssueId=function(){return Hn(this,1)};$q.prototype.getIssueId_asString=function(){return Ln(this,1)};$q.prototype.setIssueId=function(a){return ap(this,1,a)};var hO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(hO,X);hO.prototype.getIssueId=function(){return Hn(this,1)};hO.prototype.getIssueId_asString=function(){return Ln(this,1)};hO.prototype.setIssueId=function(a){return ap(this,1,a)};hO.prototype.setSignificanceOverride=function(a){return cn(this,2,a)};var L2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(L2a,X);h=L2a.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getRetention=function(){return Ri(this,2)};h.setRetention=function(a){return cn(this,2,a)};h.setSignificanceOverride=function(a){return cn(this,3,a)};var zld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,zld.messageId)};Z(zld,X);zld.prototype.getIt=function(){return Y(this,yld,3,fb)};zld.prototype.setIt=function(a){return hj(this,yld,3,a,fb)};zld.messageId="b.DeleteIssueRequest";var $2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z($2a,X);var A2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(A2a,X);h=A2a.prototype;h.getFieldName=function(){return Fi(this,1)};h.setFieldName=function(a){return Gj(this,1,a)};h.getValue=function(){return Fi(this,2)};h.setValue=function(a){return Gj(this,2,a)};h.hasValue=function(){return xm(this,2)};h.getCustomFieldValue=function(){return Y(this,ar,5)};h.setCustomFieldValue=function(a){return hj(this,ar,5,a)};h.clearCustomFieldValue=function(){return ex(this,5)};var Yq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Yq.messageId)};Z(Yq,X);Yq.prototype.getIt=function(){return Y(this,q2a,5,fb)};Yq.prototype.setIt=function(a){return hj(this,q2a,5,a,fb)};Yq.messageId="b.GetRetainedAccessPrincipalsRequest";var dr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,dr.messageId)};Z(dr,X);dr.prototype.getIt=function(){return Y(this,Zp,4,fb)};dr.prototype.setIt=function(a){return hj(this,Zp,4,a,fb)};dr.messageId="b.HotlistIssue";var ir=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ir,X);ir.prototype.getIt=function(){return Y(this,$p,23)};ir.prototype.setIt=function(a){return hj(this,$p,23,a)};var O2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(O2a,X);O2a.prototype.getIt=function(){return Y(this,P2a,6)};O2a.prototype.setIt=function(a){return hj(this,P2a,6,a)};var D2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(D2a,X);D2a.prototype.getIt=function(){return Y(this,o2a,7)};D2a.prototype.setIt=function(a){return hj(this,o2a,7,a)};var er=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(er,X);er.prototype.setTrackerIdsList=function(a){return tc(this,6,a,Fb)};er.prototype.getIt=function(){return Y(this,U2a,7)};er.prototype.setIt=function(a){return hj(this,U2a,7,a)};var X2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(X2a,X);var W2a=function(a,b){return hj(a,er,1,b)},Z2a=function(a,b){ij(a,3,b)},b3a=function(a,b){hj(a,Qq,4,b)},c3a=function(a,b){hj(a,e3a,5,b)};var w2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(w2a,X);w2a.prototype.getIt=function(){return Y(this,x2a,4)};w2a.prototype.setIt=function(a){return hj(this,x2a,4,a)};var fr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,fr.messageId)};Z(fr,X);fr.prototype.getIt=function(){return Y(this,gr,4,fb)};fr.prototype.setIt=function(a){return hj(this,gr,4,a,fb)};fr.messageId="b.ListRecentEventsForIssuesRequest";var Ald=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Ald.messageId)};Z(Ald,X);Ald.prototype.getIt=function(){return Y(this,gO,3,fb)};Ald.prototype.setIt=function(a){return hj(this,gO,3,a,fb)};Ald.messageId="b.MarkAsVulnerabilityRequest";var t2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(t2a,X);t2a.prototype.getIt=function(){return Y(this,u2a,4)};t2a.prototype.setIt=function(a){return hj(this,u2a,4,a)};var iO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,iO.messageId)};Z(iO,X);iO.prototype.getIt=function(){return Y(this,Pp,9,fb)};iO.prototype.setIt=function(a){return hj(this,Pp,9,a,fb)};iO.messageId="b.StatusUpdate";var Zq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Zq.messageId)};Z(Zq,X);Zq.prototype.getIt=function(){return Y(this,$q,3,fb)};Zq.prototype.setIt=function(a){return hj(this,$q,3,a,fb)};Zq.messageId="b.UnCcUserActionRequest";var Bld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Bld.messageId)};Z(Bld,X);Bld.prototype.getIt=function(){return Y(this,hO,2,fb)};Bld.prototype.setIt=function(a){return hj(this,hO,2,a,fb)};Bld.messageId="b.UndeleteIssueRequest";var Cld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Cld.messageId)};Z(Cld,X);Cld.prototype.getIt=function(){return Y(this,ijd,5,fb)};Cld.prototype.setIt=function(a){return hj(this,ijd,5,a,fb)};Cld.messageId="b.UpdateIssueAccessLimitRequest";var F2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(F2a,X);F2a.prototype.setSignificanceOverride=function(a){return Yn(this,4,a)};var M2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(M2a,X);M2a.prototype.getIt=function(){return Y(this,L2a,5)};M2a.prototype.setIt=function(a){return hj(this,L2a,5,a)};var l3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(l3a,X);h=l3a.prototype;h.getIssueIdsList=function(){return kx(this,2,1)};h.getIssueIdsList_asString=function(){return mn(this,2)};h.setIssueIdsList=function(a){return tc(this,2,a,Fb)};h.addIssueIds=function(a){return wc(this,2,Fb,a,void 0,Lb)};h.setIssueIds=function(a){wc(this,2,Fb,void 0,a,Lb,void 0,1)};var Dld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Dld,X);Dld.prototype.setSignificanceOverride=function(a){return Gj(this,3,a)};var J3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(J3a,X);var H3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(H3a,X);var Eld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Eld,X);Eld.prototype.getField=function(){return Fi(this,1)};var G3a=[3,4];var K3a=new RegExp(/^(?:https?:\/\/)?([\w-]+)-review\./.source+/(?:googlesource|git\.corp\.google)\.com/.source+/\/c\/([\w-\/\.]+)\/\+\/(\d{1,20})/.source+/(?:[^\d].*)?$/.source);var R3a=new Set(["blockedById","blockingId","duplicateId","parentIssueIds","childIssueIds"]);var z4a=function(){this.updates=[];this.hasInitialUpdate=!1;this.summary=[]},A4a=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},o4a=function(a,b){a.summary.push.apply(a.summary,n(b))},w4a=function(a){var b=Fld(a,a.updates.flatMap(i4a)),c=Gld(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:to(a.commentTimestamp||((f=a.updates[0])==null?void 0:f.timestamp)),userPerformingAction:pr(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 g;d.commentDeletionStatus=(g=a.comment.entityStatus)==null?void 0:g.status;d.commentEtag=a.comment.etag;d.commentLastModifiedAtDate=a.comment.lastModified?Math.round(to(tn(wn(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},Gld=function(a,b){if(!a.comment)return{preDiffs:b,postDiffs:[]};var c=b.filter(function(d){return d.timestamp<to(a.commentTimestamp)});b=b.filter(function(d){return d.timestamp>=to(a.commentTimestamp)});return{preDiffs:c,postDiffs:b}},Fld=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 t4a=yn(function(a){return a.modifiedDate},zn),y4a=yn(function(a){return a.version},zn);var jO=function(){this.timeout=q(YM)};jO.prototype.adapt=function(a){return new Hld(this.timeout,a)};jO.\u0275fac=function(a){return new (a||jO)};jO.\u0275prov=Cc({token:jO,factory:jO.\u0275fac,providedIn:"root"});var Hld=function(a,b){this.timeout=a;this.bulkGet=b;this.batchedInputs=[[]];this.batchedDeferreds=[[]];this.isBatchScheduled=!1};
Hld.prototype.get=function(a){var b=Io(),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||Ild(this);return b.promise};
var Ild=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 g=0;g<e.batchedDeferred.length;g++)e.batchedDeferred[g].resolve(f[g])}}(b),function(e){return function(f){for(var g=l(e.batchedDeferred),k=g.next();!k.done;k=g.next())k.value.reject(f)}}(b))}a.batchedInputs=[[]];a.batchedDeferreds=[[]];
a.isBatchScheduled=!1})};var sr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,sr.messageId)};Z(sr,X);sr.prototype.getResource=function(){return Fi(this,1,void 0,fb)};sr.prototype.setResource=function(a){return Gj(this,1,a,fb)};sr.prototype.getRelation=function(){return Ri(this,2,void 0,fb)};sr.prototype.setRelation=function(a){return Yn(this,2,a,fb)};sr.messageId="b.ResourceRelation";var Jld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Jld.messageId)};Z(Jld,X);Jld.messageId="b.UserAccessBatchResponse";var kO=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+)$")};kO.prototype.validate=function(a){return this.resourceNamePattern.test(a)};kO.\u0275fac=function(a){return new (a||kO)};kO.\u0275prov=Cc({token:kO,factory:kO.\u0275fac,providedIn:"root"});
var lO=function(){var a=this;this.rawUserAccess=q(Kld);this.resourceNameValidator=q(kO);this.bulkApiAdapter=q(jO);this.accesses={};this.accessGetter=this.bulkApiAdapter.adapt(function(b){return Lld(a,b)})},Lld=function(a,b){return Mld(a,b).then(function(c){return C4a(b,c)})},mO=function(a,b,c){return a.resourceNameValidator.validate(c)?Nld(a,b,c):Promise.reject(Error("fe`"+c))},Old=function(a,b){return a.resourceNameValidator.validate(b)?Promise.all([Nld(a,"admin",b),Nld(a,"writer",b),Nld(a,"appender",
b),Nld(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("fe`"+b))},Mld=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 ee(a.rawUserAccess.executor.get({url:"action/user_access",options:{params:{relations:c.join(","),resourceNames:d.join(",")}},responseConstructor:Jld}).pipe(A(B4a)))},
Nld=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};lO.\u0275fac=function(a){return new (a||lO)};lO.\u0275prov=Cc({token:lO,factory:lO.\u0275fac,providedIn:"root"});var Kld=function(){this.executor=q(RM)};Kld.\u0275fac=function(a){return new (a||Kld)};Kld.\u0275prov=Cc({token:Kld,factory:Kld.\u0275fac,providedIn:"root"});var Pld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Pld,X);h=Pld.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getSummaryType=function(){return Ri(this,2)};h.setSummaryType=function(a){return cn(this,2,a)};var Qld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Qld,X);h=Qld.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getSummaryType=function(){return Ri(this,2)};h.setSummaryType=function(a){return cn(this,2,a)};var nO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(nO,X);nO.prototype.setMaxResults=function(a){return sn(this,1,a)};nO.prototype.setView=function(a){return cn(this,2,a)};nO.prototype.setIssueDescriptionView=function(a){return cn(this,3,a)};var Rld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Rld,X);h=Rld.prototype;h.getIssueIdsList=function(){return kx(this,1,1)};h.getIssueIdsList_asString=function(){return mn(this,1)};h.setIssueIdsList=function(a){return Kr(this,1,a)};h.addIssueIds=function(a){return xx(this,1,a)};h.setIssueIds=function(a){wc(this,1,Fb,void 0,a,Kb,void 0,1)};h.setView=function(a){return cn(this,2,a)};h.setIssueDescriptionView=function(a){return cn(this,3,a)};var Sld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Sld,X);h=Sld.prototype;h.getComponentId=function(){return Hn(this,5)};h.getComponentId_asString=function(){return Ln(this,5)};h.setComponentId=function(a){return ap(this,5,a)};h.getTitle=function(){return Fi(this,6)};h.setTitle=function(a){return $m(this,6,a)};h.getComment=function(){return Fi(this,7)};h.setComment=function(a){return $m(this,7,a)};h.getAttachmentsList=function(){return Wi(this,ep,8,Xi())};
h.setAttachmentsList=function(a){return ij(this,8,a)};h.addAllAttachments=function(a){eq(this,8,ep,a)};h.setSignificanceOverride=function(a){return cn(this,2,a)};h.getTemplateId=function(){return Hn(this,4)};h.setTemplateId=function(a){return ap(this,4,a)};var Tld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Tld,X);h=Tld.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.setView=function(a){return cn(this,2,a)};h.setIssueDescriptionView=function(a){return cn(this,3,a)};var Uld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Uld,X);h=Uld.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.setTargetIdsList=function(a){return Kr(this,2,a)};h.setSignificanceOverride=function(a){return cn(this,3,a)};var Vld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Vld,X);h=Vld.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.setTargetIdsList=function(a){return Kr(this,2,a)};h.setSignificanceOverride=function(a){return cn(this,3,a)};var Wld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Wld,X);h=Wld.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.setTargetId=function(a){return ap(this,2,a)};h.setSignificanceOverride=function(a){return cn(this,3,a)};var Xld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Xld,X);h=Xld.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.setTargetIdsList=function(a){return Kr(this,2,a)};h.setSignificanceOverride=function(a){return cn(this,3,a)};var Yld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Yld,X);h=Yld.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.setTargetIdsList=function(a){return Kr(this,2,a)};h.setSignificanceOverride=function(a){return cn(this,3,a)};var Zld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Zld,X);h=Zld.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.setTargetId=function(a){return ap(this,2,a)};h.setSignificanceOverride=function(a){return cn(this,3,a)};var oO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,oO.messageId)};Z(oO,X);oO.prototype.getIt=function(){return Y(this,Rld,3,fb)};oO.prototype.setIt=function(a){return hj(this,Rld,3,a,fb)};oO.messageId="b.BatchGetIssuesRequest";var $ld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z($ld,X);$ld.prototype.getIssuesList=function(){return Wi(this,$p,1,Xi())};var pO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,pO.messageId)};Z(pO,X);pO.prototype.getIt=function(){return Y(this,$ld,2,fb)};pO.prototype.setIt=function(a){return hj(this,$ld,2,a,fb)};pO.messageId="b.BatchGetIssuesResponse";var o3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(o3a,X);h=o3a.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return En(this,1)};h.setIssueId=function(a){return ao(this,1,a)};h.getMessage=function(){return Fi(this,2)};h.setMessage=function(a){return Gj(this,2,a)};var amd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,amd.messageId)};Z(amd,X);amd.prototype.setErrors=function(a,b){dx(this,2,o3a,a,b,fb)};amd.messageId="b.BulkEditResponse";var bmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,bmd.messageId)};Z(bmd,X);bmd.prototype.getIt=function(){return Y(this,Pld,1,fb)};bmd.prototype.setIt=function(a){return hj(this,Pld,1,a,fb)};bmd.messageId="b.GenerateIssueSummaryRequest";var cmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(cmd,X);h=cmd.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getSummaryType=function(){return Ri(this,2)};h.setSummaryType=function(a){return cn(this,2,a)};h.getModelVersion=function(){return Wm(this,3)};h.setModelVersion=function(a){return sn(this,3,a)};h.getIssueVersion=function(){return Wm(this,7)};
h.setIssueVersion=function(a){return sn(this,7,a)};h.getVersion=function(){return Wm(this,4)};h.setVersion=function(a){return sn(this,4,a)};h.getSummary=function(){return Fi(this,5)};var dmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,dmd.messageId)};Z(dmd,X);dmd.prototype.getIt=function(){return Y(this,cmd,1,fb)};dmd.prototype.setIt=function(a){return hj(this,cmd,1,a,fb)};dmd.messageId="b.GenerateIssueSummaryResponse";var emd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,emd.messageId)};Z(emd,X);emd.prototype.getIt=function(){return Y(this,cmd,4,fb)};emd.prototype.setIt=function(a){return hj(this,cmd,4,a,fb)};emd.messageId="b.GetIssueSummaryResponse";var qO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(qO,X);qO.prototype.getReadersList=function(){return Wi(this,Uo,1,Xi())};qO.prototype.setReadersList=function(a){return ij(this,1,a)};qO.prototype.getAppendersList=function(){return Wi(this,Uo,2,Xi())};qO.prototype.setAppendersList=function(a){return ij(this,2,a)};var fmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,fmd.messageId)};Z(fmd,X);fmd.prototype.getIt=function(){return Y(this,qO,4,fb)};fmd.prototype.setIt=function(a){return hj(this,qO,4,a,fb)};fmd.messageId="b.GetRetainedAccessPrincipalsResponse";var rO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,rO.messageId)};Z(rO,X);rO.prototype.getIssueId=function(){return Hn(this,1,void 0,fb)};rO.prototype.getIssueId_asString=function(){return En(this,1,void 0,fb)};rO.prototype.setIssueId=function(a){return ao(this,1,a,void 0,fb)};rO.messageId="b.IssueCreateResponse";var yr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,yr.messageId)};Z(yr,X);yr.prototype.getIssue=function(){return Y(this,ir,1,fb)};yr.prototype.setIssue=function(a){return hj(this,ir,1,a,fb)};yr.messageId="b.IssueFetchResponse";var gmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(gmd,X);h=gmd.prototype;h.getIssuesList=function(){return Wi(this,$p,1,Xi())};h.getNextPageToken=function(){return Fi(this,2)};h.getTotalSize=function(){return Wm(this,3)};h.getTotalSizeAccurate=function(){return $i(this,4)};h.getMaySkipResults=function(){return $i(this,5)};var sO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,sO.messageId)};Z(sO,X);sO.prototype.getIt=function(){return Y(this,gmd,6,fb)};sO.prototype.setIt=function(a){return hj(this,gmd,6,a,fb)};sO.messageId="b.IssueSearchResponse";var hmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(hmd,X);h=hmd.prototype;h.getIssueId=function(){return Hn(this,10)};h.getIssueId_asString=function(){return Ln(this,10)};h.setIssueId=function(a){return ap(this,10,a)};h.getAuthor=function(){return Y(this,Zm,1)};h.setAuthor=function(a){hj(this,Zm,1,a)};h.hasAuthor=function(){return Si(this,Zm,1)};h.getTimestamp=function(){return Y(this,nj,2)};h.setTimestamp=function(a){return hj(this,nj,2,a)};
h.hasTimestamp=function(){return Si(this,nj,2)};h.getIssueComment=function(){return Y(this,cq,3)};h.setIssueComment=function(a){hj(this,cq,3,a)};h.hasIssueComment=function(){return Si(this,cq,3)};h.getCommentNumber=function(){return Wm(this,4)};h.setCommentNumber=function(a){return sn(this,4,a)};h.getAttachmentsList=function(){return Wi(this,ep,8,Xi())};h.setAttachmentsList=function(a){return ij(this,8,a)};h.addAllAttachments=function(a){eq(this,8,ep,a)};
h.getStatusUpdate=function(){return Y(this,Pp,9)};h.setStatusUpdate=function(a){hj(this,Pp,9,a)};h.hasStatusUpdate=function(){return Si(this,Pp,9)};h.getFieldUpdatesList=function(){return Wi(this,Eld,6,Xi())};h.getVersion=function(){return Wm(this,7)};h.setVersion=function(a){return sn(this,7,a)};var imd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,imd.messageId)};Z(imd,X);imd.messageId="b.ListIssueEventsResponse";var jmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,jmd.messageId)};Z(jmd,X);jmd.prototype.getIt=function(){return Y(this,nO,1,fb)};jmd.prototype.setIt=function(a){return hj(this,nO,1,a,fb)};jmd.messageId="b.ListRecentIssuesRequest";var kmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(kmd,X);kmd.prototype.getIssuesList=function(){return Wi(this,$p,1,Xi())};var lmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,lmd.messageId)};Z(lmd,X);lmd.prototype.getIt=function(){return Y(this,kmd,2,fb)};lmd.prototype.setIt=function(a){return hj(this,kmd,2,a,fb)};lmd.messageId="b.ListRecentIssuesResponse";var J2a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(J2a,X);h=J2a.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return En(this,1)};h.setIssueId=function(a){return ao(this,1,a)};h.getStatus=function(){return Ri(this,2)};h.setStatus=function(a){return Yn(this,2,a)};h.hasStatus=function(){return ym(this,2)};h.getTitle=function(){return Fi(this,3)};h.setTitle=function(a){return Gj(this,3,a)};
h.getVersion=function(){return Wm(this,4)};h.setVersion=function(a){return Wn(this,4,a)};h.getVersionOrUndefined=function(){return lx(this,4)};h.getIsArchived=function(){return $i(this,5)};h.setIsArchived=function(a){return jj(this,5,a)};var mmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,mmd.messageId)};Z(mmd,X);mmd.messageId="b.RelatedIssuesResponse";var tO=function(){this.executor=q(RM);this.userAccess=q(lO);this.activeSession=q(Zu)};h=tO.prototype;
h.createIssue=function(a){var b=this;return le(function(){return mO(b.userAccess,"writer","components/"+a.snapshot.componentId+"/issueDefaults")}).pipe(zf(function(c){if(c){var d=S2a(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:rO}).pipe(A(T2a))}else{c=(new Sld).setComponentId(a.snapshot.componentId).setTitle(a.snapshot.title).setComment(a.snapshot.comment);var f=Dp(a.snapshot.formattingMode);
c=cn(c,9,f).setAttachmentsList((e=(d=a.attachments)==null?void 0:d.map(tYa))!=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:rO}).pipe(A(T2a))}return d}))};
h.createIssueWithWizard=function(a){var b=S2a(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:rO}).pipe(A(T2a))};h.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:yr}).pipe(A(function(e){return hr(e)}))};
h.getIssueBasic=function(a){var b={},c,d=(c=this.activeSession.getTracker())==null?void 0:c.trackerId;d&&(b.currentTrackerId=d);c=(new Tld).setIssueId(a).setView(1).setIssueDescriptionView(1);return this.executor.post({url:"action/issues/"+a+"/getIssue",options:{params:b},body:c,responseConstructor:yr}).pipe(A(function(e){return hr(e)}))};
h.batchGetIssuesFull=function(a){a=(new oO).setIt((new Rld).setIssueIdsList(a.map(gn).filter(ln)).setView(2).setIssueDescriptionView(2));return this.executor.post({url:"action/issues/batch",body:a,responseConstructor:pO}).pipe(A(function(b){return b.getIt().getIssuesList().map(ZZa)}))};h.batchGetIssues=function(a){a=(new oO).setIt((new Rld).setIssueIdsList(a.map(gn).filter(ln)).setView(1).setIssueDescriptionView(1));return this.executor.post({url:"action/issues/batch",body:a,responseConstructor:pO}).pipe(A(function(b){return b.getIt().getIssuesList().map(Wp)}))};
h.updateIssue=function(a,b){b.actions=b.actions.filter(function(c){return c.fieldName!=="componentId"});b=E2a(b);return this.executor.post({url:"action/issues/"+a,body:b,responseConstructor:yr}).pipe(A(function(c){return hr(c)}))};h.moveIssueExternal=function(a,b){b=y2a(b);return this.executor.post({url:"action/issues/"+a+"/external_move",body:b,responseConstructor:yr}).pipe(A(function(c){return hr(c)}))};
h.moveIssue=function(a,b){b=v2a(b);return this.executor.post({url:"action/issues/"+a+"/move",body:b,responseConstructor:yr}).pipe(A(function(c){return hr(c)}))};h.unCcUser=function(a){var b=s2a(a);return this.executor.post({url:"action/issues/"+a+"/unccuser",body:b,responseConstructor:yr}).pipe(A(function(c){return hr(c)}))};
h.updateAccessLimit=function(a,b,c,d){var e=new Cld,f=e.setIt,g=(new ijd).setIssueId(a);b&&(b=SXa(b),g.setIssueAccessLimit(b));c&&g.setAddedCollaboratorsList(c.map(dn));d&&g.setRemovedCollaboratorsList(d.map(dn));c=f.call(e,g);return this.executor.post({url:"action/issues/"+a+"/accessLimit",body:c,responseConstructor:null})};
h.getRetainedAccessPrincipals=function(a,b,c,d){b=r2a(a,b,c,d);return this.executor.post({url:"action/issues/"+a+"/retainedAccessPrincipals",body:b,responseConstructor:fmd}).pipe(A(function(e){e=e.getIt();return{readers:e.getReadersList().map(To),appenders:e.getAppendersList().map(To),writers:Wi(e,Uo,3,Xi()).map(To)}}))};
h.markAsVulnerability=function(a,b){var c=(new gO).setIssueId(Number(a));b&&(b=b.map(dn),ij(c,2,b));c=(new Ald).setIt(c);return this.executor.post({url:"action/issues/"+a+"/markAsVulnerability",body:c,responseConstructor:null})};
h.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 nmd(this,a);throw Error("ge");};h.addBlocking=function(a,b){b=(new Vld).setIssueId(Number(a)).setTargetIdsList(b.map(gn).filter(ln));return this.executor.post({url:"action/issues/"+a+"/add_blocking",body:b,responseConstructor:yr}).pipe(A(function(c){return hr(c)}))};h.removeBlocking=function(a,b){b=(new Yld).setIssueId(Number(a)).setTargetIdsList(b.map(gn).filter(ln));return this.executor.post({url:"action/issues/"+a+"/remove_blocking",body:b,responseConstructor:yr}).pipe(A(function(c){return hr(c)}))};
h.addBlockedBy=function(a,b){b=(new Uld).setIssueId(Number(a)).setTargetIdsList(b.map(gn).filter(ln));return this.executor.post({url:"action/issues/"+a+"/add_blocked_by",body:b,responseConstructor:yr}).pipe(A(function(c){return hr(c)}))};h.removeBlockedBy=function(a,b){b=(new Xld).setIssueId(Number(a)).setTargetIdsList(b.map(gn).filter(ln));return this.executor.post({url:"action/issues/"+a+"/remove_blocked_by",body:b,responseConstructor:yr}).pipe(A(function(c){return hr(c)}))};
h.markAsDuplicate=function(a,b){b=(new Wld).setIssueId(Number(a)).setTargetId(Number(b));return this.executor.post({url:"action/issues/"+a+"/mark_as_duplicate",body:b,responseConstructor:yr}).pipe(A(function(c){return hr(c)}))};var nmd=function(a,b){var c=(new Zld).setIssueId(Number(b));return a.executor.post({url:"action/issues/"+b+"/unmark_as_duplicate",body:c,responseConstructor:yr}).pipe(A(function(d){return hr(d)}))};
tO.prototype.updateIssueHotlists=function(a,b){b=I2a(b);return this.executor.post({url:"action/issues/"+a+"/hotlists",body:b,responseConstructor:yr}).pipe(A(function(c){return hr(c)}))};tO.prototype.updateIssueRetention=function(a,b){b=N2a(b);return this.executor.post({url:"action/issues/"+a+"/update_retention",body:b,responseConstructor:yr}).pipe(A(function(c){return hr(c)}))};
tO.prototype.listIssues=function(a,b){b=b===void 0?{}:b;a=V2a(a,b);return this.executor.post({url:"action/issues/list",body:a,responseConstructor:sO}).pipe(A(w3a))};var omd=function(a,b,c,d){c=c===void 0?{}:c;d=d===void 0?{}:d;b=g3a(b,c,d);return a.executor.post({url:"action/issues/list_with_experiments",body:b,responseConstructor:sO}).pipe(A(w3a))},pmd=function(a,b){var c=new nO;b&&c.setMaxResults(b);b=(new jmd).setIt(c);return a.executor.post({url:"action/issues/recent",body:b,responseConstructor:lmd}).pipe(A(function(d){return d.getIt().getIssuesList().map(function(e){return Wp(e)})}))};
tO.prototype.issueBulkEdit=function(a,b){var c={};b&&(c["G-Recaptcha-Response-Token"]=b);b=new Dld;var d=a.bulkEditOps.map(m3a);ij(b,4,d);a.significanceOverride&&b.setSignificanceOverride(a.significanceOverride);return this.executor.post({url:"action/issues/bulk_edit",body:b,responseConstructor:amd,options:{headers:c}}).pipe(A(p3a))};
tO.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:mmd}).pipe(A(K2a))};
var rmd=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:imd}).pipe(A(function(e){return qmd(e,!1)}))},smd=function(a,b){b=i3a(b);return a.executor.post({url:"action/issues/list/events",body:b,responseConstructor:imd}).pipe(A(function(c){return qmd(c,!0)}))};
tO.prototype.getIssueSummary=function(a,b){b=(new Qld).setIssueId(Number(a)).setSummaryType(nhd[b]);return this.executor.post({url:"action/issues/"+a+"/getSummary",body:b,responseConstructor:emd}).pipe(A(function(c){return y3a(c.getIt())}))};
var tmd=function(a,b){var c=(new Pld).setIssueId(b).setSummaryType(nhd.COMMENTS_LONG);c=(new bmd).setIt(c);return a.executor.post({url:"action/issues/"+b+"/generateSummary",body:c,responseConstructor:dmd}).pipe(A(function(d){return y3a(d.getIt())}))},qmd=function(a,b){a=Wi(a,hmd,2,Xi(),fb).map(F3a);return b?u4a(a):s4a(a)};tO.\u0275fac=function(a){return new (a||tO)};tO.\u0275prov=Cc({token:tO,factory:tO.\u0275fac,providedIn:"root"});var uO=function(){this.observableApi=q(tO)};h=uO.prototype;
h.createIssue=function(a){return ee(this.observableApi.createIssue(a))};h.createIssueWithWizard=function(a){return ee(this.observableApi.createIssueWithWizard(a))};h.getIssueFull=function(a){return ee(this.observableApi.getIssueFull(a))};h.getIssueBasic=function(a){return ee(this.observableApi.getIssueBasic(a))};h.batchGetIssuesFull=function(a){return ee(this.observableApi.batchGetIssuesFull(a))};h.batchGetIssues=function(a){return ee(this.observableApi.batchGetIssues(a))};
h.updateIssue=function(a,b){return ee(this.observableApi.updateIssue(a,b))};h.moveIssueExternal=function(a,b){return ee(this.observableApi.moveIssueExternal(a,b))};h.moveIssue=function(a,b){return ee(this.observableApi.moveIssue(a,b))};h.unCcUser=function(a){return ee(this.observableApi.unCcUser(a))};h.updateAccessLimit=function(a,b,c,d){return ee(this.observableApi.updateAccessLimit(a,b,c,d))};
h.getRetainedAccessPrincipals=function(a,b,c,d){return ee(this.observableApi.getRetainedAccessPrincipals(a,b,c,d))};h.markAsVulnerability=function(a,b){return ee(this.observableApi.markAsVulnerability(a,b))};h.relateIssue=function(a,b){return ee(this.observableApi.relateIssue(a,b))};h.updateIssueHotlists=function(a,b){return ee(this.observableApi.updateIssueHotlists(a,b))};h.updateIssueRetention=function(a,b){return ee(this.observableApi.updateIssueRetention(a,b))};
h.listIssues=function(a,b){b=b===void 0?{}:b;return ee(this.observableApi.listIssues(a,b))};h.issueBulkEdit=function(a,b){return ee(this.observableApi.issueBulkEdit(a,b))};h.getRelatedIssues=function(a){return ee(this.observableApi.getRelatedIssues(a))};uO.\u0275fac=function(a){return new (a||uO)};uO.\u0275prov=Cc({token:uO,factory:uO.\u0275fac,providedIn:"root"});var umd={ACTIVE:0,DISMISSED:1,SNOOZED:2,0:"ACTIVE",1:"DISMISSED",2:"SNOOZED"};var vO=function(){dN.call(this);this.observableIssueResources=q(tO);this.recordType="eventsForIssue";this.idForRecord=function(a){return a.id}};Z(vO,dN);vO.prototype.isEqual=function(a,b){return(a==null?void 0:a.id)!==(b==null?void 0:b.id)?!1:qWa(a==null?void 0:a.events,b==null?void 0:b.events)};vO.prototype.copy=function(a){return a&&Hm(a)};vO.prototype.fetchOne=function(a){return rmd(this.observableIssueResources,a).pipe(A(function(b){return{id:a,events:b}}))};
vO.prototype.fetchSet=function(a){var b=this;return he(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(ln)}))};vO.\u0275fac=function(a){return new (a||vO)};vO.\u0275prov=Cc({token:vO,factory:vO.\u0275fac,providedIn:"root"});var vmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(vmd,X);h=vmd.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getCommentNumbers=function(){return nx(this,2)};h.setView=function(a){return cn(this,3,a)};var wmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,wmd.messageId)};Z(wmd,X);wmd.prototype.getIt=function(){return Y(this,vmd,4,fb)};wmd.prototype.setIt=function(a){return hj(this,vmd,4,a,fb)};wmd.messageId="b.BatchGetIssueCommentsRequest";var xmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(xmd,X);xmd.prototype.getIssueCommentsList=function(){return Wi(this,cq,1,Xi())};var ymd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,ymd.messageId)};Z(ymd,X);ymd.prototype.getIt=function(){return Y(this,xmd,2,fb)};ymd.prototype.setIt=function(a){return hj(this,xmd,2,a,fb)};ymd.messageId="b.BatchGetIssueCommentsResponse";var wO=function(){this.jspbExecutor=q(RM);this.activeSession=q(Zu)};wO.prototype.batchGet=function(a,b){var c=new wmd,d=c.setIt;a=(new vmd).setIssueId(Number(a));b=tc(a,2,b,Bb);c=d.call(c,b.setView(2));var e;(d=(e=this.activeSession.getTracker())==null?void 0:e.trackerId)&&ao(c,3,d,void 0,fb);return this.jspbExecutor.post({url:"action/comments/batch",responseConstructor:ymd,body:c}).pipe(A(q3a))};wO.\u0275fac=function(a){return new (a||wO)};wO.\u0275prov=Cc({token:wO,factory:wO.\u0275fac,providedIn:"root"});var xO=function(){dN.call(this);var a=this;this.issueCommentsBatchApi=q(wO);this.batchApiAdapter=q(vN);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)}})};Z(xO,dN);
xO.prototype.fetchSet=function(a){var b=this,c=a[0].split("-")[0];return he(a.map(function(d){return b.get(d)})).pipe(A(function(d){var e=[];d=l(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value){var g=void 0,k={issueId:c,commentId:(g=f.commentNumber)!=null?g:0};e.push({id:k,formattedComment:f})}return e}))};
xO.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(A(function(f){var g=b,k=new Map;f=l(f);for(var m=f.next();!m.done;m=f.next()){m=m.value;var r=void 0,w=Number(g)+"-"+((r=m.commentNumber)!=null?r:0);k.set(w,m)}return k}))};xO.prototype.splitBatch=function(a,b){return b.get(a)};
xO.\u0275fac=function(a){return new (a||xO)};xO.\u0275prov=Cc({token:xO,factory:xO.\u0275fac,providedIn:"root"});var yO=function(){dN.call(this);this.accessPolicyApi=q(sN);this.recordType="hotlistAccessPolicy";this.isEqual=Gm;this.idForRecord=function(a){return a.id}};Z(yO,dN);yO.prototype.fetchOne=function(a){return this.accessPolicyApi.get("HOTLIST",a).pipe(A(function(b){return Object.assign({},{id:a},b)}))};yO.prototype.doSave=function(a){var b=a.id;return this.accessPolicyApi.update("HOTLIST",b,a).pipe(A(function(c){return Object.assign({},{id:b},c)}))};yO.\u0275fac=function(a){return new (a||yO)};
yO.\u0275prov=Cc({token:yO,factory:yO.\u0275fac,providedIn:"root"});var zO=function(){dN.call(this);this.api=q(iN);this.recordType="IssueEnrichmentsForIssue";this.idForRecord=function(a){return a.issueId};this.isEqual=Gm};Z(zO,dN);zO.prototype.fetchOne=function(a){return pkd(this.api,a).pipe(A(function(b){return{issueId:a,enrichments:b}}))};zO.\u0275fac=function(a){return new (a||zO)};zO.\u0275prov=Cc({token:zO,factory:zO.\u0275fac,providedIn:"root"});var zmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(zmd,X);h=zmd.prototype;h.getIssueIdsList=function(){return kx(this,1,1)};h.getIssueIdsList_asString=function(){return mn(this,1)};h.setIssueIdsList=function(a){return Kr(this,1,a)};h.addIssueIds=function(a){return xx(this,1,a)};h.setIssueIds=function(a){wc(this,1,Fb,void 0,a,Kb,void 0,1)};var Amd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Amd,X);h=Amd.prototype;h.getIssueIdsList=function(){return kx(this,1,1)};h.getIssueIdsList_asString=function(){return mn(this,1)};h.setIssueIdsList=function(a){return Kr(this,1,a)};h.addIssueIds=function(a){return xx(this,1,a)};h.setIssueIds=function(a){wc(this,1,Fb,void 0,a,Kb,void 0,1)};var Bmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Bmd,X);Bmd.prototype.setExperiments=function(a){return dx(this,1,Qq,a)};var Cmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Cmd.messageId)};Z(Cmd,X);Cmd.prototype.getIt=function(){return Y(this,Bmd,1,fb)};Cmd.prototype.setIt=function(a){return hj(this,Bmd,1,a,fb)};Cmd.messageId="b.BatchGetIssueExperimentsResponse";var Dmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Dmd,X);h=Dmd.prototype;h.getComponentId=function(){return Hn(this,1)};h.getComponentId_asString=function(){return Ln(this,1)};h.setComponentId=function(a){return ap(this,1,a)};h.getType=function(){return Ri(this,2)};h.setType=function(a){return cn(this,2,a)};h.getPriority=function(){return Ri(this,3)};h.setPriority=function(a){return cn(this,3,a)};h.getSeverity=function(){return Ri(this,4)};
h.setSeverity=function(a){return cn(this,4,a)};h.getStatus=function(){return Ri(this,5)};h.setStatus=function(a){return cn(this,5,a)};h.getReporter=function(){return Y(this,Zm,6)};h.setReporter=function(a){hj(this,Zm,6,a)};h.getAssignee=function(){return Y(this,Zm,7)};h.setAssignee=function(a){return hj(this,Zm,7,a)};h.clearAssignee=function(){return ex(this,7)};h.getVerifier=function(){return Y(this,Zm,8)};h.setVerifier=function(a){hj(this,Zm,8,a)};h.clearVerifier=function(){return ex(this,8)};
h.getCcsList=function(){return Wi(this,Zm,9,Xi())};h.setCcsList=function(a){ij(this,9,a)};h.addAllCcs=function(a){eq(this,9,Zm,a)};h.setCcs=function(a,b){return dx(this,9,Zm,a,b)};h.getCollaboratorsList=function(){return Wi(this,Zm,23,Xi())};h.setCollaboratorsList=function(a){ij(this,23,a)};h.addAllCollaborators=function(a){eq(this,23,Zm,a)};h.setCollaborators=function(a,b){return dx(this,23,Zm,a,b)};h.getStaffing=function(){return Y(this,Np,27)};h.setStaffing=function(a){hj(this,Np,27,a)};
h.getHotlistIdsList_asLegacyNumberOrString=function(a){return c7a(this,10,Xi(a))};h.getHotlistIdsList_asString=function(){return mn(this,10)};h.setHotlistIdsList=function(a){return Kr(this,10,a)};h.addHotlistIds=function(a,b){return xx(this,10,a,b)};h.addAllHotlistIds=function(a){yx(this,10,a)};h.removeHotlistIds=function(a){return iCc(this,10,a)};h.getBlockedByIssueIdsList=function(){return kx(this,11,1)};h.getBlockedByIssueIdsList_asString=function(){return mn(this,11)};
h.setBlockedByIssueIdsList=function(a){Kr(this,11,a)};h.addAllBlockedByIssueIds=function(a){yx(this,11,a)};h.getBlockingIssueIdsList=function(){return kx(this,12,1)};h.getBlockingIssueIdsList_asString=function(){return mn(this,12)};h.setBlockingIssueIdsList=function(a){Kr(this,12,a)};h.addAllBlockingIssueIds=function(a){yx(this,12,a)};h.getCanonicalIssueId_asString=function(){return Ln(this,13)};h.setCanonicalIssueId=function(a){ap(this,13,a)};
h.getDuplicateIssueIdsList_asString=function(){return mn(this,14)};h.setDuplicateIssueIdsList=function(a){Kr(this,14,a)};h.getInProd=function(){return $i(this,15)};h.setInProd=function(a){sp(this,15,a)};h.getSloSnoozeUntil=function(){return Y(this,nj,16)};h.setSloSnoozeUntil=function(a){hj(this,nj,16,a)};h.getSloEndTime=function(){return Y(this,nj,25)};h.setSloEndTime=function(a){hj(this,nj,25,a)};h.hasSloEndTime=function(){return Si(this,nj,25)};h.getRetention=function(){return Ri(this,17)};
h.setRetention=function(a){return cn(this,17,a)};h.getEntityStatus=function(){return Y(this,bp,18)};h.setEntityStatus=function(a){return hj(this,bp,18,a)};h.getIsArchived=function(){return $i(this,19)};h.setIsArchived=function(a){return sp(this,19,a)};h.getEffort=function(){return Y(this,Tp,24)};h.setEffort=function(a){hj(this,Tp,24,a)};h.hasEffort=function(){return Si(this,Tp,24)};h.getAccessLimit=function(){return Y(this,Xo,26)};h.setAccessLimit=function(a){return hj(this,Xo,26,a)};var Emd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Emd,X);h=Emd.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getIssueState=function(){return Y(this,Dmd,2)};h.setIssueState=function(a){return hj(this,Dmd,2,a)};h.getVersion=function(){return Wm(this,3)};h.setVersion=function(a){return sn(this,3,a)};h.getEtag=function(){return lo(this,16)};
h.setEtag=function(a){return fp(this,16,a)};h.getCreatedTime=function(){return Y(this,nj,4)};h.setCreatedTime=function(a){return hj(this,nj,4,a)};h.getModifiedTime=function(){return Y(this,nj,5)};h.setModifiedTime=function(a){return hj(this,nj,5,a)};h.getMajorModifiedTime=function(){return Y(this,nj,14)};h.setMajorModifiedTime=function(a){return hj(this,nj,14,a)};h.getResolvedTime=function(){return Y(this,nj,6)};h.setResolvedTime=function(a){return hj(this,nj,6,a)};
h.getVerifiedTime=function(){return Y(this,nj,7)};h.setVerifiedTime=function(a){return hj(this,nj,7,a)};h.getSloId_asLegacyNumberOrString=function(){return Vp(this,9)};h.getSloId_asString=function(){return Ln(this,9)};h.setSloId=function(a){return ap(this,9,a)};h.getSloStatus=function(){return Y(this,br,10)};h.setSloStatus=function(a){hj(this,br,10,a)};h.getTeamId=function(){return Hn(this,13)};h.getTeamId_asLegacyNumberOrString=function(){return Vp(this,13)};
h.getTeamId_asString=function(){return Ln(this,13)};h.setTeamId=function(a){return ap(this,13,a)};h.getRetentionState=function(){return Y(this,cp,11)};h.setRetentionState=function(a){hj(this,cp,11,a)};h.getAccessLimit=function(){return Y(this,Yo,12)};h.setAccessLimit=function(a){return hj(this,Yo,12,a)};h.getParentIssueIdsList_asString=function(){return mn(this,17)};h.setParentIssueIdsList=function(a){return Kr(this,17,a)};h.getAncestorsMap=function(){return sc(this,19,cr,Pb)};
h.getChildIssueCount=function(){return Wm(this,20)};h.setChildIssueCount=function(a){return sn(this,20,a)};h.getDescendantIssueCount=function(){return Wm(this,21)};h.setDescendantIssueCount=function(a){return sn(this,21,a)};h.getOpenDescendantIssueCount=function(){return Wm(this,22)};h.setOpenDescendantIssueCount=function(a){return sn(this,22,a)};h.getIsArchived=function(){return $i(this,18)};h.setIsArchived=function(a){return sp(this,18,a)};var Fmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Fmd.messageId)};Z(Fmd,X);Fmd.prototype.getIt=function(){return Y(this,Emd,14,fb)};Fmd.prototype.setIt=function(a){return hj(this,Emd,14,a,fb)};Fmd.messageId="b.IssueMetadata";var Gmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Gmd,X);Gmd.prototype.getIt=function(){return Y(this,Amd,4)};Gmd.prototype.setIt=function(a){return hj(this,Amd,4,a)};var Hmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Hmd,X);var Imd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Imd.messageId)};Z(Imd,X);Imd.prototype.getIt=function(){return Y(this,Hmd,2,fb)};Imd.prototype.setIt=function(a){return hj(this,Hmd,2,a,fb)};Imd.messageId="b.UpdateIssueReadTimestampResponse";var AO=function(){this.executor=q(SM)};AO.prototype.delete=function(a,b){b=(new zld).setIt((new yld).setIssueId(Number(a)).setReason(vhd[hYa(b)]));return this.executor.post({url:"action/issues/"+a+"/delete",body:b,responseConstructor:null})};AO.prototype.undelete=function(a){var b=(new Bld).setIt((new hO).setIssueId(Number(a)));return this.executor.post({url:"action/issues/"+a+"/undelete",body:b,responseConstructor:null})};
AO.prototype.getMetadata=function(a){return this.executor.get({url:"action/issues/"+a+"/metadata",responseConstructor:Fmd}).then(s3a)};AO.prototype.markRead=function(a,b,c){b=b===void 0?!0:b;c=c===void 0?"USER_ACTIVITY_TYPE_UNDEFINED":c;var d=new Gmd,e=d.setIt;a=(new Amd).setIssueIdsList(a.map(Number));b=sp(a,2,b);c=cn(b,3,Rhd[c]);d=e.call(d,c);return this.executor.post({url:"action/issues/read_timestamp",body:d,responseConstructor:Imd}).then(r3a)};
var Jmd=function(a,b){return a.executor.get({url:"action/issues/"+b+"/experiments",responseConstructor:Qq}).then(P1a).then(function(c){return Object.assign({},c,{id:b})})},Kmd=function(a,b){var c=(new zmd).setIssueIdsList(b.map(Number));return a.executor.post({url:"action/issues/batch_experiments",body:c,responseConstructor:Cmd}).then(function(d){d=d.getIt();return Wi(d,Qq,1,Xi()).map(P1a)}).then(function(d){var e=wo(d,function(f){return f.id});return b.map(function(f){var g;return(g=e.get(f))!=null?
g:tr(f)})})},Lmd=function(a,b){return a.executor.post({url:"action/issues/"+b.id+"/experiments",body:S1a(b),responseConstructor:Qq}).then(P1a)};AO.\u0275fac=function(a){return new (a||AO)};AO.\u0275prov=Cc({token:AO,factory:AO.\u0275fac,providedIn:"root"});var CO=function(){dN.call(this,{freshUntil:6E4});this.activeSession=q(Zu);this.batchApiAdapter=q(vN);this.batchApiConfig=q(BO);this.issueService=q(AO);this.recordType="issue-experimental-fields";this.idForRecord=function(a){return a.id};this.isEqual=Gm;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.batchApiConfig);this.isEnabled=this.activeSession.isInternalSession()};Z(CO,dN);
CO.prototype.fetchOne=function(a){var b=this;return this.isEnabled?le(function(){return b.batchAdaptedGet(a)}).pipe(hf(function(){return be(void 0)})):be(void 0)};CO.prototype.fetchSet=function(a){var b=this;return he(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(ln)}))};CO.prototype.copy=function(a){return a&&Hm(a)};
CO.prototype.updateOrInsert=function(a,b){var c=this,d,e,f,g;return y(function(k){if(k.nextAddress==1){if(!c.isEnabled)return k.return(tr(a));c.manualUpdate(a,function(m){b(m!=null?m:tr(a))});return z(k,ee(c.batchAdaptedGet(a)),2)}if(k.nextAddress!=3)return d=k.yieldResult,f=(e=c.copy(d))!=null?e:tr(a),b(f),z(k,Lmd(c.issueService,f),3);g=k.yieldResult;c.announce(g);return k.return(g)})};CO.\u0275fac=function(a){return new (a||CO)};CO.\u0275prov=Cc({token:CO,factory:CO.\u0275fac,providedIn:"root"});
var BO=function(){this.issueService=q(AO);this.maxBatchSize=100;this.bufferTimeMs=0};BO.prototype.call=function(a){var b=this;return le(function(){return Kmd(b.issueService,[].concat(n(a)))}).pipe(A(function(c){return wo(c,function(d){return d.id})}))};BO.prototype.split=function(a,b){var c;return(c=b.get(a))!=null?c:tr(a)};BO.\u0275fac=function(a){return new (a||BO)};BO.\u0275prov=Cc({token:BO,factory:BO.\u0275fac,providedIn:"root"});var DO=function(){this.refreshRequest=new rf};DO.prototype.getObservable=function(){return this.refreshRequest};var Mmd=function(a,b){return EO(a,function(){return b})},EO=function(a,b){return a.getObservable().pipe(yf(void 0)).pipe(zf(function(){return b()}))};DO.\u0275fac=function(a){return new (a||DO)};DO.\u0275prov=Cc({token:DO,factory:DO.\u0275fac,providedIn:"root"});var GO=function(){dN.call(this);var a=this;this.batchApiAdapter=q(vN);this.refreshMonitor=q(DO);this.issueBatchConfig=q(FO);this.issueApi=q(tO);this.issueExperimentalFieldsFridge=q(CO);this.recordType="issue-basic";this.idForRecord=function(b){return String(b.issueId)};this.isEqual=Gm;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.issueBatchConfig);this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Z(GO,dN);h=GO.prototype;h.fetchOne=function(a){return this.batchAdaptedGet(a)};
h.fetchSet=function(a){var b=this;return he(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(ln)}))};
h.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 pmd(this.issueApi,d).pipe(A(function(e){return{results:e}}),hf(function(e){on("issueFullFridge -> listRecentIssues() API error",e);return be({results:[]})}));if(b==="byExperimentalPhase"&&c)return c=l(c.split("____b-internal____")),b=c.next().value,c=c.next().value,d=tr("0"),d.triage.phase=c,omd(this.issueApi,b,a,{queryType:"QUERY_TRIAGE_PHASE",experimentalFields:d,concatenator:{relation:"AND"}}).pipe(A(function(e){return{results:e.issues,
totalSize:e.numTotalResults}}));if(c)return this.issueApi.listIssues(c,a).pipe(A(function(e){return{results:e.issues,totalSize:e.numTotalResults}}));throw Error("he");};h.copy=function(a){return a&&Hm(a)};h.watch=function(a,b){return he([dN.prototype.watch.call(this,a,b),this.issueExperimentalFieldsFridge.watch(a)]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return N4a([c],[d])[0]}))};
h.watchSet=function(a,b){return he([dN.prototype.watchSet.call(this,a,b),this.issueExperimentalFieldsFridge.watchSet(a)]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return N4a(c,d)}))};h.watchMany=function(a,b){var c=this;return dN.prototype.watchMany.call(this,a,b).pipe(zf(function(d){return c.issueExperimentalFieldsFridge.watchSet(d.results.map(c.idForRecord)).pipe(A(function(e){return N4a(d.results,e)}),A(function(e){return Object.assign({},d,{results:e})}))}))};
h.peek=function(a){var b=dN.prototype.peek.call(this,a);a=this.issueExperimentalFieldsFridge.peek(a);return N4a([b],[a])[0]};h.poke=function(a,b){var c=this,d,e,f,g,k,m;return y(function(r){if(r.nextAddress==1)return d=l,z(r,Promise.all([dN.prototype.poke.call(c,a,b),c.issueExperimentalFieldsFridge.poke(a,b)]),2);e=d(r.yieldResult);f=e.next().value;g=e.next().value;k=f;m=g;return r.return(N4a([k],[m])[0])})};GO.\u0275fac=function(a){return new (a||GO)};
GO.\u0275prov=Cc({token:GO,factory:GO.\u0275fac,providedIn:"root"});var FO=function(){this.issueApi=q(tO);this.maxBatchSize=100;this.bufferTimeMs=0};FO.prototype.call=function(a){var b=this;if(a.size===1){var c=[].concat(n(a))[0];return this.issueApi.getIssueBasic(c).pipe(A(function(d){return new Map([[c,d]])}))}return le(function(){return b.issueApi.batchGetIssues([].concat(n(a)))}).pipe(A(function(d){return wo(d,function(e){return e.issueId})}))};FO.prototype.split=function(a,b){return b.get(a)};
FO.\u0275fac=function(a){return new (a||FO)};FO.\u0275prov=Cc({token:FO,factory:FO.\u0275fac,providedIn:"root"});var O4a=window,f5a=function(){return{count:0,duration:0,transferSize:0,cacheHits:0,cacheHitRate:0}},Nmd=function(a){if(P4a())try{window.performance.mark(a)}catch(b){console.warn("route_performance",b)}};var h5a=Ko("debug-logging")(),Z4a=window,Omd,e5a=!1,g5a={};var k5a=Zid("last-visit"),l5a=Zid("last-visit-count"),n5a=$id("last-visit"),m5a=$id("last-visit-count");Date.now==null&&(Date.now=function(){return(new Date).getTime()});var Pmd=function(){this.activeSession=q(Zu);this.transport=(new EE(2523,this.activeSession.getSessionIdentifier())).build()};Pmd.\u0275fac=function(a){return new (a||Pmd)};Pmd.\u0275prov=Cc({token:Pmd,factory:Pmd.\u0275fac,providedIn:"root"});var Qmd=function(){var a=new EE(852,"0");a.setComponentId("");a.useSendBeaconForFinalFlush();a.useGetRequestForFinalFlush();a.sendBeaconApiEnabled=!0;a=new zcd(852,void 0,void 0,void 0,void 0,a.build());a=this.service=new Gcd(a);a.flushInterval=3E3;a.flushTimer.setInterval(3E3)};Qmd.\u0275fac=function(a){return new (a||Qmd)};Qmd.\u0275prov=Cc({token:Qmd,factory:Qmd.\u0275fac,providedIn:"root"});var Rmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Rmd,X);var Smd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Smd,X);var Tmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Tmd,X);h=Tmd.prototype;h.setUserAction=function(a){return Yn(this,1,a)};h.getIssueId=function(){return Hn(this,3)};h.getIssueId_asString=function(){return Ln(this,3)};h.setIssueId=function(a){return Nn(this,3,a)};h.getEnvironmentType=function(){return Fi(this,4)};h.setEnvironmentType=function(a){return Gj(this,4,a)};h.getFrontendAccessMode=function(){return Fi(this,5)};
h.setFrontendAccessMode=function(a){return Gj(this,5,a)};var Umd=Ko("debug-logging")(),HO=function(){this.activeSession=q(Zu);this.streamz=q(Qmd);this.clearcutTransport=q(Pmd);this.pageLoadTime=new pgd(this.streamz.service);this.userLatency=new rgd(this.streamz.service);this.userActionCounter=new qgd(this.streamz.service);this.frontendAccessMode=this.activeSession.getFrontendAccessMode();this.environmentType=this.activeSession.getEnvironmentType()};
HO.prototype.timePageLoad=function(a,b){this.pageLoadTime.record(a,b,this.frontendAccessMode,this.environmentType);Umd&&console.log("Clearcut stub",{action:b,duration:a})};var IO=function(a,b,c){a.userLatency.record(b,c,a.frontendAccessMode,a.environmentType);Umd&&console.log("Clearcut stub",{action:c,duration:b})},Vmd=function(a,b){a.userActionCounter.increment(b,a.frontendAccessMode,a.environmentType);Umd&&console.log("Clearcut stub",{action:b})};HO.\u0275fac=function(a){return new (a||HO)};
HO.\u0275prov=Cc({token:HO,factory:HO.\u0275fac,providedIn:"root"});var Wmd=No("journey-log"),Xmd=Mo("journey-log"),Ymd=[{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"}],Zmd={startEvents:["ilp-search"],successEvents:["edit","ixn","comment"],abortEvents:["ilp-filter",
"idle"],successMarker:"SUCCESS-search",count:["nav"]},$md=function(){this.clearcut=q(HO)},and=function(a,b){var c=c===void 0?Date.now():c;var d,e=(d=Xmd())!=null?d:[];e.push([b,c]);e.length>100&&(e=e.slice(-100));Wmd(e);if(Zmd.successEvents.includes(b)){b=e;c=Zmd.abortEvents;d=Zmd.successEvents;e=Zmd.startEvents;for(var f=Zmd.successMarker,g,k=b.length-1;k>=0;k--){var m=l(b[k]),r=m.next().value;m=m.next().value;if(c.includes(r))break;if(f===r)break;if(d.includes(r)){if(g&&w)break;var w=m}else w&&
e.includes(r)&&(g=m)}w=g&&w?[g,w]:void 0;w&&(w=l(w),g=w.next().value,w=w.next().value-g,IO(a.clearcut,w,p5a("journey","global-search-text")),ur("journey","global-search-text","duration",w),and(a,Zmd.successMarker))}};$md.\u0275fac=function(a){return new (a||$md)};$md.\u0275prov=Cc({token:$md,factory:$md.\u0275fac,providedIn:"root"});var bnd=function(){var a=this;this.clearcut=q(HO);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)))}},cnd=function(a){P4a()&&(a.observer!=null&&a.observer.disconnect(),a.observer=new O4a.PerformanceObserver(a.onMeasurement),a.observer.observe({entryTypes:["measure"]}))};
bnd.\u0275fac=function(a){return new (a||bnd)};bnd.\u0275prov=Cc({token:bnd,factory:bnd.\u0275fac,providedIn:"root"});var q5a={},dnd={logInfo:function(){console.log(s5a());console.log("\nDuplicate Requests:");console.table(r5a())},getCounts:function(){return q5a},getDupes:r5a,getAggregates:s5a};var end={attributes:!1,childList:!0,subtree:!0},JO=function(){var a=this;this.ngZone=q(Tg);this.router=q(CF);this.activatedRoute=q(Wj);this.dom$=new rf;this.cdr$=this.ngZone.onStable;this.xhr$=new rf;this.render$=se(this.dom$,this.cdr$);this.renderSettled$=this.render$.pipe(kf(200));this.navigatedTo$=this.router.events.pipe(te(u5a),A(function(){return t5a(a.activatedRoute.snapshot)}));this.navigatedTo$.pipe(zf(function(b){return a.renderSettled$.pipe(mf(1),A(function(){return b}))}),wf(1));this.domObserver=
new MutationObserver(function(){return void a.dom$.next()})},fnd=function(a){a.domObserver.disconnect();a.domObserver.observe(document.body,end)};JO.prototype.intercept=function(a,b){var c=a.method+" "+a.urlWithParams;q5a[c]=~~q5a[c]+1;this.xhr$.next(c);return b.handle(a)};JO.\u0275fac=function(a){return new (a||JO)};JO.\u0275prov=Cc({token:JO,factory:JO.\u0275fac,providedIn:"root"});var gnd={provide:zFc,useExisting:JO,multi:!0};var KO=function(){ui.apply(this,arguments)};Z(KO,ui);KO.create=ui.create;KO.prototype.emit=function(a){ui.prototype.emit.call(this,a)};var LO=function(){this.destroyed$=new vf(1);this.subscriptions=new Od};LO.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.subscriptions.unsubscribe()};LO.\u0275fac=function(a){return new (a||LO)};LO.\u0275dir=af({type:LO});var MO=function(){this.cdr=q(Yx);this.zone=q(Tg);this.destroyed=!1};MO.prototype.ngOnDestroy=function(){this.destroyed=!0};MO.prototype.detectChanges=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.detectChanges()})};MO.prototype.markForCheck=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.markForCheck()})};MO.\u0275fac=function(a){return new (a||MO)};MO.\u0275prov=Cc({token:MO,factory:MO.\u0275fac});var NO=function(){LO.apply(this,arguments);var a=this;this.ngZone=q(Tg);this.activeSubject$=new Xj(!1);this.active$=this.activeSubject$.pipe(of(),Af(this.destroyed$),w5a(this.ngZone));this.onUserEvent=xMc(function(){a.activeSubject$.next(!0);hnd(a)},200);this.onVisibilityChange=function(){document.visibilityState==="hidden"?(a.activeSubject$.next(!1),clearTimeout(a.activeTimeoutId)):(a.activeSubject$.next(!0),hnd(a))}};Z(NO,LO);NO.\u0275dir=LO.\u0275dir;
NO.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)};
NO.prototype.ngOnDestroy=function(){LO.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 hnd=function(a){clearTimeout(a.activeTimeoutId);a.activeTimeoutId=setTimeout(function(){a.activeSubject$.next(!1)},1E4)};NO.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(NO)))(b||NO)}}();NO.\u0275prov=Cc({token:NO,factory:NO.\u0275fac,providedIn:"root"});var ind=[ck,ek,dk],OO=function(){LO.call(this);var a=this;this.router=q(CF);this.routeChangeStart=new rf;this.routeChangeSuccess=new rf;this.locationChangeStart=new rf;this.locationChangeSuccess=new rf;this.routeUpdate=new rf;this.viewContentLoaded=new rf;this.navigationEnd$=this.router.events.pipe(te(u5a));this.navigationOver$=this.router.events.pipe(te(function(c){return ind.some(function(d){return c instanceof d})}));jnd(this,eza).subscribe(function(c){a.routeChangeStart.next({params:Object.assign({},
c.snapshot.queryParams,c.snapshot.params)})});var b=jnd(this,fUc);se(this.navigationOver$.pipe(lf(Ox)),this.routeChangeStart.pipe(lf(b))).pipe(zf(Qd),te(function(c){return c.snapshot.routeConfig.isRootRoute}),A(function(c){return{params:Object.assign({},c.snapshot.queryParams,c.snapshot.params)}}),Af(this.destroyed$)).subscribe(function(c){a.routeChangeSuccess.next(c)});jnd(this,xr).pipe(A(function(c){return c.url}),of()).subscribe(function(){a.locationChangeStart.next()});jnd(this,ck).pipe(A(function(c){return c.url}),
of()).subscribe(function(){a.locationChangeSuccess.next()});b=q(Wj).queryParams.pipe(Df(jnd(this,YTc)));se(this.routeChangeStart.pipe(lf(Ox)),this.navigationOver$.pipe(lf(b))).pipe(zf(Qd),Af(this.destroyed$)).subscribe(function(c){c=l(c);c.next();c=c.next().value;a.routeUpdate.next({params:c.state.root.params})});jnd(this,ck).subscribe(function(){a.viewContentLoaded.next()})};Z(OO,LO);OO.\u0275dir=LO.\u0275dir;
var jnd=function(a,b){return a.router.events.pipe(te(function(c){return c instanceof b}),A(function(c){return c}),Af(a.destroyed$))};OO.\u0275fac=function(a){return new (a||OO)};OO.\u0275prov=Cc({token:OO,factory:OO.\u0275fac,providedIn:"root"});var knd=Ko("onedev-darkmode"),PO=function(){var a=q(OO),b=q(Zu),c=q(Wj);LO.call(this);var d=this;this.journeyTracker=q($md);this.preapply=function(){return function(k){return function(m,r){d.trackEvent("editIssue",k,m,r)}}};o5a();i5a(b.getUserTypeLabel());b=b.getUserPreferences();vr("dimension7",knd()?"dark":"default");var e;vr("dimension3",(e=b.themePreferences)==null?void 0:e.density);e=b.showFullHistory?"fh":"comments";var f;if((f=b.commentFilterPreferences)==null?0:f.commentFilter){var g;e=(g=
b.commentFilterPreferences)==null?void 0:g.commentFilter}vr("dimension2",e);vr("dimension5",b.showRecentEventsFirst?"newestFirst":"oldestFirst");this.subscriptions.add(a.viewContentLoaded.pipe(yf(void 0)).subscribe(function(){var k=t5a(c.snapshot);j5a("page_location",k);b5a("page_view",{page_path:k})}))};Z(PO,LO);PO.\u0275dir=LO.\u0275dir;
PO.prototype.trackEvent=function(a,b,c,d){ur(a,b,c,typeof d==="boolean"?d?1:0:d);d=this.journeyTracker;a=p5a(a,b,c);b=l(Ymd);for(c=b.next();!c.done;c=b.next()){c=c.value;var e=c.outputEvent;if(a.match(c.matcher)){and(d,e);break}}};var lnd=function(a,b,c){b5a("timing",Object.assign({},{timing_category:"userAction",timing_var:a,timing_value:b},c!==void 0?{timing_label:c}:{}))},mnd=function(a,b){a.trackEvent("editIssue","updateStatus",b)};PO.\u0275fac=function(a){return new (a||PO)};
PO.\u0275prov=Cc({token:PO,factory:PO.\u0275fac,providedIn:"root"});var y5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(y5a,X);var nnd=!1;var RO=function(){dN.call(this);var a=this;this.batchApiAdapter=q(vN);this.issueApi=q(tO);this.userResources=q(SN);this.refreshMonitor=q(DO);this.issueService=q(AO);this.activeSession=q(Zu);this.hotlistFridge=q(UN);this.analytics=q(PO);this.issueExperimentalFieldsFridge=q(CO);this.issueFullBatchConfig=q(QO);this.issueFridge=q(GO);this.recordType="issue-full";this.idForRecord=function(c){return String(c.issueId)};this.isEqual=Gm;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.issueFullBatchConfig);
if(nnd)var b=void 0;else nnd=!0,b=A5a();b&&this.announce(b);this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Z(RO,dN);h=RO.prototype;h.announce=function(a,b){dN.prototype.announce.call(this,B5a(a));this.issueFridge.announce(QWa(a),b)};
h.fetchOne=function(a){var b=this;this.issueFridge.setIsGetting(a);return this.batchAdaptedGet(a).pipe(Bf(function(c){b.issueFridge.clearIsGetting(a);b.issueFridge.announce(QWa(c))}),A(function(c){return B5a(c)}),hf(function(c){b.issueFridge.clearIsGetting(a);return ce(function(){return c})}))};h.fetchSet=function(a){var b=this;return he(a.map(function(c){return b.fetchOne(c).pipe(hf(function(){return be(void 0)}))})).pipe(A(function(c){return c.filter(ln)}))};
h.watch=function(a,b){return he([dN.prototype.watch.call(this,a,b),this.issueFridge.watch(a,b)]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return RWa(d,c)}))};h.watchSet=function(a){return he([dN.prototype.watchSet.call(this,a),this.issueFridge.watchSet(a)]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d=wo(c,function(e){return e.issueId});return b.map(function(e){return RWa(d.get(e.issueId),e)})}),A(function(b){return b.filter(ln)}))};
h.peek=function(a){var b=dN.prototype.peek.call(this,a);a=this.issueFridge.peek(a);return RWa(a,b)};h.poke=function(a,b){var c=this;return y(function(d){return d.nextAddress==1?z(d,Promise.all([dN.prototype.poke.call(c,a,b),c.issueFridge.poke(a,b)]),2):d.return(c.peek(a))})};h.manualUpdate=function(a,b){if(a=(a=this.peek(a))&&Hm(a))b(a),this.announce(a)};h.copy=function(a){return a&&Hm(a)};
var ond=function(a,b,c){a.analytics.trackEvent("issue","light-ixn","star");var d={starred:c,voted:null,notificationSubscription:null};MM(a.activeSession)&&(d.voted=c);return qld(a.userResources,b,d).pipe(Bf(function(){a.manualUpdate(b,function(e){e.userData&&(e.userData.starred=c,MM(a.activeSession)&&(e.userData.voted=c))})}))},pnd=function(a,b,c){a.analytics.trackEvent("issue","light-ixn","vote",c);return qld(a.userResources,b,{voted:c,starred:null,notificationSubscription:null}).pipe(Bf(function(){a.manualUpdate(b,
function(d){d.userData&&(d.userData.voted=c)})}))};RO.prototype.setNotificationSubscription=function(a,b){var c=this,d;return y(function(e){if(e.nextAddress==1)return c.analytics.trackEvent("issue","light-ixn","notifs",Number(b)),d={voted:null,starred:null,notificationSubscription:b},z(e,ee(qld(c.userResources,a,d)),2);c.manualUpdate(a,function(f){f.userData&&(f.userData.notificationSubscription=b)});$d(e)})};
var qnd=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(Bf(function(e){e&&a.announce(e)}))};RO.prototype.removeHotlists=function(a,b){return this.updateHotlists(a,[],b)};
RO.prototype.updateHotlists=function(a,b,c){var d=this,e,f,g,k,m,r;return y(function(w){if(w.nextAddress==1){d.analytics.trackEvent("issue","edit","hotlists");e={removeHotlistIds:c,addHotlistIds:b,hotlistIssue:{issueId:a}};f=l([].concat(n(b),n(c)));for(g=f.next();!g.done;g=f.next())k=g.value,d.hotlistFridge.setIsSaving(k);Vd(w,2);return z(w,ee(d.issueApi.updateIssueHotlists(a,e)).finally(function(){for(var x=l([].concat(n(b),n(c))),D=x.next();!D.done;D=x.next())d.hotlistFridge.clearIsSaving(D.value)}),
4)}if(w.nextAddress!=2)return(m=w.yieldResult)&&d.announce(m),w.return(m);r=Zd(w);d.poke(a);throw r;})};var snd=function(a,b,c){return rnd(a,"ADD","DUPLICATE",c,[b]).then(function(){c!=null&&mnd(a.analytics,"DUPLICATE");return a.poke(b)})};h=RO.prototype;h.removeDuplicate=function(a,b){var c=this;return rnd(this,"REMOVE","DUPLICATE",b,[a]).then(function(){return c.poke(a)})};h.addBlocking=function(a,b){return rnd(this,"ADD","BLOCKING",a,b)};
h.removeBlocking=function(a,b){return rnd(this,"REMOVE","BLOCKING",a,b)};h.addBlockedBy=function(a,b){return rnd(this,"ADD","BLOCKED_BY",a,b)};h.removeBlockedBy=function(a,b){return rnd(this,"REMOVE","BLOCKED_BY",a,b)};
var rnd=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};tnd(a,b);var f=[d].concat(n(e));e=l(f);for(c=e.next();!c.done;c=e.next())a.setIsSaving(c.value);return ee(a.issueApi.relateIssue(d,b)).then(function(g){g&&a.announce(g)}).catch(function(g){a.poke(d);throw g;}).finally(function(){for(var g=l(f),k=g.next();!k.done;k=g.next())a.clearIsSaving(k.value)})},SO=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 g,k,m,r;return y(function(w){if(w.nextAddress==1)return a.activeSession.isAnonymous()?w.return():z(w,a.issueService.markRead(b,d,f),2);g=w.yieldResult;if(e)for(k=l(b),m=k.next();!m.done;m=k.next())r=m.value,a.manualUpdate(String(r),function(x){x.userData&&(x.userData.lastViewedTimeMicros=g.readTimestamp)});
return w.return(g.readTimestamp?Math.round(g.readTimestamp/1E3):void 0)})},tnd=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(n((d=c.snapshot[0].blockedByIssueId)!=null?d:[]),n(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(g){return!b.targetIds.includes(String(g))}))!=
null?f:[]}}})};RO.\u0275fac=function(a){return new (a||RO)};RO.\u0275prov=Cc({token:RO,factory:RO.\u0275fac,providedIn:"root"});var QO=function(){this.issueApi=q(tO);this.maxBatchSize=100;this.bufferTimeMs=0};QO.prototype.call=function(a){var b=this;if(a.size===1){var c=[].concat(n(a))[0];return this.issueApi.getIssueFull(c).pipe(A(function(d){return new Map([[c,d]])}))}return le(function(){return b.issueApi.batchGetIssuesFull([].concat(n(a)))}).pipe(A(function(d){return wo(d,function(e){return e.issueId})}))};
QO.prototype.split=function(a,b){return b.get(a)};QO.\u0275fac=function(a){return new (a||QO)};QO.\u0275prov=Cc({token:QO,factory:QO.\u0275fac,providedIn:"root"});var TO=function(){dN.call(this);var a=this;this.api=q(VM);this.activeSession=q(Zu);this.refreshMonitor=q(DO);this.recordType="issue-recommendation";this.isEqual=Gm;this.idForRecord=function(b){return b.issueId+"-"+b.recommendationType};this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Z(TO,dN);h=TO.prototype;
h.fetchOne=function(a){if(this.activeSession.isExternalSession())return be(void 0);a=C5a(a);var b=a.issueId,c=a.recommendationType;return c==="NEEDS_INFO"&&!this.activeSession.getFlag("enableNeedsInfoUi")||c==="ANY_ISSUE_EDIT"&&!this.activeSession.getFlag("enablePlaybook")&&!this.activeSession.getFlag("enableTriageClientM1")?be(void 0):this.api.lookupRecommendations({resource:"issues/"+b,type:c,minConfidence:"MEDIUM",view:"FULL",pageSize:10}).pipe(A(function(d){return{issueId:b,recommendationType:c,
recommendations:d.recommendations}}),hf(function(d){console.error("IssueRecommendationFridge error",d);return be(void 0)}))};
h.fetchSet=function(a){if(this.activeSession.isExternalSession())return be([]);var b=a.map(function(c){return C5a(c)});a=Oq(b.map(function(c){return"issues/"+c.issueId}));b=new Set(b.map(function(c){return c.recommendationType}));this.activeSession.getFlag("enableNeedsInfoUi")||b.delete("NEEDS_INFO");this.activeSession.getFlag("enablePlaybook")||this.activeSession.getFlag("enableTriageClientM1")||b.delete("ANY_ISSUE_EDIT");return b.size===0?be([]):this.api.batchLookupTopRecommendations({resources:a,
types:[].concat(n(b)),view:"FULL"}).pipe(A(function(c){return c.recommendations.map(function(d){return{issueId:os(d.resource),recommendationType:d.type,recommendations:[d]}})}))};h.watch=function(a){if(!a.includes("-"))throw Error("ie");return dN.prototype.watch.call(this,a)};h.poke=function(a){if(!a.includes("-"))throw Error("je");return dN.prototype.poke.call(this,a)};h.watchSet=function(a){if(a.some(function(b){return!b.includes("-")}))throw Error("ke");return dN.prototype.watchSet.call(this,a)};
var und=function(a,b){if(b.length===0)return be([]);b=b.map(function(c){return c+"-ANY_ISSUE_EDIT"});return a.watchSet(b)};TO.\u0275fac=function(a){return new (a||TO)};TO.\u0275prov=Cc({token:TO,factory:TO.\u0275fac,providedIn:"root"});var zr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(zr,X);var vnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(vnd,X);h=vnd.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.setRelationshipType=function(a){return cn(this,2,a)};h.getIssueRelationship=function(){return Y(this,zr,3)};h.setIssueRelationship=function(a){return hj(this,zr,3,a)};h.setSignificanceOverride=function(a){return cn(this,4,a)};var wnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(wnd,X);h=wnd.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.setRelationshipType=function(a){return cn(this,2,a)};h.setRequestsList=function(a){return ij(this,3,a)};h.addAndReturnRequests=function(){return zc(this,3,vnd)};h.setSignificanceOverride=function(a){return cn(this,4,a)};var xnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(xnd,X);h=xnd.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.setRelationshipType=function(a){return cn(this,2,a)};h.setSignificanceOverride=function(a){return cn(this,4,a)};var ynd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ynd,X);h=ynd.prototype;h.setRelationshipType=function(a){return cn(this,1,a)};h.getSourceIssueIdsList_asString=function(){return mn(this,2)};h.setSourceIssueIdsList=function(a){return Kr(this,2,a)};h.getQuery=function(){return Fi(this,3)};h.setQuery=function(a){return $m(this,3,a)};h.clearQuery=function(){ex(this,3)};var UO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(UO,X);var znd=function(a,b){return Kr(a,1,b)};UO.prototype.setRelationshipType=function(a){return cn(this,2,a)};var And=function(a,b){return sn(a,3,b)},Bnd=function(a,b){return sn(a,4,b)};UO.prototype.getQuery=function(){return Fi(this,5)};UO.prototype.setQuery=function(a){return $m(this,5,a)};UO.prototype.clearQuery=function(){ex(this,5)};var Cnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Cnd.messageId)};Z(Cnd,X);Cnd.prototype.getIt=function(){return Y(this,wnd,5,fb)};Cnd.prototype.setIt=function(a){return hj(this,wnd,5,a,fb)};Cnd.messageId="b.BatchCreateIssueRelationshipsRequest";var Dnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Dnd.messageId)};Z(Dnd,X);Dnd.prototype.getIssueRelationshipsList=function(){return Wi(this,zr,1,Xi(),fb)};Dnd.messageId="b.BatchCreateIssueRelationshipsResponse";var End=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,End.messageId)};Z(End,X);End.prototype.getIt=function(){return Y(this,xnd,5,fb)};End.prototype.setIt=function(a){return hj(this,xnd,5,a,fb)};End.messageId="b.BatchDeleteIssueRelationshipsRequest";var Fnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Fnd.messageId)};Z(Fnd,X);Fnd.prototype.getIt=function(){return Y(this,ynd,4,fb)};Fnd.prototype.setIt=function(a){return hj(this,ynd,4,a,fb)};Fnd.messageId="b.BatchGetIssueRelationshipsRequest";var Gnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Gnd,X);Gnd.prototype.getIssueRelationshipsList=function(){return Wi(this,zr,1,Xi())};Gnd.prototype.getTotalSize=function(){return Wm(this,2)};var Hnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Hnd.messageId)};Z(Hnd,X);Hnd.messageId="b.BatchGetIssueRelationshipsResponse";var Ind=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Ind.messageId)};Z(Ind,X);Ind.prototype.getIssueRelationship=function(){return Y(this,zr,1,fb)};Ind.prototype.setIssueRelationship=function(a){return hj(this,zr,1,a,fb)};Ind.messageId="b.CreateIssueRelationshipResponse";var Jnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Jnd.messageId)};Z(Jnd,X);Jnd.prototype.getIt=function(){return Y(this,UO,6,fb)};Jnd.prototype.setIt=function(a){return hj(this,UO,6,a,fb)};Jnd.messageId="b.GetIssueDescendantsRequest";var Knd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Knd.messageId)};Z(Knd,X);Knd.messageId="b.GetIssueDescendantsResponse";var Lnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Lnd.messageId)};Z(Lnd,X);Lnd.prototype.getIssueRelationshipsList=function(){return Wi(this,zr,1,Xi(),fb)};Lnd.messageId="b.ListIssueRelationshipsResponse";var Mnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Mnd.messageId)};Z(Mnd,X);Mnd.prototype.getIssueRelationship=function(){return Y(this,zr,1,fb)};Mnd.prototype.setIssueRelationship=function(a){return hj(this,zr,1,a,fb)};Mnd.messageId="b.UpdateIssueRelationshipResponse";var VO=function(){this.executor=q(RM)};h=VO.prototype;h.list=function(a,b){return this.executor.get({url:"action/issues/"+a+"/relationships?relationshipType="+cM[b],responseConstructor:Lnd}).pipe(A(function(c){return c.getIssueRelationshipsList().map(E5a)}))};h.create=function(a,b,c){b=cM[b];c=D5a(c);return this.executor.post({url:"action/issues/"+a+"/relationships?relationshipType="+b,body:c,responseConstructor:Ind}).pipe(A(function(d){return E5a(d.getIssueRelationship())}))};
h.update=function(a,b,c){b=cM[b];var d=D5a(c);return this.executor.put({url:"action/issues/"+a+"/relationships/"+c.targetIssueId+"?relationshipType="+b,body:d,responseConstructor:Mnd}).pipe(A(function(e){return E5a(e.getIssueRelationship())}))};h.delete=function(a,b,c){return this.executor.delete({url:"action/issues/"+a+"/relationships/"+c+"?relationshipType="+cM[b],responseConstructor:null})};
h.batchGet=function(a,b){b=cM[b];a=(new Fnd).setIt((new ynd).setSourceIssueIdsList(a).setRelationshipType(b).setQuery(this.getQuery(void 0)));return this.executor.post({url:"action/issues/batch_relationships",body:a,responseConstructor:Hnd}).pipe(A(function(c){return Wi(c,Gnd,1,Xi(),fb).map(F5a)}))};
var Nnd=function(a,b,c){var d=cM.CHILD;c=c.map(function(e){e=D5a(e);return(new vnd).setIssueRelationship(e)});b=(new Cnd).setIt((new wnd).setIssueId(b).setRelationshipType(d).setSignificanceOverride(c.length>1?4:0).setRequestsList(c));return a.executor.post({url:"action/issues/relationships_batchCreate",body:b,responseConstructor:Dnd}).pipe(A(function(e){return e.getIssueRelationshipsList().map(E5a)}))},Ond=function(a,b,c){var d=cM.CHILD,e=new End,f=e.setIt;b=(new xnd).setIssueId(b).setRelationshipType(d);
c=Kr(b,3,c);e=f.call(e,c);return a.executor.post({url:"action/issues/relationships_batchDelete",body:e,responseConstructor:null})};
VO.prototype.getDescendants=function(a){var b=a.issueIds;var c=a.relationshipType;var d=a.includeArchived;var e=a.depthLimit;a=a.prefixSizeLimit;c=cM[c];b=(new Jnd).setIt(Bnd(And(znd(new UO,b).setRelationshipType(c).setQuery(this.getQuery(d)),e),a));return this.executor.post({url:"action/issues/descendants",body:b,responseConstructor:Knd}).pipe(A(function(f){var g=new Map;f=l(sc(f,1,Gnd,Pb,fb).entries());for(var k=f.next();!k.done;k=f.next()){var m=l(k.value);k=m.next().value;m=m.next().value;g.set(String(k),
F5a(m))}return g}))};VO.prototype.getQuery=function(a){return a?"include_archived:true":"include_archived:false"};VO.\u0275fac=function(a){return new (a||VO)};VO.\u0275prov=Cc({token:VO,factory:VO.\u0275fac,providedIn:"root"});var WO={},Pnd=(WO.BUG="BUG",WO.FEATURE_REQUEST="FEATURE_REQUEST",WO.CUSTOMER_ISSUE="CUSTOMER_ISSUE",WO.INTERNAL_CLEANUP="INTERNAL_CLEANUP",WO.PROCESS="PROCESS",WO.VULNERABILITY="VULNERABILITY",WO.PRIVACY_ISSUE="PRIVACY_ISSUE",WO.EPIC="STORY",WO.STORY="TASK",WO.TASK="TASK",WO.PROJECT="TASK",WO.FEATURE="TASK",WO.MILESTONE="TASK",WO.PROGRAM="PROJECT",WO);var XO=function(){cN.call(this,{freshUntil:6E4,ancientAfter:792E5});var a=this;this.issueRelationshipService=q(VO);this.issueFullFridge=q(RO);this.refreshMonitor=q(DO);this.recordType="issueRelationships";this.idForRecord=function(b){return b.issueId};this.isEqual=Gm;this.activeMoveOperation$=new Xj(new Set);this.defaultQuery={type:"descendants",depth:1};this.assignParentToIssues=mXa(function(b,c){return Qnd(a,b,c)});this.assignParentToOneIssue=function(b,c){return Qnd(a,String(b),[{issueId:c}])};
this.moveChildrenInAPI=lXa(function(b){return a.moveChildrenInAPISequentially(b)});this.moveChildrenInAPISequentially=mXa(function(b){var c,d,e,f,g,k,m,r,w,x,D,H,J,O,R,V,ba,pa,ua,ma,Da,ja,va,ya,Sa,ab;return y(function(rb){switch(rb.nextAddress){case 1:d=L5a(b);if(d.length===0)return rb.return();e=d.map(function(ac){return ac.issues.map(function(pc){return pc.parentId})}).flat();f=d.map(function(ac){return ac.newParentId});g=Oq([].concat(n(e),n(f)));k=l(g);for(m=k.next();!m.done;m=k.next())r=m.value,
a.setIsSaving(r);Vd(rb,2);w=l(d);x=w.next();case 4:if(x.done){bk(rb,3);break}D=x.value;H=l(D.newRelations);J=H.next();O={};case 7:if(J.done){x=w.next();rb.jumpTo(4);break}O.newRelation=J.value;R=D.issues.find(function(ac){return function(pc){return pc.issueId===ac.newRelation.targetIssueId}}(O)).parentId;return D.newParentId===R?z(rb,ee(a.issueRelationshipService.update(D.newParentId,"CHILD",{afterIssueId:O.newRelation.afterIssueId,targetIssueId:O.newRelation.targetIssueId})),8):z(rb,ee(a.issueRelationshipService.create(D.newParentId,
"CHILD",{afterIssueId:O.newRelation.afterIssueId,targetIssueId:O.newRelation.targetIssueId})).catch(function(ac){var pc,kc;if(!(ac==null?0:(pc=ac.error)==null?0:(kc=pc.details)==null?0:kc.includes("ALREADY_EXISTS")))throw ac;}),12);case 12:return z(rb,ee(a.issueRelationshipService.delete(R,"CHILD",O.newRelation.targetIssueId)),8);case 8:O={newRelation:void 0};J=H.next();rb.jumpTo(7);break;case 2:c=V=Zd(rb);case 3:ba=a.activeMoveOperation$.value;pa=l(b.map(function(ac){return ac.eventTimestamps}).flat());
for(ua=pa.next();!ua.done;ua=pa.next())ma=ua.value,ba.delete(ma);a.activeMoveOperation$.next(ba);Da=l(g);for(ja=Da.next();!ja.done;ja=Da.next())va=ja.value,a.clearIsSaving(va);Promise.all(g.map(function(ac){return a.poke(ac)}));ya=l(d);for(Sa=ya.next();!Sa.done;Sa=ya.next())ab=Sa.value,c&&ab.done.reject(c),ab.done.resolve();$d(rb)}})});this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Z(XO,cN);
XO.prototype.fetchOne=function(a){var b=this;return Rnd(this,function(){return b.issueRelationshipService.list(a,"CHILD").pipe(A(function(c){return{issueId:a,relatedChildren:c,totalChildCount:c.length}}),hf(function(c){return hq(c)&&c.status===403?be(void 0):ce(function(){return c})}))})};
XO.prototype.fetchAll=function(a){var b=this;switch(a.type){case "descendants":var c,d=[].concat(n((c=a.ids)!=null?c:[]));return d.length===0?be({results:[]}):Rnd(this,function(){return b.issueRelationshipService.getDescendants({issueIds:d,relationshipType:"CHILD",includeArchived:!!a.includeArchived,depthLimit:a.depth,prefixSizeLimit:500}).pipe(A(G5a),A(function(e){return{results:e}}))});default:sb(a.type)}};XO.prototype.copy=function(a){return a&&Hm(a)};
var Rnd=function(a,b){var c=function(){return a.activeMoveOperation$.pipe(te(function(d){return d.size===0}),zf(function(){return b()}),zf(function(d){return a.activeMoveOperation$.value.size===0?be(d):c()}),mf(1))};return c()},Snd=function(a,b){return a.watch(b).pipe(zf(function(c){return c&&c.totalChildCount===c.relatedChildren.length?be(c):a.watch(b,{trustMemory:!1})}))},Tnd=function(a,b,c){return a.watchMany({type:"descendants",ids:new Set([b]),depth:c===void 0?100:c})},Und=function(a,b,c){return Xjd(a,
{type:"descendants",ids:new Set([b]),depth:c===void 0?100:c})};
XO.prototype.unlinkFromParent=function(a,b,c){c=c===void 0?!1:c;var d=this,e;return y(function(f){switch(f.nextAddress){case 1:d.issueFullFridge.manualUpdate(b,function(g){--g.childIssueCount});d.issueFullFridge.manualUpdate(a,function(g){g.parentIssueIds=g.parentIssueIds.filter(function(k){return k!==b})});d.manualUpdate(b,function(g){var k=g.relatedChildren;g.relatedChildren=K5a(k,a);g.totalChildCount-=k.length-g.relatedChildren.length});if(c)return f.return();Vd(f,2);return z(f,ee(d.issueRelationshipService.delete(b,
"CHILD",a)),4);case 4:bk(f,0);break;case 2:return e=Zd(f),z(f,Promise.all([d.poke(b),d.issueFullFridge.poke(b),d.issueFullFridge.poke(a)]),5);case 5:throw e;}})};
var Qnd=function(a,b,c){var d,e,f,g,k,m,r,w,x;return y(function(D){switch(D.nextAddress){case 1:d=[];e=[];f=[];if(c.length===0)return D.return({added:d,notAdded:e});g=Vnd(a,b);k=c.map(function(H,J){var O=H.afterIssueId==="-1"?g:H.afterIssueId;return{targetIssueId:H.issueId,afterIssueId:J?c[J-1].issueId:O}});Wnd(a,b,k);m=l(k);r=m.next();case 2:if(r.done){D.jumpTo(4);break}w=r.value;Vd(D,5);return z(D,ee(a.issueRelationshipService.create(b,"CHILD",{targetIssueId:w.targetIssueId,afterIssueId:w.afterIssueId})),
7);case 7:d.push(w.targetIssueId);bk(D,3);break;case 5:x=Zd(D);if(!hq(x))throw x;f.push(x);e.push(w.targetIssueId);case 3:r=m.next();D.jumpTo(2);break;case 4:return Promise.all([a.poke(b),a.issueFullFridge.poke(b)]),D.return(Object.assign({},{added:d,notAdded:e},f.length?{errors:f}:{}))}})},Wnd=function(a,b,c){var d=0;a.manualUpdate(b,function(e){var f=J5a(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})},Xnd=function(a,b,c){var d,e,f,g,k,m,r,w,x,D,H,J;return y(function(O){if(O.nextAddress==1)return d=[],e=[],f=[],c.length===0?O.return({added:d,notAdded:e}):z(O,Promise.allSettled(c.map(function(R){return ee(a.issueRelationshipService.create(R,"CHILD",{targetIssueId:b,afterIssueId:Vnd(a,R)}))})),2);g=O.yieldResult;k=l(g.entries());for(m=k.next();!m.done;m=k.next())r=m.value,w=l(r),x=w.next().value,D=w.next().value,H=x,J=D,J.status==="fulfilled"&&
d.push(c[H]),J.status==="rejected"&&(e.push(c[H]),f.push(J.reason));Promise.all(c.map(function(R){return a.poke(R)}));return O.return({added:d,notAdded:e,errors:f})})},Ynd=function(a,b,c){var d=b.parentId,e=Date.now();a.activeMoveOperation$.next(a.activeMoveOperation$.value.add(e));for(var f=l(c),g=f.next(),k={};!g.done;k={issue$jscomp$52:void 0},g=f.next())k.issue$jscomp$52=g.value,a.manualUpdate(k.issue$jscomp$52.parentId,function(V){return function(ba){ba.relatedChildren=K5a(ba.relatedChildren,
V.issue$jscomp$52.issueId);--ba.totalChildCount}}(k));var m=void 0,r;if((r=b.position)==null?0:r.issueId){var w;if(((w=b.position)==null?void 0:w.position)==="after")m=b.position.issueId;else{var x;if(((x=b.position)==null?void 0:x.position)==="before"){var D,H;f=(H=(D=a.memory.getData(d))==null?void 0:D.relatedChildren)!=null?H:[];D=l(f.entries());for(H=D.next();!H.done;H=D.next())if(g=l(H.value),H=g.next().value,g=g.next().value,g.targetIssueId===b.position.issueId){b=void 0;m=(b=f[H-1])==null?
void 0:b.targetIssueId;break}}}}var J=c.map(function(V,ba){return{targetIssueId:V.issueId,afterIssueId:ba?c[ba-1].issueId:m}});Yjd(a,d)!==void 0?a.manualUpdate(d,function(V){V.relatedChildren=J5a(V.relatedChildren,J);V.totalChildCount+=J.length},{evenWhenInFlight:!0}):a.announce({issueId:d,relatedChildren:J5a([],J),totalChildCount:J.length});b=new kXa;var O,R;a.moveChildrenInAPI({newParentId:d,newRelations:J,issues:c,eventTimestamps:[e],newParentChildrenSnapshot:(R=(O=a.memory.getData(d))==null?void 0:
O.relatedChildren)!=null?R:[],done:b});return b.promise},Vnd=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};XO.\u0275fac=function(a){return new (a||XO)};XO.\u0275prov=Cc({token:XO,factory:XO.\u0275fac,providedIn:"root"});var Znd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Znd,X);var YO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(YO,X);YO.prototype.getTrackerId=function(){return Hn(this,2)};YO.prototype.getTrackerId_asString=function(){return Ln(this,2)};YO.prototype.setTrackerId=function(a){Nn(this,2,a)};YO.prototype.setFilterSignalsList=function(a){return Ax(this,3,a)};var Br=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 $nd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z($nd,X);h=$nd.prototype;h.getIterationId_asString=function(){return Ln(this,1)};h.getWorkspaceId=function(){return Hn(this,2)};h.getWorkspaceId_asString=function(){return Ln(this,2)};h.getType=function(){return Ri(this,3)};h.setType=function(a){return cn(this,3,a)};h.getName=function(){return Fi(this,4)};h.setName=function(a){return $m(this,4,a)};h.getHotlistId=function(){return Hn(this,7)};
h.setHotlistId=function(a){return ap(this,7,a)};h.getStatus=function(){return Ri(this,8)};h.setStatus=function(a){return cn(this,8,a)};h.getTagsList=function(a){return On(this,9,Xi(a))};h.getTags=function(a){return px(this,9,a)};h.setVelocity=function(a){return Jp(this,11,a)};h.getStartTime=function(){return Y(this,nj,12)};h.setStartTime=function(a){hj(this,nj,12,a)};h.getEndTime=function(){return Y(this,nj,13)};h.setEndTime=function(a){hj(this,nj,13,a)};
h.hasEndTime=function(){return Si(this,nj,13)};h.getEtag=function(){return Fi(this,18)};h.setEtag=function(a){return $m(this,18,a)};var ZO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ZO,X);ZO.prototype.setContextsList=function(a){return Ax(this,1,a)};ZO.prototype.addContexts=function(a){return wc(this,1,zb,a,void 0,Ab)};ZO.prototype.getContexts=function(a){return px(this,1,a)};var aod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(aod,X);var bod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(bod,X);var cod=function(a){var b=new bod;return ij(b,1,a)};var $O=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z($O,X);$O.prototype.getTitle=function(){return Fi(this,2)};$O.prototype.setTitle=function(a){return $m(this,2,a)};var dod=function(a,b){return $m(a,3,b)},eod=function(a,b){return ap(a,4,b)},fod=function(a,b){return $m(a,5,b)};$O.prototype.getClientId=function(){return Wm(this,6)};$O.prototype.setClientId=function(a){return sn(this,6,a)};$O.prototype.getWorkspaceId=function(){return Fi(this,7)};var god=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,god.messageId)};Z(god,X);god.prototype.setTaskIdsList=function(a){return an(this,1,a,fb)};god.messageId="mc.BatchUpdateTasksDismissStateRequest";var hod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,hod.messageId)};Z(hod,X);hod.prototype.setTaskIdsList=function(a){return an(this,1,a,fb)};hod.messageId="mc.BatchUpdateTasksManualSignalStateRequest";var iod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,iod.messageId)};Z(iod,X);iod.prototype.setTaskIdsList=function(a){return an(this,1,a,fb)};iod.prototype.setTaskStatus=function(a){return cn(this,2,a,fb)};iod.messageId="mc.BatchUpdateTaskSnoozeStateRequest";var jod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(jod,X);jod.prototype.setFilterSignalsList=function(a){return Ax(this,1,a)};var kod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(kod,X);kod.prototype.setFilterSignalsList=function(a){return Ax(this,1,a)};var lod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(lod,X);lod.prototype.setFilterSignalsList=function(a){return Ax(this,1,a)};var mod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(mod,X);mod.prototype.getCommentId=function(){return Fi(this,2)};mod.prototype.setCommentId=function(a){return $m(this,2,a)};var nod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(nod,X);nod.prototype.setTaskResourceTypesList=function(a){return Ax(this,1,a)};nod.prototype.setMaxTaskAgeDays=function(a){return sn(this,2,a)};nod.prototype.setIssueFilters=function(a){return hj(this,YO,3,a)};var ood=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ood,X);ood.prototype.setFilterSignalsList=function(a){return Ax(this,1,a)};var pod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(pod,X);pod.prototype.setFilterSignalsList=function(a){return Ax(this,1,a)};var qod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(qod,X);qod.prototype.setTaskResourceTypesList=function(a){return Ax(this,1,a)};qod.prototype.setMaxTaskAgeDays=function(a){return sn(this,2,a)};qod.prototype.setIssueFilters=function(a){return hj(this,YO,4,a)};var rod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(rod,X);rod.prototype.getId=function(){return Fi(this,1)};rod.prototype.setId=function(a){return $m(this,1,a)};rod.prototype.getTitle=function(){return Fi(this,2)};rod.prototype.setTitle=function(a){return $m(this,2,a)};var sod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(sod,X);var aP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,aP.messageId)};Z(aP,X);aP.prototype.getResponse=function(){return Y(this,sod,1,fb)};aP.prototype.getMutableResponse=function(){return cj(this,sod,1,void 0,fb)};aP.prototype.hasResponse=function(){return Si(this,sod,1,fb)};aP.messageId="b.GetGoogleTasksTaskListsResponse";var bP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(bP,X);bP.prototype.getCommentId=function(){return Fi(this,1)};bP.prototype.setCommentId=function(a){return $m(this,1,a)};bP.prototype.getContent=function(){return Fi(this,3)};bP.prototype.setContent=function(a){return $m(this,3,a)};var cP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,cP.messageId)};Z(cP,X);cP.prototype.getResponse=function(){return Y(this,bP,1,fb)};cP.prototype.getMutableResponse=function(){return cj(this,bP,1,void 0,fb)};cP.prototype.hasResponse=function(){return Si(this,bP,1,fb)};cP.messageId="b.LatestDriveMentionResponse";var dP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(dP,X);dP.prototype.getCreatedTimestamp=function(){return Hn(this,1)};dP.prototype.setOwnedByMe=function(a){return sp(this,3,a)};dP.prototype.getMimeType=function(){return Fi(this,15)};dP.prototype.setMimeType=function(a){return $m(this,15,a)};var tod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(tod,X);h=tod.prototype;h.setResourceId=function(a){$m(this,17,a)};h.getTitle=function(){return Fi(this,2)};h.setTitle=function(a){return $m(this,2,a)};h.getLastModifiedTimestamp=function(){return Hn(this,3)};h.getIconName=function(){return Fi(this,10)};h.getExternalLink=function(){return Fi(this,16)};h.getIsDeleted=function(){return $i(this,19)};h.setIsDeleted=function(a){sp(this,19,a)};
h.getDriveResource=function(){return lm(this,dP,5,uod)};h.hasDriveResource=function(){return lj(this,dP,5,uod)};var uod=[5,6,7,8,9,18,22,23,24];var vod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(vod,X);vod.prototype.getName=function(){return Fi(this,1)};vod.prototype.setName=function(a){return $m(this,1,a)};vod.prototype.getContent=function(){return Fi(this,2)};vod.prototype.setContent=function(a){return $m(this,2,a)};var wod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(wod,X);h=wod.prototype;h.getTaskId=function(){return Fi(this,1)};h.setTaskStatus=function(a){return cn(this,3,a)};h.getResource=function(){return Y(this,tod,6)};h.setResource=function(a){return hj(this,tod,6,a)};h.getNote=function(){return Y(this,vod,22)};h.getCreatedTimestamp=function(){return Hn(this,7)};var xod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(xod,X);xod.prototype.getTask=function(){return Y(this,wod,1)};xod.prototype.hasTask=function(){return Si(this,wod,1)};var eP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,eP.messageId)};Z(eP,X);eP.prototype.getResponse=function(){return Y(this,xod,1,fb)};eP.prototype.getMutableResponse=function(){return cj(this,xod,1,void 0,fb)};eP.prototype.hasResponse=function(){return Si(this,xod,1,fb)};eP.messageId="b.TasksCreateGoogleTasksResponse";var yod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(yod,X);var d6a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(d6a,X);h=d6a.prototype;h.getPriority=function(){return Ri(this,1)};h.setPriority=function(a){return cn(this,1,a)};h.getAccessLevel=function(){return Ri(this,2)};h.setAccessLevel=function(a){return cn(this,2,a)};h.getHotlistIdsList_asLegacyNumberOrString=function(a){return c7a(this,3,Xi(a))};h.getHotlistIdsList_asString=function(){return mn(this,3)};h.setHotlistIdsList=function(a){return Kr(this,3,a)};
h.addHotlistIds=function(a,b){return xx(this,3,a,b)};h.addAllHotlistIds=function(a){yx(this,3,a)};h.removeHotlistIds=function(a){return iCc(this,3,a)};var a6a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(a6a,X);a6a.prototype.getCategory=function(){return Ri(this,1)};a6a.prototype.setCategory=function(a){return cn(this,1,a)};var Y5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Y5a,X);h=Y5a.prototype;h.getTaskId=function(){return Fi(this,1)};h.getTitle=function(){return Fi(this,3)};h.setTitle=function(a){return $m(this,3,a)};h.getCreatedTimestamp=function(){return Y(this,nj,4)};h.getLastModifiedTimestamp=function(){return Y(this,nj,5)};h.getExternalLink=function(){return Fi(this,6)};h.getDriveResource=function(){return lm(this,yod,8,e6a)};
h.hasDriveResource=function(){return lj(this,yod,8,e6a)};var e6a=[8,9,10,11,12,16,17];var zod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(zod,X);var Aod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Aod.messageId)};Z(Aod,X);Aod.prototype.getResponsesList=function(){return Wi(this,zod,1,Xi(),fb)};Aod.messageId="b.TasksMyTasksResponse";var Bod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Bod,X);Bod.prototype.getCommentNumber=function(){return nx(this,1)};Bod.prototype.setCommentNumber=function(a){return wc(this,1,Bb,void 0,a,Cb,void 0,1)};var q6a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(q6a,X);var o6a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(o6a,X);h=o6a.prototype;h.getDataCase=function(){return Oo(this,r6a)};h.clearData=function(){return fx(this,r6a)};h.getSignal=function(){return Ri(this,1)};h.setSignal=function(a){return cn(this,1,a)};h.getCommentNumbers=function(){return lm(this,Bod,2,r6a)};var r6a=[2,3];var l6a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(l6a,X);l6a.prototype.getComeBackTimestamp=function(){return Y(this,nj,1)};var n6a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(n6a,X);n6a.prototype.getComeBackTimestamp=function(){return Y(this,nj,2)};var k6a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(k6a,X);k6a.prototype.hasFutureAvailability=function(){return lj(this,n6a,1,m6a)};var m6a=[1,2];var Dr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Dr,X);Dr.prototype.getDataCase=function(){return Oo(this,Cod)};Dr.prototype.clearData=function(){return fx(this,Cod)};Dr.prototype.getSignal=function(){return Ri(this,1)};Dr.prototype.setSignal=function(a){return cn(this,1,a)};var Cod=[2,3];var g6a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(g6a,X);h=g6a.prototype;h.getDataCase=function(){return Oo(this,i6a)};h.clearData=function(){return fx(this,i6a)};h.getSignal=function(){return Ri(this,1)};h.setSignal=function(a){return cn(this,1,a)};h.getCommentId=function(){return So(this,2,i6a)};h.setCommentId=function(a){return Vo(this,2,i6a,a)};var i6a=[2];var s6a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(s6a,X);s6a.prototype.getSignal=function(){return Ri(this,1)};s6a.prototype.setSignal=function(a){return cn(this,1,a)};var u6a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(u6a,X);u6a.prototype.getSignal=function(){return Ri(this,1)};u6a.prototype.setSignal=function(a){return cn(this,1,a)};var v6a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(v6a,X);v6a.prototype.getSignal=function(){return Ri(this,1)};v6a.prototype.setSignal=function(a){return cn(this,1,a)};var W5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(W5a,X);h=W5a.prototype;h.getTimestamp=function(){return Y(this,nj,1)};h.setTimestamp=function(a){return hj(this,nj,1,a)};h.hasTimestamp=function(){return Si(this,nj,1)};h.getUrl=function(){return Y(this,wm,2)};h.setUrl=function(a){return hj(this,wm,2,a)};h.hasUrl=function(){return Si(this,wm,2)};var Ar=[3,4,5,6,7,9,10];var S5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(S5a,X);S5a.prototype.getTask=function(){return Y(this,Y5a,1)};S5a.prototype.hasTask=function(){return Si(this,Y5a,1)};var Dod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Dod,X);var Eod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Eod.messageId)};Z(Eod,X);Eod.prototype.getResponsesList=function(){return Wi(this,Dod,1,Xi(),fb)};Eod.messageId="b.TasksNeedsAttentionResponse";var Fod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Fod,X);Fod.prototype.getRationale=function(){return Fi(this,2)};Fod.prototype.setRationale=function(a){Gj(this,2,a)};var fP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(fP,X);fP.prototype.getValue=function(){return Wm(this,1)};fP.prototype.setValue=function(a){return Wn(this,1,a)};fP.prototype.hasValue=function(){return Bn(this,1)};var gP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(gP,X);gP.prototype.getUrl=function(){return Y(this,wm,2)};gP.prototype.setUrl=function(a){return hj(this,wm,2,a)};gP.prototype.hasUrl=function(){return Si(this,wm,2)};var O5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(O5a,X);h=O5a.prototype;h.getId=function(){return Fi(this,1)};h.setId=function(a){return Gj(this,1,a)};h.getTitle=function(){return Fi(this,2)};h.setTitle=function(a){return Gj(this,2,a)};h.getUrl=function(){return Y(this,wm,3)};h.setUrl=function(a){return hj(this,wm,3,a)};h.hasUrl=function(){return Si(this,wm,3)};h.getDescription=function(){return Fi(this,4)};h.setDescription=function(a){return Gj(this,4,a)};
h.hasDescription=function(){return xm(this,4)};h.getPriority=function(){return Y(this,Znd,5)};h.setPriority=function(a){return hj(this,Znd,5,a)};h.getScore=function(){return Y(this,fP,6)};h.setScore=function(a){return hj(this,fP,6,a)};h.getConfidence=function(){return Y(this,Fod,10)};h.setConfidence=function(a){return hj(this,Fod,10,a)};var God=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(God,X);h=God.prototype;h.getId=function(){return Fi(this,1)};h.setId=function(a){return Gj(this,1,a)};h.getTitle=function(){return Fi(this,2)};h.setTitle=function(a){return Gj(this,2,a)};h.getUrl=function(){return Y(this,wm,3)};h.setUrl=function(a){return hj(this,wm,3,a)};h.hasUrl=function(){return Si(this,wm,3)};h.getDescription=function(){return Fi(this,4)};h.setDescription=function(a){return Gj(this,4,a)};
h.hasDescription=function(){return xm(this,4)};h.getPriority=function(){return Y(this,Znd,5)};h.setPriority=function(a){return hj(this,Znd,5,a)};h.getScore=function(){return Y(this,fP,6)};h.setScore=function(a){return hj(this,fP,6,a)};var Q5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Q5a,X);h=Q5a.prototype;h.getUri=function(){return Y(this,OL,1)};h.setUri=function(a){return hj(this,OL,1,a)};h.getUrl=function(){return Y(this,wm,2)};h.setUrl=function(a){return hj(this,wm,2,a)};h.hasUrl=function(){return Si(this,wm,2)};h.getLabel=function(){return Fi(this,3)};h.setLabel=function(a){return Gj(this,3,a)};h.hasLabel=function(){return xm(this,3)};var M5a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(M5a,X);h=M5a.prototype;h.getUri=function(){return Y(this,OL,2)};h.setUri=function(a){return hj(this,OL,2,a)};h.getObjective=function(){return Y(this,God,1)};h.setObjective=function(a){return hj(this,God,1,a)};h.getTeam=function(){return Y(this,gP,3)};h.setTeam=function(a){hj(this,gP,3,a)};h.hasTeam=function(){return Si(this,gP,3)};var Hod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Hod,X);var hP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,hP.messageId)};Z(hP,X);hP.prototype.getResponse=function(){return Y(this,Hod,1,fb)};hP.prototype.getMutableResponse=function(){return cj(this,Hod,1,void 0,fb)};hP.prototype.hasResponse=function(){return Si(this,Hod,1,fb)};hP.messageId="b.TeamObjectivesResponse";var N6a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(N6a,X);var Iod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Iod,X);Iod.prototype.getIssue=function(){return Y(this,$p,1)};Iod.prototype.setIssue=function(a){return hj(this,$p,1,a)};var Jod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Jod,X);Jod.prototype.getIssue=function(){return lm(this,Iod,1,Kod)};Jod.prototype.setIssue=function(a){return op(this,1,Kod,a)};var Kod=[1];var Er=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Er,X);Er.prototype.getId=function(){return Fi(this,1)};Er.prototype.setId=function(a){return $m(this,1,a)};Er.prototype.getPayloadOrUndefined=function(){return bCc(this,Jod,9)};var Lod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Lod,X);Lod.prototype.getWorkspaceId=function(){return Hn(this,1)};Lod.prototype.getWorkspaceId_asString=function(){return Ln(this,1)};Lod.prototype.getType=function(){return Ri(this,2)};Lod.prototype.setType=function(a){return cn(this,2,a)};var Mod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Mod,X);Mod.prototype.getTypedWorkspaceIdsList=function(){return Wi(this,Lod,1,Xi())};Mod.prototype.getIterationIdsList_asString=function(){return mn(this,2)};var Nod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Nod,X);Nod.prototype.getEmail=function(){return Fi(this,1)};Nod.prototype.setEmail=function(a){return $m(this,1,a)};var Gr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Gr,X);Gr.prototype.getId=function(){return Fi(this,1)};Gr.prototype.setId=function(a){return $m(this,1,a)};Gr.prototype.getVersion=function(){return Fi(this,2)};Gr.prototype.setVersion=function(a){return $m(this,2,a)};var Ood=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Ood,X);h=Ood.prototype;h.getWorkspaceId=function(){return Hn(this,1)};h.getWorkspaceId_asString=function(){return Ln(this,1)};h.getName=function(){return Fi(this,2)};h.setName=function(a){return $m(this,2,a)};h.getTimeZone=function(){return Y(this,Gr,8)};h.setTimeZone=function(a){return hj(this,Gr,8,a)};h.hasTimeZone=function(){return Si(this,Gr,8)};h.getMembersList=function(){return Wi(this,Nod,9,Xi())};
h.setMembersList=function(a){return ij(this,9,a)};h.getUpdateTime=function(){return Y(this,nj,12)};h.setUpdateTime=function(a){hj(this,nj,12,a)};h.hasUpdateTime=function(){return Si(this,nj,12)};h.getBookmarkGroupId_asString=function(){return Ln(this,14)};h.setBookmarkGroupId=function(a){return ap(this,14,a)};h.getTeamId=function(){return Fi(this,20)};h.setTeamId=function(a){return $m(this,20,a)};var Pod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Pod,X);Pod.prototype.getWorkspacesMap=function(){return sc(this,1,Ood,Pb)};Pod.prototype.getIterationsMap=function(){return sc(this,2,$nd,Pb)};var M6a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(M6a,X);h=M6a.prototype;h.getContextsMap=function(){return sc(this,1,Mod,Rb)};h.getData=function(){return Y(this,Pod,2)};h.setData=function(a){return hj(this,Pod,2,a)};h.clearData=function(){return ex(this,2)};h.hasData=function(){return Si(this,Pod,2)};h.getFilter=function(){return Y(this,ZO,3)};h.setFilter=function(a){return hj(this,ZO,3,a)};var Qod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Qod,X);var iP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,iP.messageId)};Z(iP,X);iP.prototype.getResponse=function(){return Y(this,Qod,1,fb)};iP.prototype.getMutableResponse=function(){return cj(this,Qod,1,void 0,fb)};iP.prototype.hasResponse=function(){return Si(this,Qod,1,fb)};iP.messageId="b.WorkItemsResponse";var Rod=[1,2],jP=function(){this.executor=q(RM);this.activeSession=q(Zu)},Sod=function(a,b,c){c=c===void 0?!0:c;b=(new god).setTaskIdsList(b);c=sp(b,2,c,fb);return a.executor.post({url:"action/tasks/dismiss",body:c,responseConstructor:null})},Tod=function(a,b,c){c=c===void 0?!0:c;b=(new hod).setTaskIdsList(b);c=sp(b,2,c,fb);return a.executor.post({url:"action/tasks/manual_signal",body:c,responseConstructor:null})},Uod=function(a,b,c){b=(new iod).setTaskIdsList(b);if(c!==void 0){var d=b.setTaskStatus(2);
c=un(c);hj(d,nj,3,c,fb)}else b.setTaskStatus(0);return a.executor.post({url:"action/tasks/snooze",body:b,responseConstructor:null})},Vod=function(a,b,c,d,e){b=(new qod).setTaskResourceTypesList(b.map(w6a));c=cn(b,3,x6a(d)).setMaxTaskAgeDays(c);b=new YO;var f;d=(f=a.activeSession.getTracker())==null?void 0:f.trackerId;b.setTrackerId(d);c.setIssueFilters(b);b.setFilterSignalsList(e.buganizerSignals.map(A6a));var g=(new kod).setFilterSignalsList(e.driveSignals.map(C6a)),k=(new jod).setFilterSignalsList(e.changelistSignals.map(E6a));
d=(new lod).setFilterSignalsList(e.gerritSignals.map(G6a));f=(new ood).setFilterSignalsList(e.googleTasksSignals.map(H6a));b=c.setIssueFilters(b);b=hj(b,kod,5,g);b=hj(b,jod,6,k);d=hj(b,lod,7,d);hj(d,ood,8,f);e=(new pod).setFilterSignalsList(e.irmSignals.map(I6a));hj(c,pod,9,e);return a.executor.post({url:"action/tasks/needs_attention",responseConstructor:Eod,body:c}).pipe(A(U5a))},Wod=function(a,b,c,d){var e=new YO;d=cn(e,1,y6a(d));var f;e=(f=a.activeSession.getTracker())==null?void 0:f.trackerId;
d.setTrackerId(e);b=(new nod).setTaskResourceTypesList(b.map(w6a)).setMaxTaskAgeDays(c).setIssueFilters(d);return a.executor.post({url:"action/tasks/my_tasks",responseConstructor:Aod,body:b}).pipe(A(Z5a))},Xod=function(a,b){if(!b.length)return be([]);var c=new aod;b=an(c,1,b);c=(new ZO).setContextsList(Rod);b=hj(b,ZO,2,c);return a.executor.post({url:"action/work_items/batch_get_work_items",responseConstructor:iP,body:b}).pipe(A(O6a))},Yod=function(a,b){if(!b.length)return be([]);b=b.map(function(c){return(new OL).setResourcePath(c)});
b=cod(b);return a.executor.post({url:"action/okrs/batch_get_okrs",body:b,responseConstructor:hP}).pipe(A(R5a))};jP.prototype.saveGTask=function(a){a=eod(fod(dod((new $O).setTitle(a.title),a.details),a.taskListId),a.dueDateMs);return this.executor.post({url:"action/tasks/create_gtask",body:a,responseConstructor:eP}).pipe(A(function(b){var c,d;b=(c=b.getResponse())==null?void 0:(d=c.getTask())==null?void 0:d.getTaskId();if(!b)throw Error("le");return b}))};
var Zod=function(a){return a.executor.get({url:"action/tasks/get_gtask_task_lists",responseConstructor:aP}).pipe(A(function(b){var c,d;return((d=(c=b.getResponse())==null?void 0:Wi(c,rod,1,Xi()))!=null?d:[]).map(function(e){return{id:e.getId(),title:e.getTitle()}})}))};jP.\u0275fac=function(a){return new (a||jP)};jP.\u0275prov=Cc({token:jP,factory:jP.\u0275fac,providedIn:"root"});var $od={sources:["CHANGELIST","DRIVE","ISSUE"],maxTaskAgeDays:30,issueFilter:"ISSUE_TYPE_GROUPS_UNSPECIFIED"},kP=function(){cN.call(this);this.api=q(jP);this.recordType="myTasks";this.idForRecord=function(a){return a.taskId};this.defaultQuery=$od};Z(kP,cN);kP.prototype.fetchAll=function(a){return a.sources.length===0?be({results:[]}):Wod(this.api,a.sources,a.maxTaskAgeDays,a.issueFilter).pipe(A(function(b){b=b===void 0?[]:b;return{results:b}}))};kP.\u0275fac=function(a){return new (a||kP)};
kP.\u0275prov=Cc({token:kP,factory:kP.\u0275fac,providedIn:"root"});var IAb=["assigned-to-me","recent-stuff-i-follow"],apd=["BUGANIZER","CRITIQUE","DRIVE"],bpd=["BUGANIZER"],cpd=["NON_WTDM","WTDM","CRITIQUE","DRIVE"],dpd={BUGANIZER:{displayName:"Buganizer",externalDisplayName:"IssueTracker",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"}},epd={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"]},fpd={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:[]},gpd;gpd={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 hpd={sources:["CHANGELIST","DRIVE","ISSUE"],signalFilter:0,maxTaskAgeDays:30,filterSignals:epd},lP=function(){cN.call(this);this.api=q(jP);this.recordType="needsAttentionTask";this.idForRecord=function(a){return a.task.taskId};this.defaultQuery=hpd};Z(lP,cN);lP.prototype.fetchAll=function(a){return a.sources.length===0?be({results:[]}):Vod(this.api,a.sources,a.maxTaskAgeDays,a.signalFilter,a.filterSignals).pipe(A(function(b){b=b===void 0?[]:b;return{results:b}}))};
lP.\u0275fac=function(a){return new (a||lP)};lP.\u0275prov=Cc({token:lP,factory:lP.\u0275fac,providedIn:"root"});var mP=function(){dN.call(this);this.userAccess=q(lO);this.recordType="permissions";this.idForRecord=function(a){return a.id}};Z(mP,dN);mP.prototype.fetchOne=function(a){return this.fetchSet([a]).pipe(A(function(b){return l(b).next().value}))};mP.prototype.fetchSet=function(a){var b=this;return he(a.map(function(c){return le(function(){return Old(b.userAccess,c).then(function(d){return Object.assign({},d,{id:c})})})}))};mP.\u0275fac=function(a){return new (a||mP)};
mP.\u0275prov=Cc({token:mP,factory:mP.\u0275fac,providedIn:"root"});var P6a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(P6a,X);var ipd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,ipd.messageId)};Z(ipd,X);ipd.messageId="b.PrincipalTypeInfoBatchResponse";var oP=function(){this.principalResources=q(nP);this.bulkApiAdapter=q(jO);this.principalTypeGetter=this.bulkApiAdapter.adapt(jpd(this,!1));this.principalTypeWithDetailGetter=this.bulkApiAdapter.adapt(jpd(this,!0))},jpd=function(a,b){return function(c){return kpd(a.principalResources,c,b).then(function(d){return T6a(c,d)})}};oP.prototype.get=function(a){return lpd(this,a,!1)};
var lpd=function(a,b,c){return(c?a.principalTypeWithDetailGetter.get(b):a.principalTypeGetter.get(b)).then(function(d){return d!=null?d:U6a()})};oP.\u0275fac=function(a){return new (a||oP)};oP.\u0275prov=Cc({token:oP,factory:oP.\u0275fac,providedIn:"root"});
var nP=function(){this.executor=q(SM)},kpd=function(a,b,c){if(b.length===0)return Promise.resolve({});var d={};d.email=Oq(b);c&&(d.includeDetailedUserType="true");return a.executor.get({url:"action/principal_types",options:{params:d},responseConstructor:ipd}).then(S6a).then(function(e){for(var f={},g=l(b),k=g.next();!k.done;k=g.next()){k=k.value;var m=void 0;f[k]=(m=e[k])!=null?m:U6a()}return f})};nP.\u0275fac=function(a){return new (a||nP)};nP.\u0275prov=Cc({token:nP,factory:nP.\u0275fac,providedIn:"root"});var pP=function(){dN.call(this,{freshUntil:36E5,ancientAfter:864E5});this.principalTypesApi=q(oP);this.recordType="principalTypes";this.idForRecord=function(a){return a.email}};Z(pP,dN);pP.prototype.fetchOne=function(a){var b=this;return le(function(){return b.principalTypesApi.get(a)}).pipe(A(function(c){return Object.assign({},{email:a},c)}),hf(function(){return be(void 0)}))};pP.prototype.fetchSet=function(a){var b=this;return he(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(ln)}))};
pP.\u0275fac=function(a){return new (a||pP)};pP.\u0275prov=Cc({token:pP,factory:pP.\u0275fac,providedIn:"root"});var uP=function(){dN.call(this);this.api=q(tO);this.recordType="recentEventsForIssues";this.idForRecord=function(a){return a.id.query+"-"+a.id.pageSize}};Z(uP,dN);uP.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:qWa(a==null?void 0:a.events,b==null?void 0:b.events)};
uP.prototype.fetchOne=function(a){var b=l(a.split("___")),c=b.next().value;b=b.next().value;gn(b)||console.error("RecentEventsForIssuesFridge failed to parse maximumSize from query, using default. input: '"+a+"'");var d,e=(d=gn(b))!=null?d:50;return smd(this.api,{query:c,maximumSize:e,minimumSignificance:"MAJOR"}).pipe(A(function(f){return{id:{query:c,pageSize:e},events:f}}))};uP.\u0275fac=function(a){return new (a||uP)};uP.\u0275prov=Cc({token:uP,factory:uP.\u0275fac,providedIn:"root"});var mpd=["ASSIGNMENT","RESPONSE","CLOSURE"],npd=new Map([["ASSIGNMENT","Assignment"],["RESPONSE","Response"],["CLOSURE","Closure"]]),opd=new Map([["name","Name"],["description","Description"],["parentId","Parent ID"],["elements","SLO rules"]]),Y0b=new Map([["DAY_TYPE_UNSPECIFIED","Calendar"],["CALENDAR","Calendar"],["BUSINESS","Business"]]);var Jr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Jr,X);h=Jr.prototype;h.getId=function(){return Hn(this,1)};h.getId_asLegacyNumberOrString=function(){return Vp(this,1)};h.getId_asString=function(){return Ln(this,1)};h.setId=function(a){return Nn(this,1,a)};h.getFrequency=function(){return Ri(this,3)};h.setFrequency=function(a){return cn(this,3,a)};h.getOrdinal=function(){return Wm(this,4)};h.setOrdinal=function(a){return sn(this,4,a)};
h.getTimeZone=function(){return Y(this,Gr,5)};h.setTimeZone=function(a){return hj(this,Gr,5,a)};h.hasTimeZone=function(){return Si(this,Gr,5)};h.getTimeOfDay=function(){return Y(this,Hr,6)};h.setTimeOfDay=function(a){return hj(this,Hr,6,a)};h.setDaysRemaining=function(a){return Jp(this,7,a)};h.getTypesList=function(){return On(this,8,Xi())};h.setTypesList=function(a){return Ax(this,8,a)};var ppd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ppd,X);h=ppd.prototype;h.getTeamId=function(){return Hn(this,1)};h.getTeamId_asLegacyNumberOrString=function(){return Vp(this,1)};h.getTeamId_asString=function(){return Ln(this,1)};h.setTeamId=function(a){return ap(this,1,a)};h.getEffectiveSloEditPolicy=function(){return Ri(this,3)};var Lr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Lr.messageId)};Z(Lr,X);Lr.prototype.getIt=function(){return Y(this,Mr,10,fb)};Lr.prototype.setIt=function(a){return hj(this,Mr,10,a,fb)};Lr.messageId="b.SloState";var qpd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(qpd,X);qpd.prototype.getQuery=function(){return Fi(this,1)};qpd.prototype.setQuery=function(a){return $m(this,1,a)};qpd.prototype.clearQuery=function(){ex(this,1)};var Ir=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Ir,X);Ir.prototype.getComponentId=function(){return Hn(this,1)};Ir.prototype.getComponentId_asString=function(){return Ln(this,1)};Ir.prototype.setComponentId=function(a){return ap(this,1,a)};Ir.prototype.getEffectiveSloEditPolicy=function(){return Ri(this,2)};var rpd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,rpd.messageId)};Z(rpd,X);rpd.messageId="b.GetComponentSloEditPolicyResponse";var spd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,spd.messageId)};Z(spd,X);spd.prototype.getTeamSloEditPolicy=function(){return Y(this,ppd,1,fb)};spd.messageId="b.GetTeamSloEditPolicyResponse";var tpd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(tpd,X);var upd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,upd.messageId)};Z(upd,X);upd.prototype.getIt=function(){return Y(this,tpd,1,fb)};upd.prototype.setIt=function(a){return hj(this,tpd,1,a,fb)};upd.messageId="b.ListSlosResponse";var vpd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,vpd.messageId)};Z(vpd,X);vpd.prototype.getTeamSloEditPolicy=function(){return Y(this,ppd,1,fb)};vpd.messageId="b.UpdateTeamSloEditPolicyResponse";var vP=function(){this.activeSession=q(Zu);this.executor=q(RM)};h=vP.prototype;h.get=function(a){return this.executor.get({url:"action/slos/"+a,responseConstructor:Lr}).pipe(A(f7a))};h.getOwnedSlos=function(){return this.search("owner:"+this.activeSession.getUserEmail()+" include_archived:true")};h.search=function(a){a=(new qpd).setQuery(a);return this.executor.post({url:"action/listSlos",body:a,responseConstructor:upd}).pipe(A(function(b){b=b.getIt();b=Wi(b,Mr,1,Xi());return(b!=null?b:[]).map(hZa)}))};
h.create=function(a){a=g7a(a);return this.executor.post({url:"action/slos",body:a,responseConstructor:Lr}).pipe(A(f7a))};h.update=function(a){var b=a.sloId;a=g7a(a);return this.executor.post({url:"action/slos/"+b,body:a,responseConstructor:Lr}).pipe(A(f7a))};vP.\u0275fac=function(a){return new (a||vP)};vP.\u0275prov=Cc({token:vP,factory:vP.\u0275fac,providedIn:"root"});
var wP=function(){this.observableSlosService=q(vP);var a=q(JN),b;this.slosCache=(b=a.get("slos-second-level-cache"))!=null?b:a.create("slos-second-level-cache",{capacity:25})};h=wP.prototype;h.get=function(a){var b=this.slosCache.get(a);return b!==void 0?b:this.slosCache.put(String(a),ee(this.observableSlosService.get(a)))};h.getOwnedSlos=function(){return ee(this.observableSlosService.getOwnedSlos())};h.search=function(a){return ee(this.observableSlosService.search(a))};h.create=function(a){return ee(this.observableSlosService.create(a))};
h.update=function(a){return ee(this.observableSlosService.update(a))};wP.\u0275fac=function(a){return new (a||wP)};wP.\u0275prov=Cc({token:wP,factory:wP.\u0275fac,providedIn:"root"});var xP=function(){dN.call(this);this.observableSlosService=q(vP);this.recordType="slo";this.idForRecord=function(a){return a.sloId}};Z(xP,dN);h=xP.prototype;h.fetchOne=function(a){return this.observableSlosService.get(a)};h.getOwnedSlos=function(){return this.observableSlosService.getOwnedSlos()};h.search=function(a){return this.observableSlosService.search(a)};h.create=function(a){return this.observableSlosService.create(a)};h.update=function(a){return this.observableSlosService.update(a)};
xP.\u0275fac=function(a){return new (a||xP)};xP.\u0275prov=Cc({token:xP,factory:xP.\u0275fac,providedIn:"root"});var wpd=function(a,b){this.rawGet=a;this.cacheSize=b;this.lruCache=new k1a(this.cacheSize,function(c,d){d.subscription.unsubscribe()})};wpd.prototype.get=function(a){var b=this;return new Sd(function(c){var d=b.lruCache.get(a);d||(d=xpd(b,a));return d.obs$.subscribe(c)})};
var xpd=function(a,b){var c=a.rawGet(b).pipe(wf({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 ypd(c,d);a.lruCache.set(b,c);return c},ypd=function(a,b){this.obs$=a;this.subscription=b};var zpd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(zpd,X);h=zpd.prototype;h.getPathIdsList_asString=function(){return mn(this,1)};h.setPathIdsList=function(a){return tc(this,1,a,Fb)};h.getPathNamesList=function(a){return Xm(this,2,Xi(a))};h.setPathNamesList=function(a){return an(this,2,a)};h.getId=function(){return Hn(this,3)};h.getId_asLegacyNumberOrString=function(){return eCc(this,3)};h.getId_asString=function(){return En(this,3)};
h.setId=function(a){return ao(this,3,a)};h.getName=function(){return Fi(this,4)};h.setName=function(a){return Gj(this,4,a)};h.hasName=function(){return xm(this,4)};h.getNameOrUndefined=function(){return mx(this,4)};h.getDescription=function(){return Fi(this,5)};h.setDescription=function(a){return Gj(this,5,a)};h.hasDescription=function(){return xm(this,5)};var yP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,yP.messageId)};Z(yP,X);yP.prototype.getIt=function(){return Y(this,Fkd,14,fb)};yP.prototype.setIt=function(a){return hj(this,Fkd,14,a,fb)};yP.messageId="b.TeamState";var Apd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Apd,X);h=Apd.prototype;h.getId=function(){return Hn(this,1)};h.getId_asLegacyNumberOrString=function(){return eCc(this,1)};h.getId_asString=function(){return En(this,1)};h.setId=function(a){return ao(this,1,a)};h.getName=function(){return Fi(this,2)};h.setName=function(a){return Gj(this,2,a)};h.hasName=function(){return xm(this,2)};h.getNameOrUndefined=function(){return mx(this,2)};
h.getDescription=function(){return Fi(this,3)};h.setDescription=function(a){return Gj(this,3,a)};h.hasDescription=function(){return xm(this,3)};var Bpd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Bpd,X);Bpd.prototype.setTeamIdsList=function(a){return Kr(this,1,a)};Bpd.prototype.setView=function(a){return cn(this,2,a)};var Cpd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Cpd.messageId)};Z(Cpd,X);Cpd.prototype.setTeamIdsList=function(a){return tc(this,1,a,Fb,fb)};Cpd.messageId="b.BatchChildTeamsRequest";var Dpd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Dpd,X);var Epd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Epd.messageId)};Z(Epd,X);Epd.messageId="b.BatchChildTeamsResponse";var Fpd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Fpd,X);var Gpd=function(a){return Wi(a,Fkd,1,Xi())};var zP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,zP.messageId)};Z(zP,X);zP.prototype.getIt=function(){return Y(this,Fpd,2,fb)};zP.prototype.setIt=function(a){return hj(this,Fpd,2,a,fb)};zP.messageId="b.BatchGetTeamsResponse";var Hpd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Hpd.messageId)};Z(Hpd,X);Hpd.messageId="b.MomaTeamEntityResult";var Ipd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Ipd.messageId)};Z(Ipd,X);Ipd.prototype.getIt=function(){return Y(this,Aq,3,fb)};Ipd.prototype.setIt=function(a){return hj(this,Aq,3,a,fb)};Ipd.messageId="b.UpdateTeamSloRequest";var BP=function(){var a=this;this.executor=q(RM);this.teamsBatchApiConfig=q(AP);this.batchApiAdapter=q(vN);this.batchAdaptedGet=this.batchApiAdapter.adapt(this.teamsBatchApiConfig);this.memoizingTeamStateMap=new wpd(function(b){return a.batchAdaptedGet(b)},100)};BP.prototype.get=function(a){return this.executor.get({url:"action/teams/"+a,responseConstructor:yP}).pipe(A(i7a))};BP.prototype.getTeam=function(a){return this.memoizingTeamStateMap.get(a)};
var CP=function(a,b){return a.getTeam(b).pipe(A(function(c){return c!=null?c:k7a(b)}),hf(function(){return be(k7a(b))}))},Jpd=function(a,b){b=b.filter(function(c){return c!=="0"}).map(function(c){return a.getTeam(c)});return me(b).pipe(A(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}))};
BP.prototype.getChildTeams=function(a){a=(new Cpd).setTeamIdsList(a);return this.executor.post({url:"action/child_teams",body:a,responseConstructor:Epd}).pipe(A(function(b){b=[].concat(n(sc(b,1,Dpd,Rb,fb).entries()));return new Map(b.map(function(c){var d=l(c);c=d.next().value;d=d.next().value;d=Wi(d,Apd,1,Xi());return[c,d.map(h7a)]}))}))};
var DP=function(a,b){return a.executor.get({url:"action/suggest_teams",options:{params:{query:b}},responseConstructor:Hpd}).pipe(A(function(c){return Wi(c,zpd,1,Xi(),fb).map(j7a)}))},Kpd=function(a,b){return a.executor.get({url:"action/teams/"+b+"/experiments",responseConstructor:fO}).pipe(A(W1a))},Lpd=function(a,b){a=a.executor;var c=a.post,d="action/teams/"+b.id+"/experiments",e=b.triage.map(i2a);var f=b.playbooks.map(X1a);b=(new fO).setId(b.id);b=eq(b,2,Rq,e,fb);f=eq(b,3,Sq,f,fb);return c.call(a,
{url:d,body:f,responseConstructor:fO}).pipe(A(W1a))},Mpd=function(a,b,c){return b==="0"?be(!1):a.memoizingTeamStateMap.get(b).pipe(A(function(d){return(d==null?void 0:d.members.find(function(e){return e&&Rm(e.user)===c}))!==void 0}))},Npd=function(a,b){b=(new Bpd).setTeamIdsList([].concat(n(b))).setView(2);return a.executor.post({url:"action/batchGetTeams",responseConstructor:zP,body:b}).pipe(A(function(c){return Gpd(c.getIt())}),A(function(c){return new Map(c.map(function(d){var e,f;return[String(d.getId()),
(f=rn((e=Y(d,zq,7))==null?void 0:Hn(e,3)))!=null?f:0]}))}))};
BP.prototype.updateTeam=function(a){var b=new yP,c=new Fkd,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(gn).filter(ln));d=an(f,5,a.collapsedPathNames).setMembersList((e=a.members)==null?void 0:e.map(G0a));sp(d,9,a.deleted);e=new zq;d=a.extra;e.setVersion(a.version).setSlo(H0a(a.slo)).setInheritEscalationOwner(!0);(d==null?0:d.escalationOwner)&&e.setEscalationOwner(dn(d.escalationOwner));
if(d==null?0:d.defaultEscalationOwner)f=dn(d.defaultEscalationOwner),hj(e,Zm,7,f);if(d==null?0:d.escalationOwnerOverride)d.escalationOwnerOverride.emailAddress===""?(d=new HKc,op(e,10,D0a,d)):(d=dn(d.escalationOwnerOverride),op(e,9,D0a,d));hj(c,zq,7,e);b.setIt(c);return this.executor.post({url:"action/teams/"+a.teamId,body:b,responseConstructor:yP}).pipe(A(i7a))};BP.\u0275fac=function(a){return new (a||BP)};BP.\u0275prov=Cc({token:BP,factory:BP.\u0275fac,providedIn:"root"});
var AP=function(){this.executor=q(RM)};AP.prototype.call=function(a){a=(new Bpd).setTeamIdsList([].concat(n(a))).setView(1);return this.executor.post({url:"action/batchGetTeams",responseConstructor:zP,body:a}).pipe(A(function(b){return Gpd(b.getIt()).map(E0a)}),A(function(b){return wo(b,function(c){return c.teamId})}),hf(function(){return be(new Map)}))};AP.prototype.split=function(a,b){return b.get(a)};AP.\u0275fac=function(a){return new (a||AP)};AP.\u0275prov=Cc({token:AP,factory:AP.\u0275fac,providedIn:"root"});var EP=function(){cN.call(this);this.teamsApi=q(BP);this.defaultQuery={};this.recordType="MomaTeamEntity";this.idForRecord=function(a){var b;return(b=a.teamId)!=null?b:"NO_ID"}};Z(EP,cN);EP.prototype.fetchAll=function(a){if(a.myTeams)return DP(this.teamsApi,"").pipe(A(function(b){b=b===void 0?[]:b;return{results:b}}));throw Error("re");};EP.\u0275fac=function(a){return new (a||EP)};EP.\u0275prov=Cc({token:EP,factory:EP.\u0275fac,providedIn:"root"});var FP=function(){dN.call(this,{freshUntil:6E4});this.activeSession=q(Zu);this.teamsApi=q(BP);this.recordType="team-experimental-fields";this.idForRecord=function(a){return a.id};this.isEqual=Gm;this.isEnabled=(this.activeSession.getFlag("enableTeamScope")||this.activeSession.getFlag("enablePlaybook"))&&this.activeSession.isInternalSession()};Z(FP,dN);
FP.prototype.fetchOne=function(a){var b=this;return this.isEnabled?le(function(){return Kpd(b.teamsApi,a).pipe(A(function(c){return c!=null?c:l7a(a)}),hf(function(){return be(void 0)}))}):be(void 0)};FP.prototype.fetchSet=function(a){var b=this;return he(a.map(function(c){return b.watch(c)})).pipe(A(function(c){return c.filter(ln)}))};FP.prototype.copy=function(a){return a&&Hm(a)};
FP.prototype.updateOrInsert=function(a,b){var c=this,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:if(!c.isEnabled)return k.return(l7a(a));c.manualUpdate(a,function(m){b(m!=null?m:l7a(a))});return z(k,ee(Kpd(c.teamsApi,a)),2);case 2:return d=k.yieldResult,f=(e=c.copy(d))!=null?e:l7a(a),b(f),z(k,ee(Lpd(c.teamsApi,f)),3);case 3:if(g=k.yieldResult){k.jumpTo(4);break}return z(k,c.poke(a),5);case 5:throw Error("se");case 4:return c.announce(g),k.return(g)}})};
FP.\u0275fac=function(a){return new (a||FP)};FP.\u0275prov=Cc({token:FP,factory:FP.\u0275fac,providedIn:"root"});var GP=function(){dN.call(this);this.teamsApi=q(BP);this.recordType="team";this.idForRecord=function(a){return a.teamId}};Z(GP,dN);GP.prototype.fetchOne=function(a){return a==="0"?be(void 0):this.teamsApi.getTeam(a).pipe(hf(function(){return be(void 0)}))};GP.prototype.fetchSet=function(a){var b=this;return he(a.map(function(c){return b.fetchOne(c)})).pipe(A(function(c){return c.filter(ln)}))};GP.\u0275fac=function(a){return new (a||GP)};GP.\u0275prov=Cc({token:GP,factory:GP.\u0275fac,providedIn:"root"});var Opd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Opd,X);Opd.prototype.setTrackerIdsList=function(a){return Kr(this,1,a)};var Ppd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Ppd,X);Ppd.prototype.getTrackersList=function(){return Wi(this,hid,1,Xi())};var Qpd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Qpd.messageId)};Z(Qpd,X);Qpd.prototype.getIt=function(){return Y(this,Ppd,9,fb)};Qpd.prototype.setIt=function(a){return hj(this,Ppd,9,a,fb)};Qpd.messageId="b.BatchGetTrackersResponse";var Rpd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Rpd,X);Rpd.prototype.getTrackersList=function(){return Wi(this,hid,1,Xi())};Rpd.prototype.getNextPageToken=function(){return Fi(this,2)};Rpd.prototype.getTotalSize=function(){return Wm(this,3)};var Spd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Spd.messageId)};Z(Spd,X);Spd.prototype.getIt=function(){return Y(this,Rpd,4,fb)};Spd.prototype.setIt=function(a){return hj(this,Rpd,4,a,fb)};Spd.messageId="b.ListTrackersResponse";var HP=function(){this.jspbExecutor=q(RM)};HP.prototype.get=function(a){return this.jspbExecutor.get({url:"action/trackers/"+a,responseConstructor:oo}).pipe(A(KTa))};HP.prototype.batchGet=function(a){a=(new Opd).setTrackerIdsList(a);return this.jspbExecutor.post({url:"action/trackers/batch",responseConstructor:Qpd,body:a}).pipe(A(LTa))};
HP.prototype.query=function(a,b,c){return this.jspbExecutor.get({url:"action/trackers",responseConstructor:Spd,options:{params:{query:a,pageSize:String(b),pageToken:c===void 0?"":c}}}).pipe(A(MTa))};HP.\u0275fac=function(a){return new (a||HP)};HP.\u0275prov=Cc({token:HP,factory:HP.\u0275fac,providedIn:"root"});var IP=function(){dN.call(this,{freshUntil:36E5,ancientAfter:2592E5});this.trackerApi=q(HP);this.activeSession=q(Zu);this.recordType="tracker";this.idForRecord=function(a){return a.trackerId};Tpd(this)};Z(IP,dN);var Tpd=function(a){var b=a.activeSession.getTracker();b&&a.announce(b)};IP.prototype.fetchOne=function(a){return this.trackerApi.get(a)};IP.prototype.fetchSet=function(a){return this.trackerApi.batchGet(a)};
IP.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(A(function(d){var e;return{results:(e=d==null?void 0:d.trackers)!=null?e:[]}}))};IP.\u0275fac=function(a){return new (a||IP)};IP.\u0275prov=Cc({token:IP,factory:IP.\u0275fac,providedIn:"root"});var JP=function(){LO.apply(this,arguments);this.router=q(CF);this.activatedRoute=q(Wj);this.params={};this.routeParams$=new Xj({});this.issueId$=this.routeParams$.pipe(A(function(a){return a.issueId}),of());this.assignParams.bind(this)};Z(JP,LO);JP.\u0275dir=LO.\u0275dir;
var Upd=function(a){a.activatedRoute.queryParams.pipe(Af(a.destroyed$)).subscribe(function(b){a.assignParams(a.routeParams$.value,b)});a.router.events.pipe(te(function(b){return b instanceof eza}),A(function(b){return b}),Af(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)})},Vpd=function(a,b){return a.routeParams$.pipe(A(function(c){return c[b]}))};
JP.prototype.assignParams=function(a,b){for(var c=l(Object.keys(this.params)),d=c.next();!d.done;d=c.next())delete this.params[m7a(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[m7a(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[m7a(b)]=c};JP.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(JP)))(b||JP)}}();
JP.\u0275prov=Cc({token:JP,factory:JP.\u0275fac,providedIn:"root"});var KP=function(){var a=q(OO);LO.call(this);var b=this;this.paramsService=q(JP);this.issueFullFridge=q(RO);this.componentIdOverride$=new Xj(null);this.hotlistIdOverride$=new Xj(null);this.issueIdOverride$=new Xj(null);this.teamIdOverride$=new Xj(null);this.routeIssueId$=this.paramsService.issueId$.pipe(A(o7a),wf({refCount:!0,bufferSize:1}));this.routeComponentId$=Vpd(this.paramsService,"componentId").pipe(of());this.routeHotlistId$=Vpd(this.paramsService,"hotlistId").pipe(of());this.routeTeamId$=
Vpd(this.paramsService,"teamId").pipe(of());this.issueId$=he([this.issueIdOverride$,this.routeIssueId$]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c||d}),A(o7a),of(),wf({refCount:!0,bufferSize:1}));this.componentIdFromIssueId$=this.issueId$.pipe(zf(function(c){return c?b.issueFullFridge.watch(c):be(void 0)}),A(function(c){return c==null?void 0:c.snapshot[0].componentId}));this.teamIdFromIssueId$=this.issueId$.pipe(zf(function(c){return c?b.issueFullFridge.watch(c):be(void 0)}),
A(function(c){var d;return c==null?void 0:(d=c.aggregatedData)==null?void 0:d.teamId}));this.componentId$=he([this.componentIdOverride$,this.routeComponentId$,this.componentIdFromIssueId$]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;d=d.next().value;return c||e||d||null}),of(),wf({refCount:!0,bufferSize:1}));this.teamId$=he([this.teamIdOverride$,this.routeTeamId$,this.teamIdFromIssueId$]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;d=d.next().value;
return c||e||d}),A(o7a),of(),wf({refCount:!0,bufferSize:1}));this.hotlistId$=he([this.hotlistIdOverride$,this.routeHotlistId$]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c||d}),A(n7a),of(),wf({refCount:!0,bufferSize:1}));this.subscriptions.add(a.routeChangeSuccess.subscribe(function(){b.componentIdOverride$.next(null);b.hotlistIdOverride$.next(null);b.issueIdOverride$.next(null);b.teamIdOverride$.next(null)}));this.subscriptions.add(this.componentId$.subscribe(function(c){vr("dimension4",
c)}));this.subscriptions.add(this.teamId$.subscribe(function(c){vr("dimension1",c)}))};Z(KP,LO);KP.\u0275dir=LO.\u0275dir;KP.prototype.getComponentId=function(){return this.componentId$};KP.prototype.getHotlistId=function(){return this.hotlistId$};KP.prototype.getIssueId=function(){return this.issueId$};KP.prototype.getTeamId=function(){return this.teamId$};KP.\u0275fac=function(a){return new (a||KP)};KP.\u0275prov=Cc({token:KP,factory:KP.\u0275fac,providedIn:"root"});var LP=function(){var a=this;this.issueFullFridge=q(RO);this.teamFridge=q(GP);this.componentFridge=q(AN);this.eventsForIssue=q(vO);this.activatedRoute=q(Wj);this.contextSensitiveRegistry=q(KP);this.id$=this.contextSensitiveRegistry.getIssueId().pipe(A(function(b){return b||void 0}));this.urlComment$=this.activatedRoute.fragment.pipe(A(g8a),wf({refCount:!0,bufferSize:1}));this.issueJs$=this.id$.pipe(zf(function(b){return b?a.issueFullFridge.watch(b):be(void 0)}),wf({refCount:!0,bufferSize:1}));this.eventsJs$=
this.id$.pipe(zf(function(b){return b?a.eventsForIssue.watch(b):be(void 0)}),A(function(b){var c;return(c=b==null?void 0:b.events)!=null?c:[]}));this.starred$=this.issueJs$.pipe(A(u7a));this.lastViewedTimeMicros$=this.issueJs$.pipe(A(v7a));this.lastViewedTimeMicros$.pipe(A(function(b){return!b}));this.title$=this.issueJs$.pipe(A(w7a));this.issueJs$.pipe(A(O7a));this.accessLimitLevel$=this.issueJs$.pipe(A(E7a));this.voted$=this.issueJs$.pipe(A(P7a));this.status$=this.issueJs$.pipe(A(x7a));this.priority$=
this.issueJs$.pipe(A(y7a));this.assignee$=this.issueJs$.pipe(A(z7a));this.issueJs$.pipe(A(A7a));this.teamId$=this.issueJs$.pipe(A(B7a));this.team$=this.teamId$.pipe(zf(function(b){return b?a.teamFridge.watch(b):be(void 0)}),wf({refCount:!0,bufferSize:1}));this.ccUsers$=this.issueJs$.pipe(A(D7a));this.collaboratorsUsers$=this.issueJs$.pipe(A(F7a));this.issueJs$.pipe(A(function(b){var c,d;return(d=(c=zo(b))==null?void 0:c.severity)!=null?d:void 0}));this.type$=this.issueJs$.pipe(A(G7a));this.issueJs$.pipe(A(H7a));
this.issueJs$.pipe(A(I7a));this.issueJs$.pipe(A(J7a));this.postmortems$=this.issueJs$.pipe(A(K7a));this.postmortems$.pipe(A(function(b){return b.length>0}));this.issueJs$.pipe(A(L7a));this.effort$=this.issueJs$.pipe(A(M7a));this.staffing$=this.issueJs$.pipe(A(N7a));this.isDeleted$=this.issueJs$.pipe(A(R7a));this.accessLevel$=this.issueJs$.pipe(A(T7a));this.modifiedTime$=this.issueJs$.pipe(A(U7a));this.issueJs$.pipe(A(W7a));this.retentionState$=this.issueJs$.pipe(A(Z7a));this.canonicalIssueId$=this.issueJs$.pipe(A(X7a));
this.sloStatus$=this.issueJs$.pipe(A(function(b){var c;return b==null?void 0:(c=b.aggregatedData)==null?void 0:c.sloStatus}));this.sloId$=this.issueJs$.pipe(A($7a));this.createdTimeMicros$=this.issueJs$.pipe(A(a8a));this.componentId$=this.issueJs$.pipe(A(C7a));this.component$=this.componentId$.pipe(zf(function(b){return b?a.componentFridge.watch(b):be(void 0)}));this.teamSuggestions$=this.component$.pipe(A(function(b){var c;return(c=b==null?void 0:b.teamSuggestions)!=null?c:[]}));this.effortSpec$=
this.component$.pipe(A(b8a));this.isEffortEnabled$=this.component$.pipe(A(c8a));this.component$.pipe(A(d8a))};LP.\u0275fac=function(a){return new (a||LP)};LP.\u0275prov=Cc({token:LP,factory:LP.\u0275fac,providedIn:"root"});var e8a=RegExp("comment([0-9]+)"),f8a=RegExp("comment[0-9]+version([0-9]+)");var Wpd={admin:!1,writer:!0,appender:!0,reader:!0},NP=function(){var a=this;this.issueDetailsBrain=q(LP);this.permissionsFridge=q(mP);this.activeSession=q(Zu);this.accessPolicyApi=q(tN);this.errorHandler=q(ZM);this.userAccess=q(lO);this.currentUserEmail=this.activeSession.getUserEmail();this.currentUserEmailPattern=new RegExp("^"+qs(this.currentUserEmail).replace("@","(\\+.*)?@")+"$");this.issueId$=this.issueDetailsBrain.id$;this.issuePermissions$=this.issueId$.pipe(zf(function(c){return c?a.permissionsFridge.watch(vq(c)):
be(void 0)}),A(function(c){return c!=null?c:Wpd}),yf(Wpd),wf({bufferSize:1,refCount:!0}));this.hasAclToView$=this.issuePermissions$.pipe(A(function(c){return!!c.reader}));this.hasAclToEdit$=this.issuePermissions$.pipe(A(function(c){return!!c.writer}));this.hasAclToEdit=function(){return!!Pr(a.hasAclToEdit$)};this.hasAclToComment$=this.issuePermissions$.pipe(A(function(c){return!!c.appender}));this.hasAclToComment=function(){return!!Pr(a.hasAclToComment$)};this.hasAclToAdmin$=this.issuePermissions$.pipe(A(function(c){return!!c.admin}));
this.hasAclToAdmin=function(){return!!Pr(a.hasAclToAdmin$)};this.isCurrentUserCCd$=this.issueDetailsBrain.ccUsers$.pipe(yf([]),A(function(c){return c.some(function(d){return MP(a,d.emailAddress)})}));this.isCurrentUserCCd=function(){return!!Pr(a.isCurrentUserCCd$)};this.isCurrentUserCollaborator$=this.issueDetailsBrain.collaboratorsUsers$.pipe(yf([]),A(function(c){return c.some(function(d){return MP(a,d.emailAddress)})}));this.isCurrentUserCollaborator=function(){return!!Pr(a.isCurrentUserCollaborator$)};
this.isAllowedToEditCC$=this.hasAclToEdit$;he([this.hasAclToEdit$,this.isCurrentUserCCd$]).pipe(A(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(yf(void 0),of(),zf(function(c){return c?a.accessPolicyApi.checkComponentImplicitAccessEnabled(c):be(!1)}),hf(function(c){if(c.status===403)return be(!0);
a.errorHandler.errorHandler(null,c);return be(!1)}),wf({bufferSize:1,refCount:!0}));this.isImplicitAccessEnabled=function(){return!!Pr(a.isImplicitAccessEnabled$)};this.canDeleteIssue$=this.hasAclToAdmin$;this.canUndeleteIssue$=he([this.issueDetailsBrain.isDeleted$,this.canDeleteIssue$]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c&&d}));this.userIsComponentAdmin$=this.issueDetailsBrain.componentId$.pipe(yf(void 0),of(),zf(function(c){return c?mO(a.userAccess,"admin","components/"+
c):be(!1)}),hf(function(c){a.errorHandler.errorHandler(null,c);return be(!1)}),wf({bufferSize:1,refCount:!0}));this.accessLevel$=this.issueDetailsBrain.accessLevel$.pipe(yf(void 0));this.accessLevel=function(){return Pr(a.accessLevel$)};this.accessLimitLevel$=this.issueDetailsBrain.accessLimitLevel$;this.isWithinExternalComponent$=this.accessLevel$.pipe(A(function(c){return!(!c||c==="INTERNAL")}));this.audience$=this.isWithinExternalComponent$.pipe(A(function(c){return c?"EXTERNAL":"INTERNAL"}));
this.audience=function(){return Pr(a.audience$)};this.canChangeCommentRetention$=this.hasAclToEdit$;var b=q(Be);this.issuePermissions$.pipe(oj(b)).subscribe();this.isImplicitAccessEnabled$.pipe(oj(b)).subscribe();this.userIsComponentAdmin$.pipe(oj(b)).subscribe()},MP=function(a,b){return(b==null?void 0:b.search(a.currentUserEmailPattern))===0};h=NP.prototype;
h.canUndeleteComment=function(a){return yo(a)&&a.commentDeletionStatus==="DELETED"?this.hasAclToAdmin()?be(!0):Om(a.lastCommentEditorUser)!==this.activeSession.getUserEmail()?be(!1):this.hasAclToComment$:be(!1)};h.canDeleteComment=function(a){return yo(a)&&a.commentDeletionStatus==="ACTIVE"?Rm(a.userPerformingActionUser)===this.activeSession.getUserEmail()?be(!0):this.hasAclToAdmin$:be(!1)};
h.canEditComment$=function(a){var b=this;return he([this.issueDetailsBrain.component$,this.hasAclToEdit$,this.hasAclToComment$]).pipe(A(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&&Rm(a.userPerformingActionUser)===b.activeSession.getUserEmail():!1}))};
h.canDeleteAttachment$=function(a,b){return a?(a=a.entityStatus)&&"ACTIVE"===a.status?MP(this,b)?be(!0):this.hasAclToAdmin$:be(!1):be(!1)};h.canUndeleteAttachment$=function(a,b){return a?(a=a.entityStatus)&&"DELETED"===a.status?MP(this,b)?be(!0):this.hasAclToAdmin$:be(!1):be(!1)};NP.\u0275fac=function(a){return new (a||NP)};NP.\u0275prov=Cc({token:NP,factory:NP.\u0275fac,providedIn:"root"});var OP=function(a){a=a===void 0?[]:a;this.internalValue$=new Xj(new Set);this.value$=this.internalValue$.asObservable().pipe(A(function(b){return new Set(b)}),of(Gm),wf({refCount:!0,bufferSize:1}));this.reset(a)};h=OP.prototype;h.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)};
h.add=function(){for(var a=l(Yc.apply(0,arguments)),b=a.next();!b.done;b=a.next())this.value.add(b.value);this.internalValue$.next(this.value);return this};h.clear=function(){this.value.clear();this.internalValue$.next(this.value)};h.delete=function(a){a=this.value.delete(a);this.internalValue$.next(this.value);return a};h.has=function(a){return this.value.has(a)};var Cs=function(a,b){return a.internalValue$.pipe(A(function(c){return c.has(b)}),of())};OP.prototype[Symbol.iterator]=function(){return this.value.values()};
OP.prototype.toString=function(){return"[ReactiveSet](["+[].concat(n(this.value.values())).join(", ")+"])"};OP.prototype.indexOf=function(a){return[].concat(n(this.value.values())).indexOf(a)};
da.Object.defineProperties(OP.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(A(function(a){return a.size}),of())}}});var PP={},Xpd=(PP.ISSUE_DEDUPLICATION=new Set(["VERY_HIGH"]),PP.ISSUE_DEDUPLICATION_BATCH=new Set(["VERY_HIGH"]),PP.NEEDS_INFO=new Set(["VERY_HIGH"]),PP.COMPONENT_ROUTING=new Set(["VERY_HIGH"]),PP.HOTLIST=new Set(["VERY_HIGH"]),PP.ANY_ISSUE_EDIT=new Set(["VERY_HIGH"]),PP.TYPE_UNSPECIFIED=new Set([]),PP),QP=function(){this.activeSession=q(Zu);this.issuePermissionService=q(NP);this.issueFridge=q(GO);this.issueRecommendationFridge=q(TO);this.refreshMonitor=q(DO);this.hiddenRecommendationIds=new OP},
Zpd=function(a,b){return EO(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-ISSUE_DEDUPLICATION")}).pipe(zf(function(c){return Ypd(a,c==null?void 0:c.recommendations)}))},$pd=function(a,b){return EO(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-ISSUE_DEDUPLICATION_BATCH")}).pipe(zf(function(c){return Ypd(a,c==null?void 0:c.recommendations)}))},aqd=function(a,b){return EO(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-NEEDS_INFO")}).pipe(zf(function(c){return Ypd(a,
c==null?void 0:c.recommendations)}))},bqd=function(a,b){return EO(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-COMPONENT_ROUTING")}).pipe(zf(function(c){var d=h8a(a.activeSession),e;c=((e=c==null?void 0:c.recommendations)!=null?e:[]).filter(function(f){return f.source!==d});return Ypd(a,c)}))},cqd=function(a,b){return EO(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-ANY_ISSUE_EDIT")}).pipe(zf(function(c){return Ypd(a,c==null?void 0:c.recommendations)}))},
eqd=function(a,b){return EO(a.refreshMonitor,function(){return und(a.issueRecommendationFridge,b)}).pipe(zf(function(c){c=c.flatMap(function(d){var e;return(e=d==null?void 0:d.recommendations)!=null?e:[]});return c.length===0?be([]):he(c.map(function(d){return dqd(a,d).pipe(A(function(e){return e?d:void 0}))})).pipe(A(function(d){return d.filter(ln)}))}))},Ypd=function(a,b){if(!b||!b.length)return be(void 0);b=b.map(function(c){return dqd(a,c).pipe(A(function(d){return d?c:void 0}))});return he(b).pipe(A(function(c){return c.filter(ln)[0]}))},
dqd=function(a,b){if(!a.activeSession.isInternalSession())return be(!1);var c=Xpd[b.type];if(!c||!c.has(b.confidence))return be(!1);c=os(b.resource);if(!c)return be(!1);c=a.issueFridge.watch(c);return he([c,a.issuePermissionService.hasAclToEdit$,Cs(a.hiddenRecommendationIds,b.name)]).pipe(A(function(d){var e=l(d);d=e.next().value;var f=e.next().value;e=e.next().value;return fqd(a,{recommendation:b,hasAclToEdit:f,issue:d,shouldHide:e})}))},fqd=function(a,b){var c=b.recommendation;var d=b.hasAclToEdit;
var e=b.issue;if(!d||b.shouldHide)return!1;switch(c.type){case "ISSUE_DEDUPLICATION":var f;return Bo(e)&&!!(c==null?0:(f=c.content)==null?0:f.recommendedIssue);case "HOTLIST":return!0;case "ISSUE_DEDUPLICATION_BATCH":var g;return Bo(e)&&!!(c==null?0:(g=c.content)==null?0:g.issueDeduplicationBatch);case "NEEDS_INFO":if(!a.activeSession.getFlag("enableNeedsInfoUi"))return!1;var k,m;return((k=c.content)==null?0:(m=k.issueModification)==null?0:m.addState)&&Rm(z7a(e))!==Rm(c.content.issueModification.addState.assigneeUser)?
!0:!1;case "COMPONENT_ROUTING":var r,w;return((r=c.content)==null?0:(w=r.issueModification)==null?0:w.addState)&&c.content.issueModification.addState.componentId!==e.snapshot[0].componentId?!0:!1;case "ANY_ISSUE_EDIT":if(!a.activeSession.getFlag("enablePlaybook")&&!a.activeSession.getFlag("enableTriageClientM1"))return!1;var x,D,H,J;return((x=c.content)==null?0:(D=x.issueModification)==null?0:D.addState)||((H=c.content)==null?0:(J=H.issueModification)==null?0:J.removeState)?!0:!1;default:return!1}};
QP.\u0275fac=function(a){return new (a||QP)};QP.\u0275prov=Cc({token:QP,factory:QP.\u0275fac,providedIn:"root"});var RP=function(){this.activeSession=q(Zu);this.butterBar=q(JM);this.teamExperimentalFieldsFridge=q(FP);this.duckieService=q(OM);this.errorHandler=q(ZM);this.issueFridge=q(GO);this.recommendationsApi=q(WM);this.recommendationTriggerService=q(QP);this.executionCache=new Xj(new Map);this.sourceId=this.activeSession.getEnvironmentType()==="QA"?"1109":"1463"},hqd=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return gqd(a),z(e,a.teamExperimentalFieldsFridge.updateOrInsert("8953708121",
function(f){if(f.playbooks.some(function(g){return g.searchQuery===b.searchQuery}))throw Error("ue");f.playbooks.push(b)}),2);c=e.yieldResult;d=zba(c.playbooks,function(f){return f.searchQuery===b.searchQuery});if(!d)throw Error("ve");return e.return(d)})},iqd=function(a,b){return a.teamExperimentalFieldsFridge.watch("8953708121").pipe(A(function(c){return c==null?void 0:c.playbooks.find(function(d){return d.searchQuery===b})}))},jqd=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return gqd(a),
z(e,a.teamExperimentalFieldsFridge.updateOrInsert("8953708121",function(f){if(!f.playbooks.some(function(g){return g.searchQuery===b.searchQuery}))throw Error("we");f.playbooks=f.playbooks.map(function(g){return g.searchQuery===b.searchQuery?b:g})}),2);c=e.yieldResult;d=c.playbooks.find(function(f){return f.searchQuery===b.searchQuery});if(!d)throw Error("ve");return e.return(d)})},nqd=function(a,b,c){var d,e,f,g,k,m,r;return y(function(w){switch(w.nextAddress){case 1:gqd(a);if(!b.instructions)throw Error("xe");
if(!b.searchQuery)throw Error("ye");if(!c.length)return w.return([]);d="Triage these bugs: "+c.join(", ")+"\nwith playbook:\n===Start Of Playbook===\n"+b.instructions+"\n===End Of Playbook===";Vd(w,2);return z(w,ee(a.duckieService.generateAnswers(d)),4);case 4:return e=w.yieldResult,f=e.response,g=aXa(f,a.sourceId),z(w,kqd(a,g),5);case 5:k=w.yieldResult;if(!a.activeSession.getFlag("clearExistingRecommendations")){w.jumpTo(6);break}return z(w,lqd(a,c),6);case 6:return z(w,mqd(a,k,b.searchQuery),8);
case 8:m=w.yieldResult;var x=m.length;fs(a.butterBar,x===0?"Playbook execution complete. No recommendations generated.":"Playbook execution complete. Generated "+x+" recommendation(s).");return w.return(m);case 2:return r=Zd(w),r instanceof Error&&(console.error(r),$M(a.errorHandler,"Error connecting to Duckie. Please try again.")),w.return([])}})},mqd=function(a,b,c){var d,e;return y(function(f){if(f.nextAddress==1)return z(f,oqd(a,b),2);d=f.yieldResult;e=d.recommendations;a.executionCache.value.set(c,
wo(e,function(g){return os(g.resource)}));a.executionCache.next(a.executionCache.value);return f.return(e)})},pqd=function(a,b,c){return a.executionCache.pipe(mf(1),zf(function(d){var e;return(d=(e=d.get(c))==null?void 0:e.get(b))?be(d):cqd(a.recommendationTriggerService,b)}),zf(function(d){return d?Cs(a.recommendationTriggerService.hiddenRecommendationIds,d.name).pipe(A(function(e){return e?void 0:d})):be(void 0)}))},oqd=function(a,b){var c,d;return y(function(e){c=b.filter(function(f){return f.type===
"ANY_ISSUE_EDIT"});if(c.length===0)return e.return({recommendations:[]});d=c.map(function(f){return{parent:"recommendationSources/"+a.sourceId,type:"ANY_ISSUE_EDIT",resource:f.resource,recommendations:[f]}});return e.return(a.recommendationsApi.batchReplaceRecommendations({parent:"recommendationSources/"+a.sourceId,type:"ANY_ISSUE_EDIT",requests:d}))})},gqd=function(a){if(!a.teamExperimentalFieldsFridge.isEnabled)throw Error("ze");},lqd=function(a,b){var c;return y(function(d){c=b.map(function(e){return{parent:"recommendationSources/"+
a.sourceId,type:"ANY_ISSUE_EDIT",resource:"issues/"+e,recommendations:[]}});return z(d,a.recommendationsApi.batchReplaceRecommendations({parent:"recommendationSources/"+a.sourceId,type:"ANY_ISSUE_EDIT",requests:c}),0)})},kqd=function(a,b){return y(function(c){return c.nextAddress==1?z(c,Promise.all(b.map(function(d){return y(function(e){return e.return(qqd(a,d))})})),2):c.return(c.yieldResult.filter(ln))})},qqd=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1)return(c=os(b.resource))?
z(f,ee(a.issueFridge.watch(c)),2):f.return(void 0);d=f.yieldResult;e=YWa(b,d);return f.return(XWa(e)?void 0:e)})};RP.\u0275fac=function(a){return new (a||RP)};RP.\u0275prov=Cc({token:RP,factory:RP.\u0275fac,providedIn:"root"});var rqd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(rqd,X);h=rqd.prototype;h.getFormattingMode=function(){return Ri(this,1)};h.setFormattingMode=function(a){return cn(this,1,a)};h.getSource=function(){return Fi(this,2)};h.setSource=function(a){return $m(this,2,a)};h.getIssueId=function(){return Hn(this,3)};h.getIssueId_asString=function(){return Ln(this,3)};h.setIssueId=function(a){return ap(this,3,a)};h.getIdPrefix=function(){return Fi(this,4)};
h.setIdPrefix=function(a){return $m(this,4,a)};var sqd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,sqd.messageId)};Z(sqd,X);sqd.prototype.getIt=function(){return Y(this,rqd,8,fb)};sqd.prototype.setIt=function(a){return hj(this,rqd,8,a,fb)};sqd.messageId="b.FormatCommentRequest";var SP=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(SP,X);SP.prototype.getFormattedComment=function(){return Y(this,Cp,1)};SP.prototype.setFormattedComment=function(a){hj(this,Cp,1,a)};SP.prototype.hasFormattedComment=function(){return Si(this,Cp,1)};SP.prototype.getMentionsList=function(a){return Wi(this,Cgd,2,Xi(a))};var tqd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,tqd.messageId)};Z(tqd,X);tqd.prototype.getIt=function(){return Y(this,SP,3,fb)};tqd.prototype.setIt=function(a){return hj(this,SP,3,a,fb)};tqd.messageId="b.FormatCommentResponse";var TP=function(){this.executor=q(RM);this.activeSession=q(Zu)};TP.prototype.format=function(a){return a.formattingMode==="LITERAL"||a.comment.trim()===""?k8a(a):uqd(this,a).pipe(A(j8a))};
var uqd=function(a,b){var c,d=(new rqd).setFormattingMode(Dp(b.formattingMode)).setSource(b.comment).setIssueId((c=gn(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=$m(d,5,c);b=cn(d,6,ehd[b.audience]);return a.executor.post({url:"action/formatComment",body:(new sqd).setIt(b),responseConstructor:tqd})};
TP.\u0275fac=function(a){return new (a||TP)};TP.\u0275prov=Cc({token:TP,factory:TP.\u0275fac,providedIn:"root"});var vqd=function(){this.executor=q(RM)},wqd=function(a,b){return a.executor.post({url:"action/current_user/preferences",responseConstructor:Vn,body:$Ua(b)}).pipe(A(function(c){return sUa(c)}))};vqd.\u0275fac=function(a){return new (a||vqd)};vqd.\u0275prov=Cc({token:vqd,factory:vqd.\u0275fac,providedIn:"root"});var VP=function(){var a=this;this.userPreferencesManagerBase=q(UP);this.activeSession=q(Zu);this.destroyed$=new vf(1);this.preferencesSubject$=this.userPreferencesManagerBase.preferences$;this.preferences$=this.preferencesSubject$.pipe(A(Hm));this.commentFormattingPreferences$=this.preferences$.pipe(A(function(b){return b.commentFormattingPreferences||{}}));this.lastPublishFormattingMode$=this.commentFormattingPreferences$.pipe(A(function(b){var c;return(c=b.lastPublishMode)!=null?c:"UNSPECIFIED_FORMATTING_MODE"}),
of());this.commentCreateOverride$=this.commentFormattingPreferences$.pipe(A(function(b){return b.commentCreateOverride}),A(function(b){return b==="UNSPECIFIED_FORMATTING_MODE"?void 0:b}),of());this.isCommentCreateOverrideSet$=this.commentCreateOverride$.pipe(A(function(b){return b==="LITERAL"}),of());this.commentDisplayOverride$=this.commentFormattingPreferences$.pipe(A(function(b){return b.commentDisplayOverride}),A(function(b){return b==="UNSPECIFIED_FORMATTING_MODE"?void 0:b}),of());this.isCommentDisplayOverrideSet$=
this.commentDisplayOverride$.pipe(A(function(b){return b==="LITERAL"}),of());this.currentCommentFormattingMode$=he([this.isCommentCreateOverrideSet$,this.lastPublishFormattingMode$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b&&a.activeSession.isInternalSession()?"LITERAL":c}));this.isCreateCommentFormatLiteral$=this.currentCommentFormattingMode$.pipe(A(function(b){return b==="LITERAL"}));this.themePreferences$=this.preferences$.pipe(A(function(b){var c;return(c=b.themePreferences)!=
null?c:Hm(BM.themePreferences)}),Qr());this.listViewPreferences$=this.preferences$.pipe(A(function(b){var c;return(c=b.listViewPreferences)!=null?c:Hm(BM.listViewPreferences)}),Qr());this.layoutPreferences$=this.preferences$.pipe(A(function(b){return a.getLayoutPreferences(b)}),Qr());this.dateTimePreferences$=this.preferences$.pipe(A(function(b){var c;return(c=b.dateTimePreferences)!=null?c:Hm(BM.dateTimePreferences)}),Qr());this.homepagePreferences$=this.preferences$.pipe(A(function(b){return a.getHomepagePreferences(b)}),
Qr());this.keyboardPrefs$=this.preferences$.pipe(A(function(b){var c;return(c=b.keyboardPreferences)!=null?c:Hm(BM.keyboardPreferences)}),Qr());this.displayColumnsPreferences$=this.preferences$.pipe(A(function(b){var c,d;return(d=(c=b.displayColumns)==null?void 0:c.column)!=null?d:[]}),Qr());this.sortColumnsPreferences$=this.preferences$.pipe(A(function(b){var c,d;return(d=(c=b.sortColumns)==null?void 0:c.column)!=null?d:[]}),Qr());this.bugScreensaverPreferences$=this.preferences$.pipe(A(function(b){var c;
return(c=b.bugScreensaverPreferences)!=null?c:Hm(BM.bugScreensaverPreferences)}),Qr());this.teamWarningPreferences$=this.preferences$.pipe(A(function(b){var c;return(c=b.teamWarningPreferences)!=null?c:Hm(BM.teamWarningPreferences)}),Qr());this.commentFilterPreferences$=this.preferences$.pipe(A(function(b){var c;return(c=b.commentFilterPreferences)!=null?c:Hm(BM.commentFilterPreferences)}),Qr());this.codeFont$=this.preferences$.pipe(A(function(b){return!!b.useCodefont}),of());this.autoCcOnComment$=
this.preferences$.pipe(A(function(b){var c;return(c=b.autoCcOnComment)!=null?c:!1}),of());this.showFullHistory$=this.preferences$.pipe(A(function(b){return!!b.showFullHistory}),of());this.resultsPerPage$=this.preferences$.pipe(A(function(b){var c;return(c=b.resultsPerPage)!=null?c:BM.resultsPerPage}),of());this.showRecentEventsFirst$=this.preferences$.pipe(A(function(b){return!!b.showRecentEventsFirst}),of());this.showInlineImages$=this.preferences$.pipe(A(function(b){var c;return(c=b.showInlineImages)!=
null?c:BM.showInlineImages}),of())};VP.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};VP.prototype.save=function(a){return this.userPreferencesManagerBase.save(a)};
var xqd=function(a,b){b=Object.assign({},a.getLayoutPreferences(a.preferencesSubject$.value),b);return a.save({layoutPreferences:b}).pipe(A(a.getLayoutPreferences))},yqd=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1)return b==="LITERAL"?f.return():z(f,ee(a.preferences$),2);c=f.yieldResult;if(((d=c.commentFormattingPreferences)==null?void 0:d.lastPublishMode)===b)return f.return();e=Object.assign({},c.commentFormattingPreferences||{},{lastPublishMode:b});return z(f,ee(a.save({commentFormattingPreferences:e})),
0)})},zqd=function(a,b){return a.save({homepagePreferences:b}).pipe(A(a.getHomepagePreferences))};VP.prototype.getDateTimePreferences=function(){var a;return(a=(void 0).dateTimePreferences)!=null?a:Hm(BM.dateTimePreferences)};var Aqd=function(a,b){b=Object.assign({},a.preferencesSubject$.value.collapsed,b);return a.save({collapsed:b})},Bqd=function(a,b){var c;return(c=a.preferencesSubject$.value.collapsed)==null?void 0:c[b]};
VP.prototype.saveResultsPerPage=function(a){return this.save({resultsPerPage:a}).pipe(A(function(b){var c;return(c=b.resultsPerPage)!=null?c:BM.resultsPerPage}))};var Cqd=function(a,b){return a.save({displayColumns:{column:b}}).pipe(A(function(c){var d,e;return(e=(d=c.displayColumns)==null?void 0:d.column)!=null?e:[]}))};VP.prototype.saveSortColumns=function(a){return this.save({sortColumns:{column:a}}).pipe(A(function(b){var c,d;return(d=(c=b.sortColumns)==null?void 0:c.column)!=null?d:[]}))};
var Dqd=function(a,b){return a.save({teamWarningPreferences:b}).pipe(A(function(c){var d;return(d=c.teamWarningPreferences)!=null?d:Hm(BM.teamWarningPreferences)}))};VP.prototype.getLayoutPreferences=function(a){var b;return(b=a.layoutPreferences)!=null?b:Hm(BM.layoutPreferences)};VP.prototype.getHomepagePreferences=function(a){var b;return(b=a.homepagePreferences)!=null?b:Hm(BM.homepagePreferences)};var WP=function(a){return Hm(a.preferencesSubject$.getValue())};
VP.\u0275fac=function(a){return new (a||VP)};VP.\u0275prov=Cc({token:VP,factory:VP.\u0275fac,providedIn:"root"});var UP=function(){this.activeSession=q(Zu);this.userPreferencesResources=q(vqd);this.preferences$=new Xj(Hm(BM));var a=this.preferences$.value,b=this.activeSession.getUserPreferences();b&&(a=Object.assign({},a,b),Eqd(a));this.preferences$.next(a)};
UP.prototype.save=function(a){var b=this;return this.activeSession.isAnonymous()?be(Fqd(this,a)):wqd(this.userPreferencesResources,a).pipe(A(function(){return Fqd(b,a)}))};
var Fqd=function(a,b){var c=Hm(a.preferences$.value);c=Object.assign({},c,b);Eqd(c);a.preferences$.next(c);return c},Eqd=function(a){a.dateTimePreferences&&(a.dateTimePreferences.calendarFormat||(a.dateTimePreferences.calendarFormat=BM.dateTimePreferences.calendarFormat),a.dateTimePreferences.timeFormat||(a.dateTimePreferences.timeFormat=BM.dateTimePreferences.timeFormat),a.dateTimePreferences.sloEtaViewAs||(a.dateTimePreferences.sloEtaViewAs=BM.dateTimePreferences.sloEtaViewAs));!a.notificationPreferences||
a.notificationPreferences.collaboratorPriority&&a.notificationPreferences.collaboratorPriority!=="UNKNOWN_PRIORITY"||(a.notificationPreferences.collaboratorPriority=BM.notificationPreferences.collaboratorPriority)};UP.\u0275fac=function(a){return new (a||UP)};UP.\u0275prov=Cc({token:UP,factory:UP.\u0275fac,providedIn:"root"});var XP=function(){this.userPreferencesManager=q(VP);this.codefont$=this.userPreferencesManager.codeFont$};XP.\u0275fac=function(a){return new (a||XP)};XP.\u0275prov=Cc({token:XP,factory:XP.\u0275fac,providedIn:"root"});var Gqd=new bd("formatting mode",{factory:function(){return"UNSPECIFIED_FORMATTING_MODE"}});var Hqd=["child"],YP=function(){this.codefont=q(XP)};YP.prototype.ngOnInit=function(){};YP.prototype.ngOnChanges=function(){qo(this.child.nativeElement,this.content.content)};YP.\u0275fac=function(a){return new (a||YP)};
YP.\u0275cmp=C({type:YP,selectors:[["b-literal-format-presenter"]],viewQuery:function(a,b){a&1&&kg(Hqd,7);if(a&2){var c;og(c=pg())&&(b.child=c.first)}},inputs:{content:"content"},features:[Ig([{provide:Gqd,useValue:"LITERAL"}]),Gx],decls:3,vars:4,consts:[["child",""],[1,"type-m","child"]],template:function(a,b){a&1&&(Uf(0,"div",1,0),U(2,"async"));a&2&&yg("codefont",W(2,2,b.codefont.codefont$))},dependencies:[py],styles:[".child[_ngcontent-%COMP%] { white-space: pre-wrap; }"],changeDetection:0});var ZP=new bd("buganizerWindow",{factory:function(){return window}});var $P=function(){this.window=q(ZP)};$P.prototype.openInNewTab=function(a){a=Bh(a);(0,Lh.windowOpen)(this.window,a,"_blank")};var Sr=function(a,b){b=Bh(b);(0,Lh.windowOpen)(a.window,b)},Iqd=function(a,b){(0,Lh.setLocationHref)(a.window.location,b)};$P.\u0275fac=function(a){return new (a||$P)};$P.\u0275prov=Cc({token:$P,factory:$P.\u0275fac,providedIn:"root"});var aQ=function(){};aQ.\u0275fac=function(a){return new (a||aQ)};aQ.\u0275cmp=C({type:aQ,selectors:[["b-glue"]],ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"no-wrapping"]],template:function(a){a&1&&(fg(),Sf(0,"span",0),gg(1),Tf())},styles:['.no-wrapping[_ngcontent-%COMP%] {\n  white-space: nowrap;\n}\n\n.no-wrapping[_ngcontent-%COMP%]::after {\n  content: "\\002060"\n}'],changeDetection:0});var Jqd=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)};Jqd.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};
Jqd.prototype.destroy=function(){var a=this._textarea;a&&(a.remove(),this._textarea=void 0)};var bQ=function(){this._document=q(Yh)};bQ.prototype.copy=function(a){a=new Jqd(a,this._document);var b=a.copy();a.destroy();return b};bQ.\u0275fac=function(a){return new (a||bQ)};bQ.\u0275prov=Cc({token:bQ,factory:bQ.\u0275fac,providedIn:"root"});new bd("CDK_COPY_TO_CLIPBOARD_CONFIG");var Kqd=["el"],cQ=function(){this.clipboard=q(bQ);this.snackBar=q(LD);this.domSafe=q($P);this.scrollStrategy=q(cA).close();this.opened=!1};cQ.prototype.getNgContentParentEl=function(){return this.el.nativeElement};cQ.prototype.hide=function(){this.opened=!1};cQ.prototype.copyToClipboard=function(){this.clipboard.copy(this.originalHref);this.snackBar.open("URL copied","",{duration:2E3})};cQ.\u0275fac=function(a){return new (a||cQ)};
cQ.\u0275cmp=C({type:cQ,selectors:[["b-broken-link"]],viewQuery:function(a,b){a&1&&kg(Kqd,7);if(a&2){var c;og(c=pg())&&(b.el=c.first)}},inputs:{originalHref:"originalHref"},ngContentSelectors:["*"],decls:8,vars:4,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","cdkConnectedOverlayScrollStrategy"],["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=t();fg();K(0,"a",2,0);N("click",function(d){u(c);d.preventDefault();d.stopPropagation();b.opened=!0;return v()});K(2,
"b-glue");M(3,"mat-icon",3);L();K(4,"span",null,1);gg(6);L()();E(7,n8a,1,1,"ng-template",4);N("overlayOutsideClick",function(){u(c);return v(b.hide())})("detach",function(){u(c);return v(b.hide())})}a&2&&(a=Q(1),B(7),I("cdkConnectedOverlayPush",!0)("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",b.opened)("cdkConnectedOverlayScrollStrategy",b.scrollStrategy))},dependencies:[tA,sA,uz,aQ,ZA,XA,TA,hK,iz,MA],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 Lqd=function(){this.checked=!1;this.disabled=!0;this.startPos="";this.checkedChange=new KO};Lqd.\u0275fac=function(a){return new (a||Lqd)};
Lqd.\u0275cmp=C({type:Lqd,selectors:[["b-checkbox-widget"]],inputs:{checked:"checked",disabled:"disabled",startPos:"startPos"},outputs:{checkedChange:"checkedChange"},decls:1,vars:2,consts:[[3,"change","disabled","checked"]],template:function(a,b){a&1&&(K(0,"mat-checkbox",0),N("change",function(c){return b.checkedChange.emit(c.checked)}),L());a&2&&I("disabled",b.disabled)("checked",b.checked)},dependencies:[PK,OK,wI],encapsulation:2,changeDetection:0});var u8a="entity agent_name agent_server_id borg_user borg_job cell task_index task_attempt_uid project_id resource.type start_time end_time rpc_server_service_name rpc_client_service_name lpc_service_name rpc_server_method_name rpc_client_method_name lpc_method_name status_code severity min_latency max_latency text_payload log_text_payload site_path has_sampled_trace snippet log_name process_name thread_id trace_id span_id job_uid local_process_id data_id label insert_id receive_timestamp".split(" "),
kca={EQUALS:"=",NOT_EQUALS:"!=",REGEX_MATCH:"=~",NOT_REGEX_MATCH:"!~",CONTAINS:":",LESS_THAN:"<",LESS_THAN_EQUALS:"<=",GREATER_THAN:">",GREATER_THAN_EQUALS:">="},s8a="entity agent_name agent_server_id 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 log_text_payload site_path snippet log_name process_name thread_id trace_id span_id job_uid local_process_id data_id label".split(" "),
r8a="start_time end_time min_latency max_latency severity status_code task_index task_attempt_uid receive_timestamp".split(" "),t8a=["has_sampled_trace"];var dQ=function(){this.changes=new rf;this.openCalendarLabel="Open calendar";this.closeCalendarLabel="Close calendar";this.prevMonthLabel="Previous month";this.nextMonthLabel="Next month";this.prevYearLabel="Previous year";this.nextYearLabel="Next year";this.prevMultiYearLabel="Previous 24 years";this.nextMultiYearLabel="Next 24 years";this.switchToMonthViewLabel="Choose date";this.switchToMultiYearViewLabel="Choose month and year";this.comparisonDateLabel="Comparison range"};
dQ.prototype.formatYearRange=function(a,b){return a+" \u2013 "+b};dQ.prototype.formatYearRangeLabel=function(a,b){return a+" to "+b};dQ.\u0275fac=function(a){return new (a||dQ)};dQ.\u0275prov=Cc({token:dQ,factory:dQ.\u0275fac,providedIn:"root"});var C8a=function(a,b){return b.id},Mqd=0,Nqd=function(a,b,c,d,e,f,g){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=g;this.id=Mqd++},Oqd={passive:!1,capture:!0},Pqd={passive:!0,capture:!0},Qqd={passive:!0},eQ=function(){var a=this;this._elementRef=q(Gd);this._ngZone=q(Tg);this._platform=q(bi);this._intl=q(dQ);this._focusActiveCellAfterViewChecked=!1;this.numCols=7;this.activeCell=0;this.isRange=!1;
this.cellAspectRatio=1;this.previewEnd=this.previewStart=null;this.selectedValueChange=new ui;this.previewChange=new ui;this.activeDateChange=new ui;this.dragStarted=new ui;this.dragEnded=new ui;this._didDragSinceMouseDown=!1;this._injector=q(xe);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=J8a(d),f=e?a._getCellFromElement(e):null;e!==d.target&&(a._didDragSinceMouseDown=!0);F8a(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=F8a(d.target);e?e.closest(".mat-calendar-body")===a._elementRef.nativeElement&&
a._ngZone.run(function(){var f=a._getCellFromElement(e),g;a.dragEnded.emit({value:(g=f==null?void 0:f.rawValue)!=null?g:null,event:d})}):a._ngZone.run(function(){a.dragEnded.emit({value:null,event:d})})}};this._touchendHandler=function(d){(d=J8a(d))&&a._mouseupHandler({target:d})};var b=q(ji),c=q(hi);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-");q(fi).load(BA);this._ngZone.runOutsideAngular(function(){var d=a._elementRef.nativeElement;d=[b.listen(d,"touchmove",a._touchmoveHandler,Oqd),b.listen(d,"mouseenter",a._enterHandler,Pqd),b.listen(d,"focus",a._enterHandler,Pqd),b.listen(d,"mouseleave",a._leaveHandler,Pqd),b.listen(d,"blur",a._leaveHandler,Pqd),b.listen(d,"mousedown",a._mousedownHandler,Qqd),b.listen(d,"touchstart",a._mousedownHandler,Qqd)];a._platform.isBrowser&&d.push(b.listen("window",
"mouseup",a._mouseupHandler),b.listen("window","touchend",a._touchendHandler));a._eventCleanups=d})};h=eQ.prototype;h.ngAfterViewChecked=function(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)};h._cellClicked=function(a,b){this._didDragSinceMouseDown||a.enabled&&this.selectedValueChange.emit({value:a.value,event:b})};h._emitActiveDateChange=function(a,b){a.enabled&&this.activeDateChange.emit({value:a.value,event:b})};
h._isSelected=function(a){return this.startValue===a||this.endValue===a};h.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+"%"};h.ngOnDestroy=function(){this._eventCleanups.forEach(function(a){return a()})};
h._isActiveCell=function(a,b){b=a*this.numCols+b;a&&(b-=this._firstRowOffset);return b==this.activeCell};h._focusActiveCell=function(a){var b=this;a=a===void 0?!0:a;De(function(){setTimeout(function(){var c=b._elementRef.nativeElement.querySelector(".mat-calendar-body-active");c&&(a||(b._skipNextFocus=!0),c.focus())})},{injector:this._injector})};h._scheduleFocusActiveCellAfterViewChecked=function(){this._focusActiveCellAfterViewChecked=!0};
h._isRangeStart=function(a){return G8a(a,this.startValue,this.endValue)};h._isRangeEnd=function(a){return H8a(a,this.startValue,this.endValue)};h._isInRange=function(a){return I8a(a,this.startValue,this.endValue,this.isRange)};h._isComparisonStart=function(a){return G8a(a,this.comparisonStart,this.comparisonEnd)};
h._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)};h._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)};
h._isComparisonEnd=function(a){return H8a(a,this.comparisonStart,this.comparisonEnd)};h._isInComparisonRange=function(a){return I8a(a,this.comparisonStart,this.comparisonEnd,this.isRange)};h._isComparisonIdentical=function(a){return this.comparisonStart===this.comparisonEnd&&a===this.comparisonStart};h._isPreviewStart=function(a){return G8a(a,this.previewStart,this.previewEnd)};h._isPreviewEnd=function(a){return H8a(a,this.previewStart,this.previewEnd)};
h._isInPreview=function(a){return I8a(a,this.previewStart,this.previewEnd,this.isRange)};
h._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};h._getCellFromElement=function(a){var b=F8a(a);if(b&&(a=b.getAttribute("data-mat-row"),b=b.getAttribute("data-mat-col"),a&&b)){var c;return((c=this.rows[parseInt(a)])==null?void 0:c[parseInt(b)])||null}return null};eQ.\u0275fac=function(a){return new (a||eQ)};
eQ.\u0275cmp=C({type:eQ,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:[Gx],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&&(F(0,z8a,3,6,"tr",0),Pf(1,D8a,4,1,"tr",1,y8a,!0),K(3,"span",2),S(4),L(),K(5,"span",2),S(6),L(),K(7,"span",2),S(8),L(),K(9,"span",2),S(10),
L());a&2&&(G(b._firstRowOffset<b.labelMinRequiredCells?0:-1),B(),Qf(b.rows),B(2),I("id",b._startDateLabelId),B(),T(" ",b.startDateAccessibleName,"\n"),B(),I("id",b._endDateLabelId),B(),T(" ",b.endDateAccessibleName,"\n"),B(),I("id",b._comparisonStartDateLabelId),B(),Bg(" ",b.comparisonDateAccessibleName," ",b.startDateAccessibleName,"\n"),B(),I("id",b._comparisonEndDateLabelId),B(),Bg(" ",b.comparisonDateAccessibleName," ",b.endDateAccessibleName,"\n"))},dependencies:[hy],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;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 fQ=function(a,b){this.selection=a;this._adapter=b;this.selectionChanged=this._selectionChanged=new rf;this.selection=a};fQ.prototype.updateSelection=function(a,b){var c=this.selection;this.selection=a;this._selectionChanged.next({selection:a,source:b,oldValue:c})};fQ.prototype.ngOnDestroy=function(){this._selectionChanged.complete()};fQ.prototype._isValidDateInstance=function(a){return AHc(a)&&this._adapter.isValid(a)};fQ.\u0275fac=function(){We()};fQ.\u0275prov=Cc({token:fQ,factory:fQ.\u0275fac});
var gQ=function(a){fQ.call(this,null,a)};Z(gQ,fQ);gQ.prototype.add=function(a){fQ.prototype.updateSelection.call(this,a,this)};gQ.prototype.isValid=function(){return this.selection!=null&&this._isValidDateInstance(this.selection)};gQ.prototype.isComplete=function(){return this.selection!=null};gQ.prototype.clone=function(){var a=new gQ(this._adapter);a.updateSelection(this.selection,this);return a};gQ.\u0275fac=function(a){return new (a||gQ)(Wc(vA))};gQ.\u0275prov=Cc({token:gQ,factory:gQ.\u0275fac});
var Rqd={provide:fQ,useFactory:function(){return q(fQ,{optional:!0,skipSelf:!0})||new gQ(q(vA))}};var Sqd=new bd("MAT_DATE_RANGE_SELECTION_STRATEGY");var Tqd=function(a,b){return b.id},Uqd=0,hQ=function(){this._changeDetectorRef=q(Yx);this._dateFormats=q(zA,{optional:!0});this._dateAdapter=q(vA,{optional:!0});this._dir=q(ii,{optional:!0});this._rangeStrategy=q(Sqd,{optional:!0});this._rerenderSubscription=Od.EMPTY;this.activeDrag=null;this.selectedChange=new ui;this._userSelection=new ui;this.dragStarted=new ui;this.dragEnded=new ui;this.activeDateChange=new ui;this._monthLabel=qg.apply(null,[""].concat(n([])));this._weeks=qg.apply(null,[[]].concat(n([])));
this._firstWeekOffset=qg.apply(null,[0].concat(n([])));this._rangeStart=qg.apply(null,[null].concat(n([])));this._rangeEnd=qg.apply(null,[null].concat(n([])));this._comparisonRangeStart=qg.apply(null,[null].concat(n([])));this._comparisonRangeEnd=qg.apply(null,[null].concat(n([])));this._previewStart=qg.apply(null,[null].concat(n([])));this._previewEnd=qg.apply(null,[null].concat(n([])));this._isRange=qg.apply(null,[!1].concat(n([])));this._todayDate=qg.apply(null,[null].concat(n([])));this._weekdays=
qg.apply(null,[[]].concat(n([])));q(fi).load(gz);this._activeDate=new Dm};h=hQ.prototype;h.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(yf(null)).subscribe(function(){return a._init()})};h.ngOnChanges=function(a){var b=a.comparisonStart||a.comparisonEnd;b&&!b.firstChange&&this._setRanges(this.selected);a.activeDrag&&!this.activeDrag&&this._clearPreview()};h.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};
h._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()};h._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(a.value);yA(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this._activeDate)};
h._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=iQ(this._activeDate,c?1:-1);break;case 39:this.activeDate=iQ(this._activeDate,c?-1:1);break;case 38:this.activeDate=iQ(this._activeDate,-7);break;case 40:this.activeDate=iQ(this._activeDate,7);break;case 36:this.activeDate=iQ(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=iQ(this._activeDate,lYc(this._activeDate)-this._dateAdapter.getDate(this._activeDate));
break;case 33:this.activeDate=a.altKey?jQ(this._activeDate,-1):kQ(this._activeDate,-1);break;case 34:this.activeDate=a.altKey?jQ(this._activeDate,1):kQ(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0;this._canSelect(this._activeDate)&&a.preventDefault();return;case 27:this._previewEnd()==null||Nh(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}yA(this._dateAdapter,b,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked());a.preventDefault()};h._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};
h._init=function(){this._setRanges(this.selected);this._todayDate.set(this._getCellCompareValue(new Dm));this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.locale.SHORTMONTHS[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());var a=lQ(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((7+a.getDay()-this._dateAdapter.getFirstDayOfWeek())%
7);this._initWeekdays();this._createWeekCells();this._changeDetectorRef.markForCheck()};h._focusActiveCell=function(a){this._matCalendarBody._focusActiveCell(a)};h._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};
h._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.set(this._getCellCompareValue(c.start));this._previewEnd.set(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.set(this._getCellCompareValue(c.start)),this._previewEnd.set(this._getCellCompareValue(c.end))}}};
h._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})};h._getDateFromDayOfMonth=function(a){return lQ(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),a)};
h._initWeekdays=function(){var a=this._dateAdapter.getFirstDayOfWeek(),b=Vqd(this._dateAdapter,"narrow"),c=Vqd(this._dateAdapter,"long").map(function(d,e){return{long:d,narrow:b[e],id:Uqd++}});this._weekdays.set(c.slice(a).concat(c.slice(0,a)))};
h._createWeekCells=function(){for(var a=lYc(this.activeDate),b=Wqd,c=[[]],d=0,e=this._firstWeekOffset();d<a;d++,e++){e==7&&(c.push([]),e=0);var f=lQ(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),d+1),g=this._shouldEnableDate(f),k=this._dateAdapter.format(f,this._dateFormats.display.dateA11yLabel),m=this.dateClass?this.dateClass(f,"month"):void 0;c[c.length-1].push(new Nqd(d+1,b[d],k,g,m,this._getCellCompareValue(f),f))}this._weeks.set(c)};
h._shouldEnableDate=function(a){return!!a&&(!this.minDate||yA(this._dateAdapter,a,this.minDate)>=0)&&(!this.maxDate||yA(this._dateAdapter,a,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(a))};h._getDateInCurrentMonth=function(a){return a&&this._hasSameMonthAndYear(a,this.activeDate)?this._dateAdapter.getDate(a):null};h._hasSameMonthAndYear=function(a,b){return!(!a||!b||this._dateAdapter.getMonth(a)!=this._dateAdapter.getMonth(b)||this._dateAdapter.getYear(a)!=this._dateAdapter.getYear(b))};
h._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};h._isRtl=function(){return this._dir&&this._dir.value==="rtl"};h._setRanges=function(a){this._rangeStart.set(this._getCellCompareValue(a));this._rangeEnd.set(this._rangeStart());this._isRange.set(!1);this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart));this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))};
h._canSelect=function(a){return!this.dateFilter||this.dateFilter(a)};h._clearPreview=function(){this._previewStart.set(null);this._previewEnd.set(null)};
da.Object.defineProperties(hQ.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=wA(this._dateAdapter,xA(this._dateAdapter,a))||new Dm;this._activeDate=BHc(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=wA(this._dateAdapter,xA(this._dateAdapter,a));
this._setRanges(this._selected)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=wA(this._dateAdapter,xA(this._dateAdapter,a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=wA(this._dateAdapter,xA(this._dateAdapter,a))}}});hQ.\u0275fac=function(a){return new (a||hQ)};
hQ.\u0275cmp=C({type:hQ,selectors:[["mat-month-view"]],viewQuery:function(a,b){a&1&&kg(eQ,5);if(a&2){var c;og(c=pg())&&(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:[Gx],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&&(K(0,"table",0)(1,"thead",1)(2,"tr"),Pf(3,K8a,5,2,"th",2,Tqd),L(),K(5,"tr",3),M(6,"th",4),L()(),K(7,"tbody",5),N("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)}),L()());a&2&&(B(3),Qf(b._weekdays()),B(4),I("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:[eQ],encapsulation:2,changeDetection:0});var mQ=function(){this._changeDetectorRef=q(Yx);this._dateAdapter=q(vA,{optional:!0});this._dir=q(ii,{optional:!0});this._rerenderSubscription=Od.EMPTY;this.selectedChange=new ui;this.yearSelected=new ui;this.activeDateChange=new ui;this._years=qg.apply(null,[[]].concat(n([])));this._todayYear=qg.apply(null,[0].concat(n([])));this._selectedYear=qg.apply(null,[null].concat(n([])));this._activeDate=new Dm};h=mQ.prototype;h.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(yf(null)).subscribe(function(){return a._init()})};
h.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};h._init=function(){var a=this;this._todayYear.set(this._dateAdapter.getYear(new Dm));for(var b=this._dateAdapter.getYear(this._activeDate)-N8a(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),c=[],d=0,e=[];d<24;d++)e.push(b+d),e.length==4&&(c.push(e.map(function(f){return a._createCellForYear(f)})),e=[]);this._years.set(c);this._changeDetectorRef.markForCheck()};
h._yearSelected=function(a){var b=a.value;a=lQ(b,0,1);b=this._getDateFromYear(b);this.yearSelected.emit(a);this.selectedChange.emit(b)};h._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromYear(a.value);yA(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate)};
h._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=jQ(this._activeDate,c?1:-1);break;case 39:this.activeDate=jQ(this._activeDate,c?-1:1);break;case 38:this.activeDate=jQ(this._activeDate,-4);break;case 40:this.activeDate=jQ(this._activeDate,4);break;case 36:this.activeDate=jQ(this._activeDate,-N8a(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=jQ(this._activeDate,24-N8a(this._dateAdapter,
this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=jQ(this._activeDate,a.altKey?-240:-24);break;case 34:this.activeDate=jQ(this._activeDate,a.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}yA(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate);this._focusActiveCellAfterViewChecked();a.preventDefault()};
h._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};h._getActiveCell=function(){return N8a(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)};h._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()};h._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};
h._getDateFromYear=function(a){var b=this._dateAdapter.getMonth(this.activeDate);var c=lQ(a,b,1);c=lYc(c);return lQ(a,b,Math.min(this._dateAdapter.getDate(this.activeDate),c))};h._createCellForYear=function(a){var b=lQ(a,0,1),c=""+b.getFullYear();b=this.dateClass?this.dateClass(b,"multi-year"):void 0;return new Nqd(a,c,c,this._shouldEnableYear(a),b)};
h._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=lQ(a,0,1);this._dateAdapter.getYear(b)==a;b=iQ(b,1))if(this.dateFilter(b))return!0;return!1};h._isRtl=function(){return this._dir&&this._dir.value==="rtl"};h._setSelectedYear=function(a){this._selectedYear.set(null);a&&this._selectedYear.set(this._dateAdapter.getYear(a))};
da.Object.defineProperties(mQ.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=wA(this._dateAdapter,xA(this._dateAdapter,a))||new Dm;this._activeDate=BHc(this._dateAdapter,a,this.minDate,this.maxDate);M8a(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=wA(this._dateAdapter,xA(this._dateAdapter,
a));this._setSelectedYear(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=wA(this._dateAdapter,xA(this._dateAdapter,a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=wA(this._dateAdapter,xA(this._dateAdapter,a))}}});mQ.\u0275fac=function(a){return new (a||mQ)};
mQ.\u0275cmp=C({type:mQ,selectors:[["mat-multi-year-view"]],viewQuery:function(a,b){a&1&&kg(eQ,5);if(a&2){var c;og(c=pg())&&(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&&(K(0,"table",0)(1,"thead",1)(2,"tr"),M(3,"th",2),L()(),K(4,"tbody",3),N("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)}),L()());a&2&&(B(4),I("rows",b._years())("todayValue",b._todayYear())("startValue",b._selectedYear())("endValue",b._selectedYear())("numCols",4)("cellAspectRatio",4/7)("activeCell",b._getActiveCell()))},dependencies:[eQ],encapsulation:2,changeDetection:0});var nQ=function(){this._changeDetectorRef=q(Yx);this._dateFormats=q(zA,{optional:!0});this._dateAdapter=q(vA,{optional:!0});this._dir=q(ii,{optional:!0});this._rerenderSubscription=Od.EMPTY;this.selectedChange=new ui;this.monthSelected=new ui;this.activeDateChange=new ui;this._months=qg.apply(null,[[]].concat(n([])));this._yearLabel=qg.apply(null,[""].concat(n([])));this._todayMonth=qg.apply(null,[null].concat(n([])));this._selectedMonth=qg.apply(null,[null].concat(n([])));this._activeDate=new Dm};
h=nQ.prototype;h.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(yf(null)).subscribe(function(){return a._init()})};h.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};h._monthSelected=function(a){a=a.value;var b=lQ(this._dateAdapter.getYear(this.activeDate),a,1);this.monthSelected.emit(b);a=this._getDateFromMonth(a);this.selectedChange.emit(a)};
h._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromMonth(a.value);yA(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate)};
h._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=kQ(this._activeDate,c?1:-1);break;case 39:this.activeDate=kQ(this._activeDate,c?-1:1);break;case 38:this.activeDate=kQ(this._activeDate,-4);break;case 40:this.activeDate=kQ(this._activeDate,4);break;case 36:this.activeDate=kQ(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=kQ(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));
break;case 33:this.activeDate=jQ(this._activeDate,a.altKey?-10:-1);break;case 34:this.activeDate=jQ(this._activeDate,a.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}yA(this._dateAdapter,b,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked());a.preventDefault()};
h._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};
h._init=function(){var a=this;this._setSelectedMonth(this.selected);this._todayMonth.set(this._getMonthInCurrentYear(new Dm));this._yearLabel.set(""+this.activeDate.getFullYear());var b=this._dateAdapter.locale.SHORTMONTHS;this._months.set([[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()};h._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()};
h._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};h._getMonthInCurrentYear=function(a){return a&&this._dateAdapter.getYear(a)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(a):null};h._getDateFromMonth=function(a){var b=lQ(this._dateAdapter.getYear(this.activeDate),a,1);b=lYc(b);return lQ(this._dateAdapter.getYear(this.activeDate),a,Math.min(this._dateAdapter.getDate(this.activeDate),b))};
h._createCellForMonth=function(a,b){var c=lQ(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 Nqd(a,b.toLocaleUpperCase(),d,this._shouldEnableMonth(a),c)};
h._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=lQ(b,a,1);this._dateAdapter.getMonth(b)==a;b=iQ(b,1))if(this.dateFilter(b))return!0;return!1};h._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};
h._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};h._isRtl=function(){return this._dir&&this._dir.value==="rtl"};h._setSelectedMonth=function(a){this._selectedMonth.set(this._getMonthInCurrentYear(a))};
da.Object.defineProperties(nQ.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=wA(this._dateAdapter,xA(this._dateAdapter,a))||new Dm;this._activeDate=BHc(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=wA(this._dateAdapter,
xA(this._dateAdapter,a));this._setSelectedMonth(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=wA(this._dateAdapter,xA(this._dateAdapter,a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=wA(this._dateAdapter,xA(this._dateAdapter,a))}}});nQ.\u0275fac=function(a){return new (a||nQ)};
nQ.\u0275cmp=C({type:nQ,selectors:[["mat-year-view"]],viewQuery:function(a,b){a&1&&kg(eQ,5);if(a&2){var c;og(c=pg())&&(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&&(K(0,"table",0)(1,"thead",1)(2,"tr"),M(3,"th",2),L()(),K(4,"tbody",3),N("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)}),L()());a&2&&(B(4),I("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:[eQ],encapsulation:2,changeDetection:0});var pQ=function(){var a=this;this._intl=q(dQ);this.calendar=q(oQ);this._dateAdapter=q(vA,{optional:!0});this._dateFormats=q(zA,{optional:!0});this._periodButtonLabelId=q(hi).getId("mat-calendar-period-label-");q(fi).load(gz);var b=q(Yx);this._updateLabels();this.calendar.stateChanges.subscribe(function(){a._updateLabels();b.markForCheck()})},Xqd=function(a){return a.calendar.minDate?!a.calendar.minDate||!a._isSameView(a.calendar.activeDate,a.calendar.minDate):!0};
pQ.prototype._updateLabels=function(){var a=this.calendar,b=this._intl,c=this._dateAdapter;a.currentView==="month"?(this._periodButtonText=c.format(a.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=c.format(a.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=b.switchToMultiYearViewLabel,this._prevButtonLabel=b.prevMonthLabel,this._nextButtonLabel=b.nextMonthLabel):a.currentView==="year"?(this._periodButtonText=
""+a.activeDate.getFullYear(),this._periodButtonDescription=""+a.activeDate.getFullYear(),this._periodButtonLabel=b.switchToMonthViewLabel,this._prevButtonLabel=b.prevYearLabel,this._nextButtonLabel=b.nextYearLabel):(this._periodButtonText=b.formatYearRange.apply(b,n(this._formatMinAndMaxYearLabels())),this._periodButtonDescription=b.formatYearRangeLabel.apply(b,n(this._formatMinAndMaxYearLabels())),this._periodButtonLabel=b.switchToMonthViewLabel,this._prevButtonLabel=b.prevMultiYearLabel,this._nextButtonLabel=
b.nextMultiYearLabel)};pQ.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):M8a(this._dateAdapter,a,b,this.calendar.minDate,this.calendar.maxDate)};
pQ.prototype._formatMinAndMaxYearLabels=function(){var a=this._dateAdapter.getYear(this.calendar.activeDate)-N8a(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),b=a+24-1;a=""+lQ(a,0,1).getFullYear();b=""+lQ(b,0,1).getFullYear();return[a,b]};
da.Object.defineProperties(pQ.prototype,{periodButtonText:{configurable:!0,enumerable:!0,get:function(){return this._periodButtonText}},periodButtonDescription:{configurable:!0,enumerable:!0,get:function(){return this._periodButtonDescription}},periodButtonLabel:{configurable:!0,enumerable:!0,get:function(){return this._periodButtonLabel}},prevButtonLabel:{configurable:!0,enumerable:!0,get:function(){return this._prevButtonLabel}},nextButtonLabel:{configurable:!0,enumerable:!0,get:function(){return this._nextButtonLabel}}});
pQ.\u0275fac=function(a){return new (a||pQ)};
pQ.\u0275cmp=C({type:pQ,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:["*"],decls:17,vars:13,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","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],"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","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(a,b){a&1&&(fg(),K(0,"div",0)(1,"div",1)(2,"span",2),S(3),L(),K(4,"button",
3),N("click",function(){b.calendar.currentView=b.calendar.currentView=="month"?"multi-year":"month"}),K(5,"span",4),S(6),L(),yd(),K(7,"svg",5),M(8,"polygon",6),L()(),zd(),M(9,"div",7),gg(10),K(11,"button",8),N("click",function(){Xqd(b)&&(b.calendar.activeDate=b.calendar.currentView=="month"?kQ(b.calendar.activeDate,-1):jQ(b.calendar.activeDate,b.calendar.currentView=="year"?-1:-24))}),yd(),K(12,"svg",9),M(13,"path",10),L()(),zd(),K(14,"button",11),N("click",function(){b.calendar.maxDate&&b._isSameView(b.calendar.activeDate,
b.calendar.maxDate)||(b.calendar.activeDate=b.calendar.currentView=="month"?kQ(b.calendar.activeDate,1):jQ(b.calendar.activeDate,b.calendar.currentView=="year"?1:24))}),yd(),K(15,"svg",9),M(16,"path",12),L()()()());a&2&&(B(2),I("id",b._periodButtonLabelId),B(),Ag(b.periodButtonDescription),B(),Jf("aria-label",b.periodButtonLabel)("aria-describedby",b._periodButtonLabelId),B(2),Ag(b.periodButtonText),B(),yg("mat-calendar-invert",b.calendar.currentView!=="month"),B(4),I("disabled",!Xqd(b))("matTooltip",
b.prevButtonLabel),Jf("aria-label",b.prevButtonLabel),B(3),I("disabled",!(!b.calendar.maxDate||!b._isSameView(b.calendar.activeDate,b.calendar.maxDate)))("matTooltip",b.nextButtonLabel),Jf("aria-label",b.nextButtonLabel))},dependencies:[TA,VA,MA],encapsulation:2,changeDetection:0});
var oQ=function(){var a=this;this._dateAdapter=q(vA,{optional:!0});this._dateFormats=q(zA,{optional:!0});this._changeDetectorRef=q(Yx);this._elementRef=q(Gd);this._moveFocusOnNextTick=!1;this.startView="month";this.selectedChange=new ui;this.yearSelected=new ui;this.monthSelected=new ui;this.viewChanged=new ui(!0);this._userSelection=new ui;this._userDragDrop=new ui;this._activeDrag=null;this.stateChanges=new rf;this._intlChanges=q(dQ).changes.subscribe(function(){a._changeDetectorRef.markForCheck();
a.stateChanges.next()})};h=oQ.prototype;h.ngAfterContentInit=function(){this._calendarHeaderPortal=new lA(this.headerComponent||pQ);this.activeDate=this.startAt||new Dm;this._currentView=this.startView};h.ngAfterViewChecked=function(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this._getCurrentViewComponent()._focusActiveCell(!1))};h.ngOnDestroy=function(){this._intlChanges.unsubscribe();this.stateChanges.complete()};
h.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._elementRef.nativeElement.contains(Ph())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init());this.stateChanges.next()};
h._dateSelected=function(a){var b=a.value;b&&!this._dateAdapter.sameDate(b,this.selected)&&this.selectedChange.emit(b);this._userSelection.emit(a)};h._yearSelectedInMultiYearView=function(a){this.yearSelected.emit(a)};h._monthSelectedInYearView=function(a){this.monthSelected.emit(a)};h._goToDateInView=function(a,b){this.activeDate=a;this.currentView=b};h._dragStarted=function(a){this._activeDrag=a};h._dragEnded=function(a){this._activeDrag&&(a.value&&this._userDragDrop.emit(a),this._activeDrag=null)};
h._getCurrentViewComponent=function(){return this.monthView||this.yearView||this.multiYearView};
da.Object.defineProperties(oQ.prototype,{startAt:{configurable:!0,enumerable:!0,get:function(){return this._startAt},set:function(a){this._startAt=wA(this._dateAdapter,xA(this._dateAdapter,a))}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._selected=wA(this._dateAdapter,xA(this._dateAdapter,a))}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=wA(this._dateAdapter,xA(this._dateAdapter,a))}},
maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=wA(this._dateAdapter,xA(this._dateAdapter,a))}},activeDate:{configurable:!0,enumerable:!0,get:function(){return this._clampedActiveDate},set:function(a){this._clampedActiveDate=BHc(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.stateChanges.next(),this.viewChanged.emit(b))}}});oQ.\u0275fac=function(a){return new (a||oQ)};
oQ.\u0275cmp=C({type:oQ,selectors:[["mat-calendar"]],viewQuery:function(a,b){a&1&&(kg(hQ,5),kg(nQ,5),kg(mQ,5));if(a&2){var c;og(c=pg())&&(b.monthView=c.first);og(c=pg())&&(b.yearView=c.first);og(c=pg())&&(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:[Ig([Rqd]),Gx],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&&(E(0,O8a,0,0,"ng-template",0),K(1,"div",1),F(2,P8a,1,11,"mat-month-view",2)(3,Q8a,1,6,"mat-year-view",3)(4,R8a,1,6,"mat-multi-year-view",3),L());if(a&2){var c;I("cdkPortalOutlet",b._calendarHeaderPortal);B(2);G((c=b.currentView)==="month"?2:c==="year"?3:c==="multi-year"?4:-1)}},dependencies:[pA,oz,hQ,nQ,mQ],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));--mat-button-text-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 Yqd=function(a,b){this.target=a;this.targetElement=b;this.value=this.target.value},qQ=function(){var a=this;this._elementRef=q(Gd);this._dateAdapter=q(vA,{optional:!0});this._dateFormats=q(zA,{optional:!0});this.dateChange=new ui;this.dateInput=new ui;this.stateChanges=new rf;this._onTouched=function(){};this._validatorOnChange=function(){};this._cvaOnChange=function(){};this._localeSubscription=this._valueChangesSubscription=Od.EMPTY;this._parseValidator=function(){return a._lastValueValid?null:
{matDatepickerParse:{text:a._elementRef.nativeElement.value}}};this._filterValidator=function(b){b=wA(a._dateAdapter,xA(a._dateAdapter,b.value));return!b||a._matchesFilter(b)?null:{matDatepickerFilter:!0}};this._minValidator=function(b){b=wA(a._dateAdapter,xA(a._dateAdapter,b.value));var c=a._getMinDate();return!c||!b||yA(a._dateAdapter,c,b)<=0?null:{matDatepickerMin:{min:c,actual:b}}};this._maxValidator=function(b){b=wA(a._dateAdapter,xA(a._dateAdapter,b.value));var c=a._getMaxDate();return!c||!b||
yA(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)})};h=qQ.prototype;h._getValidators=function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]};
h._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 Yqd(b,b._elementRef.nativeElement)),b.dateChange.emit(new Yqd(b,b._elementRef.nativeElement)))})};
h.ngAfterViewInit=function(){this._isInitialized=!0};h.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(AHc(d)&&AHc(e)){if(!b.sameDate(d,e)){a=!0;break a}}else{a=!0;break a}}a=!1}a&&this.stateChanges.next(void 0)};h.ngOnDestroy=function(){this._valueChangesSubscription.unsubscribe();this._localeSubscription.unsubscribe();this.stateChanges.complete()};
h.registerOnValidatorChange=function(a){this._validatorOnChange=a};h.validate=function(a){return this._validator?this._validator(a):null};h.writeValue=function(a){a&&a===this.value||this._assignValueProgrammatically(a)};h.registerOnChange=function(a){this._cvaOnChange=a};h.registerOnTouched=function(a){this._onTouched=a};h.setDisabledState=function(a){this.disabled=a};
h._onKeydown=function(a){var b=["ctrlKey","shiftKey","metaKey"];Nh(a,"altKey")&&a.keyCode===40&&b.every(function(c){return!Nh(a,c)})&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),a.preventDefault())};
h._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=wA(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 Yqd(this,this._elementRef.nativeElement)))};
h._onChange=function(){this.dateChange.emit(new Yqd(this,this._elementRef.nativeElement))};h._onBlur=function(){this.value&&this._formatValue(this.value);this._onTouched()};h._formatValue=function(a){this._elementRef.nativeElement.value=a!=null?this._dateAdapter.format(a,this._dateFormats.display.dateInput):""};h._assignValue=function(a){this._model?(this._assignValueToModel(a),this._pendingValue=null):this._pendingValue=a};h._isValidValue=function(a){return!a||this._dateAdapter.isValid(a)};
h._parentDisabled=function(){return!1};h._assignValueProgrammatically=function(a){a=xA(this._dateAdapter,a);this._lastValueValid=this._isValidValue(a);a=wA(this._dateAdapter,a);this._assignValue(a);this._formatValue(a)};h._matchesFilter=function(a){var b=this._getDateFilter();return!b||b(a)};
da.Object.defineProperties(qQ.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()}}});
qQ.\u0275fac=function(a){return new (a||qQ)};qQ.\u0275dir=af({type:qQ,inputs:{value:"value",disabled:[2,"disabled","disabled",bh]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Gx]});var Zqd=new bd("mat-datepicker-scroll-strategy",{providedIn:"root",factory:function(){var a=q(xe);return function(){return $h(a)}}}),rQ=function(){var a=this;this._elementRef=q(Gd);this._animationsDisabled=ti();this._changeDetectorRef=q(Yx);this._globalModel=q(fQ);this._dateAdapter=q(vA);this._ngZone=q(Tg);this._rangeSelectionStrategy=q(Sqd,{optional:!0});this._animationDone=new rf;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())};q(fi).load(gz);this._closeButtonText=q(dQ).closeCalendarLabel;if(!this._animationsDisabled){var b=this._elementRef.nativeElement,c=q(ji);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)]})}};h=rQ.prototype;h.ngAfterViewInit=function(){var a=this;this._stateChanges=this.datepicker.stateChanges.subscribe(function(){a._changeDetectorRef.markForCheck()});this._calendar._getCurrentViewComponent()._focusActiveCell(!1)};
h.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()};h._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()};
h._handleUserDragDrop=function(a){this._model.updateSelection(a.value,this)};h._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))};h._getSelected=function(){return this._model.selection};
h._applyPendingSelection=function(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)};h._assignActions=function(a,b){this._model=a?this._globalModel.clone():this._globalModel;this._actionsPortal=a;b&&this._changeDetectorRef.detectChanges()};rQ.\u0275fac=function(a){return new (a||rQ)};
rQ.\u0275cmp=C({type:rQ,selectors:[["mat-datepicker-content"]],viewQuery:function(a,b){a&1&&kg(oQ,5);if(a&2){var c;og(c=pg())&&(b._calendar=c.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(a,b){a&2&&(zg(b.color?"mat-"+b.color:""),yg("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&&(K(0,"div",0)(1,"mat-calendar",1),N("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)}),L(),E(2,S8a,0,0,"ng-template",2),K(3,"button",3),N("focus",function(){return b._closeButtonFocused=!0})("blur",function(){return b._closeButtonFocused=!1})("click",function(){return b.datepicker.close()}),
S(4),L()());if(a&2){yg("mat-datepicker-content-container-with-custom-header",b.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",b._actionsPortal);var c;Jf("aria-modal",!0)("aria-labelledby",(c=b._dialogLabelId)!=null?c:void 0);B();zg(b.datepicker.panelClass);I("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);B();I("cdkPortalOutlet",b._actionsPortal);B();yg("cdk-visually-hidden",!b._closeButtonFocused);I("color",b.color||"primary");B();Ag(b._closeButtonText)}},dependencies:[uz,oQ,pA,TA],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;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 sQ=function(){var a=this;this._injector=q(xe);this._viewContainerRef=q(ig);this._dateAdapter=q(vA,{optional:!0});this._dir=q(ii,{optional:!0});this._model=q(fQ);this._animationsDisabled=ti();this._scrollStrategy=q(Zqd);this._inputStateChanges=Od.EMPTY;this._document=q(Yh);this.startView="month";this.touchUi=!1;this.xPosition="start";this.yPosition="below";this.restoreFocus=!0;this.yearSelected=new ui;this.monthSelected=new ui;this.viewChanged=new ui(!0);this.openedStream=new ui;this.closedStream=
new ui;this._opened=!1;this.id=q(hi).getId("mat-datepicker-");this._focusedElementBeforeOpen=null;this._backdropHarnessClass=this.id+"-backdrop";this.stateChanges=new rf;this._changeDetectorRef=q(Yx);this._model.selectionChanged.subscribe(function(){a._changeDetectorRef.markForCheck()})};h=sQ.prototype;h._getMinDate=function(){return this.datepickerInput&&this.datepickerInput.min};h._getMaxDate=function(){return this.datepickerInput&&this.datepickerInput.max};
h._getDateFilter=function(){return this.datepickerInput&&this.datepickerInput.dateFilter};h.ngOnChanges=function(a){(a=a.xPosition||a.yPosition)&&!a.firstChange&&this._overlayRef&&(a=this._overlayRef.getConfig().positionStrategy,a instanceof ai&&(this._setConnectedPositions(a),this.opened&&this._overlayRef.updatePosition()));this.stateChanges.next(void 0)};h.ngOnDestroy=function(){this._destroyOverlay();this.close();this._inputStateChanges.unsubscribe();this.stateChanges.complete()};h.select=function(a){this._model.add(a)};
h._selectYear=function(a){this.yearSelected.emit(a)};h._selectMonth=function(a){this.monthSelected.emit(a)};h._viewChanged=function(a){this.viewChanged.emit(a)};var $qd=function(a,b){a._inputStateChanges.unsubscribe();a.datepickerInput=b;a._inputStateChanges=b.stateChanges.subscribe(function(){return a.stateChanges.next(void 0)});return a._model};h=sQ.prototype;
h.open=function(){var a;this._opened||this.disabled||((a=this._componentRef)==null?0:a.instance._isAnimating)||(this._focusedElementBeforeOpen=Ph(),this._openOverlay(),this._opened=!0,this.openedStream.emit())};
h.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(mf(1)).subscribe(function(){var g=a._document.activeElement;!c||g&&g!==a._document.activeElement&&!f.nativeElement.contains(g)||
a._focusedElementBeforeOpen.focus();a._focusedElementBeforeOpen=null;a._destroyOverlay()});e._startExitAnimation()}c?setTimeout(b):b()}};h._applyPendingSelection=function(){var a,b;(a=this._componentRef)==null||(b=a.instance)==null||b._applyPendingSelection()};
h._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)};
h._openOverlay=function(){var a=this;this._destroyOverlay();var b=this.touchUi,c=new lA(rQ,this._viewContainerRef),d=this._overlayRef=ri(this._injector,new ki({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?Dsa(this._injector):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||De(function(){d.updatePosition()},{injector:this._injector})};h._destroyOverlay=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)};h._getDialogStrategy=function(){return tHc(hA(new gA))};
h._getDropdownStrategy=function(){var a=qHc(eA(fA(rHc(di(this._injector,this.datepickerInput.getConnectedOverlayOrigin()),".mat-datepicker-content"),!1),8));return this._setConnectedPositions(a)};
h._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 dA(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}])};
h._getCloseStream=function(a){var b=this,c=["ctrlKey","shiftKey","metaKey"];return se(a.backdropClick(),a._detachments,a.keydownEvents().pipe(te(function(d){return d.keyCode===27&&!Nh(d)||b.datepickerInput&&Nh(d,"altKey")&&d.keyCode===38&&c.every(function(e){return!Nh(d,e)})})))};
da.Object.defineProperties(sQ.prototype,{startAt:{configurable:!0,enumerable:!0,get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.value:null)},set:function(a){this._startAt=wA(this._dateAdapter,xA(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()}}});sQ.\u0275fac=function(a){return new (a||sQ)};
sQ.\u0275dir=af({type:sQ,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",bh],disabled:[2,"disabled","disabled",bh],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",bh],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",bh]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},
features:[Gx]});var ard={provide:KB,useExisting:Tc(function(){return tQ}),multi:!0},brd={provide:LB,useExisting:Tc(function(){return tQ}),multi:!0},tQ=function(){qQ.call(this);this._formField=q(gJc,{optional:!0});this._openedSubscription=this._closedSubscription=Od.EMPTY;this._ariaOwns=qg.apply(null,[null].concat(n([])));this._validator=Qta(qQ.prototype._getValidators.call(this))};Z(tQ,qQ);h=tQ.prototype;h.getConnectedOverlayOrigin=function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef};
h.ngOnDestroy=function(){qQ.prototype.ngOnDestroy.call(this);this._closedSubscription.unsubscribe();this._openedSubscription.unsubscribe()};h._openPopup=function(){this._datepicker&&this._datepicker.open()};h._getValueFromModel=function(a){return a};h._assignValueToModel=function(a){this._model&&this._model.updateSelection(a,this)};h._getMinDate=function(){return this._min};h._getMaxDate=function(){return this._max};h._getDateFilter=function(){return this._dateFilter};
h._shouldHandleChangeEvent=function(a){return a.source!==this};
da.Object.defineProperties(tQ.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($qd(a,this)))}},min:{configurable:!0,enumerable:!0,get:function(){return this._min},set:function(a){a=wA(this._dateAdapter,
xA(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=wA(this._dateAdapter,xA(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()}}});tQ.\u0275fac=function(a){return new (a||tQ)};
tQ.\u0275dir=af({type:tQ,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(a,b){a&1&&N("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&&(Rf("disabled",b.disabled),Jf("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:[Ig([ard,brd,{provide:QJc,useExisting:tQ}]),Ff]});var crd=["button"],drd=[[["","matDatepickerToggleIcon",""]]],erd=function(){};erd.\u0275fac=function(a){return new (a||erd)};erd.\u0275dir=af({type:erd,selectors:[["","matDatepickerToggleIcon",""]]});var uQ=function(){this._intl=q(dQ);this._changeDetectorRef=q(Yx);this._stateChanges=Od.EMPTY;var a=q(new Hx("tabindex"),{optional:!0});this.tabIndex=(a=Number(a))||a===0?a:null};h=uQ.prototype;h.ngOnChanges=function(a){a.datepicker&&this._watchStateChanges()};h.ngOnDestroy=function(){this._stateChanges.unsubscribe()};
h.ngAfterContentInit=function(){this._watchStateChanges()};h._open=function(a){this.datepicker&&!this.disabled&&(this.datepicker.open(),a.stopPropagation())};
h._watchStateChanges=function(){var a=this,b=this.datepicker?this.datepicker.stateChanges:be(),c=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:be(),d=this.datepicker?se(this.datepicker.openedStream,this.datepicker.closedStream):be();this._stateChanges.unsubscribe();this._stateChanges=se(this._intl.changes,b,c,d).subscribe(function(){return a._changeDetectorRef.markForCheck()})};
da.Object.defineProperties(uQ.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}}});uQ.\u0275fac=function(a){return new (a||uQ)};
uQ.\u0275cmp=C({type:uQ,selectors:[["mat-datepicker-toggle"]],contentQueries:function(a,b,c){a&1&&lg(c,erd,5);if(a&2){var d;og(d=pg())&&(b._customIcon=d.first)}},viewQuery:function(a,b){a&1&&kg(crd,5);if(a&2){var c;og(c=pg())&&(b._button=c.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(a,b){a&1&&N("click",function(c){return b._open(c)});a&2&&(Jf("tabindex",null)("data-mat-calendar",b.datepicker?b.datepicker.id:null),yg("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",bh],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Gx],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&&(fg(drd),K(0,"button",1,0),F(2,T8a,2,0,":svg:svg",2),gg(3),L());a&2&&(I("tabIndex",b.disabled?-1:b.tabIndex)("disabled",b.disabled)("disableRipple",b.disableRipple),Jf("aria-haspopup",
b.datepicker?"dialog":null)("aria-label",b.ariaLabel||b._intl.openCalendarLabel)("aria-expanded",b.datepicker?b.datepicker.opened:null),B(2),G(b._customIcon?-1:2))},dependencies:[VA],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle button{color:inherit}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}}\n"],
encapsulation:2,changeDetection:0});var vQ=function(){sQ.apply(this,arguments)};Z(vQ,sQ);vQ.\u0275dir=sQ.\u0275dir;vQ.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(vQ)))(b||vQ)}}();vQ.\u0275cmp=C({type:vQ,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Ig([Rqd,{provide:sQ,useExisting:vQ}]),Ff],decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var wQ=function(){};wQ.\u0275fac=function(a){return new (a||wQ)};wQ.\u0275mod=$e({type:wQ});wQ.\u0275inj=Dc({providers:[dQ],imports:[WA,uA,Dz,qA,rQ,uQ,pQ,jz,aA]});var U8a=new Map([["zwieback_id:","zwieback"],["android_id:","android"],["anonymous_id:","anonymous"]]);var frd=["el"],Z8a=function(a,b){return b.label},xQ=function(){LO.apply(this,arguments);this.domSafe=q($P);this.clipboard=q(bQ);this.snackBar=q(LD);this.activeSession=q(Zu);this.contextSensitiveRegistry=q(KP);this.formattingMode=q(Gqd);this.analytics=q(PO);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.scrollStrategy=q(cA).close();this.urls=[];this.opened=!1};Z(xQ,LO);xQ.\u0275dir=LO.\u0275dir;
xQ.prototype.ngOnInit=function(){this.urls=[{label:this.originalHref,originalHref:this.originalHref,href:this.href}];if(this.activeSession.isInternalSession()){var a=Or(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 g=
f.searchParams.get("text_query");var k=f.searchParams.get("time_range");if(k==null)var m=[];else{var r=k.split("/");if(r.length!==2)m=[];else{var w=(new Date(r[1])).getTime()*1E3;m=[Tr("start_time","=",[(new Date(r[0])).getTime()*1E3]),Tr("end_time","=",[w])]}}f=[];var x=f.concat,D=n(m);m=[];for(var H,J=[],O=l(g.matchAll(/NOT\s\(source_location.file = "(?<file>[^)]+)" source_location.line = "(?<line>[0-9]+)"\)/gm)),R=O.next();!R.done;R=O.next()){var V=R.value;J.push(V[1]+":"+V[2])}(H=J.length>0?Tr("site_path",
"!=",J):null)&&m.push(H);O=void 0;for(var ba=l(g.matchAll(/(?<key>[^\s=!~]+)[\s]*(?<operator>=~?|![=~])[\s]*(?<value>"[^"\\]*(?:\\.[^"\\]*)*"|[^\s"]+)/gm)),pa=ba.next();!pa.done;pa=ba.next()){var ua=pa.value,ma=ua[1];var Da=ua[2];var ja=lca()(Da)?Da:void 0;g=ja;var va=ua[3];if(va.length>=2&&va.charAt(0)==='"'&&va.charAt(va.length-1)==='"')var ya=va.substring(1,va.length-1);else if(va==="true"||va==="false")ya=va==="true";else{var Sa=Number(va);ya=pca(Sa)?Sa:void 0}R=ya;if(g)if(ma!=="source_location.file"||
H){ma==="source_location.line"&&O&&(O=Tr("site_path",O.operator,[O.values[0]+":"+R]));var ab=x8a(ma);ab&&m.push(Tr(ab,g,[r8a.includes(ab)?Number(R):R]))}else O=Tr("site_path",g,[R])}O&&m.push(O);var rb=x.call(f,D,n(m))}else{if(f.searchParams.get("storage")==="borglocal")throw Error("Be");x=[];J=l(f.searchParams);for(var ac=J.next();!ac.done;ac=J.next()){var pc=l(ac.value),kc=pc.next().value,vc=pc.next().value,tb=w8a(kc,vc,f.searchParams);tb&&x.push.apply(x,n(tb))}rb=x}e.searchParams.set("filters",
q8a(rb));e.searchParams.set("scope","Borg");e.searchParams.set("tab","rdl");c=e;break;case "Sherlog":if(b.startsWith("http://sherlog/_")){var Qb=new URL("https://nexus.corp.google.com/trace/"+b.replace("http://sherlog/_",""));Qb.searchParams.set("action","expandsherlog");c=Qb}else{var ib=new URL(b);if(ib.pathname.includes("workflow")){var bc=ib.searchParams,xc,ud=encodeURIComponent((xc=bc.get("dataid"))!=null?xc:""),Tb=new URL("https://nexus.corp.google.com/trace/"+ud),qc=V8a(ib);Tb.searchParams.set("account",
qc.account);Tb.searchParams.set("account_type",qc.accountType);var Sc;Tb.searchParams.set("version",(Sc=bc.get("version"))!=null?Sc:"");var pd;Tb.searchParams.set("pipeline",(pd=bc.get("config"))!=null?pd:"");Tb.searchParams.set("trace_type","sherlog");c=Tb}else c=null}break;default:var Uc="";break a}a=a!=null?a:void 0;c==null?Uc="":(c.searchParams.set("origin_type","buganizer"),a&&(a.startsWith("b/")||(a="b/"+a),c.searchParams.set("origin_id",a)),Uc=c.toString());break a}catch(ne){Uc="";break a}Uc=
void 0}Uc&&this.urls.push({label:"Open in Nexus",originalHref:Uc,href:Uc,icon:"nexus-logo"})}};xQ.prototype.ngAfterViewInit=function(){var a=this;this.cdkConnectedOverlay.attach.pipe(Af(this.destroyed$)).subscribe(function(){var b=a.cdkConnectedOverlay.overlayRef.overlayElement;b&&(b=b.querySelector("a"))&&b.focus()})};xQ.prototype.getNgContentParentEl=function(){return this.el.nativeElement};
var grd=function(a){if(a.urls.length>1)return!0;if(a.formattingMode==="PLAIN")return!1;var b=a.getNgContentParentEl(),c,d;if(d=HVa(b))a=a.originalHref,b=(c=b.textContent)!=null?c:"",d=b===a||a.startsWith("mailto:")&&a.substring(7)===b?!0:!1;return!d};xQ.prototype.hide=function(){this.opened=!1};xQ.prototype.openLink=function(a,b){IVa(a)||(a.preventDefault(),a.stopPropagation(),Sr(this.domSafe,b))};xQ.prototype.copyToClipboard=function(a){this.clipboard.copy(a);this.snackBar.open("URL copied","",{duration:2E3})};
var hrd=function(a){var b="externalLinkPopup";a.urls.find(function(c){return c.label==="Open in Nexus"})&&(b="externalLinkPopupNexus");a.analytics.trackEvent("issue","click",b)};xQ.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(xQ)))(b||xQ)}}();
xQ.\u0275cmp=C({type:xQ,selectors:[["b-external-hyperlink-widget"]],viewQuery:function(a,b){a&1&&(kg(frd,7),kg(tA,7));if(a&2){var c;og(c=pg())&&(b.el=c.first);og(c=pg())&&(b.cdkConnectedOverlay=c.first)}},inputs:{originalHref:"originalHref",href:"href"},features:[Ff],ngContentSelectors:["*"],decls:7,vars:9,consts:[["trigger","cdkOverlayOrigin"],["el",""],["cdkOverlayOrigin","",1,"keep-focus-ring",3,"click","href","rel"],["cdkConnectedOverlay","","cdkConnectedOverlayPanelClass","tooltip-panel",3,"detach",
"overlayOutsideClick","cdkConnectedOverlayPush","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayScrollStrategy"],["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=t();fg();K(0,"a",2,0);N("click",function(d){u(c);IVa(d)||(d.preventDefault(),d.stopPropagation(),grd(b)?(hrd(b),b.opened=!0):b.openLink(d,b.href));return v()});F(2,W8a,2,0,"b-glue");K(3,"span",null,1);gg(5);L()();E(6,a9a,1,1,"ng-template",3);N("detach",function(){u(c);return v(b.hide())})("overlayOutsideClick",function(){u(c);return v(b.hide())})}a&2&&(a=Q(1),yg("needs-contextual-popup",grd(b)),I("href",b.originalHref,Me)("rel",b.EXTERNAL_LINK_REL),B(2),G(grd(b)?2:-1),B(4),I("cdkConnectedOverlayPush",
!0)("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",b.opened)("cdkConnectedOverlayScrollStrategy",b.scrollStrategy))},dependencies:[tA,sA,uz,aQ,ZA,XA,TA,hK,iz,MA],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-button-text-icon-spacing: 0}.b-bubble[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:not(.final){margin-right:4px}"],
changeDetection:0});var ird=function(){this.session=q(Zu)};ird.\u0275fac=function(a){return new (a||ird)};ird.\u0275prov=Cc({token:ird,factory:ird.\u0275fac,providedIn:"root"});var jrd=new bd("IssueCard");var yQ=function(){};yQ.prototype.visit=function(){};yQ.\u0275fac=function(a){return new (a||yQ)};yQ.\u0275prov=Cc({token:yQ,factory:yQ.\u0275fac,providedIn:"root"});var krd=["el"],lrd=function(){this.viewContainerRef=q(ig)};lrd.\u0275fac=function(a){return new (a||lrd)};lrd.\u0275dir=af({type:lrd,selectors:[["","issueCardHost",""]]});var zQ=function(){LO.apply(this,arguments);this.issueReferenceResolver=q(yQ);this.issueCard=q(jrd,{optional:!0});this.hovercardReady=new vf(1)};Z(zQ,LO);zQ.\u0275dir=LO.\u0275dir;zQ.prototype.ngOnInit=function(){};
zQ.prototype.ngAfterViewInit=function(){var a=this;this.issueCardHost.changes.pipe(Af(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(mf(1),Af(a.destroyed$)).subscribe(a.hovercardReady),b.changeDetectorRef.detectChanges())})};
zQ.prototype.visit=function(a){if(!IVa(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})}};zQ.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(zQ)))(b||zQ)}}();
zQ.\u0275cmp=C({type:zQ,selectors:[["b-issue-reference-widget"]],viewQuery:function(a,b){a&1&&(kg(krd,7),kg(lrd,5));if(a&2){var c;og(c=pg())&&(b.el=c.first);og(c=pg())&&(b.issueCardHost=c)}},inputs:{href:"href",issueId:"issueId",commentNumber:"commentNumber"},features:[Ff],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=t();fg();K(0,"onedev-hovercard",null,0);E(2,b9a,2,1,"div",2);L();K(3,"a",3,1);N("click",function(d){u(c);return v(b.visit(d))});gg(5);L()}a&2&&(a=Q(1),B(3),I("onedevHovercardTrigger",a)("onedevHovercardActive",!!b.issueCard)("href",b.href,Me))},dependencies:[AK,uK,vK,zK,wK,lrd],encapsulation:2,changeDetection:0});var mrd=["NEW","CONFIRMED","IN_PROGRESS","FIXED","WONT_FIX"],AQ={},nrd=(AQ.UNSPECIFIED=[],AQ.NEW=["PENDING_TRIAGE","REPORTER_RESPONDED","NEEDS_INFO"],AQ.CONFIRMED=["PENDING_OWNER"],AQ.IN_PROGRESS=["EXPECTED","PLANNED","COMMITTED"],AQ.FIXED=["REOPENED"],AQ.WONT_FIX=["REOPENED"],AQ),BQ={},ord=(BQ.TRIAGE_SUBPHASE_UNSPECIFIED="Unspecified",BQ.NEEDS_INFO="Needs more info",BQ.PENDING_TRIAGE="Pending triage",BQ.PENDING_OWNER="Pending owner",BQ.REPORTER_RESPONDED="Reporter responded",BQ.EXPECTED="Expected",
BQ.PLANNED="Planned",BQ.COMMITTED="Committed",BQ.REOPENED="Reopened",BQ),CQ={},prd=(CQ.TRIAGE_SUBPHASE_UNSPECIFIED="unspecified",CQ.NEEDS_INFO="needs-info",CQ.PENDING_TRIAGE="pending-triage",CQ.PENDING_OWNER="pending-owner",CQ.REPORTER_RESPONDED="reporter-responded",CQ.EXPECTED="expected",CQ.PLANNED="planned",CQ.COMMITTED="committed",CQ.REOPENED="reopened",CQ),qrd=cWa(dWa(prd)),DQ={},iu=(DQ.UNSPECIFIED="unspecified",DQ.NEW="new",DQ.CONFIRMED="confirmed",DQ.IN_PROGRESS="in-progress",DQ.FIXED="fixed",
DQ.WONT_FIX="wont-fix",DQ),rrd=cWa(dWa(iu)),Tt=new Map([["NEW","New"],["CONFIRMED","Confirmed"],["IN_PROGRESS","In progress"],["FIXED","Fixed"],["WONT_FIX","Won't fix"]]),srd={},trd=(srd.NEW="status:new modified:7d",srd.CONFIRMED="status:assigned modified:7d",srd.IN_PROGRESS="status:accepted modified:30d",srd.FIXED="status:fixed|verified modified:30d",srd.WONT_FIX="status:infeasible|not_reproducible|obsolete|duplicate modified:30d",srd),urd=[{type:"PRIORITY"},{type:"TITLE"},{type:"ALERTS"},{type:"RELATIVE_MODIFIED_TIME"},
{type:"ISSUE_ID"}],EQ={},vrd=(EQ.UNSPECIFIED=urd,EQ.NEW=[{type:"TRIAGER"},{type:"PRIORITY"},{type:"TITLE"},{type:"ALERTS"},{type:"COMPONENT_PATH"},{type:"RELATIVE_MODIFIED_TIME"},{type:"ISSUE_ID"}],EQ.CONFIRMED=urd,EQ.IN_PROGRESS=urd,EQ.FIXED=urd,EQ.WONT_FIX=urd,EQ);var wrd=new Set([1049953,209989]);var xrd=new OP,yrd=xrd.value$.pipe(lf(),kf(0,Rr));var zrd=po().user.email,Ard={key:"USER_RESPONDED",displayAs:"User responded",emoji:"\u21a9\ufe0f",tooltip:"Reporter responded with more info",check:function(a){return Vr(a)==="REPORTER_RESPONDED"},chipColor:"blue",showCount:!0},Brd={key:"OUT_OF_SLO",displayAs:"Out of SLO",emoji:"\u2757\ufe0f",tooltip:"Out of SLO",check:function(a){return ZVa(a.snapshot[0].sloEndTime)&&(!a.snapshot[0].sloStartTime||ZVa(a.snapshot[0].sloStartTime))},chipColor:"red",showCount:!0},Crd={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},Drd={key:"PAST_DEADLINE",displayAs:"Past deadline",emoji:"\u231b\ufe0f",check:function(a){var b,c;a=uo((b=a.snapshot[0].customField)==null?void 0:(c=b.find(function(d){return wrd.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},
Erd={key:"REOPENED",displayAs:"Reopened",emoji:"\u26a0\ufe0f",check:function(a){var b,c;return Bo(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},Frd={key:"MY_ISSUES",displayAs:"My issues",emoji:"\ud83c\udf1f",check:function(a){var b;return Bo(a)&&(((b=a.experimentalFields)==null?void 0:b.triage.triagerEmail)===
zrd||mWa(a)===zrd)},tooltip:"Issues for which you are triager, or assigned to you.",showCount:!0},Grd={key:"TRENDING",displayAs:"Trending",emoji:"\ud83d\udd25",check:function(a){return!!xrd.has(a.issueId)},queryFragment:'(no server query available for "is trending")',tooltip:"Unusually high view activity",chipColor:"purple",showCount:!0},Hrd={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"},Ird={key:"NEEDS_ATTENTION",displayAs:"Needs attention",emoji:"",check:function(a){var b,c;return(c=(b=gLb.get("NEW"))==null?void 0:b.some(function(d){return d9a(a,d)}))!=null?c:!1},tooltip:"Issues which are actionable and important.",showCount:!0},Jrd={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},Krd={key:"NOT_ASSIGNED",displayAs:"Not assigned",emoji:"",check:function(a){return mWa(a)==null},tooltip:"Issues which have empty assignee.",chipColor:"green",showCount:!0},Lrd=new Map([["NEW",[Ird,Frd,Hrd]],["CONFIRMED",[Grd,Crd,Hrd]],["IN_PROGRESS",[Brd,Drd,Hrd]],["FIXED",[Hrd]],["WONT_FIX",[Hrd]]]),gLb=new Map([["NEW",[Jrd,Brd,Ard]],["CONFIRMED",[Grd,Brd,Crd,Jrd]],["IN_PROGRESS",[Brd,Drd,Krd]],["FIXED",[Erd]],["WONT_FIX",[Erd]]]),Mrd={INACTIVE_1Y:Crd,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:Hrd,MY_ISSUES:Frd,NEEDS_ATTENTION:Ird,NEEDS_MORE_INFO:{key:"NEEDS_MORE_INFO",displayAs:"Needs more info",emoji:"\u2139\ufe0f",check:function(a){return Vr(a)==="NEEDS_INFO"},tooltip:"Waiting for more information from the reporter.",chipColor:"green",showCount:!0},OUT_OF_SLO:Brd,PAST_DEADLINE:Drd,REOPENED:Erd,TRENDING:Grd,
USER_RESPONDED:Ard,HIGH_PRIORITY:Jrd,NOT_ASSIGNED:Krd};var FQ=function(){this.issueFridge=q(GO);this.issueExperimentalFieldsFridge=q(CO);this.activeSession=q(Zu)},Ord=function(a,b,c){var d,e,f;y(function(g){switch(g.nextAddress){case 1:return z(g,a.issueFridge.poke(b),2);case 2:d=g.yieldResult;if(!d)return g.return();Vd(g,3);e=c.some(function(k){return["comment","attachments"].includes(k.fieldName)});if(!e){g.jumpTo(5);break}return z(g,Nrd(a,d),5);case 5:return g.return();case 3:f=Zd(g),console.error(f),$d(g)}})},Nrd=function(a,b){return y(function(c){return Ur(b)!==
"NEW"||Vr(b)!=="NEEDS_INFO"||a.activeSession.getUserEmail()!==Rm(b.snapshot[0].reporterUser)?c.jumpTo(0):z(c,a.issueExperimentalFieldsFridge.updateOrInsert(b.issueId,function(d){d.triage.subphase="REPORTER_RESPONDED"}),0)})};FQ.\u0275fac=function(a){return new (a||FQ)};FQ.\u0275prov=Cc({token:FQ,factory:FQ.\u0275fac,providedIn:"root"});var GQ=function(){LO.apply(this,arguments);var a=this;this.issueFridge=q(GO);this.teamFridge=q(GP);this.recentIssues$=le(function(){return a.issueFridge.watchMany({filter:"modified:60d (modifier:me | assignee:me)",pageSize:500})});this.recentTeamIds$=this.recentIssues$.pipe(A(function(b){return b.results}),A(function(b){return b.map(function(c){var d;return(d=c.aggregatedData)==null?void 0:d.teamId}).filter(ln).filter(Boolean).map(String)}));this.mostActiveTeamIds$=this.recentTeamIds$.pipe(A(function(b){return y1a(b,
function(c){return c})}),A(function(b){return b.filter(function(c){return c.length>=2})}),A(function(b){return b.sort(function(c,d){return d.length-c.length})}),A(function(b){return b.map(function(c){return c[0]})}));this.mostActiveTeams$=this.mostActiveTeamIds$.pipe(zf(function(b){return a.teamFridge.watchSet(b).pipe(A(function(c){var d=wo(c,function(e){return e.teamId});return b.map(function(e){return{teamId:e,team:d.get(e)}})}))}),wf({refCount:!0,bufferSize:1}))};Z(GQ,LO);GQ.\u0275dir=LO.\u0275dir;
GQ.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(GQ)))(b||GQ)}}();GQ.\u0275prov=Cc({token:GQ,factory:GQ.\u0275fac,providedIn:"root"});var HQ=function(){var a=this;this.teamFridge=q(GP);this.userPrefsManager=q(VP);this.teamUserActivity=q(GQ);this.activeSession=q(Zu);this.destroyRef=q(Be);this.enableTeamScope=this.activeSession.getFlag("enableTeamScope")&&this.activeSession.isInternalSession();this.scopePrefs$=this.userPrefsManager.preferences$.pipe(A(function(b){var c;return(c=b==null?void 0:b.scopePreferences)!=null?c:{starredTeams:[],starredTriageViews:[]}}));this.starredTeamIds$=this.scopePrefs$.pipe(A(function(b){return b.starredTeams}));
this.starredTeamIds$.pipe(A(function(b){return b.map(function(c){var d=a.teamFridge.watch(c);return{teamId:c,name$:d.pipe(A(function(e){return(e==null?void 0:e.name)||c})),team$:d}})}));this.starredTriageViews$=this.scopePrefs$.pipe(A(function(b){return b.starredTriageViews}));this.starredTriageViews$.pipe(A(function(b){return b.map(function(c){return c})}));this.starredTeamIds=[];this.starredTriageViews=[];Prd(this);this.starredTeamIds$.pipe(oj(this.destroyRef)).subscribe(function(b){a.starredTeamIds=
b});this.starredTriageViews$.pipe(oj(this.destroyRef)).subscribe(function(b){a.starredTriageViews=b})},Prd=function(a){var b,c,d,e;y(function(f){switch(f.nextAddress){case 1:return a.enableTeamScope?z(f,ee(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 z(f,a.save({lastAutomaticStarsUpdate:VTa(Date.now())}),4);case 4:return f.return();case 3:return z(f,ee(a.teamUserActivity.mostActiveTeams$),5);
case 5:return c=f.yieldResult,d=c.slice(0,3).map(function(g){return g.teamId}),e=d.map(function(g){return{teamId:g,triageId:"0"}}),z(f,a.save({lastAutomaticStarsUpdate:VTa(Date.now()),starredTeams:d,starredTriageViews:e}),0)}})};HQ.prototype.save=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return z(d,ee(b.scopePrefs$),2);c=d.yieldResult;return z(d,ee(b.userPrefsManager.save({scopePreferences:Object.assign({},c,a)})),0)})};
HQ.prototype.toggle=function(a){return this.starredTeamIds.includes(a)?this.save({starredTeams:this.starredTeamIds.filter(function(b){return b!==a})}):this.save({starredTeams:[].concat(n(this.starredTeamIds),[a])})};HQ.prototype.reset=function(){var a=this;return y(function(b){return z(b,a.save({lastAutomaticStarsUpdate:void 0,starredTeams:[]}),0)})};
var Qrd=function(a,b,c){if(a.starredTriageViews.some(function(e){return e.triageId===b&&e.teamId===c})){var d=[].concat(n(a.starredTriageViews)).filter(function(e){return e.triageId!==b||e.teamId!==c});return a.save({starredTriageViews:d})}return a.save({starredTriageViews:[].concat(n(a.starredTriageViews),[{teamId:c,triageId:b}])})};HQ.\u0275fac=function(a){return new (a||HQ)};HQ.\u0275prov=Cc({token:HQ,factory:HQ.\u0275fac,providedIn:"root"});var Rrd={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"},Srd={key:"SET_NEEDS_INFO",displayAs:"Needs more info",fieldsToShow:["ASSIGNEE","CUSTOM_FIELDS","COMMENT"]},Trd={key:"SET_CONFIRMED",
displayAs:"Confirmed",fieldsToShow:"COMMENT SEVERITY PRIORITY TYPE HOTLISTS ASSIGNEE COLLABORATORS CC_LIST CUSTOM_FIELDS".split(" ")},Urd={key:"SET_PENDING_OWNER",displayAs:"Pending owner",fieldsToShow:["COMMENT"]},Vrd={key:"SET_IN_PROGRESS",displayAs:"In progress",fieldsToShow:["COMMENT","SEVERITY","PRIORITY","TYPE","ASSIGNEE"],showAssignToSelf:!0},Wrd={key:"SET_EXPECTED",displayAs:"Expected",fieldsToShow:["COMMENT"],showAssignToSelf:!0},Xrd={key:"SET_PLANNED",displayAs:"Planned",fieldsToShow:["COMMENT"],
showAssignToSelf:!0},Yrd={key:"SET_COMMITTED",displayAs:"Committed",fieldsToShow:["COMMENT"],showAssignToSelf:!0},Zrd={key:"SET_WONT_FIX",displayAs:"Won't fix",fieldsToShow:["STATUS","COMMENT"],automaticChanges:[{field:"STATUS",value:"INTENDED_BEHAVIOR"}]},$rd={key:"SET_NEW",displayAs:"New",fieldsToShow:["CUSTOM_FIELDS","STATUS","COMMENT"],automaticChanges:[{field:"STATUS",value:"NEW"}]},asd={key:"SET_FIXED",displayAs:"Fixed",fieldsToShow:["COMMENT","STATUS","CODE_CHANGES"],automaticChanges:[{field:"STATUS",
value:"FIXED"}]},bsd={key:"CHANGE_COMPONENT",displayAs:"Route",fieldsToShow:["COMMENT","COMPONENT","HOTLISTS","ASSIGNEE"]},csd=new Map([["NEW",[bsd,{key:"MARK_AS_DUPLICATE",displayAs:"Mark as duplicate"}]],["CONFIRMED",[]],["IN_PROGRESS",[]],["FIXED",[]],["WONT_FIX",[]]]);var IQ={displayAs:"Open",queryAtom:"status:open",tooltip:'Issues that match "status:open"'};var esd=function(a,b,c,d,e,f){var g=this;this.teamId=a;this.triageId=b;this.teamFridge=c;this.issueFullFridge=d;this.issueFridge=e;this.teamExperimentalFieldsFridge=f;this.isLoading$=new Xj(!1);this.setLoading=function(){g.isLoading$.next(!0)};this.setNotLoading=function(){g.isLoading$.next(!1)};this.team$=le(function(){return be(g.teamId)}).pipe(Bf(this.setLoading),zf(function(k){return g.teamFridge.watch(k)}),Bf(this.setNotLoading),wf({refCount:!0,bufferSize:1}));this.teamName$=this.team$.pipe(A(function(k){return(k==
null?void 0:k.name)||g.teamId}));this.teamExperiments$=le(function(){return be(g.teamId)}).pipe(Bf(this.setLoading),zf(function(k){return g.teamExperimentalFieldsFridge.watch(k)}),Bf(this.setNotLoading),wf({refCount:!0,bufferSize:1}));this.triageScope$=this.teamExperiments$.pipe(A(function(k){var m,r;return(k==null?void 0:(m=k.triage.find(function(w){return w.id===Number(g.triageId)}))==null?void 0:(r=m.scope)==null?void 0:r.trim())||"teamid:"+g.teamId+"+"}),wf({refCount:!0,bufferSize:1}));this.teamTriageViewExperiments$=
this.teamExperiments$.pipe(A(function(k){return k==null?void 0:k.triage.find(function(m){return""+m.id===g.triageId})}));this.triageFieldConfigs$=this.teamTriageViewExperiments$.pipe(A(function(k){var m;return(m=k==null?void 0:k.config)!=null?m:[]}));this.byPhase=new Map(mrd.map(function(k){return[k,dsd(g,k)]}));this.allIssues$=he([].concat(n(this.byPhase.values())).map(function(k){return k.issues$})).pipe(A(function(k){return k.flat()}),A(function(k){return Nq(k,function(m){return m.issueId})}),
wf({refCount:!0,bufferSize:1}));this.triageName$=he([this.teamName$,this.teamExperiments$]).pipe(A(function(k){var m=l(k);k=m.next().value;m=m.next().value;m=m==null?void 0:m.triage.find(function(r){return r.id===Number(g.triageId)});return Wr(k,m)}))};esd.prototype.phase=function(a){return this.byPhase.get(a)};
var dsd=function(a,b){var c=a.triageScope$.pipe(A(function(m){m=Yr(m,"modified:365d");m=Yr(m,"-status:duplicate");switch(b){case "NEW":case "CONFIRMED":case "IN_PROGRESS":m=Yr(m,"status:open")}return[m,b].join("____b-internal____")}),of()),d=c.pipe(A(j9a),Bf(a.setLoading),zf(function(m){return a.issueFridge.watchMany(m)}),Bf(a.setNotLoading),wf({refCount:!0,bufferSize:1})),e=d.pipe(A(function(m){return m.results}),A(function(m){return m.map(function(r){return r.issueId})}),of(Gm)).pipe(zf(function(m){return m.length?
he(m.map(function(r){return a.issueFridge.watch(r)})):be([])}));d=d.pipe(A(function(m){var r;return(r=m.totalSize)!=null?r:0}));e=e.pipe(A(function(m){return k9a(m,b)}),wf({refCount:!0,bufferSize:1}));var f=e.pipe(A(function(m){return c9a(m).length})),g=he([e,f,yrd]).pipe(A(function(m){var r=l(m);m=r.next().value;r=r.next().value;return e9a(m,gLb.get(b)).length+r}),A(function(m){return m===0?"":m>=250?"250+":""+m}));d=he([d,f]).pipe(A(function(m){var r=l(m);m=r.next().value;r=r.next().value;return m+
r}));var k;return{phase:b,displayName:(k=Tt.get(b))!=null?k:"",query$:c,issues$:e,attentionCount$:g,totalCount$:d}};
esd.prototype.reload=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return a.setLoading(),z(c,Promise.all(Oq([].concat(n(a.byPhase.values())).map(function(d){return Pr(d.query$)})).map(function(d){return Xjd(a.issueFridge,j9a(d))})),2);if(c.nextAddress!=3)return b=c.yieldResult,z(c,Promise.all(Oq(b.flatMap(function(d){return d.results}).map(function(d){return d.issueId})).map(function(d){return a.issueFullFridge.poke(d)})),3);a.setNotLoading();$d(c)})};
var fsd=function(a,b,c){return a.triageFieldConfigs$.pipe(A(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 g=f.defaultValues.find(function(k){var m;if(b&&((m=k.phases)==null||!m.includes(b)))return!1;var r;return!c||(r=k.subphases)!=null&&r.includes(c)?!0:!1});g&&e.push({customFieldId:f.customFieldId,defaultValues:[g]})}return e}))},gsd=function(a,b,c){return a.triageFieldConfigs$.pipe(A(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 g=void 0;if(!b||(g=f.phases)!=null&&g.includes(b))g=void 0,(!c||(g=f.subphases)!=null&&g.includes(c))&&e.push(f)}return e}))},JQ=function(){this.teamFridge=q(GP);this.issueFullFridge=q(RO);this.issueFridge=q(GO);this.teamExperimentalFieldsFridge=q(FP);this.cache=new Map};JQ.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)};
JQ.prototype.create=function(a,b){return new esd(a,b,this.teamFridge,this.issueFullFridge,this.issueFridge,this.teamExperimentalFieldsFridge)};JQ.\u0275fac=function(a){return new (a||JQ)};JQ.\u0275prov=Cc({token:JQ,factory:JQ.\u0275fac,providedIn:"root"});var KQ=function(){this.triageDataFactory=q(JQ);this.isSidebarOpen$=new Xj(!1);this.internalCurrentIssueIds$=new Xj([]);this.currentIssueIds$=this.internalCurrentIssueIds$.pipe(of(Gm));this.currentIssueId$=this.currentIssueIds$.pipe(A(function(a){return a[0]}),of());this.internalSelectedIssueIds$=new Xj([]);this.selectedIssueIds$=this.internalSelectedIssueIds$.pipe(of(Gm));this.mode=0};KQ.prototype.openSidebar=function(){this.isSidebarOpen$.next(!0)};KQ.prototype.closeSidebar=function(){this.isSidebarOpen$.next(!1)};
KQ.prototype.setIssueIds=function(a){this.internalCurrentIssueIds$.next(a);this.internalSelectedIssueIds$.next([])};KQ.prototype.setMode=function(a){this.mode=a};KQ.\u0275fac=function(a){return new (a||KQ)};KQ.\u0275prov=Cc({token:KQ,factory:KQ.\u0275fac,providedIn:"root"});var hsd={ACTIVATION:0,SELECTION:1,0:"ACTIVATION",1:"SELECTION"};var isd=function(){this.issueId="";this.customFieldMap={};this.currentUserEmail="";this.type=this.componentId=this.user=this.originalIssue=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};
isd.prototype.setData=function(a){a=jsd(a);this.originalIssue=Hm(a);var b=Hm(this.originalIssue.snapshot[0]);this.issueId=a.issueId;this.assignee=Om(b.assigneeUser);this.assigneeUser=b.assigneeUser;this.blockedByIssueId=b.blockedByIssueId;this.blockingIssueId=b.blockingIssueId;this.ccUsers=Qm(b.ccUsers);this.cc=this.ccUsers.map(Om);this.collaboratorsUsers=Qm(b.collaboratorsUsers);this.collaborators=this.collaboratorsUsers.map(Om);this.staffing=b.staffing;this.changelist=b.changelist;this.gerritChanges=
b.gerritChanges;this.componentId=b.componentId;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=Om(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=Om(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 ksd(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 ksd({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 jsd=function(a){a=Hm(a);var b=a.snapshot[0];b.status=b.status||"NEW";b.blockingIssueId=b.blockingIssueId||[];b.componentId=b.componentId;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},lsd=function(a,b){switch(b.fieldName){case "assignee":a.setAssignee(b.value||"");break;case "attachments":break;case "blockedByIssueId":if(b.actionType==="REMOVE"){var c,d,e=new Set((d=(c=b.value)==null?void 0:c.split(","))!=null?d:[]),f,g;a.blockedByIssueId=(g=(f=a.blockedByIssueId)==null?void 0:f.filter(function(Ih){return!e.has(Ih)}))!=null?g:[]}else{var k,m,r=(m=(k=b.value)==null?void 0:k.split(","))!=null?
m:[],w;a.blockedByIssueId=Oq([].concat(n((w=a.blockedByIssueId)!=null?w:[]),n(r)))}break;case "blockingIssueId":if(b.actionType==="REMOVE"){var x,D,H=new Set((D=(x=b.value)==null?void 0:x.split(","))!=null?D:[]),J,O;a.blockingIssueId=(O=(J=a.blockingIssueId)==null?void 0:J.filter(function(Ih){return!H.has(Ih)}))!=null?O:[]}else{var R,V;r=(V=(R=b.value)==null?void 0:R.split(","))!=null?V:[];var ba;a.blockingIssueId=Oq([].concat(n((ba=a.blockingIssueId)!=null?ba:[]),n(r)))}break;case "ccs":if(b.actionType===
"REMOVE"){var pa,ua,ma=new Set((ua=(pa=b.value)==null?void 0:pa.split(","))!=null?ua:[]),Da,ja;a.cc=(ja=(Da=a.cc)==null?void 0:Da.filter(function(Ih){return!ma.has(Ih)}))!=null?ja:[]}else{var va,ya;r=(ya=(va=b.value)==null?void 0:va.split(","))!=null?ya:[];var Sa;a.cc=Oq([].concat(n((Sa=a.cc)!=null?Sa:[]),n(r)))}break;case "changelists":if(b.actionType==="REMOVE"){var ab,rb,ac=new Set((rb=(ab=b.value)==null?void 0:ab.split(","))!=null?rb:[]),pc,kc;a.changelist=(kc=(pc=a.changelist)==null?void 0:pc.filter(function(Ih){return!ac.has(Ih)}))!=
null?kc:[]}else{var vc,tb;r=(tb=(vc=b.value)==null?void 0:vc.split(","))!=null?tb:[];var Qb;a.changelist=Oq([].concat(n((Qb=a.changelist)!=null?Qb:[]),n(r)))}break;case "collaborators":if(b.actionType==="REMOVE"){var ib,bc,xc=new Set((bc=(ib=b.value)==null?void 0:ib.split(","))!=null?bc:[]),ud,Tb;a.collaborators=(Tb=(ud=a.collaborators)==null?void 0:ud.filter(function(Ih){return!xc.has(Ih)}))!=null?Tb:[]}else{var qc,Sc;r=(Sc=(qc=b.value)==null?void 0:qc.split(","))!=null?Sc:[];var pd;a.collaborators=
Oq([].concat(n((pd=a.collaborators)!=null?pd:[]),n(r)))}break;case "comment":break;case "componentId":a.componentId=b.value||null;break;case "customField":var Uc=b.customFieldValue,ne,ff,bf;k=Uc.textValue||Uc.dateValue||Uc.enumValue||Uc.numericValue||((r=Uc.repeatedTextValue)==null?void 0:r.values)||((ne=Uc.repeatedDateValue)==null?void 0:ne.values)||((ff=Uc.repeatedEnumValue)==null?void 0:ff.values)||((bf=Uc.repeatedNumericValue)==null?void 0:bf.values)||null;a.setCustomField(Uc.customFieldId,k);
break;case "deletionReason":b.actionType==="REMOVE"?a.deletionReason=null:a.deletionReason=b.value;break;case "duplicateOfIssueId":a.duplicateOfIssueId=b.value||null;break;case "effortEstimate":a.effortEstimate=b.value||null;break;case "foundInVersion":if(b.actionType==="REMOVE"){var Mh,ux;a.foundInVersion=(ux=(Mh=a.foundInVersion)==null?void 0:Mh.filter(function(Ih){return Ih!==b.value}))!=null?ux:[]}else{r=b.value!=null?[b.value]:[];var qp;a.foundInVersion=Oq([].concat(n((qp=a.foundInVersion)!=
null?qp:[]),n(r)))}break;case "gerritChanges":if(b.actionType==="REMOVE"){var Jj,bn,Wq=new Set((bn=(Jj=b.value)==null?void 0:Jj.split(","))!=null?bn:[]),vx;a.gerritChanges=((vx=a.gerritChanges)!=null?vx:[]).map(function(Ih){return lr(Ih)}).filter(function(Ih){return!Wq.has(Ih)}).map(mr).filter(ln)}else{var nk,Ql;r=(Ql=(nk=b.value)==null?void 0:nk.split(","))!=null?Ql:[];ne=((Uc=a.gerritChanges)!=null?Uc:[]).map(function(Ih){return lr(Ih)});a.gerritChanges=Oq([].concat(n(ne),n(r))).map(mr).filter(ln)}break;
case "hotlists":if(b.actionType==="REMOVE"){var rp,wx,dM=new Set((wx=(rp=b.value)==null?void 0:rp.split(",").map(Number))!=null?wx:[]),Rl,iB;a.hotlistId=(iB=(Rl=a.hotlistId)==null?void 0:Rl.filter(function(Ih){return!dM.has(Ih)}))!=null?iB:[]}else{var CY,baa;r=(baa=(CY=b.value)==null?void 0:CY.split(",").map(Number))!=null?baa:[];var caa;a.hotlistId=Oq([].concat(n((caa=a.hotlistId)!=null?caa:[]),n(r)))}break;case "inProd":a.inProd=b.value==="true";break;case "isArchived":a.isArchived=b.value==="true";
break;case "isDeleted":a.isDeleted=b.value==="true";break;case "parentId":break;case "priority":a.priority=b.value;break;case "readState":break;case "reporter":a.reporter=b.value||"";break;case "severity":a.severity=b.value;break;case "sloEndTime":(r=b.value?gn(b.value):null)?a.sloEndTime={seconds:r,nanos:0}:a.sloEndTime=null;break;case "sloSnoozeType":b.value?a.sloSnoozeType=b.value:a.sloSnoozeType=null;break;case "sloStartTime":b.actionType==="REMOVE"?a.sloStartTime=null:(r=gn(b.value))?a.sloStartTime=
{seconds:r,nanos:0}:a.sloStartTime=null;break;case "staffing":var daa;a.staffing=(daa=b.staffingValue)!=null?daa:null;break;case "status":a.setStatus(b.value);break;case "targetedToVersion":if(b.actionType==="REMOVE"){var DY,Ly;a.targetedToVersion=(Ly=(DY=a.targetedToVersion)==null?void 0:DY.filter(function(Ih){return Ih!==b.value}))!=null?Ly:[]}else{r=b.value!=null?[b.value]:[];var My;a.targetedToVersion=Oq([].concat(n((My=a.targetedToVersion)!=null?My:[]),n(r)))}break;case "title":a.title=b.value||
"";break;case "type":a.type=b.value;break;case "verifiedInVersion":if(b.actionType==="REMOVE"){var qP,rP;a.verifiedInVersion=(rP=(qP=a.verifiedInVersion)==null?void 0:qP.filter(function(Ih){return Ih!==b.value}))!=null?rP:[]}else{r=b.value!=null?[b.value]:[];var EY;a.verifiedInVersion=Oq([].concat(n((EY=a.verifiedInVersion)!=null?EY:[]),n(r)))}break;case "verifier":a.verifier=b.value||null;break;default:sb(b.fieldName)}},psd=function(a){for(var b=[],c=l(Object.values(a.customFieldMap)),d=c.next();!d.done;d=
c.next()){d=d.value;var e=msd(a,d.customFieldId);if(!Gm(e?Lm(e):null,Lm(d))){if(e=Mm(d))d.textValue="";b.push({fieldName:"customField",customFieldValue:d,actionType:e?"REMOVE":"ADD"})}}if(a.originalIssue){c=a.originalIssue.snapshot[0];LQ(Om(c.assigneeUser),a.assignee,"assignee",b);LQ(c.componentId,a.componentId,"componentId",b);LQ(c.deletionReason,a.deletionReason,"deletionReason",b);LQ(c.duplicateOfIssueId,a.duplicateOfIssueId,"duplicateOfIssueId",b);LQ(c.inProd,a.inProd,"inProd",b);LQ(c.isArchived,
a.isArchived,"isArchived",b);LQ(c.isDeleted,a.isDeleted,"isDeleted",b);LQ(c.priority,a.priority,"priority",b);LQ(Om(c.reporterUser),a.reporter,"reporter",b);LQ(c.severity,a.severity,"severity",b);LQ(c.status,a.status,"status",b);LQ(c.title,a.title,"title",b);LQ(c.type,a.type,"type",b);LQ(Om(c.verifierUser),a.verifier,"verifier",b);var f,g,k,m;LQ((k=(f=c.sloStartTime)==null?void 0:f.seconds)!=null?k:null,(m=(g=a.sloStartTime)==null?void 0:g.seconds)!=null?m:null,"sloStartTime",b);var r,w,x,D;LQ((x=
(r=c.sloEndTime)==null?void 0:r.seconds)!=null?x:null,(D=(w=a.sloEndTime)==null?void 0:w.seconds)!=null?D:null,"sloEndTime",b);LQ(c.sloSnoozeType,a.sloSnoozeType,"sloSnoozeType",b);var H,J;LQ((J=(H=c.effort)==null?void 0:H.estimate)!=null?J:null,a.effortEstimate,"effortEstimate",b);MQ(Qm(c.ccUsers).map(Om),a.cc,"ccs",b);MQ(Qm(c.collaboratorsUsers).map(Om),a.collaborators,"collaborators",b);nsd(c.staffing,a.staffing,b);MQ(c.changelist,a.changelist,"changelists",b);osd(c.gerritChanges,a.gerritChanges,
b);MQ(c.blockedByIssueId,a.blockedByIssueId,"blockedByIssueId",b);MQ(c.blockingIssueId,a.blockingIssueId,"blockingIssueId",b);MQ(c.foundInVersion,a.foundInVersion,"foundInVersion",b);MQ(c.targetedToVersion,a.targetedToVersion,"targetedToVersion",b);MQ(c.verifiedInVersion,a.verifiedInVersion,"verifiedInVersion",b);MQ(c.hotlistId,a.hotlistId,"hotlists",b)}return b.length?{issueId:a.issueId,actions:b}:null},LQ=function(a,b,c,d){a!==b&&d.push({fieldName:c,value:b!=null?String(b):void 0})},MQ=function(a,
b,c,d){var e=cTa(b||[],new Set(a));a=cTa(a||[],new Set(b));e=l(e);for(b=e.next();!b.done;b=e.next())d.push({fieldName:c,value:String(b.value),actionType:"ADD"});e=l(a);for(a=e.next();!a.done;a=e.next())d.push({fieldName:c,value:String(a.value),actionType:"REMOVE"})},osd=function(a,b,c){var d=N3a(b!=null?b:[],a!=null?a:[]);a=N3a(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"})},nsd=function(a,b,c){var d,e=UWa((d=b==null?void 0:b.plannedAllocations)!=null?d:[]),f,g=UWa((f=a==null?void 0:a.plannedAllocations)!=null?f:[]);a=[].concat(n(e.entries())).filter(function(k){var m=l(k);k=m.next().value;m=m.next().value;var r,w=new (Function.prototype.bind.apply(Set,[null,((r=g.get(k))!=null?r:[]).map(function(x){return Ho(x)})]));return!g.has(k)||m.some(function(x){return!w.has(Ho(x))})}).map(function(k){k=l(k);k.next();return k.next().value});
b=a.map(function(k){var m=k[0];return m.user?Ho(m,k.length>1):m.placeholder?"Placeholder: "+m.placeholder.count+" "+m.placeholder.role:""}).join(", ");d=[].concat(n(g.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){k=l(k).next().value;if(k.user){var m;return(m=k.user.user)==null?void 0:m.emailAddress}return k.placeholder?"Placeholder: "+k.placeholder.role:""}).join(", ");a.length&&c.push({fieldName:"staffing",
staffingValue:{plannedAllocations:a.flat()},actionType:"ADD",value:b});d.length&&c.push({fieldName:"staffing",staffingValue:{plannedAllocations:d.flat()},actionType:"REMOVE",value:f})};h=isd.prototype;
h.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:pn("Unexpected custom field type: "+c)}}};
h.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:pn("Unexpected custom field type: "+c)}}};h.setIsDeleted=function(a){this.isDeleted=a};h.setIsArchived=function(a){this.isArchived=a};h.setDeletionReason=function(a){this.deletionReason=a};
h.setReporter=function(a){this.reporter=a};h.setType=function(a){this.type=a};h.setPriority=function(a){this.priority=a};h.setSeverity=function(a){this.severity=a};h.setAssignee=function(a){this.assignee=a;a=Ao.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")};
h.setVerifier=function(a){this.verifier=a;!this.verifier&&this.originalIssue&&Om(this.originalIssue.snapshot[0].verifierUser)&&this.originalIssue.snapshot[0].status==="VERIFIED"&&(this.status="FIXED")};
h.setStatus=function(a){this.status=a;a=Ao.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)};h.setInProd=function(a){this.inProd=a};h.setCollaborators=function(a){this.collaborators=a};h.setStaffing=function(a){this.staffing=a};
h.setSloEndTime=function(a){this.sloEndTime=a};h.setSloSnoozeType=function(a){this.sloSnoozeType=a};h.setCodeChanges=function(a){var b=[],c=[];a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=mr(d);e?b.push(e):c.push(d)}this.changelist=c!=null?c:[];this.gerritChanges=b!=null?b:[]};
var msd=function(a,b){return a.originalIssue?(a=(a.originalIssue.snapshot[0].customField||[]).find(function(c){return c.customFieldId===b}))?a:null:null},hsb=function(a,b){var c=[];b!==void 0&&!b&&a.changelist&&c.push.apply(c,n(a.changelist));a.gerritChanges&&c.push.apply(c,n(a.gerritChanges.filter(function(d){return d.state==="MERGED"}).map(function(d){return lr(d)})));return c},qsd=function(a){return a.gerritChanges?a.gerritChanges.filter(function(b){return b.state==="PENDING"}).map(function(b){return lr(b)}):
[]},ksd=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};
ksd.prototype.isRepeated=function(){return this.type==null?!1:["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};var rsd=new Map([["assignee",function(a,b){a.assigneeUser=Sm(b.assignee)}],["ccs",function(a,b){a.ccUsers=b.cc.map(Sm).filter(ln)}],["changelists",function(a,b){a.changelist=b.changelist}],["hotlists",function(a,b){a.hotlistId=b.hotlistId}],["reporter",function(a,b){a.reporterUser=Sm(b.reporter)}],["verifier",function(a,b){a.verifierUser=Sm(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 NQ=function(){this.$window=q(ZP)};NQ.\u0275fac=function(a){return new (a||NQ)};NQ.\u0275prov=Cc({token:NQ,factory:NQ.\u0275fac,providedIn:"root"});var OQ=function(){this.session=q(Zu);this.baseDocumentationUrl=this.session.getDocumentationBaseUrl()},Es=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-control":a.baseDocumentationUrl+"/concepts/access-control"},ssd=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"};
OQ.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 tsd=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/automation-access":Es(a)},hmb=function(a){if(!a.session.isExternalSession())return"http://go/buganizer-external-access"},usd=function(a){if(!a.session.isExternalSession())return"http://go/buganizer-public-access"},vsd=function(a){if(a=usd(a))return a+"#recommended-access-settings"},wsd=function(a){if(a=usd(a))return a+"#fully-public-component"},xsd=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"},h8b=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/guides/manage-component#enabling-comment-editing"},Tu=function(){return"http://go/buganizer-retention"};OQ.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 rhc=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/custom-fields"};OQ.prototype.getDisablingFieldsHelpLink=function(){return rhc()+"#hiding-inherited-fields"};var ysd=function(a){return a.session.isInternalSession()?"http://go/delete-comments-attachments":""};OQ.\u0275fac=function(a){return new (a||OQ)};OQ.\u0275prov=Cc({token:OQ,factory:OQ.\u0275fac,providedIn:"root"});var zsd=function(){this.dialogRef=q(dB);this.data=q(fB);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};zsd.\u0275fac=function(a){return new (a||zsd)};
zsd.\u0275cmp=C({type:zsd,selectors:[["b-confirmation-dialog"]],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&&(K(0,"h1",0),S(1),L(),M(2,"div",1),K(3,"div",2),F(4,l9a,2,1,"button",3),K(5,"button",4),N("click",function(){return b.dialogRef.close(!0)}),
S(6),L()());a&2&&(B(),Ag(b.data.title),B(),I("innerHTML",b.data.content,Le),B(2),G(b.showCancelButton?4:-1),B(),I("color",b.confirmButtonTheme),B(),T(" ",b.confirmButtonText," "))},dependencies:[ZA,XA,TA,mB,lB,kB],encapsulation:2});var PQ=function(){this.dialog=q(gB)},Asd=function(a,b){return new Promise(function(c){a.open(Object.assign({},b,{onConfirm:function(){c(!0)},onDismiss:function(){c(!1)}}))})};
PQ.prototype.open=function(a){var b=a.title;var c=a.content;var d=a.onConfirm;var e=a.onDismiss;eB(this.dialog.open(zsd,{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()})};PQ.\u0275fac=function(a){return new (a||PQ)};PQ.\u0275prov=Cc({token:PQ,factory:PQ.\u0275fac,providedIn:"root"});var QQ=function(){this.activeSession=q(Zu);this.documentationLinks=q(OQ);this.confirmationDialogService=q(PQ)},Csd=function(a,b){return new Promise(function(c){Bsd(a,b,function(){c(!0)},function(){c(!1)})})},Bsd=function(a,b,c,d){if(a.activeSession.isExternalSession())c&&c();else{var e="",f=Dh("");if(b==="VULNERABILITY")e="Set the issue type to \u201cVulnerability\u201d?",b={},f=Fh([Dh('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}),Gh("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 g={};f=Fh([Dh('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}),Gh("a",(b.href="http://goto.google.com/pib-slo",b.target=
"_blank",b),"Learn more"),Dh(".\n\nDO NOT use this type to file ",{preserveNewlines:!0}),Gh("a",(f.href="http://goto.google.com/incident-response-policy",f.target="_blank",f),"privacy incidents"),Dh(". Incidents should be filed at ",{preserveNewlines:!0}),Gh("a",(g.href="http://goto.google.com/privacy-incidents",g.target="_blank",g),"go/privacy-incidents"),Dh(".\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(){}})}};QQ.\u0275fac=function(a){return new (a||QQ)};QQ.\u0275prov=Cc({token:QQ,factory:QQ.\u0275fac,providedIn:"root"});var Dsd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Dsd.messageId)};Z(Dsd,X);Dsd.messageId="b.TimeZoneDataList";var RQ=function(){var a=this;this.executor=q(RM);this.activeSession=q(Zu);this.cachedDisplayNames=void 0;this.memoizedTimezones=new wpd(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?be(c):a.executor.get({url:"action/timezone/"+encodeURIComponent(b),responseConstructor:mo}).pipe(A(ETa))},10)};RQ.prototype.get=function(a){return this.memoizedTimezones.get(a)};
var Esd=function(a){return a.cachedDisplayNames?be(Hm(a.cachedDisplayNames)):a.executor.get({url:"action/timezone",responseConstructor:Dsd}).pipe(A(function(b){b=Wi(b,mo,1,Xi(),fb).map(function(c){c=ETa(c);var d=bYc(bl(c,new Date));return{id:c.timeZoneId_,displayName:"("+d+") - "+c.timeZoneId_,gmt:d}});return a.cachedDisplayNames=b}))};RQ.\u0275fac=function(a){return new (a||RQ)};RQ.\u0275prov=Cc({token:RQ,factory:RQ.\u0275fac,providedIn:"root"});var Fsd=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"]]),Gsd=["P0","P1","P2","P3","P4"],Hsd="NEW ASSIGNED ACCEPTED FIXED VERIFIED NOT_REPRODUCIBLE INTENDED_BEHAVIOR OBSOLETE INFEASIBLE DUPLICATE INACTIVE".split(" "),Isd="BUG FEATURE_REQUEST CUSTOMER_ISSUE INTERNAL_CLEANUP PROCESS VULNERABILITY PRIVACY_ISSUE PROGRAM PROJECT FEATURE MILESTONE EPIC STORY TASK".split(" "),Jsd=["HIGH","MEDIUM","LOW","ZERO"],Ksd="SWE SRE PM TPGM UX UXD UXR DATASCI LD DEVREL TW GTM CE OTHER".split(" "),
Lsd=["S0","S1","S2","S3","S4"],Msd=new Map([["PRIORITY_UNSPECIFIED","(Unspecified Priority)"],["P0","P0"],["P1","P1"],["P2","P2"],["P3","P3"],["P4","P4"]]),Nsd=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"]]),Osd=new Map([["TYPE_UNSPECIFIED","report"],["BUG","bug_report_24px"],["CUSTOMER_ISSUE","contact_phone_24px"],["EPIC","beenhere_24px"],["FEATURE","stars_24px"],["FEATURE_REQUEST","reviews_24px"],["INTERNAL_CLEANUP","cleaning_services_24px"],["MILESTONE","outlined_flag_24px"],["PRIVACY_ISSUE","lock_outline_24px"],["PROCESS","retweet_24px"],["PROGRAM","work_outline_24px"],["PROJECT","description_24px"],["STORY","3p_24px"],
["TASK","assignment_turned_in_24px"],["VULNERABILITY","privacy_tip_24px"]]),o9a=new Set("PROGRAM PROJECT MILESTONE FEATURE EPIC STORY TASK".split(" ")),Psd=Isd.map(function(a){return{value:a,displayText:Tm(a),altText:Fsd.get(a),icon:Osd.get(a),group:p9a(a)?1:0}}),SQ=function(){this.priorities=Gsd;this.severities=Lsd;this.editIssueTypes=Isd;this.editIssueTypeChoices=Psd;this.issueTypesDisplayNames=Nsd;this.issueTypesShortDescriptions=Fsd;this.issuePrioritiesDisplayNames=Msd;this.issueTypeIcons=Osd;
this.supportedTimeZones=[{name:"Local time",id:""},{name:"UTC",id:"UTC"},{name:"America/Los_Angeles",id:"America/Los_Angeles"}];this.isWTDMType=p9a};SQ.\u0275fac=function(a){return new (a||SQ)};SQ.\u0275prov=Cc({token:SQ,factory:SQ.\u0275fac,providedIn:"root"});var TQ=function(){var a=q(VP),b=q(RQ),c=q(SQ);LO.call(this);var d=this;this.errorHandler=q(ZM);this.cachedFormatters=new Map;this.userPrefs=BM.dateTimePreferences;this.formatPrefChange$=new rf;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(Af(d.destroyed$));return ee(f).then(function(g){return{name:e.name,timeZone:g}})})).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(Af(d.destroyed$)).subscribe(function(g){g.dateTimePreferences&&(g=g.dateTimePreferences,d.userPrefs=g,d.userTimeZone=d.timeZones[g.timeZone],d.formatPrefChange$.next())})}).catch(function(e){d.errorHandler.errorHandler(null,e)})};Z(TQ,LO);TQ.\u0275dir=LO.\u0275dir;TQ.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);d||(d=new yl(a),this.cachedFormatters.set(a,d));return b?d.format(c,b):d.format(c)};
var Qsd=function(a,b){return a.formatPrefChange$.subscribe(b)};TQ.prototype.formatUserCalendar=function(a){return this.format(this.userPrefs.calendarFormat,null,a)};TQ.\u0275fac=function(a){return new (a||TQ)};TQ.\u0275prov=Cc({token:TQ,factory:TQ.\u0275fac,providedIn:"root"});var UQ=function(){this.dateFormatter=q(TQ)};
UQ.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(Cm(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(Cm(c))}).join(", ");if(a.repeatedEnumValue)return a.repeatedEnumValue.values.join(", ");
if(a.repeatedNumericValue)return a.repeatedNumericValue.values.join(", ")}return""};UQ.\u0275fac=function(a){return new (a||UQ)};UQ.\u0275prov=Cc({token:UQ,factory:UQ.\u0275fac,providedIn:"root"});var VQ=function(){this.customFieldFormatter=q(UQ);this.hotlistFridge=q(UN);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"]},Tsd=function(a,b,c,d){c=c===void 0?null:c;d=d===void 0?"":d;var e;b.bulkEditOps&&(e=n9a(b.bulkEditOps));var f=b.actions||[];!f.length&&b.bulkEditOps&&(f=m9a(b.bulkEditOps));b=Rsd(f).map(function(g){return Ssd(a,g,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+"."},Rsd=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)},Ssd=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(g){var k,m;return(k=(m=a.hotlistFridge.peek(String(g)))==null?void 0:m.name)?"'"+k+"'":g}).join(","):a.ENUM_FIELDS.includes(b.fieldName)&&(f=f?xj(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(g){return g.changeNumber}).join(", "),'"'+f+'" added to '+e):
b.actionType==="REMOVE"&&b.gerritChangeValue?(f=b.gerritChangeValue.map(function(g){return g.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 "'+Ao.get(b.value).displayValue+'"'};VQ.\u0275fac=function(a){return new (a||VQ)};VQ.\u0275prov=Cc({token:VQ,factory:VQ.\u0275fac,providedIn:"root"});var r9a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(r9a,X);r9a.prototype.getContentJudgement=function(){return Y(this,as,2)};r9a.prototype.setContentJudgement=function(a){return hj(this,as,2,a)};var Usd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Usd,X);Usd.prototype.getIssueId=function(){return Hn(this,1)};Usd.prototype.getIssueId_asString=function(){return En(this,1)};Usd.prototype.setIssueId=function(a){return ao(this,1,a)};var Vsd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Vsd,X);h=Vsd.prototype;h.getFilename=function(){return Fi(this,1)};h.setFilename=function(a){return Gj(this,1,a)};h.getMimeType=function(){return Fi(this,2)};h.setMimeType=function(a){return Gj(this,2,a)};h.getSize=function(){return Hn(this,5)};h.setSize=function(a){return Nn(this,5,a)};var WQ=function(){this.activeSession=q(Zu)},Wsd=function(a){var b;if((a=(b=a.activeSession.getTracker())==null?void 0:b.trackerId)&&a!=="0")return[a]},Xt=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:Xsd(a,b,!0,c.trackerId,d)):a=Xsd(a,b,!1,"",d);return a},Xsd=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},Lu=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=c.componentId;e=a.includes(e)?a.indexOf(e):a.length;return{componentPathId:a.slice(e),componentPathName:d.slice(e),fieldConfigsMap:b.fieldConfigsMap,fieldConfigsV2Map:b.fieldConfigsV2Map}},Ysd=function(a,b){return b?a.filter(function(c){return c.trackerId===b}):a};
WQ.\u0275fac=function(a){return new (a||WQ)};WQ.\u0275prov=Cc({token:WQ,factory:WQ.\u0275fac,providedIn:"root"});var XQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,XQ.messageId)};Z(XQ,X);XQ.prototype.getIt=function(){return Y(this,ep,14,fb)};XQ.prototype.setIt=function(a){return hj(this,ep,14,a,fb)};XQ.messageId="b.Attachment";var YQ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,YQ.messageId)};Z(YQ,X);YQ.prototype.getAttachmentsList=function(){return Wi(this,XQ,1,Xi(),fb)};YQ.prototype.setAttachmentsList=function(a){return ij(this,1,a,fb)};YQ.prototype.addAllAttachments=function(a){eq(this,1,XQ,a,fb)};YQ.messageId="b.CreateAttachmentsResponse";var Zsd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Zsd.messageId)};Z(Zsd,X);Zsd.prototype.getErrorMessage=function(){return Fi(this,2,void 0,fb)};Zsd.prototype.setErrorMessage=function(a){Gj(this,2,a,fb)};Zsd.messageId="b.EncryptedMediaResponse";var ZQ=function(){this.executor=q(SM);this.httpClient=q(Zy);this.activeSession=q(Zu);this.trackerHelpers=q(WQ)},$sd=function(a,b){var c=(new Vsd).setFilename(b.filename).setMimeType(b.mimeType);b.encryptedBlobId!=null&&Gj(c,3,b.encryptedBlobId);Gj(c,4,b.docId);b.size!=null&&c.setSize(b.size);return a.executor.post({url:"action/issues/drive_attachment",body:c,responseConstructor:Zsd}).then(q9a)},btd=function(a,b,c){var d=atd(a)+("/download/attachment/"+b+"/"+c);return le(function(){return fetch(d,
{credentials:"include",mode:"no-cors"})}).pipe(zf(function(){return a.httpClient.get(d,{observe:"events",responseType:"arraybuffer",withCredentials:!0}).pipe(A(function(e){if(e instanceof Uy&&e.body)return e.body}))}))},atd=function(a){var b=/(g?bugs-qa\.chromium\.org)/,c=/g-issues\.(.*)\.(.*)\/$/,d=/[^-]issues\.(.*)\.(.*)\/$/,e=Xt(a.trackerHelpers,"");return b.test(e)?"https://usercontent."+b.exec(e)[1]:c.test(e)?(a=c.exec(e),"https://usercontent.g-issues."+a[1]+"."+a[2]):d.test(e)?(a=d.exec(e),
"https://usercontent.issues."+a[1]+"."+a[2]):a.activeSession.isInternalSession()?Ms(a.activeSession)?"https://buganizer.usercontent.corp.google.com":"https://buganizer-qa.usercontent.corp.google.com":LM(a.activeSession)?Ms(a.activeSession)?"https://partnerissuetracker.usercontent.corp.google.com":"https://partnerissuetracker-qa.usercontent.corp.google.com":Ms(a.activeSession)?"https://issuetracker.usercontent.google.com":"https://issuetracker-qa.usercontent.corp.google.com"};
ZQ.\u0275fac=function(a){return new (a||ZQ)};ZQ.\u0275prov=Cc({token:ZQ,factory:ZQ.\u0275fac,providedIn:"root"});var $Q=function(){this.executor=q(SM)};$Q.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})};$Q.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:XQ}).then(t9a)};
$Q.\u0275fac=function(a){return new (a||$Q)};$Q.\u0275prov=Cc({token:$Q,factory:$Q.\u0275fac,providedIn:"root"});var ctd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ctd,X);h=ctd.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getComment=function(){return Y(this,cq,2)};h.setComment=function(a){return hj(this,cq,2,a)};h.setSignificanceOverride=function(a){return cn(this,3,a)};h.getContentJudgement=function(){return Y(this,$o,4)};
h.setContentJudgement=function(a){return hj(this,$o,4,a)};var dtd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(dtd,X);h=dtd.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getCommentNumber=function(){return Wm(this,2)};h.setCommentNumber=function(a){return sn(this,2,a)};var etd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(etd,X);h=etd.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getCommentNumber=function(){return Wm(this,2)};h.setCommentNumber=function(a){return sn(this,2,a)};h.getComment=function(){return Y(this,cq,3)};h.setComment=function(a){return hj(this,cq,3,a)};var ftd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ftd,X);h=ftd.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getCommentNumber=function(){return Wm(this,2)};h.setCommentNumber=function(a){return sn(this,2,a)};h.getRestrictedRetention=function(){return Ri(this,3)};h.setRestrictedRetention=function(a){return cn(this,3,a)};var aR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,aR.messageId)};Z(aR,X);aR.prototype.getIt=function(){return Y(this,wp,2,fb)};aR.prototype.setIt=function(a){return hj(this,wp,2,a,fb)};aR.messageId="b.CommentReaction";var gtd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(gtd,X);gtd.prototype.getIt=function(){return Y(this,ctd,5)};gtd.prototype.setIt=function(a){return hj(this,ctd,5,a)};var bR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,bR.messageId)};Z(bR,X);bR.prototype.getIt=function(){return Y(this,cq,19,fb)};bR.prototype.setIt=function(a){return hj(this,cq,19,a,fb)};bR.messageId="b.IssueComment";var htd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(htd,X);htd.prototype.getIssueCommentsList=function(){return Wi(this,cq,1,Xi())};var itd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,itd.messageId)};Z(itd,X);itd.prototype.getIt=function(){return Y(this,htd,2,fb)};itd.prototype.setIt=function(a){return hj(this,htd,2,a,fb)};itd.messageId="b.ListIssueCommentHistoryResponse";var jtd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(jtd,X);jtd.prototype.getIt=function(){return Y(this,etd,5)};jtd.prototype.setIt=function(a){return hj(this,etd,5,a)};var ktd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ktd,X);ktd.prototype.getIt=function(){return Y(this,ftd,4)};ktd.prototype.setIt=function(a){return hj(this,ftd,4,a)};var cR=function(){this.executor=q(RM)};h=cR.prototype;h.get=function(a,b,c){var d={};c&&(d["X-Restricted-Content-Limit"]=String(M_a(c)));return this.executor.get({url:"action/issues/"+a+"/comment/"+b,options:{headers:d},responseConstructor:bR}).pipe(A(t3a))};
h.create=function(a,b,c,d,e){var f={};e&&(f["G-Recaptcha-Response-Token"]=e);b=(new ctd).setIssueId(a).setComment((new cq).setComment(b).setFormattingMode(Dp(c)));d&&b.setContentJudgement(cYa(d));d=(new gtd).setIt(b);return this.executor.post({url:"action/issues/"+a+"/comment",body:d,responseConstructor:null,options:{headers:f}})};
h.update=function(a,b,c,d,e){var f={};e&&(f["G-Recaptcha-Response-Token"]=e);b=(new jtd).setIt((new etd).setIssueId(a).setCommentNumber(b).setComment((new cq).setComment(c).setFormattingMode(Dp(d))));return this.executor.post({url:"action/issues/"+a+"/updateComment",body:b,options:{headers:f},responseConstructor:null})};h.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})};
h.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:bR}).pipe(A(t3a))};h.listHistory=function(a,b){var c=(new dtd).setIssueId(a).setCommentNumber(b);return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/listIssueCommentHistory",body:c,responseConstructor:itd}).pipe(A(u3a))};
h.updateCommentReaction=function(a){var b=a.issueId;var c=a.commentId;var d=a.reactionType;var e=a.hasReacted;var f;a=new aR;var g=a.setIt,k=new wp;d=(new Ep).setType((f=uhd[d])!=null?f:0);f=sp(d,1,e);f=g.call(a,fq(k,2,Ep,f));return this.executor.post({url:"action/issues/"+b+"/comment/"+c+"/updateReaction",body:f,responseConstructor:aR}).pipe(A(v3a))};
h.updateRetention=function(a,b,c){c=(new ktd).setIt((new ftd).setIssueId(a).setCommentNumber(b).setRestrictedRetention(pYa(c)));return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/update_retention",body:c,responseConstructor:bR}).pipe(A(t3a))};cR.\u0275fac=function(a){return new (a||cR)};cR.\u0275prov=Cc({token:cR,factory:cR.\u0275fac,providedIn:"root"});var dR=function(){this.observableApi=q(cR)};h=dR.prototype;h.get=function(a,b,c){return ee(this.observableApi.get(a,b,c))};
h.create=function(a,b,c,d,e){return ee(this.observableApi.create(a,b,c,d,e))};h.update=function(a,b,c,d,e){return ee(this.observableApi.update(a,b,c,d,e))};h.delete=function(a,b,c,d){return ee(this.observableApi.delete(a,b,c,d))};h.undelete=function(a,b,c){return ee(this.observableApi.undelete(a,b,c))};h.listHistory=function(a,b){return ee(this.observableApi.listHistory(a,b))};h.updateCommentReaction=function(a){return ee(this.observableApi.updateCommentReaction(a))};
h.updateRetention=function(a,b,c){return ee(this.observableApi.updateRetention(a,b,c))};dR.\u0275fac=function(a){return new (a||dR)};dR.\u0275prov=Cc({token:dR,factory:dR.\u0275fac,providedIn:"root"});var ltd=function(){this.dialogRef=q(dB);this.data=q(fB);this.documentationLinks=q(OQ);this.userEmails=this.data.userEmails;this.readMoreLink=this.documentationLinks.baseDocumentationUrl+"/concepts/access-control#explicit_access_warnings"};ltd.prototype.close=function(a){this.dialogRef.close(a)};ltd.\u0275fac=function(a){return new (a||ltd)};
ltd.\u0275cmp=C({type:ltd,selectors:[["confirm-no-access-dialog"]],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&&(K(0,"div",0)(1,"h1",1),S(2,"User may not have access"),L(),K(3,"section",2)(4,"p"),S(5," The following user(s) may not be able to edit, interact with, or get notifications about this issue: "),
L(),K(6,"ul"),Pf(7,v9a,2,1,"li",null,Of),L(),K(9,"section"),S(10,"Continue anyway?"),L()(),K(11,"footer",3)(12,"div",4)(13,"a",5),S(14,"Learn more"),L()(),K(15,"button",6),N("click",function(){return b.close(!0)}),S(16,"Continue"),L(),K(17,"button",7),N("click",function(){return b.close(!1)}),S(18,"Cancel"),L()()());a&2&&(B(7),Qf(b.userEmails),B(6),I("href",b.readMoreLink,Me))},dependencies:[ZA,XA,TA,mB,lB,kB],styles:["ul[_ngcontent-%COMP%]{list-style:disc;margin-bottom:10px}"]});var eR=function(){this.matDialogService=q(gB);this.analytics=q(PO);this.butterBar=q(JM);this.logger=q(XM);this.accessPolicy=q(tN)},ntd=function(a,b){var c=b.componentId;var d=b.userEmails;var e=b.relation;var f=b.analyticsEventLabel;var g,k,m;return y(function(r){switch(r.nextAddress){case 1:if(d.every(function(w){return w.length===0}))return r.return(!0);Vd(r,2);return z(r,mtd(a,c,d,e),4);case 4:g=r.yieldResult;if(g.length===0)return r.return(!0);a.analytics.trackEvent("addUserWithoutAccess","warn",
f);return z(r,a.confirm(g,e),5);case 5:k=r.yieldResult;if(!k)return fs(a.butterBar,"Save cancelled.",4E3),a.analytics.trackEvent("addUserWithoutAccess","cancel",f),r.return(!1);a.analytics.trackEvent("addUserWithoutAccess","proceed",f);return r.return(!0);case 2:return m=Zd(r),a.logger.error(m),r.return(!1)}})},mtd=function(a,b,c,d){var e;return y(function(f){if(f.nextAddress==1)return z(f,a.accessPolicy.checkPermission(c,d,"ISSUE_DEFAULTS",b),2);e=f.yieldResult;return f.return([].concat(n(e.noAccessEmails||
[]),n(e.unknownEmails||[])))})};eR.prototype.confirm=function(a,b){var c=this,d,e,f;return y(function(g){if(g.nextAddress==1)return d={userEmails:a,relation:b},e=c.matDialogService.open(ltd,{width:"400px",data:d}),z(g,ee(eB(e)),2);f=g.yieldResult;return g.return(!!f)})};eR.\u0275fac=function(a){return new (a||eR)};eR.\u0275prov=Cc({token:eR,factory:eR.\u0275fac,providedIn:"root"});var otd=function(a,b){this.size=a;this.name=b;this.transferredBytes=0;this.errorMessage="";this.blobRef=null;this.state=1};otd.prototype.cancel=function(){this.state=4};var ptd={UPLOADING:1,COMPLETE:2,ERROR:3,CANCELLED:4,1:"UPLOADING",2:"COMPLETE",3:"ERROR",4:"CANCELLED"};var fR=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};fR.prototype.reset=function(){this.value="";qtd(this)};var qtd=function(a){for(var b=l(a.uploads),c=b.next();!c.done;c=b.next())c.value.cancel();a.uploads=[]},rtd=function(a){return a.fromTemplate&&a.initialComment===a.value};
fR.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(Hm(c.blobRef));return a};fR.prototype.hasContent=function(){return!(!this.value&&!this.uploads.length)};var std=function(a){return!a.isEmpty()&&!R8b(a)};fR.prototype.isEmpty=function(){return!this.value&&!ttd(this)};
var R8b=function(a){return a.uploads.some(function(b){return b.state===1||b.state===3})},ttd=function(a){return a.uploads.some(function(b){return b.state===2})};var gR=function(){var a=this;this.userPreferencesManager=q(VP);this.timeZonesApi=q(RQ);this.cachedFormatters=new k1a(100);this.userDatePrefs$=this.userPreferencesManager.dateTimePreferences$;this.userCalendarFormat$=this.userDatePrefs$.pipe(A(function(b){return b.calendarFormat||"MMM d, yyyy"}));this.userTimeFormat$=this.userDatePrefs$.pipe(A(function(b){return b.timeFormat||"hh:mma"}));this.userTimeZone$=this.userDatePrefs$.pipe(zf(function(b){return b.timeZone?a.timeZonesApi.get(b.timeZone):be(void 0)}))};
gR.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);d===void 0&&(d=new yl(a),this.cachedFormatters.set(a,d));return b?d.format(c,b):d.format(c)};gR.prototype.formatUserCalendar=function(a){var b=this;return he([this.userCalendarFormat$]).pipe(A(function(c){c=l(c).next().value;return b.format(c,void 0,a)}))};
var utd=function(a,b){return he([a.userTimeFormat$,a.userTimeZone$]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return a.format(c,d,b)}))},vtd=function(a,b){return he([a.userCalendarFormat$,a.userTimeFormat$,a.userTimeZone$]).pipe(A(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)}))},wtd=function(a,b,c){return c?a.timeZonesApi.get(c).pipe(A(function(d){return a.format("yyyy-MM-dd HH:mm:ss Z",d,b)})):be(a.format("yyyy-MM-dd HH:mm:ss Z",
void 0,b))},nwb=function(a,b){var c=void 0;c=c===void 0?0:c;b=b===void 0?!1:b;var d=new Bm;c&&d.setTime(c);c=new Bm;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 BG("m",a)),e=Math.floor((c.getTime()-d.getTime())/864E5));d=new BG(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"};gR.\u0275fac=function(a){return new (a||gR)};gR.\u0275prov=Cc({token:gR,factory:gR.\u0275fac,providedIn:"root"});var hR=new bd("routeParams",{factory:function(){return q(JP).params}});var iR=function(){this.routeParams=q(hR);this.issueComments=q(dR);this.draftStore=q(NQ);this.errorHandler=q(ZM);this.activeSession=q(Zu);this.dateFormatter=q(gR)};
iR.prototype.get=function(a){var b=this;if(this.routeParams.comment)return be(this.routeParams.comment);var c=this.routeParams.template_issue;if(c){var d=Number(this.routeParams.template_comment)||1;return le(function(){return xtd(b,c,d,b.routeParams.do_attribution)})}return a?be(this.draftStore.$window.sessionStorage.getItem(Zr(a))||""):be("")};
var xtd=function(a,b,c,d){var e,f,g,k,m,r,w;return y(function(x){switch(x.nextAddress){case 1:return Vd(x,2),z(x,a.issueComments.get(b,c),4);case 4:return e=x.yieldResult,f=e.unlinkifiedComment,g=e.formattedComment,k="",f?k=f:g&&(k=JVa(g)),z(x,ee(a.dateFormatter.formatUserCalendar(new Date(Number(e.lastModified)/1E3))),5);case 5:return m=x.yieldResult,d?(r="> From issue "+b+" on "+m+":",x.return(r+"\n\n"+k)):x.return(k);case 2:return w=Zd(x),aN(a.errorHandler,w),x.return("")}})};
iR.\u0275fac=function(a){return new (a||iR)};iR.\u0275prov=Cc({token:iR,factory:iR.\u0275fac,providedIn:"root"});var ytd=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 Pr(f.comment$)};this.judgementForNewContent=function(){return Pr(f.judgementForNewContent$)};this.issue$=this.issueFullFridge.watch(this.issueId);this.componentId$=this.issue$.pipe(A(function(g){return g==null?void 0:g.snapshot[0].componentId}),of());this.comment$=this.defaultCommentSource.get(this.issueId).pipe(yf(""),
of(),Df(this.userPreferencesManager.currentCommentFormattingMode$),A(function(g){var k=l(g);g=k.next().value;k=k.next().value;g=new fR(g);g.formattingMode=k;return g}),wf({bufferSize:1,refCount:!0}));this.createRestrictedResourcesComponentIds=this.activeSession.getCreateRestrictedSubresourcesComponentIds();this.componentJudgementForNewContent$=this.componentId$.pipe(A(function(g){if(g&&f.createRestrictedResourcesComponentIds.includes(g))return{severity:"RESTRICTED",judgementReason:"None Specified"}}),
wf({bufferSize:1,refCount:!0}));this.userDefinedJudgementForNewContent$=new Xj(void 0);this.judgementForNewContent$=he([this.componentJudgementForNewContent$.pipe(yf(void 0)),this.userDefinedJudgementForNewContent$]).pipe(A(function(g){var k=l(g);g=k.next().value;k=k.next().value;return k!=null?k:g}),wf({bufferSize:1,refCount:!0}))};ytd.prototype.setJudgementForNewContent=function(a){this.userDefinedJudgementForNewContent$.next(a)};
var ztd=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=Hm({attachment:f.blobRef}),d&&(f.contentJudgement={severity:d.severity,judgementReason:d.judgementReason}),e.push(f));return{judgementForNewContent:d,commentText:a,formattingMode:c,attachmentsWithJudgements:e}},Atd=function(a){var b=
ztd(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},jR=function(){this.defaultCommentSource=q(iR);this.issueFullFridge=q(RO);this.activeSession=q(Zu);this.userPreferencesManager=q(VP)};jR.prototype.create=function(a){return new ytd(a,this.defaultCommentSource,this.issueFullFridge,this.activeSession,this.userPreferencesManager)};
jR.\u0275fac=function(a){return new (a||jR)};jR.\u0275prov=Cc({token:jR,factory:jR.\u0275fac,providedIn:"root"});var kR=function(){this.activeSession=q(Zu)},lR=function(a,b){var c,d;return((c=b.componentPathInfo)==null?void 0:(d=c.allCustomField)==null?void 0:d.filter(function(e){return dzb(a,e.type)}))||[]},dzb=function(a,b){switch(b){case "TEAM":case "REPEATED_TEAM":return a.activeSession.getFlag("enableCustomFieldTypeTeamUI");case "PRODUCT":case "REPEATED_PRODUCT":return a.activeSession.getFlag("enableCustomFieldTypeProductUI");case "USER":case "REPEATED_USER":return a.activeSession.getFlag("enableCustomFieldTypeUserUI");
default:return!0}};kR.\u0275fac=function(a){return new (a||kR)};kR.\u0275prov=Cc({token:kR,factory:kR.\u0275fac,providedIn:"root"});var z9a=[{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"}],A9a=[{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"}];var mR=function(){};mR.prototype.isSloStartTimeApplied=function(a){return!!a&&a.seconds>Date.now()/1E3};
var nR=function(a){return!!a&&!!a.targetTime&&a.targetTime.seconds!==0},Btd=function(a){return nR(a.assignmentBounds)||nR(a.responseBounds)||nR(a.closureBounds)},Ctd=function(a,b){switch(b){case "ASSIGNMENT":return nR(a.assignmentBounds);case "RESPONSE":return nR(a.responseBounds);case "CLOSURE":return nR(a.closureBounds);default:return Btd(a)}},Dtd=function(a){if(!a)return null;var b=[],c=[];a.assignmentBounds&&C9a(b,c,a.assignmentBounds,"ASSIGNMENT");a.responseBounds&&C9a(b,c,a.responseBounds,"RESPONSE");
a.closureBounds&&C9a(b,c,a.closureBounds,"CLOSURE");return b.length>0?(b.sort(D9a),b[0]):c.length>0?(c.sort(D9a),{sloBounds:c[0].sloBounds,sloMetric:""}):null};mR.\u0275fac=function(a){return new (a||mR)};mR.\u0275prov=Cc({token:mR,factory:mR.\u0275fac,providedIn:"root"});var Etd=function(a,b,c,d,e,f){var g=this;this.issueId=a;this.issueFullFridge=b;this.constants=c;this.activeSession=d;this.sloStatusHelpersService=e;this.customFieldHelper=f;this.enableNonWtdmFieldPerTypeVisibility=this.activeSession.getFlag("enableNonWtdmFieldPerTypeVisibility")||!1;var k=B9a({isInternal:this.activeSession.isInternalSession(),isProd:Ms(this.activeSession)});this.showSloStatus=this.activeSession.isInternalSession();this.showChangelists=!this.activeSession.isExternalSession();this.issue$=
this.issueFullFridge.watch(this.issueId);this.issueSnapshot$=this.issue$.pipe(A(function(m){return m==null?void 0:m.snapshot[0]}));this.hasSloDefined$=this.issue$.pipe(A(function(m){var r;return m==null?void 0:(r=m.aggregatedData)==null?void 0:r.sloStatus}),A(function(m){return!!m&&Btd(m)}));this.isWtdmType$=this.issueSnapshot$.pipe(A(function(m){return(m==null?void 0:m.type)!=null&&g.constants.isWTDMType(m.type)}));this.isForgottenFourPrimary$=this.isWtdmType$.pipe(A(function(m){return!m&&!g.enableNonWtdmFieldPerTypeVisibility}));
this.isSloStatusPrimary$=he([this.hasSloDefined$,this.isWtdmType$]).pipe(A(function(m){var r=l(m);m=r.next().value;r=r.next().value;return m||!r}));this.isSeverityPrimary$=this.isWtdmType$.pipe(A(function(m){return!m}));this.isChangelistPrimary$=he([this.isWtdmType$,this.issueSnapshot$]).pipe(A(function(m){var r=l(m);m=r.next().value;r=r.next().value;var w;return!m||!!(r==null?0:(w=r.changelist)==null?0:w.length)||(r==null?void 0:r.type)==="STORY"||(r==null?void 0:r.type)==="TASK"}));this.customFields$=
this.issue$.pipe(A(function(m){var r,w;return(w=m==null?void 0:(r=m.customFields)==null?void 0:r.filter(function(x){return dzb(g.customFieldHelper,x.type)}))!=null?w:[]}));this.visibleFields$=this.issue$.pipe(A(function(m){var r;return(r=m==null?void 0:m.visibleFields)!=null?r:[]}));this.visibleFieldIds$=this.visibleFields$.pipe(A(function(m){return m.map(function(r){return r.customFieldId}).filter(ln)}),A(function(m){return new Set(m)}),wf({refCount:!0,bufferSize:1}));this.visibleGlobalCustomFields$=
he([this.customFields$,this.visibleFieldIds$]).pipe(A(function(m){var r=l(m);m=r.next().value;var w=r.next().value;return new Map(m.filter(function(x){return x.shared&&w.has(x.customFieldId)}).map(function(x){return[x.customFieldId,x]}))}),A(function(m){return k.map(function(r){return m.get(r.customFieldId)}).filter(ln)}),wf({refCount:!0,bufferSize:1}));this.visibleCustomFields$=he([this.visibleFieldIds$,this.customFields$]).pipe(A(function(m){m=l(m);var r=m.next().value;return m.next().value.filter(function(w){return!w.shared&&
r.has(w.customFieldId)})}),wf({refCount:!0,bufferSize:1}));this.hiddenCustomFields$=he([this.visibleFieldIds$,this.customFields$]).pipe(A(function(m){m=l(m);var r=m.next().value;return m.next().value.filter(function(w){return!r.has(w.customFieldId)})}),wf({refCount:!0,bufferSize:1}));this.hiddenFieldCount$=he([this.isForgottenFourPrimary$,this.isSeverityPrimary$,this.isSloStatusPrimary$,this.isChangelistPrimary$,this.hiddenCustomFields$]).pipe(A(function(m){var r=l(m);m=r.next().value;var w=r.next().value;
var x=r.next().value;var D=r.next().value;r=r.next().value;return(m?0:4)+(w?0:1)+(!g.showSloStatus||x?0:1)+(!g.showChangelists||D?0:2)+r.length}),wf({refCount:!0,bufferSize:1}));this.hasHiddenFields$=this.hiddenFieldCount$.pipe(A(function(m){return m>0}));this.showHiddenFieldsLabel$=this.hiddenFieldCount$.pipe(A(function(m){return m===1?"Show 1 additional field":"Show "+m+" additional fields"}))},oR=function(){this.issueFullFridge=q(RO);this.constants=q(SQ);this.activeSession=q(Zu);this.sloStatusHelpersService=
q(mR);this.customFieldHelper=q(kR)};oR.prototype.create=function(a){return new Etd(a,this.issueFullFridge,this.constants,this.activeSession,this.sloStatusHelpersService,this.customFieldHelper)};oR.\u0275fac=function(a){return new (a||oR)};oR.\u0275prov=Cc({token:oR,factory:oR.\u0275fac,providedIn:"root"});var pR=function(){LO.apply(this,arguments);this.analytics=q(PO);this.clearcut=q(HO);this.userActivity=q(NO);this.stopActivityTracking$=new rf;this.issueToTrackingState=new Map;this.getState=vo(this.issueToTrackingState,E9a);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)};Z(pR,LO);
pR.\u0275dir=LO.\u0275dir;var Ftd=function(a,b){a.getState(b);a.userActivity.active$.pipe(of(),Af(a.stopActivityTracking$)).subscribe(function(c){return void a.onUserActiveStatusUpdate(b,c)})},hs=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),Gtd(a,c,"idp-time-to-action",b.variations),d.firstActionSeen=!0)};
pR.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)){IO(this.clearcut,d,"idp-session-time");b=this.clearcut;var e=c.sessionStartTime;d=Date.now();a=(new Tmd).setIssueId(a).setUserAction(1).setEnvironmentType(b.environmentType).setFrontendAccessMode(b.frontendAccessMode);var f=new Smd,g=new Rmd;e=$r(g,1,e==null?e:Xca(e));d=$r(e,2,d==null?d:Xca(d));d=hj(f,Rmd,1,d);a=hj(a,Smd,2,d);b.clearcutTransport.transport.dispatch(a);
c.sessionStartTime=Date.now()}};var Qu=function(a,b,c){a.getState(b).variations.add(c)},Gtd=function(a,b,c,d){IO(a.clearcut,b,c);d=l(d);for(var e=d.next();!e.done;e=d.next())IO(a.clearcut,b,c+"-"+e.value)};pR.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(pR)))(b||pR)}}();pR.\u0275prov=Cc({token:pR,factory:pR.\u0275fac,providedIn:"root"});var Htd={type:"TAKE",displayText:"Assign to me",description:"Assign issue to yourself"},Itd={type:"DEFAULT_ASSIGNEE",displayText:"Assign to default",description:"Use the component's default assignee"},Jtd={type:"START",displayText:"Start work",description:"Change issue status to '"+Um.get("ACCEPTED")+"'"},Ktd={type:"FIX",displayText:"Mark fixed",description:"Change issue status to '"+Um.get("FIXED")+"'"},Ltd={type:"VERIFY",displayText:"Verify",description:"Change issue status to '"+Um.get("VERIFIED")+
"'"},Mtd={type:"REOPEN",displayText:"Re-open",description:"Change issue status back to '"+Um.get("ASSIGNED")+"'"};var Otd=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(wf({bufferSize:1,refCount:!0}));this.issueSnapshot$=this.issue$.pipe(A(function(f){return f==null?void 0:f.snapshot[0]}));this.currentAssignee$=this.issueSnapshot$.pipe(A(function(f){return(f==null?void 0:f.assigneeUser)&&Rm(f.assigneeUser)}),
A(hn));this.defaultAssigneeForComponent$=this.issueSnapshot$.pipe(A(function(f){return f==null?void 0:f.componentId}),of(),zf(function(f){return f?e.componentTemplatesFridge.defaultTemplate$(String(f)):be(void 0)}),A(function(f){return f&&Rm(f.snapshot.assigneeUser)}),wf({bufferSize:1,refCount:!0}));this.issueAssigneeQuickAction$=he([this.currentAssignee$,this.defaultAssigneeForComponent$]).pipe(A(function(f){var g=l(f);f=g.next().value;g=g.next().value;return e.defaultAssigneeQuickActionEnabled&&
g&&f!==g?Itd:void 0}));this.issueStatusQuickAction$=this.issueSnapshot$.pipe(A(function(f){return f&&Ntd(e,f)}))},Ptd=function(a,b,c){var d;return y(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:sb(c.type)}return e.jumpTo(0)}if(e.nextAddress!=4)return z(e,ee(a.defaultAssigneeForComponent$),4);if(d=e.yieldResult)b.status==="NEW"&&(b.status="ASSIGNED"),b.assignee=d;return e.jumpTo(0)})},Ntd=function(a,b){a=a.activeSession.getUserEmail();var c=b.status;if(Rm(b.verifierUser)===a&&c==="FIXED")return Ltd;if(Rm(b.assigneeUser)===a)switch(c){case "ASSIGNED":return Jtd;case "ACCEPTED":return Ktd;default:return Mtd}switch(c){case "NEW":return Htd;case "ASSIGNED":return Htd;case "ACCEPTED":return Htd;
default:return Mtd}},qR=function(){this.activeSession=q(Zu);this.issueFullFridge=q(RO);this.componentTemplatesFridge=q(GN)};qR.prototype.create=function(a){return new Otd(a,this.activeSession,this.issueFullFridge,this.componentTemplatesFridge)};qR.\u0275fac=function(a){return new (a||qR)};qR.\u0275prov=Cc({token:qR,factory:qR.\u0275fac,providedIn:"root"});var Qtd={COMMENT_EDIT:"commentEdit",RETENTION:"retention",SUBSCRIBE:"subscribe",UNDELETE_ATTACHMENT:"undeleteAttachment",DELETE_ATTACHMENT:"deleteAttachment",COMMENT_UNDELETE:"commentUndelete",COMMENT_DELETE:"commentDelete"},Rtd=function(){this.fields=new OP};Rtd.prototype.get=function(a){return this.fields.has(F9a(a))};
var Std=function(a,b){return Cs(a.fields,F9a(b))},gs=function(a,b){a.fields.add(F9a(b))},rR=function(a,b){a.fields.delete(F9a(b))},Ttd=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,g=Qtd,k=(f=Aid.get(g))!=null?f:new Set(Object.values(g));Aid.set(g,k);k.has(e)?d.push(e):c.push(e)}return{fields:c,extraFields:d,customFields:b}};var G9a={QA:{157:[{emailAddress:"security@chromium.org"}]},PROD:{157:[{emailAddress:"security@chromium.org"}]}};var sR=function(){};sR.prototype.transform=function(a){return I9a(a)};sR.\u0275fac=function(a){return new (a||sR)};sR.\u0275pipe=cf({name:"appendDomain",type:sR,pure:!0});var M9a={"\u2705":"good","\u26a0\ufe0f":"warn","\u26a0":"warn","\u26d4":"bad","\u274c":"bad","\ud83d\uded1":"bad","\ud83d\udeab":"bad"},O9a=RegExp("(^|[/;,\\-\\s])+(\\d+)","g"),P9a=RegExp("(b|b-qa|issues)\\/(\\d+)","g"),Utd=/[\u200b\u2060\u200c\u200d]/u;var tR=function(){var a=this;this.activeSession=q(Zu);this.butterBar=q(JM);this.issueInteractionsTracking=q(pR);this.issueApi=q(uO);this.componentFridge=q(AN);this.permissionsFridge=q(mP);this.eventsForIssueFridge=q(vO);this.statusMessages=q(VQ);this.errorHandler=q(ZM);this.confirmationDialogService=q(PQ);this.principalTypes=q(oP);this.issuePermissionService=q(NP);this.accessPolicy=q(tN);this.issueTypeDialog=q(QQ);this.logger=q(XM);this.issueFullFridge=q(RO);this.confirmNoAccessService=q(eR);this.issueService=
q(AO);this.attachmentsMember=q($Q);this.userPreferencesManager=q(VP);this.issueComments=q(dR);this.draftStore=q(NQ);this.attachmentApi=q(ZQ);this.issueFieldsFactory=q(oR);this.issueQuickActionsFactory=q(qR);this.issueCommentDraftFactory=q(jR);this.implicitTriageService=q(FQ);this.analytics=q(PO);this.isSavingMap=new Map;this.savingState=vo(this.isSavingMap,function(){return new Rtd});this.issueFieldsMap=new Map;this.issueFields=vo(this.issueFieldsMap,function(b){return a.issueFieldsFactory.create(b)});
this.issueQuickActionsMap=new Map;this.issueQuickActions=vo(this.issueQuickActionsMap,function(b){return a.issueQuickActionsFactory.create(b)});this.editableIssueMap=new Map;this.editableIssue$=vo(this.editableIssueMap,function(b){return Vtd(a,b)});this.editableIssue=function(b){return a.editableIssue$(b).value};this.subscriptions=new Map;this.getSubscription=vo(this.subscriptions,function(){return new Od});this.issueCommentDraftMap=new Map;this.issueCommentDraft=vo(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)}};tR.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()};
tR.prototype.updateComponent=function(a,b,c,d){var e=this,f,g,k,m,r,w;return y(function(x){if(x.nextAddress==1)return f=e.editableIssue(a),f.componentId=b,(g=Wtd(e,f))&&g.actions&&g.actions.length?z(x,e.getRetentionState(a),2):x.return();k=x.yieldResult;Xtd(e,g);m={issueId:a,componentId:b};r=Object.assign({},m,{setLimitViewTrusted:d});w=c?e.issueApi.moveIssueExternal(a,r):e.issueApi.moveIssue(a,m);return x.return(Ytd(e,w,g,{originalRetentionState:k}))})};
var AVb=function(a,b,c){var d,e;return y(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=uR(a,d))!=null?e:Promise.resolve())})},Ztd=function(a,b,c,d){var e,f,g,k,m,r;return y(function(w){switch(w.nextAddress){case 1:e=mTa(c);if(!e)return a.logger.warn("unknown issue type: "+c),w.return();f=a.editableIssue(b);if(e!=="VULNERABILITY"&&e!=="PRIVACY_ISSUE"){w.jumpTo(2);break}return z(w,Csd(a.issueTypeDialog,
e),3);case 3:if(g=w.yieldResult,!g)return w.return();case 2:if(!d||e!=="VULNERABILITY"){w.jumpTo(4);break}k=H9a(a.activeSession.getEnvironmentType(),d);if(k===void 0){w.jumpTo(4);break}Vd(w,6);return z(w,a.issueApi.markAsVulnerability(b,k),8);case 8:a.permissionsFridge.poke(vq(b));a.issueFullFridge.poke(b);bk(w,7);break;case 6:m=Zd(w),aN(a.errorHandler,m);case 7:return w.return(Promise.resolve());case 4:return f.setType(e),w.return((r=uR(a,f))!=null?r:Promise.resolve())}})},CVb=function(a,b,c){var d,
e,f;return y(function(g){d=lTa(c);if(!d)return a.logger.warn("unknown priority: "+c),g.return();e=a.editableIssue(b);e.setPriority(d);return g.return((f=uR(a,e))!=null?f:Promise.resolve())})},aud=function(a,b,c){var d,e,f;return y(function(g){d=a.editableIssue(b);d.duplicateOfIssueId=c;d.status="DUPLICATE";e=Wtd(a,d);return e?(f=e.actions.find(function(k){return k.fieldName==="duplicateOfIssueId"&&!xa(k.value||"")}))&&f.value?g.return($td(a,b,{actionIssueId:f.value,implicitAppenders:d.cc,implicitEditors:[],
isDeduping:!0,isRemovingSelfFromCc:!1,requestData:e})):g.return():g.return()})},bud=function(a,b,c){var d,e;return y(function(f){d=a.editableIssue(b);d.setStatus(c);return f.return((e=uR(a,d))!=null?e:Promise.resolve())})},cud=function(a,b,c){var d,e,f;return y(function(g){if(g.nextAddress==1){if(!c)return g.return();d=a.editableIssue(b);e=a.issueQuickActions(b);return z(g,Ptd(e,d,c),2)}return g.return((f=uR(a,d))!=null?f:Promise.resolve())})},BUb=function(a,b,c){var d,e;return y(function(f){d=a.editableIssue(b);
var g;d.effortEstimate=(g=c==null?void 0:c.estimate)!=null?g:null;return f.return((e=uR(a,d))!=null?e:Promise.resolve())})},kVb=function(a,b,c){var d,e;return y(function(f){d=a.editableIssue(b);d.foundInVersion=c;return f.return((e=uR(a,d))!=null?e:Promise.resolve())})},oVb=function(a,b,c){var d,e;return y(function(f){d=a.editableIssue(b);d.verifiedInVersion=c;return f.return((e=uR(a,d))!=null?e:Promise.resolve())})},mVb=function(a,b,c){var d,e;return y(function(f){d=a.editableIssue(b);d.targetedToVersion=
c;return f.return((e=uR(a,d))!=null?e:Promise.resolve())})},qVb=function(a,b,c){var d,e;return y(function(f){d=a.editableIssue(b);d.setInProd(c);return f.return((e=uR(a,d))!=null?e:Promise.resolve())})},fVb=function(a,b,c){var d,e,f;return y(function(g){d=nTa(c);if(!d)return a.logger.warn("unknown severity: "+c),g.return();e=a.editableIssue(b);e.setSeverity(d);return g.return((f=uR(a,e))!=null?f:Promise.resolve())})};
tR.prototype.updateSloStartTime=function(a,b){var c=this,d,e;return y(function(f){d=c.editableIssue(a);d.sloStartTime=b;return f.return((e=uR(c,d))!=null?e:Promise.resolve())})};tR.prototype.updateSloEndTime=function(a,b){var c=this,d,e;return y(function(f){d=c.editableIssue(a);d.setSloEndTime(b);return f.return((e=uR(c,d))!=null?e:Promise.resolve())})};
var hVb=function(a,b,c){var d,e,f;y(function(g){d=a.editableIssue(b);d.changelist=(e=c)!=null?e:[];return g.return((f=uR(a,d))!=null?f:Promise.resolve())})},iVb=function(a,b,c){var d,e,f;y(function(g){d=a.editableIssue(b);d.gerritChanges=(e=c)!=null?e:[];return g.return((f=uR(a,d))!=null?f:Promise.resolve())})};tR.prototype.updateCustomField=function(a,b,c){var d=this,e,f;return y(function(g){e=d.editableIssue(a);e.setCustomField(b,c);return g.return((f=uR(d,e))!=null?f:Promise.resolve())})};
var GVb=function(a,b,c){var d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?z(k,dud(a,b,"verifier",[c]),5):z(k,ntd(a.confirmNoAccessService,{componentId: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((g=uR(a,d))!=null?g:Promise.resolve())}})},
EVb=function(a,b,c){var d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?z(k,dud(a,b,"assignee",[c]),5):z(k,ntd(a.confirmNoAccessService,{componentId: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((g=uR(a,d))!=null?g:Promise.resolve())}})},
eud=function(a,b,c){var d,e,f,g,k,m;return y(function(r){switch(r.nextAddress){case 1:d=a.editableIssue(b);if(a.issuePermissionService.isImplicitAccessEnabled())return z(r,dud(a,b,"CC",c),5);e=x1a(d.cc,c);f=e.added;return z(r,ntd(a.confirmNoAccessService,{componentId:d.componentId,userEmails:f,relation:"reader",analyticsEventLabel:"cc"}),4);case 4:g=r.yieldResult;if(!g)return r.return();r.jumpTo(3);break;case 5:if(k=r.yieldResult,!k)return r.return();case 3:return d.cc=c,r.return((m=uR(a,d))!=null?
m:Promise.resolve())}})},fud=function(a,b,c){var d,e,f,g,k,m;return y(function(r){switch(r.nextAddress){case 1:d=a.editableIssue(b);if(a.issuePermissionService.isImplicitAccessEnabled())return z(r,dud(a,b,"collaborators",c),5);e=x1a(d.collaborators,c);f=e.added;return z(r,ntd(a.confirmNoAccessService,{componentId:d.componentId,userEmails:f,relation:"reader",analyticsEventLabel:"collaborators"}),4);case 4:g=r.yieldResult;if(!g)return r.return();r.jumpTo(3);break;case 5:if(k=r.yieldResult,!k)return r.return();
case 3:return d.setCollaborators(c),r.return((m=uR(a,d))!=null?m:Promise.resolve())}})},gud=function(a,b,c){var d;return y(function(e){d=a.editableIssue(b);d.setStaffing(c);return e.return(uR(a,d))})};tR.prototype.unarchive=function(a){var b=this,c,d;return y(function(e){c=b.editableIssue(a);c.setIsArchived(!1);return e.return((d=uR(b,c))!=null?d:Promise.resolve())})};
tR.prototype.updateIssueRetention=function(a,b){var c=this,d,e,f;return y(function(g){switch(g.nextAddress){case 1:return d={issueId:a,retention:b},e=c.savingState(a),gs(e,"retention"),Vd(g,2,3),z(g,c.issueApi.updateIssueRetention(a,d),5);case 5:return z(g,c.issueFullFridge.poke(a),6);case 6:fs(c.butterBar,"Issue retention updated to "+b+".",4E3);case 3:Wd(g);rR(e,"retention");Yd(g,0);break;case 2:f=Zd(g),aN(c.errorHandler,f),g.jumpTo(3)}})};
var hud=function(a,b){var c,d,e;return y(function(f){c=a.editableIssue(b);c.setIsDeleted(!0);c.setDeletionReason("ABUSE");d=Wtd(a,c);if(!d||!d.actions)return f.jumpTo(0);Xtd(a,d);e=a.issueService.delete(b,"ABUSE");return z(f,Ytd(a,e,d),0)})},ncc=function(a,b){var c,d,e;return y(function(f){c=a.editableIssue(b);c.setIsDeleted(!1);c.setDeletionReason(null);d=Wtd(a,c);if(!d||!d.actions)return f.jumpTo(0);Xtd(a,d);e=a.issueService.undelete(b);return z(f,Ytd(a,e,d),0)})};
tR.prototype.updateSubscription=function(a,b){var c=this,d,e,f,g,k;return y(function(m){switch(m.nextAddress){case 1:return d=c.savingState(a),z(m,ee(c.issueFullFridge.watch(a,{trustUncertainMemory:!0})),2);case 2:e=m.yieldResult;g=(f=e)==null?void 0:f.userData;if(g==null||d.get("subscribe"))return m.return();Vd(m,3,4);gs(d,"subscribe");return z(m,c.issueFullFridge.setNotificationSubscription(a,b),4);case 4:Wd(m);rR(d,"subscribe");Yd(m,0);break;case 3:k=Zd(m),aN(c.errorHandler,k),m.jumpTo(4)}})};
var iud=function(a,b,c){var d,e;y(function(f){switch(f.nextAddress){case 1:d=a.savingState(b);if(!c.attachmentId||c.attachmentId==="0"||d.get("undeleteAttachment"))return f.return();Vd(f,2,3);fs(a.butterBar,"Restoring attachment...");gs(d,"undeleteAttachment");return z(f,a.attachmentsMember.undelete(b.toString(),c),5);case 5:fs(a.butterBar,"Attachment restored."),a.issueFullFridge.poke(b),a.eventsForIssueFridge.poke(b);case 3:Wd(f);rR(d,"undeleteAttachment");Yd(f,0);break;case 2:e=Zd(f),aN(a.errorHandler,
e),f.jumpTo(3)}})},jud=function(a,b,c,d){var e,f;return y(function(g){switch(g.nextAddress){case 1:e=a.savingState(b);if(!c.attachmentId||c.attachmentId==="0"||e.get("deleteAttachment"))return g.return();Vd(g,2,3);fs(a.butterBar,"Deleting attachment...");gs(e,"deleteAttachment");return z(g,a.attachmentsMember.delete(b,c,d),5);case 5:fs(a.butterBar,"Attachment deleted."),a.issueFullFridge.poke(b),a.eventsForIssueFridge.poke(b);case 3:Wd(g);rR(e,"deleteAttachment");Yd(g,0);break;case 2:f=Zd(g),aN(a.errorHandler,
f),g.jumpTo(3)}})};
tR.prototype.saveCommentDraft=function(a,b){var c=this,d=this.issueCommentDraft(a),e=d.comment(),f=ztd(d);if(!f.commentText&&!f.attachmentsWithJudgements.length)return Promise.resolve();var g=Atd(d);Xtd(this,g);return Ytd(this,function(){return y(function(k){switch(k.nextAddress){case 1:return z(k,kud(c,a),2);case 2:if(!f.commentText){k.jumpTo(3);break}c.activeSession.isExternalSession()&&lud(c,a);return z(k,c.issueComments.create(String(a),f.commentText,f.formattingMode,f.judgementForNewContent,b),
4);case 4:e.reset(),c.draftStore.$window.sessionStorage.removeItem(Zr(a));case 3:if(!f.attachmentsWithJudgements.length){k.jumpTo(5);break}var m=c.attachmentApi;var r=f.attachmentsWithJudgements,w=(new Usd).setIssueId(String(a));r!==void 0&&(r=r.map(s9a),ij(w,3,r));m=m.executor.post({url:"action/issues/"+a+"/attachments",body:w,responseConstructor:YQ}).then(u9a);return z(k,m,6);case 6:e.reset();case 5:return d.setJudgementForNewContent(),k.return(c.issueFullFridge.poke(a))}})}(),g)};
var kud=function(a,b){var c,d;return y(function(e){if(!WP(a.userPreferencesManager).autoCcOnComment||!a.issuePermissionService.hasAclToEdit()||a.issuePermissionService.isCurrentUserCCd())return e.return();var f=c=a.editableIssue(b),g=[].concat(n(c.cc),[a.activeSession.getUserEmail()]);f.cc=g;d={issueId:b,actions:[{fieldName:"ccs",value:a.activeSession.getUserEmail(),actionType:"ADD"}]};return z(e,a.issueApi.updateIssue(b,d),0)})},Vtd=function(a,b){var c=a.issueFullFridge.watch(b).pipe(A(function(e){var f=
new isd;e&&(e=mud(a,e),f.currentUserEmail=a.activeSession.getUserEmail(),f.setData(e));return f})),d=new Xj(new isd);a.getSubscription(b).add(c.subscribe(d));return d},uR=function(a,b){function c(H){k=H}function d(H){m=H}var e=b.issueId,f=Wtd(a,b);if(!f)return null;for(var g=!1,k=[],m=[],r=e,w=l(f.actions),x=w.next();!x.done;x=w.next()){x=x.value;var D=x.value||"";if(x.actionType!=="REMOVE")switch(x.fieldName){case "ccs":c(D.split(",").filter(Boolean));break;case "verifier":case "assignee":case "collaborators":d(D.split(",").filter(Boolean));
break;case "duplicateOfIssueId":xa(D)||(k=b.cc,r=String(D),g=!0)}}return $td(a,e,{actionIssueId:r,implicitAppenders:k,implicitEditors:m,isDeduping:g,isRemovingSelfFromCc:f.actions.length===1&&f.actions[0].fieldName==="ccs"&&f.actions[0].actionType==="REMOVE"&&a.activeSession.getUserEmail()===f.actions[0].value,requestData:f})},$td=function(a,b,c){var d=c.actionIssueId;var e=c.implicitAppenders;var f=c.implicitEditors;var g=c.isDeduping;var k=c.isRemovingSelfFromCc;var m=c.requestData;var r,w,x,D,
H,J,O,R,V,ba,pa,ua,ma,Da;return y(function(ja){switch(ja.nextAddress){case 1:return z(ja,Promise.all([nud(a,e,"appender",d),nud(a,f,"writer",d)]),2);case 2:r=ja.yieldResult;w=l(r);x=w.next().value;D=w.next().value;H=x;J=D;O=H.noAccessEmails||[];R=J.noAccessEmails||[];V=[].concat(n(O),n(R));if(V.length===0)return ja.return(oud(a,m,g,k));Vd(ja,3);return z(ja,Promise.all(V.map(function(va){return pud(a,va)})),5);case 5:return ba=ja.yieldResult,pa=L4a({userPrincipals:ba,newEditors:R,newImplicitUsers:V,
isExternalSession:a.activeSession.isExternalSession(),issueId:b,actionIssueId:d}),ua=pa.title,ma=pa.content,z(ja,Asd(a.confirmationDialogService,{title:ua,content:Dh(ma),confirmButtonText:"Allow"}),6);case 6:if(Da=ja.yieldResult)return ja.return(oud(a,m,g,k));a.permissionsFridge.poke(vq(b));a.issueFullFridge.poke(b);bk(ja,0);break;case 3:Zd(ja),a.butterBar.showWarning("Could not determine email type."),$d(ja)}})},oud=function(a,b,c,d){Xtd(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 Ytd(a,e,b)},nud=function(a,b,c,d,e,f){e=e===void 0?!1:e;f=f===void 0?null:f;if(e&&!f)throw Error("Ie");var g=e?"ISSUE_DEFAULTS":"ISSUE";d=e?f:d;e={noAccessEmails:[]};return b.length!==0&&a.issuePermissionService.isImplicitAccessEnabled()?a.accessPolicy.checkPermission(b.map(I9a),c,g,d):Promise.resolve(e)},mud=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=Hm(b);e=Ia(b.snapshot);c=Ttd(d);d=c.customFields;c=l(c.fields);for(var f=c.next();!f.done;f=c.next()){var g=void 0;(g=rsd.get(f.value))==null||g(e,a)}d=l(d);f=d.next();for(c={};!f.done;c={customFieldId$jscomp$17:void 0},f=d.next())f=f.value,c.customFieldId$jscomp$17=Jm(f),c=(e.customField||[]).find(function(k){return function(m){return m.customFieldId===k.customFieldId$jscomp$17}}(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},Wtd=function(a,b){var c=psd(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(S9a(e)))});return c.actions.length?c:null},Xtd=function(a,b){var c=String(b.issueId);fs(a.butterBar,"Saving...",0);var d=b.actions.map(function(e){return e.fieldName}).join(",");hs(a.issueInteractionsTracking,c,{label:d});a=a.savingState(c);b=l(b.actions);
for(c=b.next();!c.done;c=b.next())gs(a,S9a(c.value))},Ytd=function(a,b,c,d){var e,f;return y(function(g){switch(g.nextAddress){case 1:return Vd(g,2),z(g,b,4);case 4:return e=g.yieldResult,SO(a.issueFullFridge,[c.issueId],{eagerUpdate:!1,userActivityType:"EDIT"}).finally(function(){var k=String(c.issueId);a.issueFullFridge.poke(k);a.eventsForIssueFridge.poke(k)}),z(g,qud(a,c,e,d),5);case 5:bk(g,0);break;case 2:f=Zd(g),rud(a,c,f),$d(g)}})},qud=function(a,b,c,d){var e=(d===void 0?{}:d).originalRetentionState;
var f,g,k,m;return y(function(r){f=a.savingState(String(b.issueId));g=l(b.actions);for(k=g.next();!k.done;k=g.next())m=k.value,rR(f,S9a(m));Ord(a.implicitTriageService,b.issueId,b.actions);return c?z(r,sud(a,b,e),0):r.jumpTo(0)})},rud=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())rR(e,S9a(f.value));a.permissionsFridge.poke(vq(d));a.issueFullFridge.poke(d);hq(c)&&c.status===403&&iq(c)?$M(a.errorHandler,iq(c)):aN(a.errorHandler,c)},sud=
function(a,b,c){var d,e,f,g,k,m,r,w,x,D,H;return y(function(J){switch(J.nextAddress){case 1:return z(J,a.getEffortSpec(String(b.issueId)),2);case 2:d=J.yieldResult;e=a.editableIssue(String(b.issueId));k=Tsd(a.statusMessages,b,e.customFieldMap,(g=(f=d)==null?void 0:f.name)!=null?g:"");if(!c){J.jumpTo(3);break}return z(J,Promise.all([a.getRetentionState(String(b.issueId)),a.getRetention(String(b.issueId))]),4);case 4:m=J.yieldResult;r=l(m);w=r.next().value;x=r.next().value;D=w;H=x;if(H!=="INDEFINITE"&&
c&&D){var O=c.retentionPeriod?UVa(Math.floor(c.retentionPeriod.seconds*1E3/864E5)):"indefinite";var R=D.retentionPeriod?UVa(Math.floor(D.retentionPeriod.seconds*1E3/864E5)):"indefinite";O=O===R?"":" Issue retention period changed from "+O+" to "+R+"."}else O="";k+=O;case 3:fs(a.butterBar,k),$d(J)}})},dud=function(a,b,c,d){return y(function(e){if(e.nextAddress==1){var f=a.editableIssue(b);var g=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(n(f.values())).flat())).has(g)?(f.set(c,d),g=!(new Set([].concat(n(f.values())).flat())).has(g)):g=!1;e=g?z(e,tud(a,b,a.editableIssue(b).componentId,c),2):e.return(!0)}else e=e.return(e.yieldResult);return e})},tud=function(a,b,c,d){var e;return y(function(f){if(f.nextAddress==1)return z(f,nud(a,[a.activeSession.getUserEmail()],"reader",b,!0,c),2);e=f.yieldResult;return e.noAccessEmails&&e.noAccessEmails.length!==0?f.return(Asd(a.confirmationDialogService,
{title:"Removing yourself from "+d+" may revoke your access to the issue",content:Dh("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)})};tR.prototype.getRetentionState=function(a){return ee(this.issueFullFridge.watch(a).pipe(A(Z7a)))};tR.prototype.getRetention=function(a){return ee(this.issueFullFridge.watch(a).pipe(A(W7a)))};
tR.prototype.getEffortSpec=function(a){var b=this;return ee(this.issueFullFridge.watch(a).pipe(A(C7a),zf(function(c){return c?b.componentFridge.watch(c):be(void 0)}),A(b8a)))};var pud=function(a,b){return y(function(c){return a.activeSession.isExternalSession()?c.return({principalType:"NON_GAIA",detailedUserType:"NO_DETAILED_TYPE"}):c.return(lpd(a.principalTypes,b,!0))})};
tR.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 lud=function(a,b){var c,d,e,f,g,k,m,r,w,x;y(function(D){if(D.nextAddress==1)return z(D,ee(a.issueFullFridge.watch(b)),2);if(D.nextAddress!=3)return(c=D.yieldResult)&&(d=c.aggregatedData)!=null&&d.createdTimeMicros?z(D,ee(a.eventsForIssueFridge.watch(b)),3):D.return();e=D.yieldResult;if(!e)return D.return();f=a.activeSession.getUserEmail();g=uud(a,e.events,f);k=a.getLabel(c,g,f);x=Date.now()-Math.max((m=c.aggregatedData)==null?void 0:m.createdTimeMicros,(w=(r=g)==null?void 0:r.modifiedDate)!=null?
w:0);a.analytics.trackEvent("comment","create",k,x);$d(D)})};tR.prototype.getLabel=function(a,b,c){if(!b)return"global";var d,e,f=((d=a.snapshot[0].assigneeUser)==null?void 0:d.emailAddress)===((e=a.snapshot[0].reporterUser)==null?void 0:e.emailAddress),g;a=c===((g=a.snapshot[0].assigneeUser)==null?void 0:g.emailAddress);var k;b=(b==null?void 0:(k=b.userPerformingActionUser)==null?void 0:k.emailAddress)!==c;c=a&&b;return f&&c?"needs-reporter-input":c?"newly-assigned-to-me":"global"};
var uud=function(a,b,c){return vud(b,function(d){var e;if(((e=d.userPerformingActionUser)==null?void 0:e.emailAddress)!==c&&d.preDiffs.some(function(g){return g.name==="assignee"&&g.newValue===a.activeSession.getUserEmail()}))return!0;var f;return((f=d.userPerformingActionUser)==null?void 0:f.emailAddress)===c?!0:!1})},vud=function(a,b){for(var c=a.length-1;c>=0;c--)if(b(a[c]))return a[c]};tR.\u0275fac=function(a){return new (a||tR)};tR.\u0275prov=Cc({token:tR,factory:tR.\u0275fac,providedIn:"root"});var vR=function(){LO.apply(this,arguments);this.issueDetailsBrain=q(LP);this.issuePermissionService=q(NP);this.editIssueService=q(tR);this.assigneeInProgress$=new vf(1);this.ccInProgress$=new vf(1);this.id$=this.issueDetailsBrain.id$;this.assigneeUpdate$=this.issueDetailsBrain.issueJs$.pipe(A(function(a){return mWa(a)||""}));this.ccUpdate$=this.issueDetailsBrain.issueJs$.pipe(A(function(a){var b;return Pm((b=zo(a))==null?void 0:b.ccUsers)||[]}));this.assignee$=this.assigneeUpdate$.pipe(wf({refCount:!0,
bufferSize:1}));this.cc$=this.ccUpdate$.pipe(wf({refCount:!0,bufferSize:1}));this.assigneeUpdating$=this.assigneeInProgress$;this.ccUpdating$=this.ccInProgress$;this.editAccess$=this.issuePermissionService.hasAclToEdit$};Z(vR,LO);vR.\u0275dir=LO.\u0275dir;
var wud=function(a,b){var c,d,e;return y(function(f){switch(f.nextAddress){case 1:return z(f,ee(a.id$),2);case 2:c=f.yieldResult;if(!c)return f.return();a.assigneeInProgress$.next(!0);d=b.action==="remove_user"?"":b.email;Vd(f,3,4);return z(f,EVb(a.editIssueService,c,d),6);case 6:return z(f,ee(a.assigneeUpdate$.pipe(te(function(g){g=b.email===g;return b.action==="set_user"?g:!g}),ue(6E4))),4);case 4:Wd(f);a.assigneeInProgress$.next(!1);Yd(f,0);break;case 3:throw e=Zd(f),e;}})},xud=function(a,b){var c,
d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:return z(k,ee(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=eud(a.editIssueService,c,d.cc.filter(function(m){return m!==b.email}))):f=eud(a.editIssueService,c,[].concat(n(d.cc),[b.email]));if(!f)return k.return();Vd(k,3,4);a.ccInProgress$.next(!0);return z(k,f,6);case 6:return z(k,ee(a.ccUpdate$.pipe(te(function(m){m=
m.includes(b.email);return b.action==="set_user"?m:!m}),ue(6E4))),4);case 4:Wd(k);a.ccInProgress$.next(!1);Yd(k,0);break;case 3:throw g=Zd(k),g;}})};vR.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(vR)))(b||vR)}}();vR.\u0275prov=Cc({token:vR,factory:vR.\u0275fac});var yud=function(a){return["chip","gmat-caption",a]},zud=function(){this.variant="grey";this.isTall=!1};zud.\u0275fac=function(a){return new (a||zud)};
zud.\u0275cmp=C({type:zud,selectors:[["onedev-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&yg("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&&(fg(),K(0,"div",0)(1,"div",1),gg(2),L()());a&2&&I("ngClass",Kg(1,yud,b.variant))},dependencies:[hy],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 Aud=function(a){this.chip=a};Aud.\u0275fac=function(a){return new (a||Aud)(Ve(zud))};Aud.\u0275dir=af({type:Aud,selectors:[["","onedevChipIcon",""]],hostVars:10,hostBindings:function(a,b){a&2&&xg("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 wR=function(){};wR.\u0275fac=function(a){return new (a||wR)};wR.\u0275mod=$e({type:wR});wR.\u0275inj=Dc({imports:[xy]});var Bud=function(){};Bud.\u0275fac=function(a){return new (a||Bud)};Bud.\u0275cmp=C({type:Bud,selectors:[["","onedevDot",""]],hostVars:1,hostBindings:function(a){a&2&&Jf("aria-hidden",!0)},standalone:!1,attrs:["onedevDot",""],decls:1,vars:0,template:function(a){a&1&&S(0,"\u00a0\u00b7\u00a0")},encapsulation:2});var Cud=function(){};Cud.\u0275fac=function(a){return new (a||Cud)};Cud.\u0275mod=$e({type:Cud});Cud.\u0275inj=Dc({});var Dud=[[["","onedev-additional-content",""]],[["onedev-hovercard-action"]]],Eud=function(a){return{"with-avatar":a}},Fud=function(){};Fud.prototype.ngOnInit=function(){};Fud.\u0275fac=function(a){return new (a||Fud)};
Fud.\u0275cmp=C({type:Fud,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&&(fg(Dud),K(0,"div",0)(1,"div",1)(2,"div",2),E(3,T9a,1,2,"img",3),K(4,"div",4),S(5),L(),E(6,U9a,2,1,"div",5),L(),E(7,V9a,4,1,"div",6),K(8,"div",7),E(9,Z9a,7,3,"ng-container",8)(10,$9a,4,1,"ng-container",8)(11,a$a,23,5,"ng-container",8),gg(12),L()(),gg(13,1),L());a&2&&(B(2),I("ngClass",Kg(8,Eud,b.person.imageUrl)),B(),I("ngIf",b.person.imageUrl),B(2),Ag(b.person.name||b.person.email),B(),I("ngIf",b.person.name),B(),I("ngIf",b.outOfOfficeDescription),B(2),I("ngIf",b.person.title||b.person.department),
B(),I("ngIf",b.person.location),B(),I("ngIf",b.person.ldap))},dependencies:[wR,zud,Aud,xy,hy,jy,Cud,Bud,kz,iz],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-card-title-max-height:48px}.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:var(--onedev-card-title-max-height);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;overflow-wrap:anywhere}.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 Gud=new bd("API_VERSION"),Hud=new bd("REQUEST_SERVICE for people-pa_api_client"),Iud={$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",dryRunOptionsConsistencyOptionsConsistentReadOverrideType:"dryRunOptions.consistencyOptions.consistentReadOverrideType",
dryRunOptionsConsistencyOptionsDirectoryConsistencyOptionsDirectoryVersionToken:"dryRunOptions.consistencyOptions.directoryConsistencyOptions.directoryVersionToken",dryRunOptionsConsistencyOptionsLevel:"dryRunOptions.consistencyOptions.level",dryRunOptionsConsistencyOptionsLevelOptionsBoundedConsistencyMaxAllowedStaleness:"dryRunOptions.consistencyOptions.levelOptions.boundedConsistency.maxAllowedStaleness",dryRunOptionsConsistencyOptionsLevelOptionsExactTimestamp:"dryRunOptions.consistencyOptions.levelOptions.exactTimestamp",
dryRunOptionsConsistencyOptionsLevelOptionsStaleConsistencyConsistencyRequirement:"dryRunOptions.consistencyOptions.levelOptions.staleConsistency.consistencyRequirement",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",getPeopleRequestRequestMaskGuestUserEmailDisplayOption:"getPeopleRequest.requestMask.guestUserEmailDisplayOption",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",
profileUpdateOptionsNameAbuseOption:"profileUpdateOptions.nameAbuseOption",query:"query",quotaFilterType:"quotaFilterType",quotaUser:"quotaUser",requestConfigContextConfigKey:"requestConfigContext.configKey",requestConfigContextVersion:"requestConfigContext.version",requestMask:"requestMask",requestMaskCustomRequestMask:"requestMask.customRequestMask",requestMaskGuestUserEmailDisplayOption:"requestMask.guestUserEmailDisplayOption",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"},xR=function(a,b,c){this.gapiVersion=
a;this.gapiVersion=a==null?"v2":a;this.$apiClient=new wRc(b,c)};xR.prototype.list=function(a,b){a=a===void 0?{}:a;b=b===void 0?{}:b;return yRc(this.$apiClient,{body:null,httpMethod:"GET",methodId:"people_pa.people.lookup.list",path:"/"+this.gapiVersion+"/people/lookup",queryParams:qxa(a,Iud,b)})};xR.\u0275fac=function(a){return new (a||xR)(Wc(Gud,8),Wc(Hud),Wc(uRc,8))};xR.\u0275prov=Cc({token:xR,factory:xR.\u0275fac,providedIn:"root"});var Jud=function(){};
Jud.\u0275fac=function(a){return new (a||Jud)};Jud.\u0275prov=Cc({token:Jud,factory:function(a){return xR.\u0275fac(a)},providedIn:"root"});var Kud=function(a,b,c){this.gapiVersion=a;this.gapiVersion=a==null?"v2":a;this.$apiClient=new wRc(b,c)};Kud.\u0275fac=function(a){return new (a||Kud)(Wc(Gud,8),Wc(Hud),Wc(uRc,8))};Kud.\u0275prov=Cc({token:Kud,factory:Kud.\u0275fac,providedIn:"root"});var Lud=function(){};Lud.\u0275fac=function(a){return new (a||Lud)};
Lud.\u0275prov=Cc({token:Lud,factory:function(a){return Kud.\u0275fac(a)},providedIn:"root"});var b$a=/.*@google.com/,Mud=new bd("onedevPeopleServiceConfig"),Nud={},yR=function(){},Pud=function(a,b){return Oud(a,[b]).pipe(A(function(c){return c[0]}))};yR.\u0275fac=function(a){return new (a||yR)};yR.\u0275prov=Cc({token:yR,factory:yR.\u0275fac});
var zR=function(a,b,c){var d=this;this.lookupApiClient=a;this.destroy$=new rf;this.config=Nud;c&&c.pipe(Bf(function(e){window.gapi&&e.accessToken&&window.gapi.auth.setToken({access_token:e.accessToken})}),Af(this.destroy$)).subscribe({next:function(e){d.config=e}})};Z(zR,yR);
var Oud=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(A(function(c){return f$a(b,c)}))};zR.prototype.ngOnDestroy=function(){this.destroy$.next()};zR.\u0275fac=function(a){return new (a||zR)(Wc(Jud),Wc(Lud),Wc(Mud,8))};
zR.\u0275prov=Cc({token:zR,factory:zR.\u0275fac});var Qud=function(){};Qud.\u0275fac=function(a){return new (a||Qud)};Qud.\u0275mod=$e({type:Qud});Qud.\u0275inj=Dc({providers:[zR,{provide:yR,useExisting:zR}]});var Rud=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};Z(Rud,Kj);Rud.prototype.getPartialClassMetadata=function(){return{keys:["dayOfWeek","periodEndMinutes","periodStartMinutes"]}};
da.Object.defineProperties(Rud.prototype,{dayOfWeek:{configurable:!0,enumerable:!0,get:function(){return KE(this,"dayOfWeek")?Ij(this,"dayOfWeek"):0},set:function(a){this.Serializable$values.dayOfWeek=a}},periodEndMinutes:{configurable:!0,enumerable:!0,get:function(){return KE(this,"periodEndMinutes")?Ij(this,"periodEndMinutes"):0},set:function(a){this.Serializable$values.periodEndMinutes=a}},periodStartMinutes:{configurable:!0,enumerable:!0,get:function(){return KE(this,"periodStartMinutes")?Ij(this,
"periodStartMinutes"):0},set:function(a){this.Serializable$values.periodStartMinutes=a}}});var Sud=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};Z(Sud,Kj);Sud.prototype.getPartialClassMetadata=function(){return{arrays:{userIds:AR},keys:["debugOptions","userIds"],objects:{debugOptions:Tud}}};
da.Object.defineProperties(Sud.prototype,{debugOptions:{configurable:!0,enumerable:!0,get:function(){return KE(this,"debugOptions")?Ij(this,"debugOptions"):this.debugOptions=new Tud},set:function(a){this.Serializable$values.debugOptions=a}},userIds:{configurable:!0,enumerable:!0,get:function(){return KE(this,"userIds")?Ij(this,"userIds"):this.userIds=[]},set:function(a){this.Serializable$values.userIds=a}}});
var Uud=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.results=a.results==null?null:a.results};Z(Uud,Kj);Uud.prototype.getPartialClassMetadata=function(){return{arrays:{results:Vud},keys:["results"]}};
da.Object.defineProperties(Uud.prototype,{hasResults:{configurable:!0,enumerable:!0,get:function(){return Ij(this,"results")!==null}},results:{configurable:!0,enumerable:!0,get:function(){return KE(this,"results")?Ij(this,"results"):this.results=[]},set:function(a){this.Serializable$values.results=a}}});
var Wud=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};Z(Wud,Kj);
Wud.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","eventSummary","nextAvailable","occupiedUntil"]}};
da.Object.defineProperties(Wud.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return KE(this,"committedUntil")?Ij(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return KE(this,"eventSummary")?Ij(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return KE(this,"nextAvailable")?Ij(this,
"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return KE(this,"occupiedUntil")?Ij(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});
var Xud=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};Z(Xud,Kj);Xud.prototype.getPartialClassMetadata=function(){return{keys:["geoCoordinates","label","location"],objects:{geoCoordinates:Yud}}};
da.Object.defineProperties(Xud.prototype,{geoCoordinates:{configurable:!0,enumerable:!0,get:function(){return KE(this,"geoCoordinates")?Ij(this,"geoCoordinates"):this.geoCoordinates=new Yud},set:function(a){this.Serializable$values.geoCoordinates=a}},label:{configurable:!0,enumerable:!0,get:function(){return KE(this,"label")?Ij(this,"label"):""},set:function(a){this.Serializable$values.label=a}},location:{configurable:!0,enumerable:!0,get:function(){return KE(this,"location")?Ij(this,"location"):
""},set:function(a){this.Serializable$values.location=a}}});var Zud=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};Z(Zud,Kj);Zud.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","nextAvailable","occupiedUntil"]}};
da.Object.defineProperties(Zud.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return KE(this,"committedUntil")?Ij(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return KE(this,"nextAvailable")?Ij(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return KE(this,"occupiedUntil")?Ij(this,
"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var $ud=function(){this.Serializable$values={}};Z($ud,Kj);$ud.prototype.getPartialClassMetadata=function(){return{keys:[]}};
var avd=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};Z(avd,Kj);
avd.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","eventSummary","inMeetingsUntil","nextAvailable","occupiedUntil"]}};
da.Object.defineProperties(avd.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return KE(this,"committedUntil")?Ij(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return KE(this,"eventSummary")?Ij(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},inMeetingsUntil:{configurable:!0,enumerable:!0,get:function(){return KE(this,"inMeetingsUntil")?Ij(this,
"inMeetingsUntil"):""},set:function(a){this.Serializable$values.inMeetingsUntil=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return KE(this,"nextAvailable")?Ij(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return KE(this,"occupiedUntil")?Ij(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var bvd=function(){this.Serializable$values={}};Z(bvd,Kj);
bvd.prototype.getPartialClassMetadata=function(){return{keys:[]}};var Yud=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};Z(Yud,Kj);Yud.prototype.getPartialClassMetadata=function(){return{keys:["latitude","longitude"]}};
da.Object.defineProperties(Yud.prototype,{latitude:{configurable:!0,enumerable:!0,get:function(){return KE(this,"latitude")?Ij(this,"latitude"):0},set:function(a){this.Serializable$values.latitude=a}},longitude:{configurable:!0,enumerable:!0,get:function(){return KE(this,"longitude")?Ij(this,"longitude"):0},set:function(a){this.Serializable$values.longitude=a}}});var cvd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.timeZone=a.timeZone==null?null:a.timeZone};
Z(cvd,Kj);cvd.prototype.getPartialClassMetadata=function(){return{keys:["timeZone"]}};da.Object.defineProperties(cvd.prototype,{timeZone:{configurable:!0,enumerable:!0,get:function(){return KE(this,"timeZone")?Ij(this,"timeZone"):""},set:function(a){this.Serializable$values.timeZone=a}}});
var dvd=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};Z(dvd,Kj);
dvd.prototype.getPartialClassMetadata=function(){return{keys:["experimentalBuildingId","experimentalDeskId","experimentalFloorId","label"]}};
da.Object.defineProperties(dvd.prototype,{experimentalBuildingId:{configurable:!0,enumerable:!0,get:function(){return KE(this,"experimentalBuildingId")?Ij(this,"experimentalBuildingId"):""},set:function(a){this.Serializable$values.experimentalBuildingId=a}},experimentalDeskId:{configurable:!0,enumerable:!0,get:function(){return KE(this,"experimentalDeskId")?Ij(this,"experimentalDeskId"):""},set:function(a){this.Serializable$values.experimentalDeskId=a}},experimentalFloorId:{configurable:!0,enumerable:!0,
get:function(){return KE(this,"experimentalFloorId")?Ij(this,"experimentalFloorId"):""},set:function(a){this.Serializable$values.experimentalFloorId=a}},label:{configurable:!0,enumerable:!0,get:function(){return KE(this,"label")?Ij(this,"label"):""},set:function(a){this.Serializable$values.label=a}}});
var evd=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};Z(evd,Kj);evd.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime","committedUntil","eventSummary"]}};
da.Object.defineProperties(evd.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return KE(this,"comeBackTime")?Ij(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}},committedUntil:{configurable:!0,enumerable:!0,get:function(){return KE(this,"committedUntil")?Ij(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return KE(this,"eventSummary")?Ij(this,"eventSummary"):
""},set:function(a){this.Serializable$values.eventSummary=a}}});var fvd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.comeBackTime=a.comeBackTime==null?null:a.comeBackTime};Z(fvd,Kj);fvd.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime"]}};
da.Object.defineProperties(fvd.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return KE(this,"comeBackTime")?Ij(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}}});var gvd=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};Z(gvd,Kj);
gvd.prototype.getPartialClassMetadata=function(){return{keys:["code","details","message"],objectMaps:{details:{ctor:null,isPropertyArray:!0,isSerializable:!1,isValueArray:!1}}}};
da.Object.defineProperties(gvd.prototype,{code:{configurable:!0,enumerable:!0,get:function(){return KE(this,"code")?Ij(this,"code"):0},set:function(a){this.Serializable$values.code=a}},details:{configurable:!0,enumerable:!0,get:function(){return KE(this,"details")?Ij(this,"details"):this.details=[]},set:function(a){this.Serializable$values.details=a}},message:{configurable:!0,enumerable:!0,get:function(){return KE(this,"message")?Ij(this,"message"):""},set:function(a){this.Serializable$values.message=
a}}});var BR=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};Z(BR,Kj);BR.prototype.getPartialClassMetadata=function(){return{keys:["endTime","startTime"]}};
da.Object.defineProperties(BR.prototype,{endTime:{configurable:!0,enumerable:!0,get:function(){return KE(this,"endTime")?Ij(this,"endTime"):""},set:function(a){this.Serializable$values.endTime=a}},startTime:{configurable:!0,enumerable:!0,get:function(){return KE(this,"startTime")?Ij(this,"startTime"):""},set:function(a){this.Serializable$values.startTime=a}}});
var hvd=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};Z(hvd,Kj);hvd.prototype.getPartialClassMetadata=function(){return{keys:["computationDuration","overrideCurrentTime"]}};
da.Object.defineProperties(hvd.prototype,{computationDuration:{configurable:!0,enumerable:!0,get:function(){return KE(this,"computationDuration")?Ij(this,"computationDuration"):""},set:function(a){this.Serializable$values.computationDuration=a}},overrideCurrentTime:{configurable:!0,enumerable:!0,get:function(){return KE(this,"overrideCurrentTime")?Ij(this,"overrideCurrentTime"):""},set:function(a){this.Serializable$values.overrideCurrentTime=a}}});
var ivd=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};Z(ivd,Kj);ivd.prototype.getPartialClassMetadata=function(){return{keys:["nextCommitmentStatus","nextCommitmentTime"],objects:{nextCommitmentStatus:CR}}};
da.Object.defineProperties(ivd.prototype,{nextCommitmentStatus:{configurable:!0,enumerable:!0,get:function(){return KE(this,"nextCommitmentStatus")?Ij(this,"nextCommitmentStatus"):this.nextCommitmentStatus=new CR},set:function(a){this.Serializable$values.nextCommitmentStatus=a}},nextCommitmentTime:{configurable:!0,enumerable:!0,get:function(){return KE(this,"nextCommitmentTime")?Ij(this,"nextCommitmentTime"):""},set:function(a){this.Serializable$values.nextCommitmentTime=a}}});
var jvd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.timeRange=a.timeRange==null?null:a.timeRange};Z(jvd,Kj);jvd.prototype.getPartialClassMetadata=function(){return{keys:["timeRange"],objects:{timeRange:BR}}};da.Object.defineProperties(jvd.prototype,{timeRange:{configurable:!0,enumerable:!0,get:function(){return KE(this,"timeRange")?Ij(this,"timeRange"):this.timeRange=new BR},set:function(a){this.Serializable$values.timeRange=a}}});
var kvd=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};Z(kvd,Kj);kvd.prototype.getPartialClassMetadata=function(){return{arrays:{availabilities:lvd},keys:["availabilities","nextPollTime","workingHours"],objects:{workingHours:mvd}}};
da.Object.defineProperties(kvd.prototype,{availabilities:{configurable:!0,enumerable:!0,get:function(){return KE(this,"availabilities")?Ij(this,"availabilities"):this.availabilities=[]},set:function(a){this.Serializable$values.availabilities=a}},nextPollTime:{configurable:!0,enumerable:!0,get:function(){return KE(this,"nextPollTime")?Ij(this,"nextPollTime"):""},set:function(a){this.Serializable$values.nextPollTime=a}},workingHours:{configurable:!0,enumerable:!0,get:function(){return KE(this,"workingHours")?
Ij(this,"workingHours"):this.workingHours=new mvd},set:function(a){this.Serializable$values.workingHours=a}}});var Tud=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};Z(Tud,Kj);Tud.prototype.getPartialClassMetadata=function(){return{keys:["forceEnableUserStatusCache","timeSettings"],objects:{timeSettings:hvd}}};
da.Object.defineProperties(Tud.prototype,{forceEnableUserStatusCache:{configurable:!0,enumerable:!0,get:function(){return KE(this,"forceEnableUserStatusCache")?Ij(this,"forceEnableUserStatusCache"):!1},set:function(a){this.Serializable$values.forceEnableUserStatusCache=a}},timeSettings:{configurable:!0,enumerable:!0,get:function(){return KE(this,"timeSettings")?Ij(this,"timeSettings"):this.timeSettings=new hvd},set:function(a){this.Serializable$values.timeSettings=a}}});
var Vud=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};Z(Vud,Kj);Vud.prototype.getPartialClassMetadata=function(){return{keys:["status","userAvailabilities","userId"],objects:{status:gvd,userAvailabilities:kvd,userId:AR}}};
da.Object.defineProperties(Vud.prototype,{hasStatus:{configurable:!0,enumerable:!0,get:function(){return Ij(this,"status")!==null}},status:{configurable:!0,enumerable:!0,get:function(){return KE(this,"status")?Ij(this,"status"):this.status=new gvd},set:function(a){this.Serializable$values.status=a}},hasUserAvailabilities:{configurable:!0,enumerable:!0,get:function(){return Ij(this,"userAvailabilities")!==null}},userAvailabilities:{configurable:!0,enumerable:!0,get:function(){return KE(this,"userAvailabilities")?
Ij(this,"userAvailabilities"):this.userAvailabilities=new kvd},set:function(a){this.Serializable$values.userAvailabilities=a}},hasUserId:{configurable:!0,enumerable:!0,get:function(){return Ij(this,"userId")!==null}},userId:{configurable:!0,enumerable:!0,get:function(){return KE(this,"userId")?Ij(this,"userId"):this.userId=new AR},set:function(a){this.Serializable$values.userId=a}}});
var lvd=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};Z(lvd,Kj);lvd.prototype.getPartialClassMetadata=function(){return{keys:["contexts","status","timeRange"],objects:{contexts:nvd,status:CR,timeRange:BR}}};
da.Object.defineProperties(lvd.prototype,{hasContexts:{configurable:!0,enumerable:!0,get:function(){return Ij(this,"contexts")!==null}},contexts:{configurable:!0,enumerable:!0,get:function(){return KE(this,"contexts")?Ij(this,"contexts"):this.contexts=new nvd},set:function(a){this.Serializable$values.contexts=a}},hasStatus:{configurable:!0,enumerable:!0,get:function(){return Ij(this,"status")!==null}},status:{configurable:!0,enumerable:!0,get:function(){return KE(this,"status")?Ij(this,"status"):
this.status=new CR},set:function(a){this.Serializable$values.status=a}},timeRange:{configurable:!0,enumerable:!0,get:function(){return KE(this,"timeRange")?Ij(this,"timeRange"):this.timeRange=new BR},set:function(a){this.Serializable$values.timeRange=a}}});
var nvd=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};Z(nvd,Kj);
nvd.prototype.getPartialClassMetadata=function(){return{keys:["localTime","upcomingCommitmentContext","upcomingOoo","workingElsewhere"],objects:{localTime:cvd,upcomingCommitmentContext:ivd,upcomingOoo:jvd,workingElsewhere:ovd}}};
da.Object.defineProperties(nvd.prototype,{hasLocalTime:{configurable:!0,enumerable:!0,get:function(){return Ij(this,"localTime")!==null}},localTime:{configurable:!0,enumerable:!0,get:function(){return KE(this,"localTime")?Ij(this,"localTime"):this.localTime=new cvd},set:function(a){this.Serializable$values.localTime=a}},upcomingCommitmentContext:{configurable:!0,enumerable:!0,get:function(){return KE(this,"upcomingCommitmentContext")?Ij(this,"upcomingCommitmentContext"):this.upcomingCommitmentContext=
new ivd},set:function(a){this.Serializable$values.upcomingCommitmentContext=a}},upcomingOoo:{configurable:!0,enumerable:!0,get:function(){return KE(this,"upcomingOoo")?Ij(this,"upcomingOoo"):this.upcomingOoo=new jvd},set:function(a){this.Serializable$values.upcomingOoo=a}},workingElsewhere:{configurable:!0,enumerable:!0,get:function(){return KE(this,"workingElsewhere")?Ij(this,"workingElsewhere"):this.workingElsewhere=new ovd},set:function(a){this.Serializable$values.workingElsewhere=a}}});
var AR=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};Z(AR,Kj);AR.prototype.getPartialClassMetadata=function(){return{keys:["email","obfuscatedGaiaId"]}};
da.Object.defineProperties(AR.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return KE(this,"email")?Ij(this,"email"):""},set:function(a){this.Serializable$values.email=a}},obfuscatedGaiaId:{configurable:!0,enumerable:!0,get:function(){return KE(this,"obfuscatedGaiaId")?Ij(this,"obfuscatedGaiaId"):""},set:function(a){this.Serializable$values.obfuscatedGaiaId=a}}});
var pvd=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};Z(pvd,Kj);pvd.prototype.getPartialClassMetadata=function(){return{keys:["customLocation","homeLocation","officeLocation"],objects:{customLocation:Xud,homeLocation:$ud,officeLocation:dvd}}};
da.Object.defineProperties(pvd.prototype,{customLocation:{configurable:!0,enumerable:!0,get:function(){return KE(this,"customLocation")?Ij(this,"customLocation"):this.customLocation=new Xud},set:function(a){this.Serializable$values.customLocation=a}},homeLocation:{configurable:!0,enumerable:!0,get:function(){return KE(this,"homeLocation")?Ij(this,"homeLocation"):this.homeLocation=new $ud},set:function(a){this.Serializable$values.homeLocation=a}},officeLocation:{configurable:!0,enumerable:!0,get:function(){return KE(this,
"officeLocation")?Ij(this,"officeLocation"):this.officeLocation=new dvd},set:function(a){this.Serializable$values.officeLocation=a}}});
var CR=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};Z(CR,Kj);CR.prototype.getPartialClassMetadata=function(){return{keys:"calendarBusy doNotDisturb inMeeting inactive outOfOffice outsideWorkingHours".split(" "),objects:{calendarBusy:Wud,doNotDisturb:Zud,inMeeting:avd,inactive:bvd,outOfOffice:evd,outsideWorkingHours:fvd}}};
da.Object.defineProperties(CR.prototype,{calendarBusy:{configurable:!0,enumerable:!0,get:function(){return KE(this,"calendarBusy")?Ij(this,"calendarBusy"):this.calendarBusy=new Wud},set:function(a){this.Serializable$values.calendarBusy=a}},doNotDisturb:{configurable:!0,enumerable:!0,get:function(){return KE(this,"doNotDisturb")?Ij(this,"doNotDisturb"):this.doNotDisturb=new Zud},set:function(a){this.Serializable$values.doNotDisturb=a}},inMeeting:{configurable:!0,enumerable:!0,get:function(){return KE(this,
"inMeeting")?Ij(this,"inMeeting"):this.inMeeting=new avd},set:function(a){this.Serializable$values.inMeeting=a}},inactive:{configurable:!0,enumerable:!0,get:function(){return KE(this,"inactive")?Ij(this,"inactive"):this.inactive=new bvd},set:function(a){this.Serializable$values.inactive=a}},hasOutOfOffice:{configurable:!0,enumerable:!0,get:function(){return Ij(this,"outOfOffice")!==null}},outOfOffice:{configurable:!0,enumerable:!0,get:function(){return KE(this,"outOfOffice")?Ij(this,"outOfOffice"):
this.outOfOffice=new evd},set:function(a){this.Serializable$values.outOfOffice=a}},outsideWorkingHours:{configurable:!0,enumerable:!0,get:function(){return KE(this,"outsideWorkingHours")?Ij(this,"outsideWorkingHours"):this.outsideWorkingHours=new fvd},set:function(a){this.Serializable$values.outsideWorkingHours=a}}});var ovd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.location=a.location==null?null:a.location};Z(ovd,Kj);
ovd.prototype.getPartialClassMetadata=function(){return{keys:["location"],objects:{location:pvd}}};da.Object.defineProperties(ovd.prototype,{location:{configurable:!0,enumerable:!0,get:function(){return KE(this,"location")?Ij(this,"location"):this.location=new pvd},set:function(a){this.Serializable$values.location=a}}});var mvd=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.availableTime=a.availableTime==null?null:a.availableTime};Z(mvd,Kj);
mvd.prototype.getPartialClassMetadata=function(){return{arrays:{availableTime:Rud},keys:["availableTime"]}};da.Object.defineProperties(mvd.prototype,{availableTime:{configurable:!0,enumerable:!0,get:function(){return KE(this,"availableTime")?Ij(this,"availableTime"):this.availableTime=[]},set:function(a){this.Serializable$values.availableTime=a}}});var qvd=new bd("API_VERSION"),rvd=new bd("REQUEST_SERVICE for waldo_service_api"),DR=function(){};DR.\u0275fac=function(a){return new (a||DR)};
DR.\u0275mod=$e({type:DR});DR.\u0275inj=Dc({});var svd={$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"},tvd=function(a,b,c){this.gapiVersion=a;this.gapiVersion=a==null?"v1alpha":a;this.$apiClient=new wRc(b,c)};tvd.\u0275fac=function(a){return new (a||tvd)(Wc(qvd,8),Wc(rvd),Wc(uRc,8))};
tvd.\u0275prov=Cc({token:tvd,factory:tvd.\u0275fac});var uvd=function(){};uvd.\u0275fac=function(a){return new (a||uvd)};uvd.\u0275prov=Cc({token:uvd,factory:function(a){return tvd.\u0275fac(a)},providedIn:DR});/*

 Copyright 2005, 2007 Bob Ippolito. All Rights Reserved.
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: MIT
*/
var ER=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};
ER.prototype.cancel=function(a){if(this.fired_)this.result_ instanceof ER&&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_||this.errback(new vvd(this))}};ER.prototype.continue_=function(a,b){this.blocked_=!1;wvd(this,a,b)};
var wvd=function(a,b,c){a.fired_=!0;a.result_=c;a.hadError_=!b;xvd(a)},zvd=function(a){if(a.fired_){if(!a.silentlyCanceled_)throw new yvd(a);a.silentlyCanceled_=!1}};ER.prototype.callback=function(a){zvd(this);wvd(this,!0,a)};ER.prototype.errback=function(a){zvd(this);wvd(this,!1,a)};ER.prototype.addCallback=function(a,b){return Avd(this,a,null,b)};ER.prototype.finally=function(a){var b=this;return Bvd(new Promise(function(c,d){Avd(b,function(e){a();c(e)},function(e){a();d(e)})}))};
var Avd=function(a,b,c,d){var e=a.fired_;e||(b===c?b=c=eD(b):(b=eD(b),c=eD(c)));a.sequence_.push([b,c,d]);e&&xvd(a);return a};ER.prototype.then=function(a,b,c){var d,e,f=new eE(function(g,k){e=g;d=k});Avd(this,e,function(g){g instanceof vvd?f.cancel():d(g);return Cvd},this);return f.then(a,b,c)};ER.prototype.$goog_Thenable=!0;ER.prototype.branch=function(a){var b=new ER;Avd(this,b.callback,b.errback,b);a&&(b.parent_=this,this.branches_++);return b};
ER.prototype.isError=function(a){return a instanceof Error};
var Dvd=function(a){return kBc(a.sequence_,function(b){return typeof b[1]==="function"})},Cvd={},xvd=function(a){if(a.unhandledErrorId_&&a.fired_&&Dvd(a)){var b=a.unhandledErrorId_,c=Evd[b];c&&(ra.clearTimeout(c.id_),delete Evd[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],g=e[1];e=e[2];if(f=a.hadError_?g:f)try{var k=f.call(e||a.defaultScope_,b);k===Cvd&&(k=void 0);k!==void 0&&
(a.hadError_=a.hadError_&&(k==b||a.isError(k)),a.result_=b=k);if(SOc(b)||typeof ra.Promise==="function"&&b instanceof ra.Promise)d=!0,a.blocked_=!0}catch(m){b=m,a.hadError_=!0,Dvd(a)||(c=!0)}}a.result_=b;d&&(k=Dj(a.continue_,a,!0),d=Dj(a.continue_,a,!1),b instanceof ER?(Avd(b,k,d),b.blocking_=!0):b.then(k,d));c&&(b=new Fvd(b),Evd[b.id_]=b,a.unhandledErrorId_=b.id_)},Bvd=function(a){var b=new ER;a.then(function(c){b.callback(c)},function(c){b.errback(c)});return b},yvd=function(){oa.call(this)};
Ww(yvd,oa);yvd.prototype.message="Deferred has already fired";yvd.prototype.name="AlreadyCalledError";var vvd=function(){oa.call(this)};Ww(vvd,oa);vvd.prototype.message="Deferred was canceled";vvd.prototype.name="CanceledError";var Fvd=function(a){this.id_=ra.setTimeout(Dj(this.throwError,this),0);this.error_=a};Fvd.prototype.throwError=function(){delete Evd[this.id_];throw this.error_;};var Evd={};var k$a=function(a,b){var c=b||{};b=c.document||document;var d=yh(a).toString(),e=(new XD(b)).createElement("SCRIPT"),f={script_:e,timeout_:void 0},g=new ER(Gvd,f),k=null,m=c.timeout!=null?c.timeout:5E3;m>0&&(k=window.setTimeout(function(){Hvd(e,!0);g.errback(new Ivd(1,"Timeout reached for loading script "+d))},m),f.timeout_=k);e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(Hvd(e,c.cleanupWhenDone||!1,k),g.callback(null))};e.onerror=function(){Hvd(e,
!0,k);g.errback(new Ivd(0,"Error while loading script "+d))};f=c.attributes||{};Hva(f,{type:"text/javascript",charset:"UTF-8"});vOc(e,f);tOc(e,a);Jvd(b).appendChild(e);return g},Jvd=function(a){var b=YD("HEAD",a);return b&&b.length!==0?b[0]:a.documentElement},Gvd=function(){if(this&&this.script_){var a=this.script_;a&&a.tagName=="SCRIPT"&&Hvd(a,!0,this.timeout_)}},Hvd=function(a,b,c){c!=null&&ra.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=function(){};b&&window.setTimeout(function(){bE(a)},
0)},Ivd=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);oa.call(this,c);this.code=a};Ww(Ivd,oa);var g$a=null,m$a=new WeakMap;var FR=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=le(function(){return i$a().then(function(f){f=f||window.gapi;e.setGapiConfig(f);return o$a(f,{apiKey:e.gapiKey,clientId:e.gapiAuthParams.clientId,scope:e.gapiAuthParams.scope}).then(function(){return f})})})};Z(FR,zRc);
FR.prototype.makeRequest=function(a){var b=this;return this.gapi.pipe(ie(function(c){var d=be(void 0);b.gapiAuthParams.minAuthTokenTimeRemaining!==void 0&&(d=Ud(n$a(c,b.gapiAuthParams.minAuthTokenTimeRemaining)));return d.pipe(ie(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}))}))}))};
FR.prototype.parseResponse=function(a){return new Sd(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)})})};FR.prototype.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&l$a(a,b,this.gapiConfigUpdates[b])};var Kvd=function(a,b,c,d,e){d=d===void 0?{}:d;e=e===void 0?{}:e;FR.call(this,a,c,d,e);this.waldoApiKey=b};Z(Kvd,FR);Kvd.prototype.makeRequest=function(a){var b=FR.prototype.makeRequest,c=b.call;(a.queryParams||(a.queryParams={})).key=this.waldoApiKey;return c.call(b,this,a)};var GR=function(a){var b=this;this.apiStub=a;this.result=new rf;this.destroyed=new vf(1);this.trigger=new rf;this.batchedTrigger=this.trigger.pipe(jla(this.trigger.pipe(gf(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 g=
f=new Date(f.comeBackTime),k=new Date;f=k.getFullYear()===g.getFullYear()&&k.getMonth()===g.getMonth()&&k.getDate()===g.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(Af(this.destroyed)).subscribe(function(c){c=[].concat(n(new Set(c)));Lvd(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)})},Lvd=function(a,b){var c,d;y(function(e){for(var f=new Sud,g=[],k=l(b),m=k.next();!m.done;m=k.next()){m=m.value;var r=new AR;r.email=m;g.push(r)}f.userIds=
g;c=f;f=a.apiStub;var w=w===void 0?{}:w;var x=x===void 0?{}:x;d=yRc(f.$apiClient,{body:c,httpMethod:"POST",methodId:"waldo_service_api_from_stubby_sandbox.useravailabilities.batchget",path:"/"+f.gapiVersion+"/useravailabilities:batchget",queryParams:qxa(w,svd,x),responseCtor:Uud});d.pipe(Af(a.destroyed)).subscribe(a.responseHandler);$d(e)})},Mvd=function(a,b){if(!b)return be({emailAddress:b,availability:"",timezone:""});a.trigger.next(b);return a.result.pipe(te(function(c){return c.emailAddress===
b}))},Nvd=function(a,b){return Mvd(a,b).pipe(A(function(c){return c.availability}))};GR.prototype.ngOnDestroy=function(){this.destroyed.next()};GR.\u0275fac=function(a){return new (a||GR)(Wc(uvd))};GR.\u0275prov=Cc({token:GR,factory:GR.\u0275fac});var Ovd=function(){var a=this;this.waldoAvailabilityService=q(GR);this.user="";this.userSubject=new vf(1);this.availability=this.userSubject.pipe(zf(function(b){return Nvd(a.waldoAvailabilityService,b)}))};Ovd.prototype.ngOnChanges=function(){this.userSubject.next(this.user)};Ovd.\u0275fac=function(a){return new (a||Ovd)};
Ovd.\u0275cmp=C({type:Ovd,selectors:[["waldo-availability-chip"]],inputs:{user:"user"},standalone:!1,features:[Gx],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&&(E(0,p$a,6,3,"div",0),U(1,"async"));a&2&&I("ngIf",W(1,1,b.availability))},dependencies:[jy,py],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 Pvd=function(a){this.proxiedService=a};Z(Pvd,zRc);Pvd.prototype.makeRequest=function(a){var b=this;return le(function(){return b.proxiedService.makeRequest(a)})};var Qvd=new bd("environment"),Rvd={"client/cors":!0,"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0},HR=function(){};HR.\u0275fac=function(a){return new (a||HR)};HR.\u0275mod=$e({type:HR});HR.\u0275inj=Dc({imports:[xy,DR]});var Svd=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))|(docs(\\-(dev|qa)\\.corp)?\\.google\\.com\\/(docs|sheets|slides|drawings|forms|videos)\\-images\\-(rt|qw)))\\/",
"i"),Tvd=/^(https?:)?\/\/sp[1-4]\.((ggpht)|(googleusercontent))\.com\//i,Uvd=/^(https?:)?\/\/(qa(-red|-blue)?|dev2?|image-dev)(-|\.)lighthouse(-auth)?\.sandbox\.google\.com\//i,Vvd=/^(https?:)?\/\/lighthouse-(qa(-red|-blue)?|dev2)\.corp\.google\.com\//i,Wvd=function(a){return Svd.test(a)||Tvd.test(a)||Uvd.test(a)||Vvd.test(a)};var Xvd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Xvd,X);h=Xvd.prototype;h.getSize=function(){return qx(this,1)};h.setSize=function(a){return Wn(this,1,a)};h.getWidth=function(){return qx(this,12)};h.setWidth=function(a){return Wn(this,12,a)};h.getHeight=function(){return qx(this,13)};h.setHeight=function(a){return Wn(this,13,a)};h.setStretch=function(a){return jj(this,33,a)};h.setCrop=function(a){return jj(this,2,a)};
h.setCircleCrop=function(a){return jj(this,51,a)};h.setImageCrop=function(a){return jj(this,32,a)};h.setSmartCrop=function(a){return jj(this,19,a)};h.setSmartCropNoClip=function(a){return jj(this,52,a)};h.setSmartCropUseFace=function(a){return jj(this,67,a)};h.setDetectFaces=function(a){jj(this,80,a)};h.setCenterCrop=function(a){return jj(this,20,a)};h.setPad=function(a){return jj(this,60,a)};h.setDownload=function(a){jj(this,3,a)};h.setHtml=function(a){jj(this,4,a)};
h.setObjectId=function(a){$r(this,7,a==null?a:Xca(a))};h.setLooseFaceCrop=function(a){return jj(this,65,a)};h.setFaceCropVersion=function(a){Wn(this,94,a)};h.setFrameId=function(a){$r(this,29,a==null?a:Xca(a))};h.setTileX=function(a){Wn(this,9,a)};h.setTileY=function(a){Wn(this,10,a)};h.setTileZoom=function(a){Wn(this,11,a)};h.setTileGeneration=function(a){jj(this,14,a)};h.setForceTileGeneration=function(a){jj(this,34,a)};h.setTilePyramidAsProto=function(a){jj(this,72,a)};
h.setExpirationTime=function(a){Wn(this,15,a)};h.setExpirationTimeInMinutes=function(a){Wn(this,107,a)};h.setImageFilter=function(a){return Gj(this,16,a)};h.setKillAnimation=function(a){return jj(this,17,a)};h.setUnfiltered=function(a){jj(this,18,a)};h.setUnfilteredWithTransforms=function(a){jj(this,45,a)};h.setIncludeMetadata=function(a){jj(this,22,a)};h.setIncludePublicMetadata=function(a){jj(this,54,a)};h.setStripGoogleData=function(a){jj(this,82,a)};
h.setPreserveGoogleData=function(a){jj(this,83,a)};h.setStripMetadata=function(a){jj(this,93,a)};h.setStripGeoinfo=function(a){jj(this,95,a)};h.setEsPortraitApprovedOnly=function(a){return jj(this,21,a)};h.setBypassTakedown=function(a){jj(this,23,a)};h.getToken=function(){return Ml(this,24)};h.setToken=function(a){Gj(this,24,a)};h.hasToken=function(){return xm(this,24)};h.setVersionedToken=function(a){Gj(this,36,a)};h.setSkipRefererCheck=function(a){jj(this,6,a)};
h.setRotate=function(a){return Wn(this,26,a)};h.setHorizontalFlip=function(a){jj(this,30,a)};h.setVerticalFlip=function(a){jj(this,31,a)};h.getOverlay=function(){return jw(this,27)};h.setOverlay=function(a){return jj(this,27,a)};h.setQueryString=function(a){Gj(this,28,a)};h.setRequestJpeg=function(a){return jj(this,57,a)};h.setRequestPng=function(a){return jj(this,58,a)};h.setRequestGif=function(a){jj(this,59,a)};h.setRequestAvif=function(a){jj(this,103,a)};
h.setRequestWebp=function(a){return jj(this,35,a)};h.setRequestWebpUnlessMaybeTransparent=function(a){jj(this,41,a)};h.setRequestAnimatedWebp=function(a){jj(this,64,a)};h.setNoWebp=function(a){jj(this,48,a)};h.setRequestH264=function(a){return jj(this,49,a)};h.setLossy=function(a){jj(this,97,a)};h.setNoOverlay=function(a){return jj(this,37,a)};h.setBorderSize=function(a){Wn(this,38,a)};h.setBorderRadius=function(a){Wn(this,86,a)};h.setBorderColor=function(a){Wn(this,39,a)};
h.setBackgroundColor=function(a){Wn(this,87,a)};h.setPadColor=function(a){Wn(this,88,a)};h.setSubstitutionColor=function(a){Wn(this,89,a)};h.setNoSilhouette=function(a){jj(this,40,a)};h.setFocusBlur=function(a){Wn(this,42,a)};h.setFocalPlane=function(a){Wn(this,43,a)};h.setQualityLevel=function(a){return Wn(this,44,a)};h.setQualityBucket=function(a){return Wn(this,62,a)};h.setNoUpscale=function(a){jj(this,46,a)};h.setPreserveAspectRatio=function(a){jj(this,61,a)};
h.setForceTransformation=function(a){jj(this,50,a)};h.setNoDefaultImage=function(a){jj(this,53,a)};h.setNoCorrectExifOrientation=function(a){jj(this,55,a)};h.setSelectFrameNumber=function(a){Wn(this,56,a)};h.setVideoFormat=function(a){Wn(this,63,a)};h.setVideoMultiFormat=function(a){Gj(this,81,a)};h.setVideoManifest=function(a){jj(this,98,a)};h.setDownloadVideo=function(a){jj(this,90,a)};h.setVideoBegin=function(a){Nn(this,68,a)};h.setVideoLength=function(a){Nn(this,69,a)};
h.setMatchVersion=function(a){jj(this,66,a)};h.setImageDigest=function(a){jj(this,70,a)};h.setInternalClient=function(a){Wn(this,71,a)};h.setMonogram=function(a){jj(this,73,a)};h.setForceMonogram=function(a){return jj(this,84,a)};h.setMonogramDogfood=function(a){jj(this,91,a)};h.setIgnoreLowResProfilePhoto=function(a){jj(this,96,a)};h.setAutoloop=function(a){jj(this,74,a)};h.getImageVersion=function(){return rx(this,75)};h.setImageVersion=function(a){Nn(this,75,a)};
h.setPitchDegrees=function(a){tx(this,76,a)};h.setYawDegrees=function(a){tx(this,77,a)};h.setRollDegrees=function(a){tx(this,78,a)};h.setFovDegrees=function(a){tx(this,79,a)};h.setBadge=function(a){Wn(this,85,a)};h.setColorProfile=function(a){Wn(this,92,a)};h.setToneMap=function(a){jj(this,113,a)};h.setNoToneMap=function(a){jj(this,114,a)};h.setDeepCrop=function(a){Gj(this,99,a)};h.setRequestVideoFast=function(a){jj(this,100,a)};h.setVideoFormatFilters=function(a){Gj(this,102,a)};
h.setDummyCacheKeyModifier=function(a){jj(this,104,a)};h.setGainMap=function(a){jj(this,105,a)};h.setNoGainMap=function(a){jj(this,106,a)};h.setForceCookieRedirect=function(a){jj(this,108,a)};h.setStoryboardLevel=function(a){Wn(this,109,a)};h.setStoryboardMosaic=function(a){Wn(this,110,a)};h.setPregenTimestamps=function(a){Gj(this,111,a)};h.setClientExperimentLabel=function(a){Gj(this,112,a)};h.setMediaProvenance=function(a){Wn(this,115,a)};bs.prototype.set=function(a,b){Yvd(this,a,b,!1)};bs.prototype.setValue=function(a){this.value_=a};bs.prototype.add=function(a,b){Yvd(this,a,b,!0)};var Yvd=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 bs);a=a.childNodes_[f]}if(d&&a.value_!==void 0)throw Error("Ke`"+b);a.value_=c};bs.prototype.setAll=function(a){var b=DMc(a);a=CMc(a);for(var c=0;c<b.length;c++)this.set(b[c],a[c])};
var Zvd=function(a,b){for(var c=0;c<b.length;c++)if(a=a.childNodes_[b.charAt(c)],!a)return;return a};bs.prototype.get=function(a){return(a=Zvd(this,a))?a.value_:void 0};bs.prototype.getValues=function(){var a=[];$vd(this,a);return a};var $vd=function(a,b){a.value_!==void 0&&b.push(a.value_);for(var c in a.childNodes_)$vd(a.childNodes_[c],b)};
bs.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]}awd(c,a,b)}else awd(this,"",b);return b};var awd=function(a,b,c){a.value_!==void 0&&c.push(b);for(var d in a.childNodes_)awd(a.childNodes_[d],b+d,c)};h=bs.prototype;h.containsKey=function(a){return this.get(a)!==void 0};h.clear=function(){this.childNodes_={};this.value_=void 0};
h.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("Le`"+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};h.clone=function(){return new bs(this)};
h.getCount=function(){var a=this.getValues();if(a.getCount&&typeof a.getCount=="function")a=a.getCount();else if(Na(a)||typeof a==="string")a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a};h.isEmpty=function(){return this.value_===void 0&&Bva(this.childNodes_)};var dwd=function(){if(!bwd){var a=bwd=new bs,b;for(b in cwd)a.add(b,cwd[b])}},bwd,IR=function(a,b){this.types=a;this.setters=b},cwd={a:new IR([3,0],[function(a,b){a.setEsPortraitApprovedOnly(b)},function(a,b){a.setSelectFrameNumber(b)}]),al:new IR([3],[function(a,b){a.setAutoloop(b)}]),b:new IR([3,0],[function(a,b){a.setBypassTakedown(b)},function(a,b){a.setBorderSize(b)}]),ba:new IR([0],[function(a,b){a.setBadge(b)}]),bc:new IR([0],[function(a,b){a.setBackgroundColor(b)}]),br:new IR([0],[function(a,
b){a.setBorderRadius(b)}]),c:new IR([3,0],[function(a,b){a.setCrop(b)},function(a,b){a.setBorderColor(b)}]),cc:new IR([3],[function(a,b){a.setCircleCrop(b)}]),ci:new IR([3],[function(a,b){a.setImageCrop(b)}]),ckm:new IR([3],[function(a,b){a.setDummyCacheKeyModifier(b)}]),cp:new IR([0],[function(a,b){a.setColorProfile(b)}]),cr:new IR([3],[function(a,b){a.setForceCookieRedirect(b)}]),cv:new IR([0],[function(a,b){a.setFaceCropVersion(b)}]),d:new IR([3],[function(a,b){a.setDownload(b)}]),dc:new IR([5],
[function(a,b){a.setDeepCrop(b)}]),df:new IR([3],[function(a,b){a.setDetectFaces(b)}]),dv:new IR([3],[function(a,b){a.setDownloadVideo(b)}]),e:new IR([0],[function(a,b){a.setExpirationTime(b)}]),em:new IR([0],[function(a,b){a.setExpirationTimeInMinutes(b)}]),f:new IR([4],[function(a,b){a.setImageFilter(b)}]),fg:new IR([3],[function(a,b){a.setForceTileGeneration(b)}]),fh:new IR([3],[function(a,b){a.setHorizontalFlip(b)}]),fm:new IR([3],[function(a,b){a.setForceMonogram(b)}]),fo:new IR([2],[function(a,
b){a.setFovDegrees(b)}]),ft:new IR([3],[function(a,b){a.setForceTransformation(b)}]),fv:new IR([3],[function(a,b){a.setVerticalFlip(b)}]),g:new IR([3],[function(a,b){a.setTileGeneration(b)}]),gce:new IR([4],[function(a,b){a.setClientExperimentLabel(b)}]),gd:new IR([3],[function(a,b){a.setPreserveGoogleData(b)}]),gm:new IR([3],[function(a,b){a.setGainMap(b)}]),h:new IR([3,0],[function(a,b){a.setHtml(b)},function(a,b){a.setHeight(b)}]),i:new IR([3],[function(a,b){a.setIncludeMetadata(b)}]),ic:new IR([0],
[function(a,b){a.setInternalClient(b)}]),id:new IR([3],[function(a,b){a.setImageDigest(b)}]),il:new IR([3],[function(a,b){a.setIgnoreLowResProfilePhoto(b)}]),ip:new IR([3],[function(a,b){a.setIncludePublicMetadata(b)}]),iv:new IR([0],[function(a,b){a.setImageVersion(b)}]),j:new IR([1],[function(a,b){a.setFrameId(b)}]),k:new IR([3,0],[function(a,b){a.setKillAnimation(b)},function(a,b){a.setFocusBlur(b)}]),l:new IR([0],[function(a,b){a.setQualityLevel(b)}]),lf:new IR([3],[function(a,b){a.setLooseFaceCrop(b)}]),
lo:new IR([3],[function(a,b){a.setLossy(b)}]),m:new IR([0],[function(a,b){a.setVideoFormat(b)}]),md:new IR([3],[function(a,b){a.setMonogramDogfood(b)}]),mm:new IR([4],[function(a,b){a.setVideoMultiFormat(b)}]),mo:new IR([3],[function(a,b){a.setMonogram(b)}]),mp:new IR([0],[function(a,b){a.setMediaProvenance(b)}]),mv:new IR([3],[function(a,b){a.setMatchVersion(b)}]),n:new IR([3],[function(a,b){a.setCenterCrop(b)}]),nc:new IR([3],[function(a,b){a.setNoCorrectExifOrientation(b)}]),nd:new IR([3],[function(a,
b){a.setNoDefaultImage(b)}]),ng:new IR([3],[function(a,b){a.setStripGeoinfo(b)}]),ngm:new IR([3],[function(a,b){a.setNoGainMap(b)}]),no:new IR([3],[function(a,b){a.setNoOverlay(b)}]),ns:new IR([3],[function(a,b){a.setNoSilhouette(b)}]),nt0:new IR([4],[function(a,b){a.setVersionedToken(b)}]),ntm:new IR([3],[function(a,b){a.setNoToneMap(b)}]),nu:new IR([3],[function(a,b){a.setNoUpscale(b)}]),nw:new IR([3],[function(a,b){a.setNoWebp(b)}]),o:new IR([1,3],[function(a,b){a.setObjectId(b)},function(a,b){a.setOverlay(b)}]),
p:new IR([3,0],[function(a,b){a.setSmartCrop(b)},function(a,b){a.setFocalPlane(b)}]),pa:new IR([3],[function(a,b){a.setPreserveAspectRatio(b)}]),pc:new IR([0],[function(a,b){a.setPadColor(b)}]),pd:new IR([3],[function(a,b){a.setPad(b)}]),pf:new IR([3],[function(a,b){a.setSmartCropUseFace(b)}]),pg:new IR([3],[function(a,b){a.setTilePyramidAsProto(b)}]),pi:new IR([2],[function(a,b){a.setPitchDegrees(b)}]),pp:new IR([3],[function(a,b){a.setSmartCropNoClip(b)}]),pt:new IR([4],[function(a,b){a.setPregenTimestamps(b)}]),
q:new IR([4],[function(a,b){a.setQueryString(b)}]),r:new IR([3,0],[function(a,b){a.setSkipRefererCheck(b)},function(a,b){a.setRotate(b)}]),ra:new IR([3],[function(a,b){a.setRequestAvif(b)}]),rf:new IR([3],[function(a,b){a.setRequestVideoFast(b)}]),rg:new IR([3],[function(a,b){a.setRequestGif(b)}]),rh:new IR([3],[function(a,b){a.setRequestH264(b)}]),rj:new IR([3],[function(a,b){a.setRequestJpeg(b)}]),ro:new IR([2],[function(a,b){a.setRollDegrees(b)}]),rp:new IR([3],[function(a,b){a.setRequestPng(b)}]),
rw:new IR([3],[function(a,b){a.setRequestWebp(b)}]),rwa:new IR([3],[function(a,b){a.setRequestAnimatedWebp(b)}]),rwu:new IR([3],[function(a,b){a.setRequestWebpUnlessMaybeTransparent(b)}]),s:new IR([3,0],[function(a,b){a.setStretch(b)},function(a,b){a.setSize(b)}]),sb:new IR([0],[function(a,b){a.setStoryboardMosaic(b)}]),sc:new IR([0],[function(a,b){a.setSubstitutionColor(b)}]),sg:new IR([3],[function(a,b){a.setStripGoogleData(b)}]),sl:new IR([0],[function(a,b){a.setStoryboardLevel(b)}]),sm:new IR([3],
[function(a,b){a.setStripMetadata(b)}]),t:new IR([4],[function(a,b){a.setToken(b)}]),tm:new IR([3],[function(a,b){a.setToneMap(b)}]),u:new IR([3],[function(a,b){a.setUnfiltered(b)}]),ut:new IR([3],[function(a,b){a.setUnfilteredWithTransforms(b)}]),v:new IR([0],[function(a,b){a.setQualityBucket(b)}]),vb:new IR([0],[function(a,b){a.setVideoBegin(b)}]),vf:new IR([4],[function(a,b){a.setVideoFormatFilters(b)}]),vl:new IR([0],[function(a,b){a.setVideoLength(b)}]),vm:new IR([3],[function(a,b){a.setVideoManifest(b)}]),
w:new IR([0],[function(a,b){a.setWidth(b)}]),x:new IR([0],[function(a,b){a.setTileX(b)}]),y:new IR([0],[function(a,b){a.setTileY(b)}]),ya:new IR([2],[function(a,b){a.setYawDegrees(b)}]),z:new IR([0],[function(a,b){a.setTileZoom(b)}])};
dwd.prototype.parse=function(a){var b=new Xvd,c=new Xvd;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 g=f,k=!1;var m=g;var r=g.charAt(0);r!=r.toLowerCase()&&(k=!0,m=g.charAt(0).toLowerCase()+g.substring(1));var w=bwd;for(r=1;r<=m.length;++r){var x=w,D=m.substring(0,r);if(D.length==0?x.isEmpty():!Zvd(x,D))break}m=r==1?null:(m=w.get(m.substring(0,r-1)))?{option:g.substring(0,r-1),value:g.substring(r-1),signed:k,attributes:m}:null;if(m){g=
[];k=[];r=!1;for(w=0;w<m.attributes.types.length;w++){x=m.attributes.types[w];var H=m.value;D=e;if(m.signed&&x==1)for(var J=H.length;J<12&&D<a.length-1;)H+="-"+a[D+1],J=H.length,++D;else if(x==2)for(;D<a.length-1&&a[D+1].match(/^[\d\.]/);)H+="-"+a[D+1],++D;J=m.attributes.setters[w];H=ewd(this,x)(m.option,H,b,c,J);if(H===null){r=!0;e=D;break}else g.push(x),k.push(H)}if(!r)for(m=0;m<k.length;m++)w=g[m],H=k[m],fwd(this,w)(f,H);d=d&&r}else d=!1}}a=d}return new gwd(b,c,a)};
var hwd=function(a,b,c,d,e,f){e(c,b);a=a.charAt(0);f=f(a==a.toUpperCase());e(d,f)};h=dwd.prototype;h.parseAndSetIntOption_=function(a,b,c,d,e){if(b=="")return 0;b=Jm(b);if(isNaN(b))return 1;hwd(a,b,c,d,e,Number);return null};h.logIntParseError_=function(){};h.parseAndSetFloatOption_=function(a,b,c,d,e){if(b=="")return 0;b=Nm(b);if(isNaN(b))return 1;hwd(a,b,c,d,e,Number);return null};h.logFloatParseError_=function(){};
h.parseAndSetBoolOption_=function(a,b,c,d,e){if(b!="")return 2;hwd(a,!0,c,d,e,Boolean);return null};h.logBoolParseError_=function(){};h.parseAndSetStringOption_=function(a,b,c,d,e){if(b=="")return 0;hwd(a,b,c,d,e,function(f){return f?"1":""});return null};h.logStringParseError_=function(){};h.parseAndSetUint64Base64Option_=function(a,b,c,d,e){if(b=="")return 0;hwd(a,b,c,d,e,function(f){return f?1:0});return null};
var ewd=function(a,b){switch(b){case 0:return Dj(a.parseAndSetIntOption_,a);case 2:return Dj(a.parseAndSetFloatOption_,a);case 3:return Dj(a.parseAndSetBoolOption_,a);case 4:return Dj(a.parseAndSetStringOption_,a);case 1:return Dj(a.parseAndSetUint64Base64Option_,a);default:return function(){}}},fwd=function(a,b){switch(b){case 0:return Dj(a.logIntParseError_,a);case 2:return Dj(a.logFloatParseError_,a);case 3:return Dj(a.logBoolParseError_,a);case 4:case 1:return Dj(a.logStringParseError_,a);default:return function(){}}},
gwd=function(a,b,c){this.valueProto_=a;this.signatureFlagProto_=b;this.valid_=c};gwd.prototype.isValid=function(){return this.valid_};h=q$a.prototype;h.buffer_="";h.set=function(a){this.buffer_=""+a};h.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};h.clear=function(){this.buffer_=""};h.getLength=function(){return this.buffer_.length};h.toString=function(){return this.buffer_};var r$a=function(a){this.parser_=null;this.components_=[];this.parsedOptions_=null;iwd(this,a)};r$a.prototype.getParsedOptions=function(){return this.parsedOptions_};var jwd=function(a){a.parser_==null&&(a.parser_=new dwd);return a.parser_},iwd=function(a,b){a.parsedOptions_=b?typeof b==="string"?jwd(a).parse(b):b:jwd(a).parse("")},JR=function(a,b){return a==b?!1:!0};h=r$a.prototype;
h.setEsPortraitApprovedOnly=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,21),jw(b.signatureFlagProto_,21))&&c.setEsPortraitApprovedOnly(a);return this};h.setSelectFrameNumber=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,56),qx(b.signatureFlagProto_,56))&&c.setSelectFrameNumber(a)};h.setAutoloop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,74),jw(b.signatureFlagProto_,74))&&c.setAutoloop(a)};
h.setBypassTakedown=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,$i(c,23),$i(b.signatureFlagProto_,23))&&c.setBypassTakedown(a)};h.setBorderSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,38),qx(b.signatureFlagProto_,38))&&c.setBorderSize(a)};h.setBadge=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,85),qx(b.signatureFlagProto_,85))&&c.setBadge(a)};
h.setBackgroundColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,87),qx(b.signatureFlagProto_,87))&&c.setBackgroundColor(a)};h.setBorderRadius=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,86),qx(b.signatureFlagProto_,86))&&c.setBorderRadius(a)};h.setCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,$i(c,2),$i(b.signatureFlagProto_,2))&&c.setCrop(a);return this};
h.setBorderColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,39),qx(b.signatureFlagProto_,39))&&c.setBorderColor(a)};h.setCircleCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,51),jw(b.signatureFlagProto_,51))&&c.setCircleCrop(a);return this};h.setImageCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,32),jw(b.signatureFlagProto_,32))&&c.setImageCrop(a);return this};
h.setDummyCacheKeyModifier=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,104),jw(b.signatureFlagProto_,104))&&c.setDummyCacheKeyModifier(a)};h.setColorProfile=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,92),qx(b.signatureFlagProto_,92))&&c.setColorProfile(a)};h.setForceCookieRedirect=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,108),jw(b.signatureFlagProto_,108))&&c.setForceCookieRedirect(a)};
h.setFaceCropVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,94),qx(b.signatureFlagProto_,94))&&c.setFaceCropVersion(a)};h.setDownload=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,$i(c,3),$i(b.signatureFlagProto_,3))&&c.setDownload(a)};h.setDeepCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,Ml(c,99),Ml(b.signatureFlagProto_,99))&&c.setDeepCrop(a)};
h.setDetectFaces=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,80),jw(b.signatureFlagProto_,80))&&c.setDetectFaces(a)};h.setDownloadVideo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,90),jw(b.signatureFlagProto_,90))&&c.setDownloadVideo(a)};h.setExpirationTime=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,15),qx(b.signatureFlagProto_,15))&&c.setExpirationTime(a)};
h.setExpirationTimeInMinutes=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,107),qx(b.signatureFlagProto_,107))&&c.setExpirationTimeInMinutes(a)};h.setImageFilter=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,Ml(c,16),Ml(b.signatureFlagProto_,16))&&c.setImageFilter(a);return this};h.setForceTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,$i(c,34),$i(b.signatureFlagProto_,34))&&c.setForceTileGeneration(a)};
h.setHorizontalFlip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,30),jw(b.signatureFlagProto_,30))&&c.setHorizontalFlip(a)};h.setForceMonogram=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,84),jw(b.signatureFlagProto_,84))&&c.setForceMonogram(a);return this};h.setFovDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,sx(c,79),sx(b.signatureFlagProto_,79))&&c.setFovDegrees(a)};
h.setForceTransformation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,50),jw(b.signatureFlagProto_,50))&&c.setForceTransformation(a)};h.setVerticalFlip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,31),jw(b.signatureFlagProto_,31))&&c.setVerticalFlip(a)};h.setTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,$i(c,14),$i(b.signatureFlagProto_,14))&&c.setTileGeneration(a)};
h.setClientExperimentLabel=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,Ml(c,112),Ml(b.signatureFlagProto_,112))&&c.setClientExperimentLabel(a)};h.setPreserveGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,83),jw(b.signatureFlagProto_,83))&&c.setPreserveGoogleData(a)};h.setGainMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,105),jw(b.signatureFlagProto_,105))&&c.setGainMap(a)};
h.setHtml=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,$i(c,4),$i(b.signatureFlagProto_,4))&&c.setHtml(a)};h.setHeight=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,c.getHeight(),b.signatureFlagProto_.getHeight())&&c.setHeight(a);return this};h.setIncludeMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,22),jw(b.signatureFlagProto_,22))&&c.setIncludeMetadata(a)};
h.setInternalClient=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,71),qx(b.signatureFlagProto_,71))&&c.setInternalClient(a)};h.setImageDigest=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,70),jw(b.signatureFlagProto_,70))&&c.setImageDigest(a)};h.setIgnoreLowResProfilePhoto=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,96),jw(b.signatureFlagProto_,96))&&c.setIgnoreLowResProfilePhoto(a)};
h.setIncludePublicMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,54),jw(b.signatureFlagProto_,54))&&c.setIncludePublicMetadata(a)};h.setImageVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,c.getImageVersion(),b.signatureFlagProto_.getImageVersion())&&c.setImageVersion(a)};h.setFrameId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jx(c,29,tw),jx(b.signatureFlagProto_,29,tw))&&c.setFrameId(a)};
h.setKillAnimation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,17),jw(b.signatureFlagProto_,17))&&c.setKillAnimation(a);return this};h.setFocusBlur=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,42),qx(b.signatureFlagProto_,42))&&c.setFocusBlur(a)};h.setQualityLevel=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,44),qx(b.signatureFlagProto_,44))&&c.setQualityLevel(a);return this};
h.setLooseFaceCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,65),jw(b.signatureFlagProto_,65))&&c.setLooseFaceCrop(a);return this};h.setLossy=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,97),jw(b.signatureFlagProto_,97))&&c.setLossy(a)};h.setVideoFormat=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,63),qx(b.signatureFlagProto_,63))&&c.setVideoFormat(a)};
h.setMonogramDogfood=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,91),jw(b.signatureFlagProto_,91))&&c.setMonogramDogfood(a)};h.setVideoMultiFormat=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,Ml(c,81),Ml(b.signatureFlagProto_,81))&&c.setVideoMultiFormat(a)};h.setMonogram=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,73),jw(b.signatureFlagProto_,73))&&c.setMonogram(a)};
h.setMediaProvenance=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,115),qx(b.signatureFlagProto_,115))&&c.setMediaProvenance(a)};h.setMatchVersion=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,66),jw(b.signatureFlagProto_,66))&&c.setMatchVersion(a)};h.setCenterCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,$i(c,20),$i(b.signatureFlagProto_,20))&&c.setCenterCrop(a);return this};
h.setNoCorrectExifOrientation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,55),jw(b.signatureFlagProto_,55))&&c.setNoCorrectExifOrientation(a)};h.setNoDefaultImage=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,53),jw(b.signatureFlagProto_,53))&&c.setNoDefaultImage(a)};h.setStripGeoinfo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,95),jw(b.signatureFlagProto_,95))&&c.setStripGeoinfo(a)};
h.setNoGainMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,106),jw(b.signatureFlagProto_,106))&&c.setNoGainMap(a)};h.setNoOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,$i(c,37),$i(b.signatureFlagProto_,37))&&c.setNoOverlay(a);return this};h.setNoSilhouette=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,40),jw(b.signatureFlagProto_,40))&&c.setNoSilhouette(a)};
h.setVersionedToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,Ml(c,36),Ml(b.signatureFlagProto_,36))&&c.setVersionedToken(a)};h.setNoToneMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,114),jw(b.signatureFlagProto_,114))&&c.setNoToneMap(a)};h.setNoUpscale=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,46),jw(b.signatureFlagProto_,46))&&c.setNoUpscale(a)};
h.setNoWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,$i(c,48),$i(b.signatureFlagProto_,48))&&c.setNoWebp(a)};h.setObjectId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jx(c,7,tw),jx(b.signatureFlagProto_,7,tw))&&c.setObjectId(a)};h.setOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,c.getOverlay(),b.signatureFlagProto_.getOverlay())&&c.setOverlay(a);return this};
h.setSmartCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,$i(c,19),$i(b.signatureFlagProto_,19))&&c.setSmartCrop(a);return this};h.setFocalPlane=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,43),qx(b.signatureFlagProto_,43))&&c.setFocalPlane(a)};h.setPreserveAspectRatio=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,61),jw(b.signatureFlagProto_,61))&&c.setPreserveAspectRatio(a)};
h.setPadColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,88),qx(b.signatureFlagProto_,88))&&c.setPadColor(a)};h.setPad=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,60),jw(b.signatureFlagProto_,60))&&c.setPad(a);return this};h.setSmartCropUseFace=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,$i(c,67),$i(b.signatureFlagProto_,67))&&c.setSmartCropUseFace(a);return this};
h.setTilePyramidAsProto=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,$i(c,72),$i(b.signatureFlagProto_,72))&&c.setTilePyramidAsProto(a)};h.setPitchDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,sx(c,76),sx(b.signatureFlagProto_,76))&&c.setPitchDegrees(a)};h.setSmartCropNoClip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,$i(c,52),$i(b.signatureFlagProto_,52))&&c.setSmartCropNoClip(a);return this};
h.setPregenTimestamps=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,Ml(c,111),Ml(b.signatureFlagProto_,111))&&c.setPregenTimestamps(a)};h.setQueryString=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,Ml(c,28),Ml(b.signatureFlagProto_,28))&&c.setQueryString(a)};h.setSkipRefererCheck=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,$i(c,6),$i(b.signatureFlagProto_,6))&&c.setSkipRefererCheck(a)};
h.setRotate=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,26),qx(b.signatureFlagProto_,26))&&c.setRotate(a);return this};h.setRequestAvif=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,$i(c,103),$i(b.signatureFlagProto_,103))&&c.setRequestAvif(a)};h.setRequestVideoFast=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,100),jw(b.signatureFlagProto_,100))&&c.setRequestVideoFast(a)};
h.setRequestGif=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,59),jw(b.signatureFlagProto_,59))&&c.setRequestGif(a)};h.setRequestH264=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,$i(c,49),$i(b.signatureFlagProto_,49))&&c.setRequestH264(a);return this};h.setRequestJpeg=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,57),jw(b.signatureFlagProto_,57))&&c.setRequestJpeg(a);return this};
h.setRollDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,sx(c,78),sx(b.signatureFlagProto_,78))&&c.setRollDegrees(a)};h.setRequestPng=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,58),jw(b.signatureFlagProto_,58))&&c.setRequestPng(a);return this};h.setRequestWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,$i(c,35),$i(b.signatureFlagProto_,35))&&c.setRequestWebp(a);return this};
h.setRequestAnimatedWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,$i(c,64),$i(b.signatureFlagProto_,64))&&c.setRequestAnimatedWebp(a)};h.setRequestWebpUnlessMaybeTransparent=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,$i(c,41),$i(b.signatureFlagProto_,41))&&c.setRequestWebpUnlessMaybeTransparent(a)};h.setStretch=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,33),jw(b.signatureFlagProto_,33))&&c.setStretch(a);return this};
h.setSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,c.getSize(),b.signatureFlagProto_.getSize())&&c.setSize(a);return this};h.setStoryboardMosaic=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,110),qx(b.signatureFlagProto_,110))&&c.setStoryboardMosaic(a)};h.setSubstitutionColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,89),qx(b.signatureFlagProto_,89))&&c.setSubstitutionColor(a)};
h.setStripGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,82),jw(b.signatureFlagProto_,82))&&c.setStripGoogleData(a)};h.setStoryboardLevel=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,109),qx(b.signatureFlagProto_,109))&&c.setStoryboardLevel(a)};h.setStripMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,93),jw(b.signatureFlagProto_,93))&&c.setStripMetadata(a)};
h.setToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,c.getToken(),b.signatureFlagProto_.getToken())&&c.setToken(a)};h.setToneMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,113),jw(b.signatureFlagProto_,113))&&c.setToneMap(a)};h.setUnfiltered=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,18),jw(b.signatureFlagProto_,18))&&c.setUnfiltered(a)};
h.setUnfilteredWithTransforms=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,45),jw(b.signatureFlagProto_,45))&&c.setUnfilteredWithTransforms(a)};h.setQualityBucket=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,62),qx(b.signatureFlagProto_,62))&&c.setQualityBucket(a);return this};h.setVideoBegin=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,rx(c,68),rx(b.signatureFlagProto_,68))&&c.setVideoBegin(a)};
h.setVideoFormatFilters=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,Ml(c,102),Ml(b.signatureFlagProto_,102))&&c.setVideoFormatFilters(a)};h.setVideoLength=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,rx(c,69),rx(b.signatureFlagProto_,69))&&c.setVideoLength(a)};h.setVideoManifest=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;JR(a,jw(c,98),jw(b.signatureFlagProto_,98))&&c.setVideoManifest(a)};
h.setWidth=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,c.getWidth(),b.signatureFlagProto_.getWidth())&&c.setWidth(a);return this};h.setTileX=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,9),qx(b.signatureFlagProto_,9))&&c.setTileX(a)};h.setTileY=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,10),qx(b.signatureFlagProto_,10))&&c.setTileY(a)};
h.setYawDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,sx(c,77),sx(b.signatureFlagProto_,77))&&c.setYawDegrees(a)};h.setTileZoom=function(a){var b=this.parsedOptions_,c=b.valueProto_;JR(a,qx(c,11),qx(b.signatureFlagProto_,11))&&c.setTileZoom(a)};h.setOptions=function(a){iwd(this,a);return this};
h.build=function(){this.components_.length=0;var a=this.parsedOptions_,b=a.valueProto_;a=a.signatureFlagProto_;KR(this,"s",b.getSize(),a.getSize());KR(this,"w",b.getWidth(),a.getWidth());LR(this,"c",$i(b,2),$i(a,2));LR(this,"d",$i(b,3),$i(a,3));KR(this,"h",b.getHeight(),a.getHeight());LR(this,"s",jw(b,33),jw(a,33));LR(this,"h",$i(b,4),$i(a,4));LR(this,"p",$i(b,19),$i(a,19));LR(this,"pp",$i(b,52),$i(a,52));LR(this,"pf",$i(b,67),$i(a,67));LR(this,"n",$i(b,20),$i(a,20));KR(this,"r",qx(b,26),qx(a,26));
LR(this,"r",$i(b,6),$i(a,6));LR(this,"o",b.getOverlay(),a.getOverlay());var c=jx(b,7,tw);MR(this,"o",c,jx(a,7,tw));c=jx(b,29,tw);MR(this,"j",c,jx(a,29,tw));KR(this,"x",qx(b,9),qx(a,9));KR(this,"y",qx(b,10),qx(a,10));KR(this,"z",qx(b,11),qx(a,11));LR(this,"g",$i(b,14),$i(a,14));KR(this,"e",qx(b,15),qx(a,15));MR(this,"f",Ml(b,16),Ml(a,16));LR(this,"k",jw(b,17),jw(a,17));LR(this,"u",jw(b,18),!0);LR(this,"ut",jw(b,45),!0);LR(this,"i",jw(b,22),!0);LR(this,"a",jw(b,21),jw(a,21));LR(this,"b",$i(b,23),$i(a,
23));KR(this,"b",qx(b,38),qx(a,38));KR(this,"c",qx(b,39),qx(a,39),16,8);MR(this,"q",Ml(b,28),Ml(a,28));LR(this,"fh",jw(b,30),jw(a,30));LR(this,"fv",jw(b,31),jw(a,31));LR(this,"fg",$i(b,34),$i(a,34));LR(this,"ci",jw(b,32),jw(a,32));MR(this,"t",b.getToken(),a.getToken());MR(this,"nt0",Ml(b,36),Ml(a,36));LR(this,"rw",$i(b,35),$i(a,35));LR(this,"rwu",$i(b,41),$i(a,41));LR(this,"rwa",$i(b,64),$i(a,64));LR(this,"nw",$i(b,48),$i(a,48));LR(this,"rh",$i(b,49),$i(a,49));LR(this,"no",$i(b,37),$i(a,37));LR(this,
"ns",jw(b,40),jw(a,40));KR(this,"k",qx(b,42),qx(a,42));KR(this,"p",qx(b,43),qx(a,43));KR(this,"l",qx(b,44),qx(a,44));KR(this,"v",qx(b,62),qx(a,62));LR(this,"nu",jw(b,46),jw(a,46));LR(this,"ft",jw(b,50),jw(a,50));LR(this,"cc",jw(b,51),jw(a,51));LR(this,"nd",jw(b,53),jw(a,53));LR(this,"ip",jw(b,54),jw(a,54));LR(this,"nc",jw(b,55),jw(a,55));KR(this,"a",qx(b,56),qx(a,56));LR(this,"rj",jw(b,57),jw(a,57));LR(this,"rp",jw(b,58),jw(a,58));LR(this,"rg",jw(b,59),jw(a,59));LR(this,"pd",jw(b,60),jw(a,60));LR(this,
"pa",jw(b,61),jw(a,61));KR(this,"m",qx(b,63),qx(a,63));KR(this,"vb",rx(b,68),rx(a,68));KR(this,"vl",rx(b,69),rx(a,69));LR(this,"lf",jw(b,65),jw(a,65));LR(this,"mv",jw(b,66),jw(a,66));LR(this,"id",jw(b,70),jw(a,70));KR(this,"ic",qx(b,71),!0);LR(this,"pg",$i(b,72),$i(a,72));LR(this,"mo",jw(b,73),jw(a,73));LR(this,"al",jw(b,74),jw(a,74));KR(this,"iv",b.getImageVersion(),a.getImageVersion());KR(this,"pi",sx(b,76),sx(a,76));KR(this,"ya",sx(b,77),sx(a,77));KR(this,"ro",sx(b,78),sx(a,78));KR(this,"fo",sx(b,
79),sx(a,79));LR(this,"df",jw(b,80),jw(a,80));MR(this,"mm",Ml(b,81),Ml(a,81));LR(this,"sg",jw(b,82),jw(a,82));LR(this,"gd",jw(b,83),jw(a,83));LR(this,"fm",jw(b,84),jw(a,84));KR(this,"ba",qx(b,85),qx(a,85));KR(this,"br",qx(b,86),qx(a,86));KR(this,"bc",qx(b,87),qx(a,87),16,8);KR(this,"pc",qx(b,88),qx(a,88),16,8);KR(this,"sc",qx(b,89),qx(a,89),16,8);LR(this,"dv",jw(b,90),jw(a,90));LR(this,"md",jw(b,91),jw(a,91));KR(this,"cp",qx(b,92),qx(a,92));LR(this,"sm",jw(b,93),jw(a,93));KR(this,"cv",qx(b,94),qx(a,
94));LR(this,"ng",jw(b,95),jw(a,95));LR(this,"il",jw(b,96),jw(a,96));LR(this,"lo",jw(b,97),jw(a,97));LR(this,"vm",jw(b,98),jw(a,98));MR(this,"dc",Ml(b,99),Ml(a,99));LR(this,"rf",jw(b,100),jw(a,100));MR(this,"vf",Ml(b,102),Ml(a,102));LR(this,"ra",$i(b,103),$i(a,103));LR(this,"ckm",jw(b,104),jw(a,104));LR(this,"gm",jw(b,105),jw(a,105));LR(this,"ngm",jw(b,106),jw(a,106));KR(this,"em",qx(b,107),qx(a,107));LR(this,"cr",jw(b,108),jw(a,108));KR(this,"sl",qx(b,109),qx(a,109));KR(this,"sb",qx(b,110),qx(a,
110));MR(this,"pt",Ml(b,111),Ml(a,111));MR(this,"gce",Ml(b,112),Ml(a,112));LR(this,"tm",jw(b,113),jw(a,113));LR(this,"ntm",jw(b,114),jw(a,114));KR(this,"mp",qx(b,115),qx(a,115));return this.components_.join("-")};
var KR=function(a,b,c,d,e,f){if(c!=null){var g=e==void 0||e!=10&&e!=16?10:e;c=Number(c).toString(g);e=new q$a;e.append(g==16?"0x":"");g=e.append;f==void 0?f="":(f-=c.length,f=f<=0?"":"0".repeat(f));g.call(e,f);e.append(c);kwd(a,b,e.toString(),!!Number(d))}},LR=function(a,b,c,d){c&&kwd(a,b,"",!!d)},MR=function(a,b,c,d){c&&kwd(a,b,String(c),!!Number(d))},kwd=function(a,b,c,d){d&&(b=b.charAt(0).toUpperCase()+b.substring(1));a.components_.push(b+c)};Ww(cs,r$a);h=cs.prototype;h.setCrop=function(a){a&&NR(this);return cs.superClass_.setCrop.call(this,a)};h.setHeight=function(a){a=a==null||a<0?void 0:a;a!=null&&this.setSize();return cs.superClass_.setHeight.call(this,a)};h.setStretch=function(a){a&&NR(this);return cs.superClass_.setStretch.call(this,a)};h.setQualityLevel=function(a){return cs.superClass_.setQualityLevel.call(this,a)};h.setImageFilter=function(a){a&&(a=a.replace(";",":"));return cs.superClass_.setImageFilter.call(this,a)};
h.setImageCrop=function(a){a&&NR(this);return cs.superClass_.setImageCrop.call(this,a)};h.setCircleCrop=function(a){a&&NR(this);return cs.superClass_.setCircleCrop.call(this,a)};h.setSize=function(a){gq(a)&&(a=Math.max(a.width,a.height));a=a==null||a<0?void 0:a;a!=null&&(this.setWidth(),this.setHeight());return cs.superClass_.setSize.call(this,a)};h.setSmartCrop=function(a){a&&NR(this);return cs.superClass_.setSmartCrop.call(this,a)};
h.setSmartCropNoClip=function(a){a&&NR(this);return cs.superClass_.setSmartCropNoClip.call(this,a)};h.setSmartCropUseFace=function(a){a&&NR(this);return cs.superClass_.setSmartCropUseFace.call(this,a)};h.setCenterCrop=function(a){a&&NR(this);return cs.superClass_.setCenterCrop.call(this,a)};h.setPad=function(a){a&&NR(this);return cs.superClass_.setPad.call(this,a)};h.setWidth=function(a){a=a==null||a<0?void 0:a;a!=null&&this.setSize();return cs.superClass_.setWidth.call(this,a)};
var NR=function(a){a.setCenterCrop();a.setCircleCrop();a.setCrop();a.setImageCrop();a.setPad();a.setSmartCrop();a.setSmartCropNoClip();a.setSmartCropUseFace()};cs.prototype.build=function(){var a=this.getParsedOptions().valueProto_;jw(a,18)||jw(a,45)?a.getSize()||this.setSize(0):(a=this.getParsedOptions().valueProto_,a.getSize()||a.getWidth()||a.getHeight()||(this.setSize(),this.setHeight(),this.setWidth(),NR(this)));return cs.superClass_.build.call(this)};var lwd=/^[^\/]*\/\//,OR=function(a,b){b=b===void 0?!1:b;this.original_=a;this.originalPrefix_="";(a=this.original_.match(lwd))&&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_=It(a,!0);this.isFreeformUrl_=b;this.valid_=!0;this.obfuscated_=!1},mwd=function(a,b){a.pathPrefix_=a.pathPrefix_?a.pathPrefix_+("/"+b):b},PR=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"&&(mwd(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)mwd(a,
a.components_[0]);else if(a.components_[0]=="image")mwd(a,a.components_[0]);else if(b==7||b==3)return a.valid_=!1,a.components_;if(b<=3){a.obfuscated_=!0;b==3&&(mwd(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_};OR.prototype.isValid=function(){PR(this);return this.valid_};var nwd=function(a){PR(a);return a.obfuscated_},owd=function(a){PR(a);return a.isFreeformUrl_};
OR.prototype.getDomain=function(){var a=this.uri_.port_;return this.uri_.getDomain()+(a?":"+a:"")};OR.prototype.getQuery=function(){return this.uri_.queryData_.toString()};var pwd=function(a){PR(a);a.pathPrefix_==void 0&&(a.pathPrefix_=null);return a.pathPrefix_};OR.prototype.hasOptions=function(){switch(PR(this).length){case 7:return!0;case 6:return pwd(this)==null;case 5:return!1;case 3:return!0;case 2:return pwd(this)==null;case 1:return!1;default:return!1}};
var QR=function(a,b){if(owd(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=PR(a)[b]}else if(nwd(a))a:{var c=pwd(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=PR(a)[b]}else a:{c=pwd(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=PR(a)[b]}return a};h=OR.prototype;h.getObfuscatedGaiaId=function(){this.obfuscatedGaiaId_==void 0&&(this.obfuscatedGaiaId_=QR(this,0));return this.obfuscatedGaiaId_};h.getPhotoId=function(){this.photoId_==void 0&&(this.photoId_=QR(this,1));return this.photoId_};h.getImageVersion=function(){this.imageVersion_==void 0&&(this.imageVersion_=QR(this,2));return this.imageVersion_};h.getOptions=function(){this.options_==void 0&&(this.options_=QR(this,4));return this.options_};
h.getFilename=function(){this.filename_==void 0&&(this.filename_=QR(this,5));return this.filename_};var u$a=function(){};u$a.prototype.parse=function(a,b){return new s$a(a,b===void 0?!1:b)};var s$a=function(a,b){OR.call(this,a,b===void 0?!1:b)};Z(s$a,OR);s$a.prototype.getParsedOptions=function(){if(this.parsedOptions_==void 0){var a=this.getOptions();a||(a="");this.parsedOptions_=(new dwd).parse(a)}return this.parsedOptions_};Ww(ds,cs);var t$a;ds.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
ds.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var a=ds.superClass_.build.call(this),b=[];pwd(this.parsedImageUrl_)!=null&&b.push(pwd(this.parsedImageUrl_));var c=owd(this.parsedImageUrl_);if(nwd(this.parsedImageUrl_)){var d=this.parsedImageUrl_;d.obfuscatedData_==void 0&&(d.obfuscatedData_=QR(d,6));b.push(d.obfuscatedData_+(a?"="+a:""))}else if(c){d=b.push;var e=this.parsedImageUrl_;e.freeformUrlPath_===void 0&&(e.freeformUrlPath_=QR(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_=QR(e,3)),d.call(b,e.signature_),a&&b.push(a),b.push(this.parsedImageUrl_.getFilename());a=It(this.protocolPrefix_+this.domain_+"/"+(c?b.join("="):b.join("/"))+(this.query_?"?"+this.query_:"")).toString();a.startsWith("%3a//")&&(a=a.replace("%3a//",
"://"));return a};var qwd=/\/\/lh[3-6]\./,rwd=function(a,b,c,d){if(!a||!Wvd(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(qwd,"//lh3.");return(new ds(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 swd=[[["onedev-hovercard-action"]],[["","onedev-additional-content",""]]],RR=function(a,b){var c=this;this.peopleService=a;this.waldoService=b;this.enableWaldo=!1;this.providedEmail$=new vf(1);this.person$=this.providedEmail$.pipe(zf(function(d){return Pud(c.peopleService,d)}),A(function(d){if(d){var e=Object,f=e.assign;if(d.imageUrl){var g=d.imageUrl;if(Wvd(g)){var k=new ds(g);k.setSize(48).setCrop(!0);g=k.build()||g}}else g=d.imageUrl;d=f.call(e,{},d,{imageUrl:g})}return d}),wf(1));this.outOfOfficeDescription$=
new vf;this.init=new vf(1);this.destroyed$=new vf(1)};RR.prototype.ngOnInit=function(){var a=this;this.person$.pipe(mf(1),Af(this.destroyed$)).subscribe(function(){a.init.next()});this.enableWaldo&&twd(this)};var twd=function(a){a.waldoService&&a.person$.pipe(zf(function(b){return b?Nvd(a.waldoService,b.email):be("")}),Af(a.destroyed$)).subscribe(function(b){a.outOfOfficeDescription$.next(b)})};
da.Object.defineProperties(RR.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.emailInternal},set:function(a){this.emailInternal=a;this.providedEmail$.next(a)}}});RR.\u0275fac=function(a){return new (a||RR)(Ve(yR),Ve(GR,8))};
RR.\u0275cmp=C({type:RR,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&&(fg(swd),E(0,v$a,4,4,"onedev-person-hovercard-body",0),U(1,"async"));a&2&&I("ngIf",W(1,1,b.person$))},dependencies:[xy,jy,Qud,Fud,HR,py],encapsulation:2,
changeDetection:0});var uwd=[[["onedev-hovercard-action"],["",8,"actions"]]],SR=function(){};SR.prototype.ngOnInit=function(){};SR.\u0275fac=function(a){return new (a||SR)};
SR.\u0275cmp=C({type:SR,selectors:[["b-person-card"]],inputs:{email:"email"},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&&(fg(uwd),E(0,w$a,3,3,"onedev-person-hovercard",1))},dependencies:[AK,vK,wK,RR],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 TR=function(){this.isNonObfuscatedEmail=so};TR.\u0275fac=function(a){return new (a||TR)};
TR.\u0275cmp=C({type:TR,selectors:[["b-person-hovercard"]],inputs:{email:"email"},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&&(fg(),F(0,y$a,5,4)(1,A$a,1,1,"ng-container"),E(2,B$a,1,0,"ng-template",null,0,Og));a&2&&G(b.email&&b.isNonObfuscatedEmail(b.email)?0:1)},dependencies:[AK,uK,zK,oy,SR],encapsulation:2,
changeDetection:0});var UR=function(){LO.apply(this,arguments);this.domSafe=q($P);this.cdr=q(MO,{self:!0});this.actionService=q(vR,{optional:!0});this.currentAssignee="";this.currentCc=[];this.ccActionDisabled=this.assigneeActionDisabled=!1};Z(UR,LO);UR.\u0275dir=LO.\u0275dir;
UR.prototype.ngOnInit=function(){var a=this;if(this.actionService){var b;(b=this.actionService)==null||b.assignee$.pipe(Af(this.destroyed$)).subscribe(function(d){a.currentAssignee=d;a.cdr.detectChanges()});var c;(c=this.actionService)==null||c.cc$.pipe(Af(this.destroyed$)).subscribe(function(d){a.currentCc=d;a.cdr.detectChanges()})}};
var C$a=function(a){if(a.actionService&&!a.assigneeActionDisabled){a.assigneeActionDisabled=!0;var b=a.email===a.currentAssignee?"remove_user":"set_user";ur("personCard","assigneeAction",b);wud(a.actionService,{email:a.email,action:b}).finally(function(){a.assigneeActionDisabled=!1})}},D$a=function(a){if(a.actionService&&!a.ccActionDisabled){a.ccActionDisabled=!0;var b=a.currentCc.includes(a.email)?"remove_user":"set_user";ur("personCard","ccAction",b);xud(a.actionService,{email:a.email,action:b}).finally(function(){a.ccActionDisabled=
!1})}};UR.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(UR)))(b||UR)}}();
UR.\u0275cmp=C({type:UR,selectors:[["b-issue-person-card"]],inputs:{email:"email"},features:[Ig([MO]),Ff],decls:6,vars:4,consts:[[3,"email"],[1,"actions"],[3,"click"],[3,"onAction","disabled"]],template:function(a,b){a&1&&(K(0,"b-person-card",0),F(1,E$a,9,8,"ng-container",1),U(2,"async"),K(3,"onedev-hovercard-action",2),N("click",function(c){ur("personCard","showAssignedIssuesAction");var d=zs.listIssues.makeHref({q:"assignee:"+b.email+" status:open"});c.ctrlKey||c.metaKey?b.domSafe.openInNewTab(d):
Iqd(b.domSafe,d)}),K(4,"span"),S(5,"Show assigned issues"),L()()());a&2&&(I("email",b.email),B(),G(b.actionService&&W(2,2,b.actionService.editAccess$)?1:-1))},dependencies:[AK,bcd,SR,py],encapsulation:2,changeDetection:0});var VR=function(){this.activeSession=q(Zu);this.isMentioningMe=!1};VR.prototype.ngOnInit=function(){this.activeSession.isInternalSession()?this.username=this.email.replace(/@google.com$/,""):this.username=this.email};VR.\u0275fac=function(a){return new (a||VR)};
VR.\u0275cmp=C({type:VR,selectors:[["b-mention-chip-widget"]],inputs:{email:"email",isMentioningMe:"isMentioningMe"},decls:6,vars:5,consts:[["el",""],["card",""],[1,"mention",3,"onedevHovercardTrigger"],[3,"email"]],template:function(a,b){a&1&&(K(0,"span",2,0),S(2),L(),K(3,"onedev-hovercard",null,1),M(5,"b-issue-person-card",3),L());a&2&&(a=Q(4),yg("me",b.isMentioningMe),I("onedevHovercardTrigger",a),B(2),T("@",b.username),B(3),I("email",b.email))},dependencies:[AK,uK,zK,UR],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 F$a=RegExp("^https?:\\/\\/((?:screenshot\\.googleplex\\.com|screenshot\\.corp\\.google\\.com|3p-screenshot\\.corp\\.google\\.com|screen\\.corp\\.google\\.com|screenshot|screen)\\/([\\w-]+)(?:\\.png)?$)"),G$a=RegExp("^http(?:s?):\\/\\/(?:za|za\\.corp\\.google\\.com|alerts|plx-alerts\\.corp\\.google\\.com)\\/chart(?:\\/?)\\?(.*)"),K$a=RegExp("^(https?:\\/\\/)(www\\.)?(go|goto|goto\\.google\\.com)\\/([A-Za-z0-9-]+$)"),H$a=RegExp("^https:\\/\\/static\\.corp\\.google\\.com\\/");var WR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,WR.messageId)};Z(WR,X);WR.prototype.getUrl=function(){return Fi(this,1,void 0,fb)};WR.prototype.setUrl=function(a){return Gj(this,1,a,fb)};WR.prototype.hasUrl=function(){return xm(this,1,fb)};WR.messageId="b.ImageRedirectRequest";var YR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,YR.messageId)};Z(YR,X);YR.prototype.getUrl=function(){return Fi(this,1,void 0,fb)};YR.prototype.setUrl=function(a){return Gj(this,1,a,fb)};YR.prototype.hasUrl=function(){return xm(this,1,fb)};YR.messageId="b.ImageRedirectResponse";var vwd=function(){this.executor=q(RM)},wwd=function(a,b){b=(new WR).setUrl(b);return a.executor.post({url:"action/imageRedirect",body:b,responseConstructor:YR}).pipe(A(function(c){return c.getUrl()}))};vwd.\u0275fac=function(a){return new (a||vwd)};vwd.\u0275prov=Cc({token:vwd,factory:vwd.\u0275fac,providedIn:"root"});var ZR=function(){var a=this;this.imageRedirector=q(vwd);this.src$=new Xj("");this.showImage$=new Xj(!1);this.error$=new Xj(!1);this.srcTruncated$=this.src$.pipe(A(function(b){var c=b;c=c===void 0?"":c;var d=d===void 0?48:d;b=[].concat(n(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$=he([this.src$,
this.showImage$]).pipe(te(function(b){b=l(b);b.next();return b.next().value}),zf(function(b){var c=l(b).next().value;return(b=M$a(c,!0))?be(b):wwd(a.imageRedirector,c).pipe(hf(function(){a.error$.next(!0);return c}))}))};ZR.prototype.trigger=function(a){a.preventDefault();a.stopPropagation();this.showImage$.next(!0)};
da.Object.defineProperties(ZR.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}}});ZR.\u0275fac=function(a){return new (a||ZR)};
ZR.\u0275cmp=C({type:ZR,selectors:[["b-secure-image-widget"]],inputs:{showByDefault:"showByDefault",src:"src",alt:"alt"},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&&(F(0,R$a,3,3),U(1,"async"),Mf(2,S$a,2,4,"mat-icon",0));a&2&&G(W(1,1,b.error$)===!1?0:2)},dependencies:[aQ,hK,iz,
MA,py],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 xwd={HIDE:"HIDE",COLLAPSE:"COLLAPSE",SHOW:"SHOW"},$R=function(){var a=this;this.activeSession=q(Zu);this.userPreferencesManager=q(VP);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.DisplayMode=xwd;this.src$=new Xj("");this.isMarkdownImage$=new Xj(!1);this.displayMode$=he([this.src$,this.userPreferencesManager.showInlineImages$,this.isMarkdownImage$]).pipe(A(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"}),yf("HIDE"))};da.Object.defineProperties($R.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}}});$R.\u0275fac=function(a){return new (a||$R)};
$R.\u0275cmp=C({type:$R,selectors:[["b-trusted-image"]],inputs:{src:"src",isMarkdownImage:"isMarkdownImage",alt:"alt"},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&&(F(0,V$a,3,3),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.src$))?0:-1,c)}},dependencies:[ZR,py],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=trusted_image.css.map */"],
changeDetection:0});var aS=function(){this.content=Lj;this.canEditComment=!1;this.checkboxChange=new KO;this.appRef=q(Yg);this.flags=q(ird);this.session=q(Zu);this.viewContainerRef=q(ig);this.elementRef=q(Gd);this.destroyRef=q(Be);this.allComponentRefs=[]};
aS.prototype.ngOnChanges=function(){ywd(this);qo(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"))&&I$a(f)&&d&&HVa(d)&&f===d.textContent&&(e=d.nextSibling,zwd(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 g=f.dataset.bImgSrc,k=f.dataset.bImgRedirectedSrc;W$a(f);if(g){var m=f.dataset.bImgAlt;if(I$a(g))zwd(this,f,g,m,e,!0);else if(this.flags.session.getFlag("enableMarkdownInlineImages"))e=this.createComponent(ZR,f,e).instance,e.src=g,m&&(e.alt=
m);else{var r=document.createElement("a");m?r.appendChild(document.createTextNode(m)):r.appendChild(document.createTextNode(g));f.appendChild(r);Awd(this,r,g,k||g,e)}}break;case "checkbox":f=b;m=e.dataset.bCheckboxChecked!=null;W$a(e);Bwd(this,e,m,f);break;case "url":f=b;m=e.dataset.bOriginalHref;g=e.dataset.bRedirectedHref;m&&g&&(e.removeAttribute("href"),Awd(this,e,m,g,f));break;case "broken-url":if(m=e.dataset.bOriginalHref)for(f=e,e=Array.from(f.childNodes),f=this.createComponent(cQ,f,b).instance,
f.originalHref=m,f=f.getNgContentParentEl(),e=l(e),m=e.next();!m.done;m=e.next())f.appendChild(m.value);break;case "mention":f=void 0;m=e;g=b;e="";((f=m.textContent)==null?void 0:f[0])==="@"&&(e=m.textContent.slice(1));W$a(m);f=this.createComponent(VR,m,g).instance;f.email=e;f.isMentioningMe=this.session.getUserEmail()===e;break;case "issue-reference":if(m=e.href,g=e.dataset.bIssueId,k=e.dataset.bCommentNumber,m&&g){f=void 0;r=Number(k);k=Array.from(e.childNodes);var w=document.createElement("span");
(f=e.parentNode)==null||f.insertBefore(w,e);f=this.createComponent(zQ,w,b).instance;f.href=m;f.issueId=g;f.commentNumber=r;f=f.el.nativeElement;m=l(k);for(g=m.next();!g.done;g=m.next())f.appendChild(g.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};aS.prototype.ngOnDestroy=function(){ywd(this)};
var zwd=function(a,b,c,d,e,f){f=f===void 0?!1:f;var g=b;b instanceof HTMLAnchorElement&&(g=document.createElement("span"),b.insertAdjacentElement("afterend",g));a=a.createComponent($R,g,e).instance;a.src=c;a.alt=d;a.isMarkdownImage=f},Bwd=function(a,b,c,d){var e,f=(e=b.dataset.bCheckboxStartpos)!=null?e:"";b=a.createComponent(Lqd,b,d).instance;b.checked=c;b.disabled=a.session.userRequiresCaptcha()||!a.canEditComment||!a.session.getFlag("enableInteractiveMarkdownCheckboxes");b.startPos=f;b.checkedChange.pipe(oj(a.destroyRef)).subscribe(function(g){a.checkboxChange.emit({checked:g,
startPos:f})})},Awd=function(a,b,c,d,e){var f=Array.from(b.childNodes);a=a.createComponent(xQ,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)};aS.prototype.createComponent=function(a,b,c){a=Apa(a,{environmentInjector:this.appRef.injector,elementInjector:c.injector});b.appendChild(a.location.nativeElement);SDc(this.appRef,a.hostView);this.allComponentRefs.push(a);return a};
var ywd=function(a){for(var b=l(a.allComponentRefs),c=b.next();!c.done;c=b.next())c.value.destroy();a.allComponentRefs=[]};aS.\u0275fac=function(a){return new (a||aS)};aS.\u0275dir=af({type:aS,selectors:[["","applyDynamicComponents",""]],inputs:{content:[0,"applyDynamicComponents","content"],canEditComment:"canEditComment"},outputs:{checkboxChange:"checkboxChange"},features:[Gx]});var bS=function(){this.codefont=q(XP);this.canEditComment=!1;this.checkboxChange=new KO};bS.prototype.ngOnInit=function(){};bS.\u0275fac=function(a){return new (a||bS)};
bS.\u0275cmp=C({type:bS,selectors:[["b-markdown-format-presenter"]],inputs:{content:"content",canEditComment:"canEditComment"},outputs:{checkboxChange:"checkboxChange"},features:[Ig([{provide:Gqd,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=t();K(0,"div",1,0);U(2,"async");N("checkboxChange",function(d){u(c);return v(b.checkboxChange.emit(d))});L()}a&2&&
(yg("codefont",W(2,4,b.codefont.codefont$)),I("applyDynamicComponents",b.content.content)("canEditComment",b.canEditComment))},dependencies:[aS,py],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","Google Symbols";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","Google Symbols";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 Cwd=["child"],Dwd=function(){return"[_nghost-%COMP%]     a:visited{color:#7627bb;color:var(--link-visited)}"},cS=function(){this.codefont=q(XP)};cS.prototype.ngOnInit=function(){};cS.\u0275fac=function(a){return new (a||cS)};
cS.\u0275cmp=C({type:cS,selectors:[["b-plain-format-presenter"]],inputs:{content:"content"},features:[Ig([{provide:Gqd,useValue:"PLAIN"}])],decls:4,vars:4,consts:[[1,"type-m"],[3,"section"]],template:function(a,b){a&1&&(K(0,"div",0),U(1,"async"),Pf(2,X$a,1,1,"b-plain-format-section",1,Of),L());a&2&&(yg("codefont",W(1,2,b.codefont.codefont$)),B(2),Qf(b.content.plainSection))},dependencies:function(){return[Ewd,py]},styles:[Dwd()],changeDetection:0});var Ewd=function(){};Ewd.prototype.ngOnInit=function(){};
Ewd.\u0275fac=function(a){return new (a||Ewd)};Ewd.\u0275cmp=C({type:Ewd,selectors:[["b-plain-format-section"]],inputs:{section:"section"},decls:3,vars:1,consts:[[3,"section"]],template:function(a,b){a&1&&(Vf(0),F(1,Y$a,1,1,"b-plain-format-quoted-section",0)(2,Z$a,1,1,"b-plain-format-unquoted-section",0),Wf());a&2&&(B(),G(b.section.isQuoted?1:2))},dependencies:function(){return[dS,Fwd]},encapsulation:2,changeDetection:0});
var dS=function(){this.showQuote=!1;this.childId="plainFormatQuotedSection"+ ++Gwd};dS.prototype.ngOnInit=function(){};dS.prototype.ngOnChanges=function(){$$a(this)};var $$a=function(a){var b=a.child.nativeElement;if(a.showQuote)qo(b,a.section.content);else for(;b.lastChild;)b.lastChild.remove()};dS.\u0275fac=function(a){return new (a||dS)};
dS.\u0275cmp=C({type:dS,selectors:[["b-plain-format-quoted-section"]],viewQuery:function(a,b){a&1&&kg(Cwd,7);if(a&2){var c;og(c=pg())&&(b.child=c.first)}},inputs:{section:"section"},features:[Gx],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&&(Sf(0,"div"),F(1,aab,2,1,"a",1)(2,bab,2,1,"a",2),Uf(3,"div",3,0),Tf());a&2&&(B(),G(b.showQuote?1:2),B(2),Rf("id",b.childId))},styles:[Dwd()],changeDetection:0});var Gwd=0,Fwd=function(){};Fwd.prototype.ngOnInit=function(){};Fwd.\u0275fac=function(a){return new (a||Fwd)};
Fwd.\u0275cmp=C({type:Fwd,selectors:[["b-plain-format-unquoted-section"]],inputs:{section:"section"},decls:1,vars:1,consts:[[1,"child",3,"applyDynamicComponents"]],template:function(a,b){a&1&&M(0,"div",0);a&2&&I("applyDynamicComponents",b.section.content)},dependencies:[aS],encapsulation:2,changeDetection:0});var eS=function(){this.canEditComment=!1;this.checkboxChange=new KO;this.contentRendered=new KO};eS.prototype.ngOnInit=function(){};eS.prototype.ngAfterViewInit=function(){this.contentRendered.emit()};eS.\u0275fac=function(a){return new (a||eS)};
eS.\u0275cmp=C({type:eS,selectors:[["b-formatted-comment-presenter"]],inputs:{formattedComment:"formattedComment",canEditComment:"canEditComment"},outputs:{checkboxChange:"checkboxChange",contentRendered:"contentRendered"},decls:3,vars:3,consts:[[3,"content"],[3,"content","canEditComment"],[3,"checkboxChange","content","canEditComment"]],template:function(a,b){a&1&&(F(0,cab,1,1,"b-literal-format-presenter",0),F(1,dab,1,2,"b-markdown-format-presenter",1),F(2,eab,1,1,"b-plain-format-presenter",0));
if(a&2){var c,d,e;G((c=b.formattedComment.literalFormat)?0:-1,c);B();G((d=b.formattedComment.markdownFormat)?1:-1,d);B();G((e=b.formattedComment.plainFormat)?2:-1,e)}},dependencies:[YP,bS,cS],encapsulation:2,changeDetection:0});var fS=function(){LO.apply(this,arguments);var a=this;this.formatter=q(TP);this.issueIdInternal="";this.audience="EXTERNAL";this.formattingMode="LITERAL";this.params$=new vf(1);this.formattedResult$=this.params$.pipe(kf(200),zf(function(b){return a.formatter.format(b).pipe(Hwd,hf(function(){var c={literalFormat:{content:Dh(b.comment)}};return be({formattedComment:c,isFallback:!0})}))}))};Z(fS,LO);fS.\u0275dir=LO.\u0275dir;
fS.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()})}))};fS.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()})};
fS.prototype.getIdPrefix=function(){return this.idPrefix||"b"+this.issueIdInternal+"-draft"};da.Object.defineProperties(fS.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueIdInternal=a||""}}});fS.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(fS)))(b||fS)}}();
fS.\u0275cmp=C({type:fS,selectors:[["b-live-preview"]],inputs:{comment:"comment",comment$:"comment$",issueId:"issueId",audience:"audience",formattingMode:"formattingMode",idPrefix:"idPrefix"},features:[Ff,Gx],decls:2,vars:3,consts:[[1,"md-preview",3,"invisible","error"],[1,"md-preview"],[3,"formattedComment"]],template:function(a,b){a&1&&(F(0,fab,2,5,"div",0),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.formattedResult$))?0:-1,c)}},dependencies:[eS,py],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 Hwd=A(function(a){return{formattedComment:a,isFallback:!1}});var Iwd=/^\s*(?:hotlistid|h):(\d+)\s*$/i,Jwd=/(?:\s|^)(?:componentid|c):(\d+)\s*/i,Kwd=/^\s*savedsearchid:(\d+)\s*$/i,gS=function(){LO.call(this);var a=this;this.$log=q(XM);this.activeSession=q(Zu);this.contextSensitiveRegistry=q(KP);this.analytics=q(PO);this.currentQuery="";this.currentTrackerScope=[];this.queryState$=new Xj({query:"",cursorPosition:void 0,setViaInteraction:!1});this.currentTrackerIdList$=le(function(){var b;return be((b=a.activeSession.getTracker())==null?void 0:b.trackerId)}).pipe(A(function(b){return b?
[b]:[]}));this.selectedTrackerIds$=new rf;this.trackerScope$=se(this.currentTrackerIdList$,this.selectedTrackerIds$);this.searchHandlerStack=[];this.searchTriggered$=new rf;this.subscriptions.add(this.queryState$.pipe(Af(this.destroyed$)).subscribe(function(b){a.currentQuery=b.query;(b=a.currentQuery.match(Jwd))?a.contextSensitiveRegistry.componentIdOverride$.next(b[1]):a.contextSensitiveRegistry.componentIdOverride$.next(null);(b=a.currentQuery.match(Iwd))?a.contextSensitiveRegistry.hotlistIdOverride$.next(Number(b[1])):
a.contextSensitiveRegistry.hotlistIdOverride$.next(null)}));this.subscriptions.add(this.trackerScope$.pipe(Af(this.destroyed$)).subscribe(function(b){a.currentTrackerScope=b}))};Z(gS,LO);gS.\u0275dir=LO.\u0275dir;gS.prototype.clear=function(){Lwd(this,"")};var Lwd=function(a,b){a.queryState$.next({query:b,cursorPosition:void 0,setViaInteraction:!1})},Mwd=function(a){return"assignee:"+a+" status:open"},Nwd=function(a,b){return a.currentQuery===Mwd("me")||a.currentQuery===Mwd(b===void 0?"":b)};
gS.prototype.getStarred=function(){return"star:true"};gS.prototype.isStarred=function(){return this.currentQuery===this.getStarred()};var Owd=function(a){return"verifier:"+a+" status:open | status:fixed"},Pwd=function(a){return(a=a.currentQuery.match(Iwd))?Number(a[1]):0},Qwd=function(a){return(a=a.currentQuery.match(Kwd))?a[1]:void 0},Rwd=function(a){return(a=a.currentQuery.match(Jwd))?a[1]:void 0};gS.prototype.track=function(a,b,c){this.analytics.trackEvent("global-search",a,b,c)};
var Swd=function(a,b){a.searchHandlerStack.push(b);return function(){La(a.searchHandlerStack,b)}};gS.\u0275fac=function(a){return new (a||gS)};gS.\u0275prov=Cc({token:gS,factory:gS.\u0275fac,providedIn:"root"});var Twd=function(a,b){return[a,b]},hS=function(){this.size=this.name=""};hS.prototype.ngOnInit=function(){};hS.\u0275fac=function(a){return new (a||hS)};
hS.\u0275cmp=C({type:hS,selectors:[["b-icon"]],inputs:{name:"name",size:"size"},decls:1,vars:6,consts:[[3,"svgIcon"]],template:function(a,b){a&1&&M(0,"mat-icon",0);a&2&&(zg(Lg(3,Twd,b.name,b.size)),I("svgIcon",b.name))},dependencies:[iz],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%]{--mat-icon-button-icon-size: 18px;height:18px;width:18px}[_nghost-%COMP%]   .large[_ngcontent-%COMP%]{height:24px;width:24px}'],changeDetection:0});var Uwd=["input"],Vwd=["formField"],Wwd=function(a,b){this.source=a;this.value=b},Xwd={provide:KB,useExisting:Tc(function(){return iS}),multi:!0},Ywd=new bd("MatRadioGroup"),Zwd=new bd("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent",disabledInteractive:!1}}}),iS=function(){this._changeDetector=q(Yx);this._value=null;this._name=q(hi).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 ui;this._disabledInteractive=!1};h=iS.prototype;h._checkSelectedRadioButton=function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)};h.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)})};
h.ngOnDestroy=function(){var a;(a=this._buttonChanges)==null||a.unsubscribe()};h._touch=function(){if(this.onTouched)this.onTouched()};h._updateRadioButtonNames=function(){var a=this;this._radios&&this._radios.forEach(function(b){b.name=a.name;b._markForCheck()})};
h._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)}))};h._emitChangeEvent=function(){this._isInitialized&&this.change.emit(new Wwd(this._selected,this._value))};h._markRadiosForCheck=function(){this._radios&&this._radios.forEach(function(a){return a._markForCheck()})};h.writeValue=function(a){this.value=a;this._changeDetector.markForCheck()};
h.registerOnChange=function(a){this._controlValueAccessorChangeFn=a};h.registerOnTouched=function(a){this.onTouched=a};h.setDisabledState=function(a){this.disabled=a;this._changeDetector.markForCheck()};
da.Object.defineProperties(iS.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()}}});iS.\u0275fac=function(a){return new (a||iS)};
iS.\u0275dir=af({type:iS,selectors:[["mat-radio-group"]],contentQueries:function(a,b,c){a&1&&lg(c,jS,5);if(a&2){var d;og(d=pg())&&(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",bh],required:[2,"required","required",bh],disabledInteractive:[2,"disabledInteractive","disabledInteractive",bh]},outputs:{change:"change"},exportAs:["matRadioGroup"],
features:[Ig([Xwd,{provide:Ywd,useExisting:iS}])]});
var jS=function(){var a=this;this._elementRef=q(Gd);this._changeDetector=q(Yx);this._focusMonitor=q(mz);this._radioDispatcher=q(Xz);this._defaultOptions=q(Zwd,{optional:!0});this._ngZone=q(Tg);this._renderer=q(ji);this.id=this._uniqueId=q(hi).getId("mat-radio-");this.disableRipple=!1;this.tabIndex=0;this.change=new ui;this._checked=!1;this._value=null;this._removeUniqueSelectionListener=function(){};this._noopAnimations=ti();this._injector=q(xe);this._onInputClick=function(f){a.disabled&&a.disabledInteractive&&
f.preventDefault()};q(fi).load(BA);var b=q(Ywd,{optional:!0}),c=q(new Hx("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=ch(c,0))};h=jS.prototype;h.focus=function(a,b){b?nz(this._focusMonitor,this._inputElement,b,a):this._inputElement.nativeElement.focus(a)};h._markForCheck=function(){this._changeDetector.markForCheck()};
h.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)})};h.ngDoCheck=function(){this._updateTabIndex()};
h.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)})};h.ngOnDestroy=function(){var a;(a=this._cleanupClick)==null||a.call(this);this._focusMonitor.stopMonitoring(this._elementRef);this._removeUniqueSelectionListener()};
h._emitChangeEvent=function(){this.change.emit(new Wwd(this,this._value))};h._isRippleDisabled=function(){return this.disableRipple||this.disabled};h._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()))};
h._onTouchTargetClick=function(a){this._onInputInteraction(a);if(!this.disabled||this.disabledInteractive){var b;(b=this._inputElement)==null||b.nativeElement.focus()}};h._setDisabled=function(a){this._disabled!==a&&(this._disabled=a,this._changeDetector.markForCheck())};
h._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,De(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}))}};
da.Object.defineProperties(jS.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){a!==this._required&&this._changeDetector.markForCheck();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"}}});jS.\u0275fac=function(a){return new (a||jS)};
jS.\u0275cmp=C({type:jS,selectors:[["mat-radio-button"]],viewQuery:function(a,b){a&1&&(kg(Uwd,5),kg(Vwd,7,Gd));if(a&2){var c;og(c=pg())&&(b._inputElement=c.first);og(c=pg())&&(b._rippleTrigger=c.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(a,b){a&1&&N("focus",function(){return b._inputElement.nativeElement.focus()});a&2&&(Jf("id",b.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),yg("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",bh],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==
null?0:ch(a)}],checked:[2,"checked","checked",bh],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",bh],required:[2,"required","required",bh],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",bh]},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","aria-invalid","false",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=t();fg();K(0,"div",2,0)(2,"div",3)(3,"div",4);N("click",function(d){u(c);
return v(b._onTouchTargetClick(d))});L();K(4,"input",5,1);N("change",function(d){u(c);return v(b._onInputInteraction(d))});L();K(6,"div",6);M(7,"div",7)(8,"div",8);L();K(9,"div",9);M(10,"div",10);L()();K(11,"label",11);gg(12);L()()}a&2&&(I("labelPosition",b.labelPosition),B(2),yg("mdc-radio--disabled",b.disabled),B(2),I("id",b.inputId)("checked",b.checked)("disabled",b.disabled&&!b.disabledInteractive)("required",b.required),Jf("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),B(5),I("matRippleTrigger",b._rippleTrigger.nativeElement)("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",!0),B(2),I("for",b.inputId))},dependencies:[EA,CA],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(--mat-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(--mat-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{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-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{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.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(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-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);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.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(--mat-radio-state-layer-size, 40px);height:var(--mat-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),background-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(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-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__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-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(--mat-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{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.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),background-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(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-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__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__outer-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(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-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 .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+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-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 label{cursor:pointer}.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(--mat-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:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 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 kS=function(){};kS.\u0275fac=function(a){return new (a||kS)};kS.\u0275mod=$e({type:kS});kS.\u0275inj=Dc({imports:[HA,jS,jz]});var $wd=new bd("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1}}});var axd=["switch"],bxd=function(a,b){this.source=a;this.checked=b},lS=function(){this._elementRef=q(Gd);this._focusMonitor=q(mz);this._changeDetectorRef=q(Yx);this.defaults=q($wd);this._onChange=function(){};this._onTouched=function(){};this._validatorOnChange=function(){};this._checked=!1;this._noopAnimations=ti();this.name=null;this.labelPosition="after";this.ariaLabelledby=this.ariaLabel=null;this.disableRipple=this.disabled=!1;this.tabIndex=0;this.change=new ui;this.toggleChange=new ui;q(fi).load(BA);
var a=q(new Hx("tabindex"),{optional:!0}),b=this.defaults;this.tabIndex=a==null?0:parseInt(a)||0;this.color=b.color||"accent";this.id=this._uniqueId=q(hi).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"};h=lS.prototype;h._createChangeEvent=function(a){return new bxd(this,a)};h.focus=function(){this._switchElement.nativeElement.focus()};
h.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()})})};h.ngOnChanges=function(a){a.required&&this._validatorOnChange()};h.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};h.writeValue=function(a){this.checked=!!a};
h.registerOnChange=function(a){this._onChange=a};h.registerOnTouched=function(a){this._onTouched=a};h.validate=function(a){return this.required&&a.value!==!0?{required:!0}:null};h.registerOnValidatorChange=function(a){this._validatorOnChange=a};h.setDisabledState=function(a){this.disabled=a;this._changeDetectorRef.markForCheck()};h.toggle=function(){this.checked=!this.checked;this._onChange(this.checked)};h._emitChangeEvent=function(){this._onChange(this.checked);this.change.emit(this._createChangeEvent(this.checked))};
h._handleClick=function(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new bxd(this,this.checked))))};h._getAriaLabelledBy=function(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId};
da.Object.defineProperties(lS.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"}}});lS.\u0275fac=function(a){return new (a||lS)};
lS.\u0275cmp=C({type:lS,selectors:[["mat-slide-toggle"]],viewQuery:function(a,b){a&1&&kg(axd,5);if(a&2){var c;og(c=pg())&&(b._switchElement=c.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(a,b){a&2&&(Rf("id",b.id),Jf("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),zg(b.color?"mat-"+b.color:""),yg("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",bh],color:"color",disabled:[2,"disabled","disabled",bh],disableRipple:[2,"disableRipple","disableRipple",bh],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ch(a)}],checked:[2,"checked","checked",bh],hideIcon:[2,"hideIcon","hideIcon",bh],disabledInteractive:[2,"disabledInteractive",
"disabledInteractive",bh]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Ig([{provide:KB,useExisting:Tc(function(){return lS}),multi:!0},{provide:LB,useExisting:lS,multi:!0}]),Gx],ngContentSelectors:["*"],decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[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=t();fg();K(0,"div",1)(1,"button",2,0);N("click",function(){u(c);return v(b._handleClick())});M(3,"div",3)(4,"span",4);K(5,"span",5)(6,"span",6)(7,"span",7);M(8,"span",8);L();K(9,"span",9);M(10,"span",10);L();F(11,kab,5,0,"span",11);L()()();K(12,"label",12);N("click",function(d){u(c);return v(d.stopPropagation())});gg(13);L()()}a&2&&(a=Q(2),I("labelPosition",b.labelPosition),B(),yg("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),I("tabIndex",b.disabled&&!b.disabledInteractive?-1:b.tabIndex)("disabled",b.disabled&&!b.disabledInteractive),Jf("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),B(9),I("matRippleTrigger",a)("matRippleDisabled",b.disableRipple||b.disabled)("matRippleCentered",!0),B(),G(b.hideIcon?-1:11),B(),I("for",b.buttonId),Jf("id",b._labelId))},dependencies:[EA,CA],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(--mat-slide-toggle-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(--mat-slide-toggle-track-height, 32px);border-radius:var(--mat-slide-toggle-track-shape, var(--mat-sys-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mat-slide-toggle-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-slide-toggle-track-outline-width, 2px);border-color:var(--mat-slide-toggle-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-slide-toggle-selected-track-outline-width, 2px);border-color:var(--mat-slide-toggle-selected-track-outline-color, transparent)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-slide-toggle-disabled-unselected-track-outline-width, 2px);border-color:var(--mat-slide-toggle-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(--mat-slide-toggle-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-slide-toggle-hidden-track-opacity, 0);transition:var(--mat-slide-toggle-hidden-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-slide-toggle-visible-track-opacity, 1);transition:var(--mat-slide-toggle-visible-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-hover-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-focus-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mat-slide-toggle-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(--mat-slide-toggle-disabled-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mat-slide-toggle-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-slide-toggle-visible-track-opacity, 1);transition:var(--mat-slide-toggle-visible-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-slide-toggle-hidden-track-opacity, 0);transition:var(--mat-slide-toggle-hidden-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-hover-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-focus-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mat-slide-toggle-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(--mat-slide-toggle-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(--mat-slide-toggle-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(--mat-slide-toggle-handle-width);height:var(--mat-slide-toggle-handle-height);border-radius:var(--mat-slide-toggle-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-slide-toggle-unselected-handle-size, 16px);height:var(--mat-slide-toggle-unselected-handle-size, 16px);margin:var(--mat-slide-toggle-unselected-handle-horizontal-margin, 0 8px)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-slide-toggle-unselected-with-icon-handle-horizontal-margin, 0 4px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-slide-toggle-selected-handle-size, 24px);height:var(--mat-slide-toggle-selected-handle-size, 24px);margin:var(--mat-slide-toggle-selected-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-slide-toggle-selected-with-icon-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-slide-toggle-with-icon-handle-size, 24px);height:var(--mat-slide-toggle-with-icon-handle-size, 24px)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-slide-toggle-pressed-handle-size, 28px);height:var(--mat-slide-toggle-pressed-handle-size, 28px)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-slide-toggle-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-slide-toggle-unselected-pressed-handle-horizontal-margin, 0 2px)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-slide-toggle-disabled-selected-handle-opacity, 1)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-slide-toggle-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(--mat-slide-toggle-selected-handle-color, var(--mat-sys-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-hover-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-focus-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mat-slide-toggle-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(--mat-slide-toggle-disabled-selected-handle-color, var(--mat-sys-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-handle-color, var(--mat-sys-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-hover-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-focus-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-disabled-unselected-handle-color, var(--mat-sys-on-surface))}.mdc-switch__handle::before{background:var(--mat-slide-toggle-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(--mat-slide-toggle-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(--mat-slide-toggle-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mat-slide-toggle-state-layer-size, 40px);height:var(--mat-slide-toggle-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{transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.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(--mat-slide-toggle-unselected-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-pressed-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-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(--mat-slide-toggle-selected-hover-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-focus-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-pressed-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-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(--mat-slide-toggle-disabled-unselected-icon-opacity, 0.38)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mat-slide-toggle-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(--mat-slide-toggle-unselected-icon-size, 16px);height:var(--mat-slide-toggle-unselected-icon-size, 16px);fill:var(--mat-slide-toggle-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mat-slide-toggle-disabled-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mat-slide-toggle-selected-icon-size, 16px);height:var(--mat-slide-toggle-selected-icon-size, 16px);fill:var(--mat-slide-toggle-selected-icon-color, var(--mat-sys-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mat-slide-toggle-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-slide-toggle-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-slide-toggle-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-slide-toggle-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-slide-toggle-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-slide-toggle-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-slide-toggle-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(--mat-slide-toggle-disabled-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-slide-toggle-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-slide-toggle-touch-target-size, 48px);width:100%;transform:translate(-50%, -50%);display:var(--mat-slide-toggle-touch-target-display, block)}[dir=rtl] .mat-mdc-slide-toggle-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}\n'],
encapsulation:2,changeDetection:0});var mS=function(){};mS.\u0275fac=function(a){return new (a||mS)};mS.\u0275mod=$e({type:mS});mS.\u0275inj=Dc({imports:[lS,jz]});var nS=new bd("CDK_TABLE");new bd("text-column-options");var oS=function(){this.template=q(hg)};oS.\u0275fac=function(a){return new (a||oS)};oS.\u0275dir=af({type:oS,selectors:[["","cdkCellDef",""]]});var pS=function(){this.template=q(hg)};pS.\u0275fac=function(a){return new (a||pS)};pS.\u0275dir=af({type:pS,selectors:[["","cdkHeaderCellDef",""]]});var qS=function(){this.template=q(hg)};qS.\u0275fac=function(a){return new (a||qS)};qS.\u0275dir=af({type:qS,selectors:[["","cdkFooterCellDef",""]]});
var rS=function(){this._table=q(nS,{optional:!0});this._stickyEnd=this._sticky=this._hasStickyChanged=!1};rS.prototype.hasStickyChanged=function(){var a=this._hasStickyChanged;this.resetStickyChanged();return a};rS.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1};rS.prototype._updateColumnCssClassName=function(){this._columnCssClassName=["cdk-column-"+this.cssClassFriendlyName]};
rS.prototype._setNameInput=function(a){a&&(this._name=a,this.cssClassFriendlyName=a.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())};
da.Object.defineProperties(rS.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)}}});
rS.\u0275fac=function(a){return new (a||rS)};rS.\u0275dir=af({type:rS,selectors:[["","cdkColumnDef",""]],contentQueries:function(a,b,c){a&1&&(lg(c,oS,5),lg(c,pS,5),lg(c,qS,5));if(a&2){var d;og(d=pg())&&(b.cell=d.first);og(d=pg())&&(b.headerCell=d.first);og(d=pg())&&(b.footerCell=d.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",bh],stickyEnd:[2,"stickyEnd","stickyEnd",bh]},features:[Ig([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:rS}])]});
var cxd=function(a,b){b.nativeElement.classList.add.apply(b.nativeElement.classList,n(a._columnCssClassName))},sS=function(){cxd.call(this,q(rS),q(Gd))};Z(sS,cxd);sS.\u0275fac=function(a){return new (a||sS)};sS.\u0275dir=af({type:sS,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Ff]});
var tS=function(){var a=q(rS),b=q(Gd);cxd.call(this,a,b);var c;(a=(c=a._table)==null?void 0:c._getCellRole())&&b.nativeElement.setAttribute("role",a)};Z(tS,cxd);tS.\u0275fac=function(a){return new (a||tS)};tS.\u0275dir=af({type:tS,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[Ff]});var uS=function(){var a=q(rS),b=q(Gd);cxd.call(this,a,b);var c;(a=(c=a._table)==null?void 0:c._getCellRole())&&b.nativeElement.setAttribute("role",a)};Z(uS,cxd);
uS.\u0275fac=function(a){return new (a||uS)};uS.\u0275dir=af({type:uS,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Ff]});var vS=function(){this.template=q(hg);this._differs=q(by)};vS.prototype.ngOnChanges=function(a){this._columnsDiffer||(a=a.columns&&a.columns.currentValue||[],this._columnsDiffer=this._differs.find(a).create(),this._columnsDiffer.diff(a))};vS.\u0275fac=function(a){return new (a||vS)};vS.\u0275dir=af({type:vS,features:[Gx]});var wS=function(){vS.call(this,q(hg),q(by));this._table=q(nS,{optional:!0});this._sticky=this._hasStickyChanged=!1};Z(wS,vS);
wS.prototype.ngOnChanges=function(a){vS.prototype.ngOnChanges.call(this,a)};wS.prototype.hasStickyChanged=function(){var a=this._hasStickyChanged;this.resetStickyChanged();return a};wS.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1};da.Object.defineProperties(wS.prototype,{sticky:{configurable:!0,enumerable:!0,get:function(){return this._sticky},set:function(a){a!==this._sticky&&(this._sticky=a,this._hasStickyChanged=!0)}}});wS.\u0275fac=function(a){return new (a||wS)};
wS.\u0275dir=af({type:wS,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",bh]},features:[Ff,Gx]});var xS=function(){vS.call(this,q(hg),q(by));this._table=q(nS,{optional:!0});this._sticky=this._hasStickyChanged=!1};Z(xS,vS);xS.prototype.ngOnChanges=function(a){vS.prototype.ngOnChanges.call(this,a)};xS.prototype.hasStickyChanged=function(){var a=this._hasStickyChanged;this.resetStickyChanged();return a};
xS.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1};da.Object.defineProperties(xS.prototype,{sticky:{configurable:!0,enumerable:!0,get:function(){return this._sticky},set:function(a){a!==this._sticky&&(this._sticky=a,this._hasStickyChanged=!0)}}});xS.\u0275fac=function(a){return new (a||xS)};xS.\u0275dir=af({type:xS,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",bh]},features:[Ff,Gx]});
var yS=function(){vS.call(this,q(hg),q(by));this._table=q(nS,{optional:!0})};Z(yS,vS);yS.\u0275fac=function(a){return new (a||yS)};yS.\u0275dir=af({type:yS,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[Ff]});var zS=function(){this._viewContainer=q(ig);zS.mostRecentCellOutlet=this};zS.prototype.ngOnDestroy=function(){zS.mostRecentCellOutlet===this&&(zS.mostRecentCellOutlet=null)};zS.mostRecentCellOutlet=null;
zS.\u0275fac=function(a){return new (a||zS)};zS.\u0275dir=af({type:zS,selectors:[["","cdkCellOutlet",""]]});var dxd=function(){};dxd.\u0275fac=function(a){return new (a||dxd)};dxd.\u0275cmp=C({type:dxd,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&&Xf(0,0)},dependencies:[zS],encapsulation:2});var exd=function(){};exd.\u0275fac=function(a){return new (a||exd)};
exd.\u0275cmp=C({type:exd,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&&Xf(0,0)},dependencies:[zS],encapsulation:2});var fxd=function(){};fxd.\u0275fac=function(a){return new (a||fxd)};
fxd.\u0275cmp=C({type:fxd,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Xf(0,0)},dependencies:[zS],encapsulation:2});var AS=function(){this.templateRef=q(hg);this._contentClassNames=["cdk-no-data-row","cdk-row"];this._cellClassNames=["cdk-cell","cdk-no-data-cell"];this._cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell"};AS.\u0275fac=function(a){return new (a||AS)};
AS.\u0275dir=af({type:AS,selectors:[["ng-template","cdkNoDataRow",""]]});var gxd=new bd("CDK_SPL");var hxd=["top","bottom","left","right"],ixd=function(a,b,c,d,e,f,g){var k=this;c=c===void 0?!0:c;d=d===void 0?!0:d;this._isNativeHtmlTable=a;this._stickCellCss=b;this._isBrowser=c;this._needsPositionStickyOnElement=d;this.direction=e;this._positionListener=f;this._tableInjector=g;this._elemSizeCache=new WeakMap;var m;this._resizeObserver=((m=globalThis)==null?0:m.ResizeObserver)?new globalThis.ResizeObserver(function(r){return k._updateCachedSizes(r)}):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"}},jxd=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(n(Array.from(e.children))));De({write:function(){for(var f=
l(d),g=f.next();!g.done;g=f.next())a._removeStickyStyle(g.value,c)}},{injector:a._tableInjector})},kxd=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(V){return V})||d.some(function(V){return V}))){var g=b[0],k=g.children.length,m=a.direction==="rtl",r=m?"right":"left",w=m?"left":"right",x=c.lastIndexOf(!0),D=d.indexOf(!0),H,J,O;f&&a._updateStickyColumnReplayQueue({rows:[].concat(n(b)),stickyStartStates:[].concat(n(c)),stickyEndStates:[].concat(n(d))});
De({earlyRead:function(){H=a._getCellWidths(g,e);J=a._getStickyStartColumnPositions(H,c);O=a._getStickyEndColumnPositions(H,d)},write:function(){for(var V=l(b),ba=V.next();!ba.done;ba=V.next()){ba=ba.value;for(var pa=0;pa<k;pa++){var ua=ba.children[pa];c[pa]&&a._addStickyStyle(ua,r,J[pa],pa===x);d[pa]&&a._addStickyStyle(ua,w,O[pa],pa===D)}}a._positionListener&&H.some(function(ma){return!!ma})&&(a._positionListener.stickyColumnsUpdated({sizes:x===-1?[]:H.slice(0,x+1).map(function(ma,Da){return c[Da]?
ma:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:D===-1?[]:H.slice(D).map(function(ma,Da){return d[Da+D]?ma:null}).reverse()}))}},{injector:a._tableInjector})}else{(m=a._positionListener)==null||m.stickyColumnsUpdated({sizes:[]});var R;(R=a._positionListener)==null||R.stickyEndColumnsUpdated({sizes:[]})}},lxd=function(a,b,c,d){if(a._isBrowser){var e=d==="bottom"?b.slice().reverse():b,f=d==="bottom"?c.slice().reverse():c,g=[],k=[],m=[];De({earlyRead:function(){for(var r=0,w=0;r<e.length;r++)if(f[r]){g[r]=
w;var x=e[r];m[r]=a._isNativeHtmlTable?Array.from(x.children):[x];x=a._retrieveElementSize(x).height;w+=x;k[r]=x}},write:function(){for(var r=f.lastIndexOf(!0),w=0;w<e.length;w++)if(f[w])for(var x=g[w],D=w===r,H=l(m[w]),J=H.next();!J.done;J=H.next())a._addStickyStyle(J.value,d,x,D);if(d==="top"){var O;(O=a._positionListener)==null||O.stickyHeaderRowsUpdated({sizes:k,offsets:g,elements:m})}else{var R;(R=a._positionListener)==null||R.stickyFooterRowsUpdated({sizes:k,offsets:g,elements:m})}}},{injector:a._tableInjector})}},
mxd=function(a,b,c){a._isNativeHtmlTable&&De({write:function(){var d=b.querySelector("tfoot");d&&(c.some(function(e){return!e})?a._removeStickyStyle(d,["bottom"]):a._addStickyStyle(d,"bottom",0,!1))}},{injector:a._tableInjector})};h=ixd.prototype;h.destroy=function(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout);var a;(a=this._resizeObserver)==null||a.disconnect();this._destroyed=!0};
h._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]);hxd.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))}};
h._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; ")};h._getCalculatedZIndex=function(a){for(var b={top:100,bottom:10,left:1,right:1},c=0,d=l(hxd),e=d.next();!e.done;e=d.next())e=e.value,a.style[e]&&(c+=b[e]);return c?""+c:""};
h._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};h._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};h._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};
h._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};h._updateStickyColumnReplayQueue=function(a){this._removeFromStickyColumnReplayQueue(a.rows);this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(a)};
h._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})};
h._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)&&lab(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 g=l(b._updatedStickyColumnsParamsToReplay),k=g.next();!k.done;k=g.next())k=k.value,kxd(b,k.rows,k.stickyStartStates,k.stickyEndStates,!0,!1);b._updatedStickyColumnsParamsToReplay=[];b._stickyColumnsReplayTimeout=null}},0))};var nxd=[[["caption"]],[["colgroup"],["col"]],"*"],oxd=function(){this.viewContainer=q(ig);this.elementRef=q(Gd);var a=q(nS);a._rowOutlet=this;a._outletAssigned()};oxd.\u0275fac=function(a){return new (a||oxd)};oxd.\u0275dir=af({type:oxd,selectors:[["","rowOutlet",""]]});var pxd=function(){this.viewContainer=q(ig);this.elementRef=q(Gd);var a=q(nS);a._headerRowOutlet=this;a._outletAssigned()};pxd.\u0275fac=function(a){return new (a||pxd)};
pxd.\u0275dir=af({type:pxd,selectors:[["","headerRowOutlet",""]]});var qxd=function(){this.viewContainer=q(ig);this.elementRef=q(Gd);var a=q(nS);a._footerRowOutlet=this;a._outletAssigned()};qxd.\u0275fac=function(a){return new (a||qxd)};qxd.\u0275dir=af({type:qxd,selectors:[["","footerRowOutlet",""]]});var rxd=function(){this.viewContainer=q(ig);this.elementRef=q(Gd);var a=q(nS);a._noDataRowOutlet=this;a._outletAssigned()};rxd.\u0275fac=function(a){return new (a||rxd)};
rxd.\u0275dir=af({type:rxd,selectors:[["","noDataRowOutlet",""]]});
var BS=function(){var a=this;this._differs=q(by);this._changeDetectorRef=q(Yx);this._elementRef=q(Gd);this._dir=q(ii,{optional:!0});this._platform=q(bi);this._viewRepeater=q(YGc);this._viewportRuler=q(Xh);this._stickyPositioningListener=q(gxd,{optional:!0,skipSelf:!0});this._document=q(Yh);this._onDestroy=new rf;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 ui;this.viewChange=new Xj({start:0,end:Number.MAX_VALUE});this._injector=q(xe);q(new Hx("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role",
"table");this._isServer=!this._platform.isBrowser;this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE";this._dataDiffer=this._differs.find([]).create(function(b,c){return a.trackBy?a.trackBy(c.dataIndex,c.data):c})};h=BS.prototype;h._getCellRole=function(){var a=this._elementRef.nativeElement.getAttribute("role");return a==="grid"||a==="treegrid"?"gridcell":"cell"};
h.ngOnInit=function(){var a=this;this._setupStickyStyler();this._viewportRuler.change().pipe(Af(this._onDestroy)).subscribe(function(){a._forceRecalculateCellWidths=!0})};h.ngAfterContentInit=function(){this._hasInitialized=!0};h.ngAfterContentChecked=function(){this._canRender()&&this._render()};
h.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();Asa(this.dataSource)&&this.dataSource.disconnect(this)};
var txd=function(a){a._renderRows=a._getAllRenderRows();var b=a._dataDiffer.diff(a._renderRows);if(b){var c=a._rowOutlet.viewContainer;a._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)});a._updateRowIndexContext();eEc(b,function(d){c.get(d.currentIndex).context.$implicit=d.item.data});a._updateNoDataRow();a.contentChanged.next();
sxd(a)}else a._updateNoDataRow(),a.contentChanged.next()},uxd=function(a){var b=a._getRenderedRows(a._headerRowOutlet);if(a._isNativeHtmlTable){var c=qab(a._headerRowOutlet,"thead");c&&(c.style.display=b.length?"":"none")}c=a._headerRowDefs.map(function(d){return d.sticky});jxd(a._stickyStyler,b,["top"]);lxd(a._stickyStyler,b,c,"top");a._headerRowDefs.forEach(function(d){return d.resetStickyChanged()})},vxd=function(a){var b=a._getRenderedRows(a._footerRowOutlet);if(a._isNativeHtmlTable){var c=qab(a._footerRowOutlet,
"tfoot");c&&(c.style.display=b.length?"":"none")}c=a._footerRowDefs.map(function(d){return d.sticky});jxd(a._stickyStyler,b,["bottom"]);lxd(a._stickyStyler,b,c,"bottom");mxd(a._stickyStyler,a._elementRef.nativeElement,c);a._footerRowDefs.forEach(function(d){return d.resetStickyChanged()})},sxd=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)jxd(a._stickyStyler,
[].concat(n(b),n(c),n(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=[],g=0;g<c.length;g++)a._renderRows[g].rowDef===e&&f.push(c[g]);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()})};h=BS.prototype;
h._outletAssigned=function(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())};h._canRender=function(){return this._hasAllOutlets&&this._hasInitialized};
h._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&&sxd(this);this._checkStickyStates()};
h._getAllRenderRows=function(){var a=[],b=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;if(!this._data)return a;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],g=this._cachedRenderRowsMap.get(f.data);g.has(f.rowDef)?g.get(f.rowDef).push(f):g.set(f.rowDef,[f]);a.push(f)}}return a};
h._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}})};h._cacheColumnDefs=function(){var a=this;this._columnDefsByName.clear();pab(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(function(b){a._columnDefsByName.has(b.name);a._columnDefsByName.set(b.name,b)})};
h._cacheRowDefs=function(){this._headerRowDefs=pab(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs);this._footerRowDefs=pab(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs);this._rowDefs=pab(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);this._defaultRowDef=this._rowDefs.filter(function(a){return!a.when})[0]};
h._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};
h._switchDataSource=function(a){this._data=[];Asa(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};
h._observeRenderChanges=function(){var a=this;if(this.dataSource){var b;Asa(this.dataSource)?b=this.dataSource.connect(this):ve(this.dataSource)?b=this.dataSource:Array.isArray(this.dataSource)&&(b=be(this.dataSource));this._renderChangeSubscription=b.pipe(Af(this._onDestroy)).subscribe(function(c){a._data=c||[];txd(a)})}};
h._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)});uxd(this)};h._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)});vxd(this)};
h._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});kxd(this._stickyStyler,a,b,d,!this._fixedLayout||this._forceRecalculateCellWidths)};h._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};
h._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};h._getEmbeddedViewArgs=function(a,b){return{templateRef:a.rowDef.template,context:{$implicit:a.data},index:b}};
h._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};h._renderCellTemplateForItem=function(a,b){a=l(this._getCellTemplates(a));for(var c=a.next();!c.done;c=a.next())c=c.value,zS.mostRecentCellOutlet&&zS.mostRecentCellOutlet._viewContainer.createEmbeddedView(c,b);this._changeDetectorRef.markForCheck()};
h._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}};
h._getCellTemplates=function(a){var b=this;return a&&a.columns?Array.from(a.columns,function(c){c=b._columnDefsByName.get(c);return a instanceof wS?c.headerCell.template:a instanceof xS?c.footerCell.template:c.cell.template}):[]};h._forceRenderDataRows=function(){this._dataDiffer.diff([]);this._rowOutlet.viewContainer.clear();txd(this)};
h._checkStickyStates=function(){var a=function(b,c){return b||c.hasStickyChanged()};this._headerRowDefs.reduce(a,!1)&&uxd(this);this._footerRowDefs.reduce(a,!1)&&vxd(this);Array.from(this._columnDefsByName.values()).reduce(a,!1)&&(this._stickyColumnStylesNeedReset=!0,sxd(this))};
h._setupStickyStyler=function(){var a=this;this._stickyStyler=new ixd(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,this._dir?this._dir.value:"ltr",this._stickyPositioningListener,this._injector);(this._dir?this._dir.change:be()).pipe(Af(this._onDestroy)).subscribe(function(b){a._stickyStyler.direction=b;sxd(a)})};h._getOwnDefs=function(a){var b=this;return a.filter(function(c){return!c._table||c._table===b})};
h._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];if(c.rootNodes.length===1&&(d==null?void 0:d.nodeType)===this._document.ELEMENT_NODE)for(d.setAttribute("role","row"),d.classList.add.apply(d.classList,n(a._contentClassNames)),c=d.querySelectorAll(a._cellSelector),d=0;d<c.length;d++)c[d].classList.add.apply(c[d].classList,
n(a._cellClassNames))}else c.clear();this._isShowingNoDataRow=b;this._changeDetectorRef.markForCheck()}}};
da.Object.defineProperties(BS.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(),sxd(this))}},fixedLayout:{configurable:!0,enumerable:!0,get:function(){return this._fixedLayout},set:function(a){this._fixedLayout=a;this._stickyColumnStylesNeedReset=this._forceRecalculateCellWidths=!0}}});BS.\u0275fac=function(a){return new (a||BS)};
BS.\u0275cmp=C({type:BS,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(a,b,c){a&1&&(lg(c,AS,5),lg(c,rS,5),lg(c,yS,5),lg(c,wS,5),lg(c,xS,5));if(a&2){var d;og(d=pg())&&(b._noDataRow=d.first);og(d=pg())&&(b._contentColumnDefs=d);og(d=pg())&&(b._contentRowDefs=d);og(d=pg())&&(b._contentHeaderRowDefs=d);og(d=pg())&&(b._contentFooterRowDefs=d)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(a,b){a&2&&yg("cdk-table-fixed-layout",b.fixedLayout)},inputs:{trackBy:"trackBy",
dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",bh],fixedLayout:[2,"fixedLayout","fixedLayout",bh]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Ig([{provide:nS,useExisting:BS},{provide:YGc,useClass:ZGc},{provide:gxd,useValue:null}])],ngContentSelectors:["caption","colgroup, col","*"],decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(a,
b){a&1&&(fg(nxd),gg(0),gg(1,1),F(2,mab,1,0),F(3,nab,7,0)(4,oab,4,0));a&2&&(B(2),G(b._isServer?2:-1),B(),G(b._isNativeHtmlTable?3:4))},dependencies:[pxd,oxd,rxd,qxd],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2});var wxd=function(){};wxd.\u0275fac=function(a){return new (a||wxd)};wxd.\u0275mod=$e({type:wxd});wxd.\u0275inj=Dc({imports:[bA]});var CS=function(){oS.apply(this,arguments)};Z(CS,oS);CS.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(CS)))(b||CS)}}();CS.\u0275dir=af({type:CS,selectors:[["","matCellDef",""]],features:[Ig([{provide:oS,useExisting:CS}]),Ff]});var DS=function(){pS.apply(this,arguments)};Z(DS,pS);DS.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(DS)))(b||DS)}}();DS.\u0275dir=af({type:DS,selectors:[["","matHeaderCellDef",""]],features:[Ig([{provide:pS,useExisting:DS}]),Ff]});
var ES=function(){qS.apply(this,arguments)};Z(ES,qS);ES.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(ES)))(b||ES)}}();ES.\u0275dir=af({type:ES,selectors:[["","matFooterCellDef",""]],features:[Ig([{provide:qS,useExisting:ES}]),Ff]});var FS=function(){rS.apply(this,arguments)};Z(FS,rS);FS.prototype._updateColumnCssClassName=function(){rS.prototype._updateColumnCssClassName.call(this);this._columnCssClassName.push("mat-column-"+this.cssClassFriendlyName)};
da.Object.defineProperties(FS.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this._name},set:function(a){this._setNameInput(a)}}});FS.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(FS)))(b||FS)}}();FS.\u0275dir=af({type:FS,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Ig([{provide:rS,useExisting:FS},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:FS}]),Ff]});var GS=function(){sS.apply(this,arguments)};Z(GS,sS);
GS.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(GS)))(b||GS)}}();GS.\u0275dir=af({type:GS,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[Ff]});var HS=function(){tS.apply(this,arguments)};Z(HS,tS);HS.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(HS)))(b||HS)}}();
HS.\u0275dir=af({type:HS,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],features:[Ff]});var IS=function(){uS.apply(this,arguments)};Z(IS,uS);IS.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(IS)))(b||IS)}}();IS.\u0275dir=af({type:IS,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[Ff]});var JS=function(){wS.apply(this,arguments)};Z(JS,wS);JS.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(JS)))(b||JS)}}();JS.\u0275dir=af({type:JS,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",bh]},features:[Ig([{provide:wS,useExisting:JS}]),Ff]});var KS=function(){xS.apply(this,arguments)};Z(KS,xS);KS.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(KS)))(b||KS)}}();
KS.\u0275dir=af({type:KS,selectors:[["","matFooterRowDef",""]],inputs:{columns:[0,"matFooterRowDef","columns"],sticky:[2,"matFooterRowDefSticky","sticky",bh]},features:[Ig([{provide:xS,useExisting:KS}]),Ff]});var LS=function(){yS.apply(this,arguments)};Z(LS,yS);LS.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(LS)))(b||LS)}}();
LS.\u0275dir=af({type:LS,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Ig([{provide:yS,useExisting:LS}]),Ff]});var MS=function(){};Z(MS,dxd);MS.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(MS)))(b||MS)}}();
MS.\u0275cmp=C({type:MS,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Ig([{provide:dxd,useExisting:MS}]),Ff],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Xf(0,0)},dependencies:[zS],encapsulation:2});var NS=function(){};Z(NS,exd);NS.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(NS)))(b||NS)}}();
NS.\u0275cmp=C({type:NS,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],features:[Ig([{provide:exd,useExisting:NS}]),Ff],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Xf(0,0)},dependencies:[zS],encapsulation:2});var OS=function(){};Z(OS,fxd);OS.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(OS)))(b||OS)}}();
OS.\u0275cmp=C({type:OS,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Ig([{provide:fxd,useExisting:OS}]),Ff],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Xf(0,0)},dependencies:[zS],encapsulation:2});
var PS=function(){AS.call(this);this._cellSelector="td, mat-cell, [mat-cell], .mat-cell";this._contentClassNames.push("mat-mdc-no-data-row","mat-mdc-row","mdc-data-table__row");this._cellClassNames.push("mat-mdc-cell","mdc-data-table__cell","mat-no-data-cell")};Z(PS,AS);PS.\u0275fac=function(a){return new (a||PS)};PS.\u0275dir=af({type:PS,selectors:[["ng-template","matNoDataRow",""]],features:[Ig([{provide:AS,useExisting:PS}]),Ff]});var xxd=[[["caption"]],[["colgroup"],["col"]],"*"],QS=function(){BS.apply(this,arguments);this.stickyCssClass="mat-mdc-table-sticky";this.needsPositionStickyOnElement=!1};Z(QS,BS);QS.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(QS)))(b||QS)}}();
QS.\u0275cmp=C({type:QS,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(a,b){a&2&&yg("mdc-table-fixed-layout",b.fixedLayout)},exportAs:["matTable"],features:[Ig([{provide:BS,useExisting:QS},{provide:nS,useExisting:QS},{provide:YGc,useClass:ZGc},{provide:gxd,useValue:null}]),Ff],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&&(fg(xxd),gg(0),gg(1,1),F(2,rab,1,0),F(3,sab,7,0)(4,tab,4,0));a&2&&(B(2),G(b._isServer?2:-1),B(),G(b._isNativeHtmlTable?3:4))},dependencies:[pxd,oxd,rxd,qxd],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:var(--mat-table-header-container-height, 56px)}mat-row{min-height:var(--mat-table-row-item-container-height, 52px)}mat-footer-row{min-height:var(--mat-table-footer-container-height, 52px)}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 RS=function(){};RS.\u0275fac=function(a){return new (a||RS)};RS.\u0275mod=$e({type:RS});RS.\u0275inj=Dc({imports:[wxd,jz]});var yxd={SUGGESTIONS:0,AUTOMATIC_ACTIONS:1,0:"SUGGESTIONS",1:"AUTOMATIC_ACTIONS"},SS=function(){LO.apply(this,arguments);var a=this;this.data=q(fB);this.playbookService=q(RP);this.matDialogRef=q(dB);this.changeDetectorRef=q(Yx);this.appSearchState=q(gS);this.FormattingMode=fo;this.showSettings=this.isEditing=!1;this.searchQuery$=le(function(){return a.data.searchQuery?be(a.data.searchQuery):a.appSearchState.queryState$.pipe(A(function(b){return b.query}))});this.playbook$=this.searchQuery$.pipe(zf(function(b){return b?
iqd(a.playbookService,b):be(void 0)}));this.draftPlaybook={name:"",instructions:"",searchQuery:this.data.searchQuery};this.unimplementedPlaybookData={enablePlaybook:!0,agentMode:0,clusterSuggestions:!1,statsInterval:2};this.AgentMode=yxd;this.statsIntervalOptions=[0,1,2,3];this.displayedColumns=["triageActions","acceptanceRate","accuracy"];this.dataSource=[{triageActions:"Dedupe",acceptanceRate:"2/8 (25%)",accuracy:"33%"},{triageActions:"Component change",acceptanceRate:"7/10 (70%)",accuracy:"43%"},
{triageActions:"Priority change",acceptanceRate:"6/12 (50%)",accuracy:"62%"},{triageActions:"Severity change",acceptanceRate:"2/10 (20%)",accuracy:"12%"},{triageActions:"Type change",acceptanceRate:"3/8 (38%)",accuracy:"74%"},{triageActions:"Assign to reporter",acceptanceRate:"5/16 (31%)",accuracy:"48%"},{triageActions:"Close as \u201cWon\u2019t fix\u201d",acceptanceRate:"6/9 (67%)",accuracy:"34%"}]};Z(SS,LO);SS.\u0275dir=LO.\u0275dir;
SS.prototype.ngOnInit=function(){var a=this;this.playbook$.pipe(Af(this.destroyed$)).subscribe(function(b){b&&(a.originalPlaybook=b,a.draftPlaybook=Hm(b),b.instructions&&(a.formattedComment={markdownFormat:{content:Dh(b.instructions)}}),a.changeDetectorRef.detectChanges())})};SS.prototype.hasChanges=function(){return!Gm(this.originalPlaybook,this.draftPlaybook)};
var zxd=function(a){return y(function(b){if(b.nextAddress==1)return a.hasChanges()?a.originalPlaybook?z(b,jqd(a.playbookService,a.draftPlaybook),3):z(b,hqd(a.playbookService,a.draftPlaybook),3):b.return();a.matDialogRef.close();a.isEditing=!1;$d(b)})},xab=function(a){switch(a){case 0:return"All time";case 1:return"Last day";case 2:return"Last 7 days";case 3:return"Last 30 days";default:return sb(a)}};SS.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(SS)))(b||SS)}}();
SS.\u0275cmp=C({type:SS,selectors:[["b-playbook-dialog"]],features:[Ff],decls:19,vars:3,consts:[["textarea",""],["statsSelector","matMenu"],["mat-dialog-title",""],[1,"flex-kids-x","gap-s"],["type","button","mat-icon-button","","matTooltip","Close","aria-label","Close",1,"pos-tr",3,"click"],["svgIcon","clear",1,"icon-s"],[1,"flex-kids-x","gap-l","full-height"],[1,"flex-kids-y","grow-1","gap-s"],[1,"uppercase","muted"],["cdkFocusInitial","","aria-label","Playbook instructions","placeholder","Move issues related to X to component Y.",
1,"grow-1",3,"ngModel"],[1,"flex-kids-y","gap-s"],["align","end"],["mat-button","",3,"click"],["mat-raised-button","","aria-label","Save playbook","color","primary",3,"click","disabled"],["cdkFocusInitial","","aria-label","Playbook instructions","placeholder","Move issues related to X to component Y.",1,"grow-1",3,"ngModelChange","ngModel"],[1,"unset-background",3,"comment","formattingMode"],[1,"flex-kids-x"],["mat-button","",1,"align-self-flex-end","edit",3,"click"],[1,"flex-kids-y","gap"],[3,"ngModelChange",
"ngModel"],[1,"flex-kids-x","gap","align-items-center"],["type","text","disabled","","aria-label","Playbook scope",1,"grow-1","rounded",3,"ngModel"],[1,"flex-kids-x","gap"],["aria-label","Agent mode",1,"flex-kids-x","gap",3,"ngModelChange","ngModel"],[3,"value"],[1,"flex-kids-x","gap","align-items-center","margin-top"],["type","button","mat-stroked-button","","color","primary",1,"small","gmat-button",3,"matMenuTriggerFor"],[1,"margin-xs-right"],["name","arrow-dropdown","size","small"],["type","button",
"mat-menu-item",""],["mat-table","",3,"dataSource"],["matColumnDef","triageActions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","acceptanceRate"],["matColumnDef","accuracy"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["type","button","mat-menu-item","",3,"click"],["svgIcon","done",1,"icon-s"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(a,b){a&1&&(K(0,"div",
2)(1,"div",3)(2,"h1"),S(3,"Triage agent"),L(),K(4,"button",4),N("click",function(){return b.matDialogRef.close()}),M(5,"mat-icon",5),L()()(),K(6,"mat-dialog-content")(7,"div",6)(8,"div",7)(9,"h4",8),S(10,"Playbook"),L(),F(11,uab,2,1,"textarea",9)(12,wab,4,1),L(),F(13,Hab,42,11,"div",10),L()(),K(14,"mat-dialog-actions",11)(15,"button",12),N("click",function(){return b.matDialogRef.close()}),S(16,"Cancel"),L(),K(17,"button",13),N("click",function(){return zxd(b)}),S(18,"Save"),L()());a&2&&(B(11),G(b.isEditing?
11:12),B(2),G(b.showSettings?13:-1),B(4),I("disabled",!b.hasChanges()))},dependencies:[mC,xi,PB,WB,ZA,XA,TA,VA,hS,fS,IS,CS,FS,mB,lB,kB,GS,DS,MS,JS,iz,LF,JF,OF,jS,iS,OS,LS,lS,QS,MA],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)}textarea[_ngcontent-%COMP%]{resize:none}h1[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%]     div.mat-mdc-dialog-title:before{height:0}[_nghost-%COMP%]     b-live-preview.unset-background .md-preview{background:unset}input[_ngcontent-%COMP%]{padding:4px 8px}b-live-preview[_ngcontent-%COMP%]{max-height:90%;overflow:scroll}.disclaimer[_ngcontent-%COMP%]{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;font-style:italic}"],
changeDetection:0});var TS=function(){this.matDialog=q(gB)};TS.prototype.open=function(a){return ee(eB(this.matDialog.open(SS,{width:"80vw",height:"80vh",maxWidth:"1200px",maxHeight:"800px",data:{searchQuery:a}})))};TS.\u0275fac=function(a){return new (a||TS)};TS.\u0275prov=Cc({token:TS,factory:TS.\u0275fac,providedIn:"root"});var Axd=function(a){this.allowExecution=a;this.queue=[]};Axd.prototype.addTask=function(a){this.queue.push(a);Bxd(this)};var Bxd=function(a){if(a.queue.length!==0)if(a.allowExecution()){var b=l(a.queue),c=b.next().value;a.queue=yj(b);c();Bxd(a)}else setTimeout(function(){Bxd(a)},0)};var US=function(){var a=this;this.location=q(oi);this.platformLocation=q(yy);this.activatedRoute=q(Wj);this.router=q(CF);this.scheduler=new Axd(function(){return!Mc(a.router.navigationTransitions.currentNavigation)})};US.prototype.hash=function(a,b){typeof a!=="undefined"&&Cxd(this,a!=null?a:"",b);var c;return(c=this.activatedRoute.snapshot.fragment)!=null?c:""};var Cxd=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})})};
US.prototype.path=function(a,b){typeof a!=="undefined"&&this.setPath(a,b);return this.getPath()};var Dxd=function(a,b){a.path(b,!0)};h=US.prototype;h.getPath=function(){var a=l(this.location.path().split("?")).next().value;return l(a.split("#")).next().value};h.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};
h.search=function(a,b,c){typeof a!=="undefined"&&this.setSearch(a,b,c);return this.getSearch()};h.getSearch=function(){return Iab(this.activatedRoute.snapshot.queryParamMap)};h.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})})};h.replaceUrl=function(a){return this.setUrl(a,!0)};
h.setUrl=function(a,b){var c=this;b=b===void 0?!1:b;return new Promise(function(d,e){c.addTask(function(){hu(c.router,a,{replaceUrl:b}).then(d).catch(e)})})};h.getUrl=function(){return this.location.path(!0)};h.addTask=function(a){this.scheduler.addTask(a)};US.\u0275fac=function(a){return new (a||US)};US.\u0275prov=Cc({token:US,factory:US.\u0275fac,providedIn:"root"});var VS=function(){this.ariaLabel="loading";this.SIZE_SMALL=16;this.SIZE_LARGE=36;this.DIAMETER_SMALL=2};VS.\u0275fac=function(a){return new (a||VS)};VS.\u0275cmp=C({type:VS,selectors:[["b-spinner"]],inputs:{large:"large",ariaLabel:"ariaLabel"},decls:2,vars:2,consts:[[1,"large",3,"diameter"],[1,"small",3,"diameter","strokeWidth"]],template:function(a,b){a&1&&(F(0,Jab,1,2,"mat-spinner",0),F(1,Kab,1,3,"mat-spinner",1));a&2&&(G(b.large?0:-1),B(),G(b.large?-1:1))},dependencies:[fK,eK,NI],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 Exd={EMPTY:0,EXISTS:1,RUNNING:2,COMPLETE:3,0:"EMPTY",1:"EXISTS",2:"RUNNING",3:"COMPLETE"},WS=function(){var a=this;this.playbookService=q(RP);this.bLocation=q(US);this.playbookDialogService=q(TS);this.appSearchState=q(gS);this.issueIds=[];this.PlaybookState=Exd;this.playbookState=0;this.searchQuery$=this.appSearchState.queryState$.pipe(A(function(b){return b.query||void 0}));this.playbook$=this.searchQuery$.pipe(zf(function(b){return b?iqd(a.playbookService,b):be(void 0)}))};
WS.prototype.ngOnInit=function(){var a=this;this.playbook$.subscribe(function(b){b&&(a.playbookState=1)})};var Nab=function(a){var b;return y(function(c){if(c.nextAddress==1)return z(c,ee(a.playbook$),2);if(c.nextAddress!=3){b=c.yieldResult;if(!b)throw Error("Me");a.playbookState=2;return z(c,nqd(a.playbookService,b,a.issueIds),3)}a.playbookState=3;$d(c)})};
WS.prototype.openDialog=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,ee(a.searchQuery$),2);b=c.yieldResult;a.playbookDialogService.open(b);$d(c)})};WS.\u0275fac=function(a){return new (a||WS)};
WS.\u0275cmp=C({type:WS,selectors:[["playbook-controls"]],inputs:{issueIds:"issueIds"},decls:2,vars:1,consts:[["mat-button",""],["mat-button","",3,"click"],["svgIcon","edit-outline",1,"triage-rules","icon-m"],[1,"running"],["svgIcon","format_list_bulleted_spark_24px",1,"triage-rules","icon-m"]],template:function(a,b){a&1&&F(0,Lab,3,0,"button",0)(1,Pab,5,1);a&2&&G(b.playbookState===b.PlaybookState.EMPTY?0:1)},dependencies:[ZA,XA,TA,iz,VS],styles:["[_nghost-%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}.mat-icon.triage-rules[_ngcontent-%COMP%]{height:unset;margin-right:4px}.running[_ngcontent-%COMP%]{display:inline-block;padding:4px;font-family:Google Sans,Roboto,Arial,sans-serif;font-size:.875rem;letter-spacing:.0107142857em;font-weight:500;color:var(--text-muted);text-wrap:nowrap}"],
changeDetection:0});var Fxd=function(){this.text="..."};Fxd.\u0275fac=function(a){return new (a||Fxd)};
Fxd.\u0275cmp=C({type:Fxd,selectors:[["ai-spinner"]],hostVars:2,hostBindings:function(a,b){a&2&&yg("large",b.large)},inputs:{large:"large",text:"text"},decls:2,vars:1,template:function(a,b){a&1&&(Sf(0,"label"),S(1),Tf());a&2&&(B(),T(" ",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 XS=function(){};XS.\u0275fac=function(a){return new (a||XS)};XS.\u0275mod=$e({type:XS});XS.\u0275inj=Dc({imports:[FN,fK,VS]});var Gxd=[WS],Hxd=function(){};Hxd.\u0275fac=function(a){return new (a||Hxd)};Hxd.\u0275mod=$e({type:Hxd});Hxd.\u0275inj=Dc({imports:[kz,XS,ZA,Gxd]});var YS=function(){this.prefs=q(VP);this.links=q(OQ);this.change=new KO;this.checked$=new Xj(!1);this.disabled$=new Xj(!1);this.mdHelpLink=this.links.session.isInternalSession()?"http://go/buganizer-markdown-quickstart":"https://commonmark.org/help/"},Ixd=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return c=b.checked?"MARKDOWN":"PLAIN",z(d,yqd(a.prefs,c),2);a.change.emit(c);$d(d)})};
da.Object.defineProperties(YS.prototype,{initialValue:{configurable:!0,enumerable:!0,set:function(a){this.checked$.next(a==="MARKDOWN");this.disabled$.next(a==="LITERAL")}}});YS.\u0275fac=function(a){return new (a||YS)};
YS.\u0275cmp=C({type:YS,selectors:[["b-markdown-toggle"]],inputs:{initialValue:"initialValue"},outputs:{change:"change"},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&&(K(0,"mat-checkbox",0),U(1,
"async"),U(2,"async"),N("change",function(e){return Ixd(b,e)}),S(3," Markdown\n"),L(),F(4,Qab,2,2,"a",1));if(a&2){var c,d;I("checked",(c=W(1,3,b.checked$))!=null?c:!1)("disabled",(d=W(2,5,b.disabled$))!=null?d:!1);B(4);G(b.mdHelpLink?4:-1)}},dependencies:[ZA,XA,VA,PK,OK,wI,hK,iz,MA,py],encapsulation:2,changeDetection:0});var ZS=function(){var a=this;this.errorHandler=q(ZM);this.eventsForIssueFridge=q(vO);this.issueFullFridge=q(RO);this.issueCommentsService=q(dR);this.issueInteractionsTracking=q(pR);this.butterBar=q(JM);this.editIssueService=q(tR);this.formattedCommentsForIssueFridge=q(xO);this.rawComment$=new rf;this.issueId="";this.commentNumber=0;this.rawComment="";var b=0;this.rawComment$.pipe(A(function(c){return{comment:c,id:b+=1}}),kf(800),ie(function(c){return a.doSave(c.comment,c.id)}),te(function(c){return c===
b})).subscribe(function(){Jxd(a)})};ZS.prototype.ngOnDestroy=function(){this.rawComment$.complete()};ZS.prototype.initialize=function(a,b){this.issueId=a;this.commentNumber=b};ZS.prototype.pending=function(){var a,b;return(b=(a=this.savingState)==null?void 0:a.get("commentEdit"))!=null?b:!1};
ZS.prototype.doSave=function(a,b){var c=this,d,e,f;return y(function(g){switch(g.nextAddress){case 1:return Vd(g,2),z(g,c.issueCommentsService.update(c.issueId,(d=c.commentNumber)!=null?d:0,a,"MARKDOWN",""),4);case 4:bk(g,3);break;case 2:e=Zd(g),aN(c.errorHandler,e),(f=c.savingState)==null||rR(f,"commentEdit");case 3:return g.return(b)}})};
var Jxd=function(a){fs(a.butterBar,"Comment edit successful.",4E3);a.eventsForIssueFridge.manualUpdate(a.issueId,function(c){c.events=lWa(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||rR(b,"commentEdit")};ZS.\u0275fac=function(a){return new (a||ZS)};
ZS.\u0275prov=Cc({token:ZS,factory:ZS.\u0275fac});var $S=function(){var a=q(VP);LO.call(this);var b=this;this.activeSession=q(Zu);this.appEvents=q(DN);this.markdownCheckboxService=q(ZS);this.init=new KO;this.canEditComment=!1;this.formattedComment=null;this.FormattingMode=fo;this.activeSession.isInternalSession()&&a.commentDisplayOverride$.pipe(Af(this.destroyed$)).subscribe(function(c){b.formattingModeOverride=c})};Z($S,LO);$S.\u0275dir=LO.\u0275dir;
$S.prototype.ngOnInit=function(){var a;this.markdownCheckboxService.initialize(this.issueId,(a=this.note.commentNumber)!=null?a:0)};
$S.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)};
$S.prototype.ngAfterViewInit=function(){this.appEvents.commentRendered.next({issueId:this.issueId,commentNumber:this.note.commentNumber});this.init.next(this)};$S.\u0275fac=function(a){return new (a||$S)};
$S.\u0275cmp=C({type:$S,selectors:[["b-note-container"]],inputs:{note:"note",issueAccessLevel:"issueAccessLevel",formattingMode:"formattingMode",issueId:"issueId",canEditComment:"canEditComment"},outputs:{init:"init"},features:[Ig([ZS]),Ff,Gx],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&&(K(0,"div",0)(1,"div",1),F(2,Rab,1,2,"b-formatted-comment-presenter",2)(3,Sab,1,5,"b-live-preview",3),L()());if(a&2){B(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;G(a?2:3)}},dependencies:[eS,fS],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 aT=function(){};aT.\u0275fac=function(a){return new (a||aT)};aT.\u0275mod=$e({type:aT});aT.\u0275inj=Dc({imports:[FN,RR,AK,SR,TR]});var bT=function(){};bT.\u0275fac=function(a){return new (a||bT)};bT.\u0275mod=$e({type:bT});bT.\u0275inj=Dc({imports:[FN,AK,aT,UR]});var is=function(a,b){this.char=a;this.modifiers=b};var Kxd={category:"Edit Issue Page",keys:[js("r")],displayAs:"Shift+r",description:"Refresh"},Lxd={category:"Issue List",keys:["u",js("r")],displayAs:"u / Shift+r",description:"Refresh search results"},ns={ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE:{category:"Edit Issue Page",keys:[js("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_INACTIVE:{category:"Issue Status Picker",keys:["s"],displayAs:"t - s",description:'Change issue status to "Inactive"'},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:Kxd,REFRESH_ISSUE_LIST:Lxd,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"}};/*

 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(J,O,R){J.addEventListener?J.addEventListener(O,R,!1):J.attachEvent("on"+O,R)}function e(J){if("keypress"==J.type){var O=String.fromCharCode(J.which);J.shiftKey||(O=O.toLowerCase());return O}return r[J.which]?r[J.which]:w[J.which]?w[J.which]:String.fromCharCode(J.which).toLowerCase()}function f(J){return"shift"==J||"ctrl"==J||"alt"==J||"meta"==J}function g(J,O){var R,V=[];"+"===J?J=["+"]:(J=J.replace(/\+{2}/g,"+plus"),J=J.split("+"));for(R=0;R<J.length;++R){var ba=J[R];
D[ba]&&(ba=D[ba]);O&&"keypress"!=O&&x[ba]&&(ba=x[ba],V.push("shift"));f(ba)&&V.push(ba)}J=ba;R=O;if(!R){if(!H){H={};for(var pa in r)95<pa&&112>pa||r.hasOwnProperty(pa)&&(H[r[pa]]=pa)}R=H[J]?"keydown":"keypress"}"keypress"==R&&V.length&&(R="keydown");return{key:ba,modifiers:V,action:R}}function k(J,O){return null===J||J===b?!1:J===O?!0:k(J.parentNode,O)}function m(J){function O(ab){ab=ab||{};var rb=!1,ac;for(ac in Da)ab[ac]?rb=!0:Da[ac]=0;rb||(Sa=!1)}function R(ab,rb,ac,pc,kc,vc){var tb,Qb,ib=[],bc=
ac.type;if(!ma._callbacks[ab])return[];"keyup"==bc&&f(ab)&&(rb=[ab]);for(tb=0;tb<ma._callbacks[ab].length;++tb)if(Qb=ma._callbacks[ab][tb],(pc||!Qb.seq||Da[Qb.seq]==Qb.level)&&bc==Qb.action){var xc;(xc="keypress"==bc&&!ac.metaKey&&!ac.ctrlKey)||(xc=Qb.modifiers,xc=rb.sort().join(",")===xc.sort().join(","));xc&&(xc=pc&&Qb.seq==pc&&Qb.level==vc,(!pc&&Qb.combo==kc||xc)&&ma._callbacks[ab].splice(tb,1),ib.push(Qb))}return ib}function V(ab,rb,ac,pc){ma.stopCallback(rb,rb.target||rb.srcElement,ac,pc)||!1!==
ab(rb,ac)||(rb.preventDefault?rb.preventDefault():rb.returnValue=!1,rb.stopPropagation?rb.stopPropagation():rb.cancelBubble=!0)}function ba(ab){"number"!==typeof ab.which&&(ab.which=ab.keyCode);var rb=e(ab);if(rb)if("keyup"==ab.type&&va===rb)va=!1;else{var ac=ma,pc=ac.handleKey,kc=[];ab.shiftKey&&kc.push("shift");ab.altKey&&kc.push("alt");ab.ctrlKey&&kc.push("ctrl");ab.metaKey&&kc.push("meta");pc.call(ac,rb,kc,ab)}}function pa(ab,rb,ac,pc){function kc(ib){return function(){Sa=ib;++Da[ab];clearTimeout(ja);
ja=setTimeout(O,1E3)}}function vc(ib){V(ac,ib,ab);"keyup"!==pc&&(va=e(ib));setTimeout(O,10)}for(var tb=Da[ab]=0;tb<rb.length;++tb){var Qb=tb+1===rb.length?vc:kc(pc||g(rb[tb+1]).action);ua(rb[tb],Qb,pc,ab,tb)}}function ua(ab,rb,ac,pc,kc){ma._directMap[ab+":"+ac]=rb;ab=ab.replace(/\s+/g," ");var vc=ab.split(" ");1<vc.length?pa(ab,vc,rb,ac):(ac=g(ab,ac),ma._callbacks[ac.key]=ma._callbacks[ac.key]||[],R(ac.key,ac.modifiers,{type:ac.action},pc,ab,kc),ma._callbacks[ac.key][pc?"unshift":"push"]({callback:rb,
modifiers:ac.modifiers,action:ac.action,seq:pc,level:kc,combo:ab}))}var ma=this;J=J||b;if(!(ma instanceof m))return new m(J);ma.target=J;ma._callbacks={};ma._directMap={};var Da={},ja,va=!1,ya=!1,Sa=!1;ma._handleKey=function(ab,rb,ac){var pc=R(ab,rb,ac),kc;rb={};var vc=0,tb=!1;for(kc=0;kc<pc.length;++kc)pc[kc].seq&&(vc=Math.max(vc,pc[kc].level));for(kc=0;kc<pc.length;++kc)pc[kc].seq?pc[kc].level==vc&&(tb=!0,rb[pc[kc].seq]=1,V(pc[kc].callback,ac,pc[kc].combo,pc[kc].seq)):tb||V(pc[kc].callback,ac,pc[kc].combo);
pc="keypress"==ac.type&&ya;ac.type!=Sa||f(ab)||pc||O(rb);ya=tb&&"keydown"==ac.type};ma._bindMultiple=function(ab,rb,ac){for(var pc=0;pc<ab.length;++pc)ua(ab[pc],rb,ac)};d(J,"keypress",ba);d(J,"keydown",ba);d(J,"keyup",ba)}if(a){var r={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"},w={106:"*",107:"+",109:"-",110:".",
111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},x={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},D={option:"alt",command:"meta","return":"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},H;for(c=1;20>c;++c)r[111+c]="f"+c;for(c=0;9>=c;++c)r[c+96]=c;m.prototype.bind=function(J,O,R){J=J instanceof Array?
J:[J];this._bindMultiple.call(this,J,O,R);return this};m.prototype.unbind=function(J,O){return this.bind.call(this,J,function(){},O)};m.prototype.trigger=function(J,O){if(this._directMap[J+":"+O])this._directMap[J+":"+O]({},J);return this};m.prototype.reset=function(){this._callbacks={};this._directMap={};return this};m.prototype.stopCallback=function(J,O){return-1<(" "+O.className+" ").indexOf(" mousetrap ")||k(O,this.target)?!1:"INPUT"==O.tagName||"SELECT"==O.tagName||"TEXTAREA"==O.tagName||O.isContentEditable};
m.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)};m.addKeycodes=function(J){for(var O in J)J.hasOwnProperty(O)&&(r[O]=J[O]);H=null};m.init=function(){var J=m(b),O;for(O in J)"_"!==O.charAt(0)&&(m[O]=function(R){return function(){return J[R].apply(J,arguments)}}(O))};m.init();a.Mousetrap=m;"undefined"!==typeof module&&module.exports&&(module.exports=m);"function"===typeof define&&define.amd&&define(function(){return m})}})("undefined"!==typeof window?window:null,"undefined"!==
typeof window?document:null);/*

 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 Mxd=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||""};
da.Object.defineProperties(Mxd.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 Nxd=new bd("HotkeyOptions");var cT=function(a){this.options=a;this.hotkeys=[];this.pausedHotkeys=[];this.cheatSheetToggle=new rf;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 Mxd(this.options.cheatSheetHotkey||"?",function(){this.cheatSheetToggle.next()}.bind(this),[],this.options.cheatSheetDescription||
"Show / hide this help menu"));this.options.cheatSheetCloseEsc&&this.add(new Mxd("esc",function(){this.cheatSheetToggle.next(!1)}.bind(this),["HOTKEYS-CHEATSHEET"],this.options.cheatSheetCloseEscDescription||"Hide this help menu"))};h=cT.prototype;
h.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(g,k){var m=!0;if(g){var r=g.target,w=r.nodeName.toUpperCase();(" "+r.className+" ").indexOf(" mousetrap ")>-1?m=!0:c.preventIn.indexOf(w)>-1&&a.allowIn.map(function(x){return x.toUpperCase()}).indexOf(w)===-1&&(m=!1)}if(m)return a.callback.apply(c,[g,k])},b);return a};
h.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};
h.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};h.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};
h.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};h.reset=function(){this.mousetrap.reset()};cT.\u0275fac=function(a){return new (a||cT)(Wc(Nxd))};cT.\u0275prov=Cc({token:cT,factory:cT.\u0275fac});var Oxd=function(){};Oxd.\u0275fac=function(a){return new (a||Oxd)};Oxd.\u0275mod=$e({type:Oxd});Oxd.\u0275inj=Dc({imports:[xy]});var $ab;var Pxd="combobox grid group listbox menu menubar radiogroup row rowgroup tablist textbox toolbar tree treegrid".split(" ");var dT=function(){var a=q(OO),b=q(VP);LO.call(this);var c=this;this.rawHotkeysService=q(cT);this.ngZone=q(Tg);this.enabled=!0;this.paused=!1;this.hotkeyGroups=new Map;b.keyboardPrefs$.pipe(Af(this.destroyed$)).subscribe(function(d){d&&(c.enabled=!!d.enableAllHotkeys)});a.routeChangeStart.pipe(Af(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=Ka(Pxd,d);e=d||e.contentEditable==="true"||e.tagName==="INPUT"&&e.type==="text"||e.tagName==="SELECT"||e.tagName==="TEXTAREA"||Qxd(e)?!0:!1}return e};this.destroyed$.subscribe(function(){Rxd(c)})};Z(dT,LO);dT.\u0275dir=LO.\u0275dir;dT.prototype.isEnabled=function(){return this.enabled};dT.prototype.isPaused=function(){return this.paused};
var eT=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(n(b),n(d)));Sxd(a);return function(){var f=new Set(d.map(function(m){return m.onPress})),g,k=((g=a.hotkeyGroups.get(c))!=null?g:[]).filter(function(m){return!f.has(m.onPress)});k.length?a.hotkeyGroups.set(c,k):a.hotkeyGroups.delete(c);Sxd(a)}},Rxd=function(a){var b=[].concat(n(a.rawHotkeysService.hotkeys));b=l(b);for(var c=b.next();!c.done;c=b.next())a.rawHotkeysService.remove(c.value);
a.rawHotkeysService.reset()},Sxd=function(a){Rxd(a);for(var b=l(a.hotkeyGroups.values()),c=b.next();!c.done;c=b.next()){c=Txd(a,c.value);c=l(c);for(var d=c.next(),e={};!d.done;e={binding$jscomp$9:void 0},d=c.next())e.binding$jscomp$9=d.value,d=new Mxd(Yab(e.binding$jscomp$9.key),function(f){return function(g){a.ngZone.run(function(){f.binding$jscomp$9.command()});g.stopPropagation();return!1}}(e),e.binding$jscomp$9.allowIn),a.rawHotkeysService.add(d)}},Qxd=function(a){return[].concat(n(document.getElementsByClassName("cdk-overlay-pane"))).filter(function(b){return b.style.position===
"static"}).some(function(b){return b.contains(a)})},Txd=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(),g={};!f.done;g={index$jscomp$5662:void 0},f=d.next()){var k=l(f.value);f=k.next().value;k=k.next().value;g.index$jscomp$5662=f;c.push(new Uxd(k,function(m,r){return function(){a.ngZone.run(function(){m.hotkeySpec.onPress(r.index$jscomp$5662)})}}(e,g),e.hotkeySpec.allowIn))}}Kba(c,
function(m,r){return m.strokeLength>r.strokeLength?-1:m.strokeLength<r.strokeLength?1:0});return c};dT.prototype.pause=function(){this.paused=!0};dT.prototype.unpause=function(){this.paused=!1};var Vxd=function(a){return[].concat(n(a.hotkeyGroups.entries())).map(function(b){var c=l(b);b=c.next().value;c=c.next().value;return{title:b,hotkeys:Nq(c,cbb)}})};dT.\u0275fac=function(a){return new (a||dT)};dT.\u0275prov=Cc({token:dT,factory:dT.\u0275fac,providedIn:"root"});
var Uxd=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 fT=function(){LO.apply(this,arguments);this.hotkeys=q(dT);this.tooltip=q(MA,{optional:!0});this.hotkeyEnabled=!0;this.onHotkey=new KO};Z(fT,LO);fT.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+")"}};
fT.prototype.ngOnInit=function(){var a=this;this.hotkey&&this.hotkeyEnabled&&this.subscriptions.add(eT(this.hotkeys,{title:this.hotkey.category,hotkeys:[Object.assign({},this.hotkey,{onPress:function(b){a.onHotkey.next(b)}})]}))};fT.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(fT)))(b||fT)}}();
fT.\u0275dir=af({type:fT,selectors:[["","hotkey",""]],hostVars:2,hostBindings:function(a,b){a&2&&yg("has-hotkey",b.hotkey)},inputs:{hotkey:"hotkey",hotkeyEnabled:"hotkeyEnabled",matTooltip:"matTooltip"},outputs:{onHotkey:"onHotkey"},features:[Ff,Gx]});var gT=function(){};gT.\u0275fac=function(a){return new (a||gT)};gT.\u0275mod=$e({type:gT});gT.\u0275inj=Dc({});var hT=function(){this.segments=[];this.clickMain=new KO;this.clickSegment=new KO};hT.prototype.ngOnInit=function(){};da.Object.defineProperties(hT.prototype,{showMoreButton:{configurable:!0,enumerable:!0,get:function(){return this.segments.length>0}}});hT.\u0275fac=function(a){return new (a||hT)};
hT.\u0275cmp=C({type:hT,selectors:[["b-fab-segmented"]],inputs:{label:"label",icon:"icon",segments:"segments",href:"href"},outputs:{clickMain:"clickMain",clickSegment:"clickSegment"},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&&(K(0,"span",1)(1,"a",2),N("click",function(){return b.clickMain.emit(b.label)}),M(2,"mat-icon",3),S(3),L(),F(4,gbb,6,1),L());a&2&&(B(),yg("square-right",b.showMoreButton),Jf("href",b.href||void 0,Me),B(),I("svgIcon",b.icon),B(),T(" ",b.label," "),B(),G(b.showMoreButton?4:-1))},dependencies:[ZA,XA,TA,OJ,NJ,LF,JF,OF,iz],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-button-text-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-button-text-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);--private-gmat-button-text-stateful-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-button-text-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 Wxd=function(a,b){return b.value},Xxd=function(){this.choices=[];this.value="";this.valueChange=new KO};Xxd.\u0275fac=function(a){return new (a||Xxd)};
Xxd.\u0275cmp=C({type:Xxd,selectors:[["button-toggle"]],inputs:{choices:"choices",value:"value"},outputs:{valueChange:"valueChange"},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&&Pf(0,ibb,3,5,"button",0,Wxd);a&2&&Qf(b.choices)},dependencies:[ZA,
XA,TA,hK,iz,MA],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 Yxd=[hT,Xxd],iT=function(){};iT.\u0275fac=function(a){return new (a||iT)};iT.\u0275mod=$e({type:iT});iT.\u0275inj=Dc({imports:[FN,ZA,OJ,iK,Yxd]});var jT=function(){};jT.prototype.onPressBack=function(){var a;(a=window.history)==null||a.back()};jT.\u0275fac=function(a){return new (a||jT)};
jT.\u0275cmp=C({type:jT,selectors:[["empty-toolbar"]],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&&(K(0,"section",0)(1,"button",1),N("click",function(){return b.onPressBack()}),M(2,"mat-icon",2),L()())},dependencies:[ZA,XA,VA,hK,iz,MA],styles:[".button-bar[_ngcontent-%COMP%] {\n      height: 46px;\n      box-sizing: border-box;\n    }"]});var kT=function(){LO.call(this);this.templateRef=q(hg);this.viewContainer=q(ig);this.cdr=q(Yx);this.isViewInitialized=!1;this.viewContainer.createEmbeddedView(this.templateRef)};Z(kT,LO);kT.prototype.ngAfterViewInit=function(){this.isViewInitialized=!0};
da.Object.defineProperties(kT.prototype,{refreshable:{configurable:!0,enumerable:!0,set:function(a){var b=this;a.pipe(Af(this.destroyed$)).subscribe(function(){b.isViewInitialized&&(b.viewContainer.clear(),b.viewContainer.createEmbeddedView(b.templateRef),b.cdr.detectChanges())})}}});kT.\u0275fac=function(a){return new (a||kT)};kT.\u0275dir=af({type:kT,selectors:[["","refreshable",""]],inputs:{refreshable:"refreshable"},features:[Ff]});var lT=function(){var a=this;this.cdr=q(MO,{self:!0});this.events=q(DN);this.ngZone=q(Tg);this.HOTKEYS=ns;this.lastOpenPosition=this.width=220;this.direction="ltr";this.maxWidth=700;this.widthChanged=new KO;this.widthAtDragStart=this.width;this.startDragging=function(b){a.dragStart=b;a.widthAtDragStart=a.width};this.minSnapWidth=185;this.onMousemove=function(b){if(a.isDragging)a.onDrag(b.pageX)};this.onMouseup=function(){a.dragStart=void 0;a.cdr.markForCheck()};this.broadcastWidthChange=hD(function(b){a.widthChanged.emit(b);
a.events.sidebarWidthChanged.next(b)},400);this.trackKeyboardResizing=hD(function(){ur("sidebar","resizeKeyboard")},2E3)};lT.prototype.ngOnInit=function(){var a=this;this.ngZone.runOutsideAngular(function(){document.addEventListener("mousemove",a.onMousemove)});document.addEventListener("mouseup",this.onMouseup,!0)};lT.prototype.ngOnDestroy=function(){document.removeEventListener("mousemove",this.onMousemove);document.removeEventListener("mouseup",this.onMouseup,!0)};
lT.prototype.onDrag=function(a){this.setWidth(this.widthAtDragStart+(a-(this.dragStart||0))*(this.isLTR?1:-1));this.cdr.markForCheck()};var kbb=function(a,b){var c=a.width+b;c<a.minSnapWidth&&(c=b<0?0:a.minSnapWidth);a.setWidth(c);a.trackKeyboardResizing()};lT.prototype.toggle=function(){this.setWidth(this.isClosed?this.lastOpenPosition:0)};
lT.prototype.setWidth=function(a){var b=this.minSnapWidth,c=this.maxWidth;a=a<90?20: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.markForCheck()};
da.Object.defineProperties(lT.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}}});lT.\u0275fac=function(a){return new (a||lT)};
lT.\u0275cmp=C({type:lT,selectors:[["b-resizable-sidebar"]],hostVars:2,hostBindings:function(a,b){a&2&&zg(b.direction)},inputs:{minWidth:"minWidth",direction:"direction",size:"size",maxWidth:"maxWidth"},outputs:{widthChanged:"widthChanged"},features:[Ig([MO])],ngContentSelectors:["*"],decls:5,vars:11,consts:[["cdkScrollable","",1,"inner"],[1,"content"],["type","button","mat-icon-button","","aria-label","Open Sidebar","matTooltip","Open Sidebar",1,"openSidebarButton","xs",3,"class","isClosed","hotkey"],
["tabindex","0","role","slider","aria-label","Resize side navigation bar","aria-orientation","horizontal",1,"resizeHandle",3,"hotkey"],["type","button","mat-icon-button","","aria-label","Open Sidebar","matTooltip","Open Sidebar",1,"openSidebarButton","xs",3,"click","onHotkey","hotkey"],[3,"svgIcon"],["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&&(fg(),K(0,"div",0)(1,"div",1),gg(2),L(),F(3,jbb,2,6,"button",2)(4,lbb,1,3,"div",3),L());a&2&&(zg(b.direction),xg("width",b.width+"px"),yg("isDragging",b.isDragging)("isClosed",b.isClosed),B(),xg("width",b.lastOpenPosition+"px"),B(2),G(b.isClosed?3:4))},dependencies:[Vz,ZA,XA,VA,hK,fT,iz,MA],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}.openSidebarButton[_ngcontent-%COMP%]{z-index:2;position:absolute;bottom:0;top:0;margin:auto;transform:rotateZ(180deg)}.openSidebarButton.ltr[_ngcontent-%COMP%]{right:0}.openSidebarButton.rtl[_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 Zxd=new bd("intersectionObserverFactory",{factory:function(){return function(a,b){return new IntersectionObserver(a,b)}}}),$xd=new bd("isScrolledOnScreen",{factory:function(){return{fully:mbb,partially:nbb}}}),mT=function(){this.intersectionObserverBuilder=q(Zxd);this.isScrolledOnScreen=q($xd)};mT.prototype.getObservable=function(a,b){b=b===void 0?!1:b;return window.IntersectionObserver!=null?obb(a,this.intersectionObserverBuilder,this.isScrolledOnScreen,b):pbb(a,this.isScrolledOnScreen,b)};
var ayd=function(a,b,c){var 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(Ila(function(f,g){return{cumulativeTime:f.cumulativeTime+(f.wasPreviouslyOnScreen?Date.now()-f.lastTimestamp:0),wasPreviouslyOnScreen:g,lastTimestamp:Date.now()}},d),zf(function(f){if(e===0&&f.wasPreviouslyOnScreen)return be(void 0);var g=e-f.cumulativeTime;
return g<0?be(void 0):f.wasPreviouslyOnScreen?be(void 0).pipe(nf(g)):Ox}),A(function(){}),mf(1))};mT.\u0275fac=function(a){return new (a||mT)};mT.\u0275prov=Cc({token:mT,factory:mT.\u0275fac,providedIn:"root"});var nT=function(){};nT.prototype.onClick=function(a,b){byd(b)&&a.preventDefault()};var byd=function(a){if(window.getSelection){var b=window.getSelection();if(b&&!b.isCollapsed&&a.contains(b.focusNode))return!0}return!1};nT.\u0275fac=function(a){return new (a||nT)};nT.\u0275dir=af({type:nT,selectors:[["","selectionPreventsClick",""]],hostBindings:function(a,b){a&1&&N("click",function(c){return b.onClick(c,c.target)})}});n(Yxd);var oT=function(){};oT.\u0275fac=function(a){return new (a||oT)};oT.\u0275mod=$e({type:oT});oT.\u0275inj=Dc({imports:[FN,gT,ZA,iK,aA,lT,ZR,$R,jT,iT]});var cyd=new bd("GM2_SELECT_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var pT=function(a){this.options=a;if(a.disableGmatStyle)throw Error("eb");};pT.\u0275fac=function(a){return new (a||pT)(Ve(cyd))};pT.\u0275dir=af({type:pT,selectors:[["mat-select"]],hostAttrs:[1,"gmat-mdc-select"],standalone:!1});var dyd={provide:l4c,deps:[[new ECc,new FCc,new DCc(l4c)],[new ECc,new DCc(cyd)]],useFactory:function(a,b){return!b||b.disableGmatStyle?a||{}:a?Object.assign({},a,{overlayPanelClass:Rh(a.overlayPanelClass).concat("gmat-mdc-select")}):{overlayPanelClass:"gmat-mdc-select"}}},qT=function(){};qT.\u0275fac=function(a){return new (a||qT)};qT.\u0275mod=$e({type:qT});qT.\u0275inj=Dc({providers:[dyd],imports:[jI,DB]});var eyd=new bd("GM2_SNACK_BAR_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var rT=function(){LD.apply(this,arguments);this.additionalClasses=["gmat-mdc-snack-bar"];this.gmatOptions=q(eyd)};Z(rT,LD);rT.prototype.openFromComponent=function(a,b){a=LD.prototype.openFromComponent.call(this,a,b);b=a.containerInstance._elementRef.nativeElement.closest(".cdk-overlay-pane");if(this.gmatOptions.disableGmatStyle)throw Error("eb");b==null||b.classList.add.apply(b.classList,n(this.additionalClasses));return a};
rT.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(rT)))(b||rT)}}();rT.\u0275prov=Cc({token:rT,factory:rT.\u0275fac});var sT=function(){};sT.\u0275fac=function(a){return new (a||sT)};sT.\u0275mod=$e({type:sT});sT.\u0275inj=Dc({providers:[{provide:LD,useClass:rT}],imports:[MD]});var tT=function(){};tT.\u0275fac=function(a){return new (a||tT)};tT.\u0275mod=$e({type:tT});tT.\u0275inj=Dc({imports:[Dz,PK,sT,FN,uA,oT,qT,cL,ZA,iK,aT,bT,AK,YS,xQ,zQ,Lqd,cQ,VR]});var fyd=function(a,b){return[a,b]},gyd=[[["b-callout-body"]],[["b-callout-actions"]]],uT=function(){this.messageType="info";this.format="default"};uT.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"}};uT.\u0275fac=function(a){return new (a||uT)};
uT.\u0275cmp=C({type:uT,selectors:[["b-callout"]],hostVars:5,hostBindings:function(a,b){a&2&&zg(Lg(2,fyd,b.messageType,b.format).join(" "))},inputs:{messageType:"messageType",format:"format",iconOverride:"iconOverride"},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&&(fg(gyd),K(0,"div",0)(1,"div",1),M(2,"mat-icon",2),gg(3),L(),K(4,"div",3),gg(5,1),L()());a&2&&(B(2),
I("svgIcon",b.getIconName()))},dependencies:[iz],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-button-text-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-button-text-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-button-text-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-button-text-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 vT=function(){};vT.\u0275fac=function(a){return new (a||vT)};vT.\u0275dir=af({type:vT,selectors:[["b-callout-body"],["b-callout-actions"]]});var wT=function(){};wT.\u0275fac=function(a){return new (a||wT)};wT.\u0275mod=$e({type:wT});wT.\u0275inj=Dc({imports:[FN,uT]});var xT=function(){};xT.\u0275fac=function(a){return new (a||xT)};xT.\u0275mod=$e({type:xT});xT.\u0275inj=Dc({imports:[FN,hS]});var hyd=[SS],iyd=function(){};iyd.\u0275fac=function(a){return new (a||iyd)};iyd.\u0275mod=$e({type:iyd});iyd.\u0275inj=Dc({imports:[FN,wT,tT,mC,ZA,pB,xT,pC,PF,kS,mS,RS,NA,hyd]});var yT={},jyd=(yT.assignee="single_value",yT.attachments="collection",yT.blockedByIssueId="collection",yT.blockingIssueId="collection",yT.ccs="collection",yT.changelists="collection",yT.collaborators="collection",yT.comment="single_value",yT.componentId="single_value",yT.customField="any_value",yT.deletionReason="single_value",yT.duplicateOfIssueId="single_value",yT.effortEstimate="single_value",yT.foundInVersion="collection",yT.gerritChanges="collection",yT.hotlists="collection",yT.inProd="single_value",
yT.isArchived="single_value",yT.isDeleted="single_value",yT.parentId="collection",yT.priority="single_value",yT.readState="single_value",yT.reporter="single_value",yT.severity="single_value",yT.sloEndTime="single_value",yT.sloSnoozeType="single_value",yT.sloStartTime="single_value",yT.staffing="single_value",yT.status="single_value",yT.targetedToVersion="collection",yT.title="single_value",yT.type="single_value",yT.verifiedInVersion="collection",yT.verifier="single_value",yT),Abb=new Set(Object.entries(jyd).filter(function(a){a=
l(a);a.next();return a.next().value==="collection"}).map(function(a){return l(a).next().value})),zbb=new Set("componentId priority reporter severity status title type".split(" "));var Bbb=new Set(["INACTIVE","NOT_REPRODUCIBLE","INFEASIBLE","OBSOLETE","INTENDED_BEHAVIOR"]),zT={},sbb=(zT.TYPE_UNSPECIFIED=new Set([]),zT.ISSUE_DEDUPLICATION=new Set([]),zT.HOTLIST=new Set([]),zT.ISSUE_DEDUPLICATION_BATCH=new Set([]),zT.NEEDS_INFO=new Set(["comment"]),zT.COMPONENT_ROUTING=new Set("componentId priority severity type assignee hotlists".split(" ")),zT.ANY_ISSUE_EDIT=new Set("componentId priority severity type assignee hotlists comment".split(" ")),zT),AT={},tbb=(AT.TYPE_UNSPECIFIED=
new Set([]),AT.ISSUE_DEDUPLICATION=new Set([]),AT.HOTLIST=new Set([]),AT.ISSUE_DEDUPLICATION_BATCH=new Set(["duplicateOfIssueId"]),AT.NEEDS_INFO=new Set(["comment"]),AT.COMPONENT_ROUTING=new Set("componentId priority severity type assignee hotlists ccs".split(" ")),AT.ANY_ISSUE_EDIT=new Set("comment componentId priority severity type assignee hotlists ccs status customField".split(" ")),AT);var BT=function(){this.userPreferencesManager=q(VP);this.recommendation=void 0;this.isParentRowActive=!1;this.onClick=new KO;this.density$=this.userPreferencesManager.preferences$.pipe(A(function(a){var b;return(b=a.themePreferences)==null?void 0:b.density}));this.useSmallIcon$=this.density$.pipe(A(function(a){return a!=="COMFORTABLE"}))};BT.prototype.handleClick=function(){this.onClick.emit()};
BT.prototype.handleKeydown=function(a){if(a.key==="Enter"||a.key===" ")a.preventDefault(),a.stopPropagation(),this.onClick.emit()};BT.prototype.getRecommendationText=function(){return this.recommendation?Cbb(this.recommendation,!1):""};BT.\u0275fac=function(a){return new (a||BT)};
BT.\u0275cmp=C({type:BT,selectors:[["recommendation-chip"]],inputs:{recommendation:"recommendation",isParentRowActive:"isParentRowActive"},outputs:{onClick:"onClick"},decls:1,vars:1,consts:[["type","button",1,"recommendation-chip",3,"small","aria-label","hovered"],["type","button",1,"recommendation-chip",3,"click","keydown","aria-label"],["svgIcon","devai",1,"icon-s"],[1,"recommendation-text"]],template:function(a,b){a&1&&F(0,Dbb,5,8,"button",0);a&2&&G(b.recommendation?0:-1)},dependencies:[iz,py],
styles:[".dark-mode   [_nghost-%COMP%]    , .light-mode   [_nghost-%COMP%]    , :root   [_nghost-%COMP%]    {--recommendation-chip-bg:#fff}.dark-mode   [_nghost-%COMP%]    {--recommendation-chip-bg:#28292c}.recommendation-chip[_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;padding:2px 8px;border-radius:16px;border:1px solid;border-color:#dadce0;border-color:var(--c300);color:#5f6368;color:var(--c700);font-size:.8125rem;font-weight:500;line-height:20px;white-space:nowrap;background-color:var(--recommendation-chip-bg)}.recommendation-chip.small[_ngcontent-%COMP%]{padding:0 8px}.recommendation-chip[_ngcontent-%COMP%]   .recommendation-text[_ngcontent-%COMP%]{display:none}.recommendation-chip.hovered[_ngcontent-%COMP%], .recommendation-chip[_ngcontent-%COMP%]:focus, .recommendation-chip[_ngcontent-%COMP%]:hover{cursor:pointer}.recommendation-chip.hovered[_ngcontent-%COMP%]   .recommendation-text[_ngcontent-%COMP%], .recommendation-chip[_ngcontent-%COMP%]:focus   .recommendation-text[_ngcontent-%COMP%], .recommendation-chip[_ngcontent-%COMP%]:hover   .recommendation-text[_ngcontent-%COMP%]{display:inline;padding-left:4px}"],
changeDetection:0});var kyd=function(){};kyd.\u0275fac=function(a){return new (a||kyd)};kyd.\u0275mod=$e({type:kyd});kyd.\u0275inj=Dc({imports:[FN,kz,BT]});var Fbb=function(a,b){return b.key},CT=function(){this.phase=void 0;this.actions=[$rd,Trd,Vrd,asd,Zrd];this.onSelect=new KO},Hbb=function(a){var b=P();return b.phase==="NEW"&&a===$rd?[Srd]:b.phase==="CONFIRMED"&&a===Trd?[Urd]:b.phase==="IN_PROGRESS"&&a===Vrd?[Wrd,Xrd,Yrd]:[]};CT.\u0275fac=function(a){return new (a||CT)};
CT.\u0275cmp=C({type:CT,selectors:[["triage-action-selector"]],inputs:{phase:"phase"},outputs:{onSelect:"onSelect"},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&&(K(0,"button",1),S(1,"Change triage phase"),L(),K(2,"mat-menu",null,0),Pf(4,
Ibb,4,3,null,null,Fbb),L());a&2&&(a=Q(3),I("matMenuTriggerFor",a),B(4),Qf(b.actions))},dependencies:[ZA,XA,TA,OJ,NJ,LF,JF,OF],styles:["button.subAction[_ngcontent-%COMP%]{padding-left:32px}"],changeDetection:0});var Jbb=[["year",31536E3],["month",2592E3],["week",604800],["day",86400],["hour",3600],["minute",60],["second",1]],Kbb={year:"yr",month:"mo",week:"w",day:"d",hour:"h",minute:"m",second:"s"};var lyd=[{name:"local",id:""},{name:"UTC",id:"UTC"},{name:"MTV",id:"America/Los_Angeles"}],myd=Symbol("Oe"),nyd=Symbol("Oe"),DT=function(){var a=this;this.dateFormatter=q(gR);this.paddingLeftPx=5;this.timestampMs$=new vf(1);this.timestampIso$=this.timestampMs$.pipe(A(function(b){return b?(new Date(b)).toISOString():""}));this.timestampDate$=this.timestampMs$.pipe(A(function(b){if(b!==void 0)return new Date(b)}));this[myd]=this.timestampDate$.pipe(zf(function(b){if(b===void 0)return be("");var c=b.getTime()/
1E3;switch(a.mode){case "date":return a.dateFormatter.formatUserCalendar(b);case "time":return utd(a.dateFormatter,b);case "datetime":return vtd(a.dateFormatter,b);case "relativepast":return b=ps(c),be(b);case "relativepastshort":var d;return be((d=ps(c,!0))!=null?d:"");case "relativepasttiny":var e;return be((e=ps(c,!0,1))!=null?e:"");default:return sb(a.mode)}}));this[nyd]=this.timestampDate$.pipe(zf(function(b){return b===void 0?be(""):he(lyd.map(function(c){return wtd(a.dateFormatter,b,c.id).pipe(A(function(d){return{formatted:d,
tzName:c.name}}))})).pipe(oyd)}));this.vars$=he([this[myd],this[nyd]]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return a.mode==="date"?{formatted:b,title:void 0}:{formatted:b,title:c}}))};DT.prototype.ngOnInit=function(){};
da.Object.defineProperties(DT.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())}}});DT.\u0275fac=function(a){return new (a||DT)};
DT.\u0275cmp=C({type:DT,selectors:[["b-formatted-date-time"]],inputs:{timestamp:"timestamp",date:"date",mode:"mode",paddingLeftPx:"paddingLeftPx"},decls:2,vars:3,consts:[[3,"style"]],template:function(a,b){a&1&&(F(0,Lbb,3,8,"time",0),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.vars$))?0:-1,c)}},dependencies:[py],encapsulation:2,changeDetection:0});
var oyd=Rd(A(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(),function(e){return e.formatted+" ("+e.tzNames.join("/")+")"}).join("\n")}));var pyd=function(a,b,c,d){sz.call(this,a,b,c,d,!0);var e=this;this.escapeSubject$=new rf;this.startAnchorListener=function(){e.escapeSubject$.next(0);return!0};this.endAnchorListener=function(){e.escapeSubject$.next(1);return!0};rz(this)};Z(pyd,sz);var ET=function(){this.checker=q(pz);this.ngZone=q(Tg);this.document=q(Yh)};ET.prototype.create=function(a){return new pyd(a,this.checker,this.ngZone,this.document)};ET.\u0275fac=function(a){return new (a||ET)};
ET.\u0275prov=Cc({token:ET,factory:ET.\u0275fac,providedIn:"root"});var qyd=["content"],FT=function(){LO.apply(this,arguments);this.focusEscapeNotifierFactory=q(ET);this.trapFocus=this.required=!1;this.renderPanel=this.noneButtonEnabled=this.todayButtonEnabled=!0;this.includeTimePicker=!1;this.dateChange=new KO;this.dateTimeChange=new KO;this.cancelClicked=new KO;this.saveClicked=new KO;this.dateSelectionChange=new KO;this.focusEscaped=new KO;this.timeFormControl=new VB("",vi)};Z(FT,LO);FT.\u0275dir=LO.\u0275dir;
FT.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){Rbb(a)});this.focusEscapeNotifier=this.focusEscapeNotifierFactory.create(this.content.nativeElement);this.focusEscapeNotifier.escapeSubject$.pipe(Af(this.destroyed$)).subscribe(function(b){if(a.trapFocus)if(b===0){var c;(c=a.focusEscapeNotifier)==null||yGc(c)}else{var d;(d=a.focusEscapeNotifier)==null||qz(d)}else a.focusEscaped.emit(b)});Qbb(this,this.dateTime)};
var Pbb=function(a,b){a.date=b;a.dateTime=HSa(b,a.timeFormControl.value);a.dateSelectionChange.emit(b)};FT.prototype.saveChanges=function(){this.includeTimePicker&&(this.dateTime=HSa(this.dateTime,this.timeFormControl.value),this.dateTimeChange.emit(this.dateTime));this.dateChange.emit(this.date)};var Rbb=function(a){var b=a.includeTimePicker?a.dateTime:a.date;if(b=b instanceof Dm?b:VVa(b))a.calendar.activeDate=b;a.calendar._getCurrentViewComponent()._focusActiveCell(!1)};
FT.prototype.showPicker=function(a){a instanceof HTMLInputElement&&a.showPicker()};var Qbb=function(a,b){var c=new yl("HH:mm");a.timeFormControl.setValue(a.includeTimePicker&&b?c.format(b):"")};FT.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(FT)))(b||FT)}}();
FT.\u0275cmp=C({type:FT,selectors:[["b-date-time-picker-content"]],viewQuery:function(a,b){a&1&&(kg(oQ,7),kg(qyd,7));if(a&2){var c;og(c=pg())&&(b.calendar=c.first);og(c=pg())&&(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"},features:[Ff],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=t();K(0,"div",null,0)(2,"div",1);F(3,Nbb,1,1,"ng-container");L();K(4,"mat-calendar",2);U(5,"toDateTime");U(6,"toDateTime");N("selectedChange",function(d){u(c);return v(Pbb(b,d))});L();F(7,Obb,2,1,"mat-form-field",3);
K(8,"div",4);F(9,Ubb,4,2,"div",1);K(10,"div",5)(11,"button",6);N("click",function(){u(c);return v(b.cancelClicked.emit())});S(12,"Cancel");L();K(13,"button",7);N("click",function(){u(c);b.saveChanges();return v(b.saveClicked.emit())});S(14,"Save");L()()()()}a&2&&(yg("container",b.renderPanel),B(3),G(b.calendarButtonRow?3:-1),B(),I("selected",b.includeTimePicker?b.dateTime:W(5,7,b.date))("startAt",b.includeTimePicker?b.dateTime:W(6,9,b.date)),B(3),G(b.includeTimePicker?7:-1),B(2),G(b.todayButtonEnabled||
b.noneButtonEnabled?9:-1))},dependencies:function(){return[mC,xi,PB,hC,ZA,XA,TA,oQ,XJ,BB,oC,oy,nC,bC,ryd]},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 ryd=function(){};ryd.prototype.transform=function(a){var b;return(b=VVa(a))!=null?b:void 0};ryd.\u0275fac=function(a){return new (a||ryd)};ryd.\u0275pipe=cf({name:"toDateTime",type:ryd,pure:!0});var syd=[{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"}],GT=function(){LO.call(this);var a=this;this.overlay=q(rA);this.element=q(Gd);this.hostEl=q(Gd);this.openOnEnter=this.openOnClick=!0;this.includeTimePicker=this.required=this.focusTrapHost=!1;this.selectedChange=new KO;this.selectedDateTimeChange=
new KO;this.dateSelectionChange=new KO;this.includeTimePickerChange=new KO;this.onClose=new KO;this.opened=!1;this.destroyed$.subscribe(function(){var b;(b=a.overlayRef)==null||b.dispose()})};Z(GT,LO);h=GT.prototype;h.onHostEnter=function(a){this.openOnEnter&&this.open();a.preventDefault();a.stopPropagation()};h.onClickHost=function(a){this.openOnClick&&this.open();a.preventDefault();a.stopPropagation()};
h.open=function(){this.opened||(this.overlayRef=this.createOverlay(),this.attach(),this.opened=!0)};h.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()}};h.onHostTab=function(a){this.focusTrapHost&&this.pickerContent&&this.pickerContent.focusEscapeNotifier&&(qz(this.pickerContent.focusEscapeNotifier),a.preventDefault())};
h.onHostShiftTab=function(a){this.focusTrapHost&&this.pickerContent&&this.pickerContent.focusEscapeNotifier&&(yGc(this.pickerContent.focusEscapeNotifier),a.preventDefault())};
h.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");a.overlayElement.setAttribute("title","Date Picker");return a};
h.attach=function(){var a=this,b=new lA(FT),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()})};h.getPositionStrategy=function(){return dA(eA(fA(jA(this.overlay.position(),this.element)),8),syd)};h.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
h.connectValues=function(){var a=this;if(this.pickerContent&&this.overlayRef){var b=se(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)&&Qbb(this.pickerContent,this.selectedDateTime);this.focusTrapHost&&this.pickerContent.focusEscaped.pipe(Af(b)).subscribe(function(){setTimeout(function(){return a.element.nativeElement.focus()})});
this.pickerContent.dateChange.pipe(Af(b)).subscribe(function(c){a.selectedChange.emit(c)});this.pickerContent.dateTimeChange.pipe(Af(b)).subscribe(function(c){a.selectedDateTimeChange.emit(c)});this.pickerContent.dateSelectionChange.pipe(Af(b)).subscribe(function(c){a.dateSelectionChange.emit(c)});se(this.pickerContent.saveClicked,this.pickerContent.cancelClicked,this.overlayRef.backdropClick(),this.overlayRef.keydownEvents().pipe(te(function(c){return c.code==="Escape"}))).pipe(Af(b)).subscribe(function(){a.close()})}};
GT.\u0275fac=function(a){return new (a||GT)};
GT.\u0275dir=af({type:GT,selectors:[["","bDateTimePickerToggle",""]],hostAttrs:["aria-haspopup","true"],hostVars:1,hostBindings:function(a,b){a&1&&N("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&&Jf("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"],features:[Ff]});var tyd=["pickerToggle"],HT=function(){this.customAriaLabelledBy=this.customFormId=void 0;this.required=!1;this.valueChange=new KO};HT.\u0275fac=function(a){return new (a||HT)};
HT.\u0275cmp=C({type:HT,selectors:[["b-date-time-input"]],viewQuery:function(a,b){a&1&&kg(tyd,7);if(a&2){var c;og(c=pg())&&(b.pickerToggle=c.first)}},inputs:{customFormId:"customFormId",customAriaLabelledBy:"customAriaLabelledBy",value:"value",required:"required"},outputs:{valueChange:"valueChange"},exportAs:["bDateTimeInput"],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=t();K(0,"button",1,0);N("bDateTimePickerToggleSelectedChange",function(d){u(c);b.value=d;b.valueChange.emit(d);return v()});F(2,Vbb,1,1,"b-formatted-date-time",2)(3,Wbb,2,0,"ng-container");L()}a&2&&(I("id",b.customFormId)("bDateTimePickerToggleRequired",b.required)("bDateTimePickerToggleSelected",b.value)("bDateTimePickerToggleFocusTrapHost",
!1),Jf("aria-labelledby",b.customAriaLabelledBy),B(2),G(b.value?2:3))},dependencies:[GT,DT,ZA,XA,TA],styles:["/*# sourceMappingURL=date_time_input.css.map */"]});var uyd=["filterInput"],IT=function(){LO.apply(this,arguments);this.dateFormatter=q(TQ);this.enumChoices=[];this.onSave=new KO;this.valueMap=new Map;this.sortedValues=[];this.filterValue=null;this.currentSelectedDate=void 0};Z(IT,LO);IT.\u0275dir=LO.\u0275dir;h=IT.prototype;h.ngOnInit=function(){this.initValues()};h.ngOnChanges=function(a){a.originalValueMap&&this.initValues()};h.ngAfterViewInit=function(){var a=this,b;(b=this.trigger)==null||b.menuOpened.pipe(zf(function(){return qe(0)}),Af(this.destroyed$)).subscribe(function(){a.focusFilterBox()})};
h.showMenu=function(){this.trigger.openMenu()};h.closeMenu=function(){this.trigger.closeMenu()};h.focusFilterBox=function(){var a;(a=this.filterElement)==null||a.nativeElement.focus()};var vyd=function(a){return a.filterValue&&a.type!=="REPEATED_DATE"?a.sortedValues.filter(function(b){return a.getDisplayString(b).includes(String(a.filterValue))}):a.sortedValues};h=IT.prototype;
h.addValue=function(){var a=this.filterValue;this.filterValue=null;a&&!this.valueMap.get(a)&&(this.valueMap.set(a,!0),this.sortValues(),this.onSave.emit({valueMap:this.valueMap,valueChanged:this.valueChanged()}))};h.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()})};
h.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})};h.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);this.sortValues()};
h.sortValues=function(){var a=this;this.sortedValues=Array.from(this.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)})};var Ybb=function(a){return!!a.filterValue&&a.type!=="REPEATED_ENUM"&&a.type!=="REPEATED_DATE"};IT.prototype.getDisplayString=function(a){return this.type==="REPEATED_DATE"?this.dateFormatter.formatUserCalendar(ZSa(a)):a};IT.prototype.getLabel=function(){return this.valueChanged()?"Changed":"Unchanged"};
IT.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(IT)))(b||IT)}}();
IT.\u0275cmp=C({type:IT,selectors:[["b-bulk-repeated-field-picker"]],viewQuery:function(a,b){a&1&&(kg(OF,5),kg(uyd,5));if(a&2){var c;og(c=pg())&&(b.trigger=c.first);og(c=pg())&&(b.filterElement=c.first)}},inputs:{type:"type",originalValueMap:"originalValueMap",enumChoices:"enumChoices"},outputs:{onSave:"onSave"},features:[Ff,Gx],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&&(K(0,
"button",2)(1,"span"),S(2),L(),M(3,"b-icon",3),L(),K(4,"mat-menu",null,0),Pf(6,Xbb,3,4,"div",4,Of),M(8,"mat-divider"),K(9,"div",5),F(10,Zbb,2,3,"input",6),L(),F(11,$bb,1,0,"mat-divider"),F(12,acb,2,0,"div",7),F(13,bcb,4,1,"div"),L());a&2&&(a=Q(5),I("matMenuTriggerFor",a),B(2),Ag(b.getLabel()),B(4),Qf(vyd(b)),B(4),G(b.type!=="REPEATED_DATE"?10:-1),B(),G(Ybb(b)?11:-1),B(),G(Ybb(b)?12:-1),B(),G(b.type==="REPEATED_DATE"?13:-1))},dependencies:[HT,mC,xi,PB,WB,ZA,XA,TA,PK,OK,wI,OJ,NJ,LF,JF,OF,hS,XJ],styles:[".multi-edit-menuitem[_ngcontent-%COMP%]{padding:0 5px}.filter[_ngcontent-%COMP%]{padding:0 5px}/*# sourceMappingURL=bulk_repeated_field_picker.css.map */"]});var JT=function(){this.relayOnly=!1;this.keydown$=new rf};JT.prototype.onKeydown=function(a){this.relayOnly||this.keydown$.next(a)};da.Object.defineProperties(JT.prototype,{tabindex:{configurable:!0,enumerable:!0,get:function(){return this.relayOnly?null:"0"}}});JT.\u0275fac=function(a){return new (a||JT)};
JT.\u0275dir=af({type:JT,selectors:[["","onedevKeyEventReceiver",""]],hostVars:1,hostBindings:function(a,b){a&1&&N("keydown",function(c){return b.onKeydown(c)});a&2&&Jf("tabindex",b.tabindex)},inputs:{relayOnly:"relayOnly"},standalone:!1});var wyd=0,KT=function(a){this.keyEventReceiver=a;this.id="onedev-popup-panel-"+wyd;this.closePanel$=new vf(1);wyd++};KT.prototype.processKeydown=function(a){this.keyEventReceiver&&this.keyEventReceiver.keydown$.next(a);var b=a.code;(b==="Escape"||a.altKey&&b==="ArrowUp")&&this.closePanel$.next()};KT.\u0275fac=function(a){return new (a||KT)(Ve(JT,8))};
KT.\u0275cmp=C({type:KT,selectors:[["onedev-popup-panel"]],viewQuery:function(a,b){a&1&&kg(hg,7);if(a&2){var c;og(c=pg())&&(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&&(fg(),E(0,ccb,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 LT=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 ui;this.closed=new ui;this.isOpen=!1;this.destroyed$=new vf(1);this.closingActionsSubscription=Od.EMPTY};LT.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
LT.prototype.open=function(){var a=this;this.disabled||this.isOpen||(this.overlayRef=this.createOverlay(),this.templatePortal=new mA(this.popupPanel.templateRef,this.viewContainerRef),this.overlayRef.attach(this.templatePortal),this.closingActionsSubscription=xyd(this).pipe(Af(this.destroyed$)).subscribe(function(){a.close()}),this.trapFocus(),this.isOpen=!0,this.opened.emit())};
LT.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()}};
LT.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 xyd=function(a){var b=a.overlayRef.backdropClick(),c=a.overlayRef._detachments,d=a.popupPanel.closePanel$;return a.closeOnBackdropClick?se(b,c,d):se(c,d)};
LT.prototype.trapFocus=function(){this.overlayRef&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.hostElement),this.focusTrap.focusInitialElement())};
LT.prototype.getPositionStrategy=function(){return dA(eA(fA(jA(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"}])};LT.prototype.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
da.Object.defineProperties(LT.prototype,{onedevPopupPanelTriggerFor:{configurable:!0,enumerable:!0,get:function(){return this.popupPanel},set:function(a){this.popupPanel=a}}});LT.\u0275fac=function(a){return new (a||LT)(Ve(rA),Ve(Gd),Ve(ig),Ve(Jz),Ve(Yx))};
LT.\u0275dir=af({type:LT,selectors:[["","onedevPopupPanelTrigger",""]],hostAttrs:["aria-haspopup","true"],hostVars:3,hostBindings:function(a,b){a&2&&Jf("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 yyd=0,MT=function(a){this.changeDetectorRef=a;this.active=!1;this.id="b-list-option-"+yyd;yyd+=1};MT.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};MT.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};MT.\u0275fac=function(a){return new (a||MT)(Ve(Yx))};
MT.\u0275dir=af({type:MT,selectors:[["","onedevListOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Rf("id",b.id),yg("active",b.active))},inputs:{option:"option"},exportAs:["onedevListOption"],standalone:!1});var zyd=function(){};zyd.\u0275fac=function(a){return new (a||zyd)};zyd.\u0275mod=$e({type:zyd});zyd.\u0275inj=Dc({});var fcb=function(a){return{$implicit:a}},NT=function(a){var b=this;this.includeEmptyOption=this.disabled=!1;this.emptyOptionValue=void 0;this.showFilterBar=!1;this.options$=new Xj([]);this.filterText$=new Xj("");this.filteredOptions$=he([this.options$,this.filterText$]).pipe(A(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 ui;this.selected=new ui;this.destroyed$=
new vf(1);a&&this.handleKeydown(a.keydown$)};h=NT.prototype;h.ngOnInit=function(){};h.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};h.ngAfterViewInit=function(){this.keyManager=Mz(Lz(new Qz(this.viewOptions)))};h.ngOnChanges=function(a){a.value&&Ayd(this);a.options&&this.options$.next(this.options)};h.isSelected=function(a){return this.value===a};h.select=function(a){this.disabled||(this.isSelected(a)||this.valueChange.emit(a),this.selected.emit())};
var Ayd=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),Byd(a))}};NT.prototype.clearActiveItem=function(){this.keyManager&&this.keyManager.activeItem&&this.keyManager.setActiveItem(-1)};
NT.prototype.handleKeydown=function(a){var b=this;a.pipe(Af(this.destroyed$)).subscribe(function(c){if(!b.disabled&&b.keyManager){var d=c.code;d==="ArrowUp"||d==="ArrowDown"?(c.preventDefault(),b.keyManager.onKeydown(c),Byd(b)):d==="Home"||d==="End"?(c.preventDefault(),d==="Home"?b.keyManager._setActiveItemByIndex(0,1):OGc(b.keyManager),Byd(b)):d!=="Enter"&&d!=="Space"||!b.keyManager.activeItem||(c.preventDefault(),b.select(b.keyManager.activeItem.option))}})};
var Byd=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"})}};NT.\u0275fac=function(a){return new (a||NT)(Ve(JT,8))};
NT.\u0275cmp=C({type:NT,selectors:[["onedev-selectable-list"]],viewQuery:function(a,b){a&1&&kg(MT,5);if(a&2){var c;og(c=pg())&&(b.viewOptions=c)}},hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(a,b){a&1&&N("focus",function(){return Ayd(b)})("blur",function(){return b.clearActiveItem()});a&2&&(a=b.keyManager&&b.keyManager.activeItem?b.keyManager.activeItem.id:void 0,Jf("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:[Gx],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&&(E(0,dcb,5,0,"div",4)(1,qcb,5,2,"ng-container",5),U(2,"async"));
a&2&&(I("ngIf",b.showFilterBar),B(),I("ngIf",W(2,2,b.filteredOptions$)))},dependencies:[iy,jy,oy,MT,py],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 OT=function(){};var Cyd=["trigger"],scb=function(a){return{$implicit:a}},Dyd=0,PT=function(){this.includeEmptyOption=this.disabled=!1;this.emptyOptionValue=void 0;this.showFilterBar=!1;this.popupMaxHeight=300;this.label="";this.valueChange=new ui;this.closed=new ui;this.displayArrowIcon=!0;this.openPopupOnInit=!1;this.required=Qg.apply(null,[!1].concat(n([])));this.focused=!1;this.contentId="onedev-single-select-"+Dyd;this.onChange=function(){};this.onTouched=function(){};Dyd++};Z(PT,OT);h=PT.prototype;
h.ngOnInit=function(){};h.ngAfterViewInit=function(){this.openPopupOnInit&&(this.popupTrigger.open(),this.focused=!0)};h.writeValue=function(a){this.val=a};h.onSelectionChange=function(a){a!==this.val&&(this.onChange(a),this.value=a,this.valueChange.emit(a))};h.isActive=function(){return this.popupTrigger.isOpen||this.focused};h.contentAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.contentId};h.registerOnChange=function(a){this.onChange=a};
h.registerOnTouched=function(a){this.onTouched=a};var Eyd=function(a){var b="";a.label&&(b+=a.label+", ");a.required()&&(b+="required, ");return b};PT.prototype.setDisabledState=function(a){this.disabled=a};da.Object.defineProperties(PT.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});PT.\u0275fac=function(a){return new (a||PT)};
PT.\u0275cmp=C({type:PT,selectors:[["onedev-single-select"]],viewQuery:function(a,b){a&1&&kg(Cyd,7);if(a&2){var c;og(c=pg())&&(b.popupTrigger=c.first)}},inputs:{value:"value",options:"options",disabled:"disabled",includeEmptyOption:"includeEmptyOption",emptyOptionValue:"emptyOptionValue",showFilterBar:"showFilterBar",filterFunction:"filterFunction",popupMaxHeight:"popupMaxHeight",label:"label",labelledById:"labelledById",valueTemplate:"valueTemplate",optionTemplate:"optionTemplate",displayArrowIcon:"displayArrowIcon",
openPopupOnInit:"openPopupOnInit",required:[1,"required"]},outputs:{valueChange:"valueChange",closed:"closed"},standalone:!1,features:[Ig([{provide:KB,useExisting:Tc(function(){return PT}),multi:!0},{provide:OT,useExisting:Tc(function(){return PT}),multi:!0}]),Ff],decls:13,vars:22,consts:[["trigger","onedevPopupPanelTrigger"],["optionTemplateOrTextLabel",""],["textLabel",""],["panel","onedevPopupPanel"],["emptyValue",""],["type","button","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=t();K(0,"button",5,0);N("focus",function(){u(c);return v(b.focused=!0)})("blur",function(){u(c);return v(b.focused=!1)})("click",function(){u(c);var e=Q(1);return v(e.open())})("closed",function(){u(c);b.closed.emit();b.onTouched();return v()});K(2,"span",6);S(3);L();E(4,tcb,2,4,"ng-container",7)(5,wcb,1,2,"ng-template",null,1,Og)(7,zcb,3,2,"ng-template",
null,2,Og)(9,Acb,2,0,"svg",8);L();K(10,"onedev-popup-panel",9,3)(12,"onedev-selectable-list",10);N("valueChange",function(e){u(c);return v(b.onSelectionChange(e))})("selected",function(){u(c);var e=Q(1);return v(e.close())});L()()}if(a&2){a=Q(6);var d=Q(11);yg("active",b.isActive());I("onedevPopupPanelTriggerDisabled",b.disabled)("disabled",b.disabled)("onedevPopupPanelTriggerFor",d);Jf("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy());B(3);Ag(Eyd(b));B();I("ngIf",b.valueTemplate)("ngIfElse",
a);B(5);I("ngIf",b.displayArrowIcon);B();I("relayOnly",!0);B(2);xg("max-height",b.popupMaxHeight,"px");I("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:[jy,oy,JT,NT,KT,LT],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}.single-select-panel[_ngcontent-%COMP%]:focus{outline:0}"]});var Fyd=function(){};Fyd.\u0275fac=function(a){return new (a||Fyd)};Fyd.\u0275mod=$e({type:Fyd});Fyd.\u0275inj=Dc({imports:[xy]});var Gyd={provide:ZHc,deps:[rA],useFactory:function(a){return function(){return a.scrollStrategies.reposition({scrollThrottle:20})}}},Hyd=Oh({passive:!0}),QT=function(a,b,c,d,e,f,g,k,m,r,w,x){var D=this;this._overlay=a;this._elementRef=b;this._scrollDispatcher=c;this._viewContainerRef=d;this._ngZone=e;this._platform=f;this._ariaDescriber=g;this._focusMonitor=k;this._dir=r;this._defaultOptions=w;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 rf;this._scrollStrategy=m;this._document=x;w&&(this._showDelay=w.showDelay,this._hideDelay=w.hideDelay,w.position&&(this.position=w.position),w.positionAtOrigin&&(this.positionAtOrigin=w.positionAtOrigin),w.touchGestures&&(this.touchGestures=w.touchGestures));r.change.pipe(Af(this._destroyed)).subscribe(function(){D._overlayRef&&D._updatePosition(D._overlayRef)})};
h=QT.prototype;h.ngAfterViewInit=function(){var a=this;this._viewInitialized=!0;this._setupPointerEnterEventsIfNeeded();this._focusMonitor.monitor(this._elementRef).pipe(Af(this._destroyed)).subscribe(function(b){b?b==="keyboard"&&a._ngZone.run(function(){return a.show()}):a._ngZone.run(function(){return a.hide(0)})})};
h.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,Hyd)});this._passiveListeners.length=0;this._destroyed.next();this._destroyed.complete();Gz(this._ariaDescriber,a,this.message,"tooltip");this._focusMonitor.stopMonitoring(a)};
h.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 lA(this._tooltipComponent,this._viewContainerRef),b=this._tooltipInstance=b.attach(this._portal).instance,b._triggerElement=this._elementRef.nativeElement,b._mouseLeaveHideDelay=this._hideDelay,b.afterHidden().pipe(Af(this._destroyed)).subscribe(function(){return c._detach()}),
this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),b.show(a)};h.hide=function(a){a=a===void 0?this.hideDelay:a;var b=this._tooltipInstance;b&&(b.isVisible()?b.hide(a):(b._cancelPendingAnimations(),this._detach()))};h.toggle=function(a){this._isTooltipVisible()?this.hide():this.show(void 0,a)};h._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()};
h._createOverlay=function(a){var b=this;if(this._overlayRef){var c=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!a)&&c._origin instanceof Gd)return this._overlayRef;this._detach()}c=VGc(this._scrollDispatcher,this._elementRef);a=nHc(eA(fA(rHc(jA(this._overlay.position(),this.positionAtOrigin?a||this._elementRef:this._elementRef),"."+this._cssClassPrefix+"-tooltip"),!1),this._viewportMargin),c);a.positionChanges.pipe(Af(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(Af(this._destroyed)).subscribe(function(){return b._detach()});this._overlayRef.outsidePointerEvents().pipe(Af(this._destroyed)).subscribe(function(){var e;
return(e=b._tooltipInstance)==null?void 0:e._handleBodyInteraction()});this._overlayRef.keydownEvents().pipe(Af(this._destroyed)).subscribe(function(e){b._isTooltipVisible()&&e.keyCode===27&&!Nh(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};
h._detach=function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach();this._tooltipInstance=null};h._updatePosition=function(a){a=a.getConfig().positionStrategy;var b=this._getOrigin(),c=this._getOverlayPosition();dA(a,[this._addOffset(Object.assign({},b.main,c.main)),this._addOffset(Object.assign({},b.fallback,c.fallback))])};h._addOffset=function(a){return a};
h._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}}};
h._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}}};
h._updateTooltipMessage=function(){var a=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(mf(1),Af(this._destroyed)).subscribe(function(){a._tooltipInstance&&a._overlayRef.updatePosition()}))};h._setTooltipClass=function(a){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=a,this._tooltipInstance._markForCheck())};
h._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}};
h._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}};
h._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))};
h._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,n(b))}};h._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,Hyd)})};h._platformSupportsMouseEvents=function(){return!this._platform.IOS&&!this._platform.ANDROID};
h._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()}};
h._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"}};
da.Object.defineProperties(QT.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=Sh(a);this._detach();this._overlayRef=null}},disabled:{configurable:!0,
enumerable:!0,get:function(){return this._disabled},set:function(a){(this._disabled=Sh(a))?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},showDelay:{configurable:!0,enumerable:!0,get:function(){return this._showDelay},set:function(a){this._showDelay=Vh(a)}},hideDelay:{configurable:!0,enumerable:!0,get:function(){return this._hideDelay},set:function(a){this._hideDelay=Vh(a);this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}},message:{configurable:!0,enumerable:!0,
get:function(){return this._message},set:function(a){var b=this;Gz(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(){Fz(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)}}});QT.\u0275fac=function(){We()};
QT.\u0275dir=af({type:QT,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 RT=function(a,b){this._changeDetectorRef=a;this._isVisible=this._closeOnInteraction=!1;this._onHide=new rf;this._animationsDisabled=b==="NoopAnimations"};h=RT.prototype;h.show=function(a){var b=this;this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=setTimeout(function(){b._toggleVisibility(!0);b._showTimeoutId=void 0},a)};
h.hide=function(a){var b=this;this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId);this._hideTimeoutId=setTimeout(function(){b._toggleVisibility(!1);b._hideTimeoutId=void 0},a)};h.afterHidden=function(){return this._onHide};h.isVisible=function(){return this._isVisible};h.ngOnDestroy=function(){this._cancelPendingAnimations();this._onHide.complete();this._triggerElement=null};h._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)};h._markForCheck=function(){this._changeDetectorRef.markForCheck()};
h._handleMouseLeave=function(a){(a=a.relatedTarget)&&this._triggerElement.contains(a)||(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))};h._onShow=function(){};h._handleAnimationEnd=function(a){a=a.animationName;a!==this._showAnimation&&a!==this._hideAnimation||this._finalizeAnimation(a===this._showAnimation)};
h._cancelPendingAnimations=function(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId);this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=this._hideTimeoutId=void 0};h._finalizeAnimation=function(a){a?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()};
h._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))};
RT.\u0275fac=function(a){return new (a||RT)(Ve(Yx),Ve(qi,8))};RT.\u0275dir=af({type:RT,standalone:!1});var Iyd=["tooltip"],TT=function(a,b,c,d,e,f,g,k,m,r,w,x){QT.call(this,a,b,c,d,e,f,g,k,m,r,w,x);this._tooltipComponent=ST};Z(TT,QT);TT.\u0275fac=function(a){return new (a||TT)(Ve(rA),Ve(Gd),Ve(Zh),Ve(ig),Ve(Tg),Ve(bi),Ve(Ez),Ve(mz),Ve(ZHc),Ve(ii,8),Ve($Hc,8),Ve(Yh))};TT.\u0275dir=af({type:TT,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],hostVars:2,hostBindings:function(a,b){a&2&&yg("mat-tooltip-disabled",b.disabled)},exportAs:["matTooltip"],standalone:!1,features:[Ff]});
var ST=function(a,b,c){RT.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)")};Z(ST,RT);ST.\u0275dir=RT.\u0275dir;ST.\u0275fac=function(a){return new (a||ST)(Ve(Yx),Ve(wz),Ve(qi,8))};
ST.\u0275cmp=C({type:ST,selectors:[["mat-tooltip-component"]],viewQuery:function(a,b){a&1&&kg(Iyd,7);if(a&2){var c;og(c=pg())&&(b._tooltip=c.first)}},hostAttrs:["aria-hidden","true"],hostVars:3,hostBindings:function(a,b){a&1&&N("mouseleave",function(c){return b._handleMouseLeave(c)});a&2&&(Jf("mat-id-collision",null),xg("zoom",b.isVisible()?1:null))},standalone:!1,features:[Ff],decls:4,vars:6,consts:[["tooltip",""],[1,"mat-tooltip",3,"animationend","ngClass"]],template:function(a,b){if(a&1){var c=
t();K(0,"div",1,0);U(2,"async");N("animationend",function(e){u(c);return v(b._handleAnimationEnd(e))});S(3);L()}if(a&2){var d;yg("mat-tooltip-handset",(d=W(2,4,b._isHandset))==null?null:d.matches);I("ngClass",b.tooltipClass);B(3);Ag(b.message)}},dependencies:[hy,py],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 UT=function(){};UT.\u0275fac=function(a){return new (a||UT)};UT.\u0275mod=$e({type:UT});UT.\u0275inj=Dc({providers:[Gyd],imports:[Dz,xy,uA,jz,aA]});var VT=function(){};VT.\u0275fac=function(a){return new (a||VT)};VT.\u0275mod=$e({type:VT});VT.\u0275inj=Dc({imports:[xy,uA,qA,$I,UT,Dz,tK]});var Jyd=function(){};Jyd.\u0275fac=function(a){return new (a||Jyd)};Jyd.\u0275mod=$e({type:Jyd});Jyd.\u0275inj=Dc({imports:[xy,$I,zyd]});var WT=function(){};WT.\u0275fac=function(a){return new (a||WT)};WT.\u0275mod=$e({type:WT});WT.\u0275inj=Dc({imports:[xy,kz,$I,mC,Fyd,Jyd,VT]});var Icb=function(){return[]},XT=function(){this.data=q(fB);this.dialogRef=q(dB);this.customFields=[];this.originalCustomFields=new Map;this.repeatedCustomFieldsMap=new Map;this.issues=this.data;this.bulkEditOps=[]};h=XT.prototype;
h.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)),g=f.next();!g.done;g=f.next())g=g.value,b.set(Jm(g),e[g]||void 0)}f=l(b);for(g=f.next();!g.done;g=f.next()){var k=l(g.value);g=k.next().value;k=k.next().value;var m=d[g],r=e[g],w=void 0,x=(w=m)==null?void 0:w.type;if(m)if(x==="REPEATED_DATE"||x==="REPEATED_ENUM"||x==="REPEATED_NUMERIC"||x==="REPEATED_TEXT"){k=
this.repeatedCustomFieldsMap.get(g)||new Map;m=k.size===0;r=Kyd(r);w=Array.from(k.keys()).concat(r);w=l(w);for(x=w.next();!x.done;x=w.next())x=x.value,r.includes(x)?k.has(x)||k.set(x,m||null):k.set(x,null);this.repeatedCustomFieldsMap.set(g,k)}else(!r&&k!==void 0||r&&!Gm(r,k))&&b.set(g,null);else b.delete(g)}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),Hm(f))}this.customFields=Array.from(b.keys(),function(D){return a.get(D)}).filter(function(D){return D});
this.customFields=this.customFields.map(function(D){var H=b.get(D.customFieldId);D.hasMultipleValues=H===null;H?D=Object.assign(H,D):D.hasMultipleValues||D.type!=="ENUM"||(D.enumValue="");return D});c=l(this.customFields);for(d=c.next();!d.done;d=c.next())d=d.value,this.originalCustomFields.set(d.customFieldId,Hm(d))};
h.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}};h.getCustomFieldName=function(a){return a.name};h.isCustomFieldRequired=function(a){return a.required};h.getCustomFieldAllowedValues=function(a){return a.allowedValue};h.getCustomFieldType=function(a){return a.type};
var Dcb=function(a){return"bv2-custom-field-"+a.customFieldId+"-label"},Kyd=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()}):[]},Gcb=function(a){return a?Cm(a):null},Kcb=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(w){return w.customFieldValue.customFieldId!==
b});a.bulkEditOps=a.bulkEditOps.filter(function(w){return w.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$167:void 0},f=d.next()){f=f.value;var g=Ava(f.customFieldValueMap,function(w){return w.customFieldId===b});e.issueValues$jscomp$1=Kyd(g);c.valueMap.forEach(function(w){return function(x,D){x&&!w.issueValues$jscomp$1.includes(D)?w.issueValues$jscomp$1.push(D):x===!1&&(w.issueValues$jscomp$1=w.issueValues$jscomp$1.filter(function(H){return H!==
D}))}}(e));g=a.originalCustomFields.get(b).type;var k=[],m=[];g=="REPEATED_DATE"?k=e.issueValues$jscomp$1.map(function(w){return FSa(ZSa(w))}):g=="REPEATED_NUMERIC"&&(m=e.issueValues$jscomp$1.map(function(w){return Number(w)}));var r={customFieldId:b};switch(g){case "REPEATED_TEXT":r.repeatedTextValue={values:e.issueValues$jscomp$1};break;case "REPEATED_DATE":r.repeatedDateValue={values:k};break;case "REPEATED_ENUM":r.repeatedEnumValue={values:e.issueValues$jscomp$1};break;case "REPEATED_NUMERIC":r.repeatedNumericValue=
{values:m}}e.action$jscomp$167={fieldName:"customField",customFieldValue:r,actionType:Mm(r)?"REMOVE":"ADD"};g=a.bulkEditOps.findIndex(function(w){return function(x){return x.actions.some(function(D){return Gm(w.action$jscomp$167,D)})}}(e));g!==-1?a.bulkEditOps[g].issueIds.push(f.issueId):a.bulkEditOps.push({actions:[e.action$jscomp$167],issueIds:[f.issueId]})}}},Lyd=function(a){var b=a.customFields.filter(function(k){return!k.type.includes("REPEATED")&&!Gm(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=Mm(d))d.textValue="";c.push({fieldName:"customField",customFieldValue:d,actionType:e?"REMOVE":"ADD"})}if(c.length){var g=a.issues.map(function(k){return k.issueId});b=a.bulkEditOps.findIndex(function(k){return Mba(g,
k.issueIds)});b!==-1?a.bulkEditOps[b].actions=a.bulkEditOps[b].actions.concat(c):a.bulkEditOps.push({actions:c,issueIds:g})}};XT.\u0275fac=function(a){return new (a||XT)};
XT.\u0275cmp=C({type:XT,selectors:[["b-bulk-custom-field-dialog"]],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&&(K(0,"h2",0),S(1,"Update custom fields"),L(),K(2,"mat-dialog-content"),F(3,Bcb,2,0,"div"),Pf(4,Ocb,7,5,"div",1,Of),L(),K(6,"mat-dialog-actions")(7,"button",2),N("class",function(){return b.dialogRef.close()}),S(8,"Cancel"),L(),K(9,"button",3),N("click",function(){Lyd(b);b.bulkEditOps.length?b.dialogRef.close(b.bulkEditOps):b.dialogRef.close()}),S(10," Save "),L()());a&2&&(B(3),G(b.customFields.length===0?3:-1),B(),Qf(b.customFields))},dependencies:[IT,HT,mC,xi,YB,PB,WB,ZA,XA,TA,hK,mB,hB,lB,
kB,MA,WT,PT],encapsulation:2});var Myd=["button"],YT=function(){this.color="primary";this.format="hairline";this.disabled=!1;this.size="medium";this.onAction=new KO};YT.prototype.onClick=function(a){this.onAction.emit(a)};YT.prototype.focus=function(){this.nativeButton.focus()};YT.\u0275fac=function(a){return new (a||YT)};
YT.\u0275cmp=C({type:YT,selectors:[["b-button"]],viewQuery:function(a,b){a&1&&kg(Myd,5);if(a&2){var c;og(c=pg())&&(b.nativeButton=c.first)}},inputs:{color:"color",format:"format",disabled:"disabled",size:"size",bAriaLabel:"bAriaLabel",bAriaExpanded:"bAriaExpanded",tooltip:"tooltip"},outputs:{onAction:"onAction"},ngContentSelectors:["*"],decls:7,vars:1,consts:[["buttonContent",""],["button",""],["type","button","mat-stroked-button","",3,"color","disabled","class","matTooltip"],["type","button","mat-button",
"",3,"color","disabled","class","matTooltip"],["type","button","mat-flat-button","",3,"color","disabled","class","matTooltip"],["type","button","mat-icon-button","",3,"color","disabled","class","matTooltip"],["type","button","mat-stroked-button","",3,"click","color","disabled","matTooltip"],[4,"ngTemplateOutlet"],["type","button","mat-button","",3,"click","color","disabled","matTooltip"],["type","button","mat-flat-button","",3,"click","color","disabled","matTooltip"],["type","button","mat-icon-button",
"",3,"click","color","disabled","matTooltip"]],template:function(a,b){a&1&&(fg(),E(0,Pcb,1,0,"ng-template",null,0,Og),F(2,Rcb,3,8,"button",2)(3,Tcb,3,8,"button",3)(4,Vcb,3,8,"button",4)(5,Xcb,3,8,"button",5)(6,Zcb,3,8,"button",2));if(a&2){var c;B(2);G((c=b.format)==="hairline"?2:c==="flat"?3:c==="fill"?4:c==="icon"?5:6)}},dependencies:[ZA,XA,TA,VA,hK,MA,oy],encapsulation:2,changeDetection:0});var ZT=function(){};ZT.\u0275fac=function(a){return new (a||ZT)};ZT.\u0275mod=$e({type:ZT});ZT.\u0275inj=Dc({imports:[ZA,iK,FN,YT]});var Nyd=new bd("GM2_SLIDE_TOGGLE_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var $T=function(a){this.options=a;if(a.disableGmatStyle)throw Error("eb");};$T.\u0275fac=function(a){return new (a||$T)(Ve(Nyd))};$T.\u0275dir=af({type:$T,selectors:[["mat-slide-toggle"]],hostAttrs:[1,"gmat-mdc-slide-toggle"],standalone:!1});var aU=function(){};aU.\u0275fac=function(a){return new (a||aU)};aU.\u0275mod=$e({type:aU});aU.\u0275inj=Dc({providers:[{provide:$wd,useValue:{color:"primary"}}],imports:[mS]});var Oyd=0,bU=function(){this.id="b-slide-toggle-"+ ++Oyd;this.ariaLabel=this.label="";this.labelPosition="before";this.model=!1;this.tooltip=void 0;this.disabled=!1;this.modelChange=new KO};bU.\u0275fac=function(a){return new (a||bU)};
bU.\u0275cmp=C({type:bU,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"},decls:2,vars:7,consts:[[3,"change","id","disabled","checked","aria-label","matTooltip","labelPosition"]],template:function(a,b){a&1&&(K(0,"mat-slide-toggle",0),N("change",function(d){b.model=d.checked;b.modelChange.emit(d.checked)}),
S(1),L());if(a&2){I("id",b.id)("disabled",b.disabled)("checked",b.model);If("aria-label",b.ariaLabel||b.label);var c;I("matTooltip",(c=b.tooltip)!=null?c:"")("labelPosition",b.label?b.labelPosition:"after");B();Ag(b.label)}},dependencies:[aU,$T,lS,hK,MA],styles:["mat-slide-toggle[_ngcontent-%COMP%] { vertical-align: middle; }"],changeDetection:0});var cU=function(){};cU.\u0275fac=function(a){return new (a||cU)};cU.\u0275mod=$e({type:cU});cU.\u0275inj=Dc({imports:[aU,iK,bU]});var dU=function(){this.refreshMonitor=q(DO);this.coinonly=null};dU.\u0275fac=function(a){return new (a||dU)};dU.\u0275cmp=C({type:dU,selectors:[["b-availability-chip"]],inputs:{user:"user",coinonly:"coinonly"},decls:1,vars:1,consts:[[3,"refreshable"],[3,"user"]],template:function(a,b){a&1&&E(0,adb,1,1,"ng-template",0);a&2&&I("refreshable",b.refreshMonitor.getObservable())},dependencies:[kT,HR,Ovd],styles:["waldo-availability-chip[_ngcontent-%COMP%] { margin-left: 5px; }"],changeDetection:0});var eU=function(){};eU.\u0275fac=function(a){return new (a||eU)};eU.\u0275mod=$e({type:eU});eU.\u0275inj=Dc({imports:[HR,FN,oT,dU]});var Pyd=["spanElement"],fU=function(){this.modelValue="";this.maxWidth=0;this.disabled=!1;this.displayString=""};fU.prototype.ngOnChanges=function(a){if(a.modelValue||a.disabled)this.displayString=this.modelValue||""};fU.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)+"...")};
fU.prototype.getTooltip=function(){return this.displayString!==this.modelValue?this.modelValue:""};fU.\u0275fac=function(a){return new (a||fU)};
fU.\u0275cmp=C({type:fU,selectors:[["b-truncated-span"]],viewQuery:function(a,b){a&1&&kg(Pyd,5);if(a&2){var c;og(c=pg())&&(b.spanElement=c.first)}},inputs:{modelValue:"modelValue",maxWidth:"maxWidth",disabled:"disabled"},features:[Gx],decls:2,vars:2,consts:[["spanElement",""],[3,"matTooltip","innerHtml"]],template:function(a,b){a&1&&M(0,"span",1,0);a&2&&I("matTooltip",b.getTooltip())("innerHtml",b.displayString,Le)},dependencies:[hK,MA],encapsulation:2});var gU=function(){};gU.\u0275fac=function(a){return new (a||gU)};gU.\u0275mod=$e({type:gU});gU.\u0275inj=Dc({imports:[FN,iK]});var Qyd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Qyd,X);Qyd.prototype.getDisplayName=function(){return Fi(this,1)};Qyd.prototype.setDisplayName=function(a){return Gj(this,1,a)};Qyd.prototype.getPhotoUrl=function(){return Fi(this,2)};var Ryd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Ryd.messageId)};Z(Ryd,X);Ryd.messageId="b.UserProfileBatchResponse";var iU=function(){var a=this;this.userProfilesBatchApiConfig=q(hU);this.batchApiAdapter=q(vN);this.batchAdaptedGet=this.batchApiAdapter.adapt(this.userProfilesBatchApiConfig);this.memoizingUserProfileMap=new wpd(function(b){return a.batchAdaptedGet(b)},100)};iU.prototype.get=function(a){return this.memoizingUserProfileMap.get(a)};iU.\u0275fac=function(a){return new (a||iU)};iU.\u0275prov=Cc({token:iU,factory:iU.\u0275fac,providedIn:"root"});var hU=function(){this.executor=q(RM)};
hU.prototype.call=function(a){return this.executor.get({url:"action/user_profiles",options:{params:{usernames:[].concat(n(a)).join(",")}},responseConstructor:Ryd}).pipe(hf(function(){return be(new Ryd)}))};hU.prototype.split=function(a,b){return(a=sc(b,1,Qyd,Rb,fb).get(a))?{photoUrl:a.getPhotoUrl(),highResolutionPhotoUrl:Fi(a,3),displayName:a.getDisplayName()}:void 0};hU.\u0275fac=function(a){return new (a||hU)};hU.\u0275prov=Cc({token:hU,factory:hU.\u0275fac,providedIn:"root"});var odb={"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",
"boq-android-culprit-assistant@prod.google.com":"https://g3doc.corp.google.com/wireless/android/engprod/culpritassistant/g3doc/images/aca_logo.png?cl=head","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",
"chrome-devtools-blintz@prod.google.com":"https://gstatic.com/chrome/devtools/images/chrome_devtools_logo.svg","chrome-devtools-continuous-blintz@prod.google.com":"https://gstatic.com/chrome/devtools/images/chrome_devtools_logo.svg","chrome-devtools-daily-blintz@prod.google.com":"https://gstatic.com/chrome/devtools/images/chrome_devtools_logo.svg","dx-workflow-gitwatcher@prod.google.com":"https://gstatic.com/buganizer/img/v2/gerrit_logo.svg","gado-bug-service@prod.google.com":"https://g3doc.corp.google.com/hardware/gchips/productivity/g3doc/koala/images/buganizer_profile_picture.png",
"issuetracker-recommendation-automation@prod.google.com":"https://gstatic.com/buganizer/img/v2/logo_spark.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",
"octave-services-koalassistant@prod.google.com":"https://g3doc.corp.google.com/platforms/networking/orion/octave/g3doc/images/koalassistant.png?cl=head","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-camera-astro-robo-michael@prod.google.com":"https://g3doc.corp.google.com/company/teams/pixel-camera-astro/images/robo-michael.jpg?cl=head",
"pixel-modem-alcedo-issue-sync-server-dev-jobs@prod.google.com":"https://static.corp.google.com/sdlc_riemann/riemann_logo.svg","pixel-modem-alcedo-issue-sync-server@prod.google.com":"https://static.corp.google.com/sdlc_riemann/riemann_logo.svg","pixel-modem-tools-bug-traffic-control@prod.google.com":"https://static.corp.google.com/sdlc_riemann/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","supply-chain-hw-dam2-async@prod.google.com":"https://g3doc.corp.google.com/supplychain/hw/dam2/g3doc/images/beaver.png?cl=head","support-bugs-automation-jobs@prod.google.com":"https://g3doc.corp.google.com/enterprise/support/cloud/support_bugs_automation/g3doc/img/sba_logo_new.png?cl=head"},Syd={"android-ftslo-regression-actuator@prod.google.com":"Android Test Notifier","apphosting-stubby-api--s-7egoogle-2ecom-3agitwatcher@prod.google.com":"GitWatcher",
"blunderbuss-prod@prod.google.com":"Blunderbuss","boq-android-culprit-assistant@prod.google.com":"Culprit Assistant","bug-agent-ads-dqm-alert-handler@system.gserviceaccount.com":"Ads DQM Alert Handler Agent","bug-agent-ai-bugreport-analyzer@system.gserviceaccount.com":"AI Bugreport Analyzer Agent","bug-agent-ai-summary@system.gserviceaccount.com":"AI Summary Agent","bug-agent-anabase@system.gserviceaccount.com":"BAP Anabase Agent","bug-agent-anr-agent@system.gserviceaccount.com":"ANR Agent","bug-agent-baseline-validation@system.gserviceaccount.com":"Baseline Validation Agent",
"bug-agent-buganizer-cleanup@system.gserviceaccount.com":"Buganizer Cleanup Bot","bug-agent-bugwise@system.gserviceaccount.com":"Bugwise Agent","bug-agent-chrome-moderation@system.gserviceaccount.com":"Chrome Moderation Agent","bug-agent-culprit-assistant@system.gserviceaccount.com":"Culprit Assistant Agent","bug-agent-fatal-exception-agent@system.gserviceaccount.com":"Fatal Exception Agent","bug-agent-geminet@system.gserviceaccount.com":"Packet Capture Agent","bug-agent-launcher-assigner@system.gserviceaccount.com":"Assigner Agent",
"bug-agent-native-crash-agent@system.gserviceaccount.com":"Native Crash Agent","bug-agent-ooo-reassignment-agent@system.gserviceaccount.com":"OOO Reassignment Agent","bug-agent-playbooks@system.gserviceaccount.com":"Playbooks Agent","bug-agent-primes-bug-enrichment@system.gserviceaccount.com":"Primes Bug Enrichment Agent","bug-agent-sample-module@system.gserviceaccount.com":"Sample Module Agent","bug-agent-slo@system.gserviceaccount.com":"SLO Agent","bug-agent-watchdog-agent@system.gserviceaccount.com":"Watchdog Agent",
"bug-agent-zombie-auto-triage@system.gserviceaccount.com":"Zombie Auto Triage Agent","bugcorder@prod.google.com":"Bug Agent Platform","chrome-devtools-blintz@prod.google.com":"Chrome DevTools Bot \ud83e\udd16","chrome-devtools-continuous-blintz@prod.google.com":"Chrome DevTools Bot \ud83e\udd16","chrome-devtools-daily-blintz@prod.google.com":"Chrome DevTools Bot \ud83e\udd16","dx-workflow-gitwatcher@prod.google.com":"GitWatcher","gado-bug-service@prod.google.com":"Gado Bug Service","issuetracker-recommendation-automation@prod.google.com":"Buganizer Automation",
"pixel-modem-tools-bug-traffic-control@prod.google.com":"Riemann Bug Traffic Control\ud83d\udea6","pmw-data-prod-jobs@prod.google.com":"Riemann Bug Bot","supply-chain-hw-dam2-async@prod.google.com":"DAM Agent","support-bugs-automation-jobs@prod.google.com":"Support Bugs Automation"};var Tyd=new bd("overrideDisplayMap",{factory:function(){return Syd}}),jU=function(){var a=this;this.session=q(Zu);this.userProfiles=q(iU);this.overrideDisplayMap=q(Tyd);this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1;this.user$=new vf(1);this.showEmail$=new Xj(!1);this.isNonObfuscatedEmail=so;this.userProfile$=this.user$.pipe(zf(function(b){return a.userProfiles.get(Rm(b))})).pipe(yf(void 0));this.content$=he([this.user$,this.userProfile$,this.showEmail$]).pipe(A(function(b){var c=
l(b);b=c.next().value;var d=c.next().value;c=c.next().value;var e=Rm(b),f=a.overrideDisplayMap[Rm(b)];b=f?f:(d==null?void 0:d.displayName)||Om(b);return c&&e!==b?e+" ("+b+")":b}));this.vars$=he([this.user$,this.content$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return{user:b,email:Rm(b),content:c}}));this.enableWaldoAvailability=this.session.getFlag("enableWaldoAvailability")&&this.session.isInternalSession()};
da.Object.defineProperties(jU.prototype,{user:{configurable:!0,enumerable:!0,set:function(a){this.user$.next(a)}},showEmail:{configurable:!0,enumerable:!0,set:function(a){this.showEmail$.next(a)}}});jU.\u0275fac=function(a){return new (a||jU)};
jU.\u0275cmp=C({type:jU,selectors:[["b-user-display-name"]],inputs:{user:"user",showEmail:"showEmail",availabilityChipEnabled:"availabilityChipEnabled",hovercardEnabled:"hovercardEnabled",hovercardFocusEnabled:"hovercardFocusEnabled"},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&&(F(0,hdb,4,1),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.vars$))?
0:-1,c)}},dependencies:[dU,AK,uK,zK,UR,oy,py],encapsulation:2,changeDetection:0});var kU=function(){this.model={};this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1};kU.prototype.getDisplayString=function(){return Om(this.model)};kU.prototype.getEmailAddress=function(){return Rm(this.model)||""};kU.\u0275fac=function(a){return new (a||kU)};
kU.\u0275cmp=C({type:kU,selectors:[["b-user-display"]],inputs:{model:"model",availabilityChipEnabled:"availabilityChipEnabled",hovercardEnabled:"hovercardEnabled",hovercardFocusEnabled:"hovercardFocusEnabled"},decls:3,vars:1,consts:[[3,"user","hovercardEnabled","availabilityChipEnabled","hovercardFocusEnabled"]],template:function(a,b){a&1&&(Vf(0),F(1,idb,1,4,"b-user-display-name",0)(2,jdb,2,1,"span"),Wf());a&2&&(B(),G(qTa(b.model)&&b.getEmailAddress()&&b.model?1:2))},dependencies:[jU],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 lU=function(){LO.apply(this,arguments);this.teamsService=q(BP);this.activeSession=q(Zu);this.teamMembers=new Map;this.teamChildren=new Map};Z(lU,LO);lU.\u0275dir=LO.\u0275dir;
var Wyd=function(a,b,c){return a.activeSession.getFlag("enableTeamScope")&&a.activeSession.isInternalSession()&&b&&c&&so(c)?Uyd(a,b).pipe(zf(function(d){return d.has(c)?be(!0):Vyd(a,b).pipe(zf(function(e){return e.length===0?be(!1):me(e.map(function(f){return Wyd(a,f,c)})).pipe(A(function(f){return f.some(Boolean)}))}))})):be(!1)},Vyd=function(a,b){if(a.teamChildren.has(b))return a.teamChildren.get(b);var c=new vf(1);a.subscriptions.add(a.teamsService.getChildTeams([b]).pipe(A(function(d){var e,f;
return(f=(e=d.get(b))==null?void 0:e.map(function(g){return g.id}))!=null?f:[]})).subscribe(c));a.teamChildren.set(b,c);return c},Uyd=function(a,b){if(a.teamMembers.has(b))return a.teamMembers.get(b);var c=new vf(1);a.subscriptions.add(a.teamsService.getTeam(b).pipe(A(function(d){var e;return(e=d==null?void 0:d.members)!=null?e:[]}),A(function(d){return d.map(function(e){return Rm(e==null?void 0:e.user)}).filter(ln)}),A(function(d){return new Set(d)})).subscribe(c));a.teamMembers.set(b,c);return c};
lU.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(lU)))(b||lU)}}();lU.\u0275prov=Cc({token:lU,factory:lU.\u0275fac,providedIn:"root"});var mU=function(){var a=this;this.userProfiles=q(iU);this.activeSession=q(Zu);this.teamMembershipService=q(lU);this.email$=new vf(1);this.isNonObfuscatedEmail=so;this.teamId$=new Xj(void 0);this.userProfile$=this.email$.pipe(zf(function(b){return b?a.userProfiles.get(b).pipe(yf(void 0)):be(void 0)}));this.vars$=he([this.email$,this.userProfile$]).pipe(A(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$=he([this.teamId$,this.email$]).pipe(zf(function(b){var c=l(b);b=c.next().value;c=c.next().value;return Wyd(a.teamMembershipService,b,c)}),yf(!1),hf(function(){return be(!1)}))},sdb=function(a,b){return!b||a.activeSession.isExternalSession()?!1:odb[b]!==void 0};
da.Object.defineProperties(mU.prototype,{email:{configurable:!0,enumerable:!0,set:function(a){so(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}}});mU.\u0275fac=function(a){return new (a||mU)};
mU.\u0275cmp=C({type:mU,selectors:[["b-user-image"]],hostVars:8,hostBindings:function(a,b){a&2&&yg("tiny",b.tiny)("small",b.small)("medium",b.medium)("hasTeam",b.hasTeam)},inputs:{email:"email",size:"size",teamId:"teamId"},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&&(F(0,udb,4,1),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.vars$))?0:-1,c)}},dependencies:[AK,uK,zK,UR,oy,py],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 Xyd=function(){this.transform=vdb};Xyd.\u0275fac=function(a){return new (a||Xyd)};Xyd.\u0275pipe=cf({name:"toNewEmailPreference",type:Xyd,pure:!0});var nU=function(){this.transform=wdb};nU.\u0275fac=function(a){return new (a||nU)};nU.\u0275pipe=cf({name:"enumToHuman",type:nU,pure:!0});var Yyd=function(){this.transform=xdb};Yyd.\u0275fac=function(a){return new (a||Yyd)};Yyd.\u0275pipe=cf({name:"arrayToHuman",type:Yyd,pure:!0});var oU=function(){};
oU.prototype.transform=function(a,b){return uh(ydb(a,b)).toString()};oU.\u0275fac=function(a){return new (a||oU)};oU.\u0275pipe=cf({name:"boldPrefixMatches",type:oU,pure:!0});var pU=function(){this.transform=zdb};pU.\u0275fac=function(a){return new (a||pU)};pU.\u0275pipe=cf({name:"yesNo",type:pU,pure:!0});var Zyd=function(){this.transform=Adb};Zyd.\u0275fac=function(a){return new (a||Zyd)};Zyd.\u0275pipe=cf({name:"teamPath",type:Zyd,pure:!0});var $yd=function(){this.transform=Bdb};
$yd.\u0275fac=function(a){return new (a||$yd)};$yd.\u0275pipe=cf({name:"humanFileSize",type:$yd,pure:!0});var qU=function(){this.transform=Ddb};qU.\u0275fac=function(a){return new (a||qU)};qU.\u0275pipe=cf({name:"omitObfuscatedEmail",type:qU,pure:!0});var azd=function(){this.transform=Edb};azd.\u0275fac=function(a){return new (a||azd)};azd.\u0275pipe=cf({name:"toString",type:azd,pure:!0});var bzd=function(){};
bzd.prototype.transform=function(a,b,c){a=b.indexOf(a);if(a<0)return!0;c=a+c;return!(c>=0&&c<b.length)};bzd.\u0275fac=function(a){return new (a||bzd)};bzd.\u0275pipe=cf({name:"isOutOfBounds",type:bzd,pure:!0});var rU=function(){};rU.prototype.transform=function(a){return Sm(a)};rU.\u0275fac=function(a){return new (a||rU)};rU.\u0275pipe=cf({name:"emailToUser",type:rU,pure:!0});var sU=function(){};sU.\u0275fac=function(a){return new (a||sU)};sU.\u0275mod=$e({type:sU});sU.\u0275inj=Dc({});var tU=function(){this.session=q(Zu);this.isNonObfuscatedEmail=so;this.getEmailDisplayString=Mdb;this.email="";this.withProfile=!0;this.enableWaldoAvailability=this.session.getFlag("enableWaldoAvailability")&&this.session.isInternalSession()};tU.\u0275fac=function(a){return new (a||tU)};
tU.\u0275cmp=C({type:tU,selectors:[["b-user-email"]],inputs:{email:"email",withProfile:"withProfile",ldapOnly:"ldapOnly"},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&&(K(0,"span",2),F(1,Fdb,1,1,"b-user-image",3),F(2,Hdb,5,3)(3,Jdb,1,1,"ng-container"),
E(4,Kdb,2,1,"ng-template",null,0,Og),F(6,Ldb,3,3,"span",4),L());a&2&&(B(),G(b.withProfile?1:-1),B(),G(b.isNonObfuscatedEmail(b.email)?2:3),B(4),G(b.enableWaldoAvailability?6:-1))},dependencies:[dU,AK,uK,zK,UR,oy,mU,rU],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 uU=function(){LO.apply(this,arguments);var a=this;this.teamsService=q(BP);this.session=q(Zu);this.principalTypesFridge=q(pP);this.teamId="";this.enableGroupIcon=this.enableSmallChip=!1;this.providedTeamId$=new vf(1);this.providedUser$=new vf(1);this.providedEmail$=new vf(1);this.isNonObfuscatedEmail=so;this.userToDisplayString=Om;this.isGroup$=this.providedEmail$.pipe(zf(function(b){return a.principalTypesFridge.watch(b)}),te(ln),A(function(b){return b.principalType==="GROUP"}));this.fetchedTeam$=
this.providedTeamId$.pipe(zf(function(b){return CP(a.teamsService,b)}));this.detailedUserType$=this.providedUser$.pipe(A(function(b){b=b?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"}),yf("NO_DETAILED_TYPE"));this.isTeamMember$=he([this.providedTeamId$,this.providedEmail$]).pipe(zf(function(b){var c=
l(b);b=c.next().value;c=c.next().value;return Mpd(a.teamsService,b,c)}),yf(!1),hf(function(){return be(!1)}));this.teamUser$=this.fetchedTeam$.pipe(A(function(b){return"Member of "+b.name}));this.groupMembershipType$=he([this.detailedUserType$,this.isTeamMember$]).pipe(A(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=this.session.getFlag("enableWaldoAvailability")&&
this.session.isInternalSession();this.userTypeClass$=this.groupMembershipType$.pipe(A(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(A(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(A(function(b){return b&&b!=="INTERNAL_NON_TEAM_MEMBER"}));this.iconName$=this.groupMembershipType$.pipe(A(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(Df(this.teamUser$),A(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""}))};Z(uU,LO);uU.\u0275dir=LO.\u0275dir;uU.prototype.ngOnInit=function(){};uU.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)};uU.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(uU)))(b||uU)}}();
uU.\u0275cmp=C({type:uU,selectors:[["b-user-membership-chip"]],inputs:{user:"user",email:"email",teamId:"teamId",enableSmallChip:"enableSmallChip",enableGroupIcon:"enableGroupIcon"},features:[Ff,Gx],decls:10,vars:14,consts:[["emailDisplay",""],["card",""],[3,"user","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","overflow-hidden",
"overflow-ellipsis",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],[3,"email"],[1,"user-chip-name"]],template:function(a,b){a&1&&(K(0,"span"),U(1,"async"),K(2,"span"),U(3,"async"),F(4,Pdb,3,3),F(5,Qdb,2,5,"b-user-display-name",2)(6,Ydb,4,1),F(7,Zdb,3,6,"mat-icon",3),U(8,"async"),L()(),F(9,$db,1,1,"b-availability-chip",4));if(a&2){var c;zg((c=W(1,8,b.userTypeClass$))!=null?c:"");B(2);var d;zg((d=W(3,10,b.userChipType$))!=null?d:"");B(2);G(b.enableSmallChip?4:-1);B();G(b.enableSmallChip?6:5);B(2);
G(W(8,12,b.shouldShowIcon$)?7:-1);B(2);G(b.enableWaldoAvailability&&!b.enableSmallChip?9:-1)}},dependencies:[dU,hK,AK,uK,zK,hS,UR,iz,MA,oy,jU,mU,py,rU],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 vU=function(){};vU.\u0275fac=function(a){return new (a||vU)};vU.\u0275mod=$e({type:vU});vU.\u0275inj=Dc({imports:[FN,eU,xT,iK,aT,bT,AK,sU,mU,jU,tU,kU,uU]});var czd=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,dzd=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,ezd=function(a){this.patternParts_=[];this.dateTimeSymbols_=AG;typeof a=="number"?this.applyStandardPattern_(a):this.applyPattern_(a)};
ezd.prototype.applyPattern_=function(a){for(var b=!1,c="",d=0;d<a.length;d++){var e=a.charAt(d);if(czd.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),g=d+1;g<a.length&&a.charAt(g)==f;)g++;f=g-d;f<=0?g=!1:(g="MydhHmsSDkK".indexOf(e),g=g>0||g==0&&f<3);this.patternParts_.push({text:e,count:f,abutStart:!1,numeric:g});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};ezd.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)};
ezd.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("Pe`"+f.text.charAt(0));}f=new fzd;c=[0];f.dayPeriodIndex=-1;for(var g=0;g<this.patternParts_.length&&!(d&&c[0]>=a.length);g++){if(this.patternParts_[g].count==0){a:{var k=a;var m=c,r=this.patternParts_[g],w=d;if(r.text.match(czd)!=null){if(r=m[0],
gzd(k,m),m[0]>r){k=!0;break a}}else{if(k.indexOf(r.text,m[0])==m[0]){m[0]+=r.text.length;k=!0;break a}if(w&&r.text.indexOf(k.substring(m[0]))==0){m[0]+=k.length-m[0];k=!0;break a}}k=!1}if(k)continue;return 0}if(this.patternParts_[g].abutStart){a:{m=a;r=c;w=g;var x=r[0],D=0;for(k=w;k<this.patternParts_.length;k++){var H=this.patternParts_[k],J=H.count;if(J===0)break;if(k==w&&(J-=D,D++,J==0)){k=0;break a}var O=k>w&&H.numeric,R=r[0];if(!hzd(this,m,r,H,J,f,!1)||O&&r[0]-R<J)k=w-1,r[0]=x}k-=w}if(k<=0)return 0;
g+=k-1}else if(!hzd(this,a,c,this.patternParts_[g],0,f,d))return 0}a:{a=e;if(b==null)throw Error("Qe");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=hYc(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 hzd=function(a,b,c,d,e,f,g){gzd(b,c);if(d.numeric&&e>0&&c[0]+e>b.length)return!1;switch(d.text.charAt(0)){case "G":return izd(b,c,[a.dateTimeSymbols_.ERAS],function(k){return f.era=k}),!0;case "M":case "L":return jzd(a,b,c,e,d,f);case "E":return izd(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=izd(b,c,a,function(k){return f.dayPeriodIndex=
k},g),f.dayPeriodName=e[f.dayPeriodIndex],g?b:!0;case "a":return b=izd(b,c,[a.dateTimeSymbols_.AMPMS],function(k){return f.ampm=k},g),g?b:!0;case "y":return kzd(a,b,c,d,e,f);case "Q":return izd(b,c,[a.dateTimeSymbols_.QUARTERS,a.dateTimeSymbols_.SHORTQUARTERS],function(k){f.month=k*3;f.day=1});case "d":return lzd(a,b,c,d,e,function(k){f.day=k}),!0;case "S":return mzd(a,b,c,e,f);case "h":case "K":case "H":case "k":return b=lzd(a,b,c,d,e,function(k){f.hours=d.text.charAt(0)==="h"&&k===12?0:k},g),g?
b:!0;case "m":return b=lzd(a,b,c,d,e,function(k){f.minutes=k},g),g?b:!0;case "s":return lzd(a,b,c,d,e,function(k){f.seconds=k}),!0;case "z":case "Z":case "v":return nzd(a,b,c,f);default:return!1}},kzd=function(a,b,c,d,e,f){var g=c[0];e=ozd(a,b,c,e);e===null&&(e=ozd(a,b,c,0,!0));if(e===null)return!1;e>=0&&c[0]-g==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},jzd=function(a,b,c,d,e,f){return e.numeric&&
lzd(a,b,c,e,d,function(g){f.month=g-1})?!0:izd(b,c,[a.dateTimeSymbols_.MONTHS,a.dateTimeSymbols_.STANDALONEMONTHS,a.dateTimeSymbols_.SHORTMONTHS,a.dateTimeSymbols_.STANDALONESHORTMONTHS],function(g){f.month=g})},mzd=function(a,b,c,d,e){var f=c[0];a=ozd(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},nzd=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=ozd(a,b,c,0,!0);
if(f===null)return!1;if(c[0]<b.length&&b.charAt(c[0])==":"){var g=f*60;c[0]++;f=ozd(a,b,c,0);if(f===null)return!1;g+=f}else g=f,g=g<24&&c[0]-e<=3?g*60:g%100+g/100*60;d.tzOffset=-g;return!0},lzd=function(a,b,c,d,e,f,g){g=g||!1;var k=c[0];a=ozd(a,b,c,e);if(a===null)return!1;if(g&&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},izd=function(a,b,c,d,e){e=e||!1;for(var f,g=0;g<c.length;g++){f=b;for(var k=c[g],m=e,r=0,w=null,x=a.substring(f[0]).toLowerCase(),D=
0;D<k.length;D++){var H=k[D].toLowerCase();if(m&&H.indexOf(x)==0){r=x.length;w=D;break}k[D].length>r&&x.indexOf(H)==0&&(r=k[D].length,w=D)}w!==null&&(f[0]+=r);f=w;if(f!==null)return d(f),!0}return!1},gzd=function(a,b){(a=a.substring(b[0]).match(dzd))&&(b[0]+=a[0].length)},ozd=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 g=b.charCodeAt(f)-a.dateTimeSymbols_.ZERODIGIT;d.push(0<=g&&g<=9?String.fromCharCode(g+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)},fzd=function(){};fzd.prototype.ambiguousYear=!1;var Wqd=Array(31).fill(0).map(function(a,b){return""+(b+1)}),wU=function(){var a=vA.apply(this,arguments)||this;a.locale=AG;return a};Z(wU,vA);wU.prototype.setLocale=function(){throw Error("Re");};wU.prototype.getYear=function(a){return a.getYear()};wU.prototype.getMonth=function(a){return a.getMonth()};wU.prototype.getDate=function(a){return a.getDate()};var Vqd=function(a,b){switch(b){case "long":return a.locale.WEEKDAYS;case "narrow":return a.locale.NARROWWEEKDAYS;default:return a.locale.SHORTWEEKDAYS}};
wU.prototype.getFirstDayOfWeek=function(){return(this.locale.FIRSTDAYOFWEEK+1)%7};wU.prototype.clone=function(a){return a.clone()};var lQ=function(a,b,c){return new Dm(a,b,c)};wU.prototype.parse=function(a,b){if(a===""||typeof a!=="string")return null;b=new ezd(a.match(/\d{3,}/)?b:b.replace("yyyy","yy"));var c=new Dm(new Date(a));b.parse(a,c);return c};wU.prototype.format=function(a,b){if(!this.isValid(a))throw Error("Se");return(new yl(b)).format(a)};
var jQ=function(a,b){a=a.clone();a.add(new BG(b));return a},kQ=function(a,b){a=a.clone();a.add(new BG(0,b));return a},iQ=function(a,b){a=a.clone();a.add(new BG(0,0,b));return a},AHc=function(a){return a instanceof Dm};h=wU.prototype;h.isValid=function(a){return!isNaN(a.getTime())};h.invalid=function(){return new Dm(NaN)};h.sameDate=function(a,b){return a&&b?(new Bm(a)).equals(b):!1};h.getHours=function(a){return a.getHours()};h.getMinutes=function(a){return a.getMinutes()};h.getSeconds=function(a){return a.getSeconds()};
h.setTime=function(a,b,c,d){a=this.clone(a);a.setHours(b);a.setMinutes(c);a.setSeconds(d);a.setMilliseconds(0);return a};wU.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(wU)))(b||wU)}}();wU.\u0275prov=Cc({token:wU,factory:wU.\u0275fac});var pzd=AG.DATEFORMATS[3];pzd=pzd.replace(/yyyy/,"yy").replace(/yy/,"yyyy");pzd==="M/d/yyyy"&&(pzd="MM/dd/yyyy");var qzd=AG.TIMEFORMATS.at(-1),rzd={parse:{dateInput:pzd,timeInput:qzd},display:{dateInput:pzd,monthYearLabel:HG.YEAR_MONTH_ABBR,dateA11yLabel:HG.MONTH_DAY_YEAR_MEDIUM,monthYearA11yLabel:HG.YEAR_MONTH_FULL,timeInput:qzd,timeOptionLabel:qzd}};var xU=function(){};xU.\u0275fac=function(a){return new (a||xU)};xU.\u0275mod=$e({type:xU});xU.\u0275inj=Dc({providers:[{provide:vA,useClass:wU},{provide:zA,useValue:rzd}]});var yU=function(){};yU.\u0275fac=function(a){return new (a||yU)};yU.\u0275mod=$e({type:yU});yU.\u0275inj=Dc({imports:[FN,ZA,wQ,YJ,Dz,mC,nC,CB,pC,xU,FT]});var szd=["popupField"],tzd=["fieldContent"],uzd=["popupOverlay"],vzd=["overlayContent"],eeb=function(a){return{q:a}},wzd=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"}],zU=function(){LO.apply(this,arguments);this.cdr=q(MO,{self:!0});this.element=q(Gd);this.overlay=q(rA);this.viewContainerRef=q(ig);this.dateFormatter=q(TQ);this.activeSession=q(Zu);this.constants=q(SQ);this.appEvents=q(DN);this.IssuePriority=rhd;this.googDateValue=null;this.autocompleteActive=!1;this.readonlyTooltip=
this.displayIcon=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.teamId="";this.clearable=!1;this.choices=[];this.customFieldId=0;this.showEnumTitle=!1;this.valueChange=new KO;this.disabled=this.readonly=!1;this.tooltip="";this.showAvailability=this.showHotkeyHint=this.truncate=!1};Z(zU,LO);zU.\u0275dir=LO.\u0275dir;
h=zU.prototype;h.ngOnInit=function(){var a=this;this.enableWaldoAvailability=this.activeSession.getFlag("enableWaldoAvailability")&&this.activeSession.isInternalSession()&&this.showAvailability;this.subscriptions.add(this.appEvents.openEditField.subscribe(function(b){b!==a&&a.isActive&&(a.isActive=!1,xzd(a),a.cdr.detectChanges())}));this.subscriptions.add(Qsd(this.dateFormatter,function(){yzd(a);a.cdr.detectChanges()}));this.destroyed$.subscribe(function(){xzd(a)})};
h.ngOnDestroy=function(){LO.prototype.ngOnDestroy.call(this);this.overlayRef&&this.overlayRef.dispose()};h.ngOnChanges=function(a){["value","type","displayValueOverride","choices"].some(function(b){return b in a})&&yzd(this)};h.ngAfterViewInit=function(){this.popupField&&(this.overlayRef=this.overlay.create({positionStrategy:this.getPositionStrategy(),scrollStrategy:this.overlay.scrollStrategies.reposition()}))};
h.getPositionStrategy=function(){return dA(eA(fA(jA(this.overlay.position(),this.fieldContent).setOrigin(this.fieldContent),!1),5),wzd)};
var xzd=function(a){var b;((b=a.overlayRef)==null?0:b.hasAttached())&&a.overlayRef.detach()},leb=function(a,b){switch(b.keyCode){case 13:case 32:b.stopPropagation();b.preventDefault();rs(a,b,!0,!1);break;case 27:b.stopPropagation(),rs(a,b,!1,!0)}},rs=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,xzd(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?Cm(c):null),a.type==="ENUM"&&a.enumMenuTrigger.openMenu(),a.type!=="ENUM"){zzd(a);var f=a.element.nativeElement;oe(document,"click").pipe(te(function(g){return!f.contains(g.target)}),mf(1),Af(a.overlayRef._detachments),Af(a.destroyed$)).subscribe(function(){rs(a,null,!1,!1)})}b==null||b.stopPropagation();a.cdr.detectChanges()}};
zU.prototype.schedule=function(a){var b=pe.schedule(a);this.destroyed$.subscribe(function(){b.unsubscribe()})};zU.prototype.getDisplayValue=function(a){return this.displayValue===null?a:this.displayValue};
var yzd=function(a){var b=a.value;a.displayIcon=null;switch(a.type){case "ENUM":if(a.title==="Type"){var c;a.displayIcon=(c=a.constants.issueTypeIcons.get(b))!=null?c:null}(c=a.choices.find(function(d){return d.value==b}))?(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(Cm(b)):a.displayValue=null;a.readonlyTooltip=
null;break;default:a.displayValueOverride?a.displayValue=a.displayValueOverride:a.displayValue=b?String(b):null,a.readonlyTooltip=null}};zU.prototype.setFieldValue=function(a){this.disabled||this.readonly||(this.type==="DATE"&&a&&(a=FSa(a)),this.type==="NUMERIC"&&a===""&&(a=null),Gm(this.value,a)?this.type==="ENUM"&&rs(this,null,!1,!0):(rs(this,null,!1,!0),this.value=a,this.valueChange.emit(this.value)))};
var Heb=function(a){if(a.type===void 0)throw Error("Te");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("Ue");default:sb(a.type,"FieldType")}};zU.prototype.clearFieldValue=function(){this.value=null;this.valueChange.emit(this.value);rs(this,null,!1,!0)};
var zzd=function(a){xzd(a);var b=a.overlayRef.attach(new mA(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()})};zU.prototype.getTooltip=function(){return this.readonly?this.readonlyTooltip||"":this.tooltip?this.tooltip:this.title?"Set "+this.title:""};
zU.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(zU)))(b||zU)}}();
zU.\u0275cmp=C({type:zU,selectors:[["b-edit-field"]],viewQuery:function(a,b){a&1&&(kg(OF,5),kg(szd,5),kg(tzd,5),kg(uzd,5),kg(vzd,5));if(a&2){var c;og(c=pg())&&(b.enumMenuTrigger=c.first);og(c=pg())&&(b.popupField=c.first);og(c=pg())&&(b.fieldContent=c.first);og(c=pg())&&(b.popupOverlay=c.first);og(c=pg())&&(b.overlayContent=c.first)}},inputs:{multiline:"multiline",name:"name",title:"title",type:"type",value:"value",displayValueOverride:"displayValueOverride",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"},features:[Ig([MO]),Ff,Gx],decls:12,vars:4,consts:[["enumMenu","matMenu"],["renderFieldContent",""],["popupOverlay",""],["popupField","","tooltip","matTooltip"],["fieldContent",""],["overlayContent",""],[1,"bv2-issue-metadata-field"],["role",
"button",1,"keep-focus-ring",3,"class","bv2-disabled","bv2-readonly","matTooltip"],[3,"class","bv2-disabled","bv2-readonly","matTooltip"],[1,"bv2-issue-metadata-footer"],[1,"keep-focus-ring"],["matMenuContent",""],["role","button",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,"matTooltip"],[1,"keep-focus-ring",3,"modelChange","disabled","aria-label","model"],[3,"click"],["type","button","mat-menu-item","","role","menuitemcheckbox","aria-label","Clear",3,"b-menu-item-checked","disabled"],["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-s"],[1,"icon-s","b-icon-prefix",3,"svgIcon"],[1,"muted","plain-monospace","margin-left-auto","padded-s-left"],[1,"bv2-editable-value",3,"keydown","click"],[1,"icon-s","muted",3,"svgIcon"],[1,"bv2-metadata-field-value",3,"p0",
"p1","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"],[1,"issue-metadata-field-dropdown-icon"],[1,"issue-metadata-field-edit-icon"],["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"],["spellcheck","false",3,"ngModel"],["step","any","spellcheck","false",3,"ngModel"],[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,"ngModelChange","keydown","ngModel"],["step",
"any","spellcheck","false",3,"ngModelChange","keydown","ngModel"]],template:function(a,b){a&1&&(K(0,"div")(1,"div",6),F(2,meb,6,15,"div",7),F(3,oeb,3,13,"div",8),M(4,"div",9),L(),K(5,"mat-menu",10,0),E(7,ueb,3,1,"ng-template",11),L()(),E(8,Deb,12,6,"ng-template",null,1,Og)(10,Leb,6,4,"ng-template",null,2,Og));a&2&&(B(),yg("active",b.isActive&&!b.readonly&&!b.disabled),B(),G(b.type!=="BOOL"?2:-1),B(),G(b.type==="BOOL"?3:-1))},dependencies:[FT,mC,xi,PB,WB,ZA,XA,TA,OJ,NJ,LF,JF,KF,OF,hK,fT,XJ,iz,MA,bU,
oy,EF,fU,qy],styles:[".bv2-text-edit-dialog-buttons[_ngcontent-%COMP%]   .mat-mdc-unelevated-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{--mat-button-filled-icon-spacing: 0px;--mat-button-filled-icon-offset: 0px}.bv2-text-edit-dialog-buttons[_ngcontent-%COMP%]   .mat-mdc-outlined-button[_ngcontent-%COMP%] > .mat-icon[_ngcontent-%COMP%]{--mat-button-outlined-icon-spacing: 0px;--mat-button-outlined-icon-offset: 0px}",".bv2-issue-metadata-field-edit[_ngcontent-%COMP%] { position: relative; }"]});
var AU={ENUM:"ENUM",BOOL:"BOOL",DATE:"DATE",TEXT:"TEXT",NUMERIC:"NUMERIC"},BU=function(){};BU.\u0275fac=function(a){return new (a||BU)};BU.\u0275mod=$e({type:BU});BU.\u0275inj=Dc({imports:[eU,ZT,FN,yU,mC,gT,ZA,OJ,iK,cU,aT,sU,gU,vU,YJ,zU]});var CU=function(){LO.apply(this,arguments);var a=this;this.changelistApi=q(nN);this.emailToUser=Sm;this.providedChangelistId$=new vf(1);this.changelist$=this.providedChangelistId$.pipe(zf(function(b){return a.changelistApi.getChangelistDetails(b)}),wf({refCount:!0,bufferSize:1}));this.init=new vf(1)};Z(CU,LO);CU.\u0275dir=LO.\u0275dir;CU.prototype.ngOnInit=function(){var a=this;this.changelist$.pipe(mf(1),Af(this.destroyed$)).subscribe(function(){a.init.next()})};
CU.prototype.ngOnChanges=function(a){a.changelistId&&this.providedChangelistId$.next(this.changelistId)};CU.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(CU)))(b||CU)}}();
CU.\u0275cmp=C({type:CU,selectors:[["b-changelist-card"]],inputs:{changelistId:"changelistId"},outputs:{init:"init"},features:[Ff,Gx],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,"user","hovercardEnabled"],["mode","datetime",1,"float-right",3,"timestamp"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1),F(2,Qeb,16,5,"div",2),U(3,"async"),
L()());if(a&2){var c;B(2);G((c=W(3,1,b.changelist$))?2:-1,c)}},dependencies:[DT,jU,py,rU],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 DU=function(){this.analytics=q(PO);this.config=Object.assign({},new rm,{showDelay:400,hideDelay:400,position:[{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-20}]})};DU.prototype.ngOnInit=function(){};DU.prototype.trackClick=function(){this.analytics.trackEvent("editIssue","click","changelistChip")};DU.\u0275fac=function(a){return new (a||DU)};
DU.\u0275cmp=C({type:DU,selectors:[["b-changelist-chip"]],inputs:{changelistId:"changelistId"},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=t();K(0,"a",2);N("click",function(){u(c);return v(b.trackClick())});
S(1);K(2,"span",3);S(3,"CL");L()();K(4,"onedev-hovercard",null,0);E(6,Reb,2,2,"b-changelist-card",4);L()}a&2&&(a=Q(5),I("href","http://critique.corp.google.com/"+b.changelistId,Me)("onedevHovercardTrigger",a)("onedevHovercardConfig",b.config),Jf("aria-label","Changelist "+b.changelistId),B(),T(" ",b.changelistId," "))},dependencies:[CU,AK,uK,vK,zK,wK],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 EU=function(){this.activeSession=q(Zu);this.analytics=q(PO);this.gerritUrl="";this.isInternal=this.activeSession.getFrontendAccessMode()==="INTERNAL"};EU.prototype.ngOnInit=function(){};EU.prototype.ngOnChanges=function(a){a.change&&(this.gerritUrl=lr(this.change,this.isInternal))};EU.prototype.trackClick=function(){this.analytics.trackEvent("editIssue","click","gerritChangesChip")};EU.\u0275fac=function(a){return new (a||EU)};
EU.\u0275cmp=C({type:EU,selectors:[["b-gerrit-change-chip"]],inputs:{change:[0,"gerritChange","change"]},features:[Gx],decls:5,vars:8,consts:[["target","_blank",1,"bv2-metadata-link",3,"click","href"],[1,"suffix"]],template:function(a,b){a&1&&(Sf(0,"a",0),eg("click",function(){return b.trackClick()}),S(1),Sf(2,"span",1),S(3),U(4,"titlecase"),Tf()());a&2&&(Jf("aria-label",Hg("",b.change.host," ",b.change.changeNumber)),Rf("href",b.gerritUrl,Me),B(),T(" ",b.change.changeNumber," "),B(2),Ag(W(4,6,b.change.host)))},
dependencies:[ry],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 FU=function(){this.gerritChange=this.changelist=void 0};FU.prototype.ngOnInit=function(){};FU.prototype.ngOnChanges=function(a){a.codeChange&&((a=mr(this.codeChange))?(this.changelist=void 0,this.gerritChange=a):(this.gerritChange=void 0,this.changelist=Number(this.codeChange)))};FU.\u0275fac=function(a){return new (a||FU)};
FU.\u0275cmp=C({type:FU,selectors:[["b-code-change-chip"]],inputs:{codeChange:"codeChange"},features:[Gx],decls:2,vars:1,consts:[[3,"changelistId"],[3,"gerritChange"]],template:function(a,b){a&1&&F(0,Seb,1,1,"b-changelist-chip",0)(1,Teb,1,1,"b-gerrit-change-chip",1);a&2&&G(b.changelist?0:b.gerritChange?1:-1)},dependencies:[DU,EU],encapsulation:2});var GU=function(){};GU.\u0275fac=function(a){return new (a||GU)};GU.\u0275mod=$e({type:GU});GU.\u0275inj=Dc({imports:[FN]});var Azd=function(){this.id=0};Azd.\u0275fac=function(a){return new (a||Azd)};
Azd.\u0275cmp=C({type:Azd,selectors:[["changelist-link-plain"]],inputs:{id:"id"},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&&(K(0,"a",2),S(1),L(),K(2,"onedev-hovercard",null,0),E(4,Ueb,2,2,"b-changelist-card",3),L());a&2&&(a=Q(3),I("href","http://critique.corp.google.com/"+
b.id,Me)("onedevHovercardTrigger",a),B(),T(" cl/",b.id,"\n"))},dependencies:[CU,AK,uK,vK,zK,wK],encapsulation:2});var HU=function(){};HU.\u0275fac=function(a){return new (a||HU)};HU.\u0275mod=$e({type:HU});HU.\u0275inj=Dc({imports:[FN,sU,vU,AK,GU,CU,Azd]});var Bzd=function(){};Bzd.\u0275fac=function(a){return new (a||Bzd)};Bzd.\u0275mod=$e({type:Bzd});Bzd.\u0275inj=Dc({imports:[FN,AK,HU,FU,DU]});var IU=function(){LO.apply(this,arguments);var a=this;this.dialogRef=q(dB);this.data=q(fB);this.searchQuery$=new rf;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(kf(300),of(),A(function(b){if(b.trim()!==
""){var c=b.toLowerCase();return a.data.allowedValues.filter(function(d){return za(d.toLowerCase(),c)})}return Czd(a)}))};Z(IU,LO);IU.\u0275dir=LO.\u0275dir;var Czd=function(a){var b=a.data.allowedValues.filter(function(c){return!a.originalSelectedValues.has(c)});return[].concat(n(a.originalSelectedValues),n(b))};
IU.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=KSa(this.originalSelectedValues,this.selectedValues);this.hasPendingChanges=!!a;var c=l(Web(a));a=c.next().value;c=c.next().value;this.saveBtnLabel=a;this.saveBtnTooltip=c};var Dzd=function(a){a.dialogRef.close(a.usePreviousSelectedValues?a.previousSelectedValues:a.selectedValues)};
IU.prototype.closeDialog=function(){this.dialogRef.close()};IU.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(IU)))(b||IU)}}();
IU.\u0275cmp=C({type:IU,selectors:[["b-custom-repeated-enum-dialog"]],hostBindings:function(a,b){a&1&&N("keydown.meta.enter",function(){return Dzd(b)})("keydown.shift.enter",function(){return Dzd(b)})("keydown.control.enter",function(){return Dzd(b)})},features:[Ff],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=
t();K(0,"header",2)(1,"h2");S(2);L();K(3,"div",3);M(4,"mat-icon",4);K(5,"input",5,0);N("click",function(){u(c);var e=Q(6);b.searchQuery$.next(e.value);return v()})("input",function(){u(c);var e=Q(6);b.searchQuery$.next(e.value);return v()});L()()();K(7,"section",6,1)(9,"mat-selection-list",7);N("selectionChange",function(e){u(c);return v(b.changeSelection(e))})("keydown.meta.enter",function(){u(c);return v(b.usePreviousSelectedValues=!0)})("keydown.shift.enter",function(){u(c);return v(b.usePreviousSelectedValues=
!0)})("keydown.control.enter",function(){u(c);return v(b.usePreviousSelectedValues=!0)});Pf(10,Veb,2,5,"mat-list-option",8,Of);U(12,"async");L()();K(13,"mat-dialog-actions")(14,"button",9);N("click",function(){u(c);return v(b.closeDialog())});S(15," Cancel ");L();K(16,"button",10);N("click",function(){u(c);return v(Dzd(b))});S(17);L()()}if(a&2){B(2);T("Search for ",b.data.customFieldTitle);B(3);I("placeholder","Type to filter "+b.data.customFieldTitle+" values");Jf("aria-label","Filter "+b.data.customFieldTitle+
" values");B(5);var d;Qf((d=W(12,8,b.matchedValues$))!=null?d:Czd(b));B(6);I("mat-dialog-close",!0)("matTooltip",b.saveBtnTooltip)("disabled",!b.hasPendingChanges);Jf("aria-label",b.saveBtnTooltip);B();T(" ",b.saveBtnLabel," ")}},dependencies:[ZA,XA,TA,dK,RJ,cK,ZJ,hK,mB,hB,lB,kB,iz,MA,py],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 JU=function(){this.dialog=q(gB);this.dialogRef=null};JU.prototype.open=function(a){var b=this,c,d;return y(function(e){if(e.nextAddress==1)return c={panelClass:"no-jitter",data:a,ariaLabel:"Custom repeated enum dialog"},b.dialogRef=b.dialog.open(IU,c),z(e,ee(eB(b.dialogRef)),2);d=e.yieldResult;return e.return(Promise.resolve(d))})};JU.prototype.isOpen=function(){return this.dialogRef?this.dialogRef.getState()===0:!1};JU.\u0275fac=function(a){return new (a||JU)};
JU.\u0275prov=Cc({token:JU,factory:JU.\u0275fac,providedIn:"root"});var Ezd=function(){};Ezd.\u0275fac=function(a){return new (a||Ezd)};Ezd.\u0275mod=$e({type:Ezd});Ezd.\u0275inj=Dc({imports:[FN,mC,ZA,pB,dK,iK,IU]});var Fzd=0,KU=function(){LO.call(this);var a=this;this.teamsService=q(BP);this.ROUTES=zs;this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.linkFocused=new KO;this.linkBlurred=new KO;this.teamName=this.teamId;this.teamLogoUrl=this.teamDescription="";this.providedTeamId$=new vf(1);this.teamLinkId="b-team-link-content-"+Fzd;this.fetchedTeam$=this.providedTeamId$.pipe(of(),te(function(b){return b!=="0"}),zf(function(b){return CP(a.teamsService,b)}));this.isTeamFetched$=this.fetchedTeam$.pipe(A(function(){return!0}),
yf(!1));this.fetchedTeam$.pipe(Af(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});Fzd++};Z(KU,LO);KU.\u0275dir=LO.\u0275dir;KU.prototype.ngOnInit=function(){};KU.prototype.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};KU.prototype.trackClick=function(a){ur("teamCard","click",a,1)};
KU.prototype.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};KU.\u0275fac=function(a){return new (a||KU)};
KU.\u0275cmp=C({type:KU,selectors:[["b-team-card"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},outputs:{linkFocused:"linkFocused",linkBlurred:"linkBlurred"},features:[Ff,Gx],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&&(K(0,"div",0)(1,"div",1)(2,"div",2),M(3,"img",3),K(4,"div",4)(5,"div",5),M(6,"mat-icon",6),S(7),L(),K(8,"div",7),S(9),L()()(),K(10,"p",8),S(11),L(),K(12,"div",9)(13,"a",10),N("click",function(){return b.trackClick("viewTeamSettingsPage")}),K(14,"button",11),S(15,"View team settings"),L()(),K(16,"a",12),N("click",function(){return b.trackClick("viewTeamInMoma")}),K(17,"button",13),S(18,"View team in Moma "),
M(19,"mat-icon",14),L()(),F(20,Xeb,3,1,"a",15),L()()());a&2&&(B(3),Jf("src",b.teamLogoUrl,Me),B(4),T(" Team: ",b.teamName," "),B(2),T("Team ID: ",b.teamId),B(2),Ag(b.teamDescription),B(2),I("routerLink",Gg("/teams/",b.teamId,"/edit")),B(3),I("href",Gg("https://moma.corp.google.com/team/",b.teamId),Me),B(4),G(b.componentId?20:-1))},dependencies:[ZA,XA,TA,iz,EF],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 LU=function(){};LU.\u0275fac=function(a){return new (a||LU)};LU.\u0275mod=$e({type:LU});LU.\u0275inj=Dc({imports:[FN,ZA,KU]});var Gzd=0,MU=function(){LO.call(this);var a=this;this.teamsService=q(BP);this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.providedTeamId$=new vf(1);this.teamLinkId="b-team-link-content-"+Gzd++;this.teamName=this.teamId;this.fetchedTeam$=this.providedTeamId$.pipe(of(),te(function(b){return b!=="0"}),zf(function(b){return CP(a.teamsService,b)}));this.isTeamFetched$=this.fetchedTeam$.pipe(A(function(){return!0}),yf(!1));this.fetchedTeam$.pipe(Af(this.destroyed$)).subscribe(function(b){a.teamName=
b.name})};Z(MU,LO);MU.\u0275dir=LO.\u0275dir;MU.prototype.ngOnInit=function(){};MU.prototype.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};MU.prototype.trackClick=function(a){ur("teamCard","click",a,1)};MU.prototype.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};MU.\u0275fac=function(a){return new (a||MU)};
MU.\u0275cmp=C({type:MU,selectors:[["b-team-display"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},features:[Ff,Gx],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&&(F(0,$eb,2,2),U(1,"async"),Mf(2,cfb,2,2),K(3,"onedev-hovercard",null,0),Vf(5),M(6,"b-team-card",1),Wf(),L());a&2&&(G(b.teamId!="0"&&W(1,3,b.isTeamFetched$)?0:2),B(6),I("componentId",b.componentId)("teamId",b.teamId.toString()))},dependencies:[AK,uK,zK,iz,KU,py],encapsulation:2});var NU=function(){};NU.\u0275fac=function(a){return new (a||NU)};NU.\u0275mod=$e({type:NU});NU.\u0275inj=Dc({imports:[FN,AK,LU,MU]});var Hzd=0,OU=function(){this.elementRef=q(Gd);this.titleWhenExpanded=this.titleWhenCollapsed="";this.isExpanded=!1;this.iconName="";this.hasCompactTitleBar=!1;this.ariaLabel="";this.counter=Hzd++;this.headerId="b-collapsible-panel-header-"+this.counter;this.id="b-collapsible-panel-"+this.counter};OU.prototype.toggleExpansion=function(){var a=this;this.isExpanded||setTimeout(function(){return a.elementRef.nativeElement.scrollIntoView({behavior:"smooth",block:"nearest"})},200);this.isExpanded=!this.isExpanded};
da.Object.defineProperties(OU.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"}}});OU.\u0275fac=function(a){return new (a||OU)};
OU.\u0275cmp=C({type:OU,selectors:[["collapsible-panel"],["b-collapsible-panel"]],inputs:{titleWhenCollapsed:"titleWhenCollapsed",titleWhenExpanded:"titleWhenExpanded",isExpanded:"isExpanded",iconName:"iconName",hasCompactTitleBar:"hasCompactTitleBar",ariaLabel:"ariaLabel",title:"title"},ngContentSelectors:["*"],decls:8,vars:14,consts:[[1,"collapsible-panel"],["type","button",1,"title-bar","unstyled-button",3,"click","mouseup","aria-label"],["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&&(fg(),K(0,"div",0)(1,"button",1),N("click",function(){return b.toggleExpansion()})("mouseup",function(){b.elementRef.nativeElement.querySelector(".title-bar").blur()}),F(2,dfb,1,1,"b-icon",2),F(3,efb,2,1,"span",3),F(4,ffb,2,0,"div",4),M(5,"mat-icon",5),L(),K(6,"div",6),gg(7),L()());a&2&&(B(),yg("compact",b.hasCompactTitleBar),If("aria-label",Gg("",b.ariaLabel?b.ariaLabel+", ":"","collapsible panel")),Jf("id",
b.headerId)("aria-expanded",b.isExpanded)("aria-controls",b.id),B(),G(b.iconName?2:-1),B(),G(b.hasCompactTitleBar&&b.isExpanded?-1:3),B(),G(b.hasCompactTitleBar?4:-1),B(),I("@expandCollapseIcon",b.expandedState),B(),I("@expandCollapseContent",b.expandedState),Jf("id",b.id)("aria-labelledby",b.headerId))},dependencies:[hS,iz],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:[twa("expandCollapseContent",[rj("expanded",qj({height:"*",visibility:"visible"})),rj("collapsed",qj({height:"0",visibility:"hidden"})),sj("expanded <=> collapsed",[pj("200ms")])]),twa("expandCollapseIcon",[rj("expanded",qj({transform:"rotate(-180deg)"})),rj("collapsed",qj({transform:"*"})),sj("expanded <=> collapsed",[pj("200ms")])])]}});var PU=function(){};PU.\u0275fac=function(a){return new (a||PU)};PU.\u0275mod=$e({type:PU});PU.\u0275inj=Dc({imports:[FN,xT,OU]});var QU=function(){};QU.\u0275fac=function(a){return new (a||QU)};QU.\u0275mod=$e({type:QU});QU.\u0275inj=Dc({});var RU=function(){};RU.\u0275fac=function(a){return new (a||RU)};RU.\u0275mod=$e({type:RU});RU.\u0275inj=Dc({});var Izd=new bd("CDK_DRAG_CONFIG");var Jzd={capture:!0},Kzd={passive:!1,capture:!0},Lzd=function(){};Lzd.\u0275fac=function(a){return new (a||Lzd)};Lzd.\u0275cmp=C({type:Lzd,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 SU=function(){var a=this;this._ngZone=q(Tg);this._document=q(Yh);this._styleLoader=q(fi);this._renderer=q(Ye).createRenderer(null,null);this._scroll=new rf;this._dropInstances=new Set;this._dragInstances=new Set;this._activeDragInstances=qg.apply(null,[[]].concat(n([])));this._draggingPredicate=function(b){return b.isDragging()};this._domNodesToDirectives=null;this.pointerMove=new rf;this.pointerUp=new rf;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))}},Mzd=function(a,b){a._dropInstances.has(b)||a._dropInstances.add(b)},Nzd=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=a._renderer.listen(a._document,"touchmove",a._persistentTouchmoveListener,
Kzd)})},Pzd=function(a,b){a._dragInstances.delete(b);Ozd(a,b);if(a._dragInstances.size===0){var c;(c=a._cleanupDocumentTouchmove)==null||c.call(a)}};
SU.prototype.startDragging=function(a,b){var c=this;if(!(this._activeDragInstances().indexOf(a)>-1)&&(this._styleLoader.load(Lzd),this._activeDragInstances.update(function(f){return[].concat(n(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)},Jzd],["selectstart",this._preventDefaultWhileDragging,Kzd]];b?e.push(["touchend",d,Jzd],["touchcancel",d,Jzd]):e.push(["mouseup",d,
Jzd]);b||e.push(["mousemove",function(f){return c.pointerMove.next(f)},Kzd]);this._ngZone.runOutsideAngular(function(){c._globalListeners=e.map(function(f){var g=l(f);f=g.next().value;var k=g.next().value;g=g.next().value;return c._renderer.listen(c._document,f,k,g)})})}};var Ozd=function(a,b){a._activeDragInstances.update(function(c){var d=c.indexOf(b);return d>-1?(c.splice(d,1),[].concat(n(c))):c});a._activeDragInstances().length===0&&a._clearGlobalListeners()};
SU.prototype.isDragging=function(a){return this._activeDragInstances().indexOf(a)>-1};SU.prototype.scrolled=function(a){var b=this,c=[this._scroll];a&&a!==this._document&&c.push(new Sd(function(d){return b._ngZone.runOutsideAngular(function(){var e=b._renderer.listen(a,"scroll",function(f){b._activeDragInstances().length&&d.next(f)},Jzd);return function(){e()}})}));return se.apply(null,n(c))};
var Qzd=function(a,b,c){a._domNodesToDirectives!=null||(a._domNodesToDirectives=new WeakMap);a._domNodesToDirectives.set(b,c)},Rzd=function(a,b){var c;(c=a._domNodesToDirectives)==null||c.delete(b)},Szd=function(a,b){var c;return((c=a._domNodesToDirectives)==null?void 0:c.get(b))||null};
SU.prototype.ngOnDestroy=function(){var a=this;this._dragInstances.forEach(function(b){return Pzd(a,b)});this._dropInstances.forEach(function(b){a._dropInstances.delete(b)});this._domNodesToDirectives=null;this._clearGlobalListeners();this.pointerMove.complete();this.pointerUp.complete()};SU.prototype._clearGlobalListeners=function(){var a;(a=this._globalListeners)==null||a.forEach(function(b){return b()});this._globalListeners=void 0};SU.\u0275fac=function(a){return new (a||SU)};
SU.\u0275prov=Cc({token:SU,factory:SU.\u0275fac,providedIn:"root"});var Tzd=new bd("CDK_DRAG_PARENT");var Uzd=new bd("CdkDragHandle"),TU=function(){this.element=q(Gd);this._parentDrag=q(Tzd,{optional:!0,skipSelf:!0});this._dragDropRegistry=q(SU);this._stateChanges=new rf;this._disabled=!1;var a;(a=this._parentDrag)==null||a._addHandle(this)};TU.prototype.ngAfterViewInit=function(){if(!this._parentDrag)for(var a=this.element.nativeElement.parentElement;a;){var b=Szd(this._dragDropRegistry,a);if(b){this._parentDrag=b;b._addHandle(this);break}a=a.parentElement}};
TU.prototype.ngOnDestroy=function(){var a;(a=this._parentDrag)==null||a._removeHandle(this);this._stateChanges.complete()};da.Object.defineProperties(TU.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=a;this._stateChanges.next(this)}}});TU.\u0275fac=function(a){return new (a||TU)};
TU.\u0275dir=af({type:TU,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[2,"cdkDragHandleDisabled","disabled",bh]},features:[Ig([{provide:Uzd,useExisting:TU}])]});new bd("CdkDragPlaceholder");new bd("CdkDragPreview");var kfb=0;var Vzd=function(a){this._document=a;this.positions=new Map};Vzd.prototype.clear=function(){this.positions.clear()};Vzd.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:lfb(c)})})};
var Wzd=function(a,b){var c=Qh(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,g=b.left-d;a.positions.forEach(function(k,m){k.clientRect&&c!==m&&c.contains(m)&&nfb(k.clientRect,f,g)});b.top=e;b.left=d;return{top:f,left:g}};Vzd.prototype.getViewportScrollPosition=function(){return{top:window.scrollY,left:window.scrollX}};var Xzd=new Set(["position"]),Yzd=function(a,b,c,d,e,f,g,k,m,r){this._document=a;this._rootElement=b;this._direction=c;this._initialDomRect=d;this._previewTemplate=e;this._previewClass=f;this._pickupPositionOnPage=g;this._initialTransform=k;this._zIndex=m;this._renderer=r};h=Yzd.prototype;h.attach=function(a){this._preview=this._createPreview();a.appendChild(this._preview);"showPopover"in this._preview&&this._preview.showPopover()};
h.destroy=function(){this._preview.remove();var a;(a=this._previewEmbeddedView)==null||a.destroy();this._preview=this._previewEmbeddedView=null};h.setTransform=function(a){this._preview.style.transform=a};h.getBoundingClientRect=function(){return this._preview.getBoundingClientRect()};h.addClass=function(a){this._preview.classList.add(a)};h.addEventListener=function(a,b){return this._renderer.listen(this._preview,a,b)};
h._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=pfb(c,this._document);this._previewEmbeddedView=c;a.matchSize?vfb(e,d):e.style.transform=ufb(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else e=jfb(this._rootElement),vfb(e,this._initialDomRect),this._initialTransform&&(e.style.transform=this._initialTransform);
qfb(e.style,{"pointer-events":"none",margin:"showPopover"in e?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},Xzd);ss(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};da.Object.defineProperties(Yzd.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return this._preview}}});var Zzd={passive:!0},$zd={passive:!1},aAd={passive:!1,capture:!0},rfb=new Set(["position"]),dAd=function(a,b,c,d,e,f,g){var k=this;this._config=b;this._document=c;this._ngZone=d;this._viewportRuler=e;this._dragDropRegistry=f;this._renderer=g;this._anchor=null;this._passiveTransform={x:0,y:0};this._activeTransform={x:0,y:0};this._hasStartedDragging=qg.apply(null,[!1].concat(n([])));this._moveEvents=new rf;this._resizeSubscription=this._scrollSubscription=this._pointerUpSubscription=this._pointerMoveSubscription=
Od.EMPTY;this._boundaryElement=null;this._nativeInteractionsEnabled=!0;this._handles=[];this._disabledHandles=new Set;this._direction="ltr";this.lockAxis=null;this.dragStartDelay=0;this.scale=1;this._disabled=!1;this.beforeStarted=new rf;this.started=new rf;this.released=new rf;this.ended=new rf;this.entered=new rf;this.exited=new rf;this.dropped=new rf;this.moved=this._moveEvents;this._pointerDown=function(m){k.beforeStarted.next();if(k._handles.length){var r=k._getTargetHandle(m);!r||k._disabledHandles.has(r)||
k.disabled||k._initializeDragSequence(r,m)}else k.disabled||k._initializeDragSequence(k._rootElement,m)};this._pointerMove=function(m){var r=k._getPointerPositionOnPage(m);if(k._hasStartedDragging()){m.cancelable&&m.preventDefault();var w=k._getConstrainedPointerPosition(r);k._hasMoved=!0;k._lastKnownPointerPosition=r;k._updatePointerDirectionDelta(w);if(k._dropContainer)k._updateActiveDropContainer(w,r);else{r=k.constrainPosition?k._initialDomRect:k._pickupPositionOnPage;var x=k._activeTransform;
x.x=w.x-r.x+k._passiveTransform.x;x.y=w.y-r.y+k._passiveTransform.y;k._applyRootElementTransform(x.x,x.y)}k._moveEvents.observers.length&&k._ngZone.run(function(){k._moveEvents.next({source:k,pointerPosition:w,event:m,distance:k._getDragDistance(w),delta:k._pointerDirectionDelta})})}else Math.abs(r.x-k._pickupPositionOnPage.x)+Math.abs(r.y-k._pickupPositionOnPage.y)>=k._config.dragStartThreshold&&((r=Date.now()>=k._dragStartTime+k._getDragStartDelay(m),x=k._dropContainer,r)?x&&(x.isDragging()||x._activeSiblings.size>
0)||(m.cancelable&&m.preventDefault(),k._hasStartedDragging.set(!0),k._ngZone.run(function(){return k._startDragSequence(m)})):k._endDragSequence(m))};this._pointerUp=function(m){k._endDragSequence(m)};this._nativeDragStart=function(m){if(k._handles.length){var r=k._getTargetHandle(m);!r||k._disabledHandles.has(r)||k.disabled||m.preventDefault()}else k.disabled||m.preventDefault()};bAd(cAd(this,a),b.parentDragRef||null);this._parentPositions=new Vzd(c);Nzd(f,this)};
dAd.prototype.getPlaceholderElement=function(){return this._placeholder};dAd.prototype.getRootElement=function(){return this._rootElement};
var eAd=function(a){return a.isDragging()?a.getPlaceholderElement():a.getRootElement()},fAd=function(a,b){a._handles=b.map(function(d){return Uh(d)});a._handles.forEach(function(d){return ss(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},cAd=function(a,b){var c=Uh(b);if(c!==a._rootElement){a._removeRootElementListeners();var d=a._renderer;a._rootElementCleanups=a._ngZone.runOutsideAngular(function(){return[d.listen(c,
"mousedown",a._pointerDown,$zd),d.listen(c,"touchstart",a._pointerDown,Zzd),d.listen(c,"dragstart",a._nativeDragStart,$zd)]});a._initialTransform=void 0;a._rootElement=c}typeof SVGElement!=="undefined"&&a._rootElement instanceof SVGElement&&(a._ownerSVGElement=a._rootElement.ownerSVGElement);return a},gAd=function(a,b){a._boundaryElement=b?Uh(b):null;a._resizeSubscription.unsubscribe();b&&(a._resizeSubscription=a._viewportRuler.change(10).subscribe(function(){return a._containInsideBoundaryOnResize()}));
return a},bAd=function(a,b){a._parentDragRef=b};h=dAd.prototype;
h.dispose=function(){this._removeRootElementListeners();if(this.isDragging()){var a;(a=this._rootElement)==null||a.remove()}var b;(b=this._marker)==null||b.remove();this._destroyPreview();this._destroyPlaceholder();Pzd(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._marker=this._parentDragRef=null};h.isDragging=function(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)};h.reset=function(){this._rootElement.style.transform=this._initialTransform||"";this._activeTransform={x:0,y:0};this._passiveTransform={x:0,y:0}};
h.withDirection=function(a){this._direction=a;return this};h._withDropContainer=function(a){this._dropContainer=a};h.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)};h._sortFromLastPointerPosition=function(){var a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)};
h._removeListeners=function(){this._pointerMoveSubscription.unsubscribe();this._pointerUpSubscription.unsubscribe();this._scrollSubscription.unsubscribe();var a;(a=this._cleanupShadowRootSelectStart)==null||a.call(this);this._cleanupShadowRootSelectStart=void 0};h._destroyPreview=function(){var a;(a=this._preview)==null||a.destroy();this._preview=null};
h._destroyPlaceholder=function(){var a;(a=this._anchor)==null||a.remove();var b;(b=this._placeholder)==null||b.remove();var c;(c=this._placeholderRef)==null||c.destroy();this._placeholder=this._anchor=this._placeholderRef=null};
h._endDragSequence=function(a){var b=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),Ozd(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();
Ozd(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();Ozd(this._dragDropRegistry,this)}};
h._startDragSequence=function(a){var b=this;zfb(a)&&(this._lastTouchEventTime=Date.now());this._toggleNativeDragInteractions();var c=this._getShadowRoot(),d=this._dropContainer;c&&this._ngZone.runOutsideAngular(function(){b._cleanupShadowRootSelectStart=b._renderer.listen(c,"selectstart",Afb,aAd)});if(d){var e=this._rootElement,f=e.parentNode,g=this._placeholder=this._createPlaceholderElement(),k=this._marker=this._marker||this._document.createComment("");f.insertBefore(k,e);this._initialTransform=
e.style.transform||"";this._preview=new Yzd(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));sfb(e,!1);this._document.body.appendChild(f.replaceChild(g,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:[])};
h._initializeDragSequence=function(a,b){var c=this;this._parentDragRef&&b.stopPropagation();var d=this.isDragging(),e=zfb(b),f=!e&&b.button!==0,g=this._rootElement,k=Qh(b),m=!e&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();e=e?bsa(b):asa(b);k&&k.draggable&&b.type==="mousedown"&&b.preventDefault();d||f||m||e||(this._handles.length&&(d=g.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(r){return c._updateOnScroll(r)}),this._boundaryElement&&(this._boundaryRect=lfb(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))};
h._cleanupDragArtifacts=function(a){var b=this;sfb(this._rootElement,!0);this._marker.parentNode.replaceChild(this._rootElement,this._marker);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),g=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:g,distance:f,dropPoint:e,event:a});c.drop(b,d,b._initialIndex,b._initialContainer,g,f,e,a);b._dropContainer=b._initialContainer})};
h._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(){var g=c._dropContainer.getItemIndex(c),k;g=((k=c._dropContainer.getItemAtIndex(g+1))==null?void 0:eAd(k))||null;c.exited.next({item:c,container:c._dropContainer});c._dropContainer.exit(c);
c._conditionallyInsertAnchor(f,c._dropContainer,g);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))};
h._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=yfb(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&&Qh(k)===a._preview.element&&k.propertyName==="transform")g(),d(),clearTimeout(f)},f=setTimeout(e,
c*1.5),g=a._preview.addEventListener("transitionend",e)})})};h._createPlaceholderElement=function(){var a=this._placeholderTemplate,b=a?a.template:null;b?(this._placeholderRef=a.viewContainer.createEmbeddedView(b,a.context),this._placeholderRef.detectChanges(),a=pfb(this._placeholderRef,this._document)):a=jfb(this._rootElement);a.style.pointerEvents="none";a.classList.add("cdk-drag-placeholder");return a};
h._getPointerPositionInElement=function(a,b,c){b=(b=b===this._rootElement?null:b)?b.getBoundingClientRect():a;c=zfb(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)}};
h._getPointerPositionOnPage=function(a){var b=this._getViewportScrollPosition(),c=zfb(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}};
h._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(),g=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(g,Math.min(e,c))}return{x:a,y:c}};
h._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};
h._toggleNativeDragInteractions=function(){if(this._rootElement&&this._handles){var a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,ss(this._rootElement,a))}};h._removeRootElementListeners=function(){var a;(a=this._rootElementCleanups)==null||a.forEach(function(b){return b()});this._rootElementCleanups=void 0};
h._applyRootElementTransform=function(a,b){var c=1/this.scale;a=ufb(a*c,b*c);b=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=b.transform&&b.transform!="none"?b.transform:"");b.transform=tfb(a,this._initialTransform)};h._applyPreviewTransform=function(a,b){var c,d=((c=this._previewTemplate)==null?0:c.template)?void 0:this._initialTransform;this._preview.setTransform(tfb(ufb(a,b),d))};
h._getDragDistance=function(a){var b=this._pickupPositionOnPage;return b?{x:a.x-b.x,y:a.y-b.y}:{x:0,y:0}};h._cleanupCachedDimensions=function(){this._boundaryRect=this._previewRect=void 0;this._parentPositions.clear()};
h._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,g=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?(g>0&&(a+=g),k>0&&(a-=k)):a=0;b===this._passiveTransform.x&&a===
this._passiveTransform.y||this.setFreeDragPosition({y:a,x:b})}}};h._getDragStartDelay=function(a){var b=this.dragStartDelay;return typeof b==="number"?b:zfb(a)?b.touch:b?b.mouse:0};
h._updateOnScroll=function(a){var b=Wzd(this._parentPositions,a);b&&(a=Qh(a),this._boundaryRect&&a!==this._boundaryElement&&a.contains(this._boundaryElement)&&nfb(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)))};
h._getViewportScrollPosition=function(){var a;return((a=this._parentPositions.positions.get(this._document))==null?void 0:a.scrollPosition)||this._parentPositions.getViewportScrollPosition()};h._getShadowRoot=function(){this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=msa(this._rootElement));return this._cachedShadowRoot};
h._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):Uh(c)};h._getPreviewRect=function(){this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect);return this._previewRect};
h._getTargetHandle=function(a){return this._handles.find(function(b){return a.target&&(a.target===b||b.contains(a.target))})};h._conditionallyInsertAnchor=function(a,b,c){if(a===this._initialContainer){var d;(d=this._anchor)==null||d.remove();this._anchor=null}else if(b===this._initialContainer&&b.hasAnchor){var e;a=(e=this._anchor)!=null?e:this._anchor=jfb(this._placeholder);a.classList.remove("cdk-drag-placeholder");a.classList.add("cdk-drag-anchor");a.style.transform="";c?c.before(a):Uh(b.element).appendChild(a)}};
da.Object.defineProperties(dAd.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 ss(b,a)}))}}});var hAd=function(a,b){this._document=a;this._dragDropRegistry=b;this._previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};this._relatedNodes=[]};h=hAd.prototype;h.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)};
h.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 g=this._activeItems[e];if(f.drag===g&&f.overlaps&&f.deltaX===d.x&&f.deltaY===d.y)return null;var k=this.getItemIndex(a),m=a.getPlaceholderElement();a=g.getRootElement();e>k?a.after(m):a.before(m);ts(this._activeItems,k,e);b=this._getRootNode().elementFromPoint(b,c);f.deltaX=d.x;f.deltaY=d.y;f.drag=g;f.overlaps=a===b||a.contains(b);return{previousIndex:k,
currentIndex:e}};h.enter=function(a,b,c,d){var e=this._activeItems.indexOf(a);e>-1&&this._activeItems.splice(e,1);d=d==null||d<0?this._getItemIndexFromPointerPosition(a,b,c):d;d===-1&&(d=this._getClosestItemIndexToPointer(a,b,c));(b=this._activeItems[d])&&!this._dragDropRegistry.isDragging(b)?(this._activeItems.splice(d,0,a),b.getRootElement().before(a.getPlaceholderElement())):(this._activeItems.push(a),this._element.appendChild(a.getPlaceholderElement()))};
h.withItems=function(a){this._activeItems=a.slice()};h.withSortPredicate=function(a){this._sortPredicate=a};h.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};h.getActiveItemsSnapshot=function(){return this._activeItems};
h.getItemIndex=function(a){return this._activeItems.indexOf(a)};h.getItemAtIndex=function(a){return this._activeItems[a]||null};h.updateOnScroll=function(){var a=this;this._activeItems.forEach(function(b){a._dragDropRegistry.isDragging(b)&&b._sortFromLastPointerPosition()})};h.withElementContainer=function(a){a!==this._element&&(this._element=a,this._rootNode=void 0)};
h._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};h._getRootNode=function(){this._rootNode||(this._rootNode=msa(this._element)||this._document);return this._rootNode};
h._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 g=this._activeItems[f];g!==a&&(g=g.getRootElement().getBoundingClientRect(),g=Math.hypot(b-g.x,c-g.y),g<d&&(d=g,e=f))}return e};var iAd=function(a){this._dragDropRegistry=a;this._itemPositions=[];this.orientation="vertical";this._previousSwap={drag:null,delta:0,overlaps:!1}};h=iAd.prototype;h.start=function(a){this.withItems(a)};
h.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 g=this.orientation==="horizontal",k=e.findIndex(function(J){return J.drag===a}),m=e[f],r=m.clientRect,w=k>f?1:-1,x=this._getItemOffsetPx(e[k].clientRect,r,w),D=this._getSiblingOffsetPx(k,e,w),H=e.slice();ts(e,k,f);e.forEach(function(J,O){if(H[O]!==J){var R=J.drag===a;O=R?x:D;R=R?a.getPlaceholderElement():J.drag.getRootElement();J.offset+=O;var V=Math.round(1/J.drag.scale*
J.offset);g?(R.style.transform=tfb("translate3d("+V+"px, 0, 0)",J.initialTransform),nfb(J.clientRect,0,O)):(R.style.transform=tfb("translate3d(0, "+V+"px, 0)",J.initialTransform),nfb(J.clientRect,O,0))}});this._previousSwap.overlaps=mfb(r,b,c);this._previousSwap.drag=m.drag;this._previousSwap.delta=g?d.x:d.y;return{previousIndex:k,currentIndex:f}};
h.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),g=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(g,b),e.splice(d,0,a)):(this._element.appendChild(g),e.push(a));g.style.transform="";this._cacheItemPositions()};
h.withItems=function(a){this._activeDraggables=a.slice();this._cacheItemPositions()};h.withSortPredicate=function(a){this._sortPredicate=a};
h.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(g){return g.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};h.getActiveItemsSnapshot=function(){return this._activeDraggables};
h.getItemIndex=function(a){return this._getVisualItemPositions().findIndex(function(b){return b.drag===a})};h.getItemAtIndex=function(a){var b;return((b=this._getVisualItemPositions()[a])==null?void 0:b.drag)||null};h.updateOnScroll=function(a,b){var c=this;this._itemPositions.forEach(function(d){nfb(d.clientRect,a,b)});this._itemPositions.forEach(function(d){d=d.drag;c._dragDropRegistry.isDragging(d)&&d._sortFromLastPointerPosition()})};h.withElementContainer=function(a){this._element=a};
h._cacheItemPositions=function(){var a=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(function(b){var c=eAd(b);return{drag:b,offset:0,initialTransform:c.style.transform||"",clientRect:lfb(c)}}).sort(function(b,c){return a?b.clientRect.left-c.clientRect.left:b.clientRect.top-c.clientRect.top})};h._getVisualItemPositions=function(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions};
h._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};h._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};
h._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};
h._getItemIndexFromPointerPosition=function(a,b,c,d){var e=this,f=this.orientation==="horizontal",g=this._itemPositions.findIndex(function(k){var m=k.drag;k=k.clientRect;if(m===a)return!1;if(d){var r=f?d.x:d.y;if(m===e._previousSwap.drag&&e._previousSwap.overlaps&&r===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 g!==-1&&this._sortPredicate(g,a)?g:-1};var kAd=function(a,b,c,d,e){var f=this;this._dragDropRegistry=b;this._ngZone=d;this._viewportRuler=e;this.sortingDisabled=this.disabled=!1;this.lockAxis=null;this.autoScrollDisabled=!1;this.autoScrollStep=2;this.hasAnchor=!1;this.enterPredicate=function(){return!0};this.sortPredicate=function(){return!0};this.beforeStarted=new rf;this.entered=new rf;this.exited=new rf;this.dropped=new rf;this.sorted=new rf;this.receivingStarted=new rf;this.receivingStopped=new rf;this._isDragging=!1;this._draggables=
[];this._siblings=[];this._activeSiblings=new Set;this._viewportScrollSubscription=Od.EMPTY;this._horizontalScrollDirection=this._verticalScrollDirection=0;this._stopScrollTimers=new rf;this._cachedShadowRoot=null;this._scrollableElements=[];this._direction="ltr";this._startScrollInterval=function(){f._stopScrolling();kia(0,eDc).pipe(Af(f._stopScrollTimers)).subscribe(function(){var g=f._scrollNode,k=f.autoScrollStep;f._verticalScrollDirection===1?g.scrollBy(0,-k):f._verticalScrollDirection===2&&
g.scrollBy(0,k);f._horizontalScrollDirection===1?g.scrollBy(-k,0):f._horizontalScrollDirection===2&&g.scrollBy(k,0)})};a=this.element=Uh(a);this._document=c;jAd(this,"vertical").withElementContainer(a);Mzd(b,this);this._parentPositions=new Vzd(c)};h=kAd.prototype;
h.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)};h.isDragging=function(){return this._isDragging};
h.start=function(){this._draggingStarted();this._notifyReceivingSiblings()};h.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)})};h.exit=function(a){this._reset();this.exited.next({item:a,container:this})};
h.drop=function(a,b,c,d,e,f,g,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:g,event:k})};h.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))};
h.withDirection=function(a){this._direction=a;this._sortStrategy instanceof iAd&&(this._sortStrategy.direction=a);return this};h.connectedTo=function(a){this._siblings=a.slice();return this};
var jAd=function(a,b){if(b==="mixed")a._sortStrategy=new hAd(a._document,a._dragDropRegistry);else{var c=new iAd(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},lAd=function(a,b){var c=a._container;a._scrollableElements=b.indexOf(c)===-1?[c].concat(n(b)):b.slice()};h=kAd.prototype;
h.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}};h.getItemIndex=function(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)};
h.getItemAtIndex=function(a){return this._isDragging?this._sortStrategy.getItemAtIndex(a):this._draggables[a]||null};h._sortItem=function(a,b,c,d){!this.sortingDisabled&&this._domRect&&ofb(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})};
h._startScrollingIfNecessary=function(a,b){var c=this;if(!this.autoScrollDisabled){var d=0,e=0;this._parentPositions.positions.forEach(function(m,r){if(r!==c._document&&m.clientRect&&!k&&ofb(m.clientRect,a,b)){var w=m.clientRect;m=Bfb(w,b);w=Cfb(w,a);var x=0,D=0;if(m){var H=r.scrollTop;m===1?H>0&&(x=1):r.scrollHeight-H>r.clientHeight&&(x=2)}w&&(m=r.scrollLeft,c._direction==="rtl"?w===2?m<0&&(D=2):r.scrollWidth+m>r.clientWidth&&(D=1):w===1?m>0&&(D=1):r.scrollWidth-m>r.clientWidth&&(D=2));m=l([x,D]);
d=m.next().value;e=m.next().value;if(d||e)k=r}});if(!d&&!e){var f=this._viewportRuler.getViewportSize(),g=f.width;f=f.height;g={width:g,height:f,top:0,right:g,bottom:f,left:0};d=Bfb(g,b);e=Cfb(g,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())}};
h._stopScrolling=function(){this._stopScrollTimers.next()};h._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()};
h._cacheParentPositions=function(){this._parentPositions.cache(this._scrollableElements);this._domRect=this._parentPositions.positions.get(this._container).clientRect};h._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()};
h._isOverContainer=function(a,b){return this._domRect!=null&&mfb(this._domRect,a,b)};h._getSiblingContainerFromPosition=function(a,b,c){return this._siblings.find(function(d){return d._canReceive(a,b,c)})};h._canReceive=function(a,b,c){return this._domRect&&mfb(this._domRect,b,c)&&this.enterPredicate(a,this)?(a=this._getShadowRoot().elementFromPoint(b,c))?a===this._container||this._container.contains(a):!1:!1};
h._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}))};h._stopReceiving=function(a){this._activeSiblings.delete(a);this._viewportScrollSubscription.unsubscribe();this.receivingStopped.next({initiator:a,receiver:this})};
h._listenToScrollEvents=function(){var a=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(b){a.isDragging()?(b=Wzd(a._parentPositions,b))&&a._sortStrategy.updateOnScroll(b.top,b.left):a._activeSiblings.size>0&&a._cacheParentPositions()})};h._getShadowRoot=function(){this._cachedShadowRoot||(this._cachedShadowRoot=msa(this._container)||this._document);return this._cachedShadowRoot};
h._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 mAd={dragStartThreshold:5,pointerDirectionChangeThreshold:5},UU=function(){this._document=q(Yh);this._ngZone=q(Tg);this._viewportRuler=q(Xh);this._dragDropRegistry=q(SU);this._renderer=q(Ye).createRenderer(null,null)};UU.prototype.createDrag=function(a,b){b=b===void 0?mAd:b;return new dAd(a,b,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)};UU.\u0275fac=function(a){return new (a||UU)};UU.\u0275prov=Cc({token:UU,factory:UU.\u0275fac,providedIn:"root"});var nAd=new bd("CdkDropList"),VU=function(){var a=this;this.element=q(Gd);this.dropContainer=q(nAd,{optional:!0,skipSelf:!0});this._ngZone=q(Tg);this._viewContainerRef=q(ig);this._dir=q(ii,{optional:!0});this._changeDetectorRef=q(Yx);this._selfHandle=q(Uzd,{optional:!0,self:!0});this._parentDrag=q(Tzd,{optional:!0,skipSelf:!0});this._dragDropRegistry=q(SU);this._destroyed=new rf;this._handles=new Xj([]);this.lockAxis=null;this.scale=1;this.started=new ui;this.released=new ui;this.ended=new ui;this.entered=
new ui;this.exited=new ui;this.dropped=new ui;this.moved=new Sd(function(d){var e=a._dragRef.moved.pipe(A(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=q(xe);var b=this.dropContainer,c=q(Izd,{optional:!0});this._dragRef=q(UU).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;Qzd(this._dragDropRegistry,this.element.nativeElement,this);c&&this._assignDefaults(c);b&&(b.addItem(this),b._dropListRef.beforeStarted.pipe(Af(this._destroyed)).subscribe(function(){a._dragRef.scale=a.scale}));this._syncInputs(this._dragRef);this._handleEvents(this._dragRef)};h=VU.prototype;h.getPlaceholderElement=function(){return this._dragRef.getPlaceholderElement()};h.getRootElement=function(){return this._dragRef.getRootElement()};
h.reset=function(){this._dragRef.reset()};h.setFreeDragPosition=function(a){this._dragRef.setFreeDragPosition(a)};h.ngAfterViewInit=function(){var a=this;De(function(){a._updateRootElement();a._setupHandlesListener();a._dragRef.scale=a.scale;a.freeDragPosition&&a._dragRef.setFreeDragPosition(a.freeDragPosition)},{injector:this._injector})};
h.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)};
h.ngOnDestroy=function(){var a=this;this.dropContainer&&this.dropContainer.removeItem(this);Rzd(this._dragDropRegistry,this.element.nativeElement);this._ngZone.runOutsideAngular(function(){a._handles.complete();a._destroyed.next();a._destroyed.complete();a._dragRef.dispose()})};h._addHandle=function(a){var b=this._handles.getValue();b.push(a);this._handles.next(b)};h._removeHandle=function(a){var b=this._handles.getValue();a=b.indexOf(a);a>-1&&(b.splice(a,1),this._handles.next(b))};
h._setPreviewTemplate=function(a){this._previewTemplate=a};h._resetPreviewTemplate=function(a){a===this._previewTemplate&&(this._previewTemplate=null)};h._setPlaceholderTemplate=function(a){this._placeholderTemplate=a};h._resetPlaceholderTemplate=function(a){a===this._placeholderTemplate&&(this._placeholderTemplate=null)};
h._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)}cAd(this._dragRef,b||a)};h._getBoundaryElement=function(){var a=this.boundaryElement;return a?typeof a==="string"?this.element.nativeElement.closest(a):Uh(a):null};
h._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:Vh(d);a.constrainPosition=b.constrainPosition;a.previewClass=b.previewClass;d=gAd(a,b._getBoundaryElement());d._placeholderTemplate=e;d._previewTemplate=f;d._previewContainer=b.previewContainer||"global";c&&a.withDirection(c.value)}});a.beforeStarted.pipe(mf(1)).subscribe(function(){if(b._parentDrag)a._parentDragRef=b._parentDrag._dragRef;else for(var c=b.element.nativeElement.parentElement;c;){var d=Szd(b._dragDropRegistry,c);if(d){a._parentDragRef=d._dragRef;
break}c=c.parentElement}})};
h._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})})};
h._assignDefaults=function(a){var b=a.lockAxis,c=a.dragStartDelay,d=a.constrainPosition,e=a.previewClass,f=a.boundaryElement,g=a.draggingDisabled,k=a.rootElementSelector;a=a.previewContainer;this.disabled=g==null?!1:g;this.dragStartDelay=c||0;this.lockAxis=b||null;d&&(this.constrainPosition=d);e&&(this.previewClass=e);f&&(this.boundaryElement=f);k&&(this.rootElementSelector=k);a&&(this.previewContainer=a)};
h._setupHandlesListener=function(){var a=this;this._handles.pipe(Bf(function(b){b=b.map(function(c){return c.element});a._selfHandle&&a.rootElementSelector&&b.push(a.element);fAd(a._dragRef,b)}),zf(function(b){return se.apply(null,n(b.map(function(c){return c._stateChanges.pipe(yf(c))})))}),Af(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),ss(d,!0)):c._disabledHandles.has(d)&&
(c._disabledHandles.delete(d),ss(d,c.disabled))})};da.Object.defineProperties(VU.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}}});VU.\u0275fac=function(a){return new (a||VU)};
VU.\u0275dir=af({type:VU,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(a,b){a&2&&yg("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",bh],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",ch]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[Ig([{provide:Tzd,
useExisting:VU}]),Gx]});var oAd=new bd("CdkDropListGroup");var WU=function(){var a=this;this.element=q(Gd);this._changeDetectorRef=q(Yx);this._scrollDispatcher=q(Zh);this._dir=q(ii,{optional:!0});this._group=q(oAd,{optional:!0,skipSelf:!0});this._destroyed=new rf;this.connectedTo=[];this.id=q(hi).getId("cdk-drop-list-");this.lockAxis=null;this.enterPredicate=function(){return!0};this.sortPredicate=function(){return!0};this.dropped=new ui;this.entered=new ui;this.exited=new ui;this.sorted=new ui;this._unsortedItems=new Set;var b=q(UU),c=q(Izd,{optional:!0});
this._dropListRef=new kAd(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);WU._dropLists.push(this);this._group&&this._group._items.add(this)};
WU.prototype.addItem=function(a){this._unsortedItems.add(a);a._dragRef._withDropContainer(this._dropListRef);this._dropListRef.isDragging()&&this._syncItemsWithRef(pAd(this).map(function(b){return b._dragRef}))};WU.prototype.removeItem=function(a){this._unsortedItems.delete(a);this._latestSortedRefs&&(a=this._latestSortedRefs.indexOf(a._dragRef),a>-1&&(this._latestSortedRefs.splice(a,1),this._syncItemsWithRef(this._latestSortedRefs)))};
var pAd=function(a){return Array.from(a._unsortedItems).sort(function(b,c){return eAd(b._dragRef).compareDocumentPosition(eAd(c._dragRef))&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})};h=WU.prototype;h.ngOnDestroy=function(){var a=WU._dropLists.indexOf(this);a>-1&&WU._dropLists.splice(a,1);this._group&&this._group._items.delete(this);this._latestSortedRefs=void 0;this._unsortedItems.clear();this._dropListRef.dispose();this._destroyed.next();this._destroyed.complete()};
h._setupInputSyncSubscription=function(a){var b=this;this._dir&&this._dir.change.pipe(yf(this._dir.value),Af(this._destroyed)).subscribe(function(c){return a.withDirection(c)});a.beforeStarted.subscribe(function(){var c=Rh(b.connectedTo).map(function(e){return typeof e==="string"?WU._dropLists.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=VGc(b._scrollDispatcher,b.element).map(function(e){return e.elementRef.nativeElement});
lAd(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=Vh(b.autoScrollStep,2);a.hasAnchor=b.hasAnchor;jAd(a.connectedTo(c.filter(function(e){return e&&e!==b}).map(function(e){return e._dropListRef})),b.orientation)})};
h._handleEvents=function(a){var b=this;a.beforeStarted.subscribe(function(){b._syncItemsWithRef(pAd(b).map(function(c){return c._dragRef}));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()});se(a.receivingStarted,a.receivingStopped).subscribe(function(){return b._changeDetectorRef.markForCheck()})};
h._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";this.lockAxis=b||null};h._syncItemsWithRef=function(a){this._latestSortedRefs=a;this._dropListRef.withItems(a)};
da.Object.defineProperties(WU.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}}});WU._dropLists=[];WU.\u0275fac=function(a){return new (a||WU)};
WU.\u0275dir=af({type:WU,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(a,b){a&2&&(Jf("id",b.id),yg("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",bh],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",bh],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",bh],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"],hasAnchor:[2,"cdkDropListHasAnchor",
"hasAnchor",bh]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[Ig([{provide:oAd,useValue:void 0},{provide:nAd,useExisting:WU}])]});var XU=function(){};XU.\u0275fac=function(a){return new (a||XU)};XU.\u0275mod=$e({type:XU});XU.\u0275inj=Dc({providers:[UU],imports:[aA]});var qAd=["addLink"],rAd=["showFewer"],sAd=["showMore"],tAd=["editButton"],uAd=["removeButton"],vAd=[[["",8,"value-action"]]],Ffb=function(a,b){return{item:a,$index:b}},Zfb=function(a){return{q:a}},wAd=[Object.assign({},pgb("start","bottom"),qgb("start","top"),{offsetY:8}),Object.assign({},pgb("center","bottom"),qgb("center","top"),{offsetY:8}),Object.assign({},pgb("end","bottom"),qgb("end","top"),{offsetY:8}),Object.assign({},pgb("start","top"),qgb("start","bottom"),{offsetY:-8}),Object.assign({},
pgb("end","top"),qgb("end","bottom"),{offsetY:-8})],YU=function(){LO.apply(this,arguments);var a=this;this.cdr=q(MO,{self:!0});this.dateFormatter=q(TQ);this.analytics=q(PO);this.liveAnnouncer=q(Cz);this.principalTypesFridge=q(pP);this.issuePermissionService=q(NP);this.activeSession=q(Zu);this.customRepeatedEnumDialogService=q(JU);this.OVERLAY_POSITION_LIST=wAd;this.defaultLineCount=Number.POSITIVE_INFINITY;this.isDefaultOrAllowedValues=this.preventDuplicates=this.readonly=!1;this.values=null;this.providedValues$=
new vf(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 KO;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 KO;this.enableTeamAnnotations=
this.activeSession.isInternalSession();this.environmentType=this.activeSession.getEnvironmentType();this.teamId=this.invalidMessage="";this.isString=VSa;this.groups$=this.providedValues$.pipe(zf(function(b){return a.extractGroups(b)}),yf(new Set));this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.focusOnTitle=!1};Z(YU,LO);YU.\u0275dir=LO.\u0275dir;
YU.prototype.ngOnChanges=function(a){if(a.values){var b;this.providedValues$.next((b=this.values)!=null?b:[])}a.showInternalOnlyFieldBadge&&(this.showInternalOnlyFieldBadge=a.showInternalOnlyFieldBadge.currentValue)};YU.prototype.ngOnInit=function(){Mfb(this)};
var Mfb=function(a){a.sortedEnumChoices=[].concat(n(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})},Nfb=function(a){var b=a.values||[],c=[].concat(n(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})},Pfb=function(a){var b;return y(function(c){if(c.nextAddress==
1)return a.customRepeatedEnumDialogService.isOpen()?c.return():z(c,a.customRepeatedEnumDialogService.open({customFieldTitle:a.title,allowedValues:xAd(a),selectedValues:a.values}),2);(b=c.yieldResult)&&yAd(a,Array.from(b));$d(c)})},us=function(a){return a.type==="REPEATED_ENUM"&&a.sortedEnumChoices.length>1E3},xAd=function(a){return a.sortedEnumChoices.map(function(b){return b.displayText})},yAd=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);ggb(a)&&vs(a,!0)};h=YU.prototype;h.isCustomField=function(){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
h.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,g;(e=b.removeButtons)==null||(f=e.get(d))==null||(g=f.nativeElement)==null||g.focus()}else{var k,m;(k=b.addLinkEl)==null||(m=k.nativeElement)==null||m.focus()}})};
h.addItems=function(a){var b=[];this.values=this.values||[];if(a)if(this.type==="REPEATED_DATE"){var c=FSa(a);this.preventDuplicates&&this.values.find(function(f){return Gm(f,c)})||b.push(c)}else if(this.type==="REPEATED_NUMERIC"&&WSa(this.values)&&WSa(b))a=Number(a),this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(Im(this.values)&&Im(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;this.type==="CODE_CHANGES"&&(mr(d)||(e=P3a(d)));e&&!this.values.includes(e)&&b.push(e)}}this.isDefaultOrAllowedValues&&this.type!=="REPEATED_DATE"||this.closeAddPopup(!0);b.length!==0&&(this.values=[].concat(n(this.values),n(b)),this.valuesChange.emit({values:this.values,added:b}))};h.onDrop=function(a){ts(this.values,a.previousIndex,a.currentIndex);this.valuesChange.emit({values:this.values})};
h.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()};h.closeInlineDialog=function(a){a.disabled||(a.disabled=!0,a.disabled=!1)};
var vs=function(a,b,c){c==null||c.stopPropagation();c==null||c.preventDefault();a.showingAll=b;a.cdr.markForCheck();a.schedule(function(){var d,e,f;(d=(f=a.showFewer)!=null?f:a.showMore)==null||(e=d.nativeElement)==null||e.focus()})},ggb=function(a){return!!a.values&&a.values.length>a.defaultLineCount+1},Hfb=function(a){return a.values&&a.type==="REPEATED_DATE"?a.values.map(function(b){return a.dateFormatter.formatUserCalendar(Cm(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 VSa(b)?b:USa(b)?""+b:a.dateFormatter.formatUserCalendar(Cm(b))})};h=YU.prototype;
h.textPopupSubmit=function(a,b){var c=this,d,e,f;return y(function(g){if(g.nextAddress==1)return c.inputValidator?z(g,c.inputValidator(a.value.input),3):g.jumpTo(2);g.nextAddress!=2&&(c.invalidMessage=g.yieldResult,c.cdr.markForCheck());if(!a.valid||c.invalidMessage)return g.return();d=a.value.input;(e=a)==null||e.reset();(f=b.querySelector("input"))==null||f.focus();c.addItems(d);$d(g)})};h.trackClick=function(a){this.analytics.trackEvent("linkField","click",a)};h.getUser=function(a){return this.userMap.get(a)};
h.schedule=function(a){this.subscriptions.add(pe.schedule(a))};h.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 jgb=function(a,b){return b.displayText+", "+(a.enumPendingValues.has(b.value)?"selected":"not selected")};
YU.prototype.extractGroups=function(a){if(!this.isUser)return be(new Set([]));var b=function(c){return c.principalType==="GROUP"};return this.principalTypesFridge.watchSet(a).pipe(A(function(c){return new Set(c.filter(b).map(function(d){return d.email}))}))};YU.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(YU)))(b||YU)}}();
YU.\u0275cmp=C({type:YU,selectors:[["b-list-field"]],viewQuery:function(a,b){a&1&&(kg(qAd,5),kg(rAd,5),kg(sAd,5),kg(tAd,5,Gd),kg(uAd,5),kg(OF,5),kg(GD,5));if(a&2){var c;og(c=pg())&&(b.addLinkEl=c.first);og(c=pg())&&(b.showFewer=c.first);og(c=pg())&&(b.showMore=c.first);og(c=pg())&&(b.editButton=c.first);og(c=pg())&&(b.removeButtons=c);og(c=pg())&&(b.menuTriggers=c);og(c=pg())&&(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"},features:[Ig([MO]),Ff,Gx],ngContentSelectors:[".value-action"],decls:23,vars:28,consts:[["addLink",""],["itemRenderer",""],["metadataTools",""],["enumPopup","matMenu"],["textPopup",""],["datePopup",""],["editButton",""],["removeButton",""],["showFewer",""],["showMore",""],["textPopupForm","ngForm","formEl",""],["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","","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"]],template:function(a,b){if(a&1){var c=t();fg(vAd);K(0,"div")(1,"div",11)(2,"div",12);N("focusin",function(){u(c);return v(b.focusOnTitle=!0)})("focusout",function(){u(c);return v(b.focusOnTitle=!1)});F(3,Dfb,2,1,"label");F(4,Efb,1,0,"mat-icon",13);L();K(5,"div",14);N("cdkDropListDropped",function(d){u(c);return v(b.onDrop(d))});F(6,Ifb,4,5,"collapsible-panel",15)(7,Lfb,4,2);K(8,
"div",16,0);F(10,Ufb,3,1);gg(11);L()()();E(12,dgb,1,1,"ng-template",null,1,Og)(14,igb,2,2,"ng-template",null,2,Og);K(16,"mat-menu",null,3);E(18,lgb,2,0,"ng-template",17);L();E(19,ngb,12,9,"ng-template",null,4,Og)(21,ogb,1,2,"ng-template",null,5,Og);L()}a&2&&(yg("bv2-issue-metadata-list-field",!b.showInternalOnlyFieldBadge)("bv2-issue-metadata-field",!b.showInternalOnlyFieldBadge)("internal-only",b.showInternalOnlyFieldBadge)("empty-list-field-indication",b.isRequired&&!(b.values==null?0:b.values.length))("active",
b.isActive&&!b.listFieldDisabled&&!b.readonly),B(),yg("bv2-disabled",b.listFieldDisabled)("bv2-readonly",b.readonly),I("matTooltip",b.tooltip)("matTooltipPosition","left")("matTooltipDisabled",us(b)),Jf("aria-label",b.getAriaLabel()),B(),I("matTooltip",b.tooltip)("matTooltipPosition","left")("matTooltipDisabled",!us(b)),B(),G(b.title?3:-1),B(),G(b.showInternalOnlyFieldBadge?4:-1),B(),yg("draggable",(b.values==null?null:b.values.length)&&b.isDefaultOrAllowedValues),I("cdkDropListDisabled",!b.isDefaultOrAllowedValues),
B(),G(b.isCollapsible||us(b)?6:7),B(4),G(b.readonly?-1:10))},dependencies:[VU,WU,FU,OU,FT,mC,XB,xi,PB,QB,hC,WB,UB,ZA,XA,TA,OJ,NJ,LF,JF,KF,OF,hK,rB,iz,MA,oy,EF,MU,fU,DD,CD,GD],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:4px;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 zAd={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"},ZU=function(){};ZU.\u0275fac=function(a){return new (a||ZU)};ZU.\u0275mod=$e({type:ZU});ZU.\u0275inj=Dc({imports:[FN,xT,qC,HU,yU,mC,ZA,iK,aT,LU,gU,vU,XU,QU,RU,OJ,PU,RU,NU,Bzd,Ezd,YU]});var tgb=function(){return[]},$U=function(){this.disabled=this.readonly=!1;this.save=new KO},AAd=function(a){return a.issue.customFieldMap[a.field.customFieldId]};$U.prototype.getDisplayValue=function(){var a,b,c=(b=(a=AAd(this).displayValues)==null?void 0:a[0])!=null?b:null;c==="0.0"&&(c="0");return c};$U.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};
$U.prototype.getSingularValue=function(){var a=Lm(AAd(this));return a&&a.values===void 0?a:null};$U.prototype.getRepeatedValues=function(){var a=Lm(AAd(this));return a&&a.values!==void 0?a.values:null};da.Object.defineProperties($U.prototype,{isShared:{configurable:!0,enumerable:!0,get:function(){return this.field.shared}}});$U.\u0275fac=function(a){return new (a||$U)};
$U.\u0275cmp=C({type:$U,selectors:[["b-custom-field-editor"]],viewQuery:function(a,b){a&1&&kg(zU,5);if(a&2){var c;og(c=pg())&&(b.editField=c.first)}},hostVars:2,hostBindings:function(a,b){a&2&&yg("is-shared-field",b.isShared)},inputs:{issue:"issue",field:"field",readonly:"readonly",disabled:"disabled"},outputs:{save:"save"},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&&F(0,vgb,2,1);if(a&2){var c;G((c=
AAd(b))?0:-1,c)}},dependencies:[zU,YU],encapsulation:2});var aV=function(){};aV.\u0275fac=function(a){return new (a||aV)};aV.\u0275mod=$e({type:aV});aV.\u0275inj=Dc({imports:[FN,ZU,BU,$U]});var wgb=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 bV=function(){LO.apply(this,arguments);var a=this;this.componentFridge=q(AN);this.editIssueService=q(tR);this.issueFridge=q(GO);this.matDialog=q(gB);this.paramsService=q(JP);this.triageService=q(KQ);this.hasMultipleIssues=!1;this.subphase=this.phase=void 0;this.onCustomFieldBulkEdit=new KO;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(zf(function(b){return a.issueFridge.watchSet(b)}));this.components$=this.issues$.pipe(zf(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 Xj([]);this.issueRows$=he([this.issues$,this.components$]).pipe(A(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$148:void 0},e=c.next())f.issue$jscomp$148=
e.value,e=b.find(function(g){return function(k){return k.componentId===g.issue$jscomp$148.snapshot[0].componentId}}(f)),d.push(ygb(f.issue$jscomp$148,e));return d}));this.updatedIssueRows$=he([this.issueRows$,this.bulkEditUpdate$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return c.length?BAd(b,c):b}));this.customFieldConfigs$=fsd(this.triageService.triageDataFactory.get(this.teamId,this.triageViewId),this.phase,this.subphase);this.visibleCustomFields$=this.issueId$.pipe(zf(function(b){return b?
a.editIssueService.issueFields(b).visibleCustomFields$:be(void 0)}));this.customFields$=he([this.visibleCustomFields$,this.customFieldConfigs$]).pipe(A(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}),wf({refCount:!0,bufferSize:1}))};Z(bV,LO);bV.\u0275dir=LO.\u0275dir;
bV.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 zgb=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return c=a.matDialog.open(XT,{data:b,width:"500px"}),z(e,ee(eB(c)),2);d=e.yieldResult;if(!d)return e.return();a.onCustomFieldBulkEdit.emit(d);a.bulkEditUpdate$.next(d);$d(e)})};bV.prototype.updateCustomField=function(a,b){this.editableIssue.setCustomField(a,b)};
var BAd=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,g=l(c),k=g.next(),m={};!k.done;m={issueId$jscomp$217:void 0},k=g.next())m.issueId$jscomp$217=k.value,(k=a.find(function(r){return function(w){return w.issueId===r.issueId$jscomp$217}}(m)))&&(k.customFieldValueMap[f]=e)}return a};
bV.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(bV)))(b||bV)}}();
bV.\u0275cmp=C({type:bV,selectors:[["triage-custom-fields-editor"]],inputs:{editableIssue:"editableIssue",hasMultipleIssues:"hasMultipleIssues",phase:"phase",subphase:"subphase"},outputs:{onCustomFieldBulkEdit:"onCustomFieldBulkEdit"},features:[Ff],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&&F(0,Bgb,2,3)(1,Dgb,3,2);a&2&&G(b.hasMultipleIssues?0:1)},dependencies:[$U,ZA,XA,TA,py],encapsulation:2,changeDetection:0});var CAd=/"/g,DAd=/\\"/g,EAd=/\\/g,FAd=/\\\\/g,GAd=RegExp("^[+a-zA-Z0-9_.!#$%&'*\\/=?^`{|}~-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z0-9]{2,63}$"),HAd=new RegExp("["+xva({LRE:"\u202a",RLE:"\u202b",PDF:"\u202c",LRM:"\u200e",RLM:"\u200f"}).join("")+"]","g");ws.prototype.getName=function(){return this.name_};ws.prototype.setName=function(a){this.name_=a};ws.prototype.toString=function(){return IAd(this,'()<>@:\\".[],;')};
var IAd=function(a,b){var c=a.getName();c=c.replace(CAd,"");a:{for(var d=c,e=0;e<b.length;e++)if(za(d,b[e])){b=!0;break a}b=!1}b&&(c='"'+c.replace(EAd,"\\\\")+'"');return c==""?a.address:a.address==""?c:c+" <"+a.address+">"};ws.prototype.isValid=function(){return GAd.test(this.address)};
var Mv=function(a){var b=Egb;a=a.replace(HAd,"");for(var c="",d="",e=0;e<a.length;){var f=a;var g=e,k=f.charAt(g),m='"<(['.indexOf(k);if(m==-1||JAd(f,g))f=k;else{m='">)]'.charAt(m);for(var r=f.indexOf(m,g+1);r>=0&&JAd(f,r);)r=f.indexOf(m,r+1);f=r>=0?f.substring(g,r+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=cMc(c);c=dMc(c,"'");c=dMc(c,'"');c=c.replace(DAd,'"');c=c.replace(FAd,"\\");d=cMc(d);return new b(d,
c)},JAd=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};Ww(Egb,ws);var KAd=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}$");Egb.prototype.isValid=function(){return LAd(this.address)};var LAd=function(a){return a==null?!1:KAd.test(a)};Egb.prototype.toString=function(){return IAd(this,'()<>@:\\".[],;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a')};var MAd=/[^a-z0-9]+/ig,NAd=[9,11,10,12,13,14,19],OAd=[9,19,11],PAd=[1,6],QAd=[2,7],RAd=[3,8],SAd=[1,2,6,7,8,9,11,10,12,13,14,18,19],Izc=[3,4,5,17,20],dw=function(a,b,c){this.type_=a;this.normalizedValue_=xs(b);this.originalValue_=xs(c===void 0?b:c)};dw.prototype.getType=function(){return this.type_};dw.prototype.getValue=function(){return this.normalizedValue_};dw.prototype.getOriginalValue=function(){return this.originalValue_};
var aw=function(a){return NAd.includes(a.getType())},TAd=function(a){return OAd.includes(a.getType())},UAd=function(a){return PAd.includes(a.getType())},Gzc=function(a,b){switch(a){case 1:return bw(b);case 6:return new dw(6,xs(b).toLowerCase(),b);case 2:return Exc(b);case 7:return Gxc(b);case 3:return Jxc(b);case 8:return new dw(8,xs(b).toLowerCase(),b);case 5:return new dw(5,xs(b).toLowerCase(),b);case 4:return Kxc(b);case 9:return VAd(b);case 12:return new dw(12,xs(b),b);case 13:return new dw(13,
xs(b),b);case 14:return new dw(14,xs(b),b);case 10:return new dw(10,xs(b),b);case 11:return new dw(11,xs(b),b);case 18:return Hzc(b);case 19:return new dw(19,xs(b),b);case 20:return new dw(20,xs(b),b);case 17:return WAd;default:return new dw(0,b)}},bw=function(a){return new dw(1,xs(a).toLowerCase(),a)},Exc=function(a){var b=xs(a).toLowerCase().replace(MAd,"");return new dw(2,b,a)},Jxc=function(a){var b=xs(a).toLowerCase();return b==="me"?WAd:new dw(3,b,a)},Kxc=function(a){return new dw(4,xs(a).toLowerCase(),
a)},Gxc=function(a){var b=xs(a).toLowerCase().replace(MAd,"");return new dw(7,b,a)},VAd=function(a){return new dw(9,xs(a).toLowerCase(),a)},Hzc=function(a){return new dw(18,xs(a),a)},Wv=function(a){var b=a.indexOf(":");return Gzc(b>0?parseInt(a.substring(0,b),10):0,a.substring(b+1))};dw.prototype.toString=function(){return this.type_+":"+this.normalizedValue_};dw.prototype.serialize=function(){return this.type_+":"+this.originalValue_};
dw.prototype.equals=function(a){return a?this===a?!0:this.type_===a.type_&&this.normalizedValue_===a.normalizedValue_:!1};var XAd=function(a){switch(a.getType()){case 1:case 6:return LAd(a.originalValue_);case 2:case 7:return a=a.originalValue_.replace(MAd,""),a.length>=3&&a[0]>="0"&&a[0]<="9";case 3:case 8:return!!xs(a.originalValue_);default:return!0}},hw=Gzc(0,""),WAd=new dw(17,"me");var Ev=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};h=Ev.prototype;h.getFilter=function(){return this.filter_};h.setFilter=function(a){this.filter_=a;return this};h.setQueryScope=function(a){this.queryScope_=a;return this};h.getQueryScope=function(){return this.queryScope_};
h.getEntryPoint=function(){return this.entryPoint_};h.setEntryPoint=function(a){this.entryPoint_=a;return this};h.getSuggestFormat=function(){return this.suggestFormat_};h.getSearchFormat=function(){return this.searchFormat_};h.getSuggestMaxResults=function(){return this.suggestMaxResults_};h.getSearchMaxResults=function(){return this.searchMaxResults_};
h.clone=function(){var a=new Ev;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 Fw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Fw,X);Fw.prototype.getEntryPoint=function(){return Ri(this,5)};Fw.prototype.setEntryPoint=function(a){return Yn(this,5,a)};var Gw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Gw,X);Gw.prototype.getEntryPoint=function(){return Ri(this,1)};Gw.prototype.setEntryPoint=function(a){return Yn(this,1,a)};var cV=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(cV,X);cV.prototype.getQuery=function(){return Fi(this,1)};cV.prototype.setQuery=function(a){return Gj(this,1,a)};cV.prototype.clearQuery=function(){ex(this,1)};cV.prototype.hasQuery=function(){return xm(this,1)};var YAd=function(a,b){Nn(a,3,b)};cV.prototype.getAffinityVersion=function(){return Wm(this,7)};cV.prototype.setAffinityVersion=function(a){Wn(this,7,a)};
cV.prototype.getAffinityVersionOrUndefined=function(){return lx(this,7)};var $Ad=function(a){var b=ZAd();tx(a,8,b)};h=cV.prototype;h.getInstanceId=function(){return Fi(this,11)};h.setInstanceId=function(a){return Gj(this,11,a)};h.clearInstanceId=function(){ex(this,11)};h.hasInstanceId=function(){return xm(this,11)};h.getInstanceIdOrUndefined=function(){return mx(this,11)};var zw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(zw,X);h=zw.prototype;h.getPersonLoggingId=function(){return Fi(this,1)};h.setPersonLoggingId=function(a){Gj(this,1,a)};h.getFieldLoggingId=function(){return Fi(this,2)};h.setFieldLoggingId=function(a){Gj(this,2,a)};h.setFieldValue=function(a){return Gj(this,3,a)};h.clearFieldValue=function(){return ex(this,3)};h.getName=function(){return Fi(this,4)};h.setName=function(a){return Gj(this,4,a)};
h.hasName=function(){return xm(this,4)};h.getNameOrUndefined=function(){return mx(this,4)};h.getContactId=function(){return Fi(this,5)};h.setContactId=function(a){return Gj(this,5,a)};h.getProfileId=function(){return Fi(this,6)};h.getProfileId_legacyNullable=function(){return Ml(this,6)};h.setProfileId=function(a){return Gj(this,6,a)};h.hasProfileId=function(){return xm(this,6)};h.getFieldType=function(){return Ri(this,7)};h.getIsPlaceholder=function(){return $i(this,10)};
h.setIsPlaceholder=function(a){jj(this,10,a)};h.getGroupId=function(){return Fi(this,11)};h.setGroupId=function(a){Gj(this,11,a)};h.hasGroupId=function(){return xm(this,11)};h.getIsBoosted=function(){return $i(this,12)};h.setIsBoosted=function(a){jj(this,12,a)};var yw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(yw,X);h=yw.prototype;h.getProvenance=function(){return Ri(this,3)};h.setProvenance=function(a){return Yn(this,3,a)};h.getContext=function(){return Ri(this,5)};h.getExistingSelectionsCount=function(){return Wm(this,6)};h.setExistingSelectionsCount=function(a){Wn(this,6,a)};var xw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(xw,X);xw.prototype.getInfo=function(){return Y(this,zw,1)};var yv=function(a){return Y(a,yw,2)};xw.prototype.getSessionState=function(){return Y(this,cV,3)};xw.prototype.setSessionState=function(a){return hj(this,cV,3,a)};xw.prototype.hasSessionState=function(){return Si(this,cV,3)};var vw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(vw,X);h=vw.prototype;h.getType=function(){return Ri(this,1)};h.setType=function(a){return Yn(this,1,a)};h.hasType=function(){return ym(this,1)};h.getValue=function(){return Fi(this,2)};h.setValue=function(a){return Gj(this,2,a)};h.hasValue=function(){return xm(this,2)};var aBd=function(a){this.delegate_=a};h=aBd.prototype;h.getDelegate=function(){return this.delegate_};h.getId=function(){return this.delegate_.getId()};h.getTargetType=function(){return this.delegate_.getTargetType()};h.getValue=function(){return this.delegate_.getValue()};h.getDisplayValue=function(){return this.delegate_.getDisplayValue()};h.getCanonicalValue=function(){return this.delegate_.getCanonicalValue()};h.getDescription=function(){return this.delegate_.getDescription()};h.getName=function(){return this.delegate_.getName()};
h.getPhoto=function(){return this.delegate_.getPhoto()};h.getTagList=function(){return this.delegate_.getTagList()};h.getSourceIdList=function(){return this.delegate_.getSourceIdList()};h.getProfileId=function(){return this.delegate_.getProfileId()};h.getContactId=function(){return this.delegate_.getContactId()};h.getLoggingToken=function(){return this.delegate_.getLoggingToken()};h.getIsMe=function(){return this.delegate_.getIsMe()};h.getOrgState=function(){return this.delegate_.getOrgState()};
h.getEmailSecurityInfo=function(){return this.delegate_.getEmailSecurityInfo()};h.getDataSource=function(){return this.delegate_.getDataSource()};h.getOriginatingField=function(){return this.delegate_.getOriginatingField()};h.getReachabilityInfo=function(){return this.delegate_.getReachabilityInfo()};h.getExtendedData=function(){return this.delegate_.getExtendedData()};var lyc=function(){this.familyName_=this.givenName_=this.displayName_="";this.sourceType_=0};h=lyc.prototype;h.getDisplayName=function(){return this.displayName_};h.setDisplayName=function(a){this.displayName_=a||"";return this};h.getGivenName=function(){return this.givenName_};h.setGivenName=function(a){this.givenName_=a||"";return this};h.getFamilyName=function(){return this.familyName_};h.setFamilyName=function(a){this.familyName_=a||"";return this};h.getSourceType=function(){return this.sourceType_};
h.setSourceType=function(a){this.sourceType_=a||0;return this};var bBd=function(a,b){this.delegate_=a;this.name_=b};Z(bBd,aBd);bBd.prototype.getName=function(){return this.name_};var dV=function(a){this.delegate_=a};h=dV.prototype;h.getDelegate=function(){return this.delegate_};h.getResultType=function(){return this.delegate_.getResultType()};h.getTargetList=function(){return this.delegate_.getTargetList()};h.getMemberList=function(){return this.delegate_.getMemberList()};h.getTotalMemberCount=function(){return this.delegate_.getTotalMemberCount()};h.getPrimaryTarget=function(){return this.delegate_.getPrimaryTarget()};h.getDisplayName=function(){return this.delegate_.getDisplayName()};
h.getDisplayValue=function(){return this.delegate_.getDisplayValue()};h.getDescription=function(){return this.delegate_.getDescription()};h.getPhotoUrl=function(){return this.delegate_.getPhotoUrl()};h.getIsBoosted=function(){return this.delegate_.getIsBoosted()};h.getMatchInfo=function(){return this.delegate_.getMatchInfo()};h.getExtendedData=function(){return this.delegate_.getExtendedData()};var Fgb=function(a){this.delegate_=a};Z(Fgb,dV);h=Fgb.prototype;h.getPrimaryTarget=function(){return this.getTargetList()[0]};h.getDisplayName=function(){var a=this.getPrimaryTarget();return a?(a=a.getName())?a.getDisplayName():"":""};h.getPhotoUrl=function(){var a=this.getPrimaryTarget();return a?(a=a.getPhoto())?a.getUrl():"":""};h.getDisplayValue=function(){var a=this.getPrimaryTarget();return a?a.getDisplayValue():""};
h.getDescription=function(){var a=this.getPrimaryTarget();return a?a.getDescription():""};var Ggb=function(a,b){this.delegate_=a;this.targets_=b};Z(Ggb,dV);Ggb.prototype.getTargetList=function(){return this.targets_};var myc=function(){this.url_="";this.sourceType_=this.type_=0;this.glyph_=""};h=myc.prototype;h.getUrl=function(){return this.url_};h.setUrl=function(a){this.url_=a||"";return this};h.getType=function(){return this.type_};h.setType=function(a){this.type_=a;return this};h.getSourceType=function(){return this.sourceType_};h.setSourceType=function(a){this.sourceType_=a||0;return this};h.getGlyph=function(){return this.glyph_};h.setGlyph=function(a){this.glyph_=a||"";return this};
var cBd=(new myc).setType(1).setUrl("https://lh3.googleusercontent.com/a/default-user"),dBd=new myc;var eV=function(){};eV.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:ys(new Ggb(a,c))};eV.prototype.reset=function(){};var Igb=function(a){this.types_=a};Z(Igb,eV);Igb.prototype.shouldRemove=function(a){return!this.types_.includes(a.getTargetType())};Igb.prototype.reset=function(){};var Kgb=function(a){this.sourceIds_=a.filter(function(b){return Izc.includes(b.getType())}).map(String);this.targetIds_=a.filter(function(b){return SAd.includes(b.getType())}).map(String)};Z(Kgb,eV);Kgb.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 eBd=function(a){this.sources_=a};Z(eBd,eV);eBd.prototype.shouldRemove=function(a){return!this.sources_.includes(a.getDataSource())};var Mgb=function(a){this.filters_=a};Mgb.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};Mgb.prototype.reset=function(a){for(var b=l(this.filters_),c=b.next();!c.done;c=b.next())c.value.reset(a)};var Ogb=function(a){this.filters_=a};
Ogb.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};Ogb.prototype.reset=function(a){for(var b=l(this.filters_),c=b.next();!c.done;c=b.next())c.value.reset(a)};var fBd=Ngb();var gBd=new bd("PeoplekitClientConfig"),hBd=function(a){this.matcher=a};Z(hBd,eV);hBd.prototype.shouldRemove=function(a){return a.getTargetType()===1&&this.matcher(a.getValue())};var fV=function(a){var b=this;this.injector=a;this.clientDarkmode$=this.clientDarkmodeSubject=new Xj(!1);this.localDarkmode=!1;this.clientStreamzService=null;this.loadLocalDarkmode=function(){b.localDarkmode=window.localStorage.getItem("onedev-darkmode")!=null;iBd(b,b.localDarkmode);b.clientStreamzService&&Ocd(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")}};fV.prototype.enableUsageTracking=function(){this.clientStreamzService=this.injector.get(yK)};var iBd=function(a,b){a.clientDarkmodeSubject.next(b);document.body.classList.toggle("dark-mode",b)};fV.\u0275fac=function(a){return new (a||fV)(Wc(xe))};fV.\u0275prov=Cc({token:fV,factory:fV.\u0275fac});var jBd=Ngb(Jgb(1),Pgb(function(){return new eBd(Yc.apply(0,arguments))}(3),new hBd(function(a){return a.includes("-pager")||a.includes("+pager")||a.includes("-oncall")||a.includes("+oncall")||a.includes("lifeguard-ng")}))),gV=function(){this.theme=q(fV)};gV.prototype.getTheme=function(){return this.theme.clientDarkmodeSubject.getValue()?1:0};
var kBd=function(a){return a.map(function(b){return b.result().getPrimaryTarget().getValue()})},Ugb=function(a){return{moveAutocompleteAboveAnchorIfOffscreen:!0,density:2,theme:a.getTheme(),autoActivateFirstSearchResult:!0,showSuggestions:!1}};gV.\u0275fac=function(a){return new (a||gV)};gV.\u0275prov=Cc({token:gV,factory:gV.\u0275fac,providedIn:"root"});var hV=function(){this.activeSession=q(Zu);this.issuePermissionService=q(NP);this.window=q(ZP);this.userPreferencesManager=q(VP);this.placeholderPrefix="@";this.candidateDenylist=new Set;this.isMentionAutocompleteEnabled=function(){throw Error("Ve");};this.getHiddenInput=function(){throw Error("Ve");};this.getAutocompleteUnderlay=function(){throw Error("Ve");};this.getTextarea=function(){throw Error("Ve");};this.focusOnComponent=function(){throw Error("Ve");};this.emitContentChange=function(){throw Error("Ve");
};this.autocompleteUserName=new Xj("");this.autocompleteUserName$=this.autocompleteUserName.pipe(of());this.autocompleteTop=new Xj(0);this.autocompleteTop$=this.autocompleteTop.pipe(of());this.autocompleteLeft=new Xj(0);this.autocompleteLeft$=this.autocompleteLeft.pipe(of());this.scrollPosition=0;this.taggingInProgress=new Xj(!1);this.taggingInProgress$=this.taggingInProgress.pipe(of());this.wordInfo={wordStart:0,wordEnd:0,word:""}};h=hV.prototype;
h.initialize=function(a){this.placeholderPrefix=a.placeholderPrefix;var b;this.candidateDenylist=new Set((b=a.candidateDenylist)!=null?b:[]);this.isMentionAutocompleteEnabled=a.isMentionAutocompleteEnabled;this.getHiddenInput=a.getHiddenInput;this.getAutocompleteUnderlay=a.getAutocompleteUnderlay;this.getTextarea=a.getTextarea;this.focusOnComponent=a.focusOnComponent;this.emitContentChange=a.emitContentChange};
h.findWordAroundCursor=function(){var a=this.getTextarea().selectionStart;this.wordInfo=Tgb(this.getTextarea().value,a!=null?a:0)};h.textAreaContainerElKeyDown=function(a){a.key==="Escape"&&(this.taggingInProgress.next(!1),this.focusOnComponent())};
h.textAreaKeyDown=function(a){if(lBd(a)&&this.taggingInProgress.value&&this.isMentionAutocompleteEnabled()&&this.taggingInProgress.value){a==null||a.preventDefault();var b;(b=this.getHiddenInput())==null||b.focus();b=a.code;var c=a.key,d=a.keyCode,e=a.which;a=new KeyboardEvent("keydown",{charCode:a.charCode,metaKey:a.metaKey,type:a.type,code:c==="Enter"?"Tab":b,key:c==="Enter"?"Tab":c,keyCode:c==="Enter"?9:d,which:c==="Enter"?9:e});var f;(f=this.getHiddenInput())==null||f.dispatchEvent(a)}};
h.textAreaKeyUp=function(a){if(!lBd(a))if(a=a.target,this.scrollPosition=a.scrollTop,this.findWordAroundCursor(),hpb(this,this.wordInfo.word)){a=a.selectionStart;if(this.isMentionAutocompleteEnabled()&&!this.taggingInProgress.value){var b=this.getAutocompleteUnderlay();if(b){b.textContent=this.getTextarea().value;var c=this.getAutocompleteUnderlay(),d=this.getTextarea(),e="height width font-family margin line-height padding border".split(" ");if(c&&d){d=this.window.getComputedStyle(d);e=l(e);for(var f=
e.next();!f.done;f=e.next()){f=f.value;var g=d.getPropertyValue(f);c.style.setProperty(f,g)}}this.synchronizeScrolling()}b=b==null?void 0:b.firstChild;c=b==null?void 0:b.textContent;b&&c&&a&&(c=new Range,c.setStart(b,a),c.setEnd(b,a),a=document.createElement("span"),c.deleteContents(),c.insertNode(a),b=a.getBoundingClientRect(),this.autocompleteTop.next(b.top),this.autocompleteLeft.next(b.left),a.remove())}this.taggingInProgress.next(!0);if(this.isMentionAutocompleteEnabled()){this.autocompleteUserName.next(this.wordInfo.word.slice(this.placeholderPrefix.length));
var k;(k=this.getHiddenInput())==null||k.dispatchEvent(new KeyboardEvent("keydown"))}}else this.taggingInProgress.next(!1)};var lBd=function(a){return a.key==="ArrowDown"||a.key==="ArrowUp"||a.key==="Enter"||a.key==="Escape"||a.key==="Tab"};hV.prototype.synchronizeScrolling=function(){var a=this.getAutocompleteUnderlay(),b=this.getTextarea();a&&b&&(a.scrollTop=b.scrollTop)};
hV.prototype.escapeKeyupAnywhere=function(a){var b=a.key;a=a.target.classList.contains("autocomplete-hidden-input");b==="Escape"&&a&&(this.taggingInProgress.next(!1),this.focusOnComponent())};var hpb=function(a,b){if(b===a.placeholderPrefix)return!0;if(!b.startsWith(a.placeholderPrefix))return!1;b=b.slice(a.placeholderPrefix.length);return a.candidateDenylist.has(b)?!1:LVa(b)&&!zid.test(b)};hV.\u0275fac=function(a){return new (a||hV)};hV.\u0275prov=Cc({token:hV,factory:hV.\u0275fac});
var Rgb=/[\s,]/gu,Sgb=/[\s,]|$/u;var mBd=function(a,b){this.apiEnv_=a;this.experimentsConfig_=b};var nBd=function(a){this.profileId_=a};nBd.prototype.getProfileId=function(){return this.profileId_};var oBd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(oBd,X);h=oBd.prototype;h.setMaxResults=function(a){return Wn(this,1,a)};h.getQuery=function(){return Fi(this,2)};h.setQuery=function(a){return Gj(this,2,a)};h.clearQuery=function(){ex(this,2)};h.hasQuery=function(){return xm(this,2)};var pBd=function(){this.dynamicDataProviders_=[];this.staticDataProviders_=[]};var qBd=Object.freeze({preferOauth:!1}),iV=Object.freeze({userProfileId:"",apiEnv:4,userEmail:"",clearcut:qBd});var rBd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,1)};Z(rBd,X);var sBd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(sBd,X);h=sBd.prototype;h.getExperimentIdsList=function(a){return Ym(this,1,Xi(a))};h.setExperimentIdsList=function(a){return tc(this,1,a,Bb)};h.getExperimentIds=function(){return nx(this,1)};h.setExperimentIds=function(a){wc(this,1,Bb,void 0,a,Cb,void 0,1)};h.getProfileId=function(){return Fi(this,2)};h.getProfileId_legacyNullable=function(){return Ml(this,2)};h.setProfileId=function(a){return Gj(this,2,a)};
h.hasProfileId=function(){return xm(this,2)};var tBd=function(){},uBd=function(){return!1},vBd=function(){this.experiments_=(new sBd).setProfileId(iV.userProfileId);this.peopleApiEnv_=iV.apiEnv;this.delegatorId_=this.userEmail_="";this.userKeys_=new Set;this.onAuthError_=tBd;this.offlineStorage_=null;this.apiKey_=this.clearcutUrl_="";this.isOffline_=uBd;this.customDataConfig_=null;this.isOrgStateEnabled_=!1;var a=iV.userEmail;this.userEmail_=a||"";a&&this.userKeys_.add(String(bw(a)))};h=vBd.prototype;h.getUserEmail=function(){return this.userEmail_};
h.getPeopleApiEnv=function(){return this.peopleApiEnv_};h.setPeopleApiEnv=function(a){this.peopleApiEnv_=a;return this};h.getExperiments=function(){return this.experiments_};h.getAuthErrorHandler=function(){return this.onAuthError_};h.setClearcutUrl=function(a){this.clearcutUrl_=a};h.getClearcutUrl=function(){return this.clearcutUrl_};h.getApiKey=function(){return this.apiKey_};h.setApiKey=function(a){this.apiKey_=a;return this};var jV=function(a,b){b!=null||(b=q(Tg));var c=new vBd;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 pBd;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 mBd(c.getPeopleApiEnv(),new nBd(""))}});this.peopleStore=b.peopleStore;this.environmentConfig=b.environmentConfig};jV.\u0275fac=function(a){return new (a||jV)(Wc(gBd),Wc(Tg))};jV.\u0275prov=Cc({token:jV,factory:jV.\u0275fac});var kV=function(){this.selectionChange=new ui;this.sessionOptions=(new Ev).setFilter(wBd);this.clientConfig=q(gBd);this.document=q(Yh);this.peopleKitService=q(jV);this.elementRef=q(Gd);this.zone=q(Tg);this.renderer=q(ji);this.destroyRef=q(Be);this.queryChanged$=new vf(1)};
kV.prototype.ngOnInit=function(){var a=this,b=this.clientConfig.autocompleteFactory.createConfig(this.peopleKitService.environmentConfig);Qgb(b,this.config);this.autocomplete=this.zone.runOutsideAngular(function(){var c,d=(c=a.clientConfig.autocompleteFactory)==null?void 0:c.create(a.getAnchor(),a.elementRef.nativeElement,a.peopleKitService.peopleStore,b,a.sessionOptions);d.subscribeToSelectionChanged(function(e){a.zone.run(function(){a.selectionChange.emit(e)});a.autocomplete.report(4)});return d});
this.destroyRef.onDestroy(function(){a.zone.runOutsideAngular(function(){a.autocomplete.dispose()})});this.queryChanged$.pipe(oj(this.destroyRef)).subscribe(function(c){c!==void 0&&a.search(c)})};
kV.prototype.getAnchor=function(){if(this.peopleKitService.autocompleteAnchor)return this.peopleKitService.autocompleteAnchor;var a=this.renderer.createElement("div"),b="showPopover"in a;this.peopleKitService.autocompleteAnchor=a;this.renderer.addClass(a,"peoplekit-autocomplete-anchor");b&&(this.renderer.setAttribute(a,"popover","manual"),this.renderer.setStyle(a,"overflow","visible"),this.renderer.setStyle(a,"border","none"),this.renderer.setStyle(a,"background","none"),this.renderer.setStyle(a,
"padding","0"));var c;((c=ROa(this.elementRef.nativeElement))!=null?c:this.document.body).append(a);return a};kV.prototype.search=function(a){var b=this;this.zone.runOutsideAngular(function(){var c=b.getAnchor();c.hasAttribute("popover")&&(c.hidePopover(),c.showPopover());b.autocomplete.search(a,b.elementRef.nativeElement)})};kV.prototype.cancel=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.cancel()})};
da.Object.defineProperties(kV.prototype,{query:{configurable:!0,enumerable:!0,set:function(a){this.queryChanged$.next(a)}}});kV.\u0275fac=function(a){return new (a||kV)};kV.\u0275dir=af({type:kV,selectors:[["","peoplekitManualAutocomplete",""]],inputs:{config:[0,"peoplekitAutocompleteConfig","config"],sessionOptions:[0,"peoplekitSearchSessionOptions","sessionOptions"],query:"query"},outputs:{selectionChange:"peoplekitAutocompleteSelectionChange"},exportAs:["peoplekitManualAutocomplete"]});
var wBd=Jgb(1);var xBd=["input"],lV=function(){this.internalValue="";this.autocompleteConfigService=q(gV);this.darkmodeService=q(fV);this.refresh$=se(this.darkmodeService.clientDarkmode$).pipe(A(function(){}));this.wordInfo={wordStart:0,wordEnd:0,word:""};this.placeholder=this.ariaLabel="";this.candidateDenylist=[];this.sessionOptions=(new Ev).setFilter(jBd);this.valueChange=new KO};h=lV.prototype;
h.handleSelectionChange=function(a){var b,c=(b=this.inputRef)==null?void 0:b.nativeElement;c&&(this.findWordAroundCursor(),a=kBd(a).join(", "),yBd.test(c.value.substring(this.wordInfo.wordEnd))||(a+=", "),c.setRangeText(a,this.wordInfo.wordStart,this.wordInfo.wordEnd),c.selectionStart=this.wordInfo.wordStart+a.length,c.selectionEnd=this.wordInfo.wordStart+a.length,this.emitValueChange())};h.emitValueChange=function(){var a,b=(a=this.inputRef)==null?void 0:a.nativeElement;b&&this.valueChange.emit(b.value)};
h.focus=function(){var a;(a=this.inputRef)==null||a.nativeElement.focus()};h.cancel=function(){this.manualAutocomplete.cancel()};h.findWordAroundCursor=function(){var a,b=(a=this.inputRef)==null?void 0:a.nativeElement.selectionStart;a=this.wordInfo;var c,d;this.wordInfo=Tgb((d=(c=this.inputRef)==null?void 0:c.nativeElement.value)!=null?d:"",b!=null?b:0);return a.word!==this.wordInfo.word||a.wordStart!==this.wordInfo.wordStart||a.wordEnd!==this.wordInfo.wordEnd};
da.Object.defineProperties(lV.prototype,{value:{configurable:!0,enumerable:!0,set:function(a){this.internalValue=a}}});lV.\u0275fac=function(a){return new (a||lV)};
lV.\u0275cmp=C({type:lV,selectors:[["b-peoplekit-multi"]],viewQuery:function(a,b){a&1&&(kg(xBd,5),kg(kV,5));if(a&2){var c;og(c=pg())&&(b.inputRef=c.first);og(c=pg())&&(b.manualAutocomplete=c.first)}},hostBindings:function(a,b){a&1&&N("selectionchange",function(){b.inputRef&&document.activeElement===b.inputRef.nativeElement&&b.findWordAroundCursor()&&b.manualAutocomplete.cancel()},dha)},inputs:{ariaLabel:"ariaLabel",placeholder:"placeholder",candidateDenylist:"candidateDenylist",value:"value"},outputs:{valueChange:"valueChange"},
decls:1,vars:1,consts:[["input",""],[3,"refreshable"],["type","text","autocomplete","off","spellcheck","off","aria-expanded","true","peoplekitManualAutocomplete","",3,"input","blur","peoplekitAutocompleteSelectionChange","placeholder","ngModel","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions"]],template:function(a,b){a&1&&E(0,Vgb,2,5,"ng-template",1);a&2&&I("refreshable",b.refresh$)},dependencies:[mC,xi,PB,WB,kV,kT],styles:["input[_ngcontent-%COMP%] {width: 100%}"],changeDetection:0});
var yBd=/^\s*,/u;var zBd=["peoplekitMulti"],mV=function(){this.cdr=q(Yx);this.destroyRef=q(Be);this.autocompleteConfigService=q(gV);this.actionName="Addition";this.inputValidator=null;this.title="";this.onAddItems=new KO;this.onCancel=new KO;this.newlySelectedUsersString=this.invalidMessage=""};
mV.prototype.textPopupSubmit=function(a){var b=this,c,d;return y(function(e){c=b.newlySelectedUsersString;d=le(function(){return b.inputValidator?b.inputValidator(c):be("")});d.pipe(mf(1),oj(b.destroyRef)).subscribe(function(f){b.invalidMessage=f;if(a.valid&&!b.invalidMessage){a==null||a.reset();var g;(g=b.peoplekitMulti)==null||g.focus();b.onAddItems.emit(c);b.newlySelectedUsersString=""}b.cdr.markForCheck()});$d(e)})};mV.\u0275fac=function(a){return new (a||mV)};
mV.\u0275cmp=C({type:mV,selectors:[["b-person-lookup-form"]],viewQuery:function(a,b){a&1&&kg(zBd,5,lV);if(a&2){var c;og(c=pg())&&(b.peoplekitMulti=c.first)}},inputs:{actionName:"actionName",isAllowedToEditCollection:"isAllowedToEditCollection",inputValidator:"inputValidator",title:"title"},outputs:{onAddItems:"onAddItems",onCancel:"onCancel"},decls:11,vars:11,consts:[["textPopupForm","ngForm","formEl",""],["peoplekitMulti",""],[3,"ngSubmit"],["aria-expanded","true",3,"valueChange"],[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"]],template:function(a,b){if(a&1){var c=t();K(0,"form",2,0);N("ngSubmit",function(){u(c);var d=Q(1),e=Q(2);return v(b.textPopupSubmit(d,e))});K(3,"b-peoplekit-multi",3,1);N("valueChange",function(d){u(c);return v(b.newlySelectedUsersString=d)});L();K(5,"div",4)(6,"button",5);M(7,"mat-icon",6);L();
K(8,"button",7);N("click",function(){u(c);return v(b.onCancel.emit())});M(9,"mat-icon",8);L()();F(10,Wgb,2,4,"mat-error");L()}a&2&&(a=Q(1),B(3),Jf("aria-label",Hg("",b.actionName," to ",b.title)),B(3),Jf("aria-label",Hg("Apply ",b.actionName," to ",b.title)),I("disabled",!a.valid||!b.isAllowedToEditCollection),B(2),Jf("aria-label",Hg("Discard ",b.actionName," to ",b.title)),B(2),G(b.invalidMessage?10:-1))},dependencies:[mC,XB,QB,UB,ZA,XA,TA,rB,iz,lV],encapsulation:2,changeDetection:0});var ABd=["addButton"],BBd=["removeButton"],nV=function(){this.inputValidator=null;this.title=this.subtitle="";this.addCurrentUser=new KO;this.removeCurrentUser=new KO;this.onAddUsers=new KO;this.onRemoveUsers=new KO};nV.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 Zgb=function(a){var b,c=l((b=a.popupTriggers)!=null?b:[]);for(b=c.next();!b.done;b=c.next())a.closeInlineDialog(b.value)};
nV.prototype.handleAddItems=function(a){Ygb(a,this.onAddUsers);this.closeAddPopup()};nV.prototype.closeInlineDialog=function(a){a.disabled||(a.disabled=!0,a.disabled=!1)};var Ygb=function(a,b){a&&(a=a.split(/[,; ]/).filter(function(c){return!!c}),a.length&&b.emit(a))};nV.\u0275fac=function(a){return new (a||nV)};
nV.\u0275cmp=C({type:nV,selectors:[["triage-edit-user-buttons"]],viewQuery:function(a,b){a&1&&(kg(ABd,5),kg(BBd,5),kg(GD,5));if(a&2){var c;og(c=pg())&&(b.addButtonEl=c.first);og(c=pg())&&(b.removeButtonEl=c.first);og(c=pg())&&(b.popupTriggers=c)}},inputs:{inputValidator:"inputValidator",isAllowedToEditCollection:"isAllowedToEditCollection",subtitle:"subtitle",title:"title"},outputs:{addCurrentUser:"addCurrentUser",removeCurrentUser:"removeCurrentUser",onAddUsers:"onAddUsers",onRemoveUsers:"onRemoveUsers"},
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=t();K(0,"div",4)(1,"div",5)(2,"div",6)(3,"label");S(4);L()();K(5,"div",7);S(6);L();K(7,"div",8)(8,"button",9,0);S(10," Add ");L();K(11,"button",9,1);S(13," Remove ");L();K(14,"button",10);N("click",function(){u(c);return v(b.addCurrentUser.emit())});S(15," Add me ");L();K(16,"button",10);N("click",function(){u(c);return v(b.removeCurrentUser.emit())});S(17," Remove me ");L()()()();E(18,Xgb,3,4,"ng-template",null,2,Og)(20,$gb,
3,4,"ng-template",null,3,Og)}if(a&2){a=Q(19);var d=Q(21);B(4);T(" ",b.title," ");B(2);Ag(b.subtitle);B(2);I("dialogLabel",Gg("Add users to ",b.title))("xapInlineDialogClick",a);B(3);I("dialogLabel",Gg("Remove users from ",b.title))("xapInlineDialogClick",d);B(3);I("disabled",!b.isAllowedToEditCollection);Jf("aria-label","Add me to "+b.title);B(2);I("disabled",!b.isAllowedToEditCollection);Jf("aria-label","Remove me from "+b.title)}},dependencies:[ZA,XA,TA,mV,DD,CD,GD],styles:[".subtitle[_ngcontent-%COMP%]{cursor:default}.subtitle[_ngcontent-%COMP%]:hover{cursor:default}\n/*# sourceMappingURL=edit_user_buttons.css.map */"],
changeDetection:0});var oV=function(){this.admins=[]};oV.prototype.ngOnInit=function(){this.url="hotlists/"+this.hotlist.hotlistId;this.admins=Pm(this.hotlist.adminUsers)};oV.\u0275fac=function(a){return new (a||oV)};
oV.\u0275cmp=C({type:oV,selectors:[["b-hotlist-card"]],inputs:{hotlist:"hotlist"},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&&(Sf(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),S(5),Tf()(),Sf(6,"ul")(7,"li"),S(8),Tf(),Sf(9,"li"),S(10),Tf()(),Sf(11,"div")(12,"p"),S(13),Tf()()()()());a&2&&(B(4),Rf("href",b.url,Me),B(),Ag(b.hotlist.name),B(3),T("ID: ",b.hotlist.hotlistId),B(2),Bg("",
b.admins.length===1?"Admin":"Admins",": ",b.admins.join(", ")),B(3),Ag(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 pV=function(){this.ROUTES=zs;this.showHovercard=this.removable=!0;this.disabled=!1;this.removeHotlist=new KO};pV.prototype.getAriaLabel=function(a){return"hotlist: "+a.name};pV.\u0275fac=function(a){return new (a||pV)};
pV.\u0275cmp=C({type:pV,selectors:[["b-hotlist-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&yg("removable",b.removable)},inputs:{hotlist:"hotlist",removable:"removable",showHovercard:"showHovercard",disabled:"disabled"},outputs:{removeHotlist:"removeHotlist"},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&&F(0,bhb,8,9);a&2&&G(b.hotlist?0:-1)},dependencies:[ZA,XA,VA,oV,AK,uK,zK,iz],styles:["[_nghost-%COMP%]{margin-right:8px;display:inline-block;vertical-align:middle;white-space:nowrap}[_nghost-%COMP%]     mat-icon svg{height:50%;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;--mat-icon-button-icon-size: 24px}.chip[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}.removable[_nghost-%COMP%]   .chip[_ngcontent-%COMP%]{padding-right:0}"]});var qV=function(){var a=this;this.hotlists=q(UN);this.userAccess=q(lO);this.id$=new vf(1);this.removeHotlist=new KO;this.removable=!0;this.removable$=this.id$.pipe(zf(function(b){return a.removable!=="check-acl"?be(a.removable):mO(a.userAccess,"appender","hotlists/"+b)}));this.hotlist$=this.id$.pipe(zf(function(b){return a.hotlists.watch(b)}));this.isDisabled$=he([this.id$,this.id$.pipe(zf(this.hotlists.isSaving$))]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b==null?!1:
c?!0:!1}))};da.Object.defineProperties(qV.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.idInternal=String(a);this.id$.next(String(a))}}});qV.\u0275fac=function(a){return new (a||qV)};
qV.\u0275cmp=C({type:qV,selectors:[["b-hotlist-chip-smart"]],inputs:{id:"id",removable:"removable"},outputs:{removeHotlist:"removeHotlist"},decls:4,vars:9,consts:[[3,"removeHotlist","hotlist","disabled","removable"]],template:function(a,b){a&1&&(K(0,"b-hotlist-chip",0),U(1,"async"),U(2,"async"),U(3,"async"),N("removeHotlist",function(){b.idInternal==null?pn("Missing id"):b.removeHotlist.emit()}),L());if(a&2){var c;I("hotlist",W(1,3,b.hotlist$))("disabled",W(2,5,b.isDisabled$)===!0)("removable",(c=
W(3,7,b.removable$))!=null?c:!1)}},dependencies:[pV,py],encapsulation:2,changeDetection:0});var CBd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(CBd,X);CBd.prototype.getAttachmentId_asString=function(){return Ln(this,1)};CBd.prototype.setAttachmentId=function(a){return ap(this,1,a)};CBd.prototype.getCategory=function(){return Fi(this,2)};CBd.prototype.setCategory=function(a){return $m(this,2,a)};var DBd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(DBd,X);DBd.prototype.getCategory=function(){return Fi(this,1)};DBd.prototype.setCategory=function(a){return $m(this,1,a)};var EBd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(EBd,X);EBd.prototype.getRecommendation=function(){return Fi(this,1)};EBd.prototype.setRecommendation=function(a){return $m(this,1,a)};var FBd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(FBd,X);h=FBd.prototype;h.getSummaryType=function(){return Ri(this,1)};h.setSummaryType=function(a){return cn(this,1,a)};h.getModelVersion=function(){return Wm(this,2)};h.setModelVersion=function(a){return sn(this,2,a)};h.getIssueVersion=function(){return Wm(this,3)};h.setIssueVersion=function(a){return sn(this,3,a)};var rV=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(rV,X);var GBd=[1,2,3,4];var HBd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(HBd,X);h=HBd.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getFeature=function(){return Ri(this,2)};h.setFeature=function(a){return cn(this,2,a)};h.getEventType=function(){return Ri(this,3)};h.setEventType=function(a){return cn(this,3,a)};var IBd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(IBd,X);IBd.prototype.setEvents=function(a,b){return dx(this,1,HBd,a,b)};var sV=function(){this.executor=q(RM)};sV.prototype.logIssueUserEventForRecommendation=function(a,b,c,d){d=JBd(d);return this.logIssueUserEvent(a,b,c,d)};sV.prototype.logIssueUserEventForRecommendations=function(a){a=a.map(function(b){var c=b.issueId,d=b.feature,e=b.eventType;b=JBd(b.recommendationName);c=(new HBd).setIssueId(c).setFeature($gd[d]).setEventType(Xgd[e]);return hj(c,rV,6,b)});return KBd(this,a)};
sV.prototype.logIssueUserEventForIssueEnrichment=function(a,b,c,d){var e=new rV;d=(new DBd).setCategory(d);e=op(e,3,GBd,d);return this.logIssueUserEvent(a,b,c,e)};sV.prototype.logIssueUserEvent=function(a,b,c,d){a=(new HBd).setIssueId(a).setFeature($gd[b]).setEventType(Xgd[c]);d=hj(a,rV,6,d);return KBd(this,[d])};
var KBd=function(a,b){a=a.executor;var c=a.post,d=new IBd;b=eq(d,1,HBd,b);return c.call(a,{url:"action/issues/batch_log_event",body:b,responseConstructor:null})},JBd=function(a){var b=new rV;a=(new EBd).setRecommendation(a);return op(b,2,GBd,a)};sV.\u0275fac=function(a){return new (a||sV)};sV.\u0275prov=Cc({token:sV,factory:sV.\u0275fac,providedIn:"root"});var LBd=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],MBd=new bd("MAT_CARD_CONFIG"),NBd=function(){var a;this.appearance=((a=q(MBd,{optional:!0}))==null?void 0:a.appearance)||"raised"};NBd.\u0275fac=function(a){return new (a||NBd)};
NBd.\u0275cmp=C({type:NBd,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(a,b){a&2&&yg("mat-mdc-card-outlined",b.appearance==="outlined")("mdc-card--outlined",b.appearance==="outlined")("mat-mdc-card-filled",b.appearance==="filled")("mdc-card--filled",b.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(fg(),gg(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(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-elevated-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(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mat-card-outlined-container-color, var(--mat-sys-surface));border-radius:var(--mat-card-outlined-container-shape, var(--mat-sys-corner-medium));border-width:var(--mat-card-outlined-outline-width, 1px);border-color:var(--mat-card-outlined-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mat-card-outlined-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.mat-mdc-card-filled{background-color:var(--mat-card-filled-container-color, var(--mat-sys-surface-container-highest));border-radius:var(--mat-card-filled-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-filled-container-elevation, var(--mat-sys-level0))}.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 OBd=function(){};OBd.\u0275fac=function(a){return new (a||OBd)};OBd.\u0275dir=af({type:OBd,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]});var PBd=function(){this.align="start"};PBd.\u0275fac=function(a){return new (a||PBd)};
PBd.\u0275dir=af({type:PBd,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(a,b){a&2&&yg("mat-mdc-card-actions-align-end",b.align==="end")},inputs:{align:"align"},exportAs:["matCardActions"]});var QBd=function(){};QBd.\u0275fac=function(a){return new (a||QBd)};
QBd.\u0275cmp=C({type:QBd,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&&(fg(LBd),gg(0),Sf(1,"div",0),gg(2,1),Tf(),gg(3,2))},encapsulation:2,changeDetection:0});var tV=function(){};tV.\u0275fac=function(a){return new (a||tV)};tV.\u0275mod=$e({type:tV});tV.\u0275inj=Dc({imports:[jz]});var uV=function(){LO.apply(this,arguments);this.onAccept=new KO;this.onDismiss=new KO};Z(uV,LO);uV.\u0275dir=LO.\u0275dir;uV.prototype.ngOnInit=function(){this.url="hotlists/"+this.hotlist.hotlistId};uV.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(uV)))(b||uV)}}();
uV.\u0275cmp=C({type:uV,selectors:[["b-hotlist-recommendation-card"]],inputs:{hotlist:"hotlist"},outputs:{onAccept:"onAccept",onDismiss:"onDismiss"},features:[Ff],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&&(K(0,"div",0)(1,"div",1)(2,"mat-card-header",2),S(3," Suggested hotlist"),L(),K(4,"mat-card-content")(5,"h3",3)(6,"a",4),S(7),L()(),K(8,"div",5)(9,"p"),S(10),L()()(),K(11,"mat-card-actions",6)(12,"button",7),N("click",function(){return b.onAccept.emit(b.hotlist.hotlistId)}),S(13,"Accept"),L(),K(14,"button",8),N("click",function(){return b.onDismiss.emit()}),S(15,"Dismiss"),L()()()());a&2&&(B(6),I("href",b.url,Me),B(),Ag(b.hotlist.name),B(3),
Ag(b.hotlist.description))},dependencies:[ZA,XA,TA,PBd,OBd,QBd],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 vV=function(){this.issueFullFridge=q(RO);this.recommendationsApi=q(WM);this.issueUserEventsService=q(sV);this.analytics=q(PO);this.issueRecommendationFridge=q(TO);this.ROUTES=zs;this.updateHotlistsInstantly=this.showHovercard=!0;this.onAccept=new KO;this.hovercardConfig={showDelay:250,hideDelay:250,position:[uPa],triggerKey:[]}};vV.prototype.getAriaLabel=function(a){return"suggested hotlist: "+a.name};
vV.prototype.addHotlist=function(a){var b=this;return y(function(c){return c.nextAddress==1?b.issueId==null?c.return():b.updateHotlistsInstantly?z(c,b.issueFullFridge.updateHotlists(b.issueId,[a.toString()],[]),2):c.jumpTo(2):c.nextAddress!=4?(b.onAccept.emit(),b.analytics.trackEvent("hotlistRecommendation","accept",b.analyticsLabel),z(c,b.recommendationsApi.createUserEngagements([{parent:b.recommendationId,userEngagement:{type:"ACCEPTED"}}]),4)):z(c,ee(b.issueUserEventsService.logIssueUserEventForRecommendation(b.issueId,
"FEATURE_HOTLIST","EVENT_TYPE_ACCEPT",b.recommendationId)),0)})};
var chb=function(a){return y(function(b){if(b.nextAddress==1){if(a.issueId==null)return b.return();a.analytics.trackEvent("hotlistRecommendation","dismiss",a.analyticsLabel);return z(b,a.recommendationsApi.createUserEngagements([{parent:a.recommendationId,userEngagement:{type:"REJECTED"}}]),2)}return b.nextAddress!=3?z(b,ee(a.issueUserEventsService.logIssueUserEventForRecommendation(a.issueId,"FEATURE_HOTLIST","EVENT_TYPE_REJECT",a.recommendationId)),3):z(b,a.issueRecommendationFridge.poke(a.issueId+
"-HOTLIST"),0)})};vV.\u0275fac=function(a){return new (a||vV)};
vV.\u0275cmp=C({type:vV,selectors:[["b-hotlist-recommendation-chip"]],inputs:{hotlist:"hotlist",recommendationId:"recommendationId",issueId:"issueId",analyticsLabel:"analyticsLabel",showHovercard:"showHovercard",updateHotlistsInstantly:"updateHotlistsInstantly"},outputs:{onAccept:"onAccept"},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&&F(0,dhb,11,10);a&2&&G(b.hotlist?0:-1)},dependencies:[ZA,XA,VA,uV,AK,uK,zK,iz],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;--mat-icon-button-icon-size: 24px}.chip[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}"]});var wV=function(){this.bLocation=q(US);this.listIssues=zs.listIssues.makeHref;this.createIssue=zs.createIssue.makeHref};wV.prototype.viewSavedSearch=function(a,b){return ehb(zs.viewSavedSearch.routeDeclarationPath,{id:a,params:b})};var RBd=function(a,b){b=b.charAt(0)!=="/"?"/"+b:b;a=a.bLocation.getUrl();a=new ot(a);b=new ot(b);return a.getPath()===b.getPath()&&nD(a.queryData_.toString())===nD(b.queryData_.toString())};h=wV.prototype;h.createBookmarkGroup=function(){return zs.createBookmarkGroup.routeDeclarationPath};
h.viewBookmarkGroup=function(a){return ehb(zs.viewBookmarkGroup.routeDeclarationPath,{id:a})};h.editBookmarkGroup=function(a){return Bs(zs.editBookmarkGroup.routeDeclarationPath,{id:a})};h.editSavedSearch=function(a){return Bs(zs.editSavedSearch.routeDeclarationPath,{id:a})};h.dashboard=function(a){return Bs(zs.viewDashboard.routeDeclarationPath,{id:a})};
h.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};h.settings=function(a){return a?Bs(zs.settingsTab.routeDeclarationPath,{id:a,token:":settingsTab?"}):Bs(zs.settings.routeDeclarationPath)};h.home=function(){return Bs(zs.home.routeDeclarationPath,{params:void 0})};wV.\u0275fac=function(a){return new (a||wV)};wV.\u0275prov=Cc({token:wV,factory:wV.\u0275fac,providedIn:"root"});var xV=function(){this.buttonRef=q(Gd);this.toRefocus=!1};xV.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}))};xV.\u0275fac=function(a){return new (a||xV)};
xV.\u0275dir=af({type:xV,selectors:[["button","disabled","","focusBack",""]],inputs:{disabled:"disabled"},features:[Gx]});var yV=function(){this.activeSession=q(Zu);this.cdr=q(Yx);this.disabled=this.starred=!1;this.acceptInput=!0;this.starMessage="Star the issue";this.unStarMessage="Un-star the issue";this.starClicked=new KO;this.isAnonymous=this.activeSession.isAnonymous()};h=yV.prototype;h.onClick=function(a){a.stopPropagation();this.acceptInput&&(this.starClicked.emit(!!this.starred),this.cdr.markForCheck())};h.onEnter=function(a){this.onClick(a)};h.isDisabled=function(){return this.isAnonymous||this.disabled};
h.getLabel=function(){return this.isAnonymous?"Sign in to use full features.":this.starred?this.unStarMessage:this.starMessage};h.getAriaLabel=function(){return this.isAnonymous?"Sign in to use full features.":this.starMessage};yV.\u0275fac=function(a){return new (a||yV)};
yV.\u0275cmp=C({type:yV,selectors:[["b-star-toggle"]],inputs:{starred:"starred",disabled:"disabled",acceptInput:"acceptInput",starMessage:"starMessage",unStarMessage:"unStarMessage"},outputs:{starClicked:"starClicked"},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=t();
K(0,"div",1,0)(2,"button",2);N("keydown.enter",function(d){u(c);return v(b.onEnter(d))})("click",function(d){u(c);return v(b.onClick(d))})("focus",function(){u(c);var d=Q(1);return v(d.show())})("blur",function(){u(c);var d=Q(1);return v(d.hide())});M(3,"mat-icon",3);L()()}a&2&&(I("matTooltip",b.getLabel()),B(2),yg("starred",b.starred),I("disabled",b.isDisabled()),Jf("aria-label",b.getAriaLabel())("aria-checked",b.starred),B(),I("svgIcon",b.starred?"star-filled":"star-empty"))},dependencies:[xV,ZA,
XA,VA,hK,iz,MA],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 zV=function(){this.activeSession=q(Zu);this.ROUTES=zs;this.isCompact=!1;this.starClicked=new KO;this.currentUserEmail=this.activeSession.getUserEmail()};zV.prototype.ngOnInit=function(){};zV.prototype.isDirectAdmin=function(a){return a?Pm(a.adminUsers).includes(this.currentUserEmail):!1};zV.prototype.shouldShowStar=function(a){return!this.isDirectAdmin(a)&&!a.archived};zV.\u0275fac=function(a){return new (a||zV)};
zV.\u0275cmp=C({type:zV,selectors:[["hotlist-matlist-option"]],inputs:{hotlist:"hotlist",isCompact:"isCompact",starredHotlists:"starredHotlists",isSavingStar:"isSavingStar"},outputs:{starClicked:"starClicked"},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&&F(0,khb,5,5,"span",0);a&2&&G(b.hotlist?0:-1)},dependencies:[hK,iz,MA,EF,yV,py],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:24px;line-height:24px;padding-right:3px}.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 SBd=function(){this.tokens=new Map};SBd.prototype.add=function(a,b){var c=this.tokens.get(a);c?c.push(b):this.tokens.set(a,[b]);return this};SBd.prototype.build=function(){var a=this,b=Array.from(this.tokens.keys()).sort();return new TBd(b.map(function(c){return{token:c,labels:a.tokens.get(c)}}))};var TBd=function(a){this.sortedEntries=a};
TBd.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};TBd.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 UBd=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(n(a.search(b[d]))).filter(function(f){return c.has(f)});c=new Set(e)}return c};var VBd=function(a){this.hotlists=a;var b=new SBd,c=new SBd;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())?K9a(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())?K9a(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(g,
k){return[g,k]}))};
VBd.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(),g=void 0;e=(g=d.description)==null?void 0:g.toLowerCase();g=d.hotlistId;var k=void 0,m=void 0;(XSa(a)&&String(g).includes(a)||((k=f)==null?0:k.includes(a))||((m=e)==null?0:m.includes(a)))&&b.add(d)}a=K9a(a);c=l(UBd(this.nameTokenMatcher,a));for(d=c.next();!d.done;d=c.next())b.add(d.value);a=l(UBd(this.descriptionTokenMatcher,a));
for(c=a.next();!c.done;c=a.next())b.add(c.value);return WBd(this,b)};var WBd=function(a,b){return[].concat(n(b)).sort(function(c,d){c=a.positions.get(c);d=a.positions.get(d);return c===d?0:c<d?-1:1})};var XBd=function(){this.innerHeight$=ke(le(function(){return be(window.innerHeight)}),oe(window,"resize").pipe(A(function(){return window.innerHeight})))};XBd.\u0275fac=function(a){return new (a||XBd)};XBd.\u0275prov=Cc({token:XBd,factory:XBd.\u0275fac,providedIn:"root"});var Ahb=function(a,b){return b.hotlistId},YBd={USER:"USER",ISSUE:"ISSUE",RECOMMENDED:"RECOMMENDED"},AV=function(){LO.call(this);var a=this;this.dialogRef=q(dB);this.data=q(fB);this.paths=q(wV);this.hotlistFridge=q(UN);this.currentUserBookmarksFridge=q(ZN);this.hotlistApi=q(PN);this.snackBar=q(LD);this.appEvents=q(DN);this.errorHandler=q(ZM);this.userApi=q(TN);this.windowHeight=q(XBd);this.permissionsFridge=q(mP);this.activeSession=q(Zu);this.isInternalSession=this.activeSession.isInternalSession();
this.HotlistType=YBd;this.NO_ACCESS_MESSAGE="You don't have permissions to add/remove issues on this hotlist.";this.showCreateNewPane=!1;this.query$=new Xj("");this.debouncedQuery$=this.query$.pipe(kf(100),yf(""));this.hotlists=[];var b;this.allHotlistIds=new Set([].concat(n(this.data.selectedHotlistIds),n((b=this.data.partiallySelectedHotlistIds)!=null?b:[])));this.selectedHotlistIds=new Set(this.data.selectedHotlistIds);this.partiallySelectedHotlistIds=new Set(this.data.partiallySelectedHotlistIds);
var c;this.selectedHotlistIdsMap=Nhb((c=this.data.selectedHotlistIdsMap)!=null?c:new Map);var d;this.originalSelectedHotlistIdsMap=Nhb((d=this.data.selectedHotlistIdsMap)!=null?d:new Map);Mhb(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 TB({name:new VB("",vi),description:new VB("")});this.starredHotlists=new OP;this.isSavingStar=new OP;this.userHotlists$=
$N(this.currentUserBookmarksFridge).pipe(A(function(e){return e.sort(Khb)}));this.issueHotlists$=this.hotlistFridge.watchSet(Array.from(this.allHotlistIds)).pipe(A(function(e){return e.sort(Khb)}));this.combineHotlistsWithPermissions=A(function(e){var f=a.permissionsFridge.watchSet(e.map(function(g){return"hotlists/"+g.hotlistId}));return e.map(function(g,k){return Object.assign({},g,{permissions$:f.pipe(A(function(m){return m[k]}))})})});this.recommendedHotlists$=this.data.recommendedHotlists$;this.hotlists$=
he([this.issueHotlists$,this.recommendedHotlists$,this.userHotlists$]).pipe(A(function(e){var f=l(e);e=f.next().value;var g=f.next().value;f=f.next().value;return[].concat(n(e.map(function(k){return Object.assign({},k,{type:"ISSUE"})})),n(g.map(function(k){return Object.assign({},k,{type:"RECOMMENDED"})})),n(f.map(function(k){return Object.assign({},k,{type:"USER"})})))}),A(r1a(function(e){return e.hotlistId})),A(function(e){return e.filter(ln)}),this.combineHotlistsWithPermissions,wf({bufferSize:1,
refCount:!0}));this.hotlistQuerySearcher$=this.hotlists$.pipe(A(function(e){return new VBd(e)}),wf({bufferSize:1,refCount:!0}));this.forceShowOverflow$=new rf;this.matchedHotlists$=he([this.debouncedQuery$,this.hotlistQuerySearcher$,this.hotlists$]).pipe(A(function(e){var f=l(e);e=f.next().value;var g=f.next().value;f=f.next().value;return e.trim()!==""?g.search(e):f}),wf({bufferSize:1,refCount:!0}));this.visibleHotlists$=he([this.matchedHotlists$,se(this.matchedHotlists$.pipe(A(function(){return!1})),
this.forceShowOverflow$)]).pipe(A(function(e){var f=l(e);e=f.next().value;f=f.next().value;return e.length>200&&!f?e.slice(0,200):e}),wf({bufferSize:1,refCount:!0}));this.isOverflowMode$=he([this.matchedHotlists$,this.visibleHotlists$]).pipe(A(function(e){var f=l(e);e=f.next().value;f=f.next().value;return e.length!==f.length}));this.showLoadById$=this.query$.pipe(A(function(e){e=e.trim();return!a.allHotlistIds.has(Number(e))&&XSa(e)}));this.showCreateNew$=he([this.query$,this.matchedHotlists$]).pipe(A(function(e){var f=
l(e);e=f.next().value;f=f.next().value;return Lhb(e,f)}));this.compactNumberOfHotlistsToShow$=this.windowHeight.innerHeight$.pipe(A(function(e){return Math.max(1,Math.floor(e*.5/24))}),of());this.compactNumberOfHotlistsToShow$.pipe(A(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)}))};Z(AV,LO);AV.\u0275dir=LO.\u0275dir;
AV.prototype.ngOnInit=function(){var a=this;ZBd(this);this.query$.pipe(Af(this.destroyed$)).subscribe(function(){a.hotlistUnderEdit.setValue({name:a.query$.value,description:""})})};
AV.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=KSa(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=KSa(f,(e=this.originalSelectedHotlistIdsMap.get(d))!=null?e:new Set))&&
b.push(d)}this.pristine=!a&&b.length===0;var g;b=(g=a==null?void 0:a.added.length)!=null?g:0;var k;g=(k=a==null?void 0:a.removed.length)!=null?k:0;g=l(a?b>0&&g===0?["Add ("+b+")","Add "+b+" hotlist(s)"]:b===0&&g>0?["Remove ("+g+")","Remove "+g+" hotlist(s)"]:["Save","Save all changes ("+b+" added, "+g+" removed)"]:["Save","(No changes)"]);k=g.next().value;g=g.next().value;this.saveBtnLabel=k;this.saveBtnTooltip=g};
var Ds=function(a){a.dialogRef.close({selectedHotlistIds:a.selectedHotlistIds,selectedHotlistIdsMap:a.selectedHotlistIdsMap})},Hhb=function(a){var b;return(a=(b=a.hotlistUnderEdit.get("name"))==null?void 0:b.value)?a:""},$Bd=function(a){var b;return(a=(b=a.hotlistUnderEdit.get("description"))==null?void 0:b.value)?a:""},Ghb=function(a){a.snackBar.open("Saving hotlist...","dismiss",{duration:0});var b=Hhb(a),c=$Bd(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)})},ZBd=function(a){ee(uld(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)})};
AV.prototype.toggleStar=function(a){var b=this,c,d,e;return y(function(f){switch(f.nextAddress){case 1:c=b.starredHotlists.has(a);d={resourceType:"HOTLIST",resourceId:a};Vd(f,2,3);b.isSavingStar.add(a);if(c)return b.starredHotlists.delete(a),z(f,b.userApi.removeUserBookmark(d),3);b.starredHotlists.add(a);return z(f,b.userApi.addUserBookmark(d),3);case 3:Wd(f);b.isSavingStar.delete(a);Yd(f,4);break;case 2:e=Zd(f);aN(b.errorHandler,e);f.jumpTo(3);break;case 4:b.appEvents.hotlistChanged.next(),b.appEvents.favoritesModified.next(),
$d(f)}})};var nhb=function(a,b){a.hotlistApi.get(b).then(function(c){a.hotlists.push(c);a.selectedHotlistIds.add(c.hotlistId);Ds(a)}).catch(function(c){a.errorHandler.errorHandler(null,c)})};AV.\u0275fac=function(a){return new (a||AV)};
AV.\u0275cmp=C({type:AV,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&N("keydown.meta.enter",function(){return Ds(b)})("keydown.shift.enter",function(){return Ds(b)})("keydown.control.enter",function(){return Ds(b)})},features:[Ff],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",""],["id","hotlist-search-heading"],[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"],["aria-live","polite",1,"cdk-visually-hidden"],[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=t();F(0,mhb,1,1,"ng-container")(1,Chb,15,9);K(2,"mat-dialog-actions")(3,"button",5);N("click",function(){u(c);b.dialogRef.close();return v()});S(4," Cancel ");L();F(5,Ehb,1,1,"ng-container")(6,Fhb,2,5,"button",6);L();E(7,Ihb,2,1,"ng-template",null,0,Og)(9,Jhb,14,1,"ng-template",null,1,Og)}a&2&&(G(b.showCreateNewPane?0:1),B(5),G(b.showCreateNewPane?5:6))},
dependencies:[mC,XB,xi,PB,QB,hC,ZA,XA,TA,PK,OK,wI,dK,RJ,$J,aK,hK,zV,mB,hB,lB,kB,iz,MA,oy,nC,dC,cC,py],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;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:#5f6368;outline:none;border:none;background-color:rgba(0,0,0,0);margin-left:5px;height:100%;width:100%;padding-right:4px}[_nghost-%COMP%]     .search-container input.search-box::placeholder{color:#5f6368}[_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{height:24px;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 BV=function(){this.dialog=q(gB);this.issueFullFridge=q(RO);this.eventsForIssueFridge=q(vO);this.errorHandler=q(ZM);this.issueRecommendationFridge=q(TO);this.recommendationsApi=q(WM);this.issueUserEventsService=q(sV);this.activeSession=q(Zu);this.analytics=q(PO)},bCd=function(a,b){var c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,ee(b),2);c=g.yieldResult;e=(d=c)==null?void 0:d.snapshot[0].hotlistId;if(!e||!c)return g.return();a.analytics.trackEvent("hotlistPicker","open","IDP");f=
String(c.issueId);return z(g,aCd(a,f,e),0)})},aCd=function(a,b,c,d){d=d===void 0?!0:d;var e,f,g,k,m,r,w;return y(function(x){switch(x.nextAddress){case 1:return e=cCd(a,b),f=e.pipe(A(function(D){return D.map(function(H){var J;return(J=H.content)==null?void 0:J.recommendedHotlist}).filter(ln)}),Bf(function(D){D.length>0&&a.analytics.trackEvent("hotlistRecommendation","display","hotlistPicker")})),g=new Map,g.set(b,new Set(c)),z(x,dCd(a,c,f),2);case 2:k=x.yieldResult;if(k==null||!k.hotlistDiff)return x.return();
m=k.hotlistDiff;r=m.added.map(String);w=m.removed.map(String);if(!d){x.jumpTo(3);break}return z(x,a.updateHotlists(b,r,w),4);case 4:return z(x,eCd(a,b,e,r),3);case 3:return x.return({addedIds:r,removedIds:w})}})},fCd=function(a,b){var c=!1;c=c===void 0?!0:c;var d,e,f,g,k,m,r,w,x,D,H,J,O,R,V,ba,pa,ua,ma,Da,ja,va,ya,Sa,ab,rb,ac,pc,kc;return y(function(vc){switch(vc.nextAddress){case 1:d=new Map;e=l(b.values());for(f=e.next();!f.done;f=e.next())if(g=f.value)for(k=l(g),m=k.next();!m.done;m=k.next())r=
m.value,d.has(r)?(w=void 0,x=(w=d.get(r))!=null?w:0,x++,d.set(r,x)):d.set(r,1);D=b.size;H=[];J=[];O=l(d.entries());for(R=O.next();!R.done;R=O.next())V=R.value,ba=l(V),pa=ba.next().value,ua=ba.next().value,ma=pa,Da=ua,Da<D?H.push(ma):Da===D&&J.push(ma);return z(vc,dCd(a,J,be([]),b,H),2);case 2:ja=vc.yieldResult;if(ja==null)return vc.return();if(!c){vc.jumpTo(3);break}va=l(ja.issueMapDiffs.entries());ya=va.next();case 4:if(ya.done){vc.jumpTo(3);break}Sa=ya.value;ab=l(Sa);rb=ab.next().value;ac=ab.next().value;
pc=rb;kc=ac;return z(vc,a.updateHotlists(pc,kc.added.map(String),kc.removed.map(String)),5);case 5:ya=va.next();vc.jumpTo(4);break;case 3:return vc.return(ja)}})};BV.prototype.updateHotlists=function(a,b,c){var d=this,e;return y(function(f){if(f.nextAddress==1)return Vd(f,2,3),z(f,d.issueFullFridge.updateHotlists(a,b,c),3);if(f.nextAddress!=2)return Wd(f),d.eventsForIssueFridge.poke(a),Yd(f,0);e=Zd(f);aN(d.errorHandler,e);return f.jumpTo(3)})};
var dCd=function(a,b,c,d,e){var f,g,k,m,r,w,x,D,H,J,O,R,V,ba,pa,ua,ma,Da,ja;return y(function(va){if(va.nextAddress==1)return f={selectedHotlistIds:b,recommendedHotlists$:c,selectedHotlistIdsMap:d,partiallySelectedHotlistIds:e},g={panelClass:"no-jitter",data:f,ariaLabelledBy:"hotlist-search-heading"},k=a.dialog.open(AV,g),z(va,ee(eB(k)),2);m=va.yieldResult;if(!m)return va.return(Promise.resolve());r=m.selectedHotlistIds;w=m.selectedHotlistIdsMap;x=KSa(new Set(b),new Set(r));D=new Map;if(d&&w)for(H=
l(w.entries()),J=H.next();!J.done;J=H.next())O=J.value,R=l(O),V=R.next().value,ba=R.next().value,pa=V,ua=ba,ma=void 0,Da=KSa((ma=d.get(pa))!=null?ma:new Set,ua),ja=void 0,D.set(pa,(ja=Da)!=null?ja:{added:[],removed:[]});return va.return(Promise.resolve({hotlistDiff:x,issueMapDiffs:D}))})},cCd=function(a,b){return b&&a.activeSession.isInternalSession()?a.issueRecommendationFridge.watch(b+"-HOTLIST").pipe(A(function(c){return(c==null?void 0:c.recommendations)||[]})):be([])},eCd=function(a,b,c,d){var e,
f,g,k;return y(function(m){if(m.nextAddress==1)return z(m,ee(c),2);if(m.nextAddress!=3){e=m.yieldResult;f=e.filter(function(r){var w,x;return(r=(w=r.content)==null?void 0:(x=w.recommendedHotlist)==null?void 0:x.hotlistId)&&d.includes(String(r))});g=f.map(function(r){return{parent:r.name,userEngagement:{type:"ACCEPTED"}}});if(g.length===0)return m.return();a.analytics.trackEvent("hotlistRecommendation","accept","hotlistPicker");return z(m,a.recommendationsApi.createUserEngagements(g),3)}k=f.map(function(r){return{issueId:b,
feature:"FEATURE_HOTLIST",eventType:"EVENT_TYPE_ACCEPT",recommendationName:r.name}});return z(m,ee(a.issueUserEventsService.logIssueUserEventForRecommendations(k)),0)})};BV.\u0275fac=function(a){return new (a||BV)};BV.\u0275prov=Cc({token:BV,factory:BV.\u0275fac,providedIn:"root"});var Uhb=function(a,b){return b.name},CV=function(){LO.apply(this,arguments);var a=this;this.hotlistPickerService=q(BV);this.issueFullFridge=q(RO);this.paramsService=q(JP);this.triageService=q(KQ);this.issueRecommendationFridge=q(TO);this.analytics=q(PO);this.hotlistIdsChange=new KO;this.hotlistIdsMapChange=new KO;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(te(ln),of());this.issue$=this.issueId$.pipe(zf(function(b){return a.issueFullFridge.watch(b)}));this.issueIds$=this.triageService.currentIssueIds$.pipe(te(ln),of());this.issues$=this.issueIds$.pipe(zf(function(b){return a.issueFullFridge.watchSet(b)}));this.recommendations$=this.issueId$.pipe(zf(function(b){return a.issueRecommendationFridge.watch(b+"-HOTLIST")}),A(function(b){return((b==null?void 0:
b.recommendations)||[]).filter(function(c){return c.confidence==="VERY_HIGH"}).filter(ln).slice(0,2)}))};Z(CV,LO);CV.\u0275dir=LO.\u0275dir;
CV.prototype.ngOnInit=function(){var a=this,b,c,d,e,f,g,k,m,r,w,x,D,H,J,O;return y(function(R){if(R.nextAddress==1)return z(R,ee(a.issue$),2);if(R.nextAddress!=3)return b=R.yieldResult,z(R,ee(a.issues$),3);d=(c=R.yieldResult)!=null?c:[];a.hasMultipleIssues=d.length>1;m=(k=(e=b)==null?void 0:(f=e.snapshot[0])==null?void 0:(g=f.hotlistId)==null?void 0:g.map(String))!=null?k:[];a.hotlistIdSet=new Set(m);a.hotlistIdsChange.emit([].concat(n(a.hotlistIdSet)));r=l(d);for(w=r.next();!w.done;w=r.next())x=
w.value,J=H=D=void 0,O=(J=(D=x)==null?void 0:(H=D.snapshot[0])==null?void 0:H.hotlistId)!=null?J:[],a.selectedHotlistIdsMap.set(x.issueId.toString(),new Set(O.map(String)));a.areAllHotlistsEqual=gCd(a);a.subscriptions.add(gsd(a.triageService.triageDataFactory.get(a.teamId,a.triageViewId),a.phase,a.subphase).subscribe(function(V){var ba=[],pa=[];V=l(V);for(var ua=V.next();!ua.done;ua=V.next())ua=ua.value,ua.operation==="ADD"&&ba.push.apply(ba,n(ua.hotlistIds)),ua.operation==="REMOVE"&&pa.push.apply(pa,
n(ua.hotlistIds));ba.length&&a.addHotlists(ba);pa.length&&a.removeHotlists(pa)}));a.subscriptions.add(a.recommendations$.pipe(mf(1)).subscribe(function(V){V.length>0&&a.analytics.trackEvent("hotlistRecommendation","display","Triage")}));$d(R)})};CV.prototype.openHotlistModal=function(){this.hasMultipleIssues?Whb(this):hCd(this)};
var hCd=function(a){var b,c,d,e,f;y(function(g){if(g.nextAddress==1)return z(g,ee(a.issueId$),2);if(g.nextAddress!=3)return b=g.yieldResult,z(g,aCd(a.hotlistPickerService,b,[].concat(n(a.hotlistIdSet)).map(Number),!1),3);c=g.yieldResult;if(!c)return g.return();d=c;e=d.addedIds;f=d.removedIds;e.length>0&&a.addHotlists(e);f.length>0&&a.removeHotlists(f);$d(g)})},Whb=function(a){var b,c,d,e,f,g,k,m,r,w,x,D,H;return y(function(J){if(J.nextAddress==1)return z(J,ee(a.issueIds$),2);if(J.nextAddress!=3){b=
J.yieldResult;c=new Map;d=l(a.selectedHotlistIdsMap.entries());for(e=d.next();!e.done;e=d.next())f=e.value,g=l(f),k=g.next().value,m=g.next().value,r=k,w=m,c.set(r,new Set([].concat(n(w)).map(Number)));return z(J,fCd(a.hotlistPickerService,c),3)}x=J.yieldResult;if(!x)return J.return();iCd(a,x);a.areAllHotlistsEqual=gCd(a);a.areAllHotlistsEqual&&((D=a.selectedHotlistIdsMap.get(b[0]))?(H=[].concat(n(D)).map(String),a.hotlistIdSet=new Set(H)):a.hotlistIdSet.clear());$d(J)})};
CV.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(n(this.hotlistIdSet)))};CV.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(n(this.hotlistIdSet)))};
var Rhb=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(g){f&&g.add(f)});a.hotlistIdsChange.emit([].concat(n(a.hotlistIdSet)))},gCd=function(a){if(a.selectedHotlistIdsMap.size<2)return!0;var b=[].concat(n(a.selectedHotlistIdsMap.values()));a=b[0];b=l(b);for(var c=b.next();!c.done;c=b.next())if(!ISa(a,c.value))return!1;
return!0},iCd=function(a,b){b=b.issueMapDiffs;for(var c=l(b.values()),d=c.next(),e={};!d.done;e={added$jscomp$12:void 0,removed$jscomp$7:void 0},d=c.next())d=d.value,e.added$jscomp$12=d.added,e.removed$jscomp$7=d.removed,a.updateSelectedHotlists(function(f){return function(g){for(var k=l(f.added$jscomp$12),m=k.next();!m.done;m=k.next())g.add(m.value.toString());k=l(f.removed$jscomp$7);for(m=k.next();!m.done;m=k.next())g.delete(m.value.toString())}}(e));a.hotlistIdsMapChange.emit(b)};
CV.prototype.updateSelectedHotlists=function(a){var b=[].concat(n(this.selectedHotlistIdsMap.values()));b=l(b);for(var c=b.next();!c.done;c=b.next())a(c.value)};CV.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(CV)))(b||CV)}}();
CV.\u0275cmp=C({type:CV,selectors:[["triage-hotlists-editor"]],inputs:{phase:"phase",subphase:"subphase"},outputs:{hotlistIdsChange:"hotlistIdsChange",hotlistIdsMapChange:"hotlistIdsMapChange"},features:[Ff],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&&(F(0,Xhb,12,4,"div",0),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.issue$))?0:-1,c)}},dependencies:[ZA,XA,TA,hK,qV,vV,iz,MA,py],styles:["button.add-hotlists-btn[_ngcontent-%COMP%]{margin-right:8px}"]});var jCd=qj({opacity:"0"}),kCd=te(function(a){return a}),lCd=Rd(of(),kCd,lf()),mCd=new bd("xap-bubble UX style"),DV=function(a){var b=this;this.activity=new rf;this.openedSubject=new Xj(!1);this.destroy=new vf;this.overlayPositions=[];this.overlayPanelClass="";this.hoverDelayMs=50;this.beforeShow=this.beforeOpened=new ui;this.onOpened=new ui;this.bubbleStyle=a||"xap-bubble-md1";this.opened=this.openedSubject.pipe(ila(function(){return b.activity.pipe(kf(b.hoverDelayMs))}));a=Af(this.destroy);this.opened.pipe(lCd,
a).subscribe(this.onOpened);this.openedSubject.pipe(kCd,Ola(function(){return b.opened.pipe(te(function(c){return!c}))}),a).subscribe(function(){b.beforeOpened.emit()})};DV.prototype.ngOnDestroy=function(){this.destroy.next();this.destroy.complete()};DV.prototype.toggle=function(a){this.openedSubject.next(a);this.activity.next()};DV.\u0275fac=function(a){return new (a||DV)(Ve(mCd,8))};
DV.\u0275cmp=C({type:DV,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=t();fg();K(0,"span",1,0);N("mouseenter",function(){u(c);return v(b.toggle(!0))})("mouseleave",function(){u(c);return v(b.toggle(!1))})("mousemove",function(){u(c);b.activity.next();return v()});gg(2);L();E(3,Zhb,2,3,"ng-template",2);U(4,"async")}a&
2&&(a=Q(1),I("ngClass",b.bubbleStyle),B(3),I("cdkConnectedOverlayPanelClass",b.overlayPanelClass)("cdkConnectedOverlayPositions",b.overlayPositions)("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",W(4,5,b.opened)))},dependencies:[hy,oy,tA,sA,py],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:[twa("fade",[sj(":enter",[jCd,pj("225ms")]),sj(":leave",[pj("195ms",jCd)])])]}});var EV=function(){};EV.\u0275fac=function(a){return new (a||EV)};EV.\u0275mod=$e({type:EV});EV.\u0275inj=Dc({imports:[xy,uA]});var FV=function(){this.activeSession=q(Zu);this.documentationLinks=q(OQ);this.labelOnlyMode=this.compactMode=!1;this.chipText=this.bubbleText=this.chipClass=""};
FV.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=""}};FV.\u0275fac=function(a){return new (a||FV)};
FV.\u0275cmp=C({type:FV,selectors:[["b-component-access-level-indicator"]],inputs:{accessLevel:"accessLevel",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode"},features:[Gx],decls:1,vars:1,consts:[["popup",""],[1,"chippy","rounded",3,"class","xs"],[3,"panelTemplate"],[1,"chippy","rounded"],[1,"chippy","rounded","nowrap"],[1,"bubble"],["target","_blank",3,"href"]],template:function(a,b){a&1&&F(0,cib,2,1);if(a&2){if(a=b.accessLevel)a=b.activeSession.isInternalSession()?b.accessLevel==="EXTERNAL_PARTNER"||
b.accessLevel==="EXTERNAL_PUBLIC":LM(b.activeSession)?b.accessLevel==="EXTERNAL_PUBLIC":!1;G(a?0:-1)}},dependencies:[EV,DV],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 nCd=zs.listIssues.makeHref,oCd=zs.createIssue.makeHref,GV=function(){LO.apply(this,arguments);var a=this;this.componentFridge=q(AN);this.activeSession=q(Zu);this.providedComponentId$=new vf(1);this.component$=this.providedComponentId$.pipe(zf(function(b){return a.componentFridge.watch(b)}),wf({refCount:!0,bufferSize:1}));this.init=new vf(1);this.isAnonymous=this.activeSession.isAnonymous()};Z(GV,LO);GV.\u0275dir=LO.\u0275dir;
GV.prototype.ngOnInit=function(){var a=this;this.providedComponentId$.next(this.componentId);this.recentIssuesUrl=nCd({q:"status:open componentid:"+this.componentId,s:"created_time:desc"});this.createIssueUrl=oCd()+"?component="+this.componentId;this.viewComponentUrl=zs.editComponent.makeHref(this.componentId);this.component$.pipe(mf(1),Af(this.destroyed$)).subscribe(function(){a.init.next()})};GV.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(GV)))(b||GV)}}();
GV.\u0275cmp=C({type:GV,selectors:[["b-component-card"]],inputs:{componentId:"componentId"},outputs:{init:"init"},features:[Ff],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&&(K(0,"div",0)(1,"div",1),F(2,eib,15,8),U(3,"async"),L()());if(a&2){var c;B(2);G((c=W(3,1,b.component$))?2:-1,c)}},dependencies:[FV,
py],styles:["[_nghost-%COMP%]{max-width:400px}ul[_ngcontent-%COMP%]{list-style-type:none;padding:0}"]});var HV=function(){this.trackerHelpers=q(WQ);this.componentPath=[];this.isArchived=!1;this.label="Component";this.openTab=""};da.Object.defineProperties(HV.prototype,{componentPathInfo:{configurable:!0,enumerable:!0,set:function(a){a=Lu(this.trackerHelpers,a);this.componentPath=this.componentPathsLinkTo==="settings"?hib(a,r7a):hib(a)}}});HV.\u0275fac=function(a){return new (a||HV)};
HV.\u0275cmp=C({type:HV,selectors:[["b-component-breadcrumb"]],inputs:{componentPathsLinkTo:"componentPathsLinkTo",componentPathInfo:"componentPathInfo",isArchived:"isArchived",label:"label",openTab:"openTab"},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&&(K(0,"div",1)(1,"p",2),S(2),L(),K(3,"span",3),Pf(4,fib,6,4,"span",4,Of),F(6,gib,2,0,"span",5),L()());a&2&&(B(2),T("",b.label,":"),B(2),Qf(b.componentPath),B(2),G(b.isArchived?6:-1))},dependencies:[GV,AK,uK,zK,EN],encapsulation:2});var IV=function(){LO.apply(this,arguments);var a=this;this.componentFridge=q(AN);this.trackerHelpers=q(WQ);this.recentIssuesInComponent=Nr;this.componentId$=new vf(1);this.hidePath=!1;this.error$=this.componentFridge.error$.pipe(te(function(b){return String(b.idOrKey)===a.componentIdInternal}));this.rawComponent$=this.componentId$.pipe(te(ln),zf(function(b){return a.componentFridge.watch(b)}),te(ln));this.component$=se(this.error$,this.rawComponent$).pipe(A(function(b){return b.componentId&&b.name?
b:{componentId:b.idOrKey,name:"(unknown)"}}));this.isArchived$=this.component$.pipe(A(function(b){return b.archived}));this.componentPath$=this.component$.pipe(A(function(b){b=Lu(a.trackerHelpers,b.componentPathInfo);return hib(b)}));this.init=new vf(1);this.routes$=this.componentId$.pipe(A(function(b){return{createIssue:q7a(b),componentSettings:r7a(b),recentIssues:Nr(b)}}))};Z(IV,LO);IV.\u0275dir=LO.\u0275dir;IV.prototype.ngOnInit=function(){var a=this;this.component$.pipe(mf(1),Af(this.destroyed$)).subscribe(function(){a.init.next()})};
da.Object.defineProperties(IV.prototype,{componentId:{configurable:!0,enumerable:!0,set:function(a){this.componentIdInternal=a;this.componentId$.next(a)}}});IV.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(IV)))(b||IV)}}();
IV.\u0275cmp=C({type:IV,selectors:[["b-component-path-card"]],inputs:{componentId:"componentId",hidePath:"hidePath"},outputs:{init:"init"},features:[Ff],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&&(K(0,"div",0)(1,"div",1),F(2,lib,6,5,"div",2),F(3,mib,10,5),U(4,"async"),F(5,nib,7,3,"div",3),U(6,"async"),L()());if(a&2){var c,d;B(2);G(b.hidePath?
-1:2);B();G((c=W(4,3,b.component$))?3:-1,c);B(2);G((d=W(6,5,b.routes$))?5:-1,d)}},dependencies:[FV,ZA,XA,TA,iz,EN,py],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 oib={QA:"124156",NIGHTLY:"190923",PROD:"190923"};new Promise(function(){});var JV=function(){var a=q(JN),b=q(jO),c=q(AN);LO.call(this);var d=this;this.componentApi=q(yN);this.appEvents=q(DN);this.activeSession=q(Zu);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=Ma(e);Hba(f);return d.componentApi.query({id:f}).then(function(g){var k={};g=l(g);
for(var m=g.next();!m.done;m=g.next())(m=m.value)&&(k[m.componentId]=m);return e.map(function(r){return k[r]||null})})})};Z(JV,LO);JV.\u0275dir=LO.\u0275dir;h=JV.prototype;h.get=function(a){var b=this.components.get(a);if(b!=null)return b;b=this.componentGetter.get(a).then(function(c){return c!=null?c:Promise.reject(new qjd("Could not load details for component "+a))});return this.components.put(a,b)};
h.create=function(a){var b=this;return this.componentApi.create(a).then(function(c){b.appEvents.componentModified.next(c.componentId);return c})};h.update=function(a){var b=this;return this.componentApi.update(a).then(function(c){b.appEvents.componentModified.next(c.componentId);return c})};h.move=function(a,b){var c=this;return this.componentApi.move(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};
h.updateSlo=function(a,b){var c=this;return this.componentApi.updateSlo(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};h.updateTeam=function(a,b){var c=this;return this.componentApi.updateTeam(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};h.getChildren=function(a,b){return this.componentApi.getChildren(a,b===void 0?!1:b)};h.getDescendants=function(a){return this.componentApi.getDescendants(a)};
h.getUncached=function(a){this.components.remove(a);return this.componentApi.fetchComponent(a)};h.search=function(a,b){var c={query:a};if(b===void 0?0:b)c.includearchived=!0;return pCd(this,a,this.componentApi.query(c))};
var pCd=function(a,b,c){if(b.match(/^\s*android\s*$/i)){var d=pib(a.activeSession.getEnvironmentType());if(d)return Fs({publicComponent:a.get(d),rest:c}).then(function(e){var f=[e.publicComponent];e=l(e.rest);for(var g=e.next();!g.done;g=e.next())g=g.value,g.componentId!==d&&f.push(g);return f})}return c};
JV.prototype.bulkLoad=function(a){var b=this,c=a.filter(function(f){return!b.components.get(f)});Hba(c);if(c.length){a=this.componentApi.query({id:c}).then(function(f){var g={};f=l(f);for(var k=f.next();!k.done;k=f.next())(k=k.value)&&(g[k.componentId]=k);return g});c=l(c);for(var d=c.next(),e={};!d.done;e={id$jscomp$467:void 0},d=c.next())e.id$jscomp$467=d.value,this.components.put(e.id$jscomp$467,a.then(function(f){return function(g){return g[f.id$jscomp$467]?g[f.id$jscomp$467]:Promise.reject(new qjd("Could not load details for component "+
f.id$jscomp$467))}}(e)))}};JV.\u0275fac=function(a){return new (a||JV)};JV.\u0275prov=Cc({token:JV,factory:JV.\u0275fac,providedIn:"root"});var qCd=Pw(["https://www.gstatic.com/buganizer/gfx/","/",""]),KV=Pw(["https://www.gstatic.com/buganizer/img/v2/",""]),rCd=Jh(qCd,"2025-11-04-8066d098","all-icons.svg"),sCd=Jh(KV,"empty_blocker_light.png"),tCd=Jh(KV,"empty_blocker_dark.png"),uCd=Jh(KV,"empty_child_light.png"),vCd=Jh(KV,"empty_child_dark.png"),wCd=Jh(KV,"robot_sleeping.png"),xCd=Jh(KV,"tea_light.png"),yCd=Jh(KV,"tea_dark.png"),zCd=Jh(KV,"space_empty_state.png"),ACd=Jh(KV,"eg_work_area.png"),BCd=Jh(KV,"empty_triage.png");Jh(KV,"gerrit_logo.svg");var LV=function(){this.ICON_URL=rCd;this.LOGO_LIGHT="https://www.gstatic.com/buganizer/img/v3/logo_light.svg";this.LOGO_PURPLE="https://www.gstatic.com/buganizer/img/v2/logo_purple.svg";this.EMPTY_BLOCKER_LIGHT=sCd;this.EMPTY_BLOCKER_DARK=tCd;this.EMPTY_CHILD_LIGHT=uCd;this.EMPTY_CHILD_DARK=vCd;this.ROBOT_SLEEPING=wCd;this.TEA_LIGHT=xCd;this.TEA_DARK=yCd;this.SPACE_EMPTY_STATE=zCd;this.WORK_AREA_EXAMPLE_ILLUSTRATION=ACd;this.EMPTY_TRIAGE=BCd};LV.\u0275fac=function(a){return new (a||LV)};
LV.\u0275prov=Cc({token:LV,factory:LV.\u0275fac,providedIn:"root"});var MV=function(){this.activeSession=q(Zu);this.documentationLinks=q(OQ);this.trackerHelpers=q(WQ);this.imageUrls=q(LV);this.compactMode=!1;this.showHovercard=!0;this.isGlobalBuganizer=!1;this.logoDark=this.logoLight=this.extendedName=this.name=this.redirectUrl=""};
MV.prototype.ngOnChanges=function(a){if(a.tracker||a.isGlobalBuganizer){this.redirectUrl=this.isGlobalBuganizer?Xsd(this.trackerHelpers,""):Xt(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 g;d=(g=this.logoLight)!=null?g:""}this.logoDark=d}};MV.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:""};MV.\u0275fac=function(a){return new (a||MV)};
MV.\u0275cmp=C({type:MV,selectors:[["b-tracker-chip"]],inputs:{tracker:"tracker",compactMode:"compactMode",showHovercard:"showHovercard",isGlobalBuganizer:"isGlobalBuganizer"},features:[Gx],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&&F(0,tib,15,12);a&2&&G(b.tracker||b.isGlobalBuganizer?0:-1)},dependencies:[ZA,XA,TA,AK,uK,zK],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 NV=function(){var a=this;this.activeSession=q(Zu);this.trackerFridge=q(IP);this.compactMode=!1;this.showHovercard=!0;this.trackerId$=new Xj(void 0);this.tracker$=this.trackerId$.pipe(zf(function(b){return b?a.trackerFridge.watch(b).pipe(hf(function(){return be(void 0)})):be(void 0)}));this.isCurrentTracker$=this.trackerId$.pipe(A(function(b){var c,d=(c=a.activeSession.getTracker())==null?void 0:c.trackerId;return d?d===b:!b}))};NV.prototype.ngOnChanges=function(a){a.trackerId&&this.trackerId$.next(this.trackerId)};
da.Object.defineProperties(NV.prototype,{isGlobalBuganizer:{configurable:!0,enumerable:!0,get:function(){return!this.trackerId$.value}}});NV.\u0275fac=function(a){return new (a||NV)};
NV.\u0275cmp=C({type:NV,selectors:[["b-tracker-chip-smart"]],inputs:{trackerId:"trackerId",compactMode:"compactMode",showHovercard:"showHovercard"},features:[Gx],decls:2,vars:3,consts:[[3,"tracker","compactMode","showHovercard","isGlobalBuganizer"]],template:function(a,b){a&1&&(F(0,uib,2,6,"b-tracker-chip",0),U(1,"async"));a&2&&G(W(1,1,b.isCurrentTracker$)===!1?0:-1)},dependencies:[MV,py],encapsulation:2,changeDetection:0});var OV=function(){this.showFolderSpecialIcon=!1;this.mode="default";this.query="";this.selectComponentId=new KO;this.expandComponent=new KO;this.goBack=new KO};OV.prototype.ngOnInit=function(){};OV.prototype.expand=function(a,b){b.preventDefault();b.stopPropagation();this.expandComponent.emit(a)};OV.prototype.back=function(a){a.preventDefault();a.stopPropagation();this.goBack.emit()};OV.\u0275fac=function(a){return new (a||OV)};
OV.\u0275cmp=C({type:OV,selectors:[["component-row"]],inputs:{showFolderSpecialIcon:"showFolderSpecialIcon",componentOption:"componentOption",mode:"mode",query:"query"},outputs:{selectComponentId:"selectComponentId",expandComponent:"expandComponent",goBack:"goBack"},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&&(K(0,"div",0),F(1,vib,1,0,"mat-icon",1)(2,wib,2,0,"button",2)(3,xib,2,3,"button",3),K(4,"div",4)(5,"span",5),F(6,Cib,2,0)(7,Eib,1,1),F(8,Fib,2,0,"span",6),L(),M(9,"b-component-access-level-indicator",7)(10,"b-tracker-chip-smart",8),L()());a&2&&(B(),G(!0===(b.mode=="recent"||b.mode=="popular")?1:!0===(b.mode=="tree")?2:3),B(5),G(b.mode!=="leaf"?6:7),B(2),G(b.componentOption.archived?8:-1),B(),I("accessLevel",b.componentOption.accessLimit==null?null:b.componentOption.accessLimit.accessLevel)("labelOnlyMode",
!0),B(),I("trackerId",b.componentOption.trackerId)("showHovercard",!1))},dependencies:[FV,ZA,XA,VA,hK,iz,MA,NV,oU,azd],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%]{--mat-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 PV=function(a,b,c,d,e,f,g,k,m,r,w,x,D){var H=this;this.userApi=a;this.userAccess=b;this.componentApi=c;this.componentActions=d;this.teamsService=e;this.analytics=f;this.destroyed$=g;this.config=k;this.trackerHelpers=m;this.activeSession=r;this.issueRecommendationFridge=w;this.componentFridge=x;this.recommendationsService=D;this.includeArchived=!1;this.searchQuery$=new Xj("");this.debouncedSearchQuery$=this.searchQuery$.pipe(kf(250));this.state$=new Xj("default");this.listUpdated$=new rf;this.componentsLoading=
this.teamsLoading=!1;this.teamScope$=new Xj(void 0);this.componentOptions=[];this.childTeamsMap=new Map;this.componentCountMap=new Map;this.rawPopularComponents=[];this.popularComponents=[];this.rawRecentComponents=[];this.recentComponents=[];this.recommendedComponents=[];this.recommendedComponentToRecommendation=new Map;this.myTeams$=new Xj([]);this.showAllTeams$=new Xj(!1);this.showAllTeamsDistinct$=this.showAllTeams$.pipe(of());this.teamOptions$=new Xj([]);this.filteredTeamOptions$=he([this.teamOptions$,
this.showAllTeamsDistinct$]).pipe(A(function(J){var O=l(J);J=O.next().value;return O.next().value?J:J.slice(0,5)}));this.hasHiddenTeams$=he([this.teamOptions$,this.showAllTeamsDistinct$]).pipe(A(function(J){var O=l(J);J=O.next().value;O=O.next().value;return J.length>5&&!O}));this.newChildTeams$=new Xj([]);this.teamsDisplayed$=se(this.myTeams$,this.teamOptions$,this.newChildTeams$,this.teamScope$.pipe(A(function(J){return J?[J]:[]}))).pipe(A(function(J){return J.map(function(O){return O.id})}));this.requestIndex=
0;this.unseenTeamChildTeamsMap$=this.teamsDisplayed$.pipe(A(function(J){return J.filter(function(O){return!H.childTeamsMap.has(O)})}),te(function(J){return J.length>0}),zf(function(J){return H.teamsService.getChildTeams(J)}),A(Jib));this.unseenTeamComponentCountMap$=this.teamsDisplayed$.pipe(A(function(J){return J.filter(function(O){return!H.componentCountMap.has(O)})}),te(function(J){return J.length>0}),zf(function(J){return Npd(H.teamsService,J)}));this.componentIdSelected$=new vf(1);this.lastProcessedIndex=
-1;this.ootbSourceId=h8a(this.activeSession)};
PV.prototype.init=function(a,b,c){var d=this;a=a===void 0?!1:a;this.issueId=c;CCd(this,b===void 0?null:b,c);he([this.debouncedSearchQuery$.pipe(xf(a?1:0)),this.state$]).pipe(Af(this.destroyed$)).subscribe(function(e){var f=l(e);e=f.next().value;f=f.next().value;d.showAllTeams$.next(!1);f==="default"?e?d.state$.next("global"):(d.componentOptions=[],d.teamOptions$.next([]),d.listUpdated$.next()):f==="global"?e?(d.includeTeamData()&&DCd(d,e),ECd(d,e)):d.state$.next("default"):f==="team_scope"?d.teamScope$.value&&
(d.teamOptions$.next([]),ECd(d,"teamid:"+d.teamScope$.value.id+" "+e)):f==="component_scope"&&d.componentScope&&FCd(d,d.componentScope.id)});this.debouncedSearchQuery$.pipe(Df(this.state$),Af(this.destroyed$)).subscribe(function(e){var f=l(e);e=f.next().value;f.next().value==="component_scope"&&d.state$.next(e?"global":"default")});this.unseenTeamChildTeamsMap$.pipe(Af(this.destroyed$)).subscribe(function(e){e=l(e.entries());for(var f=e.next();!f.done;f=e.next()){var g=l(f.value);f=g.next().value;
g=g.next().value;d.childTeamsMap.set(f,g)}});this.unseenTeamComponentCountMap$.pipe(Af(this.destroyed$)).subscribe(function(e){e=l(e.entries());for(var f=e.next();!f.done;f=e.next()){var g=l(f.value);f=g.next().value;g=g.next().value;d.componentCountMap.set(f,g)}})};PV.prototype.includeTeamData=function(){return this.config.includeTeamData&&!Is(this.activeSession)};
var CCd=function(a,b,c){b=b===void 0?null:b;a.componentsLoading=!0;var d=Promise.resolve(b!==null?mO(a.userAccess,"reader","components/"+b.componentId+"/issueDefaults"):!1).then(function(f){return f?a.componentApi.getPopularRoutingTargets(b.componentId).then(function(g){g=g.filter(function(k){return a.filterTrackerComponents(k)});g=GCd(a,g);a.rawPopularComponents=g;a.listUpdated$.next()}):Promise.resolve()}),e=a.userApi.getRecentComponents().then(function(f){f=f.filter(function(g){return a.filterTrackerComponents(g)});
f=GCd(a,f);a.rawRecentComponents=f});c=c?HCd(a,c).then(function(f){a.recommendedComponents=f}):Promise.resolve();Promise.all([d,e,c]).finally(function(){var f=new Set(a.recommendedComponents.map(function(k){return k.id}));a.popularComponents=a.rawPopularComponents.filter(function(k){return!f.has(k.id)});var g=new Set(a.popularComponents.map(function(k){return k.id}));a.recentComponents=a.rawRecentComponents.filter(function(k){return!g.has(k.id)&&!f.has(k.id)});a.listUpdated$.next();a.componentsLoading=
!1});a.includeTeamData()&&(a.teamsLoading=!0,DP(a.teamsService,"").pipe(Af(a.destroyed$)).subscribe(function(f){a.myTeams$.next(f.map(Gib));a.listUpdated$.next();a.teamsLoading=!1},function(){a.teamsLoading=!1}))},HCd=function(a,b){a.recommendedComponentToRecommendation.clear();return ee(a.issueRecommendationFridge.watch(b+"-COMPONENT_ROUTING").pipe(mf(1),A(function(c){var d;return(d=c==null?void 0:c.recommendations)!=null?d:[]}),A(function(c){return c.filter(function(d){return d.source===a.ootbSourceId})}),
zf(function(c){if(c.length===0)return be([]);c=c.map(function(d){var e=d.recommendation.split("/");(e=e.length===2&&e[0]==="components"?e[1]:null)&&a.recommendedComponentToRecommendation.set(e,d);return e}).filter(function(d){return!!d});if(c.length===0)return be([]);c=[].concat(n(new Set(c)));return he(c.map(function(d){return a.componentFridge.watch(d).pipe(hf(function(){return be(void 0)}))}))}),A(function(c){return GCd(a,c.filter(function(d){return!!d}))}),hf(function(){return be([])}),Af(a.destroyed$)))};
PV.prototype.filterTrackerComponents=function(a){var b;return!Is(this.activeSession)||a.trackerId===((b=this.activeSession.getTracker())==null?void 0:b.trackerId)};PV.prototype.selectOption=function(a){a.type==="component"?okb(this,a.id):a.type==="team"?djb(this,a):console.warn("invalid option selected")};
var okb=function(a,b){a.analytics.trackEvent("componentPicker","autocomplete-select",ICd(a,b));var c=new Map;c.set("combined",[].concat(n(a.recommendedComponents),n(a.popularComponents),n(a.recentComponents)));c.set("recommended",a.recommendedComponents);c.set("popular",a.rawPopularComponents);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,g=0;g<e.length;g++){var k=void 0;if(b===((k=e[g])==null?
void 0:k.id)){f=g+1;break}}f!=null?a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"Success"):(g=void 0,((g=e)==null?void 0:g.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"))}(c=a.recommendedComponentToRecommendation.get(b))&&a.issueId&&(d=ubb(c),JCd(a.recommendationsService,c,d,d));a.componentIdSelected$.next(b);a.state$.next("global")},ICd=function(a,b){if(a.state$.value==="default")return a.recommendedComponents.some(function(e){return b===e.id})?"recommended-component":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""};PV.prototype.expandComponent=function(a){this.componentScope=a;this.state$.next("component_scope")};
var Wjb=function(a,b){a.componentActions.get(b).then(function(c){var d=Lu(a.trackerHelpers,c.componentPathInfo);a.componentScope=Iib(c,d);a.state$.next("component_scope")})},Vjb=function(a){a.componentScope=void 0;a.searchQuery$.value?a.state$.next("global"):a.state$.next("default")},djb=function(a,b){a.teamScope$.next(Object.assign({},b,{expanded:!1}));a.state$.next("team_scope");a.searchQuery$.next("");b.pathNames||ejb(a,b.id)},ejb=function(a,b){a.teamsLoading=!0;DP(a.teamsService,b).pipe(Af(a.destroyed$)).subscribe(function(c){c=
c.map(Gib);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})},KCd=function(a){if(a.teamScope$.value&&a.teamScope$.value.pathIds&&!(a.teamScope$.value.pathIds.length<2)){var b=a.teamScope$.value.pathIds;ejb(a,b[b.length-2])}};PV.prototype.getChildTeams=function(a){var b;return(b=this.childTeamsMap.get(a))!=null?b:[]};
PV.prototype.hasNoComponent=function(a){return this.componentCountMap.has(a)?this.componentCountMap.get(a)===0:!1};
var Ljb=function(a,b){b.expanded=!1;a.listUpdated$.next()},Mjb=function(a,b){b.expanded=!0;a.listUpdated$.next();a.newChildTeams$.next(a.getChildTeams(b.id))},Pjb=function(a){a.teamScope$.next(void 0);a.searchQuery$.next("");a.state$.next("default")},DCd=function(a,b){b.length>1&&(a.teamsLoading=!0,DP(a.teamsService,b).pipe(Af(a.destroyed$)).subscribe(function(c){a.teamOptions$.next(c.map(Gib));a.teamsLoading=!1;a.listUpdated$.next()},function(){a.teamsLoading=!1}))},ECd=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=GCd(a,d));a.listUpdated$.next()}).finally(function(){a.componentsLoading=!1})}},FCd=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=GCd(a,d),a.listUpdated$.next())}).finally(function(){a.componentsLoading=
!1})},GCd=function(a,b){return b.map(function(c){var d=Lu(a.trackerHelpers,c.componentPathInfo);return Iib(c,d)})};var LCd=0,QV=function(){this.changeDetectorRef=q(Yx);this.elementRef=q(Gd);this.active=!1;this.id="b-component-picker-option-"+LCd++};QV.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};QV.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};QV.\u0275fac=function(a){return new (a||QV)};
QV.\u0275dir=af({type:QV,selectors:[["","listOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Rf("id",b.id),yg("active",b.active))},inputs:{data:"data",listOrder:"listOrder"}});var RV=function(){this.query="";this.hasNoComponent=this.compact=this.allowSegmentSelection=!1;this.selectTeamId=new KO};RV.prototype.getLogoUrl=function(){return"https://moma-teams-photos.corp.google.com/logo/"+this.teamOption.id};RV.prototype.ngOnInit=function(){};RV.\u0275fac=function(a){return new (a||RV)};
RV.\u0275cmp=C({type:RV,selectors:[["team-row"]],inputs:{teamOption:"teamOption",query:"query",allowSegmentSelection:"allowSegmentSelection",compact:"compact",hasNoComponent:"hasNoComponent"},outputs:{selectTeamId:"selectTeamId"},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&&(Sf(0,"div",0),F(1,Kib,1,1,"img",
1),Sf(2,"div",2),F(3,Mib,4,5,"div",3),F(4,Uib,3,0,"div",4),Tf()());a&2&&(yg("no-component",b.hasNoComponent)("compact",b.compact),B(),G(b.compact?-1:1),B(2),G(b.compact?-1:3),B(),G(b.teamOption.pathNames&&b.teamOption.pathNames.length?4:-1))},dependencies:[oU],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 MCd=new Set(["NEEDS_INFO","COMPONENT_ROUTING","ANY_ISSUE_EDIT"]),SV={},NCd=(SV.TYPE_UNSPECIFIED="FEATURE_UNSPECIFIED",SV.ISSUE_DEDUPLICATION="FEATURE_ISSUE_DEDUPLICATION",SV.HOTLIST="FEATURE_HOTLIST",SV.ISSUE_DEDUPLICATION_BATCH="FEATURE_ISSUE_DEDUPLICATION_BATCH",SV.NEEDS_INFO="FEATURE_NEEDS_INFO",SV.COMPONENT_ROUTING="FEATURE_COMPONENT_ROUTING",SV.ANY_ISSUE_EDIT="FEATURE_ANY_ISSUE_EDIT",SV),TV=function(){this.api=q(VM);this.issueUserEventsService=q(sV);this.analytics=q(PO);this.errorHandler=
q(ZM);this.recommendationTriggerService=q(QP);this.activeSession=q(Zu)},PCd=function(a,b){var c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:return a.analytics.trackEvent("editIssue","reject",Vib(b)),b.type==="ISSUE_DEDUPLICATION_BATCH"?(c=new Set,c.add(b.name),d=[{issueId:os(b.resource),recommendationName:b.name}],(e=b.content)==null||(f=e.issueDeduplicationBatch)==null||f.entries.forEach(function(m){c.has(m.recommendation)||(c.add(m.recommendation),d.push({issueId:m.issue.issueId,recommendationName:m.recommendation}))}),
g=Array.from(c,function(m){return{parent:m,userEngagement:{type:"REJECTED"}}}),z(k,ee(a.api.createUserEngagements(g)),6)):z(k,OCd(a,"REJECTED",b),4);case 4:return z(k,a.logIssueUserEventForRecommendation(b,"EVENT_TYPE_REJECT"),3);case 6:return z(k,a.logIssueUserEventForRecommendations("FEATURE_ISSUE_DEDUPLICATION_BATCH","EVENT_TYPE_REJECT",d),3);case 3:a.recommendationTriggerService.hiddenRecommendationIds.add(b.name),$d(k)}})},QCd=function(a,b){y(function(c){a.analytics.trackEvent("editIssue","view",
Vib(b)+"-initialization");$d(c)})},RCd=function(a,b){y(function(c){return c.nextAddress==1?(a.analytics.trackEvent("editIssue","view",Vib(b)),z(c,a.logIssueUserEventForRecommendation(b,"EVENT_TYPE_VIEW"),2)):z(c,OCd(a,"VIEWED",b),0)})},JCd=function(a,b,c,d){var e,f,g,k,m,r,w,x;return y(function(D){return D.nextAddress==1?(a.analytics.trackEvent("editIssue","accept",Vib(b)),e=Gm(c,d),f=void 0,MCd.has(b.type)&&(f=ybb(d)),b.type==="ISSUE_DEDUPLICATION_BATCH"?(g=new Set,g.add(b.name),k=[{issueId:os(b.resource),
recommendationName:b.name}],m=new Set(d.map(function(H){return H.issueId})),(r=b.content)==null||(w=r.issueDeduplicationBatch)==null||w.entries.filter(function(H){return m.has(H.issue.issueId)}).forEach(function(H){g.has(H.recommendation)||(g.add(H.recommendation),k.push({issueId:H.issue.issueId,recommendationName:H.recommendation}))}),x=Array.from(g,function(H){return{parent:H,userEngagement:{type:"ACCEPTED"}}}),z(D,ee(a.api.createUserEngagements(x)),6)):z(D,OCd(a,e?"ACCEPTED":"PARTIALLY_ACCEPTED",
b,f),4)):D.nextAddress!=6?z(D,a.logIssueUserEventForRecommendation(b,e?"EVENT_TYPE_ACCEPT":"EVENT_TYPE_PARTIALLY_ACCEPT"),0):z(D,a.logIssueUserEventForRecommendations("FEATURE_ISSUE_DEDUPLICATION_BATCH","EVENT_TYPE_ACCEPT",k),0)})},OCd=function(a,b,c,d){var e,f;return y(function(g){if(g.nextAddress==1)return Vd(g,2),e=c.name,z(g,ee(a.api.createUserEngagements([{parent:e,userEngagement:{type:b,issueModification:d}}])),4);if(g.nextAddress!=2)return bk(g,0);f=Zd(g);aN(a.errorHandler,f);$d(g)})};
TV.prototype.logIssueUserEventForRecommendation=function(a,b){var c=this,d,e,f;return y(function(g){if(g.nextAddress==1){d=os(a.resource);if(!d||c.activeSession.isExternalSession())return g.return();Vd(g,2);e=NCd[a.type];return e==="FEATURE_UNSPECIFIED"?g.jumpTo(4):z(g,ee(c.issueUserEventsService.logIssueUserEventForRecommendation(d,e,b,a.name)),4)}if(g.nextAddress!=2)return bk(g,0);f=Zd(g);aN(c.errorHandler,f);$d(g)})};
TV.prototype.logIssueUserEventForRecommendations=function(a,b,c){var d=this,e,f;return y(function(g){if(g.nextAddress==1)return e=c.map(function(k){return{issueId:k.issueId,feature:a,eventType:b,recommendationName:k.recommendationName}}),Vd(g,2),z(g,ee(d.issueUserEventsService.logIssueUserEventForRecommendations(e)),4);if(g.nextAddress!=2)return bk(g,0);f=Zd(g);aN(d.errorHandler,f);$d(g)})};TV.\u0275fac=function(a){return new (a||TV)};TV.\u0275prov=Cc({token:TV,factory:TV.\u0275fac,providedIn:"root"});var SCd=new bd("GM2_PROGRESS_BAR_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var TCd=function(a){this.options=a;if(a.disableGmatStyle)throw Error("eb");};TCd.\u0275fac=function(a){return new (a||TCd)(Ve(SCd))};TCd.\u0275dir=af({type:TCd,selectors:[["mat-progress-bar"]],hostAttrs:[1,"gmat-mdc-progress-bar"],standalone:!1});var UV=function(){};UV.\u0275fac=function(a){return new (a||UV)};UV.\u0275mod=$e({type:UV});UV.\u0275inj=Dc({imports:[t8c]});var UCd=["container"],VCd=["inputBox"],WCd=["dropdownTemplate"],XCd=["dropdown"],ljb=function(a){return{mode:"recommended",$implicit:a}},pjb=function(a){return{mode:"popular",$implicit:a}},sjb=function(a){return{mode:"recent",$implicit:a}},Fjb=function(a){return{mode:"default",$implicit:a}},zjb=function(a){return[a]},yjb=function(a,b){return{team:a,level:0,order:b}},Tjb=function(a,b){return{mode:"default",$implicit:a,teamScope:b}},Qjb=function(){return[0]},Ijb=function(a){return[0,a]},Zjb=function(a){return{mode:"leaf",
$implicit:a}},ekb=function(a,b,c){return{team:a,level:b,order:c}},YCd=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ZCd=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],VV=function(){LO.apply(this,arguments);this.overlay=q(rA);this.viewContainerRef=q(ig);this.userApi=q(TN);this.componentApi=q(yN);this.componentActions=q(JV);this.teamsService=
q(BP);this.userAccess=q(lO);this.analytics=q(PO);this.activeSession=q(Zu);this.issueRecommendationFridge=q(TO);this.componentFridge=q(AN);this.trackerHelpers=q(WQ);this.cdr=q(Yx);this.recommendationsService=q(TV);this.placeholder="";this.isRequired=!1;this.ariaLabel="";this.checkAdminAccess=this.showOverlayAbove=!1;this.accessCheckComplete=new KO;this.shouldFocus=!1;this.touched=new KO;this.selectedComponentChange=new KO;this.dropdownClosed=new KO;this.checkingAccess=this.hasAccess=!1;this.isExternal=
this.activeSession.isExternalSession();this.searchState=new PV(this.userApi,this.userAccess,this.componentApi,this.componentActions,this.teamsService,this.analytics,this.destroyed$,{includeTeamData:!this.isExternal},this.trackerHelpers,this.activeSession,this.issueRecommendationFridge,this.componentFridge,this.recommendationsService);this.componentLoading=this.isDropdownOpen=!1};Z(VV,LO);VV.\u0275dir=LO.\u0275dir;
VV.prototype.ngOnInit=function(){var a=this;this.searchState.init(!!this.selectedComponent,this.selectedComponent,this.issueId);this.searchState.componentIdSelected$.pipe(Af(this.destroyed$)).subscribe(function(b){a.componentLoading=!0;a.componentActions.get(b).then(function(c){a.selectedComponent=c;$Cd(a);a.componentLoading=!1;a.close(!0);a.selectedComponentChange.emit(c)})},function(){a.componentLoading=!1});se(this.searchState.debouncedSearchQuery$,this.searchState.state$).pipe(Af(this.destroyed$)).subscribe(function(){a.clearActiveItem()})};
VV.prototype.isLoading=function(){return this.componentLoading||this.searchState.componentsLoading||this.searchState.teamsLoading};
var $Cd=function(a){if(a.selectedComponent){var b=Lu(a.trackerHelpers,a.selectedComponent.componentPathInfo);b=Iib(a.selectedComponent,b);a.searchState.searchQuery$.next(b.componentPath.length?b.componentPath[b.componentPath.length-1].pathText:"")}else a.searchState.searchQuery$.next("")},aDd=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}};h=VV.prototype;h.ngOnChanges=function(a){a.selectedComponent&&($Cd(this),this.checkAdminAccess&&this.selectedComponent&&bDd(this,this.selectedComponent))};h.ngOnDestroy=function(){this.close();LO.prototype.ngOnDestroy.call(this)};
h.ngAfterViewInit=function(){var a=this;this.keyManager=Lz(Mz(new Qz(this.listOptions)));this.searchState.listUpdated$.pipe(Af(this.destroyed$)).subscribe(function(){a.cdr.markForCheck()});this.listOptions.changes.pipe(Af(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(ykb);b=[].concat(n(c),n(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()})};h.open=function(){this.isDropdownOpen||(this.isDropdownOpen=!0,this.dropdownOverlayRef=this.createOverlay(),this.attach())};
h.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"&&Pjb(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"))};
h.clearQuery=function(){this.searchState.searchQuery$.next("");this.isDropdownOpen||this.inputBox.nativeElement.focus()};var cDd=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};
VV.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),aDd(this)):(this.open(),setTimeout(function(){var d;(d=b.keyManager)==null||OGc(d);aDd(b)}));break;case "ArrowDown":this.isDropdownOpen?(this.keyManager.onKeydown(a),aDd(this)):(this.open(),setTimeout(function(){var d;(d=b.keyManager)!=null&&d._setActiveItemByIndex(0,1);aDd(b)}));break;case "Enter":this.keyManager.activeItem&&
(this.searchState.teamScope$.value===this.keyManager.activeItem.data?Pjb(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(),Mjb(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?Ljb(this.searchState,this.keyManager.activeItem.data):KCd(this.searchState));this.searchState.state$.value==="component_scope"&&(a.preventDefault(),Vjb(this.searchState));break;case "Backspace":case "Delete":this.keyManager.activeItem&&this.searchState.teamScope$.value===this.keyManager.activeItem.data&&(Pjb(this.searchState),a.preventDefault());break;default:this.touched.emit(),
this.isDropdownOpen||this.open()}};var Hs=function(a){a.preventDefault();a.stopPropagation()},bDd=function(a,b){a.checkingAccess=!0;a.hasAccess=!1;mO(a.userAccess,"admin","components/"+b.componentId).then(function(c){a.checkingAccess=!1;a.accessCheckComplete.emit(c);a.hasAccess=c})};h=VV.prototype;
h.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy(),c;return this.overlay.create(new ki({positionStrategy:a,scrollStrategy:b,panelClass:["b-team-component-picker-dropdown","gmat-elevation-z3"],width:(c=this.container.nativeElement)==null?void 0:c.offsetWidth}))};h.attach=function(){var a=new mA(this.dropdownTemplateRef,this.viewContainerRef),b;(b=this.dropdownOverlayRef)==null||b.attach(a);var c;(c=this.dropdownOverlayRef)==null||c.updatePosition()};
h.getPositionStrategy=function(){var a=this.showOverlayAbove?ZCd:YCd;return dA(pHc(fA(jA(this.overlay.position(),this.container),!1),!1),a)};h.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};h.clearActiveItem=function(){this.keyManager&&this.keyManager.activeItem&&(this.keyManager.setActiveItem(-1),this.dropdown&&(this.dropdown.nativeElement.scrollTop=0))};
da.Object.defineProperties(VV.prototype,{includeArchived:{configurable:!0,enumerable:!0,set:function(a){this.searchState.includeArchived=a}}});VV.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(VV)))(b||VV)}}();
VV.\u0275cmp=C({type:VV,selectors:[["b-team-component-picker"]],viewQuery:function(a,b){a&1&&(kg(UCd,7),kg(VCd,7),kg(WCd,7),kg(XCd,5),kg(QV,5));if(a&2){var c;og(c=pg())&&(b.container=c.first);og(c=pg())&&(b.inputBox=c.first);og(c=pg())&&(b.dropdownTemplateRef=c.first);og(c=pg())&&(b.dropdown=c.first);og(c=pg())&&(b.listOptions=c)}},inputs:{placeholder:"placeholder",isRequired:"isRequired",ariaLabel:"ariaLabel",showOverlayAbove:"showOverlayAbove",issueId:"issueId",selectedComponent:"selectedComponent",
checkAdminAccess:"checkAdminAccess",shouldFocus:"shouldFocus",includeArchived:"includeArchived"},outputs:{accessCheckComplete:"accessCheckComplete",touched:"touched",selectedComponentChange:"selectedComponentChange",dropdownClosed:"dropdownClosed"},features:[Ff,Gx],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"],["svgIcon","spark_24px",1,"icon-spark"],["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=t();K(0,"div",6,0)(2,"input",7,1);U(4,"async");N("ngModelChange",function(d){u(c);return v(b.searchState.searchQuery$.next(d))})("keydown",function(d){u(c);return v(b.handleKeydown(d))})("click",function(){u(c);
b.open();return v(b.touched.emit())})("focus",function(){u(c);return v(b.open())})("blur",function(){u(c);return v(b.close())});L();F(5,Wib,2,0,"button",8);L();F(6,$ib,3,1,"div");E(7,bkb,6,2,"ng-template",null,2,Og)(9,hkb,5,11,"ng-template",null,3,Og)(11,xkb,2,1,"ng-template",null,4,Og)}a&2&&(a=Q(3),B(2),I("ngModel",W(4,8,b.searchState.searchQuery$))("placeholder",b.placeholder)("required",b.isRequired),Jf("aria-label",b.ariaLabel+(b.selectedComponent?" Component selected. Change.":" Choose component"))("aria-expanded",
b.isDropdownOpen)("aria-activedescendant",cDd(b)),B(3),G(a.value?5:-1),B(),G(b.checkAdminAccess?6:-1))},dependencies:[OV,mC,xi,PB,hC,WB,ZA,XA,VA,UV,TCd,rJ,hK,QV,XJ,iz,MA,oy,RV,py],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}.section-header[_ngcontent-%COMP%]   .icon-spark[_ngcontent-%COMP%]{color:var(--primary-c600);font-size:1.125rem;height:18px;padding-right:4px;width:18px}.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%]{--mat-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 WV=function(){this.warningChunks=[]};WV.prototype.ngOnInit=function(){var a=this.warningText,b=Dkb(a,"EXTERNAL_PUBLIC")||Dkb(a,"EXTERNAL_PARTNER");this.warningChunks=b?[{text:a.substring(0,b.startOfMatch)},{accessLevel:b.accessLevel},{text:a.substring(b.endOfMatch)}]:[{text:a}]};WV.\u0275fac=function(a){return new (a||WV)};
WV.\u0275cmp=C({type:WV,selectors:[["b-component-move-warning-content"]],inputs:{warningText:"warningText"},decls:3,vars:0,consts:[[3,"accessLevel"]],template:function(a,b){a&1&&(K(0,"div"),Pf(1,Bkb,3,1,"span",null,Of),L());a&2&&(B(),Qf(b.warningChunks))},dependencies:[FV],encapsulation:2});var Ckb=new Map([["EXTERNAL_PUBLIC","visible to public users"],["EXTERNAL_PARTNER","visible to external partners"]]);var XV=function(){this.data=q(fB);this.documentationLinks=q(OQ);this.dialogRef=q(dB);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)};XV.prototype.allow=function(){var a;(a=this.dialogRef)==null||a.close();this.isAllowed&&this.acknowledged&&this.callbacks.allow(this.setLimitViewTrusted)};
XV.prototype.cancel=function(){var a;(a=this.dialogRef)==null||a.close();this.callbacks.cancel()};XV.\u0275fac=function(a){return new (a||XV)};
XV.\u0275cmp=C({type:XV,selectors:[["b-component-move-warning"]],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&&(K(0,"h1",0),S(1),L(),K(2,"div",1)(3,"div",2),M(4,"b-component-move-warning-content",3),L(),M(5,"br"),K(6,"a",4),S(7,"Learn more"),L(),F(8,Gkb,3,1,"div"),L(),K(9,"mat-dialog-actions")(10,"button",5),N("click",function(){return b.cancel()}),S(11," Cancel "),L(),F(12,Hkb,2,1,"button",6),L());a&2&&(B(),Ag(b.header),B(3),I("warningText",b.warning),B(2),Jf("href",b.learnMore,Me),B(2),
G(b.isExternalMove&&b.isAllowed?8:-1),B(4),G(b.isAllowed?12:-1))},dependencies:[WV,mC,PB,WB,ZA,XA,TA,PK,OK,wI,mB,hB,lB,kB,jS,iS],styles:["mat-checkbox[_ngcontent-%COMP%] {\n      margin-right: 8px;\n    }"],changeDetection:0});var dDd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,dDd.messageId)};Z(dDd,X);dDd.messageId="b.CompareComponentAccessResponse";var YV=function(){this.executor=q(SM)};YV.prototype.check=function(a,b,c){return this.executor.get({url:"action/compare_component_access/"+a+"/"+b,options:{params:{issueId:c}},responseConstructor:dDd}).then(Y0a)};YV.\u0275fac=function(a){return new (a||YV)};YV.\u0275prov=Cc({token:YV,factory:YV.\u0275fac,providedIn:"root"});var ZV=function(){this.issueInteractionsTracking=q(pR);this.issueFullFridge=q(RO);this.componentFridge=q(AN);this.butterBar=q(JM);this.compareComponentAccess=q(YV);this.matDialogService=q(gB);this.editIssueService=q(tR);this.activeSession=q(Zu)};
ZV.prototype.updateComponent=function(a,b){var c=this,d,e,f,g,k,m,r,w,x,D,H,J;return y(function(O){switch(O.nextAddress){case 1:hs(c.issueInteractionsTracking,a,{label:"changeComponent"});if(!b)return O.return(!1);d=l;return z(O,Promise.all([ee(c.issueFullFridge.watch(a)),ee(c.componentFridge.watch(b))]),2);case 2:e=d(O.yieldResult);f=e.next().value;g=e.next().value;k=f;m=g;if(!k)return c.butterBar.showWarning("Could not load issue "+a),O.return(!1);if(!m)return c.butterBar.showWarning("Could not load component "+
b),O.return(!1);r=k.snapshot[0].componentId;return r===b?O.return(!1):z(O,c.compareComponentAccess.check(r,b,a),3);case 3:w=O.yieldResult;x=!!m.trackerId;D=k.snapshot[0].issueAccessLimitLevel==="LIMIT_NONE";H=x&&D;J={allow:!1,setLimitViewTrusted:!1};if(!w.warning){O.jumpTo(4);break}return z(O,eDd(c,w,H),5);case 5:if(J=O.yieldResult,!J.allow)return O.return(!1);case 4:return z(O,c.editIssueService.updateComponent(a,b,w.isExternalMove,J.setLimitViewTrusted),6);case 6:return O.return(!0)}})};
var eDd=function(a,b,c){c=c===void 0?!1:c;return new Promise(function(d){eB(a.matDialogService.open(XV,{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})})})};ZV.\u0275fac=function(a){return new (a||ZV)};ZV.\u0275prov=Cc({token:ZV,factory:ZV.\u0275fac,providedIn:"root"});var fDd=function(){this.documentationLinks=q(OQ)};fDd.\u0275fac=function(a){return new (a||fDd)};
fDd.\u0275cmp=C({type:fDd,selectors:[["b-issue-component-retention-dialog"]],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&&(K(0,"h1",0),S(1,"Apply component retention settings?"),L(),
K(2,"div",1)(3,"p"),S(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. "),L(),K(5,"a",2),S(6,"Learn more"),L()(),K(7,"div",3)(8,"button",4),S(9," Cancel "),L(),K(10,"button",5),S(11," OK "),L()());a&2&&(B(5),I("href",Tu(),Me),B(3),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0))},dependencies:[ZA,XA,TA,mB,hB,lB,kB],encapsulation:2});var gDd=function(){this.documentationLinks=q(OQ);this.data=q(fB);this.deletionReasons=this.data.deletionReasons;this.attachmentId=this.data.attachmentId};gDd.\u0275fac=function(a){return new (a||gDd)};
gDd.\u0275cmp=C({type:gDd,selectors:[["b-issue-delete-attachment-dialog"]],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&&(K(0,"h1",0),S(1),L(),K(2,"div",1)(3,"span"),S(4," Please select the reason for deleting this attachment. "),K(5,"a",2),S(6," \u00a0Learn more "),L()(),K(7,"mat-radio-group",3),Eg("ngModelChange",function(c){Dg(b.selectedReason,c)||(b.selectedReason=c);return c}),Pf(8,Jkb,3,4,"mat-radio-button",4,Of),L()(),K(10,"div",5)(11,"button",6),S(12," Cancel "),L(),K(13,"button",7),S(14," Delete "),L()());a&2&&(B(),T("Delete attachment ",b.attachmentId),B(4),I("href",ysd(b.documentationLinks),
Me),B(2),Cg("ngModel",b.selectedReason),B(),Qf(b.deletionReasons),B(5),I("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[mC,PB,WB,ZA,XA,TA,mB,hB,lB,kB,jS,iS],styles:["mat-radio-group[_ngcontent-%COMP%] {display: flex; flex-direction: column; margin: 15px 0;}","mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var hDd=function(){this.documentationLinks=q(OQ);this.data=q(fB);this.deletionReasons=this.data.deletionReasons;this.commentNumber=this.data.commentNumber;this.issueId=this.data.issueId};hDd.\u0275fac=function(a){return new (a||hDd)};
hDd.\u0275cmp=C({type:hDd,selectors:[["b-issue-delete-comment-dialog"]],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&&(K(0,"h1",0),S(1),L(),K(2,"div",1)(3,"label"),S(4,"Please select the reason for deleting this comment."),L(),K(5,"a",2),S(6," \u00a0Learn more "),L(),K(7,"mat-radio-group",3),Eg("ngModelChange",function(c){Dg(b.selectedReason,c)||(b.selectedReason=c);return c}),Pf(8,Lkb,3,4,"mat-radio-button",4,Of),L()(),K(10,"div",5)(11,"button",6),S(12," Cancel "),L(),K(13,"button",7),S(14," Delete "),L()());a&2&&(B(),Bg("Delete Comment #",b.commentNumber," of Issue ",b.issueId),B(4),
I("href",ysd(b.documentationLinks),Me),B(2),Cg("ngModel",b.selectedReason),B(),Qf(b.deletionReasons),B(5),I("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[mC,PB,WB,ZA,XA,TA,mB,hB,lB,kB,jS,iS],styles:["mat-radio-group[_ngcontent-%COMP%] {display: flex; flex-direction: column; margin: 15px 0;}","mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var iDd=function(){this.documentationLinks=q(OQ);this.activeSession=q(Zu);this.REMOVAL_URL=Mkb(this.activeSession.isInternalSession())};iDd.\u0275fac=function(a){return new (a||iDd)};
iDd.\u0275cmp=C({type:iDd,selectors:[["b-issue-flag-as-spam-dialog"]],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&&(K(0,"h1",0),S(1,"Report spam?"),L(),K(2,"div",
1)(3,"p"),S(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, "),K(5,"a",2),S(6,"see here"),L(),S(7,". "),L(),M(8,"p"),K(9,"p"),S(10," To delete PII or other sensitive content, "),K(11,"a",2),S(12,"file a support request"),L(),S(13,". "),L()(),K(14,"div",3)(15,"button",4),S(16," Cancel "),L(),K(17,"button",5),S(18," Report spam "),L()());a&2&&(B(5),I("href",xsd(b.documentationLinks),Me),B(6),I("href",b.REMOVAL_URL,
Me),B(4),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0))},dependencies:[ZA,XA,TA,mB,hB,lB,kB],encapsulation:2});var jDd=function(){this.documentationLinks=q(OQ);this.indefiniteRetentionAcknowledged=!1};jDd.\u0275fac=function(a){return new (a||jDd)};
jDd.\u0275cmp=C({type:jDd,selectors:[["b-issue-indefinite-retention-dialog"]],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&&(K(0,"h1",0),S(1,"Retain issue indefinitely?"),
L(),K(2,"div",1)(3,"p"),S(4," Are you sure you want to override any component retention settings, and retain this issue indefinitely? "),L(),K(5,"p")(6,"b"),S(7,"Please note indefinite retention is not appropriate in many circumstances."),L(),M(8,"br"),S(9," Before selecting this option, you should make sure at least one of the following is true: "),L(),K(10,"ul")(11,"li"),S(12," There is no personal data, user data, or any other forms of sensitive data being stored in this issue. "),L(),K(13,"li"),
S(14," You have a process in place to manually delete this issue within an approved period of time. "),L(),K(15,"li"),S(16," Legal and Privacy have approved this non-standard retention period. "),L()(),M(17,"p"),K(18,"p")(19,"a",2),S(20,"Learn more"),L()(),K(21,"mat-checkbox",3),N("change",function(c){return b.indefiniteRetentionAcknowledged=c.checked}),S(22," I acknowledge "),L()(),K(23,"div",4)(24,"button",5),S(25," Cancel "),L(),K(26,"button",6),S(27," OK "),L()());a&2&&(B(19),I("href",Tu(),Me),
B(2),I("checked",b.indefiniteRetentionAcknowledged),B(3),I("mat-dialog-close",!1),B(2),I("mat-dialog-close",!0)("disabled",!b.indefiniteRetentionAcknowledged))},dependencies:[ZA,XA,TA,PK,OK,wI,mB,hB,lB,kB],styles:[".mat-mdc-dialog-content[_ngcontent-%COMP%] { max-height: unset; overflow: unset; }","ul[_ngcontent-%COMP%] { list-style: disc }"]});var $V=function(){LO.apply(this,arguments);this.userPreferencesManager=q(VP);this.timestamps$=this.userPreferencesManager.preferences$.pipe(A(function(a){var b;return(b=a.dismissalTimestamps)!=null?b:void 0}))};Z($V,LO);$V.\u0275dir=LO.\u0275dir;var kDd=function(a,b){return a.timestamps$.pipe(A(function(c){return c?!!c[b]:!1}))};$V.prototype.isDismissed=function(a){return ee(kDd(this,a))};
$V.prototype.dismiss=function(a){var b=this;return this.timestamps$.pipe(mf(1),A(function(c){var d={};return{dismissalTimestamps:Object.assign({},c,(d[a]=new Date(Date.now()),d))}}),zf(function(c){return b.userPreferencesManager.save(c)}),A(function(c){if(c.dismissalTimestamps&&c.dismissalTimestamps[a])return c.dismissalTimestamps[a]}))};$V.\u0275fac=function(){var a;return function(b){return(a||(a=Ed($V)))(b||$V)}}();$V.\u0275prov=Cc({token:$V,factory:$V.\u0275fac,providedIn:"root"});var aW=function(){LO.apply(this,arguments);this.data=q(fB);this.dialogRef=q(dB);this.dismissalService=q($V);this.dontShowAgain=!1};Z(aW,LO);aW.\u0275dir=LO.\u0275dir;aW.prototype.confirm=function(){var a=this,b;return y(function(c){if(c.nextAddress==1){if(!a.dontShowAgain)return c.jumpTo(2);b=Nkb(a.data.action);return z(c,ee(a.dismissalService.dismiss(b)),2)}a.dialogRef.close(!0);$d(c)})};aW.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(aW)))(b||aW)}}();
aW.\u0275cmp=C({type:aW,selectors:[["b-share-email-confirmation-dialog"]],features:[Ff],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&&(K(0,"div",0),M(1,"div",1),K(2,"mat-checkbox",2),N("change",function(c){return b.dontShowAgain=c.checked}),S(3," Don't show this again "),
L()(),K(4,"div",3)(5,"button",4),N("click",function(){return b.dialogRef.close(!1)}),S(6," Cancel "),L(),K(7,"button",5),N("click",function(){return b.confirm()}),S(8," Confirm "),L()());a&2&&(B(),I("innerHTML",b.data.content,Le),B(),I("checked",b.dontShowAgain))},dependencies:[ZA,XA,TA,PK,OK,wI,mB,lB],styles:["mat-checkbox[_ngcontent-%COMP%] {\n      margin-top: 12px;\n      padding-bottom: 12px;\n    }"]});var lDd=[fDd,jDd,iDd,hDd,gDd,aW],mDd=function(){};mDd.\u0275fac=function(a){return new (a||mDd)};mDd.\u0275mod=$e({type:mDd});mDd.\u0275inj=Dc({imports:[Dz,FN,pB,ZA,qC,mC,DB,kS,XS,cL,PK,lDd]});var Qkb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Qkb,X);h=Qkb.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.setEmbeddingType=function(a){cn(this,7,a)};h.getScope=function(){return Fi(this,2)};h.setScope=function(a){return $m(this,2,a)};h.setScopeSortOrder=function(a){return $m(this,3,a)};h.setMaxResults=function(a){return sn(this,4,a)};
h.setView=function(a){return cn(this,5,a)};h.setIssueDescriptionView=function(a){return cn(this,6,a)};var Okb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Okb,X);h=Okb.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.setEmbeddingType=function(a){cn(this,6,a)};h.getScope=function(){return Fi(this,2)};h.setScope=function(a){return $m(this,2,a)};h.setScopeSortOrder=function(a){return $m(this,4,a)};h.setMaxResults=function(a){return sn(this,5,a)};var Js=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Js.messageId)};Z(Js,X);Js.prototype.getIt=function(){return Y(this,Okb,1,fb)};Js.prototype.setIt=function(a){return hj(this,Okb,1,a,fb)};Js.messageId="b.LookupSimilarIssuesRequest";var nDd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(nDd,X);h=nDd.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getScore=function(){return tm(this,2)};h.setScore=function(a){return Jp(this,2,a)};var oDd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(oDd,X);var pDd=function(a){return Wi(a,$p,1,Xi())},qDd=function(a){return Wi(a,nDd,2,Xi())};var rDd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,rDd.messageId)};Z(rDd,X);rDd.prototype.getIt=function(){return Y(this,oDd,3,fb)};rDd.prototype.setIt=function(a){return hj(this,oDd,3,a,fb)};rDd.messageId="b.LookupSimilarIssuesResponse";var Ks=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Ks.messageId)};Z(Ks,X);Ks.prototype.getIt=function(){return Y(this,Qkb,1,fb)};Ks.prototype.setIt=function(a){return hj(this,Qkb,1,a,fb)};Ks.messageId="b.RetrieveSimilarIssuesRequest";var sDd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(sDd,X);sDd.prototype.getIssuesList=function(){return Wi(this,$p,1,Xi())};var tDd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,tDd.messageId)};Z(tDd,X);tDd.prototype.getIt=function(){return Y(this,sDd,1,fb)};tDd.prototype.setIt=function(a){return hj(this,sDd,1,a,fb)};tDd.messageId="b.RetrieveSimilarIssuesResponse";var uDd={},vDd=(uDd[IQ.queryAtom]=!0,uDd),bW=function(){this.executor=q(RM)},wDd=function(a,b){return a.executor.post({url:"action/lookup_similar_issues",body:Pkb(b),responseConstructor:rDd}).pipe(A(function(c){var d=pDd(c.getIt()).map(ZZa);c=qDd(c.getIt()).map(function(e){return e.getScore()});return{similarIssues:d,scores:c}}))},xDd=function(a,b){return a.executor.post({url:"action/retrieve_similar_issues",body:Rkb(b),responseConstructor:tDd}).pipe(A(function(c){return{similarIssues:c.getIt().getIssuesList().map(ZZa),
scores:[]}}))},yDd=function(a,b,c,d,e,f){d=d===void 0?new Set:d;e={maxResults:e===void 0?7:e,scopeSortOrder:"vote_count desc"};(f===void 0?0:f)?e.scope=void 0:e.scope=Yr.apply(null,[Xr("modified","365d")].concat(n(Array.from(d,function(g){return g.queryAtom}))));c==null?e.issueId=Number(b):e.keyword=c;return wDd(a,e)},zDd=function(a,b,c,d){d=d===void 0?new Set:d;return wDd(a,{issueId:Number(b),maxResults:7,scope:Yr.apply(null,[Xr("-id",b),Xr("id",c)].concat(n(Array.from(d,function(e){return e.queryAtom}).filter(function(e){return vDd[e]}))))})};
bW.\u0275fac=function(a){return new (a||bW)};bW.\u0275prov=Cc({token:bW,factory:bW.\u0275fac,providedIn:"root"});var ADd=yn(function(a){var b,c;return(c=a==null?void 0:(b=a.aggregatedData)==null?void 0:b.voteCount)!=null?c:0},zn),BDd=new Set([IQ]),cW=function(){this.issueFullFridge=q(RO);this.issueFridge=q(GO);this.similarIssuesApi=q(bW);this.analytics=q(PO);this.recentlyViewedIds$=this.issueFridge.watchMany({custom:"viewed",pageSize:50}).pipe(A(function(a){return a.results.map(function(b){return b.issueId})}));this.componentIdToRecentCanonicals=new Map},CDd=function(a,b,c,d){c=c===void 0?BDd:c;d=yDd(a.similarIssuesApi,
b,void 0,c,void 0,d===void 0?!1:d);var e=be([]).pipe(nf(5E3));e=nia(e,a.recentlyViewedIds$).pipe(zf(function(f){return zDd(a.similarIssuesApi,b,f,c)}));return he([d,e]).pipe(A(function(f){var g=l(f);f=g.next().value;g=g.next().value;return Skb(f,g)}),A(function(f){return f.similarIssues.map(function(g,k){return Object.assign({},g,{score:f.scores[k]})})}),A(function(f){return f.slice(0,7)}),hf(function(f){pn("IssuePickerSearchService::searchSimilarIssuesById() error: ",f);var g,k,m=(k=f==null?void 0:
(g=f.error)==null?void 0:g.status)!=null?k:f==null?void 0:f.status;a.analytics.trackEvent("issue-picker-svc","error","by-id",m);return be([])}))},EDd=function(a,b,c,d,e){c=c===void 0?BDd:c;return b.trim()?d==="canonical"?yDd(a.similarIssuesApi,e==null?void 0:e.id,b,c).pipe(A(function(f){return f.similarIssues.map(function(g,k){return Object.assign({},g,{score:f.scores[k]})})}),hf(function(f){pn("IssuePickerSearchService::searchSimilarIssues() error: ",f);var g,k,m=(k=f==null?void 0:(g=f.error)==null?
void 0:g.status)!=null?k:f==null?void 0:f.status;a.analytics.trackEvent("issue-picker-svc","error","by-text",m);return be([])})):DDd(a,b):be(void 0)};
cW.prototype.search=function(a,b,c,d){var e=this;if(!a.trim())return be(void 0);if(b==="canonical"){b=FDd(this,a,d);d=GDd(this,d).pipe(zf(function(g){return e.issueFridge.watchMany({filter:Yr(a,Xr("-id",c==null?void 0:c.id),Xr("status","open"),Xr("componentid",g)),pageSize:10})}),A(function(g){return g==null?void 0:g.results}));var f=this.issueFridge.watchMany({filter:Yr(a,Xr("-id",c==null?void 0:c.id)),pageSize:10,sort:"modified_time:desc"}).pipe(A(function(g){return g==null?void 0:g.results}),yf([]));
return he([b,d,f]).pipe(A(function(g){return Nq(g.flat(),function(k){return k.issueId})}),A(function(g){return g.slice(0,10)}),A(function(g){return ADd(g,"DESCENDING")}))}return DDd(this,a)};
var DDd=function(a,b){return a.issueFridge.watchMany({filter:b,pageSize:10}).pipe(A(function(c){return c==null?void 0:c.results}))},FDd=function(a,b,c){return c&&c!=="0"?HDd(a,c).pipe(zf(function(d){return d.length===0?be([]):a.issueFridge.watchMany({filter:Yr(b,Xr("id",d),Xr("status","open")),pageSize:10}).pipe(A(function(e){return e==null?void 0:e.results}))})):be([])},HDd=function(a,b){if(!b||b==="0")return be([]);if(a.componentIdToRecentCanonicals.has(b))return a.componentIdToRecentCanonicals.get(b);
var c=a.issueFridge.watchMany({filter:Yr(Xr("componentid",b,!0),Xr("status","duplicate")),sort:"modified_time:desc",pageSize:250}).pipe(A(function(d){return d==null?void 0:d.results}),A(function(d){return d.map(function(e){return e.snapshot[0].duplicateOfIssueId})}),A(function(d){return Oq(d.filter(ln))}),wf({bufferSize:1,refCount:!0}));a.componentIdToRecentCanonicals.set(b,c);return c},GDd=function(a,b){return b&&b!=="0"?HDd(a,b).pipe(zf(function(c){return a.issueFullFridge.watchSet(c)}),A(function(c){return c.map(function(d){return d.snapshot[0].componentId})}),
A(function(c){return[b].concat(n(c.filter(ln)))}),A(Oq),wf({bufferSize:1,refCount:!0})):be([])};cW.\u0275fac=function(a){return new (a||cW)};cW.\u0275prov=Cc({token:cW,factory:cW.\u0275fac,providedIn:"root"});var dW=function(){};dW.\u0275fac=function(a){return new (a||dW)};dW.\u0275cmp=C({type:dW,selectors:[["b-async-data-placeholder"]],inputs:{isReady:"isReady"},ngContentSelectors:["*"],decls:2,vars:1,consts:[[1,"animated-loading-bar"]],template:function(a,b){a&1&&(fg(),F(0,Tkb,1,0)(1,Ukb,1,0,"div",0));a&2&&G(b.isReady?0:1)},encapsulation:2});var eW=function(){this.mode="datetime";this.isDataLoaded=!1};eW.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};eW.\u0275fac=function(a){return new (a||eW)};
eW.\u0275cmp=C({type:eW,selectors:[["b-issue-created-time-cell"]],inputs:{issue:"issue",mode:"mode"},features:[Gx],decls:2,vars:2,consts:[[1,"nowrap",3,"isReady"],[3,"mode","timestamp","paddingLeftPx"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,Vkb,1,3,"b-formatted-date-time",1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.createdTime?1:-1))},dependencies:[dW,DT],encapsulation:2,changeDetection:0});var fW=function(){LO.apply(this,arguments);var a=this;this.activeSession=q(Zu);this.trackerHelpers=q(WQ);this.clipboard=q(bQ);this.butterBar=q(JM);this.componentId=void 0;this.issueTitle=this.issueId="";this.disabled=this.isExternalIssue=!1;this.showCopyOptions=this.enableHotkeys=!0;this.isOpen=!1;this.HOTKEYS=ns;this.copyIssueId=yMc(function(){a.clipboard.copy(a.issueId);fs(a.butterBar,"Issue ID copied",2E3)})};Z(fW,LO);fW.\u0275dir=LO.\u0275dir;var Ls=function(a,b){a.clipboard.copy(b.value);a.trigger.close()};
fW.prototype.getIssueUrl=function(){return this.getAppBaseUrl(this.isExternalIssue)};fW.prototype.getAppBaseUrl=function(a){return Xt(this.trackerHelpers,this.issueId,void 0,a===void 0?!1:a)};fW.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(fW)))(b||fW)}}();
fW.\u0275cmp=C({type:fW,selectors:[["b-issue-id-picker"]],viewQuery:function(a,b){a&1&&kg(LT,5);if(a&2){var c;og(c=pg())&&(b.trigger=c.first)}},inputs:{componentId:"componentId",issueId:"issueId",issueTitle:"issueTitle",isExternalIssue:"isExternalIssue",disabled:"disabled",enableHotkeys:"enableHotkeys",showCopyOptions:"showCopyOptions"},features:[Ff],decls:4,vars:6,consts:[["trigger","onedevPopupPanelTrigger"],["contentPanel","onedevPopupPanel"],["issueIdField",""],["issueUrlField",""],["urlAndTitleField",
""],["issueShortlinkField",""],["issueEmailField",""],["todoCommentField",""],["type","button","matTooltip","Copy issue ID","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&&(K(0,"button",8),N("click",function(){return b.copyIssueId()})("mousedown",function(){return b.copyIssueId()}),S(1),F(2,Wkb,1,0,"mat-icon",9),L(),F(3,glb,6,5));a&2&&(yg("square-right",b.showCopyOptions),Jf("aria-label","Copy issue number "+b.issueId),B(),T(" ",b.issueId," "),B(),G(b.showCopyOptions?-1:2),B(),G(b.showCopyOptions?3:-1))},dependencies:[uz,ZA,XA,VA,hK,fT,iz,MA,VT,KT,LT],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 IDd=function(){this.enrichmentCategoryFridge=q(eO);this.enrichmentCategoryNames=[]},klb=function(a,b){return b==="Buganizer"?be({enableHovercard:!1,displayName:b,description:""}):a.enrichmentCategoryFridge.watch(b).pipe(A(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:""}}),yf({enableHovercard:!0,displayName:b,description:""}))};IDd.\u0275fac=function(a){return new (a||IDd)};
IDd.\u0275cmp=C({type:IDd,selectors:[["b-enrichment-categories-cell"]],inputs:{enrichmentCategoryNames:"enrichmentCategoryNames"},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&&Pf(0,llb,2,3,null,null,Of);a&2&&Qf(b.enrichmentCategoryNames)},dependencies:[AK,uK,zK,py],encapsulation:2,changeDetection:0});var gW=function(){};gW.prototype.ngOnInit=function(){};gW.prototype.onClick=function(a){a.stopPropagation()};gW.\u0275fac=function(a){return new (a||gW)};
gW.\u0275cmp=C({type:gW,selectors:[["b-issue-id-cell"]],hostBindings:function(a,b){a&1&&N("click",function(c){return b.onClick(c)})},inputs:{id:"id"},decls:2,vars:2,consts:[[3,"isReady"],[3,"issueId","showCopyOptions"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,mlb,1,2,"b-issue-id-picker",1),L());a&2&&(I("isReady",!!b.id),B(),G(b.id?1:-1))},dependencies:[dW,fW],encapsulation:2,changeDetection:0});var hW=function(){this.IssuePriority=rhd},JDd=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""}};hW.\u0275fac=function(a){return new (a||hW)};
hW.\u0275cmp=C({type:hW,selectors:[["b-issue-priority-display"]],inputs:{issuePriority:"issuePriority"},decls:2,vars:3,consts:[[1,"p-chip"]],template:function(a,b){a&1&&(Sf(0,"span",0),S(1),Tf());a&2&&(zg(JDd(b)),B(),a=b.issuePriority,T(" ",a==null?"--":bid[a]," "))},styles:["/*# sourceMappingURL=issue_priority_display.css.map */"],changeDetection:0});var iW=function(){this.priority=this.issue=null;this.isDataLoaded=!1};iW.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};iW.\u0275fac=function(a){return new (a||iW)};
iW.\u0275cmp=C({type:iW,selectors:[["b-issue-priority-cell"]],inputs:{issue:"issue"},features:[Gx],decls:2,vars:2,consts:[[1,"nowrap",3,"isReady"],[3,"issuePriority"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,nlb,1,1,"b-issue-priority-display",1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.priority?1:-1))},dependencies:[dW,hW],encapsulation:2,changeDetection:0});var jW=function(){this.changelistFridge=q(pN);this.IssueStatus=Jhd;this.STATUS_JS_FULL_TEXT=Um;this.STATUS_JS_TERSE=Zhd;this.isFixed=tWa;this.issue=null;this.isDataLoaded=!1};jW.prototype.ngOnChanges=function(){if(this.showPendingFix&&this.issue){var a=this.changelistFridge.peekAllRecords(),b;this.pendingFixCl=rlb(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};
jW.\u0275fac=function(a){return new (a||jW)};
jW.\u0275cmp=C({type:jW,selectors:[["b-issue-status-cell"]],inputs:{issue:"issue",showPendingFix:"showPendingFix"},features:[Gx],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&&(K(0,"b-async-data-placeholder",0),F(1,olb,2,8,"a",1)(2,qlb,1,1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.pendingFixCl&&!b.isFixed(b.issue)?1:2))},dependencies:[dW,hK,MA],encapsulation:2,
changeDetection:0});var kW=function(){this.el=q(Gd);this.bFocus=!0;this.nativeElement=this.el.nativeElement};kW.prototype.ngOnInit=function(){KDd(this)};kW.prototype.ngOnChanges=function(){KDd(this)};var KDd=function(a){setTimeout(function(){a.bFocus&&a.nativeElement.focus()})};kW.\u0275fac=function(a){return new (a||kW)};kW.\u0275dir=af({type:kW,selectors:[["","bFocus",""]],inputs:{bFocus:"bFocus"},features:[Gx]});var lW=function(){};lW.\u0275fac=function(a){return new (a||lW)};lW.\u0275mod=$e({type:lW});
lW.\u0275inj=Dc({});var mW=function(){this.activeSession=q(Zu);this.issueApi=q(uO);this.analytics=q(PO);this.errorHandler=q(ZM);this.onCc=new KO};mW.prototype.ngOnInit=function(){};
mW.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)}))};mW.\u0275fac=function(a){return new (a||mW)};mW.\u0275cmp=C({type:mW,selectors:[["b-cc-button"]],inputs:{issueId:"issueId",ccState:"ccState"},outputs:{onCc:"onCc"},decls:3,vars:1,consts:[["type","button","mat-button","",1,"medium",3,"click"]],template:function(a,b){a&1&&(K(0,"button",0),N("click",function(){return b.toggle()}),F(1,slb,2,0,"ng-container")(2,tlb,2,0,"ng-container"),L());a&2&&(B(),G(b.ccState?1:2))},dependencies:[ZA,XA,TA],encapsulation:2});var LDd=new RegExp("ALIAS:("+Object.values({GOOGLERS_UNRESTRICTED:"googlers_unrestricted",GOOGLE_DOMAIN:"google_domain",PUBLIC_NON_GOOGLE:"public_non_google",PUBLIC:"public"}).join("|")+")");var nW=function(){this.el=q(Gd);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)};nW.prototype.onInput=function(){this.resize(this.el.nativeElement.value)};
nW.prototype.ngOnDestroy=function(){document.body.removeChild(this.shadowInput)};nW.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"};nW.\u0275fac=function(a){return new (a||nW)};
nW.\u0275dir=af({type:nW,selectors:[["","b-adaptive-width-input",""]],hostBindings:function(a,b){a&1&&N("input",function(){return b.onInput()})},inputs:{minWidth:"minWidth",maxWidth:"maxWidth"}});var MDd=function(){};MDd.\u0275fac=function(a){return new (a||MDd)};MDd.\u0275mod=$e({type:MDd});MDd.\u0275inj=Dc({});var oW=function(){this.activeSession=q(Zu);this.sessionIsExternal=this.activeSession.isExternalSession()};oW.prototype.shouldShowLinks=function(){return!this.sessionIsExternal&&!!so(this.email)};oW.prototype.getName=function(){return this.email===void 0?"":this.email.split("@")[0]};oW.\u0275fac=function(a){return new (a||oW)};
oW.\u0275cmp=C({type:oW,selectors:[["b-group-email-card"]],inputs:{email:"email"},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&&(fg(),F(0,zlb,16,5)(1,Blb,1,1,"ng-container"),E(2,Clb,1,0,"ng-template",null,0,Og));a&2&&G(so(b.email)?0:1)},dependencies:[AK,uK,zK,iz,oy],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-card-title-max-height: 48px}.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:var(--onedev-card-title-max-height);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;overflow-wrap:anywhere}.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 pW=function(){};pW.\u0275fac=function(a){return new (a||pW)};pW.\u0275mod=$e({type:pW});pW.\u0275inj=Dc({imports:[FN,AK,oW]});var NDd=function(){this.dialogTabIndex=0;this.displayText="";this.overlaySizeConfig={maxHeight:"unset",maxWidth:600}};NDd.\u0275fac=function(a){return new (a||NDd)};
NDd.\u0275cmp=C({type:NDd,selectors:[["b-text-with-tooltip"]],inputs:{dialogTabIndex:"dialogTabIndex",displayText:"displayText"},ngContentSelectors:["*"],decls:4,vars:5,consts:[["tooltipTemplate",""],[3,"dialogLabel","dialogTabIndex","overlaySize","xapInlineDialog"]],template:function(a,b){a&1&&(fg(),K(0,"xap-text-trigger",1),S(1),L(),E(2,Dlb,3,0,"ng-template",null,0,Og));a&2&&(a=Q(3),I("dialogLabel",b.displayText)("dialogTabIndex",0)("overlaySize",b.overlaySizeConfig)("xapInlineDialog",a),B(),T(" ",
b.displayText,"\n"))},dependencies:[DD,CD,MK,mdd],styles:["/*# sourceMappingURL=text_with_tooltip.css.map */"],changeDetection:0});var qW=function(){LO.apply(this,arguments);this.activeSession=q(Zu);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 KO;this.chipClear=new KO;this.chipRemove=new KO};Z(qW,LO);qW.\u0275dir=LO.\u0275dir;h=qW.prototype;h.isPublicChip=function(){return this.principalType==="ALIAS"&&["public_non_google","public"].includes(this.value)};
h.isNonGaiaChip=function(){return this.principalType==="NON_GAIA"};h.isContainerChip=function(){return this.nestedChips!==null};h.isUserChip=function(){return this.principalType==="USER"};h.isGroupChip=function(){return this.principalType==="GROUP"};h.isDomainChip=function(){return this.principalType==="ALIAS"&&["googlers_unrestricted","google_domain"].includes(this.value)};h.isExternalChip=function(){return this.detailedUserType==="EXTERNAL"||this.detailedUserType==="PUBLIC"||this.isPublicChip()};
h.isExternalPartnerAccessViolated=function(){return this.accessLevel==="EXTERNAL_PARTNER"&&this.isPublicChip()};h.isInternalAccessViolated=function(){return this.accessLevel==="INTERNAL"&&(this.isExternalChip()||this.isPublicChip())};
h.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("Ze`"+this.value);}};
var ODd=function(a){if(a.isGroupChip())return"group";if(a.isDomainChip())return"acl-alias-domain";if(a.isPublicChip())return"public"};qW.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(qW)))(b||qW)}}();
qW.\u0275cmp=C({type:qW,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"},features:[Ff],decls:8,vars:17,consts:[[1,"bv2-user-chip-item",3,"focus","blur"],[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&&(K(0,"span",0),N("focus",function(){return b.chipSelection.emit()})("blur",
function(){return b.chipClear.emit()}),K(1,"span",1),F(2,Elb,1,1,"mat-icon",2),L(),K(3,"div",3),F(4,Flb,2,2,"b-person-hovercard",4),F(5,Glb,2,2,"b-group-email-card",4),F(6,Klb,3,3,"b-text-with-tooltip",5),L(),F(7,Llb,2,3,"div",6),L());if(a&2){var c;yg("bv2-user-chip-external",b.isExternalChip())("bv2-user-chip-non-gaia",b.isNonGaiaChip())("bv2-user-chip-not-accessible",b.isInternalAccessViolated()||b.isExternalPartnerAccessViolated())("bv2-user-chip-container",b.isContainerChip())("selected",b.isSelected)("readonly",
b.isReadonly);B(2);G((c=ODd(b))?2:-1,c);B(2);G(b.isUserChip()?4:-1);B();G(b.isGroupChip()?5:-1);B();G(b.isUserChip()||b.isGroupChip()?-1:6);B();G(b.isReadonly||b.isWidgetDisabled?-1:7)}},dependencies:[qW,hK,oW,iz,MA,TR,NDd],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 rW=function(a,b,c,d,e,f,g){this.clientConfig=a;this.document=b;this.peopleKitService=c;this.inputEl=d;this.zone=e;this.renderer=f;this.destroyRef=g;this.selectionChange=new ui;this.sessionOptions=(new Ev).setFilter(PDd);this.inputSearchDelay=0;this.inputChanged$=new vf(1)};h=rW.prototype;h.ngOnDestroy=function(){this.autocomplete.dispose()};
h.ngOnInit=function(){var a=this,b=this.clientConfig.autocompleteFactory.createConfig(this.peopleKitService.environmentConfig);Qgb(b,this.config);this.zone.runOutsideAngular(function(){var c;a.autocomplete=(c=a.clientConfig.autocompleteFactory)==null?void 0:c.create(a.getAnchor(),a.inputEl.nativeElement,a.peopleKitService.peopleStore,b,a.sessionOptions)});this.autocomplete.subscribeToSelectionChanged(function(c){a.zone.run(function(){a.selectionChange.emit(c)});a.autocomplete.report(4)});this.inputChanged$.pipe(kf(this.inputSearchDelay),
oj(this.destroyRef)).subscribe(function(){a.search()})};
h.getAnchor=function(){if(!this.peopleKitService.autocompleteAnchor){var a=this.renderer.createElement("div"),b="showPopover"in a;this.peopleKitService.autocompleteAnchor=a;this.renderer.addClass(a,"peoplekit-autocomplete-anchor");b&&(this.renderer.setAttribute(a,"popover","manual"),this.renderer.setStyle(a,"overflow","visible"),this.renderer.setStyle(a,"border","none"),this.renderer.setStyle(a,"background","none"),this.renderer.setStyle(a,"padding","0"));var c;((c=ROa(this.inputEl.nativeElement))!=
null?c:this.document.body).append(a)}return this.peopleKitService.autocompleteAnchor};h.search=function(){var a=this;this.zone.runOutsideAngular(function(){var b=a.getAnchor();b.hasAttribute("popover")&&(b.hidePopover(),b.showPopover());a.autocomplete.search(a.inputEl.nativeElement.value,a.inputEl.nativeElement)})};h.cancel=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.cancel()})};
rW.\u0275fac=function(a){return new (a||rW)(Ve(gBd),Ve(Yh),Ve(jV),Ve(Gd),Ve(Tg),Ve(ji),Ve(Be))};
rW.\u0275dir=af({type:rW,selectors:[["input","peoplekitAutocomplete",""]],hostBindings:function(a,b){a&1&&N("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"]});var PDd=Jgb(1);var QDd=["multiUserInput"],RDd=function(a){this.component=a;this.name="Buganizer ACL Autocomplete Entries"};RDd.prototype.getPosition=function(){return 2};RDd.prototype.warmUpCache=function(){var a=new Ggd;Hgd(a,this.component.additionalContactsFn().map(function(b){var c=(new Fgd).setResultType(7),d=(new SL).setValue(b.id);b=Yn(d,1,18).setName((new QL).setDisplayName(b.text));fq(c,2,SL,b);return c}));return Promise.resolve(a)};RDd.prototype.needsWarmUp=function(){return!1};
var sW=function(){LO.apply(this,arguments);var a=this;this.element=q(Gd);this.principalTypes=q(oP);this.activeSession=q(Zu);this.documentationLinks=q(OQ);this.appEvents=q(DN);this.cdr=q(MO,{self:!0});this.hotkeys=q(dT);this.autocompleteConfigService=q(gV);this.usersChange=new KO(!0);this.includeViewAliases=this.removeContainerDivTabIndex=this.includeAliases=!1;this.maxUserAllowed=-1;this.customValidators={};this.detailedUserValidators={};this.placeholderText=this.ariaLabel="";this.isValid=new KO;
this.sessionOptions=(new Ev).setFilter(Pgb(jBd,Jgb(18)));this.typedText="";this.items=[];this.additionalContactsFn=function(){return SDd(a)};this.isFocused=!1;this.selectedChipIndex=-1;this.$element=this.element.nativeElement;this.validators={};this.violations=new Set};Z(sW,LO);sW.\u0275dir=LO.\u0275dir;
sW.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.appEvents.contactChipsRevertChanges.subscribe(function(){a.typedText=""}));this.subscriptions.add(eT(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 TDd(c)},validateInternalAccessLevel:function(b,c){return UDd(a,c)},validateExternalAccessLevel:function(b,
c){return VDd(a,c)}},this.customValidators)};sW.prototype.ngOnChanges=function(a){if(a.users||a.containerChips)this.items=WDd(this,this.users),XDd(this)};var XDd=function(a){var b=[].concat(n(a.items)),c=YDd(b),d=ZDd(b);b=a.validate(c,d,b);a.isValid.emit(b);a.users&&Gm(a.users,c)||(a.users=c,b&&a.usersChange.emit(c))};
sW.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 g=l(f.value);f=g.next().value;g=g.next().value;g(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 Olb=function(a){!a.isWidgetDisabled()&&$Dd(a)&&(a.isFocused=!0,a.textInputElement.nativeElement.focus())},Mlb=function(a){Vs(a,a.selectedChipIndex)&&(a.items[a.selectedChipIndex].isSelected=!1);a.selectedChipIndex=-1};sW.prototype.isWidgetDisabled=function(){return this.$element.classList.contains("disabled")||!!this.$element.hasAttribute("disabled")};var $Dd=function(a){var b,c;return a.maxUserAllowed<0||((c=(b=a.users)==null?void 0:b.length)!=null?c:0)<a.maxUserAllowed};
sW.prototype.removeItem=function(a){this.isWidgetDisabled()||!Vs(this,a)||this.items[a].isReadonly||(Mlb(this),this.items.splice(a,1),XDd(this))};sW.prototype.setAccessLevel=function(a){this.accessLevel=a};
var SDd=function(a){return aEd(a).map(function(b){return{text:pTa(b),id:Ns({alias:b})}})},aEd=function(a){if(!a.includeAliases||MM(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},Plb=function(a,b){b&&(b=LDd.test(b)?bEd(a,b):cEd(a,b),a.items.push(b));a.typedText="";XDd(a)},Vs=function(a,b){return b>=0&&b<a.items.length},bEd=function(a,b){var c=c===void 0?
!1:c;var d=ulb(b);if(d.alias===void 0)throw Error("Ye`"+b);b=d.alias;d=pTa(b);return new dEd("ALIAS",b,d,null,c,a)},eEd=function(a,b){b=I9a(b);var c=new dEd("GROUP",b,b,null,!1,a);lpd(a.principalTypes,b,!0).then(function(d){c.detailedUserType=d.detailedUserType;XDd(a)});return c},fEd=function(a,b){var c=c===void 0?!1:c;b=I9a(b);var d=new dEd("USER",b,b,null,c,a);lpd(a.principalTypes,b,!0).then(function(e){d.detailedUserType=e.detailedUserType;XDd(a)});return d},cEd=function(a,b){var c=c===void 0?
!1:c;b=I9a(b);var d=new dEd("PRINCIPAL_TYPE_UNSPECIFIED",b,b,null,c,a);lpd(a.principalTypes,b,!0).then(function(e){d.principalType=e.principalType;d.detailedUserType=e.detailedUserType;XDd(a)});return d},gEd=function(a,b,c){return new dEd("PRINCIPAL_TYPE_UNSPECIFIED","",b,c,!0,a)};sW.prototype.getAccessLevel=function(){return this.accessLevel};sW.prototype.getAppName=function(){return this.activeSession.getAppName()};
sW.prototype.onKeyDown=function(a){a.keyCode===8?Vs(this,this.selectedChipIndex)?(Vs(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?Vs(this,this.selectedChipIndex)&&Vs(this,this.selectedChipIndex)&&this.removeItem(this.selectedChipIndex):a.keyCode===39&&Olb(this)};
var WDd=function(a,b){b=(b||[]).map(function(d){return hEd(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 gEd(a,d.displayText,d.values.map(function(e){return hEd(a,e)}))});return[].concat(n(c),n(b))}return b},hEd=function(a,b){var c=b.split(":");if(c.length!==2)throw Error("$e`"+b);var d=c[0];if(d!=="USER"&&d!=="GROUP"&&d!=="ALIAS")throw Error("$e`"+b);return d==="ALIAS"?bEd(a,b):d===
"USER"?fEd(a,c[1]):eEd(a,c[1])},YDd=function(a){return(a||[]).filter(function(b){return b.principalType!=="PRINCIPAL_TYPE_UNSPECIFIED"}).map(function(b){return b.principalType+":"+b.value})},ZDd=function(a){return(a||[]).filter(function(b){return b.detailedUserType!=="NO_DETAILED_TYPE"}).map(function(b){return b.detailedUserType+":"+b.value})},TDd=function(a){return!a.some(function(b){return b.isNonGaiaChip()})},UDd=function(a,b){return a.accessLevel!=="INTERNAL"?!0:!b.some(function(c){return c.isInternalAccessViolated()})},
VDd=function(a,b){return a.accessLevel!=="EXTERNAL_PARTNER"?!0:!b.some(function(c){return c.isExternalPartnerAccessViolated()})};sW.prototype.selectAutocomplete=function(a){a.length>0&&(this.typedText=a[0].result().getPrimaryTarget().getValue(),Plb(this,this.typedText.split(",")[0].trim()),this.isFocused=!1,this.cdr.markForCheck())};sW.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(sW)))(b||sW)}}();
sW.\u0275cmp=C({type:sW,selectors:[["b-multi-user-input"]],viewQuery:function(a,b){a&1&&kg(QDd,5);if(a&2){var c;og(c=pg())&&(b.textInputElement=c.first)}},hostBindings:function(a,b){a&1&&N("keydown",function(c){return b.onKeyDown(c)})},inputs:{users:"users",containerChips:"containerChips",accessLevel:"accessLevel",includeAliases:"includeAliases",idForInputBox:"idForInputBox",removeContainerDivTabIndex:"removeContainerDivTabIndex",includeViewAliases:"includeViewAliases",maxUserAllowed:"maxUserAllowed",
customValidators:"customValidators",detailedUserValidators:"detailedUserValidators",ariaLabel:"ariaLabel",placeholderText:"placeholderText"},outputs:{usersChange:"usersChange",isValid:"isValid"},features:[Ig([MO,jV,{provide:gBd,useFactory:function(){var a=q(sW),b=q(gBd,{skipSelf:!0}),c;return Object.assign({},b,{staticDataProviders:[].concat(n((c=b.staticDataProviders)!=null?c:[]),[new RDd(a)])})}}]),Ff,Gx],decls:17,vars:15,consts:[["multiUserInput",""],["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"],["b-adaptive-width-input","","tabindex","0","peoplekitAutocomplete","","aria-label","'Add user'",1,"bv2-multi-user-embedded-input",3,"peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","peoplekitAutocompleteInputSearchDelay","ngModel","disabled","placeholder"],["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","peoplekitAutocomplete","","aria-label","'Add user'",1,"bv2-multi-user-embedded-input",3,"peoplekitAutocompleteSelectionChange","ngModelChange","focus","blur","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","peoplekitAutocompleteInputSearchDelay","ngModel","disabled","placeholder"],["target","_blank"]],template:function(a,b){a&1&&(K(0,"div",1),N("click",function(){return Olb(b)}),
K(1,"div",2),S(2," Press tab to navigate through users and right arrow to go to input section "),L(),K(3,"div"),Pf(4,Nlb,2,9,"div",3,Of),F(6,Qlb,2,6,"input",4),L()(),K(7,"div",5),F(8,Rlb,4,1,"span"),F(9,Slb,2,0,"span"),F(10,Tlb,2,0,"span"),F(11,Ulb,2,0,"span"),F(12,Vlb,2,0,"span"),F(13,Wlb,2,0,"span"),F(14,Xlb,2,0,"span"),F(15,Ylb,2,0,"span"),F(16,Zlb,2,0,"span"),L());if(a&2){yg("focused",b.isFocused);var c;Jf("tabindex",b.removeContainerDivTabIndex?-1:0)("aria-label",(c=b.idForInputBox)!=null?c:
0);B(4);Qf(b.items);B(2);G($Dd(b)?6:-1);B();Jf("aria-hidden",b.violations.size===0);B();G(b.violations.has("noRestrictedPlusGroups")?8:-1);B();G(b.violations.has("validateGaia")?9:-1);B();G(b.violations.has("validateInternalAccessLevel")?10:-1);B();G(b.violations.has("validateExternalAccessLevel")?11:-1);B();G(b.violations.has("escalationOwnerNotUser")?12:-1);B();G(b.violations.has("escalationOwnerNotGoogler")?13:-1);B();G(b.violations.has("userNotInGoogleDomain")?14:-1);B();G(b.violations.has("userAlreadySelected")?
15:-1);B();G(b.violations.has("isNotUserType")?16:-1)}},dependencies:[nW,mC,xi,PB,WB,rW,qW],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 dEd=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};h=dEd.prototype;
h.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("Ze`"+this.value);}};
h.isGroupChip=function(){return this.principalType==="GROUP"};h.isPublicChip=function(){return this.principalType==="ALIAS"&&["public_non_google","public"].includes(this.value)};h.isDomainChip=function(){return this.principalType==="ALIAS"&&["googlers_unrestricted","google_domain"].includes(this.value)};h.isExternalChip=function(){return this.detailedUserType==="EXTERNAL"||this.detailedUserType==="PUBLIC"||this.isPublicChip()};h.isNonGaiaChip=function(){return this.principalType==="NON_GAIA"};
h.isContainerChip=function(){return this.nestedChips!==null};h.isInternalAccessViolated=function(){return this.parentController.getAccessLevel()==="INTERNAL"&&(this.isExternalChip()||this.isPublicChip())};h.isExternalPartnerAccessViolated=function(){return this.parentController.getAccessLevel()==="EXTERNAL_PARTNER"&&this.isPublicChip()};h.isUserChip=function(){return this.principalType==="USER"};var tW={type:"no_indicator",displayText:""},iEd={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."},cmb={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."},jEd={type:"visible_to_partners",
displayText:"Visible to partners",displayTextCompact:"Partners",explanation:"This issue is visible to partner users."},$lb={type:"visible_to_public",displayText:"Visible to public",displayTextCompact:"Public",explanation:"This issue is visible to the public."},uW=function(){this.issueFullFridge=q(RO);this.componentAccessPolicyFridge=q(uN);this.activeSession=q(Zu)},mEd=function(a,b,c){var d=a.issueFullFridge.watch(b);b=le(function(){return c?be(c):d.pipe(A(function(e){return e==null?void 0:e.snapshot[0].componentId}))}).pipe(zf(function(e){return e?
a.componentAccessPolicyFridge.watch(e):be(void 0)}));return he([d,b]).pipe(A(function(e){var f=l(e);e=f.next().value;f=f.next().value;var g,k;var m=(k=e==null?void 0:e.snapshot[0].issueAccessLimitLevel)!=null?k:void 0;k=e==null?void 0:(g=e.accessLimit)==null?void 0:g.accessLevel;if(MM(a.activeSession))g=tW;else if(LM(a.activeSession))g=kEd(m,k,f);else if(a.activeSession.isInternalSession())g=lEd(m,k,f);else throw Error("af");return g}))},kEd=function(a,b,c){switch(b){case "INTERNAL":return tW;case "EXTERNAL_PARTNER":return tW;
case "EXTERNAL_PUBLIC":return dmb(a,c);case "ACCESS_LEVEL_UNSPECIFIED":return tW;default:return tW}},lEd=function(a,b,c){switch(b){case "INTERNAL":return tW;case "EXTERNAL_PARTNER":return a&&bmb(a)?iEd:jEd;case "EXTERNAL_PUBLIC":return dmb(a,c);case "ACCESS_LEVEL_UNSPECIFIED":return tW;default:return tW}};uW.\u0275fac=function(a){return new (a||uW)};uW.\u0275prov=Cc({token:uW,factory:uW.\u0275fac,providedIn:"root"});var vW=function(){LO.apply(this,arguments);var a=this;this.accessIndicatorService=q(uW);this.documentationLinks=q(OQ);this.issueFullFridge=q(RO);this.issueApi=q(tO);this.compactMode=!1;this.issueId$=new vf;this.accessIndicator$=this.issueId$.pipe(zf(function(b){return mEd(a.accessIndicatorService,b)}));this.chipClass$=this.accessIndicator$.pipe(A(function(b){return b.type}));this.chipText$=this.accessIndicator$.pipe(A(function(b){return a.compactMode?b.displayTextCompact||b.displayText:b.displayText}));
this.bubbleText$=this.accessIndicator$.pipe(A(function(b){return b.explanation}));this.shouldShowIndicator$=this.accessIndicator$.pipe(A(function(b){return b.type!=="no_indicator"}));this.issue$=this.issueId$.pipe(zf(function(b){return a.issueFullFridge.watch(b)}));this.viewers$=he([this.issue$,this.accessIndicator$]).pipe(kf(0,Rr),zf(function(b){var c=l(b);b=c.next().value;c=c.next().value;if(!b||!jmb(c.type))return be([]);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(A(function(f){f=[].concat(n(Qs(f.writers)),n(Qs(f.appenders)),n(Qs(f.readers)));return[].concat(n(new Set(f)))}))}),wf({refCount:!0,bufferSize:1}));this.showHovercard$=this.viewers$.pipe(A(function(b){return!!b.length}),te(Boolean),A(function(){}));this.loadTooltip$=new vf(1);this.tooltipText$=this.loadTooltip$.pipe(zf(function(){return a.viewers$}),A(function(b){return b.length?"Press Alt + Right arrow for more details":
""}));this.loadTooltipOnce=nXa(function(){a.loadTooltip$.next()})};Z(vW,LO);vW.\u0275dir=LO.\u0275dir;vW.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.tooltipText$.subscribe(function(b){b&&(a.matTooltip.message=b,a.matTooltip.show())}))};da.Object.defineProperties(vW.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});vW.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(vW)))(b||vW)}}();
vW.\u0275cmp=C({type:vW,selectors:[["b-issue-visibility-chip"]],viewQuery:function(a,b){a&1&&kg(MA,5);if(a&2){var c;og(c=pg())&&(b.matTooltip=c.first)}},inputs:{issueId:"issueId",compactMode:"compactMode"},features:[Ff],decls:2,vars:3,consts:[["tooltip","matTooltip"],["card","onedevHovercard"],["tabindex","0",1,"chippy","rounded","nowrap","keep-focus-ring",3,"focus","blur","onedevHovercardTrigger","matTooltipDisabled","matTooltip"],[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&&(F(0,imb,15,18),U(1,"async"));a&2&&G(W(1,1,b.shouldShowIndicator$)?0:-1)},dependencies:[hK,AK,uK,vK,zK,wK,MA,sW,py],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 wW=function(){LO.apply(this,arguments);this.errorHandler=q(ZM);this.issueFullFridge=q(RO);this.upvoted=!1;this.voteCount=0;this.onVote=new KO;this.tooltip="Indicate that you are affected by this issue";this.isSaving=!1};Z(wW,LO);wW.\u0275dir=LO.\u0275dir;
wW.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;pnd(this.issueFullFridge,String(this.issueId),this.upvoted).pipe(mf(1),Af(this.destroyed$)).subscribe(function(){a.isSaving=!1},function(c){a.isSaving=!1;a.errorHandler.errorHandler(null,c);a.upvoted=!a.upvoted;a.voteCount-=b})}};wW.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(wW)))(b||wW)}}();
wW.\u0275cmp=C({type:wW,selectors:[["b-app-vote-button"]],hostVars:2,hostBindings:function(a,b){a&2&&yg("no-votes",b.voteCount<=0)},inputs:{issueId:"issueId",upvoted:"upvoted",voteCount:"voteCount"},outputs:{onVote:"onVote"},features:[Ff],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&&(K(0,"button",0),N("click",function(){return b.onClick()}),M(1,"mat-icon",1),K(2,"output",
2),S(3),L()());a&2&&(I("matTooltip",b.upvoted?"Remove vote: I am not impacted":"Vote: I am impacted"),Jf("aria-pressed",b.upvoted)("aria-label","Vote count "+b.voteCount),B(2),I("title",Gg("",b.voteCount," votes on this issue")),B(),T(" ",b.voteCount>99999?"99999+":b.voteCount," "))},dependencies:[ZA,XA,TA,hK,iz,MA],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, button.gmat-mdc-button.mat-mdc-button[aria-pressed=true][_ngcontent-%COMP%]:focus{--private-gmat-button-text-stateful-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 xmb=function(){return[]},xW=function(){LO.apply(this,arguments);var a=this;this.cdr=q(MO,{self:!0});this.activeSession=q(Zu);this.analytics=q(PO);this.relationshipService=q(VO);this.issueFullFridge=q(RO);this.butterBar=q(JM);this.STATUS_JS_FULL_TEXT=Um;this.ISSUE_PRIORITY_TEXT_JS=bid;this.ISSUE_PRIORITY_ENUM=rhd;this.ROUTES=zs;this.providedIssueId$=new vf(1);this.issue$=this.providedIssueId$.pipe(zf(function(b){return a.issueFullFridge.watch(b)}),te(ln));this.FormattingMode=fo;this.init=new vf(1)};
Z(xW,LO);xW.\u0275dir=LO.\u0275dir;xW.prototype.ngOnInit=function(){var a=this;this.providedIssueId$.next(this.issueId);this.issue$.pipe(Af(this.destroyed$)).subscribe(function(b){a.issue=b;a.firstEvent=b.description&&k3a(b.description,b);a.cdr.markForCheck();a.init.next()})};xW.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":return"high";default:return"low"}};
xW.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 wmb=function(a,b){return Pm(b).includes(a.activeSession.getUserEmail())},rmb=function(a,b){var c;return y(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))}),Vd(d,2,3),z(d,ee(a.relationshipService.delete(c,"CHILD",b)),3);if(d.nextAddress!=2)return Wd(d),a.issueFullFridge.poke(b),Yd(d,0);Zd(d);a.butterBar.showWarning("Error removing the parent issue.");return d.jumpTo(3)})};
xW.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(xW)))(b||xW)}}();
xW.\u0275cmp=C({type:xW,selectors:[["b-issue-card"]],inputs:{issueId:"issueId",location:"location",childContextId:"childContextId"},outputs:{init:"init"},features:[Ig([MO]),Ff],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"],[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&&(K(0,"div",0),F(1,ymb,22,17,"div",1),L());if(a&2){var c;
B();G((c=b.issue&&b.issue.snapshot[0])?1:-1,c)}},dependencies:[wW,mW,DT,ZA,XA,TA,hK,vW,MA,$S,kU],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 nEd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(nEd,X);h=nEd.prototype;h.getComponentId=function(){return Hn(this,1)};h.getComponentId_asString=function(){return Ln(this,1)};h.setComponentId=function(a){return ap(this,1,a)};h.getText=function(){return Fi(this,2)};h.setText=function(a){return $m(this,2,a)};var oEd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,oEd.messageId)};Z(oEd,X);oEd.prototype.getIt=function(){return Y(this,nEd,3,fb)};oEd.prototype.setIt=function(a){return hj(this,nEd,3,a,fb)};oEd.messageId="b.CheckBannedWordsRequest";var pEd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(pEd,X);var qEd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,qEd.messageId)};Z(qEd,X);qEd.prototype.getIt=function(){return Y(this,pEd,2,fb)};qEd.prototype.setIt=function(a){return hj(this,pEd,2,a,fb)};qEd.messageId="b.CheckBannedWordsResponse";var yW=function(){this.executor=q(RM)};yW.prototype.checkBannedWords=function(a){a=(new oEd).setIt((new nEd).setComponentId(Number(a.componentId)).setText(a.text));return this.executor.post({url:"action/check_banned_words",body:a,responseConstructor:qEd}).pipe(A(zmb))};yW.\u0275fac=function(a){return new (a||yW)};yW.\u0275prov=Cc({token:yW,factory:yW.\u0275fac,providedIn:"root"});var zW=function(){this.observableApi=q(yW)};zW.prototype.checkBannedWords=function(a){return ee(this.observableApi.checkBannedWords(a))};
zW.\u0275fac=function(a){return new (a||zW)};zW.\u0275prov=Cc({token:zW,factory:zW.\u0275fac,providedIn:"root"});var AW=function(){LO.apply(this,arguments);this.bannedWordsApi=q(zW);this.activeSession=q(Zu);this.errorHandler=q(ZM);this.analytics=q(PO);this.matchedPatterns=[];this.warningState$=new Xj("INITIAL");this.isUserInternal=this.activeSession.isInternalSession();this.showWarning$=this.warningState$.pipe(A(function(a){return a==="SHOW_WARNING"}))};Z(AW,LO);AW.\u0275dir=LO.\u0275dir;
AW.prototype.check=function(a,b,c){var d=this;return y(function(e){if(!d.isUserInternal||!b||!c)return e.return(!0);switch(d.warningState$.value){case "INITIAL":return e.return(rEd(d,c,a));case "SHOW_WARNING":return d.warningState$.next("SKIP_WARNING"),d.analytics.trackEvent("bannedWords","skipBannedWordsCheck",Ws(d)),e.return(!0);default:return e.return(!0)}})};
var rEd=function(a,b,c){var d,e;return y(function(f){if(f.nextAddress==1)return Vd(f,2),z(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",Ws(a)),f.return(!1)):f.return(!0);e=Zd(f);aN(a.errorHandler,e);return f.return(!0)})},Ws=function(a){return a.matchedPatterns.join(", ")};
AW.prototype.showWarning=function(){return this.warningState$.value==="SHOW_WARNING"};AW.prototype.reset=function(){this.matchedPatterns=[];this.warningState$.next("INITIAL")};AW.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(AW)))(b||AW)}}();AW.\u0275prov=Cc({token:AW,factory:AW.\u0275fac});var sEd=["issueTitleCellInputEl"],BW=function(){this.appEvents=q(DN);this.issueFullFridge=q(RO);this.issuePermissionService=q(NP);this.bannedWordsChecker=q(AW);this.savingTitle=!1;this.issue=null;this.isEditMode=this.enableHovercard=this.useButtonToNavigate=!1;this.onCancel=new KO;this.onSave=new KO;this.issueNavigated=new KO;this.title="";this.isDataLoaded=!1;this.link=""};
BW.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 Dmb=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)}};BW.prototype.getIssueUrl=function(a){return this.issueUrlFactory?this.issueUrlFactory(a):zs.viewIssue.makeHref(a)};
var Amb=function(a){var b,c=(b=a.issue)==null?void 0:b.issueId;c!=null&&a.appEvents.didShowIssueHovercard.next(c)},Kmb=function(a){var b,c;return y(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;Xd(d,2);return z(d,a.bannedWordsChecker.check(a.title,a.issuePermissionService.accessLevel()==="EXTERNAL_PUBLIC",a.issue.snapshot[0].componentId),4)}if(d.nextAddress!=2)return c=d.yieldResult,c?z(d,tEd(a),2):(a.issueTitleCellInputEl.nativeElement.focus(),
d.jumpTo(2));Wd(d);a.savingTitle=!1;return Yd(d,0)})},tEd=function(a){return y(function(b){if(b.nextAddress==1)return a.bannedWordsChecker.reset(),Xd(b,2),z(b,ee(qnd(a.issueFullFridge,a.issue.issueId,a.title.trim())),2);Wd(b);a.onSave.emit();return Yd(b,0)})};BW.\u0275fac=function(a){return new (a||BW)};
BW.\u0275cmp=C({type:BW,selectors:[["b-issue-title-cell"]],viewQuery:function(a,b){a&1&&kg(sEd,5);if(a&2){var c;og(c=pg())&&(b.issueTitleCellInputEl=c.first)}},hostAttrs:[1,"flex-kids-x","line-clamp-3"],hostVars:2,hostBindings:function(a,b){a&2&&yg("isEditMode",b.isEditMode)},inputs:{issue:"issue",issueUrlFactory:"issueUrlFactory",useButtonToNavigate:"useButtonToNavigate",anchorTarget:"anchorTarget",enableHovercard:"enableHovercard",trailingChip:"trailingChip",isEditMode:"isEditMode"},outputs:{onCancel:"onCancel",
onSave:"onSave",issueNavigated:"issueNavigated"},features:[Ig([AW]),Gx],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"],["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","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&&(K(0,"b-async-data-placeholder",3),M(1,"b-tracker-chip-smart",4),F(2,Emb,4,3)(3,Gmb,1,1,"ng-container"),F(4,Hmb,2,7,"span",5),L(),K(5,"onedev-hovercard",null,0),F(7,Imb,1,1,"b-issue-card",6),L(),F(8,Jmb,4,1,
"p",7),U(9,"async"),E(10,Nmb,2,1,"ng-template",null,1,Og));if(a&2){var c;I("isReady",b.isDataLoaded);B();I("trackerId",b.issue==null?null:b.issue.trackerId)("compactMode",!0);B();G(b.useButtonToNavigate?2:3);B(2);G((c=b.trailingChip)?4:-1,c);B(3);G(b.enableHovercard&&b.issue?7:-1);B();G(W(9,7,b.bannedWordsChecker.showWarning$)?8:-1)}},dependencies:[dW,YT,kW,mC,xi,PB,WB,ZA,XA,VA,hK,AK,uK,zK,xW,iz,MA,oy,EF,NV,py],styles:[".title[_ngcontent-%COMP%]{padding-top:7px;padding-bottom:6px;display:flex;flex-direction:row;align-items:center}.isEditMode[_nghost-%COMP%]{margin-left:-10px}.isEditMode[_nghost-%COMP%]   .title[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}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 CW=function(a,b){this.checker=a;this.document=b};CW.prototype.focusFirstFocusableElement=function(a){(a=uEd(this,a,!0))&&a.focus()};var uEd=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?uEd(a,b[c]):null;if(d)return d}return null};CW.\u0275fac=function(a){return new (a||CW)(Wc(pz),Wc(Yh))};CW.\u0275prov=Cc({token:CW,factory:CW.\u0275fac,providedIn:"root"});var DW=function(){this.elementRef=q(Gd);this.interactivityHelper=q(CW)};DW.prototype.ngOnInit=function(){};DW.prototype.focus=function(){this.element.contains(document.activeElement)||this.interactivityHelper.focusFirstFocusableElement(this.element)};da.Object.defineProperties(DW.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return this.elementRef.nativeElement}}});DW.\u0275fac=function(a){return new (a||DW)};
DW.\u0275dir=af({type:DW,selectors:[["tr","row",""]],inputs:{row:"row"},exportAs:["tableRowDirective"]});var EW=function(){};EW.\u0275fac=function(a){return new (a||EW)};EW.\u0275mod=$e({type:EW});EW.\u0275inj=Dc({});var vEd=function(a,b){Rz.call(this,a);this.directives=a;this.isEqual=b};Z(vEd,Rz);var Xs=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return z(d,ee(a.directives.changes.pipe(yf(a.directives.toArray()),A(function(e){return e.find(function(f){return a.isEqual(f.row,b)})}),te(Boolean),ue(3E3))),2);c=d.yieldResult;a.setActiveItem(c);$d(d)})};var wEd=new bd("GM2_TABLE_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var FW=function(a){this.options=a;if(a.disableGmatStyle)throw Error("eb");};FW.\u0275fac=function(a){return new (a||FW)(Ve(wEd))};FW.\u0275dir=af({type:FW,selectors:[["table","mat-table",""],["mat-table"]],hostAttrs:[1,"gmat-mdc-table"],standalone:!1});var GW=function(){};GW.\u0275fac=function(a){return new (a||GW)};GW.\u0275mod=$e({type:GW});GW.\u0275inj=Dc({imports:[RS]});var xEd=["componentSearchMenuTrigger"],yEd=["searchInput"],zEd={title:"Select an issue.",defaultChoices:[],allowMultipleIds:!1},AEd={SIMILAR_ISSUES:"Similar issues",SEARCH_RESULTS:"Search results",SEMANTIC_SEARCH_RESULTS:"Semantic search results",ISSUE_IDS:"Issue IDs"},BEd={},CEd=(BEd["Similar issues"]="similar",BEd["Search results"]="exact",BEd["Semantic search results"]="semantic",BEd["Issue IDs"]="id",BEd),DEd={SEMANTIC_SEARCH:"Smart search",EXACT_MATCH:"Exact match"},HW=function(){LO.apply(this,
arguments);var a=this;this.dialogRef=q(dB);this.initialData=q(fB);this.issueFullFridge=q(RO);this.issuePickerSearchService=q(cW);this.analytics=q(PO);this.activeSession=q(Zu);this.componentFridge=q(AN);this.teamFridge=q(GP);this.domSafe=q($P);this.elRef=q(Gd);this.focusTrapFactory=q(Jz);this.userPreferencesManager=q(VP);this.issueUserEventsService=q(sV);this.destroyRef=q(Be);this.isInternalSession=this.activeSession.isInternalSession();this.data=Object.assign({},zEd,this.initialData);var b;this.currentComponentId=
(b=this.data.componentId)!=null?b:void 0;this.currentIssueId$=le(function(){var d;return((d=a.data.currentResource)==null?void 0:d.type)==="issue"?be(a.data.currentResource.id):Ox});this.currentIssue$=this.currentIssueId$.pipe(zf(function(d){return a.issueFullFridge.watch(d)}),wf({bufferSize:1,refCount:!0}));this.team$=this.currentIssue$.pipe(zf(function(d){var e,f;return(d==null?0:(e=d.aggregatedData)==null?0:e.teamId)?a.teamFridge.watch(d==null?void 0:(f=d.aggregatedData)==null?void 0:f.teamId):
be(void 0)}),wf({bufferSize:1,refCount:!0}));this.DEFAULT_PREFERENCES={open:!0,searchScope:"COMPONENT",componentScope:this.currentComponentId,includeDescendants:!1};this.assistiveIssuePickerPreferences$=this.userPreferencesManager.preferences$.pipe(A(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}));this.hasCustomPreferences$=this.userPreferencesManager.preferences$.pipe(A(function(d){if(!a.currentComponentId)return!1;
var e;return(d=d==null?void 0:(e=d.assistiveIssuePickerPreferences)==null?void 0:e.get(a.currentComponentId))?!Gm(d,a.DEFAULT_PREFERENCES):!1}),of(),wf({bufferSize:1,refCount:!0}));this.showFiltersSubject=new Xj(!1);this.showFilters$=this.showFiltersSubject.asObservable();var c;this.originIsBulk=(c=this.data.originIsBulk)!=null?c:!1;this.openFilterEnabled$=this.assistiveIssuePickerPreferences$.pipe(A(function(d){return d.open}));this.selectedScope$=this.assistiveIssuePickerPreferences$.pipe(A(function(d){return d.searchScope}));
this.includeDescendants$=this.assistiveIssuePickerPreferences$.pipe(A(function(d){return d.includeDescendants}));this.component$=this.assistiveIssuePickerPreferences$.pipe(zf(function(d){return d.componentScope?a.componentFridge.watch(d.componentScope):be(void 0)}));this.selectedIssues=new OP;this.tableColumns="single-selection title id priority status duplicateCount votes createdTime".split(" ");this.issueUrlFactory=zs.viewIssue.makeHref;this.trackByIssueId=function(d,e){return e.issueId};this.searchText$=
new Xj("");this.searchTextTrimmed$=this.searchText$.pipe(A(function(d){return d.trim()}),of());this.idsInSearchText$=this.searchTextTrimmed$.pipe(A(Q9a),A(Oq),A(function(d){return d.filter(function(e){return e.length>=4})}),of(Gm));this.issuesWithIdMatches$=this.idsInSearchText$.pipe(zf(function(d){return a.issueFullFridge.watchSet(d)}),Bf(function(){a.isLoading=!1}),wf({bufferSize:1,refCount:!0}));this.openFilter=IQ;this.teamFilter=this.componentFilter=void 0;this.defaultChoices$=this.issueFullFridge.watchSet(this.data.defaultChoices.map(function(d){return d.resourceId})).pipe(te(ln));
this.selectedFilters$=new OP([]);this.similarIssues$=he([this.currentIssueId$,this.selectedFilters$.value$,this.searchTextTrimmed$,this.showFilters$]).pipe(kf(0,Rr),te(function(d){d=l(d);d.next();d.next();return d.next().value===""&&a.data.defaultChoices.length===0}),Bf(function(){a.isLoading=!0}),zf(function(d){var e=l(d);d=e.next().value;var f=e.next().value;e.next();return e.next().value?CDd(a.issuePickerSearchService,d,f):CDd(a.issuePickerSearchService,d,void 0,!0)}),Bf(function(){a.isLoading=
!1}),wf({bufferSize:1,refCount:!0}));this.SearchSource=DEd;this.selectedSearchSource$=new Xj("Smart search");this.searchResults$=he([this.searchTextTrimmed$.pipe(Bf(function(){a.isLoading=!0}),kf(200)),this.selectedFilters$.value$.pipe(Bf(function(){a.isLoading=!0})),this.selectedSearchSource$]).pipe(zf(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),EDd(a.issuePickerSearchService,
d,f,a.data.edgeType,a.data.currentResource)):a.issuePickerSearchService.search(d,a.data.edgeType,a.data.currentResource,a.currentComponentId)}),Bf(function(){a.isLoading=!1}),wf({bufferSize:1,refCount:!0}));this.idsToAutoSelect$=this.issuesWithIdMatches$.pipe(A(function(d){return d.length!==1?[]:[d[0].issueId]}),of(Gm),Bf(function(d){d.length===0&&(a.isPasteResultInSuggestion=!1);var e,f=(e=Or(a.similarIssues$))!=null?e:[];a.isPasteResultInSuggestion=f.map(function(g){return g.issueId}).includes(d[0])}),
wf({bufferSize:1,refCount:!0}));this.TableDataSource=AEd;this.tableDataSource="Search results";this.issues$=he([this.searchTextTrimmed$,this.issuesWithIdMatches$,this.similarIssues$.pipe(yf([])),this.selectedSearchSource$,this.defaultChoices$]).pipe(zf(function(d){var e=l(d);d=e.next().value;var f=e.next().value;var g=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$):g?(g.length>0&&(a.tableDataSource="Similar issues"),a.similarIssues$):be(void 0)}),of());this.correctedDisplayedRows=new jg;this.isPasteResultInSuggestion=this.isLoading=!1};Z(HW,LO);HW.\u0275dir=LO.\u0275dir;
HW.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.idsToAutoSelect$.subscribe(function(b){a.selectedIssues.reset(b)}));this.subscriptions.add(this.hasCustomPreferences$.pipe(qf()).subscribe(function(b){a.showFiltersSubject.next(b)}));this.data.edgeType==="canonical"&&this.subscriptions.add(HDd(this.issuePickerSearchService,this.currentComponentId).subscribe());EEd(this)};
var EEd=function(a){var b,c,d,e,f,g,k,m,r,w,x,D,H;y(function(J){if(J.nextAddress==1)return b=l,z(J,Promise.all([ee(a.openFilterEnabled$),ee(a.component$),ee(a.team$),ee(a.selectedScope$),ee(a.includeDescendants$)]),2);c=b(J.yieldResult);d=c.next().value;e=c.next().value;f=c.next().value;g=c.next().value;k=c.next().value;m=d;r=e;w=f;x=g;D=k;m&&a.selectedFilters$.add(a.openFilter);if(r){a.componentFilter=i9a(r,D);if(H=x==="COMPONENT"||x==="UNSPECIFIED")a.selectedScopeFilter=a.componentFilter,a.selectedFilters$.add(a.componentFilter);
a.selectedComponent=r}w&&(a.teamFilter=h9a(w,D),x==="TEAM"&&(a.selectedScopeFilter=a.teamFilter,a.selectedFilters$.add(a.teamFilter)));$d(J)})};HW.prototype.ngAfterViewInit=function(){this.focusManager=Oz(new vEd(this.correctedDisplayedRows,function(a,b){return a.issueId===b.issueId}));this.trapFocus()};HW.prototype.ngOnDestroy=function(){LO.prototype.ngOnDestroy.call(this);var a;(a=this.focusTrap)==null||a.destroy()};
HW.prototype.openFilterChanged=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return a?b.selectedFilters$.add(IQ):b.selectedFilters$.delete(IQ),z(d,ee(b.assistiveIssuePickerPreferences$),2);c=d.yieldResult;return z(d,FEd(b,Object.assign({},c,{open:a!==void 0})),0)})};
var FEd=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return z(d,ee(a.userPreferencesManager.preferences$.pipe(A(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()));$d(d)})},Xmb=function(a,b){var c,d,e;return y(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 z(f,ee(a.assistiveIssuePickerPreferences$),2)}e=f.yieldResult;return z(f,FEd(a,Object.assign({},e,{searchScope:d?"COMPONENT":"TEAM"})),0)})},enb=function(a){var b,c,d,e,f,g,k;return y(function(m){switch(m.nextAddress){case 1:return z(m,ee(a.includeDescendants$),
2);case 2:return b=!m.yieldResult,z(m,ee(a.assistiveIssuePickerPreferences$),3);case 3:return c=m.yieldResult,z(m,FEd(a,Object.assign({},c,{includeDescendants:b})),4);case 4:return z(m,ee(a.component$),5);case 5:return d=m.yieldResult,z(m,ee(a.team$),6);case 6:e=m.yieldResult;if(!d)return m.return();f=i9a(d,b);g=new Set(a.selectedFilters$.value);if(!a.componentFilter)return m.return();g.has(a.componentFilter)&&(g.delete(a.componentFilter),g.add(f),a.selectedScopeFilter=f);a.componentFilter=f;e&&(k=
h9a(e,b),a.teamFilter&&g.has(a.teamFilter)&&(g.delete(a.teamFilter),g.add(k),a.selectedScopeFilter=k),a.teamFilter=k);a.selectedFilters$.reset(g);$d(m)}})},Inb=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return z(e,Gs(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(ln);a.correctedDisplayedRows.reset(d);ng(a.correctedDisplayedRows);$d(e)})};
HW.prototype.onPressConfirm=function(){var a=this,b,c;return y(function(d){if(d.nextAddress==1){if(!a.selectedIssues.size)return d.return();b=[].concat(n(a.selectedIssues));c={selectedIssueIds:b};a.dialogRef.close(c);return z(d,GEd(a,b[0]),2)}return z(d,HEd(a,b[0]),0)})};HW.prototype.onPressCancel=function(){this.dialogRef.close()};HW.prototype.selectIssue=function(a){this.selectedIssues.reset([a])};
HW.prototype.onRowKeydown=function(a,b,c){if(a===0&&c.key==="ArrowUp")this.inputEl.nativeElement.focus(),c.preventDefault();else this.focusManager.onKeydown(c)};
var anb=function(a,b){var c,d,e,f,g,k,m;return y(function(r){switch(r.nextAddress){case 1:a.trigger.closeMenu();if(!a.componentFilter)return r.return();if(c=!b){r.jumpTo(2);break}return z(r,ee(a.component$),3);case 3:c=r.yieldResult===b;case 2:if(c)return r.return();d=i9a;e=b;return z(r,ee(a.includeDescendants$),4);case 4:return f=d(e,r.yieldResult),a.selectedScopeFilter=f,z(r,ee(a.assistiveIssuePickerPreferences$),5);case 5:return g=r.yieldResult,z(r,FEd(a,Object.assign({},g,{componentScope:b.componentId})),
6);case 6:return k=Set,z(r,ee(a.selectedFilters$.value$),7);case 7:m=new k(r.yieldResult),m.delete(a.componentFilter),m.add(f),a.componentFilter=f,a.selectedFilters$.reset(m),a.analytics.trackEvent("assistive-issue-picker","component-scope-changed","component-id: "+b.componentId),$d(r)}})},Tmb=function(a){return y(function(b){if(b.nextAddress==1)return z(b,ee(a.component$),2);a.selectedComponent=b.yieldResult;$d(b)})},HEd=function(a,b){var c,d,e,f,g,k,m;return y(function(r){if(r.nextAddress==1)return a.data.edgeType!==
"canonical"?r.return():z(r,ee(a.issueFullFridge.watch(b)),2);if(r.nextAddress!=3)return(c=r.yieldResult)?z(r,IEd(a,b),3):r.return();d=r.yieldResult;e=CEd[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",(g=(f=c.snapshot[0].duplicateIssueId)==null?void 0:f.length)!=null?g:0);a.analytics.trackEvent("assistive-issue-picker","picked-canonical","plus-one-count",
(m=(k=c.aggregatedData)==null?void 0:k.voteCount)!=null?m:0);$d(r)})};HW.prototype.trapFocus=function(){this.focusTrap=this.focusTrapFactory.create(this.elRef.nativeElement);zGc(this.focusTrap)};
var GEd=function(a,b){var c,d,e,f,g,k;return y(function(m){switch(m.nextAddress){case 1:return z(m,ee(a.similarIssues$),2);case 2:d=(c=m.yieldResult)!=null?c:[];e=d.find(function(r){return r.issueId===b});f=!!e;g=CEd[a.tableDataSource];if(d.length===0){a.analytics.trackEvent("assistive-issue-picker","empty-hit-rate-"+a.data.edgeType,g+"-empty");m.jumpTo(0);break}a.analytics.trackEvent("assistive-issue-picker","hit-rate-"+a.data.edgeType,f?g+"-hit":g+"-miss",f?1:0);if(!f){m.jumpTo(0);break}if(a.tableDataSource!==
"Similar issues"){m.jumpTo(5);break}return z(m,ee(a.currentIssueId$),6);case 6:k=m.yieldResult,a.issueUserEventsService.logIssueUserEvent(k,"FEATURE_SIMILAR_ISSUES","EVENT_TYPE_CLOSE_AS_DUPLICATE").pipe(oj(a.destroyRef)).subscribe();case 5: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),$d(m)}})},IEd=function(a,b){var c,d;return y(function(e){if(e.nextAddress==
1){if(a.data.edgeType!=="canonical")return e.return(!1);c=Set;return z(e,ee(HDd(a.issuePickerSearchService,a.currentComponentId)),2)}d=new c(e.yieldResult);return e.return(d.has(b))})};HW.prototype.openLearnMore=function(){this.domSafe.openInNewTab("http://go/b-mark-as-duplicate")};var Vmb=function(a){return a.startsWith("Component:")?"Component":a};HW.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(HW)))(b||HW)}}();
HW.\u0275cmp=C({type:HW,selectors:[["assistive-issue-picker-dialog"]],viewQuery:function(a,b){a&1&&(kg(xEd,5),kg(yEd,5),kg(DW,5));if(a&2){var c;og(c=pg())&&(b.trigger=c.first);og(c=pg())&&(b.inputEl=c.first);og(c=pg())&&(b.displayedRows=c)}},hostBindings:function(a,b){a&1&&N("keydown.control.enter",function(){return b.onPressConfirm()})("keydown.meta.enter",function(){return b.onPressConfirm()})},features:[Ff],decls:29,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')","matTooltipPosition","left",3,"value"],["matTooltip","Searches by the exact query text. Supports search atoms (like 'status:open')","matTooltipPosition","left",3,"value"],[1,"flex-kids-x","align-items-center","margin-s-bottom","gap-s"],[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"],["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-button","",1,"component-picker-action-buttons","toggle-filters",3,"click"],"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",1,"component-filter",3,"matTooltip"],["type","button","mat-menu-item","","matTooltipPosition","right",1,"team-filter",3,"matTooltip"],["type","button","mat-menu-item","","matTooltipPosition","right",1,"component-filter",3,"click","matTooltip"],["svgIcon","done"],["type","button","mat-menu-item","","matTooltipPosition","right",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=t();K(0,"div",5);F(1,Pmb,2,3);K(2,"div",6);M(3,"mat-icon",7);K(4,"span");S(5,"Close as duplicate of:");
L()();K(6,"header",8);F(7,Smb,2,1);U(8,"async");K(9,"input",9,0);N("keydown.arrowdown",function(){u(c);return v(b.focusManager.setActiveItem(0))})("input",function(){u(c);var f=Q(10);return v(b.searchText$.next(f.value))})("keydown.enter",function(){u(c);return v(b.onPressConfirm())});L();K(11,"mat-select",10);U(12,"async");N("selectionChange",function(f){u(c);b.selectedSearchSource$.next(f.value);return v()});K(13,"mat-option",11);S(14);L();K(15,"mat-option",12);S(16);L()()();F(17,hnb,2,3);U(18,
"async");Mf(19,jnb,4,1,"div",13);L();F(20,nnb,5,3,"div",14);F(21,Lnb,5,4,"div",15);U(22,"async");K(23,"div",16)(24,"button",17);N("click",function(){u(c);return v(b.onPressCancel())});S(25," Cancel ");L();K(26,"button",18);U(27,"async");N("click",function(){u(c);return v(b.onPressConfirm())});S(28," Close as duplicate ");L()()}if(a&2){var d,e;B();G(b.originIsBulk?-1:1);B(6);G((d=W(8,11,b.selectedSearchSource$))?7:-1,d);B(4);I("value",W(12,13,b.selectedSearchSource$));B(2);I("value",b.SearchSource.SEMANTIC_SEARCH);
B();T(" ",b.SearchSource.SEMANTIC_SEARCH," ");B();I("value",b.SearchSource.EXACT_MATCH);B();T(" ",b.SearchSource.EXACT_MATCH," ");B();G(W(18,15,b.showFilters$)?17:19);B(3);G(b.isLoading?20:-1);B();G((e=W(22,17,b.issues$))?21:-1,e);B(5);I("disabled",!W(27,19,b.selectedIssues.size$))}},dependencies:[Fxd,uT,vT,ZA,XA,TA,VA,JK,BK,IK,HK,GK,OJ,NJ,LF,JF,KF,OF,qT,pT,hI,GA,GW,FW,QS,DS,JS,FS,CS,LS,GS,IS,MS,OS,hK,eW,gW,iW,jW,BW,mB,lB,kB,iz,jS,iS,MA,VS,DW,VV,py],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 IW=function(){this.expandable=this.issue=null;this.expanded=!1;this.level=0;this.isEditMode=!1;this.onSaveOutput=new KO;this.onCancelOutput=new KO;this.expansionChange=new KO;this.title=""};IW.prototype.ngOnChanges=function(){var a,b;this.title=((a=this.issue)==null?void 0:(b=a.snapshot[0])==null?void 0:b.title)||""};IW.\u0275fac=function(a){return new (a||IW)};
IW.\u0275cmp=C({type:IW,selectors:[["b-expandable-issue-title-cell"]],viewQuery:function(a,b){a&1&&kg(BW,7);if(a&2){var c;og(c=pg())&&(b.issueTitleCell=c.first)}},inputs:{issue:"issue",expandable:"expandable",expanded:"expanded",level:"level",isEditMode:"isEditMode"},outputs:{onSaveOutput:"onSaveOutput",onCancelOutput:"onCancelOutput",expansionChange:"expansionChange"},features:[Gx],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&&(K(0,"div",0),F(1,Mnb,2,3,"button",1)(2,Nnb,1,0,"div",2),K(3,"b-issue-title-cell",3),N("onSave",function(){return b.onSaveOutput.emit()})("onCancel",function(){return b.onCancelOutput.emit()}),L()());a&2&&(xg("margin-left",b.level*24,"px"),B(),G(b.expandable?1:2),B(2),I("issue",
b.issue)("isEditMode",b.isEditMode))},dependencies:[ZA,XA,VA,hS,BW],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 JW=function(){this.tooltip=this.displayText=this.chipColor=""};JW.\u0275fac=function(a){return new (a||JW)};
JW.\u0275cmp=C({type:JW,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&&(K(0,"div",0),F(1,Onb,1,1,"mat-icon",1),S(2),L());a&2&&(zg("signal-chip type-button "+b.chipColor),I("matTooltip",b.tooltip),Jf("aria-label",b.tooltip),B(),G(b.icon?1:-1),B(),T(" ",b.displayText,"\n"))},dependencies:[hK,
MA,iz],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 KW=function(){this.issueService=q(AO);this.issueExperimentalFieldsFridge=q(CO);this.isDataLoaded=!1;this.alerts=[]};KW.prototype.ngOnInit=function(){};var Qnb=function(a){return a.alerts.filter(function(b){return d9a(a.issue,b)})};
KW.prototype.dismissAlert=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return a.issue.issueId?z(c,ee(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 z(c,Lmd(a.issueService,b),0)})};KW.\u0275fac=function(a){return new (a||KW)};
KW.\u0275cmp=C({type:KW,selectors:[["b-issue-alerts-cell"]],inputs:{issue:"issue",alerts:"alerts"},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&&(K(0,"div",1),bg(1),F(2,Pnb,3,3),F(3,Rnb,2,2,"div",2),L(),E(4,Tnb,4,0,"ng-template",null,0,Og));a&2&&(B(),a=cg(Qnb(b)[0]),B(),G(a?2:-1),B(),G(Qnb(b).slice(1).length?3:-1))},dependencies:[ZA,XA,VA,hK,iz,MA,JW,DD,CD,MK],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 LW=function(){this.issue=null;this.isDataLoaded=!1};LW.prototype.ngOnChanges=function(){var a;this.assignee=Ddb(Rm((a=this.issue)==null?void 0:a.snapshot[0].assigneeUser)||void 0);this.isDataLoaded=this.issue!==null};LW.\u0275fac=function(a){return new (a||LW)};
LW.\u0275cmp=C({type:LW,selectors:[["b-issue-assignee-cell"]],inputs:{issue:"issue"},features:[Gx],decls:2,vars:2,consts:[[3,"isReady"],[3,"email"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,Unb,2,2,"b-person-hovercard",1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.assignee?1:-1))},dependencies:[dW,TR],encapsulation:2,changeDetection:0});var MW=function(){this.issue=null;this.componentId=this.teamId="";this.isDataLoaded=!1};MW.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};MW.\u0275fac=function(a){return new (a||MW)};
MW.\u0275cmp=C({type:MW,selectors:[["b-issue-team-cell"]],inputs:{issue:"issue"},features:[Gx],decls:2,vars:2,consts:[[3,"isReady"],["teamNotAssignedMessage","--",3,"teamId","componentId","anchorLinkEnabled"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,Vnb,1,3,"b-team-display",1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.teamId?1:-1))},dependencies:[dW,MU],encapsulation:2,changeDetection:0});var NW=function(){this.activeSession=q(Zu);this.issueExperimentalFieldsFridge=q(CO);this.analytics=q(PO)};NW.prototype.ngOnInit=function(){};NW.prototype.claim=function(){var a=this;this.issueExperimentalFieldsFridge.updateOrInsert(this.issue.issueId,function(b){b.triage.triagerEmail=a.activeSession.getUserEmail()});this.analytics.trackEvent("triageIssue","claim")};NW.\u0275fac=function(a){return new (a||NW)};
NW.\u0275cmp=C({type:NW,selectors:[["b-issue-triager-cell"]],inputs:{issue:"issue"},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&&F(0,Wnb,1,1,"b-user-image",0)(1,Xnb,2,0,"button",1);if(a&2){var c;G((c=b.issue.experimentalFields==null?null:b.issue.experimentalFields.triage==null?
null:b.issue.experimentalFields.triage.triagerEmail)?0:1,c)}},dependencies:[ZA,XA,TA,mU],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 OW=function(){this.type=this.issue=null;this.isDataLoaded=!1};OW.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};OW.\u0275fac=function(a){return new (a||OW)};
OW.\u0275cmp=C({type:OW,selectors:[["b-issue-type-cell"]],inputs:{issue:"issue"},features:[Gx],decls:2,vars:2,consts:[[1,"nowrap",3,"isReady"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,Ynb,3,3,"ng-container"),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.type?1:-1))},dependencies:[dW,nU],encapsulation:2,changeDetection:0});var JEd=function(){};JEd.prototype.transform=function(a){return vYa(a)};JEd.\u0275fac=function(a){return new (a||JEd)};JEd.\u0275pipe=cf({name:"toCustomFieldTypeDisplayValue",type:JEd,pure:!0});var PW=function(){};PW.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+"@"};PW.\u0275fac=function(a){return new (a||PW)};PW.\u0275pipe=cf({name:"shortenEmail",type:PW,pure:!0});var QW=function(){};QW.prototype.transform=function(a){if(!a||!a.length)return"";var b=(new Set(a.filter(function(c){return!!c.user}).map(function(c){return Fo(c)}))).size;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"?or[d]:"Other")});a=a.length>0?"Placeholders: "+a.join(", "):"";return b+(b&&a?", ":"")+a};QW.\u0275fac=function(a){return new (a||QW)};
QW.\u0275pipe=cf({name:"staffingSummary",type:QW,pure:!0});var RW=function(){};RW.\u0275fac=function(a){return new (a||RW)};RW.\u0275mod=$e({type:RW});RW.\u0275inj=Dc({imports:[FN]});var SW=function(){};SW.\u0275fac=function(a){return new (a||SW)};SW.\u0275mod=$e({type:SW});SW.\u0275inj=Dc({imports:[FN,RW,EV,FV]});var KEd=function(){};KEd.\u0275fac=function(a){return new (a||KEd)};KEd.\u0275mod=$e({type:KEd});KEd.\u0275inj=Dc({imports:[DD,mdd,NDd]});var TW=function(){};TW.\u0275fac=function(a){return new (a||TW)};TW.\u0275mod=$e({type:TW});TW.\u0275inj=Dc({});var UW=function(){};UW.\u0275fac=function(a){return new (a||UW)};UW.\u0275mod=$e({type:UW});UW.\u0275inj=Dc({imports:[FN,mC,iK,aT,pW,sU,MDd,TW,KEd,qW,sW]});var VW=function(){};VW.\u0275fac=function(a){return new (a||VW)};VW.\u0275mod=$e({type:VW});VW.\u0275inj=Dc({imports:[FN,RW,UW,AK,iK,vW]});var WW=function(){};WW.\u0275fac=function(a){return new (a||WW)};WW.\u0275mod=$e({type:WW});WW.\u0275inj=Dc({imports:[FN,ZA,iK,wW]});var XW=function(){};XW.\u0275fac=function(a){return new (a||XW)};XW.\u0275mod=$e({type:XW});XW.\u0275inj=Dc({providers:[{provide:jrd,useValue:xW}],imports:[FN,SW,ZA,iK,vU,GU,tT,WW,VW,xW,mW]});var YW=function(){};YW.\u0275fac=function(a){return new (a||YW)};YW.\u0275mod=$e({type:YW});YW.\u0275inj=Dc({imports:[FN]});var ZW=function(){};ZW.\u0275fac=function(a){return new (a||ZW)};ZW.\u0275mod=$e({type:ZW});ZW.\u0275inj=Dc({imports:[Dz,FN,gT,ZA,iK,VT,fW]});var $W=function(){var a=this;this.componentFridge=q(AN);this.trackerHelpers=q(WQ);this.issue$=new vf(1);this.isLoaded$=this.issue$.pipe(A(function(b){return b!==null}));this.componentId$=this.issue$.pipe(A(function(b){return(b==null?void 0:b.snapshot[0].componentId)||void 0}));this.component$=this.componentId$.pipe(zf(function(b){return b?a.componentFridge.watch(b):be(void 0)}));this.componentName$=he([this.componentId$,this.component$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;
return c?(b=Lu(a.trackerHelpers,c.componentPathInfo))&&b.componentPathName?b.componentPathName[b.componentPathName.length-1].toString():"":b||""}))};da.Object.defineProperties($W.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){this.issue$.next(a)}}});$W.\u0275fac=function(a){return new (a||$W)};
$W.\u0275cmp=C({type:$W,selectors:[["b-issue-component-name-cell"]],inputs:{issue:"issue"},decls:4,vars:6,consts:[[3,"isReady"],[1,"nowrap","overflow-ellipsis",3,"matTooltip"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),U(1,"async"),F(2,Znb,2,2,"span",1),U(3,"async"),L());if(a&2){var c;I("isReady",W(1,2,b.isLoaded$));B(2);G((c=W(3,4,b.componentName$))?2:-1,c)}},dependencies:[dW,hK,MA,py],encapsulation:2,changeDetection:0});var aX=function(){this.issue=null;this.isDataLoaded=!1};aX.prototype.ngOnChanges=function(){var a;this.reporter=Ddb(Rm((a=this.issue)==null?void 0:a.snapshot[0].reporterUser)||void 0);this.isDataLoaded=this.issue!==null};aX.\u0275fac=function(a){return new (a||aX)};
aX.\u0275cmp=C({type:aX,selectors:[["b-issue-reporter-cell"]],inputs:{issue:"issue"},features:[Gx],decls:2,vars:2,consts:[[3,"isReady"],[3,"email"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),F(1,$nb,2,2,"b-person-hovercard",1),L());a&2&&(I("isReady",b.isDataLoaded),B(),G(b.reporter?1:-1))},dependencies:[dW,TR],encapsulation:2,changeDetection:0});var LEd=["theInput"],bX=function(){this.placeholder=this.value="";this.readonly=!1;this.autoFocus=!0;this.valueChange=new KO;this.commit=new KO};bX.prototype.ngAfterViewInit=function(){this.autoFocus&&this.input.nativeElement.focus()};bX.\u0275fac=function(a){return new (a||bX)};
bX.\u0275cmp=C({type:bX,selectors:[["b-text-input-cell"]],viewQuery:function(a,b){a&1&&kg(LEd,5);if(a&2){var c;og(c=pg())&&(b.input=c.first)}},inputs:{value:"value",placeholder:"placeholder",readonly:"readonly",autoFocus:"autoFocus"},outputs:{valueChange:"valueChange",commit:"commit"},decls:2,vars:7,consts:[["theInput",""],["type","text",3,"keydown.enter","ngModelChange","placeholder","disabled","ngModel"]],template:function(a,b){if(a&1){var c=t();K(0,"input",1,0);N("keydown.enter",function(d){u(c);
b.readonly||b.commit.emit(d);return v()})("ngModelChange",function(d){u(c);return v(b.valueChange.emit(d))});L()}a&2&&(yg("readonly",b.readonly)("override",b.readonly),I("placeholder",b.placeholder)("disabled",b.readonly)("ngModel",b.value))},dependencies:[mC,xi,PB,WB],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 cX=function(){};cX.\u0275fac=function(a){return new (a||cX)};cX.\u0275mod=$e({type:cX});cX.\u0275inj=Dc({imports:[FN,AK,ZA,MV,NV]});var dX=function(){};dX.\u0275fac=function(a){return new (a||dX)};dX.\u0275mod=$e({type:dX});dX.\u0275inj=Dc({imports:[FN]});var MEd=[IDd,IW,LW,KW,$W,eW,gW,iW,aX,jW,MW,BW,NW,OW,bX],eX=function(){};eX.\u0275fac=function(a){return new (a||eX)};eX.\u0275mod=$e({type:eX});eX.\u0275inj=Dc({imports:[dX,sU,FN,ZT,GU,lW,mC,ZA,iK,AK,xT,XW,ZW,YW,aT,NU,cX,JW,vU,DD,MEd]});var fX=function(){};fX.\u0275fac=function(a){return new (a||fX)};fX.\u0275mod=$e({type:fX});fX.\u0275inj=Dc({imports:[FN,mC,ZA,YJ,iK,UV,pB,uA,qA,cX,Dz,sU,SW,VV,OV]});var NEd=function(){};NEd.\u0275fac=function(a){return new (a||NEd)};NEd.\u0275mod=$e({type:NEd});NEd.\u0275inj=Dc({imports:[FN,JK,cL,eX,ZA,pB,OJ,kS,qT,GW,iK,XS,EW,wT,fX,HW]});var gX=function(){this.issuesApi=q(uO)};gX.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})};gX.\u0275fac=function(a){return new (a||gX)};gX.\u0275prov=Cc({token:gX,factory:gX.\u0275fac,providedIn:"root"});var OEd=new bd("GM2_AUTOCOMPLETE_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var PEd=["panel"],QEd=function(a,b){this.source=a;this.option=b},REd=new bd("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}}),hX=function(){this._changeDetectorRef=q(Yx);this._elementRef=q(Gd);this._defaults=q(REd);this._animationsDisabled=ti();this._activeOptionChanges=Od.EMPTY;this._isOpen=this.showPanel=!1;this.displayWith=null;this.optionSelected=
new ui;this.opened=new ui;this.closed=new ui;this.optionActivated=new ui;this.id=q(hi).getId("mat-autocomplete-");q(bi);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};h=hX.prototype;h._setColor=function(a){this._color=a;this._changeDetectorRef.markForCheck()};
h._syncParentProperties=function(){if(this.options)for(var a=l(this.options),b=a.next();!b.done;b=a.next())b.value._changeDetectorRef.markForCheck()};h.ngAfterContentInit=function(){var a=this;this._keyManager=Lz(new Qz(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()};
h.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();this._activeOptionChanges.unsubscribe()};h._setScrollTop=function(a){this.panel&&(this.panel.nativeElement.scrollTop=a)};h._getScrollTop=function(){return this.panel?this.panel.nativeElement.scrollTop:0};h._setVisibility=function(){var a;this.showPanel=!((a=this.options)==null||!a.length);this._changeDetectorRef.markForCheck()};h._emitSelectEvent=function(a){this.optionSelected.emit(new QEd(this,a))};
h._getPanelAriaLabelledby=function(a){return this.ariaLabel?null:this.ariaLabelledby?(a?a+" ":"")+this.ariaLabelledby:a};h._skipPredicate=function(){return!1};
da.Object.defineProperties(hX.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()}}});hX.\u0275fac=function(a){return new (a||hX)};
hX.\u0275cmp=C({type:hX,selectors:[["mat-autocomplete"]],contentQueries:function(a,b,c){a&1&&(lg(c,GA,5),lg(c,DHc,5));if(a&2){var d;og(d=pg())&&(b.options=d);og(d=pg())&&(b.optionGroups=d)}},viewQuery:function(a,b){a&1&&(kg(hg,7),kg(PEd,5));if(a&2){var c;og(c=pg())&&(b.template=c.first);og(c=pg())&&(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",bh],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",bh],requireSelection:[2,"requireSelection","requireSelection",bh],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",bh],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",bh]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},
exportAs:["matAutocomplete"],features:[Ig([{provide:CHc,useExisting:hX}])],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&&(fg(),Hf(0,aob,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:relative;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,.cdk-overlay-pane:has(>.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 SEd={provide:KB,useExisting:Tc(function(){return iX}),multi:!0},TEd=new bd("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:function(){var a=q(xe);return function(){return $h(a)}}}),iX=function(){var a=this;this._environmentInjector=q(Xe);this._element=q(Gd);this._injector=q(xe);this._viewContainerRef=q(ig);this._zone=q(Tg);this._changeDetectorRef=q(Yx);this._dir=q(ii,{optional:!0});this._formField=q(gJc,{optional:!0,host:!0});this._viewportRuler=q(Xh);this._scrollStrategy=q(TEd);
this._renderer=q(ji);this._animationsDisabled=ti();this._defaults=q(REd,{optional:!0});this._componentDestroyed=!1;this._initialized=new rf;this._manuallyFloatingLabel=!1;this._viewportSubscription=Od.EMPTY;this._breakpointObserver=q(wz);this._handsetLandscapeSubscription=Od.EMPTY;this._canOpenOnNextFocus=!0;this._closeKeyEventStream=new rf;var b;this._overlayPanelClass=Rh(((b=this._defaults)==null?void 0:b.overlayPanelClass)||[]);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=le(function(){var c=a.autocomplete?a.autocomplete.options:null;return c?c.changes.pipe(yf(c),zf(function(){return se.apply(null,n(c.map(function(d){return d.onSelectionChange})))})):a._initialized.pipe(zf(function(){return a.optionSelections}))});this._handlePanelKeydown=function(c){if(c.keyCode===
27&&!Nh(c)||c.keyCode===38&&Nh(c,"altKey")){if(a._pendingAutoselectedOption){var d;a._updateNativeInputValue((d=a._valueBeforeAutoSelection)!=null?d:"");a._pendingAutoselectedOption=null}a._closeKeyEventStream.next();a._resetActiveItem();c.stopPropagation();c.preventDefault()}};this._trackedModal=null};iX.prototype.ngAfterViewInit=function(){this._initialized.next();this._initialized.complete();this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)};
iX.prototype.ngOnChanges=function(a){a.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())};iX.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 jLb=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&&
Wh(a._trackedModal,"aria-owns",a.autocomplete.id))};h=iX.prototype;h.updatePosition=function(){this._overlayAttached&&this._overlayRef.updatePosition()};
h._getOutsideClickStream=function(){var a=this;return new Sd(function(b){var c=function(e){var f=Qh(e),g=a._formField?a._formField.getConnectedOverlayOrigin().nativeElement:null,k=a.connectedTo?a.connectedTo.elementRef.nativeElement:null;!a._overlayAttached||f===a._element.nativeElement||a._hasFocus()||g&&g.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()})}})};h.writeValue=function(a){var b=this;Promise.resolve(null).then(function(){return b._assignOptionValue(a)})};h.registerOnChange=function(a){this._onChange=a};h.registerOnTouched=function(a){this._onTouched=a};h.setDisabledState=function(a){this._element.nativeElement.disabled=a};
h._handleKeydown=function(a){var b=a.keyCode,c=Nh(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))}};
h._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)}}};h._handleFocus=function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0};h._handleClick=function(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()};
h._hasFocus=function(){return Ph()===this._element.nativeElement};h._floatLabel=function(a){this._formField&&this._formField.floatLabel==="auto"&&((a===void 0?0:a)?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)};h._resetLabel=function(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)};
h._subscribeToClosingActions=function(){var a=this,b=new Sd(function(f){De(function(){f.next()},{injector:a._environmentInjector})}),c,d,e=(d=(c=this.autocomplete.options)==null?void 0:c.changes.pipe(Bf(function(){return mHc(a._positionStrategy)}),nf(0)))!=null?d:be();return se(b,e).pipe(zf(function(){return a._zone.run(function(){var f=a.panelOpen;a._resetActiveItem();a._updatePanelState();a._changeDetectorRef.detectChanges();a.panelOpen&&a._overlayRef.updatePosition();f!==a.panelOpen&&(a.panelOpen?
a._emitOpened():a.autocomplete.closed.emit());return a.panelClosingActions})}),mf(1)).subscribe(function(f){return a._setValueAndClose(f)})};h._emitOpened=function(){this.autocomplete.opened.emit()};h._destroyPanel=function(){this._overlayRef&&(jLb(this),this._overlayRef.dispose(),this._overlayRef=null)};h._getDisplayValue=function(a){var b=this.autocomplete;return b&&b.displayWith?b.displayWith(a):a};
h._assignOptionValue=function(a){var b=this._getDisplayValue(a);a==null&&this._clearPreviousSelectedOption(null,!1);this._updateNativeInputValue(b!=null?b:"")};h._updateNativeInputValue=function(a){this._formField?this._formField._control.value=a:this._element.nativeElement.value=a;this._previousValue=a};
h._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));jLb(this)};
h._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)})};h._openPanelInternal=function(a){a=a===void 0?this._element.nativeElement.value:a;this._attachOverlay(a);this._floatLabel();this._trackedModal&&usa(this._trackedModal,"aria-owns",this.autocomplete.id)};
h._attachOverlay=function(a){var b=this;if(this.autocomplete){var c=this._overlayRef;if(c)this._positionStrategy.setOrigin(this._getConnectedElement()),c.updateSize({width:this._getPanelWidth()});else{var d;this._portal=new mA(this.autocomplete.template,this._viewContainerRef,{id:(d=this._formField)==null?void 0:d.getLabelId()});this._overlayRef=c=ri(this._injector,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?eA(oHc(fA(b._positionStrategy,!0),!0),8):eA(oHc(fA(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()}};
h._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}};
h._getOverlayConfig=function(){var a,b,c;return new ki({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:(c=this._dir)!=null?c:void 0,hasBackdrop:(a=this._defaults)==null?void 0:a.hasBackdrop,backdropClass:((b=this._defaults)==null?void 0:b.backdropClass)||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})};
h._getOverlayPosition=function(){var a=sHc(pHc(fA(di(this._injector,this._getConnectedElement()),!1),!1),"inline");this._setStrategyPositions(a);return this._positionStrategy=a};
h._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(n(b),n(c));dA(a,b)};
h._getConnectedElement=function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element};h._getPanelWidth=function(){return this.autocomplete.panelWidth||this._getHostWidth()};h._getHostWidth=function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width};
h._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)};h._canOpen=function(){var a=this._element.nativeElement;return!a.readOnly&&!a.disabled&&!this.autocompleteDisabled};
h._scrollToOption=function(a){var b=this.autocomplete,c=Tsa(a,b.options,b.optionGroups);a===0&&c===1?b._setScrollTop(0):b.panel&&(a=b.options.toArray()[a])&&(a=a._getHostElement(),b._setScrollTop(Usa(a.offsetTop,a.offsetHeight,b._getScrollTop(),b.panel.nativeElement.offsetHeight)))};
h._applyModalPanelOwnership=function(){var a=this._element.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(a){var b=this.autocomplete.id;this._trackedModal&&Wh(this._trackedModal,"aria-owns",b);usa(a,"aria-owns",b);this._trackedModal=a}};h._clearFromModal=function(){this._trackedModal&&(Wh(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)};
da.Object.defineProperties(iX.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 se(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(te(function(){return a._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef._detachments.pipe(te(function(){return a._overlayAttached})):
be()).pipe(A(function(b){return b instanceof THc?b:null}))}},activeOption:{configurable:!0,enumerable:!0,get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}});iX.\u0275fac=function(a){return new (a||iX)};
iX.\u0275dir=af({type:iX,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(a,b){a&1&&N("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&&Jf("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",bh]},exportAs:["matAutocompleteTrigger"],features:[Ig([SEd]),Gx]});var jX=function(){};jX.\u0275fac=function(a){return new (a||jX)};jX.\u0275mod=$e({type:jX});jX.\u0275inj=Dc({imports:[uA,JA,aA,JA,jz]});var kX=function(){if(q(OEd).disableGmatStyle)throw Error("eb");var a=q(iX,{self:!0,optional:!0});a&&a._overlayPanelClass.push("gmat-mdc-autocomplete")};kX.\u0275fac=function(a){return new (a||kX)};kX.\u0275dir=af({type:kX,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],standalone:!1});var lX=function(){};lX.\u0275fac=function(a){return new (a||lX)};lX.\u0275mod=$e({type:lX});lX.\u0275inj=Dc({imports:[jX]});var mX=function(){LO.apply(this,arguments);var a=this;this.cdr=q(MO,{self:!0});this.paths=q(wV);this.issueFullFridge=q(RO);this.relatedIssues=q(gX);this.errorHandler=q(ZM);this.domSafe=q($P);this.activeSession=q(Zu);this.STATUS_ICON=did;this.entrySelect=new KO;this.selectedIssues=[];this.asyncChoices=[];this.choices=[];this.currentQuery="";this.hasLoadedResults=!0;this.searchingForSelf=!1;this.queryInternal="";this.queryChange=new KO;this.getTextToPutInInputOnSelect=function(){return a.query}};
Z(mX,LO);mX.\u0275dir=LO.\u0275dir;mX.prototype.ngOnInit=function(){var a=this;this.queryChange.pipe(kf(250),Af(this.destroyed$)).subscribe(function(b){a.doSearch(b)})};mX.prototype.ngOnChanges=function(a){a.defaultChoices&&(this.choices=[].concat(n(this.defaultChoices),n(this.asyncChoices)))};mX.prototype.selectIssue=function(a){UEd(this,[a])};
var WEd=function(a){var b=a.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});if(VEd(b))return b;b=a;a.startsWith("b/")?b=a.substring(2):a.startsWith("http://b/")&&(b=a.substring(9));return jab(b)?[b]:[]},VEd=function(a){return!a.some(function(b){return!jab(b)})};mX.prototype.search=function(a){typeof a==="string"&&(this.query=a)};
mX.prototype.doSearch=function(a){this.currentQuery=a;this.searchingForSelf=!1;if(a==="")XEd(this);else{var b=WEd(a);b.length===1||b.length>1&&this.allowMultipleIds?(this.lastSearchType="id",YEd(this,b,a)):(this.lastSearchType="query",ZEd(this,a))}};
var XEd=function(a){a.choices=a.defaultChoices;a.asyncChoices=[];a.hasLoadedResults=!0;UEd(a,[])},UEd=function(a,b){a.selectedIssues=b;a.entrySelect.emit(a.selectedIssues);var c;(c=a.autocomplete)==null||jLb(c)},YEd=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,XEd(a)):(a.choices=$Ed(a,b),a.hasLoadedResults=!1,a.issueFullFridge.watchSet(b).pipe(mf(1),Af(a.destroyed$)).subscribe(function(e){if(a.currentQuery===
c){var f=e.reduce(function(g,k){var m=Ia(k.snapshot);return g.set(k.issueId,{resourceId:k.issueId,displayText:m.title,status:m.status,relations:[]})},new Map);Hba(b);e=b.map(function(g){return f.get(g)});e.includes(void 0)?a.asyncChoices=[]:a.asyncChoices=e;a.choices=[].concat(n(a.choices),n(a.asyncChoices));UEd(a,a.asyncChoices);a.hasLoadedResults=!0;a.cdr.detectChanges()}},function(){a.asyncChoices=[];a.hasLoadedResults=!0;a.cdr.detectChanges()}))},ZEd=function(a,b){a.choices=aFd(a,b);a.hasLoadedResults=
!1;if(xa(b))a.hasLoadedResults=!0;else{var c=bFd(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:(f=a.currentResource)==null?void 0:f.id,nonParallelRequest:!0}).then(function(g){a.currentQuery===b&&(g=g.issueDigests.map(function(k){return{resourceId:k.issueId,displayText:k.title,status:k.status,relations:[]}}),a.choices=[].concat(n(a.choices),n(g)),a.cdr.detectChanges())},
function(g){a.errorHandler.errorHandler(null,g)}).finally(function(){a.hasLoadedResults=!0})}},$Ed=function(a,b){return a.defaultChoices.filter(function(c){return c.resourceId.toString().startsWith(b[0])})},aFd=function(a,b){return xa(b)?a.defaultChoices:a.defaultChoices.filter(function(c){return c.displayText.toLowerCase().startsWith(b.toLowerCase())})};mX.prototype.getIssueLink=function(a){return As(a.resourceId)};
var gob=function(a){return a.relations.map(function(b){return cFd.get(b)}).filter(function(b){return!!b}).join("/")},bFd=function(a,b){if(b.length===0)return a;b=b.map(function(c){return c.resourceId}).join("|");return a+" -id:("+b+")"};mX.prototype.onEnter=function(a){var b;((b=this.autocomplete)==null?0:b.panelOpen)&&a.stopPropagation()};da.Object.defineProperties(mX.prototype,{query:{configurable:!0,enumerable:!0,get:function(){return this.queryInternal},set:function(a){this.queryInternal=a;this.queryChange.emit(a)}}});
mX.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(mX)))(b||mX)}}();
mX.\u0275cmp=C({type:mX,selectors:[["b-simple-issue-picker"]],viewQuery:function(a,b){a&1&&kg(iX,5);if(a&2){var c;og(c=pg())&&(b.autocomplete=c.first)}},inputs:{defaultChoices:"defaultChoices",currentResource:"currentResource",allowMultipleIds:"allowMultipleIds"},outputs:{entrySelect:"entrySelect",queryChange:"queryChange"},features:[Ig([gX,MO]),Ff,Gx],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=t();K(0,"div",3);F(1,bob,3,0,"div");K(2,"div",4)(3,"input",5);N("ngModelChange",function(d){u(c);return v(b.search(d))})("keydown.enter",function(d){u(c);return v(b.onEnter(d))})("keydown.alt.arrowright",function(){u(c);b.activeChoice&&b.domSafe.openInNewTab(b.getIssueLink(b.activeChoice));return v()});L();K(4,"mat-autocomplete",6,0);N("optionActivated",
function(d){u(c);b.activeChoice=d.option==null?null:d.option.value;return v()})("optionSelected",function(d){u(c);return v(b.selectIssue(d.option.value))});F(6,cob,3,1,"mat-option",7);F(7,dob,2,0,"mat-option",8);Pf(8,hob,14,15,"mat-option",9,Of);L()()()}a&2&&(a=Q(5),B(),G(b.searchingForSelf?1:-1),B(2),I("ngModel",b.query)("matAutocomplete",a),Jf("aria-label",b.selectedIssues.length>0?"issue "+b.selectedIssues[0].resourceId+" selected. Change.":"Choose issue"),B(),I("displayWith",b.getTextToPutInInputOnSelect),
B(2),G(b.query===""||b.hasLoadedResults?-1:6),B(),G(b.query!==""&&b.hasLoadedResults&&b.choices.length===0?7:-1),B(),Qf(b.choices))},dependencies:[mC,xi,PB,WB,lX,kX,hX,GA,iX,ZA,XA,VA,AK,uK,vK,zK,wK,xW,iz,VS,oU],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 cFd=new Map([["BLOCKED_BY","blocked"],["BLOCKING","blocking"],["DUPLICATE","duplicate"]]);var nX=function(){this.dialogRef=q(dB);this.params=q(JP);this.DEFAULTS={title:"Select an issue.",defaultChoices:[],allowMultipleIds:!1};this.originalData=q(fB);this.data=Object.assign({},this.DEFAULTS,this.originalData);this.queryRestriction=this.data.componentId?"componentid:"+this.data.componentId+"+":"";this.isQueryRestricted=!1;this.selectedIssues=[]},lob=function(a){if(a.queryRestriction!==""&&a.issuePicker!=null){var b=a.issuePicker.query;a.issuePicker.query=a.isQueryRestricted?b.replace(new RegExp(qs(a.queryRestriction)+
" ?"),""):a.queryRestriction+" "+b}};h=nX.prototype;h.onQueryChange=function(a){this.isQueryRestricted=this.queryRestriction!==""&&a.includes(this.queryRestriction)};h.onEnter=function(){if(this.selectedIssues.length!==0)this.onPressConfirm()};h.onEscape=function(){this.dialogRef.close()};h.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)};
h.onPressCancel=function(){this.dialogRef.close()};nX.\u0275fac=function(a){return new (a||nX)};
nX.\u0275cmp=C({type:nX,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&kg(mX,5);if(a&2){var c;og(c=pg())&&(b.issuePicker=c.first)}},hostBindings:function(a,b){a&1&&N("keydown.escape",function(){return b.onEscape()})},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&&(K(0,"h2",0),S(1),L(),K(2,"div",1)(3,"div",2),F(4,job,3,0,"div",3),F(5,kob,6,3,"div",3),L(),K(6,"div",4)(7,"div",5),F(8,mob,2,2,"div",6),K(9,"b-simple-issue-picker",7),N("keydown.enter",function(){return b.onEnter()})("entrySelect",function(c){b.selectedIssues=c})("queryChange",function(c){return b.onQueryChange(c)}),L()()()(),K(10,
"div",8)(11,"button",9),N("click",function(){return b.onPressCancel()}),S(12," Cancel "),L(),K(13,"button",10),N("click",function(){return b.onPressConfirm()}),S(14," Confirm "),L()());a&2&&(B(),T(" ",b.data.title,"\n"),B(3),G(b.selectedIssues.length>1?4:-1),B(),G(b.selectedIssues.length===1?5:-1),B(3),G(b.queryRestriction?8:-1),B(),yg("bv2-rel-issue-issue-picker-full-width",!!b.queryRestriction),I("defaultChoices",b.data.defaultChoices)("currentResource",b.data.currentResource)("allowMultipleIds",
b.data.allowMultipleIds),B(4),I("disabled",!b.selectedIssues.length))},dependencies:[ZA,XA,TA,hK,mB,lB,kB,iz,MA,mX],encapsulation:2});var dFd=function(){};dFd.\u0275fac=function(a){return new (a||dFd)};dFd.\u0275mod=$e({type:dFd});dFd.\u0275inj=Dc({imports:[sU,FN,mC,AK,XW,lX,ZA,pB,iK,XS,mX,nX]});var eFd=new bd("XapHatsSurveyApiKey"),fFd=new bd("XapHatsSurveyLocale"),gFd=new bd("XapHatsSurveyWindow"),hFd=new bd("XapHatsSurveyListnrProductId");var iFd=new Map([[0,1],[1,2]]),jFd={anchor:1,verticalMargin:0,horizontalMargin:0},oX=function(a,b,c,d,e){var f=function(){var g={apiKey:a,locale:c!=null?c:"en-US",window:d};g=wgd(Bgd,"help.service.Lazy.create",b,{apiKey:g.apiKey||g.apiKey,asxUiUri:g.asxUiUri||g.asxUiUri,environment:g.environment||g.environment,flow:g.flow||g.flow,frdProductData:g.frdProductData||g.frdProductData,frdProductDataSerializedJspb:g.frdProductDataSerializedJspb||g.frdProductDataSerializedJspb,helpCenterPath:g.helpCenterPath||
g.helpCenterPath,locale:g.locale||g.locale||"en-US".replace(/-/g,"_"),nonce:g.nonce||g.nonce,productData:g.productData||g.productData,receiverUri:g.receiverUri||g.receiverUri,renderApiUri:g.renderApiUri||g.renderApiUri,theme:g.theme||g.theme,window:g.window||g.window});return new Agd(g)};this.helpService=e?e.runOutsideAngular(f):f()},kFd=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 Sd(function(f){a.helpService.requestSurvey({triggerId:b,
enableTestingMode:d.enableTestingMode,enableFeedback1pEndpoint:d.enableFeedback1pEndpoint,nonProd:d.nonProd,thirdPartyDomainSupportEnabled:d.thirdPartyDomainSupportEnabled,callback:function(g){g.surveyData!=null&&f.next(g.surveyData);f.complete()},authuser:e})})).pipe(zf(function(f){return new Sd(function(g){var k;a.helpService.presentSurvey({surveyData:f,colorScheme:d.theme?iFd.get(d.theme):1,authuser:e,customZIndex:(k=d.zIndex)!=null?k:1E4,customLogoUrl:d.customLogoUrl,productData:c,parentDomElementId:d.parentDomElementId,
listener:{surveyClosed:function(){g.complete()},surveyPositioning:function(){return Object.assign({},jFd,d.placement)}}});g.next(f.surveyMetadata)})}))};oX.\u0275fac=function(a){return new (a||oX)(Wc(eFd),Wc(hFd),Wc(fFd,8),Wc(gFd,8),Wc(Tg,8))};oX.\u0275prov=Cc({token:oX,factory:oX.\u0275fac,providedIn:"root"});var pX=function(){this.dialog=q(gB);this.analytics=q(PO);this.hatsService=q(oX);this.activeSession=q(Zu)};
pX.prototype.open=function(a,b){var c=this,d=lFd(a),e=d.dialog,f=d.config;return new Promise(function(g){eB(c.dialog.open(e,f)).subscribe(function(k){var m,r=(m=k==null?void 0:k.selectedIssueIds)!=null?m:[],w;k=(w=k==null?void 0:k.lastSearchType)!=null?w:"";w=[a.originIsBulk?"bulk":void 0,r.length>1?"search-multi":"search",a.edgeType].filter(Boolean).join("-");c.analytics.trackEvent("issuePicker",w,k);b==null||b(r);g(r);c.activeSession.isInternalSession()&&k==="id"&&kFd(c.hatsService,"etC5mMepi0g6pPHSLo10TaNs15gn").pipe(mf(1)).subscribe()})})};
var lFd=function(a){var b={panelClass:"no-jitter",data:a};return a.edgeType==="canonical"?(b.width="60vw",b.minWidth="800px",{dialog:HW,config:b}):{dialog:nX,config:b}};pX.\u0275fac=function(a){return new (a||pX)};pX.\u0275prov=Cc({token:pX,factory:pX.\u0275fac,providedIn:"root"});var mFd=function(){};mFd.\u0275fac=function(a){return new (a||mFd)};mFd.\u0275mod=$e({type:mFd});mFd.\u0275inj=Dc({imports:[dFd,NEd]});var nFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(nFd,X);nFd.prototype.getContentJudgement=function(){return Y(this,$o,1)};nFd.prototype.setContentJudgement=function(a){return hj(this,$o,1,a)};var oFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(oFd,X);oFd.prototype.getContentJudgement=function(){return Y(this,$o,1)};oFd.prototype.setContentJudgement=function(a){return hj(this,$o,1,a)};var pFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,pFd.messageId)};Z(pFd,X);pFd.prototype.getIt=function(){return Y(this,nFd,4,fb)};pFd.prototype.setIt=function(a){return hj(this,nFd,4,a,fb)};pFd.messageId="b.CreateContentJudgementRequest";var qFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(qFd,X);var rFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,rFd.messageId)};Z(rFd,X);rFd.prototype.getIt=function(){return Y(this,qFd,2,fb)};rFd.prototype.setIt=function(a){return hj(this,qFd,2,a,fb)};rFd.messageId="b.ListContentJudgementsResponse";var sFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,sFd.messageId)};Z(sFd,X);sFd.prototype.getIt=function(){return Y(this,oFd,2,fb)};sFd.prototype.setIt=function(a){return hj(this,oFd,2,a,fb)};sFd.messageId="b.UpdateContentJudgementRequest";var qX=function(){this.executor=q(RM)};qX.prototype.create=function(a,b,c){var d=new pFd,e=d.setIt,f=new nFd,g=f.setContentJudgement;a=R2a(aYa({resourcePath:a,severity:b,judgementReason:c,contentJudgementId:void 0}));a=cn(a,6,2);d=e.call(d,g.call(f,a));return this.executor.post({url:"action/content_judgements",body:d,responseConstructor:as}).pipe(A(O_a))};
qX.prototype.update=function(a){var b=R2a(aYa(a));b=ex(b,9);b=(new sFd).setIt((new oFd).setContentJudgement(b));return this.executor.post({url:"action/content_judgements/"+a.contentJudgementId,body:b,responseConstructor:as}).pipe(A(O_a))};qX.prototype.list=function(a){return this.executor.get({url:"action/content_judgements",options:{params:{resource_path:a}},responseConstructor:rFd}).pipe(A(function(b){b=b.getIt();return Wi(b,$o,1,Xi()).map(bYa)}))};qX.\u0275fac=function(a){return new (a||qX)};
qX.\u0275prov=Cc({token:qX,factory:qX.\u0275fac,providedIn:"root"});var rX=function(){var a=this;this.dialogRef=q(dB);this.documentationLinks=q(OQ);this.contentJudgements=q(qX);this.activeSession=q(Zu);this.data=q(fB);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.RestrictionSeverity=yhd;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,Rm(d.judge)===a.activeSession.getUserEmail()?tFd(a,d):uFd(d.severity,c)&&(c=d.severity);a.minimumSeverity=c;uFd(a.minimumSeverity,a.severity)&&(a.severity=a.minimumSeverity);a.loaded=!0}):(tFd(this,this.data.contentJudgement),this.loaded=!0)};rX.prototype.canInteract=function(){return this.loaded&&(this.data.hasAclToCreate||!!this.judgement)};
var uFd=function(a,b){return nob(a)>nob(b)},tFd=function(a,b){if(a.judgement=b)a.severity=b.severity},vFd=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.";
uFd(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};rX.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};
rX.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()})};rX.prototype.onNoClick=function(){this.dialogRef.close(null)};rX.\u0275fac=function(a){return new (a||rX)};
rX.\u0275cmp=C({type:rX,selectors:[["b-content-judgement-dialog"]],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 in new tab",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&&(K(0,"header",0)(1,"h1"),M(2,"mat-icon",1),K(3,"div"),S(4," Set restriction "),L()()(),K(5,"section",2)(6,"label",3),S(7),K(8,"a",4),S(9," Learn More "),
L()(),K(10,"mat-radio-group",5),Eg("ngModelChange",function(c){Dg(b.severity,c)||(b.severity=c);return c}),K(11,"mat-radio-button",6),S(12," No restriction "),K(13,"div"),S(14,' Users with "View issues" can access. '),L()(),K(15,"mat-radio-button",7),S(16," Restricted "),K(17,"div"),S(18,' Users with "View restricted content" can access. '),L()(),K(19,"mat-radio-button",8),S(20," Restricted+ "),K(21,"div"),S(22,' Users with "View restricted+ content" can access. '),L()()()(),K(23,"mat-dialog-actions")(24,
"button",9),N("click",function(){return b.onNoClick()}),S(25," Cancel "),L(),K(26,"button",10),N("click",function(){return b.onSaveClick()}),S(27," Set "),L()());a&2&&(B(7),T(" ",vFd(b)," "),B(),I("rel",b.EXTERNAL_LINK_REL),Jf("href",b.documentationLinks.getRestrictedAccessHelpLink(),Me),B(2),Cg("ngModel",b.severity),B(),I("value",b.RestrictionSeverity.NONE_DETECTED)("disabled",!b.canInteract()||uFd(b.minimumSeverity,b.RestrictionSeverity.NONE_DETECTED)),B(4),I("value",b.RestrictionSeverity.RESTRICTED)("disabled",
!b.canInteract()||uFd(b.minimumSeverity,b.RestrictionSeverity.RESTRICTED)),B(4),I("value",b.RestrictionSeverity.RESTRICTED_PLUS)("disabled",!b.canInteract()||uFd(b.minimumSeverity,b.RestrictionSeverity.RESTRICTED_PLUS)),B(7),I("disabled",!b.canInteract()))},dependencies:[mC,PB,WB,ZA,XA,TA,mB,lB,kB,iz,jS,iS],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 sX=function(){this.dialogRef=q(dB);this.documentationLinks=q(OQ);this.data=q(fB);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.resource=this.data.resource;this.piiRetention=this.data.piiRetention;this.acknowledgeToMatchIssueRetention=!1};sX.prototype.canInteract=function(){return!wFd(this)||this.acknowledgeToMatchIssueRetention};var wFd=function(a){return a.piiRetention==="INDEFINITE"};sX.prototype.onSaveClick=function(){this.dialogRef.close(1)};sX.prototype.onNoClick=function(){this.dialogRef.close(0)};
sX.\u0275fac=function(a){return new (a||sX)};
sX.\u0275cmp=C({type:sX,selectors:[["b-update-retention-dialog"]],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&&(K(0,"h1",0),M(1,"mat-icon",1),K(2,"div"),F(3,oob,2,1,"span")(4,pob,2,0,"span"),L()(),K(5,"div",2),F(6,qob,8,1,"span")(7,rob,3,2,"span"),K(8,"span")(9,"a",3),S(10," Learn More "),L()(),K(11,"div")(12,"span"),F(13,sob,2,1,"mat-checkbox",4),L()()(),K(14,"div",5)(15,"button",6),N("click",function(){return b.onNoClick()}),S(16," Cancel "),L(),K(17,"button",7),N("click",function(){return b.onSaveClick()}),S(18," Save "),L()());
a&2&&(B(3),G(wFd(b)?3:4),B(3),G(wFd(b)?6:7),B(3),I("rel",b.EXTERNAL_LINK_REL),Jf("href",Tu(),Me),B(4),G(wFd(b)?13:-1),B(4),I("disabled",!b.canInteract()))},dependencies:[mC,PB,WB,ZA,XA,TA,PK,OK,wI,mB,lB,kB,iz],styles:["h1[_ngcontent-%COMP%]{text-align:center}.mat-mdc-dialog-content[_ngcontent-%COMP%]{overflow:inherit}/*# sourceMappingURL=update_retention_dialog.css.map */"]});var xFd=function(){this.activeSession=q(Zu);this.errorHandler=q(ZM);this.eventsForIssueFridge=q(vO);this.issueFullFridge=q(RO);this.issueCommentsService=q(dR);this.issueInteractionsTracking=q(pR);this.butterBar=q(JM);this.editIssueService=q(tR);this.formattedCommentsForIssueFridge=q(xO);this.userPreferencesManager=q(VP)},yFd=function(a,b){var c=b.issueId;var d=b.newCommentId;var e=b.newComment;var f=b.newCommentFormattingMode;var g=b.recaptchaToken;var k,m;y(function(r){switch(r.nextAddress){case 1:k=
a.editIssueService.savingState(c);if(!e.trim())return a.butterBar.showWarning("New comment cannot be empty."),r.return();gs(k,"commentEdit");fs(a.butterBar,"Saving comment edit...",0);hs(a.issueInteractionsTracking,c,{label:d===1?"description":"comment"});Vd(r,2,3);return z(r,a.issueCommentsService.update(c,d,e,f,g),5);case 5:fs(a.butterBar,"Comment edit successful.",4E3),a.eventsForIssueFridge.manualUpdate(c,function(w){w.events=lWa(w.events,d,{formattedComment:void 0,unlinkifiedComment:e,formattingMode:f})}),
a.issueFullFridge.poke(c),a.formattedCommentsForIssueFridge.invalidate(c+"-"+d),a.eventsForIssueFridge.poke(c);case 3:Wd(r);rR(k,"commentEdit");Yd(r,0);break;case 2:m=Zd(r),aN(a.errorHandler,m),r.jumpTo(3)}})};xFd.\u0275fac=function(a){return new (a||xFd)};xFd.\u0275prov=Cc({token:xFd,factory:xFd.\u0275fac,providedIn:"root"});var zFd=function(a,b,c,d){this.objectId=a;this.version=b;this.payload=c;this.isReplay=d===void 0?!1:d},AFd=function(){},BFd=function(a){this.timestampMicros=a};tob.prototype.reset=function(){this.currentMaxDelayMs_=this.initialMaxDelayMs_;this.inRetryMode_=!1};var CFd=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 tX=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(tX,X);var EFd=function(){var a=new tX;return ip(a,1,DFd,vb(!0))},FFd=function(){var a=new tX;return ip(a,2,DFd,vb(!0))},DFd=[1,2,3,15];var Xob=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Xob,X);var Wob=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Wob,X);var kt=[1,2,3,4,5,6,7,8,9,10,11,12,13];var jt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(jt,X);jt.prototype.getPartsList=function(){return Wi(this,Wob,1,Xi())};jt.prototype.addParts=function(a){return fq(this,1,Wob,a)};var it=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(it,X);it.prototype.getName=function(){return ww(this,1,GFd)};it.prototype.setName=function(a){return Vo(this,1,GFd,a)};it.prototype.hasName=function(){return Cr(this,1,GFd)!=null};it.prototype.getNameOrUndefined=function(){return Cr(this,1,GFd)};var GFd=[1,2];var HFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(HFd,X);h=HFd.prototype;h.setProject=function(a){hj(this,it,1,a)};h.getOwner=function(){return Y(this,tX,2)};h.setOwner=function(a){return hj(this,tX,2,a)};h.getPath=function(){return Y(this,jt,3)};h.setPath=function(a){return hj(this,jt,3,a)};h.hasPath=function(){return Si(this,jt,3)};var IFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(IFd,X);h=IFd.prototype;h.setProject=function(a){hj(this,it,1,a)};h.getOwner=function(){return Y(this,tX,2)};h.setOwner=function(a){return hj(this,tX,2,a)};h.getPrefix=function(){return Y(this,jt,3)};h.setPrefix=function(a){hj(this,jt,3,a)};var uX=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(uX,X);uX.prototype.getVersion=function(){return qx(this,1)};uX.prototype.setVersion=function(a){return Wn(this,1,a)};uX.prototype.getVersionOrUndefined=function(){return lx(this,1)};var JFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(JFd,X);h=JFd.prototype;h.getHeader=function(){return Y(this,uX,4)};h.hasHeader=function(){return Si(this,uX,4)};h.getStartTimeMicros_asString=function(){return En(this,1)};h.setStartTimeMicros=function(a){return ao(this,1,a)};h.getPrefix=function(){return lm(this,IFd,6,KFd)};h.setPrefix=function(a){op(this,6,KFd,a)};var KFd=[2,3,6];var LFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(LFd,X);var MFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(MFd,X);MFd.prototype.setAffinitization=function(a){Yn(this,2,a)};MFd.prototype.getAffinitizationOrUndefined=function(){return Op(this,2)};MFd.prototype.getStartTimeMicros_asString=function(){return Ln(this,4)};MFd.prototype.setStartTimeMicros=function(a){return Nn(this,4,a)};var NFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(NFd,X);var OFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(OFd,X);h=OFd.prototype;h.setStreamId=function(a){return ao(this,1,a)};h.getStreamIdOrUndefined_asString=function(){return ix(this,1)};h.getOpen=function(){return lm(this,JFd,2,PFd)};h.setOpen=function(a){return op(this,2,PFd,a)};h.getClose=function(){return lm(this,NFd,3,PFd)};h.setClose=function(a){op(this,3,PFd,a)};h.hasClose=function(){return lj(this,NFd,3,PFd)};h.setAffinitization=function(a){Yn(this,4,a)};
h.getAffinitizationOrUndefined=function(){return Op(this,4)};var PFd=[2,3];var QFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(QFd,X);QFd.prototype.setRequestsList=function(a){return ij(this,1,a)};QFd.prototype.addAndReturnRequests=function(){return zc(this,1,OFd)};var RFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(RFd,X);RFd.prototype.getChannelId=function(){return Fi(this,1)};RFd.prototype.setChannelId=function(a){return Gj(this,1,a)};var SFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(SFd,X);var vX=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(vX,X);vX.prototype.getCode=function(){return Ri(this,1)};vX.prototype.setCode=function(a){return Yn(this,1,a)};vX.prototype.getCodeOrUndefined=function(){return Op(this,1)};var TFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(TFd,X);var UFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(UFd,X);h=UFd.prototype;h.getPayloadOrUndefined=function(){return um(this,2,void 0,void 0,oc)};h.getVersion=function(){return rx(this,3)};h.setVersion=function(a){return ao(this,3,a)};h.getVersionOrUndefined=function(){return Cw(this,3)};h.getVersionOrUndefined_asString=function(){return ix(this,3)};var VFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(VFd,X);var WFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(WFd,X);var XFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(XFd,X);XFd.prototype.getStart=function(){return lm(this,WFd,1,YFd)};XFd.prototype.setStart=function(a){return op(this,1,YFd,a)};XFd.prototype.hasChanges=function(){return lj(this,VFd,2,YFd)};var YFd=[1,2,3,5];var ZFd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ZFd,X);ZFd.prototype.getChannelId=function(){return Fi(this,1)};ZFd.prototype.setChannelId=function(a){return Gj(this,1,a)};var $Fd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z($Fd,X);$Fd.prototype.getStatus=function(){return Y(this,YKc,1)};$Fd.prototype.setStatus=function(a){return hj(this,YKc,1,a)};$Fd.prototype.hasStatus=function(){return Si(this,YKc,1)};var aGd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(aGd,X);h=aGd.prototype;h.setStreamId=function(a){return ao(this,1,a)};h.getStreamIdOrUndefined_asString=function(){return ix(this,1)};h.getClose=function(){return lm(this,$Fd,3,bGd)};h.setClose=function(a){op(this,3,bGd,a)};h.hasClose=function(){return lj(this,$Fd,3,bGd)};var bGd=[2,3,4];var cGd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(cGd,X);cGd.prototype.getResponsesList=function(){return Wi(this,aGd,1,Xi())};cGd.prototype.getStatus=function(){return Y(this,vX,2)};cGd.prototype.setStatus=function(a){return hj(this,vX,2,a)};cGd.prototype.hasStatus=function(){return Si(this,vX,2)};var dGd=function(){at.call(this,"d")};Ww(dGd,at);var eGd=function(){at.call(this,"c")};Ww(eGd,at);var fGd=function(a,b,c,d){this.uri=a;this.authMethod=b;this.useFetchApi=c;this.addDomainPrefix=d},gGd=function(a){var b=a.uri.clone();a.addDomainPrefix&&lD(b,Math.floor(Math.random()*10).toString()+"-"+b.getDomain());return b},hGd=function(a,b,c,d,e){this.channelMessageHandler=a;this.channelStatusHandler=b;this.config=c;this.channelCreator=d;this.state=0;this.channelHandler=new Pi;this.channel=this.createWebChannel(e)};
hGd.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()),detectBufferingProxy:!0,useFetchStreams:this.config.useFetchApi,messageHeaders:this.config.authMethod.getHeaders(),supportsCrossDomainXhr:this.config.authMethod.usesCredentialedRequests()};a=this.channelCreator(gGd(this.config).toString(),a);this.channelHandler.listen(a,
"a",function(){b.channelStatusHandler.onOpen()});this.channelHandler.listen(a,"b",function(){b.channelStatusHandler.onClose((new iGd(b.channel.channel_)).getLastStatusCode());b.state=2;b.channel.removeAllListeners();b.channelHandler.removeAll()});this.channelHandler.listen(a,"d",function(c){if(c.data&&Array.isArray(c.data)&&c.data.length===1)if(c.metadataKey&&c.metadataKey==="status"){c=yea(ZC,c.data[0][0]);var d=b.channelStatusHandler;c.getCode()!==0&&(d.channelEventCallback(new jGd(jea(c))),d.handleError(c))}else c=
yea(cGd,c.data[0]),b.channelMessageHandler(c)});this.channelHandler.listen(a,"c",function(c){b.channelStatusHandler.onError(c,(new iGd(b.channel.channel_)).getLastStatusCode());c.status!==0&&(b.state=2)});return a};hGd.prototype.open=function(){this.state===0&&(this.state=1,this.channel.open())};hGd.prototype.close=function(){this.state!==2&&this.channel.close()};hGd.prototype.send=function(a){a=a.serialize();this.channel.send(a)};var kGd,lGd=(new uX).setVersion(9);kGd=Yn(lGd,2,5);var Zs=function(a){this.rep=a};Zs.prototype.equals=function(a){return this.rep===a.rep};var mGd=function(){var a=8;a=a===void 0?1:a;this.max=8;this.lastAddedTimestampMs=Date.now();this.tokens=a};mGd.prototype.update=function(){var a=Date.now(),b=this.tokens+(a-this.lastAddedTimestampMs)/3E5;this.tokens>=b||(this.tokens=Math.min(b,this.max),this.lastAddedTimestampMs=a)};var nGd=function(){},oGd=function(){},pGd=function(){},qGd=function(){},rGd=function(){},sGd=function(){},tGd=function(a){this.error=a},jGd=function(a){this.status=a};var Yob=function(a,b){this.seconds=a;this.nanos=b},Zob=function(a){var b=new nj;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},dpb=function(a){try{var b=Number(a.getSeconds()),c=a.getNanos();if(b<-62135596800)throw Error("cf`"+b);if(253402300800<=b)throw Error("df`"+b);if(c<0)throw Error("ef`"+c);if(1E9<=c)throw Error("ff`"+c);if(!Number.isInteger(b))throw Error("gf`"+b);if(!Number.isInteger(c))throw Error("hf`"+c);return new Yob(b,c)}catch(d){return null}};
Yob.prototype.equals=function(a){return this.seconds===a.seconds&&this.nanos===a.nanos};var Ys=function(a,b){this.value=a;this.isDecreasing=!!b};
Ys.prototype.equals=function(a){if(this.value===null)var b=a.value===null;else if(this.value instanceof Zs)b=a.value instanceof Zs?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 lt)b=a.value instanceof lt?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 Yob?a.value instanceof Yob?this.value.equals(a.value):!1:!1;return b};var mt=function(a,b){this.parts=a;this.isPrivate=b},apb=function(){for(var a=[],b=l(Yc.apply(0,arguments)),c=b.next();!c.done;c=b.next())c=c.value,c instanceof Ys?a.push(c):a.push(new Ys(c));return new mt(a,!1)};
mt.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 uGd=function(){},Aob=function(a,b){this.apiKey=a;this.authUser=b};h=Aob.prototype;h.getHeaders=function(){var a={},b;(b=fuc([]))?(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};h.getQueryParameters=function(){return{key:this.apiKey}};h.domainType=function(){return 0};h.usesCredentialedRequests=function(){return!0};h.getAuthUser=function(){return this.authUser};
var xob=function(a){this.oauthTokens=a};h=xob.prototype;h.getHeaders=function(){var a={};a.Authorization="OAuth "+this.oauthTokens.getValue();return a};h.getQueryParameters=function(){return{}};h.domainType=function(){return 1};h.usesCredentialedRequests=function(){return!0};h.getAuthUser=function(){};var zob=function(a){this.apiKey=a};h=zob.prototype;h.getHeaders=function(){return{}};h.getQueryParameters=function(){return{key:this.apiKey}};h.domainType=function(){return 1};
h.usesCredentialedRequests=function(){return!1};h.getAuthUser=function(){};var yob=function(a,b){this.apiKey=a;this.oauthTokens=b};h=yob.prototype;h.getHeaders=function(){return{Authorization:"Bearer "+this.oauthTokens.getValue()}};h.getQueryParameters=function(){return{key:this.apiKey}};h.domainType=function(){return 0};h.usesCredentialedRequests=function(){return!0};h.getAuthUser=function(){};var vGd=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,vGd.prototype);this.name="XhrError"};Z(vGd,Error);var wGd=function(a,b){b=b===void 0?Dob():b;this.baseUri=a;this.xhrIo=b};wGd.prototype.post=function(a,b,c,d){d=d===void 0?{}:d;return this.request("POST",a,b,c,d)};
var xGd=function(a,b){a.endsWith("/")&&(a=a.substring(0,a.length-1));b.startsWith("/")&&(b=b.substring(1));return a+"/"+b};
wGd.prototype.request=function(a,b,c,d,e){var f=this,g=new ot(this.baseUri);g.setPath(xGd(g.getPath(),b));if(e.queryParams){b=l(Object.entries(e.queryParams));for(var k=b.next();!k.done;k=b.next()){var m=l(k.value);k=m.next().value;m=m.next().value;Kt(g,k,m)}}var r={"Content-type":"application/json+protobuf"};Object.assign(r,e.extraHeaders);var w=c.serialize();return new Promise(function(x,D){var H;f.xhrIo.send(g,function(){var J=this.getStatus()===-1?void 0:this.getStatus();if(this.isSuccess())try{x(Gi(d,
this.getResponseText()))}catch(O){D(new vGd(4,"Failed to deserialize response from "+g+": "+this.getResponseText(),J))}else D(new vGd(this.getLastErrorCode(),this.getLastError(),J))},a,w,r,(H=e.timeoutMs)!=null?H:2E4,e.withCredentials)})};var Eob=null;Ww(Gob,at);Ww(Iob,at);Ww(Job,at);ct.prototype.disableRedact=function(){this.redactEnabled_=!1};
var yGd=function(a,b,c,d,e,f){a.info(function(){if(a.redactEnabled_)if(f){var g="";for(var k=f.split("&"),m=0;m<k.length;m++){var r=k[m].split("=");if(r.length>1){var w=r[0];r=r[1];var x=w.split("_");g=x.length>=2&&x[1]=="type"?g+(w+"="+r+"&"):g+(w+"=redacted&")}}}else g=null;else g=f;return"XMLHTTP REQ ("+d+") [attempt "+e+"]: "+b+"\n"+c+"\n"+g})},zGd=function(a,b,c,d,e,f,g){a.info(function(){return"XMLHTTP RESP ("+d+") [ attempt "+e+"]: "+b+"\n"+c+"\n"+f+" "+g})},BGd=function(a,b,c,d){a.info(function(){return"XMLHTTP TEXT ("+
b+"): "+AGd(a,c)+(d?" "+d:"")})},CGd=function(a,b){a.info(function(){return"TIMEOUT: "+b})};ct.prototype.debug=function(){};ct.prototype.info=function(){};ct.prototype.warning=function(){};
var AGd=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 g=f[0];if(g!="noop"&&g!="stop"&&g!="close")for(var k=1;k<f.length;k++)f[k]=""}}}return(new Iva).serialize(c)}catch(m){return a.debug("Exception parsing expected JS array - probably was not JS"),b}};var Mob=function(){this.textDecoder=null;this.responseBuffer="";this.responseArrivedForFetch=!1},DGd=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"}},EGd={},FGd={};dt.prototype.setExtraHeaders=function(a){this.extraHeaders_=a};dt.prototype.setTimeout=function(a){this.timeout_=a};dt.prototype.setReadyStateChangeThrottle=function(a){this.readyStateChangeThrottleMs_=a};
dt.prototype.getPendingMessages=function(){return this.pendingMessages_};
var HGd=function(a,b,c){a.type_=1;a.baseUri_=NMc(b.clone());a.postData_=c;a.decodeChunks_=!0;GGd(a,null)},GGd=function(a,b){a.requestStartTime_=Date.now();IGd(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 Mob;a.xmlHttp_=JGd(a.channel_,c?b:null,!a.postData_);a.readyStateChangeThrottleMs_>0&&(a.readyStateChangeThrottle_=new eQc(Dj(a.xmlHttpHandler_,
a,a.xmlHttp_),a.readyStateChangeThrottleMs_));a.eventHandler_.listen(a.xmlHttp_,"readystatechange",a.readyStateChangeHandler_);b=a.extraHeaders_?Li(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));Hob(1);yGd(a.channelDebug_,a.verb_,a.requestUri_,a.rid_,a.retryId_,a.postData_)};
dt.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)};dt.prototype.xmlHttpHandler_=function(a){try{a==this.xmlHttp_?KGd(this):this.channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(b){this.channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),LGd(this)}finally{}};
var KGd=function(a){var b=a.xmlHttp_.getReadyState(),c=a.xmlHttp_.getLastErrorCode(),d=a.xmlHttp_.getStatus();if(!(b<3||b==3&&!LGd(a))){a.cancelled_||b!=4||c==7||(c==8||d<=0?Hob(3):Hob(2));MGd(a);var e=a.xmlHttp_.getStatus();a.lastStatusCode_=e;c=NGd(a);LGd(a)||a.channelDebug_.debug(function(){return"No response text for uri "+a.requestUri_+" status "+e});a.successful_=e==200;zGd(a.channelDebug_,a.verb_,a.requestUri_,a.rid_,a.retryId_,b,e);if(a.successful_){if(a.decodeInitialResponse_&&!a.initialResponseDecoded_)if(d=
OGd(a))BGd(a.channelDebug_,a.rid_,d,"Initial handshake response via X-HTTP-Initial-Response"),a.initialResponseDecoded_=!0,PGd(a,d);else{a.successful_=!1;a.lastError_=3;bt(12);a.channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+a.rid_+")");wX(a);QGd(a);return}a.decodeChunks_?RGd(a,b,c):(BGd(a.channelDebug_,a.rid_,c,null),PGd(a,c));b==4&&wX(a);a.successful_&&!a.cancelled_&&(b==4?SGd(a.channel_,a):(a.successful_=!1,IGd(a)))}else a.xmlHttp_.getResponseHeaders(),e==400&&c.indexOf("Unknown SID")>
0?(a.lastError_=3,bt(12),a.channelDebug_.warning("XMLHTTP Unknown SID ("+a.rid_+")")):(a.lastError_=0,bt(13),a.channelDebug_.warning("XMLHTTP Bad status "+e+" ("+a.rid_+")")),wX(a),QGd(a)}},OGd=function(a){return a.xmlHttp_&&(a=Yva(a.xmlHttp_,"X-HTTP-Initial-Response"))&&!xa(a)?a:null},NGd=function(a){if(!TGd(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 wX(a),QGd(a),"";a.fetchResponseState_.textDecoder=new ra.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},LGd=function(a){return a.xmlHttp_?a.fetchResponseState_.responseArrivedForFetch?!0:!(!a.xmlHttp_.getResponseText()&&!a.xmlHttp_.getResponse()):!1},TGd=function(a){return a.xmlHttp_?
a.verb_=="GET"&&a.type_!=2&&a.channel_.usesFetchStreams_:!1},RGd=function(a,b,c){for(var d=!0,e;!a.cancelled_&&a.xmlHttpChunkStart_<c.length;)if(e=UGd(a,c),e==FGd){b==4&&(a.lastError_=4,bt(14),d=!1);BGd(a.channelDebug_,a.rid_,null,"[Incomplete Response]");break}else if(e==EGd){a.lastError_=4;bt(15);BGd(a.channelDebug_,a.rid_,c,"[Invalid Chunk]");d=!1;break}else BGd(a.channelDebug_,a.rid_,e,null),PGd(a,e);TGd(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,bt(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),VGd(b),b.bpDetectionDone_=!0,bt(11))):(BGd(a.channelDebug_,a.rid_,c,"[Invalid Chunked Response]"),wX(a),QGd(a))},UGd=
function(a,b){var c=a.xmlHttpChunkStart_,d=b.indexOf("\n",c);if(d==-1)return FGd;c=Number(b.substring(c,d));if(isNaN(c))return EGd;d+=1;if(d+c>b.length)return FGd;b=b.slice(d,d+c);a.xmlHttpChunkStart_=d+c;return b};dt.prototype.cancel=function(){this.cancelled_=!0;wX(this)};
var IGd=function(a){a.watchDogTimeoutTime_=Date.now()+a.timeout_;WGd(a,a.timeout_)},WGd=function(a,b){if(a.watchDogTimerId_!=null)throw Error("lf");a.watchDogTimerId_=Lob(Dj(a.onWatchDogTimeout_,a),b)},MGd=function(a){a.watchDogTimerId_&&(ra.clearTimeout(a.watchDogTimerId_),a.watchDogTimerId_=null)};
dt.prototype.onWatchDogTimeout_=function(){this.watchDogTimerId_=null;var a=Date.now();a-this.watchDogTimeoutTime_>=0?(CGd(this.channelDebug_,this.requestUri_),this.type_!=2&&(Hob(3),bt(17)),wX(this),this.lastError_=2,QGd(this)):(this.channelDebug_.warning("WatchDog timer called too early"),WGd(this,this.watchDogTimeoutTime_-a))};
var QGd=function(a){a.channel_.isClosed()||a.cancelled_||SGd(a.channel_,a)},wX=function(a){MGd(a);Ii(a.readyStateChangeThrottle_);a.readyStateChangeThrottle_=null;a.eventHandler_.removeAll();if(a.xmlHttp_){var b=a.xmlHttp_;a.xmlHttp_=null;b.abort();b.dispose()}};h=dt.prototype;h.getLastError=function(){return this.lastError_};h.getLastStatusCode=function(){return this.lastStatusCode_};h.getSessionId=function(){return this.sid_};h.getRequestId=function(){return this.rid_};h.getXhr=function(){return this.xmlHttp_};
var PGd=function(a,b){try{var c=a.channel_;if(c.state_!=0&&(c.backChannelRequest_==a||XGd(c.forwardChannelRequestPool_,a)))if(!a.initialResponseDecoded_&&XGd(c.forwardChannelRequestPool_,a)&&c.state_==3){try{var d=c.wireCodec_.parser_.parse(b)}catch(pa){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_)YGd(c),ZGd(c);else break a;else c.channelDebug_.warning("We do not have a BackChannel established");$Gd(c);bt(18)}else{c.lastPostResponseArrayId_=e[1];var f=c.lastPostResponseArrayId_-c.lastArrayId_;if(0<f){var g=e[2];c.channelDebug_.debug(g+" bytes (in "+f+" arrays) are outstanding on the BackChannel");g<37500&&c.enableStreaming_&&c.backChannelRetryCount_==0&&!c.deadBackChannelTimerId_&&(c.deadBackChannelTimerId_=Lob(Dj(c.onBackChannelDead_,c),6E3))}}if(aHd(c.forwardChannelRequestPool_)<=
1&&c.forwardChannelFlushedCallback_){try{c.forwardChannelFlushedCallback_()}catch(pa){}c.forwardChannelFlushedCallback_=void 0}}else c.channelDebug_.debug("Bad POST response data returned"),xX(c,11)}else if((a.initialResponseDecoded_||c.backChannelRequest_==a)&&YGd(c),!xa(b))for(e=c.wireCodec_.parser_.parse(b),f=0;f<e.length;f++){var k=e[f],m=k[0];if(m<=c.lastArrayId_)c.channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+m+", lastArrayId: "+c.lastArrayId_);else if(m>
c.lastArrayId_+1&&c.lastArrayId_>-1&&c.channelDebug_.warning("Received non-consecutive message with arrayId: "+m+", lastArrayId: "+c.lastArrayId_),c.lastArrayId_=m,k=k[1],c.state_==2)if(k[0]=="c"){c.sid_=k[1];c.hostPrefix_=c.correctHostPrefix(k[2]);var r=k[3];r!=null&&(c.channelVersion_=r,c.channelDebug_.info("VER="+c.channelVersion_));var w=k[4];w!=null&&(c.serverVersion_=w,c.channelDebug_.info("SVER="+c.serverVersion_));var x=k[5];x!=null&&typeof x==="number"&&x>0&&(g=1.5*x,c.backChannelRequestTimeoutMs_=
g,c.channelDebug_.info("backChannelRequestTimeoutMs_="+g));g=c;var D=a.getXhr();if(D){var H=Yva(D,"X-Client-Wire-Protocol");if(H){var J=g.forwardChannelRequestPool_;b=H;!J.requestPool_&&(za(b,"spdy")||za(b,"quic")||za(b,"h2"))&&(J.maxSize_=J.maxPoolSizeConfigured_,J.requestPool_=new Set,J.request_&&(bHd(J,J.request_),J.request_=null))}if(g.httpSessionIdParam_){var O=Yva(D,"X-HTTP-Session-Id");O?(g.httpSessionId_=O,Kt(g.forwardChannelUri_,g.httpSessionIdParam_,O)):g.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"));g=c;b=a;var R=d=g,V=cHd(R,R.supportsCrossDomainXhrs_?g.hostPrefix_:null,g.path_);R.channelDebug_.debug("GetBackChannelUri: "+V);d.backChannelUri_=V;if(b.initialResponseDecoded_){g.channelDebug_.debug("Upgrade the handshake request to a backchannel.");dHd(g.forwardChannelRequestPool_,b);d=b;var ba=g.backChannelRequestTimeoutMs_;
ba&&d.setTimeout(ba);d.watchDogTimerId_&&(MGd(d),IGd(d));g.backChannelRequest_=b}else eHd(g);c.outgoingMaps_.length>0&&fHd(c)}else k[0]!="stop"&&k[0]!="close"||xX(c,7);else c.state_==3&&(k[0]=="stop"||k[0]=="close"?k[0]=="stop"?xX(c,7):c.disconnect():k[0]!="noop"&&c.handler_&&c.handler_.channelHandleArray(k),c.backChannelRetryCount_=0)}Hob(4)}catch(pa){}};var gHd=function(a,b){this.mapId=a;this.map=b;this.context=null};var Sob=function(a){this.maxPoolSizeConfigured_=a||10;ra.PerformanceNavigationTiming?(a=ra.performance.getEntriesByType("navigation"),a=a.length>0&&(a[0].nextHopProtocol=="hq"||a[0].nextHopProtocol=="h2")):a=!!(ra.chrome&&ra.chrome.loadTimes&&ra.chrome.loadTimes()&&ra.chrome.loadTimes().wasFetchedViaSpdy);this.maxSize_=a?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.maxSize_>1&&(this.requestPool_=new Set);this.request_=null;this.pendingMessages_=[]},hHd=function(a){return a.request_?!0:
a.requestPool_?a.requestPool_.size>=a.maxSize_:!1},aHd=function(a){return a.request_?1:a.requestPool_?a.requestPool_.size:0},XGd=function(a,b){return a.request_?a.request_==b:a.requestPool_?a.requestPool_.has(b):!1},bHd=function(a,b){a.requestPool_?a.requestPool_.add(b):a.request_=b},dHd=function(a,b){a.request_&&a.request_==b?a.request_=null:a.requestPool_&&a.requestPool_.has(b)&&a.requestPool_.delete(b)};
Sob.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()}};
Sob.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 Ma(this.pendingMessages_)};var iHd=function(a,b){a.pendingMessages_=a.pendingMessages_.concat(b)};var Pob=function(){this.replacer_=void 0};Pob.prototype.stringify=function(a){return ra.JSON.stringify(a,this.replacer_)};Pob.prototype.parse=function(a){return ra.JSON.parse(a,void 0)};h=gt.prototype;h.channelVersion_=8;h.state_=1;h.connect=function(a,b,c,d){this.channelDebug_.debug("connect()");bt(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=cHd(this,null,this.path_);this.channelDebug_.debug("GetForwardChannelUri: "+a);this.forwardChannelUri_=a;fHd(this)};
h.disconnect=function(){this.channelDebug_.debug("disconnect()");jHd(this);if(this.state_==3){var a=this.nextRid_++,b=this.forwardChannelUri_.clone();Kt(b,"SID",this.sid_);Kt(b,"RID",a);Kt(b,"TYPE","terminate");kHd(this,b);a=new dt(this,this.channelDebug_,this.sid_,a);a.type_=2;a.baseUri_=NMc(b.clone());b=!1;if(ra.navigator&&ra.navigator.sendBeacon)try{b=ra.navigator.sendBeacon(a.baseUri_.toString(),"")}catch(c){}!b&&ra.Image&&((new Image).src=a.baseUri_,b=!0);b||(a.xmlHttp_=JGd(a.channel_,null),
a.xmlHttp_.send(a.baseUri_));a.requestStartTime_=Date.now();IGd(a)}lHd(this)};h.getSessionId=function(){return this.sid_};
var ZGd=function(a){a.backChannelRequest_&&(VGd(a),a.backChannelRequest_.cancel(),a.backChannelRequest_=null)},jHd=function(a){ZGd(a);a.backChannelTimerId_&&(ra.clearTimeout(a.backChannelTimerId_),a.backChannelTimerId_=null);YGd(a);a.forwardChannelRequestPool_.cancel();a.forwardChannelTimerId_&&(typeof a.forwardChannelTimerId_==="number"&&ra.clearTimeout(a.forwardChannelTimerId_),a.forwardChannelTimerId_=null)};h=gt.prototype;h.setExtraHeaders=function(a){this.extraHeaders_=a};
h.getHttpSessionId=function(){return this.httpSessionId_};h.setReadyStateChangeThrottle=function(a){this.readyStateChangeThrottleMs_=a};h.getHandler=function(){return this.handler_};h.isClosed=function(){return this.state_==0};h.getState=function(){return this.state_};h.getLastStatusCode=function(){return this.errorResponseStatusCode_};
var fHd=function(a){hHd(a.forwardChannelRequestPool_)||a.forwardChannelTimerId_||(a.forwardChannelTimerId_=!0,cE(a.onStartForwardChannelTimer_,a),a.forwardChannelRetryCount_=0)},nHd=function(a,b){if(aHd(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_=Lob(Dj(a.onStartForwardChannelTimer_,a,b),mHd(a,a.forwardChannelRetryCount_));a.forwardChannelRetryCount_++;return!0};
gt.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 dt(this,this.channelDebug_,"",a),c=this.extraHeaders_;this.initHeaders_&&(c?(c=Li(c),Hva(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=this.maxMapsPerRequest_}else d=this.maxMapsPerRequest_;d=oHd(this,b,d);e=this.forwardChannelUri_.clone();Kt(e,"RID",a);Kt(e,"CVER",22);this.httpSessionIdParam_&&
Kt(e,"X-HTTP-Session-Id",this.httpSessionIdParam_);kHd(this,e);c&&(this.encodeInitMessageHeaders_?d="headers="+Ni(QMc(c))+"&"+d:this.httpHeadersOverwriteParam_&&RMc(e,this.httpHeadersOverwriteParam_,c));bHd(this.forwardChannelRequestPool_,b);this.blockingHandshake_&&Kt(e,"TYPE","init");this.fastHandshake_?(Kt(e,"$req",d),Kt(e,"SID","null"),b.decodeInitialResponse_=!0,HGd(b,e,null)):HGd(b,e,d);this.state_=2}}else this.state_==3&&(a?pHd(this,a):this.outgoingMaps_.length==0?this.channelDebug_.debug("startForwardChannel_ returned: nothing to send"):
hHd(this.forwardChannelRequestPool_)||(pHd(this),this.channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var pHd=function(a,b){var c;b?c=b.getRequestId():c=a.nextRid_++;var d=a.forwardChannelUri_.clone();Kt(d,"SID",a.sid_);Kt(d,"RID",c);Kt(d,"AID",a.lastArrayId_);kHd(a,d);a.httpHeadersOverwriteParam_&&a.extraHeaders_&&RMc(d,a.httpHeadersOverwriteParam_,a.extraHeaders_);c=new dt(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=oHd(a,c,a.maxMapsPerRequest_);
c.setTimeout(Math.round(a.forwardChannelRequestTimeoutMs_*.5)+Math.round(a.forwardChannelRequestTimeoutMs_*.5*Math.random()));bHd(a.forwardChannelRequestPool_,c);HGd(c,d,b)},kHd=function(a,b){a.extraParams_&&Ji(a.extraParams_,function(c,d){Kt(b,d,c)});a.handler_&&Ji({},function(c,d){Kt(b,d,c)})},oHd=function(a,b,c){c=Math.min(a.outgoingMaps_.length,c);var d=a.handler_?Dj(a.handler_.badMapError,a.handler_,a):null;a:{for(var e=a.outgoingMaps_,f=-1;;){var g=["count="+c];f==-1?c>0?(f=e[0].mapId,g.push("ofs="+
f)):f=0:g.push("ofs="+f);for(var k=!0,m=0;m<c;m++){var r=e[m].mapId,w=e[m].map;r-=f;if(r<0)f=Math.max(0,e[m].mapId-100),k=!1;else try{r="req"+r+"_"||"";try{var x=w instanceof Map?w:Object.entries(w);for(var D=l(x),H=D.next();!H.done;H=D.next()){var J=l(H.value),O=J.next().value,R=J.next().value,V=R;gq(R)&&(V=(new Iva).serialize(R));g.push(r+O+"="+encodeURIComponent(V))}}catch(ba){throw g.push(r+"type="+encodeURIComponent("_badmap")),ba;}}catch(ba){d&&d(w)}}if(k){x=g.join("&");break a}}x=void 0}a=
a.outgoingMaps_.splice(0,c);b.pendingMessages_=a;return x},eHd=function(a){a.backChannelRequest_||a.backChannelTimerId_||(a.backChannelAttemptId_=1,cE(a.onStartBackChannelTimer_,a),a.backChannelRetryCount_=0)},$Gd=function(a){if(a.backChannelRequest_||a.backChannelTimerId_||a.backChannelRetryCount_>=3)return!1;a.channelDebug_.debug("Going to retry GET");a.backChannelAttemptId_++;a.backChannelTimerId_=Lob(Dj(a.onStartBackChannelTimer_,a),mHd(a,a.backChannelRetryCount_));a.backChannelRetryCount_++;
return!0};gt.prototype.onStartBackChannelTimer_=function(){this.backChannelTimerId_=null;qHd(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=4*this.handshakeRttMs_;this.channelDebug_.info("BP detection timer enabled: "+a);this.bpDetectionTimerId_=Lob(Dj(this.onBpDetectionTimer_,this),a)}};
gt.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;bt(10);ZGd(this);qHd(this)}else this.channelDebug_.warning("Invalid operation.")};
var VGd=function(a){a.bpDetectionTimerId_!=null&&(a.channelDebug_.debug("Cancel the BP detection timer."),ra.clearTimeout(a.bpDetectionTimerId_),a.bpDetectionTimerId_=null)},qHd=function(a){a.channelDebug_.debug("Creating new HttpRequest");a.backChannelRequest_=new dt(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();Kt(b,"RID","rpc");Kt(b,"SID",a.sid_);Kt(b,"AID",a.lastArrayId_);Kt(b,"CI",a.enableStreaming_?"0":"1");!a.enableStreaming_&&a.longPollingTimeout_&&Kt(b,"TO",a.longPollingTimeout_);Kt(b,"TYPE","xmlhttp");kHd(a,b);a.httpHeadersOverwriteParam_&&a.extraHeaders_&&RMc(b,a.httpHeadersOverwriteParam_,a.extraHeaders_);a.backChannelRequestTimeoutMs_&&a.backChannelRequest_.setTimeout(a.backChannelRequestTimeoutMs_);var c=a.backChannelRequest_,d=a.hostPrefix_;c.type_=1;c.baseUri_=NMc(b.clone());
c.postData_=null;c.decodeChunks_=!0;GGd(c,d);a.channelDebug_.debug("New Request created")};gt.prototype.correctHostPrefix=function(a){return this.handler_?this.handler_.correctHostPrefix(a):a};gt.prototype.onBackChannelDead_=function(){this.deadBackChannelTimerId_!=null&&(this.deadBackChannelTimerId_=null,ZGd(this),$Gd(this),bt(19))};
var YGd=function(a){a.deadBackChannelTimerId_!=null&&(ra.clearTimeout(a.deadBackChannelTimerId_),a.deadBackChannelTimerId_=null)},SGd=function(a,b){a.channelDebug_.debug("Request complete");var c=null;if(a.backChannelRequest_==b){YGd(a);VGd(a);a.backChannelRequest_=null;var d=2}else if(XGd(a.forwardChannelRequestPool_,b))c=b.getPendingMessages(),dHd(a.forwardChannelRequestPool_,b),d=1;else return;if(a.state_!=0)if(b.successful_)d==1?(Kob(b.postData_?b.postData_.length:0,Date.now()-b.requestStartTime_,
a.forwardChannelRetryCount_),fHd(a)):eHd(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: "+DGd(f,a.errorResponseStatusCode_)});if(d==1&&nHd(a,b)||d==2&&$Gd(a))return;a.channelDebug_.debug("Exceeded max number of retries")}c&&c.length>0&&iHd(a.forwardChannelRequestPool_,c);a.channelDebug_.debug("Error: HTTP request failed");
switch(f){case 1:xX(a,5);break;case 4:xX(a,10);break;case 3:xX(a,6);break;default:xX(a,2)}}},mHd=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},xX=function(a,b){a.channelDebug_.info("Error code "+b);if(b==2){var c=Dj(a.testNetworkCallback_,a),d=a.networkTestUrl_,e=!d;d=new ot(d||"//www.google.com/images/cleardot.gif");ra.location&&ra.location.protocol=="http"||kD(d,"https");NMc(d);e?Nob(d.toString(),
c):Oob(d.toString(),c)}else bt(2);a.onError_(b)};gt.prototype.testNetworkCallback_=function(a){a?(this.channelDebug_.info("Successfully pinged google.com"),bt(2)):(this.channelDebug_.info("Failed to ping google.com"),bt(1))};gt.prototype.onError_=function(a){this.channelDebug_.debug("HttpChannel: error - "+a);this.state_=0;this.handler_&&this.handler_.channelError(a);lHd(this);jHd(this)};
var lHd=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}),Eba(a.nonAckedMapsAtChannelClose_,b),Eba(a.nonAckedMapsAtChannelClose_,a.outgoingMaps_),a.forwardChannelRequestPool_.pendingMessages_.length=0,Ma(a.outgoingMaps_),a.outgoingMaps_.length=0;a.handler_.channelClosed()}},
cHd=function(a,b,c){var d=It(c);d.getDomain()!=""?(b&&lD(d,b+"."+d.getDomain()),mD(d,d.port_)):(d=ra.location,d=OMc(d.protocol,null,b?b+"."+d.hostname:d.hostname,+d.port,c));b=a.httpSessionIdParam_;c=a.getHttpSessionId();b&&c&&Kt(d,b,c);Kt(d,"VER",a.channelVersion_);kHd(a,d);return d},JGd=function(a,b,c){if(b&&!a.supportsCrossDomainXhrs_)throw Error("mf");b=a.usesFetchStreams_&&!a.xmlHttpFactory_?new $s(new iD({streamBinaryChunks:c})):new $s(a.xmlHttpFactory_);b.withCredentials_=a.supportsCrossDomainXhrs_;
return b};gt.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};var rHd=function(){};h=rHd.prototype;h.channelOpened=function(){};h.channelHandleArray=function(){};h.channelError=function(){};h.channelClosed=function(){};h.isActive=function(){return!0};h.badMapError=function(){};h.correctHostPrefix=function(a){return a};Tob.prototype.createWebChannel=function(a,b){return new yX(a,b)};
var yX=function(a,b){Aj.call(this);this.channel_=new gt(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)&&!xa(a)&&(this.channel_.httpHeadersOverwriteParam_=a);this.supportsCrossDomainXhr_=b&&b.supportsCrossDomainXhr||!1;this.sendRawJson_=b&&b.sendRawJson||!1;(b=b&&b.httpSessionIdParam)&&!xa(b)&&(this.channel_.httpSessionIdParam_=b,yva(this.messageUrlParams_,b)&&Dva(this.messageUrlParams_,b));this.channelHandler_=new sHd(this)};Ww(yX,Aj);
yX.prototype.open=function(){this.channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.channel_.supportsCrossDomainXhrs_=!0);this.channel_.connect(this.url_,this.messageUrlParams_||void 0)};yX.prototype.close=function(){this.channel_.disconnect()};yX.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 Iva).serialize(a),a=c);b.outgoingMaps_.push(new gHd(b.nextMapId_++,a));b.state_==3&&fHd(b)};
yX.prototype.disposeInternal=function(){this.channel_.handler_=null;delete this.channelHandler_;this.channel_.disconnect();delete this.channel_;yX.superClass_.disposeInternal.call(this)};var tHd=function(a){dGd.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)?Fva(b,this.metadataKey):b}else this.data=a};Ww(tHd,dGd);
var uHd=function(a){eGd.call(this);this.status=1;this.errorCode=a};Ww(uHd,eGd);var sHd=function(a){this.channel_=a};Ww(sHd,rHd);sHd.prototype.channelOpened=function(){this.channel_.dispatchEvent("a")};sHd.prototype.channelHandleArray=function(a){this.channel_.dispatchEvent(new tHd(a))};sHd.prototype.channelError=function(a){this.channel_.dispatchEvent(new uHd(a))};sHd.prototype.channelClosed=function(){this.channel_.dispatchEvent("b")};var iGd=function(a){this.channel_=a};
iGd.prototype.getHttpSessionId=function(){return this.channel_.getHttpSessionId()};iGd.prototype.commit=function(a){this.channel_.forwardChannelFlushedCallback_=a};iGd.prototype.getLastStatusCode=function(){return this.channel_.getLastStatusCode()};var vHd=function(){this.changeList=[]};vHd.prototype.add=function(a){this.changeList.push(a)};
var wHd=function(){var a=a===void 0?Date:a;var b=b===void 0?FM(a.now()*1E3):b;this.clock=a;this.clientStartMicros=b},xHd=function(a,b,c){this.authMethod=b;this.jspbClient=new wGd(a,c)},yHd=function(a,b,c,d){var e,f,g,k,m,r,w;return y(function(x){if(x.nextAddress==1){e=new wHd;var D=new LFd;D=hj(D,JFd,1,b);f=Wn(D,4,c);if(d){if(d.rttMicros==null)throw Error("of");D=iid(d.rttMicros)/1E6;D=tx(f,2,D);var H=d.clockOffsetMicros!=null?FM(d.clock.now()*1E3).add(d.clockOffsetMicros):void 0;H=(g=H)==null?void 0:
g.toString();Nn(D,3,H)}return z(x,a.jspbClient.post("/v1/chooseServer",f,MFd,wob(a.authMethod)),2)}k=x.yieldResult;D=e;H=nt(k.getStartTimeMicros_asString());var J=nt(Ln(k,5)),O=FM(D.clock.now()*1E3),R=DM(J,H);D.rttMicros=DM(DM(O,D.clientStartMicros),R);D.clockOffsetMicros=DM(DM(H,D.clientStartMicros).add(J),O).div(FM(2));m=mx(k,1);if(m==null)throw Error("pf");return x.return({gsessionid:m,affinitization:(r=k.getAffinitizationOrUndefined())!=null?r:0,initialConnectionDelayMillis:(w=lx(k,3))!=null?
w:0,timeEstimator:e})})},zHd=function(a,b,c){this.authMethod=b;this.jspbClient=new wGd(a,c)},AHd=function(a,b,c){var d,e;return y(function(f){if(f.nextAddress==1){if(a.authMethod instanceof zob)return f.return(Promise.resolve());d=(new RFd).setChannelId(c);e=wob(a.authMethod);e.queryParams==null&&(e.queryParams={});e.queryParams.gsessionid=b;e.timeoutMs=1E4;Vd(f,2);return z(f,a.jspbClient.post("/v1/refreshCreds",d,SFd,e),4)}if(f.nextAddress!=2)return bk(f,0);Zd(f);$d(f)})},BHd=function(a,b,c){this.project=
a;this.interestSet=b;this.knowledgeTimestamp=c;this.hasRecurred=!1;this.resyncMillis=Date.now()},zX=function(a,b){var c=this;this.channelDeps=a;this.options=b;this.refreshCredsTimerScheduled=!1;this.causalStreams=new Map;this.limboStreams=new Map;this.nonCausalStreams=new Map;this.newStreamSubject=new rf;this.streamNumber=0;this.rawStatus=new rf;this.status=new Xj(new ZC);this.skipBackoff=new mGd;this.recentResyncs=[];this.hasConnected=!1;this.consecutiveThrottledConnections=0;this.channelStatHandler=
new Pi;this.channelEventCallback=function(f){Promise.resolve().then(function(){var g,k;(k=(g=c.options).channelEventCallback)==null||k.call(g,f)}).catch(function(){})};this.options.channelEventCallback&&this.channelStatHandler.listen(Fob(),"statevent",function(f){c.channelEventCallback(f)});this.rawStatus.pipe(pla(function(f){return f.getCode()===0?Promise.resolve():new Promise(function(g){ht(g,500)})})).subscribe(this.status);this.delayGenerator=new tob;var d,e;this.reconnectHint=(e=(d=b.reconnectHint)==
null?void 0:d.pipe(hf(function(){return Ox}),ola(Ox)))!=null?e:Ox;CHd(this)},DHd=function(a,b,c){b=b.then(function(d){var e=!1;switch(d.domainType()){case 2:case 0:var f=a.firstPartyUri;e=a.addDomainPrefix;break;case 1:f=a.thirdPartyUri;break;default:f=new ot}var g=f.clone().setPath(xGd(f.getPath(),"/multi-watch/channel")),k=new fGd(g,d,c.xmlHttpFactory!==void 0,e);return{serverChooser:new xHd(f,d,Dob(c.xmlHttpFactory)),credentialRefresher:new zHd(f,d,Dob(c.xmlHttpFactory)),channelCreator:function(m,
r,w){m=new hGd(m,r,k,function(x,D){return(new Tob).createWebChannel(x,D)},w);m.open();return m}}});return new zX(b,c)},EHd=function(a,b){return Math.max(Math.min(a,b!=null?b:a)+(24E4+4E4*Math.random())-a,0)},FHd=function(a){var b;ht(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?(AHd(c.credentialRefresher,a.channelState.gsessionid,a.channelState.channelId).catch(function(){}),
a.channelState.lastRefreshTime=Date.now(),FHd(a)):a.refreshCredsTimerScheduled=!1})},EHd(Date.now(),(b=a.channelState)==null?void 0:b.lastRefreshTime))};zX.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 GHd=function(a){for(var b=0,c=Date.now();b<a.recentResyncs.length;)c>=a.recentResyncs[b].resyncMillis+6E4?a.recentResyncs.splice(b):++b},HHd=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 mt&&d instanceof mt?c.equals(d):!1;return d})};zX.prototype.onOpen=function(){this.channelEventCallback(new rGd);var a=(new ZC).setCode(0);try{this.rawStatus.next(a)}catch(b){}};
zX.prototype.onClose=function(){this.channelEventCallback(new sGd);this.channelState=void 0;CHd(this)};zX.prototype.onError=function(a,b){this.channelEventCallback(new tGd(a));a=(new ZC).setCode(Cob(b));this.handleError(a)};
zX.prototype.handleError=function(a){this.channelState==null||this.channelState.hasReceivedMessage||a.getCode()!==14||this.consecutiveThrottledConnections++;try{this.rawStatus.next(a)}catch(c){}a=l(this.causalStreams.values());for(var 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 KHd=function(a,b,c){if(a.channelState){var d=IHd(c.project,c.interestSet);if(c instanceof JHd){var e=d.setStartTimeMicros(c.knowledgeTimestamp.toString());jj(e,8,c.knowledgeTimestampChosenByPunctual)}Yn(d,9,c.streamInitiationReason);c.streamInitiationReason=0;c=new QFd;c.addAndReturnRequests().setStreamId(b.toString()).setOpen(d).setAffinitization(a.channelState.affinitization);a.channelState.channel.send(c)}},IHd=function(a,b){var c=new JFd;c=hj(c,uX,4,kGd);if(b instanceof mt){var d=new HFd;
a!=null&&d.setProject(Vob(a));d.setOwner(b.isPrivate?FFd():EFd()).setPath($ob(b));op(c,2,KFd,d)}else d=new IFd,a!=null&&d.setProject(Vob(a)),d.setOwner(b.root.isPrivate?FFd():EFd()).setPrefix($ob(b.root)),c.setPrefix(d);return c},LHd=function(a,b){var c=new QFd;c.addAndReturnRequests().setStreamId(b.toString()).setClose(new NFd);a.channelState&&a.channelState.channel.send(c);a.causalStreams.delete(b);a.limboStreams.delete(b);a.nonCausalStreams.delete(b)},CHd=function(a){var b=CFd(a.delayGenerator);
Uob(b).pipe(Gla(a.reconnectHint.pipe(qf(function(){var c=a.skipBackoff;c.update();c.tokens<1?c=!1:(c.tokens--,c=!0);return c})))).subscribe(function(){a.channelDeps.then(function(c){a.channelEventCallback(new nGd);MHd(a,c.serverChooser).then(function(d){a.channelEventCallback(new oGd);a.serverTimeEstimator=d.timeEstimator;ht(function(){a.hasConnected=!0;NHd(a,c.channelCreator,d)},a.hasConnected?0:d.initialConnectionDelayMillis)},function(d){var e=(new ZC).setCode(2);d instanceof vGd?(e.setMessage(d.message),
d.status&&e.setCode(Cob(d.status)),d.status===503&&a.consecutiveThrottledConnections++):e.setMessage(d.toString());a.channelEventCallback(new pGd);try{a.rawStatus.next(e)}catch(f){}CHd(a)})},function(c){c=(new ZC).setCode(13).setMessage(c.toString());a.rawStatus.next(c)})})},MHd=function(a,b){var c,d,e,f,g,k;return y(function(m){if(m.nextAddress==1)return z(m,OHd(a),2);c=m.yieldResult;d=l(c);e=d.next().value;f=d.next().value;g=e;k=f;return m.return(yHd(b,IHd(g,k),a.consecutiveThrottledConnections,
a.serverTimeEstimator))})},OHd=function(a){var b,c,d,e,f,g,k;return y(function(m){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()),g=f.next();!g.done;g=f.next())return k=g.value,m.return([k.project,k.interestSet]);return z(m,ee(a.newStreamSubject.asObservable().pipe(qf())),1)})},NHd=function(a,b,c){a.channelEventCallback(new qGd);a.channelState={channel:b(function(f){for(var g=l(f.getResponsesList()),k=g.next();!k.done;k=
g.next()){var m=a,r=k.value;m.channelState!=null&&(m.channelState.hasReceivedMessage=!0);m.consecutiveThrottledConnections=0;k=r.getStreamIdOrUndefined_asString();if(k!=null)if(k=Number(k),r.hasClose()){a:{if(r=r.getClose())if(r=r.getStatus())break a;r=void 0}r&&m.handleClose(k,r)}else if(r=lm(r,XFd,2,bGd))switch(Oo(r,YFd)){case 1:if(r=m.causalStreams.get(k)){try{r.observer.next(new AFd)}catch(R){}m.causalStreams.delete(k);m.limboStreams.set(k,r.start())}break;case 3:a:{if(r=lm(r,TFd,3,YFd))if(r=
ix(r,1),r!=null){var w=new BFd(nt(r));break a}w=void 0}if(w&&(r=k,k=w,(w=m.limboStreams.get(r))?(w=w.advance(k.timestampMicros),m.limboStreams.delete(r),m.nonCausalStreams.set(r,w),m=w):m=m.nonCausalStreams.get(r),m)){r=m;w=k.timestampMicros;w>r.knowledgeTimestamp&&(r.knowledgeTimestamp=w,r.knowledgeTimestampChosenByPunctual=!0);try{m.observer.next(k)}catch(R){}}break;case 2:k=m.nonCausalStreams.get(k)||m.limboStreams.get(k);if(!k)break;m=k.interestSet;if(w=lm(r,VFd,2,YFd)){r=new vHd;w=l(Wi(w,UFd,
1,Xi()));for(var x=w.next();!x.done;x=w.next()){x=x.value;var D=Y(x,jt,6),H=x.getVersionOrUndefined_asString();if(D&&H!=null){var J=void 0,O=(J=x.getPayloadOrUndefined())==null?void 0:iva(J);J=O==null?void 0:O;(D=epb(m,D))&&r.add(new zFd(D,nt(H),J,!!wb(um(x,7))))}}m=r}else m=void 0;if(m)for(m=l(m.changeList),r=m.next();!r.done;r=m.next()){r=r.value;r=new zFd(r.objectId,r.version,r.payload,r.isReplay);try{k.observer.next(r)}catch(R){}}break;case 5:if(k=m.causalStreams.get(k)||m.limboStreams.get(k)||
m.nonCausalStreams.get(k)){k instanceof JHd&&(GHd(m),(r=HHd(m,k))?(r.hasRecurred=!0,r.knowledgeTimestamp=k.knowledgeTimestamp,r.resyncMillis=Date.now()):m.recentResyncs.push(new BHd(k.project,k.interestSet,k.knowledgeTimestamp)));try{k.observer.complete()}catch(R){}}}}if(f.hasStatus())switch(f.getStatus().getCodeOrUndefined()){case 1:g=l(a.causalStreams.values());for(k=g.next();!k.done;k=g.next())k.value.streamInitiationReason=3;g=l(a.nonCausalStreams.values());for(k=g.next();!k.done;k=g.next())k.value.streamInitiationReason=
3;a.channelState&&a.channelState.channel.close()}Si(f,ZFd,3)&&a.channelState&&(a.channelState.channelId=Y(f,ZFd,3).getChannelId(),a.channelState.lastRefreshTime=Date.now(),a.refreshCredsTimerScheduled||(FHd(a),a.refreshCredsTimerScheduled=!0))},a,c.gsessionid),affinitization:c.affinitization,gsessionid:c.gsessionid,hasReceivedMessage:!1};b=[].concat(Array.from(a.causalStreams.entries())).concat(Array.from(a.nonCausalStreams.entries()));b.sort(function(f,g){return f[0]-g[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;KHd(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;ht(function(){a.channelState===e&&a.delayGenerator.reset()},45E3)};
zX.prototype.watch=function(a,b){var c=this;b=b===void 0?{}:b;return new Sd(function(d){var e=++c.streamNumber,f,g=(f=b.projectOverride)!=null?f:c.options.defaultProject;d=new PHd(d,g,a);c.causalStreams.set(e,d);c.newStreamSubject.next({});KHd(c,e,d);return function(){LHd(c,e)}})};
zX.prototype.watchWithStartTime=function(a,b,c){var d=this;c=c===void 0?{}:c;return new Sd(function(e){var f=++d.streamNumber,g,k=(g=c.projectOverride)!=null?g:d.options.defaultProject,m=new JHd(e,k,a,b,!1);GHd(d);if((e=HHd(d,m))&&(e.hasRecurred||b.compare(e.knowledgeTimestamp)<=0)){var r=!0;ht(function(){r&&m.observer.complete()},6E4);return function(){r=!1}}d.nonCausalStreams.set(f,m);d.newStreamSubject.next({});KHd(d,f,m);return function(){LHd(d,f)}})};
var PHd=function(a,b,c){this.observer=a;this.project=b;this.interestSet=c;this.streamInitiationReason=1};PHd.prototype.start=function(){return new QHd(this.observer,this.project,this.interestSet)};var QHd=function(a,b,c){this.observer=a;this.project=b;this.interestSet=c};QHd.prototype.advance=function(a){return new JHd(this.observer,this.project,this.interestSet,a,!0)};
var JHd=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 RHd={firstPartyUri:new ot("https://signaler-pa.clients6.google.com/punctual"),thirdPartyUri:new ot("https://signaler-pa.googleapis.com/punctual"),addDomainPrefix:!1},SHd={firstPartyUri:new ot("https://punctual.corp.google.com/punctual"),thirdPartyUri:new ot,addDomainPrefix:!1},THd={firstPartyUri:new ot("https://punctual-dev.corp.google.com/punctual"),thirdPartyUri:new ot("https://signaler-staging.sandbox.google.com/punctual"),addDomainPrefix:!1},UHd=new Map([["corp",SHd],["prod",RHd],["prod-up",
SHd],["preprod-dynamite-alpha-us",pt("preprod-dynamite-alpha-us")],["preprod-dynamite-alpha-eu",pt("preprod-dynamite-alpha-eu")],["preprod-dynamite-beta-us",pt("preprod-dynamite-beta-us")],["preprod-dynamite-beta-eu",pt("preprod-dynamite-beta-eu")],["preprod-dynamite-gamma-us",pt("preprod-dynamite-gamma-us")],["preprod-dynamite-gamma-eu",pt("preprod-dynamite-gamma-eu")],["preprod-qual-dynamite-perftest",pt("preprod-qual-dynamite-perftest")],["prod-dynamite-prod-00-eu",pt("prod-dynamite-prod-00-eu")],
["prod-dynamite-prod-01-eu",pt("prod-dynamite-prod-01-eu")],["prod-dynamite-prod-00-us",pt("prod-dynamite-prod-00-us")],["prod-dynamite-prod-01-us",pt("prod-dynamite-prod-01-us")],["prod-dynamite-prod-02-us",pt("prod-dynamite-prod-02-us")],["prod-dynamite-prod-03-us",pt("prod-dynamite-prod-03-us")],["prod-dynamite-prod-04-us",pt("prod-dynamite-prod-04-us")],["prod-dynamite-prod-05-us",pt("prod-dynamite-prod-05-us")],["prod-dynamite-prod-06-us",pt("prod-dynamite-prod-06-us")],["prod-dynamite-prod-07-us",
pt("prod-dynamite-prod-07-us")],["prod-dynamite-prod-08-us",pt("prod-dynamite-prod-08-us")],["prod-dynamite-prod-09-us",pt("prod-dynamite-prod-09-us")],["dynamite-alpha-us",qt("preprod","alpha-us")],["dynamite-alpha-eu",qt("preprod","alpha-eu")],["dynamite-beta-us",qt("preprod","beta-us")],["dynamite-beta-eu",qt("preprod","beta-eu")],["dynamite-gamma-us",qt("preprod","gamma-us")],["dynamite-gamma-eu",qt("preprod","gamma-eu")],["dynamite-prod-00-us",qt("prod","prod-00-us")],["dynamite-prod-00-eu",
qt("prod","prod-00-eu")],["dynamite-prod-01-us",qt("prod","prod-01-us")],["dynamite-prod-01-eu",qt("prod","prod-01-eu")],["dynamite-prod-02-us",qt("prod","prod-02-us")],["dynamite-prod-03-us",qt("prod","prod-03-us")],["dynamite-prod-04-us",qt("prod","prod-04-us")],["dynamite-prod-05-us",qt("prod","prod-05-us")],["dynamite-prod-06-us",qt("prod","prod-06-us")],["dynamite-prod-07-us",qt("prod","prod-07-us")],["dynamite-prod-08-us",qt("prod","prod-08-us")],["dynamite-prod-09-us",qt("prod","prod-09-us")],
["ytprod",{firstPartyUri:new ot("https://signaler-pa.youtube.com/punctual"),thirdPartyUri:new ot("https://signaler-pa.googleapis.com/punctual"),addDomainPrefix:!1}],["dev",THd]]);var VHd=function(a){this.projectPath=a;this.authParams=new uGd;this.fetchApi=!1};VHd.prototype.setApiKey=function(a){this.authParams.apiKey=a;return this};VHd.prototype.useFetchApi=function(a){this.fetchApi=!0;this.worker=a;return this};
VHd.prototype.build=function(){var a=Bob(this.authParams),b=this.projectPath;if(!b.startsWith("/punctual/"))throw Error("qf`"+b);var c=b.substring(10).split("/");if(c.length!==2)throw Error("rf`"+b);b=l(c);c=b.next().value;b=b.next().value;if(c.startsWith("custom:"))c=new ot(decodeURIComponent(c.substring(7))),c.setPath("/punctual"),c={firstPartyUri:c,thirdPartyUri:c,addDomainPrefix:!1};else{var d=UHd.get(c);if(!d)throw Error("sf`"+c);c=d}var e;this.fetchApi&&(e=new iD({worker:this.worker}));return DHd(c,
a,{reconnectHint:this.reconnectHint,defaultProject:b,xmlHttpFactory:e,channelEventCallback:this.channelEventCallback})};var WHd={watch:function(){return Ox},watchWithStartTime:function(){return Ox},status:Ox},AX=function(){this.activeSession=q(Zu);if(this.activeSession.getFlag("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 VHd(b)).setApiKey(a).build()}else this.punctualClient=WHd};AX.prototype.watch=function(a,b){return this.punctualClient.watch(apb(String(a),b)).pipe(te(function(c){return c instanceof zFd}))};AX.\u0275fac=function(a){return new (a||AX)};AX.\u0275prov=Cc({token:AX,factory:AX.\u0275fac,providedIn:"root"});var BX=function(){this.punctualService=q(AX);this.stream=new rf;this.isPaused=!1;this.closeStream$=new rf};BX.prototype.resume=function(){this.isPaused=!1};var XHd=function(a,b){a.issueId!==b&&(a.closeStream$.next(),a.stream=new rf,a.issueId=b,a.resume(),a.watch(b).subscribe(a.stream));return a.stream};BX.prototype.watch=function(a){var b=this;return this.punctualService.watch("new-comment-issue",a).pipe(te(function(){var c=!b.isPaused;b.resume();return c}),kf(1E3),Af(this.closeStream$))};
BX.\u0275fac=function(a){return new (a||BX)};BX.\u0275prov=Cc({token:BX,factory:BX.\u0275fac,providedIn:"root"});var YHd=function(a,b){this.displayText=a;this.value=b;this.enabled=!0;this.disabledReason=""};var CX=function(){LO.call(this);this.window=q(ZP);this.scrolledOnScreenService=q(mT);this.elementRef=q(Gd);this.onAutoResize=new KO;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)};Z(CX,LO);CX.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.scrolledOnScreenService.getObservable(this.el,!0).subscribe(function(b){b&&ZHd(a,0)}));this.autoResize&&this.subscriptions.add(this.autoResize.subscribe(function(){ZHd(a,2)}))};
CX.prototype.onInput=function(){ZHd(this,1)};
var ZHd=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=ro(d.getPropertyValue("border-top-width"))+ro(d.getPropertyValue("padding-top"))+c.scrollHeight+ro(d.getPropertyValue("padding-bottom"))+ro(d.getPropertyValue("border-bottom-width"))+
24;Number.isNaN(c)||(e=ro(d.getPropertyValue("max-height")),d=ro(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})))};CX.prototype.ngOnDestroy=function(){this.cloneEl.parentElement&&this.cloneEl.parentElement.removeChild(this.cloneEl);LO.prototype.ngOnDestroy.call(this)};CX.\u0275fac=function(a){return new (a||CX)};
CX.\u0275dir=af({type:CX,selectors:[["textarea","autoResize",""]],hostBindings:function(a,b){a&1&&N("input",function(){return b.onInput()})},inputs:{autoResize:"autoResize"},outputs:{onAutoResize:"onAutoResize"},features:[Ff]});var $Hd=new bd("isMac",{factory:function(){return Hv}}),aId=function(){this.isMac=q($Hd);this.textarea=q(Gd).nativeElement;this.macPasteWorkaroundActivated=new KO};
aId.prototype.handlePaste=function(a){if(this.isMac&&this.textarea){var b,c=(b=this.textarea.selectionStart)!=null?b:0;if(c!==0&&this.textarea.value[c-1]==="@"){var d;b=(d=this.textarea.selectionEnd)!=null?d:0;var e,f;d=(f=(e=a.clipboardData)==null?void 0:e.getData("text/plain"))!=null?f:"";d!==""&&(a.stopPropagation(),a.preventDefault(),this.textarea.setRangeText(d,c,b),a=c+d.length,this.textarea.setSelectionRange(a,a),this.textarea.focus(),this.textarea.dispatchEvent(new Event("input")),this.macPasteWorkaroundActivated.emit())}}};
aId.\u0275fac=function(a){return new (a||aId)};aId.\u0275dir=af({type:aId,selectors:[["textarea","macPasteWorkaround",""]],hostBindings:function(a,b){a&1&&N("paste",function(c){return b.handlePaste(c)})},outputs:{macPasteWorkaroundActivated:"macPasteWorkaroundActivated"}});var bId=["textarea"],cId=["hiddenInput"],dId=["autocompleteUnderlay"],DX=function(){LO.apply(this,arguments);var a=this;this.codefont=q(XP);this.activeSession=q(Zu);this.issuePermissionService=q(NP);this.autocompleteLogic=q(hV);this.userPreferencesManager=q(VP);this.autocompleteConfigService=q(gV);this.darkmodeService=q(fV);this.refresh$=this.darkmodeService.clientDarkmode$.pipe(A(function(){}));this.textareaClass=[];this.isLiteralModeSupported=this.enableMentionsAutocomplete=this.canEditIssuesInComponent=
this.disabled=!1;this.contentChange=new KO;this.focus=new KO;this.blur=new KO;this.autoResize=new KO;this.manualResize$=new KO;this.autocompleteTop$=this.autocompleteLogic.autocompleteTop$;this.autocompleteLeft$=this.autocompleteLogic.autocompleteLeft$;this.taggingInProgress$=this.autocompleteLogic.taggingInProgress$;this.autocompleteUserName$=this.autocompleteLogic.autocompleteUserName$;this.sessionOptions=(new Ev).setFilter(jBd);this.isCreateCommentFormatLiteral=!1;this.shouldShowMentionsNotSupportedWarning$=
this.autocompleteLogic.taggingInProgress$.pipe(A(function(b){return a.enableMentionsAutocomplete&&MM(a.activeSession)?!(a.issueId?a.issuePermissionService.hasAclToEdit():a.canEditIssuesInComponent)&&b:!1}))};Z(DX,LO);DX.\u0275dir=LO.\u0275dir;DX.prototype.getConfig=function(){return Ugb(this.autocompleteConfigService)};
DX.prototype.ngOnChanges=function(){var a=this;this.autocompleteLogic.initialize({placeholderPrefix:"@",isMentionAutocompleteEnabled:function(){return a.isMentionAutocompleteEnabled()},getTextarea:function(){return a.getTextarea()},focusOnComponent:function(){a.focusOnComponent()},emitContentChange:function(){a.emitContentChange()},getHiddenInput:function(){var b;return(b=a.hiddenInputRef)==null?void 0:b.nativeElement},getAutocompleteUnderlay:function(){var b;return(b=a.autocompleteUnderlayRef)==
null?void 0:b.nativeElement}})};DX.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.codefont.codefont$.subscribe(function(b){b?a.getTextarea().classList.add("codefont"):a.getTextarea().classList.remove("codefont")}));this.subscriptions.add(this.userPreferencesManager.isCreateCommentFormatLiteral$.subscribe(function(b){a.isCreateCommentFormatLiteral=b}));eId(this)};
var eId=function(a){he([a.taggingInProgress$,a.autocompleteUserName$]).pipe(nf(0),Af(a.destroyed$)).subscribe(function(b){var c=l(b);b=c.next().value;c=c.next().value;if(b){var d;if((d=a.hiddenInputRef)==null?0:d.nativeElement)if(d=a.hiddenInputRef.nativeElement,d.value!==c){d.value=c;var e;(e=a.hiddenInputRef)==null||e.nativeElement.dispatchEvent(new Event("input"))}}})};h=DX.prototype;h.ngOnDestroy=function(){LO.prototype.ngOnDestroy.call(this);this.focus.complete();this.blur.complete();this.manualResize$.complete()};
h.emitContentChange=function(){this.contentChange.emit(this.getTextarea().value)};h.focusOnComponent=function(){this.getTextarea().focus()};h.setValue=function(a){this.getTextarea().value!==a&&(this.getTextarea().value=a,this.manualResize$.next())};h.getTextarea=function(){return this.textareaRef.nativeElement};h.textAreaContainerElKeyDown=function(a){this.autocompleteLogic.textAreaContainerElKeyDown(a)};h.textAreaKeyDown=function(a){this.autocompleteLogic.textAreaKeyDown(a)};h.textAreaKeyUp=function(a){this.autocompleteLogic.textAreaKeyUp(a)};
h.escapeKeyupAnywhere=function(a){this.autocompleteLogic.escapeKeyupAnywhere(a)};h.synchronizeScrolling=function(){this.autocompleteLogic.synchronizeScrolling()};var fId=function(a){setTimeout(function(){a.autocompleteLogic.taggingInProgress.next(!1)})};
DX.prototype.isMentionAutocompleteEnabled=function(){return this.isLiteralModeSupported&&this.isCreateCommentFormatLiteral||!this.enableMentionsAutocomplete?!1:MM(this.activeSession)?this.issueId?this.issuePermissionService.hasAclToEdit():this.canEditIssuesInComponent:!0};DX.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(DX)))(b||DX)}}();
DX.\u0275cmp=C({type:DX,selectors:[["b-comment-draft-textarea"]],viewQuery:function(a,b){a&1&&(kg(bId,7),kg(cId,5),kg(dId,5));if(a&2){var c;og(c=pg())&&(b.textareaRef=c.first);og(c=pg())&&(b.hiddenInputRef=c.first);og(c=pg())&&(b.autocompleteUnderlayRef=c.first)}},hostBindings:function(a,b){a&1&&N("click",function(){return fId(b)},dha)("keyUp",function(c){return b.escapeKeyupAnywhere(c)},dha)},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"},features:[Ig([hV]),Ff,Gx],decls:13,vars:22,consts:[["commentBoxContainer",""],["textarea",""],["hiddenInput",""],["autocompleteUnderlay",""],[1,"pos-rel","comment-box-container",3,"keydown"],["aria-label","Comment box - add your comment",
"cdkFocusInitial","","macPasteWorkaround","",3,"input","focus","blur","onAutoResize","keydown","keyup","scroll","autoResize","disabled"],[1,"bv2-literal-mode-warning"],["id","mentions-warning","role","alert",1,"bv2-validation-error-banner"],[1,"autocomplete-input-container"],[3,"refreshable"],["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","tabIndex","-1","inert","","autocomplete","off","spellcheck","off","peoplekitAutocomplete","",1,"autocomplete-hidden-input",3,"peoplekitAutocompleteSelectionChange","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","peoplekitAutocompleteInputSearchDelay"]],template:function(a,b){if(a&1){var c=t();K(0,"div",4,0);N("keydown",function(d){u(c);return v(b.textAreaContainerElKeyDown(d))});K(2,"textarea",5,1);N("input",function(){u(c);return v(b.emitContentChange())})("focus",
function(d){u(c);return v(b.focus.emit(d))})("blur",function(d){u(c);return v(b.blur.emit(d))})("onAutoResize",function(d){u(c);return v(b.autoResize.emit(d))})("keydown",function(d){u(c);return v(b.textAreaKeyDown(d))})("keyup",function(d){u(c);return v(b.textAreaKeyUp(d))})("scroll",function(){u(c);return v(b.synchronizeScrolling())});L();F(4,fpb,8,0,"div",6);F(5,gpb,3,0,"div",7);U(6,"async");K(7,"span",8);U(8,"async");U(9,"async");F(10,jpb,1,1,null,9);U(11,"async");L();F(12,kpb,2,0,"div",10);L()}a&
2&&(B(2),zg(b.textareaClass),I("autoResize",b.manualResize$)("disabled",b.disabled),Jf("placeholder",b.placeholder)("id",b.idForAriaLabel),B(2),G(b.isLiteralModeSupported&&b.isCreateCommentFormatLiteral?4:-1),B(),G(W(6,14,b.shouldShowMentionsNotSupportedWarning$)?5:-1),B(2),xg("top",W(8,16,b.autocompleteTop$)+"px")("left",W(9,18,b.autocompleteLeft$)+"px"),B(3),G(b.isMentionAutocompleteEnabled()&&W(11,20,b.taggingInProgress$)?10:-1),B(2),G(b.isMentionAutocompleteEnabled()?12:-1))},dependencies:[CX,
aId,iz,rW,kT,py],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 EX=function(){LO.apply(this,arguments);var a=this;this.cdr=q(MO,{self:!0});this.ref=q(Gd);this.events=q(DN);this.previewDisabled=!1;this.selectedIndex=0;this.render=function(){var b=a.matTabGroup;b._tabHeader&&b._tabHeader._alignInkBarToSelectedTab();a.cdr.markForCheck()}};Z(EX,LO);EX.\u0275dir=LO.\u0275dir;EX.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.events.commentSubmitted.subscribe(function(){a.matTabGroup.selectedIndex=0}))};
EX.prototype.synchronizeHeight=function(a){this.ref.nativeElement.querySelector("mat-tab-group").style.height=a+8+48+"px"};EX.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(EX)))(b||EX)}}();
EX.\u0275cmp=C({type:EX,selectors:[["b-comment-draft-tab-group"]],viewQuery:function(a,b){a&1&&kg(ZK,7);if(a&2){var c;og(c=pg())&&(b.matTabGroup=c.first)}},inputs:{editArea:"editArea",previewArea:"previewArea",previewDisabled:"previewDisabled"},features:[Ig([MO]),Ff],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&&(K(0,"mat-tab-group",
0),N("animationDone",function(){setTimeout(b.render,2E3)})("selectedIndexChange",function(c){return b.selectedIndex=c}),K(1,"mat-tab",1),E(2,lpb,1,0,"ng-container",2),L(),K(3,"mat-tab",3),E(4,mpb,1,0,"ng-container",2),L()());a&2&&(I("dynamicHeight",!1)("selectedIndex",b.selectedIndex),B(2),I("ngTemplateOutlet",b.editArea),B(),I("disabled",b.previewDisabled),B(),I("ngTemplateOutlet",b.previewArea))},dependencies:[cL,bL,YK,ZK,oy],styles:["[_nghost-%COMP%]     mat-tab-header{margin-left:8px;margin-bottom:16px}/*# sourceMappingURL=comment_draft_tab_group.css.map */"],
changeDetection:0});
var FX=function(){LO.apply(this,arguments);this.codefont=q(XP);this.ngZone=q(Tg);this.prefs=q(VP);this.hotkeys=q(dT);this.isMarkdown$=this.prefs.lastPublishFormattingMode$.pipe(A(function(a){return a==="MARKDOWN"}));this.idPrefix="b-draft";this.content="";this.textareaClass=[];this.disabled=!1;this.audience="EXTERNAL";this.isLiteralModeSupported=this.enableMentionsAutocomplete=this.canEditIssuesInComponent=!1;this.init=new KO;this.contentChange=new KO;this.focus=new KO;this.blur=new KO;this.autoResize=
new KO;this.onSubmit=new KO};Z(FX,LO);FX.\u0275dir=LO.\u0275dir;FX.prototype.ngOnChanges=function(){this.commentDraftTextarea&&this.commentDraftTextarea.setValue(this.content)};
FX.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 gId=function(a){a.ngZone.run(function(){if(a.commentDraftTabGroup){var b=a.commentDraftTabGroup;b.selectedIndex=0;b.render()}a.commentDraftTextarea&&a.commentDraftTextarea.focusOnComponent()})};FX.prototype.synchronizeHeight=function(a){this.commentDraftTabGroup&&this.commentDraftTabGroup.synchronizeHeight(a.newHeight)};FX.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(FX)))(b||FX)}}();
FX.\u0275cmp=C({type:FX,selectors:[["b-comment-draft"]],viewQuery:function(a,b){a&1&&(kg(DX,5),kg(EX,5));if(a&2){var c;og(c=pg())&&(b.commentDraftTextarea=c.first);og(c=pg())&&(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"},features:[Ff,Gx],decls:2,vars:13,consts:[[3,"autoResize","keydown.control.enter","keydown.meta.enter","textareaClass","disabled","placeholder","idForAriaLabel","audience","issueId","canEditIssuesInComponent","enableMentionsAutocomplete","isLiteralModeSupported"]],template:function(a,b){a&1&&(K(0,"b-comment-draft-textarea",0),U(1,"async"),N("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()}),L());a&2&&(yg("draft-markdown",W(1,11,b.isMarkdown$)),I("textareaClass",b.textareaClass)("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:[DX,py],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 hId=["captchaContainer"],GX=function(){this.ngZone=q(Tg);this.window=q(ZP);this.darkmodeService=q(fV);this.appEvents=q(DN);this.analytics=q(PO);this.onUpdate=new KO;this.destroyed$=new vf(1)};GX.prototype.ngOnInit=function(){var a=this;this.appEvents.recaptchaSubmitted.pipe(Af(this.destroyed$)).subscribe(function(){a.reset();a.onUpdate.emit("")})};
GX.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"})})};GX.prototype.ngOnDestroy=function(){this.reset();this.destroyed$.next()};GX.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)})}};GX.\u0275fac=function(a){return new (a||GX)};
GX.\u0275cmp=C({type:GX,selectors:[["b-recaptcha"]],viewQuery:function(a,b){a&1&&kg(hId,5);if(a&2){var c;og(c=pg())&&(b.captchaContainer=c.first)}},outputs:{onUpdate:"onUpdate"},decls:2,vars:0,consts:[["captchaContainer",""]],template:function(a){a&1&&Uf(0,"div",null,0)},encapsulation:2});var HX=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)};HX.prototype.ngOnDestroy=function(){this.checks=[];window.removeEventListener("beforeunload",this.beforeUnloadEventHandler);window.removeEventListener("unload",this.onUnload)};var IX=function(a,b,c){var d={dataChanged:b,triggerOnSearch:c};a.checks.push(d);return new Od(function(){a.checks=a.checks.filter(function(e){return e!==d})})};
HX.prototype.canDeactivate=function(a,b,c,d){a:{a=It(c.url).getPath()===It(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?iId(this)?(this.checks=[],!0):!1:!0};var iId=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};
HX.\u0275fac=function(a){return new (a||HX)};HX.\u0275prov=Cc({token:HX,factory:HX.\u0275fac,providedIn:"root"});var jId=function(a){return[a]},JX=function(){this.matDialog=q(gB)};
JX.prototype.show=function(a){var b=a.issueId;var c=a.audience;var d=a.componentId;var e=a.text===void 0?"":a.text;var f=a.formattingMode===void 0?"PLAIN":a.formattingMode;var g=a.commentNumber;var k=a.dialogTitle;this.dialog=this.matDialog.open(KX,{width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{issueId:b,componentId:d,audience:c,commentNumber:g,text:e,formattingMode:f,dialogTitle:k!=null?k:"Editing Comment #"+g+" of Issue "+b,showPiiWarning:a.showPiiWarning===void 0?!0:a.showPiiWarning}});
return ee(eB(this.dialog))};JX.\u0275fac=function(a){return new (a||JX)};JX.\u0275prov=Cc({token:JX,factory:JX.\u0275fac,providedIn:"root"});
var KX=function(){LO.call(this);this.activeSession=q(Zu);this.originalData=q(fB);this.dialogRef=q(dB);this.bannedWordsChecker=q(AW);this.checkBeforeExit=q(HX);this.userPreferencesManager=q(VP);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.dataDraft=Object.assign({},this.originalData);if(this.dataDraft.text===""){var a,b;this.dataDraft.formattingMode=(b=(a=WP(this.userPreferencesManager).commentFormattingPreferences)==null?void 0:a.lastPublishMode)!=null?b:"UNSPECIFIED_FORMATTING_MODE"}};Z(KX,LO);KX.\u0275dir=LO.\u0275dir;h=KX.prototype;
h.ngOnInit=function(){var a=this;this.subscriptions.add(IX(this.checkBeforeExit,function(){return a.isModified()},!1));this.dialogRef.keydownEvents().pipe(Af(this.destroyed$)).subscribe(function(b){b.key==="Escape"&&a.closeIfUnmodified()});this.dialogRef.backdropClick().pipe(Af(this.destroyed$)).subscribe(function(){a.closeIfUnmodified()})};h.closeIfUnmodified=function(){this.isModified()||this.dialogRef.close()};h.isCaptchaValid=function(){return!this.enableRecaptcha||this.recaptchaResponse!==""};
h.isModified=function(){return!Gm(this.dataDraft,this.originalData)};
h.closeDialogForSave=function(){var a=this,b,c,d;return y(function(e){if(e.nextAddress==1)return a.isModified()?z(e,a.bannedWordsChecker.check(a.dataDraft.text,a.dataDraft.audience==="EXTERNAL",a.dataDraft.componentId),2):e.return();(b=e.yieldResult)?(d={text:a.dataDraft.text,formattingMode:a.dataDraft.formattingMode},a.enableRecaptcha&&(d.recaptchaToken=a.recaptchaResponse),a.dialogRef.close(d)):(c=a.commentDraft)==null||gId(c);$d(e)})};KX.\u0275fac=function(a){return new (a||KX)};
KX.\u0275cmp=C({type:KX,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&kg(FX,5);if(a&2){var c;og(c=pg())&&(b.commentDraft=c.first)}},features:[Ig([AW]),Ff],decls:18,vars:27,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"muted"],[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","",1,"save",3,"click","disabled","color"],["target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["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&&(K(0,"h1",0),S(1),L(),K(2,"section",1),F(3,npb,6,1,
"p",2),K(4,"b-comment-draft",3),U(5,"async"),Eg("contentChange",function(c){Dg(b.dataDraft.text,c)||(b.dataDraft.text=c);return c}),N("onSubmit",function(){return b.closeDialogForSave()})("contentChange",function(){b.bannedWordsChecker.reset()}),L(),F(6,opb,4,1,"p",4),U(7,"async"),K(8,"b-markdown-toggle",5),N("change",function(c){return b.dataDraft.formattingMode=c}),L(),F(9,ppb,1,4,"b-live-preview",6),L(),F(10,qpb,3,0,"section"),K(11,"footer",7)(12,"button",8),S(13," Cancel "),L(),K(14,"button",
9),U(15,"async"),N("click",function(){return b.closeDialogForSave()}),S(16),U(17,"async"),L()());a&2&&(B(),Ag(b.originalData.dialogTitle),B(2),G(b.originalData.showPiiWarning?3:-1),B(),Cg("content",b.dataDraft.text),I("audience",b.dataDraft.audience)("textareaClass",Kg(25,jId,W(5,17,b.bannedWordsChecker.showWarning$)?"banned-words-warning":""))("enableMentionsAutocomplete",!0)("isLiteralModeSupported",!1),B(2),G(W(7,19,b.bannedWordsChecker.showWarning$)?6:-1),B(2),yg("margin-bottom",(b.dataDraft==
null?null:b.dataDraft.formattingMode)!==b.MARKDOWN),I("initialValue",b.dataDraft.formattingMode),B(),G(b.dataDraft.formattingMode===b.MARKDOWN?9:-1),B(),G(b.enableRecaptcha?10:-1),B(2),I("mat-dialog-close",void 0),B(2),I("disabled",!b.isModified()||!b.isCaptchaValid())("color",W(15,21,b.bannedWordsChecker.showWarning$)?"warn":"primary"),B(2),T(" ",W(17,23,b.bannedWordsChecker.showWarning$)?"Save Anyway":"Save"," "))},dependencies:[FX,ZA,XA,TA,fS,YS,mB,hB,lB,kB,GX,py],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 LX=function(){this.dismissalService=q($V);this.editIssueService=q(tR);this.butterBar=q(JM);this.issuePermissionService=q(NP);this.issueCommentService=q(xFd);this.editCommentDialogService=q(JX);this.issueFullFridge=q(RO);this.matDialogService=q(gB);this.paths=q(wV);this.analytics=q(PO);this.domSafe=q($P);this.confirmationDialogService=q(PQ);this.issueComments=q(dR);this.errorHandler=q(ZM);this.eventsForIssueFridge=q(vO);this.componentFridge=q(AN);this.commentFormatter=q(TP);this.confirmNoAccessService=
q(eR);this.activeSession=q(Zu);this.appEvents=q(DN);this.issuePicker=q(pX);this.eventsForIssueWatcher=q(BX);this.issueInteractionsTracking=q(pR)},tzb=function(a,b,c){var d,e,f,g,k,m,r,w,x,D;return y(function(H){if(H.nextAddress==1)return z(H,ee(a.issueFullFridge.watch(b)),2);if(H.nextAddress!=3){d=H.yieldResult;g=(f=(e=d)==null?void 0:e.snapshot[0].componentId)!=null?f:void 0;k=a.editIssueService.savingState(b);if(k.get("commentEdit"))return H.return();m=c.commentNumber;if(!m)return H.return();a.butterBar.dismiss();
w=(r=a.issuePermissionService.audience())!=null?r:"EXTERNAL";return z(H,a.editCommentDialogService.show({issueId:b,audience:w,componentId:g,text:(x=c.unlinkifiedComment)!=null?x:void 0,formattingMode:c.formattingMode,commentNumber:m}),3)}D=H.yieldResult;if(D==null)return H.return();yFd(a.issueCommentService,{issueId:b,newCommentId:m,newComment:D.text,newCommentFormattingMode:D.formattingMode,recaptchaToken:D.recaptchaToken});$d(H)})},lId=function(a,b,c){var d,e,f;return y(function(g){if(g.nextAddress==
1)return c?z(g,kId(a,b),2):g.return();if(g.nextAddress!=3)return d={title:"Choose target issue",defaultChoices:g.yieldResult,allowMultipleIds:!1,currentResource:{id:b,type:"issue"},edgeType:"copyComment"},z(g,a.issuePicker.open(d),3);e=g.yieldResult;if((f=e)==null?0:f.length){var k=As(e[0],{template_issue:b,template_comment:c,do_attribution:!0});a.analytics.trackEvent("editIssue","copyComment");a.domSafe.openInNewTab(k)}$d(g)})},kId=function(a,b){function c(V){return x.get(V)}var d,e,f,g,k,m,r,w,
x,D,H,J,O,R;return y(function(V){if(V.nextAddress==1)return z(V,ee(a.issueFullFridge.watch(b)),2);if(V.nextAddress!=3){d=V.yieldResult;if(!d)return V.return([]);f=(e=d.snapshot[0].duplicateIssueId)!=null?e:[];k=(g=d.snapshot[0].blockingIssueId)!=null?g:[];r=(m=d.snapshot[0].blockedByIssueId)!=null?m:[];return z(V,ee(a.issueFullFridge.watchSet(Oq([].concat(n(f),n(k),n(r))))),3)}w=V.yieldResult;x=new Map(w.map(function(ba){return[ba.issueId,ba]}));D=r.map(c).filter(ln).map(rpb("BLOCKED_BY"));H=k.map(c).filter(ln).map(rpb("BLOCKING"));
J=f.map(c).filter(ln).map(rpb("DUPLICATE"));O=[].concat(n(D),n(H),n(J));R=spb(O);return V.return(R)})},nId=function(a,b,c){var d;return y(function(e){return e.nextAddress==1?c?z(e,Asd(a.confirmationDialogService,{title:"Restore comment # "+c+"?",content:Dh("Are you sure you want to restore this comment?")}),2):e.return():(d=e.yieldResult)?z(e,mId(a,b,c),0):e.return()})},mId=function(a,b,c){var d,e;return y(function(f){switch(f.nextAddress){case 1:d=a.editIssueService.savingState(b);if(d.get("commentUndelete"))return f.return();
fs(a.butterBar,"Restoring comment...",0);Vd(f,2,3);gs(d,"commentUndelete");return z(f,a.issueComments.undelete(b,c),5);case 5:fs(a.butterBar,"Comment restored successfully.");case 3:Wd(f);rR(d,"commentUndelete");a.issueFullFridge.poke(b);a.eventsForIssueFridge.poke(b);Yd(f,0);break;case 2:e=Zd(f),fs(a.butterBar,"Comment restoration failed."),aN(a.errorHandler,e),f.jumpTo(3)}})},qId=function(a,b,c,d){var e,f,g,k;return y(function(m){if(m.nextAddress==1){if(!c)return m.return();e=a.editIssueService.savingState(b);
return e.get("commentDelete")?m.return():z(m,oId(a,b),2)}return m.nextAddress!=3?(f=m.yieldResult,a.butterBar.dismiss(),z(m,ee(eB(a.matDialogService.open(hDd,{width:"560px",data:{commentNumber:c,issueId:b,deletionReasons:f}}))),3)):(g=m.yieldResult)?z(m,pId(a,b,c,g.value,(k=d)!=null?k:""),0):m.jumpTo(0)})},pId=function(a,b,c,d,e){var f,g;return y(function(k){switch(k.nextAddress){case 1:f=a.editIssueService.savingState(b);if(f.get("commentDelete"))return k.return();Vd(k,2,3);fs(a.butterBar,"Deleting comment...",
0);gs(f,"commentDelete");return z(k,a.issueComments.delete(b,c,d,e),5);case 5:fs(a.butterBar,"Comment deleted. Deleted items may be restored within 30 days."),a.eventsForIssueFridge.poke(b);case 3:Wd(k);rR(f,"commentDelete");a.issueFullFridge.poke(b);Yd(k,0);break;case 2:g=Zd(k),fs(a.butterBar,"Comment deletion failed."),aN(a.errorHandler,g),k.jumpTo(3)}})},oId=function(a,b){var c,d,e,f,g,k,m,r;return y(function(w){switch(w.nextAddress){case 1:return z(w,ee(a.issueFullFridge.watch(b,{trustUncertainMemory:!0})),
2);case 2:c=w.yieldResult;e=((d=c)==null?void 0:d.snapshot[0].componentId)||void 0;if(!e){f=void 0;w.jumpTo(3);break}return z(w,ee(a.componentFridge.watch(e)),4);case 4:f=w.yieldResult;case 3:return g=f,k=new YHd("Other","USER_REQUEST"),g&&g.commentEditState!=="DISABLED"||(k.enabled=!1,k.disabledReason="comment editing must be enabled"),m=new YHd("Spam or Abuse","ABUSE"),a.issuePermissionService.accessLevel()!=="EXTERNAL_PUBLIC"&&(m.enabled=!1,m.disabledReason="available on Public components"),r=
new YHd("Personally Identifiable Information","RESTRICTED"),w.return([r,m,k])}})},rId=function(a,b,c){var d,e;return y(function(f){if(f.nextAddress==1)return d=MP(a.issuePermissionService,Rm(c.userPerformingActionUser)),a.analytics.trackEvent("restrictedContent","updateContentJudgement","comment"),z(f,a.showContentJudgementDialog({severity:jq(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),SO(a.issueFullFridge,[b],{markRead:!0,userActivityType:"EDIT"});$d(f)})};LX.prototype.showContentJudgementDialog=function(a){return ee(eB(this.matDialogService.open(rX,{panelClass:"no-jitter",width:"500px",data:a})))};
var sId=function(a,b,c){var d;return y(function(e){if(e.nextAddress==1)return z(e,ee(eB(a.matDialogService.open(sX,{width:"500px",data:{resource:b,piiRetention:c}}))),2);d=e.yieldResult;return e.return(d===1)})},tId=function(a,b,c,d){var e;y(function(f){if(f.nextAddress==1){if(d==null)return f.return();a.analytics.trackEvent("restrictedContent","updateContentJudgement","attachment");return z(f,a.showContentJudgementDialog({severity:jq(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),SO(a.issueFullFridge,[b],{markRead:!0,userActivityType:"EDIT"});$d(f)})};
LX.prototype.showDeleteAttachmentDialog=function(a,b){var c=this,d,e,f,g,k,m;y(function(r){if(r.nextAddress==1){d=c.editIssueService.savingState(a);if(d.get("deleteAttachment")||!b.attachmentId||b.attachmentId==="0")return r.return();e=ee;f=c.matDialogService;g=f.open;k=gDd;return z(r,oId(c,a),3)}return r.nextAddress!=2?z(r,e(eB(g.call(f,k,{width:"560px",data:{deletionReasons:r.yieldResult,attachmentId:b.attachmentId}}))),2):(m=r.yieldResult)?z(r,jud(c.editIssueService,a,b,m.value),0):r.jumpTo(0)})};
var uId=function(a,b){var c=b.issueId;var d=b.componentId;var e=b.comment;var f,g,k;return y(function(m){if(m.nextAddress==1){if(MM(a.activeSession)&&!a.issuePermissionService.hasAclToEdit()||a.issuePermissionService.hasAclToEdit()&&a.issuePermissionService.isImplicitAccessEnabled())return m.return(!0);Vd(m,2);var r=a.commentFormatter;var w={comment:e.value,issueId:c,audience:(f=a.issuePermissionService.audience())!=null?f:"EXTERNAL",formattingMode:e.formattingMode,idPrefix:"b"+c+"-draft"};r=w.formattingMode===
"LITERAL"||w.comment.trim()===""?be([]):uqd(r,w).pipe(A(i8a));return z(m,ee(r),4)}if(m.nextAddress!=2)return g=m.yieldResult,m.return(ntd(a.confirmNoAccessService,{componentId:d,userEmails:g,relation:"reader",analyticsEventLabel:"mention"}));k=Zd(m);aN(a.errorHandler,k);return m.return(!1)})},vId=function(a,b){b=b===void 0?"comment":b;var c,d,e;return y(function(f){if(f.nextAddress==1)return(c=a.issuePermissionService.accessLevel())&&c==="INTERNAL"||a.issuePermissionService.hasAclToEdit()||a.activeSession.isInternalSession()||
LM(a.activeSession)?f.return(!0):z(f,a.dismissalService.isDismissed(Nkb(b)),2);if(d=f.yieldResult)return f.return(!0);switch(b){case "comment":e=Dh("Commenting on this bug report means your email address will be shared with the team that works on this product.");break;case "reaction":e=Dh("Reacting to this comment means your email address will be shared with the team that works on this product.");break;default:sb(b)}return f.return(ee(eB(a.matDialogService.open(aW,{width:"500px",data:{content:e,action:b}}))))})};
LX.prototype.submitCommentBox=function(a,b,c,d){var e=this,f,g,k,m;return y(function(r){switch(r.nextAddress){case 1:f=e.editIssueService.savingState(b);if(!e.issuePermissionService.hasAclToComment()||!std(c)||f.get("comment"))return r.return(!1);gs(f,"comment");g=function(){rR(f,"comment")};return z(r,uId(e,{issueId:b,componentId:a,comment:c}),2);case 2:return k=r.yieldResult,k?z(r,vId(e),3):(g(),r.return(!1));case 3:m=r.yieldResult;if(!m)return g(),r.return(!1);e.analytics.trackEvent("editIssue",
"addComment",c.formattingMode==="MARKDOWN"?"markdown":"non markdown");hs(e.issueInteractionsTracking,b);e.eventsForIssueWatcher.isPaused=!0;return z(r,e.editIssueService.FOR_ISSUE_COMMENT_DIALOGS_SERVICE_ONLY.saveCommentDraft(b,d).finally(function(){g();e.appEvents.commentSubmitted.next(b)}),4);case 4:return r.return(!0)}})};
LX.prototype.showNewContentJudgementDialog=function(a){var b=this,c,d,e,f,g,k;return y(function(m){if(m.nextAddress==1)return c=b.editIssueService.issueCommentDraft(a),d=c.judgementForNewContent(),g=(f=(e=d)==null?void 0:e.severity)!=null?f:"NONE_DETECTED",z(m,b.showContentJudgementDialog({severity:g,contentJudgement:void 0,hasAclToCreate:!0}),2);(k=m.yieldResult)&&c.setJudgementForNewContent(k.contentJudgement);$d(m)})};
LX.prototype.updateCommentReaction=function(a){var b=this,c;return y(function(d){return d.nextAddress==1?a.hasReacted?z(d,vId(b,"reaction"),3):d.jumpTo(2):d.nextAddress==2||(c=d.yieldResult,c)?d.return(b.issueComments.updateCommentReaction(a)):d.return(void 0)})};LX.\u0275fac=function(a){return new (a||LX)};LX.\u0275prov=Cc({token:LX,factory:LX.\u0275fac,providedIn:"root"});var MX=function(){this.editIssueService=q(tR);this.issuePicker=q(pX);this.analytics=q(PO);this.butterBar=q(JM)},wId=function(a,b){var c,d,e,f,g,k,m;return y(function(r){if(r.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(),z(r,a.issuePicker.open(e),2);if(r.nextAddress!=3){g=r.yieldResult;
if((k=g)==null||!k.length)return c.status=d,r.return("DISMISSED");if(b===g[0])return c.status=d,a.butterBar.showWarning("Cannot set issue as a duplicate of itself"),r.return("DISMISSED");m=(new Date).getTime()-f;a.analytics.trackEvent("issuePicker","duplicate duration","<"+Math.min(2*Math.ceil(m/2E3),600)+"s",m);a.analytics.trackEvent("editIssue","setCanonicalIssue");mnd(a.analytics,"DUPLICATE");return z(r,aud(a.editIssueService,b,g[0]),3)}return r.return("DUPLICATE")})};
MX.\u0275fac=function(a){return new (a||MX)};MX.\u0275prov=Cc({token:MX,factory:MX.\u0275fac,providedIn:"root"});var Gpb=function(a,b){return b.id},NX=function(){var a=this;this.componentFridge=q(AN);this.issueEditComponentService=q(ZV);this.trackerHelpers=q(WQ);this.activeSession=q(Zu);this.cdr=q(Yx);this.componentId$=new vf(1);this.readOnly=!1;this.linkifyComponentNames=!0;this.showPickerOverlayAbove=!1;this.handleSave=!0;this.compactMode$=new Xj(!1);this.componentChanged=new KO;this.displayValueOverride="";this.editing=!1;this.component$=this.componentId$.pipe(zf(function(b){return a.componentFridge.watch(b).pipe(yf(void 0))}));
this.isArchived$=this.component$.pipe(A(function(b){return b==null?void 0:b.archived}));this.showPublicIndicator$=this.component$.pipe(A(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()||LM(a.activeSession)?b==="EXTERNAL_PUBLIC":!1}));this.showPartnerIndicator$=this.component$.pipe(A(function(b){var c;b=b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel;return b==null||
a.activeSession.isExternalSession()||LM(a.activeSession)?!1:a.activeSession.isInternalSession()?b==="EXTERNAL_PARTNER":!1}));this.folder$=he([this.showPublicIndicator$,this.showPartnerIndicator$]).pipe(A(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."}:Is(a.activeSession)?
{icon:"folder_special_24px",tooltip:"This component is inside a tracker"}:{icon:"folder",tooltip:""}}),yf({icon:"folder",tooltip:""}));this.componentPath$=he([this.componentId$,this.component$,this.compactMode$]).pipe(A(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;if(d==null)return hib({componentPathId:[b]});b=Lu(a.trackerHelpers,d.componentPathInfo);b=hib(b);if(c){c=[];d=0;for(var e=b.length-1;e>=0;e--){var f=b[e],g=e===b.length-1?48:32;if(d>=g)break;var k=String(f.name),
m=void 0;if(d+[].concat(n(k)).length>g){var r=g-d;g="";k=k===void 0?"":k;r=r===void 0?48:r;g=g===void 0?"...":g;m=[].concat(n(k));m.length<=r||(k=r-[].concat(n(g)).length,k=m.slice(-k).join(""),String.prototype.trimStart!=null&&(k=k.trimStart()),k=g+k);m=!0}d+=[].concat(n(k)).length;c.unshift(Object.assign({},f,{name:k,isTruncated:m}));if(m)break}b.length>c.length&&(c[0].isSpliced=!0);b=c}return b}));this.isEmpty$=this.component$.pipe(A(function(b){return!b}));this.isThinkingAndEmpty$=he([this.componentFridge.thinking$,
this.isEmpty$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b&&c}));this.isReady$=this.isThinkingAndEmpty$.pipe(A(function(b){return!b}))};NX.prototype.ngOnInit=function(){};NX.prototype.startEdit=function(){this.editing=!0;this.cdr.markForCheck()};var Mpb=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))};
da.Object.defineProperties(NX.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)}}});NX.\u0275fac=function(a){return new (a||NX)};
NX.\u0275cmp=C({type:NX,selectors:[["b-component-breadcrumb-chip"]],inputs:{componentId:"componentId",issueId:"issueId",readOnly:"readOnly",linkifyComponentNames:"linkifyComponentNames",popoutLink:"popoutLink",showPickerOverlayAbove:"showPickerOverlayAbove",handleSave:"handleSave",compactMode:"compactMode",displayValueOverride:"displayValueOverride"},outputs:{componentChanged:"componentChanged"},decls:2,vars:1,consts:[["card",""],["cardBody",""],[3,"isReady"],["placeholder","Choose Component",3,"selectedComponent",
"isRequired","shouldFocus","showOverlayAbove","issueId"],[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","aria-label","Show all Components","role","button",1,"subtle-link"],[4,"onedevHovercardLazyBody"],["href","javascript:void(0);","title","Show all Components","aria-label","Show all Components","role","button",1,"subtle-link",3,"click"],["aria-hidden","true"],[1,"subtle-link",3,"routerLinkObj","onedevHovercardTrigger","muted"],[1,"subtle-link",3,"routerLinkObj","onedevHovercardTrigger"],[1,"plain-component-name",3,"muted"],[1,"plain-component-name"],[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","issueId"]],template:function(a,b){a&1&&F(0,Lpb,13,22,"b-async-data-placeholder",2)(1,Npb,2,7,"b-team-component-picker",3);a&2&&G(b.editing?1:
0)},dependencies:[dW,IV,ZA,XA,VA,hK,AK,uK,vK,zK,wK,iz,MA,EN,VV,py],styles:["[_nghost-%COMP%]     b-async-data-placeholder{display:inline-block;height:22px}a[_ngcontent-%COMP%], .plain-component-name[_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 Ppb={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"},xId={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"},Opb=[Ppb,{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"},xId];var OX=function(){LO.call(this);var a=this;this.defaultAccessLimitLevel$=new vf(1);this.disabled=!0;this.implicitAccessEnabled=!1;this.updatedAccessLimitLevel=new KO;this.selectedDisplay$=new Xj(null);this.displays=Opb;this.disabledDropdownTooltip="Only users with Issue Admin permission can adjust restriction levels.";this.currentIssueAccessLimitLevelDisplay$=he([this.selectedDisplay$,this.defaultAccessLimitLevel$]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c?c:yId(a,
d)}));this.issueAccessLimitLevelDisplayTitle$=this.currentIssueAccessLimitLevelDisplay$.pipe(A(function(c){return c.title}));var b=q(Be);this.defaultAccessLimitLevel$.pipe(oj(b)).subscribe(function(c){a.selectedDisplay$.next(yId(a,c))})};Z(OX,LO);OX.\u0275dir=LO.\u0275dir;var yId=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 Ppb};da.Object.defineProperties(OX.prototype,{defaultAccessLimitLevel:{configurable:!0,enumerable:!0,set:function(a){this.defaultAccessLimitLevel$.next(a)}}});
OX.\u0275fac=function(a){return new (a||OX)};
OX.\u0275cmp=C({type:OX,selectors:[["b-issue-access-limits-dropdown"]],inputs:{defaultAccessLimitLevel:"defaultAccessLimitLevel",disabled:"disabled",implicitAccessEnabled:"implicitAccessEnabled"},outputs:{updatedAccessLimitLevel:"updatedAccessLimitLevel"},features:[Ff],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&&(K(0,"div",1)(1,"button",2),U(2,"async"),K(3,"span",3),M(4,"mat-icon",4),K(5,"span",5),S(6),U(7,"async"),L()(),M(8,"mat-icon",6),L(),F(9,Rpb,1,1,"mat-icon",7),K(10,"mat-menu",8,0),Pf(12,Spb,7,3,"button",9,Of),L()());if(a&2){var c;a=Q(11);B();I("matMenuTriggerFor",a)("disabled",b.disabled);var d;Jf("aria-label","Issue Access level, "+((d=(c=W(2,5,b.selectedDisplay$))==null?
null:c.title)!=null?d:"Default access"));B(5);T(" ",W(7,7,b.issueAccessLimitLevelDisplayTitle$)," ");B(3);G(b.disabled?9:-1);B(3);Qf(b.displays)}},dependencies:[ZA,XA,TA,OJ,NJ,LF,JF,OF,hK,iz,MA,py],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 PX=function(){LO.apply(this,arguments);var a=this;this.errorHandler=q(ZM);this.activeSession=q(Zu);this.issueApi=q(uO);this.issueFullFridge=q(RO);this.componentFridge=q(AN);this.trackerFridge=q(IP);this.eventsForIssueFridge=q(vO);this.issuePermissionService=q(NP);this.snackBar=q(LD);this.dialogRef=q(dB);this.data=q(fB);this.analytics=q(PO);this.confirmationDialogService=q(PQ);this.jspbPrincipalTypes=q(nP);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(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].issueAccessLimitLevel)!=null?c:a.defaultAccessLimitLevel}));
this.updatedAccessLimitLevel$=new Xj(this.defaultAccessLimitLevel);this.hasAccessLimitLevelSelectionChanged$=he([this.currentAccessLimitLevel$,this.updatedAccessLimitLevel$]).pipe(A(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(A(function(b){return b==null?void 0:b.trackerId}));this.tracker$=this.trackerId$.pipe(zf(function(b){return b?
a.trackerFridge.watch(b):be(void 0)}));this.collaboratorGroupsEmailToDetailsMap=new Map;this.addedCollaboratorGroups=new Set;this.removedCollaboratorGroups=new Set;this.expandedAccessTooltip$=this.isImplicitAccessEnabled$.pipe(A(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."}))};
Z(PX,LO);PX.\u0275dir=LO.\u0275dir;
PX.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.currentAccessLimitLevel$.subscribe(function(b){a.updatedAccessLimitLevel$.next(b);Tpb(a,b)}));this.subscriptions.add(he([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)};
PX.prototype.updateCollaboratorGroups=function(a,b){var c=this,d,e,f,g;y(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?z(k,zId(c,b.snapshot[0].collaboratorsUsers),
3):k.jumpTo(0)}g=k.yieldResult;g.forEach(function(m){c.collaboratorGroupsEmailToDetailsMap.set(m.emailAddress,{user:m,specifiedOnIssue:!0})});$d(k)})};
var zId=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return c=b.map(function(f){return f.emailAddress}).filter(ln),z(e,kpd(a.jspbPrincipalTypes,c,!1),2);d=e.yieldResult;return e.return(b.filter(function(f){if(!f.emailAddress)return!1;var g;return((g=d[f.emailAddress])==null?void 0:g.principalType)==="GROUP"}))})},AId=function(a){return a?"Expanded access on":"Expanded access off"},Wpb=function(a,b){return a.addedCollaboratorGroups.size>0||a.removedCollaboratorGroups.size>0||b===
!0},Tpb=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=Qs(c.writers);a.appenders=Qs(c.appenders);a.readers=Qs(c.readers)},function(c){aN(a.errorHandler,
c)})};h=PX.prototype;h.manageComponentAccessRouterLink=function(a){return{path:"/components/"+a+"/manage",fragment:"access"}};h.closeDialog=function(){this.dialogRef.close()};h.onEnter=function(){this.onPressSave()};h.onEscape=function(){this.dialogRef.close()};
h.onPressSave=function(){var a=this,b=Ns({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:Dh(c),onConfirm:function(){a.save()}})}};
h.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){aN(a.errorHandler,b)})};h.didSave=function(){this.snackBar.open("Successfully saved access configuration",void 0,{duration:2500});this.issueFullFridge.poke(this.issueId);this.eventsForIssueFridge.poke(this.issueId)};h.onPressCancel=function(){this.dialogRef.close()};PX.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(PX)))(b||PX)}}();
PX.\u0275cmp=C({type:PX,selectors:[["b-issue-access-limits-dialog"]],hostBindings:function(a,b){a&1&&N("keydown.escape",function(){return b.onEscape()})},features:[Ff],decls:38,vars:43,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","readOnly","linkifyComponentNames"],[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&&(K(0,"div",0)(1,"span",1),M(2,"mat-icon",2),L(),K(3,"h2",3),S(4,"Issue access level"),L()(),K(5,"mat-dialog-content")(6,"div"),M(7,"b-component-breadcrumb-chip",4),K(8,"span",5),U(9,"async"),K(10,"span",6),S(11),U(12,"async"),L(),M(13,"mat-icon",7),U(14,"async"),L()(),K(15,"b-issue-access-limits-dropdown",8),U(16,"async"),U(17,"async"),U(18,"async"),N("updatedAccessLimitLevel",function(g){b.updatedAccessLimitLevel$.next(g);Tpb(b,g)}),L(),F(19,
Vpb,8,4),U(20,"async"),K(21,"div",9)(22,"div")(23,"div",10),S(24,"Users who can edit, comment, and view"),L(),M(25,"b-multi-user-input",11),L(),K(26,"div")(27,"div",10),S(28,"Users who can comment and view"),L(),M(29,"b-multi-user-input",12),L(),K(30,"div")(31,"div",10),S(32,"Users who can only view"),L(),M(33,"b-multi-user-input",13),L()()(),K(34,"div",14),F(35,Xpb,5,3),U(36,"async"),Mf(37,Ypb,2,0,"button",15),L());if(a&2){B(7);I("issueId",b.issueId)("componentId",b.data.componentId)("compactMode",
!0)("popoutLink",b.manageComponentAccessRouterLink)("readOnly",!0)("linkifyComponentNames",!1);B();yg("expanded-access-on",W(9,27,b.isImplicitAccessEnabled$));B(3);var c;Ag(AId((c=W(12,29,b.isImplicitAccessEnabled$))!=null?c:!1));B(2);var d;I("matTooltip",(d=W(14,31,b.expandedAccessTooltip$))!=null?d:"");B(2);var e,f;I("disabled",!W(16,33,b.hasAclToAdmin$))("defaultAccessLimitLevel",(e=W(17,35,b.currentAccessLimitLevel$))!=null?e:b.defaultAccessLimitLevel)("implicitAccessEnabled",(f=W(18,37,b.isImplicitAccessEnabled$))!=
null?f:!1);B(4);G(b.collaboratorGroupsEmailToDetailsMap.size>0&&W(20,39,b.hasAclToAdmin$)?19:-1);B(6);I("users",b.writers)("includeAliases",!1)("includeViewAliases",!1);Jf("disabled",!0);B(4);I("users",b.appenders)("includeAliases",!1)("includeViewAliases",!1);Jf("disabled",!0);B(4);I("users",b.readers)("includeAliases",!1)("includeViewAliases",!1);Jf("disabled",!0);B(2);G(W(36,41,b.hasAclToAdmin$)?35:37)}},dependencies:[OX,NX,ZA,XA,TA,PK,OK,wI,hK,mB,lB,iz,MA,sW,py,uy],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 QX=function(){this.dialog=q(gB);this.dialogRef=null};QX.prototype.open=function(a){this.dialogRef=this.dialog.open(PX,{panelClass:"no-jitter",data:a,ariaLabel:"Issue access level"})};QX.prototype.isOpen=function(){return this.dialogRef?this.dialogRef.getState()===0:!1};QX.\u0275fac=function(a){return new (a||QX)};QX.\u0275prov=Cc({token:QX,factory:QX.\u0275fac,providedIn:"root"});var BId=function(a){this.uploadUrl_=a};var CId=function(){Aj.call(this)};Ww(CId,Aj);var RX=function(a){at.call(this,a)};Ww(RX,at);var SX=function(a){at.call(this,a)};Ww(SX,at);var DId=function(a,b){this.name_=a;this.inputElement_=b};DId.prototype.getName=function(){return this.name_};var EId=function(){this.maxChunkSize_=1073741824;this.retryOnHttpClientErrorEnabled_=!0};var TX;Ww(tt,Aj);var bqb={},aqb=0,FId=function(a,b){var c=Bj(a);EMc(b,function(d,e){Array.isArray(d)||(d=[d]);Ja(d,function(f){f=c.createDom("INPUT",{type:"hidden",name:e,value:f});a.appendChild(f)})})};h=tt.prototype;h.form_=null;h.iframe_=null;h.iframeName_=null;h.nextIframeId_=0;h.active_=!1;h.complete_=!1;h.success_=!1;h.lastUri_=null;h.lastContent_=null;h.lastErrorCode_=0;h.iframeDisposalTimer_=null;
h.send=function(a,b,c,d){if(this.active_)throw Error("tf");this.lastUri_=a=new ot(a);b=b?b.toUpperCase():"GET";c&&NMc(a);TX||(TX=yOc("FORM"),TX.acceptCharset="utf-8",c=TX.style,c.position="absolute",c.visibility="hidden",c.top=c.left="-10px",c.width=c.height="10px",c.overflow="hidden",document.body.appendChild(TX));this.form_=TX;b=="GET"&&FId(this.form_,a.queryData_);d&&FId(this.form_,d);d=a.toString();(0,Lh.setFormAction)(this.form_,zh(d===null?"null":d===void 0?"undefined":d));this.form_.method=
b;GId(this);HId(this)};h.abort=function(a){if(this.active_){var b=IId(this);if(b)if(aD(b))b.removeAllListeners();else if(b=QLc(b)){var c=0,d;for(d in b.listeners)for(var e=b.listeners[d].concat(),f=0;f<e.length;++f)dD(e[f])&&++c}this.success_=this.active_=this.complete_=!1;this.lastErrorCode_=a||7;this.dispatchEvent("abort");JId(this)}};
h.disposeInternal=function(){this.active_&&this.abort();tt.superClass_.disposeInternal.call(this);this.iframe_&&KId(this);HId(this);delete this.errorChecker_;this.lastUri_=this.lastContent_=this.form_=null;this.lastErrorCode_=0;delete bqb[this.name_]};h.isComplete=function(){return this.complete_};h.isSuccess=function(){return this.success_};h.isActive=function(){return this.active_};h.getResponseText=function(){return this.lastContent_};h.getResponseJson=function(){return WLc(this.lastContent_)};
h.getLastUri=function(){return this.lastUri_};h.getLastErrorCode=function(){return this.lastErrorCode_};h.getLastError=function(){return VLc(this.lastErrorCode_)};
var GId=function(a){a.active_=!0;a.complete_=!1;a.lastErrorCode_=0;a.iframeName_=a.name_+"_"+(a.nextIframeId_++).toString(36);a.iframe_=Bj(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";vj?b.marginTop=b.marginLeft="-10px":(b.position="absolute",b.top=b.left="-10px");Bj(a.form_).document_.body.appendChild(a.iframe_);b=a.iframeName_+"_inner";var c=COc(a.iframe_);if(document.baseURI){var d=mu(b);
d=Kva('<head><base href="'+mu(document.baseURI)+'"></head><body><iframe id="'+d+'" name="'+d+'"></iframe>')}else d=mu(b),d=sh('<body><iframe id="'+d+'" name="'+d+'"></iframe>');(0,Lh.documentWrite)(c,d);Cj(c.getElementById(b),"load",a.onIframeLoaded_,!1,a);d=YD("TEXTAREA",a.form_);for(var e=0,f=d.length;e<f;e++){var g=d[e].value,k=[];HOc(d[e],k,!1);k.join("")!=g&&(DOc(d[e],g),d[e].value=g)}d=c.importNode(a.form_,!0);d.target=b;d.action=a.form_.action;c.body.appendChild(d);e=YD("SELECT",a.form_);f=
YD("SELECT",d);g=0;for(k=e.length;g<k;g++)for(var m=YD("OPTION",e[g]),r=YD("OPTION",f[g]),w=0,x=m.length;w<x;w++)r[w].selected=m[w].selected;e=YD("INPUT",a.form_);f=YD("INPUT",d);g=0;for(k=e.length;g<k;g++)if(e[g].type=="file"&&e[g].value!=f[g].value){a.form_.target=b;d=a.form_;break}try{a.errorHandled_=!1,d.submit(),c.close(),wj&&setTimeout(a.testForFirefoxSilentError_.bind(a),250)}catch(D){cD(c.getElementById(b),"load",a.onIframeLoaded_,!1,a),c.close(),a.handleError_(2)}};
tt.prototype.onIframeLoaded_=function(){cD(IId(this),"load",this.onIframeLoaded_,!1,this);try{var a=this.iframe_?COc(IId(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"),JId(this))}catch(e){this.handleError_(1)}};
tt.prototype.handleError_=function(a){this.errorHandled_||(this.active_=this.success_=!1,this.complete_=!0,this.lastErrorCode_=a,this.dispatchEvent("complete"),this.dispatchEvent("error"),JId(this),this.errorHandled_=!0)};
var JId=function(a){KId(a);HId(a);a.form_=null;a.dispatchEvent("ready")},KId=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);wj?a.iframeDisposalTimer_=setTimeout(a.disposeIframes_.bind(a),2E3):a.disposeIframes_();a.iframe_=null;a.iframeName_=null};
tt.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var a=this.iframesForDisposal_.pop();bE(a)}};var HId=function(a){a.form_&&a.form_==TX&&aE(a.form_)},IId=function(a){return a.iframe_?COc(a.iframe_).getElementById(a.iframeName_+"_inner"):null};
tt.prototype.testForFirefoxSilentError_=function(){if(this.active_){var a=this.iframe_?COc(IId(this)):null;a&&!Lsc(a,"documentUri")?(cD(IId(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?this.handleError_(3):this.handleError_(9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};var LId=function(a,b,c,d,e){Aj.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 ot(a);Kt(a,"upload_protocol","multipart");this.url_=a.toString();this.request_=new tt;this.state_="Ready";this.errorDescription_=
null;this.eventHandler_=new Pi(this);Gt(this,this.eventHandler_);this.eventHandler_.listen(this.request_,"success",this.onTransferSuccess_);this.eventHandler_.listen(this.request_,"error",this.onTransferError_)};Z(LId,CId);h=LId.prototype;h.run=function(){this.state_="Transferring";var a=this.request_,b=this.form_;if(a.active_)throw Error("tf");var c=new ot(this.url_||b.action);a.lastUri_=c;a.form_=b;(0,Lh.setFormAction)(a.form_,c.toString());GId(a)};h.getBytesTransferred=function(){return null};
h.getResponseCode=function(){return null};h.getErrorType=function(){return null};h.getResponseHeaders=function(){return null};h.getResponseText=function(){return this.request_&&this.request_.getResponseText()||null};h.getErrorDescription=function(){return this.errorDescription_};h.cancel=function(){this.request_&&this.request_.abort();this.state_="Cancelled";this.dispatchEvent(new RX("i"))};h.pause=function(){};h.unpause=function(){};h.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new RX("f"))};
h.onTransferError_=function(){this.errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new RX("h"))};Ww(fqb,oa);var dqb=function(a){var b=zva(cqb,function(c){return a==c});if(b===void 0)throw Error("uf`"+a);return b},UX={},cqb=(UX.AbortError=3,UX.EncodingError=5,UX.InvalidModificationError=9,UX.InvalidStateError=7,UX.NotFoundError=1,UX.NotReadableError=4,UX.NoModificationAllowedError=6,UX.PathExistsError=12,UX.QuotaExceededError=10,UX.SecurityError=2,UX.SyntaxError=8,UX.TypeMismatchError=11,UX);Ww(gqb,at);var MId=function(a,b,c){c===void 0&&(c=a.size);return a.slice?a.slice(b,c):null};zj(function(){if(!ra.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 NId=zj(function(){if(!ra.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return MId(b,0,1)===null?!1:!0});var OId=function(){Aj.call(this);this.reader_=new FileReader;this.reader_.onloadstart=Dj(this.dispatchProgressEvent_,this);this.reader_.onprogress=Dj(this.dispatchProgressEvent_,this);this.reader_.onload=Dj(this.dispatchProgressEvent_,this);this.reader_.onabort=Dj(this.dispatchProgressEvent_,this);this.reader_.onerror=Dj(this.dispatchProgressEvent_,this);this.reader_.onloadend=Dj(this.dispatchProgressEvent_,this)};Ww(OId,Aj);h=OId.prototype;
h.abort=function(){try{this.reader_.abort()}catch(a){throw new fqb(a,"aborting read");}};h.getReadyState=function(){return this.reader_.readyState};h.getError=function(){return this.reader_.error&&new fqb(this.reader_.error,"reading file")};h.dispatchProgressEvent_=function(a){this.dispatchEvent(new gqb(a,this))};h.disposeInternal=function(){OId.superClass_.disposeInternal.call(this);delete this.reader_};h.readAsBinaryString=function(a){this.reader_.readAsBinaryString(a)};h.readAsArrayBuffer=function(a){this.reader_.readAsArrayBuffer(a)};
h.readAsText=function(a,b){this.reader_.readAsText(a,b)};var PId=function(a){var b=new ER;a.listen("loadend",et(function(c,d){var e=d.reader_.result,f=d.getError();e==null||f?c.errback(f):c.callback(e);d.dispose()},b,a));return b};var VX=function(){$s.call(this)};Z(VX,$s);VX.prototype.createXhr=function(){var a=$s.prototype.createXhr.call(this);a.upload&&(a.upload.onprogress=Dj(this.onProgress_,this));return a};VX.prototype.onProgress_=function(a){this.dispatchEvent(a)};var QId=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},SId=function(a,b){var c=a.attempt_+1;if(a.maxAttempts_>0&&c>a.maxAttempts_)return!1;c==0?b():a.delayCallId_=ht(function(){a.delayCallId_=null;b()},RId(a),a);a.attempt_=c;return!0};QId.prototype.reset=function(){this.delayCallId_&&ra.clearTimeout(this.delayCallId_);this.attempt_=-1};var RId=function(a){var b=250*Math.pow(2,a.attempt_);a.maxDelayMs_>=0&&(b=Math.min(b,a.maxDelayMs_));return b};var iqb=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var TId=function(a){Aj.call(this);a=a||new EId;this.request_=this.state_=null;this.withCredentials_=!1;this.transferHandle_=null;this.offset_=this.bytesTransferred_=0;this.retryIterator_=new QId;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.errorType_=this.errorDescription_=null;this.eventHandler_=new Pi(this);Gt(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};Ww(TId,CId);h=TId.prototype;h.run=function(){WX(this)};h.getBytesTransferred=function(){return this.bytesTransferred_};h.getResponseCode=function(){return this.responseCode_};
h.getResponseHeaders=function(){return this.responseHeaders_};h.getResponseText=function(){return this.responseText_};h.getErrorDescription=function(){return this.errorDescription_};h.getErrorType=function(){return this.errorType_};
h.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 VX,a.withCredentials_=this.withCredentials_,a.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.bytesTransferred_=0;this.dispatchEvent(new RX("i"))}};
h.pause=function(){this.pauseRequested_=!0};h.unpause=function(){this.pauseRequested_=!1;this.state_==="Paused"&&(this.state_=this.stateAfterUnpausing_,this.stateAfterUnpausing_=null,UId(this))};
var WX=function(a){var b=a.state_;a.pauseRequested_?(a.pauseRequested_=!1,a.stateAfterUnpausing_=b,a.state_="Paused"):SId(a.retryIterator_,function(){return UId(a)})||XX(a,1,"Transfer encountered too many consecutive failures.")},UId=function(a){switch(a.state_){case "Start":a.start_();break;case "Upload":var b=a.transferHandle_.uploadUrl_,c=a.blob_.size;if(NId()){var d=a.chunkSize_;var e=a.offset_+d>=c;c=MId(a.blob_,a.offset_,e?c:a.offset_+d)}else a.offset_=0,c=a.blob_,e=!0;a.request_=new VX;a.request_.withCredentials_=
a.withCredentials_;a.eventHandler_.removeAll();a.eventHandler_.listen(a.request_,"progress",a.onUploadProgress_);d=Dj(a.onUploadComplete_,a,a.offset_+c.size,e);a.eventHandler_.listen(a.request_,"complete",d);a.lastCommandResponseCode_=null;a.dispatchEvent(new SX("k"));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("vf");}},XX=function(a,
b,c){a.state_="Error";a.errorDescription_=c;a.errorType_=b;a.dispatchEvent(new RX("h"))};h=TId.prototype;
h.start_=function(){this.request_=new VX;var a=Li(this.headers_);this.blob_.size!=null&&(a["Content-Length"]=this.blob_.size);a=jqb(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 SX("k"))};
h.onStartComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new SX("l"));VId(b)?WId(this,b):XId(b)?(b=ut(a.target.getAllResponseHeaders()),this.dispatchEvent(new RX("g")),a=vt(b,"X-Goog-Upload-URL"),b=(b=vt(b,"X-Goog-Upload-Chunk-Granularity"))?parseInt(b,10):1,a===void 0||isNaN(b)||b<=0?XX(this,2,"Server returned invalid headers."):(this.chunkSize_=Math.floor(this.maxChunkSize_/b)*b,this.transferHandle_=new BId(a),this.dispatchEvent(new RX("j")),this.state_=
"Upload",this.retryIterator_.reset(),WX(this))):WX(this)};h.onUploadProgress_=function(a){this.bytesTransferred_=this.offset_+a.loaded;this.dispatchEvent(new RX("e"))};
h.onUploadComplete_=function(a,b,c){var d=this,e,f;return y(function(g){switch(g.nextAddress){case 1:e=c.target;d.lastCommandResponseCode_=e.getStatus();d.dispatchEvent(new SX("l"));if(d.retryOnHttpClientErrorEnabled_?YId(e)||e.getStatus()==404:VId(e))return d.bytesTransferred_=a,WId(d,e),g.return();if(XId(e)){g.jumpTo(2);break}if(!(f=d.detectCorruptedBlobEnabled_)){g.jumpTo(3);break}return z(g,ZId(d),4);case 4:f=g.yieldResult;case 3:if(f)return XX(d,3,"Blob has been modified or corrupted."),g.return();
d.requireUploadRequestModification_=e.getStatus()==400;d.state_="Query";WX(d);return g.return();case 2:if(b)return XX(d,4,"Got a non-final success response after issuing a finalize command."),g.return();d.bytesTransferred_=a;d.offset_=a;d.retryIterator_.reset();WX(d);return g.return()}})};
h.query_=function(){this.request_=new VX;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 SX("k"))};
h.onQueryComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new SX("l"));VId(b)?(b.getStatus()===200&&(this.bytesTransferred_=this.blob_.size),WId(this,b)):XId(b)?(a=ut(a.target.getAllResponseHeaders()),a=parseInt(vt(a,"X-Goog-Upload-Size-Received"),10),isNaN(a)?XX(this,5,"Server did not respond with current offset."):a<this.offset_?XX(this,6,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+a+"."):this.requireUploadRequestModification_&&
this.offset_===a?XX(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",WX(this))):WX(this)};
var WId=function(a,b){a.responseCode_=b.getStatus();var c=ut(b.getAllResponseHeaders());a.responseHeaders_=kqb(c);a.responseText_=b.getResponseText();a.state_="Response received";a.dispatchEvent(new RX("f"))},XId=function(a){var b=a.getStatus();a=ut(a.getAllResponseHeaders());a=vt(a,"X-Goog-Upload-Status");return b===200&&a==="active"},YId=function(a){a=ut(a.getAllResponseHeaders());return vt(a,"X-Goog-Upload-Status")==="final"},VId=function(a){if(YId(a))return!0;a=a.getStatus();return a>=400&&a<
500},ZId=function(a){var b;return y(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);Vd(c,2);if(b=MId(a.blob_,0,1)){var d=new OId,e=PId(d);d.readAsBinaryString(b);c=z(c,e,4)}else c=c.return(!0);return c}if(c.nextAddress!=2)return c.return(a.blob_.size!==a.originalBlobSize_);Zd(c);return c.return(!0)})};var $Id=function(a,b,c,d,e,f){Aj.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 Bm;this.boundary_="uploader-"+Mqb()+"-"+a.toIsoString();this.transferRequest_=null;this.bytesTransferred_=0;this.responseText_=this.responseHeaders_=this.responseCode_=null;this.state_="Ready";this.errorDescription_=null;this.eventHandler_=new Pi(this);Gt(this,this.eventHandler_)};Z($Id,CId);h=$Id.prototype;
h.run=function(){var a=Li(this.headers_);this.payload_.length!=null&&(a["Content-Length"]=this.payload_.length);a=jqb(a);a["X-Goog-Upload-Protocol"]="multipart";a["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new VX;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)};h.getBytesTransferred=function(){return this.bytesTransferred_};h.getResponseCode=function(){return this.responseCode_};
h.getResponseHeaders=function(){return this.responseHeaders_};h.getResponseText=function(){return this.responseText_};h.getErrorDescription=function(){return this.errorDescription_};h.getErrorType=function(){return null};h.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new RX("i")))};h.pause=function(){};h.unpause=function(){};
h.onTransferProgress_=function(a){this.bytesTransferred_=Math.max(0,a.loaded-this.metadataOverhead_);this.dispatchEvent(new RX("e"))};h.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 RX("h"))):(this.responseCode_=b,a=a.target,b=ut(a.getAllResponseHeaders()),this.responseHeaders_=kqb(b),this.responseText_=a.getResponseText(),this.state_="Complete",this.dispatchEvent(new RX("f")))};var aJd=function(){},bJd=function(a,b,c,d,e){e=e===void 0?!1:e;if(c instanceof DId)return new LId(a,"POST",b,c.inputElement_,d);if(typeof c==="string"||c instanceof String)return new $Id(a,"POST",b,c,d);var f=new TId(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 cJd=new bd("ScottyUploaderConfigFactory"),dJd=new bd("ScottyUploader",{factory:function(){return new aJd}}),YX=function(a,b){this.uploader=a;this.configFactory=b;this.internalTransferStatus=new rf;this.transferStatus=this.internalTransferStatus.asObservable()};
YX.prototype.upload=function(a,b){var c=this;b=b===void 0?this.configFactory.create(a):b;a=bJd(b.url,b.headers||{},a,b.metadata||"",!!b.withCredentials);this.transferSubscription&&!b.allowSimultaneousUpload&&this.transferSubscription.unsubscribe();this.transferSubscription=se(oe(a,"g"),oe(a,"e"),oe(a,"j"),oe(a,"h"),oe(a,"f"),oe(a,"i")).pipe(Af(oe(a,"f").pipe(nf(0)))).subscribe(function(d){c.internalTransferStatus.next(d)});a.run()};YX.\u0275fac=function(a){return new (a||YX)(Wc(dJd),Wc(cJd))};
YX.\u0275prov=Cc({token:YX,factory:YX.\u0275fac});var eJd=function(a){this.name_=a;this.files_=[];this.directories_=[];this.directoryMap_={}};eJd.prototype.getDirectory=function(a){return this.directoryMap_[a]};eJd.prototype.getName=function(){return this.name_};var Zwc={},ZX=function(a,b){var c=iv(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""},Ht=function(a,b){return ZX(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},Bsc=function(a){return Ht(a,"position")},jv=function(a,b,c){if(b instanceof tj){var d=b.x;b=b.y}else d=b,b=c;a.style.left=fJd(d,!1);a.style.top=fJd(b,!1)},Msc=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,
right:0,bottom:0}}},vtc=function(a){var b=iv(a),c=Ht(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=Ht(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},Jsc=function(a){for(var b=new Ej(0,Infinity,Infinity,0),c=Bj(a),d=c.document_.body,e=c.document_.documentElement,f=wOc(c.document_);a=
vtc(a);)if((!vj||a.clientHeight!=0||a!=d)&&a!=d&&a!=e&&Ht(a,"overflow")!="visible"){var g=fv(a),k=new tj(a.clientLeft,a.clientTop);g.x+=k.x;g.y+=k.y;b.top=Math.max(b.top,g.y);b.right=Math.min(b.right,g.x+a.clientWidth);b.bottom=Math.min(b.bottom,g.y+a.clientHeight);b.left=Math.max(b.left,g.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},wtc=function(a,b){b=b||wOc(document);var c=b||wOc(document);var d=fv(a),e=fv(c),f=ZX(c,"borderLeftWidth");var g=ZX(c,"borderRightWidth");var k=ZX(c,"borderTopWidth"),m=ZX(c,"borderBottomWidth");g=new Ej(parseFloat(k),parseFloat(g),parseFloat(m),parseFloat(f));c==wOc(document)?(f=d.x-c.scrollLeft,d=d.y-c.scrollTop):(f=d.x-e.x-g.left,d=d.y-e.y-g.top);a=gJd(a);e=c.clientHeight-a.height;g=c.scrollLeft;k=c.scrollTop;g+=Math.min(f,Math.max(f-(c.clientWidth-a.width),0));k+=
Math.min(d,Math.max(d-e,0));c=new tj(g,k);b.scrollLeft=c.x;b.scrollTop=c.y},fv=function(a){var b=iv(a),c=new tj(0,0);if(a==(b?iv(b):document).documentElement)return c;a=Msc(a);b=MOc(Bj(b));c.x=a.left+b.x;c.y=a.top+b.y;return c},hJd=function(a,b,c){if(b instanceof uj)c=b.height,b=b.width;else if(c==void 0)throw Error("wf");a.style.width=fJd(b,!0);a.style.height=fJd(c,!0)},fJd=function(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a},iJd=function(a){return Osc(a)},Osc=function(a){var b=
gJd;if(Ht(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},gJd=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=vj&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=Msc(a),new uj(a.right-a.left,a.bottom-a.top)):new uj(b,c)},Isc=function(a){var b=fv(a);a=Osc(a);return new Fj(b.x,b.y,a.width,a.height)},jJd=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+")")},Lt=function(a,b){a.style.display=b?"":"none"},gv=function(a){return"rtl"==Ht(a,"direction")},kJd=function(a){var b=ZX(a,"marginLeft"),c=ZX(a,"marginRight"),d=ZX(a,"marginTop");a=ZX(a,"marginBottom");return new Ej(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};var mJd=function(a,b,c){b=b===void 0?"single_file":b;c=c===void 0?[]:c;Aj.call(this);this.overlayTarget_=a;this.parentOverlay_=a!=null?a.parentNode:Qt(document,"scotty-overlay-parent");this.selectorType_=b;this.acceptTypes_=c;this.overlay_=lJd(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};Z(mJd,Aj);
var lJd=function(a,b,c,d){var e=document.createElement("input");e.setAttribute("type","file");e.setAttribute("name","Filedata");Cj(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),jv(e,new tj(b.offsetLeft,b.offsetTop)),e;a.parentOverlay_.appendChild(e);return e};mJd.prototype.click=function(){this.overlay_.click()};
mJd.prototype.onFilesSelected_=function(a){a:{try{var b=(new XMLHttpRequest).upload!==void 0;break a}catch(r){}b=!1}if(b){var c;a=Array.from((c=a.target.files)!=null?c:[]);c=[];if(this.selectorType_==="single_directory"&&(vj||nBc||wj)){c=new eJd("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(b=0;b<a.length;b++)for(var d=a[b],e=d.webkitRelativePath.split("/"),f=c,g=0;g<e.length;g++){var k=e[g];if(g==e.length-1){k!="."&&f.files_.push(d);break}var m=f.getDirectory(k);m==void 0&&(k=m=
new eJd(k),f.directoryMap_[k.getName()]=k,f.directories_.push(k));f=m}c=c.directories_}this.dispatchEvent(new nJd(a,c,null))}else a=a.target.value,a.match(/^c:\\fakepath\\/i)&&(a=a.substring(12)),this.dispatchEvent(new nJd([],[],new DId(a,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=lJd(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var oJd={SINGLE_FILE_SELECTION:"single_file",MULTIPLE_FILE_SELECTION:"multiple_file",SINGLE_DIRECTORY_SELECTION:"single_directory"},nJd=function(a,b){at.call(this,"q");this.files=a;this.directories=b};Z(nJd,at);var $X=function(a,b){this.elementRef=a;this.ngZone=b;this.destroyed=new vf(1);this.supportedFileExtensions=null;this.fileExtensionRejected=new ui;this.maxFileSize=null;this.fileSizeRejected=new ui;this.fileSelected=new ui;this.fileNameLengthRejected=new ui};
$X.prototype.ngAfterViewInit=function(){var a=this;this.getOverlay().pipe(zf(function(b){return se(oe(b,"m"),oe(b,"q"))}),Af(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){oe(b,"o").subscribe(function(){a.ngZone.run(function(){})})});this.getOverlay().subscribe(function(b){oe(b,"p").subscribe(function(){a.ngZone.run(function(){})})})};
$X.prototype.ngOnDestroy=function(){this.destroyed.next(!0);this.destroyed.complete()};$X.\u0275fac=function(a){return new (a||$X)(Ve(Gd),Ve(Tg))};$X.\u0275dir=af({type:$X,inputs:{supportedFileExtensions:"supportedFileExtensions",maxFileSize:"maxFileSize",maxFileNameLength:"maxFileNameLength"},outputs:{fileExtensionRejected:"fileExtensionRejected",fileSizeRejected:"fileSizeRejected",fileSelected:"fileSelected",fileNameLengthRejected:"fileNameLengthRejected"}});var aY=function(a,b){$X.call(this,a,b);this.overlay=this.fileSelectorOverlay=null};Z(aY,$X);
aY.prototype.getOverlay=function(){var a=this;this.overlay||(this.overlay=this.ngZone.runOutsideAngular(function(){return se(oe(a.elementRef.nativeElement,"mouseover"),oe(a.elementRef.nativeElement,"focus")).pipe(qf(),Af(a.destroyed),A(function(){a.fileSelectorOverlay=new mJd(a.elementRef.nativeElement,a.selectorType,pJd(a));a.fileSelectorOverlay.overlay_.style.display="none";return a.fileSelectorOverlay}),wf(1))}));return this.overlay};aY.prototype.onClick=function(){this.fileSelectorOverlay&&this.fileSelectorOverlay.click()};
var pJd=function(a){return(a.supportedFileExtensions||[]).map(function(b){return"."+b})};aY.\u0275fac=function(a){return new (a||aY)(Ve(Gd),Ve(Tg))};aY.\u0275dir=af({type:aY,hostBindings:function(a,b){a&1&&N("click",function(){return b.onClick()})},inputs:{selectorType:"selectorType"},features:[Ff]});var bY=function(a,b,c){aY.call(this,a,b);this.uploader=c;this.disableAutoUploadInternal=!1};Z(bY,aY);
bY.prototype.ngOnInit=function(){var a=this;this.fileSelected.pipe(Af(this.destroyed),te(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)}})};da.Object.defineProperties(bY.prototype,{disableAutoUpload:{configurable:!0,enumerable:!0,get:function(){return this.disableAutoUploadInternal},set:function(a){this.disableAutoUploadInternal=Sh(a)}}});
bY.\u0275fac=function(a){return new (a||bY)(Ve(Gd),Ve(Tg),Ve(YX,8))};bY.\u0275dir=af({type:bY,selectors:[["","xapUploaderTrigger",""],["","xapScottyUploaderTrigger",""]],inputs:{disableAutoUpload:"disableAutoUpload"},features:[Ff]});var cY=function(){this.SelectorType=oJd;this.includeTextLabel=this.disabled=!1;this.onSelect=new KO},lqb=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)}};cY.\u0275fac=function(a){return new (a||cY)};
cY.\u0275cmp=C({type:cY,selectors:[["b-attachment-selector"]],inputs:{disabled:"disabled",includeTextLabel:"includeTextLabel"},outputs:{onSelect:"onSelect"},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&&(K(0,
"div",0),F(1,mqb,2,3,"button",1)(2,nqb,3,3,"button",2),L());a&2&&(B(),G(b.includeTextLabel?2:1))},dependencies:[ZA,XA,TA,VA,hK,iz,MA,bY],encapsulation:2});var qJd=function(a,b){otd.call(this,a.size,a.name);var c=this;this.destroyed$=new rf;this.onTransferEventUpdate=function(d){var e=d.target;c.transfer=e;switch(d.type){case "e":case "g":case "j":c.state=1;c.transferredBytes=e.getBytesTransferred()||0;break;case "h":c.handleError(e);break;case "f":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 "i":c.state=4;c.transferredBytes=e.getBytesTransferred()||0;break;default:c.transferredBytes=e.getBytesTransferred()||0}};b.pipe(Af(this.destroyed$)).subscribe(function(d){c.onTransferEventUpdate(d)})};Z(qJd,otd);
qJd.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){pn("Unable to extract error message",b,d);var c;this.errorMessage=(c=a.getErrorDescription())!=null?c:""}this.errorMessage||(this.errorMessage="Error while uploading.")};qJd.prototype.cancel=function(){var a,b;(a=this.transfer)==null||(b=a.cancel)==null||b.call(a);this.unsubscribe()};
qJd.prototype.unsubscribe=function(){this.destroyed$.next();this.destroyed$.complete()};var dY=function(){this.activeSession=q(Zu)};dY.prototype.create=function(a){var b=Sba(cba(a.name));a=L9a(a.name)?a.name:b;return{url:Kt(OMc().setPath("/upload/"),"authuser",this.activeSession.getSessionIdentifier()).toString(),headers:{"X-Bv2-Encoded-Upload-File-Name":b,"X-Goog-Upload-File-Name":a},withCredentials:!0}};dY.\u0275fac=function(a){return new (a||dY)};dY.\u0275prov=Cc({token:dY,factory:dY.\u0275fac,providedIn:"root"});var eY=function(){this.uploader=q(dJd);this.uploaderConfigFactory=q(dY)};
eY.prototype.create=function(){return new YX(this.uploader,this.uploaderConfigFactory)};eY.\u0275fac=function(a){return new (a||eY)};eY.\u0275prov=Cc({token:eY,factory:eY.\u0275fac,providedIn:"root"});var fY=function(){LO.apply(this,arguments);this.scottyUploaderFactory=q(eY);this.uploads=[];this.onUploadCancel=new KO;this.onUploadComplete=new KO;this.uploadStates=ptd};Z(fY,LO);fY.\u0275dir=LO.\u0275dir;fY.prototype.ngOnDestroy=function(){LO.prototype.ngOnDestroy.call(this);for(var a=l(this.uploads),b=a.next();!b.done;b=a.next())b.value.cancel()};
fY.prototype.upload=function(a){var b=this,c=this.scottyUploaderFactory.create();c.upload(a);a=new qJd(a,c.transferStatus);c.transferStatus.pipe(Af(this.destroyed$)).subscribe(function(d){d.type==="f"&&b.onUploadComplete.emit()});return a};fY.prototype.cancel=function(a){a.cancel();this.onUploadCancel.emit(a)};fY.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(fY)))(b||fY)}}();
fY.\u0275cmp=C({type:fY,selectors:[["b-attachment-uploader"]],inputs:{uploads:"uploads"},outputs:{onUploadCancel:"onUploadCancel",onUploadComplete:"onUploadComplete"},features:[Ff],decls:1,vars:1,consts:[[1,"attachments"],[1,"attachment",3,"attachment-error"],[1,"attachment"],[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&&F(0,sqb,3,0,"div",0);a&2&&G(b.uploads.length>0?0:-1)},dependencies:[hK,iz,MA,$yd],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 rJd=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 sJd=function(a){otd.call(this,a.size,a.name);this.attachment=a};Z(sJd,otd);var tJd=function(a,b){a.state=1;$sd(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=hq(c)?iq(c):"Error while uploading."})};var wt=function(a){this.id_=a;this.opts={}};h=wt.prototype;h.setLabel=function(a){this.label_=a||void 0;return this};h.setOptions=function(a){this.opts=a;return this};h.setQuery=function(a){this.opts.query=a;return this};h.setParent=function(a){this.opts.parent=a;return this};h.toArray=function(){var a=Ki(this.opts,function(c){return c!==null});a=Bva(a)?null:a;a=[this.id_,this.label_,a];var b=yba(a,hBc);return a=a.slice(0,b+1)};
h.toString=function(){var a=this.toArray();return"("+jBc(a,function(b){return JSON.stringify(b)}).join(",")+")"};h.getId=function(){return this.id_};h.getLabel=function(){return this.label_};h.getOptions=function(){return Li(this.opts)};h.getQuery=function(){return this.opts.query};Ww(xt,wt);var uJd=["dr","fileIds","parent"],vJd=function(){var a=(new xt("all")).setOwnedByMe(!0);a.opts.drdis=!0;a.opts.includeFolders=!0;a.opts.sortKey=7;a.opts.ff=!0;return a};h=xt.prototype;h.setMode=function(a){this.opts.mode=a;return this};h.setOwnedByMe=function(a){a!==void 0?this.opts.ownedByMe=a:delete this.opts.ownedByMe;return this};h.setLabel=function(a){xt.superClass_.setLabel.call(this,a);return this};h.setQuery=function(a){xt.superClass_.setQuery.call(this,a);return this};
h.setParent=function(a){for(var b=l(uJd),c=b.next();!c.done;c=b.next())c=c.value,this.opts[c]&&delete this.opts[c];xt.superClass_.setParent.call(this,a);return this};h.setItems=function(a){this.opts.items=a};var wJd=function(){wt.call(this,"image-search")};Z(wJd,wt);h=wJd.prototype;h.setType=function(a){this.opts.type=a;return this};h.setSize=function(a){this.opts.imgsz=a;return this};h.setColor=function(a){this.opts.imgcolor=a;return this};h.setLabel=function(a){wt.prototype.setLabel.call(this,a);return this};h.setQuery=function(a){wt.prototype.setQuery.call(this,a);return this};h.setParent=function(a){wt.prototype.setParent.call(this,a);return this};var xJd=function(){wt.call(this,"maps")};Z(xJd,wt);h=xJd.prototype;h.setMode=function(a){this.opts.mode=a;return this};h.setZoom=function(a){this.opts.zoom=a;return this};h.setLabel=function(a){wt.prototype.setLabel.call(this,a);return this};h.setQuery=function(a){wt.prototype.setQuery.call(this,a);return this};h.setParent=function(a){wt.prototype.setParent.call(this,a);return this};var yJd=function(){wt.call(this,"photos")};Z(yJd,wt);h=yJd.prototype;h.setMode=function(a){this.opts.mode=a;return this};h.setType=function(a){this.opts.type=a;return this};h.setLabel=function(a){wt.prototype.setLabel.call(this,a);return this};h.setQuery=function(a){wt.prototype.setQuery.call(this,a);return this};h.setParent=function(a){wt.prototype.setParent.call(this,a);return this};h.removeDuplicates=function(){this.opts.rdv=!0;return this};var zJd=function(){wt.call(this,"url")};Z(zJd,wt);zJd.prototype.setType=function(a){this.opts.type=a;return this};zJd.prototype.setLabel=function(a){wt.prototype.setLabel.call(this,a);return this};zJd.prototype.setQuery=function(a){wt.prototype.setQuery.call(this,a);return this};zJd.prototype.setParent=function(a){wt.prototype.setParent.call(this,a);return this};var AJd=function(){wt.call(this,"video-search")};Z(AJd,wt);AJd.prototype.setLabel=function(a){wt.prototype.setLabel.call(this,a);return this};AJd.prototype.setQuery=function(a){wt.prototype.setQuery.call(this,a);return this};AJd.prototype.setParent=function(a){wt.prototype.setParent.call(this,a);return this};var BJd=function(){wt.call(this,"web")};Z(BJd,wt);BJd.prototype.setLabel=function(a){wt.prototype.setLabel.call(this,a);return this};BJd.prototype.setQuery=function(a){wt.prototype.setQuery.call(this,a);return this};BJd.prototype.setParent=function(a){wt.prototype.setParent.call(this,a);return this};var gY=function(){this.root_=void 0;this.items_=[];this.opts={}},CJd=function(a){switch(a){case "image-search":return new wJd;case "maps":return new xJd;case "photos":return new yJd;case "url":return new zJd;case "video-search":return new AJd;case "web":return new BJd}return new wt(a)};gY.prototype.addView=function(a){this.items_.push(typeof a==="string"?CJd(a):a);return this};
var DJd=function(a){return"("+jBc(a.items_,function(b){return b.toString()}).join(",")+")"},EJd=function(a){a=Ki(a.opts,function(b){return b!==null});return(a=Bva(a)?null:a)?JSON.stringify(vva(a,function(b){return b.toString()})):""};gY.prototype.toString=function(){if(this.root_){var a=["{root:",this.root_.toString(),",items:",DJd(this)],b=EJd(this);b&&(a.push(",options:"),a.push(b));a.push("}");return a.join("")}return DJd(this)};
gY.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 gY?e.getViews(a,b):e.getId()==a&&b.push(e)}return b};gY.prototype.getOptions=function(){return Li(this.opts)};gY.prototype.setCollapsible=function(a){this.opts.collapsible=a};var tqb=function(a){this.basePickerUrl_=a||"https://docs.google.com/picker";this.nav_=new gY};h=tqb.prototype;h.nav_=null;h.domHelper_=null;h.addView=function(a){this.nav_.addView(a);return this};h.getAppId=function(){return this.appId_};h.getBaseUrl=function(){return this.basePickerUrl_};h.getDomHelper=function(){return this.domHelper_};h.getViews=function(a){return this.nav_.getViews(a)};h.setAppId=function(a){this.appId_=a};h.setCallback=function(a){this.callback_=a;return this};Ww(uqb,tqb);var FJd=function(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""},GJd=function(a){return a.classList?a.classList:FJd(a).match(/\S+/g)||[]},HJd=function(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)},IJd=function(a,b){return a.classList?a.classList.contains(b):Ka(GJd(a),b)},JJd=function(a,b){if(a.classList)a.classList.add(b);else if(!IJd(a,b)){var c=FJd(a);HJd(a,c+(c.length>0?" "+b:b))}},KJd=function(a,b){if(a.classList)Array.prototype.forEach.call(b,
function(e){JJd(a,e)});else{var c={};Array.prototype.forEach.call(GJd(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;HJd(a,b)}},LJd=function(a,b){a.classList?a.classList.remove(b):IJd(a,b)&&HJd(a,Array.prototype.filter.call(GJd(a),function(c){return c!=b}).join(" "))},MJd=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){LJd(a,c)}):HJd(a,Array.prototype.filter.call(GJd(a),function(c){return!Ka(b,c)}).join(" "))};var Fsc=function(){if(pBc){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(Ba()))?a[1]:"0"}return Hv?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(Ba()))?a[0].replace(/_/g,"."):"10"):rBc?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(Ba()))?a[1]:""):sBc||tBc||uBc?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(Ba()))?a[1].replace(/_/g,"."):""):""}();var NJd=function(a){return(a=a.exec(Ba()))?a[1]:""},Dsc=function(){if(BBc)return NJd(/Firefox\/([0-9.]+)/);if(pv||nBc||mBc)return ABc;if(Gsc){if(Ga()||Ha()){var a=NJd(/CriOS\/([0-9.]+)/);if(a)return a}return NJd(/Chrome\/([0-9.]+)/)}if(Csc&&!Ga())return NJd(/Version\/([0-9.]+)/);if(CBc||DBc){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Ba()))return a[1]+"."+a[2]}else if(EBc)return(a=NJd(/Android\s+([0-9.]+)/))?a:NJd(/Version\/([0-9.]+)/);return""}();var Nsc=function(a,b){return(b&8&&gv(a)?b^4:b)&-9};yt.instance_=void 0;yt.getInstance=function(){return yt.instance_?yt.instance_:yt.instance_=new yt};yt.prototype.nextId_=0;yt.prototype.idPrefix_="";yt.prototype.setIdPrefix=function(a){this.idPrefix_=a};var cv=function(a){return a.idPrefix_+":"+(a.nextId_++).toString(36)};var zt=function(a){Aj.call(this);this.dom_=a||Bj();this.rightToLeft_=OJd;this.id_=null;this.inDocument_=!1;this.element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=null;this.wasDecorated_=!1};Ww(zt,Aj);zt.prototype.idGenerator_=yt.getInstance();var OJd=!1;h=zt.prototype;h.getId=function(){return this.id_||(this.id_=cv(this.idGenerator_))};
h.setId=function(a){this.parent_&&this.parent_.childIndex_&&(Dva(this.parent_.childIndex_,this.id_),Eva(this.parent_.childIndex_,a,this));this.id_=a};h.getElement=function(){return this.element_};h.getHandler=function(){this.googUiComponentHandler_||(this.googUiComponentHandler_=new Pi(this));return this.googUiComponentHandler_};
h.setParent=function(a){if(this==a)throw Error("xf");var b;if(b=a&&this.parent_&&this.id_){b=this.parent_;var c=this.id_;b=b.childIndex_&&c?Fva(b.childIndex_,c)||null:null}if(b&&this.parent_!=a)throw Error("xf");this.parent_=a;zt.superClass_.setParentEventTarget.call(this,a)};h.getParent=function(){return this.parent_};h.setParentEventTarget=function(a){if(this.parent_&&this.parent_!=a)throw Error("yf");zt.superClass_.setParentEventTarget.call(this,a)};h.getDomHelper=function(){return this.dom_};
h.createDom=function(){this.element_=this.dom_.createElement("DIV")};h.render=function(a){PJd(this,a)};h.renderBefore=function(a){PJd(this,a.parentNode,a)};var PJd=function(a,b,c){if(a.inDocument_)throw Error("zf");a.element_||a.createDom();b?b.insertBefore(a.element_,c||null):a.dom_.document_.body.appendChild(a.element_);a.parent_&&!a.parent_.inDocument_||a.enterDocument()};h=zt.prototype;
h.decorate=function(a){if(this.inDocument_)throw Error("zf");if(a&&this.canDecorate(a)){this.wasDecorated_=!0;var b=iv(a);this.dom_&&this.dom_.document_==b||(this.dom_=Bj(a));this.decorateInternal(a);this.enterDocument()}else throw Error("Af");};h.canDecorate=function(){return!0};h.decorateInternal=function(a){this.element_=a};h.enterDocument=function(){this.inDocument_=!0;QJd(this,function(a){!a.inDocument_&&a.getElement()&&a.enterDocument()})};
h.exitDocument=function(){QJd(this,function(a){a.inDocument_&&a.exitDocument()});this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};h.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);QJd(this,function(a){a.dispose()});!this.wasDecorated_&&this.element_&&bE(this.element_);this.parent_=this.element_=this.childIndex_=this.children_=null;zt.superClass_.disposeInternal.call(this)};
h.setModel=function(){};
h.addChild=function(){var a=this.children_?this.children_.length:0;if((void 0).inDocument_&&!this.inDocument_)throw Error("zf");if(a<0||a>(this.children_?this.children_.length:0))throw Error("Bf");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;La(this.children_)}else Eva(this.childIndex_,(void 0).getId());(void 0).setParent(this);Gba(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()};h.getContentElement=function(){return this.element_};
h.isRightToLeft=function(){this.rightToLeft_==null&&(this.rightToLeft_=gv(this.inDocument_?this.element_:this.dom_.document_.body));return this.rightToLeft_};h.hasChildren=function(){return!!this.children_&&this.children_.length!=0};var QJd=function(a,b){a.children_&&a.children_.forEach(b,void 0)};
zt.prototype.removeChild=function(a,b){if(a){var c=typeof a==="string"?a:a.getId();a=this.childIndex_&&c?Fva(this.childIndex_,c)||null:null;c&&a&&(Dva(this.childIndex_,c),La(this.children_,a),b&&(a.exitDocument(),a.element_&&bE(a.element_)),a.setParent(null))}if(!a)throw Error("Cf");return a};Ww(wqb,vqb);Ww(xqb,vqb);var RJd=Pw(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),SJd=Pw(["//apis.google.com/js/rpc.js"]),Pqb=Jh(RJd),Oqb=Jh(SJd),zqb=null;Ww(Bqb,Aj);Bqb.prototype.handleEvent=function(a){var b=new $C(a.event_);b.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";this.dispatchEvent(b)};Bqb.prototype.disposeInternal=function(){Bqb.superClass_.disposeInternal.call(this);dD(this.listenKeyIn_);dD(this.listenKeyOut_);delete this.element_};var TJd=new Map;TJd.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");TJd.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");TJd.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var UJd=new Set;UJd.add("application/vnd.google-apps.kix");UJd.add("application/vnd.google-apps.ritz");UJd.add("application/vnd.google-apps.punch");var fKd=function(a,b,c){var d=c&&Fi(c,1);c=VJd(c);switch(a[0].getId().getSourceId()){case 13:return WJd(a,b,d,c);case 3:return XJd(a,b,d,c);case 10:return YJd(a,b,d,c);case 27:return YJd(a,b,d,c);case 12:return ZJd(a,b);case 2:return $Jd(a,b,d,c);case 5:return aKd(a,b,d,c);case 9:return bKd(a,b,d,c);case 6:return cKd(a,b,d,c);case 25:return dKd(a,b,d,c);case 1:return Si(a[0],Zfd,26)?eKd(a,b,d,c):YJd(a,b,d,c);default:return{}}},cKd=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),
serviceId:"youtube",name:e.getName(),description:e.getDescription(),type:hY(e),lastEditedUtc:Y(e,nj,16).toDate().getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:Fi(e,13),thumbnails:iY(ML(e))}});return{action:b,docs:a,viewToken:d,view:c||"youtube",v2Translated:!0}},$Jd=function(a,b,c,d){var e=a.map(function(f){var g=f.getId().getId(),k=f.getMimeType(),m=f.getName(),r=hY(f),w=f.getLastModifiedTimestamp().toDate().getTime(),x=f.getUrl(),
D=Number(fCc(f)),H=f.getDescription(),J=f.getIconUrl(),O=iY(ML(f)),R=Y(f,NL,21).getShared(),V=Y(f,NL,21).getDownloadUrl(),ba=Fi(f,13);var pa=Y(f,NL,21);pa=$i(pa,9);var ua=Y(f,NL,21);ua=Fi(ua,11);g={id:g,serviceId:"docs",mimeType:k,name:m,type:r,lastEditedUtc:w,url:x,sizeBytes:D,description:H,iconUrl:J,thumbnails:O,isShared:R,downloadUrl:V,embedUrl:ba,copyable:pa,resourceKey:ua};k=Y(f,NL,21);$i(k,12)&&(g.uploadState="success",g.isNew=!0);Y(f,NL,21).hasVideoMetadata()&&(f=Y(f,NL,21).getVideoMetadata(),
f.hasDuration()&&(k=qn(Y(f,vn,2).getSeconds())+Y(f,vn,2).getNanos()/1E9,g.duration=k),g.aspectRatio=tm(f,1));return g});return{action:b,docs:e,viewToken:d,view:c||"all",extraUserInputs:gKd(a),v2Translated:!0}},aKd=function(a,b,c,d){a=a.map(function(e){var f=Y(e,igd,15);f=Y(f,Xfd,1);fq(e,10,Xfd,f);return{id:e.getId().getId(),serviceId:"web",mimeType:e.getMimeType(),name:e.getName(),type:hY(e),url:e.getUrl(),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",
thumbnails:iY(ML(e))}});return{action:b,docs:a,viewToken:d,view:c||"image-search",v2Translated:!0}},bKd=function(a,b,c,d){a=a.map(function(e){return{serviceId:"url",name:ML(e)[0].getUrl().split("/").pop(),type:hY(e),mimeType:e.getMimeType(),url:e.getUrl(),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:iY(ML(e))}});return{action:b,docs:a,viewToken:d,view:c||"url",v2Translated:!0}},eKd=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),
serviceId:"picasa",name:e.getName(),type:hY(e),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:iY(ML(e))}});return{action:b,docs:a,viewToken:d,view:c||"webcam",v2Translated:!0}},YJd=function(a,b,c,d){return{action:b,docs:a.map(hKd),viewToken:d,view:iKd(c||"upload",a),extraUserInputs:gKd(a),v2Translated:!0}},iKd=function(a,b){return b.some(function(c){var d;return((d=Y(c,KL,30))==null?void 0:d.getAgentId())===9})?a+"/gmailphotos":
a},XJd=function(a,b,c,d){var e=a.map(function(f){var g={id:f.getId().getId(),serviceId:"picasa",mimeType:f.getMimeType(),name:f.getName(),type:hY(f),lastEditedUtc:f.getLastModifiedTimestamp().toDate().getTime(),url:f.getUrl(),sizeBytes:Number(fCc(f)),description:f.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:iY(ML(f)),mediaKey:f.getId().getId(),parentId:f.getParentId()},k,m=(k=Y(f,bgd,18))==null?void 0:Y(k,agd,3);m&&(g.latitude=tm(m,1),
g.longitude=tm(m,2));var r;(f=rn((r=Y(f,bgd,18))==null?void 0:Hn(r,6)))&&(g.version=f);return g});return{action:b,docs:e,viewToken:d,view:c||"photos",extraUserInputs:gKd(a),v2Translated:!0}},WJd=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),serviceId:"et",name:ML(e)[0].getUrl().split("/").pop(),description:e.getDescription(),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:iY(ML(e),"etjpg")}});return{action:b,docs:a,viewToken:d,
view:c||"et",v2Translated:!0}},dKd=function(a,b,c,d){a=a.map(function(e){var f=e.getId().getId(),g=d["2"];return{id:f,serviceId:g.type!=="gmail_themes"&&g.parent==="6226252643674576769"?"picasa":"static_themes",name:e.getName(),mimeType:e.getMimeType(),type:hY(e),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:e.getUrl(),thumbnails:iY(ML(e))}});return{action:b,docs:a,viewToken:d,view:c||"photos",v2Translated:!0}},
ZJd=function(a,b){a=a.map(function(c){var d=Y(c,$fd,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}},VJd=function(a){if(!a)return{};var b=Fi(a,3);b=b&&JSON.parse(b)||{};return{0:Fi(a,1),1:a.getLabel(),2:b}},iY=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}})},gKd=function(a){return{isAttachment:a.some(function(b){return $i(b,31)})}},hKd=function(a){var b,c={id:(b=a.getId())==null?void 0:b.getId(),serviceId:jKd(a),mimeType:a.getMimeType(),name:a.getName(),type:hY(a),sizeBytes:Number(fCc(a)),description:a.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:iY(ML(a)),isNew:!0};if(b=Y(a,KL,30)){c.dataUrl=
Fi(b,1)||null;a:{var d=Y(a,KL,30);switch(d.getAgentId()){case 9:d=lm(d,fgd,2,hgd);d={remoteRefs:d&&Fi(d,1)};break a;case 10:case 15:d=lm(d,egd,4,hgd);var e=ML(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=Fi(b,9)||null;c.uploadState=kKd(b)||null}(d=b&&lm(b,egd,4,hgd))&&(c.id=d.getPhotoId());(d=b&&lm(b,ggd,5,hgd))&&
(c.contentId=Fi(d,1));(d=b&&lm(b,cgd,7,hgd))&&(c.contentId=Fi(d,1));(d=b&&lm(b,dgd,6,hgd))&&(c.contentId=Fi(d,1));(b==null?void 0:b.getAgentId())===1&&(c.mediaKey=a.getId().getId());return c},jKd=function(a){var b;switch(((b=Y(a,KL,30))==null?void 0:b.getAgentId())||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},hY=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"}},kKd=function(a){switch(a==null?void 0:Ri(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 lKd=function(a){this.obj_=a};h=lKd.prototype;h.value=function(){return this.obj_};h.setWidth=function(a){this.obj_.width=a;return this};h.getWidth=function(){return this.obj_.width};h.setHeight=function(a){this.obj_.height=a;return this};h.getHeight=function(){return this.obj_.height};h.setStyle=function(a){this.obj_.style=a;return this};h.getStyle=function(){return this.obj_.style};var mKd=function(a){this.obj_=a||{}};h=mKd.prototype;h.value=function(){return this.obj_};h.setUrl=function(a){this.obj_.url=a;return this};h.getUrl=function(){return this.obj_.url};h.setStyle=function(a){this.obj_.style=a;return this};h.getStyle=function(){return this.obj_.style};h.setId=function(a){this.obj_.id=a;return this};h.getId=function(){return this.obj_.id};h.getContext=function(){return this.obj_.context};var nKd=function(a){a.obj_.attributes=a.obj_.attributes||{};return new lKd(a.obj_.attributes)};var oKd=function(){mKd.apply(this,arguments)};Z(oKd,mKd);var pKd=Pw(["https://apis.google.com/js/api.js"]),qKd=Jh(pKd),uKd=function(a,b,c){c=c===void 0?{}:c;var d=!1,e=rKd(a,b,c).then(function(g){d=!0;return g}),f=dQc().then(function(){return d?rKd(a,b,c):sKd(b,c).then(function(g){return tKd(g,a)})});return aPc([e,f])},rKd=function(a,b,c){c=c===void 0?{}:c;return vKd(b,c).then(function(d){return tKd(d,a)})},tKd=function(a,b){var c=b.lastIndexOf("gapi.",0)==0?b.slice(5):b;return a[c]?WOc(a[c]):new eE(function(d,e){var f=ht(function(){e(Error("Df"))},3E4);
a.load(b,{callback:function(){ra.clearTimeout(f);d(a[c])},onerror:function(g){ra.clearTimeout(f);e(g)}})})},vKd=function(a,b){b=b===void 0?{}:b;return a.gapi&&a.gapi.load?WOc(a.gapi):sKd(a,b)},sKd=function(a,b){b=b===void 0?{}:b;return k$a(qKd,{document:a.document,attributes:b}).then(function(){return a.gapi})},wKd=function(){};
wKd.prototype.load=function(a,b,c){b=b===void 0?window:b;c=c===void 0?{}:c;var d=Date.now();return uKd(a,b,c).then(function(e){var f=Date.now();return{library:e,loadStartMs:d,loadEndMs:f}},function(e){throw e instanceof Error?e:Error(String(e));})};var Lqb=function(){Oi.call(this);this.gapiLoader_=new wKd;this.origin_=null;this.gapiPickerIframeResolver_=cPc();this.gapiIframesResolver_=cPc();this.gapiIframesResolver_.promise.then(null,function(){});this.gapiPickerIframeResolver_.promise.then(null,function(){});this.hostMessageHandlerInternal_={}};Z(Lqb,Oi);
var xKd=function(a,b){var c=c===void 0?{}:c;var d=sv("gapi.iframes",b);return d?(a=Date.now(),WOc({library:d,loadStartMs:a,loadEndMs:a})):a.gapiLoader_.load("gapi.iframes",b,c)},yKd=function(a,b,c,d,e,f){var g=!1;g=g===void 0?!1:g;xKd(a,hv(b.ownerDocument)).then(function(k){var m=k.library;a.gapiIframesResolver_.resolve(m);k=a.gapiPickerIframeResolver_;var r=k.resolve,w=g;w=w===void 0?!1:w;var x={};x["host-message-handler"]=c;a.hostMessageHandlerInternal_=x;var D=It(d);D=It(D);D=mD(lD(kD(new ot,D.scheme_),
D.getDomain()),D.port_).toString();a.origin_=D;D=(new oKd).setUrl(d);D.obj_.where=b;D.obj_.allowPost=w;D.obj_.messageHandlers=x;w=sv("makeWhiteListIframesFilter",m)([a.origin_]);D.obj_.messageHandlersFilter=w;e!=null&&D.setId(e);f!=null&&(D.obj_.rpctoken=f);nKd(D).setStyle({display:"block","min-width":"100%",width:"1px"}).setHeight("100%");nKd(D).value().allow="camera 'src' "+a.origin_;m=m.getContext().openChild(D.value());r.call(k,m)},function(k){a.gapiIframesResolver_.reject(k);a.gapiPickerIframeResolver_.reject(k)});
return a.gapiPickerIframeResolver_.promise},zKd=function(a,b){return $Oc([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,sv("makeWhiteListIframesFilter",c)([a.origin_])):XOc(Error("Ef"))})};Lqb.prototype.disposeInternal=function(){AKd(this);Oi.prototype.disposeInternal.call(this)};
var AKd=function(a){a.gapiPickerIframeResolver_.promise.then(function(b){b&&(b.unregister("host-message-handler"),delete a.hostMessageHandlerInternal_["host-message-handler"])})};var BKd=function(){this.nextId=0};BKd.prototype.getUniqueId=function(){return":"+(this.nextId++).toString(36)};var DKd=function(a,b){switch(a.action){case "select-contacts":a=CKd(a.contacts);break;case "visibility":a=a.visible;a=(new mgd).setCommand(7).setVisible(a);var c={};c["iframe-command"]=a.serialize();a=c;break;default:a=null}return a?zKd(b,a):WOc()},CKd=function(a){if(!a||a.length==0)return null;var b=new mgd;b.setCommand(11);var c=new BKd;a.forEach(function(d){if(d.email){var e=(new LL).setName(d.name?d.name:d.email);d=(new $fd).addEmail(d.email);e=hj(e,$fd,27,d).setId((new JL).setId(c.getUniqueId()).setSourceId(12))}else e=
null;e&&b.addItem(e)});a={};a["iframe-command"]=b.serialize();return a};var FKd=function(a,b,c){Aj.call(this);this.target=a;this.handle=b||a;this.limits=c||new Fj(NaN,NaN,NaN,NaN);this.document_=iv(a);this.eventHandler_=new Pi(this);Gt(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;Cj(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=EKd};Ww(FKd,Aj);
var EKd=ra.document&&ra.document.documentElement&&!!ra.document.documentElement.setCapture&&!!ra.document.releaseCapture;h=FKd.prototype;h.getHandler=function(){return this.eventHandler_};h.setEnabled=function(a){this.enabled_=a};h.disposeInternal=function(){FKd.superClass_.disposeInternal.call(this);cD(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.eventHandler_.removeAll();this.useSetCapture_&&this.document_.releaseCapture();this.handle=this.target=null};
h.startDrag=function(a){var b=a.type=="mousedown";if(!this.enabled_||this.dragging_||b&&(a.event_.button!=0||Hv&&a.ctrlKey))this.dispatchEvent("earlycancel");else if(this.dispatchEvent(new GKd("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(hv(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=MOc(Bj(this.document_))}};
h.endDrag=function(a,b){this.eventHandler_.removeAll();this.useSetCapture_&&this.document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new GKd("end",this,a.clientX,a.clientY,a,HKd(this,this.deltaX),IKd(this,this.deltaY),b||a.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
h.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 GKd("start",this,a.clientX,a.clientY,a)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(a);return}}c=JKd(this,b,c);b=c.x;c=c.y;this.dragging_&&this.dispatchEvent(new GKd("beforedrag",this,
a.clientX,a.clientY,a,b,c))&&(KKd(this,a,b,c),a.preventDefault())}};var JKd=function(a,b,c){var d=MOc(Bj(a.document_));b+=d.x-a.pageScroll.x;c+=d.y-a.pageScroll.y;a.pageScroll=d;a.deltaX+=b;a.deltaY+=c;return new tj(HKd(a,a.deltaX),IKd(a,a.deltaY))};FKd.prototype.onScroll_=function(a){var b=JKd(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;KKd(this,a,b.x,b.y)};
var KKd=function(a,b,c,d){a.target.style.left=c+"px";a.target.style.top=d+"px";a.dispatchEvent(new GKd("drag",a,b.clientX,b.clientY,b,c,d))},HKd=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))},IKd=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))};FKd.prototype.isDragging=function(){return this.dragging_};
var GKd=function(a,b,c,d,e,f,g){at.call(this,a);this.clientX=c;this.clientY=d;this.left=f!==void 0?f:b.deltaX;this.top=g!==void 0?g:b.deltaY};Ww(GKd,at);var jY=function(a){this.map_=new Map;var b=arguments.length;if(b>1){if(b%2)throw Error("jb");for(var c=0;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else a&&this.addAll(a)};h=jY.prototype;h.getCount=function(){return this.map_.size};h.getValues=function(){return Array.from(this.map_.values())};h.getKeys=function(){return Array.from(this.map_.keys())};h.containsKey=function(a){return this.map_.has(a)};
h.equals=function(a,b){var c=this;b=b===void 0?function(d,e){return d===e}:b;return this===a?!0:this.map_.size!=a.getCount()?!1:this.getKeys().every(function(d){return b(c.map_.get(d),a.get(d))})};h.isEmpty=function(){return this.map_.size==0};h.clear=function(){this.map_.clear()};h.remove=function(a){return this.map_.delete(a)};h.get=function(a,b){return this.map_.has(a)?this.map_.get(a):b};h.set=function(a,b){this.map_.set(a,b);return this};
h.addAll=function(a){if(a instanceof jY){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)};h.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)})};h.clone=function(){return new jY(this)};var LKd=Pw(["about:blank"]),MKd=Pw(["javascript:undefined"]),NKd=Jh(LKd);yh(NKd);var OKd=Jh(MKd);yh(OKd);Ww(At,zt);h=At.prototype;h.focusHandler_=null;h.visible_=!1;h.bgEl_=null;h.bgIframeEl_=null;h.tabCatcherElement_=null;h.backwardTabWrapInProgress_=!1;h.getCssClass=function(){return"goog-modalpopup"};h.getBackgroundElement=function(){return this.bgEl_};h.createDom=function(){At.superClass_.createDom.call(this);var a=this.getElement();KJd(a,Aa(this.getCssClass()).split(" "));a.tabIndex=0;Lt(a,!1);PKd(this);QKd(this)};
var PKd=function(a){if(a.useIframeMask_&&!a.bgIframeEl_){var b=a.getDomHelper().createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});sOc(b,NKd);a.bgIframeEl_=b;a.bgIframeEl_.className=a.getCssClass()+"-bg";Lt(a.bgIframeEl_,!1);jJd(a.bgIframeEl_,0)}a.bgEl_||(a.bgEl_=a.getDomHelper().createDom("DIV",a.getCssClass()+"-bg"),Lt(a.bgEl_,!1))},QKd=function(a){a.tabCatcherElement_||(a.tabCatcherElement_=a.getDomHelper().createElement("SPAN"),Lt(a.tabCatcherElement_,!1),a.tabCatcherElement_.tabIndex=
0,a.tabCatcherElement_.style.position="absolute")};h=At.prototype;h.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};h.canDecorate=function(a){return!!a&&a.tagName=="DIV"};h.decorateInternal=function(a){At.superClass_.decorateInternal.call(this,a);a=Aa(this.getCssClass()).split(" ");KJd(this.getElement(),a);PKd(this);QKd(this);this.getElement().tabIndex=0;Lt(this.getElement(),!1)};
h.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);At.superClass_.enterDocument.call(this);a=this.tabCatcherElement_;b=this.getElement();b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);this.focusHandler_=new Bqb(this.getDomHelper().document_);this.getHandler().listen(this.focusHandler_,"focusin",this.onFocus);RKd(this,!1)};
h.exitDocument=function(){this.isVisible()&&this.setVisible(!1);Ii(this.focusHandler_);At.superClass_.exitDocument.call(this);bE(this.bgIframeEl_);bE(this.bgEl_);bE(this.tabCatcherElement_)};
h.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_&&RKd(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_);SKd(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)bD(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_)bD(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 RKd=function(a,b){a.modalAriaVisibilityHelper_||(a.modalAriaVisibilityHelper_=new Cqb(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_||abb(d,"hidden")||(ls(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}};
At.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};var SKd=function(a,b){a.bgIframeEl_&&Lt(a.bgIframeEl_,b);a.bgEl_&&Lt(a.bgEl_,b);Lt(a.getElement(),b);Lt(a.tabCatcherElement_,b)};h=At.prototype;h.onShow=function(){this.dispatchEvent("show")};h.onHide=function(){SKd(this,!1);this.dispatchEvent("hide")};h.isVisible=function(){return this.visible_};h.focus=function(){this.focusElement_()};
h.resizeBackground_=function(){this.bgIframeEl_&&Lt(this.bgIframeEl_,!1);this.bgEl_&&Lt(this.bgEl_,!1);var a=this.getDomHelper().document_;var b=TKd(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_&&(Lt(this.bgIframeEl_,!0),hJd(this.bgIframeEl_,c,a));this.bgEl_&&(Lt(this.bgEl_,!0),hJd(this.bgEl_,c,a))};
h.reposition=function(){var a;if(Bsc(this.getElement())=="fixed")var b=a=0;else b=MOc(this.getDomHelper()),a=b.x,b=b.y;var c=iJd(this.getElement());var d=TKd(this);a=Math.max(a+d.width/2-c.width/2,0);b=Math.max(b+d.height/2-c.height/2,0);jv(this.getElement(),a,b);jv(this.tabCatcherElement_,a,b)};h.onFocus=function(a){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():a.target==this.tabCatcherElement_&&ht(this.focusElement_,0,this)};h.focusElement_=function(){try{this.getElement().focus()}catch(a){}};
var TKd=function(a){a=a.getDomHelper().document_;return $D(hv(a)||window)};At.prototype.disposeInternal=function(){Ii(this.popupShowTransition_);this.popupShowTransition_=null;Ii(this.popupHideTransition_);this.popupHideTransition_=null;Ii(this.bgShowTransition_);this.bgShowTransition_=null;Ii(this.bgHideTransition_);this.bgHideTransition_=null;At.superClass_.disposeInternal.call(this)};Ww(Ft,At);h=Ft.prototype;h.escapeToCancel_=!0;h.hasTitleCloseButton_=!0;h.modal_=!0;h.backgroundElementOpacity_=.5;h.title_="";h.dragger_=null;h.disposeOnHide_=!1;h.titleEl_=null;h.titleTextEl_=null;h.titleTextId_=null;h.titleCloseEl_=null;h.contentEl_=null;h.buttonEl_=null;h.getCssClass=function(){return this.class_};h.setTitle=function(a){this.title_=a;this.titleTextEl_&&DOc(this.titleTextEl_,a)};h.getTitle=function(){return this.title_};h.getContent=function(){return""};
h.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};var UKd=function(a){a.getElement()||a.render();return a.getElement()};Ft.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Ft.superClass_.getBackgroundElement.call(this)};var VKd=function(a,b){a.backgroundElementOpacity_=b;a.getElement()&&(b=a.getBackgroundElement())&&jJd(b,a.backgroundElementOpacity_)};Ft.prototype.handleDrag=function(){};
var WKd=function(a,b){var c=Aa(a.class_+"-title-draggable").split(" ");a.getElement()&&(b?KJd(a.titleEl_,c):MJd(a.titleEl_,c));b&&!a.dragger_?(b=new FKd(a.getElement(),a.titleEl_),a.dragger_=b,KJd(a.titleEl_,c),Cj(a.dragger_,"start",a.setDraggerLimits_,!1,a),Cj(a.dragger_,"drag",a.handleDrag,!1,a)):!b&&a.dragger_&&(a.dragger_.dispose(),a.dragger_=null)};h=Ft.prototype;
h.createDom=function(){Ft.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"));AOc(a,this.titleEl_,this.contentEl_=b.createDom("DIV",{className:this.class_+"-content",id:c}),this.buttonEl_=
b.createDom("DIV",this.class_+"-buttons"));Zab(this.titleTextEl_,"heading");Zab(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;bbb(this.titleCloseEl_,"Close");Zab(a,"dialog");ls(a,"labelledby",this.titleTextId_||"");Lt(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(a=this.buttons_,a.element_=this.buttonEl_,a.render());Lt(this.buttonEl_,!!this.buttons_);VKd(this,this.backgroundElementOpacity_)};
h.decorateInternal=function(a){Ft.superClass_.decorateInternal.call(this,a);a=this.getElement();var b=this.class_+"-content";this.contentEl_=ZD(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_=ZD(document,null,b,a)[0])?(this.titleTextEl_=ZD(document,null,c,this.titleEl_)[0],this.titleCloseEl_=ZD(document,null,d,this.titleEl_)[0]):
(this.titleEl_=this.getDomHelper().createDom("DIV",b),a.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=IOc(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=yOc("SPAN",{className:c,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;ls(a,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.getDomHelper().createDom("SPAN",d),this.titleEl_.appendChild(this.titleCloseEl_));
Lt(this.titleCloseEl_,this.hasTitleCloseButton_);b=this.class_+"-buttons";(this.buttonEl_=ZD(document,null,b,a)[0])?(this.buttons_=new Et(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()),Lt(this.buttonEl_,!!this.buttons_));VKd(this,this.backgroundElementOpacity_)};
h.enterDocument=function(){Ft.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_);WKd(this,!0);this.getHandler().listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var a=this.getElement();Zab(a,"dialog");this.titleTextEl_.id!==""&&ls(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()&&RKd(this,!1)}};h.exitDocument=function(){this.isVisible()&&this.setVisible(!1);WKd(this,!1);Ft.superClass_.exitDocument.call(this)};h.setVisible=function(a){a!=this.isVisible()&&(this.inDocument_||this.render(),Ft.superClass_.setVisible.call(this,a))};h.onShow=function(){Ft.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
h.onHide=function(){Ft.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.disposeOnHide_&&this.dispose()};h.setDraggerLimits_=function(){var a=this.getDomHelper().document_,b=$D(hv(a)||window),c=Math.max(a.body.scrollWidth,b.width);a=Math.max(a.body.scrollHeight,b.height);var d=iJd(this.getElement());Bsc(this.getElement())=="fixed"?this.dragger_.limits=new Fj(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height)):this.dragger_.limits=new Fj(0,0,c-d.width,a-d.height)};
h.onTitleCloseClick_=function(){XKd(this)};var XKd=function(a){if(a.hasTitleCloseButton_){var b=a.buttons_,c=b&&b.cancelButton_;c?(b=b.get(c),a.dispatchEvent(new YKd(c,b))&&a.setVisible(!1)):a.setVisible(!1)}},ZKd=function(a){a.hasTitleCloseButton_=!1;a.titleCloseEl_&&Lt(a.titleCloseEl_,a.hasTitleCloseButton_)};Ft.prototype.setDisposeOnHide=function(a){this.disposeOnHide_=a};Ft.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Ft.superClass_.disposeInternal.call(this)};
Ft.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 YKd(a,b))&&this.setVisible(!1)}};
Ft.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 YKd(f,b))):e||(b=!0)}else{if(a.keyCode==9&&a.shiftKey&&e==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(m){}ht(this.resetBackwardTabWrap_,0,this)}}else if(a.keyCode==13){if(e.tagName=="BUTTON"&&!e.disabled)f=e.name;
else if(e==this.titleCloseEl_)XKd(this);else if(d){var g=d.defaultButton_,k=g&&d.getButton(g);e=(e.tagName=="TEXTAREA"||e.tagName=="SELECT"||e.tagName=="A")&&!e.disabled;!k||k.disabled||e||(f=g)}f&&d&&(c=!0,b=this.dispatchEvent(new YKd(f,String(d.get(f)))))}else e!=this.titleCloseEl_||a.keyCode!=32&&a.key!=" "||XKd(this);if(b||c)a.stopPropagation(),a.preventDefault();b&&this.setVisible(!1)};var YKd=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};Ww(YKd,at);
var Et=function(a){jY.call(this);this.dom_=a||Bj();this.class_="goog-buttonset";this.cancelButton_=this.element_=this.defaultButton_=null};Ww(Et,jY);Et.prototype.clear=function(){jY.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};Et.prototype.set=function(a,b,c,d){jY.prototype.set.call(this,a,b);c&&(this.defaultButton_=a);d&&(this.cancelButton_=a);return this};var Bt=function(a,b,c,d){return a.set(b.key,b.caption,c,d)};h=Et.prototype;
h.render=function(){if(this.element_){Qqb(this.element_,Lj);var a=Bj(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)}};h.decorate=function(a){if(a&&a.nodeType==1){this.element_=a;a=YD("BUTTON",this.element_);for(var b,c,d,e=0;b=a[e];e++)if(c=b.name||b.id,d=IOc(b)||b.value,c){var f=e==0;this.set(c,d,f,b.name=="cancel");f&&JJd(b,this.class_+"-default")}}};h.getElement=function(){return this.element_};
h.getDomHelper=function(){return this.dom_};h.getButton=function(a){for(var b=YD("BUTTON",this.element_),c,d=0;c=b[d];d++)if(c.name==a||c.id==a)return c;return null};var Dqb={key:"ok",caption:"OK"},Eqb={key:"cancel",caption:"Cancel"},$Kd={key:"yes",caption:"Yes"},aLd={key:"no",caption:"No"},bLd={key:"save",caption:"Save"},cLd={key:"continue",caption:"Continue"};
typeof document!="undefined"&&(Bt(new Et,Dqb,!0,!0),Bt(Bt(new Et,Dqb,!0),Eqb,!1,!0),Bt(Bt(new Et,$Kd,!0),aLd,!1,!0),Bt(Bt(Bt(new Et,$Kd),aLd,!0),Eqb,!1,!0),Bt(Bt(Bt(new Et,cLd),bLd),Eqb,!0,!0));Ww(Fqb,Ft);var Gqb=function(a,b){Aj.call(this);this.element_=a;a=BOc(this.element_)?this.element_:this.element_?this.element_.body:null;this.isRtl_=!!a&&gv(a);this.listenKey_=Cj(this.element_,wj?"DOMMouseScroll":"mousewheel",this,b)};Ww(Gqb,Aj);
Gqb.prototype.handleEvent=function(a){var b=0,c=0,d=a.event_;d.type=="mousewheel"?(a=dLd(-d.wheelDelta),d.wheelDeltaX!==void 0?(b=dLd(-d.wheelDeltaX),c=dLd(-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 eLd(a,d,b,c);this.dispatchEvent(b)};
var dLd=function(a){return vj&&(Hv||qBc)&&a%40!=0?a:a/40};Gqb.prototype.disposeInternal=function(){Gqb.superClass_.disposeInternal.call(this);dD(this.listenKey_);this.listenKey_=null};var eLd=function(a,b,c,d){$C.call(this,b);this.type="mousewheel";this.detail=a;this.deltaX=c;this.deltaY=d};Ww(eLd,$C);var Nqb;var fLd=Pw(["https://about:blank"]),gLd=Pw(['javascript:""']),hLd=Pw(["about:blank"]);Ww(Mt,Fqb);h=Mt.prototype;h.url_="";h.iframe_=null;h.iframeLoaded_=!1;h.loadedFired_=!1;h.callback_=function(){};h.enterDocument=function(){Mt.superClass_.enterDocument.call(this);Iqb(this.getBackgroundElement(),this.getHandler())};
h.render=function(a){var b=this;Mt.superClass_.render.call(this,a);this.useGapi_?xKd(this.iframeManager_,window).then(function(){return iLd(b)}).then(null,function(c){return void b.handleError_(c)}):jLd(this);this.enablePopover_&&(this.getBackgroundElement().setAttribute("popover","manual"),UKd(this).setAttribute("popover","manual"))};
var iLd=function(a){var b=a.getDomHelper().createDom("div",["picker-dialog-content","picker-frame"]);Lt(b,!1);a.getContentElement().appendChild(b);return yKd(a.iframeManager_,b,function(c){var d=ogd(c["iframe-command"]);switch(d.getCommand()){case 1:c=a.callback_;d=Y(d,kgd,2);var e="";switch(d.getStatus()){case 2:e="cancel";break;case 1:e="picked";break;case 3:e="error"}var f=d.getItemList(en);d=f.length===0?{action:e}:fKd(f,e,d.getInternalOnlyV1ViewInfo());c.call(a,d);a.setVisible(!1);break;case 4:ZKd(a);
a.callback_({action:"loaded"});break;case 7:case 8:c=a.callback_;a:{e=d.getCommand();f=Y(d,kgd,2);switch(e){case 7:e="uploadScheduled";break;case 8:e="uploadStateChange";break;default:d={};break a}d=f.getItemList(en);if(d.length===0)d={action:e};else{var g=f.getInternalOnlyV1ViewInfo();f=g&&Fi(g,1);g=VJd(g);d=YJd(d,e,f,g)}}c.call(a,d)}},a.url_,a.targetId_,a.rpcToken_).then(function(c){a.iframe_=c.getIframeEl();kLd(a);Lt(a.iframe_.parentElement,!0);JJd(a.getElement(),"picker-dialog");lLd(a);return c})},
jLd=function(a){a.iframe_=a.dom_.createDom("IFRAME",{id:a.targetId_,name:a.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});(0,Lh.setIframeSrc)(a.iframe_,mLd(a));JJd(a.getElement(),"picker-dialog");a.getContentElement().appendChild(a.iframe_);a.getHandler().listen(a.iframe_,"load",function(){return void kLd(a)});a.iframe_.src=a.url_;lLd(a)},oLd=function(a){nLd(a,Dj(function(b){b.setAuthToken(this.targetId_,this.rpcToken_)},a))},lLd=function(a){var b=Jt(It(a.url_),"title");b&&a.setTitle(b)},
mLd=function(a){return qba()>=7&&a.url_.lastIndexOf("https",0)==0?Jh(fLd):pv?Jh(gLd):Jh(hLd)},kLd=function(a){oLd(a);a.iframeLoaded_=!0;a.iframe_.tabIndex=0;a.isVisible()&&a.focus()};Mt.prototype.handleKeydown_=function(a){a.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),a.stopPropagation(),a.preventDefault())};var nLd=function(a,b){var c=a.gadgetsDomHelper_;Aqb(function(){b(c.getWindow().gadgets.rpc)},c)};
Mt.prototype.setUrl=function(a){a=Kt(new ot(a),"rpcService",this.targetId_);Kt(a,"rpctoken",this.rpcToken_);GMc(a,"rpctoken="+this.rpcToken_);kD(a,"https");this.url_=a.toString();this.iframe_&&(this.iframe_.src=this.url_)};Mt.prototype.setAppId=function(a){this.appId_=a;this.loadedFired_&&pLd(this)};Mt.prototype.setCallback=function(a){this.callback_=a;nLd(this,Dj(function(b){b.register(this.targetId_,Dj(this.handlePickerAction_,this))},this))};
Mt.prototype.handlePickerAction_=function(a){var b=a.action;b=="loaded"&&(this.loadedFired_=!0,this.sendCommand(new xqb(this.isVisible())),pLd(this),ZKd(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 pLd=function(a){a.appId_&&a.sendCommand(new wqb(a.appId_,window.location.protocol+"//"+window.location.host))};h=Mt.prototype;
h.setRelayUrl=function(a){nLd(this,Dj(function(b){b.setRelayUrl(this.targetId_,a)},this))};h.sendCommand=function(a){var b=this;this.useGapi_&&DKd(a,this.iframeManager_).then(null,function(c){return void b.handleError_(c)});nLd(this,Dj(function(c){c.call(this.targetId_,"picker",null,a)},this))};
h.resizePicker_=function(){var a=this.getDomHelper().document_;a=hv(a)||window;if(Jt(It(this.url_),"ignoreLimits")=="true")a=new uj(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(Jt(It(this.url_),"shadeDialog")=="true"){var b=UKd(this);b=kJd(b);var c=$D(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 uj(a>0?a:0,c>0?c:0)}else(b=this.preferredDialogWidth_)?(b=Math.max(320,Math.min(1051,b)),(c=this.preferredDialogHeight_)||
(c=$D(a).height*.85),c=Math.max(480,Math.min(650,c))):(b=$D(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=$D(a),b=Math.min(b,Math.max(a.width,320)),c=Math.min(c,Math.max(a.height,480)),a=new uj(b,c);hJd(this.getContentElement(),a);this.reposition()};
h.reposition=function(){if(Jt(It(this.url_),"shadeDialog")=="true"){var a=iJd(this.getElement()),b=$D(this.getDomHelper().getWindow());a=Math.floor(b.width/2-a.width/2);b=UKd(this);if(b=kJd(b)){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=MOc(this.getDomHelper()).y;jv(this.getElement(),a,b)}else Mt.superClass_.reposition.call(this)};
h.setVisible=function(a){if(a!=this.isVisible()){if(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_))}if(this.enablePopover_){b=this.getBackgroundElement();var c=UKd(this);"showPopover"in c&&(a?
(b.showPopover(),c.showPopover()):(b.hidePopover(),c.hidePopover()))}}Mt.superClass_.setVisible.call(this,a);this.sendCommand(new xqb(a))};h.focus=function(){Mt.superClass_.focus.call(this);if(this.iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.iframe_.focus()}catch(a){}};h.handleError_=function(){this.callback_({action:"error"})};var kY=function(a,b){b=b===void 0?Mt:b;tqb.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};Z(kY,uqb);kY.prototype.disposeOnHide_=!1;kY.prototype.enablePopover_=!1;
kY.prototype.build=function(){this.getAppId()&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.getAppId());this.urlParamMap_.get("parent")||this.setRelayUrl(GMc(FMc(It(window.location.href)),"").setPath("/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("Gf");var a=new this.pickerConstructor(qLd(this).toString(),!0,this.getDomHelper(),this.dialogWidth_,this.dialogHeight_,"",this.gadgetsDomHelper_,!1,!1,this.enablePopover_);
a.setDisposeOnHide(this.disposeOnHide_);a.setAppId(this.getAppId());a.setCallback(this.callback_);return a};var rLd=function(a,b){a.urlParamMap_.set(b,"true");return a};h=kY.prototype;h.getHeight=function(){return this.dialogHeight_};h.getLocale=function(){return this.urlParamMap_.get("hl")};h.getTitle=function(){return this.urlParamMap_.get("title")};h.getWidth=function(){return this.dialogWidth_};h.setDisposeOnHide=function(a){this.disposeOnHide_=a};
h.setGroupId=function(a){this.urlParamMap_.set("groupId",a)};var sLd=function(a){a.urlParamMap_.set("hostId","buganizer-drive");return a};h=kY.prototype;h.setOrigin=function(a){a&&this.urlParamMap_.set("origin",a);return this};h.setLocale=function(a){this.urlParamMap_.set("hl",a)};h.setRelayUrl=function(a){this.urlParamMap_.set("parent",a)};h.setSize=function(a){this.dialogWidth_=a;this.dialogHeight_=void 0;return this};h.setTitle=function(a){this.urlParamMap_.set("title",a);return this};
var qLd=function(a){a.postProcessors_.length&&a.urlParamMap_.set("pp",JSON.stringify(a.postProcessors_));a.urlParamMap_.set("nav",DJd(a.nav_));var b=new ot(a.getBaseUrl());a.urlParamMap_.forEach(function(c,d){Kt(b,d,c)});return b};var lY=function(){this.activeSession=q(Zu);this.attachmentsApi=q(ZQ);this.onePickUrl=this.activeSession.getOnePickUrl();this.disabled=!1;this.onPickDoc=new KO;this.onCloneBlob=new KO};
lY.prototype.showDialog=function(){var a=this;if(!this.drivePicker){var b=window.location.origin||window.location.protocol+"//"+window.location.host;this.drivePicker=sLd(rLd(rLd(rLd(rLd((new kY(this.onePickUrl)).addView(vJd().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 rJd(e.value),c.extraUserInputs.isAttachment?(e=new sJd(e),tJd(e,a.attachmentsApi),a.onCloneBlob.emit(e)):
a.onPickDoc.emit(e)}).setOrigin(b)).build()}this.drivePicker.setVisible(!0)};lY.\u0275fac=function(a){return new (a||lY)};
lY.\u0275cmp=C({type:lY,selectors:[["b-drive-attachment"]],inputs:{disabled:"disabled"},outputs:{onPickDoc:"onPickDoc",onCloneBlob:"onCloneBlob"},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&&(K(0,"div",0)(1,"button",1),N("click",function(){return b.showDialog()}),M(2,"mat-icon",2),L()());
a&2&&(B(),I("disabled",b.disabled))},dependencies:[ZA,XA,VA,hK,iz,MA],encapsulation:2});var mY=function(){var a=this;this.elementRef=q(Gd);this.eventType="click";this.clickOutside=new KO;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))}};mY.prototype.ngOnInit=function(){document.addEventListener(this.eventType,this.clickHandler,!0)};
mY.prototype.ngOnDestroy=function(){document.removeEventListener(this.eventType,this.clickHandler,!0)};mY.\u0275fac=function(a){return new (a||mY)};mY.\u0275dir=af({type:mY,selectors:[["","clickOutside",""]],inputs:{eventType:[0,"clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"}});var nY=function(){};nY.\u0275fac=function(a){return new (a||nY)};nY.\u0275mod=$e({type:nY});nY.\u0275inj=Dc({});var oY=function(){};oY.\u0275fac=function(a){return new (a||oY)};oY.\u0275mod=$e({type:oY});oY.\u0275inj=Dc({imports:[PK,FN,mC,uA,nY,oT,qT,cL,ZA,iK,xT,TW,FX,DX,EX]});var pY=function(){LO.apply(this,arguments);this.issueDetailsBrain=q(LP);this.userResources=q(SN);this.analytics=q(PO);this.isPlusOneText=!1;this.onSubmitComment=new KO};Z(pY,LO);pY.\u0275dir=LO.\u0275dir;pY.prototype.ngOnChanges=function(a){a.isPlusOneText&&this.isPlusOneText&&this.analytics.trackEvent("editIssue","view","commentAndVoteBanner")};
pY.prototype.onClick=function(a){var b=this,c,d;return y(function(e){if(e.nextAddress==1)return z(e,ee(b.issueDetailsBrain.id$),2);c=e.yieldResult;b.onSubmitComment.emit(a);if(c==null)return e.return();d={voted:!0,starred:null,notificationSubscription:null};qld(b.userResources,c,d).pipe(Af(b.destroyed$)).subscribe();b.analytics.trackEvent("editIssue","click","commentAndVote");$d(e)})};pY.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(pY)))(b||pY)}}();
pY.\u0275cmp=C({type:pY,selectors:[["b-plus-one-comment-callout"]],inputs:{isPlusOneText:"isPlusOneText"},outputs:{onSubmitComment:"onSubmitComment"},features:[Ff,Gx],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&&F(0,Rqb,7,1,"div",0);a&2&&G(b.isPlusOneText?0:-1)},dependencies:[ZA,XA,TA,hK,iz,MA],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 tLd=["commentBoxContainer"],uLd=[[["","warning",""]],[["","recaptchaContainer",""]],[["","additionalToolbarItems",""]]],vLd=function(a,b){return[a,b]},qY=function(){this.analytics=q(PO);this.hotkeys=q(dT);this.activeSession=q(Zu);this.appEvents=q(DN);this.MARKDOWN="MARKDOWN";this.commentChange=new KO;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 KO;this.onChange=new KO;this.onFocusEvent=new KO;this.onSubmit=new KO;this.onRestrict=new KO;this.createRestrictedResourcesComponentIds=this.activeSession.getCreateRestrictedSubresourcesComponentIds();this.focused=!1;this.commentRebound$=new vf(1);this.destroyed$=new vf(1);this.currentTracker=this.activeSession.getTracker()};h=qY.prototype;h.ngOnDestroy=function(){var a;(a=this.comment)==null||qtd(a);this.destroyed$.next()};
h.ngOnInit=function(){var a=this;this.appEvents.focusCommentBox.pipe(Af(this.destroyed$)).subscribe(function(b){irb(a,b)});this.appEvents.scrollToCommentBox.pipe(Af(this.destroyed$)).subscribe(function(){a.scrollIntoView()})};h.ngOnChanges=function(a){a.comment&&this.commentRebound$.next()};h.getRestrictedLabel=function(){var a,b,c=(b=(a=this.judgementForNewContent)==null?void 0:a.severity)!=null?b:"NONE_DETECTED";return N_a(c)};
h.isRestricted=function(){var a,b;return((b=(a=this.judgementForNewContent)==null?void 0:a.severity)!=null?b:"NONE_DETECTED")!=="NONE_DETECTED"};var irb=function(a,b){(b=b===void 0?"":b)&&a.analytics.trackEvent("commentBox","takeFocus",b);a.scrollIntoView();setTimeout(function(){var c;(c=a.commentDraftComponent)==null||gId(c)})};h=qY.prototype;h.uploadFile=function(a){a=this.attachmentUploader.upload(a);this.addUpload(a)};h.addUpload=function(a){this.comment&&this.comment.uploads.push(a)};
h.removeUpload=function(a){this.comment&&La(this.comment.uploads,a)};h.scrollIntoView=function(){var a;(a=this.commentBoxContainer)==null||a.nativeElement.scrollIntoView({behavior:"smooth"})};h.onFocus=function(){this.focused=!0;this.onFocusEvent.emit()};h.onBlur=function(){this.focused=!1};h.onKeydown=function(a){this.hotkeys.isEnabled()&&(a.key!=="Enter"||!a.ctrlKey&&!a.metaKey||this.disabled||this.onSubmit.emit(a))};
h.handlePaste=function(a){if(a&&a.clipboardData!=null){var b=a.clipboardData;for(var c=!1,d=!1,e=0,f=0;f<b.items.length;f++)b.items[f].kind==="string"&&b.items[f].type==="text/plain"?c=!0:b.items[f].kind==="file"&&(d=!0,e=f);d&&b.items&&b.files?(d=b.files[0],e=b.items[e].type.replace(/^.*[/]/,""),c?(b=b.getData("text/plain"),b=b.replace(/^.*[\\\/]/,"")):b=(new Date).toString()+"."+e,b={file:d,filename:b}):b=void 0;b&&(a.preventDefault(),a=new File([b.file],b.filename,{type:b.file.type}),this.uploadFile(a))}};
qY.\u0275fac=function(a){return new (a||qY)};
qY.\u0275cmp=C({type:qY,selectors:[["b-comment-box"]],viewQuery:function(a,b){a&1&&(kg(FX,5),kg(tLd,5),kg(fY,5));if(a&2){var c;og(c=pg())&&(b.commentDraftComponent=c.first);og(c=pg())&&(b.commentBoxContainer=c.first);og(c=pg())&&(b.attachmentUploader=c.first)}},inputs:{issueId:"issueId",comment:"comment",supportsPreview:"supportsPreview",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"},features:[Gx],ngContentSelectors:["[warning]","[recaptchaContainer]","[additionalToolbarItems]"],
decls:10,vars:19,consts:[["commentBoxContainer",""],[1,"bv2-comment-box-container"],[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=t();fg(uLd);K(0,"div",1,0)(2,"div",2)(3,"b-comment-draft",3);N("contentChange",function(d){u(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(){u(c);return v(b.onFocus())})("blur",function(){u(c);return v(b.onBlur())})("keydown",function(d){u(c);return v(b.onKeydown(d))})("paste",function(d){u(c);return v(b.handlePaste(d))});L();F(4,Sqb,1,1,"b-plus-one-comment-callout",4);L();gg(5);K(6,"b-attachment-uploader",5);N("onUploadCancel",function(d){u(c);b.removeUpload(d);return v(b.onChange.emit())})("onUploadComplete",
function(){u(c);return v(b.onChange.emit())});L();gg(7,1);F(8,Xqb,5,3,"div",6);L();F(9,Yqb,2,4,"div")}a&2&&(yg("focused",b.focused),B(3),I("content",b.comment.value)("placeholder",b.placeholder)("disabled",b.disabled)("textareaClass",Lg(16,vLd,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),
B(),G(b.isPlusOneCalloutEnabled?4:-1),B(2),I("uploads",b.comment.uploads),B(2),G(b.showToolbar?8:-1),B(),G(b.supportsPreview&&b.comment.formattingMode===b.MARKDOWN?9:-1))},dependencies:[cY,fY,FX,lY,ZA,XA,TA,VA,hK,fS,iz,MA,pY],encapsulation:2});var rY=function(){this.documentationLinks=q(OQ);this.issueLimits=q(QX);this.accessPolicyApi=q(tN);this.implicitAccessEnabled=!1};rY.prototype.ngOnInit=function(){var a=this;this.componentId&&this.accessPolicyApi.checkComponentImplicitAccessEnabled(this.componentId).then(function(b){return a.implicitAccessEnabled=b})};rY.prototype.toggleAccessLimits=function(){var a=this;return y(function(b){if(!a.componentId)return b.return();a.issueLimits.open({componentId:a.componentId,issueId:a.issueId});$d(b)})};
rY.prototype.toggleAccessLimitsWithKeystroke=function(a){this.toggleAccessLimits();a.stopPropagation();a.preventDefault()};rY.prototype.getAccessLimitLevelDisplay=function(a){return a==="LIMIT_APPEND"?"Commenting":a==="LIMIT_VIEW"||a==="LIMIT_VIEW_TRUSTED"?"Visibility":""};
var wLd=function(a,b){if(b)a:if(a=a.implicitAccessEnabled,b===xId.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(Opb),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?Ppb.descriptionWithExpandedAccess:Ppb.descriptionNoExpandedAccess}else b="";return b};rY.\u0275fac=function(a){return new (a||rY)};
rY.\u0275cmp=C({type:rY,selectors:[["b-access-limits-chip"]],inputs:{issueId:"issueId",componentId:"componentId",accessLimitLevel:"accessLimitLevel"},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=t();K(0,"button",1);N("click",function(){u(c);return v(b.toggleAccessLimits())})("keydown.enter",function(d){u(c);return v(b.toggleAccessLimitsWithKeystroke(d))})("keydown.space",function(d){u(c);return v(b.toggleAccessLimitsWithKeystroke(d))});M(1,"mat-icon",2);K(2,"span",3);S(3);L()();K(4,"onedev-hovercard",null,0)(6,"div",4)(7,"div",
5)(8,"span",6);S(9);K(10,"a",7);S(11," Learn more");L()()()()()}a&2&&(a=Q(5),I("onedevHovercardTrigger",a),B(3),Ag(b.getAccessLimitLevelDisplay(b.accessLimitLevel)),B(6),T(" Issue access is limited. ",wLd(b,b.accessLimitLevel)," "),B(),I("href",b.documentationLinks.getIssueAccessLimit(),Me))},dependencies:[hK,AK,uK,zK,iz,MA],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 xLd=[[["","additionalToolbarItems",""]]],sY=function(){var a=this;this.issuePermissionService=q(NP);this.userPreferencesManager=q(VP);this.editIssueService=q(tR);this.analytics=q(PO);this.draftStore=q(NQ);this.activeSession=q(Zu);this.issueDetailsBrain=q(LP);this.issueCommentDialogsService=q(LX);this.appEvents=q(DN);this.bannedWordsChecker=q(AW);this.componentFridge=q(AN);this.butterBar=q(JM);this.destroyRef=q(Be);this.issueId$=new vf(1);this.distinctIssueId$=this.issueId$.pipe(of());this.issue$=
this.distinctIssueId$.pipe(zf(function(b){return a.editIssueService.editableIssue$(b)}));this.hasAutoRestricted=this.wasFocused=!1;this.enableRecaptcha=this.activeSession.userRequiresCaptcha();this.recaptchaResponse$=new Xj("");this.showActionsAfterPreview=!1;this.showCommentButton=!0;this.commentSubmitted=new KO;this.placeholderText$=new Xj("Add a comment.");this.issueComponent$=this.issue$.pipe(zf(function(b){return(b==null?0:b.componentId)?a.componentFridge.watch(b==null?void 0:b.componentId):
be(void 0)}));this.issueAccessLimitLevel$=this.issuePermissionService.accessLimitLevel$.pipe(A(function(b){return b!=null?b:"LIMIT_NONE"}));this.isAccessLimited$=this.issueAccessLimitLevel$.pipe(A(function(b){return b==="LIMIT_VIEW"||b==="LIMIT_APPEND"||b==="LIMIT_VIEW_TRUSTED"}));this.HOTKEYS=ns;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(A(function(b){return b.autoCcOnComment}));this.issueCommentDraft$=this.issueId$.pipe(A(function(b){return a.editIssueService.issueCommentDraft(b)}));this.judgementForNewContent$=this.issueCommentDraft$.pipe(zf(function(b){return b.judgementForNewContent$}));this.comment$=this.issueCommentDraft$.pipe(zf(function(b){return b.comment$}));this.events$=
this.issueDetailsBrain.eventsJs$;this.savingState$=this.issueId$.pipe(A(function(b){return a.editIssueService.savingState(b)}));this.isSaving$=this.savingState$.pipe(zf(function(b){return Std(b,"comment")}));this.commentLimitReached$=this.events$.pipe(A(function(b){var c=a.activeSession.getCommentNumberLimit();return pWa(b)>=c}));this.commentPlaceholderText$=he([this.commentLimitReached$,this.hasAclToComment$,this.placeholderText$]).pipe(A(function(b){var c=l(b);b=c.next().value;var d=c.next().value;
c=c.next().value;return b?"The comment limit has been reached and no additional comments are permitted.":a.activeSession.isAnonymous()?"Sign in to use full features.":d?c:"You do not have access to comment on this issue."}));this.commentBoxEnabled$=he([this.hasAclToComment$,this.commentLimitReached$,this.isSaving$]).pipe(A(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$=he([this.hasAclToComment$,this.commentLimitReached$]).pipe(A(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(A(function(b){return a.activeSession.isInternalSession()&&!b}));this.isPlusOneText$=new Xj(!1);this.commentButtonStyle$=he([this.isPlusOneCalloutEnabled$,this.isPlusOneText$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b&&c?"hairline":"fill"}));this.commentDraftUpdated$=new Xj(!0);this.commentButtonEnabled$=he([this.hasAclToComment$,
this.comment$,this.isSaving$,this.recaptchaResponse$,this.commentDraftUpdated$]).pipe(A(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&&std(d)&&!e&&(!a.enableRecaptcha||c!=="")}));this.empty$=he([this.comment$,this.commentDraftUpdated$]).pipe(A(function(b){var c,d;return(d=(c=l(b).next().value)==null?void 0:c.value)!=null?d:""}),A(function(b){return b.length===0}));this.doAutoRestrictComment$=he([this.issueComponent$,this.comment$,this.commentDraftUpdated$,
this.judgementForNewContent$]).pipe(A(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 st(c)&&e&&!Is(a.activeSession)&&d&&b}))};sY.prototype.setJudgementForNewContent=function(a,b){this.editIssueService.issueCommentDraft(a).setJudgementForNewContent(b)};
var yLd=function(a){var b;y(function(c){a.hasAutoRestricted=!0;b={severity:"RESTRICTED",judgementReason:"Auto-restricted for issue on public tracker being edited from outside of a tracker",resourcePath:void 0,contentJudgementId:void 0};a.setJudgementForNewContent(a.issueId,b);fs(a.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.");$d(c)})};
sY.prototype.ngOnInit=function(){var a=this;this.doAutoRestrictComment$.pipe(oj(this.destroyRef)).subscribe(function(b){b&&!a.hasAutoRestricted&&yLd(a)})};var crb=function(a){var b;return y(function(c){b=!WP(a.userPreferencesManager).autoCcOnComment;a.analytics.trackEvent("editIssue","toggleAutoCcOnComment",String(b));return z(c,ee(a.userPreferencesManager.save({autoCcOnComment:b})),0)})};
sY.prototype.saveCommentDraft=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return a.bannedWordsChecker.reset(),z(c,ee(a.comment$),2);b=c.yieldResult;a.draftStore.$window.sessionStorage.setItem(Zr(a.internalIssueId),b.value);a.commentDraftUpdated$.next(!0);$d(c)})};
sY.prototype.submitCommentBox=function(a){var b=this,c,d,e,f,g,k,m;return y(function(r){if(r.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),z(r,b.bannedWordsChecker.check(e.value,b.issuePermissionService.accessLevel()==="EXTERNAL_PUBLIC",f.componentId),2);if(r.nextAddress!=3)return g=r.yieldResult,g?z(r,b.issueCommentDialogsService.submitCommentBox(String(f.componentId),
b.internalIssueId,e,d),3):((k=a)==null||k.preventDefault(),(m=b.commentBox)==null||irb(m),r.return());b.commentSubmitted.emit();b.hasAutoRestricted=!1;b.bannedWordsChecker.reset();b.appEvents.recaptchaSubmitted.next();$d(r)})};sY.prototype.showNewContentJudgementDialog=function(){var a=this;return y(function(b){return z(b,a.issueCommentDialogsService.showNewContentJudgementDialog(a.internalIssueId),0)})};
da.Object.defineProperties(sY.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a);this.internalIssueId=a},get:function(){return this.internalIssueId}},placeholderText:{configurable:!0,enumerable:!0,set:function(a){a&&this.placeholderText$.next(a)}},componentIdString:{configurable:!0,enumerable:!0,get:function(){return String(this.editIssueService.editableIssue(this.internalIssueId).componentId)}}});sY.\u0275fac=function(a){return new (a||sY)};
sY.\u0275cmp=C({type:sY,selectors:[["b-post-comment"]],viewQuery:function(a,b){a&1&&kg(qY,5);if(a&2){var c;og(c=pg())&&(b.commentBox=c.first)}},inputs:{issueId:"issueId",showActionsAfterPreview:"showActionsAfterPreview",showCommentButton:"showCommentButton",placeholderText:"placeholderText"},outputs:{commentSubmitted:"commentSubmitted"},features:[Ig([AW])],ngContentSelectors:["[additionalToolbarItems]"],decls:4,vars:3,consts:[["actionButtons",""],["commentBox",""],[1,"a11y-only"],[1,"bv2-edit-issue-add-comment"],
["id","AddCommentBox",3,"hotkey","supportsPreview","issueId","comment","placeholder","judgementForNewContent","audience","disabled","isPlusOneCalloutEnabled","warn","isLiteralModeSupported"],["id","AddCommentBox",3,"onHotkey","onChange","onFocusEvent","onSubmit","onRestrict","onPlusOneTextEntered","hotkey","supportsPreview","issueId","comment","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&&(fg(xLd),F(0,nrb,1,1),U(1,"async"),E(2,prb,1,1,"ng-template",null,0,Og));if(a&2){var c;G((c=W(1,1,b.issue$))?0:-1,c)}},dependencies:[rY,YT,qY,PK,OK,wI,fT,vW,YS,oy,GX,py],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 zLd=["addLink"],ALd=["peopleKitDiv"],BLd=[Object.assign({},Erb("start","bottom"),Frb("start","top"),{offsetY:8}),Object.assign({},Erb("center","bottom"),Frb("center","top"),{offsetY:8}),Object.assign({},Erb("end","bottom"),Frb("end","top"),{offsetY:8}),Object.assign({},Erb("start","top"),Frb("start","bottom"),{offsetY:-8}),Object.assign({},Erb("end","top"),Frb("end","bottom"),{offsetY:-8})],tY=function(){var a=this;this.activeSession=q(Zu);this.principalTypesFridge=q(pP);this.issuePermissionService=
q(NP);this.issueDetailsBrain=q(LP);this.autocompleteConfigService=q(gV);this.title=this.name="";this.values=null;this.iconName=this.collectionHovercardDescription=this.removeSelfActionLongDescription=this.removeSelfActionDescription=this.includeSelfActionLongDescription=this.includeSelfActionDescription="";this.inputValidator=null;this.checkAccessLimits=!1;this.overlayPosition=BLd;this.valueChange=new KO;this.userInclusionToggle=new KO;this.toggleAccessLimits=new KO;this.teamId$=this.issueDetailsBrain.teamId$;
this.ListFieldType=zAd;this.providedValues$=new vf(1);this.groups$=this.providedValues$.pipe(zf(function(b){return a.extractGroups(b)}),yf(new Set));this.OVERLAY_POSITION_LIST=BLd;this.newlySelectedUsersString="";this.USER_FIELD_HOVERCARD_CONFIG=Object.assign({},new rm,{position:[ccd]});this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.enableTeamAnnotations=this.activeSession.isInternalSession()};h=tY.prototype;
h.extractGroups=function(a){var b=function(c){return c.principalType==="GROUP"};return this.principalTypesFridge.watchSet(a).pipe(A(function(c){return new Set(c.filter(b).map(function(d){return d.email}))}))};h.removeItem=function(a){if(this.values){var b=[].concat(n(this.values));b.splice(a,1);this.valueChange.emit({editField:null,newUsers:b})}};h.getUser=function(a){if(!this.users||!this.values)return{emailAddress:""};a=this.values.indexOf(a);return a===-1?{emailAddress:""}:this.users[a]};
h.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()};h.closeInlineDialog=function(a){a.disabled||(a.disabled=!0,a.disabled=!1)};h.handleAddItems=function(a){this.closeAddPopup(!0);this.addItems(a)};
h.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(n(this.values),n(b)),this.valueChange.emit({editField:null,newUsers:this.values}))}};tY.\u0275fac=function(a){return new (a||tY)};
tY.\u0275cmp=C({type:tY,selectors:[["b-multi-user-control"]],viewQuery:function(a,b){a&1&&(kg(zLd,5),kg(OF,5),kg(GD,5),kg(ALd,5));if(a&2){var c;og(c=pg())&&(b.addLinkEl=c.first);og(c=pg())&&(b.menuTriggers=c);og(c=pg())&&(b.popupTriggers=c);og(c=pg())&&(b.peopleKitDiv=c)}},inputs:{name:"name",title:"title",values:"values",users:"users",includeSelfActionDescription:"includeSelfActionDescription",includeSelfActionLongDescription:"includeSelfActionLongDescription",removeSelfActionDescription:"removeSelfActionDescription",
removeSelfActionLongDescription:"removeSelfActionLongDescription",collectionHovercardDescription:"collectionHovercardDescription",isSaving:"isSaving",iconName:"iconName",isCurrentUserInCollection:"isCurrentUserInCollection",isAllowedToEditCollection:"isAllowedToEditCollection",inputValidator:"inputValidator",checkAccessLimits:"checkAccessLimits",overlayPosition:"overlayPosition"},outputs:{valueChange:"valueChange",userInclusionToggle:"userInclusionToggle",toggleAccessLimits:"toggleAccessLimits"},
decls:25,vars:17,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","ariaLabel","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"],["type","button","aria-label","Open issue access dialog.",1,"unstyled","keep-focus-ring",3,"disabled"],
["name","group_24px","size","small",1,"group-icon"],[3,"email"],["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"],["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&&(E(0,trb,2,1,"ng-template",null,0,Og)(2,
urb,3,4,"ng-template",null,1,Og),K(4,"div",5)(5,"div",6)(6,"div",7)(7,"label"),S(8),L()(),K(9,"div",8)(10,"collapsible-panel",9),Pf(11,Brb,7,4,"div",10,Nf),L(),K(13,"div",11,2),F(15,Crb,2,8,"button",12),E(16,Drb,1,0,"ng-container",13),L()()()(),K(17,"onedev-hovercard",null,3)(19,"div",14)(20,"div",15)(21,"span",16),S(22),K(23,"a",17),S(24,"Learn more."),L()()()()());if(a&2){a=Q(1);var c=Q(18);B(4);I("onedevHovercardTrigger",c)("onedevHovercardActive",!0)("onedevHovercardConfig",b.USER_FIELD_HOVERCARD_CONFIG);
B(4);T(" ",b.title," ");B(2);I("ariaLabel",Coa("",b.title,", ",(b.values==null?null:b.values.length)||0," ",((b.values==null?null:b.values.length)||0)===1?"user":"users"))("title",Hg("",(b.values==null?null:b.values.length)||0," ",((b.values==null?null:b.values.length)||0)===1?"user":"users"))("isExpanded",!0)("iconName",b.iconName)("hasCompactTitleBar",!0);B();Qf(b.values);B(4);G(b.isAllowedToEditCollection?15:-1);B();I("ngTemplateOutlet",a);B(6);T(" ",b.collectionHovercardDescription," ")}},dependencies:[OU,
ZA,XA,TA,hK,AK,uK,zK,hS,MA,oy,TR,mV,uU,DD,CD,GD,py],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 CLd=["popOverContent"],uY=function(a,b){this.overlay=a;this.viewContainerRef=b;this.newlineWithEnterKey=this.displayUnder=!1;this.hasBackdrop=!0;this.fitToViewport=!1;this.width=this.maxWidth=this.minWidth=null;this.saveDisabled=Qg.apply(null,[!1].concat(n([])));this.closedWithAction=new ui;this.isOpen=!1;this.destroyed$=new vf(1);this.backdropClickSubscription=Od.EMPTY};uY.prototype.ngOnInit=function(){};uY.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
uY.prototype.open=function(){var a=this;this.isOpen||(this.overlayRef=this.createOverlay(),this.attach(),this.isOpen=!0,this.backdropClickSubscription=this.overlayRef.backdropClick().pipe(Af(this.destroyed$)).subscribe(function(){Irb(a)}))};uY.prototype.close=function(){this.isOpen&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=void 0,this.isOpen=!1,this.backdropClickSubscription.unsubscribe())};
var Hrb=function(a){a.closedWithAction.emit(0);a.close()},Irb=function(a){a.closedWithAction.emit(1);a.close()};h=uY.prototype;h.processKeydown=function(a){switch(a.key){case "Escape":Irb(this);a.stopPropagation();break;case "Enter":if(this.newlineWithEnterKey){if(a.metaKey||a.ctrlKey)Hrb(this),a.stopPropagation(),a.preventDefault()}else a.shiftKey||(Hrb(this),a.stopPropagation(),a.preventDefault())}};
h.createOverlay=function(){var a,b=this.width||8+Math.max((a=this.minWidth)!=null?a:0,this.anchor.offsetWidth);a=this.getPositionStrategy();var c=this.getScrollStrategy();b=this.overlay.create({positionStrategy:a,scrollStrategy:c,hasBackdrop:this.hasBackdrop,backdropClass:"onedev-pop-over-edit-panel-backdrop",panelClass:"onedev-pop-over-edit-panel",width:this.maxWidth?Math.min(b,this.maxWidth):b});b.overlayElement.setAttribute("role","dialog");b.overlayElement.setAttribute("aria-label","Pop over edit panel");
return b};h.attach=function(){var a=new mA(this.contentTemplateRef,this.viewContainerRef),b;(b=this.overlayRef)==null||b.attach(a);var c;(c=this.overlayRef)==null||c.updatePosition()};h.getPositionStrategy=function(){var a=pHc(fA(jA(this.overlay.position(),this.anchor),this.fitToViewport),this.fitToViewport);a._offsetX=-4;a._offsetY=this.displayUnder?this.anchor.offsetHeight:-4;return dA(a,DLd)};h.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
uY.\u0275fac=function(a){return new (a||uY)(Ve(rA),Ve(ig))};
uY.\u0275cmp=C({type:uY,selectors:[["onedev-pop-over-edit-panel"]],viewQuery:function(a,b){a&1&&kg(CLd,7);if(a&2){var c;og(c=pg())&&(b.contentTemplateRef=c.first)}},inputs:{anchor:"anchor",editorTemplate:"editorTemplate",displayUnder:"displayUnder",newlineWithEnterKey:"newlineWithEnterKey",hasBackdrop:"hasBackdrop",fitToViewport:"fitToViewport",minWidth:"minWidth",maxWidth:"maxWidth",width:"width",saveDisabled:[1,"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","","type","button","color","primary",1,"save",3,"click","disabled"],["type","button","mat-button","","color","primary",1,"cancel",3,"click"]],template:function(a){a&1&&E(0,Jrb,8,3,"ng-template",null,0,Og)},dependencies:[oy,uz,RI],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 DLd=[{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 ELd=["popOver"],FLd=["inputBox"],vY=function(a){this.defaultAutocompleteConfig=a;this.displayUnder=!1;this.initialInputValue="";this.required=this.openPopOverOnInit=!1;this.minWidth=null;this.closed=new ui;this.inputValue=new VB("",{nonNullable:!0});this.sessionOptions=GLd;this.mergedAutocompleteConfig=Object.assign({},HLd,this.defaultAutocompleteConfig)};h=vY.prototype;h.ngOnInit=function(){this.inputValue._assignValidators(this.required?[vi]:[])};
h.ngAfterViewInit=function(){this.openPopOverOnInit&&this.openPopOver(this.initialInputValue)};h.ngOnChanges=function(a){a.autocompleteConfig&&(this.mergedAutocompleteConfig=Object.assign({},HLd,this.defaultAutocompleteConfig,this.autocompleteConfig))};h.selectAutocomplete=function(a){a.length>0&&this.inputValue.setValue(a[0].result().getPrimaryTarget().getValue())};
h.openPopOver=function(a){var b=this;this.inputValue.setValue(a);this.popOver.open();setTimeout(function(){var c;(c=b.inputBox)==null||c.nativeElement.select()})};h.onPopOverClose=function(a){this.inputValue.valid&&a===0?this.closed.emit(this.inputValue.value):this.closed.emit(void 0);this.inputValue.setValue("")};vY.\u0275fac=function(a){return new (a||vY)(Ve(ILd,8))};
vY.\u0275cmp=C({type:vY,selectors:[["onedev-user-picker-panel","anchor",""]],viewQuery:function(a,b){a&1&&(kg(ELd,7),kg(FLd,5));if(a&2){var c;og(c=pg())&&(b.popOver=c.first);og(c=pg())&&(b.inputBox=c.first)}},inputs:{anchor:"anchor",autocompleteConfig:"autocompleteConfig",displayUnder:"displayUnder",initialInputValue:"initialInputValue",openPopOverOnInit:"openPopOverOnInit",required:"required",minWidth:"minWidth"},outputs:{closed:"closed"},standalone:!1,features:[Gx],attrs:["anchor",""],decls:4,vars:5,
consts:[["popOver","onedevPopOverEditPanel"],["autocompleteTemplate",""],["inputBox",""],[3,"closedWithAction","anchor","displayUnder","editorTemplate","saveDisabled","minWidth"],["peoplekitAutocomplete","",3,"peoplekitAutocompleteSelectionChange","required","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","formControl"]],template:function(a,b){if(a&1){var c=t();K(0,"onedev-pop-over-edit-panel",3,0);N("closedWithAction",function(d){u(c);return v(b.onPopOverClose(d))});L();E(2,Krb,2,4,
"ng-template",null,1,Og)}a&2&&(a=Q(3),I("anchor",b.anchor)("displayUnder",b.displayUnder)("editorTemplate",a)("saveDisabled",b.inputValue.invalid)("minWidth",b.minWidth))},dependencies:[xi,PB,hC,uY,rW,bC],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 ILd=new bd("user-picker-autocomplete-config"),HLd={showSuggestions:!0,moveAutocompleteAboveAnchorIfOffscreen:!0,density:2},GLd=(new Ev).setFilter(Ngb(Jgb(1),new hBd(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 Nrb=function(a){return{$implicit:a}},JLd=0,wY=function(){this.val="";this.required=this.disabled=!1;this.minWidth=null;this.emailChange=new ui;this.displayUnder=!1;this.displayValueOverride="";this.popOverOpen=this.active=!1;this.contentId="onedev-user-picker-"+JLd;this.onChange=function(){};this.onTouched=function(){};JLd++};Z(wY,OT);h=wY.prototype;h.openPopOver=function(){this.disabled||(this.onTouched(),this.popOver.openPopOver(this.email),this.popOverOpen=!0)};
h.onPopOverClose=function(a){a!=null&&a!==this.email&&(this.onChange(a),this.emailChange.emit(a),this.email=a);this.popOverOpen=!1};h.contentAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.contentId};h.writeValue=function(a){a!=null&&(this.val=a)};h.isActive=function(){return this.active||this.popOverOpen};h.registerOnChange=function(a){this.onChange=a};h.registerOnTouched=function(a){this.onTouched=a};h.setDisabledState=function(a){this.disabled=a};
da.Object.defineProperties(wY.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});wY.\u0275fac=function(a){return new (a||wY)};
wY.\u0275cmp=C({type:wY,selectors:[["onedev-user-picker"]],viewQuery:function(a,b){a&1&&kg(vY,7);if(a&2){var c;og(c=pg())&&(b.popOver=c.first)}},inputs:{email:"email",disabled:"disabled",required:"required",minWidth:"minWidth",labelledById:"labelledById",selectedUserTemplate:"selectedUserTemplate",autocompleteConfig:"autocompleteConfig",anchor:"anchor",displayUnder:"displayUnder",displayValueOverride:"displayValueOverride"},outputs:{emailChange:"emailChange"},exportAs:["onedevUserPicker"],standalone:!1,
features:[Ig([{provide:OT,useExisting:Tc(function(){return wY}),multi:!0},{provide:KB,useExisting:Tc(function(){return wY}),multi:!0}]),Ff],decls:7,vars:12,consts:[["button",""],["type","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","required","minWidth"],[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=t();K(0,"button",1,0);N("focus",function(){u(c);return v(b.active=!0)})("blur",function(){u(c);return v(b.active=!1)})("click",function(){u(c);return v(b.openPopOver())});F(2,Lrb,1,1)(3,Orb,1,4,"ng-container")(4,Prb,1,1);E(5,Qrb,2,0,"svg",2);
L();K(6,"onedev-user-picker-panel",3);N("closed",function(d){u(c);return v(b.onPopOverClose(d))});L()}a&2&&(a=Q(1),yg("active",b.isActive()),Jf("tabindex",b.disabled?-1:null)("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy()),B(2),G(b.displayValueOverride?2:b.selectedUserTemplate?3:4),B(3),I("ngIf",!b.disabled),B(),I("displayUnder",b.displayUnder)("anchor",b.anchor||a)("autocompleteConfig",b.autocompleteConfig)("required",b.required)("minWidth",b.minWidth))},dependencies:[jy,oy,vY],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 xY=function(){};xY.\u0275fac=function(a){return new (a||xY)};xY.\u0275mod=$e({type:xY});xY.\u0275inj=Dc({imports:[xy,Dz,uA,qA,$I]});var yY=function(){};yY.\u0275fac=function(a){return new (a||yY)};yY.\u0275mod=$e({type:yY});yY.\u0275inj=Dc({imports:[xy,mC,xY,TW,nC]});var KLd=["picker"],zY=function(){this.autocompleteConfigService=q(gV);this.disabled=!1;this.emailChange=new KO;this.displayValueOverride="";this.minWidth=180;this.userEmail=""};Z(zY,OT);zY.prototype.openPopOver=function(){this.picker.openPopOver()};zY.prototype.isActive=function(){return this.picker.isActive()};da.Object.defineProperties(zY.prototype,{user:{configurable:!0,enumerable:!0,set:function(a){this.userJs=a;this.userEmail=Rm(a)||""},get:function(){return this.userJs}}});
zY.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(zY)))(b||zY)}}();
zY.\u0275cmp=C({type:zY,selectors:[["b-user-picker"]],viewQuery:function(a,b){a&1&&kg(KLd,7);if(a&2){var c;og(c=pg())&&(b.picker=c.first)}},inputs:{user:"user",teamId:"teamId",disabled:"disabled",labelledById:"labelledById",anchor:"anchor",displayValueOverride:"displayValueOverride",minWidth:"minWidth"},outputs:{emailChange:"emailChange"},exportAs:["bUserPicker"],features:[Ig([{provide:OT,useExisting:Tc(function(){return zY}),multi:!0}]),Ff],decls:4,vars:9,consts:[["picker","onedevUserPicker"],["userChip",
""],[3,"emailChange","anchor","displayUnder","email","disabled","labelledById","selectedUserTemplate","autocompleteConfig","displayValueOverride","minWidth"],[3,"user","email","teamId","enableSmallChip"]],template:function(a,b){if(a&1){var c=t();K(0,"onedev-user-picker",2,0);N("emailChange",function(d){u(c);b.userJs=Sm(d);b.userEmail=d;b.emailChange.emit(d);return v()});L();E(2,Srb,1,1,"ng-template",null,1,Og)}a&2&&(a=Q(3),I("anchor",b.anchor)("displayUnder",!0)("email",b.userEmail)("disabled",b.disabled)("labelledById",
b.labelledById)("selectedUserTemplate",a)("autocompleteConfig",Ugb(b.autocompleteConfigService))("displayValueOverride",b.displayValueOverride)("minWidth",b.minWidth))},dependencies:[uU,yY,wY],styles:["[_nghost-%COMP%]     .user-chip-small, [_nghost-%COMP%]     .internal-non-team-member-chip{width:100%}  .peoplekit-autocomplete-anchor{z-index:1001}/*# sourceMappingURL=user_picker.css.map */"]});var LLd=function(){this.isReady=!1};LLd.\u0275fac=function(a){return new (a||LLd)};LLd.\u0275cmp=C({type:LLd,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&&(fg(),E(0,Trb,1,0,"div",0)(1,Urb,2,0,"ng-container",1));a&2&&(I("ngIf",!b.isReady),B(),I("ngIf",b.isReady))},dependencies:[jy],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 MLd=function(){this.warning=""};MLd.\u0275fac=function(a){return new (a||MLd)};
MLd.\u0275cmp=C({type:MLd,selectors:[["onedev-warning-icon"]],hostVars:2,hostBindings:function(a,b){a&2&&yg("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&&E(0,Vrb,2,
1,"svg",0);a&2&&I("ngIf",b.warning)},dependencies:[jy,TT],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 NLd=["*",[["","actions",""]]],OLd=[[["onedev-field-label"]],[["onedev-field-value"]]],PLd=0,AY=function(){this.thinking=!1;this.warning=this.labelTooltip="";this.id="onedev-field-label-"+PLd;PLd++};AY.\u0275fac=function(a){return new (a||AY)};
AY.\u0275cmp=C({type:AY,selectors:[["onedev-field-label"]],hostVars:1,hostBindings:function(a,b){a&2&&Jf("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&&(fg(),K(0,"onedev-async-data-placeholder",0)(1,"span",1),gg(2),L(),M(3,"onedev-warning-icon",2),L());a&2&&(I("isReady",!b.thinking),B(),I("matTooltip",b.labelTooltip),
B(2),I("warning",b.warning))},dependencies:[LLd,TT,MLd],styles:["[_nghost-%COMP%]{line-height:29px;font-size:13px}span.label[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]});var QLd=function(){this.thinking=!1};QLd.\u0275fac=function(a){return new (a||QLd)};
QLd.\u0275cmp=C({type:QLd,selectors:[["onedev-field-value"]],inputs:{thinking:"thinking"},standalone:!1,ngContentSelectors:["*","[actions]"],decls:3,vars:1,consts:[[3,"isReady"]],template:function(a,b){a&1&&(fg(NLd),K(0,"onedev-async-data-placeholder",0),gg(1),gg(2,1),L());a&2&&I("isReady",!b.thinking)},dependencies:[LLd],encapsulation:2});var BY=function(){this.labelPosition="left"};
BY.prototype.ngAfterContentInit=function(){var a=this;setTimeout(function(){a.field&&a.label&&(a.field.labelledById=a.label.id)})};BY.\u0275fac=function(a){return new (a||BY)};
BY.\u0275cmp=C({type:BY,selectors:[["onedev-edit-field"]],contentQueries:function(a,b,c){a&1&&(lg(c,OT,5),lg(c,AY,7));if(a&2){var d;og(d=pg())&&(b.field=d.first);og(d=pg())&&(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&&(fg(OLd),K(0,"div",0),gg(1),gg(2,1),L());a&2&&yg("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 RLd=function(){};RLd.\u0275fac=function(a){return new (a||RLd)};RLd.\u0275mod=$e({type:RLd});RLd.\u0275inj=Dc({imports:[xy]});var SLd=function(){};SLd.\u0275fac=function(a){return new (a||SLd)};SLd.\u0275mod=$e({type:SLd});SLd.\u0275inj=Dc({imports:[xy,UT]});var JY=function(){};JY.\u0275fac=function(a){return new (a||JY)};JY.\u0275mod=$e({type:JY});JY.\u0275inj=Dc({imports:[RLd,xy,UT,SLd]});var TLd=["traditionalEditorField"],ULd=["peopleKitUserPicker"],KY=function(){this.activeSession=q(Zu);this.issuePermissionService=q(NP);this.issueDetailsBrain=q(LP);this.elementRef=q(Gd);this.cdr=q(Yx);this.title=this.name="";this.value=null;this.valueChange=new KO;this.emailChange=new KO;this.displayValueOverride="";this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.teamId$=this.issueDetailsBrain.teamId$;this.FieldType=
AU};KY.prototype.emailToUser=function(a){return kn(Sm(a))};KY.prototype.emitValueChange=function(){this.valueChange.emit({editField:void 0,newEmail:void 0});this.cdr.markForCheck()};KY.prototype.openEditor=function(){var a;(a=this.peopleKitUserPicker)==null||a.openPopOver()};KY.\u0275fac=function(a){return new (a||KY)};
KY.\u0275cmp=C({type:KY,selectors:[["b-single-user-control"]],viewQuery:function(a,b){a&1&&(kg(TLd,5),kg(ULd,5));if(a&2){var c;og(c=pg())&&(b.traditionalEditorField=c.first);og(c=pg())&&(b.peopleKitUserPicker=c.first)}},inputs:{name:"name",title:"title",value:"value",user:"user",anchor:"anchor",isSaving:"isSaving",displayValueOverride:"displayValueOverride"},outputs:{valueChange:"valueChange",emailChange:"emailChange"},decls:10,vars:14,consts:[["peopleKitUserPicker",""],[3,"thinking"],[3,"emailChange",
"anchor","user","teamId","disabled","displayValueOverride"],[3,"user"]],template:function(a,b){if(a&1){var c=t();K(0,"onedev-edit-field")(1,"onedev-field-label");S(2);L();K(3,"onedev-field-value",1)(4,"b-user-picker",2,0);U(6,"emailToUser");U(7,"async");U(8,"async");N("emailChange",function(g){u(c);b.emailChange.emit(g);b.cdr.markForCheck();return v()});L();F(9,Wrb,1,1,"b-availability-chip",3);L()()}if(a&2){B(2);Ag(b.title);B();I("thinking",!!b.isSaving);B();var d,e,f;I("anchor",(d=b.anchor)!=null?
d:b.elementRef.nativeElement)("user",(e=b.user)!=null?e:W(6,8,b.value||""))("teamId",(f=W(7,10,b.teamId$))!=null?f:"")("disabled",!W(8,12,b.hasAclToEdit$))("displayValueOverride",b.displayValueOverride);B(5);G(b.user?9:-1)}},dependencies:[dU,JY,AY,QLd,BY,zY,py,rU],encapsulation:2});var VLd={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"},LY=function(){LO.apply(this,arguments);var a=this;this.butterBar=q(JM);this.componentTemplatesFridge=q(GN);this.errorHandler=q(ZM);this.triageService=q(KQ);this.issueApi=q(uO);this.issueFullFridge=q(RO);this.editIssueService=q(tR);this.hotlistPickerService=
q(BV);this.issueLimits=q(QX);this.issuePermissionService=q(NP);this.jspbPrincipalTypes=q(nP);this.statusMessages=q(VQ);this.constants=q(SQ);this.activeSession=q(Zu);this.issueEditComponentService=q(ZV);this.IssueFieldKey=VLd;this.HOTKEYS=ns;this.FieldType=AU;this.ListFieldType=zAd;this.IssueType=Nhd;this.IssueSeverity=Fhd;this.IssuePriority=rhd;this.IssueStatus=Jhd;this.codeChangesValidator=Q3a;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 Xj(void 0);this.issueId$=this.triageService.currentIssueId$.pipe(te(ln),of());this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.defaultAssigneeForComponent$=this.componentId$.pipe(zf(function(b){return b?a.componentTemplatesFridge.defaultTemplate$(String(b)):be(void 0)}),A(function(b){return b&&Rm(b.snapshot.assigneeUser)}));this.issueIds$=he([this.triageService.currentIssueIds$,this.triageService.selectedIssueIds$]).pipe(A(function(b){var c=
l(b);b=c.next().value;c=c.next().value;return c.length?c:b}));this.issues$=this.issueIds$.pipe(zf(function(b){return a.issueFullFridge.watchSet(b)}));this.editableIssues$=this.issueIds$.pipe(A(function(b){return b.map(function(c){return a.editIssueService.editableIssue(c)})}));this.editableIssue$=this.editableIssues$.pipe(A(function(b){return b[0]}));this.areEditableIssuesLoaded$=this.editableIssues$.pipe(A(function(b){return b.every(function(c){return c.issueId!==""})}));this.fieldMultipleValueMap$=
he([this.editableIssues$,this.areEditableIssuesLoaded$]).pipe(A(function(b){var c=l(b);b=c.next().value;if(!c.next().value)return new Map;Ot(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 KO;this.completeAction=new KO;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:dbb(b)}});this.statusChoices=fid.filter(function(b){return b.value!=="DUPLICATE"}).map(function(b){return Object.assign({},b,{hotkey:ebb(b.value)})});this.showAssigneeChips$=he([this.hasAclToEdit$,this.defaultAssigneeForComponent$,this.editableIssue$]).pipe(A(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 Xj(!1);this.showCommentInput=!1;this.collaboratorUserPrincipalValidator=function(b){var c,d,e;return y(function(f){if(f.nextAddress==1){if(!b)return f.return("This field is required");c=b.split(",").map(function(g){return g.trim()}).filter(Boolean);return z(f,kpd(a.jspbPrincipalTypes,c,!1),
2)}d=f.yieldResult;e=c.find(function(g){var k;return((k=d[g])==null?void 0:k.principalType)!=="USER"});return f.return(e?"You can only add users to collaborators.":"")})}};Z(LY,LO);LY.\u0275dir=LO.\u0275dir;h=LY.prototype;h.ngOnInit=function(){for(var a=l(this.automaticChanges),b=a.next();!b.done;b=a.next())WLd(this,b.value);this.showCommentInput=this.expandCommentBox;a=Pr(this.editableIssue$);this.componentId=a.componentId||void 0;this.componentId$.next(this.componentId);Nt(this,a);Pt(this,a)};
h.ngOnDestroy=function(){LO.prototype.ngOnDestroy.call(this);var a=Or(this.issueId$);a&&this.editIssueService.clear(a)};h.setSeverity=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setSeverity(b);Ot(this,a)};h.setPriority=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setPriority(b);Ot(this,a)};h.setAssignee=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setAssignee(b);Ot(this,a)};
h.setType=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setType(b);Ot(this,a)};h.setStatus=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setStatus(b);Ot(this,a)};h.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;Ot(this,a)};h.setCodeChanges=function(a,b){a=l(a);for(var c=a.next();!c.done;c=a.next())c.value.setCodeChanges(b)};
h.setCcs=function(a,b){b=[].concat(n(new Set(b.newUsers)));for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.cc=b;Pt(this,a[0])};h.setCollaborators=function(a,b){b=[].concat(n(new Set(b.newUsers)));for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setCollaborators(b);Nt(this,a[0])};
var ssb=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(g){return g!==c});e.cc=f}Pt(a,b[0]);Ot(a,b)},nsb=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(g){return g!==c});e.setCollaborators(f)}Nt(a,b[0]);Ot(a,b)},osb=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(g){return!c.includes(g)});
e.setCollaborators(f)}Nt(a,b[0]);Ot(a,b)},tsb=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(g){return!c.includes(g)});e.cc=f}Pt(a,b[0]);Ot(a,b)},vsb=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!MP(a.issuePermissionService,f)}),d.cc=e):(e.push(a.activeSession.getUserEmail()),d.cc=e)}Pt(a,b[0])};
LY.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!MP(b.issuePermissionService,f)}),d.setCollaborators(e)):(e.push(this.activeSession.getUserEmail()),d.setCollaborators(e))}Nt(this,a[0])};
var Pt=function(a,b){a.isCurrentUserCcd=b.cc.includes(a.activeSession.getUserEmail())},Nt=function(a,b){a.isCurrentUserCollaborator=b.collaborators.includes(a.activeSession.getUserEmail())},zsb=function(a,b){return a.automaticChanges.find(function(c){return c.field===b})},XLd=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};
LY.prototype.save=function(a){var b=this,c,d,e,f,g,k,m,r,w,x;return y(function(D){if(D.nextAddress==1){b.isSaving$.next(!0);c=a[0];d=a.map(function(H){return psd(H)}).flat().filter(function(H){return H!==null});e=d.map(function(H){return{issueIds:[H.issueId],actions:H.actions}});f=XLd(b,a);e.push.apply(e,n(f));g=a.map(function(H){return H.issueId});(k=YLd(b,c.issueId)?{fieldName:"comment",value:b.editIssueService.issueCommentDraft(c.issueId).comment().value}:null)&&e.push({issueIds:g,actions:[k]});
b.customFieldBulkEditOps.length&&e.push.apply(e,n(b.customFieldBulkEditOps));m=l(a);for(r=m.next();!r.done;r=m.next())w=r.value,x=w.customFieldMap,Object.assign(b.customFieldMap,x);return z(D,b.sendBulkEditRequest(e),2)}if(D.nextAddress!=3)return z(D,b.updateHotlists(),3);b.isSaving$.next(!1);b.completeAction.emit(g);$d(D)})};LY.prototype.toggleAccessLimits=function(a){this.issueLimits.isOpen()||this.componentId&&this.issueLimits.open({componentId:this.componentId,issueId:a})};
var Ot=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!v1a(e.cc,c.cc)});a.doesFieldHaveMultipleValues.set("CC_LIST",d);b=b.some(function(e){return!v1a(e.collaborators,c.collaborators)});a.doesFieldHaveMultipleValues.set("COLLABORATORS",b)},YLd=function(a,b){b=a.editIssueService.issueCommentDraft(b).comment();return a.showCommentInput&&!!b.value},lsb=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return a.showCommentInput=
!1,z(d,Gs(0),2);(c=b)==null||c.focus();$d(d)})},WLd=function(a,b){var c,d;y(function(e){switch(e.nextAddress){case 1:return z(e,ee(a.editableIssue$),2);case 2:c=e.yieldResult;d=b.field;switch(d){case "STATUS":c.setStatus(b.value);break;case "ASSIGNEE":c.setAssignee(b.value);break;case "COMMENT":return e.jumpTo(3);default:sb(d)}e.jumpTo(0);break;case 3:return z(e,a.setComment(b.value),5);case 5:e.jumpTo(0)}})};
LY.prototype.setComment=function(a){var b=this,c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,ee(b.triageService.currentIssueId$),2);c=f.yieldResult;if(!c)return f.return();d=b.editIssueService.issueCommentDraft(c).comment();if(d.value)return f.return();e=d.value;d.value=a;b.destroyed$.subscribe(function(){var g=b.editIssueService.issueCommentDraft(c).comment();g.value===a&&(g.value=e)});$d(f)})};
LY.prototype.updateHotlists=function(){var a=this,b,c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:return(b=a.fields.includes("HOTLISTS"))?z(g,ee(a.issues$),2):g.return();case 2:c=g.yieldResult;if(!c||!c.length)return g.return();d=l(c);e=d.next();case 3:if(e.done){g.jumpTo(0);break}f=e.value;return z(g,ZLd(a,f),4);case 4:e=d.next(),g.jumpTo(3)}})};
var ZLd=function(a,b){var c,d,e,f;return y(function(g){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))?z(g,a.hotlistPickerService.updateHotlists(b.issueId,f.added.map(function(k){return k.toString()}),f.removed.map(function(k){return k.toString()})),0):g.return():g.return()})};
LY.prototype.sendBulkEditRequest=function(a){var b=this,c;return y(function(d){c={bulkEditOps:a};fs(b.butterBar,"Saving changes...",0);return d.return(b.issueApi.issueBulkEdit(c).then(function(e){e.errors&&e.errors.length?(e=TWa(e.errors),b.butterBar.showWarning("Failed to update issue(s) "+e+".")):(e=Tsd(b.statusMessages,c,b.customFieldMap))?fs(b.butterBar,e):fs(b.butterBar,"Saved "+n9a(a).length+" issue(s).")}).catch(function(e){b.errorHandler.errorHandler(null,e)}))})};
LY.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(LY)))(b||LY)}}();
LY.\u0275cmp=C({type:LY,selectors:[["verify-fields"]],inputs:{fields:"fields",automaticChanges:"automaticChanges",showAssignToSelf:"showAssignToSelf",showAssignToDefault:"showAssignToDefault",expandCommentBox:"expandCommentBox",phase:"phase",subphase:"subphase"},outputs:{cancelAction:"cancelAction",completeAction:"completeAction"},features:[Ff],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&&(F(0,Dsb,2,3),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.issues$))?0:-1,c)}},dependencies:function(){return[MY,
NX,bV,zU,nV,ZA,XA,TA,hK,fT,CV,YU,iz,MA,tY,sY,KY,py]},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 MY=function(){var a=this;this.editIssueService=q(tR);this.issueFridge=q(GO);this.IssueFieldKey=VLd;this.issueId$=new vf(1);this.automaticChange$=new vf(1);this.editableIssue$=this.issueId$.pipe(zf(function(b){return a.editIssueService.editableIssue$(b)}),wf({refCount:!0,bufferSize:1}));this.undone=!1;this.text$=he([this.editableIssue$,this.automaticChange$]).pipe(A(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:sb(d)}b=void 0}return b}))};MY.prototype.ngOnInit=function(){};
MY.prototype.undo=function(){var a=this,b,c,d;return y(function(e){if(e.nextAddress==1)return b=a.automaticChange.field,z(e,ee(a.editableIssue$),2);if(e.nextAddress!=3)return c=e.yieldResult,z(e,ee(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(Om(d.snapshot[0].assigneeUser));break;case "COMMENT":throw Error("Hf");default:sb(b)}a.undone=!0;$d(e)})};
da.Object.defineProperties(MY.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)},get:function(){return Pr(this.issueId$)}},automaticChange:{configurable:!0,enumerable:!0,set:function(a){this.automaticChange$.next(a)},get:function(){return Pr(this.automaticChange$)}}});MY.\u0275fac=function(a){return new (a||MY)};
MY.\u0275cmp=C({type:MY,selectors:[["automatic-change-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&xg("display",b.automaticChange.field===b.IssueFieldKey.COMMENT||b.undone?"none":"block")},inputs:{issueId:"issueId",automaticChange:"automaticChange"},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&&(K(0,"div",0),M(1,"mat-icon",1),K(2,"span",2),S(3),U(4,"async"),L(),K(5,"button",3),N("click",function(){return b.undo()}),S(6,"Undo"),L()());a&2&&(B(3),Ag(W(4,1,b.text$)))},dependencies:[ZA,XA,TA,hK,iz,MA,py],encapsulation:2,changeDetection:0});var NY=function(){LO.apply(this,arguments);this.TriageActionKey=Rrd;this.TriagePhase=Lhd;this.TriageSubphase=Mhd;this.CONFIRM_ACTION=Trd;this.SET_IN_PROGRESS=Vrd;this.SET_FIXED=asd;this.CHANGE_COMPONENT=bsd;this.NEEDS_MORE_INFO=Srd;this.SET_WONT_FIX=Zrd;this.SET_NEW=$rd;this.SET_PENDING_OWNER=Urd;this.SET_EXPECTED=Wrd;this.SET_PLANNED=Xrd;this.SET_COMMITTED=Yrd;this.needsInfoAutomaticChanges=[];this.cancelAction=new KO;this.finalizeAction=new KO};Z(NY,LO);NY.\u0275dir=LO.\u0275dir;
NY.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(NY)))(b||NY)}}();
NY.\u0275cmp=C({type:NY,selectors:[["secondary-footer"]],inputs:{needsInfoAutomaticChanges:"needsInfoAutomaticChanges",selectedTriageAction:"selectedTriageAction"},outputs:{cancelAction:"cancelAction",finalizeAction:"finalizeAction"},features:[Ff],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&&(F(0,Fsb,1,1,"ng-container")(1,
Hsb,1,1,"ng-container")(2,Jsb,1,1,"ng-container")(3,Lsb,1,1,"ng-container")(4,Nsb,1,1,"ng-container")(5,Psb,1,1,"ng-container")(6,Rsb,1,1,"ng-container")(7,Tsb,1,1,"ng-container")(8,Vsb,1,1,"ng-container")(9,Xsb,1,1,"ng-container")(10,Zsb,1,1,"ng-container"),E(11,$sb,4,7,"ng-template",null,0,Og)(13,atb,4,2,"ng-template",null,1,Og)(15,btb,4,2,"ng-template",null,2,Og)(17,ctb,4,2,"ng-template",null,3,Og)(19,dtb,4,3,"ng-template",null,4,Og)(21,etb,4,3,"ng-template",null,5,Og)(23,ftb,4,3,"ng-template",
null,6,Og)(25,gtb,4,3,"ng-template",null,7,Og)(27,htb,4,3,"ng-template",null,8,Og)(29,itb,4,3,"ng-template",null,9,Og)(31,jtb,4,2,"ng-template",null,10,Og));if(a&2){var c;G((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:[oy,LY],encapsulation:2,changeDetection:0});var OY=function(){this.issueExperimentalFieldsFridge=q(CO)},$Ld=function(a,b,c){var d;return y(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("If");default:sb(c)}e.jumpTo(13);break;case 2:return z(e,a.setNeedsInfo(b),14);case 14:d=e.yieldResult;e.jumpTo(13);break;case 3:return z(e,a.setConfirmed(b),15);case 15:d=e.yieldResult;e.jumpTo(13);break;case 4:return z(e,a.setPendingOwner(b),16);case 16:d=e.yieldResult;e.jumpTo(13);break;case 5:return z(e,a.setNew(b),17);case 17:d=e.yieldResult;e.jumpTo(13);break;case 6:return z(e,
a.setInProgress(b),18);case 18:d=e.yieldResult;e.jumpTo(13);break;case 7:return z(e,a.setExpected(b),19);case 19:d=e.yieldResult;e.jumpTo(13);break;case 8:return z(e,a.setPlanned(b),20);case 20:d=e.yieldResult;e.jumpTo(13);break;case 9:return z(e,a.setCommitted(b),21);case 21:d=e.yieldResult;e.jumpTo(13);break;case 10:return z(e,a.setFixed(b),22);case 22:d=e.yieldResult;e.jumpTo(13);break;case 11:return z(e,a.setNew(b),23);case 23:d=e.yieldResult;e.jumpTo(13);break;case 12:return z(e,a.setWontFix(b),
24);case 24:d=e.yieldResult;e.jumpTo(13);break;case 13:return e.return(d)}})};h=OY.prototype;h.setNeedsInfo=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="NEW";f.triage.subphase="NEEDS_INFO"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setConfirmed=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="CONFIRMED";f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setPendingOwner=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="CONFIRMED";f.triage.subphase="PENDING_OWNER"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setInProgress=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="IN_PROGRESS";f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setExpected=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="IN_PROGRESS";f.triage.subphase="EXPECTED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setPlanned=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="IN_PROGRESS";f.triage.subphase="PLANNED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setCommitted=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="IN_PROGRESS";f.triage.subphase="COMMITTED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setFixed=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.phase="FIXED";f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
h.setNew=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(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)})};
h.setWontFix=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,Promise.all(a.map(function(d){return y(function(e){return e.nextAddress==1?z(e,b.issueExperimentalFieldsFridge.updateOrInsert(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)})};OY.\u0275fac=function(a){return new (a||OY)};OY.\u0275prov=Cc({token:OY,factory:OY.\u0275fac,providedIn:"root"});var aMd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(aMd,X);h=aMd.prototype;h.getId=function(){return Fi(this,3)};h.setId=function(a){return $m(this,3,a)};h.getName=function(){return Fi(this,1)};h.setName=function(a){return $m(this,1,a)};h.getArgs=function(){return Y(this,FC,2)};h.getType=function(){return Ri(this,7)};h.setType=function(a){return cn(this,7,a)};var bMd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(bMd,X);var cMd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(cMd,X);h=cMd.prototype;h.getDataCase=function(){return Oo(this,PY)};h.clearData=function(){return fx(this,PY)};h.getText=function(){return So(this,2,PY)};h.setText=function(a){return Vo(this,2,PY,a)};h.hasText=function(){return Cr(this,2,PY)!=null};h.getFunctionCall=function(){return lm(this,aMd,4,PY)};h.hasFunctionCall=function(){return lj(this,aMd,4,PY)};h.getThought=function(){return $i(this,11)};
h.getVideoMetadata=function(){return lm(this,bMd,14,dMd)};h.hasVideoMetadata=function(){return lj(this,bMd,14,dMd)};h.getId=function(){return Fi(this,21)};h.setId=function(a){return Gj(this,21,a)};var PY=[2,3,4,5,6,7,9,10,15,17,18,22],dMd=[14];var QY=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(QY,X);QY.prototype.getPartsList=function(){return Wi(this,cMd,1,Xi())};QY.prototype.addParts=function(a){return fq(this,1,cMd,a)};QY.prototype.getRole=function(){return Fi(this,2)};QY.prototype.setRole=function(a){return $m(this,2,a)};var eMd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(eMd,X);var fMd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(fMd,X);h=fMd.prototype;h.setModel=function(a){return $m(this,1,a)};h.setSystemInstruction=function(a){hj(this,QY,8,a)};h.getSessionId=function(){return Hn(this,12)};h.setSessionId=function(a){return Nn(this,12,a)};h.hasSessionId=function(){return Gn(this,12)};h.setRequestContext=function(a){hj(this,eMd,17,a)};var mtb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(mtb,X);h=mtb.prototype;h.getIndex=function(){return Wm(this,3)};h.setIndex=function(a){Wn(this,3,a)};h.getContent=function(){return Y(this,QY,1)};h.setContent=function(a){return hj(this,QY,1,a)};h.hasContent=function(){return Si(this,QY,1)};var ltb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ltb,X);h=ltb.prototype;h.setCandidates=function(a,b){return dx(this,1,mtb,a,b)};h.getModelVersion=function(){return Fi(this,4)};h.setModelVersion=function(a){return $m(this,4,a)};h.getResponseId=function(){return Fi(this,5)};h.setResponseId=function(a){return $m(this,5,a)};var gMd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,gMd.messageId)};Z(gMd,X);gMd.messageId="b.GenerateContentResponse";var hMd=function(){this.executor=q(SM)};hMd.\u0275fac=function(a){return new (a||hMd)};hMd.\u0275prov=Cc({token:hMd,factory:hMd.\u0275fac,providedIn:"root"});var RY=function(){var a=this;this.geminiApi=q(hMd);this.issueFridge=q(GO);this.issueFullFridge=q(RO);this.getLlmResponse=oXa(function(b,c){var d,e;return y(function(f){if(f.nextAddress==1){d={prompt:b};var g=a.geminiApi;var k;var m=(new fMd).setModel((k=d.model)!=null?k:"models/gemini-1.5-flash");k=(new QY).addParts((new cMd).setText(d.prompt));m=fq(m,2,QY,k);g=g.executor.post({url:"/action/gemini/generate",options:{params:{feature:c}},body:m,responseConstructor:gMd}).then(ntb);return z(f,g,2)}e=
f.yieldResult;return f.return(e.output)})})},iMd=function(a,b){return b.length<3?be("Unknown (cluster is too small)"):le(function(){return a.issueFridge.watchSet(b)}).pipe(zf(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,"CLUSTER_TITLE")}))},kMd=function(a,b,c){return le(function(){return he(b.map(function(d){return a.issueFridge.watchSet(d)})).pipe(zf(function(d){d=
d.map(function(e){return e.map(function(f){return f.snapshot[0].title})});return jMd(a,d,c)}))})},jMd=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 le(function(){return a.getLlmResponse(f,"CLUSTER_TITLE")}).pipe(A(function(g){return g.split(",")}))},lMd=function(a,b){return b.length<3?be("Unknown (cluster is too small)"):le(function(){return a.issueFullFridge.watchSet(b)}).pipe(zf(function(c){var d,e,f,g,k,m,r;return y(function(w){if(w.nextAddress==1)return d="<START>",e="<END>",f=c.map(function(x){var D;return"Task b/"+x.issueId+' has title "'+x.snapshot[0].title+'" and has description "'+((D=x.description)==null?void 0:D.unlinkifiedComment.substring(0,
100))+'"'}).join("\n"),g="\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",z(w,a.getLlmResponse(g,"CLUSTER_DESCRIPTION"),2);k=w.yieldResult;m=k.indexOf(d);r=k.indexOf(e);return w.return(k.substring(m+d.length,r).trim())})}))};
RY.\u0275fac=function(a){return new (a||RY)};RY.\u0275prov=Cc({token:RY,factory:RY.\u0275fac,providedIn:"root"});var mMd=Pw(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/homepage-feedback-dark-mode.md"]),nMd=Pw(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/homepage-feedback.md"]),oMd=Pw(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback-dark-mode.md"]),pMd=Pw(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback.md"]),SY=function(){var a=this;this.dialogRef=q(dB);this.darkmodeService=q(fV);this.data=
q(fB);this.contentLoaded=!1;this.docUrl$=this.darkmodeService.clientDarkmode$.pipe(A(function(b){switch(a.data.type){case "HOMEPAGE":return b?Jh(mMd):Jh(nMd);default:return b?Jh(oMd):Jh(pMd)}}))};SY.\u0275fac=function(a){return new (a||SY)};
SY.\u0275cmp=C({type:SY,selectors:[["b-feedback-dialog"]],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","","cdkFocusInitial","","color","primary",1,"medium","dialog-primary-action",3,"click"],["frameborder","0","allowtransparency","true",3,"load","src"]],template:function(a,b){a&1&&(K(0,"div",0),F(1,
otb,1,3,"iframe",1),U(2,"async"),F(3,ptb,1,0,"mat-spinner",2),L(),K(4,"div",3)(5,"button",4),N("click",function(){return b.dialogRef.close(!1)}),S(6," Cancel "),L(),K(7,"button",5),N("click",function(){return b.dialogRef.close(!0)}),S(8," File a new issue "),L()());if(a&2){var c;B();G((c=W(2,2,b.docUrl$))?1:-1,c);B(2);G(b.contentLoaded?-1:3)}},dependencies:[ZA,XA,TA,fK,eK,NI,mB,lB,py],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 St=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(St,X);h=St.prototype;h.getEnableSsEngine=function(){return $i(this,2)};h.getEnableAwr=function(){return $i(this,3)};h.getAlohaAutoGaRollout=function(){return $i(this,5)};h.getEnableConfigurator=function(){return $i(this,6)};h.getEnableMweb=function(){return $i(this,7)};var rMd=function(){var a=qMd();return sp(a,7,!0)};St.prototype.getEnableCtlConsentCheckbox=function(){return $i(this,8)};
St.prototype.getEnableIframe=function(){return $i(this,9)};var qMd=function(){var a=new St;a=sp(a,5,!0);a=sp(a,2,!0);a=sp(a,4,!1);a=sp(a,8,!0);return sp(a,9,!0)};St.prototype.getEnableScreenshotNudge=function(){return $i(this,10)};var sMd=function(){var a=rMd();return sp(a,10,!0)};St.prototype.getEnableWebStartupConfigEndpoint=function(){return $i(this,11)};St.prototype.getEnableJunkNudge=function(){return $i(this,12)};var Itb=function(){var a=sMd();return sp(a,12,!0)};h=St.prototype;
h.getEnableConfiguratorLocale=function(){return $i(this,13)};h.getEnableTinyNoPointer=function(){return $i(this,14)};h.getEnableSupportSessionLogging=function(){return $i(this,15)};h.getEnableFileUploadForScreenshot=function(){return $i(this,16)};h.getEnableDirectDeflectionForSingleCategory=function(){return $i(this,17)};h.getEnableImageSanitization=function(){return $i(this,18)};h.getEnableAlohaBinarySplit=function(){return $i(this,19)};h.getEnableDbFeedbackIntents=function(){return $i(this,20)};
h.getEnableMarkMandatoryFieldsWithRequired=function(){return $i(this,21)};h.getEnableFeedbackCategoryCustomUi=function(){return $i(this,22)};h.getEnableRealtimeCtl=function(){return $i(this,23)};var Htb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Htb,X);var qtb=[/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 stb="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 ttb=Pw(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),utb=Pw(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var Rt=function(){var a=Error.call(this,"Form is either loading or already opened");this.message=a.message;"stack"in a&&(this.stack=a.stack);this.name="DuplicateFormError"};Z(Rt,Error);var wtb,ztb,xtb,Atb;var tMd=function(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||ra,e=d.document,f=a.nonce||Lh.getScriptNonce(d.document);f&&!a.nonce&&(a.nonce=f);if(a.flow=="help"){var g=sv("document.location.href",d);!a.helpCenterContext&&g&&(a.helpCenterContext=g.substring(0,1200));g=!0;if(b&&JSON&&JSON.stringify){var k=JSON.stringify(b);(g=k.length<=1200)&&(a.psdJson=k)}g||(b={invalidPsd:!0})}b=[a,b,c];d.GOOGLE_FEEDBACK_START_ARGUMENTS=b;c=a.feedbackServerUri||"//www.google.com/tools/feedback";if(g=d.GOOGLE_FEEDBACK_START)g.apply(d,
b);else{d=c+"/load.js?";for(var m in a)b=a[m],b==null||gq(b)||(d+=encodeURIComponent(m)+"="+encodeURIComponent(b)+"&");a=Bj(e).createElement("SCRIPT");f&&a.setAttribute("nonce",f);Lh.setScriptSrc(a,xh(d));e.body.appendChild(a)}},uMd=function(a,b,c,d){var e,f;return y(function(g){e=c||ra;var k=a.serverEnvironment==="DEV",m=c||ra;m=a.nonce||Lh.getScriptNonce(m.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:m,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&&(m=new Map(Object.entries(b)),k.extraData.productSpecificData=m);f=k;return z(g,Etb(f,d,e),0)})},vMd=function(a,b,c){try{if(a.flow==="help"){var d=
a.helpCenterPath.replace(/^\//,"");Lh.windowOpen(c||window,"https://support.google.com/"+d)}else a.flow==="submit"?tMd(a,b,c):Jtb(a.productId,a.feedbackServerUri).then(function(e){e=Y(e,St,1);var f=!oBc||(e==null?void 0:e.getEnableMweb()),g=!a.tinyNoPointer||(e==null?void 0:e.getEnableTinyNoPointer());!e||e.getAlohaAutoGaRollout()&&f&&g?uMd(a,b,c,e).catch(function(k){!k||k instanceof Rt||tMd(a,b,c)}):tMd(a,b,c)},function(e){!e||e instanceof Rt||tMd(a,b,c)})}catch(e){uMd(a,b,c,null).catch(function(f){!f||
f instanceof Rt||tMd(a,b,c)})}};Vw("userfeedback.api.startFeedback",vMd);var wMd={width:"500px",maxHeight:"80vh",autoFocus:!0},xMd=new Date,TY=function(){this.activeSession=q(Zu);this.matDialog=q(gB);this.reportStartTime=new Date};TY.prototype.startFeedback=function(){var a=this;this.reportStartTime=new Date;this.activeSession.isInternalSession()?eB(this.matDialog.open(SY,Object.assign({},wMd,{height:"640px",data:{type:"DEFAULT"}}))).subscribe(function(b){b&&yMd(a)}):yMd(this)};
var rpc=function(a){a.reportStartTime=new Date;a.activeSession.isInternalSession()?eB(a.matDialog.open(SY,Object.assign({},wMd,{height:"400px",data:{type:"HOMEPAGE"}}))).subscribe(function(b){b&&yMd(a)}):yMd(a)},yMd=function(a){var b={productId:92912,nonce:a.activeSession.getCspNonce(),productVersion:"buganizer.frontend_20251202.10_p0"};b.bucket=Is(a.activeSession)?"buganizer-trackers-feedback":"buganizer3-feedback";var c=[].concat(n([]),n(ejd(a.activeSession))).join(", ");c={userType:a.activeSession.getUserTypeLabel(),
flags:c};if(Is(a.activeSession)){var d,e;c.trackerId=(e=(d=a.activeSession.getTracker())==null?void 0:d.trackerId)!=null?e:""}c.initialLoadTime=Ktb(xMd);c.reportStartTime=Ktb(a.reportStartTime);vMd(b,c)};TY.\u0275fac=function(a){return new (a||TY)};TY.\u0275prov=Cc({token:TY,factory:TY.\u0275fac,providedIn:"root"});var zMd=["actionsMenuIconButton"],UY=function(){this.buttonLabel="";this.buttonIcon="more-settings-vertical";this.buttonSize="medium";this.menuClass="actions-menu"};UY.prototype.onAction=function(a,b){return y(function(c){if(c.nextAddress==1)return z(c,Gs(0),2);if(a.type==="mouseup"&&a instanceof MouseEvent&&a.button!==1)return c.return();b.type!=="action"&&b.type!=="select"||b.action(a);$d(c)})};UY.prototype.ngOnInit=function(){};UY.\u0275fac=function(a){return new (a||UY)};
UY.\u0275cmp=C({type:UY,selectors:[["b-actions-menu"]],viewQuery:function(a,b){a&1&&kg(zMd,5);if(a&2){var c;og(c=pg())&&(b.actionsMenuIconButton=c.first)}},inputs:{menuItems:"menuItems",buttonLabel:"buttonLabel",buttonIcon:"buttonIcon",buttonSize:"buttonSize",header:"header",menuClass:"menuClass"},decls:7,vars:5,consts:[["menu","matMenu"],["actionsMenuIconButton",""],["submenu","matMenu"],["type","button","mat-icon-button","","aria-haspopup","true",3,"class","matTooltip","matMenuTriggerFor"],[1,"b-actions-menu-panel"],
[1,"bv2-menu-header"],["type","button","mat-icon-button","","aria-haspopup","true",3,"matTooltip","matMenuTriggerFor"],[1,"icon-s",3,"svgIcon"],["type","button","mat-menu-item","",3,"matMenuTriggerFor"],[1,"hint"],["type","button","mat-menu-item","",3,"disabled","class"],["type","button","mat-menu-item","","role","menuitemcheckbox",3,"b-menu-item-checked","disabled","class"],["type","button","mat-menu-item","",3,"click","mouseup","disabled"],["type","button","mat-menu-item","","role","menuitemcheckbox",
3,"click","mouseup","disabled"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"]],template:function(a,b){a&1&&(F(0,Ltb,3,6,"button",3),K(1,"mat-menu",null,0)(3,"div",4),F(4,Mtb,2,1,"div",5),Pf(5,$tb,2,2,null,null,Nf),L()());a&2&&(G(b.menuItems.length>0?0:-1),B(),zg(Gg("",b.menuClass,"-menu")),B(3),G(b.header?4:-1),B(),Qf(b.menuItems))},dependencies:[ZA,XA,VA,OJ,NJ,LF,JF,OF,hK,iz,MA],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 AMd={type:"action",label:"Report illegal content"},BMd={type:"submenu",label:"View as"},CMd={type:"action",label:"Restriction settings..."},DMd={type:"action",label:"Show editing history"};var VY=function(){LO.apply(this,arguments);var a=this;this.triageService=q(KQ);this.llmService=q(RY);this.issueFridge=q(GO);this.issueFullFridge=q(RO);this.issuePermissionService=q(NP);this.issuePicker=q(pX);this.issueApi=q(uO);this.errorHandler=q(ZM);this.butterBar=q(JM);this.domSafe=q($P);this.analytics=q(PO);this.triagePhaseService=q(OY);this.userFeedback=q(TY);this.isClosed=rWa;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(zf(function(b){return a.issueFridge.watch(b[0])}));this.issuePhase$=this.issue$.pipe(A(Ur));this.title$=this.issueIds$.pipe(zf(function(b){return iMd(a.llmService,b)}));this.clusterDescription$=this.issueIds$.pipe(zf(function(b){return lMd(a.llmService,b)}));this.rows$=this.issueIds$.pipe(A(function(b){return b.map(function(c){return{id:c,issue$:a.issueFridge.watch(c)}})}));
this.searchUrl$=this.issueIds$.pipe(A(function(b){return{path:"/issues",params:{q:"id:("+b.join("|")+")"}}}));this.refreshTable=new KO;this.checkedIssueIds=new OP;this.areAllChecked$=he([this.issueIds$,this.checkedIssueIds.value$]).pipe(A(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};Z(VY,LO);VY.\u0275dir=LO.\u0275dir;h=VY.prototype;
h.ngOnInit=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,ee(a.issueIds$),2);b=c.yieldResult;a.checkedIssueIds.reset(b);$d(c)})};h.toggleAll=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return z(d,ee(b.issueIds$),2);c=d.yieldResult;a.checked?b.checkedIssueIds.reset(c):b.checkedIssueIds.reset([]);$d(d)})};
h.openDupeDialog=function(){var a=this,b,c,d,e,f,g,k;return y(function(m){if(m.nextAddress==1){b=[].concat(n(a.checkedIssueIds));if(!b||!b.length)return m.return();c=SWa;return z(m,ee(a.issueFridge.watchSet(b)),2)}if(m.nextAddress!=3)return d=c(m.yieldResult),e=l,z(m,a.issuePicker.open({componentId:d||null,allowMultipleIds:!1,currentResource:{id:b[0],type:"issue"},edgeType:"canonical",originIsBulk:!0}),3);f=e(m.yieldResult);return(k=g=f.next().value)?z(m,a.markAsDuplicate(k,b),0):m.return()})};
h.getMenuItems=function(a){var b=this;return[{type:"action",label:"Go to issue",action:function(){b.domSafe.openInNewTab(zs.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(n(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"}]};
h.markAsDuplicate=function(a,b){var c=this,d,e,f;return y(function(g){switch(g.nextAddress){case 1:d=b.filter(function(k){return k!==a});if(!d.length)return g.return();e={bulkEditOps:[{actions:[{fieldName:"duplicateOfIssueId",value:a}],issueIds:b}]};Vd(g,2,3);fs(c.butterBar,"Saving...");return z(g,c.issueApi.issueBulkEdit(e),5);case 5:fs(c.butterBar,"Marked "+b.length+" issues as duplicate.");case 3:return Wd(g),z(g,Promise.all([].concat(n(b.map(function(k){return c.issueFridge.poke(k)})),[c.issueFridge.poke(a)])),
6);case 6:Yd(g,0);break;case 2:f=Zd(g),aN(c.errorHandler,f),g.jumpTo(3)}})};h.cancelAction=function(){this.displaySecondaryFooter=!1};h.finalizeSecondaryAction=function(a){var b=this,c,d;return y(function(e){if(e.nextAddress==1)return b.displaySecondaryFooter=!1,(c=b.selectedTriageAction)?z(e,$Ld(b.triagePhaseService,a,c),2):e.return();d=e.yieldResult;b.displaySecondaryFooter=!1;b.announceUpdate(a,d);$d(e)})};h.sendFeedback=function(){yMd(this.userFeedback)};
h.trackThumbsUp=function(){this.thumbsUpClicked=this.hasReacted=!0;this.analytics.trackEvent("issueCluster","accept","trendingThemes")};h.trackThumbsDown=function(){this.thumbsDownClicked=this.hasReacted=!0;this.analytics.trackEvent("issueCluster","reject","trendingThemes")};
h.openSecondaryActionFooter=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return c=[].concat(n(b.checkedIssueIds)),b.triageService.internalSelectedIssueIds$.next(c),a!=="MARK_AS_DUPLICATE"?d.jumpTo(2):z(d,b.openDupeDialog(),3);if(d.nextAddress!=2)return d.return();b.selectedTriageAction=a;b.displaySecondaryFooter=!0;$d(d)})};h.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()};
VY.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(VY)))(b||VY)}}();
VY.\u0275cmp=C({type:VY,selectors:[["cluster-triage-sidebar"]],outputs:{refreshTable:"refreshTable"},features:[Ff],decls:48,vars:25,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"],["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"],[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&&(K(0,"div",
0)(1,"div",1),M(2,"b-signal-chip",2),K(3,"button",3),N("click",function(){return b.triageService.closeSidebar()}),M(4,"mat-icon",4),L()(),K(5,"div",5)(6,"div",6)(7,"h3",7),S(8),U(9,"async"),U(10,"async"),L(),M(11,"span",8),K(12,"div",9)(13,"button",10),N("click",function(){return b.sendFeedback()}),M(14,"mat-icon",11),L(),K(15,"button",12),N("click",function(){return b.trackThumbsUp()}),M(16,"mat-icon",13),L(),K(17,"button",14),N("click",function(){return b.trackThumbsDown()}),M(18,"mat-icon",15),
L()()(),K(19,"div",16),F(20,cub,5,1,"div",17),U(21,"async"),K(22,"div",18)(23,"span",19),S(24,"Select issues to take action"),L(),K(25,"table",20),Vf(26,21),E(27,dub,4,6,"th",22)(28,eub,3,3,"td",23),Wf(),Vf(29,24),E(30,fub,2,0,"th",22)(31,gub,3,4,"td",23),Wf(),Vf(32,25),E(33,hub,2,0,"th",22)(34,kub,3,3,"td",23),Wf(),Vf(35,26),E(36,lub,2,0,"th",27)(37,oub,3,3,"td",28),Wf(),Vf(38,29),E(39,pub,1,0,"th",22)(40,qub,2,1,"td",23),Wf(),E(41,rub,1,0,"tr",30)(42,sub,2,4,"tr",31),L(),F(43,tub,2,2,"a",32),U(44,
"async"),L()()(),K(45,"div",33),F(46,wub,2,1),U(47,"async"),L()());if(a&2){var c,d,e,f;B(8);Bg("",W(9,15,b.title$)," (",(c=W(10,17,b.issueIds$))==null?null:c.length," issues)");B(7);I("disabled",b.hasReacted);B();yg("has-reacted-icon",b.thumbsUpClicked);B();I("disabled",b.hasReacted);B();yg("has-reacted-icon",b.thumbsDownClicked);B(2);G((d=W(21,19,b.clusterDescription$))?20:-1,d);B(5);I("dataSource",b.rows$)("trackBy",b.trackBy);B(16);I("matHeaderRowDef",b.tableColumns);B();I("matRowDefColumns",b.tableColumns);
B();G((e=W(44,21,b.searchUrl$))?43:-1,e);B(3);G((f=W(47,23,b.issuePhase$))?46:-1,f)}},dependencies:[UY,DT,ZA,XA,TA,VA,PK,OK,wI,GW,FW,QS,DS,JS,FS,CS,LS,GS,IS,MS,OS,hK,BW,iz,MA,EF,NY,JW,CT,py],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 WY=function(){var a=this;this.data=q(fB);this.cdr=q(MO,{self:!0});this.codefont=q(XP);this.location=q(oi);this.paths=q(wV);this.userFeedback=q(TY);this.errorHandler=q(ZM);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()})};
WY.prototype.updateUrl=function(a,b){a.stopPropagation();a=As(this.issueId)+("#comment"+this.commentNumber+"version"+b);this.location.replaceState(a)};WY.prototype.startFeedback=function(){this.userFeedback.startFeedback()};WY.\u0275fac=function(a){return new (a||WY)};
WY.\u0275cmp=C({type:WY,selectors:[["comment-history-dialog"]],features:[Ig([MO])],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&&(K(0,"h2",0),S(1),L(),
K(2,"mat-dialog-content")(3,"div",1)(4,"mat-checkbox",2),N("change",function(c){return b.diffView=c.checked}),S(5," Show Diff "),L()(),K(6,"a",3),N("click",function(){return b.startFeedback()}),S(7,"Feedback"),L(),M(8,"br",4),F(9,xub,2,0,"div",5)(10,Mub,3,0,"ul",6),L(),K(11,"mat-dialog-actions")(12,"button",7),S(13,"Close"),L()());a&2&&(B(),T("History for Comment #",b.commentNumber),B(3),I("checked",b.diffView),B(5),G(b.isLoading?9:10))},dependencies:[DT,ZA,XA,TA,PK,OK,wI,mB,hB,lB,kB,TR,VS,kU,mU,
sR,py,qU],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 Nub=function(){},Ut=function(a,b,c,d,e){typeof e=="undefined"&&(e=(new Date).getTime()+1E3);if(b==null||c==null)throw Error("Mf");if(b==c)return b?[[0,b]]:[];typeof d=="undefined"&&(d=!0);var f=EMd(b,c),g=b.substring(0,f);b=b.substring(f);c=c.substring(f);f=FMd(b,c);var k=b.substring(b.length-f);b=b.substring(0,b.length-f);c=c.substring(0,c.length-f);b=GMd(a,b,c,d,e);g&&b.unshift([0,g]);k&&b.push([0,k]);HMd(a,b);return b},GMd=function(a,b,c,d,e){if(!b)return[[1,c]];if(!c)return[[-1,b]];var f=
b.length>c.length?b:c,g=b.length>c.length?c:b,k=f.indexOf(g);if(k!=-1)return a=[[1,f.substring(0,k)],[0,g],[1,f.substring(k+g.length)]],b.length>c.length&&(a[0][0]=a[2][0]=-1),a;if(g.length==1)return[[-1,b],[1,c]];if(f=IMd(b,c))return c=f[1],g=f[3],b=f[4],f=Ut(a,f[0],f[2],d,e),a=Ut(a,c,g,d,e),f.concat([[0,b]],a);if(d&&b.length>100&&c.length>100){b=JMd(b,c);c=b.lineArray;b=Ut(a,b.chars1,b.chars2,!1,e);for(d=0;d<b.length;d++){f=b[d][1];g=[];for(k=0;k<f.length;k++)g[k]=c[f.charCodeAt(k)];b[d][1]=g.join("")}Oub(a,
b);b.push([0,""]);f=d=c=0;for(k=g="";c<b.length;){switch(b[c][0]){case 1:f++;k+=b[c][1];break;case -1:d++;g+=b[c][1];break;case 0:if(d>=1&&f>=1){b.splice(c-d-f,d+f);c=c-d-f;d=Ut(a,g,k,!1,e);for(f=d.length-1;f>=0;f--)b.splice(c,0,d[f]);c+=d.length}d=f=0;k=g=""}c++}b.pop();a=b}else a:{d=b.length;f=c.length;g=Math.ceil((d+f)/2);k=2*g;for(var m=Array(k),r=Array(k),w=0;w<k;w++)m[w]=-1,r[w]=-1;m[g+1]=0;r[g+1]=0;w=d-f;for(var x=w%2!=0,D=0,H=0,J=0,O=0,R=0;R<g&&!((new Date).getTime()>e);R++){for(var V=-R+
D;V<=R-H;V+=2){var ba=g+V;var pa=V==-R||V!=R&&m[ba-1]<m[ba+1]?m[ba+1]:m[ba-1]+1;for(var ua=pa-V;pa<d&&ua<f&&b.charAt(pa)==c.charAt(ua);)pa++,ua++;m[ba]=pa;if(pa>d)H+=2;else if(ua>f)D+=2;else if(x&&(ba=g+w-V,ba>=0&&ba<k&&r[ba]!=-1)){var ma=d-r[ba];if(pa>=ma){a=KMd(a,b,c,pa,ua,e);break a}}}for(V=-R+J;V<=R-O;V+=2){ba=g+V;ma=V==-R||V!=R&&r[ba-1]<r[ba+1]?r[ba+1]:r[ba-1]+1;for(pa=ma-V;ma<d&&pa<f&&b.charAt(d-ma-1)==c.charAt(f-pa-1);)ma++,pa++;r[ba]=ma;if(ma>d)O+=2;else if(pa>f)J+=2;else if(!x&&(ba=g+w-V,
ba>=0&&ba<k&&m[ba]!=-1&&(pa=m[ba],ua=g+pa-ba,ma=d-ma,pa>=ma))){a=KMd(a,b,c,pa,ua,e);break a}}}a=[[-1,b],[1,c]]}return a},KMd=function(a,b,c,d,e,f){var g=b.substring(d),k=c.substring(e);b=Ut(a,b.substring(0,d),c.substring(0,e),!1,f);a=Ut(a,g,k,!1,f);return b.concat(a)},JMd=function(a,b){function c(g){for(var k="",m=0,r=-1,w=d.length;r<g.length-1;){r=g.indexOf("\n",m);r==-1&&(r=g.length-1);var x=g.substring(m,r+1);(e.hasOwnProperty?e.hasOwnProperty(x):e[x]!==void 0)?k+=String.fromCharCode(e[x]):(w==
f&&(x=g.substring(m),r=g.length),k+=String.fromCharCode(w),e[x]=w,d[w++]=x);m=r+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}},EMd=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},FMd=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},LMd=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++}},IMd=function(a,b){function c(k,m,r){for(var w=k.substring(r,r+Math.floor(k.length/4)),x=-1,D="",
H,J,O,R;(x=m.indexOf(w,x+1))!=-1;){var V=EMd(k.substring(r),m.substring(x)),ba=FMd(k.substring(0,r),m.substring(0,x));D.length<ba+V&&(D=m.substring(x-ba,x)+m.substring(x,x+V),H=k.substring(0,r-ba),J=k.substring(r+V),O=m.substring(0,x-ba),R=m.substring(x+V))}return D.length*2>=k.length?[H,J,O,R,D]: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 g;if(f||d)d?g=f?f[4].length>d[4].length?
f:d:d:g=f;else return null;a.length>b.length?(a=g[0],b=g[1],f=g[2],d=g[3]):(f=g[0],d=g[1],a=g[2],b=g[3]);return[a,b,f,d,g[4]]},Oub=function(a,b){for(var c=!1,d=[],e=0,f=null,g=0,k=0,m=0,r=0,w=0;g<b.length;)b[g][0]==0?(d[e++]=g,k=r,m=w,w=r=0,f=b[g][1]):(b[g][0]==1?r+=b[g][1].length:w+=b[g][1].length,f&&f.length<=Math.max(k,m)&&f.length<=Math.max(r,w)&&(b.splice(d[e-1],0,[-1,f]),b[d[e-1]+1][0]=1,e--,e--,g=e>0?d[e-1]:-1,w=r=m=k=0,f=null,c=!0)),g++;c&&HMd(a,b);MMd(b);for(g=1;g<b.length;){if(b[g-1][0]==
-1&&b[g][0]==1){a=b[g-1][1];c=b[g][1];d=LMd(a,c);e=LMd(c,a);if(d>=e){if(d>=a.length/2||d>=c.length/2)b.splice(g,0,[0,c.substring(0,d)]),b[g-1][1]=a.substring(0,a.length-d),b[g+1][1]=c.substring(d),g++}else if(e>=a.length/2||e>=c.length/2)b.splice(g,0,[0,a.substring(0,e)]),b[g-1][0]=1,b[g-1][1]=c.substring(0,c.length-e),b[g+1][0]=-1,b[g+1][1]=a.substring(e),g++;g++}g++}},MMd=function(a){function b(x,D){if(!x||!D)return 6;var H=x.charAt(x.length-1),J=D.charAt(0),O=H.match(NMd),R=J.match(NMd),V=O&&H.match(OMd),
ba=R&&J.match(OMd);H=V&&H.match(PMd);J=ba&&J.match(PMd);x=H&&x.match(QMd);D=J&&D.match(RMd);return x||D?5:H||J?4:O&&!V&&ba?3:V||ba?2:O||R?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],g=FMd(d,e);if(g){var k=e.substring(e.length-g);d=d.substring(0,d.length-g);e=k+e.substring(0,e.length-g);f=k+f}g=d;k=e;for(var m=f,r=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 w=b(d,e)+b(e,f);w>=r&&(r=
w,g=d,k=e,m=f)}a[c-1][1]!=g&&(g?a[c-1][1]=g:(a.splice(c-1,1),c--),a[c][1]=k,m?a[c+1][1]=m:(a.splice(c+1,1),c--))}c++}},NMd=/[^a-zA-Z0-9]/,OMd=/\s/,PMd=/[\r\n]/,QMd=/\n\r?\n$/,RMd=/^\r?\n\r?\n/,HMd=function(a,b){b.push([0,""]);for(var c=0,d=0,e=0,f="",g="",k;c<b.length;)switch(b[c][0]){case 1:e++;g+=b[c][1];c++;break;case -1:d++;f+=b[c][1];c++;break;case 0:d+e>1?(d!==0&&e!==0&&(k=EMd(g,f),k!==0&&(c-d-e>0&&b[c-d-e-1][0]==0?b[c-d-e-1][1]+=g.substring(0,k):(b.splice(0,0,[0,g.substring(0,k)]),c++),g=g.substring(k),
f=f.substring(k)),k=FMd(g,f),k!==0&&(b[c][1]=g.substring(g.length-k)+b[c][1],g=g.substring(0,g.length-k),f=f.substring(0,f.length-k))),d===0?b.splice(c-e,d+e,[1,g]):e===0?b.splice(c-d,d+e,[-1,f]):b.splice(c-d-e,d+e,[-1,f],[1,g]),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,g=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&&HMd(a,b)};var XY=function(){this.analytics=q(PO);this.issueComments=q(dR);this.dialogManager=q(gB)};XY.prototype.show=function(a,b,c){var d=this,e;return y(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:SMd(d,a,b,c)};d.dialog=d.dialogManager.open(WY,{data:e,width:"50vw"});return f.return(ee(eB(d.dialog)))})};
var SMd=function(a,b,c,d){return a.issueComments.listHistory(b,c).then(function(e){var f=e.length>0?e[0].unlinkifiedComment:"",g=e.length>0?e[0].formattingMode:"",k=!1,m=[];e=l(e);for(var r=e.next();!r.done;r=e.next()){r=r.value;var w=Qub(r);w||k?(f=TMd(r.unlinkifiedComment),g=TMd(r.formattingMode)):(f=Pub(f,r.unlinkifiedComment),k=r.formattingMode,g=g===k?TMd(k):Fh([TMd(g,"diff-removed"),TMd(k,"diff-added")]));k=r.unlinkifiedComment===void 0?"":r.unlinkifiedComment;var x=r.version,D=r.commentContentVerdict;
m.push({unlinkifiedComment:k,lastEditorUser:r.lastEditorUser,version:x,formattingMode:r.formattingMode,formattingModeDiff:g,lastModified:Number(r.lastModified)/1E3,open:x<25,preview:k.length<=48?k:k.substring(0,45)+"...",diff:f,restricted:D&&D.piiVerdict&&D.piiVerdict.severity!=="NONE_DETECTED"||!1,deleted:Qub(r)});f=r.unlinkifiedComment;g=r.formattingMode;k=w}d>-1?m[d].open=!0:m[0].open=!0;return m})},TMd=function(a,b){return Gh("span",b?{"class":b}:void 0,a)};
XY.\u0275fac=function(a){return new (a||XY)};XY.\u0275prov=Cc({token:XY,factory:XY.\u0275fac,providedIn:"root"});var YY=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,YY.messageId)};Z(YY,X);YY.prototype.getUrl=function(){return Fi(this,1,void 0,fb)};YY.prototype.setUrl=function(a){return Gj(this,1,a,fb)};YY.prototype.hasUrl=function(){return xm(this,1,fb)};YY.messageId="b.AttachmentUrlResponse";var ZY=function(){this.executor=q(SM)};ZY.prototype.get=function(a,b,c,d){if(!a||!b)return Promise.reject(Error("Of"));var e={};d&&(e["X-Restricted-Content-Limit"]=String(M_a(d)));return this.executor.get({url:"action/issues/"+a+"/attachments/"+b+"/url",options:{headers:e,params:{download:String(c)}},responseConstructor:YY}).then(function(f){return f.getUrl()})};ZY.\u0275fac=function(a){return new (a||ZY)};ZY.\u0275prov=Cc({token:ZY,factory:ZY.\u0275fac,providedIn:"root"});var $Y=function(){this.templateRef=q(hg);this.viewContainer=q(ig);this.activeSession=q(Zu);this.isInternal=this.activeSession.isInternalSession()};$Y.prototype.ngOnInit=function(){this.isInternal&&this.viewContainer.createEmbeddedView(this.templateRef)};$Y.\u0275fac=function(a){return new (a||$Y)};$Y.\u0275dir=af({type:$Y,selectors:[["","internalOnly",""]]});var aZ=function(){this.dialogRef=q(dB);this.data=q(fB);this.userAccess=q(lO);this.attachmentsUrl=q(ZY);this.butterBar=q(JM);this.domSafe=q($P);this.documentationLinks=q(OQ);this.changeDetectorRef=q(MO,{self:!0});this.attachment=this.data.attachment;this.issueId=this.data.issueId;this.isLoading=!0;this.hasViewAccess=!1;this.download=this.data.download};aZ.prototype.ngOnInit=function(){this.changeDetectorRef.detectChanges();this.setHasViewAccess()};
aZ.prototype.setHasViewAccess=function(){var a=this;this.isLoading=!0;Sub(this)?(this.hasViewAccess=!1,mO(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)};aZ.prototype.getRestrictionSeverity=function(){var a=this.attachment.contentVerdict;if(a&&(a=a.piiVerdict))return a.severity};
var Sub=function(a){return(a=a.getRestrictionSeverity())?a!=="NONE_DETECTED":!1},UMd=function(a){var b=a.download&&aTa(a.attachment.contentType);a.attachmentsUrl.get(a.issueId,a.attachment.attachmentId,b,a.getRestrictionSeverity()).then(function(c){b?Iqd(a.domSafe,c):a.domSafe.openInNewTab(c);a.close()},function(){a.butterBar.showWarning("Failed to load attachment. Please refresh and try again.");a.close()})};aZ.prototype.close=function(){this.dialogRef.close();this.changeDetectorRef.detectChanges()};
aZ.prototype.getRestrictedAccessHelpLink=function(){return this.documentationLinks.getRestrictedAccessHelpLink()};aZ.\u0275fac=function(a){return new (a||aZ)};
aZ.\u0275cmp=C({type:aZ,selectors:[["b-attachment-download-dialog"]],features:[Ig([MO])],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&&(K(0,"h1",0),S(1,"Access Attachment"),L(),K(2,"div",1)(3,"div",2),S(4," Are you sure you would like to access the following attachment? "),L(),M(5,"br"),K(6,"div",3)(7,"div",4),M(8,"mat-icon",5),L(),K(9,"div",6),S(10),L()(),M(11,"br"),E(12,Tub,2,1,"ng-container",7),F(13,Uub,3,0,"div",2),L(),F(14,Vub,1,0,"mat-spinner",8),K(15,"div",9)(16,
"button",10),N("click",function(){return b.close()}),S(17," Cancel "),L(),K(18,"button",11),N("click",function(){return UMd(b)}),S(19," Continue "),L()());a&2&&(B(10),T(" ",b.attachment.filename," "),B(3),G(b.isLoading||b.hasViewAccess?-1:13),B(),G(b.isLoading?14:-1),B(4),I("disabled",!b.hasViewAccess))},dependencies:[ZA,XA,TA,fK,eK,NI,$Y,mB,lB,kB,iz],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 VMd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(VMd,X);h=VMd.prototype;h.getIssueId=function(){return Hn(this,1)};h.getIssueId_asString=function(){return Ln(this,1)};h.setIssueId=function(a){return ap(this,1,a)};h.getAttachmentId_asString=function(){return Ln(this,2)};h.setAttachmentId=function(a){return ap(this,2,a)};h.getRestrictedRetention=function(){return Ri(this,3)};h.setRestrictedRetention=function(a){return cn(this,3,a)};var WMd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(WMd,X);WMd.prototype.getIt=function(){return Y(this,VMd,4)};WMd.prototype.setIt=function(a){return hj(this,VMd,4,a)};var bZ=function(){this.executor=q(RM)};bZ.prototype.updateRetention=function(a,b,c){c=(new WMd).setIt((new VMd).setIssueId(a).setAttachmentId(Number(b)).setRestrictedRetention(pYa(c)));return this.executor.post({url:"action/issues/"+a+"/attachments/"+b+"/update_retention",body:c,responseConstructor:XQ}).pipe(A(t9a))};bZ.\u0275fac=function(a){return new (a||bZ)};bZ.\u0275prov=Cc({token:bZ,factory:bZ.\u0275fac,providedIn:"root"});var XMd;var YMd=Symbol("Pf"),ZMd=Symbol("Qf"),$Md=Symbol("Rf"),aNd=/^[a-z0-9-_]{6,30}$/,bNd="productID must match the expression: "+aNd;var Vt=Object.assign({},{REPORTING_ENABLED:!0,REPORTING_URL_PREFIX:"https://csp.withgoogle.com/csp/lcreport/",SCF_REPORTING_PRODUCTION_ID:"scf-rendered-content",SCF_REPORTING_TEST_ID:"scf-rendered-content-test",PRODUCT_IDS_ALLOWLIST:["looker-studio","careerscms","translate-web"],TEST_PRODUCT_IDS:["scf-demo","test-product"],CRASH_SAMPLE_RATE:1,HEARTBEAT_SAMPLE_RATE:.01,ENABLE_COLLECTING_NETWORK_INFO:!1}),Xub={};Ww(Wt,$ub);for(var cNd=[],dNd=0;dNd<63;dNd++)cNd[dNd]=0;var eNd=[].concat(128,cNd);Wt.prototype.reset=function(){this.total_=this.inChunk_=0;this.hash_=ra.Int32Array?new Int32Array(this.initHashBlocks_):Ma(this.initHashBlocks_)};
var fNd=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,g=a.hash_[4]|0,k=a.hash_[5]|0,m=a.hash_[6]|0,r=a.hash_[7]|0,w=0;w<64;w++){var x=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&d^b&e^d&e)|0,D=(r+((g>>>6|g<<26)^
(g>>>11|g<<21)^(g>>>25|g<<7))|0)+(((g&k^~g&m)+(avb[w]|0)|0)+(c[w]|0)|0)|0;r=m;m=k;k=g;g=f+D|0;f=e;e=d;d=b;b=D+x|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]+g|0;a.hash_[5]=a.hash_[5]+k|0;a.hash_[6]=a.hash_[6]+m|0;a.hash_[7]=a.hash_[7]+r|0};
Wt.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&&(fNd(this),d=0);else if(Na(a))for(;c<b;){var e=a[c++];if(!("number"==typeof e&&0<=e&&255>=e&&e==(e|0)))throw Error("Uf");this.chunk_[d++]=e;d==this.blockSize&&(fNd(this),d=0)}else throw Error("Vf");this.inChunk_=d;this.total_+=b};
Wt.prototype.digest=function(){var a=[],b=this.total_*8;this.inChunk_<56?this.update(eNd,56-this.inChunk_):this.update(eNd,this.blockSize-(this.inChunk_-56));for(var c=63;c>=56;c--)this.chunk_[c]=b&255,b/=256;fNd(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 bvb=[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],avb;Ww(dvb,Wt);var cvb=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];var fvb=window.TextEncoder?new TextEncoder:void 0,gvb=fvb?fvb.encode("$@#|").buffer:void 0;var gNd=["allow-same-origin","allow-scripts","allow-forms","allow-popups"],hNd=window.TextEncoder?new TextEncoder:void 0,iNd={},jNd=function(){var a=this;this.productID="buganizer";this.shimOptions=void 0;this.renderCalled=!1;this.shimIframe=document.createElement("iframe");if(!aNd.test("buganizer"))throw Error(bNd);if(!nvb())throw Error("Zf");iNd.shimBlobUrlFactory!==void 0&&(this.shimBlobUrlFactory=iNd.shimBlobUrlFactory);this.attachedPromise=new Promise(function(b){a.shimIframe.addEventListener("load",
function(){b()},{once:!0});a.shimIframe.addEventListener("error",function(){b()},{once:!0})})},kNd=function(a,b,c){if(!a.shimIframe||!a.shimIframe.contentWindow)throw Error("$f");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);}})},mNd=function(a,b,c,d){y(function(e){return e.return(lNd(a,b,c,d))})},
lNd=function(a,b,c,d,e){var f,g,k,m,r,w,x,D,H,J,O,R,V,ba,pa,ua,ma,Da,ja,va,ya,Sa,ab,rb,ac,pc,kc,vc,tb,Qb,ib,bc,xc,ud,Tb;return y(function(qc){switch(qc.nextAddress){case 1:g=!((f=e)==null||!f.withoutSandbox);m=!((k=e)==null||!k.ignoreUrlFragment);if(a.renderCalled)throw Error("ag");if(!hNd)throw Error("Xf");if(!g&&((r=a.shimOptions)==null?void 0:(w=r.pdfViewer)==null?void 0:w[$Md])!==void 0&&c.toLowerCase()==="application/pdf"&&b instanceof ArrayBuffer)return qc.return(nNd(a,b,d,a.shimOptions.pdfViewer[$Md]));
a.renderCalled=!0;H=(D=(x=a.shimOptions)==null?void 0:x.sandbox)!=null?D:gNd;c.toLowerCase()==="application/pdf"||g||(a.shimIframe.sandbox.add.apply(a.shimIframe.sandbox,n(H)),a.shimIframe.sandbox.add("allow-scripts"),a.shimIframe.sandbox.add("allow-same-origin"));O=(J=a.shimOptions)==null?void 0:J.useSubtleCrypto;ba=(V=a.shimOptions)==null?void 0:V.enableBrowserCaching;ua=m?void 0:(pa=a.shimOptions)==null?void 0:pa.urlFragment;Da=(ma=e)==null?void 0:ma.unsafeDocumentWrite;if(!ba){R=jvb().buffer;
qc.jumpTo(2);break}if(ba===!0)return z(qc,ivb({useSubtleCrypto:O,parts:[b,location.pathname]}),7);if(typeof ba!=="object"||!ba[ZMd])throw Error("bg");return z(qc,evb(hNd.encode(ba[ZMd]).buffer,O),6);case 6:R=qc.yieldResult;qc.jumpTo(2);break;case 7:R=qc.yieldResult;case 2:return ja=window.origin,z(qc,lvb({product:a.productID,salt:R,useSubtleCrypto:O,trustedOrigin:ja,version:Number("839267052")}),8);case 8:va=qc.yieldResult;ya=mvb({trustedOrigin:ja,fileHash:va,version:"839267052",product:a.productID,
cache:!!ba});Sa=(new URL(ya)).origin;a.shimBlobUrlFactory!==void 0?(ab=a.shimBlobUrlFactory(ya),rb=URL.createObjectURL(ab),a.shimIframe.src=rb,Sa=(new URL(rb)).origin):a.shimIframe.src=ya;((ac=a.shimOptions)==null?void 0:ac.useShadowDom)===YMd?(pc=document.createElement("safe-content-frame"),kc=pc.attachShadow({mode:"open"}),a.shimIframe.part.add("shim-iframe"),kc.appendChild(a.shimIframe),d.appendChild(pc)):d.appendChild(a.shimIframe);if(!Wub(a.productID))return z(qc,a.attachedPromise,10);vc=new Promise(function(Sc,
pd){setTimeout(function(){a.shimIframe.parentNode&&a.shimIframe.contentWindow?pd(Error("Tf")):pd(Error("$f"))},15E3)});Vd(qc,11);return z(qc,Promise.race([a.attachedPromise,vc]),13);case 13:bk(qc,10);break;case 11:return tb=Zd(qc),z(qc,Zub(tb,a.productID,Sa,"attachedPromise"),14);case 14:throw tb;case 10:Qb=!1;bc=new Promise(function(Sc){a.shimIframe.addEventListener("load",function(){Qb=!0;Sc(ib)},{once:!0})});ib={sendMessage:function(Sc,pd){if(!a.shimIframe||!a.shimIframe.contentWindow)throw Error("$f");
a.shimIframe.contentWindow.postMessage(Sc,Sa,pd)},origin:Sa,fullyLoadedPromise:bc,fullyLoadedPromiseWithTimeout:ovb(bc,function(){return Qb})};xc=kNd(a,{body:b,mimeType:c,salt:R,urlFragment:ua,unsafeDocumentWrite:Da},Sa);if(!Wub(a.productID))return z(qc,xc,17);ud=new Promise(function(Sc,pd){setTimeout(function(){a.shimIframe.parentNode&&a.shimIframe.contentWindow?pd(Error("Tf")):pd(Error("$f"))},7E3)});Vd(qc,18);return z(qc,Promise.race([xc,ud]),20);case 20:Yub(a.productID,"heartbeat",Sa);bk(qc,17);
break;case 18:return Tb=Zd(qc),z(qc,Zub(Tb,a.productID,Sa,"sendShimMessagePromise"),21);case 21:throw Tb;case 17:return qc.return(ib)}})},nNd=function(a,b,c,d){var e,f,g,k,m,r,w,x;return y(function(D){if(D.nextAddress==1)return f=(e=a.shimOptions)==null?void 0:e.urlFragment,g='<!DOCTYPE html><html><head><meta charset="utf-8">\n    <script>'+lGa(XMd||(XMd=C2c('[null,null,null,null,null,"(function(){\'use strict\';let h\\u003d!1;function k(a){if(!a||typeof a!\\u003d\\u003d\\"object\\"\\u0026\\u0026typeof a!\\u003d\\u003d\\"function\\")throw Error(\\"Invalid PDF viewer message\\");const f\\u003da.action,d\\u003da.file,e\\u003da.filename;a\\u003da.urlFragment;if(typeof f!\\u003d\\u003d\\"string\\")throw Error(\\"Invalid PDF viewer message\\");if(a!\\u003d\\u003dvoid 0\\u0026\\u0026typeof a!\\u003d\\u003d\\"string\\")throw Error(\\"Invalid PDF viewer message\\");if(typeof e!\\u003d\\u003d\\"string\\")throw Error(\\"Invalid PDF viewer message\\");if(!(d instanceof ArrayBuffer))throw Error(\\"Invalid PDF viewer message\\");return{action:f,file:d,filename:e,urlFragment:a}}\\nfunction m(a){const {action:f,file:d,filename:e,urlFragment:l}\\u003dk(a.data);if(a.source!\\u003d\\u003dwindow.parent)throw Error(\\"Only messages from parent are allowed\\");const g\\u003da.ports[0];if(f\\u003d\\u003d\\u003d\\"renderPdf\\"\\u0026\\u0026!h){if(d\\u003d\\u003d\\u003dvoid 0)throw Error(\\"Invalid PDF viewer message\\");a\\u003dURL.createObjectURL(new Blob([d],{type:\\"application/pdf\\"}));var b\\u003de\\u003d\\u003d\\u003d\\"__SCF_TEST_NO_PDF_SUPPORT__\\";if(b||navigator.pdfViewerEnabled\\u003d\\u003d\\u003d!1){const c\\u003ddocument.createElement(\\"a\\");c.href\\u003da;c.download\\u003db?\\"test.pdf\\":e.replace(/[^a-zA-Z0-9._-]/g,\\"_\\");c.textContent\\u003d\\n`Download ${c.download}`;c.style.cssText\\u003d\\"background-color: #1a73e8; color: white; text-decoration: none; padding: 10px 24px; border-radius: 4px;\\";document.body.style.cssText\\u003d\\"display: flex; justify-content: center; align-items: center; height: 100vh; font-family: sans-serif; margin: 0;\\";document.body.replaceChildren(c);g\\u0026\\u0026g.postMessage(\\"Native PDF viewer not supported\\")}else b\\u003ddocument.createElement(\\"iframe\\"),a\\u003dnew URL(a),l\\u0026\\u0026(a.hash\\u003dl),b.src\\u003da.href,b.style.cssText\\u003d\\"position:absolute; top:0; left:0; bottom:0; right:0; width:100vw; height:100vh; border:none; margin:0; padding:0; z-index:999999;\\",\\nb.onload\\u003d()\\u003d\\u003e{g\\u0026\\u0026g.postMessage(\\"Iframe with the PDF loaded\\")},document.body.replaceChildren(b);h\\u003d!0;window.removeEventListener(\\"message\\",m)}}window.addEventListener(\\"message\\",m);}).call(this);\\n"]')))+
"\x3c/script></head><body></body></html>",z(D,lNd(a,g,"text/html; charset=utf-8",c,{withoutSandbox:!0,ignoreUrlFragment:!0}),2);if(D.nextAddress!=3)return k=D.yieldResult,z(D,k.fullyLoadedPromiseWithTimeout(3E4),3);m=!1;r=new MessageChannel;x=new Promise(function(H){r.port1.onmessage=function(J){if(J.data==="Iframe with the PDF loaded"||J.data==="Native PDF viewer not supported")m=!0,H(w)}});w={sendMessage:k.sendMessage,origin:k.origin,fullyLoadedPromise:x,fullyLoadedPromiseWithTimeout:ovb(x,function(){return m})};
k.sendMessage({action:"renderPdf",file:b,filename:d,urlFragment:f},[r.port2]);return D.return(w)})};var oNd=["attachmentContent"],cZ=function(){LO.apply(this,arguments);this.attachmentsApi=q(ZQ)};Z(cZ,LO);cZ.\u0275dir=LO.\u0275dir;cZ.prototype.ngOnInit=function(){pNd(this)};var pNd=function(a){a.subscriptions.add(btd(a.attachmentsApi,a.issueId,a.attachmentId).subscribe(function(b){b&&mNd(new jNd,b,a.mimeType,a.container.nativeElement)}))};cZ.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(cZ)))(b||cZ)}}();
cZ.\u0275cmp=C({type:cZ,selectors:[["attachment-preview"]],viewQuery:function(a,b){a&1&&kg(oNd,5);if(a&2){var c;og(c=pg())&&(b.container=c.first)}},inputs:{issueId:"issueId",attachmentId:"attachmentId",mimeType:"mimeType"},features:[Ff],decls:2,vars:0,consts:[["attachmentContent",""],[1,"full-width","full-height"]],template:function(a){a&1&&Uf(0,"div",1,0)},styles:["[_nghost-%COMP%]     iframe{border:0;height:100%;width:100%}/*# sourceMappingURL=attachment_preview.css.map */"]});var dZ=function(){this.inlinedAttachmentSet=new Set};dZ.prototype.getCount=function(){return this.inlinedAttachmentSet.size};dZ.\u0275fac=function(a){return new (a||dZ)};dZ.\u0275prov=Cc({token:dZ,factory:dZ.\u0275fac,providedIn:"root"});var qNd=function(){this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.isGreyedOut=!0;this.linkUrl=this.displayName="";this.useCustomHandler=this.linkEnabled=!1;this.customHandler=new KO};qNd.prototype.handleClick=function(a){this.useCustomHandler&&(a.preventDefault(),this.customHandler.emit())};qNd.\u0275fac=function(a){return new (a||qNd)};
qNd.\u0275cmp=C({type:qNd,selectors:[["b-conditional-link"]],inputs:{isGreyedOut:"isGreyedOut",displayName:"displayName",linkUrl:"linkUrl",linkEnabled:"linkEnabled",useCustomHandler:"useCustomHandler"},outputs:{customHandler:"customHandler"},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&&(F(0,pvb,2,3,"span",0),F(1,qvb,2,3,"a",1));a&2&&(G(b.isGreyedOut||!b.linkEnabled?0:-1),
B(),G(!b.isGreyedOut&&b.linkEnabled?1:-1))},encapsulation:2,changeDetection:0});var eZ=function(){this.tooltipRegistry={}};eZ.prototype.showTooltip=function(a){return this.tooltipRegistry[a]?!1:this.tooltipRegistry[a]=!0};eZ.\u0275fac=function(a){return new (a||eZ)};eZ.\u0275prov=Cc({token:eZ,factory:eZ.\u0275fac,providedIn:"root"});var fZ=function(){oA.apply(this,arguments)};Z(fZ,oA);fZ.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(fZ)))(b||fZ)}}();fZ.\u0275dir=af({type:fZ,selectors:[["","expandable-tab-content",""]],features:[Ff]});var gZ=function(){oA.apply(this,arguments)};Z(gZ,oA);gZ.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(gZ)))(b||gZ)}}();gZ.\u0275dir=af({type:gZ,selectors:[["","expandable-tab-header",""]],features:[Ff]});var hZ=function(){oA.apply(this,arguments)};Z(hZ,oA);
hZ.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(hZ)))(b||hZ)}}();hZ.\u0275dir=af({type:hZ,selectors:[["","expandable-tab-icon",""]],features:[Ff]});var iZ=function(){};iZ.prototype.ngOnInit=function(){};iZ.\u0275fac=function(a){return new (a||iZ)};
iZ.\u0275cmp=C({type:iZ,selectors:[["expandable-tab"]],contentQueries:function(a,b,c){a&1&&(lg(c,gZ,5,hg),lg(c,fZ,5,hg),lg(c,hZ,5,hg));if(a&2){var d;og(d=pg())&&(b.tabHeaderTemplate=d.first);og(d=pg())&&(b.tabContentTemplate=d.first);og(d=pg())&&(b.tabIconTemplate=d.first)}},inputs:{key:"key",ariaLabel:"ariaLabel"},decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var tvb=function(a){return{tab:a}},Cvb=function(a){return{allTabsExpanded:a}},Pvb=function(){return[]},rNd=function(a,b){return b.key},jZ=function(){LO.apply(this,arguments);this.internalTabKeys$=new Xj([]);this.ariaLabel="";this.openTabCallback=function(){return y(function(a){return a.return(!0)})};this.openAllTabsCallback=function(){return y(function(a){return a.return(!0)})};this.expandableTabsTitle="";this.internalExpandedTabs=new OP;this.showIcons=this.showMultiple=!0;this.visibleExpandedTabs$=
he([this.internalTabKeys$,this.internalExpandedTabs.value$]).pipe(A(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 KO;this.contentShownChanged=new KO;this.showAllClicked=new KO;this.tabs$=new Xj([]);this.allTabsExpanded$=he([this.tabs$,this.internalExpandedTabs.value$]).pipe(A(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)})}))};Z(jZ,LO);
jZ.\u0275dir=LO.\u0275dir;
jZ.prototype.ngAfterContentInit=function(){var a=this;this.subscriptions.add(this.internalTabs.changes.pipe(yf(void 0),A(function(){return a.internalTabs.toArray()}),A(function(b){return new Map(b.map(function(c){return[c.key,c]}))}),zf(function(b){return he([be(b),a.internalTabKeys$])}),A(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(he([this.internalTabKeys$,this.internalExpandedTabs.value$]).pipe(A(function(b){var c=
l(b);b=c.next().value;c=c.next().value;return LSa(new Set(b),new Set(c))}),of(Gm)).subscribe(function(b){a.contentShownChanged.emit(b)}))};jZ.prototype.ngOnInit=function(){};
var zvb=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return(c=a.internalExpandedTabs.has(b))?(a.internalExpandedTabs.delete(b),d.jumpTo(2)):z(d,a.openTabCallback(b),3);if(d.nextAddress!=2){if(!d.yieldResult)return d.return();a.showMultiple||a.internalExpandedTabs.clear();a.internalExpandedTabs.add(b)}a.expandedTabsChanged.emit(new Set(a.internalExpandedTabs));$d(d)})};
jZ.prototype.showAll=function(){var a=this;return y(function(b){if(b.nextAddress==1)return z(b,a.openAllTabsCallback(a.tabKeys),2);if(!b.yieldResult)return b.return();a.internalExpandedTabs.add.apply(a.internalExpandedTabs,n(a.tabs$.value.map(function(c){return c.key})));a.expandedTabsChanged.emit(new Set(a.internalExpandedTabs));$d(b)})};jZ.prototype.hideAll=function(){this.internalExpandedTabs.clear();this.expandedTabsChanged.emit(new Set(this.internalExpandedTabs))};
jZ.prototype.toggleAll=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,ee(a.allTabsExpanded$),2);if(c.nextAddress!=4)return(b=c.yieldResult)?(a.hideAll(),c.jumpTo(0)):z(c,a.showAll(),4);a.showAllClicked.emit(void 0);$d(c)})};
da.Object.defineProperties(jZ.prototype,{tabKeys:{configurable:!0,enumerable:!0,set:function(a){this.internalTabKeys$.next([].concat(n(a)))},get:function(){return this.internalTabKeys$.value}},expandedTabs:{configurable:!0,enumerable:!0,set:function(a){if(!this.showMultiple&&a.length>1)throw Error("cg");this.internalExpandedTabs.reset(a)},get:function(){return[].concat(n(this.internalExpandedTabs))}}});jZ.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(jZ)))(b||jZ)}}();
jZ.\u0275cmp=C({type:jZ,selectors:[["expandable-tabs"]],contentQueries:function(a,b,c){a&1&&lg(c,iZ,5);if(a&2){var d;og(d=pg())&&(b.internalTabs=d)}},inputs:{tabKeys:"tabKeys",ariaLabel:"ariaLabel",openTabCallback:"openTabCallback",openAllTabsCallback:"openAllTabsCallback",expandableTabsTitle:"expandableTabsTitle",expandedTabs:"expandedTabs",showMultiple:"showMultiple",showIcons:"showIcons"},outputs:{expandedTabsChanged:"expandedTabsChanged",contentShownChanged:"contentShownChanged",showAllClicked:"showAllClicked"},
features:[Ff],decls:15,vars:7,consts:[["headerText",""],["spacer",""],[1,"tabs-row","flex-kids-x"],[1,"expandable-tabs-title"],["role","tablist","aria-multiselectable","true",1,"expandable-tabs","flex-kids-x"],["type","button","mat-button","","role","tab",1,"expandable-tab","keep-focus-ring",3,"has-icon","expanded"],[1,"margin-left-auto","shrink-0"],[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,"expandable-tabs-hide-all","expandable-tabs-show-all"],["type","button","mat-button","",1,"small",3,"click"],["type","button","mat-button","",1,"small","expandable-tabs-hide-all"],["type","button","mat-button","",1,"small","expandable-tabs-show-all",3,"click"],["iconPositionEnd","","svgIcon","arrow_outward_24px",1,"icon-s"],["type","button","mat-button","",1,"small","expandable-tabs-hide-all",
3,"click"],["role","tabpanel",3,"class","id"],["role","tabpanel",3,"id"],[1,"spacer"]],template:function(a,b){a&1&&(K(0,"div",2),F(1,rvb,2,2,"span",3),K(2,"div",4),Pf(3,Avb,9,21,"button",5,rNd),U(5,"async"),L(),K(6,"div",6),F(7,Dvb,2,5)(8,Fvb,5,4),L()(),K(9,"div",7),Pf(10,Rvb,2,3,null,null,rNd),U(12,"async"),L(),E(13,Wvb,2,1,"ng-template",null,0,Og));a&2&&(B(),G(b.expandableTabsTitle?1:-1),B(),Jf("aria-label",b.ariaLabel),B(),Qf(W(5,3,b.tabs$)),B(4),G(b.showMultiple?7:8),B(3),Qf(W(12,5,b.tabs$)))},
dependencies:[ZA,XA,TA,iz,oy,py],styles:[".expandable-tabs[_ngcontent-%COMP%]{gap:8px}.expandable-tab[_ngcontent-%COMP%]{padding:4px 12px;border-radius:16px;border:1px solid;border-color:#dadce0;border-color:var(--c300);color:#3c4043;color:var(--c800)}.expandable-tab.has-icon[_ngcontent-%COMP%]{padding-left:8px}.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-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;overflow-x:auto}.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 sNd={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 kZ=function(a,b,c){var d=this;this.document=a;this.focusTrapFactory=b;this.elementRef=c;this.dismiss=new ui;this.action=new ui;this.pointerPosition=2;this.color="blue";this.actionBtnIcon=this.actionBtnText="";this.Position=sNd;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)};kZ.prototype.ngAfterContentInit=function(){rz(this.focusTrap);this.setPreviouslyFocusedElement();zGc(this.focusTrap)};
kZ.prototype.ngOnDestroy=function(){this.document.removeEventListener("keydown",this.dismissIfEscape);this.document.removeEventListener("focusin",this.setPreviouslyFocusedElement);this.focusTrap.destroy()};
kZ.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)};da.Object.defineProperties(kZ.prototype,{widthOffset:{configurable:!0,enumerable:!0,set:function(a){this.width=272+a*64}}});
kZ.\u0275fac=function(a){return new (a||kZ)(Ve(Yh),Ve(Jz),Ve(Gd))};
kZ.\u0275cmp=C({type:kZ,selectors:[["onedev-feature-tooltip-body"]],hostVars:16,hostBindings:function(a,b){a&2&&yg("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:[Ig([{provide:IGc,useValue:{preventFocus:function(){},allowFocus:function(){}}},Jz])],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&&(fg(),K(0,"div",0)(1,"div",1),M(2,"div",2),L(),gg(3),K(4,
"div",3),E(5,Yvb,4,2,"button",4),K(6,"button",5),N("click",function(){return b.dismissTooltip()}),S(7," Got it "),L()()());a&2&&(xg("width",b.width,"px"),I("ngClass",b.color),B(5),I("ngIf",b.actionBtnText),B(),I("color",b.color==="white"?"primary":""))},dependencies:[uz,hy,jy,RI,iz],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 lZ=function(){};lZ.\u0275fac=function(a){return new (a||lZ)};lZ.\u0275mod=$e({type:lZ});lZ.\u0275inj=Dc({});var mZ=function(){this.anchorMap=new Map},tNd=function(a,b){if(a.anchorMap.has(b))return a.anchorMap.get(b);var c={created$:new vf(1),destroyed$:new rf,dismissTooltip$:new rf};a.anchorMap.set(b,c);return c},uNd=function(a,b,c){tNd(a,b).created$.next(c)},vNd=function(a,b){tNd(a,b).destroyed$.next();tNd(a,b).created$.next(void 0)};mZ.prototype.dismissTooltip=function(){tNd(this).dismissTooltip$.next()};mZ.\u0275fac=function(a){return new (a||mZ)};mZ.\u0275prov=Cc({token:mZ,factory:mZ.\u0275fac,providedIn:lZ});var nZ={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}}},wNd=[nZ.TOP_CENTER_RIGHT,nZ.TOP_CENTER_LEFT,nZ.BOTTOM_CENTER_RIGHT,nZ.BOTTOM_CENTER_LEFT],xNd=[nZ.TOP_LEFT,nZ.TOP_RIGHT,nZ.BOTTOM_LEFT,nZ.BOTTOM_RIGHT],yNd=[nZ.LEFT_CENTER_BOTTOM,nZ.LEFT_CENTER_TOP,nZ.RIGHT_CENTER_BOTTOM,nZ.RIGHT_CENTER_TOP],zNd=[nZ.LEFT_TOP,nZ.LEFT_BOTTOM,nZ.RIGHT_TOP,nZ.RIGHT_BOTTOM];var oZ=function(){};oZ.\u0275fac=function(a){return new (a||oZ)};oZ.\u0275mod=$e({type:oZ});oZ.\u0275inj=Dc({});var ANd=function(){},CNd=function(a,b){return BNd(a,b).map(function(c){return c.connectedPosition})},DNd=function(a,b,c){a=BNd(a,b).find(function(d){return d.connectedPosition===c});if(!a)throw Error("dg`"+JSON.stringify(c));return a.pointerPosition},BNd=function(a,b){b=ENd(b).filter(function(c){return!a.includes(c)});return a.concat(b)},ENd=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?wNd:xNd).concat(a!==void 0&&a<60?yNd:zNd)};ANd.\u0275fac=function(a){return new (a||ANd)};ANd.\u0275prov=Cc({token:ANd,factory:ANd.\u0275fac,providedIn:oZ});var FNd=["template"],pZ=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 rf;this.customPositions=[];this.widthOffset=0;this.color="blue";this.hasBackdrop=!1;this.actionBtnIcon=this.actionBtnText="";this.dismiss=new ui;this.beforeShown=new ui;this.action=new ui;this.pointerPosition=0;this.destroyed$=new vf;this.init$=new vf;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 g;(g=f.overlayRef)==null||g.dispose();f.overlayRef=void 0}};pZ.prototype.ngOnChanges=function(a){if(a.customPositions){var b;(b=this.overlayRef)==null||jHc(b,GNd(this))}};
pZ.prototype.ngOnInit=function(){var a=tNd(this.anchorService,this.tooltipId),b=a.destroyed$,c=a.dismissTooltip$;HNd(this,a.created$);b.pipe(Af(this.destroyed$)).subscribe(this.hideFeatureTooltip);INd(this,c)};pZ.prototype.ngAfterViewInit=function(){this.init$.next()};pZ.prototype.ngOnDestroy=function(){this.hideFeatureTooltip();this.destroyed$.next()};
var HNd=function(a,b){a.open$.pipe(Lla(a.init$),Bf(function(){a.beforeShown.emit()}),zf(function(){return b.pipe(Af(a.dismiss))}),Af(a.destroyed$),te(function(c){return!!c&&!a.isVisible()})).subscribe(function(c){a.showFeatureTooltip(c)})},INd=function(a,b){b.pipe(Af(a.destroyed$),te(function(){return a.isVisible()})).subscribe(function(){a.hideFeatureTooltip();a.dismiss.emit()})};
pZ.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:GNd(this),scrollStrategy:this.getScrollStrategy(),minWidth:"fit-content",hasBackdrop:this.hasBackdrop});var d;(d=this.overlayRef)==null||d.attach(new mA(this.templateRef,this.containerRef))};
pZ.prototype.getScrollStrategy=function(){var a=this.overlay.scrollStrategies;return this.hasBackdrop?a.block():a.reposition()};pZ.prototype.getPositionStrategy=function(){if(!this.anchor)throw Error("eg");return dA(jA(this.overlay.position(),this.anchor),CNd(this.customPositions,this.anchor))};
var GNd=function(a){var b=a.getPositionStrategy();b.positionChanges.subscribe(function(c){a.ngZone.run(function(){a.pointerPosition=DNd(a.customPositions,a.anchor,c.connectionPair);a.changeDetectorRef.markForCheck()})});return b};pZ.prototype.isVisible=function(){return!!this.overlayRef};pZ.\u0275fac=function(a){return new (a||pZ)(Ve(mZ),Ve(rA),Ve(ig),Ve(Tg),Ve(Yx),Ve(ANd))};
pZ.\u0275cmp=C({type:pZ,selectors:[["onedev-feature-tooltip"]],viewQuery:function(a,b){a&1&&kg(FNd,5);if(a&2){var c;og(c=pg())&&(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:[Gx],ngContentSelectors:["*"],decls:2,vars:0,consts:[["template",
""],[3,"action","dismiss","actionBtnText","actionBtnIcon","color","pointerPosition","widthOffset"]],template:function(a){a&1&&(fg(),E(0,Zvb,2,5,"ng-template",null,0,Og))},dependencies:[kZ],encapsulation:2,changeDetection:0});var qZ=function(){};qZ.\u0275fac=function(a){return new (a||qZ)};qZ.\u0275mod=$e({type:qZ});qZ.\u0275inj=Dc({});var rZ=function(){this.observedValues=new Map};rZ.prototype.getValue=function(a){a=window.localStorage.getItem(a);return be(a?JSON.parse(a):null)};rZ.prototype.getValues=function(a){return be(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))};rZ.prototype.setValue=function(a,b){window.localStorage.setItem(a,JSON.stringify(b));var c;(c=this.observedValues.get(a))==null||c.set(b);return be(void 0)};
rZ.\u0275fac=function(a){return new (a||rZ)};rZ.\u0275prov=Cc({token:rZ,factory:rZ.\u0275fac,providedIn:"root"});var JNd=new bd("Feature Tooltip Controller Config"),sZ=function(a,b,c){this.config=a;this.keyValueStore=b;this.injector=c;this.clientStreamzService=this.config.enableUsageTracking?this.injector.get(yK):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"},KNd=function(a){return a.keyValueStore.getValue(a.lastTooltipKey).pipe(A(function(b){return b===
null?!0:(new Date).getTime()-b>=a.config.cooldownMilliseconds}))};sZ.prototype.hideTooltip=function(a){var b;(b=this.clientStreamzService)==null||Ocd(b,this.config.hiddenMetricName,!0);me([this.keyValueStore.setValue(this.lastTooltipKey,(new Date).getTime()),this.keyValueStore.setValue(LNd(this,a),"HIDDEN")]).pipe(lf())};
var MNd=function(a,b){a.keyValueStore.getValue(LNd(a,b)).pipe(te(function(c){return c!=="SHOWING"})).subscribe(function(){a.keyValueStore.setValue(LNd(a,b),"HIDDEN")})},ONd=function(a,b,c){var d=c.map(function(e){return LNd(a,e)});return a.keyValueStore.getValues(d).pipe(A(function(e){return NNd(a,b,c,e)}))};
sZ.prototype.showTooltip=function(a){var b;(b=this.clientStreamzService)==null||Ocd(b,this.config.shownMetricName,!0);return me([this.keyValueStore.setValue(this.lastTooltipKey,(new Date).getTime()),this.keyValueStore.setValue(LNd(this,a),"SHOWING")]).pipe(lf())};var NNd=function(a,b,c,d){return c.filter(function(e){e=d.get(LNd(a,e));return e===b||b==="UNSEEN"&&e===null})},LNd=function(a,b){return"onedev.tooltips."+a.config.productName+"."+b};
sZ.\u0275fac=function(a){return new (a||sZ)(Wc(JNd),Wc(rZ),Wc(xe))};sZ.\u0275prov=Cc({token:sZ,factory:sZ.\u0275fac,providedIn:qZ});var tZ=function(a){var b=this;this.featureTooltipService=a;this.showTooltip$=be(void 0);this.destroyed$=new vf;this.getCurrentlyShowingTooltips=function(){return ONd(b.featureTooltipService,"SHOWING",PNd(b))}};
tZ.prototype.ngAfterContentInit=function(){var a=this,b=this.showTooltip$.pipe(zf(this.getCurrentlyShowingTooltips),zf(function(c){return c.length>0?be(c[0]):be(void 0).pipe(QNd(a),RNd(a))}),A(function(c){return SNd(a,c)}),te(function(c){return!!c}),A(function(c){return c}),wf({bufferSize:1,refCount:!0}));TNd(this,b);b.pipe(Af(this.destroyed$)).subscribe(function(c){c.open$.next();a.featureTooltipService.showTooltip(c.tooltipId)})};tZ.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var QNd=function(a){return Rd(zf(function(){return KNd(a.featureTooltipService)}),te(Qd))},RNd=function(a){return Rd(zf(function(){return ONd(a.featureTooltipService,"UNSEEN",PNd(a))}),te(function(b){return b.length>0}),A(function(b){return b[0]}))},TNd=function(a,b){b.pipe(zf(function(c){return c.dismiss.pipe(lf(c.tooltipId))}),Af(a.destroyed$)).subscribe(function(c){a.featureTooltipService.hideTooltip(c)})},PNd=function(a){return a.tooltips.map(function(b){return b.tooltipId})},SNd=function(a,b){return a.tooltips.find(function(c){return c.tooltipId===
b})};tZ.\u0275fac=function(a){return new (a||tZ)(Ve(sZ))};tZ.\u0275cmp=C({type:tZ,selectors:[["onedev-feature-tooltip-controller"]],contentQueries:function(a,b,c){a&1&&lg(c,pZ,4);if(a&2){var d;og(d=pg())&&(b.tooltips=d)}},inputs:{showTooltip$:"showTooltip$"},standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var uZ=function(a,b){this.anchorService=a;this.element=b;this.hideTooltipWhenAnchorNotVisible=!1};uZ.prototype.ngOnInit=function(){var a=this;this.hideTooltipWhenAnchorNotVisible?(this.intersectionObserver=new IntersectionObserver(function(b){l(b).next().value.isIntersecting?uNd(a.anchorService,a.tooltipId,a.element):vNd(a.anchorService,a.tooltipId)}),this.intersectionObserver.observe(this.element.nativeElement)):uNd(this.anchorService,this.tooltipId,this.element)};
uZ.prototype.ngOnDestroy=function(){vNd(this.anchorService,this.tooltipId);var a;(a=this.intersectionObserver)==null||a.disconnect()};uZ.\u0275fac=function(a){return new (a||uZ)(Ve(mZ),Ve(Gd))};uZ.\u0275dir=af({type:uZ,selectors:[["","onedevTooltipAnchor",""]],inputs:{tooltipId:[0,"onedevTooltipAnchor","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible"},standalone:!1});var vZ=function(a,b,c){var d=this;this.featureTooltipService=a;this.renderer=b;this.elementRef=c;this.preventTooltipFromShowing=function(){MNd(d.featureTooltipService,d.tooltipId)}};vZ.prototype.ngOnInit=function(){this.unsubscribeFromEvent||(this.event="click")};vZ.prototype.ngOnDestroy=function(){var a;(a=this.unsubscribeFromEvent)==null||a.call(this)};
da.Object.defineProperties(vZ.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)}}});vZ.\u0275fac=function(a){return new (a||vZ)(Ve(sZ),Ve(ji),Ve(Gd))};
vZ.\u0275dir=af({type:vZ,selectors:[["","onedevTooltipPreventer",""]],inputs:{tooltipId:[0,"onedevTooltipPreventer","tooltipId"],event:[0,"onedevPreventTooltipOn","event"]},standalone:!1});var UNd=new bd("TooltipAnchor"),VNd=new bd("TooltipPeventer"),wZ=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)};wZ.prototype.ngOnInit=function(){this.tooltipPreventer.ngOnInit();this.tooltipAnchor.ngOnInit()};
wZ.prototype.ngOnDestroy=function(){this.tooltipPreventer.ngOnDestroy();this.tooltipAnchor.ngOnDestroy()};da.Object.defineProperties(wZ.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}}});
wZ.\u0275fac=function(a){return new (a||wZ)(Ve(sZ),Ve(mZ),Ve(Gd),Ve(ji),Ve(UNd),Ve(VNd))};wZ.\u0275dir=af({type:wZ,selectors:[["","onedevFeatureTooltip",""]],inputs:{tooltipId:[0,"onedevFeatureTooltip","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible",event:[0,"onedevPreventTooltipOn","event"]},standalone:!1,features:[Ig([{provide:UNd,useValue:uZ},{provide:VNd,useValue:vZ}])]});var WNd=function(){this.className="gmat-subtitle-1 tooltip-title"};WNd.\u0275fac=function(a){return new (a||WNd)};WNd.\u0275dir=af({type:WNd,selectors:[["","onedevTooltipTitle",""]],hostVars:2,hostBindings:function(a,b){a&2&&zg(b.className)},standalone:!1});var xZ=function(){};xZ.\u0275fac=function(a){return new (a||xZ)};xZ.\u0275mod=$e({type:xZ});xZ.\u0275inj=Dc({imports:[Dz,lZ,xy,qZ,$I,kz,uA,oZ]});var $vb=function(a,b){return[a,b]},yZ=function(){LO.apply(this,arguments);this.analytics=q(PO);this.enrichmentApi=q(iN);this.enrichmentCategoryFridge=q(eO);this.attachmentEnrichmentFridge=q(jN);this.issueUserEventsService=q(sV);this.confirmationDialogService=q(PQ);this.destroyRef=q(Be);this.issuePermissionService=q(NP);this.documentationLinks=q(OQ);this.canDeleteEnrichments$=new Xj(!1);this.enrichmentCategoryToContent=new Map;this.enrichmentCategoryToLoading=new Map;this.restrictedDialogContentHtml=
Dh("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=Gh("a",{href:Bh(this.documentationLinks.getRestrictedAccessHelpLink()),target:"_blank"},"Learn More");this.restrictedDialogHtml=Eh([this.restrictedDialogContentHtml,this.requiredDialogLearnMoreHtml]);this.openTabs=new Set;this.categoryToRestriction=new Map;this.cdr=
q(MO);this.featureTooltipRegistry=q(eZ);this.ATTACHMENT_ENRICHMENTS_FEATURE_TOOLTIP_ID="attachmentEnrichmentsFeatureTooltip";this.TOOLTIP_POSITIONS=nZ;this.showFeatureTooltip=this.featureTooltipRegistry.showTooltip("attachmentEnrichmentsFeatureTooltip");this.CATEGORY_INFO_HOVERCARD_CONFIG=Object.assign({},new rm,{position:[sm]});this.someEnrichmentsRestricted=!1;this.categoryToActionMenuItems=new Map;this.hasReactedToEnrichment={};this.thumbsUpClickedForEnrichment={};this.thumbsDownClickedForEnrichment=
{}};Z(yZ,LO);yZ.\u0275dir=LO.\u0275dir;h=yZ.prototype;
h.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,g;((f=b.contentVerdict)==null?void 0:(g=f.piiVerdict)==null?void 0:g.severity)!=="NONE_DETECTED"?a.someEnrichmentsRestricted=!0:a.enrichmentCategoryToContent.set(b.category,{content:b.content,formattedContent:b.formattedContent})});
this.issuePermissionService.hasAclToAdmin$.pipe(oj(this.destroyRef)).subscribe(function(b){a.canDeleteEnrichments$.next(b);a.initializeMenuItems()})};h.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)})};
h.showDeleteAttachmentDialog=function(a){var b=this;this.confirmationDialogService.open({title:"Delete Enrichment",content:Dh("You are about to delete enrichment "+a+" on attachment "+this.attachmentId+". This action cannot be undone."),onConfirm:function(){tkd(b.enrichmentApi,b.issueId,b.attachmentId,a).pipe(oj(b.destroyRef)).subscribe(function(){b.logIssueUserEvent(b.issueId,"EVENT_TYPE_DELETE",b.attachmentId,a,"DELETE");b.attachmentEnrichmentFridge.poke(b.issueId)})}})};
h.openAllTabsCallback=function(a){var b=this,c;return y(function(d){if(!b.someEnrichmentsRestricted||a.every(function(e){return b.enrichmentCategoryToContent.has(e)}))return d.return(!0);c=Io();b.confirmationDialogService.open({title:"Access Enrichment",content:b.restrictedDialogHtml,onConfirm:function(){a.forEach(function(e){b.categoryToRestriction.get(e)!=="NONE_DETECTED"&&XNd(b,e)});c.resolve(!0)},onDismiss:function(){c.resolve(!1)}});return d.return(c.promise)})};
h.openTabCallback=function(a){var b=this;return y(function(c){return b.categoryToRestriction.get(a)==="NONE_DETECTED"?c.return(!0):c.return(b.openAllTabsCallback([a]))})};
var XNd=function(a,b){a.enrichmentCategoryToLoading.set(b,!0);rkd(a.enrichmentApi,a.issueId,a.attachmentId,b,a.categoryToRestriction.get(b)).pipe(oj(a.destroyRef)).subscribe(function(c){a.enrichmentCategoryToContent.set(b,{content:c.content,formattedContent:c.formattedContent});a.enrichmentCategoryToLoading.set(b,!1);a.cdr.detectChanges()})},YNd=function(a,b){[].concat(n(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.logIssueUserEvent(a.issueId,"EVENT_TYPE_OPEN",a.attachmentId,c,"OPEN")});[].concat(n(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.logIssueUserEvent(a.issueId,"EVENT_TYPE_CLOSE",a.attachmentId,c,"CLOSE")})};h=yZ.prototype;h.isLoading=function(a){var b;return(b=this.enrichmentCategoryToLoading.get(a))!=null?b:!1};
h.copyContent=function(a){var b,c=(b=this.enrichmentCategoryToContent.get(a.category))==null?void 0:b.content;c&&(navigator.clipboard.writeText(c),this.trackEvent("copy",mwb(a)),this.logIssueUserEvent(a.issueId,"EVENT_TYPE_COPY",a.attachmentId,a.category,"COPY"))};h.hasReacted=function(a){return this.hasReactedToEnrichment[a.category]?this.hasReactedToEnrichment[a.category]:!1};
h.thumbsUpClicked=function(a){return this.thumbsUpClickedForEnrichment[a.category]?this.thumbsUpClickedForEnrichment[a.category]:!1};h.thumbsDownClicked=function(a){return this.thumbsDownClickedForEnrichment[a.category]?this.thumbsDownClickedForEnrichment[a.category]:!1};
h.trackThumbsUp=function(a){this.hasReactedToEnrichment[a.category]=!0;this.thumbsUpClickedForEnrichment[a.category]=!0;this.trackEvent("accept",mwb(a));this.logIssueUserEvent(a.issueId,"EVENT_TYPE_THUMBS_UP",a.attachmentId,a.category,"THUMBS_UP")};h.trackThumbsDown=function(a){this.hasReactedToEnrichment[a.category]=!0;this.thumbsDownClickedForEnrichment[a.category]=!0;this.trackEvent("reject",mwb(a));this.logIssueUserEvent(a.issueId,"EVENT_TYPE_THUMBS_DOWN",a.attachmentId,a.category,"THUMBS_DOWN")};
h.logIssueUserEvent=function(a,b,c,d,e){e={issueId:a,attachmentId:c,category:d,feedbackType:e};var f=this.issueUserEventsService,g=new rV;c=(new CBd).setAttachmentId(c).setCategory(d);c=op(g,4,GBd,c);f.logIssueUserEvent(a,"FEATURE_ATTACHMENT_ANALYSIS",b,c).pipe(oj(this.destroyRef)).subscribe();this.enrichmentApi.submitEnrichmentFeedback(e).pipe(oj(this.destroyRef)).subscribe()};h.trackEvent=function(a,b){this.analytics.trackEvent("attachmentEnrichment",a,b)};
var ZNd=function(a){return a.attachmentEnrichments.map(function(b){return b.category})},bwb=function(a,b){return a.enrichmentCategoryFridge.watch(b).pipe(A(function(c){var d;return(d=c==null?void 0:c.displayName)!=null?d:b}),yf(b))},jwb=function(a,b){return a.enrichmentCategoryFridge.watch(b).pipe(A(function(c){var d;return(d=c==null?void 0:c.description)!=null?d:""}),yf(""))};yZ.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(yZ)))(b||yZ)}}();
yZ.\u0275cmp=C({type:yZ,selectors:[["b-attachment-enrichments"]],inputs:{issueId:"issueId",attachmentId:"attachmentId",attachmentEnrichments:"attachmentEnrichments"},features:[Ig([MO]),Ff],decls:5,vars:7,consts:[["categoryInfoCard","onedevHovercard"],[3,"onedevFeatureTooltip","hideTooltipWhenAnchorNotVisible"],["expandableTabsTitle","Attachment Analysis",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"],["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"],[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&&(F(0,awb,5,5,"onedev-feature-tooltip-controller"),K(1,"div",1)(2,"expandable-tabs",2),N("expandedTabsChanged",function(c){return YNd(b,c)}),Pf(3,lwb,3,2,"expandable-tab",3,Of),L()());a&2&&(G(b.showFeatureTooltip?0:-1),B(),I("onedevFeatureTooltip",b.ATTACHMENT_ENRICHMENTS_FEATURE_TOOLTIP_ID)("hideTooltipWhenAnchorNotVisible",
!0),B(),I("tabKeys",ZNd(b))("ariaLabel","Attachment enrichments for attachment id "+b.attachmentId)("openTabCallback",b.openTabCallback.bind(b))("openAllTabsCallback",b.openAllTabsCallback.bind(b)),B(),Qf(b.attachmentEnrichments))},dependencies:[UY,iZ,fZ,gZ,jZ,xZ,pZ,tZ,wZ,WNd,DT,ZA,XA,VA,hK,AK,uK,zK,YP,bS,iz,MA,cS,VS,kU,py],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 zZ=function(){this.documentationLinks=q(OQ);this.dateFormatter=q(gR);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.retentionModel=zhd;this.label="Restricted";this.contentType="item"};zZ.prototype.getIcon=function(){return $Nd(this)?"delete-alert":"delete-clock"};zZ.prototype.getRetentionPeriod=function(){return this.retentionState&&this.retentionState.retentionPeriod?UVa(Math.floor(this.retentionState.retentionPeriod.seconds*1E3/864E5)):""};
var owb=function(a){var b=new Date(864E13);return a.retentionState&&a.retentionState.scheduledDeletionTime?new Date(to(a.retentionState.scheduledDeletionTime)||b):b},$Nd=function(a){return a.retentionState&&a.retentionState.scheduledDeletionTime?to(a.retentionState.scheduledDeletionTime)-Date.now()<12096E5:!1};zZ.\u0275fac=function(a){return new (a||zZ)};
zZ.\u0275cmp=C({type:zZ,selectors:[["b-restricted-chip"]],inputs:{label:"label",contentType:"contentType",retention:"retention",retentionState:"retentionState"},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=t();K(0,"xap-bubble",
2,0)(2,"div",3);N("focus",function(){u(c);var d=Q(1);return v(d.toggle(!0))})("blur",function(){u(c);var d=Q(1);return v(d.toggle(!1))});M(3,"mat-icon",4);S(4);L();E(5,vwb,8,4,"ng-template",null,1,Og);L()}a&2&&(a=Q(6),I("panelTemplate",a),B(2),yg("warning",$Nd(b)),B(),I("svgIcon",b.getIcon()),B(),T(" ",b.label," "))},dependencies:[iz,EV,DV,sy],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 xwb=xh(""),aOd=function(){this.port=this.iframe=null;this.deferredMessages=[]};aOd.prototype.load=function(){var a=this,b=bOd();this.iframe=ywb(b);cOd().then(function(){a.iframe&&document.body.appendChild(a.iframe)});return wwb(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)})};
aOd.prototype.exec=function(a,b){var c=this;return new Promise(function(d,e){var f=new MessageChannel;f.port1.onmessage=function(x){f.port1.onmessage=null;x=x.data;x.error!=null?e(new EvalError(x.error)):d(x.result)};for(var g=[],k=[],m=[],r=l(b!=null?b:[]),w=r.next();!w.done;w=r.next())w=w.value,g.push(w.name),k.push(w.value),w.transfer&&m.push(w.value);g={code:a,paramNames:g,values:k};c.port?c.port.postMessage(g,[f.port2].concat(n(m))):c.deferredMessages.push({data:g,transferables:[f.port2].concat(n(m))})})};
aOd.prototype.dispose=function(){this.iframe!=null&&(this.iframe.parentNode&&this.iframe.parentNode.removeChild(this.iframe),this.iframe=null)};var bOd=function(){var a=(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(16));return Array.prototype.join.call(a,".")},cOd=function(){return new Promise(function(a){document.readyState!="loading"?a():bD(document,"DOMContentLoaded",function(){a()})})};var dOd={useFilePicker:!1},eOd,AZ=function(a){this.options=a=a===void 0?dOd:a;fOd(this.options)||typeof navigator.msSaveOrOpenBlob==="function"||(this.sandbox=new aOd)};AZ.download=function(a,b,c,d){c=c===void 0?"":c;d=d===void 0?dOd:d;return y(function(e){if(e.nextAddress==1)return z(e,gOd(a,b,c,d),2);if(e.yieldResult)return e.return();eOd||(eOd=new AZ,eOd.init());return z(e,hOd(eOd,a,b,c),0)})};
AZ.prototype.init=function(){var a=this;return y(function(b){return a.sandbox==null?b.return():z(b,a.sandbox.load(),0)})};AZ.prototype.download=function(a,b,c){c=c===void 0?"":c;var d=this;return y(function(e){return e.nextAddress==1?z(e,gOd(a,b,c,d.options),2):e.yieldResult?e.return():z(e,hOd(d,a,b,c),0)})};
var hOd=function(a,b,c,d){d=d===void 0?"":d;var e,f;return y(function(g){switch(g.nextAddress){case 1:e=b instanceof Blob?b:new Blob([b],{type:d});if(typeof navigator.msSaveOrOpenBlob!=="function"){g.jumpTo(2);break}navigator.msSaveOrOpenBlob(e,c);return z(g,zwb(),3);case 3:return g.return();case 2:if(!Ga()||gba(wba(),16)>=0||!mba()&&(!Ea("iPad")&&!Ea("iPhone")||nba()||mba()||(Fa()?0:Ea("Coast"))||lba()||!Ea("AppleWebKit"))){g.jumpTo(4);break}f=new FileReader;f.onload=function(){var k=Qt(document,
"A"),m=Bh(String(f.result));(0,Lh.setAnchorHref)(k,m);k.download=c;k.click()};f.readAsDataURL(e);return z(g,zwb(),5);case 5:return g.return();case 4:return a.sandbox==null&&(a.sandbox=new aOd,a.sandbox.load()),z(g,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 z(g,zwb(),0)}})},gOd=function(a,b,c,d){c=c===void 0?"":c;d=d===void 0?dOd:d;var e;return y(function(f){switch(f.nextAddress){case 1:if(!fOd(d))return f.return(!1);Vd(f,2);return z(f,iOd(a,b,c),4);case 4:bk(f,3);break;case 2:e=Zd(f);if(e instanceof DOMException&&e.name==="SecurityError")return f.return(!1);throw e;case 3:return f.return(!0)}})},fOd=function(a){a=a===void 0?dOd:a;return a.useFilePicker&&!!window.showSaveFilePicker},
iOd=function(a,b,c){c=c===void 0?"":c;var d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:var m={suggestedName:b},r;(r=b.match(/\..+$/))?(r=r[0],r=r.length>16?null:r):r=null;if(r){var w={},x=c;x=x.replace(/;[^]*/,"");m.types=[{description:"*"+r,accept:(w[/^\s*[a-zA-Z0-9+._-]+\/[a-zA-Z0-9+._-]+?\s*$/.test(x)?x:"*/*"]=[r],w)}]}d=m;Vd(k,2);return z(k,window.showSaveFilePicker(d),4);case 4:e=k.yieldResult;bk(k,3);break;case 2:f=Zd(k);if(f instanceof DOMException&&f.name==="AbortError")return k.return();
throw f;case 3:return z(k,e.createWritable(),5);case 5:return g=k.yieldResult,Xd(k,6),z(k,g.write(a),6);case 6:return Wd(k),z(k,g.close(),9);case 9:Yd(k,7);break;case 7:return k.return()}})};AZ.prototype.dispose=function(){this.sandbox!=null&&this.sandbox.dispose()};Vw("SafeDownloader",AZ);var BZ=function(){LO.apply(this,arguments);var a=this;this.activeSession=q(Zu);this.documentationLinks=q(OQ);this.domSafe=q($P);this.matDialogService=q(gB);this.attachmentService=q(bZ);this.cdr=q(MO,{self:!0});this.differs=q(cy);this.paths=q(wV);this.userAccess=q(lO);this.butterBar=q(JM);this.errorHandler=q(ZM);this.analytics=q(PO);this.clipboard=q(bQ);this.issueCommentDialogsService=q(LX);this.issuePermissionService=q(NP);this.editIssueService=q(tR);this.snackBar=q(LD);this.trackerHelpers=q(WQ);
this.attachmentCountService=q(dZ);this.attachmentsApi=q(ZQ);this.attachmentEnrichmentFridge=q(jN);this.routeParams=q(hR);this.attachmentEnrichments$=le(function(){return a.activeSession.isInternalSession()?a.attachmentEnrichmentFridge.watch(a.issueId):be(void 0)}).pipe(A(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=this.activeSession.getFlag("enableInactiveUserContent");this.enableInlineImageAttachments=this.activeSession.getFlag("enableInlineImageAttachments");this.canDeleteAttachment$=new Xj(!1);this.canUndeleteAttachment$=new Xj(!1)};Z(BZ,LO);BZ.\u0275dir=LO.\u0275dir;h=BZ.prototype;
h.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();jOd(this);this.issuePermissionService.canDeleteAttachment$(this.attachment,this.attachmentUploader).pipe(Af(this.destroyed$)).subscribe(function(c){a.canDeleteAttachment$.next(c);a.initializeMenuItems()});this.issuePermissionService.canUndeleteAttachment$(this.attachment,
this.attachmentUploader).pipe(Af(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)})};h.ngDoCheck=function(){this.attachmentDiffer&&this.attachmentDiffer.diff(this.attachment)&&this.initializeMenuItems()};
h.ngOnChanges=function(a){this.setHasViewAccess();a.attachment&&this.attachment&&(this.attachmentDiffer=this.differs.find(this.attachment).create())};
h.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(){iud(a.editIssueService,a.issueId,a.attachment)},label:"Restore attachment"});this.actionMenuItems.push({type:"action",action:function(){tId(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";sId(a.issueCommentDialogsService,"attachment",d).then(function(e){e&&kOd(a,d)})},label:c?"Match issue retention...":"Revert to component retention..."})}this.cdr.markForCheck()};
h.setHasViewAccess=function(){var a=this;this.isRestricted()?this.attachment==null?this.hasViewAccess=!1:(this.hasViewAccess=!1,mO(this.userAccess,"reader","issues/"+this.issueId+"/attachments/"+this.attachment.attachmentId).then(function(b){a.hasViewAccess=b;a.cdr.detectChanges()})):this.hasViewAccess=!0};h.getFilename=function(){var a;return((a=this.attachment)==null?void 0:a.filename)||""};h.getSize=function(){var a;return((a=this.attachment)==null?void 0:a.length)||0};
var Dwb=function(a,b){b=b===void 0?!0:b;var c;if((c=a.attachment)==null||!c.attachmentId)throw Error("gg");if(a.enableInactiveUserContent){if(b)return atd(a.attachmentsApi)+"/download/attachment/"+a.issueId+"/"+a.attachment.attachmentId+"?download=true";var d;return zs.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 Sva(a,
"download",b)};BZ.prototype.isActive=function(){var a;if((a=this.attachment)==null||!a.attachmentId||this.attachment.attachmentId==="0")return!1;var b;return((b=this.attachment.entityStatus)==null?void 0:b.status)==="ACTIVE"};BZ.prototype.viewAttachment=function(){this.isRestricted()?lOd(this,!1):this.domSafe.openInNewTab(Dwb(this,!1))};
var Fwb=function(a){var b,c=(b=a.attachment)==null?void 0:b.attachmentId,d,e=(d=a.attachment)==null?void 0:d.filename,f,g=(f=a.attachment)==null?void 0:f.contentType;a.isRestricted()?lOd(a,!0):a.enableInactiveUserContent?a.subscriptions.add(btd(a.attachmentsApi,a.issueId,c.toString()).subscribe(function(k){k&&AZ.download(k,e,g)})):a.domSafe.openInNewTab(Dwb(a,!0))};BZ.prototype.isRestricted=function(){return this.getRestrictionSeverity()!=="NONE_DETECTED"};
BZ.prototype.getRestrictionSeverity=function(){var a;return jq((a=this.attachment)==null?void 0:a.contentVerdict)};BZ.prototype.getRestrictedLabel=function(){return N_a(this.getRestrictionSeverity())};var Cwb=function(a){return(a=a.getRestrictionSeverity())?"bv2-restricted-content-limit-"+M_a(a):""},lOd=function(a,b){a.analytics.trackEvent("restrictedContent","viewRestrictedContent","attachment");a.matDialogService.open(aZ,{width:"400px",data:{attachment:a.attachment,issueId:a.issueId,download:b}})};
BZ.prototype.showDeleteAttachmentDialog=function(){var a;(a=this.attachment)!=null&&a.attachmentId&&this.issueCommentDialogsService.showDeleteAttachmentDialog(this.issueId,this.attachment)};
var kOd=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,b).pipe(Af(a.destroyed$)).subscribe({next:function(d){a.attachmentRetentionSaveInProgress=!1;a.attachment&&(a.attachment.piiRetention=d.piiRetention,a.attachment.piiRetentionState=d.piiRetentionState);fs(a.butterBar,"Attachment retention updated",
4E3);a.attachmentRetentionOverride=b==="INDEFINITE"?"INDEFINITE":"COMPONENT_DEFAULT";a.initializeMenuItems();a.cdr.detectChanges()},error:function(){a.attachmentRetentionSaveInProgress=!1;$M(a.errorHandler,"Attachment retention update failed")}})):$M(a.errorHandler,"Attachment id is missing")},jOd=function(a){var b,c,d;y(function(e){(b=a.routeParams.downloadAttachment)&&b===((c=a.attachment)==null?void 0:c.attachmentId)&&(d=a.routeParams.download==="true",lOd(a,d));$d(e)})};
BZ.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(BZ)))(b||BZ)}}();
BZ.\u0275cmp=C({type:BZ,selectors:[["b-attachment-viewer"]],inputs:{attachment:"attachment",issueId:"issueId",attachmentUploader:"attachmentUploader"},features:[Ig([MO]),Ff,Gx],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&&(K(0,"div",1),M(1,"b-icon",2),L(),K(2,"div",3)(3,"div",
4),S(4),K(5,"span",5),F(6,Awb,1,3,"b-restricted-chip",6),F(7,Bwb,2,3,"span",7),L()(),K(8,"div",8),S(9),F(10,Ewb,2,8,"span",9),F(11,Gwb,5,8),K(12,"xap-bubble",10),F(13,Hwb,3,3,"span",11),E(14,Iwb,4,1,"ng-template",null,0,Og),L(),F(16,Jwb,1,3,"attachment-preview",12),L(),F(17,Lwb,1,1),U(18,"async"),L());if(a&2){var c;a=Q(15);B(4);T(" ",b.getFilename()," ");B(2);G(b.isRestricted()?6:-1);B();G(b.actionMenuItems.length>0?7:-1);B(2);T(" ",Bdb(b.getSize())," ");B();var d;var e=b.isActive()&&aTa((d=b.attachment)==
null?void 0:d.contentType);G(e?10:-1);B();G(b.isActive()?11:-1);B();I("panelTemplate",a);B();G(b.isRestricted()&&!b.hasViewAccess?13:-1);B(3);var f,g,k;if(d=!(!(b.enableInlineImageAttachments&&b.hasViewAccess&&b.isActive()&&((f=b.attachment)==null?0:f.contentType)&&((g=b.attachment)==null?0:g.contentType.startsWith("image/")))||((k=b.attachment)==null?0:k.contentType.startsWith("image/svg")))){var m;((m=b.attachment)==null?0:m.attachmentId)?(f=b.attachmentCountService,g=b.attachment.attachmentId,
f.inlinedAttachmentSet.has(g)?f=!0:f.getCount()<12?(f.inlinedAttachmentSet.add(g),f=!0):f=!1):f=!1;d=f}G(d?16:-1);B();G((c=W(18,10,b.attachmentEnrichments$))?17:-1,c)}},dependencies:[UY,yZ,cZ,qNd,ZA,XA,VA,hK,hS,iz,MA,zZ,EV,DV,py],styles:[".icon-button-container[_ngcontent-%COMP%]{--mat-icon-button-touch-target-display: none;margin-bottom:2px}.icon-button-container[_ngcontent-%COMP%]   .mat-mdc-icon-button.mat-mdc-button-base[_ngcontent-%COMP%]{--mdc-icon-button-state-layer-size: 36px;--mat-icon-button-state-layer-size: 36px;width:var(--mat-icon-button-state-layer-size);height:var(--mat-icon-button-state-layer-size);padding:6px}"],
changeDetection:0});var mOd="monitoring.corp.google.com irm.corp.google.com rollouts.corp.google.com nexus.corp.google.com sherlog analog nexus rpcstudio".split(" ").map(function(a){return a.toLowerCase()}),CZ=function(){var a=this;this.activeSession=q(Zu);this.contextSensitiveRegistry=q(KP);this.issueFullFridge=q(RO);this.eventsForIssueFridge=q(vO);this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(of());this.issue$=this.issueId$.pipe(zf(function(b){return b?a.issueFullFridge.watch(b):be(void 0)}));this.issueDescription$=
this.issueId$.pipe(zf(function(b){return b?a.eventsForIssueFridge.watch(b):be(void 0)}),A(function(b){var c;return(b==null?0:(c=b.events)==null?0:c.length)&&b.events.length>0&&b.events[0].commentNumber&&b.events[0].commentNumber>-1?b.events[0]:void 0}));this.doesDescriptionContainKeyword$=this.issueDescription$.pipe(A(function(b){var c;if(c=!(b==null||!b.unlinkifiedComment))a:{if(b=b.unlinkifiedComment){b=b.toLowerCase();c=l(mOd);for(var d=c.next();!d.done;d=c.next())if(b.includes(d.value)){c=!0;
break a}}c=!1}return c}));this.isIssueComponentInGppLlmChatComponentAllowlist$=this.issue$.pipe(A(function(b){var c;if(!(b==null?0:(c=b.snapshot[0])==null?0:c.componentId))return!1;b=b.snapshot[0].componentId;return gjd(a.activeSession).has(String(b))}));this.isGppLlmChatEnabled$=this.activeSession.isInternalSession()&&this.activeSession.getFlag("enableGppLlmChat")?he([this.isIssueComponentInGppLlmChatComponentAllowlist$,this.doesDescriptionContainKeyword$]).pipe(A(function(b){var c=l(b);b=c.next().value;
c=c.next().value;return b&&c})):be(!1);this.isDuckieChatEnabled$=be(this.activeSession.isInternalSession()&&this.activeSession.getFlag("enableDuckieLlmChat"));this.isLlmChatEnabled$=he([this.isGppLlmChatEnabled$,this.isDuckieChatEnabled$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b||c}));this.contextValuesForDuckieRag$=this.issueId$.pipe(A(function(b){var c=[(new zC).setName("application_name").setStringValue("Buganizer"),(new zC).setName("application_description").setStringValue("Buganizer is an internal tool for tracking issues.")];
b&&c.push((new zC).setName("page_specific_context").setStringValue("The user is viewing Buganizer issue "+b+". Use tools to obtain information about the issue."));b=new yC;var d=b.setValuesList,e=(new zC).setName("page_detail").setDescription("Information about the webpage the user is calling the agent from.\nThis is relevant because we can make different assumptions about the user's implied intents and topics based on the application they're in.");c=(new yC).setValuesList(c);c=op(e,3,AC,c);return d.call(b,
[c])}))};CZ.\u0275fac=function(a){return new (a||CZ)};CZ.\u0275prov=Cc({token:CZ,factory:CZ.\u0275fac,providedIn:"root"});var nOd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,nOd.messageId)};Z(nOd,X);h=nOd.prototype;h.getIssueIdsList=function(){return kx(this,1,1,fb)};h.getIssueIdsList_asString=function(){return mn(this,1,fb)};h.setIssueIdsList=function(a){return Kr(this,1,a,fb)};h.addIssueIds=function(a){return xx(this,1,a,void 0,fb)};h.setIssueIds=function(a){wc(this,1,Fb,void 0,a,Kb,fb,1)};nOd.messageId="tailwind.BatchGetIssueRunStatusRequest";var cu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,cu.messageId)};Z(cu,X);cu.prototype.getIssueId=function(){return Hn(this,1,void 0,fb)};cu.prototype.getIssueId_asString=function(){return Ln(this,1,void 0,fb)};cu.prototype.setIssueId=function(a){return Nn(this,1,a,void 0,fb)};cu.prototype.getRunId=function(){return Fi(this,2,void 0,fb)};cu.messageId="tailwind.IssueRunStatus";var oOd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,oOd.messageId)};Z(oOd,X);oOd.messageId="tailwind.BatchGetIssueRunStatusResponse";var DZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,DZ.messageId)};Z(DZ,X);DZ.prototype.getIssueId=function(){return Hn(this,1,void 0,fb)};DZ.prototype.getIssueId_asString=function(){return Ln(this,1,void 0,fb)};DZ.prototype.setIssueId=function(a){return Nn(this,1,a,void 0,fb)};DZ.messageId="tailwind.CreateFixPlanRequest";var pOd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,pOd.messageId)};Z(pOd,X);pOd.messageId="tailwind.CreateFixPlanResponse";var EZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,EZ.messageId)};Z(EZ,X);EZ.prototype.getIssueId=function(){return Hn(this,1,void 0,fb)};EZ.prototype.getIssueId_asString=function(){return Ln(this,1,void 0,fb)};EZ.prototype.setIssueId=function(a){return Nn(this,1,a,void 0,fb)};EZ.messageId="tailwind.CreateRunRequest";var Yt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Yt.messageId)};Z(Yt,X);Yt.prototype.getRunId=function(){return Fi(this,1,void 0,fb)};Yt.prototype.getIssueId=function(){return Hn(this,2,void 0,fb)};Yt.prototype.getIssueId_asString=function(){return Ln(this,2,void 0,fb)};Yt.prototype.setIssueId=function(a){return Nn(this,2,a,void 0,fb)};Yt.messageId="tailwind.RunMetadata";var qOd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,qOd.messageId)};Z(qOd,X);qOd.prototype.getRejectionReason=function(){return Ri(this,3,void 0,fb)};qOd.prototype.setRejectionReason=function(a){Yn(this,3,a,fb)};qOd.messageId="tailwind.GetIssueEligibilityResponse";var FZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,FZ.messageId)};Z(FZ,X);FZ.prototype.getIssueId=function(){return Hn(this,1,void 0,fb)};FZ.prototype.getIssueId_asString=function(){return Ln(this,1,void 0,fb)};FZ.prototype.setIssueId=function(a){return Nn(this,1,a,void 0,fb)};FZ.messageId="tailwind.RetryRunRequest";var Swb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Swb.messageId)};Z(Swb,X);Swb.messageId="tailwind.RunResultsValidation";var Zt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Zt.messageId)};Z(Zt,X);Zt.prototype.getEntriesList=function(){return Xm(this,1,Xi(),fb)};Zt.prototype.getEntries=function(a){return ox(this,1,a,fb)};Zt.messageId="tailwind.RunSummarySection";var rOd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,rOd.messageId)};Z(rOd,X);rOd.messageId="tailwind.RunSummary";var bu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,bu.messageId)};Z(bu,X);bu.prototype.getName=function(){return Fi(this,1,void 0,fb)};bu.prototype.setName=function(a){return Gj(this,1,a,fb)};bu.prototype.hasName=function(){return xm(this,1,fb)};bu.prototype.getNameOrUndefined=function(){return mx(this,1,fb)};bu.messageId="tailwind.RunTrajectoryStepFunctionCall";var au=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,au.messageId)};Z(au,X);au.prototype.getText=function(){return Fi(this,1,void 0,fb)};au.prototype.setText=function(a){return Gj(this,1,a,fb)};au.prototype.hasText=function(){return xm(this,1,fb)};au.messageId="tailwind.RunTrajectoryStep";var $t=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,$t.messageId)};Z($t,X);$t.prototype.getPrompt=function(){return Fi(this,1,void 0,fb)};$t.messageId="tailwind.RunTrajectory";var GZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,GZ.messageId)};Z(GZ,X);GZ.prototype.getSummary=function(){return Y(this,rOd,1,fb)};GZ.prototype.hasSummary=function(){return Si(this,rOd,1,fb)};GZ.messageId="tailwind.RunResults";var sOd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,sOd.messageId)};Z(sOd,X);h=sOd.prototype;h.getMetadata=function(){return Y(this,Yt,1,fb)};h.getMutableMetadata=function(){return cj(this,Yt,1,void 0,fb)};h.setMetadata=function(a){hj(this,Yt,1,a,fb)};h.hasMetadata=function(){return Si(this,Yt,1,fb)};h.getResults=function(){return Y(this,GZ,3,fb)};h.hasResults=function(){return Si(this,GZ,3,fb)};sOd.messageId="tailwind.Run";var HZ=function(){this.executor=q(RM)};HZ.prototype.getIssueEligibility=function(a){return this.executor.get({url:"action/tailwind/eligibility/"+a,responseConstructor:qOd}).pipe(A(Pwb))};HZ.prototype.createRun=function(a){return this.executor.post({url:"action/tailwind/create_run",body:(new EZ).setIssueId(a),responseConstructor:Yt}).pipe(A(Owb))};
HZ.prototype.retryRun=function(a){var b=this.executor,c=b.post;var d=(new FZ).setIssueId(a.issueId);d=Gj(d,2,a.userInstructions,fb);a=Gj(d,3,a.previousRunId,fb);return c.call(b,{url:"action/tailwind/retry_run",body:a,responseConstructor:Yt}).pipe(A(Owb))};
var tOd=function(a,b){return a.executor.get({url:"action/tailwind/get_run/"+encodeURIComponent(b),responseConstructor:sOd}).pipe(A(Twb))},uOd=function(a,b){b=(new nOd).setIssueIdsList(b);return a.executor.post({url:"action/tailwind/batch_get_run_statuses",body:b,responseConstructor:oOd}).pipe(A(Wwb))};HZ.prototype.createFixPlan=function(a){return this.executor.post({url:"action/tailwind/create_fix_plan",body:(new DZ).setIssueId(a.issueId),responseConstructor:pOd}).pipe(A(Ywb))};
HZ.\u0275fac=function(a){return new (a||HZ)};HZ.\u0275prov=Cc({token:HZ,factory:HZ.\u0275fac,providedIn:"root"});var vOd=function(a){this.maxEntries=a;this.dataStore=new Map};vOd.prototype.getKeys=function(){return Array.from(this.dataStore.keys())};
var wOd=function(a,b){for(a.dataStore.has(b)&&a.dataStore.delete(b);a.dataStore.size>=a.maxEntries;)a.dataStore.delete(a.dataStore.keys().next().value);a.dataStore.set(b,void 0)},xOd=function(a){return Array.from(a.dataStore.keys()).join(",")},yOd=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)};vOd.prototype.hasKey=function(a){return this.dataStore.has(a)};var zOd={INITIAL:0,GENERATING:1,LOADING:2,GENERATION_SUCCESS:3,ERROR:4,GENERATION_SUCCESS_INELIGIBLE:5,GENERATION_FAILED_INELIGIBLE:6,HIDDEN:7,0:"INITIAL",1:"GENERATING",2:"LOADING",3:"GENERATION_SUCCESS",4:"ERROR",5:"GENERATION_SUCCESS_INELIGIBLE",6:"GENERATION_FAILED_INELIGIBLE",7:"HIDDEN"},IZ={},AOd=(IZ[0]={message:"Use AI to fix this issue"},IZ[1]={message:"Generating suggestion. It could take a while. Please check back later and refresh your page."},IZ[2]={message:"Loading AI suggested fix status."},
IZ[3]={message:"Fix ready for review."},IZ[4]={message:"AI was unable to fix this issue. You can try again on another issue."},IZ[5]={message:"A previously generated fix exists. This issue is not eligible for regenerating."},IZ[6]={message:"A previously failed generation exists. This issue is not eligible for regenerating."},IZ[7]={message:"Not eligible for AI fix."},IZ),JZ=function(){var a=this;this.activeSession=q(Zu);this.tailwindApi=q(HZ);this.contextSensitiveRegistry=q(KP);this.ignoredIssuesCache=
new vOd(100);this.pollingObservable=null;this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(A(jn),of(),wf({bufferSize:1,refCount:!0}));this.runForCurrentIssue$=new Xj(void 0);this.isEnabledForCurrentIssue$=this.issueId$.pipe(zf(function(c){return c&&a.activeSession.getFlag("enableTailwind")&&a.activeSession.isInternalSession()&&!a.ignoredIssuesCache.hasKey(c)?a.tailwindApi.getIssueEligibility(c).pipe(A(function(d){return d.eligibilityState==="ELIGIBLE_NOT_STARTED"||d.eligibilityState===
"EXISTING"||d.eligibilityState==="INELIGIBLE_EXISTING"}),hf(function(){return be(!1)})):be(!1)}),wf({bufferSize:1,refCount:!0}));var b=Lo("llm_suggested_bug_fix_ignored_issues")();yOd(this.ignoredIssuesCache,b!=null?b:void 0)};h=JZ.prototype;
h.startPollingForSuggestion=function(a){var b=this;return this.pollingObservable?this.pollingObservable:this.pollingObservable=le(function(){return tOd(b.tailwindApi,a)}).pipe(Bf(function(c){b.isRunComplete(c)&&b.runForCurrentIssue$.next(c)}),A(function(c){if(!b.isRunComplete(c))throw Error("hg");return b.isRunSuccessful(c)?3:4}),axb(),hf(function(c){return c.message==="Not completed"?be(1):be(4)}),pf(function(){b.pollingObservable=null}))};
h.getInitialStatus=function(a){var b=this;return this.tailwindApi.getIssueEligibility(a).pipe(zf(function(c){switch(c.eligibilityState){case "INELIGIBLE":return be(7);case "ELIGIBLE_NOT_STARTED":return be(0);case "EXISTING":case "INELIGIBLE_EXISTING":return tOd(b.tailwindApi,c.runMetadata.runId).pipe(Bf(function(d){b.isRunComplete(d)&&b.runForCurrentIssue$.next(d)}),A(function(d){return b.isRunComplete(d)?b.isRunSuccessful(d)?c.eligibilityState==="EXISTING"?3:5:c.eligibilityState==="EXISTING"?4:6:
1}),hf(function(){return be(4)}),yf(2));default:return be(0)}}),mf(2),hf(function(){return be(4)}))};h.ignoreSuggestion=function(a){isNaN(Number(a))||(wOd(this.ignoredIssuesCache,a),ajd("llm_suggested_bug_fix_ignored_issues")(xOd(this.ignoredIssuesCache)))};h.createRun=function(a){return this.tailwindApi.createRun(a)};h.retryRun=function(a,b,c){return this.tailwindApi.retryRun({issueId:a,userInstructions:b,previousRunId:c})};h.isRunComplete=function(a){return a.metadata!==void 0};
h.isRunSuccessful=function(a){var b;a=Number((b=a.results)==null?void 0:b.oclNumber);return!Number.isNaN(a)&&a>0};JZ.\u0275fac=function(a){return new (a||JZ)};JZ.\u0275prov=Cc({token:JZ,factory:JZ.\u0275fac,providedIn:"root"});var KZ=function(){this.llmChatService=q(CZ);this.appEvents=q(DN);this.llmSuggestedBugFixService=q(JZ);this.buttonText="Ask Production Agent";this.showButton$=he([this.llmChatService.isGppLlmChatEnabled$,this.llmSuggestedBugFixService.isEnabledForCurrentIssue$]).pipe(A(function(a){var b=l(a);a=b.next().value;b=b.next().value;return a&&!b}))};KZ.prototype.openSidebar=function(){this.appEvents.openIssueDetailsPageSidebar.next()};KZ.\u0275fac=function(a){return new (a||KZ)};
KZ.\u0275cmp=C({type:KZ,selectors:[["llm-chat-open-button"]],decls:2,vars:3,consts:["mat-stroked-button;;aria-label;Open chat sidebar;matTooltip;Open chat sidebar".split(";"),["mat-stroked-button","","aria-label","Open chat sidebar","matTooltip","Open chat sidebar",3,"click"],["svgIcon","chat_spark_24px","color","primary",1,"icon-s"]],template:function(a,b){a&1&&(F(0,bxb,3,1,"button",0),U(1,"async"));a&2&&G(W(1,1,b.showButton$)?0:-1)},dependencies:[ZA,XA,TA,iz,MA,py],encapsulation:2,changeDetection:0});var LZ=function(){this.dialogRef=q(dB);this.documentationLinks=q(OQ);this.data=q(fB);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc"};LZ.prototype.onNoClick=function(){this.dialogRef.close(!1)};LZ.\u0275fac=function(a){return new (a||LZ)};
LZ.\u0275cmp=C({type:LZ,selectors:[["b-restricted-confirmation-dialog"]],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&&(K(0,"h1",0),S(1),L(),K(2,"div",1)(3,"p"),S(4),K(5,"a",2),S(6," Learn More "),L()()(),K(7,"div",3)(8,"button",4),N("click",function(){return b.onNoClick()}),S(9," Cancel "),L(),K(10,"button",5),S(11," Confirm "),L()());a&2&&(B(),Ag(b.data.title),B(3),T(" ",b.data.content," "),B(),I("rel",b.EXTERNAL_LINK_REL),Jf("href",b.documentationLinks.getRestrictedAccessHelpLink(),Me),B(5),I("mat-dialog-close",!0))},dependencies:[ZA,XA,TA,mB,hB,lB,kB],encapsulation:2});var MZ=function(){this.dialog=q(gB);this.documentationLinks=q(OQ);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.disabled=!1;this.onConfirm=new KO};
MZ.prototype.openDialog=function(){var a=this;eB(this.dialog.open(LZ,{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()})};MZ.\u0275fac=function(a){return new (a||MZ)};
MZ.\u0275cmp=C({type:MZ,selectors:[["b-restricted-comment-placeholder"]],inputs:{disabled:"disabled"},outputs:{onConfirm:"onConfirm"},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&&(K(0,"span")(1,"button",0),N("click",function(){return b.openDialog()}),S(2," Show Restricted Content "),L(),K(3,"a",1),
S(4," Learn More "),L()());a&2&&(B(),I("disabled",b.disabled),B(2),I("rel",b.EXTERNAL_LINK_REL),Jf("href",b.documentationLinks.getRestrictedAccessHelpLink(),Me))},dependencies:[ZA,XA,TA],styles:[".mat-mdc-outlined-button[_ngcontent-%COMP%]{margin-right:1em}/*# sourceMappingURL=restricted_comment_placeholder.css.map */"],changeDetection:0});var NZ=function(){};NZ.\u0275fac=function(a){return new (a||NZ)};NZ.\u0275mod=$e({type:NZ});NZ.\u0275inj=Dc({imports:[OJ,FN,ZA,iK,UY]});var BOd=["commentActionsMenu"],COd=["editDescription"],yxb=function(){return[]},OZ=function(){LO.apply(this,arguments);var a=this;this.eventsForIssue=q(vO);this.userPreferencesManager=q(VP);this.issueFullFridge=q(RO);this.issueReferenceResolver=q(yQ);this.activeSession=q(Zu);this.commentService=q(cR);this.errorHandler=q(ZM);this.analytics=q(PO);this.butterBar=q(JM);this.userAccess=q(lO);this.issueCommentDialogsService=q(LX);this.issuePermissionService=q(NP);this.commentHistoryDialogService=q(XY);
this.dateFormatter=q(gR);this.domSafe=q($P);this.FormattingMode=fo;this.emailToUser=Sm;this.id$=new vf(1);this.issue$=this.id$.pipe(zf(function(b){return a.issueFullFridge.watch(b)}),wf({bufferSize:1,refCount:!0}));this.accessLevel$=this.issue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.firstEventOverride$=new Xj(void 0);this.firstEvent$=this.firstEventOverride$.pipe(zf(function(b){return b?be(b):a.issue$.pipe(te(ln),A(function(c){if(c.description)var d=
k3a(c.description,c);else{var e,f;d={attachments:[],preDiffs:[],postDiffs:[],modifiedDate:UTa(wn((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(wf({bufferSize:1,refCount:!0}));this.firstNote$=this.firstEvent$.pipe(A(function(b){return b}));this.hasDescription$=this.firstEvent$.pipe(A(function(b){return!!b&&iWa(b)}));this.isDisplayCommentFormatLiteral$=this.userPreferencesManager.isCommentDisplayOverrideSet$;this.formattingModeOverride$=
new Xj(void 0);this.formattingMode$=this.formattingModeOverride$.pipe(zf(function(b){return b?be(b):a.firstEvent$.pipe(te(ln),A(function(c){var d;return(d=c.formattingMode)!=null?d:"PLAIN"}),of())}));this.isRedacted$=this.firstEvent$.pipe(A(function(b){var c;return(c=b==null?void 0:b.commentRedacted)!=null?c:!1}));this.isDeleted$=this.firstEvent$.pipe(A(function(b){return(b==null?void 0:b.commentDeletionStatus)==="DELETED"}));this.shouldShowRestrictedPlaceholder$=he([this.isRedacted$,this.isDeleted$]).pipe(A(function(b){var c=
l(b);b=c.next().value;c=c.next().value;return!(!b||c)}));this.isRestricted$=this.firstEvent$.pipe(A(function(b){return jq(b==null?void 0:b.commentContentVerdict)}),A(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:sb(b)}}));this.commentRetentionOverride$=this.firstEvent$.pipe(A(function(b){return b==null?void 0:b.commentRetention}));this.commentHistoryEnabled=this.activeSession.getFlag("enableCommentHistoryUi");
this.isShowCommentHistoryActionInMenu$=he([this.firstEvent$,this.isRedacted$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return!(!(a.activeSession.getFlag("enableCommentHistoryUi")&&((b==null?void 0:b.commentVersion)||0)>0)||c)}));this.canEditComment$=this.firstEvent$.pipe(zf(function(b){return b?a.issuePermissionService.canEditComment$(b):be(!1)}),wf({refCount:!0,bufferSize:1}));this.mayReadPii$=this.isRestricted$.pipe(zf(function(b){return b?DOd(a):be(void 0)}));this.reporterUser$=
this.issue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.snapshot[0])==null?void 0:c.reporterUser}));this.currentReporterEmail$=this.reporterUser$.pipe(A(function(b){return Rm(b)||""}));this.allEvents$=this.id$.pipe(zf(function(b){return a.eventsForIssue.watch(b)}));this.attachments$=this.allEvents$.pipe(A(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(A(function(b){return b==null?void 0:
b.events[0]}),A(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$=he([this.initialReporterEmail$,this.currentReporterEmail$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b||c}));this.originalAuthor$=this.allEvents$.pipe(A(function(b){return b==null?void 0:b.events[0]}),A(function(b){return b==null?void 0:b.userPerformingActionUser}));this.originalAuthorEmail$=
this.originalAuthor$.pipe(A(Rm));this.isAuthorNotReporter$=he([this.originalAuthorEmail$,this.onBehalfOfEmail$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b!==c}));this.lastNonCreatorCommentEditorUser$=he([this.firstEvent$.pipe(te(ln)),this.onBehalfOfEmail$]).pipe(A(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(te(ln),zf(function(b){var c="Last edited";b.lastCommentEditorUser&&(c+=" by "+Om(b.lastCommentEditorUser));return b.commentLastModifiedAtDate?vtd(a.dateFormatter,new Date(b.commentLastModifiedAtDate)).pipe(A(function(d){return c+" on "+d})):be(c)}));this.formattingModeMenuItems$=this.formattingMode$.pipe(A(function(b){var c={};return 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}));this.commentActionMenuItems$=he({isDisplayCommentFormatLiteral:this.isDisplayCommentFormatLiteral$,formattingModeMenuItems:this.formattingModeMenuItems$,event:this.firstEvent$,canEditComment:this.canEditComment$,isRedacted:this.isRedacted$,isRestricted:this.isRestricted$,
isDeleted:this.isDeleted$,accessLevel:this.accessLevel$,isShowCommentHistoryActionInMenu:this.isShowCommentHistoryActionInMenu$,canDeleteComment:this.firstEvent$.pipe(zf(function(b){return a.issuePermissionService.canDeleteComment(b)})),canUndeleteComment:this.firstEvent$.pipe(zf(function(b){return a.issuePermissionService.canUndeleteComment(b)})),canSeeRestrictionSettings:this.issuePermissionService.hasAclToView$,canChangeCommentRetention:this.issuePermissionService.canChangeCommentRetention$,commentRetentionOverride:this.commentRetentionOverride$}).pipe(A(function(b){var c=
b.isDisplayCommentFormatLiteral;var d=b.formattingModeMenuItems;var e=b.event;var f=b.canEditComment;var g=b.isRedacted;var k=b.isRestricted;var m=b.isDeleted;var r=b.accessLevel;var w=b.isShowCommentHistoryActionInMenu;var x=b.canDeleteComment;var D=b.canUndeleteComment;var H=b.canSeeRestrictionSettings;var J=b.canChangeCommentRetention;b=b.commentRetentionOverride;var O=[];c||O.push(Object.assign({},BMd,{items:[d.PLAIN,d.MARKDOWN,d.LITERAL]}));f&&e&&O.push({type:"action",action:function(){tzb(a.issueCommentDialogsService,
a.id,e).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit description...",disabled:g});w&&e&&O.push(Object.assign({},DMd,{action:function(){e.commentNumber&&a.showCommentHistoryDialog(e.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}}));e&&x&&O.push({type:"action",action:function(){e.commentEtag&&qId(a.issueCommentDialogsService,a.id,1,e.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete description"});
e&&D&&O.push({type:"action",action:function(){nId(a.issueCommentDialogsService,a.id,1).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restore description"});e&&H&&O.push(Object.assign({},CMd,{action:function(){rId(a.issueCommentDialogsService,a.id,e).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}}));if(k&&J&&!m&&a.activeSession.isInternalSession()){var R=b==="COMPONENT_DEFAULT";O.push({type:"action",action:function(){var V=R?"INDEFINITE":"COMPONENT_DEFAULT";
sId(a.issueCommentDialogsService,"comment",V).then(function(ba){a.commentActionsMenu.actionsMenuIconButton.focus();ba&&a.updateCommentRetention(V)})},label:R?"Match issue retention...":"Revert to component retention..."})}aub({userIsExternal:!a.activeSession.isInternalSession(),issueIsExternal:r!=="INTERNAL"})&&O.push(Object.assign({},AMd,{action:function(){var V=bub({bugId:a.id,comment:1});a.domSafe.openInNewTab(V)}}));return O}))};Z(OZ,LO);OZ.\u0275dir=LO.\u0275dir;
var DOd=function(a){return a.id$.pipe(zf(function(b){return le(function(){return mO(a.userAccess,"reader","issues/"+b+"/comments/1").catch(function(c){pn("error: ",c);return!1})})}))};
OZ.prototype.updateCommentRetention=function(a){var b=this,c,d;y(function(e){if(e.nextAddress==1)return z(e,ee(b.firstEvent$),2);if(e.nextAddress!=3)return c=e.yieldResult,z(e,ee(b.id$),3);d=e.yieldResult;c&&!c.commentNumber&&$M(b.errorHandler,"Comment number is missing");b.analytics.trackEvent("restrictedContent","updateRetention","comment");d&&c&&b.commentService.updateRetention(d,c.commentNumber||0,a).pipe(Af(b.destroyed$)).subscribe({next:function(){b.eventsForIssue.poke(d);fs(b.butterBar,"Comment retention updated",
4E3)},error:function(){$M(b.errorHandler,"Comment retention update failed")}});$d(e)})};
OZ.prototype.loadRestrictedComment=function(a,b){var c=this;this.analytics.trackEvent("restrictedContent","viewRestrictedContent","comment");var d=b.commentNumber||0,e=jq(b.commentContentVerdict);a&&this.commentService.get(a,d,e).pipe(mf(1),Af(this.destroyed$)).subscribe(function(f){f=kWa(b,f);c.firstEventOverride$.next(f)},function(f){var g;c.butterBar.showWarning("Error showing comment "+d+": "+((g=f.error)==null?void 0:g.message))})};
OZ.prototype.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(this.id,a,-1)};var cxb=function(a){var b;return y(function(c){if(c.nextAddress==1)return z(c,ee(a.firstEvent$),2);if(c.nextAddress!=3)return(b=c.yieldResult)?z(c,tzb(a.issueCommentDialogsService,a.id,b),3):c.return();a.editDescriptionButton.focus();$d(c)})};da.Object.defineProperties(OZ.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)},get:function(){return Pr(this.id$)}}});
OZ.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(OZ)))(b||OZ)}}();
OZ.\u0275cmp=C({type:OZ,selectors:[["b-issue-description"]],viewQuery:function(a,b){a&1&&(kg(BOd,5),kg(COd,5));if(a&2){var c;og(c=pg())&&(b.commentActionsMenu=c.first);og(c=pg())&&(b.editDescriptionButton=c.first)}},inputs:{id:"id"},features:[Ff],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"],["mode","datetime",1,"margin-s-right",3,"timestamp"],[1,"issue-detail-actions",3,"buttonLabel","menuItems"],[1,"display-block","margin-s-top"],[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,"user","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&&(F(0,zxb,28,27,"div",4),U(1,"async"),Mf(2,Axb,1,0,"b-spinner"));if(a&2){var c;G((c=W(1,1,b.firstEvent$))?0:2,c)}},dependencies:[UY,BZ,DT,ZA,XA,TA,hK,AK,uK,zK,UR,KZ,iz,MA,$S,MZ,EN,VS,kU,jU,py,rU],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}"],
changeDetection:0});var EOd=function(){this.reactionState$=new vf(1);this.issueId="";this.emails$=this.reactionState$.pipe(te(ln),A(function(a){return a.recentResponders.map(Rm).filter(function(b){return b!==""}).slice(0,5)}))};da.Object.defineProperties(EOd.prototype,{reactionState:{configurable:!0,enumerable:!0,set:function(a){a&&this.reactionState$.next(a)}}});EOd.\u0275fac=function(a){return new (a||EOd)};
EOd.\u0275cmp=C({type:EOd,selectors:[["b-comment-reaction-responders-card"]],inputs:{reactionState:"reactionState",issueId:"issueId",commentNumber:"commentNumber"},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&&(Sf(0,"div",0)(1,"div",1),Pf(2,Dxb,5,2,"div",null,Of),U(4,"async"),Tf()());a&2&&(B(2),Qf(W(4,0,b.emails$)))},dependencies:[py],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto;max-width:400px}.normal-link.unstyled-button[_ngcontent-%COMP%]{color:#1a73e8;color:var(--link)}"]});var FOd=function(){};FOd.\u0275fac=function(a){return new (a||FOd)};FOd.\u0275cmp=C({type:FOd,selectors:[["b-comment-edit-timestamp-message"]],inputs:{event:"event"},decls:1,vars:1,consts:[["mode","datetime",3,"timestamp"]],template:function(a,b){a&1&&F(0,Fxb,6,2);a&2&&G(b.event.commentLastModifiedAtDate?0:-1)},dependencies:[DT],encapsulation:2,changeDetection:0});var PZ=function(){this.texts=[]};PZ.prototype.getIssueId=function(a){return a.text};PZ.\u0275fac=function(a){return new (a||PZ)};PZ.\u0275cmp=C({type:PZ,selectors:[["b-tagged-text"]],inputs:{texts:"texts"},decls:2,vars:0,consts:[[3,"email","withProfile"],[3,"href","issueId"]],template:function(a,b){a&1&&Pf(0,Jxb,3,1,null,null,Nf);a&2&&Qf(b.texts)},dependencies:[zQ,tU],encapsulation:2,changeDetection:0});var GOd=function(){this.hotlists=q(UN);this.ROUTES=zs};GOd.\u0275fac=function(a){return new (a||GOd)};GOd.\u0275cmp=C({type:GOd,selectors:[["hotlist-link"]],inputs:{id:"id"},decls:3,vars:4,consts:[[3,"href"]],template:function(a,b){a&1&&(Sf(0,"a",0),S(1),U(2,"async"),Tf());if(a&2){var c;Rf("href",b.ROUTES.viewHotlist.makeHref(b.id),Me);B();Ag(((c=W(2,2,b.hotlists.watch(b.id)))==null?null:c.name)||b.id)}},dependencies:[py],encapsulation:2,changeDetection:0});var QZ=function(){var a=this;this.componentFridge=q(AN);this.id$=new vf(1);this.name$=this.id$.pipe(of(),zf(function(b){return a.componentFridge.watch(b).pipe(A(function(c){var d=c?(c=(d=c.componentPathInfo)==null?void 0:d.componentPathName)?c.join(" > "):b:b;return d}))}))};QZ.prototype.ngOnChanges=function(){this.id$.next(this.id)};QZ.\u0275fac=function(a){return new (a||QZ)};
QZ.\u0275cmp=C({type:QZ,selectors:[["plain-component-path"]],inputs:{id:"id"},features:[Gx],decls:6,vars:4,consts:[["thisHovercard","onedevHovercard"],["cardBody",""],[3,"onedevHovercardTrigger"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"]],template:function(a,b){a&1&&(K(0,"span",2),S(1),U(2,"async"),L(),K(3,"onedev-hovercard",null,0),E(5,Kxb,3,2,"ng-container",3),L());a&2&&(a=Q(4),I("onedevHovercardTrigger",a),B(),Ag(W(2,2,b.name$)||b.id))},dependencies:[GV,AK,uK,vK,
zK,wK,py],encapsulation:2,changeDetection:0});var Byb=function(a,b,c){return{diff:a,change:b,isLast:c}},RZ=function(){LO.apply(this,arguments);this.activeSession=q(Zu);this.preferences=q(VP);this.customFieldHelper=q(kR);this.emailToUser=Sm;this.customFieldMap={};this.effortEnabled=!0;this.isStringArray=Im;this.isLinkedItemArray=V3a;this.isIssueDiff=S3a;this.isHotlistDiff=T3a;this.DiffType=Uhd};Z(RZ,LO);RZ.\u0275dir=LO.\u0275dir;
var HOd=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)},IOd=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)};RZ.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(te(ln),Af(this.destroyed$)).subscribe(function(b){a.internalDiffs.length<2||(b&&HOd(a)||!b&&IOd(a))&&a.internalDiffs.reverse()})};
var Nyb=function(a,b,c){return Fva(b,c)==="<none>"?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&a.customFieldMap[b.customFieldId].type==="DATE"?!0:!1},Oyb=function(a,b,c){return Fva(b,c)==="<none>"?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&a.customFieldMap[b.customFieldId].type==="REPEATED_DATE"?!0:!1};RZ.prototype.asNumber=function(a){return Number(a)};
RZ.prototype.customFieldName=function(a){if(a.customFieldId){var b;return((b=this.customFieldMap[a.customFieldId])==null?void 0:b.customFieldName)||"customfield"+a.customFieldId}return""};da.Object.defineProperties(RZ.prototype,{diffs:{configurable:!0,enumerable:!0,set:function(a){this.internalDiffs=[].concat(n(a))}}});RZ.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(RZ)))(b||RZ)}}();
RZ.\u0275cmp=C({type:RZ,selectors:[["b-issue-event-details"]],inputs:{diffs:"diffs",customFieldMap:"customFieldMap",effortSpecName:"effortSpecName",effortEnabled:"effortEnabled"},features:[Ff],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,"user","showEmail"],["mode","date",3,"timestamp"],[3,"bv2-diff-newvalue-nextline"],[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&&(K(0,"div",1),Pf(1,ezb,2,1,"div",2,Nf),L(),E(3,kzb,1,1,"ng-template",null,0,Og));a&2&&(B(),Qf(b.internalDiffs))},dependencies:[DT,GOd,zQ,oy,QZ,jU,rU,ty],styles:["/*# sourceMappingURL=issue_event_details.css.map */"],changeDetection:0});var SZ=function(){var a=q(VP);LO.call(this);var b=this;a.commentDisplayOverride$.pipe(Af(this.destroyed$)).subscribe(function(c){b.formattingModeOverride=c})};Z(SZ,LO);SZ.\u0275dir=LO.\u0275dir;SZ.prototype.ngOnInit=function(){};
SZ.prototype.ngOnChanges=function(){this.rawComment=this.note.unlinkifiedComment||"";this.summaryType==="CRITIQUE"?JOd(this):this.summaryType==="GERRIT"&&KOd(this);this.audience=this.issueAccessLevel&&this.issueAccessLevel==="INTERNAL"?"INTERNAL":"EXTERNAL";this.idPrefix="b"+this.issueId+"-c"+this.note.commentNumber};
var JOd=function(a){if(a.rawComment.split("\n").slice(0,3).filter(Boolean).length<2)a.rawComment=J9a(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=LOd(a,b)}},KOd=function(a){var b=a.rawComment.split("\n");if(b.length>9){var c=b.slice(0,8).filter(Boolean).map(function(g){return g.trim()}),d=c[0],e=c[1],f=c[3];c=c[5];b=b.at(-2);a.rawComment=LOd(a,[d,e,f,"Gerrit change: "+b,"",c])}},LOd=
function(a,b){return a.formattingMode==="MARKDOWN"||a.formattingModeOverride==="MARKDOWN"?b.join("\n\n"):b.join("\n")};SZ.\u0275fac=function(a){return new (a||SZ)};
SZ.\u0275cmp=C({type:SZ,selectors:[["b-summarized-note-container"]],inputs:{note:"note",issueId:"issueId",formattingMode:"formattingMode",summaryType:"summaryType",issueAccessLevel:"issueAccessLevel"},features:[Ff,Gx],decls:1,vars:5,consts:[[3,"comment","issueId","audience","formattingMode","idPrefix"]],template:function(a,b){a&1&&M(0,"b-live-preview",0);a&2&&I("comment",b.rawComment)("issueId",b.issueId)("audience",b.audience)("formattingMode",b.formattingModeOverride||b.formattingMode)("idPrefix",
b.idPrefix)},dependencies:[fS],styles:["[_nghost-%COMP%]     b-live-preview .md-preview{background-color:#fff;background-color:var(--background);padding:0}"]});var MOd=["commentActionsMenu"],NOd=["commentReactionButton"],wzb=function(){return[]},Czb=function(){return{unlinkifiedComment:""}},OOd=[{label:"Classic",mode:"PLAIN"},{label:"Markdown",mode:"MARKDOWN"},{label:"Source",mode:"LITERAL"}],TZ=function(){LO.apply(this,arguments);var a=this;this.documentationLinks=q(OQ);this.activeSession=q(Zu);this.issueReferenceResolver=q(yQ);this.commentService=q(cR);this.el=q(Gd);this.userAccess=q(lO);this.butterBar=q(JM);this.errorHandler=q(ZM);this.analytics=q(PO);
this.userPreferencesManager=q(VP);this.issueDetailsBrain=q(LP);this.editIssueService=q(tR);this.issuePermissionService=q(NP);this.commentHistoryDialogService=q(XY);this.issueCommentDialogsService=q(LX);this.dateFormatter=q(gR);this.paths=q(wV);this.domSafe=q($P);this.eventsForIssueFridge=q(vO);this.isSummarized=!1;this.userToLossyEmail=Rm;this.issueId$=new vf(1);this.distinctIssueId$=this.issueId$.pipe(of());this.event$=new vf(1);this.deobfuscatedEvent$=new Xj(void 0);this.isCommentEvent=yo;this.isNonObfuscatedEmail=
so;this.isInternalSession=this.activeSession.isInternalSession();this.enableTeamAnnotations=this.activeSession.isInternalSession();this.formattingModeOverride$=new Xj(void 0);this.formattingMode$=he({event:this.event$,formattingModeOverride:this.formattingModeOverride$}).pipe(A(function(b){var c=b.event;return(b=b.formattingModeOverride)?b:c.formattingMode&&c.formattingMode!=="UNSPECIFIED_FORMATTING_MODE"?c.formattingMode:"PLAIN"}));this.commentRetentionOverride$=new Xj(null);this.wasSummarized$=
new Xj(!1);this.formattingModeMenuItems$=this.formattingMode$.pipe(A(function(b){return OOd.map(function(c){return{type:"select",action:function(){a.formattingModeOverride$.next(c.mode)},label:c.label,selected:b===c.mode}})}));this.isDisplayCommentFormatLiteral$=this.userPreferencesManager.isCommentDisplayOverrideSet$;this.canonicalIssueId$=this.issueDetailsBrain.canonicalIssueId$;this.canEditComment$=this.event$.pipe(zf(function(b){return a.issuePermissionService.canEditComment$(b)}),wf({refCount:!0,
bufferSize:1}));this.commentHistoryEnabled=this.activeSession.getFlag("enableCommentHistoryUi");this.commentReactionsEnabled=this.activeSession.isInternalSession();this.effortSpec$=this.issueDetailsBrain.effortSpec$;this.isEffortEnabled$=this.issueDetailsBrain.isEffortEnabled$;this.teamId$=this.issueDetailsBrain.teamId$;this.issue$=this.distinctIssueId$.pipe(zf(function(b){return a.editIssueService.editableIssue$(b)}));this.modifiedDateDisplay$=this.event$.pipe(A(function(b){return new Date(b.modifiedDate)}),
zf(function(b){return vtd(a.dateFormatter,b)}));this.ariaLabelHeading$=he([this.event$,this.modifiedDateDisplay$]).pipe(A(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(Om(b.userPerformingActionUser));d.push("Modified: "+c);b=d.join(", ")}return b}));this.ReactionType=shd;this.upvoteReactionCount$=this.event$.pipe(A(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(A(function(b){return b&&b!==0?b>999?"999+":String(b):null}));this.noUpvoteReactions$=this.upvoteReactionCount$.pipe(A(function(b){return b===0}));this.commentReactionsHovercardConfig=Object.assign({},new rm,{position:[sm]});this.commentReactionIsSaving=!1;this.FormattingMode=fo;this.commentActionMenuItems$=he({event:this.event$,isDisplayCommentFormatLiteral:this.isDisplayCommentFormatLiteral$,
formattingModeMenuItems:this.formattingModeMenuItems$,canEditComment:this.canEditComment$,canDeleteComment:this.event$.pipe(zf(function(b){return a.issuePermissionService.canDeleteComment(b)})),canUndeleteComment:this.event$.pipe(zf(function(b){return a.issuePermissionService.canUndeleteComment(b)})),canonicalIssueId:this.canonicalIssueId$,deobfuscatedEvent:this.deobfuscatedEvent$,canSeeRestrictionSettings:this.issuePermissionService.hasAclToView$,canChangeCommentRetention:this.issuePermissionService.canChangeCommentRetention$,
commentRetentionOverride:this.commentRetentionOverride$}).pipe(A(function(b){var c=b.event;var d=b.isDisplayCommentFormatLiteral;var e=b.formattingModeMenuItems;var f=b.canEditComment;var g=b.canDeleteComment;var k=b.canUndeleteComment;var m=b.canonicalIssueId;var r=b.deobfuscatedEvent;var w=b.canSeeRestrictionSettings;var x=b.canChangeCommentRetention;b=b.commentRetentionOverride;var D=[];if(!a.isCommentEvent(c))return D;d||e&&D.push(Object.assign({},BMd,{items:e}));f&&D.push({type:"action",action:function(){tzb(a.issueCommentDialogsService,
String(a.issueId),r||c).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit comment",disabled:a.isRedacted()});a.isShowCommentHistoryActionInMenu()&&D.push(Object.assign({},DMd,{action:function(){c.commentNumber&&a.showCommentHistoryDialog(c.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}}));!m||a.isDeleted()||a.activeSession.isAnonymous()||D.push({type:"action",action:function(){var J=As(m,{template_issue:a.issueId,template_comment:c.commentNumber,
do_attribution:!0});a.domSafe.openInNewTab(J);a.commentActionsMenu.actionsMenuIconButton.focus()},label:"Copy to canonical issue",disabled:a.isRedacted()});a.isDeleted()||a.activeSession.isAnonymous()||D.push({type:"action",action:function(){lId(a.issueCommentDialogsService,String(a.issueId),c.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Copy comment to",disabled:a.isRedacted()});g&&D.push({type:"action",action:function(){qId(a.issueCommentDialogsService,
String(a.issueId),c.commentNumber,c.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete comment"});k&&D.push({type:"action",action:function(){nId(a.issueCommentDialogsService,String(a.issueId),c.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restore comment"});w&&D.push(Object.assign({},CMd,{action:function(){rId(a.issueCommentDialogsService,String(a.issueId),c).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}}));
if(a.isRestricted(c)&&x&&!a.isDeleted()){var H=b==="COMPONENT_DEFAULT";D.push({type:"action",action:function(){var J=H?"INDEFINITE":"COMPONENT_DEFAULT";sId(a.issueCommentDialogsService,"comment",J).then(function(O){a.commentActionsMenu.actionsMenuIconButton.focus();O&&a.updateCommentRetention(J)})},label:H?"Match issue retention":"Revert to component retention"})}aub({userIsExternal:!a.isInternalSession,issueIsExternal:a.issueAccessLevel!=="INTERNAL"})&&D.push(Object.assign({},AMd,{action:function(){c.commentNumber==
null&&pn("unable to buildLegalReportingUrl() correctly without an event.commentNumber");var J,O=bub({bugId:c.issueId,comment:(J=c.commentNumber)!=null?J:0});a.domSafe.openInNewTab(O)}}));return D}));this.eventAsNote$=he([this.deobfuscatedEvent$,this.event$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;b=b||c;var d;return{commentNumber:b.commentNumber,unlinkifiedComment:(d=b.unlinkifiedComment)!=null?d:"",formattedComment:b.formattedComment}}));this.mayReadPii$=this.event$.pipe(zf(function(b){return yo(b)&&
a.isRestricted(b)?le(function(){var c=mO(a.userAccess,"reader","issues/"+a.issueId+"/comments/"+b.commentNumber);c.catch(function(d){pn("error: ",d);return!1});return c}):be(void 0)}));this.showRecentEventsFirst$=this.userPreferencesManager.showRecentEventsFirst$;this.showFullHistoryFromFiltering$=this.userPreferencesManager.commentFilterPreferences$.pipe(A(function(b){var c;return(c=b.commentFilter)!=null?c:""}));this.isFullHistoryPreference$=this.showFullHistoryFromFiltering$.pipe(A(function(b){return b===
"FULL_HISTORY"}));this.preEventDiffs$=he([this.event$,this.showRecentEventsFirst$]).pipe(A(function(b){var c=l(b);b=c.next().value;return c.next().value?b.postDiffs:b.preDiffs}));this.postEventDiffs$=he([this.event$,this.showRecentEventsFirst$]).pipe(A(function(b){var c=l(b);b=c.next().value;return c.next().value?b.preDiffs:b.postDiffs}));this.hasAclToUpvoteReact$=he([this.event$,this.issuePermissionService.hasAclToComment$]).pipe(A(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$=he([this.issuePermissionService.hasAclToEdit$,this.upvoteReactionCount$]).pipe(A(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(A(function(b){return b&&Uzb(a)&&(a.event.preDiffs.length>0||a.event.postDiffs.length>0)}));this.getCommentNumberLink=function(b){return p7a(a.issueId,
{comment:b})}};Z(TZ,LO);TZ.\u0275dir=LO.\u0275dir;h=TZ.prototype;h.ngOnInit=function(){this.event.commentNumber&&this.el.nativeElement.setAttribute("id","comment"+this.event.commentNumber);var a;this.commentRetentionOverride$.next((a=this.event.commentRetention)!=null?a:null)};
h.updateCommentRetention=function(a){var b=this;this.event.commentNumber||$M(this.errorHandler,"Comment number is missing");this.analytics.trackEvent("restrictedContent","updateRetention","comment");this.commentService.updateRetention(this.issueId,this.event.commentNumber||0,a).pipe(Af(this.destroyed$)).subscribe({next:function(c){b.event=Object.assign({},b.event,{commentRetention:c.piiRetention,commentRetentionState:c.piiRetentionState});fs(b.butterBar,"Comment retention updated",4E3);b.commentRetentionOverride$.next(a===
"INDEFINITE"?"INDEFINITE":"COMPONENT_DEFAULT")},error:function(){$M(b.errorHandler,"Comment retention update failed")}})};h.ngOnChanges=function(a){a.issueId&&this.issueId$.next(String(this.issueId));a=a.event;var b;if(b=a&&this.deobfuscatedEvent$.value)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$.next(void 0)};
h.scrollCommentIntoView=function(a,b){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+b,event:a})};h.getRestrictedLabel=function(){return N_a(jq(this.event.commentContentVerdict))};h.isRestricted=function(a){a=jq(a.commentContentVerdict);switch(a){case "NONE_DETECTED":case "RESTRICTION_SEVERITY_UNSPECIFIED":return!1;case "RESTRICTED":case "RESTRICTED_PLUS":return!0;default:sb(a)}};h.isDeleted=function(){return this.event.commentDeletionStatus==="DELETED"};
h.isRedacted=function(){var a;return((a=this.event)==null?void 0:a.commentRedacted)&&!this.deobfuscatedEvent$.value};
h.loadRestrictedComment=function(){var a=this;this.analytics.trackEvent("restrictedContent","viewRestrictedContent","comment");var b=this.event.commentNumber||0;this.commentService.get(String(this.issueId),b,jq(this.event.commentContentVerdict)).pipe(mf(1)).subscribe(function(c){a.deobfuscatedEvent$.next(kWa(a.event,c))},function(c){var d;a.butterBar.showWarning("Error showing comment "+b+": "+((d=c.error)==null?void 0:d.message))})};
h.isShowCommentHistoryActionInMenu=function(){return!(!(this.commentHistoryEnabled&&(this.event.commentVersion||0)>0)||this.isRedacted())};var Uzb=function(a){return yo(a.event)&&a.event.isCommentEvent};TZ.prototype.getSummaryType=function(){return Eo(this.event)?"GERRIT":"CRITIQUE"};TZ.prototype.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(this.issueId,a,-1)};
var Lzb=function(a){var b,c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,ee(a.hasAclToUpvoteReact$),2);if(g.nextAddress!=3){b=g.yieldResult;if(!b)return g.return();a.commentReactionIsSaving=!0;c=Nzb(a,"UPVOTE");return z(g,a.issueCommentDialogsService.updateCommentReaction({issueId:a.issueId,commentId:(d=a.event.commentNumber)!=null?d:2,reactionType:"UPVOTE",hasReacted:!c}),3)}e=g.yieldResult;a.commentReactionIsSaving=!1;if(!e)return g.return();f=a.event;f.commentReactions=e;a.event$.next(f);
a.eventsForIssueFridge.manualUpdate(a.issueId,function(k){var m;k.events=lWa(k.events,(m=a.event.commentNumber)!=null?m:2,{commentReactions:e})});a.analytics.trackEvent("editIssue","click",c?"removeUpvoteReaction":"addUpvoteReaction");$d(g)})},Nzb=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},Mzb=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};da.Object.defineProperties(TZ.prototype,{event:{configurable:!0,enumerable:!0,set:function(a){this.internalEvent=a;this.event$.next(a)},get:function(){return this.internalEvent}}});TZ.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(TZ)))(b||TZ)}}();
TZ.\u0275cmp=C({type:TZ,selectors:[["b-history-event"]],viewQuery:function(a,b){a&1&&(kg(MOd,5),kg(NOd,5));if(a&2){var c;og(c=pg())&&(b.commentActionsMenu=c.first);og(c=pg())&&(b.commentReactionButton=c.first)}},inputs:{issueId:"issueId",issueAccessLevel:"issueAccessLevel",isSummarized:"isSummarized",event:"event"},features:[Ff,Gx],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","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&&(F(0,Vzb,43,32),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.issue$))?0:-1,c)}},dependencies:[UY,BZ,FOd,EOd,DT,ZA,XA,TA,hK,AK,uK,zK,RZ,UR,iz,MA,oy,$S,zZ,MZ,EN,SZ,PZ,kU,mU,uU,py],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);--private-gmat-button-outlined-stateful-color:var(--text-disabled);--mat-button-outlined-hover-state-layer-opacity:0;--mat-button-outlined-focus-state-layer-opacity:0;--mat-button-outlined-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-button-outlined-icon-offset:0}.comment-timestamp[_ngcontent-%COMP%]{-webkit-box-flex:0.92;-webkit-flex:0.92;-moz-box-flex:0.92;-ms-flex:0.92;flex:0.92}.comment-timestamp.hasCommentTimestamp[_ngcontent-%COMP%]{margin-top:14px}.comment-number[_ngcontent-%COMP%]:hover{text-decoration:underline}\n/*# sourceMappingURL=history_event.css.map */"],
changeDetection:0});var UZ=function(){};UZ.prototype.watch=function(a,b){b=b===void 0?document.documentElement:b;return ke(le(function(){return be(document.getElementById(a))}),o0a(b,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0}).pipe(A(function(){return document.getElementById(a)}))).pipe(te(ln),mf(1))};UZ.\u0275fac=function(a){return new (a||UZ)};UZ.\u0275prov=Cc({token:UZ,factory:UZ.\u0275fac,providedIn:"root"});var VZ=function(){this.idWatch=q(UZ)},POd=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(mf(1),A(function(g){g.scrollIntoView();if(g=document.getElementById(e))g.scrollTop-=f}))};VZ.\u0275fac=function(a){return new (a||VZ)};VZ.\u0275prov=Cc({token:VZ,factory:VZ.\u0275fac,providedIn:"root"});var QOd={FULL:"full",SUMMARIZED:"summarized",FOLDED:"folded",HIDDEN:"hidden"},ROd=RegExp("(comment|attachment)([0-9]+)"),WZ=function(){LO.apply(this,arguments);var a=this;this.formattedCommentsForIssueFridge=q(xO);this.preferences=q(VP);this.eventsForIssue=q(vO);this.dynamicScrollIntoView=q(VZ);this.bLocation=q(US);this.elementRef=q(Gd);this.routerEvents=q(OO);this.analytics=q(PO);this.teamFridge=q(GP);this.issueFullFridge=q(RO);this.issueId$=new vf(1);this.internalIssueId="";this.eventDisplayModes=
QOd;this.internalEvents=[];this.showRecentEventsFirst=null;this.currentFilterLevel="FULL_HISTORY";this.issue$=this.issueId$.pipe(zf(function(b){return a.issueFullFridge.watch(b)}));this.events$=new vf(1);this.commentsToFormat$=new vf(1);this.eventDisplayMode=new Map;this.commentNumbersDisplayed=new Set;this.foldedCommentsCounts=new Map;this.authoritativeEmails=new Set;this.authoritativeEmails$=this.preferences.commentFilterPreferences$.pipe(zf(function(b){var c=new Set;return b.commentFilter!=="TEAM_AND_ASSIGNEE"?
be(c):a.issue$.pipe(zf(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 g;if((d==null?void 0:(g=d.snapshot[0].verifierUser)==null?void 0:g.emailAddress)!==void 0){var k;c.add(d==null?void 0:(k=d.snapshot[0].verifierUser)==null?void 0:k.emailAddress)}var m;if((d==null?void 0:(m=d.aggregatedData)==null?void 0:m.teamId)===void 0)return be(c);var r;return SOd(a,
String(d==null?void 0:(r=d.aggregatedData)==null?void 0:r.teamId)).pipe(zf(function(w){w=l(w);for(var x=w.next();!x.done;x=w.next())c.add(x.value);return be(c)}))}))}));this.isLoading$=he([this.formattedCommentsForIssueFridge.thinking$,this.eventsForIssue.thinking$]).pipe(nf(0),A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b||c}));this.sendAnalytics=hD(function(){var b=[].concat(n(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=hD(function(){var b=a.bLocation.hash();if(b&&a.lastHashScrolled!==b&&a.internalEvents){var c,d=l((c=b.match(ROd))!=null?c:[]);d.next();c=d.next().value;var e=d.next().value;d=c;var f=e;if(b==="lastcomment"){d=pWa(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 g=a.internalEvents.flatMap(function(k){return k.attachments}).some(function(k){return k.attachmentId===
f});if(e||g)e&&a.eventDisplayMode.get(c)==="folded"&&(a.eventDisplayMode.set(c,"full"),TOd(a,c)),g&&(c=a.internalEvents.findIndex(function(k){return k.attachments.findIndex(function(m){return m.attachmentId===f})>-1}),a.eventDisplayMode.get(c)||(a.eventDisplayMode.set(c,"full"),TOd(a,c))),POd(a.dynamicScrollIntoView,{elementId:d+f,parentElement:a.elementRef.nativeElement,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(Bf(function(){a.lastHashScrolled=b}),Af(a.destroyed$)).subscribe()}else POd(a.dynamicScrollIntoView,
{elementId:b,parentElement:a.elementRef.nativeElement,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(Bf(function(){a.lastHashScrolled=b}),Af(a.destroyed$)).subscribe()}},200)};Z(WZ,LO);WZ.\u0275dir=LO.\u0275dir;
WZ.prototype.ngOnInit=function(){var a=this;this.authoritativeEmails$.pipe(Af(this.destroyed$)).subscribe(function(b){a.authoritativeEmails=b});this.preferences.showRecentEventsFirst$.pipe(te(ln),of(),Af(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst!==b&&(a.showRecentEventsFirst=b,UOd(a))});he([this.events$,this.preferences.commentFilterPreferences$,this.authoritativeEmails$]).pipe(Af(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,VOd(a,c,d.commentFilter,e),WOd(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(te(ln),zf(function(b){return a.formattedCommentsForIssueFridge.watchSet(b)}),Af(this.destroyed$)).subscribe(function(b){XOd(a,
b)});this.routerEvents.navigationEnd$.pipe(Af(this.destroyed$)).subscribe(function(){a.internalEvents&&a.internalEvents.length!==0&&a.scrollToCommentOrAttachment()})};
var XOd=function(a,b){for(var c={i$jscomp$1016:0};c.i$jscomp$1016<a.internalEvents.length;c={i$jscomp$1016:c.i$jscomp$1016},c.i$jscomp$1016++)if(aAb(a.eventDisplayMode.get(c.i$jscomp$1016))&&yo(a.internalEvents[c.i$jscomp$1016])){var d=b.find(function(e){return function(f){return f.id.commentId===a.internalEvents[e.i$jscomp$1016].commentNumber}}(c));d&&(a.internalEvents[c.i$jscomp$1016]=Object.assign({},a.internalEvents[c.i$jscomp$1016],{formattedComment:d.formattedComment.formattedComment,formattingMode:d.formattedComment.formattingMode}))}UOd(a)},
VOd=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=YOd(b[c]);a.eventDisplayMode.set(c,e?"full":"hidden");yo(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=ZOd(b[c]),a.eventDisplayMode.set(c,e?"full":"hidden"),yo(b[c])&&b[c].commentNumber&&e&&(e=void 0,a.commentNumbersDisplayed.add((e=
b[c].commentNumber)!=null?e:0));break;case "HUMAN_ONLY":$Od(a,b,function(f){var g;return(g=QVa(f.userPerformingAction)&&f.isMajorEvent)!=null?g:!0});break;case "TEAM_AND_ASSIGNEE":$Od(a,b,function(f){var g;return(g=d.has(f.userPerformingAction)&&f.isMajorEvent)!=null?g:!0});break;default:for(c=0;c<b.length;c++)a.eventDisplayMode.set(c,"full"),yo(b[c])&&b[c].commentNumber&&(e=void 0,a.commentNumbersDisplayed.add((e=b[c].commentNumber)!=null?e:0))}a.sendAnalytics()},WOd=function(a){if(a.currentFilterLevel!==
"FULL_HISTORY")for(var b=0;b<a.internalEvents.length;b++){var c=a.internalEvents[b];yo(c)&&(Do(c)||c!=null&&c.formattingMode&&c.formattingMode!=="MARKDOWN"&&Eo(c))&&a.currentFilterLevel!=="HUMAN_ONLY"&&a.currentFilterLevel!=="TEAM_AND_ASSIGNEE"&&(a.eventDisplayMode.set(b,"summarized"),TOd(a,b))}},$Od=function(a,b,c){for(var d=0,e=0,f=0,g=0;g<b.length;g++){var k=c(b[g]);a.eventDisplayMode.set(g,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;yo(b[g])&&b[g].commentNumber&&(k=void 0,a.commentNumbersDisplayed.add((k=b[g].commentNumber)!=null?k:0))}else{if(yo(b[g])&&b[g].commentNumber||jWa(b[g]))d++,f=g;e++}}if(d>0||e>0)b=pWa(a.internalEvents)===1?a.showRecentEventsFirst?0:a.internalEvents.length:aPd(a),a.foldedCommentsCounts.set(b,{commentFoldedCount:d,eventFoldedCount:e})},aPd=function(a){return yba(a.internalEvents,function(b){var c;return(c=b.isMajorEvent)!=null?c:!1})},YOd=function(a){return yo(a)&&a.isCommentEvent||
jWa(a)||a.preDiffs.length>0||a.postDiffs.length>0},ZOd=function(a){var b;return((b=a.isMajorEvent)!=null?b:!1)&&(yo(a)&&a.isCommentEvent||jWa(a)||a.preDiffs.length>0||a.postDiffs.length>0)},UOd=function(a){if(!(a.internalEvents.length<2)){if(a.showRecentEventsFirst&&a.internalEvents[0].modifiedDate<=bPd(a,a.internalEvents).modifiedDate||!a.showRecentEventsFirst&&a.internalEvents[0].modifiedDate>=bPd(a,a.internalEvents).modifiedDate){a.internalEvents.reverse();var b;VOd(a,a.internalEvents,(b=a.currentFilterLevel)!=
null?b:"FULL_HISTORY",a.authoritativeEmails);WOd(a)}a.internalEvents&&a.internalEvents.length!==0&&a.scrollToCommentOrAttachment()}},bPd=function(a,b){var c;return(c=b.find(function(d){return a.internalEvents[0].modifiedDate!==d.modifiedDate}))!=null?c:b[1]};WZ.prototype.trackEventByVersion=function(a,b){return b.version};
var TOd=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,g;c=(g=(f=a.foldedCommentsCounts.get(b))==null?void 0:f.eventFoldedCount)!=null?g:0;e>1&&a.foldedCommentsCounts.set(b-1,{commentFoldedCount:e-1,eventFoldedCount:c-1});a.foldedCommentsCounts.delete(b)}else for(e=new Map([].concat(n(a.foldedCommentsCounts.entries())).sort(function(k,m){return k[0]-m[0]})),e=l(e.entries()),f=e.next();!f.done;f=e.next())if(g=
l(f.value),f=g.next().value,g=g.next().value,f>b){if(g.commentFoldedCount-(f-b)===0)a.foldedCommentsCounts.set(f,{commentFoldedCount:g.commentFoldedCount-1,eventFoldedCount:g.eventFoldedCount-1});else{e=0;for(c=b;c<f;c++)(yo(a.internalEvents[c])||jWa(a.internalEvents[c]))&&e++;a.foldedCommentsCounts.set(f,{commentFoldedCount:e,eventFoldedCount:f-b});a.foldedCommentsCounts.set(b-1,{commentFoldedCount:g.commentFoldedCount-e-1,eventFoldedCount:g.eventFoldedCount-(f-b)-1});a.foldedCommentsCounts.delete(b)}break}},
aAb=function(a){return a==="summarized"||a==="full"},SOd=function(a,b){var c=new Set;return a.teamFridge.watch(b).pipe(A(function(d){if(d!==void 0){d=l(d.members.map(function(f){return f.user.emailAddress}).filter(ln));for(var e=d.next();!e.done;e=d.next())c.add(e.value)}return c}))};
da.Object.defineProperties(WZ.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(n(b));b=Object.assign({},b[0],{attachments:[],commentNumber:void 0,formattedComment:void 0,taggedSummary:[],isMajorEvent:!1});a[0]=b}a&&!v1a(this.internalEvents,a)&&(this.internalEvents=a,this.events$.next(a))}}});
WZ.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(WZ)))(b||WZ)}}();
WZ.\u0275cmp=C({type:WZ,selectors:[["b-event-stream"]],inputs:{issueAccessLevel:"issueAccessLevel",showFullHistory:"showFullHistory",issueId:"issueId",events:"events"},features:[Ff],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&&(F(0,Wzb,2,0,"aside",
0),U(1,"async"),K(2,"div",1),Pf(3,bAb,2,2,null,null,b.trackEventByVersion,!0),L(),F(5,cAb,2,0,"aside",0),U(6,"async"));a&2&&(G(b.showRecentEventsFirst&&W(1,2,b.isLoading$)?0:-1),B(3),Qf(b.internalEvents),B(2),G(!b.showRecentEventsFirst&&W(6,4,b.isLoading$)?5:-1))},dependencies:[ZA,XA,TA,TZ,VS,py],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 XZ=function(){LO.apply(this,arguments);this.preferences=q(VP);this.activeSession=q(Zu);this.clearcut=q(HO);this.analytics=q(PO);this.selectedFilter=null;var a=this.activeSession.isInternalSession();fAb.description=a?"Including CLs, Blunderbuss, etc.":"Including all automated comments";this.filters=cPd;this.showRecentEventsFirst=!1};Z(XZ,LO);XZ.\u0275dir=LO.\u0275dir;
XZ.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(te(ln),Af(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b});this.preferences.commentFilterPreferences$.pipe(Af(this.destroyed$)).subscribe(function(b){b.commentFilter?a.selectedFilter=iAb(b.commentFilter):(a.selectedFilter=WP(a.preferences).showFullHistory?eAb:fAb,a.preferences.save({commentFilterPreferences:{commentFilter:a.selectedFilter.commentFilterType}}).pipe(Af(a.destroyed$)).subscribe())})};
XZ.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(XZ)))(b||XZ)}}();
XZ.\u0275cmp=C({type:XZ,selectors:[["b-event-stream-header"]],features:[Ff],decls:13,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&&(K(0,"div",0)(1,"h4",1),S(2,"Comments"),L(),K(3,"div",2)(4,"mat-form-field",3)(5,"mat-select",4),Eg("valueChange",function(c){Dg(b.selectedFilter,c)||(b.selectedFilter=c);return c}),N("selectionChange",function(c){c=c.value;b.preferences.save({commentFilterPreferences:{commentFilter:c.commentFilterType}}).pipe(Af(b.destroyed$)).subscribe();b.analytics.trackEvent("editIssue","click",c.commentFilterType)}),K(6,"mat-select-trigger"),S(7),L(),Pf(8,dAb,5,3,"mat-option",5,Of),
L()(),K(10,"button",6),N("click",function(){var c=!b.showRecentEventsFirst;Vmd(b.clearcut,"click_recentFirst_"+c);b.preferences.save({showRecentEventsFirst:c}).pipe(Af(b.destroyed$)).subscribe()}),M(11,"mat-icon",7),S(12),L()()());a&2&&(B(5),Cg("value",b.selectedFilter),B(2),Ag(b.selectedFilter==null?null:b.selectedFilter.displayName),B(),Qf(b.filters),B(3),I("svgIcon",b.showRecentEventsFirst?"arrow-upward":"arrow-downward"),B(),T(" ",b.showRecentEventsFirst?"Newest first":"Oldest first"," "))},dependencies:[ZA,
XA,TA,DB,qB,BB,qT,pT,hI,iI,GA,iz],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-button-outlined-icon-spacing:4px;--mat-button-outlined-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 eAb={name:"Full history",description:"Including everything with audit trail",displayName:"Full history",commentFilterType:"FULL_HISTORY"},fAb={name:"All comments and updates",description:"Including CLs, Blunderbuss, etc.",displayName:"All comments",commentFilterType:"ALL_COMMENTS"},gAb={name:"Users' comments",description:"All human generated comments",displayName:"Users",commentFilterType:"HUMAN_ONLY"},hAb={name:"Team and assignee comments",description:"Issue's owning team and assignee",displayName:"Team and assignee",
commentFilterType:"TEAM_AND_ASSIGNEE"},cPd=[eAb,fAb,gAb,hAb];var dPd=[[["","before",""]]],mAb=function(a,b){return b.name},YZ=function(){LO.apply(this,arguments);var a=this;this.activeSession=q(Zu);this.issueFullFridge=q(RO);this.issueInteractionsTracking=q(pR);this.errorHandler=q(ZM);this.eventsForIssueFridge=q(vO);this.liveAnnouncer=q(Cz);this.hotlistPickerService=q(BV);this.issueRecommendationFridge=q(TO);this.analytics=q(PO);this.isInternalSession=this.activeSession.isInternalSession();this.HOTKEYS=ns;this.issueId$=new vf(1);this.issue$=this.issueId$.pipe(zf(function(b){return a.issueFullFridge.watch(b)}));
this.hotlistIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].hotlistId)!=null?c:[]}));this.recommendations$=this.issueId$.pipe(zf(function(b){return a.issueRecommendationFridge.watch(b+"-HOTLIST")}),A(function(b){return((b==null?void 0:b.recommendations)||[]).filter(function(c){return c.confidence==="VERY_HIGH"}).filter(ln).slice(0,2)}));this.textOfHotlistBtn$=this.hotlistIds$.pipe(A(function(b){return b.length}),A(function(b){return b<=5?"Add Hotlist":""}))};Z(YZ,LO);
YZ.\u0275dir=LO.\u0275dir;YZ.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.hotlistIds$.subscribe(function(){if(a.isInternalSession){var b=Pr(a.issueId$);a.issueRecommendationFridge.poke(b+"-HOTLIST")}}));this.subscriptions.add(this.recommendations$.subscribe(function(b){b.length>0&&a.analytics.trackEvent("hotlistRecommendation","display","IDP")}))};YZ.prototype.openHotlistModal=function(){var a=this;return y(function(b){return z(b,bCd(a.hotlistPickerService,a.issue$),0)})};
var jAb=function(a,b){var c,d;return y(function(e){switch(e.nextAddress){case 1:return z(e,ee(a.issueId$),2);case 2:return c=e.yieldResult,hs(a.issueInteractionsTracking,c,{label:"remove-hotlists",value:1}),Vd(e,3,4),z(e,a.issueFullFridge.removeHotlists(c,[String(b)]),6);case 6:return z(e,a.liveAnnouncer.announce("Hotlist removed successfully"),4);case 4:Wd(e);a.eventsForIssueFridge.poke(c);Yd(e,0);break;case 3:d=Zd(e),aN(a.errorHandler,d),e.jumpTo(4)}})};
da.Object.defineProperties(YZ.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});YZ.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(YZ)))(b||YZ)}}();
YZ.\u0275cmp=C({type:YZ,selectors:[["b-issue-hotlists"]],inputs:{issueId:"issueId"},features:[Ff],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"],["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&&(fg(dPd),F(0,pAb,11,11,"div",0),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.hotlistIds$))?0:-1,c)}},dependencies:[ZA,XA,TA,fT,qV,vV,iz,py],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:24px;height:24px;min-width:24px;padding:0 8px;border-radius:12px}.add-hotlists-btn.icon-only[_ngcontent-%COMP%]{--mat-button-outlined-icon-spacing: 0px;--mat-button-outlined-icon-offset: 0px}.add-hotlists-btn[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);--mat-button-outlined-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:24px}[_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 ePd=["issueTitleEl"],fPd=["issueTitleInputEl"],ZZ=function(){this.issuePermissionService=q(NP);this.issueFullFridge=q(RO);this.bannedWordsChecker=q(AW);this.disabled=!1;this.titleChanged=new KO;this.isSaving=this.isEditMode=!1},qAb=function(a){a.isEditMode=!a.isEditMode;a.isEditMode?setTimeout(function(){a.issueTitleInputEl.nativeElement.focus()},0):a.bannedWordsChecker.reset()};
ZZ.prototype.saveTitle=function(){var a=this,b,c,d;return y(function(e){if(e.nextAddress==1)return(c=(b=a.issueTitleInputEl)==null?void 0:b.nativeElement.value)&&a.isModified(c)?z(e,a.bannedWordsChecker.check(c,a.issuePermissionService.accessLevel()==="EXTERNAL_PUBLIC",a.componentId),3):e.jumpTo(2);if(e.nextAddress!=2){d=e.yieldResult;if(!d)return a.issueTitleInputEl.nativeElement.focus(),e.return();gPd(a,c.trim());a.bannedWordsChecker.reset()}a.isEditMode=!1;$d(e)})};
var gPd=function(a,b){y(function(c){a.isSaving=!0;return z(c,ee(qnd(a.issueFullFridge,a.issueId,b)).finally(function(){a.isSaving=!1;a.titleChanged.next(b)}),0)})};ZZ.prototype.isModified=function(a){return a!==this.titlePlain};ZZ.prototype.onInputBlur=function(){this.bannedWordsChecker.showWarning()||this.saveTitle()};
da.Object.defineProperties(ZZ.prototype,{title:{configurable:!0,enumerable:!0,set:function(a){this.titlePlain=a=a!=null?a:void 0;this.titleTruncated=J9a(a,300);this.isLongTitle=a==null?!1:a.length>=300}}});ZZ.\u0275fac=function(a){return new (a||ZZ)};
ZZ.\u0275cmp=C({type:ZZ,selectors:[["issue-title"]],viewQuery:function(a,b){a&1&&(kg(ePd,5),kg(fPd,5));if(a&2){var c;og(c=pg())&&(b.issueTitleEl=c.first);og(c=pg())&&(b.issueTitleInputEl=c.first)}},inputs:{title:"title",componentId:"componentId",issueId:"issueId",disabled:"disabled",hasAclToEdit:"hasAclToEdit"},outputs:{titleChanged:"titleChanged"},features:[Ig([AW])],decls:6,vars:7,consts:[["issueTitleInputEl",""],["issueTitleEl",""],[1,"issue-title-container","flex-kids-x"],["subscriptSizing","dynamic",
1,"full-width",3,"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",1,"full-width"],["matInput","","aria-label","Enter a new title",1,"heading-m","full-width",3,"keydown","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&&(K(0,"div",2),F(1,rAb,4,5,"mat-form-field",3)(2,sAb,3,2,"h3",4),F(3,tAb,2,1,"button",5),L(),F(4,uAb,4,1,"p",6),U(5,"async"));a&2&&(yg("full-width",b.isEditMode),B(),G(b.isEditMode?1:2),B(2),G(b.hasAclToEdit?3:-1),B(),G(W(5,5,b.bannedWordsChecker.showWarning$)?
4:-1))},dependencies:[ZA,XA,VA,DB,qB,BB,qC,EB,oC,hK,iz,MA,py],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%;padding-bottom:8px}[_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)}"],
changeDetection:0});var hPd={FOCUS_SYNC:"FOCUS_SYNC",REMAIN_ACTIVE:"REMAIN_ACTIVE"},iPd={DISABLED:"DISABLED",INTERNAL_SORT:"INTERNAL_SORT",EXTERNAL_SORT:"EXTERNAL_SORT"},jPd={ALL:"ALL",NONE:"NONE"},kPd=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"]]),lPd=[{type:"TITLE"},{type:"TYPE"},{type:"TEAM"},{type:"ISSUE_ID"},{type:"ASSIGNEE"},{type:"STATUS"}],mPd=[{type:"TITLE"},{type:"TYPE"},{type:"ISSUE_ID"},{type:"ASSIGNEE"},{type:"STATUS"}],nPd=[{type:"PRIORITY"},{type:"TITLE"},{type:"ASSIGNEE"},{type:"STATUS"},{type:"ISSUE_ID"},{type:"MODIFIED_TIME"}],
oPd=[{type:"PRIORITY"},{type:"TITLE"},{type:"ASSIGNEE"},{type:"PROGRESS"},{type:"ISSUE_ID"},{type:"MODIFIED_TIME"}],pPd=[{type:"TITLE"},{type:"ASSIGNEE"},{type:"STATUS"},{type:"ISSUE_ID"}],qPd={modes:{assignee:"avatar-if-open",modifiedTime:"relativepast"},rowLimit:15},rPd={showActiveIndicator:!0,enableDragging:!0,showMenu:!0,modes:{assignee:"avatar-if-open"},hideColumnHeaders:!0};var $Z=function(){this.liveAnnouncer=q(Cz);this.originalItems=[];this.allowRemoval=!1;this.itemsOutput=new KO;this.hasChanges=new KO(!1);this.items=[];this.grabbed=!1};$Z.prototype.ngOnInit=function(){this.originalItems.forEach(function(a){a.enabled===void 0&&(a.enabled=!0);return a});this.items=Hm(this.originalItems)};var sPd=function(a){a.items.sort(function(b,c){return b.name.localeCompare(c.name)});a.detectChanges()};
$Z.prototype.drop=function(a){ts(this.items,a.previousIndex,a.currentIndex);this.detectChanges()};var wAb=function(a,b){return b>0?(ts(a.items,b,b-1),a.detectChanges(),!0):!1},xAb=function(a,b){return b<a.items.length-1?(ts(a.items,b,b+1),a.detectChanges(),!0):!1};$Z.prototype.trackByFn=function(){return-1};$Z.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.")};
$Z.prototype.onKeyDown=function(a,b){if(!(a.target instanceof HTMLInputElement&&a.target.type==="checkbox"))switch(a.key){case " ":a.preventDefault();tPd(this,b);break;case "Tab":this.grabbed&&tPd(this,b);break;case "ArrowUp":uPd(this,a);break;case "ArrowDown":uPd(this,a)}};
var tPd=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."))},uPd=function(a,b){if(a.grabbed){var c=document.activeElement;if(c&&a.grabbedIndex!==void 0){if(b.key==="ArrowUp"){if(wAb(a,a.grabbedIndex)){var d=c.previousElementSibling;
a.grabbedIndex--}}else xAb(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."))}}};$Z.prototype.detectChanges=function(){var a=!Gm(this.items,this.originalItems);this.itemsOutput.emit(this.items);this.hasChanges.emit(a)};$Z.\u0275fac=function(a){return new (a||$Z)};
$Z.\u0275cmp=C({type:$Z,selectors:[["b-reorder-items"]],inputs:{originalItems:"originalItems",allowRemoval:"allowRemoval"},outputs:{itemsOutput:"items",hasChanges:"hasChanges"},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&&(K(0,"ol",0),N("cdkDropListDropped",function(c){return b.drop(c)}),Pf(1,yAb,10,8,"li",1,b.trackByFn,!0),L());a&2&&(B(),Qf(b.items))},dependencies:[VU,TU,WU,ZA,XA,VA,wI,iz],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 a_=function(){this.data=q(fB);this.dialogRef=q(dB);this.originalColumns=this.data.columnItems;this.columns=[].concat(n(this.originalColumns));this.hasChanges=!1};a_.prototype.onClose=function(){this.dialogRef.close(this.columns)};a_.\u0275fac=function(a){return new (a||a_)};
a_.\u0275cmp=C({type:a_,selectors:[["b-configure-columns-dialog"]],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=t();K(0,"div",1)(1,"div",2)(2,"h1",3);S(3," Customize columns for triage view ");L()()();K(4,"div",4)(5,"b-reorder-items",5,0);N("items",function(d){u(c);return v(b.columns=d)})("hasChanges",function(d){u(c);return v(b.hasChanges=d)});L()();K(7,"div",6)(8,"button",7);N("click",function(){u(c);return v(b.dialogRef.close())});S(9," Cancel ");L();K(10,"button",8);N("click",function(){u(c);return v(b.onClose())});S(11," Save ");L()()}a&2&&(B(5),I("originalItems",b.originalColumns)("allowRemoval",
!0),B(5),I("disabled",!b.hasChanges))},dependencies:[ZA,XA,TA,mB,lB,kB,$Z],encapsulation:2,changeDetection:0});var b_=function(){this.JOINING_ARROW="\u2192";this.showIcon=!0};da.Object.defineProperties(b_.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){if(a!=null){var b=LWa(1049928)(a);this.startDate=uo(b==null?void 0:b.dateValue);a=LWa(1049953)(a);this.endDate=uo(a==null?void 0:a.dateValue);this.startDateShortStr=YVa(this.startDate);this.endDateShortStr=YVa(this.endDate)}}}});b_.\u0275fac=function(a){return new (a||b_)};
b_.\u0275cmp=C({type:b_,selectors:[["issue-timeframe"]],inputs:{issue:"issue",showIcon:"showIcon"},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&&F(0,DAb,5,3,"div",0);a&2&&G(b.startDate||b.endDate?0:-1)},dependencies:[iz,sy],styles:["[_nghost-%COMP%] {\n      white-space: nowrap;\n    }\n    .date[_ngcontent-%COMP%] {\n      display: inline-block;\n    }"],
changeDetection:0});var c_=function(){this.makePie=FAb;this.total=this.closed=0;this.useXofYLabel=!1};da.Object.defineProperties(c_.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){a!=null&&(this.total=a.descendantCount,this.closed=this.total-a.openDescendantCount)}}});c_.\u0275fac=function(a){return new (a||c_)};
c_.\u0275cmp=C({type:c_,selectors:[["progress-pie"]],inputs:{issue:"issue",closed:"closed",total:"total"},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&&F(0,OAb,7,14,"div",0);a&2&&G(b.total>0?0:-1)},dependencies:[vy],encapsulation:2,changeDetection:0});var vPd=po().user.email,fu={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===vPd&&Bo(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===vPd:!1},queryFragment:"assignee:me",
tooltip:"Issues with me as the assignee"},OPEN:{key:"OPEN",displayAs:"Open",check:function(a){return Bo(a)},queryFragment:"status:open",tooltip:'Issues that match "status:open"'},FIXED:{key:"FIXED",displayAs:"Fixed",check:tWa,queryFragment:"status:fixed"},BROAD_IN_PROGRESS:{key:"BROAD_IN_PROGRESS",displayAs:"Assigned",check:function(a){return sWa(a,"ASSIGNED")||sWa(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)&&Bo(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&&Bo(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(GWa(a))&&Bo(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 PWa(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 wPd=function(){this.changes=new rf};wPd.\u0275fac=function(a){return new (a||wPd)};wPd.\u0275prov=Cc({token:wPd,factory:wPd.\u0275fac,providedIn:"root"});var xPd=new bd("MAT_SORT_DEFAULT_OPTIONS"),d_=function(a){this._defaultOptions=a;this._initializedStream=new vf(1);this.sortables=new Map;this._stateChanges=new rf;this.start="asc";this._direction="";this.disabled=!1;this.sortChange=new ui;this.initialized=this._initializedStream};h=d_.prototype;h.register=function(a){this.sortables.set(a.id,a)};h.deregister=function(a){this.sortables.delete(a.id)};
h.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})};h.ngOnInit=function(){this._initializedStream.next()};
h.ngOnChanges=function(){this._stateChanges.next()};h.ngOnDestroy=function(){this._stateChanges.complete();this._initializedStream.complete()};da.Object.defineProperties(d_.prototype,{direction:{configurable:!0,enumerable:!0,get:function(){return this._direction},set:function(a){this._direction=a}}});d_.\u0275fac=function(a){return new (a||d_)(Ve(xPd,8))};
d_.\u0275dir=af({type:d_,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",bh],disabled:[2,"matSortDisabled","disabled",bh]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Gx]});var yPd=["*",[["","matSortHeaderIcon",""]]],e_=function(){this._intl=q(wPd);this._sort=q(d_,{optional:!0});this._columnDef=q("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});this._changeDetectorRef=q(Yx);this._focusMonitor=q(mz);this._elementRef=q(Gd);this._ariaDescriber=q(Ez,{optional:!0});this._animationsDisabled=ti();this._recentlyCleared=qg.apply(null,[null].concat(n([])));this.arrowPosition="after";this.disabled=!1;this._sortActionDescription="Sort";q(fi).load(BA);var a=q(xPd,{optional:!0});if(a==
null?0:a.arrowPosition)this.arrowPosition=a==null?void 0:a.arrowPosition};h=e_.prototype;h.ngOnInit=function(){var a=this;!this.id&&this._columnDef&&(this.id=this._columnDef.name);this._sort.register(this);this._renderChanges=se(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)};
h.ngAfterViewInit=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(){Promise.resolve().then(function(){return a._recentlyCleared.set(null)})})};h.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||Gz(b,this._sortButton,this._sortActionDescription)}};
h._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)}};h._handleKeydown=function(a){if(a.keyCode===32||a.keyCode===13)a.preventDefault(),this._toggleOnInteraction()};h._isSorted=function(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")};h._isDisabled=function(){return this._sort.disabled||this.disabled};
h._getAriaSortAttribute=function(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"};h._renderArrow=function(){return!this._isDisabled()||this._isSorted()};h._updateSortActionDescription=function(a){if(this._sortButton){var b;(b=this._ariaDescriber)==null||Gz(b,this._sortButton,this._sortActionDescription);var c;(c=this._ariaDescriber)==null||Fz(c,this._sortButton,a)}this._sortActionDescription=a};
da.Object.defineProperties(e_.prototype,{sortActionDescription:{configurable:!0,enumerable:!0,get:function(){return this._sortActionDescription},set:function(a){this._updateSortActionDescription(a)}}});e_.\u0275fac=function(a){return new (a||e_)};
e_.\u0275cmp=C({type:e_,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(a,b){a&1&&N("click",function(){return b._toggleOnInteraction()})("keydown",function(c){return b._handleKeydown(c)})("mouseleave",function(){return b._recentlyCleared.set(null)});a&2&&(Jf("aria-sort",b._getAriaSortAttribute()),yg("mat-sort-header-disabled",b._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled",
"disabled",bh],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",bh]},exportAs:["matSortHeader"],attrs:["mat-sort-header",""],ngContentSelectors:["*","[matSortHeaderIcon]"],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&&(fg(yPd),Sf(0,"div",0)(1,"div",1),gg(2),Tf(),F(3,SAb,3,0,"div",2),Tf());a&2&&(yg("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),
Jf("tabindex",b._isDisabled()?null:0)("role",b._isDisabled()?null:"button"),B(3),G(b._renderArrow()?3:-1))},styles:[".mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;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-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,.mat-sort-header-arrow [matSortHeaderIcon]{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 f_=function(){};f_.\u0275fac=function(a){return new (a||f_)};f_.\u0275mod=$e({type:f_});f_.\u0275inj=Dc({imports:[jz]});var zPd={showActiveIndicator:!0,showMenu:!0,menu:{includeGoToIssueItem:!0},sortMode:"INTERNAL_SORT",activeRowMode:"FOCUS_SYNC"},g_=function(){LO.call(this);var a=this;this.issueFridge=q(GO);this.router=q(CF);this.domSafe=q($P);this.llmService=q(RY);this.matDialog=q(gB);this.cdr=q(MO,{self:!0});this.isOpen=function(b){return Bo(b)};this.isSingleIssue=function(b,c){return c.issueIds.length===1};this.isMultiIssue=function(b,c){return c.issueIds.length>1};this.isClosed=rWa;this.isUnread=vWa;this.getAssigneeString=
function(b){var c,d;b=Rm(b==null?void 0:(c=b.snapshot)==null?void 0:(d=c[0])==null?void 0:d.assigneeUser);return so(b)?b:void 0};this.userToLossyEmail=Rm;this.toMatSortDirection=WTa;this.idsToString=LCb;this.ClickTargetsForNavigation=jPd;this.SortMode=iPd;this.ActiveRowMode=hPd;this.IssueFieldType=khd;this.selection=new Wz(!0,[]);this.issueIds$=new Xj([]);this.menuItemFactory=function(){return[]};this.showReadStatus=!1;this.alerts=[];this.enrichmentCategoriesFunction=function(){return[]};this.optionsInternal=
zPd;this.activeIssueChange=new KO;this.rowClick=new KO;this.sortChange=new KO;this.columnsChange=new KO;this.selectedIssuesChange=new KO;this.issueNavigated=new KO;this.rowLimit$=new Xj(this.options.rowLimit);this.DEFAULT_DATETIME_MODE="datetime";this.DEFAULT_MENU_OPTIONS={buttonIcon:"more-settings-vertical",buttonLabel:"More options"};this.internalFilters=new OP;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 Xj(void 0);this.allRows$=this.issueIds$.pipe(Qr(),A(function(b){return b.map(function(c){return{issueIds:c,issue$:c.length===1?se(a.issueFridge.watch(c[0]),a.issueFridge.watchOneError(c[0]).pipe(A(function(){}))):be(void 0),summaryTitle$:le(function(){return iMd(a.llmService,c)})}})}),wf({refCount:!0,bufferSize:1}));this.allIssues$=
this.allRows$.pipe(zf(function(b){return he(b.map(function(c){return c.issue$}))}),A(function(b){return b.filter(ln)}),of(),wf({bufferSize:1,refCount:!0}));this.allIssuesAreLoaded$=this.allRows$.pipe(zf(function(b){return he(b.map(function(c){return c.issue$.pipe(yf(null))}))}),A(function(b){return b.every(function(c){return c!==null})}),of(),wf({bufferSize:1,refCount:!0}));this.unarchivedRows$=this.allRows$.pipe(jf(this.allIssuesAreLoaded$),A(function(b){var c=l(b);b=c.next().value;return c.next().value?
b.filter(function(d){var e;return!((e=Co(d))==null?0:e.isArchived)}):b}));this.unarchivedRows$.pipe(A(function(b){return b.length}));this.sortRows=Rd(jf(this.activeSort$,this.allIssuesAreLoaded$),A(function(b){var c=l(b);b=c.next().value;var d=c.next().value;return c.next().value&&a.options.sortMode==="INTERNAL_SORT"?MCb(b,d):b}));this.filterRows=Rd(jf(this.internalFilters.value$),zf(function(b){b=l(b);var c=b.next().value;var d=b.next().value;return d.size===0?be(c):he(c.map(function(e){return e.issue$})).pipe(A(function(e){return c.filter(function(f,
g){return e[g]?PAb(d,g,e):!0})}))}));this.limitRows=Rd(jf(this.rowLimit$),A(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(jf(this.allIssuesAreLoaded$),A(function(b){b=l(b);var c=b.next().value;if(b.next().value){b=c.map(Co).map(function(g){return g==null?void 0:g.userActivityStats});b={views24h:b.map(function(g){var k;return(k=g==null?void 0:g.oneDayViewCount)!=
null?k:0}),views7d:b.map(function(g){var k;return(k=g==null?void 0:g.sevenDayViewCount)!=null?k:0}),views30d:b.map(function(g){var k;return(k=g==null?void 0:g.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=NCb(b,e))&&(d[f[0]]=e)}return d}}));this.rows$=this.filteredRows$.pipe(this.limitRows,this.sortRows);this.rowCountAfterFilters$=this.unarchivedRows$.pipe(this.filterRows,A(function(b){return b.length}));
this.hiddenRowCount$=he([this.unarchivedRows$,this.rows$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b.length-c.length}),of());this.trackBy=function(b,c){return LCb(c.issueIds)};this.correctedDisplayedRows=new jg;this.correctedRows$=le(function(){return he([a.rows$,a.displayedRows.changes.pipe(yf(void 0))])}).pipe(kf(0),A(function(b){b=l(b).next().value;var c=new Map(a.displayedRows.map(function(d){return[LCb(d.row.issueIds),d]}));return b.map(function(d){return c.get(LCb(d.issueIds))}).filter(ln)}));
this.dataColumns=[].concat(n(lPd));this.tableColumns=this.getRenderableColumns(this.dataColumns);this.columnItems=APd(this,this.dataColumns)};Z(g_,LO);g_.\u0275dir=LO.\u0275dir;g_.prototype.getMenuItems=function(a){var b=[],c;((c=this.options.menu)==null?0:c.includeGoToIssueItem)&&b.push(this.goToIssueItemFactory(a));b.push.apply(b,n(this.menuItemFactory(a)));return b};
var CPd=function(a,b){var c,d;return y(function(e){c=b.filter(function(f){return f.type==="CUSTOM_FIELD"});a.customFieldIds=Nq(c.map(function(f){return f.customFieldId}),function(f){return f});d=a.customFieldIds.filter(function(f){return!a.customFieldNames.has(f)||a.customFieldNames.get(f)===""+f});return d.length?z(e,BPd(a,d),0):e.jumpTo(0)})},BPd=function(a,b){var c,d,e,f,g,k,m,r;return y(function(w){if(w.nextAddress==1)return z(w,ee(a.allIssues$),2);c=w.yieldResult;d=l(b);e=d.next();for(f={};!e.done;f=
{id$jscomp$542:void 0},e=d.next()){f.id$jscomp$542=e.value;g=l(c);for(k=g.next();!k.done;k=g.next())if(m=k.value,r=m.customFields.find(function(x){return function(D){return D.customFieldId===x.id$jscomp$542}}(f))){a.customFieldNames.set(f.id$jscomp$542,r.name);break}a.customFieldNames.has(f.id$jscomp$542)||a.customFieldNames.set(f.id$jscomp$542,""+f.id$jscomp$542)}$d(w)})};
g_.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");this.editableColumns&&b.push("edit-columns-button");a=a.map(function(c){return c.type==="CUSTOM_FIELD"?"CUSTOM_FIELD-"+c.customFieldId:c.type});b.push.apply(b,n(a));this.options.showMenu&&b.push("menu");return b};
var APd=function(a,b){var c=function(g,k){if(g.type==="CUSTOM_FIELD"){var m;var r=(m=a.customFieldNames.get(g.customFieldId))!=null?m:""+g.customFieldId}else{var w;r=(w=kPd.get(g.type))!=null?w:g.type}return{name:r,data:g,enabled:k}};b=b.map(function(g){return c(g,!0)});var d,e,f=(e=(d=a.options.optionalColumns)==null?void 0:d.map(function(g){return c(g,!1)}))!=null?e:[];d=[].concat(n(b),n(f));return Nq(d,function(g){return g.name})};g_.prototype.ngOnInit=function(){this.initialSort&&this.activeSort$.next(this.initialSort)};
g_.prototype.ngAfterViewInit=function(){var a=this;this.correctedRows$.pipe(Af(this.destroyed$)).subscribe(function(b){a.correctedDisplayedRows.reset(b);ng(a.correctedDisplayedRows);var c;((c=a.focusManager)==null?0:c.activeItem)&&Pz(a.focusManager,a.focusManager.activeItem)});this.focusManager=Oz(new vEd(this.correctedDisplayedRows,KCb));this.focusManager.change.pipe(Af(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 yCb=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 g;a.navigateToIssue(b,(g=c.row)==null?void 0:g.issueIds[0]);break;case "NONE":break;default:sb(d)}};h=g_.prototype;h.getDisplayName=function(a){var b;return(b=kPd.get(a))!=null?b:a};
h.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)||uq(a)?this.domSafe.openInNewTab(b):a&&a.shiftKey?Sr(this.domSafe,b):hu(this.router,b)}};h.onRowKeydown=function(a,b){var c;(c=this.focusManager)==null||c.onKeydown(b)};
h.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)};h.toggleAllRows=function(a){if(aBb(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 BCb=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})},aBb=function(a,b){b=b.filter(function(c){return a.isSingleIssue(0,c)}).length;return a.selection.selected.length===b};g_.prototype.getIssueUrl=function(a){return this.issueUrlFactory?this.issueUrlFactory(a):zs.viewIssue.makeHref(a)};
var VAb=function(a){var b,c;return y(function(d){if(d.nextAddress==1)return b=a.matDialog.open(a_,{width:"500px",autoFocus:!1,data:{columnItems:a.columnItems}}),z(d,ee(eB(b)),2);if(d.nextAddress!=3){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});return z(d,CPd(a,a.dataColumns),3)}a.tableColumns=a.getRenderableColumns(a.dataColumns);a.columnsChange.emit(a.dataColumns);$d(d)})};
g_.prototype.getCustomFieldName=function(a){var b;return(b=this.customFieldNames.get(a))!=null?b:String(a)};g_.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}))?kTa(a):"--"};
da.Object.defineProperties(g_.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){var b=this;this.optionsInternal=Object.assign({},zPd,a);this.rowLimit$.next(a.rowLimit);var c;CPd(this,[].concat(n(this.dataColumns),n((c=this.options.optionalColumns)!=null?c:[]))).then(function(){b.tableColumns=b.getRenderableColumns(b.dataColumns);b.columnItems=APd(b,b.dataColumns);
b.cdr.detectChanges()})},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){var b=this;this.dataColumns=a;CPd(this,this.dataColumns).then(function(){b.tableColumns=b.getRenderableColumns(a);b.columnItems=APd(b,a);b.cdr.detectChanges()})}}});g_.\u0275fac=function(a){return new (a||g_)};
g_.\u0275cmp=C({type:g_,selectors:[["b-issues-table"]],viewQuery:function(a,b){a&1&&kg(DW,5);if(a&2){var c;og(c=pg())&&(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"},features:[Ig([MO]),Ff],decls:3,vars:4,consts:[["directive","tableRowDirective"],["mat-table","","matSort","",1,"full-width",3,"dataSource","trackBy","hide-header","matSortDisabled","matSortActive","matSortDirection"],[1,"muted","margin-s-top","flex-kids-x","align-items-center"],["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"],["matColumnDef","edit-columns-button"],[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"],["mat-header-cell",""],["tabindex","-1","mat-cell",
""],["type","button","color","neutral","mat-button","","matTooltip","Edit table columns",1,"edit-columns","small","visible-on-row-active",3,"click"],["color","secondary","svgIcon","add_column_left_24px",1,"edit-columns","icon-m"],["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&&(F(0,CCb,89,36,"table",1),U(1,"async"),F(2,JCb,3,3,"div",2));if(a&2){var c;G((c=W(1,2,b.rows$))?0:-1,c);B(2);G(b.options.rowLimit?2:-1)}},dependencies:[UY,IDd,DT,ZA,XA,TA,PK,OK,wI,GW,FW,QS,DS,JS,FS,CS,LS,GS,IS,MS,OS,hK,KW,LW,$W,eW,gW,hW,aX,jW,MW,b_,BW,NW,OW,iz,d_,e_,MA,c_,nT,JW,DW,mU,py],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:-14px 4px -14px auto}"],
changeDetection:0});var h_=function(){LO.call(this);var a=this;this.issueFullFridge=q(RO);this.eventsForIssueFridge=q(vO);this.snackBar=q(IM);this.analytics=q(PO);this.hostElement=q(Gd);this.appEvents=q(DN);this.issueUserEventsService=q(sV);this.scrolledOnScreenService=q(mT);this.destroyRef=q(Be);this.similarIssueIds$=new vf(1);this.similarIssuesEnrichments$=new vf(1);this.limit=3;this.issueIds$=he([this.similarIssueIds$,this.similarIssuesEnrichments$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;
return[].concat(n(c.map(function(d){var e,f;return(f=(e=d.similarIssues)==null?void 0:e.issueIds)!=null?f:[]}).flat()),n(b))}),A(function(b){return b.slice(0,a.limit)}),Bf(function(b){a.mostRecentIssueIds=b}));this.mostRecentIssueIds=[];this.tableColumns$=this.similarIssuesEnrichments$.pipe(A(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$=he([this.similarIssueIds$,this.similarIssuesEnrichments$]).pipe(A(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,g=void 0,k=l((g=(f=e.similarIssues)==null?void 0:f.issueIds)!=null?g:[]);for(f=k.next();!f.done;f=k.next()){f=f.value;g=void 0;var m=(g=b.get(f))!=null?g:[];m.push(e.category);b.set(f,m)}}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$=he([this.issueIds$,this.issueIdToCategories$,this.tableColumns$]).pipe(A(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.EventType=Wgd;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(){DPd(a,b)}}]};this.gotErr=function(b){a.snackBar.open({message:iq(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");OCb(a,"EVENT_TYPE_ISSUE_HOVERCARD",b)}}))};Z(h_,LO);
h_.\u0275dir=LO.\u0275dir;
h_.prototype.ngOnInit=function(){var a=this;this.hostElement.nativeElement.addEventListener("click",this.captureAnyClick,!0);he([this.similarIssueIds$,this.similarIssuesEnrichments$,ayd(this.scrolledOnScreenService,this.hostElement.nativeElement,{durationOnScreenMs:3E3})]).pipe(mf(1)).subscribe(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c.next();b.length>0&&a.logIssueUserEvent("EVENT_TYPE_VIEW","Buganizer");b=l(d);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c=void 0;(e=(c=
d.similarIssues)==null?void 0:c.issueIds.length)!=null&&e&&a.logIssueUserEvent("EVENT_TYPE_VIEW",d.category)}})};h_.prototype.ngOnDestroy=function(){LO.prototype.ngOnDestroy.call(this);this.hostElement.nativeElement.removeEventListener("click",this.captureAnyClick,!0)};
var DPd=function(a,b){var c=String(a.issueIdInternal);c&&snd(a.issueFullFridge,b,c).then(function(){return y(function(d){EPd(a,b);EPd(a,c);a.snackBar.open({message:"Issue closed as duplicate",actionLabel:"Undo"}).afterDismissed().subscribe(function(e){e.dismissedByAction&&FPd(a,b,c)});a.analytics.trackEvent("similar-issues-idp","closeAsDuplicate","fromSummaryWidget");OCb(a,"EVENT_TYPE_CLOSE_AS_DUPLICATE",b);$d(d)})}).catch(a.gotErr)},FPd=function(a,b,c){a.issueFullFridge.removeDuplicate(b,c).then(function(){EPd(a,
b);EPd(a,c);a.snackBar.open({message:"Un-marked issue as duplicate"})}).catch(a.gotErr);a.analytics.trackEvent("similar-issues-idp","undoCloseAsDuplicate","fromSummaryWidget")},EPd=function(a,b){a.issueFullFridge.poke(b);a.eventsForIssueFridge.poke(b)};h_.prototype.captureAnyClick=function(){var a;(a=this.analytics)==null||a.trackEvent("similar-issues-idp","any-click")};
var OCb=function(a,b,c){var d,e,f,g,k,m;return y(function(r){if(r.nextAddress==1)return z(r,ee(a.issueIdToCategories$),2);d=r.yieldResult;f=(e=d.get(c))!=null?e:[];g=l(f);for(k=g.next();!k.done;k=g.next())m=k.value,a.logIssueUserEvent(b,m);$d(r)})};
h_.prototype.logIssueUserEvent=function(a,b){var c=String(this.issueIdInternal);b==="Buganizer"?this.issueUserEventsService.logIssueUserEvent(c,"FEATURE_SIMILAR_ISSUES",a).pipe(oj(this.destroyRef)).subscribe():this.issueUserEventsService.logIssueUserEventForIssueEnrichment(c,"FEATURE_SIMILAR_ISSUES",a,b).pipe(oj(this.destroyRef)).subscribe()};
da.Object.defineProperties(h_.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("ig");}},similarIssuesEnrichments:{configurable:!0,enumerable:!0,set:function(a){this.similarIssuesEnrichments$.next(a)},get:function(){throw Error("jg");}}});h_.\u0275fac=function(a){return new (a||h_)};
h_.\u0275cmp=C({type:h_,selectors:[["suggested-similar-issues"]],inputs:{issueId:"issueId",similarIssueIds:"similarIssueIds",similarIssuesEnrichments:"similarIssuesEnrichments",limit:"limit"},features:[Ff],decls:3,vars:3,consts:[[3,"issueIds","tableColumns","options","enrichmentCategoriesFunction","menuItemFactory"],[3,"issueNavigated","issueIds","tableColumns","options","enrichmentCategoriesFunction","menuItemFactory"]],template:function(a,b){a&1&&(F(0,PCb,1,5,"b-issues-table",0),U(1,"async"),Mf(2,
QCb,2,0,"div"));if(a&2){var c;G((c=W(1,1,b.issueTableData$))?0:2,c)}},dependencies:[g_,VS,py],encapsulation:2});var GPd=function(){this.editIssueService=q(tR);this.issueCommentDialogsService=q(LX);this.editIssueComponentService=q(ZV);this.issueFridge=q(GO);this.issueFullFridge=q(RO);this.issueApi=q(uO);this.butterBar=q(JM);this.contextSensitiveRegistry=q(KP)},HPd=function(a,b){var c,d;return y(function(e){if(!b.length)return e.return();c={issueIds:b.map(function(f){return f.issueId}),actions:[{fieldName:"duplicateOfIssueId",value:b[0].value,actionType:"ADD"}]};d={bulkEditOps:[c]};fs(a.butterBar,"Marking "+
b.length+" issues as duplicates...");return z(e,a.issueApi.issueBulkEdit(d).then(function(f){f.errors&&f.errors.length?(f=TWa(f.errors),a.butterBar.showWarning("Failed to mark issue(s) as duplicates: "+f+".")):fs(a.butterBar,"Marked "+b.length+" issue(s) as duplicates.");ee(a.contextSensitiveRegistry.getIssueId()).then(function(g){g&&a.issueFridge.poke(g)})}),0)})},JPd=function(a,b,c){var d,e,f,g,k,m,r,w,x,D,H,J,O,R,V,ba,pa,ua,ma,Da,ja,va,ya,Sa;return y(function(ab){switch(ab.nextAddress){case 1:if(!b.length)return ab.return();
if(c.type!=="ISSUE_DEDUPLICATION_BATCH"){ab.jumpTo(2);break}return z(ab,HPd(a,b),3);case 3:return ab.return();case 2:return d=Oq(b.map(function(rb){return rb.issueId})),z(ab,Promise.all(d.map(function(rb){return ee(a.issueFridge.watch(rb))})),4);case 4:e=ab.yieldResult.filter(ln);if(e.length!==d.length)throw Error("kg");f=new Map;g=l(e);for(k=g.next();!k.done;k=g.next())m=k.value,r=a.editIssueService.editableIssue(m.issueId),r.setData(m),f.set(m.issueId,r);w=b.filter(function(rb){return rb.fieldName!==
"componentId"&&rb.fieldName!=="comment"&&rb.fieldName!=="hotlists"});x=l(w);for(D=x.next();!D.done;D=x.next())H=D.value,J=f.get(H.issueId),lsd(J,H);return z(ab,Promise.all(Array.from(f.values(),function(rb){return uR(a.editIssueService,rb)})),5);case 5:O=b.filter(function(rb){return rb.fieldName==="comment"}),R=l(O),V=R.next();case 6:if(V.done){Da=b.filter(function(rb){return rb.fieldName==="hotlists"});if(!(Da.length>0)){ab.jumpTo(10);break}return z(ab,IPd(a,f.get(Da[0].issueId),Da),10)}ba=V.value;
if(!ba.value){ab.jumpTo(7);break}pa=a.editIssueService.issueCommentDraft(ba.issueId).comment();pa.value=ba.value;ua=void 0;pa.formattingMode=(ua=ba.formattingMode)!=null?ua:"PLAIN";ma=f.get(ba.issueId);return z(ab,a.issueCommentDialogsService.submitCommentBox(String(ma.componentId),ma.issueId,pa),7);case 7:V=R.next();ab.jumpTo(6);break;case 10:ja=b.filter(function(rb){return rb.fieldName==="componentId"}),va=l(ja),ya=va.next();case 12:if(ya.done){ab.jumpTo(0);break}Sa=ya.value;return z(ab,a.editIssueComponentService.updateComponent(Sa.issueId,
Sa.value||null),13);case 13:ya=va.next(),ab.jumpTo(12)}})},IPd=function(a,b,c){var d,e,f,g,k,m,r,w,x,D,H,J,O;return y(function(R){f=new Set((e=(d=b.hotlistId)==null?void 0:d.map(String))!=null?e:[]);g=c.filter(function(V){return V.actionType==="ADD"}).flatMap(function(V){var ba,pa;return(pa=(ba=V.value)==null?void 0:ba.split(","))!=null?pa:[]}).filter(Boolean);k=c.filter(function(V){return V.actionType==="REMOVE"}).flatMap(function(V){var ba,pa;return(pa=(ba=V.value)==null?void 0:ba.split(","))!=
null?pa:[]}).filter(Boolean);m=new Set;r=new Set;w=l(g);for(x=w.next();!x.done;x=w.next())D=x.value,f.has(D)||m.add(D);H=l(k);for(J=H.next();!J.done;J=H.next())O=J.value,f.has(O)&&r.add(O);return m.size>0||r.size>0?z(R,a.issueFullFridge.updateHotlists(b.issueId,[].concat(n(m)),[].concat(n(r))),0):R.jumpTo(0)})};GPd.\u0275fac=function(a){return new (a||GPd)};GPd.\u0275prov=Cc({token:GPd,factory:GPd.\u0275fac,providedIn:"root"});var KPd=function(a,b){return b.issueId},LPd=new Set(["duplicateOfIssueId"]),i_=function(){var a=this;this.clipboard=q(bQ);this.eventsForIssueFridge=q(vO);this.issueFridge=q(GO);this.paths=q(wV);this.snackBar=q(LD);this.excludedActions=new Set;this.canonicalIssueId$=new Xj("");this.issue$=function(b){return a.issueFridge.watch(b)};this.hiddenActionCount=0;this.showExpansionOption=!1;this.draftActions=[];this.actionsToAccept=new KO;this.canonicalIssue$=this.canonicalIssueId$.pipe(zf(function(b){return a.issue$(b)}));
this.canonicalEvents$=this.canonicalIssue$.pipe(zf(function(b){return(b==null?0:b.issueId)?a.eventsForIssueFridge.watch(b.issueId):be(void 0)}),A(function(b){var c;return(c=b==null?void 0:b.events)!=null?c:[]}));this.canonicalComments$=this.canonicalEvents$.pipe(A(function(b){return b.filter(yo)}));this.canonicalDuplicates$=this.canonicalIssue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].duplicateIssueId)!=null?c:[]}))};
i_.prototype.copyIssueId=function(a){this.clipboard.copy(a);this.snackBar.open("Issue ID copied","",{duration:2E3})};i_.prototype.getIssueLink=function(a){return As(a)};
var bDb=function(a,b){if(!(a.draftActions.length<1)){var c=a.draftActions.find(function(d){return d.issueId===b});c&&(a.excludedActions.add(c.actionKey),a.draftActions=a.draftActions.filter(function(d){return!a.excludedActions.has(d.actionKey)}),MPd(a),a.updateActionsToAccept(),NPd(a))}},aDb=function(a,b){var c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,ee(a.canonicalIssueId$),2);c=g.yieldResult;if(!c)return g.return();d=l(a.draftActions);for(e=d.next();!e.done;e=d.next())f=e.value,
f.issueId===b.issueId&&(f.issueId=c),f.value=b.issueId,f.isDirty=!0;a.canonicalIssueId$.next(b.issueId);a.updateActionsToAccept();$d(g)})},MPd=function(a){a=l(a.draftActions);for(var b=a.next();!b.done;b=a.next())b.value.isDirty=!0},OPd=function(a,b,c){b=wo(b,function(g){return g.actionKey});var d=[];c=c.filter(function(g){return!a.excludedActions.has(g.actionKey)});c=l(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=b.get(e.actionKey);f&&f.isDirty?d.push(f):d.push(e)}return Hm(d)};
i_.prototype.updateActionsToAccept=function(){var a=this;this.actionsToAccept.emit(this.draftActions.filter(function(b){return!a.excludedActions.has(b.actionKey)}))};var NPd=function(a){a.draftActions.length<=6?a.showExpansionOption=!1:a.hiddenActionCount=a.draftActions.length-5};
da.Object.defineProperties(i_.prototype,{actions:{configurable:!0,enumerable:!0,set:function(a){var b=this,c=this.draftActions.length===0;this.draftActions=OPd(this,this.draftActions,a).filter(function(f){return LPd.has(f.fieldName)});var d,e=(d=this.draftActions[0])==null?void 0:d.value;e&&(this.canonicalIssueId$.next(e),this.draftActions=this.draftActions.filter(function(f){return f.issueId!==e}));a=this.draftActions.findIndex(function(f){return f.issueId===b.currentIssue.issueId});a>0&&(a=this.draftActions.splice(a,
1)[0],this.draftActions.unshift(a));this.draftActions.length<=6?this.showExpansionOption=!1:(c&&(this.showExpansionOption=!0),this.hiddenActionCount=this.draftActions.length-5);this.updateActionsToAccept()}}});i_.\u0275fac=function(a){return new (a||i_)};
i_.\u0275cmp=C({type:i_,selectors:[["b-dedupe-actions-component"]],inputs:{currentIssue:"currentIssue",actions:"actions"},outputs:{actionsToAccept:"actionsToAccept"},decls:6,vars:4,consts:[["canonicalHovercard","onedevHovercard"],["canonicalCardBody",""],["duplicateHovercard","onedevHovercard"],["duplicateCardBody",""],[1,"flex-kids-y","gap-xs"],[1,"flex-kids-x","align-items-center"],[1,"circle","shrink-0"],[1,"shrink-0",3,"id"],["target","_blank",1,"title","hover-link","overflow-ellipsis",3,"href"],
[1,"bold",3,"onedevHovercardTrigger"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[1,"current-issue-chip","shrink-0"],[1,"margin-left-auto","shrink-0"],[3,"onedevIsHovercardReady","issueId"],[1,"dupe-issue","flex-kids-x","full-width","align-items-center"],[1,"pos-rel"],[1,"icon-container"],[1,"connector"],["svgIcon","tab_close_24px",1,"icon-s","shrink-0"],["target","_blank",1,"hover-link","overflow-ellipsis",3,"href"],["role","button",3,"onedevHovercardTrigger"],[1,"actions",
"shrink-0","margin-left-auto"],["type","button","mat-icon-button","","matTooltip","Make this issue the canonical issue",1,"small","include",3,"click"],["svgIcon","vertical_align_top_24px",1,"icon-xs"],["type","button","mat-icon-button","","matTooltip","Remove this issue",1,"small","include",3,"click","disabled"],["svgIcon","close",1,"icon-xs"],[1,"curved-arrow"],["mat-button","","color","primary",1,"more-issues",3,"click"]],template:function(a,b){a&1&&(K(0,"div",4),F(1,WCb,2,3),U(2,"async"),Pf(3,
dDb,2,3,null,null,KPd),F(5,eDb,4,2,"div"),L());if(a&2){var c;B();G((c=W(2,2,b.canonicalIssueId$))?1:-1,c);B(2);a=b.draftActions;Qf(b.showExpansionOption?a.slice(0,5):a);B(2);G(b.showExpansionOption?5:-1)}},dependencies:[ZA,XA,TA,VA,hK,AK,uK,vK,zK,wK,xW,gW,iz,MA,py],styles:[".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}.current-issue-chip[_ngcontent-%COMP%]{color:var(--primary-c800);font-size:.75rem;font-weight:700;background:var(--primary-c100);padding:2px 8px;margin-left:8px;border-radius:4px}.dupe-issue[_ngcontent-%COMP%]{color:var(--text-secondary);padding-left:10px}.dupe-issue[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-left:6px;margin-right:2px;vertical-align:middle}.circle[_ngcontent-%COMP%]{width:8px;height:8px;background:var(--primary-c800);border-radius:4px;display:inline-block;margin-right:2px}.curved-arrow[_ngcontent-%COMP%]{-webkit-transform:rotate(90deg);transform:rotate(90deg);display:inline-block;margin:-14px 0 0 -13px;position:absolute;font-size:15px}.icon-container[_ngcontent-%COMP%]{position:relative}.icon-container[_ngcontent-%COMP%]   .connector[_ngcontent-%COMP%]{border:1px solid;border-color:var(--text-secondary);position:absolute;height:7px;top:-8px;left:14px}.more-issues[_ngcontent-%COMP%]{color:var(--text-secondary)}"],
changeDetection:0});var kDb=function(a){return{group:a,fieldName:"Assignee"}},pDb=function(a){return{group:a,fieldName:"Priority"}},tDb=function(a){return{group:a,fieldName:"Comment"}},yDb=function(a){return{group:a,fieldName:"Component"}},GDb=function(a){return{group:a,fieldName:"Hotlist"}},PDb=function(a){return{group:a,fieldName:"CCs"}},SDb=function(a){return{group:a,fieldName:"Status"}},eEb=function(a,b){return{group:a,fieldName:b}},WDb=function(){return[]},jEb=function(a){return{group:a,fieldName:"Type"}},IDb=function(a,
b){return b.actionKey},PPd=new Set("assignee comment componentId hotlists priority ccs status customField type".split(" ")),j_=function(){var a=this;this.issueFridge=q(GO);this.constants=q(SQ);this.editCommentDialogService=q(JX);this.issuePermissionService=q(NP);this.hotlistFridge=q(UN);this.hotlistPickerService=q(BV);this.includeCommentByDefault=!0;this.draftActions=[];this.issue$=function(b){return a.issueFridge.watch(b)};this.hotlist$=function(b){return a.hotlistFridge.watch(b)};this.formattingAudience$=
this.issuePermissionService.audience$;this.actionsToAccept=new KO;this.groupTrackBy=function(b){return b.map(function(c){return c.actionKey}).join(",")};this.split=function(b){var c;return(c=b==null?void 0:b.split(","))!=null?c:[]};this.priorityChoices=this.constants.priorities.map(function(b){return{value:b,displayText:b}});this.statusChoices=fid;this.typeChoices=this.constants.editIssueTypeChoices;this.dirtyCommentActions=new Set;this.excludedActions=new Set;this.IssueFieldName=Vhd;this.IssuePriority=
rhd;this.IssueStatus=Jhd;this.IssueType=Nhd;this.FormattingMode=fo;this.ActionType=Kgd;this.FieldType=AU;this.emailToUser=Sm;this.userToLossyEmail=Rm;this.getTeamId=B7a;this.getComponentId=C7a;this.getReporter=A7a;this.getAssignee=z7a;this.getPriority=y7a;this.getStatus=x7a;this.getType=G7a};j_.prototype.ngOnChanges=function(){this.draftActions=sEb(this.draftActions,this.actions).filter(function(a){return PPd.has(a.fieldName)});this.updateActionsToAccept()};
var QPd=function(a){return y1a(a,function(b){return b.fieldName})},mDb=function(a,b,c){RPd(a,b,function(d){d.value=String(c)})},VDb=function(a){switch(a){case "DATE":return"DATE";case "ENUM":return"ENUM";case "NUMERIC":return"NUMERIC";default:return"TEXT"}};j_.prototype.getListFieldType=function(a){switch(a){case "REPEATED_DATE":return"REPEATED_DATE";case "REPEATED_ENUM":return"REPEATED_ENUM";case "REPEATED_NUMERIC":return"REPEATED_NUMERIC";default:return"REPEATED_TEXT"}};
var YDb=function(a,b,c){a=new ksd(b);a.type=c.type;a.customFieldName=c.name;var d,e;a.choices=(e=(d=c.allowedValue)==null?void 0:d.map(function(f){return{value:f,displayText:f}}))!=null?e:null;return a};j_.prototype.getSingularValue=function(a){var b=Lm(a);return b&&!a.isRepeated()?b:null};j_.prototype.getRepeatedValues=function(a){var b=Lm(a);return a.isRepeated()&&b?typeof b==="object"&&b!==null&&"values"in b?b.values:null:null};
j_.prototype.getDisplayValue=function(a){var b,c;a=(c=(b=a.displayValues)==null?void 0:b[0])!=null?c:null;a==="0.0"&&(a="0");return a};var gEb=function(a,b){P();var c;return(c=a.customFields)==null?void 0:c.find(function(d){return d.customFieldId===b.customFieldValue.customFieldId})},dEb=function(a,b){var c;return(c=a.snapshot[0].customField)==null?void 0:c.find(function(d){return d.customFieldId===b.customFieldValue.customFieldId})};
j_.prototype.hasHotlist=function(a,b){var c,d;return(d=(c=a.snapshot[0].hotlistId)==null?void 0:c.includes(Number(b)))!=null?d:!1};
var MDb=function(a,b){var c,d;return(d=(c=a.snapshot[0].ccUsers)==null?void 0:c.find(function(e){return e.emailAddress===b}))!=null?d:!1},RPd=function(a,b,c){b&&(a.draftActions=a.draftActions.map(function(d){if(d.actionKey!==b.actionKey)return d;d=Hm(d);c(d);d.isDirty=!0;return d}),a.updateActionsToAccept())},sDb=function(a,b,c){var d,e,f,g,k,m,r;return y(function(w){if(w.nextAddress==1)return e=(d=a.issuePermissionService.audience())!=null?d:"EXTERNAL",k=(g=(f=c)==null?void 0:f.snapshot[0].componentId)!=
null?g:void 0,z(w,a.editCommentDialogService.show({issueId:b.issueId,audience:e,componentId:k,text:b.value,formattingMode:(m=b.formattingMode)!=null?m:"PLAIN",showPiiWarning:!1,dialogTitle:"Edit draft comment"}),2);(r=w.yieldResult)&&RPd(a,b,function(x){x.value=r.text;x.formattingMode=r.formattingMode});$d(w)})};
j_.prototype.openHotlistPicker=function(a){var b=this,c,d,e,f,g,k,m,r,w,x,D,H,J,O,R,V,ba,pa,ua,ma,Da,ja,va,ya,Sa,ab,rb;return y(function(ac){if(ac.nextAddress==1)return c=a[0].issueId,z(ac,ee(b.issue$(c)),2);if(ac.nextAddress!=3)return d=ac.yieldResult,k=(g=(e=d)==null?void 0:(f=e.snapshot[0].hotlistId)==null?void 0:f.map(String))!=null?g:[],m=a.find(function(pc){return pc.actionType==="ADD"}),r=a.find(function(pc){return pc.actionType==="REMOVE"}),H=new Set((D=(w=m)==null?void 0:(x=w.value)==null?
void 0:x.split(","))!=null?D:[]),V=new Set((R=(J=r)==null?void 0:(O=J.value)==null?void 0:O.split(","))!=null?R:[]),ba=[].concat(n(k),n(H)).filter(function(pc){return!V.has(pc)}),z(ac,aCd(b.hotlistPickerService,a[0].issueId,ba.map(Number),!1),3);pa=ac.yieldResult;if(!pa)return ac.return();ua=pa;ma=ua.addedIds;Da=ua.removedIds;ja=l(Da);for(va=ja.next();!va.done;va=ja.next())ya=va.value,H.delete(ya),V.add(ya);Sa=l(ma);for(ab=Sa.next();!ab.done;ab=Sa.next())rb=ab.value,H.add(rb),V.delete(rb);RPd(b,m,
function(pc){pc.value=[].concat(n(H)).join(",")});RPd(b,r,function(pc){pc.value=[].concat(n(V)).join(",")});$d(ac)})};j_.prototype.updateActionsToAccept=function(){var a=this,b=this.draftActions.filter(function(c){return!a.excludedActions.has(c.actionKey)}).filter(wbb);this.includeCommentByDefault||(b=b.filter(function(c){return c.fieldName!=="comment"||a.dirtyCommentActions.has(c.actionKey)}));this.actionsToAccept.emit(b)};j_.\u0275fac=function(a){return new (a||j_)};
j_.\u0275cmp=C({type:j_,selectors:[["b-issue-actions-component"]],inputs:{actions:"actions",includeCommentByDefault:"includeCommentByDefault"},outputs:{actionsToAccept:"actionsToAccept"},features:[Gx],decls:5,vars:0,consts:[["excludeButton",""],["assigneePicker",""],["priorityPicker",""],["componentPicker",""],["statusPicker",""],["customFieldEditor",""],["typePicker",""],[1,"flex-kids-y","gap-s"],[1,"row","flex-kids-x","gap-xs","align-items-center",3,"excluded","hide-comment"],[1,"row","flex-kids-x",
"gap-xs","align-items-center"],[1,"field-name"],[1,"field-value","gap-xs","flex-kids-x","align-items-center","flex-wrap"],[3,"emailChange","user","displayValueOverride","teamId","disabled"],[1,"note"],[1,"buttons","margin-left-auto"],[3,"user","teamId","disabled"],[1,"muted"],["svgIcon","arrow-forward","color","primary",1,"icon-s"],["type","button","mat-icon-button","","matTooltip","Edit assignee","aria-label","Edit assignee",1,"small",3,"click","disabled"],["svgIcon","edit-outline",1,"icon-xxs"],
[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-value","gap-xs","flex-kids-x","align-items-center"],[3,"valueChange","type","value","choices","readonly"],[3,"type","value","choices","readonly"],["type","button","mat-icon-button","","matTooltip","Edit priority","aria-label","Edit priority",1,"small",3,"click","disabled"],[3,"comment","issueId","audience","formattingMode"],["type","button","mat-icon-button","","matTooltip","Edit comment","aria-label","Edit comment",1,"small","edit-comment",
3,"click","disabled"],[3,"componentChanged","issueId","componentId","compactMode","handleSave","showPickerOverlayAbove","readOnly"],[3,"issueId","componentId","compactMode","readOnly"],["type","button","mat-icon-button","","matTooltip","Edit component","aria-label","Edit component",1,"small",3,"click","disabled"],[1,"flex-kids-x","align-items-center"],["matTooltip","Adding hotlist","svgIcon","add",1,"good","icon-xs"],[3,"hotlist","removable"],["matTooltip","Removing hotlist","svgIcon","remove_24px",
1,"bad","icon-xs"],["type","button","mat-icon-button","","matTooltip","Edit hotlists","aria-label","Edit hotlists",1,"small",3,"click","disabled"],["matTooltip","Adding CC","svgIcon","add",1,"good","icon-xs"],["matTooltip","Removing CC","svgIcon","remove_24px",1,"bad","icon-xs"],[3,"type","values","displayValuesOverride","enumChoices","readonly"],[3,"type","value","displayValueOverride","choices","readonly","showEnumTitle"],["type","button","mat-icon-button","","matTooltip","Edit type","aria-label",
"Edit type",1,"small",3,"click","disabled"],["type","button","mat-icon-button","",1,"small","include",3,"matTooltip"],["type","button","mat-icon-button","",1,"small","exclude",3,"matTooltip"],["type","button","mat-icon-button","",1,"small","include",3,"click","matTooltip"],["svgIcon","done",1,"icon-xxs"],["type","button","mat-icon-button","",1,"small","exclude",3,"click","matTooltip"],["svgIcon","close",1,"icon-xxs"]],template:function(a,b){a&1&&(K(0,"div",7),Pf(1,nEb,5,9,"div",8,fDb,!0),L(),E(3,
rEb,2,2,"ng-template",null,0,Og));a&2&&(B(),Qf(QPd(b.draftActions)))},dependencies:[NX,zU,ZA,XA,VA,hK,pV,YU,fS,iz,MA,oy,zY,py,rU],styles:["[_nghost-%COMP%]     onedev-user-picker>button{width:unset;padding:0;min-height:unset}[_nghost-%COMP%]     div.md-preview{background-color:unset;margin:unset;padding:0}[_nghost-%COMP%]     b-edit-field .bv2-edit-button, [_nghost-%COMP%]     b-user-picker .edit-icon{display:none}[_nghost-%COMP%]     b-hotlist-chip .chip{padding:0;padding-left:2px;background-color:unset}b-user-picker[_ngcontent-%COMP%]{width:unset;margin-right:-6px}.field-name[_ngcontent-%COMP%]{min-width:100px;min-height:24px;line-height:24px;-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start}.buttons[_ngcontent-%COMP%]{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;visibility:hidden}[_nghost-%COMP%]:focus-within   .buttons[_ngcontent-%COMP%], [_nghost-%COMP%]:hover   .buttons[_ngcontent-%COMP%]{visibility:visible}.row[_ngcontent-%COMP%]{min-height:24px}.row.hide-comment[_ngcontent-%COMP%]{min-height:unset}.good[_ngcontent-%COMP%]{color:#188038;color:var(--text-good)}.bad[_ngcontent-%COMP%]{color:#c5221f;color:var(--text-bad)}[_nghost-%COMP%]     .excluded .field-name, [_nghost-%COMP%]     .excluded .field-value *{color:#bdc1c6;color:var(--text-disabled);text-decoration:line-through}.note[_ngcontent-%COMP%]{border-radius:4px;color:#1967d2;color:var(--primary-c700);background-color:#e8f0fe;background-color:var(--primary-c50);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;text-transform:uppercase;padding:2px 4px;font-weight:500;letter-spacing:.05rem}"],
changeDetection:0});var uEb=function(){return[]},SPd=new Map(["componentId","hotlists","priority","assignee","comment"].map(function(a,b){return[a,b]})),TPd=yn(function(a){var b;return(b=SPd.get(a.fieldName))!=null?b:Infinity},zn,"ASCENDING"),k_=function(){LO.apply(this,arguments);var a=this;this.activeSession=q(Zu);this.recommendationsService=q(TV);this.issueActionService=q(GPd);this.editIssueService=q(tR);this.documentationLinks=q(OQ);this.domSafe=q($P);this.checkBeforeExit=q(HX);this.issueFridge=q(GO);this.scrolledOnScreenService=
q(mT);this.cdr=q(Yx);this.elementRef=q(Gd);this.butterBar=q(JM);this.recommendationTriggerService=q(QP);this.includeComment=this.activeSession.getFlag("enableTriageRecommendationComments");this.dedupeAutomationCalloutComponentAllowlist=fjd(this.activeSession);this.RecommendationType=Ohd;this.recommendation$=new vf(1);this.readonly=this.disableLogging=this.showTitle=!1;this.issueId$=this.recommendation$.pipe(A(function(b){return os(b==null?void 0:b.resource)}));this.currentIssue$=this.issueId$.pipe(zf(function(b){return b?
a.issueFridge.watch(b):be(void 0)}));this.currentComponentId$=this.currentIssue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.snapshot[0])==null?void 0:c.componentId}),yf(void 0));this.actions=[];this.actions$=he([this.recommendation$,this.currentIssue$]).pipe(A(function(b){var c=l(b);b=c.next().value;var d=c.next().value;d&&b.type==="ISSUE_DEDUPLICATION_BATCH"&&(b=Hm(b),b.content.issueDeduplicationBatch.recommendedCanonicalIssue||(b.content.issueDeduplicationBatch.recommendedCanonicalIssue=
d));b=Hm(b);if(d){var e=UPd[b.type];if(e){var f,g,k;c=new Set((k=(f=b.content)==null?void 0:(g=f.issueModification)==null?void 0:g.addMask)!=null?k:[]);var m,r,w;f=new Set((w=(m=b.content)==null?void 0:(r=m.issueModification)==null?void 0:r.removeMask)!=null?w:[]);m=new Set([].concat(n(c),n(f)));var x,D;if((x=b.content)==null?0:(D=x.issueModification)==null?0:D.addState)b.content.issueModification.addState=Object.assign({},d.snapshot[0],b.content.issueModification.addState);var H,J;if((H=b.content)==
null?0:(J=H.issueModification)==null?0:J.addMask)for(x=l(e),D=x.next();!D.done;D=x.next())D=D.value,m.has(D)||b.content.issueModification.addMask.push(D);var O;e.has("comment")&&((O=b.content)==null?0:O.issueModification)&&!b.content.issueModification.comment&&(b.content.issueModification.comment={issueId:d.issueId,commentNumber:0,formattedComment:void 0,lastEditorUser:void 0,lastModified:0,version:0,unlinkifiedComment:"",formattingMode:"PLAIN",entityStatus:void 0,piiRetentionState:void 0,piiRetention:void 0,
redacted:!1,etag:void 0,commentReactions:new Map});O=l(m);for(d=O.next();!d.done;d=O.next())d=d.value,Abb.has(d)&&(c.has(d)||(D=x=void 0,(x=b.content)==null||(D=x.issueModification)==null||D.addMask.push(d)),f.has(d)||(D=x=void 0,(x=b.content)==null||(D=x.issueModification)==null||D.removeMask.push(d)))}}return ubb(b)}),A(function(b){return TPd(b,"ASCENDING")}),A(function(b){return b.map(function(c){return a.readonly?Object.assign({},c,{allowEdit:!1,allowExclude:!1}):c})}));this.actionsToAccept=[];
this.isSaving$=new Xj(!1)};Z(k_,LO);k_.\u0275dir=LO.\u0275dir;
k_.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(IX(this.checkBeforeExit,function(){return a.hasUnsavedChanges()&&a.recommendation.type!=="ISSUE_DEDUPLICATION_BATCH"&&a.recommendation.type!=="ISSUE_DEDUPLICATION"},!0));this.disableLogging||(QCd(this.recommendationsService,this.recommendation),this.subscriptions.add(he([ayd(this.scrolledOnScreenService,this.elementRef.nativeElement,{durationOnScreenMs:3E3})]).pipe(mf(1)).subscribe(function(){RCd(a.recommendationsService,a.recommendation)})));
this.subscriptions.add(this.actions$.subscribe(function(b){a.actions=b}))};k_.prototype.updateActionsToAccept=function(a){this.actionsToAccept=a;this.cdr.detectChanges()};
k_.prototype.accept=function(a){var b=this,c,d,e,f,g,k,m;return y(function(r){switch(r.nextAddress){case 1:return b.isSaving$.next(!0),c=b.actions.filter(wbb),d=b.actionsToAccept.filter(wbb),e=Oq(d.map(function(w){return w.issueId})),Vd(r,2,3),z(r,JPd(b.issueActionService,d,a),5);case 5:if(b.disableLogging){r.jumpTo(6);break}return z(r,JCd(b.recommendationsService,a,c,d),6);case 6:b.recommendationTriggerService.hiddenRecommendationIds.add(a.name);case 3:Wd(r);if(a.type!=="ISSUE_DEDUPLICATION_BATCH")for(f=
l(e),g=f.next();!g.done;g=f.next())k=g.value,b.editIssueService.clear(k);b.isSaving$.next(!1);Yd(r,0);break;case 2:m=Zd(r),b.butterBar.showWarning("Failed to apply recommendation."),console.error("Failed to apply recommendation",m),r.jumpTo(3)}})};k_.prototype.reject=function(a){var b=this;return y(function(c){if(c.nextAddress==1)return b.isSaving$.next(!0),z(c,PCd(b.recommendationsService,a),2);b.isSaving$.next(!1);$d(c)})};
var DEb=function(a,b){switch(b.type){case "ISSUE_DEDUPLICATION":var c,d,e;return"Accept changes and close current issue as duplicate of "+((c=b.content)==null?void 0:(d=c.recommendedIssue)==null?void 0:(e=d.snapshot[0])==null?void 0:e.title);case "ISSUE_DEDUPLICATION_BATCH":return a.actionsToAccept.length>1?"Close "+a.actionsToAccept.length+" issues as duplicates":"Close "+a.actionsToAccept.length+" issue as duplicate";default:return"Accept changes"}},EEb=function(a){switch(a.type){case "ISSUE_DEDUPLICATION":var b,
c,d;return"Reject recommendation to mark current issue as duplicate of "+((b=a.content)==null?void 0:(c=b.recommendedIssue)==null?void 0:(d=c.snapshot[0])==null?void 0:d.title);default:return"Reject recommendation"}};k_.prototype.openLink=function(a){this.domSafe.openInNewTab(a)};k_.prototype.getRecommendationText=function(){return Cbb(this.recommendation,!0)};k_.prototype.hasUnsavedChanges=function(){return this.actionsToAccept.some(function(a){return a.isDirty})};
da.Object.defineProperties(k_.prototype,{recommendation:{configurable:!0,enumerable:!0,set:function(a){this.recommendation$.next(a)},get:function(){return Pr(this.recommendation$)}}});k_.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(k_)))(b||k_)}}();
k_.\u0275cmp=C({type:k_,selectors:[["b-recommendation"]],inputs:{recommendation:"recommendation",showTitle:"showTitle",disableLogging:"disableLogging",readonly:"readonly"},features:[Ff],decls:7,vars:5,consts:[[1,"flex-kids-y","gap-s","rounded","container"],[1,"heading-xs"],[3,"actions","includeCommentByDefault"],[1,"flex-kids-x","space-between","full-width"],[1,"full-width"],[3,"currentIssue","actions"],[3,"actionsToAccept","currentIssue","actions"],[3,"actionsToAccept","actions","includeCommentByDefault"],
[1,"flex-kids-x","gap-s","margin-s-bottom"],[3,"formattedComment","canEditComment"],[1,"actions","flex-kids-x","gap-s","align-items-center","padded-s-bottom","full-width"],["type","button","mat-flat-button","","color","primary",1,"accept","keep-focus-ring",3,"click","disabled"],["svgIcon","done",1,"icon-s"],["type","button","mat-button","","mainSegment","","color","primary",1,"reject","small",3,"click","disabled"],["svgIcon","close",1,"icon-s"],[1,"margin-left-auto"],[1,"flex-kids-x"],["type","button",
"mat-icon-button","","aria-label","help",1,"feedback-button",3,"click"],["svgIcon","help-outline",1,"icon-s"],["messageType","info","iconOverride","lightbulb_24px"],["href","http://go/b-auto-dedupe","target","\u201d_blank\u201d"]],template:function(a,b){a&1&&(K(0,"div",0),F(1,tEb,2,1,"div",1),F(2,wEb,2,3)(3,xEb,2,5,"b-issue-actions-component",2),F(4,AEb,6,1),F(5,FEb,14,14,"div",3),F(6,GEb,6,0,"div",4),L());a&2&&(B(),G(b.showTitle?1:-1),B(),G(b.recommendation.type===b.RecommendationType.ISSUE_DEDUPLICATION_BATCH||
b.recommendation.type===b.RecommendationType.ISSUE_DEDUPLICATION?2:3),B(2),G(b.recommendation.rationale?4:-1),B(),G(b.readonly?-1:5),B(),b=(a=Pr(b.currentComponentId$))?b.recommendation.type==="ISSUE_DEDUPLICATION_BATCH"&&b.dedupeAutomationCalloutComponentAllowlist.has(a):!1,G(b?6:-1))},dependencies:[uT,vT,i_,eS,ZA,XA,TA,VA,j_,XJ,iz,VS,py],styles:[".container[_ngcontent-%COMP%]{background:-webkit-linear-gradient(225deg,var(--ai-linear-gradient-0) 0,var(--ai-linear-gradient-33) 33%,var(--ai-linear-gradient-66) 66%,var(--ai-linear-gradient-66) 100%);background:linear-gradient(225deg,var(--ai-linear-gradient-0) 0,var(--ai-linear-gradient-33) 33%,var(--ai-linear-gradient-66) 66%,var(--ai-linear-gradient-66) 100%);padding:8px 16px}.container[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{margin-left:auto}[_nghost-%COMP%]     .actions button{height:26px;line-height:unset}.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}"],
changeDetection:0});var VPd={},UPd=(VPd.COMPONENT_ROUTING=new Set(["componentId","hotlists","priority","assignee"]),VPd.NEEDS_INFO=new Set(["comment"]),VPd);var WPd=[[["","expansion-panel-header",""]],"*"],l_=function(){this.instance=l_.instanceCounter;this.expanded=!1};l_.prototype.ngOnInit=function(){l_.instanceCounter++};l_.prototype.toggle=function(){this.expanded=!this.expanded};l_.instanceCounter=0;l_.\u0275fac=function(a){return new (a||l_)};
l_.\u0275cmp=C({type:l_,selectors:[["b-expansion-panel"]],inputs:{expanded:"expanded"},exportAs:["expansionPanel"],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&&(fg(WPd),K(0,"div",0)(1,"div",1),N("click",function(){return b.toggle()})("keydown.enter",function(){return b.toggle()})("keydown.space",function(c){return c.preventDefault()})("keyup.space",function(){return b.toggle()}),gg(2),K(3,"button",2),N("click",function(c){b.toggle();return c.stopPropagation()}),M(4,"mat-icon",3),L()(),F(5,HEb,2,3,"div",4),L());a&2&&(yg("expanded",b.expanded),B(),I("id",Gg("expansion-panel-header-",
b.instance)),Jf("aria-controls","expansion-panel-content-"+b.instance)("aria-expanded",b.expanded),B(4),G(b.expanded?5:-1))},dependencies:[ZA,XA,VA,iz],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 WEb=function(){return[]},bFb=function(a,b){return b.key},m_=function(){LO.apply(this,arguments);var a=this;this.issueFridge=q(GO);this.issueFullFridge=q(RO);this.eventsForIssueFridge=q(vO);this.paramsService=q(JP);this.issueExperimentalFieldsFridge=q(CO);this.issuePermissionService=q(NP);this.triageService=q(KQ);this.activeSession=q(Zu);this.errorHandler=q(ZM);this.preferences=q(VP);this.similarIssuesApi=q(bW);this.issueMarkAsDuplicateDialogService=q(MX);this.analytics=q(PO);this.recommendationTriggerService=
q(QP);this.refreshMonitor=q(DO);this.isPlaybookEnabled=this.activeSession.getFlag("enablePlaybook");this.issueId$=this.triageService.currentIssueId$.pipe(te(ln),of());this.PHASE_TO_ACTIONS=csd;this.TriagePhase=Lhd;this.MAX_SIMILAR_ISSUES=10;this.displaySecondaryFooter=!1;this.refreshTable=new KO;this.teamId$=Vpd(this.paramsService,"teamId").pipe(of(),te(ln));this.triageViewId=this.paramsService.params.triageId;this.phaseUrlSlug=this.paramsService.params.phase;this.data$=this.teamId$.pipe(A(function(b){return a.triageService.triageDataFactory.get(b,
a.triageViewId)}));this.triageScope$=this.data$.pipe(zf(function(b){return b.triageScope$}));this.issue$=this.issueId$.pipe(zf(function(b){return a.issueFridge.watch(b)}));this.canonicalIssueId$=this.issue$.pipe(A(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(zf(function(b){return a.issueExperimentalFieldsFridge.watch(b)}));this.reporterUser$=this.issue$.pipe(A(function(b){var c;return b==
null?void 0:(c=b.snapshot[0])==null?void 0:c.reporterUser}));this.reporterEmail$=this.reporterUser$.pipe(A(function(b){return Rm(b)||""}));this.triagerEmail$=this.experimentalFields$.pipe(A(function(b){var c;return b==null?void 0:(c=b.triage)==null?void 0:c.triagerEmail}));this.triager$=this.triagerEmail$.pipe(A(function(b){return Sm(b)}));this.issuePhase$=this.issue$.pipe(A(Ur));this.issuePhaseDisplay$=this.issuePhase$.pipe(A(function(b){var c;return(c=b&&Tt.get(b))!=null?c:""}));this.issueSubphase$=
this.issue$.pipe(A(Vr));this.issueSubphaseDisplay$=this.issueSubphase$.pipe(A(function(b){var c;return(c=b&&ord[b])!=null?c:""}));this.events$=this.issueId$.pipe(zf(function(b){return a.eventsForIssueFridge.watch(b)}),A(function(b){return(b==null?void 0:b.events)||[]}));this.comments$=this.events$.pipe(A(function(b){return b.filter(yo).slice(1)}));this.accessLevel$=this.issue$.pipe(A(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(A(Boolean),yf(!0));this.similarIssueIds$=he([this.issueId$,this.triageScope$]).pipe(zf(function(b){var c=l(b);b=c.next().value;c=c.next().value;return xDd(a.similarIssuesApi,{issueId:Number(b),scope:c+" status:open",embeddingType:2})}),A(function(b){return b.similarIssues}),A(function(b){return b.map(function(c){return c.issueId})}),A(function(b){return b.slice(0,10)}),wf({bufferSize:1,refCount:!0}));this.needsInfoAutomaticChanges$=
this.reporterEmail$.pipe(A(function(b){return[{field:"ASSIGNEE",value:b},{field:"COMMENT",value:"Hi @"+b+", "}]}));this.teamId$.pipe(zf(function(b){return gsd(a.triageService.triageDataFactory.get(b,a.triageViewId),"NEW")}),A(function(b){var c=[].concat(n($rd.fieldsToShow));if(b==null?0:b.length)b=c.findIndex(function(d){return d==="STATUS"}),c.splice(b+1,0,"HOTLISTS");return c}));this.dedupeCanonicalRecommendation$=this.issueId$.pipe(zf(function(b){return Zpd(a.recommendationTriggerService,b)}),
wf({bufferSize:1,refCount:!0}));this.dedupeBatchRecommendation$=this.issueId$.pipe(zf(function(b){return $pd(a.recommendationTriggerService,b)}),wf({bufferSize:1,refCount:!0}));this.dedupeRecommendation$=he([this.dedupeCanonicalRecommendation$,this.dedupeBatchRecommendation$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b!=null?b:c}),wf({bufferSize:1,refCount:!0}));this.triageRecommendation$=this.issueId$.pipe(zf(function(b){return cqd(a.recommendationTriggerService,b)}),
wf({bufferSize:1,refCount:!0}))};Z(m_,LO);m_.\u0275dir=LO.\u0275dir;h=m_.prototype;h.ngOnInit=function(){var a=this;this.subscriptions.add(this.refreshMonitor.getObservable().pipe(Df(this.issueId$)).subscribe(function(b){b=l(b);b.next();b=b.next().value;a.eventsForIssueFridge.poke(b)}))};h.setNeedsInfo=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="NEW";d.triage.subphase="NEEDS_INFO"}),2):c.return(c.yieldResult)})};
h.setConfirmed=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="CONFIRMED";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};h.setPendingOwner=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="CONFIRMED";d.triage.subphase="PENDING_OWNER"}),2):c.return(c.yieldResult)})};
h.setInProgress=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};h.setExpected=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="EXPECTED"}),2):c.return(c.yieldResult)})};
h.setPlanned=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="PLANNED"}),2):c.return(c.yieldResult)})};h.setCommitted=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="COMMITTED"}),2):c.return(c.yieldResult)})};
h.setFixed=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="FIXED";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};h.setNew=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="NEW";d.triage.triagerEmail=void 0;d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};
h.setWontFix=function(a){var b=this;return y(function(c){return c.nextAddress==1?z(c,b.issueExperimentalFieldsFridge.updateOrInsert(a,function(d){d.triage.phase="WONT_FIX";d.triage.triagerEmail=void 0;d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};
h.openSecondaryActionFooter=function(a,b){var c=this;return y(function(d){if(d.nextAddress==1)return a!=="MARK_AS_DUPLICATE"?d.jumpTo(2):z(d,wId(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);$d(d)})};
h.finalizeSecondaryAction=function(a){var b=this,c,d,e;return y(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("If");default:sb(c)}f.jumpTo(13);break;case 2:return z(f,b.setNeedsInfo(d),14);case 14:e=f.yieldResult;f.jumpTo(13);break;case 3:return z(f,b.setConfirmed(d),15);case 15:e=f.yieldResult;f.jumpTo(13);break;case 4:return z(f,b.setPendingOwner(d),16);case 16:e=f.yieldResult;f.jumpTo(13);break;case 5:return z(f,b.setNew(d),17);case 17:e=f.yieldResult;
f.jumpTo(13);break;case 6:return z(f,b.setInProgress(d),18);case 18:e=f.yieldResult;f.jumpTo(13);break;case 7:return z(f,b.setExpected(d),19);case 19:e=f.yieldResult;f.jumpTo(13);break;case 8:return z(f,b.setPlanned(d),20);case 20:e=f.yieldResult;f.jumpTo(13);break;case 9:return z(f,b.setCommitted(d),21);case 21:e=f.yieldResult;f.jumpTo(13);break;case 10:return z(f,b.setFixed(d),22);case 22:e=f.yieldResult;f.jumpTo(13);break;case 11:return z(f,b.setNew(d),23);case 23:e=f.yieldResult;f.jumpTo(13);
break;case 12:return z(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),$d(f)}})};h.announceUpdate=function(a,b){a&&(this.issueFullFridge.poke(b),this.refreshTable.emit())};h.cancelAction=function(){this.selectedTriageAction=void 0;this.displaySecondaryFooter=!1};
var MEb=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return b&&b.length>0&&((c=b)==null||!c.endsWith("@google.com"))?($M(a.errorHandler,"Only Googlers can be triagers."),e.return()):z(e,ee(a.issueId$),2);d=e.yieldResult;return z(e,a.issueExperimentalFieldsFridge.updateOrInsert(d,function(f){f.triage.triagerEmail=b}),0)})};m_.prototype.claim=function(){MEb(this,this.activeSession.getUserEmail());this.analytics.trackEvent("triageIssue","claim")};
m_.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(m_)))(b||m_)}}();
m_.\u0275cmp=C({type:m_,selectors:[["issue-triage-sidebar"]],outputs:{refreshTable:"refreshTable"},features:[Ff],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"],["svgIcon","tab_close_24px","color","primary",1,"margin-xs-right","shrink-0"],[1,"rounded",3,"recommendation"],[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&&(F(0,fFb,19,19,"div",6),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.issueId$))?0:-1,c)}},dependencies:[WZ,XZ,l_,ZA,XA,TA,VA,hK,AK,uK,vK,zK,wK,xW,OZ,YZ,fW,UR,hW,ZZ,XJ,iz,MA,k_,NY,KY,h_,CT,kU,mU,py,nU],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 XPd=function(){var a=this;this.activeSession=q(Zu);this.issueExperimentalFieldsFridge=q(CO);this.triageService=q(KQ);this.currentUserEmail=this.activeSession.getUserEmail();this.issueIds$=this.triageService.currentIssueIds$;this.onToggleClaim$=new Xj(void 0);this.hasUserClaimedIssues$=he([this.issueIds$,this.onToggleClaim$]).pipe(A(function(b){var c=l(b);b=c.next().value;c.next();return b}),zf(function(b){return a.issueExperimentalFieldsFridge.watchSet(b)}),A(function(b){return b.every(function(c){var d;
return((d=c.triage)==null?void 0:d.triagerEmail)===a.currentUserEmail})}));this.buttonText$=he([this.hasUserClaimedIssues$]).pipe(A(function(b){return l(b).next().value?"Unclaim":"Claim"}));this.isSaving=!1},gFb=function(a,b,c){var d,e,f;return y(function(g){switch(g.nextAddress){case 1:a.isSaving=!0,d=l(b),e=d.next();case 2:if(e.done){g.jumpTo(4);break}f=e.value;return z(g,a.issueExperimentalFieldsFridge.updateOrInsert(f,function(k){k.triage.triagerEmail=c?void 0:a.currentUserEmail}),3);case 3:e=
d.next();g.jumpTo(2);break;case 4:a.isSaving=!1,a.onToggleClaim$.next(),$d(g)}})};XPd.\u0275fac=function(a){return new (a||XPd)};
XPd.\u0275cmp=C({type:XPd,selectors:[["claim-issues-button"]],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&&(F(0,hFb,6,8,"button",0),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.issueIds$))?0:-1,c)}},dependencies:[ZA,XA,TA,py],encapsulation:2,changeDetection:0});var pFb=function(a,b){return b.key},n_=function(){LO.apply(this,arguments);var a=this;this.triageService=q(KQ);this.analytics=q(PO);this.butterBar=q(JM);this.errorHandler=q(ZM);this.issueApi=q(uO);this.issueFridge=q(GO);this.issueFullFridge=q(RO);this.issuePermissionService=q(NP);this.issuePicker=q(pX);this.paramsService=q(JP);this.triagePhaseService=q(OY);this.phaseUrlSlug=this.paramsService.params.phase;this.issueIds$=this.triageService.currentIssueIds$;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;
this.PHASE_TO_ACTIONS=csd;this.TriagePhase=Lhd;this.displaySecondaryFooter=!1;this.issue$=this.issueIds$.pipe(zf(function(b){return a.issueFridge.watch(b[0])}));this.issuePhase$=this.issue$.pipe(A(Ur));this.issuePhaseDisplay$=this.issuePhase$.pipe(A(function(b){var c;return(c=b&&Tt.get(b))!=null?c:""}));this.issues$=this.issueIds$.pipe(zf(function(b){return a.issueFridge.watchSet(b)}));this.issueSubphases$=this.issues$.pipe(A(function(b){return b.map(function(c){return Vr(c)}).filter(function(c){return c!==
void 0})}));this.issueSubphasesDisplay$=this.issueSubphases$.pipe(A(function(b){b=b.map(function(c){var d;return(d=ord[c])!=null?d:""});return Oq(b)}));this.refreshTable=new KO};Z(n_,LO);n_.\u0275dir=LO.\u0275dir;h=n_.prototype;
h.openDupeDialog=function(){var a=this,b,c,d,e,f,g,k;return y(function(m){switch(m.nextAddress){case 1:return z(m,ee(a.issueIds$),2);case 2:b=m.yieldResult;if(!b||!b.length)return m.return();c=SWa;return z(m,ee(a.issueFridge.watchSet(b)),3);case 3:return d=c(m.yieldResult),e=l,z(m,a.issuePicker.open({componentId:d||null,allowMultipleIds:!1,currentResource:{id:b[0],type:"issue"},edgeType:"canonical",originIsBulk:!0}),4);case 4:return f=e(m.yieldResult),(k=g=f.next().value)?z(m,a.markAsDuplicate(k,
b),0):m.return()}})};h.openSecondaryActionFooter=function(a){var b=this;return y(function(c){if(c.nextAddress==1)return a!=="MARK_AS_DUPLICATE"?c.jumpTo(2):z(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;$d(c)})};h.cancelAction=function(){this.displaySecondaryFooter=!1};h.closeSidebar=function(){this.triageService.closeSidebar();this.triageService.setMode(0)};
h.finalizeSecondaryAction=function(a){var b=this,c,d;return y(function(e){if(e.nextAddress==1){if(!b.selectedTriageAction)return e.return();c=b.selectedTriageAction;return z(e,$Ld(b.triagePhaseService,a,c),2)}d=e.yieldResult;b.displaySecondaryFooter=!1;b.announceUpdate(a,d);$d(e)})};
h.markAsDuplicate=function(a,b){var c=this,d,e,f;return y(function(g){if(g.nextAddress==1){d=b.filter(function(k){return k!==a});if(!d.length)return g.return();e={bulkEditOps:[{actions:[{fieldName:"duplicateOfIssueId",value:a}],issueIds:b}]};Vd(g,2);fs(c.butterBar,"Saving...");return z(g,c.issueApi.issueBulkEdit(e),4)}if(g.nextAddress!=2)return fs(c.butterBar,"Marked "+b.length+" issues as duplicate."),c.announceUpdate(b),c.closeSidebar(),bk(g,0);f=Zd(g);aN(c.errorHandler,f);return z(g,Promise.all([].concat(n(b.map(function(k){return c.issueFridge.poke(k)})),
[c.issueFridge.poke(a)])),0)})};h.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()};n_.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(n_)))(b||n_)}}();
n_.\u0275cmp=C({type:n_,selectors:[["selection-triage-sidebar"]],outputs:{refreshTable:"refreshTable"},features:[Ff],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&&(K(0,"div",0)(1,"div",1),F(2,iFb,5,1,"div",2),U(3,"async"),F(4,lFb,1,1),U(5,
"async"),K(6,"button",3),N("click",function(){return b.closeSidebar()}),M(7,"mat-icon",4),L()(),K(8,"div",5)(9,"h3",6),S(10),U(11,"async"),L(),K(12,"div",7),F(13,sFb,2,3),U(14,"async"),L()()());if(a&2){var c,d,e,f;B(2);G((c=W(3,4,b.issuePhaseDisplay$))?2:-1,c);B(2);G((d=W(5,6,b.issueSubphasesDisplay$))?4:-1,d);B(6);T("",(e=W(11,8,b.issueIds$))==null?null:e.length," issues");B(3);G((f=W(14,10,b.issueIds$))?13:-1,f)}},dependencies:[XPd,ZA,XA,TA,VA,hK,iz,MA,NY,CT,py],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 YPd=function(){};YPd.\u0275fac=function(a){return new (a||YPd)};YPd.\u0275mod=$e({type:YPd});YPd.\u0275inj=Dc({imports:[FN,ZA,SW,IV]});var o_=function(){};o_.\u0275fac=function(a){return new (a||o_)};o_.\u0275mod=$e({type:o_});o_.\u0275inj=Dc({imports:[dX,FN,ZA,fX,AK,iK,YPd,NX]});var ZPd=function(){};ZPd.\u0275fac=function(a){return new (a||ZPd)};ZPd.\u0275mod=$e({type:ZPd});ZPd.\u0275inj=Dc({imports:[FN,ZA,tV,uV]});var p_=function(){};p_.\u0275fac=function(a){return new (a||p_)};p_.\u0275mod=$e({type:p_});p_.\u0275inj=Dc({imports:[FN,ZA,AK,ZPd,vV]});var q_=function(){};q_.\u0275fac=function(a){return new (a||q_)};q_.\u0275mod=$e({type:q_});q_.\u0275inj=Dc({imports:[FN]});var r_=function(){};r_.\u0275fac=function(a){return new (a||r_)};r_.\u0275mod=$e({type:r_});r_.\u0275inj=Dc({imports:[FN,AK,q_,p_,ZA,pV,qV]});var s_=function(){};s_.\u0275fac=function(a){return new (a||s_)};s_.\u0275mod=$e({type:s_});s_.\u0275inj=Dc({imports:[FN,vU,yY,zY]});var t_=function(){this.elementRef=q(Gd);this.autocompleteConfigService=q(gV);this.darkmodeService=q(fV);this.refresh$=se(this.darkmodeService.clientDarkmode$).pipe(A(function(){}));this.name=this.email=this.ariaLabel="";this.cdkFocusInitial=this.disabled=this.required=this.asMatInput=!1;this.emailChange=new KO;this.sessionOptions=(new Ev).setFilter(jBd);this.id="peoplekit-single-"+t_.nextId++;this.stateChanges=new rf;this.placeholderInternal="";this.ngControl=null;this.errorState=this.focused=!1;
this.controlType="peoplekit-single";this.controlValue="";this.describedByIds=[]};t_.prototype.getConfig=function(){return Ugb(this.autocompleteConfigService)};var tFb=function(a,b){b.length>0&&a.emailChange.emit(b[0].result().getPrimaryTarget().getValue())};t_.prototype.onFocusIn=function(){this.focused||(this.focused=!0,this.stateChanges.next())};var uFb=function(a,b){a.elementRef.nativeElement.contains(b.relatedTarget)||(a.focused=!1,a.stateChanges.next())};
t_.prototype.setDescribedByIds=function(a){this.describedByIds=a;this.stateChanges.next()};t_.prototype.onContainerClick=function(){};
da.Object.defineProperties(t_.prototype,{placeholder:{configurable:!0,enumerable:!0,get:function(){return this.placeholderInternal},set:function(a){this.placeholderInternal=a;this.stateChanges.next()}},value:{configurable:!0,enumerable:!0,set:function(a){this.email=a!=null?a:"";this.stateChanges.next()},get:function(){return this.email}},shouldLabelFloat:{configurable:!0,enumerable:!0,get:function(){return this.focused||!this.empty}},empty:{configurable:!0,enumerable:!0,get:function(){return!this.email}}});
t_.nextId=0;t_.\u0275fac=function(a){return new (a||t_)};
t_.\u0275cmp=C({type:t_,selectors:[["b-peoplekit-single"]],hostVars:1,hostBindings:function(a,b){a&2&&Rf("id",b.id)},inputs:{ariaLabel:"ariaLabel",email:"email",name:"name",asMatInput:"asMatInput",required:"required",disabled:"disabled",cdkFocusInitial:"cdkFocusInitial",placeholder:"placeholder"},outputs:{emailChange:"emailChange"},features:[Ig([{provide:wB,useExisting:t_}])],decls:1,vars:1,consts:[[3,"refreshable"],["matInput","","type","text","autocomplete","off","peoplekitAutocomplete","",3,"name",
"required","placeholder","disabled","ngModel","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","peoplekitAutocompleteInputSearchDelay"],["type","text","autocomplete","off","peoplekitAutocomplete","",3,"name","required","placeholder","disabled","ngModel","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","peoplekitAutocompleteInputSearchDelay"],["matInput","","type","text","autocomplete","off","peoplekitAutocomplete","",3,"ngModelChange","peoplekitAutocompleteSelectionChange",
"focusin","focusout","name","required","placeholder","disabled","ngModel","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","peoplekitAutocompleteInputSearchDelay"],["type","text","autocomplete","off","peoplekitAutocomplete","",3,"ngModelChange","peoplekitAutocompleteSelectionChange","focusin","focusout","name","required","placeholder","disabled","ngModel","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","peoplekitAutocompleteInputSearchDelay"]],template:function(a,b){a&1&&
E(0,xFb,2,1,"ng-template",0);a&2&&I("refreshable",b.refresh$)},dependencies:[mC,xi,PB,hC,WB,qC,EB,oC,rW,kT],styles:["input[_ngcontent-%COMP%] { width: 100%; }"],changeDetection:0});var u_=function(){};u_.\u0275fac=function(a){return new (a||u_)};u_.\u0275mod=$e({type:u_});u_.\u0275inj=Dc({imports:[FN,mC,oT,TW,qC,lV,t_]});var $Pd=new bd("SearchBarClientConfig");var aQd=function(a){var b=new vBd;a.peopleApiEnv&&b.setPeopleApiEnv(a.peopleApiEnv);a.apiKey&&b.setApiKey(a.apiKey);this.peopleStore=a.peopleStoreClient.create(b);this.peopleStore.warmUpCache();this.environmentConfig=new mBd(b.getPeopleApiEnv(),new nBd(""))};aQd.\u0275fac=function(a){return new (a||aQd)(Wc($Pd))};aQd.\u0275prov=Cc({token:aQd,factory:aQd.\u0275fac});var v_=function(){};v_.\u0275fac=function(a){return new (a||v_)};v_.\u0275mod=$e({type:v_});v_.\u0275inj=Dc({imports:[xy]});var bQd=[mV],w_=function(){};w_.\u0275fac=function(a){return new (a||w_)};w_.\u0275mod=$e({type:w_});w_.\u0275inj=Dc({imports:[FN,mC,ZA,DB,xT,v_,s_,u_,bQd]});var cQd=function(){};cQd.\u0275fac=function(a){return new (a||cQd)};cQd.\u0275mod=$e({type:cQd});cQd.\u0275inj=Dc({providers:[{provide:dJd,useFactory:function(){return new aJd}}]});var dQd=function(){};dQd.\u0275fac=function(a){return new (a||dQd)};dQd.\u0275mod=$e({type:dQd});dQd.\u0275inj=Dc({imports:[xy,cQd]});var x_=function(){};x_.\u0275fac=function(a){return new (a||x_)};x_.\u0275mod=$e({type:x_});x_.\u0275inj=Dc({providers:[{provide:cJd,useFactory:dY}],imports:[FN,ZA,iK,dQd,sU,lY,cY,fY]});var eQd=function(){};eQd.\u0275fac=function(a){return new (a||eQd)};eQd.\u0275mod=$e({type:eQd});eQd.\u0275inj=Dc({imports:[FN,ZA,iK,pY]});var y_=function(){};y_.\u0275fac=function(a){return new (a||y_)};y_.\u0275mod=$e({type:y_});y_.\u0275inj=Dc({imports:[FN,oY,xT,iK,ZT,tT,x_,ZA,eQd,qY]});var z_=function(){};z_.\u0275fac=function(a){return new (a||z_)};z_.\u0275mod=$e({type:z_});z_.\u0275inj=Dc({imports:[FN,ZA,OJ,iK,xT,OX]});var A_=function(){};A_.\u0275fac=function(a){return new (a||A_)};A_.\u0275mod=$e({type:A_});A_.\u0275inj=Dc({imports:[z_,FN,o_,xT,ZA,pB,OJ,iK,UW,PK,PX]});var B_=function(){};B_.\u0275fac=function(a){return new (a||B_)};B_.\u0275mod=$e({type:B_});B_.\u0275inj=Dc({imports:[FN,RW,iK,AK,A_,rY]});var C_=function(){};C_.\u0275fac=function(a){return new (a||C_)};C_.\u0275mod=$e({type:C_});C_.\u0275inj=Dc({});var D_=function(){};D_.\u0275fac=function(a){return new (a||D_)};D_.\u0275mod=$e({type:D_});D_.\u0275inj=Dc({imports:[ZT,y_,tT,FN,SW,mC,gT,ZA,PK,C_,B_,VW,sY]});var fQd=function(){};fQd.\u0275fac=function(a){return new (a||fQd)};fQd.\u0275mod=$e({type:fQd});fQd.\u0275inj=Dc({});var gQd=function(){};gQd.\u0275fac=function(a){return new (a||gQd)};gQd.\u0275mod=$e({type:gQd});gQd.\u0275inj=Dc({imports:[xy,$I,UT,XU,Dz,fQd]});var E_=function(){};E_.\u0275fac=function(a){return new (a||E_)};E_.\u0275mod=$e({type:E_});E_.\u0275inj=Dc({imports:[eU,FN,ZU,JY,AK,aT,sU,iK,ZA,PU,gQd,vU,xT,RU,QU,w_,tY]});var F_=function(){};F_.\u0275fac=function(a){return new (a||F_)};F_.\u0275mod=$e({type:F_});F_.\u0275inj=Dc({imports:[eU,sU,FN,BU,JY,gT,aT,sU,vU,s_,KY]});var hQd=[LY,MY,XPd,bV,CV,NY,nV],iQd=function(){};iQd.\u0275fac=function(a){return new (a||iQd)};iQd.\u0275mod=$e({type:iQd});iQd.\u0275inj=Dc({imports:[FN,oY,o_,aV,BU,mC,ZA,PK,OJ,qT,iK,gT,r_,p_,AK,bT,YW,ZU,kS,E_,w_,D_,F_,XS,vU,DD,hQd]});var jQd=function(){};jQd.\u0275fac=function(a){return new (a||jQd)};jQd.\u0275mod=$e({type:jQd});jQd.\u0275inj=Dc({});var kQd=function(){};kQd.\u0275fac=function(a){return new (a||kQd)};kQd.\u0275mod=$e({type:kQd});kQd.\u0275inj=Dc({imports:[FN]});var G_=function(){};G_.\u0275fac=function(a){return new (a||G_)};G_.\u0275mod=$e({type:G_});G_.\u0275inj=Dc({imports:[FN,ZA,qA,jZ]});var lQd=[yZ],mQd=function(){};mQd.\u0275fac=function(a){return new (a||mQd)};mQd.\u0275mod=$e({type:mQd});mQd.\u0275inj=Dc({imports:[FN,NZ,tT,GU,G_,xT,ZA,pB,iK,AK,xZ,vU,XS,EV,lQd]});var H_=function(){};H_.\u0275fac=function(a){return new (a||H_)};H_.\u0275mod=$e({type:H_});H_.\u0275inj=Dc({imports:[FN,OJ,ZA,pB,YJ,DB,dK,iK,GW,kS,PK,mC,EV,rX,sX,zZ,MZ,LZ]});var I_=function(){};I_.\u0275fac=function(a){return new (a||I_)};I_.\u0275mod=$e({type:I_});I_.\u0275inj=Dc({imports:[mQd,jQd,FN,NZ,kQd,xT,ZA,iK,H_,EV,BZ]});var nQd=Promise;var oQd=function(a){this.channelPromise=a};oQd.prototype.send=function(a,b,c){this.channelPromise.then(function(d){d.send(a,b,c)})};var pQd=function(a,b){this.data=a;this.channel=b};var qQd=function(a){this.port_=a};qQd.prototype.send=function(a,b,c){c=c===void 0?[]:c;var d=new MessageChannel;rQd(d.port1,b);this.port_.postMessage(a,[d.port2].concat(c))};var sQd=function(a,b){rQd(a,b);return new qQd(a)},rQd=function(a,b){b&&(a.onmessage=function(c){b(new pQd(c.data,sQd(c.ports[0])))})};var tQd=function(a){this.verifier_=a};tQd.prototype.verify=function(a){return this.verifier_(a)};var uQd=function(a){var b=Object.create(null);(typeof a==="string"?[a]:a).forEach(function(c){if(c==="null")throw Error("lg");b[c]=!0});return function(c){return b[c]===!0}};var wQd=function(a){var b=a.destination;var c=a.iframe;var d=a.origin;var e=a.channelName===void 0?"ZNWN1d":a.channelName;var f=a.onMessage===void 0?void 0:a.onMessage;a=a.onEstablished===void 0?void 0:a.onEstablished;return vQd({destination:b,getSource:function(){return c.contentWindow},originVerifier:d instanceof tQd?d:typeof d==="function"?new tQd(d):new tQd(uQd(d)),channelName:e,onMessage:f,onEstablished:a})},vQd=function(a){var b=a.destination;var c=a.getSource;var d=a.originVerifier;var e=a.token===
void 0?void 0:a.token;var f=a.channelName;var g=a.onMessage===void 0?void 0:a.onMessage;var k=a.onEstablished===void 0?void 0:a.onEstablished;return new oQd(new nQd(function(m,r){var w=function(x){x.source&&x.source===c()&&d.verify(x.origin)&&(x.data.n||x.data)===f&&(b.removeEventListener("message",w,!1),e&&x.data.t!==e?r(Error("mg`"+f+"`"+e+"`"+x.data.t)):(m(sQd(x.ports[0],g)),k&&k(x)))};b.addEventListener("message",w,!1)}))};var xQd=Pw(["https://duckie.corp.google.com"]),yQd=["duckieIframe"],zQd=Jh(xQd),J_=function(){LO.apply(this,arguments);this.duckieUrl=zQd;this.llmChatService=q(CZ);this.darkModeService=q(fV);this.origin=window.location.origin};Z(J_,LO);J_.\u0275dir=LO.\u0275dir;
J_.prototype.ngAfterViewInit=function(){var a=this,b,c;return y(function(d){if(d.nextAddress==1)return(0,Lh.setIframeSrcWithIntent)(a.iframe.nativeElement,Lh.IframeIntent.EMBEDDED_INTERNAL_CONTENT,rra(a.duckieUrl,new Map([["conversationAgentId","a2a:buganizer_agent"],["origin",a.origin]]))),a.channel=wQd({channelName:"duckie-web-iframe",destination:window,iframe:a.iframe.nativeElement,origin:a.duckieUrl.toString()}),b=a,c=b.sendAppProvidedContext,z(d,ee(a.llmChatService.contextValuesForDuckieRag$),
2);c.call(b,d.yieldResult);a.darkModeService.clientDarkmode$.pipe(Af(a.destroyed$)).subscribe(function(e){var f,g={};(f=a.channel)==null||f.send((g.IsDarkMode=e,g))});$d(d)})};J_.prototype.sendAppProvidedContext=function(a){var b,c={};(b=this.channel)==null||b.send((c.AppProvidedContext=DKc(a),c))};J_.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(J_)))(b||J_)}}();
J_.\u0275cmp=C({type:J_,selectors:[["b-duckie-chat"]],viewQuery:function(a,b){a&1&&kg(yQd,5);if(a&2){var c;og(c=pg())&&(b.iframe=c.first)}},features:[Ff],decls:2,vars:0,consts:[["duckieIframe",""],["allow","clipboard-write","frameborder","0",1,"duckie-iframe-element"]],template:function(a){a&1&&Uf(0,"iframe",1,0)},styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%}.duckie-iframe-element[_ngcontent-%COMP%]{height:100%;width:100%}"],changeDetection:0});var AQd=function(){};AQd.\u0275fac=function(a){return new (a||AQd)};AQd.\u0275mod=$e({type:AQd});AQd.\u0275inj=Dc({imports:[FN]});var K_=function(){var a=this;this.useExperimentalOrcasAgent=!0;this.isDarkMode=qg.apply(null,[!1].concat(n([])));this.query=qg.apply(null,[""].concat(n([])));this.isLoading=qg.apply(null,[!0].concat(n([])));this.destroyRef=q(Be);this.darkModeService=q(fV);this.llmChatService=q(CZ);this.contextValues$=this.llmChatService.contextValuesForDuckieRag$;q(hz).setDefaultFontSetClass("material-icons");this.darkModeService.clientDarkmode$.pipe(oj(this.destroyRef)).subscribe(function(b){a.isDarkMode.set(b)})};
K_.prototype.ngOnInit=function(){var a=this;setTimeout(function(){a.isLoading.set(!1)},250)};K_.\u0275fac=function(a){return new (a||K_)};
K_.\u0275cmp=C({type:K_,selectors:[["gpp-chat"]],decls:1,vars:1,consts:[[3,"useExperimentalOrcasAgent","isDarkMode","query","contextValues"]],template:function(a,b){a&1&&F(0,yFb,2,6,"gpp-agent-chat",0);a&2&&G(b.isLoading()?-1:0)},dependencies:[GL,py],styles:['@import url(https://fonts.googleapis.com/icon?family=Material+Icons);@import url(https://fonts.googleapis.com/css2?family=Google+Symbols);[_nghost-%COMP%]     .full-width{width:100%}[_nghost-%COMP%]     .full-height{height:100%}[_nghost-%COMP%]     body .bg-page-bg{background-color:var(--page-bg)}[_nghost-%COMP%]     body .bg-surface-default{background-color:var(--surface-default)}[_nghost-%COMP%]     body .bg-surface-container{background-color:var(--surface-container)}[_nghost-%COMP%]     body .bg-primary-container{background-color:var(--primary-container)}[_nghost-%COMP%]     .bordered{border:1px solid var(--hairline)}[_nghost-%COMP%]     .border-bottom{border-bottom:1px solid var(--hairline)}[_nghost-%COMP%]     .border-top{border-top:1px solid var(--hairline)}[_nghost-%COMP%]     body .text-secondary{color:var(--text-secondary)}[_nghost-%COMP%]     body .text-high-contrast{color:var(--text-high-contrast)}[_nghost-%COMP%]     .italic{font-style:italic}[_nghost-%COMP%]     .bold{font-weight:700}[_nghost-%COMP%]     .medium{font-weight:500}[_nghost-%COMP%]     .font-google-sans{font-family:Google Sans,sans-serif}[_nghost-%COMP%]     .font-roboto{font-family:Roboto,sans-serif}[_nghost-%COMP%]     .type-s{font-size:calc(var(--base-px, 1rem)*13)}[_nghost-%COMP%]     .type-xs{font-size:calc(var(--base-px, 1rem)*12)}[_nghost-%COMP%]     .text-center{text-align:center}[_nghost-%COMP%]     .font-google-sans-text{font-family:Google Sans Text,Helvetica,Arial}[_nghost-%COMP%]     .font-google-symbols{font-family:Google Symbols}[_nghost-%COMP%]     .rounded{border-radius:16px}[_nghost-%COMP%]     .rounded-full{border-radius:10000px}[_nghost-%COMP%]     .rounded-s{border-radius:8px}[_nghost-%COMP%]     .rounded-xs{border-radius:4px}[_nghost-%COMP%]     .flex-column{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}[_nghost-%COMP%]     .flex-row{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}[_nghost-%COMP%]     .flex-row-wrap{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-moz-box-orient:horizontal;-moz-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap}[_nghost-%COMP%]     .flex-spacer{-webkit-box-flex:1;-webkit-flex:1 1 auto;-moz-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}[_nghost-%COMP%]     .align-items-center{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}[_nghost-%COMP%]     .align-items-flex-start{-webkit-box-align:start;-webkit-align-items:flex-start;-moz-box-align:start;-ms-flex-align:start;align-items:flex-start}[_nghost-%COMP%]     .align-self-center{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}[_nghost-%COMP%]     .justify-content-flex-end{-webkit-box-pack:end;-webkit-justify-content:flex-end;-moz-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}[_nghost-%COMP%]     .justify-content-space-between{-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}[_nghost-%COMP%]     .justify-content-center{-webkit-box-pack:center;-webkit-justify-content:center;-moz-box-pack:center;-ms-flex-pack:center;justify-content:center}[_nghost-%COMP%]     .gap{gap:16px}[_nghost-%COMP%]     .gap-s{gap:8px}[_nghost-%COMP%]     .gap-xs{gap:4px}[_nghost-%COMP%]     .spacer{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}[_nghost-%COMP%]     .margin{margin:16px}[_nghost-%COMP%]     .margin-top{margin-top:16px}[_nghost-%COMP%]     .margin-s-top{margin-top:8px}[_nghost-%COMP%]     .margin-xs-top{margin-top:4px}[_nghost-%COMP%]     .margin-bottom{margin-bottom:16px}[_nghost-%COMP%]     .margin-s-bottom{margin-bottom:8px}[_nghost-%COMP%]     .margin-xs-bottom{margin-bottom:4px}[_nghost-%COMP%]     .margin-left{margin-left:16px}[_nghost-%COMP%]     .margin-s-left{margin-left:8px}[_nghost-%COMP%]     .margin-xs-left{margin-left:4px}[_nghost-%COMP%]     .margin-right{margin-right:16px}[_nghost-%COMP%]     .margin-s-right{margin-right:8px}[_nghost-%COMP%]     .margin-xs-right{margin-right:4px}[_nghost-%COMP%]     .margin-y{margin-top:16px;margin-bottom:16px}[_nghost-%COMP%]     .margin-s-y{margin-top:8px;margin-bottom:8px}[_nghost-%COMP%]     .margin-xs-y{margin-top:4px;margin-bottom:4px}[_nghost-%COMP%]     .margin-x{margin-left:16px;margin-right:16px}[_nghost-%COMP%]     .margin-s-x{margin-left:8px;margin-right:8px}[_nghost-%COMP%]     .margin-auto-y{margin-top:auto;margin-bottom:auto}[_nghost-%COMP%]     .margin-auto-x{margin-left:auto;margin-right:auto}[_nghost-%COMP%]     .padded{padding:16px}[_nghost-%COMP%]     .padded-s{padding:8px}[_nghost-%COMP%]     .padded-xs{padding:4px}[_nghost-%COMP%]     .padded-xxs{padding:2px}[_nghost-%COMP%]     .padded-top{padding-top:16px}[_nghost-%COMP%]     .padded-s-top{padding-top:8px}[_nghost-%COMP%]     .padded-xs-top{padding-top:4px}[_nghost-%COMP%]     .padded-s-y{padding-bottom:8px;padding-top:8px}[_nghost-%COMP%]     .padded-xs-x{padding-left:4px;padding-right:4px}[_nghost-%COMP%]     .padded-s-x{padding-left:8px;padding-right:8px}[_nghost-%COMP%]     .padded-m-left{padding-left:24px}[_nghost-%COMP%]     .padded-left{padding-left:16px}[_nghost-%COMP%]     .padded-s-left{padding-left:8px}[_nghost-%COMP%]     .padded-xs-left{padding-left:4px}[_nghost-%COMP%]     .padded-right{padding-right:16px}[_nghost-%COMP%]     .padded-s-right{padding-right:8px}[_nghost-%COMP%]     .padded-xs-bottom{padding-bottom:4px}[_nghost-%COMP%]     .padded-s-bottom{padding-bottom:8px}[_nghost-%COMP%]     .width-almost-full{width:90%}[_nghost-%COMP%]     body .gmat-mdc-button.mat-mdc-button-base.small{--mat-icon-button-state-layer-size:24px;--mat-icon-button-icon-size:24px;line-height:24px}[_nghost-%COMP%]     body .gmat-mdc-button.mat-mdc-button-base.medium{--mat-icon-button-state-layer-size:32px;--mat-icon-button-icon-size:32px;line-height:32px}[_nghost-%COMP%]     body .mat-icon-button.small{width:24px;height:24px;line-height:24px}[_nghost-%COMP%]     body .mat-icon-button.medium{width:32px;height:32px;line-height:32px}[_nghost-%COMP%]     body .icon-s, [_nghost-%COMP%]     body .icon-s>mat-icon{width:calc(var(--base-px, 1rem)*18);height:calc(var(--base-px, 1rem)*18);font-size:calc(var(--base-px, 1rem)*18)}[_nghost-%COMP%]     body .icon-m, [_nghost-%COMP%]     body .icon-m>mat-icon{width:calc(var(--base-px, 1rem)*20);height:calc(var(--base-px, 1rem)*20);font-size:calc(var(--base-px, 1rem)*20)}[_nghost-%COMP%]     .citation-chip{height:18px;margin-left:6px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[_nghost-%COMP%]     .citation-chip span{font-family:Google Sans;font-size:calc(var(--base-px, 1rem)*11);font-weight:500;margin-right:10px}[_nghost-%COMP%]     .citation-chip mat-icon{font-size:15px;height:15px;width:15px}[_nghost-%COMP%]     .dark-mode, [_nghost-%COMP%]     .light-mode, [_nghost-%COMP%]     :root{--gm3-border-radius:16px;--mat-app-elevation-shadow-level-8:0 5px 5px -3px var(--elevation),0 8px 10px 1px var(--elevation),0 3px 14px 2px var(--elevation);--mat-fab-extended-container-shape:var(--gm3-border-radius);--mat-button-filled-container-shape:var(--gm3-border-radius);--mat-button-outlined-container-shape:var(--gm3-border-radius);--mat-button-protected-container-shape:var(--gm3-border-radius);--mat-button-text-container-shape:var(--gm3-border-radius);--mat-fab-extended-container-height:56px;--mat-fab-disabled-state-container-color:var(--button-disabled-bg);--mat-fab-disabled-state-foreground-color:var(--button-disabled-text);--mat-form-field-outlined-label-text-color:var(--text-default);--mat-form-field-outlined-input-text-color:var(--text-default);--mat-form-field-outlined-outline-color:var(--hairline);--mat-form-field-outlined-focus-outline-color:var(--primary-default);--mat-form-field-outlined-focus-label-text-color:var(--primary-default);--mat-form-field-outlined-hover-outline-color:var(--text-high-contrast);--mat-form-field-outlined-hover-label-text-color:var(--text-high-contrast)}[_nghost-%COMP%]     .dark-mode .gmat-mdc-list, [_nghost-%COMP%]     .light-mode .gmat-mdc-list, [_nghost-%COMP%]     :root .gmat-mdc-list{--mat-list-list-item-disabled-label-text-color:var(--text-secondary);--mat-list-list-item-label-text-font:Google Sans,Roboto;--mat-list-list-item-label-text-weight:500}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-fab:not([disabled]).mat-primary.gmat-mdc-fab-fill, [_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-fab:not([disabled]).mat-primary.gmat-mdc-fab-fill.mat-mdc-extended-fab{background-color:var(--primary-container);color:var(--on-primary-container);box-shadow:none}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-fab:not([disabled]).mat-primary.gmat-mdc-fab-fill.mat-mdc-extended-fab:focus, [_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-fab:not([disabled]).mat-primary.gmat-mdc-fab-fill.mat-mdc-extended-fab:hover, [_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-fab:not([disabled]).mat-primary.gmat-mdc-fab-fill:focus, [_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-fab:not([disabled]).mat-primary.gmat-mdc-fab-fill:hover{box-shadow:0 0 8px 0 var(--elevation)}[_nghost-%COMP%]     .cdk-overlay-container .mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-below{pointer-events:none}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-button-base{white-space:nowrap}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-button-base .mat-mdc-button-touch-target{width:100%;height:100%}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-button-base.mat-mdc-icon-button{padding:0}[_nghost-%COMP%]     .gmat-mdc-button.mat-mdc-button-base.mat-mdc-icon-button .mat-icon{vertical-align:middle}[_nghost-%COMP%]     .google-material-icons{font-family:Google Symbols}[_nghost-%COMP%]     .mat-icon{height:24rem;width:24rem}[_nghost-%COMP%]     .material-icons{font-size:24rem}[_nghost-%COMP%]     .mat-tooltip:not(false){line-height:120%;font-size:10rem}[_nghost-%COMP%]     .mat-button-toggle.mat-button-toggle{--mat-button-toggle-legacy-label-text-size:16rem}[_nghost-%COMP%]     .mat-slide-toggle .mat-slide-toggle-bar{background-color:var(--slider-off);box-shadow:inset 0 0 3px var(--elevation)}[_nghost-%COMP%]     .mat-slide-toggle.mat-accent.mat-checked .mat-slide-toggle-bar, [_nghost-%COMP%]     .mat-slide-toggle.mat-checked .mat-slide-toggle-bar, [_nghost-%COMP%]     .mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-bar{background-color:var(--slider-toggle-track)}[_nghost-%COMP%]     .mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-bar{background-color:var(--slider-toggle-track-warn)}[_nghost-%COMP%]     .mat-form-field-appearance-fill .mat-form-field-flex{background-color:var(--input-field-bg)}[_nghost-%COMP%]     .mat-form-field-appearance-fill.mat-form-field-disabled .mat-icon, [_nghost-%COMP%]     .mat-form-field-appearance-fill.mat-form-field-disabled .mat-icon-button{color:var(--text-disabled)}[_nghost-%COMP%]     .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{color:var(--text-disabled);background-color:var(--input-field-disabled-bg)}[_nghost-%COMP%]     .mat-icon-button:not([color]){color:var(--icon)}[_nghost-%COMP%]     .mat-icon-button[disabled=true]{color:var(--button-disabled-text)}[_nghost-%COMP%]     .mat-icon-button:not([disabled]):hover .mat-button-focus-overlay{opacity:.08}[_nghost-%COMP%]     .gmat-button .mat-button:not(boost-specificity), [_nghost-%COMP%]     .gmat-button .mat-flat-button:not(boost-specificity), [_nghost-%COMP%]     .gmat-button .mat-raised-button:not(boost-specificity), [_nghost-%COMP%]     .gmat-button .mat-stroked-button:not(boost-specificity), [_nghost-%COMP%]     .gmat-button.mat-button:not(boost-specificity), [_nghost-%COMP%]     .gmat-button.mat-flat-button:not(boost-specificity), [_nghost-%COMP%]     .gmat-button.mat-raised-button:not(boost-specificity), [_nghost-%COMP%]     .gmat-button.mat-stroked-button:not(boost-specificity), [_nghost-%COMP%]     .mat-button:not(boost-specificity), [_nghost-%COMP%]     .mat-flat-button:not(boost-specificity), [_nghost-%COMP%]     .mat-raised-button:not(boost-specificity), [_nghost-%COMP%]     .mat-stroked-button:not(boost-specificity){padding:0 16px;line-height:28px}[_nghost-%COMP%]     .gmat-button .mat-flat-button:not([disabled]):not(false), [_nghost-%COMP%]     .gmat-button .mat-raised-button:not([disabled]):not(false), [_nghost-%COMP%]     .gmat-button.mat-flat-button:not([disabled]):not(false), [_nghost-%COMP%]     .gmat-button.mat-raised-button:not([disabled]):not(false){color:var(--text-inverse)}[_nghost-%COMP%]     .gmat-button .mat-stroked-button.mat-warn:not([disabled]):not(false), [_nghost-%COMP%]     .gmat-button .mat-stroked-button.mat-warn:not(false), [_nghost-%COMP%]     .gmat-button .mat-stroked-button:not([disabled]):not(false), [_nghost-%COMP%]     .gmat-button .mat-stroked-button:not(false), [_nghost-%COMP%]     .gmat-button.mat-stroked-button.mat-warn:not([disabled]):not(false), [_nghost-%COMP%]     .gmat-button.mat-stroked-button.mat-warn:not(false), [_nghost-%COMP%]     .gmat-button.mat-stroked-button:not([disabled]):not(false), [_nghost-%COMP%]     .gmat-button.mat-stroked-button:not(false){border-color:var(--hairline)}[_nghost-%COMP%]     .gmat-button .mat-flat-button.mat-warn:not([disabled]), [_nghost-%COMP%]     .gmat-button .mat-raised-button.mat-warn:not([disabled]), [_nghost-%COMP%]     .gmat-button.mat-flat-button.mat-warn:not([disabled]), [_nghost-%COMP%]     .gmat-button.mat-raised-button.mat-warn:not([disabled]){color:var(--text-inverse)}[_nghost-%COMP%]     .mat-slider-horizontal .mat-slider-ticks{background-image:-webkit-repeating-linear-gradient(left,var(--base-fg),var(--base-fg) 2px,transparent 0,transparent);background-image:repeating-linear-gradient(to right,var(--base-fg),var(--base-fg) 2px,transparent 0,transparent)}[_nghost-%COMP%]     .mat-tab-group.mat-background-accent .mat-tab-label.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-group.mat-background-accent .mat-tab-link.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-group.mat-background-primary .mat-tab-label.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-group.mat-background-primary .mat-tab-link.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-group.mat-background-warn .mat-tab-label.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-group.mat-background-warn .mat-tab-link.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-nav-bar.mat-background-accent .mat-tab-label.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-nav-bar.mat-background-accent .mat-tab-link.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-nav-bar.mat-background-primary .mat-tab-label.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-nav-bar.mat-background-primary .mat-tab-link.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-nav-bar.mat-background-warn .mat-tab-label.mat-tab-disabled .mat-tab-label-content, [_nghost-%COMP%]     .mat-tab-nav-bar.mat-background-warn .mat-tab-link.mat-tab-disabled .mat-tab-label-content{opacity:.4}[_nghost-%COMP%]     .gmat-tabs.mat-primary .mat-tab-label.mat-tab-label-active, [_nghost-%COMP%]     .gmat-tabs.mat-primary .mat-tab-link.mat-tab-label-active{color:var(--primary-default)}[_nghost-%COMP%]     .mat-button-toggle-group{--mat-button-toggle-legacy-text-color:var(--text-default);--mat-button-toggle-legacy-disabled-state-text-color:var(--button-disabled-text);--mat-button-toggle-legacy-disabled-state-background-color:transparent;--mat-button-toggle-legacy-disabled-selected-state-background-color:var(--hover);--mat-button-toggle-legacy-selected-state-background-color:var(--button-selected);--mat-button-toggle-legacy-selected-state-text-color:var(--text-default);--mat-button-toggle-legacy-state-layer-color:var(--button-focused-bg);--mat-button-toggle-text-color:var(--text-default);--mat-button-toggle-background-color:var(--surface-default);--mat-button-toggle-disabled-state-text-color:var(--button-disabled-text);--mat-button-toggle-disabled-state-background-color:transparent;--mat-button-toggle-disabled-selected-state-background-color:var(--hover);--mat-button-toggle-disabled-selected-state-text-color:var(--button-disabled-text);--mat-button-toggle-selected-state-background-color:var(--button-selected);--mat-button-toggle-selected-state-text-color:var(--text-default);--mat-button-toggle-state-layer-color:var(--button-focused-bg);--mat-button-toggle-divider-color:var(--hairline)}[_nghost-%COMP%]     .mat-button-toggle.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:none}[_nghost-%COMP%]     .mat-button-toggle-group-appearance-standard{--elevation:transparent}[_nghost-%COMP%]     .mat-button-toggle-group.mat-button-toggle-group:not([class*=mat-elevation-z]), [_nghost-%COMP%]     .mat-button-toggle-standalone.mat-button-toggle-standalone:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px var(--elevation),0 2px 2px 0 var(--elevation),0 1px 5px 0 var(--elevation)}[_nghost-%COMP%]     .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical), [_nghost-%COMP%]     .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical), [_nghost-%COMP%]     .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(--button-selected)}[_nghost-%COMP%]     .mat-snack-bar-container{background:var(--snackbar-background);color:var(--snackbar-text)}[_nghost-%COMP%]     .mat-simple-snackbar-action{color:var(--snackbar-action-text)}[_nghost-%COMP%]     .mat-tooltip:not(boost-specificity){background:var(--tooltip-bg);color:var(--text-inverse)}[_nghost-%COMP%]     .mat-progress-bar:not(boost-specificity) .mat-progress-bar-background{fill:var(--primary-default);opacity:.4}[_nghost-%COMP%]     .mat-progress-bar:not(boost-specificity) .mat-progress-bar-buffer{background-color:var(--page-bg)}[_nghost-%COMP%]     .mat-progress-bar:not(boost-specificity) .mat-progress-bar-buffer:after{content:"";display:block;height:8em;background:var(--primary-default);opacity:.4}[_nghost-%COMP%]     .mat-progress-bar:not(boost-specificity).mat-warn .mat-progress-bar-background{fill:var(--warn-default);opacity:.4}[_nghost-%COMP%]     .mat-progress-bar:not(boost-specificity).mat-warn .mat-progress-bar-buffer{background-color:var(--page-bg)}[_nghost-%COMP%]     .mat-progress-bar:not(boost-specificity).mat-warn .mat-progress-bar-buffer:after{content:"";display:block;height:8em;background:var(--warn-default);opacity:.4}[_nghost-%COMP%]     a, [_nghost-%COMP%]     a:visited{color:var(--primary-default);text-decoration:none}[_nghost-%COMP%]     .gmat-elevation-z0, [_nghost-%COMP%]     .mat-elevation-z0{border:1px solid var(--hairline);box-shadow:0 0 0 0 var(--elevation),0 0 0 0 var(--elevation);--mat-app-elevation-shadow-level-0:0px 0px 0px 0px var(--elevation),0px 0px 0px 0px var(--elevation)}[_nghost-%COMP%]     .gmat-elevation-z1, [_nghost-%COMP%]     .mat-elevation-z1{box-shadow:0 1px 2px 0 var(--elevation),0 1px 3px 1px var(--elevation);--mat-app-elevation-shadow-level-1:0px 1px 2px 0px var(--elevation),0px 1px 3px 1px var(--elevation)}[_nghost-%COMP%]     .gmat-elevation-z2, [_nghost-%COMP%]     .mat-elevation-z2{box-shadow:0 1px 2px 0 var(--elevation),0 2px 6px 2px var(--elevation);--mat-app-elevation-shadow-level-2:0px 1px 2px 0px var(--elevation),0px 2px 6px 2px var(--elevation)}[_nghost-%COMP%]     .gmat-elevation-z3, [_nghost-%COMP%]     .mat-elevation-z3{box-shadow:0 1px 3px 0 var(--elevation),0 4px 8px 3px var(--elevation);--mat-app-elevation-shadow-level-3:0px 1px 3px 0px var(--elevation),0px 4px 8px 3px var(--elevation)}[_nghost-%COMP%]     .gmat-elevation-z4, [_nghost-%COMP%]     .mat-elevation-z4{box-shadow:0 2px 3px 0 var(--elevation),0 6px 10px 4px var(--elevation);--mat-app-elevation-shadow-level-4:0px 2px 3px 0px var(--elevation),0px 6px 10px 4px var(--elevation)}[_nghost-%COMP%]     .gmat-elevation-z5, [_nghost-%COMP%]     .mat-elevation-z5{box-shadow:0 4px 4px 0 var(--elevation),0 8px 12px 6px var(--elevation);--mat-app-elevation-shadow-level-5:0px 4px 4px 0px var(--elevation),0px 8px 12px 6px var(--elevation)}[_nghost-%COMP%]     .cdk-overlay-backdrop.cdk-overlay-dark-backdrop{background:var(--overlay-backdrop)}[_nghost-%COMP%]     .mat-stepper-horizontal, [_nghost-%COMP%]     .mat-stepper-vertical{--mat-stepper-header-icon-foreground-color:var(--text-inverse);--mat-stepper-header-selected-state-icon-background-color:var(--primary-default);--mat-stepper-header-selected-state-icon-foreground-color:var(--text-inverse);--mat-stepper-header-done-state-icon-background-color:var(--primary-default);--mat-stepper-header-done-state-icon-foreground-color:var(--text-inverse);--mat-stepper-header-edit-state-icon-background-color:var(--primary-default);--mat-stepper-header-edit-state-icon-foreground-color:var(--text-inverse);--mat-stepper-container-color:var(--surface-default);--mat-stepper-line-color:var(--hairline);--mat-stepper-header-hover-state-layer-color:var(--hover);--mat-stepper-header-focus-state-layer-color:var(--hover);--mat-stepper-header-label-text-color:var(--text-secondary);--mat-stepper-header-optional-label-text-color:var(--text-secondary);--mat-stepper-header-selected-state-label-text-color:var(--text-default);--mat-stepper-header-error-state-label-text-color:var(--warn-default);--mat-stepper-header-icon-background-color:var(--text-secondary);--mat-stepper-header-error-state-icon-foreground-color:var(--warn-default);--mat-stepper-header-error-state-icon-background-color:transparent}[_nghost-%COMP%]     .mat-expansion-panel{--mat-expansion-container-background-color:var(--surface-default);--mat-expansion-container-text-color:var(--text-default);--mat-expansion-header-text-color:var(--text-default);--mat-expansion-header-description-color:var(--text-secondary);--mat-expansion-header-indicator-color:var(--text-secondary)}[_nghost-%COMP%]     .mat-expansion-panel.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px var(--elevation),0 2px 2px 0 var(--elevation),0 1px 5px 0 var(--elevation)}[_nghost-%COMP%]     .mat-drawer-container{--mat-sidenav-content-background-color:var(--page-bg);--mat-sidenav-content-text-color:var(--text-default);--mat-sidenav-container-background-color:var(--surface-default);--mat-sidenav-container-text-color:var(--text-default);--mat-sidenav-container-divider-color:var(--hairline)}[_nghost-%COMP%]     .mat-drawer-container .mat-drawer-backdrop.mat-drawer-shown{background-color:var(--surface-default);opacity:.6}[_nghost-%COMP%]     .mat-bottom-sheet-container{--mat-bottom-sheet-container-background-color:var(--surface-default);--mat-bottom-sheet-container-text-color:var(--text-default)}[_nghost-%COMP%]     .mat-bottom-sheet-container.mat-bottom-sheet-container{box-shadow:0 8px 10px -5px var(--elevation),0 16px 24px 2px var(--elevation),0 6px 30px 5px var(--elevation)}[_nghost-%COMP%]     .mat-toolbar{--mat-toolbar-container-background-color:var(--app-bar-bg);--mat-toolbar-container-text-color:var(--text-default)}[_nghost-%COMP%]     .mat-badge-content{--mat-badge-background-color:var(--primary-default);--mat-badge-text-color:var(--text-inverse)}[_nghost-%COMP%]     .mat-badge-warn .mat-badge-content{--mat-badge-background-color:var(--warn-default)}[_nghost-%COMP%]     .mat-divider{--mat-divider-color:var(--hairline)}[_nghost-%COMP%]     .mat-date-range-input{--mat-datepicker-range-input-separator-color:var(--text-default);--mat-datepicker-range-input-disabled-state-separator-color:var(--text-disabled);--mat-datepicker-range-input-disabled-state-text-color:var(--text-disabled)}[_nghost-%COMP%]     .mat-calendar{--mat-datepicker-calendar-date-text-color:var(--text-default);--mat-datepicker-calendar-period-button-text-color:var(--text-default);--mat-datepicker-calendar-period-button-icon-color:var(--icon);--mat-datepicker-calendar-navigation-button-icon-color:var(--icon);--mat-datepicker-calendar-header-text-color:var(--text-secondary);--mat-datepicker-calendar-body-label-text-color:var(--text-secondary);--mat-datepicker-calendar-date-today-outline-color:var(--hint-text);--mat-datepicker-calendar-date-today-disabled-state-outline-color:var(--text-disabled);--mat-datepicker-calendar-date-selected-state-background-color:var(--primary-default);--mat-datepicker-calendar-date-selected-state-text-color:var(--text-inverse);--mat-datepicker-calendar-date-today-selected-state-outline-color:var(--text-inverse);--mat-datepicker-calendar-date-focus-state-background-color:var(--button-selected);--mat-datepicker-calendar-date-hover-state-background-color:var(--button-selected);--mat-datepicker-calendar-header-divider-color:var(--hairline)}[_nghost-%COMP%]     .mat-datepicker-content{--mat-datepicker-calendar-container-background-color:var(--surface-default);--mat-datepicker-calendar-container-text-color:var(--text-default)}[_nghost-%COMP%]     .mat-datepicker-popup .mat-datepicker-content{box-shadow:0 2px 4px -1px var(--elevation),0 4px 5px 0 var(--elevation),0 1px 10px 0 var(--elevation)}[_nghost-%COMP%]     .mat-datepicker-toggle{--mat-datepicker-toggle-icon-color:var(--icon);--mat-datepicker-toggle-active-state-icon-color:var(--primary-default)}[_nghost-%COMP%]     .mat-tree{--mat-tree-container-background-color:var(--surface-default);--mat-tree-node-text-color:var(--text-default)}[_nghost-%COMP%]     .mat-pseudo-checkbox{--mat-pseudo-checkbox-full-selected-icon-color:var(--primary-default);--mat-pseudo-checkbox-full-selected-checkmark-color:var(--page-bg);--mat-pseudo-checkbox-full-unselected-icon-color:var(--text-secondary);--mat-pseudo-checkbox-full-disabled-selected-checkmark-color:var(--page-bg);--mat-pseudo-checkbox-minimal-selected-checkmark-color:var(--primary-default)}[_nghost-%COMP%]     html{--base-px:1px}[_nghost-%COMP%]     .mat-icon{height:24px;width:24px}[_nghost-%COMP%]     .material-icons{font-size:24px}[_nghost-%COMP%]     .gpp-agent-container .container{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}[_nghost-%COMP%]     .gpp-agent-container .container .gpp-agent-container .chat-container .container .reminder-blurb{padding:12px}[_nghost-%COMP%]     .gpp-agent-container .container>.onboarding, [_nghost-%COMP%]     .gpp-agent-container .container>.thread{box-shadow:none;margin:0;border:0 none}[_nghost-%COMP%]     .gpp-agent-container .container>.onboarding .onboarding-section, [_nghost-%COMP%]     .gpp-agent-container .container>.onboarding .thread-heading, [_nghost-%COMP%]     .gpp-agent-container .container>.thread .onboarding-section, [_nghost-%COMP%]     .gpp-agent-container .container>.thread .thread-heading{padding-left:0;padding-right:0}[_nghost-%COMP%]     .gpp-agent-container .container .use-compact-view.is-user{padding:8px 12px}[_nghost-%COMP%]     .gpp-agent-container .container .message-text.raw-text-only{-webkit-padding-after:0;padding-block-end:0}[_nghost-%COMP%]     .gpp-agent-container .container .message-actions{margin:0}[_nghost-%COMP%]{display:block;height:100%}gpp-agent-chat[_ngcontent-%COMP%]{display:block;height:100%}'],changeDetection:0});var L_=function(){BD.apply(this,arguments)};Z(L_,BD);
L_.prototype.navigate=function(a,b){var c=mNc(a),d=Object.assign({},this.state$.value.params),e=Object.assign({},this.state$.value.queryParams),f=this.state$.value.activeView;if(a.length>0){var g=a[0];if(typeof g==="string")if(g.includes("thread")&&a.length>1&&typeof a[1]==="string")d.id=a[1],f=2;else{if(g.includes("new")){if(this.state$.value.activeView===1)return Promise.resolve(!1);d={}}else g.includes("thread")&&a.length===1&&(d={});f=1}}if(b==null?0:b.queryParams){e=b.queryParamsHandling==="merge"?
Object.assign({},e,b.queryParams):Object.assign({},b.queryParams);for(var k in e)e[k]==null&&delete e[k]}this.events$.next(new xr(this.state$.value.params.id||0,c));this.state$.next({params:d,queryParams:e,activeView:f});this.events$.next(new ck(this.state$.value.params.id||0,c,c));return Promise.resolve(!0)};var lOa=function(a,b,c){return a.navigate(["/thread",b],c)},XNc=function(a){return a.navigate(["/new"],void 0)};L_.prototype.getPrefix=function(){return""};
da.Object.defineProperties(L_.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.state$.pipe(A(function(a){return a.params}))}},queryParams:{configurable:!0,enumerable:!0,get:function(){return this.state$.pipe(A(function(a){return a.queryParams}))}},snapshot:{configurable:!0,enumerable:!0,get:function(){var a=this.state$.value;return{params:a.params,queryParams:a.queryParams}}},events:{configurable:!0,enumerable:!0,get:function(){return this.events$.asObservable()}}});
L_.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(L_)))(b||L_)}}();L_.\u0275prov=Cc({token:L_,factory:L_.\u0275fac,providedIn:"root"});var M_=function(){yD.apply(this,arguments);this.lastDuckieResponse$=new Xj(void 0);this.currentThread$=new Xj(void 0);this.newThread$=new Xj(!1)};Z(M_,yD);M_.prototype.setParentIntegrator=function(a){this.hasParentIntegratorValue=a};var MTc=function(a,b){return y(function(c){a.lastDuckieResponse$.next(b);$d(c)})},rTc=function(a,b){y(function(c){a.currentThread$.next(b);$d(c)})};M_.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(M_)))(b||M_)}}();
M_.\u0275prov=Cc({token:M_,factory:M_.\u0275fac,providedIn:"root"});var BQd=new bd("@ngrx/effects Internal Root Guard"),CQd=new bd("@ngrx/effects User Provided Effects"),IFb=new bd("@ngrx/effects Internal Root Effects"),DQd=new bd("@ngrx/effects Internal Root Effects Instances");new bd("@ngrx/effects Internal Feature Effects");new bd("@ngrx/effects Internal Feature Effects Instance Groups");var EQd=new bd("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:function(){return EFb}});var N_=function(a,b){rf.call(this);this.errorHandler=a;this.effectsErrorHandler=b};Z(N_,rf);N_.create=rf.create;N_.prototype.addEffects=function(a){this.next(a)};
var FQd=function(a){return a.pipe(zla(function(b){return b.constructor&&b.constructor.name!=="Object"&&b.constructor.name!=="Function"?Object.getPrototypeOf(b):b}),ie(function(b){return b.pipe(zla(FFb))}),ie(function(b){var c=b.pipe(xla(function(d){return GFb(a.errorHandler,a.effectsErrorHandler)(d)}),A(function(d){if(d.notification.kind==="N"){var e=d.notification.value;if(typeof e==="function"||!e||!e.type||typeof e.type!=="string"){var f=d.propertyName;var g=d.sourceInstance;var k=d.sourceName;
g=typeof g[f]==="function";f=k?'"'+k+"."+String(f)+(g?"()":"")+'"':'"'+String(f)+'()"';try{var m=JSON.stringify(e)}catch(r){m=e}a.errorHandler.handleError(Error("ng`"+f+"`"+m))}}return d.notification}),te(function(d){return d.kind==="N"&&d.value!=null}),tla());b=b.pipe(mf(1),te(DFb),A(function(d){return d.ngrxOnInitEffects()}));return se(c,b)}))};N_.\u0275fac=function(a){return new (a||N_)(Wc(Qx),Wc(EQd))};N_.\u0275prov=Cc({token:N_,factory:N_.\u0275fac,providedIn:"root"});gk("@ngrx/effects/init");var gu=function(a,b){this.effectSources=a;this.store=b;this.effectsSubscription=null};gu.prototype.start=function(){this.effectsSubscription||(this.effectsSubscription=FQd(this.effectSources).subscribe(this.store))};gu.prototype.ngOnDestroy=function(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)};gu.\u0275fac=function(a){return new (a||gu)(Wc(N_),Wc(eG))};gu.\u0275prov=Cc({token:gu,factory:gu.\u0275fac,providedIn:"root"});var O_=function(a,b,c,d){this.sources=a;b.start();b=l(d);for(d=b.next();!d.done;d=b.next())a.addEffects(d.value);c.dispatch({type:"@ngrx/effects/init"})};O_.prototype.addEffects=function(a){this.sources.addEffects(a)};O_.\u0275fac=function(a){return new (a||O_)(Wc(N_),Wc(gu),Wc(eG),Wc(DQd),Wc(fG,8),Wc(gG,8),Wc(BQd,8))};O_.\u0275mod=$e({type:O_});O_.\u0275inj=Dc({});var GQd=function(){};GQd.\u0275fac=function(a){return new (a||GQd)};GQd.\u0275mod=$e({type:GQd});var HQd,IQd=[],JQd=IQd.concat,KQd,LQd={},P_=void 0;LQd=LQd===void 0?{}:LQd;P_=P_===void 0?{}:P_;
KQd=[{provide:eWc,useFactory:function(){q(eG,{optional:!0,skipSelf:!0});return"guarded"}},{provide:fWc,useValue:P_.initialState},{provide:gWc,useFactory:KAa,deps:[fWc]},{provide:kWc,useValue:LQd},{provide:mWc,useExisting:LQd instanceof bd?LQd:kWc},{provide:jWc,deps:[kWc,[new DCc(mWc)]],useFactory:function(a){return a instanceof bd?q(a):a}},{provide:sWc,useValue:P_.metaReducers?P_.metaReducers:[]},{provide:uWc,deps:[tWc,sWc],useFactory:function(a,b){return a.concat(b)}},{provide:iWc,useValue:P_.reducerFactory?
P_.reducerFactory:tAa},{provide:hWc,deps:[iWc,uWc],useFactory:wAa},dWc,DWc,EWc,GWc,IWc,[{provide:wWc,useValue:P_.runtimeChecks},{provide:vWc,useFactory:function(a){return a},deps:[wWc]},{provide:GAa,deps:[vWc],useFactory:function(){return{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}},{provide:tWc,multi:!0,deps:[GAa],useFactory:function(a){var b=a.strictActionImmutability;
var c=a.strictStateImmutability;return function(d){return b||c?zAa(d,{action:function(e){return b&&!e.type.startsWith("@ngrx")},state:function(){return c}}):d}}},{provide:tWc,multi:!0,deps:[GAa],useFactory:function(a){var b=a.strictActionSerializability;var c=a.strictStateSerializability;return function(d){return b||c?EAa(d,{action:function(e){return b&&!e.type.startsWith("@ngrx")},state:function(){return c}}):d}}},{provide:tWc,multi:!0,deps:[GAa],useFactory:function(a){var b=a.strictActionWithinNgZone;
return function(c){return b?BAa(c,{action:function(d){return b&&!d.type.startsWith("@ngrx")}}):c}}}],IAa()];HQd={ngModule:fG,providers:JQd.call(IQd,n(KQd))};
GQd.\u0275inj=Dc({providers:[{provide:YJc,useValue:14},{provide:PA,useExisting:IL},{provide:yD,useExisting:M_},{provide:BD,useExisting:L_},{provide:JJ,useExisting:HL}],imports:[FN,GL,HQd,function(){var a=Yc.apply(0,arguments).flat(),b=a.filter(AFb);return{ngModule:O_,providers:[b,{provide:IFb,useValue:[a]},{provide:BQd,useFactory:JFb},{provide:CQd,multi:!0,useValue:[]},{provide:DQd,useFactory:HFb,deps:[IFb,CQd]}]}}([]),K_]});var Q_=function(){this.appEvents=q(DN);this.llmChatService=q(CZ);this.containerScrolled=!1;this.chatAgentName$=this.llmChatService.isGppLlmChatEnabled$.pipe(A(function(a){return a?"Production Agent":""}))};Q_.prototype.closeSidebar=function(){this.appEvents.closeIssueDetailsPageSidebar.next()};Q_.\u0275fac=function(a){return new (a||Q_)};
Q_.\u0275cmp=C({type:Q_,selectors:[["llm-chat"]],decls:12,vars:8,consts:[[1,"flex-kids-x","space-between","padded-s-x","padded-s-top"],[1,"flex-kids-x","align-items-center"],[1,"heading-m"],[1,"flex-kids-x","gap-s"],["type","button","mat-icon-button","","aria-label","close sidebar","matTooltip","Close sidebar",1,"close-button",3,"click"],["svgIcon","close"],[1,"gpp-chat-container"],[1,"duckie-chat-container"]],template:function(a,b){a&1&&(K(0,"header",0)(1,"div",1)(2,"span",2),S(3),U(4,"async"),L()(),
K(5,"div",3)(6,"button",4),N("click",function(){return b.closeSidebar()}),M(7,"mat-icon",5),L()()(),F(8,KFb,2,0,"div",6),U(9,"async"),U(10,"async"),Mf(11,LFb,2,0,"div",7));a&2&&(B(3),Ag(W(4,2,b.chatAgentName$)),B(5),G(W(9,4,b.llmChatService.isGppLlmChatEnabled$)?8:W(10,6,b.llmChatService.isDuckieChatEnabled$)?11:-1))},dependencies:[J_,ZA,XA,VA,K_,iz,MA,py],styles:["[_nghost-%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;height:100%;width:500px;padding:0 8px}header[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--dialog-bg);position:-webkit-sticky;position:sticky;top:0;z-index:2;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.duckie-chat-container[_ngcontent-%COMP%], .gpp-chat-container[_ngcontent-%COMP%]{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.gpp-chat-container[_ngcontent-%COMP%]{overflow:auto}.duckie-chat-container[_ngcontent-%COMP%]{overflow:hidden}"],
changeDetection:0});var R_=function(){};R_.\u0275fac=function(a){return new (a||R_)};R_.\u0275mod=$e({type:R_});R_.\u0275inj=Dc({imports:[FN,ZA,NA,GQd,AQd,Q_,KZ]});var S_=function(){};S_.\u0275fac=function(a){return new (a||S_)};S_.\u0275mod=$e({type:S_});S_.\u0275inj=Dc({imports:[NZ,I_,sU,tT,FN,GU,AK,bT,R_,ZA,iK,H_,XS,vU,OZ]});var MQd=function(){};MQd.\u0275fac=function(a){return new (a||MQd)};MQd.\u0275mod=$e({type:MQd});MQd.\u0275inj=Dc({imports:[FN]});var T_=function(){};T_.\u0275fac=function(a){return new (a||T_)};T_.\u0275mod=$e({type:T_});T_.\u0275inj=Dc({imports:[FN,SW,GV]});var U_=function(){};U_.\u0275fac=function(a){return new (a||U_)};U_.\u0275mod=$e({type:U_});U_.\u0275inj=Dc({imports:[FN,AK,XW,GU,vU,T_,tT,sU,RZ,QZ]});var NQd=function(){};NQd.\u0275fac=function(a){return new (a||NQd)};NQd.\u0275mod=$e({type:NQd});NQd.\u0275inj=Dc({imports:[FN,tT,SZ]});var OQd=function(){};OQd.\u0275fac=function(a){return new (a||OQd)};OQd.\u0275mod=$e({type:OQd});OQd.\u0275inj=Dc({imports:[NZ,I_,tT,FN,GU,AK,U_,bT,H_,vU,iK,NQd,ZA,MQd,FOd,TZ,PZ]});var V_=function(){};V_.\u0275fac=function(a){return new (a||V_)};V_.\u0275mod=$e({type:V_});V_.\u0275inj=Dc({imports:[FN,OQd,U_,ZA,XS,WZ]});var W_=function(){};W_.\u0275fac=function(a){return new (a||W_)};W_.\u0275mod=$e({type:W_});W_.\u0275inj=Dc({imports:[FN,ZA,DB,qT,XZ]});var X_=function(){};X_.\u0275fac=function(a){return new (a||X_)};X_.\u0275mod=$e({type:X_});X_.\u0275inj=Dc({imports:[FN,r_,p_,gT,ZA,YZ]});var Y_=function(){};Y_.\u0275fac=function(a){return new (a||Y_)};Y_.\u0275mod=$e({type:Y_});Y_.\u0275inj=Dc({imports:[FN,ZA,iK,DB,qC,ZZ]});var Z_=function(){this.LIMIT_INCREMENT=32;this.limit=8;this.emails=[]};Z_.\u0275fac=function(a){return new (a||Z_)};
Z_.\u0275cmp=C({type:Z_,selectors:[["avatar-bunch"]],inputs:{emails:"emails"},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&&(Pf(0,MFb,1,1,"b-user-image",0,Of),U(2,"slice"),F(3,OFb,1,1));a&2&&(Qf(Poa(2,1,b.emails,b.limit)),B(3),G(b.emails.length-b.limit>0?3:-1))},dependencies:[mU,wy],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 PFb=function(){return[]},PQd=function(){this.makeCritiqueUrl=EAb;this.submitted=[];this.pending=[]};PQd.\u0275fac=function(a){return new (a||PQd)};
PQd.\u0275cmp=C({type:PQd,selectors:[["cl-counts"]],inputs:{submitted:"submitted",pending:"pending"},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&&F(0,RFb,7,3,"div",0);if(a&2){var c;G((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 QQd=function(){this.changes=[]};QQd.\u0275fac=function(a){return new (a||QQd)};QQd.\u0275cmp=C({type:QQd,selectors:[["gerrit-changes-count"]],inputs:{changes:"changes"},decls:5,vars:2,consts:[[1,"flex-kids-x","align-items-center"],["svgIcon","gerrit-logo",1,"icon-xs"]],template:function(a,b){a&1&&(K(0,"div",0),M(1,"mat-icon",1),S(2," \u00a0 "),K(3,"p"),S(4),L()());a&2&&(B(4),Bg("",b.changes.length," ",b.changes.length>1?"Gerrit changes":"Gerrit change"))},dependencies:[iz],styles:["a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus {\n      color: var(--text-good);\n    }"]});var RQd=function(){this.imageUrls=q(LV);this.LOGO_LIGHT=this.imageUrls.LOGO_LIGHT};da.Object.defineProperties(RQd.prototype,{ref:{configurable:!0,enumerable:!0,set:function(a){this.searchPageUrl=a?KAb(a):void 0}}});RQd.\u0275fac=function(a){return new (a||RQd)};
RQd.\u0275cmp=C({type:RQd,selectors:[["issue-count"]],inputs:{ref:"ref",count:"count"},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&&(K(0,"div",0),M(1,"img",1),S(2," \u00a0 "),F(3,TFb,1,1)(4,UFb,1,1),L());a&2&&(B(),I("src",b.LOGO_LIGHT,Me),B(2),G(b.searchPageUrl?3:4))},dependencies:[EF],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 a0=function(){};a0.\u0275fac=function(a){return new (a||a0)};a0.\u0275mod=$e({type:a0});a0.\u0275inj=Dc({imports:[FN,cL,kz,ZA,vU,Z_,b_,QQd]});var b0=function(){};b0.\u0275fac=function(a){return new (a||b0)};b0.\u0275mod=$e({type:b0});b0.\u0275inj=Dc({imports:[Dz,NZ,dX,KI,ez,FN,GU,mC,ZA,PK,GW,cL,iK,YW,eX,f_,nC,a0,oT,JW,XS,EW,vU,g_]});var c0=function(){};c0.\u0275fac=function(a){return new (a||c0)};c0.\u0275mod=$e({type:c0});c0.\u0275inj=Dc({imports:[FN,b0,XS,h_]});var SQd=[i_,k_,j_],d0=function(){};d0.\u0275fac=function(a){return new (a||d0)};d0.\u0275mod=$e({type:d0});d0.\u0275inj=Dc({imports:[FN,sU,tT,o_,BU,ZA,iK,r_,ZU,AK,XW,ZW,eX,YJ,kz,XS,s_,wT,SQd]});var TQd=function(){};TQd.\u0275fac=function(a){return new (a||TQd)};TQd.\u0275mod=$e({type:TQd});TQd.\u0275inj=Dc({imports:[FN,ZA,l_]});var UQd=function(){};UQd.\u0275fac=function(a){return new (a||UQd)};UQd.\u0275mod=$e({type:UQd});UQd.\u0275inj=Dc({imports:[NZ,sU,FN,tT,GU,W_,V_,TQd,ZA,PK,OJ,GW,iK,r_,AK,XW,S_,X_,ZW,bT,YW,eX,Y_,YJ,d0,JW,F_,c0,iQd,vU,m_,n_,CT,VY]});var e0=function(){this.matDialog=q(gB)};e0.prototype.show=function(a){this.dialog=this.matDialog.open(f0,{width:"500px",data:a});return ee(eB(this.dialog))};e0.\u0275fac=function(a){return new (a||e0)};e0.\u0275prov=Cc({token:e0,factory:e0.\u0275fac,providedIn:"root"});
var f0=function(){this.butterBar=q(JM);this.data=q(fB);this.dialogRef=q(dB);this.teamsService=q(BP);this.dialogTitle="Create Triage View";this.triageForm=new TB({displayName:new VB("",vi),scope:new VB("",vi),showComponentColumn:new VB(!1)});this.data.triage?(this.triage=Hm(this.data.triage),this.triage.displayName=Wr(this.data.teamName,this.triage)):this.triage={id:Math.max.apply(Math,n(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"};
f0.prototype.save=function(){var a=this,b,c;return y(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),fs(a.butterBar,"Saving changes...",0),Vd(d,2),z(d,ee(Lpd(a.teamsService,
a.data.teamExperiments)),4);if(d.nextAddress!=2)return fs(a.butterBar,"Save complete."),a.dialogRef.close(a.triage),bk(d,0);c=Zd(d);a.butterBar.showWarning("Failed to save changes.");console.error(c);$d(d)})};f0.\u0275fac=function(a){return new (a||f0)};
f0.\u0275cmp=C({type:f0,selectors:[["b-triage-view-config-dialog"]],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&&(K(0,"h1",0),S(1),L(),K(2,"mat-dialog-content",1)(3,"form",2)(4,"div",3)(5,"div",4)(6,"label",5),S(7,"Title"),L()(),M(8,"input",6),L(),K(9,"div",3)(10,"div",4)(11,"label",7),S(12,"Search Scope"),L()(),M(13,"textarea",8),L(),K(14,"div",3)(15,"mat-checkbox",9),S(16," Show component name column in triage view "),
L()()()(),K(17,"footer",10)(18,"button",11),S(19,"Cancel"),L(),K(20,"button",12),N("click",function(){return b.save()}),S(21,"Save"),L()());a&2&&(B(),Ag(b.dialogTitle),B(2),I("formGroup",b.triageForm),B(17),I("disabled",!b.triageForm.valid))},dependencies:[mC,XB,xi,PB,QB,hC,ZA,XA,TA,PK,OK,wI,mB,hB,lB,kB,nC,dC,cC],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 VQd=[f0],WQd=function(){};WQd.\u0275fac=function(a){return new (a||WQd)};WQd.\u0275mod=$e({type:WQd});WQd.\u0275inj=Dc({imports:[mC,ZA,PK,pB,qC,nC,VQd]});var g0=function(){LO.apply(this,arguments);var a=this;this.llmService=q(RY);this.imageUrls=q(LV);this.clusters$=new Xj([]);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({},qPd,{showActiveIndicator:!1,showMenu:!1,rowLimit:20});this.titles$=this.clusters$.pipe(zf(function(b){return kMd(a.llmService,b,a.teamName)}))};
Z(g0,LO);g0.\u0275dir=LO.\u0275dir;da.Object.defineProperties(g0.prototype,{clusters:{configurable:!0,enumerable:!0,set:function(a){a&&this.clusters$.next(a)}}});g0.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(g0)))(b||g0)}}();
g0.\u0275cmp=C({type:g0,selectors:[["b-issue-themes"]],inputs:{clusters:"clusters",teamName:"teamName"},features:[Ff],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&&(F(0,$Fb,2,1),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.clusters$))?0:-1,c)}},dependencies:[g_,fL,ged,gL,hL,py],styles:[".empty-state-img[_ngcontent-%COMP%]{max-width:320px}\n/*# sourceMappingURL=issue_themes.css.map */"],
changeDetection:0});var XQd=new bd("GM2_SLIDER_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var YQd=function(a){this.options=a;if(a.disableGmatStyle)throw Error("eb");};YQd.\u0275fac=function(a){return new (a||YQd)(Ve(XQd))};YQd.\u0275dir=af({type:YQd,selectors:[["mat-slider"]],hostAttrs:[1,"gmat-mdc-slider"],standalone:!1});var ZQd=new bd("_MatSlider"),$Qd=new bd("_MatSliderThumb"),aRd=new bd("_MatSliderRangeThumb"),bRd=new bd("_MatSliderVisualThumb");var cRd={provide:KB,useExisting:Tc(function(){return h0}),multi:!0},h0=function(){var a=this;this._ngZone=q(Tg);this._elementRef=q(Gd);this._cdr=q(Yx);this._slider=q(ZQd);this._platform=q(bi);this.valueChange=new ui;this.dragStart=new ui;this.dragEnd=new ui;this.thumbPosition=2;this._hostElement=this._elementRef.nativeElement;this._valuetext=qg.apply(null,[""].concat(n([])));this._knobRadius=8;this._tickMarkOffset=3;this._hasSetInitialValue=this._isFocused=this._isActive=!1;this._destroyed=new rf;
this._skipUIUpdate=!1;this._onTouchedFn=function(){};this._isControlInitialized=!1;var b=q(ji);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))]})};h0.prototype._setValue=function(a){this._hostElement.value=a;this._updateThumbUIByValue();this._slider._onValueChange(this);this._cdr.detectChanges();this._slider._cdr.markForCheck()};
h0.prototype._setIsFocused=function(a){this._isFocused=a};h0.prototype.ngOnDestroy=function(){this._listenerCleanups.forEach(function(a){return a()});this._destroyed.next();this._destroyed.complete();this.dragStart.complete();this.dragEnd.complete()};var dRd=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()};h=h0.prototype;
h._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())};h._getDefaultValue=function(){return this.min};h._onBlur=function(){this._setIsFocused(!1);this._onTouchedFn()};h._onFocus=function(){this._slider._setTransition(!1);this._slider._updateTrackUI(this);this._setIsFocused(!0)};
h._onChange=function(){this.valueChange.emit(this.value);this._isActive&&this._updateThumbUIByValue({withAnimation:!0})};h._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)};h._onNgControlValueChange=function(){this._isActive&&this._isFocused||(this._slider._onValueChange(this),this._updateThumbUIByValue());this._slider.disabled=this._formControl.disabled};
h._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}))))};
h._handleValueCorrection=function(a){var b=this;this._skipUIUpdate=!0;setTimeout(function(){b._skipUIUpdate=!1;b._fixValue(a)},0)};
h._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})};h._onPointerMove=function(a){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(a)};h._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))};
h._clamp=function(a){return Math.max(Math.min(a,this._slider._cachedWidth-this._tickMarkOffset),this._tickMarkOffset)};h._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};h._calcTranslateXByPointerEvent=function(a){return a.clientX-this._slider._cachedLeft};h._updateWidthActive=function(){};
h._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"};h._updateThumbUIByValue=function(a){this.translateX=this._clamp(this._calcTranslateXByValue());this._updateThumbUI(a)};
h._updateThumbUIByPointerEvent=function(a,b){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(a));this._updateThumbUI(b)};h._updateThumbUI=function(a){this._slider._setTransition(!(a==null||!a.withAnimation));this._slider._onTranslateXChange(this)};h.writeValue=function(a){if(this._isControlInitialized||a!==null)this.value=a};h.registerOnChange=function(a){this._onChangeFn=a;this._isControlInitialized=!0};h.registerOnTouched=function(a){this._onTouchedFn=a};
h.setDisabledState=function(a){this.disabled=a};h.focus=function(){this._hostElement.focus()};h.blur=function(){this._hostElement.blur()};
da.Object.defineProperties(h0.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return ch(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 ch(this._hostElement.min,0)},set:function(a){this._hostElement.min=a+"";this._cdr.detectChanges()}},max:{configurable:!0,enumerable:!0,get:function(){return ch(this._hostElement.max,0)},set:function(a){this._hostElement.max=a+"";this._cdr.detectChanges()}},step:{configurable:!0,enumerable:!0,get:function(){return ch(this._hostElement.step,0)},set:function(a){this._hostElement.step=a+"";this._cdr.detectChanges()}},
disabled:{configurable:!0,enumerable:!0,get:function(){return bh(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}}});h0.\u0275fac=function(a){return new (a||h0)};
h0.\u0275dir=af({type:h0,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(a,b){a&1&&N("change",function(){return b._onChange()})("input",function(){return b._onInput()})("blur",function(){return b._onBlur()})("focus",function(){return b._onFocus()});a&2&&Jf("aria-valuetext",b._valuetext())},inputs:{value:[2,"value","value",ch]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],
features:[Ig([cRd,{provide:$Qd,useExisting:h0}])]});var eRd=["knob"],fRd=["valueIndicatorContainer"],i0=function(){var a=this;this._cdr=q(Yx);this._ngZone=q(Tg);this._slider=q(ZQd);this._renderer=q(ji);this._isValueIndicatorVisible=this._isActive=this._isHovered=!1;this._hostElement=q(Gd).nativeElement;this._platform=q(bi);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()}};h=i0.prototype;
h.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)]}))};
h.ngOnDestroy=function(){var a;(a=this._listenerCleanups)==null||a.forEach(function(b){return b()})};h._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")}};
h._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")}};h._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")}};
h._isShowingRipple=function(a){return(a==null?void 0:a.state)===0||(a==null?void 0:a.state)===1};h._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})}};
h._hideRipple=function(a){a!=null&&PHc(a._renderer,a);this._isShowingAnyRipple()||(this._slider._isRange||this._hideValueIndicator(),a=this._getSibling(),a._isShowingAnyRipple()||(this._hideValueIndicator(),a._hideValueIndicator()))};h._showValueIndicator=function(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")};h._hideValueIndicator=function(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")};
h._getSibling=function(){return this._slider._getThumb(this.thumbPosition===1?2:1)};h._getValueIndicatorContainer=function(){var a;return(a=this._valueIndicatorContainer)==null?void 0:a.nativeElement};h._getKnob=function(){return this._knob.nativeElement};h._isShowingAnyRipple=function(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)};i0.\u0275fac=function(a){return new (a||i0)};
i0.\u0275cmp=C({type:i0,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(a,b){a&1&&(kg(EA,5),kg(eRd,5),kg(fRd,5));if(a&2){var c;og(c=pg())&&(b._ripple=c.first);og(c=pg())&&(b._knob=c.first);og(c=pg())&&(b._valueIndicatorContainer=c.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[Ig([{provide:bRd,useExisting:i0}])],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&&(F(0,aGb,5,1,"div",2),M(1,"div",3,0)(3,"div",4));a&2&&(G(b.discrete?0:-1),B(3),I("matRippleDisabled",!0))},dependencies:[EA],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 gRd=["trackActive"],j0=function(){var a=this;this._ngZone=q(Tg);this._cdr=q(Yx);this._elementRef=q(Gd);this._dir=q(ii,{optional:!0});this._globalRippleOptions=q(DA,{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=ti();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=q(bi);this._knobRadius=8;this._thumbsOverlap=!1;q(fi).load(BA);this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(function(){return a._onDirChange()}),this._isRtl=this._dir.value==="rtl")};h=j0.prototype;h._updateMin=function(a){var b=this._min;this._min=a;this._isRange?this._updateMinRange({old:b,new:a}):this._updateMinNonRange(a);this._onMinMaxOrStepChange()};
h._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)};
h._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)}};h._updateMax=function(a){var b=this._max;this._max=a;this._isRange?this._updateMaxRange({old:b,new:a}):this._updateMaxNonRange(a);this._onMinMaxOrStepChange()};
h._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)};
h._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)}};h._updateStep=function(a){this._step=a;this._isRange?this._updateStepRange():this._updateStepNonRange();this._onMinMaxOrStepChange()};
h._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)};
h._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)}};
h.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()};
h._initUINonRange=function(a){dRd(a);a._updateThumbUIByValue();this._updateValueIndicatorUI(a);this._hasViewInitialized=!0;a._updateThumbUIByValue()};h._initUIRange=function(a,b){dRd(a);a._updateThumbUIByValue();dRd(b);b._updateThumbUIByValue();a._updateMinMax();b._updateMinMax();a._updateStaticStyles();b._updateStaticStyles();this._updateValueIndicatorUIs();this._hasViewInitialized=!0;a._updateThumbUIByValue();b._updateThumbUIByValue()};
h.ngOnDestroy=function(){this._dirChangeSubscription.unsubscribe();var a;(a=this._resizeObserver)==null||a.disconnect();this._resizeObserver=null};h._onDirChange=function(){var a;this._isRtl=((a=this._dir)==null?void 0:a.value)==="rtl";this._isRange?this._onDirChangeRange():this._onDirChangeNonRange();this._updateTickMarkUI()};
h._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()};h._onDirChangeNonRange=function(){this._getInput(2)._updateThumbUIByValue()};
h._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)})};h._isActive=function(){return this._getThumb(1)._isActive||this._getThumb(2)._isActive};h._getValue=function(a){return(a=this._getInput(a===void 0?2:a))?a.value:this.min};
h._skipUpdate=function(){var a,b;return!!(((a=this._getInput(1))==null?0:a._skipUIUpdate)||((b=this._getInput(2))==null?0:b._skipUIUpdate))};h._updateDimensions=function(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth;this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left};h._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};
h._calcTickMarkTransform=function(a){a*=this._tickMarkTrackWidth/(this._tickMarks.length-1);return"translateX("+(this._isRtl?this._cachedWidth-6-a:a)+"px"};h._onTranslateXChange=function(a){this._hasViewInitialized&&(this._updateThumbUI(a),this._updateTrackUI(a),this._updateOverlappingThumbUI(a))};h._onTranslateXChangeBySideEffect=function(a,b){this._hasViewInitialized&&(a._updateThumbUIByValue(),b._updateThumbUIByValue())};
h._onValueChange=function(a){this._hasViewInitialized&&(this._updateValueIndicatorUI(a),this._updateTickMarkUI(),this._cdr.detectChanges())};h._onMinMaxOrStepChange=function(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())};
h._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()}};
h._areThumbsOverlapping=function(){var a=this._getInput(1),b=this._getInput(2);return a&&b?b.translateX-a.translateX<20:!1};h._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)};
h._updateOverlappingThumbUI=function(a){this._isRange&&!this._skipUpdate()&&this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(a))};h._updateThumbUI=function(a){this._skipUpdate()||(this._getThumb(a.thumbPosition===2?2:1)._hostElement.style.transform="translateX("+a.translateX+"px)")};
h._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"))}};
h._updateValueIndicatorUIs=function(){var a=this._getInput(2),b=this._getInput(1);a&&this._updateValueIndicatorUI(a);b&&this._updateValueIndicatorUI(b)};h._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)}};h._updateTrackUI=function(a){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(a):this._updateTrackUINonRange(a))};
h._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+")"})}};
h._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+")"})};h._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)}};
h._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))};h._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))};
h._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};h._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};h._setTransition=function(a){this._hasAnimation=!this._platform.IOS&&a&&!this._noopAnimations;this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)};
h._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)};
da.Object.defineProperties(j0.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()}},showTickMarks:{configurable:!0,enumerable:!0,get:function(){return this._showTickMarks},set:function(a){this._showTickMarks=
a;this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI())}},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)}}});j0.\u0275fac=function(a){return new (a||j0)};
j0.\u0275cmp=C({type:j0,selectors:[["mat-slider"]],contentQueries:function(a,b,c){a&1&&(lg(c,$Qd,5),lg(c,aRd,4));if(a&2){var d;og(d=pg())&&(b._input=d.first);og(d=pg())&&(b._inputs=d)}},viewQuery:function(a,b){a&1&&(kg(gRd,5),kg(bRd,5));if(a&2){var c;og(c=pg())&&(b._trackActive=c.first);og(c=pg())&&(b._thumbs=c)}},hostAttrs:[1,"mat-mdc-slider","mdc-slider"],hostVars:12,hostBindings:function(a,b){a&2&&(zg("mat-"+(b.color||"primary")),yg("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",bh],discrete:[2,"discrete","discrete",bh],showTickMarks:[2,"showTickMarks","showTickMarks",bh],min:[2,"min","min",ch],color:"color",disableRipple:[2,"disableRipple","disableRipple",bh],max:[2,"max","max",ch],step:[2,"step","step",ch],displayWith:"displayWith"},exportAs:["matSlider"],features:[Ig([{provide:ZQd,useExisting:j0}])],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&&(fg(),gg(0),K(1,"div",2),M(2,"div",3),K(3,"div",4),M(4,"div",5,0),L(),F(6,dGb,3,1,"div",6),L(),F(7,eGb,1,3,"mat-slider-visual-thumb",7),M(8,"mat-slider-visual-thumb",7));a&2&&(B(6),
G(b.showTickMarks?6:-1),B(),G(b._isRange?7:-1),B(),I("discrete",b.discrete)("thumbPosition",2)("valueIndicatorText",b.endValueIndicatorText))},dependencies:[i0],styles:['.mdc-slider__track{position:absolute;top:50%;transform:translateY(-50%);width:100%;pointer-events:none;height:var(--mat-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(--mat-slider-active-track-shape, var(--mat-sys-corner-full));height:var(--mat-slider-active-track-height, 4px);top:calc((var(--mat-slider-inactive-track-height, 4px) - var(--mat-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(--mat-slider-active-track-color, var(--mat-sys-primary));border-top-width:var(--mat-slider-active-track-height, 4px)}.mdc-slider--disabled .mdc-slider__track--active_fill{border-color:var(--mat-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(--mat-slider-inactive-track-color, var(--mat-sys-surface-variant));height:var(--mat-slider-inactive-track-height, 4px);border-radius:var(--mat-slider-inactive-track-shape, var(--mat-sys-corner-full))}.mdc-slider--disabled .mdc-slider__track--inactive{background-color:var(--mat-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: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;transform:scale(0);transform-origin:var(--mat-slider-value-indicator-transform-origin, 0 28px);transition:transform 100ms cubic-bezier(0.4, 0, 1, 1);word-break:normal;background-color:var(--mat-slider-label-container-color, var(--mat-sys-primary));color:var(--mat-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(--mat-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(--mat-slider-label-label-text-font, var(--mat-sys-label-medium-font));font-size:var(--mat-slider-label-label-text-size, var(--mat-sys-label-medium-size));font-weight:var(--mat-slider-label-label-text-weight, var(--mat-sys-label-medium-weight));line-height:var(--mat-slider-label-label-text-line-height, var(--mat-sys-label-medium-line-height));letter-spacing:var(--mat-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(--mat-slider-handle-width, 20px);height:var(--mat-slider-handle-height, 20px);border-width:calc(var(--mat-slider-handle-height, 20px)/2) calc(var(--mat-slider-handle-width, 20px)/2);box-shadow:var(--mat-slider-handle-elevation, var(--mat-sys-level1));background-color:var(--mat-slider-handle-color, var(--mat-sys-primary));border-color:var(--mat-slider-handle-color, var(--mat-sys-primary));border-radius:var(--mat-slider-handle-shape, var(--mat-sys-corner-full))}.mdc-slider__thumb:hover .mdc-slider__thumb-knob{background-color:var(--mat-slider-hover-handle-color, var(--mat-sys-primary));border-color:var(--mat-slider-hover-handle-color, var(--mat-sys-primary))}.mdc-slider__thumb--focused .mdc-slider__thumb-knob{background-color:var(--mat-slider-focus-handle-color, var(--mat-sys-primary));border-color:var(--mat-slider-focus-handle-color, var(--mat-sys-primary))}.mdc-slider--disabled .mdc-slider__thumb-knob{background-color:var(--mat-slider-disabled-handle-color, var(--mat-sys-on-surface));border-color:var(--mat-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(--mat-slider-with-overlap-handle-outline-color, var(--mat-sys-on-primary));border-width:var(--mat-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(--mat-slider-with-tick-marks-container-size, 2px);height:var(--mat-slider-with-tick-marks-container-size, 2px);border-radius:var(--mat-slider-with-tick-marks-container-shape, var(--mat-sys-corner-full))}.mdc-slider__tick-mark--inactive{opacity:var(--mat-slider-with-tick-marks-inactive-container-opacity, 0.38);background-color:var(--mat-slider-with-tick-marks-inactive-container-color, var(--mat-sys-on-surface-variant))}.mdc-slider--disabled .mdc-slider__tick-mark--inactive{opacity:var(--mat-slider-with-tick-marks-inactive-container-opacity, 0.38);background-color:var(--mat-slider-with-tick-marks-disabled-container-color, var(--mat-sys-on-surface))}.mdc-slider__tick-mark--active{opacity:var(--mat-slider-with-tick-marks-active-container-opacity, 0.38);background-color:var(--mat-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--disabled .mdc-slider__input{cursor:auto}.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 hRd=function(){};hRd.\u0275fac=function(a){return new (a||hRd)};hRd.\u0275mod=$e({type:hRd});hRd.\u0275inj=Dc({imports:[HA,jz]});var k0=function(){};k0.\u0275fac=function(a){return new (a||k0)};k0.\u0275mod=$e({type:k0});k0.\u0275inj=Dc({imports:[hRd]});var iRd=function(a,b){return b.componentId},jRd=function(a,b){return b.displayAs},l0=function(){LO.apply(this,arguments);var a=this;this.activatedRoute=q(Wj);this.teamFridge=q(GP);this.issueFridge=q(GO);this.componentActions=q(JV);this.teamId=this.activatedRoute.snapshot.params.teamId;this.components=[];this.openFilter=IQ;this.selectedOpenFilter$=new OP;this.selectComponents$=new OP;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 Xj(this.dateRangeFilters[0]);this.clusterGranularity$=new Xj(1);this.query$=he([this.selectedOpenFilter$.value$,this.selectComponents$.value$,this.selectedDateRangeFilter$]).pipe(kf(0,Rr),
A(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return kRd(a)?Yr.apply(null,[Xr("teamid",a.teamId)].concat(n(Array.from(b,function(e){return e.queryAtom})),[c.queryAtom])):Yr.apply(null,[].concat(n(Array.from(b,function(e){return e.queryAtom})),[Xr("componentId",[].concat(n(d)).map(function(e){return e.componentId}),!1),c.queryAtom]))}));this.issues$=this.query$.pipe(zf(function(b){return a.issueFridge.watchMany({filter:b,pageSize:500})}),A(function(b){return b.results.filter(function(c){var d;
return(d=c.experimentalFields)==null?void 0:d.clusterIds.length})}));this.clusters$=he([this.issues$,this.clusterGranularity$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return lRd(b,c)}))};Z(l0,LO);l0.\u0275dir=LO.\u0275dir;
l0.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$,n(a.components))});this.teamId&&ee(this.teamFridge.watch(this.teamId)).then(function(b){a.teamName=b==null?void 0:b.name})};l0.prototype.openFilterChanged=function(a){a?this.selectedOpenFilter$.add(IQ):this.selectedOpenFilter$.delete(IQ)};
var kRd=function(a){return a.selectComponents$.size===a.components.length};l0.prototype.onCheckboxChange=function(a){this.selectComponents$.has(a)?this.selectComponents$.delete(a):this.selectComponents$.add(a)};
var lRd=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,g=(f=c.get(e))!=null?f:new Set;g.add(d.issueId);c.set(e,g)}b=[].concat(n(c.values())).map(function(k){return[].concat(n(k))});return Nq(b,function(k){return k.sort().join(",")}).filter(function(k){return k.length>=3}).sort(function(k,m){return m.length-k.length}).slice(0,10).map(function(k){return[].concat(n(k))})};
l0.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(l0)))(b||l0)}}();
l0.\u0275cmp=C({type:l0,selectors:[["b-issue-themes-dashboard"]],features:[Ff],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=t();K(0,"div",5)(1,"header",6)(2,"button",7);M(3,"mat-icon",8);L();K(4,"h2",9);S(5);L();M(6,"mat-icon",10);K(7,"h2",9);S(8,"Explore issue themes");L()();K(9,"div",11)(10,"div",12)(11,"mat-chip-listbox",13);N("change",function(e){u(c);return v(b.openFilterChanged(e.value))});K(12,"mat-chip-option",14)(13,"span",15);S(14);L()()();K(15,"mat-chip-listbox",16)(16,"mat-chip-option",17,0);N("keydown.enter",
function(){u(c);var e=Q(17);return v(e.openMenu())})("keyup.space",function(){u(c);var e=Q(17);return v(e.openMenu())});F(18,fGb,2,0,"span")(19,gGb,2,0,"span");M(20,"mat-icon",18);L()();K(21,"mat-menu",null,1)(23,"button",19);N("click",function(e){u(c);return v(e.stopPropagation())});K(24,"mat-checkbox",20);N("change",function(){u(c);kRd(b)?b.selectComponents$.clear():b.selectComponents$.add.apply(b.selectComponents$,n(b.components));return v()});S(25," Select all ");L()();M(26,"mat-divider");Pf(27,
hGb,3,2,"button",21,iRd);L();K(29,"mat-chip-listbox",22)(30,"mat-chip-option",23,2);N("keydown.enter",function(){u(c);var e=Q(31);return v(e.openMenu())})("keyup.space",function(){u(c);var e=Q(31);return v(e.openMenu())});K(32,"span");S(33);L();M(34,"mat-icon",18);L()();K(35,"mat-menu",null,3);Pf(37,iGb,2,1,"button",21,jRd);L();K(39,"span");S(40," Granularity");L();K(41,"mat-slider",24)(42,"input",25,4);N("valueChange",function(e){u(c);b.clusterGranularity$.next(e);return v()});L()()();M(44,"b-issue-themes",
26);U(45,"async");L()()}if(a&2){a=Q(22);var d=Q(36);B(5);Ag(b.teamName);B(7);I("value",b.openFilter)("selected",b.selectedOpenFilter$.has(b.openFilter));B();I("matTooltip",b.openFilter.tooltip||"");B();T(" ",b.openFilter.displayAs," ");B();I("selectable",!1);B();I("matMenuTriggerFor",a);B(2);G(kRd(b)?18:19);B(6);I("checked",kRd(b));B(3);Qf(b.components);B(2);I("selectable",!1);B();I("matMenuTriggerFor",d);B(3);Ag(b.selectedDateRangeFilter$.value.displayAs);B(4);Qf(b.dateRangeFilters);B(7);I("clusters",
W(45,14,b.clusters$))("teamName",b.teamName)}},dependencies:[ZA,XA,VA,PK,OK,wI,JK,BK,IK,HK,GK,OJ,NJ,LF,JF,OF,k0,YQd,j0,h0,hK,g0,XJ,iz,MA,py],styles:["/*# sourceMappingURL=issue_themes_dashboard.css.map */"],changeDetection:0});var mRd=[l0,g0],nRd=function(){};nRd.\u0275fac=function(a){return new (a||nRd)};nRd.\u0275mod=$e({type:nRd});nRd.\u0275inj=Dc({imports:[FN,b0,jL,ZA,OJ,qT,JK,iK,PK,YJ,k0,mRd]});var qGb=Date.now(),m0=function(){var a=this;this.issueFridge=q(GO);this.router=q(CF);this.ROUTES=zs;this.phaseToUrlSlug=iu;this.FETCH_SIZE=500;this.teamId$=new vf(1);this.triageId$=new vf(1);this.phase$=new Xj("NEW");this.heading$=this.phase$.pipe(A(function(b){return Tt.get(b)}));this.searchFilter$=he([this.teamId$,this.phase$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return"teamid:"+b+"+ "+trd[c]}));this.issues$=this.searchFilter$.pipe(zf(function(b){return a.issueFridge.watchMany({filter:b,
pageSize:500})}),A(function(b){return b.results}));this.daysOld$=this.issues$.pipe(A(function(b){return b.map(function(c){var d,e;return(e=(d=c.aggregatedData)==null?void 0:d.modifiedTimeMicros)!=null?e:0})}),A(function(b){return b.map(rGb)}));this.avgAge$=this.daysOld$.pipe(A(fWa),A(function(b){return Math.round(b*10)/10}));this.countsByDaysOld$=this.daysOld$.pipe(A(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(A(function(b){var c=Math.max.apply(Math,n(b));return b.map(function(d){return d/c})}))};da.Object.defineProperties(m0.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)}}});
m0.\u0275fac=function(a){return new (a||m0)};
m0.\u0275cmp=C({type:m0,selectors:[["phase-card-contents"]],inputs:{teamId:"teamId",triageId:"triageId",phase:"phase"},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&&(F(0,kGb,2,3),U(1,"async"),K(2,"div",0)(3,"div",1)(4,"p",2),S(5,"Total Issues"),L(),K(6,"p",3),F(7,lGb,1,2),U(8,"async"),Mf(9,mGb,1,0),L()(),K(10,"div",4)(11,"p",2),S(12,"Avg Last Modified"),L(),K(13,"p",3),S(14),U(15,"async"),L()()(),K(16,"div",5),F(17,pGb,2,3),U(18,"async"),L());if(a&2){var c,d,e;G((c=W(1,4,b.teamId$))?0:-1,c);B(7);G((d=W(8,6,b.issues$))?7:9,d);B(7);T(" ",W(15,8,b.avgAge$)," days ");B(3);G((e=W(18,
10,b.countsByDaysOld$))?17:-1,e)}},dependencies:[ZA,XA,TA,iz,py],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 n0=function(){var a=this;this.activatedRoute=q(Wj);this.appSearchState=q(gS);this.teamFridge=q(GP);this.ROUTES=zs;this.TriagePhase=Lhd;this.activatedRoute.params.pipe(A(function(b){return{teamId:b.teamId,triageId:b.triageId}}));this.id$=this.activatedRoute.params.pipe(A(function(b){return b.teamId}));this.triageId$=this.activatedRoute.params.pipe(A(function(b){return b.triageId}));he([this.id$,this.triageId$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return!(!b||!c&&c!==
"0")}));this.team$=this.id$.pipe(zf(function(b){return a.teamFridge.watch(b)}));this.query$=this.id$.pipe(A(function(b){return"teamid:"+b+"+"}))};n0.prototype.ngOnInit=function(){var a=this;setTimeout(function(){a.appSearchState.clear()})};n0.\u0275fac=function(a){return new (a||n0)};
n0.\u0275cmp=C({type:n0,selectors:[["triage-dashboard"]],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&&(K(0,"div",0)(1,"header",1)(2,"div",2)(3,"a",3),U(4,"async"),U(5,"async"),M(6,"mat-icon",4),L(),K(7,"h2"),S(8," Dashboard: "),F(9,sGb,2,2,"span",5),U(10,"async"),Mf(11,tGb,3,3,"code",6),L()()(),F(12,vGb,2,3),U(13,"async"),L());if(a&2){var c,d;B(3);I("href",b.ROUTES.viewTriage.makeHref(W(4,3,b.id$),W(5,5,b.triageId$)),Me);B(6);G((c=W(10,7,b.team$))?9:11,c);B(3);G((d=W(13,9,b.id$))?12:-1,d)}},dependencies:[ZA,XA,VA,iz,m0,py],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 oRd="comment priority status assignee self-assign self-unassign unassign".split(" "),pRd=["create"],o0=function(){this.paths=q(wV);this.issueFullFridge=q(RO);this.toIssuePriority=lTa;this.getResponsibleEmailAddress=BGb;this.getChangelistNumber=xGb;this.getLink=yGb;this.getPreviousDiffValue=CGb;this.getNewDiffValue=AGb;this.shorthandAllDiffs=zGb;this.getClMetadata=wGb;this.isCritiqueComment=Do;this.isFullGerritComment=Eo;this.STATUS_CODE_FROM_DISPLAY_STRING=$hd;this.type="default"};
o0.prototype.ngOnInit=function(){this.type=DGb(this.event)};o0.prototype.getComment=function(){return this.event.unlinkifiedComment?this.event.unlinkifiedComment:this.event.formattedComment?JVa(this.event.formattedComment):""};o0.\u0275fac=function(a){return new (a||o0)};
o0.\u0275cmp=C({type:o0,selectors:[["recent-event-row"]],inputs:{event:"event"},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&&(M(0,"b-user-email",0),F(1,EGb,4,4)(2,IGb,5,4)(3,JGb,4,4)(4,KGb,6,5)(5,MGb,
4,5)(6,OGb,5,5)(7,PGb,6,6)(8,QGb,4,4)(9,RGb,4,4)(10,SGb,6,6)(11,TGb,5,4)(12,UGb,5,5),F(13,WGb,1,1),F(14,YGb,1,1));if(a&2){var c;I("ldapOnly",!0)("email",b.getResponsibleEmailAddress(b.event));B();G((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);B(12);G(oRd.includes(b.type)?13:-1);B();G(pRd.includes(b.type)?14:-1)}},dependencies:[Azd,DT,
hW,zQ,tU],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 p0=function(){LO.apply(this,arguments);var a=this;this.recentEventsForIssuesFridge=q(uP);this.quickFilter=new VB("");this.printStats=lHb;this.defaultNumEvents=6;this.numDisplayed$=new Xj(this.defaultNumEvents);this.query$=new vf(1);this.renderDelay$=be(!0).pipe(nf(1E3));this.allEvents$=this.query$.pipe(te(ln),Af(this.destroyed$),A(function(b){return[b,100].join("___")}),zf(function(b){return a.recentEventsForIssuesFridge.watch(b)}),A(function(b){var c;return(c=b==null?void 0:b.events)!=null?c:
[]}));this.events$=he([this.allEvents$,this.quickFilter.valueChanges.pipe(yf(""))]).pipe(A(function(b){var c=l(b);b=c.next().value;b=b===void 0?[]:b;c=c.next().value;return b.filter(kHb(c))}));this.bucketedEvents$=he([this.events$,this.numDisplayed$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b.slice(0,c)}),A(mHb));this.allBucketedEvents$=this.events$.pipe(A(mHb));this.bucketedEventStats$=this.allBucketedEvents$.pipe(A(function(b){return{"<24h":nHb("<24h",b),"24h-7d":nHb("24h-7d",
b),"7d-30d":nHb("7d-30d",b),">30d":nHb(">30d",b)}}))};Z(p0,LO);p0.\u0275dir=LO.\u0275dir;da.Object.defineProperties(p0.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)}}});p0.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(p0)))(b||p0)}}();
p0.\u0275cmp=C({type:p0,selectors:[["recent-events"]],inputs:{numEvents:"numEvents",query:"query"},features:[Ff],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&&(F(0,jHb,5,4),U(1,"async"));a&2&&G(W(1,1,b.renderDelay$)?0:-1)},dependencies:[mC,xi,PB,nC,bC,o0,py],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 q0=function(){};q0.\u0275fac=function(a){return new (a||q0)};q0.\u0275mod=$e({type:q0});q0.\u0275inj=Dc({imports:[nC,mC,FN,vU,GU,tT,YW,HU,p0,o0]});var rHb=function(a,b){return b.searchId},r0=function(){LO.apply(this,arguments);this.dialogRef=q(dB);this.currentUserBookmarksFridge=q(ZN);this.selectedIds=new Set;this.savedSearches$=vld(this.currentUserBookmarksFridge)};Z(r0,LO);r0.\u0275dir=LO.\u0275dir;var qHb=function(a,b){b.options.forEach(function(c){c.selected?a.selectedIds.add(c.value):a.selectedIds.delete(c.value)})};r0.prototype.onSave=function(){this.dialogRef.close([].concat(n(this.selectedIds)))};r0.prototype.onCancel=function(){this.dialogRef.close()};
r0.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(r0)))(b||r0)}}();
r0.\u0275cmp=C({type:r0,selectors:[["saved-search-picker-dialog"]],features:[Ff],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&&(K(0,"header",0),S(1," Add a Saved Search "),L(),K(2,"div",1),F(3,sHb,3,0,"mat-selection-list",2),U(4,"async"),L(),K(5,"div",3)(6,"button",4),N("click",function(){return b.onCancel()}),S(7," Cancel "),L(),K(8,"button",5),N("click",function(){return b.onSave()}),S(9),L()());if(a&2){var c;B(3);G((c=
W(4,3,b.savedSearches$))?3:-1,c);B(5);I("disabled",b.selectedIds.size===0);B();T(" Save ",b.selectedIds.size>1?"("+b.selectedIds.size+")":""," ")}},dependencies:[ZA,XA,TA,dK,RJ,cK,ZJ,mB,lB,kB,py],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 qRd=[r0],rRd=function(){};rRd.\u0275fac=function(a){return new (a||rRd)};rRd.\u0275mod=$e({type:rRd});rRd.\u0275inj=Dc({imports:[FN,ZA,pB,iK,PK,dK,mC,nC,sU,ZA,lX,XW,AK,qRd]});var s0=function(){this.dialog=q(gB)};s0.prototype.open=function(a){var b=this,c={panelClass:"no-jitter"};return new Promise(function(d){eB(b.dialog.open(r0,c)).subscribe(function(e){e=e===void 0?[]:e;a==null||a(e);d(e)})})};s0.\u0275fac=function(a){return new (a||s0)};s0.\u0275prov=Cc({token:s0,factory:s0.\u0275fac,providedIn:"root"});var sRd=function(){return[]},t0=function(){LO.apply(this,arguments);var a=this;this.issueFridge=q(GO);this.changelistFridge=q(pN);this.activeSession=q(Zu);this.query$=new vf(1);this.issues$=this.query$.pipe(zf(function(b){return a.issueFridge.watchMany(b).pipe(A(function(c){if(eu(a.ref)==="issue")return c.results;var d;return Ysd(c.results,(d=a.activeSession.getTracker())==null?void 0:d.trackerId)}))}));this.emails$=this.issues$.pipe(A(function(b){return b.map(mWa).filter(ln)}),A(A1a));this.submittedClLinks$=
this.issues$.pipe(A(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(A(function(b){return b.map(function(c){return c.issueId})}),zf(function(b){return a.changelistFridge.watchMany({pendingForIssues:b})}),A(function(b){return b.results}))};Z(t0,LO);t0.\u0275dir=LO.\u0275dir;t0.prototype.getHotlistId=function(){if(eu(this.ref)==="hotlist")return du(this.ref)};
da.Object.defineProperties(t0.prototype,{query:{configurable:!0,enumerable:!0,set:function(a){a!=null&&this.query$.next(a)}}});t0.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(t0)))(b||t0)}}();
t0.\u0275cmp=C({type:t0,selectors:[["rollups-list"]],inputs:{ref:"ref",query:"query"},features:[Ff],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&&(K(0,"section",0)(1,"div",1),M(2,"issue-count",
2),U(3,"async"),M(4,"cl-counts",3),U(5,"async"),U(6,"async"),F(7,tHb,1,1,"avatar-bunch",4),U(8,"async"),L(),K(9,"div",5),F(10,uHb,3,1,"a",6),L()());if(a&2){var c,d,e;B(2);I("ref",b.ref)("count",(c=W(3,6,b.issues$))==null?null:c.length);B(2);var f,g;I("submitted",(f=W(5,8,b.submittedClLinks$))!=null?f:Jg(14,sRd))("pending",(g=W(6,10,b.pendingCls$))!=null?g:Jg(15,sRd));B(3);G((d=W(8,12,b.emails$))?7:-1,d);B(3);a:{if(Ms(b.activeSession)&&(a=b.getHotlistId(),a!=null)){a="https://taskflow.corp.google.com/hotlists/"+
a;break a}a=void 0}G((e=a)?10:-1,e)}},dependencies:[Z_,PQd,ZA,XA,TA,RQd,iz,py],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 wHb=function(){return[]},u0=function(){LO.call(this);var a=this;this.issueRelationshipsFridge=q(XO);this.metadataFridge=q(eN);this.issueFullFridge=q(RO);this.changelistFridge=q(pN);this.id$=new vf(1);this.issue$=this.id$.pipe(zf(function(b){return a.issueFullFridge.watch(b)}));this.metadata$=this.id$.pipe(zf(function(b){return a.metadataFridge.watch(b)}));this.closedAndTotal$=this.metadata$.pipe(A(D4a));this.metadata$.pipe(A(F4a));this.gerritChanges$=this.metadata$.pipe(A(G4a));this.emails$=this.metadata$.pipe(A(H4a));
this.pendingCls$=he([this.id$,this.metadata$]).pipe(zf(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(n(c));return a.changelistFridge.watchMany({pendingForIssues:d})}),A(function(b){return b.results}));this.subscriptions.add(se(this.issueRelationshipsFridge.memoryWasSet$,this.issueRelationshipsFridge.collectiveMemoryWasSet$,this.issueFullFridge.memoryWasSet$,this.issueFullFridge.collectiveMemoryWasSet$).pipe(jf(this.id$),kf(2E3)).subscribe(function(b){return void a.metadataFridge.poke(b[1])}))};
Z(u0,LO);u0.\u0275dir=LO.\u0275dir;da.Object.defineProperties(u0.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});u0.\u0275fac=function(a){return new (a||u0)};
u0.\u0275cmp=C({type:u0,selectors:[["rollups-project"]],inputs:{id:"id"},features:[Ff],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&&(K(0,"section",0),F(1,vHb,1,2,"progress-pie",1),U(2,"async"),M(3,"issue-timeframe",2),U(4,"async"),F(5,xHb,2,5,"cl-counts",3),U(6,"async"),F(7,zHb,1,1),U(8,"async"),F(9,BHb,1,1),U(10,"async"),L());if(a&2){var c,d,e,f;
B();G((c=W(2,5,b.closedAndTotal$))?1:-1,c);B(2);I("issue",W(4,7,b.issue$));B(2);G((d=W(6,9,b.metadata$))?5:-1,d);B(2);G((e=W(8,11,b.gerritChanges$))?7:-1,e);B(2);G((f=W(10,13,b.emails$))?9:-1,f)}},dependencies:[Z_,PQd,QQd,b_,c_,py],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 v0=function(){this.activeSession=q(Zu)};v0.\u0275fac=function(a){return new (a||v0)};v0.\u0275prov=Cc({token:v0,factory:v0.\u0275fac,providedIn:"root"});var tRd=(new bzd).transform,w0=function(){var a=this;this.kansasPrefsManager=q(VP);this.activeSession=q(Zu);this.filteredSignalsSource=q(v0);this.destroyRef=q(Be);this.filteredSignalsOptions=Hm(this.filteredSignalsSource.activeSession.isInternalSession()?epd:fpd);this.needsAttentionSourceFilters=this.activeSession.isInternalSession()?apd:bpd;this.prefs$=this.kansasPrefsManager.preferences$.pipe(A(function(b){var c;return(c=b==null?void 0:b.missionControlPreferences)!=null?c:{}}));this.prefs={};this.myTasksSources$=
this.prefs$.pipe(A(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(DHb):[].concat(n(cpd))}));this.needsAttentionSources$=this.prefs$.pipe(A(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(DHb):[].concat(n(c))}));this.needsAttentionTimeBoundary$=this.prefs$.pipe(A(function(b){var c;
return(c=b==null?void 0:b.needsAttentionDaysOld)!=null?c:30}));this.needsAttentionFilteredSignals$=this.prefs$.pipe(A(function(b){return{buganizerSignals:FHb(b==null?void 0:b.needsAttentionBuganizerFilteredSignals,a.filteredSignalsOptions),driveSignals:JHb(b==null?void 0:b.needsAttentionDriveFilteredSignals,a.filteredSignalsOptions),gerritSignals:LHb(b==null?void 0:b.needsAttentionGerritFilteredSignals,a.filteredSignalsOptions),changelistSignals:HHb(b==null?void 0:b.needsAttentionChangelistFilteredSignals,
a.filteredSignalsOptions),googleTasksSignals:MHb(b==null?void 0:b.needsAttentionGoogleTasksFilteredSignals,a.filteredSignalsOptions),irmSignals:NHb(b==null?void 0:b.needsAttentionIrmFilteredSignals,a.filteredSignalsOptions)}}),wf({bufferSize:1,refCount:!0}));this.prefs$.pipe(oj(this.destroyRef)).subscribe(function(b){a.prefs=b})},lu=function(a,b){a.kansasPrefsManager.save({missionControlPreferences:Object.assign({},a.prefs,b)}).subscribe()},sKb=function(a,b,c){switch(b){case "mc-my-tasks":a.prefs.myTasksTab=
c;lu(a,{myTasksTab:c});break;case "work-areas-wrapper-card":a.prefs.workAreaTab=c;lu(a,{workAreaTab:c});break;default:console.error("unhandled tab key, cannot save preference")}};w0.prototype.toggleCollapsed=function(a){var b;this.prefs.collapsed=(b=this.prefs.collapsed)!=null?b:{};this.prefs.collapsed[a]=!this.prefs.collapsed[a];lu(this,{collapsed:this.prefs.collapsed})};w0.prototype.isCollapsed=function(a){var b;return!((b=this.prefs.collapsed)==null||!b[a])};
var uRd=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")}};w0.prototype.getMyTasksSources=function(){var a,b=(a=this.prefs.myTasksSources)!=null?a:[];a=this.prefs.isMyTasksSourcesConfigured;return b.length!==0||a?b.map(DHb):[].concat(n(cpd))};var vRd=function(a,b){var c;return(a=(c=a.prefs.workAreaQuickFilters)==null?void 0:c[b])?[a]:[]};
w0.prototype.addHotlist=function(a){wRd(this,GAb(a))};w0.prototype.hasHotlist=function(a){return a==null?!1:xRd(this,GAb(a))};w0.prototype.hasSavedSearch=function(a){return a==null?!1:xRd(this,HAb(a))};
var xRd=function(a,b){var c;return((c=a.prefs.workAreaUrls)!=null?c:[]).includes(b)},wRd=function(a,b){typeof b==="string"&&(b=[b]);if(b!=null&&b.length!==0){var c,d=(c=a.prefs.workAreaUrls)!=null?c:[];d=w1a(b,d);lu(a,{workAreaUrls:d})}},oKb=function(a,b,c){var d,e=((d=a.prefs.workAreaUrls)!=null?d:[]).slice();tRd(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,lu(a,{workAreaUrls:e}))};w0.\u0275fac=function(a){return new (a||w0)};
w0.\u0275prov=Cc({token:w0,factory:w0.\u0275fac,providedIn:"root"});var yRd=function(){this.issueFridge=q(GO);this.candidateIssues$=this.issueFridge.watchMany(gpd);this.suggestions$=this.candidateIssues$.pipe(A(NAb))};yRd.\u0275fac=function(a){return new (a||yRd)};yRd.\u0275prov=Cc({token:yRd,factory:yRd.\u0275fac,providedIn:"root"});var x0=function(){var a=this;this.prefsService=q(w0);this.isNumeric=jab;this.isActive=function(){return zRd(a,a.prefsService.prefs,a.filter.key)};this.active$=this.prefsService.prefs$.pipe(A(function(b){var c;return zRd(a,b,(c=a.filter)==null?void 0:c.key)}))};
x0.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];lu(b,{workAreaQuickFilters:b.prefs.workAreaQuickFilters})}};x0.prototype.isDisabled=function(){return String(this.countDisplay)==="0"&&!this.isActive()};
var zRd=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};
da.Object.defineProperties(x0.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=Ao.get(c.status))==null?0:e.open)b+=d.length}}this.countDisplay=b}else if(this.filter.key==="BROAD_IN_PROGRESS")b=E4a(a,"ASSIGNED"),a=E4a(a,"ACCEPTED"),this.countDisplay=b+a;else throw Error("pg`"+
this.filter.key);},get:function(){return this.metadataInternal}},key:{configurable:!0,enumerable:!0,set:function(a){this.filter=fu[a]}},computeCountFor:{configurable:!0,enumerable:!0,set:function(a){if(a==null)this.countDisplay="-";else{var b,c,d=(c=fu[(b=this.filter)==null?void 0:b.key])==null?void 0:c.check;this.countDisplay=a.filter(d).length}}}});x0.\u0275fac=function(a){return new (a||x0)};
x0.\u0275cmp=C({type:x0,selectors:[["qif-stat"]],hostBindings:function(a,b){a&1&&N("click",function(){return b.onClick()})},inputs:{metadata:"metadata",key:"key",prefKey:"prefKey",computeCountFor:"computeCountFor"},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&&(Sf(0,"button",0),U(1,"async"),Sf(2,"label"),S(3),Tf(),F(4,QHb,2,3,"div",1),Tf());if(a&2){var c;Rf("title",(c=b.filter.tooltip)!=null?
c:"");Jf("aria-pressed",W(1,5,b.active$))("disabled",b.isDisabled()?"true":null);B(3);Ag(b.filter.displayAs);B();G(b.metadata||b.countDisplay!==void 0?4:-1)}},dependencies:[py],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 ARd=function(){};ARd.\u0275fac=function(a){return new (a||ARd)};ARd.\u0275mod=$e({type:ARd});ARd.\u0275inj=Dc({imports:[FN,cL,kz,ZA]});var y0=function(){var a=this;this.issueFridge=q(GO);this.activeSession=q(Zu);this.QuickFilterKey=Xhd;this.query$=new vf(1);this.issues$=this.query$.pipe(zf(function(b){return a.issueFridge.watchMany(b)}),A(function(b){if(a.entityType==="issue")return b.results;var c;return Ysd(b.results,(c=a.activeSession.getTracker())==null?void 0:c.trackerId)}))};da.Object.defineProperties(y0.prototype,{query:{configurable:!0,enumerable:!0,set:function(a){a!=null&&this.query$.next(a)}}});
y0.\u0275fac=function(a){return new (a||y0)};
y0.\u0275cmp=C({type:y0,selectors:[["stat-cards-list"]],inputs:{prefKey:"prefKey",entityType:"entityType",query:"query"},decls:17,vars:40,consts:[[1,"flex-kids-x","gap"],[3,"key","prefKey","computeCountFor"]],template:function(a,b){a&1&&(K(0,"div",0),M(1,"qif-stat",1),U(2,"async"),M(3,"qif-stat",1),U(4,"async"),M(5,"qif-stat",1),U(6,"async"),M(7,"qif-stat",1),U(8,"async"),M(9,"qif-stat",1),U(10,"async"),M(11,"qif-stat",1),U(12,"async"),M(13,"qif-stat",1),U(14,"async"),M(15,"qif-stat",1),U(16,"async"),
L());a&2&&(B(),I("key",b.QuickFilterKey.OPEN)("prefKey",b.prefKey)("computeCountFor",W(2,24,b.issues$)),B(2),I("key",b.QuickFilterKey.BROAD_IN_PROGRESS)("prefKey",b.prefKey)("computeCountFor",W(4,26,b.issues$)),B(2),I("key",b.QuickFilterKey.ASSIGNED_TO_ME_AND_OPEN)("prefKey",b.prefKey)("computeCountFor",W(6,28,b.issues$)),B(2),I("key",b.QuickFilterKey.NEWLY_FILED)("prefKey",b.prefKey)("computeCountFor",W(8,30,b.issues$)),B(2),I("key",b.QuickFilterKey.RECENTLY_ACTIVE)("prefKey",b.prefKey)("computeCountFor",
W(10,32,b.issues$)),B(2),I("key",b.QuickFilterKey.HIGH_PRIORITY)("prefKey",b.prefKey)("computeCountFor",W(12,34,b.issues$)),B(2),I("key",b.QuickFilterKey.TRENDING)("prefKey",b.prefKey)("computeCountFor",W(14,36,b.issues$)),B(2),I("key",b.QuickFilterKey.PROGRESS)("prefKey",b.prefKey)("computeCountFor",W(16,38,b.issues$)))},dependencies:[x0,py],styles:["[_nghost-%COMP%]{display:block;padding-left:1px}\n/*# sourceMappingURL=stat_cards_list.css.map */"],changeDetection:0});var z0=function(){var a=this;this.metadataFridge=q(eN);this.QuickFilterKey=Xhd;this.id$=new vf(1);this.metadata$=this.id$.pipe(zf(function(b){return a.metadataFridge.watch(b)}));this.hasDescendants$=this.metadata$.pipe(A(function(b){var c;return((c=b==null?void 0:b.descendantCount)!=null?c:0)>0}))};da.Object.defineProperties(z0.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a);this.idInternal=a},get:function(){return this.idInternal}}});
z0.\u0275fac=function(a){return new (a||z0)};z0.\u0275cmp=C({type:z0,selectors:[["stat-cards-project"]],inputs:{id:"id"},decls:2,vars:3,consts:[[1,"flex-kids-x","gap"],[3,"key","prefKey","metadata"]],template:function(a,b){a&1&&(F(0,RHb,5,10,"div",0),U(1,"async"));a&2&&G(W(1,1,b.hasDescendants$)?0:-1)},dependencies:[x0,py],styles:["[_nghost-%COMP%]{display:block;padding-left:1px}\n/*# sourceMappingURL=stat_cards_project.css.map */"],changeDetection:0});var BRd=[u0,t0,z0,y0],A0=function(){};A0.\u0275fac=function(a){return new (a||A0)};A0.\u0275mod=$e({type:A0});A0.\u0275inj=Dc({imports:[FN,cL,kz,ZA,a0,ARd,BRd]});var UHb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(UHb,X);h=UHb.prototype;h.getFilename=function(){return Fi(this,1)};h.setFilename=function(a){return Gj(this,1,a)};h.getLineNumber=function(a){return nx(this,2,a)};h.getChangeNumber=function(){return Hn(this,3)};h.getChangeNumber_asLegacyNumberOrString=function(){return Vp(this,3)};h.setChangeNumber=function(a){return Nn(this,3,a)};var WHb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(WHb,X);var CRd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,CRd.messageId)};Z(CRd,X);CRd.messageId="b.MentionSearchResult";var DRd=function(){this.executor=q(SM)};DRd.\u0275fac=function(a){return new (a||DRd)};DRd.\u0275prov=Cc({token:DRd,factory:DRd.\u0275fac,providedIn:"root"});var B0=function(){this.mentionsApi=q(DRd);this.refreshMonitor=q(DO);this.analytics=q(PO)},ERd=function(a,b){var c=a.getLink(b);a.cachedId===b&&a.cachedEntry||(a.cachedId=b,a.cachedEntry=Mmd(a.refreshMonitor,le(function(){return a.mentionsApi.executor.get({url:"action/issues/"+b+"/mentions",responseConstructor:CRd}).then(XHb).then(function(d){return{mentions:d,link:c}}).catch(function(){return{link:c}})}).pipe(yf({link:c}))).pipe(wf({refCount:!0,bufferSize:1})));return a.cachedEntry};
B0.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"};B0.prototype.getLink=function(a){return"https://todo.corp.google.com/?issue="+a};B0.prototype.trackSqueegeeClick=function(){this.analytics.trackEvent("codeMentions","clickSqueegeeLink")};B0.\u0275fac=function(a){return new (a||B0)};B0.\u0275prov=Cc({token:B0,factory:B0.\u0275fac,providedIn:"root"});var FRd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(FRd,X);var GRd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,GRd.messageId)};Z(GRd,X);h=GRd.prototype;h.getIssueId=function(){return Hn(this,1,void 0,fb)};h.getIssueId_asString=function(){return Ln(this,1,void 0,fb)};h.setIssueId=function(a){return Nn(this,1,a,void 0,fb)};h.getResponseId=function(){return Fi(this,2,void 0,fb)};h.setResponseId=function(a){return Gj(this,2,a,fb)};GRd.messageId="hmf.SendFeedbackRequest";var C0=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,C0.messageId)};Z(C0,X);C0.prototype.getIssueCategory=function(){return Ri(this,1,void 0,fb)};C0.prototype.getIssueId=function(){return Hn(this,2,void 0,fb)};C0.prototype.getIssueId_asString=function(){return Ln(this,2,void 0,fb)};C0.prototype.setIssueId=function(a){return Nn(this,2,a,void 0,fb)};C0.messageId="hmf.GetIssueEligibilityResponse";var HRd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,HRd.messageId)};Z(HRd,X);h=HRd.prototype;h.getResponse=function(){return Fi(this,1,void 0,fb)};h.hasResponse=function(){return xm(this,1,fb)};h.getIssueCategory=function(){return Ri(this,2,void 0,fb)};h.getResponseId=function(){return Fi(this,3,void 0,fb)};h.setResponseId=function(a){return Gj(this,3,a,fb)};h.getIssueId=function(){return Hn(this,4,void 0,fb)};
h.getIssueId_asString=function(){return Ln(this,4,void 0,fb)};h.setIssueId=function(a){return Nn(this,4,a,void 0,fb)};HRd.messageId="hmf.GetIssueHelpResponse";var D0=function(){this.executor=q(RM)},IRd=function(a,b){return a.executor.get({url:"action/helpmefix/"+b,responseConstructor:HRd}).pipe(A(ZHb),hf(function(){return be({issueId:b,issueCategory:"ISSUE_CATEGORY_UNSUPPORTED"})}))};D0.prototype.getIssueEligibility=function(a){return this.executor.get({url:"action/helpmefix/"+a+"/eligibility",responseConstructor:C0}).pipe(A($Hb),hf(function(){return be({issueId:a,issueCategory:"ISSUE_CATEGORY_UNSUPPORTED"})}))};
D0.prototype.sendFeedback=function(a,b){var c=this.executor,d=c.post;var e=(new GRd).setIssueId(b.issueId).setResponseId(b.responseId);var f=new FRd;b=Yn(f,1,Ehd[b.userFeedback.sentiment]);e=hj(e,FRd,3,b,fb);return d.call(c,{url:"action/helpmefix/"+a+"/feedback",body:e,responseConstructor:null})};D0.\u0275fac=function(a){return new (a||D0)};D0.\u0275prov=Cc({token:D0,factory:D0.\u0275fac,providedIn:"root"});var E0=function(){dN.call(this);this.api=q(D0);this.recordType="issueHelpMeFixEligibility";this.idForRecord=function(a){return String(a.issueId)};this.isEqual=function(a,b){return a.issueId===b.issueId}};Z(E0,dN);E0.prototype.fetchOne=function(a){return this.api.getIssueEligibility(Number(a))};E0.\u0275fac=function(a){return new (a||E0)};E0.\u0275prov=Cc({token:E0,factory:E0.\u0275fac,providedIn:"root"});var F0=function(){dN.call(this);this.api=q(D0);this.recordType="issueHelpMeFix";this.idForRecord=function(a){return String(a.issueId)};this.isEqual=function(a,b){return a.responseId===b.responseId}};Z(F0,dN);F0.prototype.fetchOne=function(a){return IRd(this.api,Number(a))};F0.\u0275fac=function(a){return new (a||F0)};F0.\u0275prov=Cc({token:F0,factory:F0.\u0275fac,providedIn:"root"});var G0=function(){var a=this;this.analytics=q(PO);this.activeSession=q(Zu);this.contextSensitiveRegistry=q(KP);this.issueHelpMeFixFridge=q(F0);this.issueHelpMeFixEligibilityFridge=q(E0);this.helpMeFixApi=q(D0);this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(A(jn),of(),wf({bufferSize:1,refCount:!0}));this.isHelpMeFixEnabled$=be(this.activeSession.getFlag("enableHelpMeFixSidebar")&&this.activeSession.isInternalSession()).pipe(wf({bufferSize:1,refCount:!0}));this.issueHelpMeFixEligibility$=
this.issueId$.pipe(zf(function(b){return b?a.issueHelpMeFixEligibilityFridge.watch(Number(b),{trustUncertainMemory:!0}):be(void 0)}),wf({bufferSize:1,refCount:!0}));this.isEnabledForCurrentIssue$=this.isHelpMeFixEnabled$.pipe(zf(function(b){return b?a.issueId$.pipe(zf(function(c){return c?a.issueHelpMeFixEligibility$.pipe(A(function(d){return(d==null?void 0:d.issueCategory)!=="ISSUE_CATEGORY_UNSUPPORTED"})):be(!1)}),wf({bufferSize:1,refCount:!0})):be(!1)}));this.issueHelpMeFix$=this.isEnabledForCurrentIssue$.pipe(zf(function(b){return b?
a.issueId$.pipe(mf(1),zf(function(c){return c?a.issueHelpMeFixFridge.watch(Number(c),{trustUncertainMemory:!0}):be(void 0)}),wf({bufferSize:1,refCount:!0})):be(void 0)}))};
G0.prototype.trackImpression=function(){var a=this,b,c,d;return y(function(e){if(e.nextAddress==1)return z(e,ee(a.issueHelpMeFixEligibility$),2);if(e.nextAddress!=3)return b=e.yieldResult,z(e,ee(a.issueId$),3);c=e.yieldResult;a.analytics.trackEvent("helpMeFix","impressionOnIssueIdJson",JSON.stringify({issueCategory:(d=b)==null?void 0:d.issueCategory,issueId:c}));$d(e)})};
var JRd=function(a){var b,c,d;return y(function(e){if(e.nextAddress==1)return z(e,ee(a.issueHelpMeFixEligibility$),2);if(e.nextAddress!=3)return b=e.yieldResult,z(e,ee(a.issueId$),3);c=e.yieldResult;a.analytics.trackEvent("helpMeFix","openOnIssueIdJson",JSON.stringify({issueCategory:(d=b)==null?void 0:d.issueCategory,issueId:c}));$d(e)})};
G0.prototype.trackThumbsUp=function(){var a=this,b,c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,ee(a.issueHelpMeFix$),2);if(g.nextAddress!=3)return b=g.yieldResult,c=Number,z(g,ee(a.issueId$),3);d=c(g.yieldResult);((e=b)==null?0:e.responseId)&&a.helpMeFixApi.sendFeedback(d,{issueId:d,responseId:b.responseId,userFeedback:{sentiment:"SENTIMENT_POSITIVE"}}).pipe(mf(1)).subscribe();a.analytics.trackEvent("helpMeFix","thumbsUpOnIssueIdJson",JSON.stringify({issueCategory:(f=b)==null?void 0:
f.issueCategory,issueId:d}));$d(g)})};
G0.prototype.trackThumbsDown=function(){var a=this,b,c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,ee(a.issueHelpMeFix$),2);if(g.nextAddress!=3)return b=g.yieldResult,c=Number,z(g,ee(a.issueId$),3);d=c(g.yieldResult);((e=b)==null?0:e.responseId)&&a.helpMeFixApi.sendFeedback(d,{issueId:d,responseId:b.responseId,userFeedback:{sentiment:"SENTIMENT_NEGATIVE"}}).pipe(mf(1)).subscribe();a.analytics.trackEvent("helpMeFix","thumbsDownOnIssueIdJson",JSON.stringify({issueCategory:(f=b)==null?
void 0:f.issueCategory,issueId:d}));$d(g)})};G0.\u0275fac=function(a){return new (a||G0)};G0.\u0275prov=Cc({token:G0,factory:G0.\u0275fac,providedIn:"root"});var H0=function(){var a=this;this.issueFullFridge=q(RO);this.issueApi=q(tO);this.prompts=q(KRd);this.contextSensitiveRegistry=q(KP);this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(te(ln),of());this.issue$=this.issueId$.pipe(zf(function(c){return a.issueFullFridge.watch(c)}),te(ln),of(function(c,d){return c.issueId===d.issueId&&c.version===d.version}));this.summarizable$=this.issue$.pipe(zf(function(c){return LRd(a.prompts,c.issueId).pipe(A(function(d){return{issue:c,isSummarizable:d}}))}),
wf({refCount:!0,bufferSize:1}));this.summary$=this.summarizable$.pipe(te(function(c){return c.isSummarizable}),zf(function(c){return MRd(a,c.issue)}),wf({refCount:!0,bufferSize:1}));var b=q(Be);this.summary$.pipe(oj(b)).subscribe()},MRd=function(a,b){return a.getIssueSummary(b,"COMMENTS_LONG").pipe(zf(function(c){return(c==null?0:c.summary)?be(c):NRd(a,b)}))};
H0.prototype.getIssueSummary=function(a,b){return this.issueApi.getIssueSummary(a.issueId,b).pipe(hf(function(c){c.status!==404&&pn("Error to get an issue summary: error: ",c);return be(void 0)}))};var NRd=function(a,b){return tmd(a.issueApi,b.issueId).pipe(hf(function(c){pn("Error to generate an issue summary: error: ",c);return be(void 0)}))};H0.\u0275fac=function(a){return new (a||H0)};H0.\u0275prov=Cc({token:H0,factory:H0.\u0275fac,providedIn:"root"});
var KRd=function(){this.eventsForIssueFridge=q(vO)},LRd=function(a,b){return a.eventsForIssueFridge.watch(b,{trustUncertainMemory:!0}).pipe(A(function(c){return bIb(c)}),of())};KRd.\u0275fac=function(a){return new (a||KRd)};KRd.\u0275prov=Cc({token:KRd,factory:KRd.\u0275fac,providedIn:"root"});var ORd={issueId:"",category:"issue-summary",displayName:"AI Summary",author:{emailAddress:"buganizer@google.com"},timestamp:{seconds:Date.now()/1E3,nanos:0}},PRd={issueId:"",category:"help-me-fix",displayName:"Help me fix",author:{emailAddress:"buganizer@google.com"},timestamp:{seconds:Date.now()/1E3,nanos:0}},QRd=["issue-summary","help-me-fix"],I0={},RRd=(I0.EVENT_TYPE_UNSPECIFIED="ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED",I0.EVENT_TYPE_THUMBS_UP="THUMBS_UP",I0.EVENT_TYPE_THUMBS_DOWN="THUMBS_DOWN",
I0.EVENT_TYPE_OPEN="OPEN",I0.EVENT_TYPE_CLOSE="CLOSE",I0.EVENT_TYPE_COPY="COPY",I0.EVENT_TYPE_CLOSE_AS_DUPLICATE="CLOSE_AS_DUPLICATE",I0.EVENT_TYPE_ISSUE_HOVERCARD="ISSUE_HOVERCARD",I0.EVENT_TYPE_GO_TO_ISSUE="GO_TO_ISSUE",I0.EVENT_TYPE_DELETE="DELETE",I0.EVENT_TYPE_VIEW="VIEW",I0.EVENT_TYPE_IMPRESSION="IMPRESSION",I0.EVENT_TYPE_COPY_DEEP_LINK="COPY_DEEP_LINK",I0.EVENT_TYPE_ACCEPT="ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED",I0.EVENT_TYPE_PARTIALLY_ACCEPT="ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED",I0.EVENT_TYPE_REJECT=
"ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED",I0.EVENT_TYPE_FEEDBACK="ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED",I0.EVENT_TYPE_DISPLAYED_DURING_ISSUE_CREATION="ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED",I0),J0=function(){var a=this;this.contextSensitiveRegistry=q(KP);this.issueEnrichmentFridge=q(zO);this.enrichmentCategoryFridge=q(eO);this.activeSession=q(Zu);this.llmIssueSummaryService=q(H0);this.helpMeFixService=q(G0);this.commentFormatter=q(TP);this.enrichmentApi=q(iN);this.issueUserEventsService=q(sV);this.issueId$=
this.contextSensitiveRegistry.getIssueId().pipe(te(ln),of());this.baseEnrichments$=this.issueId$.pipe(zf(function(b){return a.issueEnrichmentFridge.watch(b)}),A(function(b){var c;return((c=b==null?void 0:b.enrichments)!=null?c:[]).filter(function(d){var e;return(e=d.general)==null?void 0:e.content})}));this.categoryDisplayNames$=this.baseEnrichments$.pipe(zf(function(b){b=b.map(function(c){return c.category});return a.enrichmentCategoryFridge.watchSet(b)}),A(function(b){var c=new Map;b=l(b);for(var d=
b.next();!d.done;d=b.next())d=d.value,c.set(d.name,d.displayName);return c}));this.issueSummaryEnrichment$=this.llmIssueSummaryService.summarizable$.pipe(zf(function(b){return b.isSummarizable&&a.activeSession.isInternalSession()?a.llmIssueSummaryService.summary$.pipe(A(function(c){return c!=null&&c.summary?Object.assign({},ORd,{issueId:b.issue.issueId,general:{content:c.summary,formattedContent:{markdownFormat:c.formattedSummary}}}):Object.assign({},ORd,{issueId:b.issue.issueId})}),yf(Object.assign({},
ORd,{issueId:b.issue.issueId}))):be(void 0)}));this.helpMeFixAsyncContent$=this.helpMeFixService.issueHelpMeFix$.pipe(zf(function(b){if(b==null||!b.response){var c={content:"",formattedContent:{markdownFormat:{content:Dh("HelpMeFix did not return a response")}}};return be(c)}return a.commentFormatter.format({comment:b.response,formattingMode:"MARKDOWN",audience:"INTERNAL",idPrefix:"help_me_fix"}).pipe(A(function(d){return{content:b.response,formattedContent:d}}))}));this.helpMeFixEnrichment$=this.helpMeFixService.isEnabledForCurrentIssue$.pipe(zf(function(b){return b&&
a.activeSession.isInternalSession()?a.issueId$.pipe(mf(1),zf(function(c){return be(Object.assign({},PRd,{issueId:c,asyncContent:a.helpMeFixAsyncContent$}))})):be(void 0)}));this.issueEnrichments$=he([this.baseEnrichments$,this.categoryDisplayNames$,this.issueSummaryEnrichment$,this.helpMeFixEnrichment$]).pipe(A(function(b){var c=l(b);var d=c.next().value;var e=c.next().value;b=c.next().value;c=c.next().value;d=d.map(function(f){var g;return Object.assign({},f,{displayName:(g=e.get(f.category))!=null?
g:f.category})});b&&d.push(b);c&&d.push(c);return d}))};J0.prototype.logIssueUserEventForIssueEnrichment=function(a,b,c){var d=this;return y(function(e){return e.nextAddress==1?c==="issue-summary"?z(e,SRd(d,b),0):c==="help-me-fix"?z(e,TRd(d,a,b),0):z(e,ee(d.issueUserEventsService.logIssueUserEventForIssueEnrichment(a,"FEATURE_INSIGHT",b,c)),6):z(e,d.submitEnrichmentFeedback(a,c,b),0)})};
J0.prototype.submitEnrichmentFeedback=function(a,b,c){var d=this,e;return y(function(f){e=RRd[c];return e==="ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED"?f.jumpTo(0):z(f,ee(d.enrichmentApi.submitEnrichmentFeedback({issueId:a,category:b,feedbackType:e})),0)})};
var SRd=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return z(d,ee(a.llmIssueSummaryService.summary$),2);if(c=d.yieldResult){var e=a.issueUserEventsService;var f=c.issueId,g=c.summaryType,k=c.modelVersion,m=c.issueVersion;var r=new rV;g=(new FBd).setSummaryType(nhd[g]).setModelVersion(k).setIssueVersion(m);r=op(r,1,GBd,g);e=e.logIssueUserEvent(f,"FEATURE_SUMMARY",b,r);d=z(d,ee(e),0)}else d=d.jumpTo(0);return d})},TRd=function(a,b,c){return y(function(d){switch(d.nextAddress){case 1:return z(d,
ee(a.issueUserEventsService.logIssueUserEvent(b,"FEATURE_HELP_ME_FIX",c)),2);case 2:switch(c){case "EVENT_TYPE_IMPRESSION":return d.jumpTo(3);case "EVENT_TYPE_THUMBS_UP":return d.jumpTo(4);case "EVENT_TYPE_THUMBS_DOWN":return d.jumpTo(5);case "EVENT_TYPE_VIEW":return d.jumpTo(6)}d.jumpTo(0);break;case 3:return z(d,a.helpMeFixService.trackImpression(),8);case 8:d.jumpTo(0);break;case 4:return z(d,a.helpMeFixService.trackThumbsUp(),9);case 9:d.jumpTo(0);break;case 5:return z(d,a.helpMeFixService.trackThumbsDown(),
10);case 10:d.jumpTo(0);break;case 6:return z(d,JRd(a.helpMeFixService),11);case 11:d.jumpTo(0)}})};J0.\u0275fac=function(a){return new (a||J0)};J0.\u0275prov=Cc({token:J0,factory:J0.\u0275fac,providedIn:"root"});var K0=function(){var a=this;this.paramsService=q(JP);this.issueRelationshipsFridge=q(XO);this.issueFullFridge=q(RO);this.issueFridge=q(GO);this.codeMentions=q(B0);this.eventsForIssue=q(vO);this.activeSession=q(Zu);this.issueEnrichmentService=q(J0);this.id$=this.paramsService.issueId$.pipe(te(ln),nf(1E3));this.issue$=this.id$.pipe(zf(function(b){return a.issueFullFridge.watch(b)}));this.issueEvents$=this.id$.pipe(zf(function(b){return a.eventsForIssue.watch(b)}),A(function(b){var c;return(c=b==null?
void 0:b.events)!=null?c:[]}));this.blockerIssueIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockedByIssueId)!=null?c:[]}),of(Gm));this.blockedIssueIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockingIssueId)!=null?c:[]}),of(Gm));this.parentIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.parentIssueIds)!=null?c:[]}),of(Gm));this.childrenIds$=this.id$.pipe(zf(function(b){return a.issueRelationshipsFridge.watch(b)}),
A(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(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].duplicateIssueId)!=null?c:[]}),of(Gm));this.blockersDualCount$=he([this.id$,this.blockerIssueIds$]).pipe(zf(function(b){var c=l(b);b=c.next().value;c=c.next().value;return URd(a,b,c,["BLOCKED_BY"])}),wf({bufferSize:1,refCount:!0}));this.countBlockersDisplay$=this.blockersDualCount$.pipe(A(dIb),
wf({bufferSize:1,refCount:!0}));this.blockedDualCount$=he([this.id$,this.blockedIssueIds$]).pipe(zf(function(b){var c=l(b);b=c.next().value;c=c.next().value;return URd(a,b,c,["BLOCKING"])}),wf({bufferSize:1,refCount:!0}));this.countBlockedDisplay$=this.blockedDualCount$.pipe(A(dIb),wf({bufferSize:1,refCount:!0}));this.childrenDualCount$=he([this.id$,this.childrenIds$]).pipe(zf(function(b){var c=l(b);b=c.next().value;c=c.next().value;return URd(a,b,c,["CHILDREN"])}),wf({bufferSize:1,refCount:!0}));
this.countChildrenDisplay$=this.childrenDualCount$.pipe(A(dIb),wf({bufferSize:1,refCount:!0}));this.parentsDualCount$=he([this.id$,this.parentIds$]).pipe(zf(function(b){var c=l(b);b=c.next().value;c=c.next().value;return URd(a,b,c,["PARENT"])}),wf({bufferSize:1,refCount:!0}));this.countParentsDisplay$=this.parentsDualCount$.pipe(A(dIb),wf({bufferSize:1,refCount:!0}));this.dependenciesDualCount$=he([this.id$,this.blockerIssueIds$,this.childrenIds$]).pipe(zf(function(b){var c=l(b);b=c.next().value;
var d=c.next().value;c=c.next().value;return URd(a,b,[].concat(n(c),n(d)),["CHILDREN","BLOCKED_BY"])}));this.countDependenciesDisplay$=this.dependenciesDualCount$.pipe(A(dIb),wf({bufferSize:1,refCount:!0}));this.duplicatesDualCount$=he([this.id$,this.duplicateIssueIds$]).pipe(zf(function(b){var c=l(b);b=c.next().value;c=c.next().value;return URd(a,b,c,["DUPLICATE"])}),wf({bufferSize:1,refCount:!0}));this.countDuplicateDisplay$=this.duplicatesDualCount$.pipe(A(function(b){return b.total}),A(eIb),wf({bufferSize:1,
refCount:!0}));this.countResourcesDisplay$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.relatedLinks)!=null?c:[]}),A(function(b){return a.activeSession.isInternalSession()?b:b.filter(function(c){return!J$a(c)})}),A(function(b){return ju(b.length)}),A(eIb),wf({bufferSize:1,refCount:!0}));this.countInsightsDisplay$=this.issueEnrichmentService.issueEnrichments$.pipe(A(function(b){return ju(b.length)}),A(eIb),wf({bufferSize:1,refCount:!0}));this.countTodosDisplay$=this.id$.pipe(te(ln),
zf(function(b){return ERd(a.codeMentions,b)}),A(function(b){var c,d;return ju((d=(c=b.mentions)==null?void 0:c.totalMentions)!=null?d:0)}),A(eIb),wf({bufferSize:1,refCount:!0}));this.countCommentsDisplay$=this.issueEvents$.pipe(A(function(b){return ju(b.filter(yo).length)}),A(eIb),wf({bufferSize:1,refCount:!0}))},URd=function(a,b,c,d){d=d===void 0?[]:d;c=Oq(c);if(!b||c.length===0)return be({open:{count:0,exact:!0},total:{count:0,exact:!0}});d=d.map(function(e){return fIb(b,e)}).filter(ln).map(function(e){return"("+
e+")"}).join(" OR ");return c.length>99&&d?a.issueFridge.watchMany({filter:d,pageSize:100}).pipe(A(function(e){e=e.results.filter(Bo).filter(uWa).length;return{open:ju(e),total:ju(c.length)}})):he(c.map(function(e){return a.issueFullFridge.watch(e)})).pipe(A(function(e){return{open:ju(e.filter(ln).filter(Bo).filter(uWa).length),total:ju(e.filter(function(f){return!f||uWa(f)}).length)}}))};K0.\u0275fac=function(a){return new (a||K0)};K0.\u0275prov=Cc({token:K0,factory:K0.\u0275fac,providedIn:"root"});var L0=function(){LO.call(this);var a=this;this.issueFullFridge=q(RO);this.butterBar=q(JM);this.analytics=q(PO);this.refreshMonitor=q(DO);this.contextSensitiveRegistry=q(KP);this.issuePermissionService=q(NP);this.issuePicker=q(pX);this.errorHandler=q(ZM);this.counts=q(K0);this.issueId$=this.contextSensitiveRegistry.getIssueId();this.issue$=this.issueId$.pipe(zf(function(b){return b?a.issueFullFridge.watch(b):be(void 0)}));this.filters=[];this.shouldResetFilters=new KO;this.tableColumns=[].concat(n(lPd));
this.initialSort={column:"STATUS",direction:"ASCENDING"};this.canEdit$=this.issuePermissionService.hasAclToEdit$;this.blockerIds$=this.issue$.pipe(A(function(b){return b==null?void 0:b.snapshot[0]}),A(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(zf(function(b){return b.length===0?be(0):a.counts.blockersDualCount$.pipe(A(function(c){return c.total.count}))}));this.showBlockersTable$=this.blockersCount$.pipe(A(function(b){return b>
0}),yf(!0));this.tableOptions={menu:{includeGoToIssueItem:!0},deEmphasizeClosedIssues:!0};this.getMenuItems=function(b){return[{type:"action",label:"Remove blocker",action:function(){VRd(a,b)},title:"Remove blocker",icon:"clear"}]};this.subscriptions.add(this.refreshMonitor.getObservable().pipe(Df(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)}}))};Z(L0,LO);L0.\u0275dir=LO.\u0275dir;
var nIb=function(a){var b;return y(function(c){if(c.nextAddress==1)return z(c,ee(a.issueId$),2);b=c.yieldResult;if(b==null)return c.return();a.analytics.trackEvent("editIssue","update","add-blocker");return z(c,a.issuePicker.open({title:"Add Blockers of "+b,allowMultipleIds:!0,edgeType:"blocker"},function(d){WRd(a,b,d)}),0)})},WRd=function(a,b,c){y(function(d){return c.length===0?d.return():z(d,a.issueFullFridge.addBlockedBy(b,c).catch(function(e){aN(a.errorHandler,e)}),0)})},VRd=function(a,b){var c,
d;y(function(e){switch(e.nextAddress){case 1:return z(e,ee(a.issueId$),2);case 2:c=e.yieldResult;if(c==null)return e.return();a.analytics.trackEvent("editIssue","update","remove-blocker");Vd(e,3);return z(e,a.issueFullFridge.removeBlockedBy(c,[b]),5);case 5:bk(e,0);break;case 3:d=Zd(e),a.butterBar.showWarning("Could not remove blocker "+b+". "+(hq(d)?iq(d):d)),$d(e)}})};L0.\u0275fac=function(a){return new (a||L0)};
L0.\u0275cmp=C({type:L0,selectors:[["b-blockers-table"]],viewQuery:function(a,b){a&1&&kg(g_,5);if(a&2){var c;og(c=pg())&&(b.issuesTable=c.first)}},inputs:{filters:"filters"},outputs:{shouldResetFilters:"shouldResetFilters"},features:[Ff],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&&(K(0,"div",1)(1,"h4",2)(2,"div",3),M(3,"mat-icon",4),L(),S(4),U(5,"async"),L(),F(6,hIb,1,
1,"ng-container"),U(7,"async"),L(),F(8,jIb,2,3),U(9,"async"),Mf(10,lIb,6,1,"div"),F(11,mIb,4,2,"p",5),U(12,"async"),E(13,oIb,3,3,"ng-template",null,0,Og));if(a&2){var c;B(4);T(" Blockers ",W(5,4,b.counts.countBlockersDisplay$)," ");B(2);G(W(7,6,b.showBlockersTable$)?6:-1);B(2);G(W(9,8,b.showBlockersTable$)?8:10);B(3);G((c=W(12,10,b.issuesTable==null?null:b.issuesTable.hiddenRowCount$))?11:-1,c)}},dependencies:[YT,hK,g_,iz,MA,oy,py],styles:["[_nghost-%COMP%] {\n      display: block;\n    }\n    b-issues-table[_ngcontent-%COMP%] {\n      display: block;\n      overflow-x: auto;\n    }"],
changeDetection:0});var N0=function(){LO.apply(this,arguments);this.routerEvents=q(OO);this.documentVisibility=q(M0);this.validNavigations=0;this.ignoringNextNav=!1;this.mostRecentlyMeasured="";this.tabWasHidden=!1};Z(N0,LO);N0.\u0275dir=LO.\u0275dir;
N0.prototype.install=function(){var a=this;P4a()&&(this.subscriptions.add(this.routerEvents.routeChangeStart.subscribe(function(){XRd(a)})),this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(function(){a.ignoringNextNav?a.ignoringNextNav=!1:a.validNavigations++})),this.subscriptions.add(this.routerEvents.routeUpdate.subscribe(function(){XRd(a);a.ignoringNextNav?a.ignoringNextNav=!1:a.validNavigations++})),this.subscriptions.add(this.documentVisibility.visibilityState$.pipe(te(function(b){return b!==
"visible"}),mf(1)).subscribe(function(){a.tabWasHidden=!0})))};
var XRd=function(a){a.ignoringNextNav||(Nmd("appNavStart"),a.mostRecentlyMeasured="")},YRd=function(a,b){Nmd(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)&&P4a())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)}}};
N0.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(N0)))(b||N0)}}();N0.\u0275prov=Cc({token:N0,factory:N0.\u0275fac,providedIn:"root"});var M0=function(){var a=this;this.window=q(ZP);this.visibilityState$=oe(this.window.document,"visibilityChange").pipe(yf(void 0),A(function(){return a.currentVisibility}))};da.Object.defineProperties(M0.prototype,{currentVisibility:{configurable:!0,enumerable:!0,get:function(){return this.window.document.visibilityState}}});
M0.\u0275fac=function(a){return new (a||M0)};M0.\u0275prov=Cc({token:M0,factory:M0.\u0275fac,providedIn:"root"});var ZRd=function(){this.imageUrls=q(LV);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};ZRd.\u0275fac=function(a){return new (a||ZRd)};
ZRd.\u0275cmp=C({type:ZRd,selectors:[["b-issue-dependencies-onboarding-dialog"]],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&&(K(0,"h1",0),S(1,"About Dependencies"),L(),K(2,"div",1)(3,"div",2),M(4,"img",3)(5,"img",3)(6,"img",4)(7,"img",4),L(),K(8,"article")(9,"p",5),S(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. "),K(11,"a",6),S(12,"Learn more"),L()()()(),K(13,"div",7)(14,"button",
8),S(15,"Ok"),L()());a&2&&(B(4),I("src",b.EMPTY_CHILD_LIGHT,Me),B(),I("src",b.EMPTY_BLOCKER_LIGHT,Me),B(),I("src",b.EMPTY_CHILD_DARK,Me),B(),I("src",b.EMPTY_BLOCKER_DARK,Me))},dependencies:[ZA,XA,TA,mB,hB,lB,kB],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 $Rd={CANCEL:"CANCEL",ARCHIVE_ALL:"ARCHIVE_ALL",ARCHIVE_ONE:"ARCHIVE_ONE"},aSd=function(){this.data=q(fB);this.paths=q(wV);this.descendantIssuesUrl=this.paths.listIssues({q:"parentId:"+this.data.issueId+"+"});this.numberOfDescendants=this.data.numberOfDescendants;this.ActionType=$Rd};aSd.\u0275fac=function(a){return new (a||aSd)};
aSd.\u0275cmp=C({type:aSd,selectors:[["b-issue-archive-dialog"]],decls:18,vars:6,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&&(K(0,"h1",0),S(1,"Archive with all descendant issues?"),
L(),K(2,"div",1),S(3),M(4,"br")(5,"br"),K(6,"a",2),S(7,"View all descendant issues"),L(),M(8,"br"),K(9,"a",3),S(10,"Learn more"),L()(),K(11,"div",4)(12,"button",5),S(13,"Cancel"),L(),K(14,"button",5),S(15," Just this one "),L(),K(16,"button",6),S(17," Archive all "),L()());a&2&&(B(3),T(" 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? "),B(3),I("href",Fg(b.descendantIssuesUrl),
Me),B(6),I("matDialogClose",b.ActionType.CANCEL),B(2),I("matDialogClose",b.ActionType.ARCHIVE_ONE),B(2),I("matDialogClose",b.ActionType.ARCHIVE_ALL))},dependencies:[ZA,XA,TA,mB,hB,lB,kB],encapsulation:2});var O0=function(){this.issueApi=q(uO);this.dialog=q(gB);this.confirmationDialogService=q(PQ);this.issueRelationshipsFridge=q(XO);this.issueFullFridge=q(RO);this.eventsForIssueFridge=q(vO);this.paths=q(wV);this.butterBar=q(JM);this.editIssueService=q(tR)};
O0.prototype.submitArchivalState=function(a,b){var c=this;return y(function(d){if(d.nextAddress==1)return b?z(d,c.archive(a),5):z(d,c.editIssueService.unarchive(a),0);c.issueFullFridge.poke(a);c.eventsForIssueFridge.poke(a);$d(d)})};
O0.prototype.archive=function(a){var b=this,c,d,e,f,g,k,m,r,w,x;return y(function(D){if(D.nextAddress==1)return z(D,Promise.all([b.getDescendants(a),ee(b.issueFullFridge.watch(a))]),2);c=D.yieldResult;d=l(c);e=d.next().value;f=d.next().value;g=e;k=f;m=g;r=m.childToParents;w=m.completeResult;x=[].concat(n(r.keys()));r.set(a,k.parentIssueIds||[]);return x.length===0?D.return(bSd(b,a,r)):w?D.return(cSd(b,a,x,r)):D.return(dSd(b,a,r))})};
var cSd=function(a,b,c,d){var e,f,g;return y(function(k){if(k.nextAddress==1)return e={numberOfDescendants:c.length,issueId:b},f={data:e,width:"500px"},z(k,ee(eB(a.dialog.open(aSd,f))),2);g=k.yieldResult;switch(g){case "ARCHIVE_ALL":return k.return(eSd(a,[b].concat(n(c)),d));case "ARCHIVE_ONE":return k.return(bSd(a,b,d));case "CANCEL":return k.return();default:return k.return(sb(g))}})},eSd=function(a,b,c){var d=[{issueIds:b,actions:[{fieldName:"isArchived",value:"true"}]}];fSd(a,c);fs(a.butterBar,
"Archiving "+b.length+" issues...");return a.issueApi.issueBulkEdit({bulkEditOps:d}).then(function(){fs(a.butterBar,"Archived "+b.length+" issues successfully.")}).catch(function(e){a.butterBar.showWarning(e);gSd(a,c)})},bSd=function(a,b,c){fSd(a,c);return a.issueApi.updateIssue(b,{issueId:b,actions:[{fieldName:"isArchived",value:"true"}]}).then(function(){fs(a.butterBar,"Archived successfully.")}).catch(function(d){a.butterBar.showWarning(d);gSd(a,c)})},dSd=function(a,b,c){return new Promise(function(d){a.confirmationDialogService.open({title:"Archive issue with descendant issues?",
content:Fh([Dh("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."),Gh("br",{}),Gh("br",{}),Gh("a",{href:a.paths.listIssues({q:"parentId:"+b+"+"}),target:"_blank"},"View all descendant issues"),Gh("br",{}),Gh("a",{href:"http://go/b-issue-archive",target:"_blank"},"Learn more")]),cancelButtonText:"Cancel",confirmButtonText:"Just this one",
onConfirm:function(){bSd(a,b,c).then(d)},onDismiss:d})})},fSd=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)}},gSd=function(a,b){b=[].concat(n(b.values())).flat();b=l(b);for(var c=b.next();!c.done;c=b.next())a.issueRelationshipsFridge.poke(c.value)};
O0.prototype.getDescendants=function(a){var b=this,c,d,e,f,g,k,m,r,w,x,D,H;return y(function(J){if(J.nextAddress==1)return z(J,ee(Tnd(b.issueRelationshipsFridge,a)),2);c=J.yieldResult;d=c.results;e=!0;f=new Map;g=l(d);for(k=g.next();!k.done;k=g.next()){m=k.value;r=l(m.relatedChildren);for(w=r.next();!w.done;w=r.next())x=w.value,D=void 0,H=(D=f.get(x.targetIssueId))!=null?D:[],H.push(m.issueId),f.set(x.targetIssueId,H);m.totalChildCount===m.relatedChildren.length||(e=!1)}return J.return({childToParents:f,
completeResult:e})})};O0.\u0275fac=function(a){return new (a||O0)};O0.\u0275prov=Cc({token:O0,factory:O0.\u0275fac,providedIn:"root"});var P0=function(a){this.pathToAncestor=a},ku=function(a){return new P0(a.split(">"))},hSd=function(a,b){return new P0([].concat(n(a.pathToAncestor),[b]))};P0.prototype.hash=function(){return this.pathToAncestor.join(">")};P0.prototype.equals=function(a){return!!a&&Gm(this.pathToAncestor,a.pathToAncestor)};var iSd=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};
P0.prototype.contains=function(a){return this.pathToAncestor.join(",").includes(a.pathToAncestor.join(","))};P0.prototype.some=function(a){return this.pathToAncestor.some(a)};P0.prototype.toString=function(){return this.hash()};
da.Object.defineProperties(P0.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 P0(this.pathToAncestor.slice(0,this.size-1))}},root:{configurable:!0,enumerable:!0,get:function(){return this.pathToAncestor[0]}}});var jSd=function(){var a=this;this.draftRows=new Map;this.changed$=new rf;this.counter=0;this.createId=function(){return String(a.counter++)}};jSd.prototype.create=function(a,b,c){var d=this.createId();b={type:"draft-issue",title:"",ancestorChain:hSd(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};
jSd.prototype.get=function(a){var b;return(b=this.draftRows.get(a.hash()))!=null?b:[]};jSd.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 kSd=function(a,b){return y(function(c){return c.return(ee(a.changed$.pipe(yf(a.draftRows),A(function(d){return![].concat(n(d.values())).flat().some(function(e){return e.issueId===b||e.id===b})}),te(Boolean),A(function(){}))))})};jSd.prototype.isSaving=function(){return[].concat(n(this.draftRows.values())).flat().some(function(a){return a.saving})};jSd.prototype.set=function(a,b){var c=this.get(a);this.draftRows.set(a.hash(),[].concat(n(c),[b]));this.changed$.next(this.draftRows)};var lSd={defaultExpandedChildren:10,defaultExpansionLevel:3,maxExpansion:500},mSd=function(a){var b=void 0;b=b===void 0?lSd:b;a=a===void 0?{}:a;this.config=b;this.expansionState=this.initialState=a;this.changed$=new vf(1)},nSd=function(a,b){b=b.hash();return a.expansionState[b]},oSd=function(a,b,c){b=b.hash();c===void 0?delete a.expansionState[b]:a.expansionState[b]=c;a.changed$.next(a.expansionState)},pSd=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=hSd(b,
e.nodeId);e.size<=a.config.defaultExpansionLevel&&nSd(a,e)===void 0&&(a.expansionState[f.hash()]=a.config.defaultExpandedChildren,d=!0);for(var g=l(Object.entries(a.expansionState)),k=g.next();!k.done;k=g.next()){k=l(k.value);var m=k.next().value;k=k.next().value;m=ku(m);m.contains(e)&&(d=m.pathToAncestor.join(",").replace(e.pathToAncestor.join(","),f.pathToAncestor.join(",")).split(","),d=new P0(d),delete a.expansionState[m.hash()],a.expansionState[d.hash()]=k,d=!0)}}if(!nSd(a,b)){var r;a.expansionState[b.hash()]=
(r=a.config.defaultExpandedChildren)!=null?r:a.config.maxExpansion;d=!0}d&&a.changed$.next(a.expansionState)};var Q0=function(){this.issueApi=q(uO);this.activeSession=q(Zu);this.issueFullFridge=q(RO);this.componentFridge=q(AN);this.componentTemplatesFridge=q(GN);this.userPreferencesManager=q(VP);this.currentUser=Sm(this.activeSession.getUserEmail())},rSd=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,qSd(a,b),2);c=f.yieldResult;d=c.component;e=c.defaultTemplate;return f.return(I4a(d,e))})},tSd=function(a,b){return sSd(a,b).pipe(A(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}}))},uSd=function(a,b,c){var d;return y(function(e){if(e.nextAddress==1)return z(e,ee(sSd(a,b)),2);d=e.yieldResult;d.title=c;return e.return(a.create(d))})};
Q0.prototype.create=function(a){var b=this,c,d;return y(function(e){return e.nextAddress==1?z(e,b.issueApi.createIssue({snapshot:a}),2):e.nextAddress!=3?(c=e.yieldResult,d=c.issueId,z(e,b.issueFullFridge.poke(String(d)),3)):e.return({issueId:String(d)})})};
var sSd=function(a,b){return a.issueFullFridge.watch(b).pipe(te(ln),zf(function(c){var d,e,f,g;return y(function(k){if(k.nextAddress==1)return z(k,qSd(a,String(c.snapshot[0].componentId)),2);d=k.yieldResult;if(c){var m={};c.snapshot[0].priority&&(m.priority=c.snapshot[0].priority);c.snapshot[0].severity&&(m.severity=c.snapshot[0].severity);c.snapshot[0].type&&(m.type=Pnd[c.snapshot[0].type])}else m={};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]},m,vSd(d.defaultTemplate),wSd(d.component,d.defaultTemplate));e.comment="";e.formattingMode=(g=(f=WP(a.userPreferencesManager).commentFormattingPreferences)==null?void 0:f.lastPublishMode)!=null?g:"UNSPECIFIED_FORMATTING_MODE";e.assigneeUser&&(e.status="ASSIGNED");return k.return(e)})}))},vSd=function(a){if(!a)return{};a=Ki(a.snapshot,function(b){return b==null||typeof b==="string"&&xa(b)?
!1:!0});delete a.componentId;return a},wSd=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$22:void 0},e=a.next())if(d.customField$jscomp$22=e.value,d.customField$jscomp$22.required){var f=void 0;e=(f=d.customField$jscomp$22.typedDefaultValue)!=null?f:{customFieldId:d.customField$jscomp$22.customFieldId};var g=f=void 0,k=void 0,m=(k=(f=b)==null?void 0:(g=f.snapshot.customField)==null?void 0:g.find(function(r){return function(w){return w.customFieldId===
r.customField$jscomp$22.customFieldId}}(d)))!=null?k:e;m&&c.push(Object.assign({},m))}return c.length===0?{}:{customField:c}},qSd=function(a,b){var c,d,e,f,g,k;return y(function(m){if(m.nextAddress==1)return z(m,Promise.all([ee(a.componentTemplatesFridge.defaultTemplate$(b)),ee(a.componentFridge.watch(b).pipe(te(ln)))]),2);c=m.yieldResult;d=l(c);e=d.next().value;f=d.next().value;g=e;k=f;return m.return({component:k,defaultTemplate:g})})};Q0.\u0275fac=function(a){return new (a||Q0)};
Q0.\u0275prov=Cc({token:Q0,factory:Q0.\u0275fac,providedIn:"root"});var R0=function(a,b,c,d,e,f,g,k,m,r,w,x,D,H,J){c=c===void 0?1:c;LO.call(this);var O=this;this.rootIssueId=a;this.quickFilters=b;this.defaultExpansionLevel=c;this.saveExpansionAtKey=d;this.analytics=e;this.butterBar=f;this.issueFullFridge=g;this.issuePicker=k;this.issueRelationshipsFridge=m;this.paths=r;this.router=w;this.issueCreationService=x;this.clearcut=D;this.refreshMonitor=H;this.permissionsFridge=J;this.defaultExpandedChildren=10;this.isOneLineCreationSupported=function(){return O.supportsOneLineCreation};
this.defaultApiRequestDepth=this.defaultExpansionLevel+2;a=this.saveExpansionAtKey?No(this.saveExpansionAtKey):function(){};this.expansion=new mSd(xSd(this));this.draftRows=new jSd;this.refetchingAll$=new Xj(!1);this.userRequestedRefresh$=this.refreshMonitor.getObservable().pipe(Df(le(function(){return O.rows$})),zf(function(R){R=l(R);R.next();var V=R.next().value;O.refetchingAll$.next(!0);R=[];if(!V)return Promise.resolve();R.push(Und(O.issueRelationshipsFridge,O.rootIssueId,O.defaultApiRequestDepth));
V=l(V);for(var ba=V.next();!ba.done;ba=V.next())ba=ba.value,ba.type==="data"&&R.push(O.issueFullFridge.poke(ba.id)),ba.level>O.defaultExpansionLevel&&R.push(O.issueRelationshipsFridge.poke(ba.id));return Promise.all(R).then(function(){O.refetchingAll$.next(!1)})}));this.rows$=se(this.draftRows.changed$,this.expansion.changed$,this.userRequestedRefresh$,Eha(be({}),Rr)).pipe(zf(function(){return Tnd(O.issueRelationshipsFridge,O.rootIssueId,O.defaultApiRequestDepth)}),zf(function(){for(var R=new Map,
V=l(Object.entries(O.expansion.expansionState)),ba=V.next();!ba.done;ba=V.next()){ba=l(ba.value);var pa=ba.next().value;ba=ba.next().value;pa=ku(pa).nodeId;var ua=void 0;ba=Math.max(ba,(ua=R.get(pa))!=null?ua:0);R.set(pa,ba)}return ySd(O,R)}),jf(this.quickFilters.value$),zf(function(R){R=l(R);var V=R.next().value;var ba=R.next().value;return ba.size===0?(O.hiddenRowCount$.next(0),be(V)):O.getAllIssues(V).pipe(A(function(pa){return zSd(O,V,ba,pa)}))}),A(function(R){return ASd(O,R)}),wf({refCount:!0,
bufferSize:1}));this.hiddenRowCount$=new Xj(0);this.rootIssue$=this.issueFullFridge.watch(this.rootIssueId).pipe(te(ln));this.ROOT_ROW={type:"data",id:this.rootIssueId,level:-1,ancestorChain:new P0([this.rootIssueId]),expandedCount:500,issue$:Ox,hasChildren$:Ox,isEditMode:!1,issuePermissions$:Ox};this.supportsOneLineCreation=ee(this.rootIssue$).then(function(R){return Edb(R.snapshot[0].componentId)}).then(function(R){return rSd(O.issueCreationService,R)});this.saveExpansionAtKey&&this.subscriptions.add(this.expansion.changed$.pipe(kf(100)).subscribe(a))};
Z(R0,LO);R0.\u0275dir=LO.\u0275dir;R0.\u0275fac=LO.\u0275fac;
var xSd=function(a){a=a.saveExpansionAtKey;if(a!=null){a=Mo(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}},BSd=function(a,b,c){b=b===void 0?a.ROOT_ROW.ancestorChain:b;var d,e,f,g,k,m,r;y(function(w){switch(w.nextAddress){case 1:return d=b.nodeId,z(w,ee(a.issueFullFridge.watch(d)),2);case 2:return(e=w.yieldResult)?
z(w,a.supportsOneLineCreation,3):w.return();case 3:if(f=w.yieldResult)return g=tSd(a.issueCreationService,d),w.return(a.draftRows.create(b,g,c));k=e.snapshot[0].componentId;r={};return z(w,hu(a.router,a.paths.createIssue((r.component=k||void 0,r.parentIssueId=e.issueId,r.redirectUrl=zs.issueDependencies.makeHref(a.rootIssueId),r.afterIssueId=(m=c)==null?void 0:m.afterIssueId,r))),4);case 4:return w.return()}})};
R0.prototype.addExistingChild=function(a){var b=this,c,d,e,f;y(function(g){if(g.nextAddress==1)return z(g,ee((d=(c=a)==null?void 0:c.issue$)!=null?d:b.rootIssue$),2);e=g.yieldResult;if(!e)return g.return();f=String(e.issueId);return z(g,b.issuePicker.open({title:"Add Children of b/"+f,allowMultipleIds:!0,edgeType:"child"},function(k){return y(function(m){if(m.nextAddress==1){if(k.length===0)return m.return();b.assignParentToIssues(f,k);b.analytics.trackEvent("editIssue","add","existing-child-issue");
return z(m,Gs(0),2)}a&&oSd(b.expansion,a.ancestorChain,500);$d(m)})}),0)})};R0.prototype.saveDraft=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1){if(a.saving||!a.title)return d.return();a.saving=!0;return z(d,CSd(b,a),2)}return(c=d.yieldResult)?d.return(DSd(b,a,c)):d.return()})};
var CSd=function(a,b){var c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:return c=b.ancestorChain.parentNodeId,Vd(g,2),z(g,uSd(a.issueCreationService,c,b.title),4);case 4:e=g.yieldResult;d=e.issueId;bk(g,3);break;case 2:return f=Zd(g),a.butterBar.showWarning("Could not create issue. Error: "+JSON.stringify(f)),a.draftRows.remove(b),g.return();case 3:var k=(new Date).getTime()-b.draftStartedAt.getTime();if(k>0){var m=Math.min(k,108E5);lnd("createIssue",m,"from-tree");a.analytics.trackEvent("createIssue",
"createIssue","time-to-create-from-tree",m);IO(a.clearcut,k,"createIssue-fromTree")}oSd(a.expansion,b.ancestorChain.parentChain,500);k=a.draftRows;m=d;b.issueId=m;for(var r=l(k.draftRows.values()),w=r.next();!w.done;w=r.next()){w=l(w.value);for(var x=w.next();!x.done;x=w.next())x=x.value,x.afterDraftId===b.id&&(x.afterIssueId=m)}k.changed$.next(k.draftRows);return g.return(d)}})},DSd=function(a,b,c){var d,e,f,g,k,m;return y(function(r){if(r.nextAddress==1)return d=b.ancestorChain.parentNodeId,f=(e=
b.afterIssueId)!=null?e:b.afterDraftId,f===void 0||f==="-1"?r.jumpTo(2):z(r,kSd(a.draftRows,f),2);if(r.nextAddress!=4)return z(r,a.issueRelationshipsFridge.assignParentToIssues(d,[{issueId:c,afterIssueId:b.afterIssueId}]),4);g=r.yieldResult;k=g.errors;((m=k)==null?0:m.length)&&a.butterBar.showWarning("Could not create issue relationship. Error: "+JSON.stringify(k));a.draftRows.remove(b);$d(r)})},ySd=function(a,b,c){c=c===void 0?0:c;return he([a.rootIssueId].concat(n(b.keys())).map(function(d){return a.refetchingAll$.pipe(te(function(e){return!e}),
zf(function(){return Snd(a.issueRelationshipsFridge,d)}))})).pipe(zf(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 be(e);d=ESd(a,e,c);d=new Map(d.map(function(g){return[g,a.defaultExpandedChildren]}));return ySd(a,d,c+1).pipe(A(function(g){var k=new Map(e);g=l(g.entries());for(var m=g.next();!m.done;m=g.next()){var r=l(m.value);m=r.next().value;r=r.next().value;k.set(m,r)}return k}))}))},ESd=function(a,
b,c){var d=[];a=[{id:a.rootIssueId,level:-1}];for(var e={};a.length>0;e={current$jscomp$53:void 0})if(e.current$jscomp$53=a.pop(),e.current$jscomp$53.level===c&&d.push(e.current$jscomp$53.id),!(e.current$jscomp$53.level>c)){var f=void 0,g=void 0,k=(g=(f=b.get(e.current$jscomp$53.id))==null?void 0:f.relatedChildren)!=null?g:[];a.push.apply(a,n(k.map(function(m){return function(r){return{id:r.targetIssueId,level:m.current$jscomp$53.level+1}}}(e))))}return d},ASd=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,g=void 0,k=(g=(f=b.get(e.parentRow$jscomp$1.id))==null?void 0:f.relatedChildren)!=null?g:[];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&&(g=hSd(e.parentRow$jscomp$1.ancestorChain,"load-more-children"),d.push({type:"load-more-children",id:g.hash(),level:e.childrenLevel,parentIssue$:e.parentRow$jscomp$1.issue$,ancestorChain:g,truncatedSiblingCount:k.length-f.length}));k=f.map(function(m){return function(r){var w=hSd(m.parentRow$jscomp$1.ancestorChain,r.targetIssueId);return{type:"data",id:r.targetIssueId,level:m.childrenLevel,hasChildren$:a.issueRelationshipsFridge.watch(r.targetIssueId).pipe(A(H5a)),ancestorChain:w,
expandedCount:FSd(a,w,m.childrenLevel,b),issue$:a.issueFullFridge.watch(r.targetIssueId),isEditMode:!1,issuePermissions$:a.permissionsFridge.watch(vq(r.targetIssueId)).pipe(A(function(x){return x!=null?x:Wpd}),yf(Wpd))}}}(e));d.push.apply(d,n(GSd(a,k,e.parentRow$jscomp$1.ancestorChain).reverse()))}return c},GSd=function(a,b,c){var d=[].concat(n(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(g){return g.id===
f.draft$jscomp$8.issueId}}(c))||(e=d.findIndex(function(f){return function(g){return g.id===f.draft$jscomp$8.afterDraftId||g.id===f.draft$jscomp$8.afterIssueId}}(c)),d.splice(e===-1?d.length:e+1,0,c.draft$jscomp$8));return d},FSd=function(a,b,c,d){var e=b.nodeId;b=nSd(a.expansion,b);if(b!==void 0)return b;if(c<a.defaultExpansionLevel){var f,g;return Math.min(a.defaultExpandedChildren,(g=(f=d.get(e))==null?void 0:f.relatedChildren.length)!=null?g:0)}return 0};
R0.prototype.assignParentToIssues=function(a,b){var c=this,d,e,f,g;return y(function(k){if(k.nextAddress==1)return b.length===0?k.return():z(k,c.issueRelationshipsFridge.assignParentToIssues(a,b.map(function(m){return{issueId:m,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+". "+((g=f)==null?void 0:g.map(function(m){return iq(m)}))),k.return();$d(k)})};
R0.prototype.getAllIssues=function(a){for(var b=this,c=new Set,d=l(a.keys()),e=d.next();!e.done;e=d.next())c.add(e.value);a=l(a.values());for(d=a.next();!d.done;d=a.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 he([].concat(n(c)).map(function(f){return b.issueFullFridge.watch(f)})).pipe(A(function(f){return f.filter(ln)}))};
var zSd=function(a,b,c,d){function e(m){if(!m)return!1;var r=f.get(m),w=g.get(m);if(!r||r.relatedChildren.length===0)return w;var x=r.relatedChildren.filter(function(D){return e(D.targetIssueId)});k+=r.relatedChildren.length-x.length;f.set(m,Object.assign({},r,{relatedChildren:x}));return x.length!==0||w}var f=new Map(b.entries()),g=new Map(d.map(function(m,r,w){return[m.issueId,PAb(c,r,w)]})),k=0;e(a.rootIssueId);a.hiddenRowCount$.next(k);return f},S0=function(){this.analytics=q(PO);this.butterBar=
q(JM);this.issueFullFridge=q(RO);this.issuePicker=q(pX);this.issueRelationshipsFridge=q(XO);this.paths=q(wV);this.router=q(CF);this.issueCreationService=q(Q0);this.clearcut=q(HO);this.refreshMonitor=q(DO);this.permissionsFridge=q(mP)};S0.prototype.create=function(a,b,c,d){b=b===void 0?new OP:b;return new R0(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)};
S0.\u0275fac=function(a){return new (a||S0)};S0.\u0275prov=Cc({token:S0,factory:S0.\u0275fac,providedIn:"root"});var KSd=function(a,b,c,d){var e=this;this.rootElement=a;this.rows=b;this.ngZone=c;this.rowSelectionModel=d;this.onLongHover$=new rf;this.onRowsMoved$=new rf;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=xMc(function(f,g){if(e.activeDrag){var k=f||0,m=g.getBoundingClientRect();f=m.height;k-=m.top;f=sIb(k<=f*
.25?"top":k>=f*.75?"bottom":"middle",g);g=f.position;f=f.rowElement;switch(g){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 r=(k=(r=f.querySelector(".title-location"))==null?void 0:r.getBoundingClientRect().left)?k-f.getBoundingClientRect().left:0;r=f.offsetLeft+r;k=g==="after"?f.offsetTop+f.offsetHeight:
f.offsetTop;m=f.getBoundingClientRect().width;e.insertionBar.style.display="block";e.placeholder.style.display="none";e.insertionBar.style.left=r+"px";e.insertionBar.style.top=k-1+"px";e.insertionBar.style.width=m-r+"px";break;case "none":e.placeholder.style.display="none",e.insertionBar.style.display="none"}e.currentReorderingGuide={rowElement:f,position:g};HSd(e,f,g)}},10);this.ngZone.runOutsideAngular(function(){a.addEventListener("dragover",function(f){var g,k=(g=f.target)==null?void 0:g.closest("tr");
if(k&&(e.onDragOver(f.clientY,k),k.classList.contains("dragging")||k.classList.contains("nodrop")))return!0;var m;if(((m=e.currentReorderingGuide)==null?void 0:m.position)==="none")return!0;f.preventDefault();return!1});a.addEventListener("dragend",function(){ISd(e)});a.addEventListener("drop",function(){e.reorder(e.currentReorderingGuide,JSd(e.rowSelectionModel),"mouse",4);ISd(e)})})};
KSd.prototype.handleDragStart=function(a){var b=this;this.activeDrag=!0;var c=a.target.closest("tr");this.rowSelectionModel.select(tIb(c));LSd(this.rowSelectionModel);MSd(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 NSd=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)},OSd=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)}};
KSd.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)}};
KSd.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"?NSd(this,a):(b=c&&b.row.level<rIb(c)?{position:"before",rowElement:c}:{position:"after",rowElement:b.element},this.reorder(b,[a.row.ancestorChain],"keyboard",1))}};
KSd.prototype.onKeydown=function(a){if(a.ctrlKey){var b,c=(b=a.target)==null?void 0:b.closest("tr");if(c){var d=tIb(c);if(b=this.rows.toArray().find(function(e){return e.row.ancestorChain.equals(d)}))switch(a.key){case "ArrowLeft":NSd(this,b);break;case "ArrowRight":OSd(this,b);break;case "ArrowUp":this.moveUp(b);break;case "ArrowDown":this.moveDown(b)}}}};
KSd.prototype.reorder=function(a,b,c,d){var e=this;if(a){var f=tIb(a.rowElement),g=void 0,k=f;switch(a.position){case "current":k=f;g={parentId:f.nodeId};break;case "before":case "after":k=f.parentChain,g={parentId:f.parentNodeId,position:{issueId:f.nodeId,position:a.position}}}this.ngZone.run(function(){b.length&&g&&e.onRowsMoved$.next({movedRows:b,insertAt:g,parentAncestorChain:k,origin:c,actionMessage:qIb(d)})})}};
var ISd=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},HSd=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 tIb(b).equals(e.row.ancestorChain)});d&&(a.ngZone.run(function(){a.onLongHover$.next(d)}),a.longHoveredRow.emitted=!0)}},MSd=function(a){var b;
(b=a.updatingNoDropRows)==null||b.unsubscribe();a.updatingNoDropRows=a.rows.changes.pipe(yf(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 T0=function(){LO.call(this);var a=this;this.analytics=q(PO);this.dragStarted$=new rf;this.onRowsMoved$=new rf;se(this.dragStarted$,this.onRowsMoved$).pipe(l8a(),Af(this.destroyed$)).subscribe(function(b){var c=b[b.length-1].timestamp-b[0].timestamp;b=Oq(b.map(function(d){return d.event.origin}));b=b.length===1?b[0]:"mixed";a.analytics.trackEvent("editIssue","reorderChildren",b);lnd("reorderChildren",c,b)})};Z(T0,LO);T0.\u0275dir=LO.\u0275dir;T0.\u0275fac=function(a){return new (a||T0)};
T0.\u0275prov=Cc({token:T0,factory:T0.\u0275fac,providedIn:"root"});var PSd=function(){this.changed$=new rf;this.selectedRowHashes=new Set;this.isSelectedObservableMap=new Map};PSd.prototype.init=function(a){this.visibleRows=a};PSd.prototype.isSelected=function(a){return this.selectedRowHashes.has(a.hash())};var iJb=function(a,b){var c=b.hash(),d,e=(d=a.isSelectedObservableMap.get(c))!=null?d:a.changed$.pipe(yf(a.selectedRowHashes),A(function(f){return f.has(b.hash())}),of(),wf({refCount:!0,bufferSize:1}));a.isSelectedObservableMap.set(c,e);return e};
PSd.prototype.select=function(a){this.selectedRowHashes.add(a.hash());this.changed$.next(this.selectedRowHashes)};PSd.prototype.clear=function(){this.selectedRowHashes.clear();this.changed$.next(this.selectedRowHashes)};
var LSd=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=ku(e.value);for(var f=l(b),g=f.next();!g.done;g=f.next())g=g.value,iSd(e,g)&&(a.selectedRowHashes.add(g.hash()),c=!0)}c&&a.changed$.next(a.selectedRowHashes)},JSd=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(n(a.selectedRowHashes.values())).map(function(f){return ku(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};
da.Object.defineProperties(PSd.prototype,{selectedRows:{configurable:!0,enumerable:!0,get:function(){return[].concat(n(this.selectedRowHashes)).map(function(a){return ku(a)})}},selectedCount:{configurable:!0,enumerable:!0,get:function(){return this.selectedRowHashes.size}}});var QSd=function(){return["active-indicator","load-more-children"]},UIb=function(){return[]},RSd=zs.listIssues.makeHref,SSd={type:"data",id:"",issue$:Ox,hasChildren$:Ox,ancestorChain:new P0([]),level:0,expandedCount:0,isEditMode:!1,issuePermissions$:Ox},U0=function(){LO.call(this);var a=this;this.issueRelationshipsFridge=q(XO);this.router=q(CF);this.butterBar=q(JM);this.analytics=q(PO);this.issueArchiveService=q(O0);this.ngZone=q(Tg);this.elementRef=q(Gd);this.domSafe=q($P);this.reorderingSessionTracker=
q(T0);this.cdr=q(MO);this.relationsTableModelFactory=q(S0);this.liveAnnouncer=q(Cz);this.clearcut=q(HO);this.paths=q(wV);this.checkBeforeExit=q(HX);this.IssueFieldType=khd;this.defaultExpansionLevel=1;this.internalFilters=new OP;this.isClosed=rWa;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 PSd;this.hasLogged=!1;this.correctedDisplayedRows=new jg;this.TITLE_FIXED_OFFSET_PX=42;this.EDITABLE_TITLE_OFFSET_PX=8;this.rowDirectiveMap=new Map;this.getRowIndex=function(b){var c;return((c=Or(a.rows$))!=null?c:[]).findIndex(function(d){return pIb(d,b)})};this.showError=function(b){return function(c){a.butterBar.showWarning(b+". "+(hq(c)?iq(c):c))}};this.dataColumns=[].concat(n(mPd));
this.tableColumns=this.getRenderableColumns(this.dataColumns)};Z(U0,LO);U0.\u0275dir=LO.\u0275dir;
U0.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(IX(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$=Eha([this.tableModel.rows$,be([SSd])],pe).pipe(je(1),wf({refCount:!0,bufferSize:1}));var b=this.rows$.pipe(zf(function(c){return he(c.filter(function(d){return d.type===
"data"}).map(function(d){return d.issue$}))}),kf(0,Rr));this.subscriptions.add(b.subscribe(function(c){a.cdr.detectChanges();TSd(a,c)}));this.rowReorderingModel=new KSd(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"?bJb(a,d):d.type==="data"&&(c=a.tableModel.expansion,d=d.ancestorChain,nSd(c,d)||oSd(c,d,10))}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){var d;
return y(function(e){if(e.nextAddress==1)return Ynd(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")),pSd(a.tableModel.expansion,c.parentAncestorChain,c.movedRows),z(e,ee(a.correctedDisplayedRows.changes.pipe(A(function(f){return f.find(function(g){return g.row.type==="data"&&g.row.ancestorChain.nodeId===
c.movedRows[0].nodeId&&g.row.ancestorChain.parentNodeId===c.insertAt.parentId})}),te(Boolean),ue(6E4))),2);d=e.yieldResult;d.focus();$d(e)})}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){a.reorderingSessionTracker.onRowsMoved$.next(c)}))};
U0.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,n(a));this.options.showMenu&&b.push("menu");return b};
var TSd=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;Vmd(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",Vmd(a.clearcut,"view-relations-"+c),a.analytics.trackEvent("editIssue","view-relations","ratio-estimated",b),a.analytics.trackEvent("editIssue","view-relations",c))}};
U0.prototype.ngAfterViewInit=function(){var a=this;this.selectionModel.init(this.displayedRows);he([this.rows$,this.displayedRows.changes]).pipe(Af(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);ng(a.correctedDisplayedRows)});this.focusManager=Oz(new vEd(this.correctedDisplayedRows,
pIb))};U0.prototype.toggleExpansion=function(a){oSd(this.tableModel.expansion,a.ancestorChain,a.expandedCount?0:10)};U0.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=zs.viewIssue.makeHref(b.id),uq(a)?this.domSafe.openInNewTab(b):a&&a.shiftKey?Sr(this.domSafe,b):hu(this.router,b))};
var bJb=function(a,b){var c;return y(function(d){if(d.nextAddress==1)return c=a.getRowIndex(b),oSd(a.tableModel.expansion,b.ancestorChain.parentChain,500),z(d,Gs(0),2);a.focusManager.setActiveItem(c);$d(d)})},XIb=function(a,b){return[{type:"action",label:"Continue on the create issue page",action:function(c){return USd(a,c,b)},title:"Continue on the create issue page",icon:"arrow-forward"}]};
U0.prototype.getMenuItems=function(a){var b=this,c={type:"action",label:"Rename title",action:function(){a.isEditMode=!0;b.analytics.trackEvent("editIssue","three_dots_menu","rename_issue_title");b.cdr.detectChanges()},title:"Rename title",icon:"edit"};return a.issuePermissions$.pipe(A(function(d){return[{type:"action",label:"Go to issue",action:function(e){b.navigateToIssue(e,a)},title:"Go to issue",icon:"arrow-forward"}].concat(n(d.writer?[c]:[]),[{type:"action",label:"View Children",disabled:!Or(a.hasChildren$),
action:function(){var e=RSd({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(){bKb(b,a)},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(){VSd(b,a)},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(){OSd(b.rowReorderingModel,
b.rowDirectiveMap.get(a.ancestorChain.hash()))},title:"Indent",icon:"arrow-right",hintText:"shift+ctrl+right"},{type:"action",label:"Unindent",action:function(){NSd(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(){WSd(b,a)},title:"Archive issue",
icon:"archive_24px"}])}))};U0.prototype.saveDraft=function(a){var b=this,c,d;return y(function(e){if(e.nextAddress==1){if(!a.title)return e.return();b.tableModel.saveDraft(a);b.focusManager.setActiveItem(b.getRowIndex(a));return z(e,ee(b.displayedRows.changes.pipe(A(function(f){return f.find(function(g){return g.row.type==="data"&&g.row.id===a.issueId})}),te(Boolean),ue(6E4))),2)}c=e.yieldResult;pIb((d=b.focusManager.activeItem)==null?void 0:d.row,a)&&b.focusManager.setActiveItem(c);$d(e)})};
var eJb=function(a,b){if(!b.saving){a.tableModel.draftRows.remove(b);var c;pIb((c=a.focusManager.activeItem)==null?void 0:c.row,b)&&a.focusManager.setPreviousItemActive()}},bKb=function(a,b){BSd(a.tableModel,b==null?void 0:b.ancestorChain,{afterIssueId:"-1"})},VSd=function(a,b){b.type==="data"?BSd(a.tableModel,b.ancestorChain.parentChain,{afterIssueId:b.id}):BSd(a.tableModel,b.ancestorChain.parentChain,{afterDraftId:b.id})};U0.prototype.addExistingChild=function(a){this.tableModel.addExistingChild(a)};
var XSd=function(a){return a.tableColumns.map(function(b){return b==="TITLE"?"editable-title":b==="menu"?"save":b==="ISSUE_ID"?"empty-id":b})};U0.prototype.handleDragStart=function(a){this.reorderingSessionTracker.dragStarted$.next({origin:"mouse"});this.rowReorderingModel.handleDragStart(a)};
U0.prototype.onRowKeydown=function(a,b){var c=this,d;return y(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"&&(bJb(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?z(e,c.tableModel.isOneLineCreationSupported(),4):e.return();case 4:d=e.yieldResult;if(!d)return e.return();a.type===
"data"&&(b.shiftKey?bKb(c,a):VSd(c,a));a.type==="draft-issue"&&a.saving&&VSd(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);$d(e)}})};
var USd=function(a,b,c){var d,e,f,g,k,m,r,w;return y(function(x){if(x.nextAddress==1)return b.defaultPrevented||b.type==="mouseup"&&b instanceof MouseEvent&&b.button!==1?x.return():z(x,ee(c.issue$),2);d=x.yieldResult;r={};w=a.paths.createIssue((r.component=String((e=d)==null?void 0:e.snapshot[0].componentId),r.parentIssueId=c.ancestorChain.parentChain.nodeId,r.redirectUrl=zs.issueDependencies.makeHref(a.rootIssueId),r.afterIssueId=c.afterIssueId,r.title=c.title,r.priority=(k=(f=d)==null?void 0:f.snapshot[0].priority)!=
null?k:void 0,r.type=(m=(g=d)==null?void 0:g.snapshot[0].type)!=null?m:void 0,r));if(uq(b))return eJb(a,c),a.domSafe.openInNewTab(w),x.return();if(b&&b.shiftKey)return eJb(a,c),Sr(a.domSafe,w),x.return();hu(a.router,w);$d(x)})},WSd=function(a,b){var c,d;y(function(e){if(e.nextAddress==1)return a.analytics.trackEvent("editIssue","update","archive-child-issue"),c=a.getRowIndex(b),a.issueArchiveService.archive(b.id),z(e,ee(a.rows$.pipe(A(function(f){return!f.find(function(g){return g.type==="data"&&
g.id===b.id})}),te(Boolean),ue(6E4))),2);pIb((d=a.focusManager.activeItem)==null?void 0:d.row,b)&&a.focusManager.setActiveItem(c);$d(e)})};
U0.prototype.unlinkFromParent=function(a){var b=this,c,d;return y(function(e){c=a.ancestorChain.nodeId;d=a.ancestorChain.parentNodeId;b.analytics.trackEvent("editIssue","update","unlink-child-issue");return z(e,b.issueRelationshipsFridge.unlinkFromParent(c,d).then(function(){fs(b.butterBar,"Unlinked successfully.")}).catch(b.showError("Failed to unlink child "+c+" from parent "+d)),0)})};U0.prototype.isOpen=function(a){return Bo(a)};
U0.prototype.getAssigneeString=function(a){var b,c;return Ddb(Rm(a==null?void 0:(b=a.snapshot)==null?void 0:(c=b[0])==null?void 0:c.assigneeUser)||void 0)};
da.Object.defineProperties(U0.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(n(a));this.tableColumns=this.getRenderableColumns(this.dataColumns)}}});U0.\u0275fac=function(a){return new (a||U0)};
U0.\u0275cmp=C({type:U0,selectors:[["b-issue-relations-table"]],viewQuery:function(a,b){a&1&&kg(DW,5);if(a&2){var c;og(c=pg())&&(b.displayedRows=c)}},inputs:{rootIssueId:"rootIssueId",defaultExpansionLevel:"defaultExpansionLevel",saveExpansionAtKey:"saveExpansionAtKey",filters:"filters",tableColumnsInput:[0,"tableColumns","tableColumnsInput"],options:"options"},features:[Ig([MO]),Ff],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&&(K(0,"table",3),Vf(1,4),E(2,uIb,1,0,"th",5)(3,vIb,2,0,"td",6),Wf(),Vf(4,7),E(5,wIb,1,0,"th",5)(6,xIb,3,0,"td",8),Wf(),Vf(7,9),E(8,yIb,
2,0,"th",5)(9,zIb,2,1,"td",10),Wf(),Vf(10,11),E(11,AIb,2,0,"th",5)(12,BIb,2,0,"td",10),Wf(),Vf(13,9),E(14,CIb,2,0,"th",5)(15,DIb,4,9,"td",10),Wf(),Vf(16,9),E(17,EIb,2,0,"th",5)(18,FIb,3,3,"td",10),Wf(),Vf(19,9),E(20,IIb,3,1,"th",5)(21,OIb,3,1,"td",10),Wf(),Vf(22,9),E(23,PIb,2,0,"th",5)(24,QIb,3,4,"td",10),Wf(),Vf(25,9),E(26,RIb,2,0,"th",5)(27,SIb,3,3,"td",10),Wf(),Vf(28,12),E(29,TIb,1,0,"th",5)(30,VIb,3,4,"td",10),Wf(),Vf(31,13),E(32,WIb,1,0,"th",5)(33,aJb,5,1,"td",14),Wf(),Vf(34,15),E(35,cJb,6,7,
"td",16),Wf(),Vf(36,17),E(37,dJb,2,0,"th",5)(38,fJb,7,6,"td",16),Wf(),F(39,hJb,1,1,"tr",18),E(40,jJb,3,12,"tr",19)(41,kJb,1,4,"tr",20)(42,lJb,1,2,"tr",21),L(),M(43,"div",22)(44,"div",23)(45,"div",24));a&2&&(I("dataSource",b.rows$)("trackBy",b.trackBy),B(7),I("matColumnDef",b.IssueFieldType.ISSUE_ID),B(6),I("matColumnDef",b.IssueFieldType.TITLE),B(3),I("matColumnDef",b.IssueFieldType.TYPE),B(3),I("matColumnDef",b.IssueFieldType.ASSIGNEE),B(3),I("matColumnDef",b.IssueFieldType.STATUS),B(3),I("matColumnDef",
b.IssueFieldType.TEAM),B(14),G(b.options.hideColumnHeaders?-1:39),B(),I("matRowDefColumns",b.tableColumns)("matRowDefWhen",b.isDataRow),B(),I("matRowDefColumns",Jg(15,QSd))("matRowDefWhen",b.isLoadMoreRow),B(),I("matRowDefColumns",XSd(b))("matRowDefWhen",b.isDraftRow))},dependencies:[UY,dW,YT,uz,IW,GW,FW,QS,DS,JS,FS,CS,LS,GS,IS,MS,OS,hK,LW,gW,jW,MW,OW,iz,MA,nT,VS,DW,bX,mU,py],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 V0=function(){LO.call(this);var a=this;this.issueFullFridge=q(RO);this.butterBar=q(JM);this.analytics=q(PO);this.refreshMonitor=q(DO);this.issueRelationshipsFridge=q(XO);this.ROUTES=zs;this.parentIssueIds$=new Xj([]);this.filters=[];this.tableColumns=[].concat(n(lPd));this.tableOptions={menu:{includeGoToIssueItem:!0},deEmphasizeClosedIssues:!0};this.getMenuItems=function(b){return[{type:"action",label:"Unlink parent",action:function(){return YSd(a,b)},title:"Unlink parent",icon:"link"}]};this.showError=
function(b){return function(c){a.butterBar.showWarning(b+". "+(hq(c)?iq(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)}))};Z(V0,LO);V0.\u0275dir=LO.\u0275dir;V0.prototype.ngOnInit=function(){};
var YSd=function(a,b){var c;return y(function(d){a.analytics.trackEvent("editIssue","update","remove-parent");c=a.issueId;return z(d,a.issueRelationshipsFridge.unlinkFromParent(c,b).catch(a.showError("Failed to unlink child "+c+" from parent "+b)),0)})};da.Object.defineProperties(V0.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$}}});
V0.\u0275fac=function(a){return new (a||V0)};
V0.\u0275cmp=C({type:V0,selectors:[["b-parents-table"]],viewQuery:function(a,b){a&1&&kg(g_,5);if(a&2){var c;og(c=pg())&&(b.issuesTable=c.first)}},inputs:{parentIds:"parentIds",filters:"filters",issueId:"issueId"},features:[Ff],decls:2,vars:3,consts:[[3,"issueIds","tableColumns","options","filters","issueUrlFactory","menuItemFactory"]],template:function(a,b){a&1&&(F(0,mJb,1,6,"b-issues-table",0),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.parentIssueIds$))?0:-1,c)}},dependencies:[g_,py],encapsulation:2,
changeDetection:0});var W0=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 KO;this.onConfirm=new KO;this.onCancel=new KO;this.internalSelectedOptions=new OP};W0.prototype.confirm=function(a){this.onConfirm.emit(new Set(this.internalSelectedOptions));a.close()};W0.prototype.cancel=function(a){this.onCancel.emit();a.close()};
da.Object.defineProperties(W0.prototype,{selectedOptions:{configurable:!0,enumerable:!0,set:function(a){this.internalSelectedOptions.reset(a)}}});W0.\u0275fac=function(a){return new (a||W0)};
W0.\u0275cmp=C({type:W0,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"},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=t();K(0,"button",2,0);U(2,"async");N("click",function(){u(c);var d=Q(1),e;(e=d.isOpen)!=null&&e?d.close():d.open();return v()});M(3,"mat-icon",3);F(4,oJb,2,3);L();K(5,"onedev-popup-panel",4,1)(7,"div",5);F(8,pJb,2,1,"h1",6);Pf(9,sJb,7,5,"div",7,Of);F(11,tJb,6,2);L()()}a&2&&(a=Q(6),
yg("large",b.buttonSize==="large")("small",b.buttonSize==="small"),I("onedevPopupPanelTriggerFor",a)("color",b.showActiveState&&W(2,12,b.internalSelectedOptions.size$)?"primary":null)("matTooltip",b.buttonTooltip),Jf("aria-label",b.buttonAriaLabel),B(3),I("svgIcon",b.buttonSvgIcon),B(),G(b.showActiveState?4:-1),B(4),G(b.overlayTitle?8:-1),B(),Qf(b.options),B(2),G(b.showActionButtons?11:-1))},dependencies:[ZA,XA,TA,VA,PK,OK,wI,hK,XJ,iz,MA,VT,KT,LT,py],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 ZSd=function(){return[]},BJb=function(a){return{filteredCount:a}},X0=function(){LO.call(this);var a=this;this.brain=q(LP);this.issuePicker=q(pX);this.issueRelationshipsFridge=q(XO);this.issueFullFridge=q(RO);this.router=q(CF);this.routePerformance=q(N0);this.element=q(Gd);this.analytics=q(PO);this.issuePermissionService=q(NP);this.activeSession=q(Zu);this.counts=q(K0);this.matDialog=q(gB);this.butterBar=q(JM);this.makeIlpUrlForParentIssue=LAb;this.recallFilters=Mo("deps-filters");this.saveFilters=
No("deps-filters");this.isThinking$=he([this.issueFullFridge.saving$,this.issueRelationshipsFridge.saving$]).pipe(A(function(b){return b.some(Boolean)}));this.issueId$=this.brain.id$.pipe(te(ln),A(Edb));this.issue$=this.brain.issueJs$.pipe(te(ln));this.parentIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.parentIssueIds)!=null?c:[]}));this.parentIssues$=this.parentIds$.pipe(zf(function(b){return a.issueFullFridge.watchSet(b)}));this.parentsCount$=this.parentIssues$.pipe(A(function(b){return b.filter(uWa).length}));
this.childrenIds$=this.issueId$.pipe(zf(function(b){return a.issueRelationshipsFridge.watch(b)}),A(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(A(function(b){var c,d;return((c=zo(b))==null?void 0:(d=c.effort)==null?void 0:d.totalOpen)||0}));this.totalDaysComplete$=this.issue$.pipe(A(function(b){var c,d;return((c=zo(b))==null?void 0:(d=c.effort)==null?void 0:d.totalComplete)||0}));this.unarchivedChildIssueCount$=
this.childrenIds$.pipe(A(function(b){return b.length}));this.isNonPublicSession=this.activeSession.isNonPublicSession();this.isInternalSession=this.activeSession.isInternalSession();this.totalDaysCount$=he([this.totalDaysOpen$,this.totalDaysComplete$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b+c}));this.totalDaysDisplayPercent$=UJb(this.totalDaysComplete$,this.totalDaysCount$);this.progressHovercardContent$=he([this.totalDaysComplete$,this.totalDaysOpen$,this.totalDaysDisplayPercent$]).pipe(A(function(b){var c=
l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return VJb(Math.round(b*100)/100)+" completed | "+VJb(Math.round(d*100)/100)+" open | "+c+"% completed"}));this.canEdit$=this.issuePermissionService.hasAclToEdit$;this.rowCreated$=new rf;this.issueFilters=new OP;this.ISSUE_FILTER_OPTIONS=[{key:fu.OPEN.key,title:fu.OPEN.displayAs,description:"Hides closed issues"},{key:fu.ASSIGNED_TO_ME.key,title:fu.ASSIGNED_TO_ME.displayAs,description:"Hides issues not assigned to me"}];ee(p0a("b-issue-relations-table tr .mat-column-title a",
this.element.nativeElement).pipe(Af(se(this.destroyed$,this.rowCreated$)))).then(function(){var b=function(){YRd(a.routePerformance,"issue-details-w-tree")};requestAnimationFrame(b);setTimeout(b)}).catch(function(){});try{this.issueFilters.reset(this.recallFilters().filter(QAb))}catch(b){}this.subscriptions.add(this.issueFilters.value$.subscribe(function(b){a.saveFilters([].concat(n(b)))}))};Z(X0,LO);X0.\u0275dir=LO.\u0275dir;
var QJb=function(a){var b,c;return y(function(d){if(d.nextAddress==1)return a.analytics.trackEvent("editIssue","update","add-parent"),z(d,ee(a.issue$),2);b=d.yieldResult;c=b.issueId;return z(d,a.issuePicker.open({title:"Add Parent to b/"+c,allowMultipleIds:!1,edgeType:"parent"},function(e){$Sd(a,c,e)}),0)})},$Sd=function(a,b,c){var d=l(c).next().value;var e,f,g,k;y(function(m){if(m.nextAddress==1)return(e=d)?z(m,a.issueRelationshipsFridge.assignParentToOneIssue(e,b),2):m.return();f=m.yieldResult;
g=f.errors;return((k=g)==null?0:k.length)?(a.butterBar.showWarning("Could not add parent"),m.return()):z(m,a.issueFullFridge.poke(b),0)})};X0.prototype.shouldResetFilters=function(){this.issueFilters.reset([])};X0.prototype.addChild=function(){this.rowCreated$.next();var a;(a=this.relationsTable)==null||a.addExistingChild()};X0.prototype.createChild=function(){this.rowCreated$.next();var a;(a=this.relationsTable)==null||bKb(a)};
X0.prototype.openLearnMore=function(){this.matDialog.open(ZRd,{maxWidth:"1300px",width:"90%"})};X0.\u0275fac=function(a){return new (a||X0)};
X0.\u0275cmp=C({type:X0,selectors:[["b-issue-dependencies"]],viewQuery:function(a,b){a&1&&(kg(U0,5),kg(L0,5),kg(V0,5));if(a&2){var c;og(c=pg())&&(b.relationsTable=c.first);og(c=pg())&&(b.blockersTable=c.first);og(c=pg())&&(b.parentsTable=c.first)}},features:[Ff],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=t();K(0,"div",5);F(1,uJb,1,0,"b-spinner");U(2,"async");K(3,"select-menu",6);U(4,"async");N("onChange",
function(f){u(c);return v(b.issueFilters.reset(f))});L();K(5,"button",7);N("click",function(){u(c);return v(b.openLearnMore())});M(6,"mat-icon",8);L()();F(7,NJb,40,47,"div",9);U(8,"async");E(9,PJb,1,1,"ng-template",null,0,Og)(11,RJb,3,3,"ng-template",null,1,Og)(13,TJb,4,4,"ng-template",null,2,Og)}if(a&2){var d;B();G(W(2,6,b.isThinking$)?1:-1);B(2);var e;I("options",b.ISSUE_FILTER_OPTIONS)("selectedOptions",(e=W(4,8,b.issueFilters.value$))!=null?e:Jg(12,ZSd))("showActionButtons",!1)("showActiveState",
!0);B(4);G((d=W(8,10,b.issueId$))?7:-1,d)}},dependencies:[L0,YT,ZA,XA,VA,hK,AK,uK,zK,U0,iz,MA,oy,V0,u0,W0,VS,py,vy],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 aTd=function(){};aTd.\u0275fac=function(a){return new (a||aTd)};aTd.\u0275mod=$e({type:aTd});aTd.\u0275inj=Dc({imports:[FN,ZA,PK,YJ,iK,VT,W0]});var Y0=function(){};Y0.\u0275fac=function(a){return new (a||Y0)};Y0.\u0275mod=$e({type:Y0});Y0.\u0275inj=Dc({imports:[Dz,KI,ez,FN,mC,AK,ZA,pB,f_,GW,cL,iK,nC,NZ,dX,ZT,XW,b0,eX,aTd,oT,XS,A0,EW,vU,L0,X0,ZRd,U0,V0]});var bTd=Object.assign({},qPd,{showActiveIndicator:!1,showMenu:!1,showTrending:!0}),cTd={column:"MODIFIED_TIME",direction:"DESCENDING"},Z0=function(){var a=this;this.prefsService=q(w0);this.activeSession=q(Zu);this.issueFridge=q(GO);this.DEFAULT_COLUMNS=[].concat(n(nPd));this.PROGRESS_COLUMNS=[].concat(n(oPd));this.TABLE_OPTIONS=Object.assign({},bTd);this.INITIAL_SORT=cTd;this.isInternalSession=this.activeSession.isInternalSession();this.searchString$=new Xj(void 0);this.issueQuery$=this.searchString$.pipe(A(WJb));
this.issueIds$=this.issueQuery$.pipe(zf(function(b){return a.issueFridge.watchMany(b)}),A(function(b){if(a.entityType==="issue")return b.results;var c;return Ysd(b.results,(c=a.activeSession.getTracker())==null?void 0:c.trackerId)}),A(function(b){return b.map(function(c){return c.issueId})}))};Z0.prototype.getFilters=function(){return this.prefKey==null?[]:vRd(this.prefsService,this.prefKey)};Z0.prototype.showTable=function(){return this.onlyShowTableWhenFiltered?this.getFilters().length>0:!0};
da.Object.defineProperties(Z0.prototype,{searchString:{configurable:!0,enumerable:!0,set:function(a){this.searchString$.next(a!=null?a:void 0)}}});Z0.\u0275fac=function(a){return new (a||Z0)};
Z0.\u0275cmp=C({type:Z0,selectors:[["one-work-area-list"]],inputs:{searchString:"searchString",prefKey:"prefKey",entityType:"entityType",reference:"reference",onlyShowTableWhenFiltered:"onlyShowTableWhenFiltered"},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&&(F(0,XJb,4,9),F(1,ZJb,2,3));a&2&&(G(b.isInternalSession?0:-1),B(),G(b.showTable()?
1:-1))},dependencies:[g_,t0,y0,py],styles:["[_nghost-%COMP%] { display: block; }"]});var a1=function(){LO.apply(this,arguments);var a=this;this.prefsService=q(w0);this.issueFullFridge=q(RO);this.savedSearchFridge=q(YN);this.analytics=q(PO);this.activeSession=q(Zu);this.TREE_COLUMNS=[].concat(n(pPd));this.TREE_OPTIONS=Object.assign({},rPd);this.isInternalSession=this.activeSession.isInternalSession();this.refreshWorkArea=new rf;this.hideRecentActivity=!1;this.typeAndId$=new Xj([void 0,void 0]);this.typeAndId$.pipe(zf(function(b){var c=l(b);b=c.next().value;return(c=c.next().value)&&
b==="savedsearch"?a.savedSearchFridge.watch(c):be(void 0)}));this.issue$=this.typeAndId$.pipe(zf(function(b){var c=l(b);b=c.next().value;return(c=c.next().value)&&b==="issue"?a.issueFullFridge.watch(c):be(void 0)}));this.issueFilter$=this.typeAndId$.pipe(A(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}),A(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}}))};Z(a1,LO);a1.\u0275dir=LO.\u0275dir;a1.prototype.ngOnInit=function(){var a=this;this.refreshWorkArea.pipe(Af(this.destroyed$)).subscribe(function(){a.typeAndId$.next([a.entityType,a.referencedId])})};a1.prototype.getFilters=function(){return vRd(this.prefsService,this.entityReference)};
a1.prototype.showTable=function(){return this.onlyShowTableWhenFiltered?this.getFilters().length>0:!0};da.Object.defineProperties(a1.prototype,{reference:{configurable:!0,enumerable:!0,set:function(a){this.entityReference=a;this.referencedId=du(a);this.entityType=eu(a);this.analytics.trackEvent("missionControl","view","work-area-"+this.entityType);this.typeAndId$.next([this.entityType,this.referencedId])}}});a1.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(a1)))(b||a1)}}();
a1.\u0275cmp=C({type:a1,selectors:[["one-work-area"]],viewQuery:function(a,b){a&1&&kg(U0,5);if(a&2){var c;og(c=pg())&&(b.relationsTable=c.first)}},inputs:{reference:"reference",refreshWorkArea:"refreshWorkArea",hideRecentActivity:"hideRecentActivity",numRecentActivityEvents:"numRecentActivityEvents",onlyShowTableWhenFiltered:"onlyShowTableWhenFiltered"},features:[Ff],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&&F(0,iKb,4,2);if(a&2){var c;G((c=b.referencedId)?0:-1,c)}},dependencies:[ZA,XA,TA,U0,Z0,p0,u0,z0,py],styles:["[_nghost-%COMP%] { display: block; }"]});var tKb=function(a,b){return b.workAreaUrl},b1=function(){LO.call(this);var a=this;this.prefsService=q(w0);this.issueFullFridge=q(RO);this.hotlistFridge=q(UN);this.savedSearchFridge=q(YN);this.hotlistPicker=q(BV);this.issuePicker=q(pX);this.savedSearchPicker=q(s0);this.analytics=q(PO);this.clipboard=q(bQ);this.butterBar=q(JM);this.parentIssueSuggestions=q(yRd);this.imageUrls=q(LV);this.activeSession=q(Zu);this.refreshData=new rf;this.SECTION_SLUG="work-areas-wrapper-card";this.EMPTY_STATE_IMG=this.imageUrls.WORK_AREA_EXAMPLE_ILLUSTRATION;
this.inferEntityType=eu;this.makeBuganizerUrl=KAb;this.makeIlpUrlForParentIssue=LAb;this.getEntityTypeName=JAb;this.extractLastDigits=du;this.suggestions=[];this.titles={};var b;this.currentTrackerId=(b=this.activeSession.getTracker())==null?void 0:b.trackerId;this.INITIAL_TAB_INDEX=uRd(this.prefsService,"work-areas-wrapper-card");this.workAreaReferences$=this.prefsService.prefs$.pipe(A(function(d){var e;return(e=d==null?void 0:d.workAreaUrls)!=null?e:[]}));this.issues$=this.workAreaReferences$.pipe(A(function(d){return d.filter(function(e){return eu(e)===
"issue"})}),A(function(d){return d.map(du)}),of(Gm),A(function(d){return d.filter(ln)}),zf(function(d){return a.issueFullFridge.watchSet(d)}));this.hotlists$=this.workAreaReferences$.pipe(A(function(d){return d.filter(function(e){return eu(e)==="hotlist"})}),A(function(d){return d.map(du)}),of(Gm),A(function(d){return d.filter(ln)}),zf(function(d){return a.hotlistFridge.watchSet(d)}));this.savedSearches$=this.workAreaReferences$.pipe(A(function(d){return d.filter(function(e){return eu(e)==="savedsearch"})}),
A(function(d){return d.map(du)}),of(Gm),A(function(d){return d.filter(ln)}),zf(function(d){return a.savedSearchFridge.watchSet(d)}));this.refsForTemplate$=this.workAreaReferences$.pipe(jf(this.issues$),Af(this.destroyed$),A(function(d){var e=l(d);d=e.next().value;var f=e.next().value;return d.map(function(g){var k=f.find(function(m){return m.issueId===g});return{workAreaUrl:g,trackerId:k==null?void 0:k.trackerId}})}));this.issues$.pipe(Af(this.destroyed$)).subscribe(this.updateTitlesForIssues.bind(this));
this.hotlists$.pipe(Af(this.destroyed$)).subscribe(this.updateTitlesForHotlists.bind(this));this.savedSearches$.pipe(Af(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(","));qe(2E3).pipe(zf(function(){return a.parentIssueSuggestions.suggestions$}),
Af(this.destroyed$),mf(1)).subscribe(function(d){var e=3;e=e===void 0?3:e;if(d.length!==0){var f=d.slice(0,e*2),g=[].concat(n(f));if(!(f.length<=1))for(f=g.length-1;f>0;--f){var k=Math.floor(Math.random()*(f+1)),m=g[f];g[f]=g[k];g[k]=m}e=g.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))})};Z(b1,LO);b1.\u0275dir=LO.\u0275dir;h=b1.prototype;
h.toggleCollapsed=function(){this.prefsService.toggleCollapsed("work-areas-wrapper-card")};h.ariaLabelForToggleButton=function(){return this.isCollapsed?"Expand work areas section":"Collapse work areas section"};h.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}};
h.updateTitlesForHotlists=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.titles[GAb(b.hotlistId)]=b.name};h.updateTitlesForSavedSearches=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.titles[HAb(b.searchId)]=b.name};
var dTd=function(a){var b,c,d,e,f,g,k,m,r;return y(function(w){if(w.nextAddress==1)return b=a.workAreaReferences.filter(function(x){return eu(x)==="hotlist"}).map(du).map(Number),z(w,dCd(a.hotlistPicker,b,be([])),2);c=w.yieldResult;f=((e=(d=c)==null?void 0:d.hotlistDiff.added)!=null?e:[]).map(GAb);m=((k=(g=c)==null?void 0:g.hotlistDiff.removed)!=null?k:[]).map(GAb);r=a.workAreaReferences.slice();r=t1a(m,r);r=w1a(f,r);lu(a.prefsService,{workAreaUrls:r});$d(w)})},eTd=function(a){var b;return y(function(c){if(c.nextAddress==
1)return z(c,a.issuePicker.open({title:"Choose a parent issue",allowMultipleIds:!0}),2);b=c.yieldResult;b!=null&&wRd(a.prefsService,b);$d(c)})},wKb=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&&wRd(a.prefsService,b)},fTd=function(a){var b,c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,a.savedSearchPicker.open(),2);b=f.yieldResult;d=(c=b)!=null?c:[];if(d.length===0)return f.return();
e=d.map(HAb);wRd(a.prefsService,e);$d(f)})};da.Object.defineProperties(b1.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")}}});b1.\u0275fac=function(a){return new (a||b1)};
b1.\u0275cmp=C({type:b1,selectors:[["work-areas-wrapper-card"]],hostVars:4,hostBindings:function(a,b){a&2&&yg("is-empty",b.isEmpty)("collapsed",b.isCollapsed)},inputs:{refreshData:"refreshData"},features:[Ff],decls:18,vars:3,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","",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=t();K(0,"div",3)(1,"header",4)(2,"h3",5);S(3," Work areas ");L();M(4,"mat-icon",6);K(5,"button",7);N("click",function(){u(c);return v(b.toggleCollapsed())});M(6,"mat-icon",8);L();F(7,jKb,3,1,"button",9);K(8,"mat-menu",null,0)(10,"button",10);N("click",function(){u(c);return v(eTd(b))});S(11,"Issue (parent/child project)");L();
K(12,"button",10);N("click",function(){u(c);return v(dTd(b))});S(13,"Hotlist");L();K(14,"button",10);N("click",function(){u(c);return v(fTd(b))});S(15,"Saved Search");L()()();F(16,uKb,4,3,"mat-tab-group",11)(17,zKb,9,3,"section",12);L()}a&2&&(B(5),Jf("aria-label",b.ariaLabelForToggleButton()),B(2),G(b.workAreaReferences.length>0?7:-1),B(9),G(b.workAreaReferences.length>0?16:17))},dependencies:[ZA,XA,TA,VA,OJ,NJ,LF,JF,OF,cL,bL,UK,XK,YK,ZK,hK,AK,uK,zK,xW,XJ,iz,MA,a1,EF,NV,py],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-button-outlined-icon-spacing:4px;--mat-button-outlined-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 gTd=[b1,a1,Z0],c1=function(){};c1.\u0275fac=function(a){return new (a||c1)};c1.\u0275mod=$e({type:c1});c1.\u0275inj=Dc({imports:[FN,OJ,kz,ZA,YJ,cL,iK,A0,b0,rRd,Y0,q0,XW,AK,cX,gTd]});var hTd=[n0,m0],iTd=function(){};iTd.\u0275fac=function(a){return new (a||iTd)};iTd.\u0275mod=$e({type:iTd});iTd.\u0275inj=Dc({imports:[FN,mC,sT,cL,iK,ZA,FL,nC,q0,XS,c1,hTd]});var d1=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 KO;this.prevPage=new KO;this.pageSizeChange=new KO};d1.prototype.ngOnInit=function(){};d1.\u0275fac=function(a){return new (a||d1)};
d1.\u0275cmp=C({type:d1,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"},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&&(F(0,BKb,8,1),K(1,"span",1)(2,"strong"),S(3),L(),F(4,CKb,4,1,"span"),K(5,"span"),S(6," of "),K(7,"strong"),S(8),L()(),K(9,"button",2),N("click",function(){return b.prevPage.emit()}),M(10,"mat-icon",3),L(),K(11,"button",2),N("click",function(){return b.nextPage.emit()}),M(12,"mat-icon",4),L()());a&2&&(G(b.showPageSizeSelector?0:-1),B(3),Ag(b.startIndex),B(),G(b.endIndex!=null?4:-1),B(4),Ag(b.totalNumber),B(),I("matTooltip",b.previousPageLabel)("disabled",!b.hasPreviousPage),
B(2),I("matTooltip",b.nextPageLabel)("disabled",!b.hasNextPage))},dependencies:[ZA,XA,VA,OJ,NJ,LF,JF,OF,hK,iz,MA],styles:["[_nghost-%COMP%] {\n      display: flex;\n      align-items: center;\n    }\n    .page-number[_ngcontent-%COMP%] {\n      white-space: nowrap;\n    }"]});var QKb=function(a,b){return{issueIds:a,teamId:b}},ZKb=function(){return[]},$Kb=function(){return{}},LKb=function(a,b){return b.key},e1=function(){LO.call(this);var a=this;this.activeSession=q(Zu);this.paramsService=q(JP);this.appSearchState=q(gS);this.userPreferencesManager=q(VP);this.imageUrls=q(LV);this.teamExperimentalFieldsFridge=q(FP);this.triageService=q(KQ);this.punctualService=q(AX);this.issueFridge=q(GO);this.issueFullFridge=q(RO);this.bLocation=q(US);this.refreshMonitor=q(DO);this.issueExperimentalFieldsFridge=
q(CO);this.starredTeamsService=q(HQ);this.teamsService=q(BP);this.ROUTES=zs;this.TriageServiceMode=hsd;this.SUBPHASE_TO_DISPLAY_NAME=ord;this.LAST_30_DAYS=Mrd.LAST_30_DAYS;this.EMPTY_STATE_IMG=this.imageUrls.EMPTY_TRIAGE;this.HOTKEYS=ns;this.RIGHT_SIDEBAR_MIN_WIDTH=650;this.RIGHT_SIDEBAR_MAX_WIDTH=1400;this.selectedFilterKeys=new OP;this.teamId=this.paramsService.params.teamId;this.triageId=this.paramsService.params.triageId;this.enableTeamScope=this.activeSession.getFlag("enableTeamScope")&&this.activeSession.isInternalSession();
this.phase$=Vpd(this.paramsService,"phase").pipe(A(function(d){var e;return(e=rrd.get(d))!=null?e:"NEW"}),of());this.subphase$=Vpd(this.paramsService,"subphase").pipe(A(function(d){var e;return(e=qrd.get(d))!=null?e:void 0}),of());this.pageSize$=this.userPreferencesManager.resultsPerPage$;this.pageNumber$=new Xj(1);this.activeSort$=new Xj(void 0);this.data=this.triageService.triageDataFactory.get(this.teamId,this.triageId);this.phaseData$=this.phase$.pipe(A(function(d){return a.data.phase(d)}));this.allIssuesInPhase$=
this.phaseData$.pipe(zf(function(d){return d.issues$}));this.allIssuesInSubphase$=he([this.allIssuesInPhase$,this.subphase$]).pipe(A(function(d){var e,f=l(d);d=f.next().value;return(e=f.next().value)?d.filter(function(g){return Vr(g)===e}):d}));this.selectedFilters$=this.selectedFilterKeys.value$.pipe(A(function(d){return[].concat(n(d)).map(function(e){return Mrd[e]})}));this.alerts$=this.phase$.pipe(A(function(d){return gLb.get(d)}));this.trendingThemes$=this.allIssuesInSubphase$.pipe(A(function(d){return c9a(d)}));
this.filteredIssuesInPhase$=he([this.allIssuesInSubphase$,this.selectedFilters$,this.alerts$]).pipe(A(function(d){var e=l(d);d=e.next().value;var f=e.next().value;e=e.next().value;return dLb(d,f,e)}));this.filteredTotalRowCount$=he([this.filteredIssuesInPhase$,this.trendingThemes$]).pipe(A(function(d){var e=l(d);d=e.next().value;e=e.next().value;return d.length+e.length}),wf({refCount:!0,bufferSize:1}));this.startIndex$=he([this.pageSize$,this.pageNumber$]).pipe(A(function(d){var e=l(d);d=e.next().value;
return(e.next().value-1)*d+1}),wf({refCount:!0,bufferSize:1}));this.endIndex$=he([this.pageSize$,this.startIndex$,this.filteredTotalRowCount$]).pipe(A(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)}),wf({refCount:!0,bufferSize:1}));this.sortedFilteredIssueIdsInPhase$=he([this.filteredIssuesInPhase$,this.trendingThemes$,this.activeSort$,this.phase$]).pipe(A(function(d){var e=l(d);d=e.next().value;var f=e.next().value;var g=e.next().value;e=e.next().value;
return fLb(d,f,g,e)}),wf({refCount:!0,bufferSize:1}));this.issueIdsToRender$=he([this.sortedFilteredIssueIdsInPhase$,this.startIndex$,this.endIndex$]).pipe(A(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)}),of(Gm),wf({refCount:!0,bufferSize:1}));this.availableFiltersInCurrentPhase$=he([this.phase$,this.allIssuesInSubphase$,this.trendingThemes$]).pipe(A(function(d){var e=l(d);d=e.next().value;var f=e.next().value;var g=e.next().value;var k;return((k=
Lrd.get(d))!=null?k:[]).map(function(m){var r=f.filter(m.check).length;m.key==="NEEDS_ATTENTION"&&(r+=g.length);return Object.assign({},m,{count:r})})}),A(function(d){return d.filter(function(e){return e.count||a.selectedFilterKeys.has(e.key)})}));this.issueAlertsForCurrentPhase$=this.phase$.pipe(A(function(d){return gLb.get(d)}));this.issues$=this.issueIdsToRender$.pipe(zf(function(d){return a.issueFridge.watchSet(d.flat())}));this.customFieldConfigs$=fsd(this.data).pipe(te(ln));this.tableOptions$=
he([this.issues$,this.customFieldConfigs$]).pipe(A(function(d){d=l(d);d.next();return{enableSelection:!0,showMenu:!1,modes:{createdTime:"relativepastshort"},navigationOptions:{clickTargets:"NONE",alwaysOpenNewTab:!0},sortMode:"EXTERNAL_SORT",activeRowMode:"REMAIN_ACTIVE",optionalColumns:d.next().value.map(function(e){return{type:"CUSTOM_FIELD",customFieldId:Nm(e.customFieldId)}})}}));this.teamExperimentalFields$=this.teamExperimentalFieldsFridge.watch(this.teamId);this.tableColumns$=he([this.teamExperimentalFields$,
this.phase$]).pipe(A(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(n(vrd[e]));var f,g=(f=d==null?void 0:d.displayColumns)!=null?f:[];(g==null?void 0:g.length)>0&&(e=g);return d!=null&&d.showComponentColumn?e:e.filter(function(k){return k.type!=="COMPONENT_PATH"})}));var b;this.sidebarWidthPreference$=new Xj(Math.max(this.RIGHT_SIDEBAR_MIN_WIDTH,(b=Zid("triage-sidebar-width")())!=null?b:0));this.sidebarWidth$=
he([this.triageService.isSidebarOpen$,this.sidebarWidthPreference$]).pipe(A(function(d){var e=l(d);d=e.next().value;e=e.next().value;return d?e:0}));this.subphases$=this.phase$.pipe(A(function(d){return nrd[d]}));this.subphaseDisplayName$=this.subphase$.pipe(A(function(d){return d?ord[d]:"All subphases"}));this.subphaseSelectorTooltip$=this.subphase$.pipe(A(function(d){return d?"Showing issues in the "+ord[d].toLowerCase()+" subphase.":"Showing issues in all subphases"}));this.starred$=this.starredTeamsService.starredTriageViews$.pipe(A(function(d){return d.some(function(e){return e.triageId===
a.triageId&&e.teamId===a.teamId})}));this.savingStar=!1;this.selectedIssues=new Wz(!0,[]);this.punctualSubscriptions=new Od;var c=q(PO);this.subscriptions.add(this.phase$.subscribe(function(){a.selectedFilterKeys.reset([Mrd.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 g=l(f.value);f=g.next().value;g=g.next().value;PWa(f,d)&&xrd.add(g.issueId)}}));this.subscriptions.add(this.issueIdsToRender$.subscribe(function(d){jTd(a,
d)}));this.subscriptions.add(this.phaseData$.pipe(zf(function(d){return d.totalCount$.pipe(A(function(e){return[e,d.phase]}))}),mf(1)).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)}))};Z(e1,LO);e1.\u0275dir=LO.\u0275dir;
var jTd=function(a,b){a.punctualSubscriptions.unsubscribe();a.punctualSubscriptions=new Od;b=l(b);for(var c=b.next(),d={};!c.done;d={issueId$jscomp$391:void 0},c=b.next())d.issueId$jscomp$391=c.value,Array.isArray(d.issueId$jscomp$391)||(a.punctualSubscriptions.add(a.punctualService.watch("issue-edit",d.issueId$jscomp$391).subscribe(function(e){return function(){a.issueFullFridge.poke(e.issueId$jscomp$391,{trustMemory:!1})}}(d))),a.punctualSubscriptions.add(a.punctualService.watch("issue-experimental-field-edit",
d.issueId$jscomp$391).subscribe(function(e){return function(){a.issueExperimentalFieldsFridge.poke(e.issueId$jscomp$391,{trustMemory:!1})}}(d))))};e1.prototype.ngOnInit=function(){var a=this;setTimeout(function(){a.appSearchState.clear()})};e1.prototype.ngOnDestroy=function(){LO.prototype.ngOnDestroy.call(this);this.punctualSubscriptions.unsubscribe()};
var YKb=function(a,b){a.triageService.mode!==1&&(a.triageService.setIssueIds(b),a.triageService.openSidebar())},kTd=function(a,b){return y(function(c){if(c.nextAddress==1)return z(c,ee(a.userPreferencesManager.saveResultsPerPage(b)),2);a.pageNumber$.next(1);$d(c)})};e1.prototype.onSortChange=function(a){this.activeSort$.next(a)};
e1.prototype.onColumnsChange=function(a){var b=this,c,d,e;return y(function(f){if(f.nextAddress==1)return z(f,ee(b.teamExperimentalFields$),2);d=(c=f.yieldResult)!=null?c:{id:b.teamId,triage:[{id:Nm(b.triageId)}],playbooks:[]};e=d.triage.findIndex(function(g){return""+g.id===b.triageId});if(e===-1)return f.return();d.triage[e].displayColumns=a;return z(f,ee(Lpd(b.teamsService,d)),0)})};
e1.prototype.toggleStar=function(){var a=this;return y(function(b){if(b.nextAddress==1)return a.savingStar=!0,z(b,Qrd(a.starredTeamsService,a.triageId,a.teamId),2);a.savingStar=!1;$d(b)})};e1.prototype.refreshTable=function(){this.refreshMonitor.refreshRequest.next();this.data.reload();this.selectedIssues.clear()};
var GKb=function(a,b){var c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,ee(a.phase$),2);c=g.yieldResult;d=iu[c];e=b&&prd[b];f=zs.viewTriage.makeHref(a.teamId,a.triageId,d,e);return z(g,a.bLocation.setUrl(f,!0),0)})};e1.\u0275fac=function(a){return new (a||e1)};
e1.\u0275cmp=C({type:e1,selectors:[["b-triage-phase"]],features:[Ff],decls:54,vars:64,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","editableColumns","options","teamId","showReadStatus","alerts"],[1,"full-height","flex-kids-y","align-items-center","justify-content-center","gap"],[3,"activeIssueChange","rowClick","selectedIssuesChange","sortChange","columnsChange","issueIds","tableColumns","editableColumns","options","teamId","showReadStatus","alerts"],["aria-hidden","true","alt","","height","232","width","321",3,"src"]],template:function(a,b){if(a&1){var c=
t();K(0,"div",2)(1,"header",3)(2,"button",4);N("onHotkey",function(){u(c);return v(b.refreshTable())})("click",function(){u(c);return v(b.refreshTable())});M(3,"mat-icon",5);L();K(4,"b-star-toggle",6);U(5,"async");N("starClicked",function(){u(c);return v(b.toggleStar())});L();K(6,"h2",7);S(7);U(8,"async");L();M(9,"mat-icon",8);F(10,FKb,9,7,"div",9);U(11,"async");M(12,"mat-icon",8);K(13,"button",10);U(14,"async");K(15,"span",11);S(16);U(17,"async");L();M(18,"b-icon",12);L();K(19,"mat-menu",null,0)(21,
"button",13);N("click",function(){u(c);return v(GKb(b))});S(22,"All subphases");L();M(23,"hr");Pf(24,HKb,2,1,"button",14,Of);U(26,"async");L();K(27,"b-paginator",15);U(28,"async");U(29,"async");U(30,"async");U(31,"async");U(32,"async");U(33,"async");U(34,"async");U(35,"async");N("pageSizeChange",function(D){u(c);return v(kTd(b,D))})("prevPage",function(){u(c);b.pageNumber$.next(b.pageNumber$.value-1);return v()})("nextPage",function(){u(c);b.pageNumber$.next(b.pageNumber$.value+1);return v()});L();
K(36,"div",16)(37,"a",17);M(38,"mat-icon",18);L();K(39,"a",19);M(40,"mat-icon",20);L()()();F(41,IKb,1,0,"mat-progress-bar",21);U(42,"async");K(43,"div",22)(44,"div",23);F(45,OKb,2,3);U(46,"async");F(47,RKb,1,5,"ng-container");U(48,"async");L();K(49,"b-resizable-sidebar",24);U(50,"async");N("widthChanged",function(D){u(c);D<b.RIGHT_SIDEBAR_MIN_WIDTH||(b.sidebarWidthPreference$.next(D),$id("triage-sidebar-width")(D));return v()});E(51,XKb,2,3,"ng-template",25);L()()();E(52,cLb,2,1,"ng-template",null,
1,Og)}if(a&2){var d,e,f,g;a=Q(20);B(2);I("hotkey",b.HOTKEYS.REFRESH_ISSUE);B(2);I("starred",W(5,28,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");B(3);T(" ",W(8,30,b.data.triageName$)," ");B(3);G((d=W(11,32,b.phaseData$))?10:-1,d);B(3);I("matTooltip",Fg(W(14,34,b.subphaseSelectorTooltip$)))("matMenuTriggerFor",a);B(3);Ag(W(17,36,b.subphaseDisplayName$));
B(8);Qf(W(26,38,b.subphases$));B(3);yg("invisible",!((e=W(28,40,b.issueIdsToRender$))==null?0:e.length));var k,m,r,w;I("showPageSizeSelector",!0)("startIndex",(k=W(29,42,b.startIndex$))!=null?k:1)("endIndex",(m=W(30,44,b.endIndex$))!=null?m:0)("totalNumber",(r=W(31,46,b.filteredTotalRowCount$))!=null?r:0)("hasPreviousPage",W(32,48,b.pageNumber$)>1)("hasNextPage",W(33,50,b.filteredTotalRowCount$)>W(34,52,b.endIndex$))("pageSize",(w=W(35,54,b.pageSize$))!=null?w:0);B(12);I("href",b.ROUTES.editTeam.makeHref(b.teamId,
"triage"),Me);B(2);G(W(42,56,b.data.isLoading$)?41:-1);B(4);G(((f=W(46,58,b.allIssuesInSubphase$))==null?0:f.length)?45:-1);B(2);G((g=W(48,60,b.issueIdsToRender$))?47:-1,g);B(2);var x;I("minWidth",b.RIGHT_SIDEBAR_MIN_WIDTH)("maxWidth",b.RIGHT_SIDEBAR_MAX_WIDTH)("size",(x=W(50,62,b.sidebarWidth$))!=null?x:0);B(2);I("refreshable",b.triageService.currentIssueIds$)}},dependencies:[VY,ZA,XA,TA,VA,JK,BK,IK,HK,OJ,NJ,LF,JF,OF,UV,TCd,rJ,hK,fT,hS,g_,m_,iz,MA,oy,d1,kT,lT,n_,yV,py],styles:[".settings-btn[_ngcontent-%COMP%]{line-height:38px}.left[_ngcontent-%COMP%]{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 f1=function(){};f1.\u0275fac=function(a){return new (a||f1)};f1.\u0275mod=$e({type:f1});f1.\u0275inj=Dc({});var g1=function(){};g1.\u0275fac=function(a){return new (a||g1)};g1.\u0275mod=$e({type:g1});g1.\u0275inj=Dc({imports:[FN,xT,ZA,iK,f1,yV]});var lTd=function(){};lTd.\u0275fac=function(a){return new (a||lTd)};lTd.\u0275mod=$e({type:lTd});lTd.\u0275inj=Dc({imports:[FN,ZA,OJ,iK,d1]});var mTd=[e1],nTd=function(){};nTd.\u0275fac=function(a){return new (a||nTd)};nTd.\u0275mod=$e({type:nTd});nTd.\u0275inj=Dc({imports:[FN,mC,ZA,JK,OJ,UV,sT,iK,gT,xT,b0,UQd,mS,lTd,nC,q0,oT,XS,g1,mTd]});var h1=function(){var a=this;this.teamsService=q(BP);this.placeholder="Choose Team";this.panelWidth="574px";this.disabled=!1;this.onTeamSelect=new KO;this.onEmptyQuery=new KO;this.searchQuery$=new rf;this.teamSuggestions$=this.searchQuery$.pipe(kf(300),of(),zf(function(b){return DP(a.teamsService,b)}),A(function(b){return b.map(function(c){return new iLb(c.pathIds,c.pathNames,c.description)})}))};h1.prototype.updateSelectionOnChange=function(a){this.onTeamSelect.emit(a.option.value)};
h1.prototype.search=function(a){a||this.onEmptyQuery.emit();this.searchQuery$.next(a)};h1.prototype.displayFn=function(a){return a?a.name:""};h1.prototype.ngAfterViewInit=function(){};h1.\u0275fac=function(a){return new (a||h1)};
h1.\u0275cmp=C({type:h1,selectors:[["b-team-picker"]],viewQuery:function(a,b){a&1&&kg(iX,7);if(a&2){var c;og(c=pg())&&(b.autocompleteTrigger=c.first)}},inputs:{teamSelected:"teamSelected",placeholder:"placeholder",panelWidth:"panelWidth",disabled:"disabled"},outputs:{onTeamSelect:"onTeamSelect",onEmptyQuery:"onEmptyQuery"},decls:8,vars:10,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=t();K(0,"div",2)(1,"input",3,0);N("click",function(){u(c);var d=Q(2);return v(b.search(d.value))})("input",function(){u(c);var d=Q(2);return v(b.search(d.value))});L();K(3,"mat-autocomplete",4,1);N("optionSelected",
function(d){u(c);return v(b.updateSelectionOnChange(d))});Pf(5,lLb,7,7,"mat-option",5,Of);U(7,"async");L()()}a&2&&(a=Q(4),B(),I("placeholder",Fg(b.placeholder))("ngModel",b.teamSelected)("disabled",b.disabled)("matAutocomplete",a),Jf("aria-disabled",b.disabled),B(2),I("panelWidth",b.panelWidth)("displayWith",b.displayFn),B(2),Qf(W(7,8,b.teamSuggestions$)))},dependencies:[mC,xi,PB,WB,lX,kX,hX,GA,iX,hK,MA,py,wy],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 iLb=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 oTd(a.slice(0,e+1),b.slice(0,e+1))})},oTd=function(a,b){this.pathIds=a;this.pathNames=b;this.name=b.length>0?b[b.length-1]:"";this.pathNameText=b.join(" > ")};var i1=function(){LO.apply(this,arguments);var a=this;this.teamExperimentalFieldsFridge=q(FP);this.teamsService=q(BP);this.starredTeamsService=q(HQ);this.teamUserActivity=q(GQ);this.selectedTeam$=new Xj(null);this.suggestedTeams$=this.teamUserActivity.mostActiveTeams$;this.starInProgress={};this.starredTriageViews$=this.starredTeamsService.starredTriageViews$;this.tableColumns=["starred","triageName","teamName","scope"];this.populateEmptyExperiments=Rd(A(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}],playbooks:[]})});return c}));this.suggestedTeamIds$=this.suggestedTeams$.pipe(A(function(b){return b.map(function(c){return c.teamId})}));this.starredAndSuggestedTeamIds$=he([this.starredTriageViews$,this.suggestedTeamIds$]).pipe(A(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(n(c))}));this.teamIdToTeamExperiments$=this.starredAndSuggestedTeamIds$.pipe(zf(function(b){return a.teamExperimentalFieldsFridge.watchSet([].concat(n(b))).pipe(A(function(c){return new Map(c.map(function(d){return[d.id,
d]}))}))}),jf(this.starredAndSuggestedTeamIds$),this.populateEmptyExperiments);this.teamIds$=this.teamIdToTeamExperiments$.pipe(A(function(b){return[].concat(n(b.keys()))}));this.teamIdToTriageViews$=this.teamIdToTeamExperiments$.pipe(A(function(b){return bWa(b,function(c){return wo(c.triage,function(d){return d.id.toString()})})}));this.teamsIdToTeamName$=this.teamIds$.pipe(zf(function(b){return Jpd(a.teamsService,b).pipe(A(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(A(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,g=(f=c.get(d))!=null?f:new Set;g.add(e);c.set(d,g)}return c}));this.defaultTriageViewList$=he([this.teamIdToTriageViews$,this.teamsIdToTeamName$,this.starredTeamIdToTriageIds$,this.suggestedTeamIds$]).pipe(A(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 g=d.next();!g.done;g=d.next()){var k=l(g.value);g=k.next().value;var m=k=k.next().value;k=c.has(g);var r=void 0,w=(r=b.get(g))!=null?r:g;m=l(m);for(r=m.next();!r.done;r=m.next()){var x=l(r.value);r=x.next().value;x=x.next().value;var D=void 0,H=void 0,J=(H=(D=e.get(g))==null?void 0:D.has(r))!=null?H:!1;if(k||J)D=void 0,f.push({teamId:g,teamName:w,triageId:r,triageName:Wr(w,x),scope:(D=x.scope)!=null?D:""})}}return f}));
this.selectedTeamExperiment$=this.selectedTeam$.pipe(zf(function(b){return b===null?be(void 0):a.teamExperimentalFieldsFridge.watch(b.id)}));this.selectedTeamTriageRows$=he([this.selectedTeam$,this.selectedTeamExperiment$]).pipe(A(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:Wr(c.name)}]:b.triage.map(function(d){var e;return{teamId:c.id,teamName:c.name,triageId:d.id.toString(),triageName:Wr(c.name,d),scope:(e=
d.scope)!=null?e:""}})}));this.triageRows$=he([this.defaultTriageViewList$,this.selectedTeamTriageRows$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return c.length?c:b}))};Z(i1,LO);i1.\u0275dir=LO.\u0275dir;i1.prototype.getTriageLink=function(a,b){return zs.viewTriage.makeHref(b,a)};i1.prototype.isTriageStarred=function(a,b,c){return c.some(function(d){return d.triageId===a&&d.teamId===b})};i1.prototype.onTeamSelect=function(a){this.selectedTeam$.next(a)};
i1.prototype.toggleStar=function(a,b){var c=this,d;return y(function(e){if(e.nextAddress==1){d=a+":"+b;if(c.starInProgress[d])return e.jumpTo(0);c.starInProgress[d]=!0;return z(e,Qrd(c.starredTeamsService,a,b),3)}c.starInProgress[d]=!1;$d(e)})};i1.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(i1)))(b||i1)}}();
i1.\u0275cmp=C({type:i1,selectors:[["ng-component"]],features:[Ff],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&&(K(0,"div",0)(1,"header",1)(2,"h2"),S(3," Search triage view "),L()(),K(4,"div",2)(5,"div",3)(6,"b-team-picker",4),U(7,"async"),N("onTeamSelect",function(d){return b.onTeamSelect(d)})("onEmptyQuery",function(){b.selectedTeam$.next(null)}),L()(),K(8,"div",5)(9,"h3"),F(10,mLb,1,0),U(11,"async"),Mf(12,nLb,1,0),L(),F(13,ALb,3,3),U(14,"async"),L()()());if(a&
2){var c;B(6);I("teamSelected",W(7,5,b.selectedTeam$))("panelWidth","400px")("placeholder","Search by team name or id");B(4);G(W(11,7,b.selectedTeam$)?10:12);B(3);G((c=W(14,9,b.starredTriageViews$))?13:-1,c)}},dependencies:[GW,FW,QS,DS,JS,FS,CS,LS,GS,IS,MS,OS,VS,yV,h1,py],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 j1=function(){};j1.\u0275fac=function(a){return new (a||j1)};j1.\u0275mod=$e({type:j1});j1.\u0275inj=Dc({imports:[FN,lX,PK,iK,mC,h1]});var pTd=[i1],qTd=function(){};qTd.\u0275fac=function(a){return new (a||qTd)};qTd.\u0275mod=$e({type:qTd});qTd.\u0275inj=Dc({imports:[FN,ZA,GW,iK,XS,g1,EW,j1,pTd]});var rTd=function(){};rTd.\u0275fac=function(a){return new (a||rTd)};rTd.\u0275mod=$e({type:rTd});rTd.\u0275inj=Dc({imports:[FN,iTd,nTd,qTd,nRd]});var sTd=function(){this.roundCorners=this.showDividers=!1};sTd.\u0275fac=function(a){return new (a||sTd)};
sTd.\u0275cmp=C({type:sTd,selectors:[["b-button-group"]],hostVars:4,hostBindings:function(a,b){a&2&&yg("show-dividers",b.showDividers)("round-corners",b.roundCorners)},inputs:{showDividers:"showDividers",roundCorners:"roundCorners"},ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(fg(),gg(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 k1=function(){this.constants=q(SQ);this.activeSession=q(Zu);this.STATUS_JS_FULL_TEXT=Um;this.STATUSES=Hsd;this.SEVERITIES_VALUES=Lsd;this.PRIORITIES_VALUES=Gsd;this.enableBulkEstimatedEffortOption=!1;this.onBulkEdit=new KO;this.onQuickBulkEdit=new KO;this.onBulkEditIssueRelation=new KO;this.onBulkMarkIssueRead=new KO;this.isAnonymous=this.activeSession.isAnonymous();this.enableBulkEditUi=!this.activeSession.userRequiresCaptcha()};h=k1.prototype;h.bulkEdit=function(a){this.onBulkEdit.emit(a)};
h.quickBulkEdit=function(a,b){this.onQuickBulkEdit.emit({field:a,newValue:b})};h.bulkEditIssueRelation=function(a,b){this.onBulkEditIssueRelation.emit({issueRelation:a,isMarking:b===void 0?!0:b})};h.bulkMarkIssueRead=function(){this.onBulkMarkIssueRead.emit()};h.getIssueTypes=function(){return this.constants.editIssueTypeChoices.filter(function(a){return a.value!=="VULNERABILITY"})};k1.\u0275fac=function(a){return new (a||k1)};
k1.\u0275cmp=C({type:k1,selectors:[["b-app-bar-bulk-edit-menus"]],inputs:{readStatePrompt:"readStatePrompt",enableBulkEstimatedEffortOption:"enableBulkEstimatedEffortOption"},outputs:{onBulkEdit:"onBulkEdit",onQuickBulkEdit:"onQuickBulkEdit",onBulkEditIssueRelation:"onBulkEditIssueRelation",onBulkMarkIssueRead:"onBulkMarkIssueRead"},decls:97,vars:13,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",""],["name","arrow-dropdown","size","small"],["type","button","mat-menu-item","",3,"click","matTooltip"],[3,"svgIcon"]],template:function(a,
b){if(a&1){var c=t();K(0,"b-button-group");F(1,BLb,4,2,"button",9);K(2,"button",10);N("click",function(){u(c);return v(b.bulkMarkIssueRead())});S(3);L();F(4,CLb,4,2,"button",9);F(5,DLb,4,2,"button",9);L();K(6,"mat-menu",null,0)(8,"button",11);N("click",function(){u(c);return v(b.bulkEdit("ASSIGNEE"))});S(9,"Assignee");L();K(10,"button",11);N("click",function(){u(c);return v(b.bulkEdit("COMPONENT"))});S(11,"Component");L();K(12,"button",12);S(13,"Priority");L();K(14,"button",12);S(15,"Severity");L();
K(16,"button",12);S(17,"Status");L();K(18,"button",12);S(19,"Type");L();K(20,"button",11);N("click",function(){u(c);return v(b.bulkEdit("VERIFIER"))});S(21,"Verifier");L();K(22,"button",11);N("click",function(){u(c);return v(b.bulkEdit("REPORTER"))});S(23,"Reporter");L();K(24,"button",11);N("click",function(){u(c);return v(b.bulkEdit("CHANGELIST"))});S(25,"Changelist");L();K(26,"button",11);N("click",function(){u(c);return v(b.bulkEdit("CUSTOM_FIELDS"))});S(27,"Custom Fields");L();K(28,"button",12);
S(29," Archival state ");L();K(30,"button",11);N("click",function(){u(c);return v(b.bulkEdit("FOUND_IN"))});S(31,"Found In");L();K(32,"button",11);N("click",function(){u(c);return v(b.bulkEdit("SLO_START_TIME"))});S(33,"SLO Start Time");L();F(34,ELb,2,0,"button",13);K(35,"button",11);N("click",function(){u(c);return v(b.bulkEdit("VERIFIED_IN"))});S(36,"Verified In");L();K(37,"button",11);N("click",function(){u(c);return v(b.bulkEdit("TARGETED_TO"))});S(38,"Targeted To");L();K(39,"button",12);S(40,
"In Prod");L();M(41,"mat-divider");K(42,"button",11);N("click",function(){u(c);return v(b.bulkEdit("COMMENT"))});S(43,"Add Comment");L()();K(44,"mat-menu",null,1);Pf(46,FLb,2,1,"button",13,Of);L();K(48,"mat-menu",null,2);Pf(50,GLb,2,1,"button",13,Of);L();K(52,"mat-menu",null,3);Pf(54,HLb,2,1,"button",13,Of);L();K(56,"mat-menu",null,4);bg(58);Pf(59,KLb,4,4,null,null,Of);L();K(61,"mat-menu",null,5)(63,"button",11);N("click",function(){u(c);return v(b.quickBulkEdit("IS_ARCHIVED",!0))});S(64,"Archive");
L();K(65,"button",11);N("click",function(){u(c);return v(b.quickBulkEdit("IS_ARCHIVED",!1))});S(66,"Unarchive");L()();K(67,"mat-menu",null,6)(69,"button",11);N("click",function(){u(c);return v(b.quickBulkEdit("IN_PROD",!0))});S(70,"In Prod");L();K(71,"button",11);N("click",function(){u(c);return v(b.quickBulkEdit("IN_PROD",!1))});S(72,"Not in Prod");L()();K(73,"mat-menu",null,7)(75,"button",11);N("click",function(){u(c);return v(b.bulkEditIssueRelation("BLOCKED_BY",!0))});S(76,"Mark as Blocked By");
L();K(77,"button",11);N("click",function(){u(c);return v(b.bulkEditIssueRelation("BLOCKING",!0))});S(78,"Mark as Blocking");L();K(79,"button",11);N("click",function(){u(c);return v(b.bulkEditIssueRelation("PARENT",!0))});S(80,"Add Parent");L();K(81,"button",11);N("click",function(){u(c);return v(b.bulkEditIssueRelation("DUPLICATE"))});S(82,"Duplicate");L();K(83,"button",11);N("click",function(){u(c);return v(b.bulkEditIssueRelation("BLOCKED_BY",!1))});S(84,"Unmark as Blocked By");L();K(85,"button",
11);N("click",function(){u(c);return v(b.bulkEditIssueRelation("BLOCKING",!1))});S(86,"Unmark as Blocking");L();K(87,"button",11);N("click",function(){u(c);return v(b.bulkEditIssueRelation("PARENT",!1))});S(88,"Remove Parent");L()();K(89,"mat-menu",null,8)(91,"button",11);N("click",function(){u(c);return v(b.quickBulkEdit("CC",!0))});S(92,"CC me");L();K(93,"button",11);N("click",function(){u(c);return v(b.quickBulkEdit("CC",!1))});S(94,"Un-CC me");L();K(95,"button",11);N("click",function(){u(c);return v(b.bulkEdit("CC"))});
S(96,"Edit CC");L()()}if(a&2){a=Q(45);var d=Q(49),e=Q(53),f=Q(57),g=Q(62),k=Q(68);B();G(b.enableBulkEditUi?1:-1);B();I("disabled",b.isAnonymous);B();T(" ",b.readStatePrompt," ");B();G(b.enableBulkEditUi?4:-1);B();G(b.enableBulkEditUi?5:-1);B(7);I("matMenuTriggerFor",a);B(2);I("matMenuTriggerFor",d);B(2);I("matMenuTriggerFor",e);B(2);I("matMenuTriggerFor",f);B(10);I("matMenuTriggerFor",g);B(6);G(b.enableBulkEstimatedEffortOption?34:-1);B(5);I("matMenuTriggerFor",k);B(7);Qf(b.PRIORITIES_VALUES);B(4);
Qf(b.SEVERITIES_VALUES);B(4);Qf(b.STATUSES);B(4);a=cg(b.getIssueTypes());B();Qf(a)}},dependencies:[sTd,ZA,XA,TA,OJ,NJ,LF,JF,OF,hK,hS,XJ,iz,MA],encapsulation:2,changeDetection:0});var l1=function(){this.activeSession=q(Zu);this.showFlagIssuesAsSpam=this.showExportCsv=!1;this.exportCsvClicked=new KO;this.flagAsSpamClicked=new KO;this.isAnonymous=this.activeSession.isAnonymous()};l1.\u0275fac=function(a){return new (a||l1)};
l1.\u0275cmp=C({type:l1,selectors:[["b-app-bar-more-menu"]],inputs:{showExportCsv:"showExportCsv",showFlagIssuesAsSpam:"showFlagIssuesAsSpam"},outputs:{exportCsvClicked:"exportCsvClicked",flagAsSpamClicked:"flagAsSpamClicked"},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&&F(0,NLb,8,4);a&2&&G(b.showExportCsv||b.showFlagIssuesAsSpam?0:-1)},dependencies:[ZA,XA,TA,OJ,NJ,LF,JF,OF,hS],encapsulation:2,changeDetection:0});var m1=function(){};m1.\u0275fac=function(a){return new (a||m1)};m1.\u0275mod=$e({type:m1});m1.\u0275inj=Dc({imports:[FN]});var n1=function(){};n1.\u0275fac=function(a){return new (a||n1)};n1.\u0275mod=$e({type:n1});n1.\u0275inj=Dc({imports:[OJ,FN,xT,m1,ZA,YJ,iK,l1,k1]});var p1=function(){var a=this;this.activeSession=q(Zu);this.connectionChecker=q(tTd);this.ssoInterceptorState=q(o1);this.notifyUserAndWaitForGoodConnection$=new Sd(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$=oe(window,"focus").pipe(zf(function(){return a.connectionChecker.ok$}),
te(function(b){return b}),mf(1),A(function(){}),Jla())};p1.prototype.intercept=function(a,b){return this.activeSession.getFlag("enableRefreshSsoPopup")&&a.url&&a.url.startsWith("action/")?uTd(this,b,a):b.handle(a)};
var uTd=function(a,b,c){return new Sd(function(d){var e=b.handle(c).subscribe({next:function(g){d.next(g)},complete:function(){d.complete()},error:function(g){vTd(a,b,c,g).pipe(Af(f)).subscribe(d)}}),f=new vf(1);return function(){f.next();e.unsubscribe()}})},vTd=function(a,b,c,d){return d.status===403||d.status===404||d.status===429?ce(function(){return d}):a.connectionChecker.ok$.pipe(zf(function(e){return e?ce(function(){return d}):a.notifyUserAndWaitForGoodConnection$.pipe(zf(function(){return b.handle(c)}))}))};
p1.\u0275fac=function(a){return new (a||p1)};p1.\u0275prov=Cc({token:p1,factory:p1.\u0275fac,providedIn:"root"});var o1=function(){this.showRefreshSso$=new Xj(!1)};o1.\u0275fac=function(a){return new (a||o1)};o1.\u0275prov=Cc({token:o1,factory:o1.\u0275fac,providedIn:"root"});var tTd=function(){var a=this;this.ngZone=q(Tg);this.ok$=new Sd(function(b){var c=Gtb("action/yes",function(){a.ngZone.run(function(){c.isSuccess()?b.next(c.getResponseText()==="yes"):b.next(!1);b.complete()})});return function(){c.dispose()}})};
tTd.\u0275fac=function(a){return new (a||tTd)};tTd.\u0275prov=Cc({token:tTd,factory:tTd.\u0275fac,providedIn:"root"});var wTd={provide:zFc,useExisting:p1,multi:!0};var xTd=function(){this.activeSession=q(Zu);this.ssoInterceptorState=q(o1);this.showRefreshSsoMessage$=this.ssoInterceptorState.showRefreshSso$;this.isAnonymous=this.activeSession.isAnonymous()};xTd.\u0275fac=function(a){return new (a||xTd)};
xTd.\u0275cmp=C({type:xTd,selectors:[["b-sso-expired-callout-outlet"]],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&&(F(0,SLb,6,3,"b-callout",0),U(1,"async"));a&2&&G(W(1,1,b.showRefreshSsoMessage$)?0:-1)},dependencies:[uT,vT,ZA,XA,TA,py],encapsulation:2,changeDetection:0});var yTd=function(){this.session=q(Zu);this.showHiringBanner=this.session.getFlag("showHiringBanner")&&this.session.isInternalSession()&&(this.session.getUserTypeLabel()==="UNRESTRICTED_FTE"||this.session.getUserTypeLabel()==="RESTRICTED_FTE")};yTd.\u0275fac=function(a){return new (a||yTd)};
yTd.\u0275cmp=C({type:yTd,selectors:[["b-hiring-banner"]],features:[Ig([MO])],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&&F(0,TLb,2,0,"a",0);a&2&&G(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 q1=function(){};q1.\u0275fac=function(a){return new (a||q1)};q1.\u0275mod=$e({type:q1});q1.\u0275inj=Dc({imports:[FN]});var r1=function(){this.hotkeys=q(dT)};r1.prototype.ngOnInit=function(){this.hotkeys.pause()};r1.prototype.ngOnDestroy=function(){this.hotkeys.unpause()};r1.\u0275fac=function(a){return new (a||r1)};
r1.\u0275cmp=C({type:r1,selectors:[["b-hotkeys-dialog"]],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&&(K(0,"h1",0),S(1,"Keyboard shortcuts"),L(),K(2,"mat-dialog-content")(3,"table"),Pf(4,VLb,7,1,"thead",null,Of),L()(),K(6,"mat-dialog-actions")(7,"button",1),S(8,"Close"),L()());a&2&&(B(4),Qf(Vxd(b.hotkeys)))},
dependencies:[ZA,XA,TA,mB,hB,lB,kB],encapsulation:2});var s1=function(){};s1.\u0275fac=function(a){return new (a||s1)};s1.\u0275mod=$e({type:s1});s1.\u0275inj=Dc({imports:[FN,ZA,pB,r1]});var nu=function(a){this.type=a.type;this.customFieldId=a.customFieldId||void 0;this.customFieldName=a.customFieldName||void 0};nu.prototype.isCustomField=function(){return this.type==="CUSTOM_FIELD"};nu.prototype.toApiUrlParam=function(){return this.isCustomField()?this.type.toLowerCase()+"."+this.customFieldId:this.type.toLowerCase()};nu.prototype.toString=function(){return this.toApiUrlParam()};var qu=function(a,b){this.fieldId=a;this.direction=b};qu.prototype.toApiUrlParam=function(){return this.fieldId.toApiUrlParam()+":"+(this.direction==="ASCENDING"?"asc":"desc")};qu.prototype.toString=function(){return this.toApiUrlParam()};var zTd=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 Xj(this)},ATd=function(a,
b){var c=b.positionMap||{},d=b.issues.map(function(e){var f=ygb(e,null);c&&c[e.issueId]&&(f.position=c[e.issueId]);return f});return new zTd(d,a,b)};zTd.prototype.hasPreviousPage=function(){return this.params.page>1};zTd.prototype.hasNextPage=function(){return!!this.responseMetadata.nextPageToken};
var BTd=function(a,b){var c=a.issues.findIndex(function(d){return d.issueId===b});return c!==-1?c+a.startIndex:-1},CTd=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=BTd(a,c.issueId);e!==-1&&(e-=a.startIndex,xgb(a.issues[e],c,d))}a.changed$.next(a)},DTd=function(a,b,c,d){b=BTd(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)};zTd.prototype.clone=function(){var a=new zTd(this.internalIssues,this.params,this.responseMetadata);a.changed$.next(a);return a};da.Object.defineProperties(zTd.prototype,{issues:{configurable:!0,enumerable:!0,get:function(){return this.internalIssues},set:function(a){this.internalIssues=a;this.changed$.next(this)}}});var t1=function(){this.issueApi=q(uO);this.hotlistApi=q(PN);this.paths=q(wV)};t1.prototype.create=function(a){return new ETd(this.issueApi,this.hotlistApi,this.paths,a)};t1.\u0275fac=function(a){return new (a||t1)};t1.\u0275prov=Cc({token:t1,factory:t1.\u0275fac,providedIn:"root"});
var ETd=function(a,b,c,d){this.issueApi=a;this.hotlistApi=b;this.paths=c;this.params=d;this.resultPromise=this.searchResultsPage=null},u1=function(a){if(a.params.page<1)return Promise.reject(Error("rg"));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=fhb(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=ATd(a.params,e));return a.searchResultsPage},function(e){return Promise.reject(e)})},FTd=function(a){return a.searchResultsPage?a.searchResultsPage.hasNextPage():!0};var v1=function(){this.$window=q(ZP);this.searchResultsPageFetcherFactory=q(t1);this.previousResultsFetcher=this.nextResultsFetcher=this.currentResultsFetcher=null;this.focusedIssueIndex=-1},HTd=function(a,b){var c=Io();GTd(b.page)?(a.setSearchParams(b),u1(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},JTd=function(a){var b=Io(),c=null;a.currentResultsFetcher?c=a.currentResultsFetcher.params:
c=ITd(a);c?(a.setSearchParams(c),u1(a.currentResultsFetcher).then(function(d){b.resolve(d)},function(d){b.reject(d)})):b.reject("No related search results available.");return b.promise},KTd=function(a){a.currentResultsFetcher=null;a.nextResultsFetcher=null;a.previousResultsFetcher=null;a.focusedIssueIndex=-1},LTd=function(a,b){var c=Io();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=Hm(a.currentResultsFetcher.params);e.page=d;a.setSearchParams(e);u1(a.currentResultsFetcher).then(function(f){a:{if(b>=f.startIndex&&b<=f.endIndex){var g=b-f.startIndex;if(g<f.issues.length){f=f.issues[g].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};
v1.prototype.getFocusedIssue=function(){return this.focusedIssueIndex};
var MTd=function(a){a.currentResultsFetcher?u1(a.currentResultsFetcher).then(function(b){a.focusedIssueIndex=b.endIndex>=b.startIndex?b.startIndex:-1}).catch(function(b){pn("unexpected error fetching:",b)}):a.focusedIssueIndex=-1},ITd=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 qu(new nu(b.fieldId),b.direction)}));return a}return null},
NTd=function(a,b,c){b=Hm(b);b.page=c;return a.searchResultsPageFetcherFactory.create(b)},OTd=function(a,b){a.currentResultsFetcher||(a.currentResultsFetcher=NTd(a,b,b.page),u1(a.currentResultsFetcher).catch(function(c){pn("unexpected error fetching:",c)}));!a.previousResultsFetcher&&b.page>1&&(a.previousResultsFetcher=NTd(a,b,b.page-1),Gs(2E3).then(function(){var c;return(c=a.previousResultsFetcher)==null?void 0:u1(c)}).catch(function(c){pn("unexpected error fetching:",c)}));!a.nextResultsFetcher&&
FTd(a.currentResultsFetcher)&&(a.nextResultsFetcher=NTd(a,b,b.page+1),Gs(2E3).then(function(){var c;return(c=a.nextResultsFetcher)==null?void 0:u1(c)}).catch(function(c){pn("unexpected error fetching:",c)}))};
v1.prototype.setSearchParams=function(a){a.page=Jm(a.page);if(!a.resultsPerPage||isNaN(a.resultsPerPage))throw Error("sg");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&&Gm(a.sortColumns,b.sortColumns)&&a.resultsPerPage===b.resultsPerPage&&Gm(a.trackerIds,b.trackerIds)?this.currentResultsFetcher.params.returnUrl=a.returnUrl:KTd(this)}OTd(this,a);a=JSON.stringify(this.currentResultsFetcher.params);this.$window.sessionStorage.setItem("buganizer.searchParams",a)};
var GTd=function(a){var b=Jm(""+a);return isNaN(b)||b!=Number(a)||b<1||b>2147483647?!1:!0};v1.\u0275fac=function(a){return new (a||v1)};v1.\u0275prov=Cc({token:v1,factory:v1.\u0275fac,providedIn:"root"});var w1=function(){this.$window=q(ZP);this.activeSession=q(Zu)};w1.prototype.setTitle=function(a){a=ru(a,this.activeSession.session);this.$window.document.title=a};w1.\u0275fac=function(a){return new (a||w1)};w1.\u0275prov=Cc({token:w1,factory:w1.\u0275fac,providedIn:"root"});var x1=function(){LO.apply(this,arguments);var a=this;this.paramsService=q(JP);this.issueFullFridge=q(RO);this.pageTitle=q(w1);this.accessIndicatorService=q(uW);this.newTitle$=this.paramsService.routeParams$.pipe(of(Gm),zf(function(b){return a.onRouteParamsChanged(b)}));this.init=function(){a.subscriptions.add(a.newTitle$.subscribe(function(b){a.pageTitle.setTitle(b)}))};this.initOnce=nXa(this.init)};Z(x1,LO);x1.\u0275dir=LO.\u0275dir;
x1.prototype.onRouteParamsChanged=function(a){return a.issueId?PTd(this,a.issueId):Ox};var PTd=function(a,b){return he([a.issueFullFridge.watch(b),mEd(a.accessIndicatorService,b).pipe(yf(void 0),hf(function(){return be(void 0)}))]).pipe(yf([void 0,void 0]),A(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}))};
x1.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(x1)))(b||x1)}}();x1.\u0275prov=Cc({token:x1,factory:x1.\u0275fac,providedIn:"root"});var TTd=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(QTd(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(),
RTd(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);QTd(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();RTd(this);STd(this)};TTd.prototype.start=function(){this.parentElement.appendChild(this.element);requestAnimationFrame(this.animate)};
TTd.prototype.stop=function(){this.state=2;RTd(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 STd=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)}};
TTd.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 RTd=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"},QTd=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};TTd.prototype.transform=function(){this.element.style.transform="translate("+this.x+"px,"+this.y+"px) rotate("+(this.direction+90)%360+"deg) scaleX("+this.flip};var UTd=function(a){this.element=a;this.bugs=[]};UTd.prototype.start=function(){for(var a=this,b=0;b<3;b++)VTd(this);this.intervalSubscription=kia(1E4).subscribe(function(){VTd(a);a.bugs.length>=10&&a.intervalSubscription&&a.intervalSubscription.unsubscribe()})};UTd.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 VTd=function(a){var b=new TTd(a.element);b.start();a.bugs.push(b)};var y1=function(){var a=this;this.ngZone=q(Tg);this.userPreferencesManager=q(VP);this.snackBar=q(LD);this.elementRef=q(Gd);this.bugAnimation=new UTd(this.elementRef.nativeElement);this.destroyed$=new vf(1);this.active$=new Xj(!0);this.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY;this.active$.pipe(of(),Af(this.destroyed$)).subscribe(function(b){b?WTd(a):XTd(a)})};y1.prototype.ngOnInit=function(){document.visibilityState==="visible"&&YTd(this)};y1.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var YTd=function(a){a.timeoutId=setTimeout(function(){a.active$.next(!1)},18E4)};y1.prototype.onUserEvent=function(){var a=Date.now();a<this.lastTimeoutResetTimestamp+1E4||(this.lastTimeoutResetTimestamp=a,this.active$.next(!0),clearTimeout(this.timeoutId),YTd(this))};y1.prototype.onVisibilityChange=function(){this.onUserEvent();switch(document.visibilityState){case "hidden":clearTimeout(this.timeoutId),this.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY}};
var XTd=function(a){a.snackBar.open("Bug screensaver started because of inactivity.","Disable",{duration:5E3}).onAction().subscribe(function(){ZTd(a)});a.ngZone.runOutsideAngular(function(){a.bugAnimation.start()})},WTd=function(a){a.ngZone.runOutsideAngular(function(){a.bugAnimation.stop()})},ZTd=function(a){var b,c,d;y(function(e){if(e.nextAddress==1)return b=Object,c=b.assign,z(e,ee(a.userPreferencesManager.bugScreensaverPreferences$),2);d=c.call(b,{},e.yieldResult,{enableBugScreensaver:!1});a.userPreferencesManager.save({bugScreensaverPreferences:d}).subscribe();
$d(e)})};y1.\u0275fac=function(a){return new (a||y1)};
y1.\u0275cmp=C({type:y1,selectors:[["bug-screensaver"]],hostBindings:function(a,b){a&1&&N("click",function(){return b.onUserEvent()},Id)("keydown",function(){return b.onUserEvent()},Id)("mousemove",function(){return b.onUserEvent()},Id)("wheel",function(){return b.onUserEvent()},Id)("touchstart",function(){return b.onUserEvent()},Id)("focus",function(){return b.onUserEvent()},Id)("visibilitychange",function(){return b.onVisibilityChange()},dha)},decls:0,vars:0,template:function(){},encapsulation:2});var $Td=function(){var a=this;this.userPreferencesManager=q(VP);this.activeSession=q(Zu);this.isEnabled$=this.userPreferencesManager.bugScreensaverPreferences$.pipe(A(function(b){return(b.enableBugScreensaver||!1)&&a.activeSession.isInternalSession()}))};$Td.\u0275fac=function(a){return new (a||$Td)};
$Td.\u0275cmp=C({type:$Td,selectors:[["bug-screensaver-manager"]],decls:2,vars:3,template:function(a,b){a&1&&(F(0,YLb,1,0,"bug-screensaver"),U(1,"async"));a&2&&G(W(1,1,b.isEnabled$)?0:-1)},dependencies:[y1,py],encapsulation:2});var z1=function(){};z1.\u0275fac=function(a){return new (a||z1)};z1.\u0275mod=$e({type:z1});z1.\u0275inj=Dc({imports:[FN,sT,ZT,wT]});var aUd=function(){this.activeSession=q(Zu);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,g,k;this.trackerCoc=(k=(f=this.currentTracker)==null?void 0:(g=f.branding)==null?void 0:g.cocUrl)!=null?k:""};aUd.\u0275fac=function(a){return new (a||aUd)};
aUd.\u0275cmp=C({type:aUd,selectors:[["b-footer"]],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&&F(0,aMb,9,2,"footer");a&2&&G(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 bUd=function(){};bUd.\u0275fac=function(a){return new (a||bUd)};bUd.\u0275mod=$e({type:bUd});bUd.\u0275inj=Dc({imports:[FN]});var A1=function(){var a=this;this.paths=q(wV);this.context=q(KP);this.activeSession=q(Zu);this.componentFridge=q(AN);this.createIssuePath=this.paths.createIssue();this.currentTracker=this.activeSession.getTracker();this.component$=this.context.getComponentId().pipe(zf(function(d){return d?a.componentFridge.watch(d):be(void 0)}),A(function(d){return d&&!d.archived?d:void 0}));this.visibleOptions$=he([this.component$,this.context.getIssueId(),this.context.getHotlistId()]).pipe(nf(0),A(function(d){var e=
l(d);d=e.next().value;var f=e.next().value;e=e.next().value;return cUd(a,a.currentTracker,d,f,e)}));this.buttonLabel$=this.visibleOptions$.pipe(A(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"};A1.prototype.ngOnInit=function(){};A1.prototype.trackClick=function(a){ur("create","click",a)};
var cUd=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 g={};f.set("in_same_hotlist",a.paths.createIssue((g.hotlistIds=String(e),g)))}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(n(f.entries())).map(function(k){var m=l(k);k=m.next().value;m=m.next().value;return{name:wdb(k),path:m}})};A1.\u0275fac=function(a){return new (a||A1)};
A1.\u0275cmp=C({type:A1,selectors:[["b-create-issue-button"]],decls:2,vars:3,consts:[[3,"label","icon","href","segments"],[3,"clickMain","clickSegment","label","icon","href","segments"]],template:function(a,b){a&1&&(F(0,cMb,2,3),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.visibleOptions$))?0:-1,c)}},dependencies:[hT,py],encapsulation:2,changeDetection:0});var B1=function(){this.router=q(CF);this.location=q(US)},dUd=function(a){var b=a.location.getUrl();hu(a.router,"/",{skipLocationChange:!0}).then(function(){return hu(a.router,b,{skipLocationChange:!0})})};B1.\u0275fac=function(a){return new (a||B1)};B1.\u0275prov=Cc({token:B1,factory:B1.\u0275fac,providedIn:"root"});var C1=function(){LO.call(this);var a=this;this.reloadService=q(B1);this.activeSession=q(Zu);this.bLocation=q(US);this.paths=q(wV);this.issuePagination=q(v1);this.sidebarItemFactory=q(eUd);this.appEvents=q(DN);this.analytics=q(PO);this.currentUserBookmarksFridge=q(ZN);this.sidebarData={hotlists:[],bookmarkGroups:[],archivedHotlists:[],archivedBookmarkGroups:[],userSearches:[]};this.userSavedSearches=[];this.userHotlists=[];this.subscriptions.add(uld(this.currentUserBookmarksFridge).subscribe(function(b){a.sidebarData.hotlists=
fUd(a,b.hotlists);a.sidebarData.bookmarkGroups=gUd(a,b.bookmarkGroups);a.sidebarData.archivedHotlists=fUd(a,b.archivedHotlists);a.sidebarData.archivedBookmarkGroups=gUd(a,b.archivedBookmarkGroups);a.appEvents.sidebarUpdated.next()}));this.subscriptions.add(vld(this.currentUserBookmarksFridge).subscribe(function(b){b=hUd(a,b);a.sidebarData.userSearches=b;Bba(a.userSavedSearches);Eba(a.userSavedSearches,b);a.appEvents.sidebarUpdated.next()}));this.subscriptions.add($N(this.currentUserBookmarksFridge).subscribe(function(b){iUd(a,
b);a.appEvents.sidebarUpdated.next()}))};Z(C1,LO);C1.\u0275dir=LO.\u0275dir;
var fUd=function(a,b){return b.map(function(c){return jUd(a.sidebarItemFactory,c)}).sort(function(c,d){return c.name.localeCompare(d.name)})},gUd=function(a,b){return b.map(function(c){var d=a.sidebarItemFactory;return new kUd(c,d.activeSession,d.analytics,d.userApi,d.bookmarkGroupsApi,d.butterBar,d.paths,d.userPreferencesManager,d.errorHandler,d,d.confirmationDialogService,d.appEvents)})},hUd=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 lUd(a.sidebarItemFactory,c)})},iUd=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 jUd(a.sidebarItemFactory,c)});Bba(a.userHotlists);Eba(a.userHotlists,b)};
C1.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||(KTd(this.issuePagination),RBd(this.paths,a)&&dUd(this.reloadService),this.bLocation.setUrl(a),b.preventDefault(),b.stopPropagation())};C1.\u0275fac=function(a){return new (a||C1)};C1.\u0275prov=Cc({token:C1,factory:C1.\u0275fac,providedIn:"root"});
var D1=function(a,b,c,d,e,f,g,k){this.item=a;this.analytics=c;this.userApi=d;this.bookmarkGroupsApi=e;this.butterBar=f;this.paths=g;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()};D1.prototype.getDisplayName=function(){return this.item.name?this.item.name:"resourceType"in this.item?xj(this.item.resourceType.toLowerCase())+" "+this.item.id:this.item.id};
D1.prototype.isEditable=function(){return mUd(this)};D1.prototype.isSelected=function(){var a=this.paths,b=this.href;b=b.charAt(0)!=="/"?"/"+b:b;return a.bLocation.path()===b};D1.prototype.isUnstarable=function(){return!mUd(this)&&this.starred};
var mUd=function(a){return a.adminUsers.some(function(b){return b.emailAddress===a.userEmail})},nUd=function(a,b){var c=WP(a.userPreferencesManager).homepagePreferences;return(c==null?void 0:c.resourceId)===a.id&&c.resourceType===b},oUd=function(a,b){fs(a.butterBar,"Updating homepage...",0);zqd(a.userPreferencesManager,{resourceType:b,resourceId:a.id}).pipe(mf(1)).subscribe(function(){fs(a.butterBar,"Homepage updated")})},pUd=function(a,b,c,d,e,f,g,k,m,r,w,x){D1.call(this,a,b,c,d,e,g,k,m);this.hotlistApi=
f;this.errorHandler=r;this.confirmationDialogService=w;this.appEvents=x;this.href=zs.viewHotlist.makeHref(a.id);this.type="HOTLIST"};Z(pUd,D1);h=pUd.prototype;h.isPreferredHomepage=function(){return nUd(this,"HOTLIST")};h.setAsPreferredHomepage=function(){oUd(this,"HOTLIST")};
h.archive=function(){var a=this;fs(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});fs(a.butterBar,'Archived hotlist "'+a.name+'".');a.analytics.trackEvent("sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
h.unarchive=function(){var a=this;fs(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});fs(a.butterBar,'Unarchived hotlist "'+a.name+'".');a.analytics.trackEvent("sidebarItem","unarchived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
h.unstar=function(){var a=this;this.confirmationDialogService.open({title:"Unstar hotlist: "+this.name,content:Dh("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()}})};
h.doUnstar=function(){var a=this;fs(this.butterBar,"Unstarring hotlist ID "+this.id+"...");this.userApi.removeUserBookmark({resourceType:"HOTLIST",resourceId:this.id}).then(function(){fs(a.butterBar,"Unstarred hotlist ID "+a.id);a.appEvents.hotlistChanged.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};var qUd=function(a,b,c,d,e,f,g,k){D1.call(this,a,b,c,d,e,f,g,k);this.href=g.viewSavedSearch(a.id);this.type="SAVED_SEARCH"};Z(qUd,D1);qUd.prototype.isUnstarable=function(){return!1};
qUd.prototype.unstar=function(){};qUd.prototype.isPreferredHomepage=function(){return nUd(this,"SAVED_SEARCH")};qUd.prototype.setAsPreferredHomepage=function(){oUd(this,"SAVED_SEARCH")};
var kUd=function(a,b,c,d,e,f,g,k,m,r,w,x){D1.call(this,a,b,c,d,e,f,g,k);this.errorHandler=m;this.sidebarItemFactory=r;this.confirmationDialogService=w;this.appEvents=x;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(jUd(this.sidebarItemFactory,b));break;case "SAVED_SEARCH":this.items.push(lUd(this.sidebarItemFactory,b))}this.items.sort(function(D,H){return D.name.localeCompare(H.name)})};Z(kUd,D1);h=kUd.prototype;
h.isPreferredHomepage=function(){return nUd(this,"BOOKMARK_GROUP")};h.setAsPreferredHomepage=function(){oUd(this,"BOOKMARK_GROUP")};
h.archive=function(){var a=this;fs(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});fs(a.butterBar,'Archived bookmark group "'+a.name+'".');a.analytics.trackEvent("sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
h.unarchive=function(){var a=this;fs(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});fs(a.butterBar,'Unarchived bookmark group "'+a.name+'".');a.analytics.trackEvent("sidebarItem","unarchived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
h.unstar=function(){var a=this;this.confirmationDialogService.open({title:"Unstar bookmark group: "+this.name,content:Dh("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()}})};
h.doUnstar=function(){var a=this;fs(this.butterBar,"Unstarring bookmark group ID "+this.id+"...");this.userApi.removeUserBookmark({resourceType:"BOOKMARK_GROUP",resourceId:this.id}).then(function(){fs(a.butterBar,"Unstarred bookmark group ID "+a.id);a.appEvents.bookmarkGroupModified.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var eUd=function(){this.activeSession=q(Zu);this.userApi=q(TN);this.bookmarkGroupsApi=q(lN);this.hotlistApi=q(PN);this.errorHandler=q(ZM);this.paths=q(wV);this.analytics=q(PO);this.butterBar=q(JM);this.userPreferencesManager=q(VP);this.confirmationDialogService=q(PQ);this.appEvents=q(DN)},jUd=function(a,b){return new pUd(b,a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.hotlistApi,a.butterBar,a.paths,a.userPreferencesManager,a.errorHandler,a.confirmationDialogService,a.appEvents)},lUd=
function(a,b){return new qUd(b,a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.butterBar,a.paths,a.userPreferencesManager)};eUd.\u0275fac=function(a){return new (a||eUd)};eUd.\u0275prov=Cc({token:eUd,factory:eUd.\u0275fac,providedIn:"root"});var E1=function(){this.prefs=q(VP);this.expanded=!0;this.content=this.header=null;this.onExpand=new KO};E1.prototype.ngOnInit=function(){this.prefKey&&(this.expanded=!Bqd(this.prefs,this.prefKey))};E1.prototype.onClick=function(){var a=this,b,c;return y(function(d){if(d.nextAddress==1){b=!a.expanded;a.expanded=b;if(!a.prefKey)return d.jumpTo(2);c={};return z(d,ee(Aqd(a.prefs,(c[a.prefKey]=!b,c))),2)}a.expanded&&a.onExpand.next();$d(d)})};E1.\u0275fac=function(a){return new (a||E1)};
E1.\u0275cmp=C({type:E1,selectors:[["sidebar-zippy"]],inputs:{expanded:"expanded",header:"header",content:"content",prefKey:"prefKey"},outputs:{onExpand:"onExpand"},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&&(K(0,"div",0),N("click",function(){return b.onClick()})("keydown.enter",function(c){b.onClick();return c.stopPropagation()})("keydown.space",function(c){b.onClick();
return c.preventDefault()}),E(1,dMb,1,0,"ng-container",1),L(),F(2,fMb,1,1,"ng-container"));a&2&&(yg("opened",b.expanded)("closed",!b.expanded),Jf("aria-expanded",b.expanded),B(),I("ngTemplateOutlet",b.header),B(),G(b.expanded?2:-1))},dependencies:[oy],encapsulation:2});var rUd=function(){return[]},F1=function(){var a=this;this.location=q(oi);this.starredTeamsService=q(HQ);this.bLocation=q(US);this.triageService=q(KQ);this.sidebar=q(C1);this.routeParamsService=q(JP);this.teamExperimentalFieldsFridge=q(FP);this.teamFridge=q(GP);this.ROUTES=zs;this.ALL_PHASES=mrd;this.phaseToUrlSlug=iu;this.triageTeamIdFromUrl$=this.routeParamsService.routeParams$.pipe(A(function(b){return b.phase&&b.teamId}));this.triageIdFromUrl$=this.routeParamsService.routeParams$.pipe(A(function(b){return b.phase&&
b.triageId}));this.triageViewFromUrl$=he([this.triageTeamIdFromUrl$,this.triageIdFromUrl$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;if(b&&c)return{teamId:b,triageId:c}}));this.sidebarTriagePreferences$=he([this.starredTeamsService.starredTriageViews$,this.triageViewFromUrl$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return[].concat(n(b),[c]).filter(ln)}),A(function(b){return Nq(b,function(c){return c.teamId+":"+c.triageId})}));this.teamExperiments$=this.sidebarTriagePreferences$.pipe(A(function(b){return b.map(function(c){return c.teamId})}),
A(function(b){return Oq(b.filter(ln))}),zf(function(b){return a.teamExperimentalFieldsFridge.watchSet(b)}),A(function(b){return new Map(b.map(function(c){return[c.id,c]}))}));this.teamIdToTriageViews$=this.teamExperiments$.pipe(A(function(b){return bWa(b,function(c){return wo(c.triage,function(d){return d.id})})}));this.triageSidebarEntries$=he([this.teamIdToTriageViews$,this.sidebarTriagePreferences$]).pipe(A(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,g=e.triageId,k=void 0,m=(k=b.get(f))==null?void 0:k.get(Number(g));m?(g=a.teamFridge.watch(f),c.push({teamId:f,triageId:e.triageId,displayName$:g9a(g,f,m)})):console.log("triage not found",f,g)}return c}))},pMb=function(a,b,c){return a.routeParamsService.routeParams$.pipe(A(function(d){return!(d.teamId!==b||d.triageId!==c||!d.phase&&!a.location.path().endsWith("issue-themes"))}))};
F1.prototype.isTriageUrlFor=function(a,b,c){return this.location.path().startsWith(zs.viewTriage.makeHref(a,c,iu[b],""))};F1.prototype.goToTriageSettingsPage=function(){this.bLocation.setUrl(zs.triageSettings.makeHref())};F1.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};F1.\u0275fac=function(a){return new (a||F1)};
F1.\u0275cmp=C({type:F1,selectors:[["nav-sidebar-triage"]],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&&(F(0,tMb,2,1),U(1,"async"));if(a&2){var c,d;G((c=(d=W(1,1,b.triageSidebarEntries$))!=null?d:Jg(3,rUd))?0:-1,c)}},dependencies:[ZA,XA,VA,OJ,NJ,LF,JF,KF,OF,iz,E1,py],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 G1=function(){this.location=q(US);this.analytics=q(PO);this.paths=q(wV);this.sidebar=q(C1);this.bookmarkGroups=[];this.hotlists=[]};h=G1.prototype;h.handleBookmarkGroupOpen=function(a){this.analytics.trackEvent("sidebarArchived","open");this.location.setUrl(this.paths.viewBookmarkGroup(a))};h.handleBookmarkGroupDashboard=function(a){this.analytics.trackEvent("sidebarArchived","dashboard");this.location.setUrl(this.paths.dashboard(a))};h.openEditHotlist=function(a){this.location.setUrl(zs.editHotlist.makeHref(a))};
h.openEditBookmarkGroup=function(a){this.location.setUrl(this.paths.editBookmarkGroup(a))};h.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};G1.\u0275fac=function(a){return new (a||G1)};
G1.\u0275cmp=C({type:G1,selectors:[["sidebar-archived"]],inputs:{bookmarkGroups:"bookmarkGroups",hotlists:"hotlists"},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&&F(0,JMb,7,2,"div");a&2&&G(b.hotlists.length||b.bookmarkGroups.length?0:-1)},dependencies:[ZA,XA,VA,OJ,NJ,LF,JF,KF,OF,iz,E1],encapsulation:2,changeDetection:0});var sUd=function(){this.admins=[]};sUd.prototype.ngOnInit=function(){this.url="bookmark-groups/"+this.bookmarkGroup.bookmarkGroupId;this.admins=Pm(this.bookmarkGroup.adminUsers)};sUd.\u0275fac=function(a){return new (a||sUd)};
sUd.\u0275cmp=C({type:sUd,selectors:[["b-bookmark-group-card"]],inputs:{bookmarkGroup:"bookmarkGroup"},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&&(Sf(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),S(5),Tf()(),Sf(6,"ul")(7,"li"),S(8),Tf(),Sf(9,"li"),S(10),Tf()(),Sf(11,"div")(12,"p"),S(13),Tf()()()()());a&2&&(B(4),Rf("href",
b.url,Me),B(),Ag(b.bookmarkGroup.name),B(3),T("ID: ",b.bookmarkGroup.bookmarkGroupId),B(2),Bg("",b.admins.length===1?"Admin":"Admins",": ",b.admins.join(", ")),B(3),Ag(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 tUd=["searchBox"],H1=function(){this.cdr=q(MO,{self:!0});this.activeSession=q(Zu);this.userApi=q(TN);this.bookmarkGroupsApi=q(lN);this.hotlistApi=q(PN);this.paths=q(wV);this.analytics=q(PO);this.errorHandler=q(ZM);this.appEvents=q(DN);this.currentUserBookmarksFridge=q(ZN);this.allowStarring=this.showHotlists=this.showGroups=!0;this.focusOnInit=!1;this.itemSelect=new KO;this.lastProcessedIndex=-1;this.nextRequestIndex=0;this.favoriteBookmarkGroups=new Set;this.favoriteHotlists=new Set;this.currentUserEmail=
this.activeSession.getUserEmail();this.query="";this.matches=[]};H1.prototype.ngOnInit=function(){this.allowStarring&&uUd(this)};H1.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 uUd=function(a){a.favoriteBookmarkGroups.clear();a.favoriteHotlists.clear();ee(uld(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)})};h=H1.prototype;h.reset=function(){this.query="";this.matches=[]};h.isLoading=function(){return this.lastProcessedIndex+1!==this.nextRequestIndex};h.onQueryChange=function(){this.matches=[];this.query&&typeof this.query!=="string"&&(this.query="");this.search()};
h.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 g=l(e),k=g.next();!k.done;k=g.next()){k=k.value;var m=k.bookmarkGroupId;k.href=a.paths.viewBookmarkGroup(m);k.isGroup=!0;k.isStarred=a.favoriteBookmarkGroups.has(m)}g=
l(f);for(k=g.next();!k.done;k=g.next())k=k.value,m=k.hotlistId,k.href=zs.viewHotlist.makeHref(m),k.isGroup=!1,k.isStarred=a.favoriteHotlists.has(m);a.matches=[].concat(n(e),n(f));a.lastProcessedIndex=b;a.cdr.detectChanges()}})}else this.lastProcessedIndex=b};h.shouldShowStar=function(a){return this.allowStarring&&!Pm(a.adminUsers).includes(this.currentUserEmail)};
h.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();uUd(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))};
H1.\u0275fac=function(a){return new (a||H1)};
H1.\u0275cmp=C({type:H1,selectors:[["b-hotlist-search"]],viewQuery:function(a,b){a&1&&(kg(tUd,5),kg(iX,5));if(a&2){var c;og(c=pg())&&(b.searchBoxEl=c.first);og(c=pg())&&(b.autocomplete=c.first)}},hostAttrs:[1,"'bv2-hotlist-search'"],inputs:{showGroups:"showGroups",showHotlists:"showHotlists",allowStarring:"allowStarring",focusOnInit:"focusOnInit"},outputs:{itemSelect:"itemSelect"},features:[Ig([MO])],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=t();K(0,"div",3)(1,"input",4,0);Eg("ngModelChange",function(d){u(c);Dg(b.query,d)||(b.query=d);return v(d)});N("ngModelChange",function(){u(c);return v(b.onQueryChange())})("keydown.space",function(d){u(c);return v(b.onSpace(d))});L();F(3,KMb,1,0,"b-spinner");K(4,"mat-autocomplete",5,1);N("optionSelected",function(d){u(c);b.itemSelect.emit(d.option.value);return v()});Pf(6,OMb,9,7,"mat-option",6,Of);L();K(8,"div",7);S(9,
' e.g., "foo bar admin:user@google.com" ');M(10,"br");S(11,' or "foo bar admin:group@google.com" ');M(12,"br");S(13," Only identities directly listed as Admins can be searched. ");L()()}a&2&&(a=Q(5),B(),Cg("ngModel",b.query),I("matAutocomplete",a),Jf("autofocus",b.focusOnInit)("aria-label","Add query for searching "+(b.showGroups?"bookmark groups":"hotlists")),B(2),G(b.isLoading()?3:-1),B(3),Qf(b.matches))},dependencies:[sUd,mC,xi,PB,WB,lX,kX,hX,GA,iX,oV,AK,uK,zK,VS,yV],encapsulation:2});var I1=function(){this.allowStarring=this.showHotlists=this.showGroups=!0;this.ariaLabel="";this.itemSelect=new KO};I1.\u0275fac=function(a){return new (a||I1)};
I1.\u0275cmp=C({type:I1,selectors:[["b-hotlist-search-popup"]],viewQuery:function(a,b){a&1&&kg(GD,5);if(a&2){var c;og(c=pg())&&(b.dialog=c.first)}},inputs:{showGroups:"showGroups",showHotlists:"showHotlists",allowStarring:"allowStarring",ariaLabel:[0,"aria-label","ariaLabel"]},outputs:{itemSelect:"itemSelect"},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&&(K(0,"xap-icon-trigger",1),M(1,"mat-icon",2),L(),E(2,PMb,3,4,"ng-template",null,0,Og));a&2&&(a=Q(3),I("xapInlineDialogClick",a),Jf("aria-label",b.ariaLabel))},dependencies:[hK,H1,iz,MA,DD,CD,NK,GD],styles:["xap-dialog-layout[_ngcontent-%COMP%] { padding: 16px; }","xap-dialog-layout-content[_ngcontent-%COMP%] { padding: 0; }"]});var J1=function(){this.location=q(US);this.analytics=q(PO);this.paths=q(wV);this.sidebar=q(C1);this.bookmarkGroups=[]};J1.prototype.handleBookmarkGroupOpen=function(a){this.analytics.trackEvent("sidebarBookmarkGroups","open");this.location.setUrl(this.paths.viewBookmarkGroup(a))};J1.prototype.handleBookmarkGroupDashboard=function(a){this.analytics.trackEvent("sidebarBookmarkGroups","dashboard");this.location.setUrl(this.paths.dashboard(a))};J1.prototype.editBookmarkGroup=function(a){this.location.setUrl(this.paths.editBookmarkGroup(a))};
J1.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};J1.\u0275fac=function(a){return new (a||J1)};
J1.\u0275cmp=C({type:J1,selectors:[["sidebar-bookmark-groups"]],inputs:{bookmarkGroups:"bookmarkGroups"},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&&(K(0,"div",6),M(1,"hr"),K(2,"sidebar-zippy",7),E(3,QMb,3,1,"ng-template",null,0,Og)(5,eNb,1,1,"ng-template",null,1,Og),L()());if(a&2){a=Q(4);var b=Q(6);B(2);I("header",a)("content",b)}},dependencies:[ZA,XA,VA,OJ,NJ,LF,JF,KF,OF,I1,iz,E1],encapsulation:2,changeDetection:0});var K1=function(){LO.call(this);var a=this;this.location=q(US);this.activeSession=q(Zu);this.analytics=q(PO);this.sidebar=q(C1);this.paths=q(wV);this.routerEvents=q(OO);this.cdr=q(Yx);this.mcPrefs=q(w0);this.ENABLE_MISSION_CONTROL=this.activeSession.isInternalSession();this.userEmail=this.activeSession.getUserEmail();this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(function(){a.cdr.detectChanges()}))};Z(K1,LO);K1.\u0275dir=LO.\u0275dir;K1.prototype.getUserEmail=function(){return this.userEmail};
K1.prototype.openEditHotlist=function(a){this.location.setUrl(zs.editHotlist.makeHref(a))};K1.prototype.addToMissionControl=function(a){this.mcPrefs.addHotlist(a);this.location.setUrl(this.paths.home())};K1.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};K1.\u0275fac=function(a){return new (a||K1)};
K1.\u0275cmp=C({type:K1,selectors:[["sidebar-hotlists"]],inputs:{hotlists:"hotlists"},features:[Ff],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&&(K(0,"div",3),M(1,"hr"),
K(2,"sidebar-zippy",4),E(3,fNb,3,1,"ng-template",null,0,Og)(5,nNb,1,1,"ng-template",null,1,Og),L()());if(a&2){a=Q(4);var b=Q(6);B(2);I("header",a)("content",b)}},dependencies:[ZA,XA,VA,OJ,NJ,LF,JF,KF,OF,I1,iz,E1],encapsulation:2,changeDetection:0});var L1=function(){LO.call(this);var a=this;this.cdr=q(MO,{self:!0});this.location=q(US);this.savedSearchApi=q(XN);this.paths=q(wV);this.butterBar=q(JM);this.analytics=q(PO);this.sidebar=q(C1);this.errorHandler=q(ZM);this.routerEvents=q(OO);this.confirmationDialogService=q(PQ);this.appEvents=q(DN);this.mcPrefs=q(w0);this.activeSession=q(Zu);this.ENABLE_MISSION_CONTROL=this.activeSession.isInternalSession();this.searches=[];this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(function(){a.cdr.detectChanges()}))};
Z(L1,LO);L1.\u0275dir=LO.\u0275dir;L1.prototype.openEditSavedSearch=function(a){this.location.setUrl(this.paths.editSavedSearch(a))};L1.prototype.addToMissionControl=function(a){wRd(this.mcPrefs,HAb(a));this.location.setUrl(this.paths.home())};
var rNb=function(a,b){a.confirmationDialogService.open({title:"Deleting saved search: "+b.name,content:Dh("Are you sure you want to delete this search?"),isDestructive:!0,onConfirm:function(){vUd(a,b)}})},vUd=function(a,b){var c=b.id;fs(a.butterBar,'Deleting saved search "'+b.name+'"...');a.savedSearchApi.delete(c).then(function(){a.appEvents.savedSearchModified.next({savedSearchId:c,action:"delete"});fs(a.butterBar,'Deleted saved search "'+b.name+'".');a.analytics.trackEvent("sidebarSavedSearches",
"deleted");a.cdr.detectChanges()}).catch(function(d){a.errorHandler.errorHandler(null,d)})};L1.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};L1.\u0275fac=function(a){return new (a||L1)};
L1.\u0275cmp=C({type:L1,selectors:[["sidebar-saved-searches"]],inputs:{searches:"searches"},features:[Ig([MO]),Ff],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&&(K(0,"div",3),M(1,"hr"),K(2,"sidebar-zippy",4),E(3,oNb,2,0,"ng-template",null,0,Og)(5,vNb,1,1,"ng-template",null,1,Og),
L()());if(a&2){a=Q(4);var b=Q(6);B(2);I("header",a)("content",b)}},dependencies:[ZA,XA,VA,OJ,NJ,LF,JF,KF,OF,iz,E1],encapsulation:2,changeDetection:0});var wUd=function(){};wUd.\u0275fac=function(a){return new (a||wUd)};
wUd.\u0275cmp=C({type:wUd,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 M1=function(){this._ngZone=q(Tg);this._elementRef=q(Gd);this._ariaDescriber=q(Ez);this._renderer=q(ji);this._animationsDisabled=ti();this._idGenerator=q(hi);this._color="primary";this.overlap=!0;this.position="above after";this.size="medium";this._isInitialized=!1;this._interactivityChecker=q(pz);this._document=q(Yh);var a=q(fi);a.load(wUd);a.load(gz)};h=M1.prototype;
h.ngOnInit=function(){this._clearExistingBadges();this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content));this._isInitialized=!0};h.ngOnDestroy=function(){if(this._renderer.destroyNode){this._renderer.destroyNode(this._badgeElement);var a;(a=this._inlineBadgeDescription)==null||a.remove()}Gz(this._ariaDescriber,this._elementRef.nativeElement,this.description)};
h._isHostInteractive=function(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})};
h._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};h._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};
h._updateDescription=function(a){Gz(this._ariaDescriber,this._elementRef.nativeElement,this.description);a&&!this._isHostInteractive()||this._removeInlineDescription();this._description=a;this._isHostInteractive()?Fz(this._ariaDescriber,this._elementRef.nativeElement,a):this._updateInlineDescription()};
h._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)};h._removeInlineDescription=function(){var a;(a=this._inlineBadgeDescription)==null||a.remove();this._inlineBadgeDescription=void 0};
h._setColor=function(a){var b=this._elementRef.nativeElement.classList;b.remove("mat-badge-"+this._color);a&&b.add("mat-badge-"+a)};h._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()};
da.Object.defineProperties(M1.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)}}});M1.\u0275fac=function(a){return new (a||M1)};
M1.\u0275dir=af({type:M1,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(a,b){a&2&&yg("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",bh],disabled:[2,"matBadgeDisabled","disabled",bh],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",bh]}});var xUd=function(){};xUd.\u0275fac=function(a){return new (a||xUd)};xUd.\u0275mod=$e({type:xUd});xUd.\u0275inj=Dc({imports:[Dz,jz]});var N1=function(){var a=this;this.cdr=q(MO,{self:!0});this.activeSession=q(Zu);this.butterBar=q(JM);this.appSearchState=q(gS);this.paths=q(wV);this.userPreferencesManager=q(VP);this.sidebar=q(C1);this.location=q(oi);this.appEvents=q(DN);this.missionControlPrefs=q(w0);this.needsAttentionTaskFridge=q(lP);this.bLocation=q(US);this.ROUTES=zs;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:Mwd(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:Owd(this.userEmail)});this.reportedPath=this.paths.listIssues({q:"reporter:"+this.userEmail});this.componentsPath=zs.listComponents.makeHref();
this.createBookmarkGroupPath=this.paths.createBookmarkGroup();this.missionControlPath=this.paths.home();this.sidebarData=this.sidebar.sidebarData;this.enableTriageView=this.activeSession.getFlag("enableTeamScope")&&this.activeSession.isInternalSession();this.enableHomepage=!this.activeSession.isAnonymous();this.paths.listIssues({q:"vote:true"});this.homepagePreferences$=this.userPreferencesManager.preferences$.pipe(A(function(d){return(d||BM).homepagePreferences}));this.hasPreferredHomepage$=this.homepagePreferences$.pipe(A(function(d){return!(!d||
!d.resourceType)}),of());this.isHomepageMissionControl$=this.homepagePreferences$.pipe(A(function(d){return d.resourceType==="MISSION_CONTROL"}),of());this.isHomepageAssignedToMe$=this.homepagePreferences$.pipe(A(function(d){return!a.enableHomepage&&!d.resourceType||d.resourceType==="ASSIGNED_TO_ME"}),of());this.hideBadgeInNav$=this.userPreferencesManager.preferences$.pipe(A(function(d){var e;return d==null?void 0:(e=d.missionControlPreferences)==null?void 0:e.hideBadgeInNav}),A(Boolean));this.destroyed$=
new KO;var b,c=!!this.location.path().match(/^\/home\b/)&&!((b=this.missionControlPrefs.prefs.collapsed)==null?0:b["needs-attention-wrapper"]);this.activeSession.getFlag("runQueryForSidebarIssueCount")&&setTimeout(function(){a.enableHomepage&&!c&&he([a.missionControlPrefs.needsAttentionTimeBoundary$,a.missionControlPrefs.needsAttentionSources$,a.missionControlPrefs.needsAttentionFilteredSignals$]).pipe(of(function(d,e){return Gm(d,e)}),zf(function(d){var e=l(d);d=e.next().value;var f=e.next().value;
e=e.next().value;f=f.map(function(g){return Fr(g)});return a.needsAttentionTaskFridge.watchMany({maxTaskAgeDays:d,sources:f,signalFilter:0,filterSignals:e})}),A(function(d){return d.results.length}),Af(a.destroyed$)).subscribe(function(d){a.appEvents.missionControlTaskCount.next(d)})},1E3)};N1.prototype.ngOnInit=function(){var a=this;this.hasPreferredHomepage$.pipe(Af(this.destroyed$)).subscribe(function(){setTimeout(function(){a.cdr.detectChanges()})})};N1.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var zNb=function(a,b){fs(a.butterBar,"Updating homepage...",0);zqd(a.userPreferencesManager,{resourceType:b}).subscribe(function(){fs(a.butterBar,"Homepage updated")})};N1.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};N1.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)};N1.prototype.goToTriageSettingsPage=function(){this.bLocation.setUrl(zs.triageSettings.makeHref())};
N1.\u0275fac=function(a){return new (a||N1)};
N1.\u0275cmp=C({type:N1,selectors:[["b-sidebar"]],features:[Ig([MO])],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=t();K(0,"div",2);M(1,
"b-create-issue-button");L();K(2,"div",3)(3,"div",4)(4,"ul",5);F(5,BNb,12,11,"li",6);K(6,"li",7)(7,"a",8);N("click",function(d){u(c);return v(b.onAnchorClick(b.assignedPath,d))});M(8,"mat-icon",9);S(9," Assigned to me ");L();F(10,CNb,2,1,"button",10);U(11,"async");K(12,"mat-menu",null,0);E(14,DNb,2,0,"ng-template",11);L()();K(15,"li")(16,"a",8);N("click",function(d){u(c);return v(b.onAnchorClick(b.starredPath,d))});M(17,"mat-icon",12);S(18," Starred by me ");L()();K(19,"li")(20,"a",8);N("click",function(d){u(c);
return v(b.onAnchorClick(b.ccdPath,d))});M(21,"mat-icon",13);S(22," CC'd to me ");L()();K(23,"li")(24,"a",8);N("click",function(d){u(c);return v(b.onAnchorClick(b.collaborateOnPath,d))});M(25,"mat-icon",13);S(26," Collaborating ");L()();K(27,"li")(28,"a",8);N("click",function(d){u(c);return v(b.onAnchorClick(b.reportedPath,d))});M(29,"mat-icon",14);S(30," Reported by me ");L()();K(31,"li")(32,"a",8);N("click",function(d){u(c);return v(b.onAnchorClick(b.verifiedPath,d))});M(33,"mat-icon",15);S(34,
" To be verified ");L()()();F(35,ENb,1,0,"nav-sidebar-triage");M(36,"sidebar-bookmark-groups",16)(37,"sidebar-saved-searches",17)(38,"sidebar-hotlists",18)(39,"sidebar-archived",19)(40,"hr");K(41,"div",20)(42,"a",21);S(43," Create hotlist ");L()();K(44,"div",20)(45,"a",21);S(46," Create bookmark group ");L()();K(47,"div",20)(48,"a",21);S(49," Browse components ");L()()()()}a&2&&(B(5),G(b.enableHomepage?5:-1),B(),yg("selected",Nwd(b.appSearchState,b.userEmail)),B(),I("href",b.assignedPath,Me),B(3),
G(W(11,29,b.isHomepageAssignedToMe$)?-1:10),B(5),yg("selected",b.appSearchState.isStarred()),B(),I("href",b.starredPath,Me),B(3),yg("selected",b.appSearchState.currentQuery==="cc:"+b.userEmail),B(),I("href",b.ccdPath,Me),B(3),yg("selected",b.appSearchState.currentQuery==="collaborator:"+b.userEmail),B(),I("href",b.collaborateOnPath,Me),B(3),yg("selected",b.appSearchState.currentQuery==="reporter:"+b.userEmail),B(),I("href",b.reportedPath,Me),B(3),yg("selected",b.appSearchState.currentQuery===Owd(b.userEmail)),
B(),I("href",b.verifiedPath,Me),B(3),G(b.enableTriageView?35:-1),B(),I("bookmarkGroups",b.sidebarData.bookmarkGroups),B(),I("searches",b.sidebarData.userSearches),B(),I("hotlists",b.sidebarData.hotlists),B(),I("hotlists",b.sidebarData.archivedHotlists)("bookmarkGroups",b.sidebarData.archivedBookmarkGroups),B(3),I("href",b.ROUTES.createHotlist.makeHref(),Me),B(3),I("href",b.createBookmarkGroupPath,Me),B(3),I("href",b.componentsPath,Me))},dependencies:[A1,ZA,XA,VA,OJ,NJ,LF,JF,KF,OF,M1,iz,F1,G1,J1,K1,
L1,py],encapsulation:2});var yUd=function(){};yUd.\u0275fac=function(a){return new (a||yUd)};yUd.\u0275mod=$e({type:yUd});yUd.\u0275inj=Dc({imports:[FN]});var O1=function(){};O1.\u0275fac=function(a){return new (a||O1)};O1.\u0275mod=$e({type:O1});O1.\u0275inj=Dc({imports:[FN,yUd,q_,AK,XS,g1,QU,iK,mC,RU,lX,H1,I1]});var P1=function(){};P1.\u0275fac=function(a){return new (a||P1)};P1.\u0275mod=$e({type:P1});P1.\u0275inj=Dc({imports:[FN,iT,A1]});var Q1=function(){};Q1.\u0275fac=function(a){return new (a||Q1)};Q1.\u0275mod=$e({type:Q1});Q1.\u0275inj=Dc({imports:[P1,FN,O1,ZA,OJ,xUd,xZ,IF,YJ,F1,N1,G1,J1,K1,L1]});var zUd=function(){this.executor=q(RM)};zUd.\u0275fac=function(a){return new (a||zUd)};zUd.\u0275prov=Cc({token:zUd,factory:zUd.\u0275fac,providedIn:"root"});var R1=function(){LO.apply(this,arguments);this.dialogRef=q(dB);this.tosApi=q(zUd);this.ackChecked=!1};Z(R1,LO);R1.\u0275dir=LO.\u0275dir;R1.prototype.accept=function(){var a=this;this.tosApi.executor.post({url:"action/terms_ack",body:null,responseConstructor:null}).pipe(Af(this.destroyed$)).subscribe(function(){a.dialogRef.close()})};R1.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(R1)))(b||R1)}}();
R1.\u0275cmp=C({type:R1,selectors:[["b-terms-of-service-dialog"]],features:[Ff],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&&(K(0,"h1",0),S(1,"Google IssueTracker Terms of Service"),L(),K(2,"mat-dialog-content")(3,"div",1)(4,"mat-checkbox",2),Eg("ngModelChange",
function(c){Dg(b.ackChecked,c)||(b.ackChecked=c);return c}),L(),K(5,"span"),S(6," I acknowledge and agree to the "),K(7,"a",3),S(8,"Google Terms of Service"),L(),S(9," and the "),K(10,"a",4),S(11,"Google IssueTracker Conduct Policy"),L(),S(12,". "),L()()(),K(13,"mat-dialog-actions")(14,"button",5),N("click",function(){return b.accept()}),S(15," OK "),L()());a&2&&(B(4),Cg("ngModel",b.ackChecked),B(10),I("disabled",!b.ackChecked))},dependencies:[mC,PB,WB,ZA,XA,TA,PK,OK,wI,mB,lB,kB],styles:[".b-tos-content[_ngcontent-%COMP%]{padding-top:1em}.b-tos-content[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]{padding-right:8px}"]});var S1=function(){LO.apply(this,arguments);this.activeSession=q(Zu);this.matDialogService=q(gB)};Z(S1,LO);S1.\u0275dir=LO.\u0275dir;S1.prototype.ngOnInit=function(){this.activeSession.getMustAcknowledgeTerms()&&eB(this.matDialogService.open(R1,{width:"400px",disableClose:!0})).pipe(Af(this.destroyed$))};S1.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(S1)))(b||S1)}}();S1.\u0275cmp=C({type:S1,selectors:[["b-terms-of-service"]],features:[Ff],decls:0,vars:0,template:function(){},encapsulation:2});var AUd=function(){};AUd.\u0275fac=function(a){return new (a||AUd)};AUd.\u0275mod=$e({type:AUd});AUd.\u0275inj=Dc({imports:[mC,FN,ZA,PK,pB,R1]});var T1=function(){};T1.\u0275fac=function(a){return new (a||T1)};T1.\u0275mod=$e({type:T1});T1.\u0275inj=Dc({imports:[FN,AUd]});var U1=function(){LO.apply(this,arguments);this.routerEvents=q(OO);this.bLocation=q(US);this.history=[]};Z(U1,LO);U1.\u0275dir=LO.\u0275dir;U1.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()}))};U1.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()};U1.prototype.hasPreviousPage=function(){return this.history.length>1};
var V1=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("/")};U1.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(U1)))(b||U1)}}();U1.\u0275prov=Cc({token:U1,factory:U1.\u0275fac,providedIn:"root"});var BUd=function(){this.$window=q(ZP);this.activeSession=q(Zu);this.faviconUrl=this.defaultFaviconUrl=Bh("https://www.gstatic.com/buganizer/img/v4/favicon.png")},CUd=function(a){var b=a.$window.document.head.querySelector('link[rel="shortcut icon"]'),c=b==null?void 0:b.href;a.faviconUrl=c?Bh(c):a.defaultFaviconUrl;c=a.activeSession.getTracker();var d;if(c==null?0:(d=c.branding)==null?0:d.logoUrl){var e;a=Bh(c==null?void 0:(e=c.branding)==null?void 0:e.logoUrl)}else a=a.faviconUrl;e=a;b&&b.href!==
e.toString()&&(0,Lh.setLinkHrefAndRel)(b,e)};BUd.\u0275fac=function(a){return new (a||BUd)};BUd.\u0275prov=Cc({token:BUd,factory:BUd.\u0275fac,providedIn:"root"});var DUd=ajd("edited-ids"),EUd=Lo("edited-ids"),FUd=ajd("viewed-ids"),GUd=Lo("viewed-ids"),HUd=function(){this.appEvents=q(DN);this.stop$=new rf;this.edited=new vOd(50);this.viewed=new vOd(50)},IUd=function(a){yOd(a.viewed,GUd());yOd(a.edited,EUd());a.appEvents.issueViewed.pipe(Af(a.stop$)).subscribe(function(b){wOd(a.viewed,b);FUd(xOd(a.viewed))});a.appEvents.issueEdited.pipe(Af(a.stop$)).subscribe(function(b){wOd(a.edited,b);DUd(xOd(a.edited))})};HUd.\u0275fac=function(a){return new (a||HUd)};
HUd.\u0275prov=Cc({token:HUd,factory:HUd.\u0275fac,providedIn:"root"});var JUd=/^\s*[^:/?#]+:/i,KUd=/^#/i,W1=function(){var a=this;this.bLocation=q(US);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"))&&!JUd.test(c))if(KUd.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)}}};W1.prototype.install=function(){document.addEventListener("click",this.linkClickHandler)};W1.prototype.uninstall=function(){document.removeEventListener("click",this.linkClickHandler)};W1.\u0275fac=function(a){return new (a||W1)};W1.\u0275prov=Cc({token:W1,factory:W1.\u0275fac,providedIn:"root"});var LUd=[],MUd=!1,NUd=function(){this.destroyRef=q(Be);this.hatsService=q(oX);this.iconRegistry=q(hz);this.session=q(Zu);this.appHistory=q(U1);this.routePerformance=q(N0);this.linkClickHandler=q(W1);this.issueLru=q(HUd);this.faviconService=q(BUd);this.imageUrls=q(LV);this.ngZone=q(Tg);this.peoplekitService=q(jV)},OUd=function(a){MUd||(a.iconRegistry._addSvgIconSetConfig("",new hGc(a.imageUrls.ICON_URL,null)),MUd=!0);if(a.session.isInternalSession()){kFd(a.hatsService,"Y4qgAGETM0g6pPHSLo10T83aMF4T").pipe(mf(1),
oj(a.destroyRef)).subscribe();for(var b=l(LUd),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.hatsTriggerId;a.session.getFlag(c.flagName)&&kFd(a.hatsService,d).pipe(mf(1),oj(a.destroyRef)).subscribe()}}a.appHistory.install();a.routePerformance.install();a.linkClickHandler.install();a.destroyRef.onDestroy(function(){a.linkClickHandler.uninstall()});IUd(a.issueLru);CUd(a.faviconService);a.ngZone.runOutsideAngular(function(){a.peoplekitService.peopleStore.warmUpCache()})};
NUd.\u0275fac=function(a){return new (a||NUd)};NUd.\u0275prov=Cc({token:NUd,factory:NUd.\u0275fac,providedIn:"root"});var HNb=0;var PUd=pXa("blinkers-activated"),QUd=Ko("blinkers-activated"),RUd=Ko("log-xhrs-to-console"),SUd=pXa("log-xhrs-to-console"),TUd=INb("debug-dom-mutation","var(--c400)"),UUd=INb("debug-ng-zone","var(--red-400)"),VUd=INb("debug-xhr","var(--green-500)",1200),WUd=function(a,b,c){b=b===void 0?"#ccc":b;c=c===void 0?400:c;HNb++;var d=156;d+=(HNb-1)*12;return function(e,f){f=f===void 0?b:f;var g,k=(g=document.getElementById(a))!=null?g:FNb(a,d);k.style.transition="opacity "+c+"ms";k.style.backgroundColor=
f;k.style.opacity=e?"1":"0"}}("active-user","var(--yellow-500)"),X1=function(){var a=this;this.activityMonitor=q(JO);this.userActivity=q(NO);this.destroyed$=new rf;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=!RUd(),SUd(b),b?XUd(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()&&YUd(this)};X1.prototype.ngOnDestroy=function(){ZUd(this)};X1.prototype.isEnabled=function(){return QUd()};X1.prototype.enable=function(){this.isEnabled()||(PUd(!0),YUd(this))};X1.prototype.disable=function(){PUd(!1);ZUd(this)};
var YUd=function(a){a.activityMonitor.dom$.pipe(Af(a.destroyed$)).subscribe(function(){return void TUd()});fnd(a.activityMonitor);a.activityMonitor.cdr$.pipe(Af(a.destroyed$)).subscribe(function(){return void UUd()});a.activityMonitor.xhr$.pipe(Af(a.destroyed$)).subscribe(function(){VUd();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(Af(a.destroyed$)).subscribe(function(b){return void WUd(b)});
document.addEventListener("click",a.onAnyClick);RUd()&&XUd(a)},ZUd=function(a){a.destroyed$.next();a.activityMonitor.domObserver.disconnect();document.removeEventListener("click",a.onAnyClick)},XUd=function(a){clearInterval(a.loggingInterval);a.loggingInterval=setInterval(a.printXhrLog,1E3)};X1.\u0275fac=function(a){return new (a||X1)};X1.\u0275prov=Cc({token:X1,factory:X1.\u0275fac,providedIn:"root"});var Y1=function(){this.activeSession=q(Zu);this.email=this.activeSession.getUserEmail();this.user=Sm(this.activeSession.getUserEmail())};Y1.\u0275fac=function(a){return new (a||Y1)};Y1.\u0275prov=Cc({token:Y1,factory:Y1.\u0275fac,providedIn:"root"});var Z1=function(){var a=this;this.activeSession=q(Zu);this.appEvents=q(DN);this.ngZone=q(Tg);this.window=q(ZP);this.buganizerBlinkers=q(X1);this.currentUser=q(Y1);this.routeParamsService=q(JP);this.userPreferencesManager=q(VP);this.router=q(CF);this.issueFullFridge=q(RO);this.eventsForIssueFridge=q(vO);this.starredTeamsService=q(HQ);this.teamsService=q(BP);this.fridges=[q(eN),q(jN),q(mN),q(pN),q(uN),q(AN),q(GN),q(ZN),q(dO),q(eO),q(vO),q(xO),q(yO),q(UN),q(CO),q(GO),q(RO),q(TO),q(XO),q(kP),q(lP),q(mP),
q(pP),q(uP),q(YN),q(xP),q(EP),q(FP),q(GP),q(IP)];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.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 UNb(b,d)}};
Z1.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:dnd,activeSession:this.activeSession,teamsService:this.teamsService,blinkers:this.buganizerBlinkers.publicApi,toggleDebugLogging:bjd("debug-logging"),toggleOptOutExperiments:bjd("opt-out-experiments"),currentUser:this.currentUser,userPreferencesManager:this.userPreferencesManager,setFlagOverrideForOneDay:wXa,
clearFlagOverride:xXa,clearAllFlagOverrides:tXa,getCurrentIssueAsText:this.getCurrentIssueAsText,printCurrentIssueAsText:function(){var c=a.getCurrentIssueAsText();console.log(c)},get initialSession(){return po()},get initialPrefs(){return po().userPreferences},get currentPrefs(){return WP(b.userPreferencesManager)},get currentIssue(){return b.getCurrentIssue()},get currentIssueEvents(){return b.getCurrentIssueEvents()},get flags(){return Object.fromEntries(Xid.map(function(c){return[c,b.activeSession.getFlag(c)]}))},
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 Zjd=!Zjd},setTrackerOverride:function(c){XNb(String(c),1)},clearTrackerOverride:function(){XNb("")},resetTriageStars:function(){return a.starredTeamsService.reset()},
getTeamExperiments:function(c){return Kpd(a.teamsService,c)},updateTeamExperiments:function(c){return Lpd(a.teamsService,c)}})}};Z1.\u0275fac=function(a){return new (a||Z1)};Z1.\u0275prov=Cc({token:Z1,factory:Z1.\u0275fac,providedIn:"root"});var a2=function(){var a=this;this.activatedRoute=q(Wj);this.router=q(CF);this.hideAppChrome=ah.apply(null,[function(){if(a.router.lastSuccessfulNavigation()!==null){var b,c=(b=a.activatedRoute.snapshot.firstChild)==null?void 0:b.routeConfig;return!(!c||!c.hideAppChrome)}}].concat(n([])))};a2.\u0275fac=function(a){return new (a||a2)};a2.\u0275prov=Cc({token:a2,factory:a2.\u0275fac,providedIn:"root"});var $Ud=function(a){this.delegate_=a};$Ud.prototype.getDelegate=function(){return this.delegate_};var aVd=function(a){this.delegate_=a;this.target_=null};Z(aVd,$Ud);aVd.prototype.getType=function(){return this.getDelegate().xa};var bVd=function(a){this.delegate_=a};Z(bVd,$Ud);h=bVd.prototype;h.listen=function(a,b,c,d){var e=this;return this.getDelegate().za(a,function(f){return b.call(d||ra,new aVd(f,e))},c)};h.listenOnce=function(){throw Error("tg");};h.unlisten=function(){throw Error("tg");};h.unlistenByKey=function(){throw Error("tg");};h.dispatchEvent=function(){throw Error("tg");};h.removeAllListeners=function(){throw Error("tg");};h.getParentEventTarget=function(){throw Error("tg");};
h.fireListeners=function(){throw Error("tg");};h.getListener=function(){throw Error("tg");};h.hasListener=function(){throw Error("tg");};bVd.prototype[HLc]=!0;var cVd=function(a){this.delegate_=a};Z(cVd,bVd);cVd.prototype.getHeight=function(){return this.getDelegate().pa()};cVd.prototype.setPageTitle=function(){this.getDelegate().pb(void 0)};cVd.prototype.setBackgroundColor=function(a){this.getDelegate().pd(a)};var dVd=function(a,b){this.delegate_=a;this.wrapperConstructor_=b||null};Z(dVd,$Ud);dVd.prototype.then=function(a,b,c){var d;a&&(d=eVd(this,a));this.getDelegate().aa(d,b,c)};var eVd=function(a,b){var c=a.wrapperConstructor_;return c?function(d){b.call(this,new c(d))}:b};var b2=function(a){this.delegate_=a||gbar.a;this.gapiPromise_=this.barPromise_=null};Z(b2,$Ud);b2.prototype.getGapi=function(){this.gapiPromise_||(this.gapiPromise_=new dVd(this.getDelegate().bh()));return this.gapiPromise_};b2.getInstance=function(){var a="instance_";b2.instance_&&b2.hasOwnProperty(a)?a=b2.instance_:(a=new b2,b2.instance_=a);return a};
var fVd=function(){return new Promise(function(a){window.gbar||(window.gbar={});if(window.gbar.a)return a(b2.getInstance());(new Promise(function(b){window.gbar.ap=b})).then(function(){return a(b2.getInstance())})})};var c2=function(){LO.apply(this,arguments);this.router=q(CF);this.window=q(ZP)};Z(c2,LO);c2.\u0275dir=LO.\u0275dir;c2.prototype.start=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,fVd(),2);b=c.yieldResult;return c.return((new Promise(function(d,e){b.barPromise_||(b.barPromise_=new dVd(b.getDelegate().bf(),cVd));b.barPromise_.then(d,e)})).then(function(d){gVd(a,d)}))})};var gVd=function(a,b){a.router.events.pipe(te(u5a),Af(a.destroyed$)).subscribe(function(){b.getDelegate().pl(a.window.location.href)})};
c2.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(c2)))(b||c2)}}();c2.\u0275prov=Cc({token:c2,factory:c2.\u0275fac,providedIn:"root"});var d2=function(){LO.apply(this,arguments);var a=this;this.paramsService=q(JP);this.issueFullFridge=q(RO);this.eventsForIssueFridge=q(vO);this.handlers$=this.paramsService.routeParams$.pipe(of(Gm),zf(function(b){return a.onRouteParamsChanged(b)}));this.init=function(){a.subscriptions.add(a.handlers$.subscribe(function(){}))};this.initOnce=nXa(this.init)};Z(d2,LO);d2.\u0275dir=LO.\u0275dir;
d2.prototype.onRouteParamsChanged=function(a){var b=this,c,d;return y(function(e){if(e.nextAddress==1){c={trustUncertainMemory:!0};if(!a.issueId)return e.jumpTo(2);d=a.issueId;return z(e,Promise.all([b.issueFullFridge.poke(d,c),b.eventsForIssueFridge.poke(d,c)]),3)}return e.return()})};d2.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(d2)))(b||d2)}}();d2.\u0275prov=Cc({token:d2,factory:d2.\u0275fac,providedIn:"root"});var e2=function(){var a=q(OO);LO.call(this);var b=this;this.scrollTimingMap=new Map;a.routeChangeSuccess.pipe(Af(this.destroyed$)).subscribe(function(){b.scrollTimingMap.clear()})};Z(e2,LO);e2.\u0275dir=LO.\u0275dir;e2.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)};e2.\u0275fac=function(a){return new (a||e2)};
e2.\u0275prov=Cc({token:e2,factory:e2.\u0275fac,providedIn:"root"});var hVd=["leftSidebar"],iVd=function(){var a=this;this.hideAppChromeHelper=q(a2);this.renderer=q(ji);this.hideAppChrome=this.hideAppChromeHelper.hideAppChrome;df(function(){switch(a.hideAppChrome()){case !0:a.renderer.addClass(document.body,"hide-topbar");break;case !1:a.renderer.removeClass(document.body,"hide-topbar")}})};iVd.\u0275fac=function(a){return new (a||iVd)};
iVd.\u0275cmp=C({type:iVd,selectors:[["app-root"]],decls:3,vars:1,consts:[["role","main",1,"full-width","full-height"]],template:function(a,b){a&1&&F(0,YNb,2,0,"div",0)(1,ZNb,2,0,"div",0)(2,$Nb,0,0);if(a&2){var c;G((c=b.hideAppChrome())===!0?0:c===!1?1:2)}},dependencies:function(){return[f2,oF]},encapsulation:2});
var f2=function(){LO.call(this);var a=this;this.appInitializer=q(NUd);this.appSearchState=q(gS);this.appEvents=q(DN);this.performanceToClearcut=q(bnd);this.window=q(ZP);this.issueComments=q(dR);this.oneGoogleBar=q(c2);this.scrollTiming=q(e2);this.pageTitleUpdaterService=q(x1);this.pageLoadOptimizerService=q(d2);this.bedbugService=q(Z1);this.userActivity=q(NO);this.bLocation=q(US);this.reloadService=q(B1);this.activeSession=q(Zu);this.hotkeys=q(dT);this.paths=q(wV);this.userPrefs=q(VP);this.issuePagination=
q(v1);this.userFeedback=q(TY);this.matDialogService=q(gB);this.renderer=q(ji);this.densityClass="d-comfort";this.announcement=this.dismissedMessageId=null;this.sidebarWidth=220;this.isAnonymous=this.activeSession.isAnonymous();OUd(this.appInitializer);this.bedbugService.install();this.userActivity.install();cnd(this.performanceToClearcut);this.subscriptions.add(this.appEvents.onClickAppMenuIcon.subscribe(function(){var r;(r=a.leftSidebar)==null||r.toggle()}));this.renderer.addClass(document.body,
this.densityClass);this.userPrefs.themePreferences$.pipe(Af(this.destroyed$)).subscribe(function(r){r=fOb(r.density);r!==a.densityClass&&(a.renderer.addClass(document.body,r),a.renderer.removeClass(document.body,a.densityClass),a.densityClass=r)});this.subscriptions.add(Swd(this.appSearchState,function(r){a.doSearch(r)}));var b=[{keys:["/","F3"],displayAs:"/ or F3",description:"Search",onPress:function(){var r=document.querySelector(".search-box-container .search-box");r==null||r.focus();r==null||
r.select()}},{keys:[js("2"),Wab()],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:[ks("g","p")],displayAs:"g then p",description:"Go to your preferred homepage",onPress:function(){a.bLocation.setUrl("/")}},{keys:[ks("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:Mwd(this.activeSession.getUserEmail())}),e=this.paths.listIssues({q:"cc:"+this.activeSession.getUserEmail()}),f=this.paths.listIssues({q:Owd(this.activeSession.getUserEmail())}),g=this.paths.listIssues({q:"reporter:"+this.activeSession.getUserEmail()}),k=this.paths.listIssues({q:this.appSearchState.getStarred()}),m=this.paths.listIssues({q:"vote:true"});b.push({keys:[ks("g","a")],displayAs:"g then a",description:'Go to "Assigned to me"',onPress:function(){a.bLocation.setUrl(d)}},
{keys:[ks("g","c")],displayAs:"g then c",description:'Go to "CC\'d to me"',onPress:function(){a.bLocation.setUrl(e)}},{keys:[ks("g","r")],displayAs:"g then r",description:'Go to "Reported by me"',onPress:function(){a.bLocation.setUrl(g)}},{keys:[ks("g","s")],displayAs:"g then s",description:'Go to "Starred by me"',onPress:function(){a.bLocation.setUrl(k)}},{keys:[ks("g","1")],displayAs:"g then 1",description:'Go to "Upvoted by me"',onPress:function(){a.bLocation.setUrl(m)}},{keys:[ks("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:["?",Vab("F1")],displayAs:"? or Ctrl+F1",description:"Display the keyboard shortcuts pop-up",onPress:function(){a.matDialogService.open(r1,{minWidth:512})}});this.subscriptions.add(eT(this.hotkeys,{title:"General",
hotkeys:b}));this.announcement=this.activeSession.getAnnouncement();this.userPrefs.preferences$.pipe(mf(1),Af(this.destroyed$)).subscribe(function(r){a.dismissedMessageId=r.bannerMessageId||"";var w;a.sidebarWidth=((w=r.layoutPreferences)==null?void 0:w.leftSidebarWidth)||220});this.oneGoogleBar.start();P4a()&&(Omd!=null&&Omd.disconnect(),Omd=new Z4a.PerformanceObserver(d5a),Omd.observe({entryTypes:["measure"]}));setTimeout(WLb,6E4);this.scrollTiming.start();this.pageTitleUpdaterService.initOnce();
this.pageLoadOptimizerService.initOnce();this.window.emergencyBugjugglerWorkaround={session:this.activeSession,issueComments:this.issueComments}};Z(f2,LO);f2.\u0275dir=LO.\u0275dir;var dOb=function(a,b){var c;return y(function(d){if(d.nextAddress==1){if(b===a.sidebarWidth)return d.return();a.sidebarWidth=b;return z(d,ee(a.userPrefs.layoutPreferences$),2)}c=d.yieldResult;return z(d,ee(a.userPrefs.save({layoutPreferences:Object.assign({},c,{leftSidebarWidth:b})})),0)})};
f2.prototype.doSearch=function(a){a=this.paths.listIssues({q:a});var b=RBd(this.paths,a);KTd(this.issuePagination);b&&dUd(this.reloadService);this.bLocation.setUrl(a)};var aOb=function(a){a.announcement!==null&&(a.dismissedMessageId=a.announcement.messageId,a.userPrefs.save({bannerMessageId:a.dismissedMessageId}).pipe(mf(1),Af(a.destroyed$)).subscribe())};f2.prototype.startFeedback=function(){this.userFeedback.startFeedback()};f2.\u0275fac=function(a){return new (a||f2)};
f2.\u0275cmp=C({type:f2,selectors:[["app-root-body"]],viewQuery:function(a,b){a&1&&kg(hVd,5);if(a&2){var c;og(c=pg())&&(b.leftSidebar=c.first)}},features:[Ff],decls:10,vars:2,consts:[["leftSidebar",""],[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&&(M(0,"b-hiring-banner")(1,"b-terms-of-service"),F(2,cOb,4,2,"div",1),M(3,"b-sso-expired-callout-outlet"),K(4,"div",2),F(5,eOb,3,1,"b-resizable-sidebar",3),K(6,"div",4),M(7,"router-outlet"),L()(),M(8,"b-footer")(9,"bug-screensaver-manager"));if(a&2){B(2);var c;a=b.announcement;a=a===void 0?b.announcement:a;if((c=a)!=null&&c.message){var d;
c=((d=a.tags)==null?void 0:d.length)>0||!b.activeSession.getFlag("canSeeAnnouncementBanner")?!1:a.dismissible?b.dismissedMessageId==null?!1:a.messageId!==b.dismissedMessageId:!0}else c=!1;G(c?2:-1);B(3);G(b.isAnonymous?-1:5)}},dependencies:[$Td,aUd,yTd,lT,oF,N1,xTd,S1],encapsulation:2});var jVd=function(){};jVd.\u0275fac=function(a){return new (a||jVd)};jVd.\u0275mod=$e({type:jVd});jVd.\u0275inj=Dc({imports:[FN,z1,wT,bUd,ZA,q1,s1,oT,Q1,T1,iVd,f2,xTd]});var g2=function(){};g2.\u0275fac=function(a){return new (a||g2)};g2.\u0275mod=$e({type:g2});g2.\u0275inj=Dc({imports:[FN]});var kVd=function(){};kVd.\u0275fac=function(a){return new (a||kVd)};kVd.\u0275mod=$e({type:kVd});kVd.\u0275inj=Dc({imports:[FN,ZA,pB,fK,ZT,g2,aZ]});var h2=function(){};h2.\u0275fac=function(a){return new (a||h2)};h2.\u0275mod=$e({type:h2});h2.\u0275inj=Dc({imports:[yU,GU,ZA,FN,HT]});var i2=function(){};i2.\u0275fac=function(a){return new (a||i2)};i2.\u0275mod=$e({type:i2});i2.\u0275inj=Dc({imports:[FN,OJ,YJ,dK,xT,ZA,qC,PK,mC,h2,IT]});var lVd=function(){};lVd.\u0275fac=function(a){return new (a||lVd)};lVd.\u0275mod=$e({type:lVd});lVd.\u0275inj=Dc({imports:[FN,pB,WT,i2,mC,h2,ZA,iK,XT]});var mVd=function(){};mVd.\u0275fac=function(a){return new (a||mVd)};mVd.\u0275mod=$e({type:mVd});mVd.\u0275inj=Dc({imports:[FN,GU,PK,ZA,pB,aT,RW,sU,XS,vU,WY]});var nVd=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"]]),oVd=new Map([["ENABLED","Enabled"],["DISABLED","Disabled"]]),iOb=new Map([["BUGANIZER_DEFAULT","Default (10 years)"],["CUSTOM_PERIOD","Custom Period"],["INDEFINITE_RETENTION","Indefinite"]]),jOb=new Map([["BUGANIZER_DEFAULT",
"Default (60 days)"],["CUSTOM_PERIOD","Custom Period"],["INDEFINITE_RETENTION","Match Issue Retention"]]),pVd=function(){this.$log=q(XM);this.activeSession=q(Zu);this.sessionIsInternal=this.activeSession.isInternalSession()};pVd.\u0275fac=function(a){return new (a||pVd)};pVd.\u0275prov=Cc({token:pVd,factory:pVd.\u0275fac,providedIn:"root"});var lOb=new Map([["SLO_SOURCE_UNSPECIFIED","--"],["USER","User"],["BUGSCOPE","Bugscope"]]);var qVd=new bd("GM2_PAGINATOR_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var rVd=function(a){this.options=a;if(a.disableGmatStyle)throw Error("eb");};rVd.\u0275fac=function(a){return new (a||rVd)(Ve(qVd))};rVd.\u0275dir=af({type:rVd,selectors:[["mat-paginator"]],hostAttrs:[1,"gmat-mdc-paginator"],standalone:!1});var sVd=function(){this.changes=new rf;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}};sVd.\u0275fac=function(a){return new (a||sVd)};sVd.\u0275prov=Cc({token:sVd,factory:sVd.\u0275fac,providedIn:"root"});var tVd=new bd("MAT_PAGINATOR_DEFAULT_OPTIONS"),j2=function(){var a=this;this._intl=q(sVd);this._changeDetectorRef=q(Yx);this._pageSizeLabelId=q(hi).getId("mat-paginator-page-size-label-");this._isInitialized=!1;this._initializedStream=new vf(1);this._length=this._pageIndex=0;this._pageSizeOptions=[];this.showFirstLastButtons=this.hidePageSize=!1;this.selectConfig={};this.disabled=!1;this.page=new ui;this.initialized=this._initializedStream;var b=this._intl,c=q(tVd,{optional:!0});this._intlChanges=
b.changes.subscribe(function(){return a._changeDetectorRef.markForCheck()});if(c){var d=c.pageSize,e=c.pageSizeOptions,f=c.hidePageSize,g=c.showFirstLastButtons;d!=null&&(this._pageSize=d);e!=null&&(this._pageSizeOptions=e);f!=null&&(this.hidePageSize=f);g!=null&&(this.showFirstLastButtons=g)}this._formFieldAppearance=(c==null?void 0:c.formFieldAppearance)||"outline"};h=j2.prototype;h.ngOnInit=function(){this._isInitialized=!0;this._updateDisplayedPageSizeOptions();this._initializedStream.next()};
h.ngOnDestroy=function(){this._initializedStream.complete();this._intlChanges.unsubscribe()};h.nextPage=function(){this.hasNextPage()&&this._navigate(this.pageIndex+1)};h.hasPreviousPage=function(){return this.pageIndex>=1&&this.pageSize!=0};h.hasNextPage=function(){return this.pageIndex<(this.pageSize?Math.ceil(this.length/this.pageSize):0)-1&&this.pageSize!=0};h._changePageSize=function(a){var b=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/a)||0;this.pageSize=a;this._emitPageEvent(b)};
h._nextButtonsDisabled=function(){return this.disabled||!this.hasNextPage()};h._previousButtonsDisabled=function(){return this.disabled||!this.hasPreviousPage()};
h._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())};
h._emitPageEvent=function(a){this.page.emit({previousPageIndex:a,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})};h._navigate=function(a){var b=this.pageIndex;a!==b&&(this.pageIndex=a,this._emitPageEvent(b))};h._buttonClicked=function(a,b){b||this._navigate(a)};
da.Object.defineProperties(j2.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 ch(b,0)});this._updateDisplayedPageSizeOptions()}}});j2.\u0275fac=function(a){return new (a||j2)};
j2.\u0275cmp=C({type:j2,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ch],length:[2,"length","length",ch],pageSize:[2,"pageSize","pageSize",ch],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",bh],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",bh],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",bh]},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-atomic","true","aria-live","polite","role","status",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"],["aria-hidden","true",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&&(K(0,"div",1)(1,"div",2),F(2,rOb,5,4,"div",3),K(3,"div",4)(4,"div",5),S(5),L(),F(6,sOb,3,5,"button",6),K(7,"button",7),N("click",function(){return b._buttonClicked(b.pageIndex-1,b._previousButtonsDisabled())}),yd(),K(8,"svg",8),M(9,"path",9),L()(),zd(),K(10,"button",10),N("click",function(){return b._buttonClicked(b.pageIndex+1,b._nextButtonsDisabled())}),yd(),K(11,"svg",8),M(12,
"path",11),L()(),F(13,tOb,3,5,"button",12),L()()());a&2&&(B(2),G(b.hidePageSize?-1:2),B(3),T(" ",b._intl.getRangeLabel(b.pageIndex,b.pageSize,b.length)," "),B(),G(b.showFirstLastButtons?6:-1),B(),I("matTooltip",b._intl.previousPageLabel)("matTooltipDisabled",b._previousButtonsDisabled())("disabled",b._previousButtonsDisabled())("tabindex",b._previousButtonsDisabled()?-1:null),Jf("aria-label",b._intl.previousPageLabel),B(3),I("matTooltip",b._intl.nextPageLabel)("matTooltipDisabled",b._nextButtonsDisabled())("disabled",
b._nextButtonsDisabled())("tabindex",b._nextButtonsDisabled()?-1:null),Jf("aria-label",b._intl.nextPageLabel),B(3),G(b.showFirstLastButtons?13:-1))},dependencies:[BB,hI,GA,VA,MA],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:var(--mat-paginator-page-size-select-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:var(--mat-paginator-page-size-select-width, 84px);height:var(--mat-paginator-page-size-select-touch-target-height, 48px);background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}\n"],
encapsulation:2,changeDetection:0});var uVd=function(){};uVd.\u0275fac=function(a){return new (a||uVd)};uVd.\u0275mod=$e({type:uVd});uVd.\u0275inj=Dc({imports:[WA,jI,NA,j2]});var k2=function(){};k2.\u0275fac=function(a){return new (a||k2)};k2.\u0275mod=$e({type:k2});k2.\u0275inj=Dc({providers:[dyd],imports:[uVd]});var l2=function(){this.paths=q(wV);this.ROUTES=zs;this.children=[];this.onVisit=new KO;this.pageSize=25;this.pageSizeOptions=[10,25,100];this.childrenOnPage=[]};l2.prototype.ngOnInit=function(){this.childrenOnPage=this.children.slice(0,this.pageSize)};l2.\u0275fac=function(a){return new (a||l2)};
l2.\u0275cmp=C({type:l2,selectors:[["b-component-children-list"]],inputs:{children:"children"},outputs:{onVisit:"onVisit"},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&&(F(0,uOb,1,3,"mat-paginator",1),K(1,"ul",2),Pf(2,vOb,6,4,"li",null,Of),L());a&2&&(G(b.children.length>
b.pageSize?0:-1),B(2),Qf(b.childrenOnPage))},dependencies:[GV,k2,rVd,j2,AK,uK,zK],encapsulation:2});var m2=function(){};m2.\u0275fac=function(a){return new (a||m2)};m2.\u0275mod=$e({type:m2});m2.\u0275inj=Dc({imports:[FN,AK,T_,k2,l2]});var n2=function(){this.shouldShowCopyIssueShortLinks=!1;this.shortLinkPrefix="b/";this.onClickCopyIssueIds=new KO;this.onClickCopyIssueShortLinks=new KO;this.onClickCopyAsIssueSearch=new KO};n2.\u0275fac=function(a){return new (a||n2)};
n2.\u0275cmp=C({type:n2,selectors:[["b-copy-issue-id-button"]],inputs:{shouldShowCopyIssueShortLinks:"shouldShowCopyIssueShortLinks",shortLinkPrefix:"shortLinkPrefix"},outputs:{onClickCopyIssueIds:"onClickCopyIssueIds",onClickCopyIssueShortLinks:"onClickCopyIssueShortLinks",onClickCopyAsIssueSearch:"onClickCopyAsIssueSearch"},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=t();K(0,"b-button-group")(1,"button",1);N("click",function(){u(c);return v(b.onClickCopyIssueIds.emit())});M(2,"b-icon",2);L();K(3,"button",3);M(4,"b-icon",4);L();K(5,"mat-menu",null,0);F(7,wOb,2,1,"button",5);
K(8,"button",6);N("click",function(){u(c);return v(b.onClickCopyAsIssueSearch.emit())});S(9," Copy as issue search ");L()()()}a&2&&(a=Q(6),B(3),I("matMenuTriggerFor",a),B(4),G(b.shouldShowCopyIssueShortLinks?7:-1))},dependencies:[sTd,ZA,XA,TA,OJ,NJ,LF,JF,OF,hS],encapsulation:2,changeDetection:0});MJa(OJa(NJa(function(a){this._elementRef=a})));n(["disabled","disableRipple","color","tabIndex"]);var vVd=function(){this.politeness="assertive";this.announcementMessage="";this.duration=0;this.data=null;this.horizontalPosition="center";this.verticalPosition="bottom"};var wVd=function(a,b){var c=this;this._overlayRef=b;this._afterDismissed=new rf;this._afterOpened=new rf;this._onAction=new rf;this._dismissedByAction=!1;this.containerInstance=a;a._onExit.subscribe(function(){return c._finishDismiss()})};h=wVd.prototype;h.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit();clearTimeout(this._durationTimeoutId)};
h.dismissWithAction=function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss());clearTimeout(this._durationTimeoutId)};h._dismissAfter=function(a){var b=this;this._durationTimeoutId=setTimeout(function(){return b.dismiss()},Math.min(a,2147483647))};h._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())};
h._finishDismiss=function(){this._overlayRef.dispose();this._onAction.closed||this._onAction.complete();this._afterDismissed.next({dismissedByAction:this._dismissedByAction});this._afterDismissed.complete();this._dismissedByAction=!1};h.afterDismissed=function(){return this._afterDismissed};h.afterOpened=function(){return this.containerInstance._onEnter};h.onAction=function(){return this._onAction};var xVd=twa("state",[rj("void, hidden",qj({transform:"scale(0.8)",opacity:0})),rj("visible",qj({transform:"scale(1)",opacity:1})),sj("* => visible",pj("150ms cubic-bezier(0, 0, 0.2, 1)")),sj("* => void, * => hidden",pj("75ms cubic-bezier(0.4, 0.0, 1, 1)",qj({opacity:0})))]);var yVd=0,o2=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=q(Yh);this._trackedModals=new Set;this._announceDelay=150;this._destroyed=!1;this._onAnnounce=new rf;this._onExit=new rf;this._onEnter=new rf;this._animationState="void";this._liveElementId="mat-snack-bar-container-live-"+yVd++;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"))};Z(o2,nA);h=o2.prototype;h.attachComponentPortal=function(a){a=this._portalOutlet.attachComponentPortal(a);this._afterPortalAttached();return a};h.attachTemplatePortal=function(a){a=this._portalOutlet.attachTemplatePortal(a);this._afterPortalAttached();return a};
h.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()})}};h.enter=function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())};
h.exit=function(){var a=this;this._ngZone.run(function(){a._animationState="hidden";a._elementRef.nativeElement.setAttribute("mat-exit","");clearTimeout(a._announceTimeoutId)});return this._onExit};h.ngOnDestroy=function(){this._destroyed=!0;this._clearFromModals();this._completeExit()};h._completeExit=function(){var a=this;this._ngZone.onMicrotaskEmpty.pipe(mf(1)).subscribe(function(){a._ngZone.run(function(){a._onExit.next();a._onExit.complete()})})};
h._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()};
h._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)}};
h._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()};h._assertNotAttached=function(){};
h._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)})};o2.\u0275fac=function(a){return new (a||o2)(Ve(Tg),Ve(Gd),Ve(Yx),Ve(bi),Ve(vVd))};o2.\u0275dir=af({type:o2,viewQuery:function(a,b){a&1&&kg(pA,7);if(a&2){var c;og(c=pg())&&(b._portalOutlet=c.first)}},standalone:!1,features:[Ff]});var p2=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};h=p2.prototype;h.openFromComponent=function(a,b){return this._attach(a,b)};h.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)};
h.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()};h.ngOnDestroy=function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()};h._attachSnackBarContainer=function(a,b){var c=$g({parent:b&&b.viewContainerRef&&b.viewContainerRef.injector||this._injector,providers:[{provide:vVd,useValue:b}]});a=a.attach(new lA(this.snackBarContainerComponent,b.viewContainerRef,c));a.instance.snackBarConfig=b;return a.instance};
h._attach=function(a,b){var c=this,d=Object.assign({},new vVd,this._defaultConfig,b),e=this._createOverlay(d);b=this._attachSnackBarContainer(e,d);var f=new wVd(b,e);if(a instanceof hg)f.instance=b.attachTemplatePortal(new mA(a,null,{$implicit:d.data,snackBarRef:f}));else{var g=this._createInjector(d,f);a=b.attachComponentPortal(new lA(a,void 0,g));f.instance=a.instance}this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Af(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};
h._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)})};
h._createOverlay=function(a){var b=new ki;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"):hA(c);a.verticalPosition==="top"?c.top("0"):c.bottom("0");b.positionStrategy=c;return this._overlay.create(b)};
h._createInjector=function(a,b){return $g({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:wVd,useValue:b},{provide:HD,useValue:a.data}]})};da.Object.defineProperties(p2.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}}});
p2.\u0275fac=function(a){return new (a||p2)(Wc(rA),Wc(Cz),Wc(xe),Wc(wz),Wc(p2,12),Wc(JNc))};p2.\u0275prov=Cc({token:p2,factory:p2.\u0275fac});var q2=function(a,b){this.snackBarRef=a;this.data=b};q2.prototype.action=function(){this.snackBarRef.dismissWithAction()};da.Object.defineProperties(q2.prototype,{hasAction:{configurable:!0,enumerable:!0,get:function(){return!!this.data.action}}});q2.\u0275fac=function(a){return new (a||q2)(Ve(wVd),Ve(HD))};
q2.\u0275cmp=C({type:q2,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],hostVars:1,hostBindings:function(a){a&2&&Jf("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&&(K(0,"span",0),S(1),L(),E(2,xOb,3,1,"div",1));a&2&&(B(),Ag(b.data.message),B(),I("ngIf",b.hasAction))},dependencies:[jy,RI],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 r2=function(){o2.apply(this,arguments)};Z(r2,o2);r2.\u0275dir=o2.\u0275dir;r2.prototype._afterPortalAttached=function(){o2.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")};r2.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(r2)))(b||r2)}}();
r2.\u0275cmp=C({type:r2,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(a,b){a&1&&Pna("@state.done",function(c){return b.onAnimationEnd(c)});a&2&&(hna("@state",b._animationState),Jf("mat-id-collision",null))},standalone:!1,features:[Ff],decls:3,vars:3,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(a,b){a&1&&(K(0,"div",0),E(1,yOb,0,0,"ng-template",1),L(),M(2,"div"));a&2&&(B(2),Jf("aria-live",b._live)("role",b._role)("id",
b._liveElementId))},dependencies:[pA],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:[xVd]}});var s2=function(){};s2.\u0275fac=function(a){return new (a||s2)};s2.\u0275mod=$e({type:s2});s2.\u0275inj=Dc({imports:[uA,qA,xy,$I,jz]});var t2=function(a,b,c,d,e,f){p2.call(this,a,b,c,d,e,f);this.simpleSnackBarComponent=q2;this.snackBarContainerComponent=r2;this.handsetCssClass="mat-snack-bar-handset"};Z(t2,p2);t2.\u0275fac=function(a){return new (a||t2)(Wc(rA),Wc(Cz),Wc(xe),Wc(wz),Wc(t2,12),Wc(JNc))};t2.\u0275prov=Cc({token:t2,factory:t2.\u0275fac,providedIn:s2});var zVd={duration:1E3},AVd=new bd("xap-clipboard-snackbar-options"),BVd=function(a,b,c){this.clipboard=a;this.snackBar=b;this.snackBarConfig=c;this.textJob=""},CVd=function(a){var b,c,d,e;return y(function(f){if(f.nextAddress==1){b=Object.assign({},zVd,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 g=new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([c],{type:"text/plain"})});g=navigator.clipboard.write([g])}else g=Promise.resolve();return z(f,g,3)}a.snackBar.open("Copied to clipboard.",void 0,b);$d(f)})};
da.Object.defineProperties(BVd.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}}});BVd.\u0275fac=function(a){return new (a||BVd)(Ve(bQ),Ve(t2),Ve(AVd,8))};BVd.\u0275dir=af({type:BVd,selectors:[["","xapCopyToClipboard",""]],hostBindings:function(a,b){a&1&&N("click",function(){return CVd(b)})},inputs:{textJob:[0,"xapCopyToClipboard","textJob"]}});var DVd=function(){};DVd.prototype.getAriaLabel=function(){return this.ariaLabel?this.ariaLabel:this.ariaLabelledBy||this.ariaDescribedBy?null:"Copy content to clipboard"};DVd.\u0275fac=function(a){return new (a||DVd)};
DVd.\u0275cmp=C({type:DVd,selectors:[["xap-copy-button"]],hostAttrs:[1,"xap-copy-button"],hostVars:2,hostBindings:function(a,b){a&2&&yg("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&&(K(0,"button",0)(1,"mat-icon",1),S(2," content_copy "),L()());a&2&&(I("xapCopyToClipboard",b.copyText)("disabled",b.disabled)("color",b.color),Jf("tabindex",b.tabIndex)("aria-label",b.getAriaLabel())("aria-labelledby",b.ariaLabelledBy)("aria-describedby",b.ariaDescribedBy))},dependencies:[xy,$I,RI,kz,iz,s2,BVd],encapsulation:2,changeDetection:0});var EVd=function(){};EVd.\u0275fac=function(a){return new (a||EVd)};EVd.\u0275mod=$e({type:EVd});EVd.\u0275inj=Dc({imports:[DVd]});var u2=function(){};u2.\u0275fac=function(a){return new (a||u2)};u2.\u0275mod=$e({type:u2});u2.\u0275inj=Dc({imports:[FN,OJ,ZA,m1,xT,EVd,n2]});var FVd=function(){this.clipboard=q(bQ);this.analytics=q(PO);this.butterBar=q(JM);this.window=q(ZP);this.activeSession=q(Zu);this.shortLinkPrefix=Ms(this.activeSession)?"b/":"b-qa/"},$Pb=function(a,b){a.clipboard.copy(b.join(", "));fs(a.butterBar,"Issue IDs copied.",2E3);a.analytics.trackEvent("listIssues","copyIssueId","IDs")},aQb=function(a,b){a.clipboard.copy(b.map(function(c){return a.shortLinkPrefix+c}).join(", "));fs(a.butterBar,"'"+a.shortLinkPrefix+"' links copied.",2E3);a.analytics.trackEvent("listIssues",
"copyIssueId","b/ links")},bQb=function(a,b){b=zs.listIssues.makeHref({q:"id:("+b.join("|")+")"});a.clipboard.copy(a.window.location.origin+b);fs(a.butterBar,"Issue search link copied.",2E3);a.analytics.trackEvent("listIssues","copyIssueId","Issue search link")};FVd.\u0275fac=function(a){return new (a||FVd)};FVd.\u0275prov=Cc({token:FVd,factory:FVd.\u0275fac,providedIn:"root"});var v2=function(){};v2.\u0275fac=function(a){return new (a||v2)};v2.\u0275mod=$e({type:v2});v2.\u0275inj=Dc({imports:[FN,AK,T_,HV]});var GVd=function(){};GVd.\u0275fac=function(a){return new (a||GVd)};GVd.\u0275mod=$e({type:GVd});GVd.\u0275inj=Dc({imports:[FN,mC,ZA,kS,PK,pB,SW,XV,WV]});var w2=function(){this.componentActions=q(JV);this.errorHandler=q(ZM);this.cdr=q(MO)};w2.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 x2=function(a,b){a.selectedId&&HVd(a.selectedId);a.selectedId=b;if(a=IVd(a.selectedId))a.focus(),a.setAttribute("aria-selected","true")},JVd=function(a){if(!a.selectedId)return null;var b;return(b=a.components.find(function(c){return c.componentId===a.selectedId}))!=null?b:null},KVd=function(a){return a.selectedId?a.components.findIndex(function(b){return b.componentId===a.selectedId}):-1},HVd=function(a){a&&(a=IVd(a))&&a.setAttribute("aria-selected","false")},IVd=function(a){return a?document.getElementById("component-"+
a):null},LVd=function(a){for(a=a.target;;){if(!a)return!1;if(a.tagName==="A")return!0;a=a.parentNode}};w2.\u0275fac=function(a){return new (a||w2)};w2.\u0275cmp=C({type:w2,selectors:[["component-subtree-list-base"]],standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2});var COb=function(a){return{q:a}},y2=function(){w2.apply(this,arguments);this.paths=q(wV);this.ROUTES=zs;this.includeArchived=!1;this.childClosed=new KO;this.selectedId=null};Z(y2,w2);y2.prototype.ngOnInit=function(){};y2.prototype.ngOnDestroy=function(){this.parentComponent.focusOnChildren=void 0};y2.prototype.ngOnChanges=function(a){a.components&&MVd(this)};y2.prototype.onSubtreeChildClosed=function(a){this.selectedId=a;x2(this,a);this.rootController.selectionChanged(this,a)};
var MVd=function(a){a.parentComponent.focusOnChildren||(a.parentComponent.focusOnChildren=function(){a.selectNext()})};h=y2.prototype;
h.selectNext=function(){if(this.components)if(this.selectedId){var a=KVd(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(HVd(this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(x2(this,this.components[a+1].componentId),this.rootController.selectionChanged(this,this.selectedId))}else x2(this,this.components[0].componentId),this.rootController.selectionChanged(this,this.selectedId)};
h.selectPrevious=function(){var a=KVd(this);a==0?(this.selectedId=null,this.childClosed.emit(this.parentComponent.componentId)):(x2(this,this.components[a-1].componentId),this.rootController.selectionChanged(this,this.selectedId))};h.closeSubtree=function(){if(this.selectedId){var a=JVd(this);a.showChildren?a.showChildren=!1:(this.selectedId=null,this.parentComponent.showChildren=!1,this.childClosed.emit(this.parentComponent.componentId));this.cdr.detectChanges()}};
h.showChildrenForSelectedId=function(){var a=JVd(this);a&&this.showChildren(a)};h.setSelected=function(a,b){LVd(b)||(x2(this,a),this.rootController.selectionChanged(this,a),b.preventDefault(),b.stopPropagation())};h.toggleChildrenForSelectedId=function(){var a=JVd(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};y2.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(y2)))(b||y2)}}();
y2.\u0275cmp=C({type:y2,selectors:[["component-subtree-list"]],inputs:{parentComponent:"parentComponent",rootController:"rootController",components:"components",includeArchived:"includeArchived"},outputs:{childClosed:"childClosed"},features:[Ig([MO]),Ff,Gx],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&&(K(0,"ol",0),Pf(1,JOb,19,11,"li",1,Of),L());a&2&&(B(),Qf(b.components))},dependencies:[y2,FV,ZA,XA,TA,hK,iz,MA,VS,NV],encapsulation:2});var NOb=function(a){return{q:a}},z2=function(){w2.call(this);this.paths=q(wV);this.hotkeys=q(dT);this.elementRef=q(Gd);this.ROUTES=zs;this.scrollArea=this.elementRef.nativeElement.parentElement;this.selectedId=null;this.includeArchived=!1;this.init=new KO;this.subscriptions=new Od;this.destroyed$=new vf(1);this.registerKeys()};Z(z2,w2);
z2.prototype.ngOnInit=function(){var a=this;this.rootController=this;qe(0).pipe(Af(this.destroyed$)).subscribe(function(){NVd(a)&&!a.selectedId&&x2(a,a.components[0].componentId)});this.init.emit(this)};z2.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.subscriptions.unsubscribe()};z2.prototype.ngOnChanges=function(a){a.components&&OVd(this)};z2.prototype.onSubtreeChildClosed=function(a){var b=this;x2(this,a);this.focusedController=void 0;qe(0).pipe(Af(this.destroyed$)).subscribe(function(){A2(b)})};
var OVd=function(a){qe(0).pipe(Af(a.destroyed$)).subscribe(function(){NVd(a)&&!a.selectedId&&x2(a,a.components[0].componentId)})};h=z2.prototype;h.selectionChanged=function(a,b){b&&A2(this,b);a!==this.focusedController&&(this.focusedController&&(b=this.focusedController,b.selectedId&&HVd(b.selectedId),b.selectedId=null),this.focusedController=a||void 0)};h.setSelected=function(a,b){LVd(b)||(x2(this,a),this.selectionChanged(null),A2(this),b.preventDefault(),b.stopPropagation())};
h.registerKeys=function(){var a=this;this.subscriptions.add(eT(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()}}]}))};h.showChildrenForSelectedId=function(){if(this.focusedController)this.focusedController.showChildrenForSelectedId();else{var a=JVd(this);a&&this.showChildren(a)}};
h.toggleChildrenForSelectedId=function(){this.focusedController&&this.focusedController.toggleChildrenForSelectedId();var a=JVd(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};h.closeSubtree=function(){this.focusedController?this.focusedController.closeSubtree():this.selectedId&&(JVd(this).showChildren=!1,this.cdr.detectChanges())};
h.selectPrevious=function(){if(this.focusedController)this.focusedController.selectPrevious();else{var a=KVd(this);NVd(this)&&a>=1&&(x2(this,this.components[a-1].componentId),A2(this))}};
h.selectNext=function(){if(NVd(this))if(this.focusedController)this.focusedController.selectNext();else if(this.selectedId){var a=KVd(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(HVd(this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(x2(this,this.components[a+1].componentId),A2(this))}else x2(this,this.components[0].componentId),A2(this)};
var A2=function(a,b){var c=PVd(a.scrollArea),d=c+a.scrollArea.offsetHeight;if(a=IVd(b||a.selectedId)){b=PVd(a);var e=b+a.offsetHeight;b<c?a.scrollIntoView(!1):e>d&&a.scrollIntoView(!0)}},PVd=function(a){for(var b=0;a&&a instanceof HTMLElement;)b+=a.offsetTop,a=a.offsetParent;return b},NVd=function(a){return!!(a.components&&a.components.length>0)};z2.\u0275fac=function(a){return new (a||z2)};
z2.\u0275cmp=C({type:z2,selectors:[["component-tree-list"]],inputs:{components:"components",includeArchived:"includeArchived"},outputs:{init:"init"},features:[Ig([MO]),Ff,Gx],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&&(K(0,"ol",0),Pf(1,UOb,19,10,"li",1,Of),L());a&2&&(B(),Qf(b.components))},dependencies:[FV,y2,ZA,XA,TA,hK,iz,MA,VS,NV],encapsulation:2});var B2=function(){};B2.\u0275fac=function(a){return new (a||B2)};B2.\u0275mod=$e({type:B2});B2.\u0275inj=Dc({imports:[FN,iK,ZA,XS,SW,cX,z2,y2]});var C2=function(){this.customFieldHelper=q(kR);this.customFields=this.selectedComponent=null;this.fieldSelected=new KO;this.filter=function(){return!0}};C2.prototype.onComponentSelect=function(a){var b=this;(this.selectedComponent=a)?this.customFields=lR(this.customFieldHelper,a).filter(function(c){return b.filter(c)}).sort(function(c,d){return c.name.localeCompare(d.name)}):this.customFields=null};C2.\u0275fac=function(a){return new (a||C2)};
C2.\u0275cmp=C({type:C2,selectors:[["b-custom-field-picker"]],inputs:{filter:"filter"},outputs:{fieldSelected:"fieldSelected"},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&&(K(0,"div",0)(1,"div",1),S(2,
" First, select a component that contains the custom field. "),L(),K(3,"b-team-component-picker",2),N("selectedComponentChange",function(c){return b.onComponentSelect(c!=null?c:null)}),L(),F(4,ZOb,4,3,"div",3),L());a&2&&(B(3),I("selectedComponent",b.selectedComponent)("placeholder","Choose Component")("isRequired",!0),B(),G(b.selectedComponent?4:-1))},dependencies:[DB,qB,BB,tB,qT,pT,hI,GA,VV],encapsulation:2});var D2=function(){};D2.\u0275fac=function(a){return new (a||D2)};D2.\u0275mod=$e({type:D2});
D2.\u0275inj=Dc({imports:[FN,qT,fX,C2]});var QVd=function(a){return{value:a}},E2=function(){this.isNonemptyJsonDateValue=GSa};E2.prototype.toDate=function(a){return Cm(a)};E2.\u0275fac=function(a){return new (a||E2)};
E2.\u0275cmp=C({type:E2,selectors:[["b-custom-field-value-display"]],inputs:{customFieldValue:"customFieldValue"},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&&(K(0,"span",2),E(1,$Ob,1,0,"ng-container",3),L(),E(2,aPb,0,0,"ng-template",null,0,Og)(4,nPb,8,8,"ng-template",null,1,Og));a&2&&(a=Q(5),B(),I("ngTemplateOutlet",b.customFieldValue==null?null:a)("ngTemplateOutletContext",
Kg(2,QVd,b.customFieldValue)))},dependencies:[DT,oy],encapsulation:2});var F2=function(){};F2.\u0275fac=function(a){return new (a||F2)};F2.\u0275mod=$e({type:F2});F2.\u0275inj=Dc({imports:[FN,GU,E2]});var G2=function(){this.documentationLinks=q(OQ);this.userAccess=q(lO);this.errorHandler=q(ZM);this.data=q(fB);this.issuesToFlag=this.data.issuesToFlag;this.issuesChecked=0;this.protectedIssues=[];this.permissionsCheckComplete=!1};G2.prototype.ngOnInit=function(){RVd(this,this.issuesToFlag)};
var RVd=function(a,b){b.length<=0?a.permissionsCheckComplete=!0:mO(a.userAccess,"admin","components/"+b[0].componentId).then(function(c){a.issuesChecked++;c||a.protectedIssues.push(b[0]);RVd(a,b.slice(1))},function(c){a.errorHandler.errorHandler(null,c)})};G2.\u0275fac=function(a){return new (a||G2)};
G2.\u0275cmp=C({type:G2,selectors:[["b-bulk-flag-as-spam-dialog"]],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&&(K(0,
"h1",0),S(1,"Flag Issues as Spam"),L(),K(2,"div",1)(3,"div",2)(4,"p"),S(5),K(6,"a",3),S(7,"see here"),L(),S(8,". "),L(),K(9,"p"),S(10," This operation cannot be undone in bulk. "),L()(),K(11,"div",4),F(12,oPb,3,2,"div"),F(13,qPb,6,1,"div"),L()(),K(14,"div",5)(15,"button",6),S(16," Close "),L(),K(17,"button",7),S(18," Flag as Spam "),L()());a&2&&(B(5),T(" 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, "),
B(),I("href",xsd(b.documentationLinks),Me),B(6),G(b.permissionsCheckComplete?-1:12),B(),G(b.permissionsCheckComplete&&b.protectedIssues.length>0?13:-1),B(4),I("disabled",!b.permissionsCheckComplete)("mat-dialog-close",!0))},dependencies:[ZA,XA,TA,mB,hB,lB,kB],encapsulation:2});var H2=function(){this.cdr=q(MO,{self:!0});this.dialogRef=q(dB);this.component=null};H2.prototype.updateComponent=function(a){this.component=a;this.cdr.detectChanges()};H2.prototype.save=function(){this.dialogRef.close(this.component)};H2.prototype.cancel=function(){this.dialogRef.close()};H2.\u0275fac=function(a){return new (a||H2)};
H2.\u0275cmp=C({type:H2,selectors:[["b-bulk-move-dialog"]],features:[Ig([MO])],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&&(K(0,"h1",0),S(1,"Change Component"),L(),K(2,"mat-dialog-content")(3,"p"),S(4,"Choose new component for these issues."),L(),K(5,"p",1),S(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. "),L(),K(7,"b-team-component-picker",2),N("selectedComponentChange",function(c){return b.updateComponent(c!=null?c:null)}),L()(),K(8,"mat-dialog-actions")(9,"button",3),N("click",function(){return b.cancel()}),S(10," Cancel "),L(),K(11,"button",4),N("click",function(){return b.save()}),S(12," Save "),L()());a&2&&(B(7),I("selectedComponent",
b.component)("placeholder","Choose Component")("isRequired",!0),B(4),I("disabled",b.component==null))},dependencies:[ZA,XA,TA,mB,lB,kB,VV],styles:[".bv2-bulk-move-warning[_ngcontent-%COMP%]{font-weight:bold}mat-dialog-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--text)}"]});var I2=function(){this.renderPanel=this.noneButtonEnabled=!0;this.sloEditCommit=new KO;this.closePicker=new KO;this.currentPickerDate=new Dm};I2.prototype.ngOnChanges=function(a){if(a.sloEditTime){var b;this.currentPickerDate=(b=new Dm(Cdb(this.sloEditTime)))!=null?b:void 0}};I2.prototype.setDate=function(a){this.currentPickerDate=a};I2.\u0275fac=function(a){return new (a||I2)};
I2.\u0275cmp=C({type:I2,selectors:[["slo-edit-date-time-picker"]],inputs:{sloEditTime:"sloEditTime",noneButtonEnabled:"noneButtonEnabled",sloStatus:"sloStatus",renderPanel:"renderPanel"},outputs:{sloEditCommit:"sloEditCommit",closePicker:"closePicker"},features:[Ig([MO]),Gx],decls:2,vars:4,consts:[[3,"clickOutside"],[3,"dateTimeChange","saveClicked","cancelClicked","renderPanel","dateTime","noneButtonEnabled","includeTimePicker"]],template:function(a,b){a&1&&(K(0,"div",0),N("clickOutside",function(){b.closePicker.emit()}),
K(1,"b-date-time-picker-content",1),N("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()}),L()());a&2&&(B(),I("renderPanel",b.renderPanel)("dateTime",b.currentPickerDate)("noneButtonEnabled",b.noneButtonEnabled)("includeTimePicker",!0))},dependencies:[mY,FT],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 J2=function(){this.data=q(fB);this.dialogRef=q(dB);this.fieldDisplayName=this.data.fieldDisplayName;this.commitEvent=void 0};J2.prototype.close=function(){this.dialogRef.close(this.commitEvent)};J2.\u0275fac=function(a){return new (a||J2)};
J2.\u0275cmp=C({type:J2,selectors:[["b-edit-calendar-modal"]],decls:3,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"sloEditCommit","closePicker","renderPanel"]],template:function(a,b){a&1&&(K(0,"h1",0),S(1),L(),K(2,"slo-edit-date-time-picker",1),N("sloEditCommit",function(c){b.commitEvent=c})("closePicker",function(){return b.close()}),L());a&2&&(B(),T("Edit ",b.fieldDisplayName),B(),I("renderPanel",!1))},dependencies:[lB,kB,I2],encapsulation:2});var K2=function(){this.data=q(fB);this.dialogRef=q(dB);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})};
K2.prototype.enableSubmit=function(){return this.isEnumSpec&&this.currentEnumLabel!==""||!this.isEnumSpec};K2.prototype.cancel=function(){this.dialogRef.close(void 0)};K2.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)};K2.\u0275fac=function(a){return new (a||K2)};
K2.\u0275cmp=C({type:K2,selectors:[["b-edit-estimated-effort-modal"]],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&&(K(0,"h1",0),S(1),L(),F(2,rPb,4,4,"div",1)(3,sPb,5,2,"mat-dialog-content"),K(4,"mat-dialog-actions")(5,"button",2),
N("click",function(){return b.cancel()}),S(6," Cancel "),L(),K(7,"button",3),N("click",function(){return b.save()}),S(8," Save "),L()());a&2&&(B(),T("Edit ",b.fieldDisplayName),B(),G(b.isEnumSpec?2:3),B(5),I("disabled",!b.enableSubmit()))},dependencies:[mC,xi,PB,WB,ZA,XA,TA,DB,qB,BB,tB,qC,EB,oC,mB,lB,kB,WT,PT],encapsulation:2});var L2=function(){this.data=q(fB);this.dialogRef=q(dB);this.removeItems=this.addItems="";this.fieldDisplayName=this.data.fieldDisplayName};L2.prototype.save=function(){this.dialogRef.close({addItems:this.addItems,removeItems:this.removeItems})};L2.prototype.close=function(){this.dialogRef.close()};L2.\u0275fac=function(a){return new (a||L2)};
L2.\u0275cmp=C({type:L2,selectors:[["b-edit-item-modal"]],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&&(K(0,"h1",0),S(1),L(),K(2,"mat-dialog-content")(3,"p"),S(4),L(),K(5,"div",1)(6,"mat-form-field",2)(7,"mat-label"),S(8),L(),K(9,"input",3),Eg("ngModelChange",
function(c){Dg(b.addItems,c)||(b.addItems=c);return c}),L()(),M(10,"br"),K(11,"mat-form-field",2)(12,"mat-label"),S(13),L(),K(14,"input",3),Eg("ngModelChange",function(c){Dg(b.removeItems,c)||(b.removeItems=c);return c}),L()()()(),K(15,"mat-dialog-actions")(16,"button",4),N("click",function(){return b.close()}),S(17," Cancel "),L(),K(18,"button",5),N("click",function(){return b.save()}),S(19," Save "),L()());a&2&&(B(),T("Edit ",b.fieldDisplayName),B(3),T("Enter ",b.fieldDisplayName," to add or remove"),
B(4),T(" ",b.fieldDisplayName," to Add "),B(),Cg("ngModel",b.addItems),B(4),T(" ",b.fieldDisplayName," to Remove "),B(),Cg("ngModel",b.removeItems))},dependencies:[mC,xi,PB,WB,ZA,XA,TA,DB,qB,BB,tB,qC,EB,oC,mB,lB,kB],styles:["mat-form-field[_ngcontent-%COMP%]{margin-top:8px}"]});var SVd=["hotlistFilterInput"],TVd=["hotlistCreate"],UVd=["hotlistApply"],VVd=["hotlistLoad"],WVd=["menuitem"],M2=function(){LO.apply(this,arguments);this.liveAnnouncer=q(Cz);this.butterBar=q(JM);this.userAccess=q(lO);this.analytics=q(PO);this.activeSession=q(Zu);this.cdr=q(MO,{self:!0});this.selectedHotlistIds=[[]];this.choices=[];this.checkEditAcl=!0;this.onCreate=new KO;this.onApply=new KO;this.onLoad=new KO;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()};Z(M2,LO);M2.\u0275dir=LO.\u0275dir;M2.prototype.ngAfterViewInit=function(){var a=this,b;(b=this.trigger)==null||b.menuOpened.pipe(Af(this.destroyed$)).subscribe(function(){qe(0).pipe(Af(a.destroyed$)).subscribe(function(){a.focusFilterBox()})});var c;(c=this.trigger)==null||c.menuClosed.pipe(Af(this.destroyed$)).subscribe(function(){XVd(a)})};
M2.prototype.focusFilterBox=function(){this.filterElement.nativeElement.focus()};M2.prototype.ngOnChanges=function(){YVd(this);this.oldSelectedHotlistMap=Object.assign({},this.selectedHotlistMap);this.pendingChanges=this.canCreate=!1;ZVd(this)};
var YVd=function(a){var b={};Cva(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;Jba(a.choices,function(g,k){var m=b[g.hotlistId],r=b[k.hotlistId];return m>r?-1:m<r?1:wa(g.name,k.name)})}}};M2.prototype.open=function(){this.trigger.openMenu();this.cdr.detectChanges()};M2.prototype.close=function(){this.trigger.closeMenu()};
M2.prototype.hasAclToEdit=function(a){var b=this;if(yva(this.hotlistEditAcls,a.hotlistId))return this.hotlistEditAcls[a.hotlistId];mO(this.userAccess,"appender","hotlists/"+a.hotlistId).then(function(c){b.hotlistEditAcls[a.hotlistId]=c})};
var tPb=function(a,b){if(!a.checkEditAcl)return!1;a=a.hasAclToEdit(b);return a===void 0?!0:!a},uPb=function(a,b){var c=a.selectedHotlistMap[b.hotlistId];a.selectedHotlistMap[b.hotlistId]=c===null?!0:!c;BPb(a);a.close()},BPb=function(a){a.onApply.emit({oldSelectionMap:a.oldSelectedHotlistMap,newSelectionMap:a.selectedHotlistMap})},ZVd=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]=eba(e.name,b),e.name===b&&(c=!0);a.canCreate=
!(!b||c);a.canLoad=jab(Aa(b))&&!!b&&!!a.onLoad},XVd=function(a){a.trigger.menuOpen||(YVd(a),a.filterText="",ZVd(a),a.pendingChanges=!1,a.focusedRowIndex=-1)},$Vd=function(a){var b=a.selectedHotlistIds;return b&&b.length===1?"Hotlists ("+xba(b[0],function(c){return a.validHotlistIds.has(c)})+")":"Hotlists"};
M2.prototype.createHotlist=function(){var a=this,b=this.filterText;this.canCreate&&(this.filterText="",ZVd(this),this.onCreate.emit({name:b,successCallback:function(c){uPb(a,c)},errorCallback:function(){a.butterBar.showWarning("Failed to create hotlist "+b)}}))};
M2.prototype.loadHotlist=function(){var a=this,b=this.filterText;if(this.canLoad){this.analytics.trackEvent("hotlistPicker","loadHotlist");fs(this.butterBar,"Loading hotlist "+b.toString());this.filterText="";ZVd(this);for(var c=Jm(b),d=l(this.choices),e=d.next();!e.done;e=d.next())if(e=e.value,c===e.hotlistId){uPb(this,e);return}this.onLoad.emit({hotlistId:c,successCallback:function(f){uPb(a,f)},errorCallback:function(){a.butterBar.showWarning("Failed to load hotlist "+b)}})}};
M2.prototype.handleSelectionChange=function(){this.focusFilterBox();this.pendingChanges=!Gm(this.oldSelectedHotlistMap,this.selectedHotlistMap)};
var vPb=function(a,b){tPb(a,b)||(a.selectedHotlistMap[b.hotlistId]=!a.selectedHotlistMap[b.hotlistId],a.handleSelectionChange())},gWd=function(a,b){b=b===void 0?0:b;var c=aWd(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=Aba(aWd(a),b),bWd(a),cWd(a,b)):a.focusedRowIndex<d&&a.canCreate?dWd(a,d):a.focusedRowIndex<d+1&&a.canLoad?eWd(a,d):a.focusedRowIndex<d+2&&a.pendingChanges&&
fWd(a,d)},aWd=function(a){return a.menuItems.map(function(b){return b.nativeElement})},hWd=function(a,b){b=b===void 0?0:b;if(a.focusedRowIndex===a.choices.length+1&&a.canCreate)dWd(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canLoad)eWd(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canCreate)dWd(a,a.choices.length);else{var c=aWd(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=Aba(aWd(a),b),bWd(a),cWd(a,b)):(a.focusedRowIndex=-1,cWd(a,null))}},cWd=function(a,b){a.filterElement&&ms(a.filterElement.nativeElement,b);a.focusFilterBox()},dWd=function(a,b){a.focusedRowIndex=b;ms(a.filterElement.nativeElement,null);var c;(c=a.createElement)==null||c.focus();a.liveAnnouncer.announce("Create new hotlist "+a.filterText);a.focusFilterBox()},eWd=function(a,b){a.focusedRowIndex=b+1;ms(a.filterElement.nativeElement,null);var c;(c=a.loadElement)==
null||c.focus();a.liveAnnouncer.announce("Load hotlist "+a.filterText);a.focusFilterBox()},fWd=function(a,b){a.focusedRowIndex=b+2;ms(a.filterElement.nativeElement,null);var c;(c=a.applyElement)==null||c.focus();a.liveAnnouncer.announce("Apply");a.focusFilterBox()},bWd=function(a){a.focusedRowIndex===-1||a.focusedRowIndex>=a.choices.length||(a=aWd(a)[a.focusedRowIndex],a.scrollIntoViewIfNeeded?a.scrollIntoViewIfNeeded():a.scrollIntoView({block:"end"}))},wPb=function(a){return a==null?"mixed":a.toString()},
xPb=function(a){return a==null?"indeterminate":a?"checked":"unchecked"};M2.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(M2)))(b||M2)}}();
M2.\u0275cmp=C({type:M2,selectors:[["b-hotlist-picker"]],viewQuery:function(a,b){a&1&&(kg(OF,5),kg(SVd,5),kg(TVd,5),kg(UVd,5),kg(VVd,5),kg(WVd,5));if(a&2){var c;og(c=pg())&&(b.trigger=c.first);og(c=pg())&&(b.filterElement=c.first);og(c=pg())&&(b.createElement=c.first);og(c=pg())&&(b.applyElement=c.first);og(c=pg())&&(b.loadElement=c.first);og(c=pg())&&(b.menuItems=c)}},inputs:{selectedHotlistIds:"selectedHotlistIds",choices:"choices",checkEditAcl:"checkEditAcl"},outputs:{onCreate:"onCreate",onApply:"onApply",
onLoad:"onLoad"},features:[Ig([MO]),Ff,Gx],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=t();K(0,"button",7)(1,"span",8);S(2);L();M(3,"b-icon",9);L();K(4,"mat-menu",null,0)(6,"div",10)(7,"div",11)(8,"div",12)(9,"input",13,1);Eg("ngModelChange",function(d){u(c);Dg(b.filterText,d)||(b.filterText=d);return v(d)});N("ngModelChange",function(){u(c);
return v(ZVd(b))})("mousedown",function(d){u(c);return v(d.stopPropagation())})("blur",function(){u(c);return v(XVd(b))})("click",function(d){u(c);return v(d.stopPropagation())})("keydown",function(d){u(c);d.stopImmediatePropagation();d.key==="Escape"?b.close():d.key==="ArrowDown"?(gWd(b),d.preventDefault()):d.key==="ArrowUp"?(hWd(b),d.preventDefault()):d.key==="PageUp"?hWd(b,11):d.key==="PageDown"?gWd(b,11):d.key===" "?b.focusedRowIndex===-1||b.focusedRowIndex>=b.choices.length||(vPb(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(),BPb(b)):0<=b.focusedRowIndex&&b.focusedRowIndex<b.choices.length&&b.hasAclToEdit(b.choices[b.focusedRowIndex])&&uPb(b,b.choices[b.focusedRowIndex]));return v()});L()()();M(11,"mat-divider");E(12,DPb,12,7,"ng-template",14);L()()}a&2&&(a=Q(5),I("matMenuTriggerFor",a)("disabled",b.isAnonymous),B(2),Ag($Vd(b)),B(7),Cg("ngModel",
b.filterText))},dependencies:[mC,xi,PB,iC,WB,ZA,XA,TA,OJ,NJ,LF,JF,KF,OF,hK,hS,XJ,FA,MA],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 kWd=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 fR;this.selectedVerifiersStatus=this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";iWd(this,b);jWd(this,b)},iWd=function(a,b){var c=b[0],d=Ao.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},lWd=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||so(c)})?b?"MULTIPLE":"IDENTICAL_EMAILS":"POSSIBLY_MULTIPLE"},jWd=function(a,b){var c=
b.map(function(d){return d.assigneeEmail});b=b.map(function(d){return d.verifierEmail});a.selectedAssigneesStatus=lWd(c);a.selectedVerifiersStatus=lWd(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])};
kWd.prototype.clearAssignee=function(){this.commonAssignee="";this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteAssignee=!0;mWd(this)};kWd.prototype.clearVerifier=function(){this.commonVerifier="";this.selectedVerifiersStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteVerifier=!0};
var OPb=function(a){return a.origIssues.every(function(b){return!!b.verifierEmail})},JPb=function(a,b){(a.origCommonIssueState=b)?(b.status==="NEW"?nWd(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||nWd(a.selectedAssigneesStatus)||(a.commonAssignee=a.lastCommonAssignee?
a.lastCommonAssignee:a.userEmail),nWd(a.selectedVerifiersStatus)||a.commonVerifier||b.status!=="VERIFIED"||(a.commonVerifier=a.userEmail)),a.issueState=a.origCommonIssueState):a.issueState=void 0},nWd=function(a){return a==="MULTIPLE"||a==="POSSIBLY_MULTIPLE"},mWd=function(a){a.issueState===sTa&&a.commonAssignee?a.origCommonIssueState===sTa?a.issueState=tTa:a.issueState=a.origCommonIssueState:a.commonAssignee||a.issueState&&!gid.has(a.issueState)||(a.issueState=sTa)},oWd=function(a){var b=a.issueState;
return b?a.origIssues.some(function(c){return b.status!==c.status}):!1},pWd=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);oWd(a)&&(a.commonDuplicateOf!==a.origCommonDuplicateOf?b.set("duplicateOfIssueId",a.commonDuplicateOf):b.set("status",a.issueState.status));a.comment.value&&b.set("comment",a.comment.value);return b};var N2=function(){this.externalWarnings=[]};N2.\u0275fac=function(a){return new (a||N2)};
N2.\u0275cmp=C({type:N2,selectors:[["b-external-warnings"]],inputs:{externalWarnings:"externalWarnings"},decls:1,vars:1,consts:[[1,"bv2-external-component-modal-warning"],[3,"href"],[3,"issueId"],[3,"accessLevel"]],template:function(a,b){a&1&&F(0,IPb,11,0,"div",0);a&2&&G(b.externalWarnings.length>0?0:-1)},dependencies:[FV,vW],styles:[".bv2-external-component-modal-warning[_ngcontent-%COMP%] {\n  padding-top: 10px;\n\n  ul {\n    padding-left: 0;\n  }\n}"],changeDetection:0});var O2=function(){};
O2.\u0275fac=function(a){return new (a||O2)};O2.\u0275mod=$e({type:O2});O2.\u0275inj=Dc({imports:[SW,VW,N2]});var qWd=["dialog"],rWd=["statusForm"],P2=function(){LO.call(this);this.matDialog=q(gB);this.activeSession=q(Zu);this.hotkeys=q(dT);this.userPreferencesManager=q(VP);this.save=new KO;this.close=new KO;this.externalWarnings=[];this.issueStates=DTa();this.issueEditBuilder=null;this.FocusableField=sWd;this.enableRecaptcha=this.activeSession.userRequiresCaptcha()&&this.activeSession.getFlag("enableBulkEditCaptchaUi")};Z(P2,LO);P2.\u0275dir=LO.\u0275dir;
P2.prototype.showDialog=function(a,b,c){var d=this;this.issueEditBuilder=new kWd(this.activeSession.getUserEmail(),a);var e,f;this.issueEditBuilder.comment.formattingMode=(f=(e=WP(this.userPreferencesManager).commentFormattingPreferences)==null?void 0:e.lastPublishMode)!=null?f:"UNSPECIFIED_FORMATTING_MODE";b&&JPb(this.issueEditBuilder,b);this.focus=c;this.hotkeys.pause();this.matDialogRef=this.matDialog.open(this.dialog,{minWidth:512,maxWidth:512});eB(this.matDialogRef).pipe(Af(this.destroyed$)).subscribe(function(g){d.hotkeys.unpause();
g&&d.save.emit();d.close.emit()})};var WPb=function(a){var b;if(!(b=!a.statusForm||a.statusForm.invalid))a:{if(a.issueEditBuilder!=null){b=pWd(a.issueEditBuilder);var c=b.get("status");if(c==="DUPLICATE"){b=!b.get("duplicateOfIssueId");break a}if(c==="VERIFIED"){b=!OPb(a.issueEditBuilder)&&!b.get("verifier");break a}}b=!1}return b||a.enableRecaptcha&&a.issueEditBuilder.recaptchaResponse===""?!1:!0},uu=function(a){if(WPb(a)){var b;(b=a.matDialogRef)==null||b.close(!0)}};
P2.prototype.setAssignee=function(a){this.issueEditBuilder&&(this.issueEditBuilder.commonAssignee=a,mWd(this.issueEditBuilder))};P2.\u0275fac=function(a){return new (a||P2)};
P2.\u0275cmp=C({type:P2,selectors:[["b-state-modal"]],viewQuery:function(a,b){a&1&&(kg(qWd,5),kg(rWd,5));if(a&2){var c;og(c=pg())&&(b.dialog=c.first);og(c=pg())&&(b.statusForm=c.first)}},inputs:{externalWarnings:"externalWarnings"},outputs:{save:"save",close:"close"},features:[Ff],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"],["name","assignee",3,"emailChange","keydown.control.enter","keydown.meta.enter","cdkFocusInitial","email"],["title","Clear verifiers",3,"click"],["name","verifier",3,"emailChange",
"keydown.control.enter","keydown.meta.enter","cdkFocusInitial","email","required"],["for","bv2-state-modal-issue-id",1,"bv2-top-field-label"],["type","text","name","duplicateOf",3,"ngModelChange","keydown.control.enter","keydown.meta.enter","ngModel"],[3,"onUpdate"]],template:function(a){a&1&&E(0,XPb,14,5,"ng-template",null,0,Og)},dependencies:[qY,N2,mC,XB,xi,PB,QB,WB,UB,ZA,XA,TA,OJ,NJ,LF,JF,OF,hS,mB,hB,lB,kB,t_,GX],encapsulation:2});
var sWd={ASSIGNEE:0,VERIFIER:1,COMMENT:2,DUPE_ID:3,0:"ASSIGNEE",1:"VERIFIER",2:"COMMENT",3:"DUPE_ID"};var Q2=function(){this.dialogRef=q(dB);this.activeSession=q(Zu);this.reporter="";this.autocompleteActive=!1};Q2.prototype.enableSubmit=function(){return this.reporter!==""};Q2.prototype.cancel=function(){this.dialogRef.close()};Q2.prototype.save=function(){this.dialogRef.close(this.reporter)};Q2.\u0275fac=function(a){return new (a||Q2)};
Q2.\u0275cmp=C({type:Q2,selectors:[["b-reporter-picker-dialog"]],decls:13,vars:3,consts:[["mat-dialog-title",""],["appearance","outline","subscriptSizing","dynamic"],[3,"keydown"],[3,"emailChange","asMatInput","email"],["type","button","mat-button","",3,"click"],["type","button","mat-flat-button","",3,"click","disabled"]],template:function(a,b){a&1&&(K(0,"h1",0),S(1,"Change Reporter"),L(),K(2,"mat-dialog-content")(3,"mat-form-field",1)(4,"mat-label"),S(5," Reporter "),L(),K(6,"div",2),N("keydown",
function(c){c.key==="Enter"&&!b.autocompleteActive&&b.enableSubmit()&&b.save()}),K(7,"b-peoplekit-single",3),Eg("emailChange",function(c){Dg(b.reporter,c)||(b.reporter=c);return c}),L()()()(),K(8,"mat-dialog-actions")(9,"button",4),N("click",function(){return b.cancel()}),S(10," Cancel "),L(),K(11,"button",5),N("click",function(){return b.save()}),S(12," Save "),L()());a&2&&(B(7),I("asMatInput",!0),Cg("email",b.reporter),B(4),I("disabled",!b.enableSubmit()))},dependencies:[ZA,XA,TA,DB,qB,BB,tB,mB,
lB,kB,t_],styles:["mat-dialog-content[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{margin-top:8px}"]});var tWd=["addCommentDialog"],R2=function(){LO.apply(this,arguments);var a=this;this.componentFridge=q(AN);this.cdr=q(MO);this.activeSession=q(Zu);this.analytics=q(PO);this.hotkeys=q(dT);this.componentActions=q(JV);this.issueTypeDialog=q(QQ);this.copyIssueIdService=q(FVd);this.matDialog=q(gB);this.$log=q(XM);this.issuePicker=q(pX);this.userPreferencesManager=q(VP);this.accessIndicatorService=q(uW);this.currentUserEmail=this.activeSession.getUserEmail();this.uniqueComponentIds$=new rf;this.effortSpec$=
this.uniqueComponentIds$.pipe(zf(function(b){return a.componentFridge.watchSet(b)}),A(function(b){return a.getCommonEffortSpec(b)}),wf({bufferSize:1,refCount:!0}));this.enableBulkEstimatedEffortOption$=this.effortSpec$.pipe(A(function(b){return b!==void 0}));this.hotlistIdMatrix=[];this.hotlistChoices=[];this.onSave=new KO;this.onCreateHotlist=new KO;this.onLoadHotlist=new KO;this.externalWarnings=[];this.enableRecaptcha=this.activeSession.userRequiresCaptcha()&&this.activeSession.getFlag("enableBulkEditCaptchaUi");
this.recaptchaResponse="";this.controllerName="baseControls"};Z(R2,LO);R2.\u0275dir=LO.\u0275dir;var uWd=function(a){var b=new fR,c,d;b.formattingMode=(d=(c=WP(a.userPreferencesManager).commentFormattingPreferences)==null?void 0:c.lastPublishMode)!=null?d:"UNSPECIFIED_FORMATTING_MODE";return b};R2.prototype.hasSelectedIssues=function(){return this.getSelectedIssues().length>0};
var vWd=function(a){return a.getSelectedIssues().some(function(b){return!b.isRead})},YPb=function(a){return vWd(a)?"Mark as read":"Mark as unread"},vu=function(a){return a.getSelectedIssues().map(function(b){return b.issueId})};R2.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=wWd(a);this.uniqueComponentIds$.next(a)};
var wWd=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},xWd=function(a){if(!MM(a.activeSession)){a.externalWarnings=[];var b=he(a.getSelectedIssues().map(function(e){return mEd(a.accessIndicatorService,e.issueId,e.componentId).pipe(A(function(f){return{issue:e,indicator:f}}))}));ee(b).then(function(e){e=l(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;var g=f.issue;f.indicator.type!=="no_indicator"&&a.externalWarnings.push({type:"issue",
issueId:g.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$614:void 0},c=b.next())d.id$jscomp$614=c.value,a.componentActions.get(d.id$jscomp$614).then(function(e){if(a.activeSession.isInternalSession()&&rt(e)||LM(a.activeSession)&&st(e)){var f,g=(f=e.componentPathInfo)==null?void 0:f.componentPathName;a.externalWarnings.push({type:"component",path:g?g.join(" > "):e.componentId,
accessLevel:e.accessLimit.accessLevel});a.cdr.detectChanges()}}).catch(function(e){return function(){a.$log.warn("Could not retrieve component "+e.id$jscomp$614+".")}}(d))}};h=R2.prototype;h.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};
h.bulkEdit=function(a){switch(a){case "ASSIGNEE":yWd(this,null,0);break;case "COMPONENT":zWd(this);break;case "VERIFIER":yWd(this,null,1);break;case "REPORTER":AWd(this);break;case "CHANGELIST":BWd(this,"changelists","Changelists",!0);break;case "CUSTOM_FIELDS":CWd(this);break;case "FOUND_IN":BWd(this,"foundInVersion","Found In");break;case "VERIFIED_IN":BWd(this,"verifiedInVersion","Verified In");break;case "TARGETED_TO":BWd(this,"targetedToVersion","Targeted To");break;case "COMMENT":DWd(this);
break;case "SLO_START_TIME":EWd(this);break;case "ESTIMATED_EFFORT":FWd(this);break;case "CC":BWd(this,"ccs","CCs");break;default:this.$log.error("unsupported bulk edit field: "+a)}};
h.quickBulkEdit=function(a){switch(a.field){case "PRIORITY":(a=a.newValue)&&S2(this,"priority",a);break;case "SEVERITY":(a=a.newValue)&&S2(this,"severity",a);break;case "STATUS":if(a=a.newValue){var b=a==="DUPLICATE"?3:void 0;yWd(this,Ao.get(a),b)}break;case "TYPE":(a=a.newValue)&&S2(this,"type",a);break;case "IS_ARCHIVED":S2(this,"isArchived",""+a.newValue);break;case "IN_PROD":S2(this,"inProd",""+a.newValue);break;case "CC":S2(this,"ccs",this.currentUserEmail,a.newValue?"ADD":"REMOVE");break;default:this.$log.error("unsupported bulk edit field: "+
a.field)}};
h.bulkEditIssueRelation=function(a){switch(a.issueRelation){case "BLOCKED_BY":a.isMarking?GWd(this,{actionType:"ADD",fieldName:"blockedByIssueId",title:"Mark all selected issues as blocked by:",edgeType:"blocker"}):GWd(this,{actionType:"REMOVE",fieldName:"blockedByIssueId",title:"Unmark all selected issues as blocked by:",edgeType:"un-blocker"});break;case "BLOCKING":a.isMarking?GWd(this,{actionType:"ADD",fieldName:"blockingIssueId",title:"Mark all selected issues as blocking:",edgeType:"blocking"}):GWd(this,
{actionType:"REMOVE",fieldName:"blockingIssueId",title:"Unmark all selected issues as blocking:",edgeType:"un-blocking"});break;case "PARENT":a.isMarking?GWd(this,{actionType:"ADD",fieldName:"parentId",title:"Mark all selected issues as children of:",edgeType:"child"}):GWd(this,{actionType:"REMOVE",fieldName:"parentId",title:"Unlink all selected issues from this parent:",edgeType:"un-parent"});break;case "DUPLICATE":yWd(this,xTa,3);break;default:this.$log.error("unsupported issue relation: "+a.issueRelation)}};
h.bulkMarkIssueRead=function(){var a=vWd(this);S2(this,"readState",a?"true":"")};
var S2=function(a,b,c,d){var e={fieldName:b,value:c};d!==void 0&&(e.actionType=d);var f=vu(a),g=[e];b==="deletionReason"&&g.push({fieldName:"isDeleted",value:"true"});d=function(){var k={bulkEditOps:[{issueIds:f,actions:g}]};a.enableRecaptcha&&a.recaptchaResponse!==""&&(k.recaptchaToken=a.recaptchaResponse);a.onSave.emit(k)};b!=="type"||c!=="VULNERABILITY"&&c!=="PRIVACY_ISSUE"?d():(c==="VULNERABILITY"&&Bsd(a.issueTypeDialog,"VULNERABILITY",d,function(){}),c==="PRIVACY_ISSUE"&&Bsd(a.issueTypeDialog,
"PRIVACY_ISSUE",d,function(){}))},yWd=function(a,b,c){a.hasSelectedIssues()&&(xWd(a),a.stateModal.showDialog(a.getSelectedIssues(),b,c))},HWd=function(a){var b=a.onSave,c=b.emit,d=vu(a),e=a.stateModal.issueEditBuilder,f=[];e.issueState||JPb(e);e=l(pWd(e));for(var g=e.next();!g.done;g=e.next()){var k=l(g.value);g=k.next().value;k=k.next().value;k!==void 0&&f.push({fieldName:g,value:k})}c.call(b,{bulkEditOps:[{issueIds:d,actions:f}],recaptchaToken:a.stateModal.issueEditBuilder.recaptchaResponse})},
AWd=function(a){a.hasSelectedIssues()&&(xWd(a),eB(a.matDialog.open(Q2,{width:"400px"})).pipe(Af(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&S2(a,"reporter",b)}),a.hotkeys.pause())},BWd=function(a,b,c,d){d=d===void 0?!1:d;a.hasSelectedIssues()&&(eB(a.matDialog.open(L2,{width:"400px",data:{fieldDisplayName:c}})).pipe(Af(a.destroyed$)).subscribe(function(e){a.hotkeys.unpause();e&&IWd(a,b,e.addItems,e.removeItems,d)}),a.hotkeys.pause())},EWd=function(a){a.hasSelectedIssues()&&(eB(a.matDialog.open(J2,
{width:"330px",data:{fieldDisplayName:"SLO Start Time"}})).pipe(Af(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:vu(a),actions:c}]})}}),a.hotkeys.pause())},FWd=function(a){var b,c;y(function(d){if(d.nextAddress==1)return z(d,ee(a.effortSpec$),2);b=d.yieldResult;if(!a.hasSelectedIssues()||b===void 0)return d.return();c=a.matDialog.open(K2,{width:"400px",data:{fieldDisplayName:"Estimated Effort",
effortSpec:b}});eB(c).pipe(Af(a.destroyed$)).subscribe(function(e){a.hotkeys.unpause();if(e){var f=[];f.push({fieldName:"effortEstimate",value:e.estimate});a.onSave.emit({bulkEditOps:[{issueIds:vu(a),actions:f}]})}});a.hotkeys.pause();$d(d)})},IWd=function(a,b,c,d,e){e=e===void 0?!1:e;c=pu(c);d=pu(d);var f=[],g=!["foundInVersion","targetedToVersion","verifiedInVersion"].includes(b),k=function(m){return eTa(m,g).map(function(r){return r.trim()})};xa(c)||(c=k(c),e&&(c=c.filter(function(m){return!isNaN(m)})),
f.push.apply(f,n(c.map(function(m){return{fieldName:b,value:m,actionType:"ADD"}}))));xa(d)||(d=k(d),f.push.apply(f,n(d.map(function(m){return{fieldName:b,value:m,actionType:"REMOVE"}}))));f.length&&a.onSave.emit({bulkEditOps:[{issueIds:vu(a),actions:f}]})},zWd=function(a){a.hasSelectedIssues()&&(eB(a.matDialog.open(H2,{width:"600px",position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})).pipe(Af(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&(a.onSave.emit({bulkEditOps:[{issueIds:vu(a),
actions:[{fieldName:"componentId",value:String(b.componentId)}]}]}),a.analytics.trackEvent(a.controllerName,"bulkMove"))}),a.hotkeys.pause())},JWd=function(a){a.hasSelectedIssues()&&(eB(a.matDialog.open(G2,{width:"600px",data:{issuesToFlag:a.getSelectedIssues()}})).pipe(Af(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&(a.analytics.trackEvent(a.controllerName,"bulkFlagAsSpam"),S2(a,"deletionReason","ABUSE"))}),a.hotkeys.pause())},DWd=function(a){a.hasSelectedIssues()&&a.addCommentDialog&&
(a.comment||(a.comment=uWd(a)),a.addCommentDialogRef=a.matDialog.open(a.addCommentDialog,{panelClass:"no-jitter",minWidth:512,maxWidth:512}),eB(a.addCommentDialogRef).pipe(Af(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();a.comment&&(b&&std(a.comment)&&S2(a,"comment",a.comment.value),a.comment.reset())}),a.hotkeys.pause(),xWd(a))},eQb=function(a){var b;(b=a.addCommentDialogRef)==null||b.close(!0)},CWd=function(a){a.hasSelectedIssues()&&eB(a.matDialog.open(XT,{data:a.getSelectedIssues(),
width:"500px"})).pipe(Af(a.destroyed$)).subscribe(function(b){b&&(a.onSave.emit({bulkEditOps:b}),a.analytics.trackEvent(a.controllerName,"bulkCustomField"))})};R2.prototype.openHotlistPicker=function(){if(this.hasSelectedIssues()){var a;(a=this.hotlistPicker)==null||a.open()}};
R2.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(g){var k=l(g);g=k.next().value;k=k.next().value;k!==c[g]&&(k?d.push(g):e.push(g),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:vu(this),
actions:a}]}),this.analytics.trackEvent(this.controllerName,"applyHotlists","numHotlists",f))};var GWd=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:vu(a),actions:[{fieldName:d,value:e,actionType:c}]}]}))});a.hotkeys.pause()};R2.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(R2)))(b||R2)}}();
R2.\u0275cmp=C({type:R2,selectors:[["b-grid-controls-base"]],viewQuery:function(a,b){a&1&&(kg(tWd,5),kg(M2,5),kg(P2,5));if(a&2){var c;og(c=pg())&&(b.addCommentDialog=c.first);og(c=pg())&&(b.hotlistPicker=c.first);og(c=pg())&&(b.stateModal=c.first)}},inputs:{hotlistChoices:"hotlistChoices"},outputs:{onSave:"onSave",onCreateHotlist:"onCreateHotlist",onLoadHotlist:"onLoadHotlist"},standalone:!1,features:[Ff],decls:0,vars:0,template:function(){},encapsulation:2});var T2=function(){};T2.\u0275fac=function(a){return new (a||T2)};T2.\u0275mod=$e({type:T2});T2.\u0275inj=Dc({imports:[FN,OJ,ZA,qC,mC,IA,iK,YJ,dK,xT,M2]});var U2=function(){};U2.\u0275fac=function(a){return new (a||U2)};U2.\u0275mod=$e({type:U2});U2.\u0275inj=Dc({imports:[FN,pB,SW,mC,ZA,xT,OJ,y_,C_,O2,u_,P2]});var V2=function(){R2.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)};Z(V2,R2);V2.\u0275dir=R2.\u0275dir;V2.prototype.ngOnChanges=function(a){if(a.panels)this.onSelectionChange()};
V2.prototype.getSelectedIssues=function(){var a=this.panels.flatMap(function(b){return b.selectedIssues});Hba(a,null,function(b){return b.issueId.toString()});return a};V2.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(V2)))(b||V2)}}();
V2.\u0275cmp=C({type:V2,selectors:[["b-dashboard-controls"]],inputs:{panels:"panels"},features:[Ig([MO]),Ff,Gx],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=t();F(0,ZPb,2,4,"b-app-bar-bulk-edit-menus",1);F(1,cQb,1,2,"b-copy-issue-id-button",2);F(2,dQb,2,2,"div",3);K(3,"b-app-bar-more-menu",4);N("flagAsSpamClicked",function(){u(c);return v(JWd(b))});L();K(4,"b-state-modal",5);N("save",function(){u(c);return v(HWd(b))})("close",function(){u(c);return v(b.hotkeys.unpause())});L();
E(5,hQb,11,6,"ng-template",null,0,Og)}a&2&&(G(b.hasSelectedIssues()?0:-1),B(),G(b.hasSelectedIssues()?1:-1),B(),G(b.enableBulkEditUi&&b.hasSelectedIssues()?2:-1),B(),I("showFlagIssuesAsSpam",b.isNonPublicSession&&b.hasSelectedIssues()),B(),I("externalWarnings",b.externalWarnings))},dependencies:[k1,qY,n2,N2,ZA,XA,TA,M2,mB,hB,lB,kB,l1,GX,P2,py],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});var W2=function(){};W2.\u0275fac=function(a){return new (a||W2)};W2.\u0275mod=$e({type:W2});
W2.\u0275inj=Dc({imports:[n1,ZT,y_,FN,SW,u2,T2,xT,ZA,pB,U2,C_,O2,V2]});var KWd=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},LWd=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)},X2=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=Rm(c.assigneeUser)||"";this.verifier=Rm(c.verifierUser)||
"";this.collaborators=Qm(c.collaboratorsUsers).map(Om);this.staffing=c.staffing||null;this.cc=Qm(c.ccUsers).map(Om);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})},NWd=function(a,b){b.name=a.name;b.description=a.description;b.inheritable=a.inheritable;var c=b.snapshot||{};c.componentId=a.componentId;MWd(a.type)?delete c.type:c.type=a.type;MWd(a.priority)?delete c.priority:c.priority=a.priority;MWd(a.severity)?
delete c.severity:c.severity=a.severity;c.assigneeUser=Sm(a.assignee);c.verifierUser=Sm(a.verifier);c.collaboratorsUsers=a.collaborators.map(function(f){return Sm(f)});a.collaboratorGroups.length>0&&(c.collaboratorsUsers=rTa(a.collaboratorGroups).concat(c.collaboratorsUsers||[]));c.staffing=a.staffing;c.ccUsers=a.cc.map(function(f){return Sm(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])&&!Mm(e)&&c.customField.push(e);b.snapshot=c};
X2.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:pn("Unexpected custom field type: "+c)}}this.dirty=!0};X2.prototype.isDirty=function(){return this.dirty};X2.prototype.setFormattingMode=function(a){this.formattingMode=a;this.dirty=!0};X2.prototype.onAccessLimitLevelSelected=function(a){this.issueAccessLimitLevel=a;this.dirty=!0};
var MWd=function(a){return xa(a)||a==="--"};X2.prototype.getCollaboratorGroupsString=function(){return this.collaboratorGroups.length===0?"":this.collaboratorGroups.length>1?this.collaboratorGroups.length+" groups selected":this.collaboratorGroups[0]};X2.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 BRb=function(a,b){a.collaborators=b.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});a.dirty=!0},CRb=function(a,b){a.cc=b.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});a.dirty=!0},OWd={value:"--",displayText:"--"};var PWd=new yl("M/d/yyyy"),Y2=function(){this.dateFormatter=q(TQ);this.boundValueChange=new KO;this.textValue="";this.ariaLabelledBy=this.inputId=void 0;this.isRequired=!1};Y2.prototype.ngOnInit=function(){if(this.boundValue){if(this.boundValue)if(typeof this.boundValue==="string")var a=ZSa(this.boundValue);else{var b;a=(b=Cm(this.boundValue))!=null?b:void 0}else a=void 0;this.googDate=a;this.change(this.googDate,!0)}};
Y2.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=PWd.format(a);else{var d;a=(d=gTa(PWd.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):""}};Y2.\u0275fac=function(a){return new (a||Y2)};
Y2.\u0275cmp=C({type:Y2,selectors:[["bv2-input-date-picker"]],inputs:{boundValue:"boundValue",inputId:[0,"bv2Id","inputId"],ariaLabelledBy:[0,"bv2AriaLabelledby","ariaLabelledBy"],isRequired:"isRequired"},outputs:{boundValueChange:"boundValueChange"},decls:1,vars:4,consts:[[3,"valueChange","required","value","customFormId","customAriaLabelledBy"]],template:function(a,b){a&1&&(K(0,"b-date-time-input",0),N("valueChange",function(c){return b.change(c)}),L());a&2&&I("required",b.isRequired)("value",b.googDate)("customFormId",
b.inputId)("customAriaLabelledBy",b.ariaLabelledBy)},dependencies:[HT],encapsulation:2});var QWd=["allocationInput"],RWd=["editAllocationBtn"],SWd=function(a,b){return b.columnDef},qQb=function(a,b){return b.value},FQb=function(a,b){return b.displayText},Z2=function(){var a=this;this.subscriptions=new Od;this.userToLossyEmail=Rm;this.rows$=new Xj([]);this.trackBy=function(b,c){return c[0].user.user.emailAddress};this.tableColumns$=new Xj(["user","involvement","remove-user"]);this.timeboundQuarterColumns$=new Xj([]);this.Involvement=ihd;this.involvementOptions=Jsd.map(function(b){return{value:b,
displayText:Go[b]}});this.roleOptions$=new Xj([{value:void 0,displayText:"--"}].concat(n(Ksd.map(function(b){return{value:b,displayText:AM[b]}}))));this.allocationUnderEdit=null;this.allocationInputChanges$=new Xj("");this.allocations=[];this.isAllowedToEdit=!1;this.updatedAllocations=new KO;this.removedUser=new KO;this.subscriptions.add(this.allocationInputChanges$.pipe(kf(250),of()).subscribe(function(){LQb(a);if(a.allocationInputEl){var b;a.allocationInputEl.nativeElement.value=(b=a.allocationFromInputPlain)!=
null?b:""}}))};Z2.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()};Z2.prototype.ngOnChanges=function(a){a.allocations&&TWd(this)};
var TWd=function(a){var b=[],c=a.allocations.some(function(m){var r;return((r=m.allocation)==null?void 0:r.percentage)!==void 0});b=UWd(a,c);var d=[];d=b.length?b.map(function(m){return m.columnDef}):[c?"allocation":"involvement"];a.tableColumns$.next(["user","role","is-lead"].concat(n(d),["remove-user"]));a.timeboundQuarterColumns$.next(b);c=new Map;d=l(a.allocations.filter(function(m){var r;return(r=m.user)==null?void 0:r.user}));for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0,g=void 0,
k=(f=e.user)==null?void 0:(g=f.user)==null?void 0:g.emailAddress;k&&(f=void 0,g=(f=c.get(k))!=null?f:[],g.push(e),c.set(k,g))}c=[].concat(n(c.values()));a.rows$.next(c.map(function(m){var r=[];if(b.length){for(var w=l(b),x=w.next();!x.done;x=w.next()){x=x.value;var D=x.extractPlannedAllocation(m),H=void 0,J=void 0;((H=D.allocation)==null?void 0:H.startDate)===x.startDate&&((J=D.allocation)==null?void 0:J.endDate)===x.endDate?r.push(D):(J=H=void 0,r.push(Object.assign({},D,{allocation:Object.assign({},
D.allocation,{aggregationValue:(J=(H=D.allocation)==null?void 0:H.aggregationValue)!=null?J:0,startDate:WVa(x.startDate),endDate:WVa(x.endDate)})})))}m=r}return m}).sort(function(m,r){var w,x,D,H,J,O;m=(J=(w=m[0].user)==null?void 0:(x=w.user)==null?void 0:x.emailAddress)!=null?J:"";r=(O=(D=r[0].user)==null?void 0:(H=D.user)==null?void 0:H.emailAddress)!=null?O:"";return!m&&r?-1:!r&&m?1:m.localeCompare(r)}))},UWd=function(a,b){a=VWd(a);var c=a.earliestDate,d=a.latestDate;a=[];if(!c||!d)return a;var e=
XVa(c).quarterStartDate;c=XVa(d).quarterStartDate;d=e;for(e={};d<=c;e={quarterStartDate$jscomp$1:void 0,quarterEndDate$jscomp$1:void 0}){var f=XVa(d);e.quarterStartDate$jscomp$1=f.quarterStartDate;e.quarterEndDate$jscomp$1=f.quarterEndDate;f=e.quarterStartDate$jscomp$1.getFullYear();var g=Math.floor(e.quarterStartDate$jscomp$1.getMonth()/3)+1;a.push({columnDef:"q"+g+"-"+f,displayText:"Q"+g+" "+f,startDate:e.quarterStartDate$jscomp$1,endDate:e.quarterEndDate$jscomp$1,extractPlannedAllocation:function(k){return function(m){a:{var r=
k.quarterStartDate$jscomp$1,w=k.quarterEndDate$jscomp$1;if(r||w){for(var x=l(m),D=x.next();!D.done;D=x.next()){D=D.value;var H=void 0,J=void 0,O=((H=D.allocation)==null?0:H.startDate)?uo((J=D.allocation)==null?void 0:J.startDate):void 0;J=H=void 0;var R=((H=D.allocation)==null?0:H.endDate)?uo((J=D.allocation)==null?void 0:J.endDate):void 0;if(!O&&!R||!O&&w&&R>=w||!R&&r&&O<=r||O&&R&&r&&w&&O<=r&&R>=w){m=D;break a}}m=Object.assign({},m[0],{allocation:{involvement:"ZERO",aggregationValue:0,startDate:r?
WVa(r):void 0,endDate:w?WVa(w):void 0}})}else m=m[0]}return m}}(e),displayInvolvementAsPercentage:b});d=new Date(d.getFullYear(),d.getMonth()+3,1)}return a},VWd=function(a){var b=void 0,c=void 0;a=l(a.allocations);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0,f=void 0,g=((e=d.allocation)==null?0:e.startDate)?uo((f=d.allocation)==null?void 0:f.startDate):void 0;if(g){if(!b||g<b)b=g;if(!c||g>c)c=g}f=e=void 0;if(g=((e=d.allocation)==null?0:e.endDate)?uo((f=d.allocation)==null?void 0:
f.endDate):void 0){if(!b||g<b)b=g;if(!c||g>c)c=g}}return{earliestDate:b,latestDate:c}},yQb=function(a,b,c,d,e){var f,g,k,m,r,w,x,D,H,J;return y(function(O){f=Ho(c);if(!f||!d&&e===void 0||((g=c.allocation)==null?void 0:g.involvement)===d&&((k=c.allocation)==null?void 0:k.percentage)===e)return a.allocationUnderEdit=null,a.allocationFromInputPlain=void 0,O.return();m=b.filter(function(R){return Ho(R)!==f});r=Fo(c);w=[].concat(n(a.allocations.filter(function(R){return Fo(R)!==r})),n(m));if(d&&d!=="INVOLVEMENT_UNSPECIFIED")x=
Object.assign({},c.allocation,{involvement:d,aggregationValue:0,percentage:void 0});else if(e!==void 0||d==="INVOLVEMENT_UNSPECIFIED")e!=null||(e=1),x=Object.assign({},c.allocation,{percentage:e,aggregationValue:0,involvement:void 0});w.push(Object.assign({},c,{allocation:x}));D=a.rows$.value.findIndex(function(R){return Fo(R[0])===r});H=b.findIndex(function(R){return Ho(R)===f});J=H*a.rows$.value.length+D;a.updatedAllocations.emit(w);a.allocationUnderEdit=null;a.allocationFromInputPlain=void 0;setTimeout(function(){var R,
V;(R=a.editAllocationBtns.get(J))==null||(V=R.nativeElement)==null||V.focus()},0);$d(O)})},BQb=function(a,b){var c=b==null?void 0:b.allocation,d="";if((c==null?void 0:c.percentage)!==void 0)d=""+Math.round((c==null?NaN:c.percentage)*100);else if(c==null?0:c.involvement)d=Go[c==null?void 0:c.involvement];a.allocationFromInputPlain=d;a.allocationUnderEdit=b!=null?b:null;a.allocationUnderEdit&&setTimeout(function(){a.allocationInputEl.nativeElement.focus();a.allocationInputChanges$.next(d)},0)},wu=function(a,
b,c){var d,e=(d=a.allocationInputEl)==null?void 0:d.nativeElement.value.toLowerCase();d=Number(e);var f,g=(f=a.involvementOptions.find(function(r){return r.value.toLowerCase()===e}))==null?void 0:f.value;if(!c||c.key==="Enter")!isNaN(d)&&d>=0&&d<=100?yQb(a,b,a.allocationUnderEdit,void 0,Math.round(d)/100):g&&yQb(a,b,a.allocationUnderEdit,g),a.allocationUnderEdit=null,a.allocationFromInputPlain=void 0;else if(c.key==="Escape"||c.key==="Esc")if(c.stopPropagation(),b=a.allocations.findIndex(function(r){return Ho(r)===
Ho(a.allocationUnderEdit)}),BQb(a),b>=0){var k,m;(k=a.editAllocationBtns.get(b))==null||(m=k.nativeElement)==null||m.focus()}},LQb=function(a){var b,c,d=(c=(b=a.allocationFromInputPlain)==null?void 0:b.toLowerCase())!=null?c:"";d!==""&&((b=Number(d),isNaN(b))?a.involvementOptions.map(function(e){return e.displayText.toLowerCase()}).find(function(e){return d===e||e.startsWith(d)})||(a.allocationFromInputPlain=""):a.allocationFromInputPlain=b<0?"0":b>100?"100":b>0&&b<1?String(Math.round(b*100)):String(Math.round(b)))},
uQb=function(a,b,c){var d,e,f,g,k,m;return y(function(r){d=Fo(b);if(!d)return r.return();e=[].concat(n(a.allocations));f=!1;for(g=0;g<e.length;g++)k=e[g],m=void 0,Fo(k)===d&&!((m=k.user)==null||!m.isLead)!==c&&(e[g]=Object.assign({},k,{user:Object.assign({},k.user,{isLead:c})}),f=!0);if(!f)return r.return();a.updatedAllocations.emit(e);$d(r)})},pQb=function(a,b,c){var d,e,f,g,k,m;return y(function(r){d=Fo(b);if(!d)return r.return();e=[].concat(n(a.allocations));f=!1;for(g=0;g<e.length;g++)k=e[g],
m=void 0,Fo(k)===d&&((m=k.user)==null?void 0:m.role)!==c&&(e[g]=Object.assign({},k,{user:Object.assign({},k.user,{role:c!=="JOB_ROLE_UNSPECIFIED"?c:void 0})}),f=!0);if(!f)return r.return();a.updatedAllocations.emit(e);$d(r)})},TQb=function(a,b){var c,d,e,f,g;return y(function(k){c=Fo(b);if(!c)return k.return();d=[].concat(n(a.allocations)).filter(function(m){return Fo(m)!==c});if(d.length===a.allocations.length)return k.return();a.updatedAllocations.emit(d);g=(e=b.user)==null?void 0:(f=e.user)==null?
void 0:f.emailAddress;a.removedUser.emit(g);$d(k)})},CQb=function(a){a=a.allocation;if(!a)return"";if(a.percentage!==void 0)return Math.round(a.percentage*100)+"%";if(a.involvement){var b=a.aggregationValue;if(b===0&&a.involvement!=="ZERO")switch(a.involvement){case "HIGH":b=1;break;case "MEDIUM":b=.5;break;case "LOW":b=.25}return Math.round(b*100)+"% ("+(Go[a.involvement]+")")}return""},rQb=function(a){var b;return(a=(b=a.user)==null?void 0:b.role)?or[a]:""};
Z2.\u0275fac=function(a){return new (a||Z2)};
Z2.\u0275cmp=C({type:Z2,selectors:[["b-allocated-users-table"]],viewQuery:function(a,b){a&1&&(kg(QWd,5),kg(RWd,5,Gd));if(a&2){var c;og(c=pg())&&(b.allocationInputEl=c.first);og(c=pg())&&(b.editAllocationBtns=c)}},inputs:{allocations:"allocations",isAllowedToEdit:"isAllowedToEdit"},outputs:{updatedAllocations:"updatedAllocations",removedUser:"removedUser"},features:[Gx],decls:31,vars:17,consts:[["editAllocationBtn",""],["allocationInput",""],["allocationAuto","matAutocomplete"],[1,"allocated-users-table-container"],
["mat-table","",3,"dataSource","trackBy"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","user",3,"sticky"],["mat-header-cell","",4,"matHeaderCellDef"],["tabindex","-1","mat-cell","",4,"matCellDef"],["matColumnDef","role",3,"sticky"],["matColumnDef","is-lead",3,"sticky"],["matColumnDef","involvement"],["matColumnDef","allocation"],[3,"matColumnDef"],["matColumnDef","remove-user",3,"stickyEnd"],["mat-header-row",""],
["mat-row",""],["mat-header-cell",""],["tabindex","-1","mat-cell",""],[1,"user-cell"],["size","small",3,"email"],[1,"user-name",3,"user","hovercardFocusEnabled","availabilityChipEnabled"],[1,"role-header"],["name","help-outline","size","small","role","button","tabindex","0",1,"help-icon",3,"matTooltip"],["aria-label","Select role",1,"role-select",3,"selectionChange","disabled","value"],[3,"value"],[1,"is-lead-header"],[3,"change","checked","disabled","aria-label"],[1,"involvement-header"],["aria-label",
"Select involvement",1,"involvement-select",3,"selectionChange","disabled","value"],[1,"allocation-header"],["type","button","mat-button","","aria-label","Select involvement level or enter percentage (between 0 and 100) for user","matTooltip","Select involvement level or enter percentage (between 0 and 100) for user",1,"edit-allocation-btn",3,"disabled"],["type","button","mat-button","","aria-label","Select involvement level or enter percentage (between 0 and 100) for user","matTooltip","Select involvement level or enter percentage (between 0 and 100) for user",
1,"edit-allocation-btn",3,"click","disabled"],"svgIcon edit-outline fill none iconPositionEnd ".split(" "),["aria-label","Select involvement level or enter percentage (between 0 and 100) for user",1,"allocation-input",3,"ngModelChange","keydown","input","blur","matAutocomplete","ngModel","disabled"],[3,"optionSelected"],["mat-header-cell","",3,"class",4,"matHeaderCellDef"],["mat-cell","",3,"class",4,"matCellDef"],["mat-cell",""],["aria-label","Select involvement",1,"involvement-select",3,"disabled",
"value"],["type","button","mat-button","","aria-label","Select involvement or enter percentage (between 0 and 100) for user","matTooltip","Select involvement or enter percentage (between 0 and 100) for user",1,"edit-allocation-btn",3,"disabled"],["type","button","mat-button","","aria-label","Select involvement or enter percentage (between 0 and 100) for user","matTooltip","Select involvement or enter percentage (between 0 and 100) for user",1,"edit-allocation-btn",3,"click","disabled"],["aria-label",
"Select involvement or enter percentage (between 0 and 100) for user",1,"allocation-input",3,"ngModelChange","keydown","keyup","blur","matAutocomplete","ngModel","disabled"],["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&&(bg(0),U(1,"async"),K(2,"div",3)(3,"table",4),E(4,iQb,1,0,"tr",5)(5,jQb,1,0,"tr",6),Vf(6,7),E(7,kQb,2,0,
"th",8)(8,mQb,2,1,"td",9),Wf(),Vf(9,10),bg(10),E(11,nQb,4,2,"th",8)(12,sQb,7,5,"td",9),Wf(),Vf(13,11),bg(14),E(15,tQb,4,2,"th",8)(16,vQb,2,4,"td",9),Wf(),Vf(17,12),bg(18),E(19,wQb,4,2,"th",8)(20,zQb,6,3,"td",9),Wf(),Vf(21,13),bg(22),E(23,AQb,4,2,"th",8)(24,HQb,3,1,"td",9),Wf(),Pf(25,RQb,4,2,"ng-container",14,SWd),U(27,"async"),Vf(28,15),E(29,SQb,2,0,"th",8)(30,UQb,3,1,"td",9),Wf(),L()());a&2&&(a=W(1,9,b.tableColumns$),B(3),I("dataSource",b.rows$)("trackBy",b.trackBy),B(),I("matHeaderRowDef",a)("matHeaderRowDefSticky",
!0),B(),I("matRowDefColumns",a),B(),I("sticky",!0),B(3),I("sticky",!0),B(),cg("Optionally override the role of the user. If\n      not overridden, the user will be filling the role aligned with their job profile."),B(3),I("sticky",!0),B(),cg("Optionally mark users as lead(s) for this\n      issue."),B(4),cg("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."),
B(4),cg("Set the involvement level (or percentage\n      between 0 and 100) of people allocated to this issue. Zero involvement levels are useful when\n      a person is involved in the work but does not spend a significant portion of their time on\n      it."),B(3),Qf(W(27,15,b.timeboundQuarterColumns$)),B(3),I("stickyEnd",!0))},dependencies:[FN,iz,mC,xi,PB,WB,ZA,XA,TA,VA,PK,OK,wI,GW,FW,QS,DS,JS,FS,CS,LS,GS,IS,MS,OS,iK,hK,MA,xT,hS,jX,hX,GA,iX,jI,hI,iI,vU,mU,jU,py],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-allocation[_ngcontent-%COMP%], td.mat-mdc-cell.mat-column-involvement[_ngcontent-%COMP%], td.mat-mdc-footer-cell.mat-column-allocation[_ngcontent-%COMP%], td.mat-mdc-footer-cell.mat-column-involvement[_ngcontent-%COMP%], th.mat-mdc-header-cell.mat-column-allocation[_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}.allocation-header[_ngcontent-%COMP%], .involvement-header[_ngcontent-%COMP%], .is-lead-header[_ngcontent-%COMP%], .role-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}.mat-mdc-table-sticky[_ngcontent-%COMP%]{opacity:1}.mat-mdc-table-sticky-border-elem-top[_ngcontent-%COMP%]{border-bottom:2px solid var(--hairline)}.mat-mdc-table-sticky-border-elem-right[_ngcontent-%COMP%]{border-left:2px solid var(--hairline)}.mat-mdc-table-sticky-border-elem-left[_ngcontent-%COMP%]{border-right:2px solid var(--hairline)}.allocated-users-table-container[_ngcontent-%COMP%]{width:100%;overflow-x:auto;max-height:380px}.blue[_ngcontent-%COMP%]{background-color:var(--b-status-assigned-bg-pale)}.timebound-allocation[_ngcontent-%COMP%]{min-width:140px}.timebound-allocation[_ngcontent-%COMP%]   .mat-mdc-button[_ngcontent-%COMP%]{z-index:0}.help-icon[_ngcontent-%COMP%]{margin-left:4px}.mat-column-role[_ngcontent-%COMP%]{width:75px}.mat-column-is-lead[_ngcontent-%COMP%]{width:100px}.mat-column-allocation[_ngcontent-%COMP%], .mat-column-involvement[_ngcontent-%COMP%]{width:150px}.mat-column-remove-user[_ngcontent-%COMP%]{width:36px}.involvement-select[_ngcontent-%COMP%]{width:125px}.edit-allocation-btn[_ngcontent-%COMP%]{color:var(--row-default-text);display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;font-weight:400;height:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:0;width:125px}.allocation-input[_ngcontent-%COMP%]{width:117px}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}[_nghost-%COMP%]     .mat-mdc-select-value{padding-right:4px}\n/*# sourceMappingURL=allocated_users_table.css.map */"],
changeDetection:0});var WWd=function(){this.isAllowedToEdit=!1;this.editPlaceholder=new KO;this.removePlaceholder=new KO},XWd=function(a){a.isAllowedToEdit&&a.editPlaceholder.emit(a.placeholder)};da.Object.defineProperties(WWd.prototype,{roleString:{configurable:!0,enumerable:!0,get:function(){var a=this.placeholder.role;return a&&a!=="JOB_ROLE_UNSPECIFIED"?AM[a]:"Other"}},placeholderLabel:{configurable:!0,enumerable:!0,get:function(){return"Placeholder: "+this.placeholder.count+" "+this.roleString}}});
WWd.\u0275fac=function(a){return new (a||WWd)};
WWd.\u0275cmp=C({type:WWd,selectors:[["b-placeholder-chip"]],inputs:{placeholder:"placeholder",isAllowedToEdit:"isAllowedToEdit"},outputs:{editPlaceholder:"editPlaceholder",removePlaceholder:"removePlaceholder"},decls:6,vars:7,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","",1,"remove-btn","xs",3,"click","disabled"],["svgIcon","close"]],template:function(a,
b){a&1&&(K(0,"span",0),M(1,"b-user-image",1),K(2,"span",2),N("click",function(){return XWd(b)})("keydown.enter",function(){return XWd(b)})("keydown.space",function(){return XWd(b)}),S(3),L(),K(4,"button",3),N("click",function(){b.removePlaceholder.emit(b.placeholder)}),M(5,"mat-icon",4),L()());a&2&&(B(),I("email",void 0),B(),I("matTooltip",Gg("Click to edit the ",b.roleString," placeholders")),Jf("aria-label","Click to edit the "+b.roleString+" placeholders"),B(),T(" ",b.placeholderLabel," "),B(),
I("disabled",!b.isAllowedToEdit),Jf("aria-label","Remove placeholders for the "+b.roleString+" role"))},dependencies:[FN,iz,ZA,XA,VA,iK,hK,MA,kz,vU,mU],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}.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;padding-right:4px;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 YWd=function(){return[]},a3=function(){this.matDialog=q(gB)};a3.prototype.show=function(a,b){this.dialog=this.matDialog.open(b3,{width:"325px",panelClass:"no-jitter",data:{allocatedPlaceholders:a,initialRole:b}});return ee(eB(this.dialog))};a3.\u0275fac=function(a){return new (a||a3)};a3.\u0275prov=Cc({token:a3,factory:a3.\u0275fac,providedIn:"root"});
var b3=function(){var a=this;this.data=q(fB);this.dialogRef=q(dB);this.role="SWE";this.count=new VB(1,{validators:[vi,Kta(/^\d+$/),Fta(1),Gta(3E5)]});this.roleToCountMap=new Map;this.roleOptions$=new Xj(Ksd.map(function(f){return{value:f,displayText:AM[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(Ksd.map(function(f){return{value:f,
displayText:AM[f],disabled:a.roleToCountMap.has(f)}}));this.data.initialRole&&(this.role=this.data.initialRole);ZWd(this)},ZWd=function(a){var b=a.roleToCountMap.get(a.role);a.count.setValue(b!=null?b:1)};b3.prototype.apply=function(){var a,b={role:this.role,count:(a=this.count.value)!=null?a:1};this.dialogRef.close(b)};
da.Object.defineProperties(b3.prototype,{updatingExistingPlaceholder:{configurable:!0,enumerable:!0,get:function(){return this.roleToCountMap.has(this.role)}},selectedRoleDisplayText:{configurable:!0,enumerable:!0,get:function(){var a=this,b,c;return(c=(b=this.roleOptions$.value.find(function(d){return d.value===a.role}))==null?void 0:b.displayText)!=null?c:""}},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"}}});b3.\u0275fac=function(a){return new (a||b3)};
b3.\u0275cmp=C({type:b3,selectors:[["b-placeholder-dialog"]],decls:21,vars:12,consts:[[1,"placeholder-dialog"],["mat-dialog-title",""],["mat-dialog-content","",1,"content"],["appearance","outline",1,"job-role-field"],["aria-label","Click to select a job role for placeholders",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&&(K(0,"div",0)(1,"h1",1),S(2),L(),K(3,"section",2)(4,"mat-form-field",3)(5,"mat-label"),S(6,"Role"),L(),K(7,"mat-select",4),N("selectionChange",function(d){b.role=d.value;
ZWd(b)}),Pf(8,VQb,4,5,"span",5,Of),U(10,"async"),L()(),K(11,"mat-form-field",6)(12,"mat-label"),S(13,"Number"),L(),M(14,"input",7),F(15,WQb,2,0,"mat-error"),L()(),K(16,"footer",8)(17,"button",9),S(18," Cancel "),L(),K(19,"button",10),N("click",function(){return b.apply()}),S(20),L()()());if(a&2){B(2);Ag(b.title);B(5);I("value",b.role)("disabled",b.updatingExistingPlaceholder);B();var c;Qf((c=W(10,9,b.roleOptions$))!=null?c:Jg(11,YWd));B(6);I("formControl",b.count)("required",!0);Jf("aria-label","Enter the "+
(b.updatingExistingPlaceholder?"updated ":"")+"number of placeholders for the "+b.selectedRoleDisplayText+" role");B();G(b.count.invalid?15:-1);B(4);I("disabled",b.count.invalid);B();T(" ",b.buttonText," ")}},dependencies:[FN,ZA,XA,TA,pB,hB,kB,mB,lB,DB,qB,BB,tB,rB,qC,EB,oC,qT,pT,hI,GA,iK,hK,MA,uA,nC,xi,YB,PB,hC,gC,fC,bC,py],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 $Wd=function(){return[]},c3=function(){this.matDialog=q(gB)};c3.prototype.show=function(a,b,c){this.dialog=this.matDialog.open(e3,{width:"1000px",disableClose:!0,panelClass:"no-jitter",data:{issueId:b,plannedAllocations:a,isAllowedToEdit:c}});return ee(eB(this.dialog))};c3.\u0275fac=function(a){return new (a||c3)};c3.\u0275prov=Cc({token:c3,factory:c3.\u0275fac,providedIn:"root"});
var e3=function(){LO.call(this);var a=this;this.data=q(fB);this.dialogRef=q(dB);this.editIssueService=q(tR);this.hotkeys=q(dT);this.placeholderDialogService=q(a3);this.checkBeforeExit=q(HX);this.userValidators={userNotInGoogleDomain:function(f){return f?f.every(function(g){return g.indexOf("@google.com")>0}):!0},isNotUserType:function(f){return f?f.every(function(g){return g.startsWith("USER:")}):!0},userAlreadySelected:function(f){if(f){f=Rs(f).map(function(k){var m,r;return(r=(m=k.user)==null?void 0:
m.emailAddress)!=null?r:""}).filter(function(k){return!!k});f=l(f);for(var g=f.next();!g.done;g=f.next())if(a.emailsSet.has(g.value))return!1}return!0}};this.issueId=this.data.issueId;this.plannedAllocations$=new Xj([]);this.emailsSet=new Set;this.placeholderAllocations$=this.plannedAllocations$.pipe(A(function(f){return f.filter(function(g){return!!g.placeholder}).map(function(g){return g.placeholder})}));this.availableRolesToAllocate$=this.placeholderAllocations$.pipe(A(function(f){var g=new Set(f.map(function(k){return k.role}));
return Ksd.filter(function(k){return!g.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.isSaving$=Std(this.editIssueService.savingState((c=this.issueId)!=null?c:""),"staffing");var d;this.plannedAllocations$.next((d=this.data.plannedAllocations)!=null?d:[]);b=l(this.plannedAllocations$.value);for(var e=b.next();!e.done;e=b.next())d=c=void 0,(e=(c=e.value.user)==
null?void 0:(d=c.user)==null?void 0:d.emailAddress)&&this.emailsSet.add(e)};Z(e3,LO);e3.\u0275dir=LO.\u0275dir;e3.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(IX(this.checkBeforeExit,function(){return a.hasChanges()},!1));this.dialogRef.keydownEvents().pipe(Af(this.destroyed$)).subscribe(function(b){b.key==="Escape"&&a.closeIfUnmodified()});this.dialogRef.backdropClick().pipe(Af(this.destroyed$)).subscribe(function(){a.closeIfUnmodified()})};
var YQb=function(a,b,c){var d,e,f,g,k,m;return y(function(r){if(r.nextAddress==1)return z(r,ee(a.placeholderAllocations$),2);if(r.nextAddress!=3)return d=r.yieldResult,c||(c=b.length>0?b[0]:"SWE"),z(r,a.placeholderDialogService.show(d,c),3);e=r.yieldResult;if(!e)return r.return();f={placeholder:e};g=Fo(f);if(!g)return r.return();k=[].concat(n(a.plannedAllocations$.value));m=k.findIndex(function(w){return Fo(w)===g});m<0?k.push(f):k[m]=f;a.plannedAllocations$.next(k);$d(r)})};
e3.prototype.removePlaceholder=function(a){var b=this,c,d,e,f;return y(function(g){c={placeholder:a};d=Fo(c);if(!d)return g.return();e=[].concat(n(b.plannedAllocations$.value));f=e.findIndex(function(k){return Fo(k)===d});if(f<0)return g.return();e.splice(f,1);b.plannedAllocations$.next(e);$d(g)})};e3.prototype.removeEmail=function(a){this.emailsSet.delete(a)};
var aXd=function(a,b){var c,d,e,f,g,k;return y(function(m){if(b.length<1)return m.return();c=Rs(b);f=(d=c[0])==null?void 0:(e=d.user)==null?void 0:e.emailAddress;if(!f||a.emailsSet.has(f))return m.return();g={user:{user:{emailAddress:f}},allocation:{involvement:"HIGH",aggregationValue:0}};k=[].concat(n(a.plannedAllocations$.value),[g]);a.plannedAllocations$.next(k);a.emailsSet.add(f);a.usersInput.removeItem(0);$d(m)})};h=e3.prototype;
h.hasChanges=function(){return!Gm(this.plannedAllocations$.value,this.data.plannedAllocations)};h.closeIfUnmodified=function(){this.hasChanges()||this.dialogRef.close()};h.close=function(){this.dialogRef.close()};h.save=function(){var a=this;return y(function(b){if(b.nextAddress==1)return a.creatingNewIssue?(a.dialogRef.close(a.plannedAllocations$.value),b.return()):z(b,gud(a.editIssueService,a.issueId,{plannedAllocations:a.plannedAllocations$.value}),2);a.dialogRef.close();$d(b)})};
h.onKeydown=function(a,b){this.hotkeys.isEnabled()&&a.key==="Enter"&&(a.ctrlKey||a.metaKey)&&this.isAllowedToEdit&&this.hasChanges()&&!b&&(a.preventDefault(),a.stopPropagation(),this.save())};e3.\u0275fac=function(a){return new (a||e3)};
e3.\u0275cmp=C({type:e3,selectors:[["b-staffing-dialog"]],viewQuery:function(a,b){a&1&&kg(sW,5);if(a&2){var c;og(c=pg())&&(b.usersInput=c.first)}},features:[Ff],decls:26,vars:29,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"keydown"],["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","removeContainerDivTabIndex","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","disabled"],["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=t();K(0,"h1",0);S(1);L();bg(2);U(3,"async");K(4,"section",1);N("keydown",function(k){u(c);var m=dg(2);return v(b.onKeydown(k,m!=null?m:!1))});F(5,XQb,3,0,"b-callout",2);bg(6);U(7,"async");K(8,"div",3)(9,"div",4);Pf(10,ZQb,1,2,"b-placeholder-chip",5,Of);U(12,"async");L();K(13,"div",6)(14,"span",7)(15,"button",8);N("click",function(){u(c);
var k=dg(6);return v(YQb(b,k))});S(16,"Add placeholder");L()();M(17,"b-icon",9);L()();K(18,"b-multi-user-input",10);N("usersChange",function(k){u(c);return v(aXd(b,k))});L();K(19,"b-allocated-users-table",11);U(20,"async");N("updatedAllocations",function(k){u(c);b.plannedAllocations$.next(k);return v()})("removedUser",function(k){u(c);return v(b.removeEmail(k))});L()();K(21,"footer",12)(22,"button",13);N("click",function(){u(c);return v(b.close())});S(23," Cancel ");L();K(24,"button",14);N("click",
function(){u(c);return v(b.save())});S(25," Save ");L()()}if(a&2){B();Ag(b.title);B();a=cg(W(3,16,b.isSaving$));B(3);G(b.isAllowedToEdit?-1:5);B();var d,e=cg((d=W(7,19,b.availableRolesToAllocate$))!=null?d:Jg(26,$Wd));B(4);var f;Qf((f=W(12,22,b.placeholderAllocations$))!=null?f:Jg(27,$Wd));B(4);I("matTooltip","All supported roles have already been allocated.")("matTooltipDisabled",e.length>0);B();I("disabled",!b.isAllowedToEdit||!e.length||a);B(2);I("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.");
Jf("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.");B();I("maxUserAllowed",1)("removeContainerDivTabIndex",!0)("placeholderText","Search for a user to allocate")("customValidators",b.userValidators);Jf("disabled",b.isAllowedToEdit&&!a?null:!0);B();var g;I("allocations",(g=W(20,24,b.plannedAllocations$))!=null?g:Jg(28,$Wd))("isAllowedToEdit",b.isAllowedToEdit&&!a);B(3);I("disabled",
a);B(2);I("disabled",!b.hasChanges()||a)}},dependencies:[Z2,FN,wT,uT,vT,ZA,XA,TA,pB,hB,kB,mB,lB,iK,hK,MA,xT,hS,UW,sW,uA,WWd,py],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 f3=function(){this.confirmationDialogService=q(PQ)},bXd=function(a,b,c){return y(function(d){return d.return(Asd(a.confirmationDialogService,{title:b,content:Dh(c)}))})},cXd=function(a,b){return y(function(c){if(b.canEditIssuesInComponent){var d;if(d=b.issueAccessLimitLevel==="LIMIT_VIEW"){d=!!b.assigneeUser;var e=!!b.verifierUser,f,g=!((f=b.collaboratorsUsers)==null||!f.length),k;f=!((k=b.ccUsers)==null||!k.length);d=!d&&!e&&!g&&!f}c=d?c.return(bXd(a,b.confirmationDialogText.noListedUsers.title,
b.confirmationDialogText.noListedUsers.content)):b.issueAccessLimitLevel==="LIMIT_VIEW"&&$Qb(b)?c.return(bXd(a,b.confirmationDialogText.loseAccess.title,b.confirmationDialogText.loseAccess.content)):c.return(!0)}else c=c.return(!0);return c})};f3.\u0275fac=function(a){return new (a||f3)};f3.\u0275prov=Cc({token:f3,factory:f3.\u0275fac,providedIn:"root"});var dXd=["saveBeforeClosingDialog"],eXd=["deleteDialog"],vRb=function(){return[]},fXd={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?"}},
g3=function(){LO.call(this);var a=this;this.matDialogService=q(gB);this.cdr=q(MO,{self:!0});this.templatesApi=q(CN);this.hotlistApi=q(PN);this.constants=q(SQ);this.paths=q(wV);this.butterBar=q(JM);this.analytics=q(PO);this.issueTypeDialog=q(QQ);this.componentActions=q(JV);this.documentationLinks=q(OQ);this.appEvents=q(DN);this.accessPolicyApi=q(tN);this.trackerFridge=q(IP);this.componentFridge=q(AN);this.currentUserBookmarksFridge=q(ZN);this.autocompleteConfigService=q(gV);this.confirmIssueAccessLimitSettingsService=
q(f3);this.activeSession=q(Zu);this.sessionIsInternal=this.activeSession.isInternalSession();this.staffingDialogService=q(c3);this.customFieldHelper=q(kR);this.defaultIndex=-1;this.componentId="";this.supportCustomFields=!1;this.templates=[];this.fieldConfigsV2=[];this.allCustomFields=[];this.customFieldRows=[];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.implicitAccessEnabled=!1;this.issueTypeChoices=gXd(this);this.priorityChoices=hXd(this);this.severityChoices=iXd(this);this.FieldType=AU;this.componentId$=new vf(0);this.component$=this.componentId$.pipe(zf(function(b){return a.componentFridge.watch(b)}));this.trackerId$=this.component$.pipe(A(function(b){return b==null?void 0:b.trackerId}));this.tracker$=this.trackerId$.pipe(zf(function(b){return b?a.trackerFridge.watch(b):
be(void 0)}));this.ROUTES=zs;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.subscriptions.add(this.tracker$.subscribe(function(b){b&&(a.trackerCollaboratorGroups=Pm(b.collaboratorGroups));a.currentTemplate&&a.currentTemplate.separateCollaboratorGroups(a.trackerCollaboratorGroups)}))};Z(g3,LO);
g3.\u0275dir=LO.\u0275dir;h=g3.prototype;
h.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(){h3(a);
a.cdr.detectChanges()})};h.ngAfterViewInit=function(){this.componentId$.next(this.componentId)};h.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)});Jba(this.selectedHotlists,function(c,d){return wa(c.name,d.name)})};
h.removeHotlist=function(a){La(this.templateHotlistIds[this.hotlistPickerIndex],a);this.currentTemplate.dirty=!0;this.updateSelectedHotlists()};
h.createHotlist=function(a){var b=this;var c=a.name;var d=a.successCallback;a=a.errorCallback;this.analytics.trackEvent("editTemplate","createHotlist");fs(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){fs(b.butterBar,"Hotlist "+c+" created successfully.");b.addHotlist(e);b.appEvents.hotlistCreated.next();d(e);b.cdr.detectChanges()}).catch(a)};
h.handleHotlistPickerSave=function(a){var b=this;var c=a.oldSelectionMap;Ji(a.newSelectionMap,function(d,e){e=Jm(e);if(d!==c[e]){b.currentTemplate.dirty=!0;var f=b.selectedHotlistIds[0].includes(e);d&&!f?(d=b.templateHotlistIds[b.hotlistPickerIndex],Ka(d,e)||d.push(e)):!d&&f&&La(b.templateHotlistIds[b.hotlistPickerIndex],e)}},this);this.updateSelectedHotlists()};
h.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)};h.fetchUserHotlists=function(){var a=this;ee($N(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()})};h.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&La(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};
var gXd=function(a){var b=a.constants.editIssueTypes.map(function(c){return{value:c,displayText:FRb(c),altText:a.constants.issueTypesShortDescriptions.get(c)}});return[OWd].concat(b)},FRb=function(a){return a===OWd.value?a:Tm(a)};g3.prototype.getDateValue=function(a){return a};g3.prototype.getListFieldType=function(a){return a};
var yRb=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},mRb=function(a){a.currentTemplateRow.issueType==="VULNERABILITY"||a.currentTemplateRow.issueType==="PRIVACY_ISSUE"?Bsd(a.issueTypeDialog,a.currentTemplateRow.issueType==="VULNERABILITY"?"VULNERABILITY":"PRIVACY_ISSUE",function(){a.currentTemplate.type=a.currentTemplateRow.issueType;
a.currentTemplate.dirty=!0},function(){a.currentTemplateRow.issueType=a.currentTemplate.type}):(a.currentTemplate.type=a.currentTemplateRow.issueType,a.currentTemplate.dirty=!0);jXd(a);a.cdr.detectChanges()},hXd=function(a){return[OWd].concat(a.constants.priorities.map(function(b){return{value:b,displayText:b}}))},iXd=function(a){return[OWd].concat(a.constants.severities.map(function(b){return{value:b,displayText:b}}))},kXd=function(a){return a.templateRows.filter(function(b){return!b.inherited})},
lXd=function(a){return a.templateRows.filter(function(b){return b.inherited})};g3.prototype.setCustomField=function(a,b,c){a.editableTemplate.setCustomField(b,c!==null?c:void 0)};var ERb=function(a){a.currentTemplate=null;a.currentTemplateRow=null;a.currentIndex=-1;h3(a)};g3.prototype.toggleRow=function(a){var b=this,c=this.currentIndex;mXd(this,function(){a.index===c?ERb(b):b.openEditor(a.index)})};
var nXd=function(a){a.templateHotlistIds.push([]);mXd(a,function(){a.openEditor()})},eRb=function(a,b){return b.index>=0&&b.index===a.currentIndex},gRb=function(a,b){var c;return b.index>=0&&!((c=a.templates[b.index])==null?0:c.default)},DRb=function(a){var b,c,d,e,f,g,k,m,r,w,x,D,H,J;return y(function(O){if(O.nextAddress==1){if(!a.currentTemplate)return O.return();c=(b=a.currentTemplate.collaborators)!=null?b:[];e=(d=a.currentTemplate.collaboratorGroups)!=null?d:[];return z(O,cXd(a.confirmIssueAccessLimitSettingsService,
{assigneeUser:a.currentTemplate.assignee,verifierUser:a.currentTemplate.verifier,ccUsers:a.currentTemplate.cc,collaboratorsUsers:[].concat(n(c),n(e)),issueAccessLimitLevel:a.currentTemplate.issueAccessLimitLevel,currentUserEmail:a.activeSession.getUserEmail(),canEditIssuesInComponent:!0,confirmationDialogText:fXd}),2)}f=O.yieldResult;if(!f)return O.return();a.currentIndex<0?(k="creating",m={componentId:a.componentId,default:!1},g=function(R){fs(a.butterBar,R.name?'Template "'+R.name+'" created.':
"Template created.");a.analytics.trackEvent("template","create");oXd(a,"create",R.snapshot);pXd(a,"create",R.templateId);qXd(a,"create",R.templateId);a.templates.push(R);a.openEditor(a.templates.length-1)}):(k="updating",r=a.currentIndex,m=a.templates[r],g=function(R){fs(a.butterBar,R.name?'Template "'+R.name+'" updated.':"Template updated.");a.analytics.trackEvent("template","update");oXd(a,"update",R.snapshot);pXd(a,"update",R.templateId);qXd(a,"update",R.templateId);a.templates[r]=R;ERb(a)});a.currentTemplate.hotlistId=
a.templateHotlistIds[a.hotlistPickerIndex];NWd(a.currentTemplate,m);fs(a.butterBar,"Saving template...");x=w=m;D=x.componentId;J=(H=x.templateId)&&String(H)!=="0"?a.templatesApi.update(D,H,w):a.templatesApi.create(D,w);return O.return(J.then(function(R){a.appEvents.templateModified.next(String(a.componentId));g(R);a.cdr.detectChanges()}).catch(function(R){R=iq(R);a.butterBar.showWarning(R?"Error "+k+" template: "+R:"There was an error "+k+" the template.",0)}))})},dRb=function(a,b){eB(a.matDialogService.open(a.deleteDialog,
{data:b})).pipe(Af(a.destroyed$)).subscribe(function(c){c&&rXd(a,b)})},rXd=function(a,b){var c=b.index;var d;y(function(e){switch(e.nextAddress){case 1:d=a.templates[c];if(c<0||d.default)return e.return(Promise.resolve());Cba(a.templateHotlistIds,c);Cba(a.templates,c);a.defaultIndex=a.templates.findIndex(function(f){return f.default});h3(a);a.cdr.detectChanges();fs(a.butterBar,"Deleting...");Vd(e,2,3);return z(e,a.templatesApi.delete(d.componentId,d.templateId),5);case 5:a.appEvents.templateModified.next(String(a.componentId)),
fs(a.butterBar,"Deleted template"),a.analytics.trackEvent("template","delete"),a.currentIndex===c&&ERb(a);case 3:return Wd(e),z(e,a.loadTemplates(),6);case 6:h3(a);a.cdr.detectChanges();Yd(e,0);break;case 2:Zd(e),a.butterBar.showWarning("Error while deleting template"),e.jumpTo(3)}})},tXd=function(a,b){b?DRb(a).then(function(){sXd(a);a.cdr.detectChanges()}):sXd(a)},fRb=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};
g3.prototype.openEditor=function(a){var b=this;this.currentIndex=a===void 0?-1:a;if(this.currentIndex<0){this.currentTemplate=uXd(this,{componentId:this.componentId,default:!1,name:"New Template"});this.currentTemplate.dirty=!0;this.updateSelectedHotlists();h3(this);jXd(this);this.cdr.detectChanges();var c;(c=document.getElementById("template-name"))==null||c.focus()}else vXd(this,this.templates[this.currentIndex]).then(function(d){b.currentTemplate=uXd(b,d);b.hotlistPickerIndex=b.currentIndex;b.updateSelectedHotlists();
h3(b);jXd(b);b.currentTemplate.separateCollaboratorGroups(b.trackerCollaboratorGroups);b.cdr.detectChanges();var e;(e=document.getElementById("template-name"))==null||e.focus()})};
var vXd=function(a,b){return a.templatesApi.get(b.componentId,b.templateId||0)},mXd=function(a,b){a.currentTemplate&&a.currentTemplate.isDirty()?(a.afterSaveCheckFunc=b,wXd(a)):b()},oXd=function(a,b,c){c&&c.issueAccessLimitLevel&&c.issueAccessLimitLevel!=="LIMIT_NONE"&&a.analytics.trackEvent("issueAccessLimits",b,"template:"+c.issueAccessLimitLevel)},pXd=function(a,b,c){a.currentTemplate&&a.currentTemplate.collaboratorGroups.length>0&&a.analytics.trackEvent("quickAddCollaborators",b,"template:"+c)},
qXd=function(a,b,c){var d;((d=a.currentTemplate)==null?0:d.inheritable)&&a.analytics.trackEvent("templateInheritance",b,"component:"+a.componentId+" template:"+c)},wXd=function(a){eB(a.matDialogService.open(a.saveBeforeClosingDialog,{data:a.currentTemplateRow})).pipe(Af(a.destroyed$)).subscribe(function(b){b!==void 0&&tXd(a,b)})},sXd=function(a){var b=a.afterSaveCheckFunc;a.afterSaveCheckFunc=null;b&&b()},uXd=function(a,b){var c={};a=l(a.allCustomFields);for(var d=a.next();!d.done;d=a.next())d=d.value,
c[d.customFieldId.toString()]=d;return new X2(c,b)};
g3.prototype.loadCustomFields=function(){var a=this,b,c,d,e,f,g,k,m,r,w;return y(function(x){if(x.nextAddress==1){if(!a.supportCustomFields)return x.return();Vd(x,2);return z(x,a.componentActions.get(a.componentId),4)}if(x.nextAddress!=2){b=x.yieldResult;a.componentIdsToPaths={};c=[];e=((d=b.componentPathInfo)==null?void 0:d.componentPathId)||[];for(f=0;f<e.length;f++)g=b.componentPathInfo.componentPathId[f],k=b.componentPathInfo.componentPathName[f],c.push(k),a.componentIdsToPaths[g]=c.join(" > ");
w=(r=(m=b.componentPathInfo)==null?void 0:m.fieldConfigsV2Map)!=null?r:new Map;a.fieldConfigsV2=[].concat(n(e)).reverse().flatMap(function(D){var H;return(H=w.get(D))!=null?H:[]});a.allCustomFields=lR(a.customFieldHelper,b);a.cdr.detectChanges();return bk(x,0)}Zd(x);a.butterBar.showWarning("Unable to load custom fields");$d(x)})};
var jXd=function(a){var b;a.customFieldRows=xXd(a,(b=a.currentTemplate)==null?void 0:b.type).map(function(c){return new LWd(c,c.type==="TEXT"?"1":"2")})},xXd=function(a,b){return yXd(a,a.allCustomFields,b)},yXd=function(a,b,c){var d=c&&a.fieldConfigsV2.find(function(e){return e.issueTypes.has(c)})||a.fieldConfigsV2.find(function(e){return!e.issueTypes.size});return d?b.filter(function(e){var f,g;return((g=(f=d.customFieldConfigs)==null?void 0:f.get(e.customFieldId))!=null?g:!0)||e.required&&e.typedDefaultValue===
void 0}):b};g3.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 h3=function(a){if(a.currentIndex<0)a.templateRows=a.templates.map(function(e,f){return new KWd(f,e,e.componentId!==a.componentId&&e.inheritable)}),a.currentTemplate&&(a.currentTemplateRow=new KWd(-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 KWd(f,e,e.componentId!==a.componentId&&e.inheritable)}));a.currentTemplate&&(a.currentTemplateRow=
new KWd(b,a.currentTemplate,!1),c.push(a.currentTemplateRow));d=a.templates.slice(b+1);c=c.concat(d.map(function(e,f){return new KWd(b+f+1,e,e.componentId!==a.componentId&&e.inheritable)}));a.templateRows=c;a.hotlistPickerIndex=a.currentIndex}},cRb=function(a,b){var c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:if(b<0||a.defaultIndex===b)return g.return();c=a.templates[b];if(c.default)return g.return();d=c.name;xa(pu(d))&&(d="(unnamed template)");a.defaultIndex=b;fs(a.butterBar,"Changing default template...");
a.analytics.trackEvent("template","changeDefault");Vd(g,2,3);return z(g,zXd(a,c.templateId),5);case 5:fs(a.butterBar,"Changed default template to "+d);case 3:return Wd(g),z(g,a.loadTemplates(),6);case 6:h3(a);a.cdr.detectChanges();Yd(g,0);break;case 2:e=Zd(g),f="Error while changing default message"+(hq(e)?": "+iq(e):"."),a.butterBar.showWarning(f),g.jumpTo(3)}})},zXd=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return z(e,ee(a.component$),2);if(e.nextAddress!=3){c=e.yieldResult;
if(!c||c.defaultTemplateId===b)return e.return();c.defaultTemplateId=b;return z(e,a.componentActions.update(c),3)}d=e.yieldResult;a.componentFridge.announce(d);a.appEvents.templateModified.next(String(d.componentId));$d(e)})};
g3.prototype.editStaffing=function(){var a=this,b,c,d,e;return y(function(f){if(f.nextAddress==1)return z(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;a.currentTemplate.dirty=!0;$d(f)})};
g3.prototype.handleAutocompleteSelection=function(a,b,c){b&&b.editableTemplate&&(c==="verifier"?b.editableTemplate.verifier=a:c==="assignee"&&(b.editableTemplate.assignee=a),b.editableTemplate.dirty=!0,this.cdr.detectChanges())};g3.\u0275fac=function(a){return new (a||g3)};
g3.\u0275cmp=C({type:g3,selectors:[["b-edit-templates"]],viewQuery:function(a,b){a&1&&(kg(dXd,5),kg(eXd,5));if(a&2){var c;og(c=pg())&&(b.saveBeforeClosingDialog=c.first);og(c=pg())&&(b.deleteDialog=c.first)}},inputs:{componentId:"componentId",supportCustomFields:"supportCustomFields"},features:[Ig([MO]),Ff],decls:23,vars:2,consts:[["deleteDialog",""],["saveBeforeClosingDialog",""],["typeMenu",""],["priorityMenu",""],["severityMenu",""],["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"],["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-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","aria-expanded","true",1,"template-field",3,"emailChange","ariaLabel","email"],["for","template-verifier"],["id","template-verifier","aria-expanded","true",1,"template-field",3,"emailChange","ariaLabel","email"],["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,"valueChange","ariaLabel","value"],["for","template-cc-peoplekit"],["id","template-cc-peoplekit","aria-expanded","true",1,"template-field",3,"valueChange","ariaLabel","value"],["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"],"role;region;tabindex;0;aria-label;Custom issue fields".split(";"),[3,"class"],[1,"buttons-row"],["format","fill",3,"onAction","disabled"],["format","hairline",3,"onAction"],["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"],["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"],[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=t();K(0,"div")(1,"div",9);S(2," A template is a set of default values for new issues created in this component. ");K(3,"a",10);S(4,"Learn more");L()();K(5,"table",11)(6,"tr")(7,"th");S(8,"TEMPLATE");L();K(9,"th",12);S(10,"DEFAULT");L();M(11,"th",12)(12,"th",12);L();Pf(13,HRb,3,1,"tr",
null,Of);F(15,LRb,3,1);L();K(16,"div",13)(17,"b-button",14);N("onAction",function(){u(c);return v(nXd(b))});S(18," Create New Template ");L()();E(19,MRb,7,3,"ng-template",null,0,Og)(21,NRb,9,4,"ng-template",null,1,Og);L()}if(a&2){var d;B(3);I("href","https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/templates",Me);B(10);Qf(kXd(b));B(2);G((d=lXd(b))?15:-1,d)}},dependencies:[OX,YT,GV,zU,mC,xi,YB,PB,WB,ZA,XA,TA,DB,qB,BB,OJ,NJ,LF,JF,OF,qT,pT,hI,iI,GA,hK,pV,M2,AK,uK,vK,zK,wK,hS,
Y2,YU,YS,mB,hB,lB,iz,jS,MA,bU,lV,t_,QW],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 i3=function(){};i3.\u0275fac=function(a){return new (a||i3)};i3.\u0275mod=$e({type:i3});i3.\u0275inj=Dc({imports:[FN,h2,Y2]});var j3=function(){};j3.\u0275fac=function(a){return new (a||j3)};j3.\u0275mod=$e({type:j3});j3.\u0275inj=Dc({imports:[ZT,FN,tT,T_,BU,mC,r_,T2,AK,i3,ZU,ZA,PK,pB,kS,cU,sU,qT,JA,iK,xT,OJ,u_,z_,RW,v_,u_,g3]});var k3=function(){this.activeSession=q(Zu);this.appSearchState=q(gS);this.analytics=q(PO);this.domSafe=q($P);this.enableEstado=this.activeSession.getFlag("enableEstado")};k3.prototype.openInEstado=function(){this.analytics.trackEvent("listIssues","addOns","Estado");this.domSafe.openInNewTab("http://go/estado/dashboard-lite/buganizer?buganizer-query="+encodeURIComponent(this.appSearchState.currentQuery))};k3.\u0275fac=function(a){return new (a||k3)};
k3.\u0275prov=Cc({token:k3,factory:k3.\u0275fac,providedIn:"root"});var l3=function(){this.sloStatusHelpersService=q(mR);this.dateFormatter=q(gR);this.timeDisplayText="--";this.rawObjectiveDisplayText=this.objectiveDisplayText=null;this.cardActionText="--";this.sloEndTimeDisplayText=be("--");this.SloRuleDayType=Qgd;this.iconName="slo-status-no-data"};l3.prototype.getIconName=function(a){return AXd.has(a)?AXd.get(a):"slo-status-no-data"};
var BXd=function(a,b,c){a.iconName=a.getIconName(b);c=c!==null?y9a(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:pn("unknown status type: "+b)}};
l3.prototype.ngOnChanges=function(){var a=Date.now()/1E3;if(this.sloBounds&&nR(this.sloBounds)){var b=this.sloBounds.targetTime.seconds,c=b-this.sloBounds.startTime.seconds;c?this.objectiveDisplayText=y9a(c*1E3):this.objectiveDisplayText=null;var d,e,f;c=((e=(d=this.sloBounds.objective)==null?void 0:d.seconds)!=null?e:0)+((f=this.sloBounds.businessDays)!=null?f:0)*86400;this.rawObjectiveDisplayText=y9a(c*1E3);this.sloEndTimeDisplayText=vtd(this.dateFormatter,new Date(b*1E3));d=this.sloBounds;nR(d)&&
d.endTime&&d.endTime.seconds!==0&&d.endTime.seconds<=Date.now()/1E3?(b=this.sloBounds.endTime.seconds,this.sloEndTimeDisplayText=vtd(this.dateFormatter,new Date(b*1E3)),BXd(this,"COMPLETED",a-b)):b<a?BXd(this,"OUT_OF_SLO",a-b):(d=this.sloStatusHelpersService.isSloStartTimeApplied(this.sloStartTime),a=b-a,BXd(this,a>259200?d?"SNOOZED_HEALTHY":"HEALTHY":d?"SNOOZED_NEAR":"NEAR",a))}else BXd(this,"NO_DATA",null),this.rawObjectiveDisplayText=this.objectiveDisplayText=null};
l3.\u0275fac=function(a){return new (a||l3)};
l3.\u0275cmp=C({type:l3,selectors:[["b-slo-time-indicator"]],inputs:{sloBounds:"sloBounds",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",includeSnoozeDetails:"includeSnoozeDetails",sloMetricDescription:"sloMetricDescription",includeObjective:"includeObjective"},features:[Gx],decls:15,vars:13,consts:[["card",""],[3,"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&&(M(0,"mat-icon",1),K(1,"span",2)(2,"span",3),S(3),L()(),K(4,"onedev-hovercard",null,0)(6,"div",4)(7,"div",5)(8,"div"),S(9),L(),K(10,"div",6),S(11),U(12,"async"),L(),F(13,ORb,4,2)(14,PRb,2,1,"div"),L()()());a&2&&(a=Q(5),zg(b.iconName),I("svgIcon",b.iconName),Jf("aria-label",b.timeDisplayText==="--"?"No SLO data":""),B(),I("onedevHovercardTrigger",a)("onedevHovercardActive",!(!b.includeObjective||
!b.rawObjectiveDisplayText)),B(2),Ag(b.timeDisplayText),B(6),Ag(b.timeDisplayText),B(2),Bg(" ",b.cardActionText," ",W(12,11,b.sloEndTimeDisplayText)," "),B(2),G((b.sloBounds==null?null:b.sloBounds.dayType)===b.SloRuleDayType.BUSINESS?13:14))},dependencies:[AK,uK,zK,iz,py],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 AXd=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 m3=function(){this.sloStatusHelpersService=q(mR);this.includeNoSlo=!1};m3.prototype.ngOnInit=function(){CXd(this);this.hasSlo=!!this.sloStatus&&Btd(this.sloStatus)};m3.prototype.ngOnChanges=function(){CXd(this)};var CXd=function(a){a.sloStatus&&(a.assignmentSlo=DXd(kn(a.sloStatus.assignmentBounds)),a.responseSlo=DXd(kn(a.sloStatus.responseBounds)),a.closureSlo=DXd(kn(a.sloStatus.closureBounds)))};m3.prototype.isSloStartTimeApplied=function(){return this.sloStatusHelpersService.isSloStartTimeApplied(this.sloStartTime)};
var DXd=function(a){if(nR(a))return a};m3.\u0275fac=function(a){return new (a||m3)};
m3.\u0275cmp=C({type:m3,selectors:[["b-slo-status-summary"]],inputs:{sloStatus:"sloStatus",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",includeNoSlo:"includeNoSlo",onlyShowMetric:"onlyShowMetric"},features:[Gx],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&&(F(0,QRb,2,4,"div"),F(1,RRb,2,4,"div"),F(2,SRb,2,4,"div"));a&2&&(G(!b.includeNoSlo&&!b.assignmentSlo||b.onlyShowMetric&&b.onlyShowMetric!="ASSIGNMENT"?-1:0),B(),G(!b.includeNoSlo&&!b.responseSlo||b.onlyShowMetric&&b.onlyShowMetric!="RESPONSE"?-1:1),B(),G(!b.includeNoSlo&&!b.closureSlo||b.onlyShowMetric&&b.onlyShowMetric!="CLOSURE"?-1:2))},dependencies:[l3],encapsulation:2,changeDetection:0});var n3=function(){this.sloStatusHelpersService=q(mR);this.analytics=q(PO);this.sloApi=q(wP)};n3.prototype.ngOnInit=function(){this.hasSlo=!!this.sloStatus&&Ctd(this.sloStatus,this.onlyShowMetric);this.sloId!=="0"?(this.editSloLink=zs.editSlo.makeHref(this.sloId),EXd(this)):this.editSloLink=null};n3.prototype.trackOpenSlo=function(){this.analytics.trackEvent("editSlo","open","fromSloStatusCard")};
var EXd=function(a){a.sloApi.get(a.sloId).then(function(b){a.sloName=b.name}).catch(function(){a.sloName=null})};n3.\u0275fac=function(a){return new (a||n3)};
n3.\u0275cmp=C({type:n3,selectors:[["slo-status-card"]],inputs:{sloId:"sloId",sloStatus:"sloStatus",sloStartTime:"sloStartTime",onlyShowMetric:"onlyShowMetric"},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&&(fg(),K(0,"span",1),gg(1),L(),K(2,"onedev-hovercard",null,0)(4,"div",2)(5,"div",3)(6,"div",4),F(7,TRb,2,3,"div",5)(8,WRb,3,1,"div",6),F(9,ZRb,4,1,"span"),L()()()());a&2&&(a=Q(3),I("onedevHovercardTrigger",a),B(7),G(b.hasSlo?7:8),B(2),G(b.editSloLink?9:-1))},dependencies:[AK,uK,zK,m3],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 FXd=function(){var a=this;this.data=q(fB);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}};FXd.\u0275fac=function(a){return new (a||FXd)};
FXd.\u0275cmp=C({type:FXd,selectors:[["b-column-picker-custom-dialog"]],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&&(K(0,"h1",0),S(1),L(),K(2,"mat-dialog-content")(3,"b-custom-field-picker",1),N("fieldSelected",function(c){return b.selectedCustomField=
c}),L()(),K(4,"mat-dialog-actions")(5,"button",2),S(6," Cancel "),L(),K(7,"button",3),S(8," Add "),L()());a&2&&(B(),T("Insert custom field column next to ",b.column.fullLabel),B(2),I("filter",b.isLegalColumn),B(4),I("disabled",!b.selectedCustomField)("mat-dialog-close",b.selectedCustomField))},dependencies:[C2,ZA,XA,TA,mB,hB,lB,kB],encapsulation:2});var GXd=function(){};GXd.\u0275fac=function(a){return new (a||GXd)};GXd.\u0275mod=$e({type:GXd});GXd.\u0275inj=Dc({imports:[pB,FN,D2,ZA,FXd]});var $Rb="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(" "),
HXd="priority type title assignee status sevenDayViewCount issueId modifiedTime".split(" ");var xu=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)};xu.prototype.toString=function(){return this.isCustomField?"customfield:"+this.name+"["+this.fullLabel+"]":this.name};
var fSb={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 IXd=function(a,b,c){this.target=a;this.eventType=b;this.listener=c;this.target.addEventListener(this.eventType,this.listener)};IXd.prototype.off=function(){this.target.removeEventListener(this.eventType,this.listener)};var JXd=function(){this.bindings=[]};JXd.prototype.off=function(){for(var a=l(this.bindings),b=a.next();!b.done;b=a.next())b.value.off()};
var KXd=function(a){var b=this;this.params=a;this.mask=document.createElement("div");this.eventBindings=new JXd;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};
KXd.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(){LXd(a,"dragstart",a.onDragTargetDragstart);LXd(a,"dragenter",a.onDragTargetDragenter);LXd(a,"dragend",a.onDragTargetDragend);LXd(a,"selectstart",a.onDragTargetSelectstart);a.eventBindings.bindings.push(new IXd(a.mask,"dragleave",a.onMaskDragLeave));
a.eventBindings.bindings.push(new IXd(a.mask,"dragover",a.onMaskDragover));a.eventBindings.bindings.push(new IXd(a.mask,"drop",a.onMaskDrop))})};var LXd=function(a,b,c){a.eventBindings.bindings.push(new IXd(a.element,b,tq("th.drag-target",c)))};KXd.prototype.tearDown=function(){this.eventBindings.off()};var o3=function(){};o3.prototype.getValue=function(){return this.row[this.column.name]||""};o3.prototype.isCustomField=function(){return this.column.isCustomField};o3.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 Gm(this.customFieldValue,a)||(this.customFieldValue=a),this.customFieldValue};
o3.\u0275fac=function(a){return new (a||o3)};o3.\u0275cmp=C({type:o3,selectors:[["pop-grid-default-cell"]],inputs:{row:"row",column:"column"},decls:2,vars:2,consts:[[3,"customFieldValue"]],template:function(a,b){a&1&&(F(0,gSb,2,2,"span"),F(1,hSb,1,1,"b-custom-field-value-display",0));a&2&&(G(b.isCustomField()?-1:0),B(),G(b.isCustomField()?1:-1))},dependencies:[E2],encapsulation:2,changeDetection:0});var p3=function(){this.columnLabel=this.columnName="";this.defaultSortDirection="ASC";this.sortChanged=new KO};p3.prototype.ariaLabel=function(){var a=this.columnLabel+", sortable";return this.isActive()?this.sort.direction==="ASC"?a+", sorted ascending":a+", sorted descending":a};p3.prototype.isActive=function(){return!!this.sort&&this.sort.field===this.columnName};
p3.prototype.activate=function(){var a=this.defaultSortDirection;this.isActive()&&(a=this.sort.direction==="ASC"?"DESC":"ASC");this.sortChanged.emit({field:this.columnName,direction:a})};p3.\u0275fac=function(a){return new (a||p3)};
p3.\u0275cmp=C({type:p3,selectors:[["b-sortable-header"]],inputs:{columnName:"columnName",columnLabel:"columnLabel",sort:"sort",defaultSortDirection:"defaultSortDirection"},outputs:{sortChanged:"sortChanged"},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&&(Sf(0,"div",0),eg("click",function(){return b.activate()})("keydown.enter",function(c){b.activate();return c.stopPropagation()})("keydown.space",
function(c){b.activate();return c.stopPropagation()}),Uf(1,"span",1),S(2),Tf());a&2&&(yg("current-sort",b.isActive())("direction-asc",b.isActive()&&b.sort.direction==="ASC")("direction-desc",b.isActive()&&b.sort.direction==="DESC"),Jf("aria-label",b.ariaLabel()),B(2),T(" ",b.columnLabel," "))},encapsulation:2});var MXd=["table"],NXd=["defaultHeaderCellTemplate"],OXd=["defaultViewCellTemplate"],PXd=["dataRows"],kSb=function(a){return{column:a}},nSb=function(a,b,c){return{row:a,column:b,index:c}},pSb=function(a,b){return b.name},rSb=function(a,b){return b.id},q3=function(){var a=this;this.activeSession=q(Zu);this.ngZone=q(Tg);this.headerCellTemplates={};this.viewCellTemplates={};this.list=[];this.columns=[];this.columnsChange=new KO;this.rowClick=new KO;this.rowLabelRenderer=function(b,c){return"Row "+c};
this.sortChange=new KO;this.focusedRowIndexChange=new KO;this.afterViewInit=new KO;this.enableDragDropHeader=!0;this.hoveredRowIndex=new KO;this.readUnreadOptOut=this.activeSession.getFlag("readUnreadOptOut");this.onDragDropColumn=function(b,c){var d=[].concat(n(a.columns));b=d.splice(b,1)[0];d.splice(c,0,b);a.columns=d;a.columnsChange.emit([].concat(n(a.columns)))};this.onTdClickableClick=tq("td.clickable",function(b,c){if((b.type!=="mouseup"||b.button===1)&&!byd(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})}})};q3.prototype.ngOnInit=function(){this.enableDragDropHeader&&QXd(this);this.tableElement.nativeElement.addEventListener("click",this.onTdClickableClick);this.tableElement.nativeElement.addEventListener("mouseup",this.onTdClickableClick)};
var QXd=function(a){a.dragDropHeaderLogic=new KXd({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()};
q3.prototype.ngOnChanges=function(a){if(a=a.focusedRowIndex){var b=a.currentValue;b!=null&&b!==a.previousValue&&this.dataRows&&(a=this.dataRows.toArray()[b])&&(mbb(a.nativeElement)||a.nativeElement.scrollIntoView({block:"center"}),this.focus())}};q3.prototype.ngAfterViewInit=function(){this.afterViewInit.emit(this)};
q3.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 RXd=function(a){return a.columns.map(function(b){b=b.name;return b!=null?a.viewCellTemplates[b]||a.defaultViewCellTemplate:a.defaultViewCellTemplate})};q3.prototype.renderRowLabel=function(a,b){return this.rowLabelRenderer(a,b)};
q3.prototype.focus=function(){if(this.focusedRowIndex!=null&&this.dataRows!=null){var a=this.dataRows.toArray()[this.focusedRowIndex];a&&a.nativeElement.focus()}};q3.prototype.getColumnIndexForElement=function(a){var b=a.dataset.dragTargetColumnName;return this.columns.findIndex(function(c){return c.name===b})};q3.\u0275fac=function(a){return new (a||q3)};
q3.\u0275cmp=C({type:q3,selectors:[["pop-grid"]],viewQuery:function(a,b){a&1&&(kg(MXd,7),kg(NXd,7),kg(OXd,7),kg(PXd,5,Gd));if(a&2){var c;og(c=pg())&&(b.tableElement=c.first);og(c=pg())&&(b.defaultHeaderCellTemplate=c.first);og(c=pg())&&(b.defaultViewCellTemplate=c.first);og(c=pg())&&(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",hoveredRowIndex:"hoveredRowIndex"},features:[Gx],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","mouseover","mouseleave"],
[3,"column"],[3,"row","column"]],template:function(a,b){if(a&1){var c=t();K(0,"table",4,0);N("mousedown",function(e){u(c);e.shiftKey&&window.getSelection().removeAllRanges();return v()});K(2,"colgroup");Pf(3,iSb,1,3,"col",5,pSb);L();K(5,"thead")(6,"tr",6);Pf(7,lSb,1,4,"ng-container",null,pSb);L()();K(9,"tbody");F(10,sSb,2,0);L()();E(11,tSb,2,1,"ng-template",null,1,Og)(13,uSb,2,2,"ng-template",null,2,Og)}if(a&2){var d;B(3);Qf(b.columns);B(4);Qf(b.columns);B(3);G((d=RXd(b))?10:-1,d)}},dependencies:function(){return[oy,
o3,r3]},encapsulation:2});var SXd=function(){this.templateRef=q(hg);this.popGrid=q(q3)};SXd.prototype.ngOnInit=function(){this.forHeaderCell&&(this.popGrid.headerCellTemplates[this.forHeaderCell]=this.templateRef)};SXd.\u0275fac=function(a){return new (a||SXd)};SXd.\u0275dir=af({type:SXd,selectors:[["","forHeaderCell",""]],inputs:{forHeaderCell:"forHeaderCell"}});var TXd=function(){this.templateRef=q(hg);this.popGrid=q(q3)};
TXd.prototype.ngOnInit=function(){this.forViewCell&&(this.popGrid.viewCellTemplates[this.forViewCell]=this.templateRef)};TXd.\u0275fac=function(a){return new (a||TXd)};TXd.\u0275dir=af({type:TXd,selectors:[["","forViewCell",""]],inputs:{forViewCell:"forViewCell"}});var UXd=function(){this.templateRef=q(hg);this.popGrid=q(q3)};UXd.prototype.ngOnInit=function(){this.popGrid.defaultHeaderCellTemplate=this.templateRef};UXd.\u0275fac=function(a){return new (a||UXd)};
UXd.\u0275dir=af({type:UXd,selectors:[["","forHeaderCellDefault",""]]});var r3=function(){this.elementRef=q(Gd);this.grid=q(q3,{optional:!0})};
r3.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}}};r3.prototype.ngOnDestroy=function(){this.cellParent&&delete this.cellParent.dataset.dragTargetColumnName};
r3.\u0275fac=function(a){return new (a||r3)};
r3.\u0275cmp=C({type:r3,selectors:[["pop-grid-default-th"]],inputs:{column:"column"},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&&(K(0,"div",0),F(1,vSb,1,5,"b-sortable-header",1)(2,xSb,3,3,"div",2),L());a&2&&(B(),G(b.column.sortable?
1:2))},dependencies:[hK,MA,p3],encapsulation:2});var VXd=function(){return{before:!1}},WXd=function(){return{before:!0}},ESb=function(a,b){return{columns:a,before:b}},s3=function(){LO.call(this);var a=this;this.matDialog=q(gB);this.userPreferencesManager=q(VP);this.butterBar=q(JM);this.analytics=q(PO);this.hotkeys=q(dT);this.activeSession=q(Zu);this.selectedColumnsChange=new KO;this.onAddTeamColumn=new KO;this.currentAvailableItems=[];this.isRemovable=!0;this.menuOpen=!1;this.listViewPrefs=BM.listViewPreferences;this.userPreferencesManager.preferences$.pipe(Af(this.destroyed$)).subscribe(function(b){a.listViewPrefs=
b.listViewPreferences||BM.listViewPreferences})};Z(s3,LO);s3.\u0275dir=LO.\u0275dir;s3.prototype.ngOnChanges=function(a){a.selectedColumns&&XXd(this)};
var YXd=function(a){a.selectedColumnsChange.emit([].concat(n(a.selectedColumns)));XXd(a)},zSb=function(a,b){var c=Object.assign({},a.listViewPrefs),d=ASb(b),e=d.get;d=d.set;d(c,!e(c));a.activeSession.isAnonymous()||fs(a.butterBar,"Saving display preference...",0);a.userPreferencesManager.save({listViewPreferences:c}).pipe(mf(1),Af(a.destroyed$)).subscribe(function(){a.analytics.trackEvent("preferences","setListViewPref:"+b,e(c).toString());a.listViewPrefs=c;a.activeSession.isAnonymous()||fs(a.butterBar,
"Display preference saved.",4E3)},function(){a.activeSession.isAnonymous()||a.butterBar.showWarning("Display preference could not be saved.")})},HSb=function(a,b){a.hotkeys.pause();eB(a.matDialog.open(FXd,{data:{column:a.column,columns:a.selectedColumns},position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})).pipe(Af(a.destroyed$)).subscribe({next:function(c){c&&a.add(c,b)},error:function(){a.hotkeys.unpause()},complete:function(){a.hotkeys.unpause()}})},XXd=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!yva(b,f.name)});c=[].concat(n(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(g){return g.parentLabel===f})}});d=e.filter(function(f){return!f.parentLabel});a.currentAvailableItems=[].concat(n(d),n(c));a.currentAvailableItems.sort(function(f,g){return wa(f instanceof xu?f.fullLabel:
f.label,g instanceof xu?g.fullLabel:g.label)});a.isRemovable=ZXd(a)};s3.prototype.isIssueGridColumn=function(a){return a instanceof xu};s3.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,YXd(this),!0}return!1};
s3.prototype.add=function(a,b){var c=this;this.menuTrigger.closeMenu();a="customFieldId"in a&&a.customFieldId?new xu({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(n(this.selectedColumns));this.selectedColumns.splice(b,0,a);YXd(this);return!0};
var ZXd=function(a){return a.selectedColumns.filter(function(b){return!b.isMetadata}).length>1};s3.\u0275fac=function(a){return new (a||s3)};
s3.\u0275cmp=C({type:s3,selectors:[["b-column-picker"]],viewQuery:function(a,b){a&1&&kg(OF,5);if(a&2){var c;og(c=pg())&&(b.menuTrigger=c.first)}},inputs:{column:"column",availableColumns:"availableColumns",selectedColumns:"selectedColumns"},outputs:{selectedColumnsChange:"selectedColumnsChange",onAddTeamColumn:"onAddTeamColumn"},features:[Ff,Gx],decls:21,vars:12,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","aria-label"],["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=t();K(0,"div",4)(1,"div",5);M(2,"pop-grid-default-th",6);L();F(3,ySb,2,5,"div",7);K(4,"mat-menu",8,0);Pf(6,BSb,4,3,"button",9,Of);F(8,CSb,1,0,"mat-divider");K(9,"button",10);N("click",function(){u(c);return v(b.remove())});S(10," Remove column ");L();K(11,"button",11);S(12," Add column right ");L();K(13,"button",11);S(14," Add column left ");L()();K(15,"mat-menu",null,1);E(17,ISb,5,0,"ng-template",12);L();K(18,"mat-menu",null,2);E(20,KSb,2,0,
"ng-template",12);L()()}a&2&&(a=Q(16),B(2),I("column",b.column),B(),G(3),B(3),Qf(b.column.moreOptions),B(2),G(b.column.moreOptions.length?8:-1),B(),If("aria-label",Gg("Remove ",b.column.fullLabel," column")),I("disabled",!b.isRemovable),B(2),I("matMenuTriggerFor",a)("matMenuTriggerData",Jg(10,VXd)),B(2),I("matMenuTriggerFor",a)("matMenuTriggerData",Jg(11,WXd)))},dependencies:[OJ,NJ,LF,JF,KF,OF,hK,hS,XJ,MA,r3],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 bYd=function(a){var b=this;this.params=a;this.element=this.params.nativeElement;this.dropzone=document.createElement("div");this.onTdDragStart=tq("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=tq("tr",function(c,d){if(b.draggedRow&&b.dragTargetRow!==d&&d.closest("tbody")&&
d!==b.draggedRow){$Xd(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=tq("tr",function(){b.draggedRow&&($Xd(b.draggedRow),$Xd(b.dragTargetRow),b.draggedRow.setAttribute("aria-grabbed",
"false"),b.draggedRow=b.dragTargetRow=void 0)});this.onTrDragLeave=tq("tr",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragEnter=tq(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragLeave=tq(".row-dropzone",function(c){$Xd(b.dragTargetRow);aYd(b);c.stopPropagation();c.preventDefault()});this.onDropzoneDragOver=tq(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDrop=tq(".row-dropzone",function(c){aYd(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()})};
bYd.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");aYd(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)})};
bYd.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 $Xd=function(a){a&&(a.classList.remove("drag-over"),a.classList.remove("above"),a.classList.remove("below"),a.classList.remove("dragging"))},aYd=function(a){a.dropzone.style.display="none"};var t3=function(){this.userPreferencesManager=q(VP);this.isParentRowActive=!1;this.onClick=new KO;this.density$=this.userPreferencesManager.preferences$.pipe(A(function(a){var b;return(b=a.themePreferences)==null?void 0:b.density}));this.useSmallIcon$=this.density$.pipe(A(function(a){return a!=="COMFORTABLE"}))};t3.prototype.handleClick=function(){this.onClick.emit()};t3.prototype.handleKeydown=function(a){if(a.key==="Enter"||a.key===" ")a.preventDefault(),a.stopPropagation(),this.onClick.emit()};
t3.\u0275fac=function(a){return new (a||t3)};
t3.\u0275cmp=C({type:t3,selectors:[["b-sidebar-toggle"]],inputs:{isParentRowActive:"isParentRowActive"},outputs:{onClick:"onClick"},decls:3,vars:4,consts:[["type","button","aria-label","Open issue sidebar","mat-icon-button","",1,"right-panel-toggle",3,"click","keydown"],["svgIcon","right_panel_open_24px",1,"icon-s"]],template:function(a,b){a&1&&(K(0,"button",0),U(1,"async"),N("click",function(c){return b.handleClick(c)})("keydown",function(c){return b.handleKeydown(c)}),M(2,"mat-icon",1),L());a&2&&
yg("small",W(1,2,b.useSmallIcon$))},dependencies:[ZA,XA,VA,iz,py],encapsulation:2,changeDetection:0});var u3=function(){this.sloStatusHelpersService=q(mR);this.includeObjective=this.includeSloMetric=!1;this.firstOpenSlo=null;this.firstOpenSloMetric=""};u3.prototype.ngOnInit=function(){cYd(this)};u3.prototype.ngOnChanges=function(a){(a.sloStatus||a.includeSloMetric)&&cYd(this)};var cYd=function(a){var b=Dtd(a.sloStatus);b?(a.firstOpenSlo=b.sloBounds,a.includeSloMetric?a.firstOpenSloMetric=b.sloMetric:a.firstOpenSloMetric=""):(a.firstOpenSlo=null,a.firstOpenSloMetric="")};
u3.\u0275fac=function(a){return new (a||u3)};
u3.\u0275cmp=C({type:u3,selectors:[["b-aggregated-slo-status-indicator"]],inputs:{sloStatus:"sloStatus",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",includeSloMetric:"includeSloMetric",includeObjective:"includeObjective"},features:[Gx],decls:1,vars:5,consts:[[3,"sloBounds","sloMetricDescription","sloStartTime","sloEndTime","includeObjective"]],template:function(a,b){a&1&&M(0,"b-slo-time-indicator",0);a&2&&I("sloBounds",b.firstOpenSlo)("sloMetricDescription",b.firstOpenSloMetric)("sloStartTime",
b.sloStartTime)("sloEndTime",b.sloEndTime)("includeObjective",b.includeObjective)},dependencies:[l3],encapsulation:2,changeDetection:0});var dYd=function(){};dYd.\u0275fac=function(a){return new (a||dYd)};dYd.\u0275cmp=C({type:dYd,selectors:[["archived-issue-indicator"]],decls:3,vars:0,consts:[["aria-hidden","true","svgIcon","archive_24px"]],template:function(a){a&1&&(K(0,"span"),M(1,"mat-icon",0),S(2,"Archived "),L())},dependencies:[iz],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 eYd=function(){};eYd.\u0275fac=function(a){return new (a||eYd)};eYd.\u0275mod=$e({type:eYd});eYd.\u0275inj=Dc({imports:[FN,dYd]});var v3=function(){this.activeSession=q(Zu);this.appSearchState=q(gS);this.searchQuery$=this.appSearchState.queryState$.pipe(A(function(a){return a.query||void 0}));this.showInactiveWarning$=this.activeSession.getFlag("enableInactiveFeatures")&&this.activeSession.isInternalSession()?this.searchQuery$.pipe(A(function(a){return!(a==null||!a.includes("status:open"))&&!(a==null?0:a.includes("status:inactive"))})):be(!1)};v3.\u0275fac=function(a){return new (a||v3)};
v3.\u0275cmp=C({type:v3,selectors:[["b-inactive-issues-search-warning"]],decls:2,vars:3,consts:[[1,"margin-top","padded","text-center"],[1,"italic"],["href","http://go/buganizer/concepts/inactive-issues",1,"hover-link"]],template:function(a,b){a&1&&(F(0,LSb,10,0,"div",0),U(1,"async"));a&2&&G(W(1,1,b.showInactiveWarning$)?0:-1)},dependencies:[FN,py],encapsulation:2,changeDetection:0});var fYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(fYd,X);fYd.prototype.getIssueId=function(){return Hn(this,1)};fYd.prototype.getIssueId_asString=function(){return Ln(this,1)};fYd.prototype.setIssueId=function(a){return ap(this,1,a)};var gYd=function(a){return cn(a,2,2)};var hYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(hYd,X);var iYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,iYd.messageId)};Z(iYd,X);iYd.prototype.getIt=function(){return Y(this,hYd,2,fb)};iYd.prototype.setIt=function(a){return hj(this,hYd,2,a,fb)};iYd.messageId="b.ListStatusUpdateHistoryResponse";var w3=function(){this.executor=q(RM)};w3.prototype.update=function(a){var b=this.executor,c=b.post,d="action/issues/"+a.issueId+"/statusUpdate";a=(new iO).setIt(zZa(a));return c.call(b,{url:d,body:a,responseConstructor:iO}).pipe(A(h3a))};w3.prototype.delete=function(a){return this.executor.delete({url:"action/issues/"+a+"/statusUpdate",responseConstructor:null})};
var jYd=function(a,b){var c=gYd((new fYd).setIssueId(Number(b)));return a.executor.post({url:"action/issues/"+b+"/listStatusUpdates",body:c,responseConstructor:iYd}).pipe(A(function(d){d=d.getIt();return Wi(d,Pp,1,Xi()).map(yZa)}))};w3.\u0275fac=function(a){return new (a||w3)};w3.\u0275prov=Cc({token:w3,factory:w3.\u0275fac,providedIn:"root"});var kYd=function(a){return[a]},x3=function(){var a=this;this.matDialog=q(gB);this.router=q(CF);this.destroyRef=q(Be);this.router.events.pipe(te(function(b){return b instanceof ck}),oj(this.destroyRef)).subscribe(function(){var b;(b=a.dialog)==null||b.close();a.dialog=void 0})};
x3.prototype.show=function(a,b,c){var d=this,e,f;return y(function(g){if(g.nextAddress==1)return d.dialog&&(d.dialog.close(),d.dialog=void 0),a.formattingMode==="LITERAL"&&(a.formattingMode="PLAIN"),e={width:"60vw",disableClose:!0,closeOnNavigation:!1,panelClass:"no-jitter",data:{componentId:c,formattingAudience:b,statusUpdate:a}},d.dialog=d.matDialog.open(y3,e),z(g,ee(eB(d.dialog)),2);f=g.yieldResult;d.dialog=void 0;return g.return(f)})};x3.\u0275fac=function(a){return new (a||x3)};
x3.\u0275prov=Cc({token:x3,factory:x3.\u0275fac,providedIn:"root"});var z3=function(){this.userPreferencesManager=q(VP)},lYd=function(a,b){var c;return y(function(d){return d.nextAddress==1?(c=b,z(d,ee(a.userPreferencesManager.currentCommentFormattingMode$),2)):d.return({issueId:c,updateText:"",version:-1,formattingMode:d.yieldResult})})};z3.\u0275fac=function(a){return new (a||z3)};z3.\u0275prov=Cc({token:z3,factory:z3.\u0275fac,providedIn:"root"});
var y3=function(){LO.apply(this,arguments);this.activeSession=q(Zu);this.checkBeforeExit=q(HX);this.data=q(fB);this.dialogService=q(x3);this.dialogRef=q(dB);this.bannedWordsChecker=q(AW);this.CHAR_LIMIT=2E3;this.FormattingMode=fo;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=Hm(this.origStatusUpdate)};Z(y3,LO);y3.\u0275dir=LO.\u0275dir;var mYd=function(a){var b,c;return(c=N9a((b=a.newStatusUpdate)==null?void 0:b.updateText))!=null?c:""};h=y3.prototype;h.ngOnInit=function(){var a=this;this.subscriptions.add(IX(this.checkBeforeExit,function(){return a.isModified()},!1));this.dialogRef.keydownEvents().pipe(Af(this.destroyed$)).subscribe(function(b){b.key==="Escape"&&a.closeIfUnmodified()});this.dialogRef.backdropClick().pipe(Af(this.destroyed$)).subscribe(function(){a.closeIfUnmodified()})};
h.closeIfUnmodified=function(){if(!this.isModified()){var a;(a=this.dialogService.dialog)==null||a.close()}};h.isModified=function(){return!Gm(this.newStatusUpdate,this.origStatusUpdate)};h.asNumber=function(a){return Number(a)};
h.closeDialogForSave=function(){var a=this,b,c,d;return y(function(e){if(e.nextAddress==1)return a.isModified()?z(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||gId(c),e.return();(d=a.dialogService.dialog)==null||d.close(a.newStatusUpdate);$d(e)})};y3.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(y3)))(b||y3)}}();
y3.\u0275cmp=C({type:y3,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&kg(FX,5);if(a&2){var c;og(c=pg())&&(b.commentDraft=c.first)}},features:[Ig([AW]),Ff],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&&(K(0,"h1",0),S(1,"Editing Status Update"),L(),K(2,"section",
1)(3,"p",2),S(4," Editing the Status Update will not permanently remove old ones from database history. "),M(5,"br"),S(6," For deletion of PII or other sensitive content, please "),K(7,"a",3),S(8," file a support request. "),L()(),K(9,"b-comment-draft",4),U(10,"async"),Eg("contentChange",function(c){Dg(b.newStatusUpdate.updateText,c)||(b.newStatusUpdate.updateText=c);return c}),N("contentChange",function(){b.bannedWordsChecker.reset()})("onSubmit",function(){return b.closeDialogForSave()}),L(),F(11,
MSb,2,1,"p",5),F(12,NSb,4,1,"p",6),U(13,"async"),K(14,"b-markdown-toggle",7),N("change",function(c){return b.newStatusUpdate.formattingMode=c}),L(),F(15,OSb,2,4,"div",8),L(),K(16,"footer",9)(17,"button",10),S(18," Cancel "),L(),K(19,"button",11),U(20,"async"),N("click",function(){return b.closeDialogForSave()}),S(21),U(22,"async"),L()());a&2&&(B(7),I("href",b.contentRemovalRequestLink,Me),B(2),zg(mYd(b)),Cg("content",b.newStatusUpdate.updateText),I("textareaClass",Kg(24,kYd,W(10,16,b.bannedWordsChecker.showWarning$)?
"banned-words-warning":""))("isLiteralModeSupported",!1),B(2),G(b.newStatusUpdate.updateText.length>2E3?11:-1),B(),G(W(13,18,b.bannedWordsChecker.showWarning$)?12:-1),B(2),yg("margin-bottom",b.newStatusUpdate.formattingMode!==b.FormattingMode.MARKDOWN),I("initialValue",b.origStatusUpdate.formattingMode),B(),G(b.newStatusUpdate.formattingMode===b.FormattingMode.MARKDOWN?15:-1),B(2),I("mat-dialog-close",void 0),B(2),I("disabled",b.newStatusUpdate.updateText.length===0||b.newStatusUpdate.updateText.length>
2E3||!b.isModified())("color",W(20,20,b.bannedWordsChecker.showWarning$)?"warn":"primary"),B(2),T(" ",W(22,22,b.bannedWordsChecker.showWarning$)?"Save Anyway":"Save"," "))},dependencies:[FX,ZA,XA,TA,fS,YS,mB,hB,lB,kB,py],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 A3=function(){this.feedbackState=new Map};A3.prototype.getKey=function(a,b){return a+"-"+b};var XSb=function(a,b,c){var d;return(d=a.feedbackState.get(a.getKey(b,c)))!=null?d:{hasThumbsUpped:!1,hasThumbsDowned:!1}};A3.prototype.hasFeedbackBeenGiven=function(a,b){a=XSb(this,a,b);return a.hasThumbsUpped||a.hasThumbsDowned};A3.\u0275fac=function(a){return new (a||A3)};A3.\u0275prov=Cc({token:A3,factory:A3.\u0275fac,providedIn:"root"});var B3=function(){var a=this;this.confirmationDialogService=q(PQ);this.contextSensitiveRegistry=q(KP);this.destroyRef=q(Be);this.issueEnrichmentService=q(J0);this.issueEnrichmentFridge=q(zO);this.issuePermissionService=q(NP);this.butterBar=q(JM);this.window=q(ZP);this.insightsActionsService=q(A3);this.enrichmentCategoryFridge=q(eO);this.enrichmentApi=q(iN);this.enrichmentCategory$=be(void 0);this.CATEGORY_INFO_HOVERCARD_CONFIG=Object.assign({},new rm,{position:[sm]});this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(te(ln),
of());this.actionMenuItems$=this.issuePermissionService.hasAclToAdmin$.pipe(A(function(b){var c=[];b&&c.push({type:"action",action:function(){a.showDeleteAttachmentDialog(a.enrichment.category)},label:"Delete insight..."});return c}))};B3.prototype.ngOnInit=function(){this.enrichment.category&&!QRd.includes(this.enrichment.category)&&(this.enrichmentCategory$=this.enrichmentCategoryFridge.watch(this.enrichment.category))};
B3.prototype.hasFeedbackBeenGiven=function(a){return this.insightsActionsService.hasFeedbackBeenGiven(a,this.enrichment.category)};
var nYd=function(a,b){var c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,ee(a.issueId$),2);if(g.nextAddress!=3)return c=g.yieldResult,d=a.window.location.protocol+"//"+a.window.location.hostname+("/issues/"+c+"/insights#insight-"+b),a.window.navigator.clipboard.writeText(d),fs(a.butterBar,"Link copied to clipboard",2E3),e=a.issueEnrichmentService,f=e.logIssueUserEventForIssueEnrichment,z(g,ee(a.issueId$),3);f.call(e,g.yieldResult,"EVENT_TYPE_COPY_DEEP_LINK",b);$d(g)})};
B3.prototype.copyContent=function(){var a=this,b,c,d;return y(function(e){if(e.nextAddress==1)return(c=(b=a.enrichment.general)==null?void 0:b.content)?z(e,ee(a.issueId$),2):e.return();d=e.yieldResult;a.window.navigator.clipboard.writeText(c);fs(a.butterBar,"Content copied to clipboard",2E3);a.issueEnrichmentService.logIssueUserEventForIssueEnrichment(d,"EVENT_TYPE_COPY",a.enrichment.category);$d(e)})};
var VSb=function(a){var b,c;return y(function(d){if(d.nextAddress==1)return b=a.enrichment.category,z(d,ee(a.issueId$),2);c=d.yieldResult;if(a.insightsActionsService.hasFeedbackBeenGiven(c,b))return d.return();a.issueEnrichmentService.logIssueUserEventForIssueEnrichment(c,"EVENT_TYPE_THUMBS_UP",b);var e=a.insightsActionsService;e.feedbackState.set(e.getKey(c,b),{hasThumbsUpped:!0,hasThumbsDowned:!1});$d(d)})},WSb=function(a){var b,c;return y(function(d){if(d.nextAddress==1)return b=a.enrichment.category,
z(d,ee(a.issueId$),2);c=d.yieldResult;if(a.insightsActionsService.hasFeedbackBeenGiven(c,b))return d.return();a.issueEnrichmentService.logIssueUserEventForIssueEnrichment(c,"EVENT_TYPE_THUMBS_DOWN",b);var e=a.insightsActionsService;e.feedbackState.set(e.getKey(c,b),{hasThumbsUpped:!1,hasThumbsDowned:!0});$d(d)})};
B3.prototype.showDeleteAttachmentDialog=function(a){var b=this,c;y(function(d){if(d.nextAddress==1)return z(d,ee(b.issueId$),2);c=d.yieldResult;b.confirmationDialogService.open({title:"Delete Insight",content:Dh("You are about to delete insight '"+a+"' on issue "+c+". This action cannot be undone."),onConfirm:function(){qkd(b.enrichmentApi,c,a).pipe(oj(b.destroyRef)).subscribe(function(){b.issueEnrichmentService.logIssueUserEventForIssueEnrichment(c,"EVENT_TYPE_DELETE",b.enrichment.category);b.issueEnrichmentFridge.poke(c)})}});
$d(d)})};B3.\u0275fac=function(a){return new (a||B3)};
B3.\u0275cmp=C({type:B3,selectors:[["insights-actions"]],inputs:{enrichment:"enrichment"},decls:13,vars:11,consts:[["categoryInfoCard","onedevHovercard"],["type","button","mat-icon-button","","matTooltip","Copy insight content","aria-label","copy insight content",1,"small","copy-content"],["type","button","mat-icon-button","","matTooltip","Copy link","aria-label","copy link to insight",1,"small","copy-link",3,"click"],["svgIcon","link",1,"icon-s"],"href http://goto.corp.google.com/buganizer-insights-feedback target _blank tabindex -1".split(" "),
["type","button","mat-icon-button","","aria-label","send feedback",1,"small"],["svgIcon","feedback-outline",1,"icon-s"],["buttonLabel","Insights actions","buttonSize","small","matTooltip","Insights actions",3,"menuItems"],["mat-icon-button","","aria-label","info about this insight category",1,"small","info",3,"onedevHovercardTrigger","onedevHovercardActive","onedevHovercardConfig"],["svgIcon","info",1,"icon-s"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hovertext"],["type","button",
"mat-icon-button","","matTooltip","Copy insight content","aria-label","copy insight content",1,"small","copy-content",3,"click"],["svgIcon","copy",1,"icon-s"],["type","button","mat-icon-button","","aria-label","thumb up",1,"small","thumbs-up",3,"click","disabled"],["svgIcon","thumb_up_filled_24px",1,"icon-s","primary"],["svgIcon","thumb_up_24px",1,"icon-s"],["type","button","mat-icon-button","","aria-label","thumb down",1,"small","thumbs-down",3,"click","disabled"],["svgIcon","thumb_down_filled_24px",
1,"icon-s","primary"],["svgIcon","thumb_down_24px",1,"icon-s"]],template:function(a,b){if(a&1){var c=t();F(0,PSb,11,5);U(1,"async");F(2,QSb,2,0,"button",1);K(3,"button",2);N("click",function(){u(c);return v(nYd(b,b.enrichment.category))});M(4,"mat-icon",3);L();F(5,YSb,6,4);U(6,"async");K(7,"a",4)(8,"button",5);M(9,"mat-icon",6);L()();bg(10);U(11,"async");F(12,ZSb,1,1,"b-actions-menu",7)}if(a&2){var d,e;G((d=W(1,4,b.enrichmentCategory$))?0:-1,d);B(2);G((b.enrichment.general==null?0:b.enrichment.general.content)?
2:-1);B(3);G((e=W(6,6,b.issueId$))?5:-1,e);B(5);a=cg(W(11,8,b.actionMenuItems$));B(2);G(a&&a.length>0?12:-1)}},dependencies:[UY,ZA,XA,VA,hK,AK,uK,zK,iz,MA,py],styles:[".primary[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}"],changeDetection:0});var oYd=["commentPresenter"],mTb=function(){return[]},lTb=function(a,b){return b.category},C3=function(){var a=this;this.activeSession=q(Zu);this.activatedRoute=q(Wj);this.analytics=q(PO);this.cdr=q(MO,{self:!0});this.destroyRef=q(Be);this.router=q(CF);this.scrolledOnScreenService=q(mT);this.issueEnrichmentService=q(J0);this.contextSensitiveRegistry=q(KP);this.initiallyCollapsed=!1;this.loggedViewEnrichments=new Set;this.loggedImpressionEnrichments=new Set;this.shouldTruncate=!1;this.isTruncated=
!0;this.enrichments$=this.issueEnrichmentService.issueEnrichments$.pipe(Bf(function(b){a.logImpressions(b)}),wf({bufferSize:1,refCount:!0}));this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(te(ln),of());this.shouldShowInsights$=this.enrichments$.pipe(A(function(b){return a.activeSession.isInternalSession()&&b.length>0}));this.tabKeys$=this.enrichments$.pipe(A(function(b){return b.map(function(c){return c.displayName})}));this.manualSelectedTab$=new Xj(null);this.initialExpandedTab$=this.enrichments$.pipe(A(function(b){if(a.initiallyCollapsed)return[];
var c=Lo("insights-lastExpanded")();if(c==="HIDDEN")return[];var d=b.find(function(e){return e.category===c});return d?[d.displayName]:b.length>0?[b[0].displayName]:[]}),mf(1));this.expandedTab$=he([this.initialExpandedTab$,this.manualSelectedTab$]).pipe(A(function(b){var c=l(b);b=c.next().value;return(c=c.next().value)?c:b}));this.currentEnrichment$=he([this.enrichments$,this.expandedTab$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;if(c.length!==0){var d=c[0];return b.find(function(e){return e.displayName===
d})}}),wf({bufferSize:1,refCount:!0}))};C3.prototype.ngAfterViewInit=function(){var a=this;this.tabKeys$.pipe(mf(1),oj(this.destroyRef)).subscribe(function(){bTb(a)});this.destroyRef.onDestroy(function(){var b;(b=a.onScreenSubscription)==null||b.unsubscribe()})};var bTb=function(a){setTimeout(function(){var b;a.shouldTruncate=((b=a.commentPresenter)==null?void 0:b.nativeElement.scrollHeight)>84;a.cdr.markForCheck();a.maybeSetupOnScreenDetection()},0)};
C3.prototype.maybeSetupOnScreenDetection=function(){var a=this,b,c,d,e,f,g,k,m;y(function(r){if(r.nextAddress==1)return(b=a.onScreenSubscription)==null||b.unsubscribe(),a.onScreenSubscription=void 0,d=(c=a.commentPresenter)==null?void 0:c.nativeElement,d?(e=!a.shouldTruncate||a.shouldTruncate&&!a.isTruncated)?z(r,ee(a.expandedTab$),3):r.jumpTo(0):r.return();if(r.nextAddress!=4)return f=r.yieldResult,f.length===0?r.return():z(r,ee(a.currentEnrichment$),4);g=r.yieldResult;if(!g)return r.return();k=
g.category;if(a.loggedViewEnrichments.has(k))return r.return();m=g.issueId;a.onScreenSubscription=ayd(a.scrolledOnScreenService,d,{emitOnPartial:!0,durationOnScreenMs:3E3}).pipe(mf(1),oj(a.destroyRef)).subscribe(function(){a.issueEnrichmentService.logIssueUserEventForIssueEnrichment(m,"EVENT_TYPE_VIEW",k);a.loggedViewEnrichments.add(k)});$d(r)})};
var jTb=function(a){var b,c,d,e;y(function(f){if(f.nextAddress==1)return z(f,ee(a.currentEnrichment$),2);b=f.yieldResult;e=(d=(c=b)==null?void 0:c.category)!=null?d:"HIDDEN";ajd("insights-lastExpanded")(e);$d(f)})};
C3.prototype.logImpressions=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b.category;this.loggedImpressionEnrichments.has(c)||(this.loggedImpressionEnrichments.add(c),this.issueEnrichmentService.logIssueUserEventForIssueEnrichment(b.issueId,"EVENT_TYPE_IMPRESSION",c))}};
var kTb=function(a,b){var c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:return a.analytics.trackEvent("insightsTab","click"),c=["insights"],d={relativeTo:a.activatedRoute},e=!!a.router.url.match("/issues/[0-9]+"),e||(c=[zs.viewIssue.makeHref(b),"insights"],d={}),z(k,ee(a.expandedTab$),2);case 2:f=k.yieldResult;if(!(f.length>0)){k.jumpTo(3);break}return z(k,ee(a.currentEnrichment$),4);case 4:if(g=k.yieldResult)d.fragment="insight-"+g.category;case 3:return z(k,a.router.navigate(c,d),
0)}})};C3.\u0275fac=function(a){return new (a||C3)};
C3.\u0275cmp=C({type:C3,selectors:[["b-insights-enrichments"]],viewQuery:function(a,b){a&1&&kg(oYd,5,Gd);if(a&2){var c;og(c=pg())&&(b.commentPresenter=c.first)}},inputs:{initiallyCollapsed:"initiallyCollapsed"},features:[Ig([MO])],decls:4,vars:3,consts:[["commentPresenter",""],[1,"container","carded","margin-top-none","bg-main","gradient-border-left","padded-s-y"],["svgIcon","info_spark_24px",1,"icon-m","spark"],["ariaLabel","Insights for this issue",1,"grow-1","flex-hemmed",3,"showMultiple","showIcons",
"tabKeys","expandedTabs"],["ariaLabel","Insights for this issue",1,"grow-1","flex-hemmed",3,"expandedTabsChanged","showAllClicked","showMultiple","showIcons","tabKeys","expandedTabs"],[3,"key","ariaLabel"],["expandable-tab-header",""],["expandable-tab-content",""],[3,"formattedComment","truncated"],[1,"flex-kids-x","margin-xs-top"],["type","button","mat-stroked-button","","color","primary",1,"gmat-button","small","show-more"],[1,"margin-left-auto",3,"enrichment"],[3,"formattedComment"],[3,"contentRendered",
"formattedComment"],["type","button","mat-stroked-button","","color","primary",1,"gmat-button","small","show-more",3,"click"]],template:function(a,b){a&1&&(K(0,"div",1),M(1,"mat-icon",2),F(2,oTb,2,3),U(3,"async"),L());if(a&2){var c;B(2);G((c=W(3,1,b.enrichments$))?2:-1,c)}},dependencies:[iZ,fZ,gZ,jZ,eS,ZA,XA,TA,B3,iz,VS,py],styles:['.truncated[_ngcontent-%COMP%]{max-height:84px;overflow:hidden;mask-image:linear-gradient(to bottom, black 0%, black 70%, transparent 100%)}.show-more[_ngcontent-%COMP%]{max-width:100px}.container[_ngcontent-%COMP%]{display:flex;position:relative}.gradient-border-left[_ngcontent-%COMP%]::before{border-radius:4px 0 0 4px;content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:linear-gradient(180deg, var(--insights-purple) 0%, var(--insights-pink) 100%);z-index:1}.mat-icon.spark[_ngcontent-%COMP%]{fill:var(--insights-purple);flex-shrink:0}expandable-tabs[_ngcontent-%COMP%]{margin-left:4px}'],
changeDetection:0});var D3=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(D3,X);D3.prototype.setContextsList=function(a){return Ax(this,1,a)};D3.prototype.addContexts=function(a){return wc(this,1,zb,a,void 0,Ab)};D3.prototype.getContexts=function(a){return px(this,1,a)};var pYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(pYd,X);h=pYd.prototype;h.getIssueIdsList=function(){return kx(this,1,1)};h.getIssueIdsList_asString=function(){return mn(this,1)};h.setIssueIdsList=function(a){return Kr(this,1,a)};h.addIssueIds=function(a){return xx(this,1,a)};h.setIssueIds=function(a){wc(this,1,Fb,void 0,a,Kb,void 0,1)};var qYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(qYd,X);qYd.prototype.getWorkspaceId=function(){return Hn(this,1)};qYd.prototype.getWorkspaceId_asString=function(){return Ln(this,1)};qYd.prototype.getType=function(){return Ri(this,2)};qYd.prototype.setType=function(a){return cn(this,2,a)};var rYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(rYd,X);rYd.prototype.getTypedWorkspaceIdsList=function(){return Wi(this,qYd,1,Xi())};rYd.prototype.getIterationIdsList_asString=function(){return mn(this,2)};var sYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(sYd,X);h=sYd.prototype;h.getIterationId_asString=function(){return Ln(this,1)};h.getWorkspaceId=function(){return Hn(this,2)};h.getWorkspaceId_asString=function(){return Ln(this,2)};h.getType=function(){return Ri(this,3)};h.setType=function(a){return cn(this,3,a)};h.getName=function(){return Fi(this,4)};h.setName=function(a){return $m(this,4,a)};h.getHotlistId=function(){return Hn(this,7)};
h.setHotlistId=function(a){return ap(this,7,a)};h.getStatus=function(){return Ri(this,8)};h.setStatus=function(a){return cn(this,8,a)};h.getTagsList=function(a){return On(this,9,Xi(a))};h.getTags=function(a){return px(this,9,a)};h.setVelocity=function(a){return Jp(this,11,a)};h.getStartTime=function(){return Y(this,nj,12)};h.setStartTime=function(a){hj(this,nj,12,a)};h.getEndTime=function(){return Y(this,nj,13)};h.setEndTime=function(a){hj(this,nj,13,a)};
h.hasEndTime=function(){return Si(this,nj,13)};h.getEtag=function(){return Fi(this,18)};h.setEtag=function(a){return $m(this,18,a)};var tYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(tYd,X);tYd.prototype.getEmail=function(){return Fi(this,1)};tYd.prototype.setEmail=function(a){return $m(this,1,a)};var uYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(uYd,X);h=uYd.prototype;h.getWorkspaceId=function(){return Hn(this,1)};h.getWorkspaceId_asString=function(){return Ln(this,1)};h.getName=function(){return Fi(this,2)};h.setName=function(a){return $m(this,2,a)};h.getTimeZone=function(){return Y(this,Gr,8)};h.setTimeZone=function(a){return hj(this,Gr,8,a)};h.hasTimeZone=function(){return Si(this,Gr,8)};h.getMembersList=function(){return Wi(this,tYd,9,Xi())};
h.setMembersList=function(a){return ij(this,9,a)};h.getUpdateTime=function(){return Y(this,nj,12)};h.setUpdateTime=function(a){hj(this,nj,12,a)};h.hasUpdateTime=function(){return Si(this,nj,12)};h.getBookmarkGroupId_asString=function(){return Ln(this,14)};h.setBookmarkGroupId=function(a){return ap(this,14,a)};h.getTeamId=function(){return Fi(this,20)};h.setTeamId=function(a){return $m(this,20,a)};var vYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(vYd,X);vYd.prototype.getWorkspacesMap=function(){return sc(this,1,uYd,Pb)};vYd.prototype.getIterationsMap=function(){return sc(this,2,sYd,Pb)};var pTb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(pTb,X);h=pTb.prototype;h.getContextsMap=function(){return sc(this,1,rYd,Rb)};h.getData=function(){return Y(this,vYd,2)};h.setData=function(a){return hj(this,vYd,2,a)};h.clearData=function(){return ex(this,2)};h.hasData=function(){return Si(this,vYd,2)};h.getFilter=function(){return Y(this,D3,3)};h.setFilter=function(a){return hj(this,D3,3,a)};var wYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(wYd,X);var xYd=new DC("/google.internal.devtools.taskflow.partner.v1.TaskFlowPartnerService/BatchGetIssueContexts",pYd,wYd,function(a){return a.serialize()},Hi(wYd));var yYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(yYd,X);h=yYd.prototype;h.getComponentId=function(){return Hn(this,1)};h.getComponentId_asString=function(){return Ln(this,1)};h.setComponentId=function(a){return ap(this,1,a)};h.setTeamIdsList=function(a){return an(this,2,a)};h.setPageSize=function(a){return sn(this,3,a)};h.setPageToken=function(a){return $m(this,4,a)};var zYd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(zYd,X);zYd.prototype.getNextPageToken=function(){return Fi(this,2)};var AYd=new DC("/google.internal.devtools.taskflow.partner.v1.TaskFlowPartnerService/ListWorkspaces",yYd,zYd,function(a){return a.serialize()},Hi(zYd));var BYd=function(a){var b={withCredentials:!0,suppressCorsPreflight:!0};b=b||{};b.format="jspb";this.client_=new ZMc(b);this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};BYd.prototype.listWorkspaces=function(a){return vD(this.client_,this.hostname_+"/$rpc/google.internal.devtools.taskflow.partner.v1.TaskFlowPartnerService/ListWorkspaces",a,{},AYd)};var CYd={},DYd;CYd.Authorization=(DYd=fuc([]))!=null?DYd:"";CYd["X-Goog-Api-Key"]="AIzaSyAVSCxcE30nYSaySrZXBXCTumqIjorZA2c";CYd["X-Goog-AuthUser"]="0";var F3=function(){this.activeSession=q(Zu);this.clientFactory=q(E3);this.client=this.clientFactory.create(this.getServiceEndpoint())};
F3.prototype.listWorkspaces=function(a){var b=this;return this.activeSession.isExternalSession()?be([]):le(function(){var c=b.client;var d=(new pYd).addIssueIds(a);var e=(new D3).addContexts(1);d=hj(d,D3,2,e);return vD(c.client_,c.hostname_+"/$rpc/google.internal.devtools.taskflow.partner.v1.TaskFlowPartnerService/BatchGetIssueContexts",d,CYd||{},xYd)}).pipe(A(qTb(a)),hf(function(){return be([])}))};
F3.prototype.getServiceEndpoint=function(){switch(this.activeSession.getEnvironmentType()){case "NIGHTLY":case "PROD":return"https://taskflowpartner-pa.clients6.google.com";default:return"https://autopush-taskflowpartner-pa-googleapis.sandbox.google.com"}};F3.\u0275fac=function(a){return new (a||F3)};F3.\u0275prov=Cc({token:F3,factory:F3.\u0275fac,providedIn:"root"});var E3=function(){};E3.prototype.create=function(a){return new BYd(a)};E3.\u0275fac=function(a){return new (a||E3)};
E3.\u0275prov=Cc({token:E3,factory:E3.\u0275fac,providedIn:"root"});var EYd=["popOver"],sTb=function(a){return{$implicit:a}},G3=function(){var a=this;this.destroyRef=q(Be);this.disabled=!1;this.displayEditIcon=!0;this.openPopOverOnInit=!1;this.overlayMinWidth=null;this.required=Qg.apply(null,[!1].concat(n([])));this.valueChange=new ui;this.closedWithAction=new ui;this.editing=this.headerFocused=!1;this.editingValue=new VB("",{nonNullable:!0});this.editingValueSignal=qg.apply(null,[""].concat(n([])));this.isInvalid=ah.apply(null,[function(){return a.required()&&a.editingValueSignal()===
""}].concat(n([])));this.onChange=function(){};this.onTouched=function(){}};Z(G3,OT);h=G3.prototype;h.ngOnInit=function(){var a=this;this.required()&&gua(this.editingValue,[vi]);this.editingValue.valueChanges.pipe(oj(this.destroyRef)).subscribe(function(b){a.editingValueSignal.set(b!=null?b:"")})};h.ngAfterViewInit=function(){var a=this;this.openPopOverOnInit&&setTimeout(function(){a.startEditing()})};h.valueChanged=function(){return xTb(this.editingValue.value)!==this.value};
h.startEditing=function(){this.disabled||(this.onTouched(),this.editing=!0,this.editingValue.setValue(this.value!=null?String(this.value):""),this.popOver.open())};h.stopEditing=function(a){this.editing=!1;if((this.required()?this.editingValue.valid:1)&&a===0){this.onChange(this.editingValue.value);var b=xTb(this.editingValue.value);this.value=b;this.valueChange.emit(b);this.closedWithAction.emit(a)}else this.closedWithAction.emit(1)};
h.writeValue=function(a){var b=xTb(a);if(a!=null||this.val!==b)this.val=b,this.editingValue.setValue(a!=null?a:"")};h.isActive=function(){return this.headerFocused||this.editing};h.registerOnChange=function(a){this.onChange=a};h.registerOnTouched=function(a){this.onTouched=a};h.setDisabledState=function(a){this.disabled=a};da.Object.defineProperties(G3.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a!=null?String(a):null)}}});
G3.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(G3)))(b||G3)}}();
G3.\u0275cmp=C({type:G3,selectors:[["onedev-numeric-field"]],viewQuery:function(a,b){a&1&&kg(EYd,7);if(a&2){var c;og(c=pg())&&(b.popOver=c.first)}},inputs:{value:"value",disabled:"disabled",displayEditIcon:"displayEditIcon",labelledById:[0,"aria-labelledby","labelledById"],openPopOverOnInit:"openPopOverOnInit",valueTemplate:"valueTemplate",overlayMinWidth:"overlayMinWidth",required:[1,"required"]},outputs:{valueChange:"valueChange",closedWithAction:"closedWithAction"},standalone:!1,features:[Ig([{provide:KB,
useExisting:Tc(function(){return G3}),multi:!0},{provide:OT,useExisting:Tc(function(){return G3}),multi:!0}]),Ff],decls:11,vars:8,consts:[["anchor",""],["standardValueDisplay",""],["popOver","onedevPopOverEditPanel"],["inputTemplate",""],["type","button","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","minWidth","editorTemplate","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"],["type","number",3,"required","formControl"]],template:function(a,b){if(a&1){var c=t();K(0,"button",4,0);N("click",function(){u(c);return v(b.startEditing())})("focus",function(){u(c);
return v(b.headerFocused=!0)})("blur",function(){u(c);return v(b.headerFocused=!1)});K(2,"span");E(3,tTb,2,4,"ng-container",5)(4,uTb,1,1,"ng-template",null,1,Og);L();E(6,vTb,2,0,"svg",6);L();K(7,"onedev-pop-over-edit-panel",7,2);N("closedWithAction",function(f){u(c);return v(b.stopEditing(f))});L();E(9,wTb,1,3,"ng-template",null,3,Og)}if(a&2){a=Q(1);var d=Q(5),e=Q(10);I("disabled",b.disabled);B(3);I("ngIf",b.valueTemplate)("ngIfElse",d);B(3);I("ngIf",!b.disabled&&b.displayEditIcon);B();I("anchor",
a)("minWidth",b.overlayMinWidth)("editorTemplate",e)("saveDisabled",b.isInvalid())}},dependencies:[jy,oy,xi,YB,PB,hC,uY,bC],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 H3=function(){};H3.\u0275fac=function(a){return new (a||H3)};H3.\u0275mod=$e({type:H3});H3.\u0275inj=Dc({imports:[xy,mC,xY,nC]});var DTb=function(){return[]},I3=function(){this.disabled=this.thinking=!1;this.effortChange=new KO;this.isCompatibleValue=!0;this.fieldName="";this.fieldType="UNKNOWN";this.isNaN=isNaN};
I3.prototype.ngOnChanges=function(){if(this.getFieldType()==="DROPDOWN"){var a;this.effortSpec&&(a=this.effortSpec.enumSpec)!=null&&a.options&&this.effort&&this.effort.estimate?(a=FYd(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=GYd(this)};I3.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=GYd(this);this.effortChange.emit(this.effort)};I3.prototype.getFieldName=function(){return this.effortSpec?this.effortSpec.name||"":this.effort?"Estimate "+this.effort.specId:"Estimate"};
I3.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 GYd=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"&&FYd(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},FYd=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(g){var k;return g.label===((k=a.effort)==null?void 0:k.estimate)}))!=null?f:"incompatible"}};I3.\u0275fac=function(a){return new (a||I3)};
I3.\u0275cmp=C({type:I3,selectors:[["b-estimated-effort-row"]],inputs:{thinking:"thinking",effort:"effort",effortSpec:"effortSpec",disabled:"disabled"},outputs:{effortChange:"effortChange"},features:[Gx],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&&(F(0,GTb,15,5,"onedev-edit-field"),E(1,JTb,2,1,"ng-template",null,0,Og));a&2&&G(b.effortSpec?0:-1)},dependencies:[JY,AY,QLd,BY,AK,uK,zK,iz,H3,G3,WT,PT],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 J3=function(){this.staffingDialogService=q(c3);this.tooltipText=this.staffingSummary=this.staffingPlaceholderSummary=this.staffingUserSummary=""};
J3.prototype.ngOnChanges=function(){var a,b,c=(b=(a=this.staffing)==null?void 0:a.plannedAllocations)!=null?b:[];a=new Set(c.filter(function(d){return!!d.user}).map(function(d){return Fo(d)}));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"?or[e]:"Other")});b=c.length?c.join(", "):"0";this.staffingUserSummary=a.size?"Users: "+a.size:"";this.staffingPlaceholderSummary=c.length?"Placeholders: "+b:"";
this.staffingSummary=this.staffingUserSummary+(" - "+this.staffingPlaceholderSummary);this.tooltipText="View"+(this.isAllowedToEdit?" or edit":"")+" staffing"};var HYd=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)};J3.\u0275fac=function(a){return new (a||J3)};
J3.\u0275cmp=C({type:J3,selectors:[["b-staffing-row"]],inputs:{staffing:"staffing",issueId:"issueId",isAllowedToEdit:"isAllowedToEdit"},features:[Gx],decls:25,vars:6,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=t();K(0,"div")(1,"div",2)(2,"div",3);N("keydown.enter",function(){u(c);return v(HYd(b))})("keyup.space",
function(){u(c);return v(HYd(b))})("keydown.space",function(d){u(c);return v(d.preventDefault())});K(3,"div",4)(4,"label");S(5," Staffing ");L()();K(6,"div",5,0);N("click",function(){u(c);return v(HYd(b))});K(8,"div",6);F(9,KTb,1,0)(10,LTb,4,2);L();K(11,"div",7);M(12,"mat-icon",8);L()()()();K(13,"onedev-hovercard",null,1)(15,"div",9)(16,"div",10)(17,"div");S(18," Use the Staffing field to represent planned contributors on this issue. ");L();M(19,"br");K(20,"div");S(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. ");
L();M(22,"br");K(23,"a",11);S(24," Learn more ");L()()()()()}a&2&&(a=Q(14),B(2),Jf("aria-label","Staffing: "+b.staffingSummary)("aria-disabled",!1),B(),I("onedevHovercardTrigger",a),B(3),I("matTooltip",Fg(b.tooltipText)),B(3),G(b.staffingUserSummary||b.staffingPlaceholderSummary?10:9))},dependencies:[hK,AK,uK,zK,iz,MA],styles:[".staffing-summaries[_ngcontent-%COMP%]{flex-direction:column}/*# sourceMappingURL=staffing_row.css.map */"],changeDetection:0});var K3=function(){LO.apply(this,arguments);var a=this;this.userPreferencesManager=q(VP);this.sloStatusHelpersService=q(mR);this.paths=q(wV);this.sloFridge=q(xP);this.userToDisplayString=Om;this.onSloStartTimeChange=new KO;this.onSloEndTimeChange=new KO;this.showInternalOnlyFieldBadge=!1;this.providedSloId$=new vf(1);this.slo$=this.providedSloId$.pipe(zf(function(b){return a.sloFridge.watch(b)}));this.hasClosureSlo=this.isSloEndEditTimePickerOpen=this.isSloStartEditTimePickerOpen=this.hasSloEndTime=
this.hasSloStartTime=this.isAccordionExpanded=!1};Z(K3,LO);K3.\u0275dir=LO.\u0275dir;K3.prototype.ngOnInit=function(){var a=this;IYd(this);this.userPreferencesManager.layoutPreferences$.pipe(Af(this.destroyed$)).subscribe(function(b){a.isAccordionExpanded=!!b.expandIssueSlo})};K3.prototype.ngOnChanges=function(){this.sloId&&this.providedSloId$.next(this.sloId);IYd(this)};
var IYd=function(a){a.hasSlo=!!a.sloStatus&&Btd(a.sloStatus);a.hasClosureSlo=a.hasSlo&&Ctd(a.sloStatus,"CLOSURE");var b,c;(c=a.sloStatus)?(c=c.closureBounds,c=nR(kn(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=zs.editSlo.makeHref(a.sloId):a.editSloLink=void 0;a.componentId?a.componentSloLink=zs.editComponent.makeHref(a.componentId):
a.componentSloLink=void 0},JYd=function(a){a.isAccordionExpanded=!a.isAccordionExpanded;xqd(a.userPreferencesManager,{expandIssueSlo:a.isAccordionExpanded}).pipe(Af(a.destroyed$)).subscribe();ur("issueSlo","toggle",a.isAccordionExpanded?"open":"close")};K3.prototype.updateSloStartTime=function(a){this.onSloStartTimeChange.next(a)};K3.prototype.updateSloEndTime=function(a){this.onSloEndTimeChange.next(a)};K3.prototype.trackOpenSlo=function(){ur("editSlo","open","fromIssueSloBox")};
K3.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(K3)))(b||K3)}}();
K3.\u0275cmp=C({type:K3,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"},features:[Ff,Gx],decls:31,vars:23,consts:[["canonicalHovercard","onedevHovercard"],
["trigger","cdkOverlayOrigin"],[1,"slo-container"],[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"],["id","escalation-owner-label",3,"onedevHovercardTrigger"],[1,"onedev-hovercard-content"],["href","https://goto.google.com/b-slo-attribution","target","_blank"],[1,"slo-edit"],[3,"user","email","enableSmallChip"],
[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"],["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","noneButtonEnabled"],["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"],["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){if(a&1){var c=t();K(0,"div",2)(1,"span",3);N("click",function(){u(c);return v(JYd(b))});K(2,"label");S(3,"SLO Status");L();F(4,MTb,1,0,"mat-icon",4);L();K(5,"div",5)(6,"div",6)(7,"div",7);M(8,"b-aggregated-slo-status-indicator",
8);L();K(9,"div",7);M(10,"b-slo-status-summary",9);L();K(11,"button",10);N("click",function(){u(c);return v(JYd(b))});F(12,NTb,1,0,"mat-icon",11)(13,OTb,1,0,"mat-icon",12);L()();K(14,"div",13);F(15,STb,9,3,"div",14);F(16,XTb,10,5,"div",15);K(17,"div",16)(18,"span",17);S(19," Owner: ");L();K(20,"onedev-hovercard",null,0)(22,"div",18);S(23," Escalation owner for SLO accounting and other purposes. ");K(24,"a",19);S(25,"Learn more.");L()()();K(26,"div",20);F(27,YTb,1,3,"b-user-membership-chip",21)(28,
ZTb,1,0);L()();F(29,aUb,4,3,"div",22);F(30,bUb,3,1,"div",22);L()()()}a&2&&(a=Q(21),yg("internal-only",b.showInternalOnlyFieldBadge),B(4),G(b.showInternalOnlyFieldBadge?4:-1),B(3),I("hidden",b.isAccordionExpanded),B(),I("sloStatus",b.sloStatus)("sloStartTime",b.sloStartTime)("sloEndTime",b.sloEndTime)("includeSloMetric",!0)("includeObjective",!0),B(),I("hidden",!b.isAccordionExpanded),B(),I("sloStatus",b.sloStatus)("sloStartTime",b.sloStartTime)("sloEndTime",b.sloEndTime)("includeNoSlo",!0),B(),Jf("aria-expanded",
b.isAccordionExpanded),B(),G(b.isAccordionExpanded?12:13),B(2),I("hidden",!b.isAccordionExpanded),B(),G(b.isEditable?15:-1),B(),G(b.isEditable?16:-1),B(2),I("onedevHovercardTrigger",a),B(9),G(b.escalationOwner?27:28),B(2),G(b.editSloLink?29:-1),B(),G(!b.editSloLink&&b.componentSloLink?30:-1))},dependencies:[u3,tA,sA,DT,ZA,XA,VA,hK,AK,uK,zK,iz,MA,I2,m3,uU,py],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:4px;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:-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}.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 KYd={MISSING:"MISSING",DELETED:"DELETED",VALID:"VALID"};var L3=function(){LO.call(this);var a=this;this.data=q(fB);this.dialogRef=q(dB);this.teamsService=q(BP);this.componentActions=q(JV);this.userPreferencesManager=q(VP);this.snackBar=q(LD);this.analytics=q(PO);this.errorHandler=q(ZM);this.componentFridge=q(AN);this.warningType=this.data.warningType;this.componentId=this.data.componentId;this.parentComponentId=this.data.parentComponentId;this.teamSuggestionIds=this.data.teamSuggestionIds;this.header="";this.suggestedTeams$=Jpd(this.teamsService,this.teamSuggestionIds).pipe(A(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 LYd(e,f.collapsedPathNames))}return c}),yf([]));this.myTeams$=DP(this.teamsService,"").pipe(A(function(b){return b.map(function(c){return new LYd(c.teamId,c.pathNames)})}));this.teamOptions=[];this.selectedTeam=new LYd(this.teamSuggestionIds[0]||"0",[]);this.teamAction="CHANGE";this.componentSetting=zs.editComponent.makeHref(this.componentId);this.WarningType=KYd;he([this.suggestedTeams$,this.myTeams$]).pipe(A(function(b){var c=
l(b);b=c.next().value;c=c.next().value;return[].concat(n(b),n(c))}),A(r1a(function(b){return b.teamId})),Af(this.destroyed$)).subscribe(function(b){a.teamOptions=b;a.selectedTeam=b[0]})};Z(L3,LO);L3.\u0275dir=LO.\u0275dir;L3.prototype.ngOnInit=function(){this.warningType==="MISSING"?this.header="Add team to the component":this.warningType==="DELETED"&&(this.header="Change team mapping for this component")};
L3.prototype.confirm=function(){var a=this,b,c,d,e,f;return y(function(g){if(g.nextAddress==1){if(a.teamAction==="CHANGE")return a.parentComponentId?z(g,a.componentActions.get(a.parentComponentId),6):(MYd(a,"0",a.selectedTeam.teamId),g.jumpTo(0));b=Hm;return z(g,ee(a.userPreferencesManager.teamWarningPreferences$),4)}if(g.nextAddress!=6)return c=b(g.yieldResult),d=new Date,c.componentTeamWarnings.push({componentId:a.componentId,dismissMillis:d.getTime()}),Dqd(a.userPreferencesManager,c).pipe(Af(a.destroyed$)).subscribe(function(){a.analytics.trackEvent("teamWarning",
"dismiss","componentId",Number(a.componentId));var k;(k=a.dialogRef)==null||k.close()},function(){}),g.jumpTo(0);e=g.yieldResult;MYd(a,((f=e.team)==null?void 0:f.id)||"0",a.selectedTeam.teamId);$d(g)})};
var MYd=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)})};L3.prototype.selectOption=function(a){this.selectedTeam=a};
L3.prototype.trackClick=function(a){this.analytics.trackEvent("teamWarning","click",a)};L3.prototype.getMomaTeamLink=function(){return"https://moma.corp.google.com/team/"+this.selectedTeam.teamId};L3.\u0275fac=function(a){return new (a||L3)};
L3.\u0275cmp=C({type:L3,selectors:[["b-team-warning-dialog"]],features:[Ff],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=t();K(0,"h1",2);S(1);L();F(2,eUb,13,3,"div",3);F(3,gUb,6,2,"div",3);E(4,lUb,1,1,"ng-template",null,0,Og);K(6,"mat-dialog-actions")(7,"button",4);S(8," Cancel ");L();K(9,"button",
5);N("click",function(){u(c);return v(b.confirm())});S(10," Confirm ");L()()}a&2&&(B(),Ag(b.header),B(),G(b.warningType===b.WarningType.MISSING?2:-1),B(),G(b.warningType===b.WarningType.DELETED?3:-1))},dependencies:[mC,PB,WB,ZA,XA,TA,VA,hK,mB,hB,lB,kB,iz,jS,iS,MA,oy,WT,PT],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 LYd=function(a,b){this.teamId=a;this.teamPath=b.join(" > ")};var M3=function(){LO.apply(this,arguments);this.matDialogService=q(gB);this.analytics=q(PO);this.teamSuggestions=[];this.messageOnly=!1;this.updateTeam=new KO};Z(M3,LO);M3.\u0275dir=LO.\u0275dir;M3.prototype.ngOnInit=function(){};M3.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")};
M3.prototype.openDialog=function(){var a=this;this.analytics.trackEvent("teamWarning","open");eB(this.matDialogService.open(L3,{width:"580px",data:{warningType:this.warningType,componentId:this.componentId,parentComponentId:this.parentComponentId,teamSuggestionIds:this.teamSuggestions.map(function(b){return String(b.teamId)})}})).pipe(Af(this.destroyed$)).subscribe(function(b){b&&a.updateTeam.emit(b)})};M3.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(M3)))(b||M3)}}();
M3.\u0275cmp=C({type:M3,selectors:[["b-team-warning"]],inputs:{warningType:"warningType",componentId:"componentId",parentComponentId:"parentComponentId",teamSuggestions:"teamSuggestions",messageOnly:"messageOnly"},outputs:{updateTeam:"updateTeam"},features:[Ff,Gx],decls:4,vars:2,consts:[["messageType","caution","format","app"],["format","fill","mat-button","",3,"click"]],template:function(a,b){a&1&&(K(0,"b-callout",0)(1,"b-callout-body"),S(2),L(),F(3,mUb,3,1,"b-callout-actions"),L());a&2&&(B(2),T(" ",
b.warningMessage," "),B(),G(b.messageOnly?-1:3))},dependencies:[YT,uT,vT],encapsulation:2});var sUb=function(){return[]},pUb=function(a){return[a]},OUb=function(a){return{$implicit:a}},xVb=function(a){return{customFieldId:a}},N3=function(){var a=this;this.activeSession=q(Zu);this.editIssueService=q(tR);this.issueService=q(AO);this.issueFullFridge=q(RO);this.issuePermissionService=q(NP);this.issueDetailsBrain=q(LP);this.constants=q(SQ);this.refreshMonitor=q(DO);this.userPreferencesManager=q(VP);this.documentationLinks=q(OQ);this.workspaceService=q(F3);this.changelistApi=q(oN);this.issueMarkAsDuplicateDialogService=
q(MX);this.analytics=q(PO);this.issueLimits=q(QX);this.jspbPrincipalTypes=q(nP);this.issueId$=new vf(1);this.distinctIssueId$=this.issueId$.pipe(of());this.issue$=this.distinctIssueId$.pipe(zf(function(b){return a.editIssueService.editableIssue$(b)}));this.enableTriageView=this.activeSession.getFlag("enableTeamScope")&&this.activeSession.isInternalSession();this.sessionIsInternal=this.activeSession.isInternalSession();this.sessionIsExternal=this.activeSession.isExternalSession();this.defaultAssigneeQuickActionEnabled=
this.showSloStatus=this.sessionIsInternal;this.HOTKEYS=ns;this.trackCustomField=function(b,c){return"{"+c.componentId+", "+c.customFieldId+"}"};this.FieldType=AU;this.ListFieldType=zAd;this.IssueFieldName=Vhd;this.codeChangesValidator=Q3a;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(A(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(A(cUb));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(zf(function(b){return Jmd(a.issueService,b)}),A(function(b){var c,d;return(d=(c=b.triage)==null?void 0:c.phase)!=null?d:"UNSPECIFIED"}));this.triagePhaseUrl$=he([this.teamId$,this.triagePhase$]).pipe(A(function(b){var c=l(b);b=c.next().value;(c=c.next().value)&&c!=="UNSPECIFIED"||(c="NEW");return zs.viewTriage.makeHref(b!=null?b:0,0,iu[c])}));this.issueFields$=this.distinctIssueId$.pipe(A(function(b){return a.editIssueService.issueFields(b)}),wf({refCount:!0,bufferSize:1}));
this.isForgottenFourPrimary$=this.issueFields$.pipe(zf(function(b){return b.isForgottenFourPrimary$}));this.showHiddenFieldsLabel$=this.issueFields$.pipe(zf(function(b){return b.showHiddenFieldsLabel$}));this.hasHiddenFields$=this.issueFields$.pipe(zf(function(b){return b.hasHiddenFields$}));this.isChangelistPrimary$=this.issueFields$.pipe(zf(function(b){return b.isChangelistPrimary$}));this.isSeverityPrimary$=this.issueFields$.pipe(zf(function(b){return b.isSeverityPrimary$}));this.isSloStatusPrimary$=
this.issueFields$.pipe(zf(function(b){return b.isSloStatusPrimary$}));this.hiddenCustomFields$=this.issueFields$.pipe(zf(function(b){return b.hiddenCustomFields$}));this.visibleCustomFields$=this.issueFields$.pipe(zf(function(b){return b.visibleCustomFields$}));this.visibleGlobalCustomFields$=this.issueFields$.pipe(zf(function(b){return b.visibleGlobalCustomFields$}));this.issueQuickActions$=this.distinctIssueId$.pipe(A(function(b){return a.editIssueService.issueQuickActions(b)}),wf({refCount:!0,
bufferSize:1}));this.issueAssigneeQuickAction$=this.issueQuickActions$.pipe(zf(function(b){return b.issueAssigneeQuickAction$}));this.issueStatusQuickAction$=this.issueQuickActions$.pipe(zf(function(b){return b.issueStatusQuickAction$}));this.trackerId$=this.component$.pipe(A(function(b){return b==null?void 0:b.trackerId}));this.priorityChoices=this.constants.priorities.map(function(b){return{value:b,displayText:b,hotkey:dbb(b)}});this.severityChoices=this.constants.severities.map(function(b){return{value:b,
displayText:b}});this.typeChoices=this.constants.editIssueTypeChoices;this.phaseChoices=Object.values(Lhd).map(function(b){return{value:b,displayText:Tt.get(b)}});this.teamHovercardInputs$=he([this.issueDetailsBrain.componentId$,this.teamId$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return{teamId:c?String(c):"0",componentId:b?b:"0"}}));this.isTeamWarningDismissed$=he([this.issue$,this.userPreferencesManager.preferences$]).pipe(A(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.isPersonalComponent$=this.component$.pipe(A(function(b){var c,d;return b==null?void 0:(c=b.componentPathInfo)==null?void 0:(d=c.componentPathId)==null?void 0:d.includes("19299")}));this.shouldDisplayTeamSuggestions$=he([this.issuePermissionService.userIsComponentAdmin$,this.isTeamWarningDismissed$,this.teamWarningType$,this.isPersonalComponent$]).pipe(A(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&&!d&&!c&&(e==="MISSING"||e==="DELETED")}));this.showTriagePhaseRow$=this.teamId$.pipe(A(function(b){return a.enableTriageView&&b!=="0"}));this.statusChoices$=this.canonicalIssueId$.pipe(A(function(b){return[].concat(n(fid.filter(function(c){return c.value!=="DUPLICATE"})),[{value:"DUPLICATE",displayText:b?"Duplicate of "+b:"Duplicate"}])}),A(function(b){return b.map(function(c){return Object.assign({},c,{hotkey:ebb(c.value)})})}));
this.workspaces$=Mmd(this.refreshMonitor,this.distinctIssueId$).pipe(zf(function(b){return a.workspaceService.listWorkspaces(b)}),wf({refCount:!0,bufferSize:1}));this.pendingChangelists$=Mmd(this.refreshMonitor,this.distinctIssueId$).pipe(zf(function(b){return a.changelistApi.getPendingChangelistsForIssue(b)}),A(function(b){return b.changelistNumbers.map(String)}),A(function(b){return{cls:b,hasError:!1}}),hf(function(){return be({cls:[],hasError:!0})}),wf({refCount:!0,bufferSize:1}));this.pendingCodeChanges$=
this.issue$.pipe(zf(function(b){return a.activeSession.isExternalSession()?be({issue:b,changelists:{cls:[],hasError:!1}}):a.pendingChangelists$.pipe(A(function(c){return{issue:b,changelists:c}}))}),A(function(b){var c=b.issue;b=b.changelists;c=qsd(c);return{changes:[].concat(n(b.cls),n(c)),hasError:b.hasError}}));this.USER_FIELD_HOVERCARD_CONFIG=Object.assign({},new rm,{position:[ccd]});this.ACCESS_LIMITS_HOVERCARD_CONFIG=Object.assign({},new rm,{position:[{originX:"start",originY:"center",overlayX:"end",
overlayY:"center",offsetX:-30}]});this.issueIsOnInternalComponent$=this.component$.pipe(A(function(b){var c;return(b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel)==="INTERNAL"}));this.collaboratorUserPrincipalValidator=function(b){var c,d,e;return y(function(f){if(f.nextAddress==1){if(!b)return f.return("This field is required");c=b.split(/[,\s]+/).map(function(g){return g.trim()}).filter(Boolean);return z(f,kpd(a.jspbPrincipalTypes,c,!1),2)}d=f.yieldResult;e=c.find(function(g){var k;
return((k=d[g])==null?void 0:k.principalType)!=="USER"});return f.return(e?"You can only add users to collaborators.":"")})};this.emailsValidator=function(b){var c,d,e,f;return y(function(g){if(b==null)return g.return("This field is required");c=b.split(/[,\s]+/).map(function(k){return k.trim()}).filter(Boolean);d=l(c);for(e=d.next();!e.done;e=d.next()){f=e.value;if(f.match(Utd))return g.return(f+" does not appear to be an email: zero-width characters detected");if(!OVa.test(f)&&!LVa(f))return g.return(f+
" does not appear to be an email")}return g.return("")})};this.reconcileView={assignee:function(b){var c,d;b.value=(d=(c=Or(a.issue$))==null?void 0:c.assignee)!=null?d:""},reporter:function(b){var c,d;b.value=(d=(c=Or(a.issue$))==null?void 0:c.reporter)!=null?d:""},verifier:function(b){var c,d;b.value=(d=(c=Or(a.issue$))==null?void 0:c.verifier)!=null?d:""},ccs:function(b){var c,d;b.values=(d=(c=Or(a.issue$))==null?void 0:c.cc)!=null?d:[]},collaborators:function(b){var c,d;b.values=(d=(c=Or(a.issue$))==
null?void 0:c.collaborators)!=null?d:[]},issueType:function(b){var c,d;b.value=(d=(c=Or(a.issue$))==null?void 0:c.type)!=null?d:null}}};N3.prototype.ngOnChanges=function(){this.issueId$.next(this.issueId)};
var IVb=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!MP(a.issuePermissionService,e)}):[].concat(n(c.cc),[a.activeSession.getUserEmail()]);return eud(a.editIssueService,a.issueId,d)};
N3.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!MP(a.issuePermissionService,e)}):[].concat(n(c.collaborators),[this.activeSession.getUserEmail()]);return fud(this.editIssueService,this.issueId,d)};
N3.prototype.toggleAccessLimits=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return a.issueLimits.isOpen()?c.return():z(c,ee(a.issueDetailsBrain.componentId$),2);b=c.yieldResult;if(!b)return c.return();a.issueLimits.open({componentId:b,issueId:a.issueId});$d(c)})};N3.prototype.toggleAccessLimitsWithKeystroke=function(a){this.toggleAccessLimits();a.stopPropagation();a.preventDefault()};
var DVb=function(a,b){return EVb(a.editIssueService,a.issueId,b.newEmail).finally(function(){a.reconcileView.assignee(b.editField)})},zVb=function(a,b){return y(function(c){return c.return(AVb(a.editIssueService,a.issueId,b.newEmail).finally(function(){a.reconcileView.reporter(b.editField)}))})},FVb=function(a,b){return y(function(c){return c.return(GVb(a.editIssueService,a.issueId,b.newEmail).finally(function(){a.reconcileView.verifier(b.editField)}))})},JVb=function(a,b){return y(function(c){return c.return(eud(a.editIssueService,
a.issueId,b.newUsers).finally(function(){b.editField&&a.reconcileView.ccs(b.editField)}))})},HVb=function(a,b){return y(function(c){return c.return(fud(a.editIssueService,a.issueId,b.newUsers).finally(function(){b.editField&&a.reconcileView.collaborators(b.editField)}))})},BVb=function(a,b,c){var d;return y(function(e){if(e.nextAddress==1)return z(e,ee(a.trackerId$),2);d=e.yieldResult;return e.return(Ztd(a.editIssueService,a.issueId,c,d).finally(function(){a.reconcileView.issueType(b)}))})},yu=function(a,
b){a.analytics.trackEvent("editIssue","quickAction (sidebar)",b==null?void 0:b.displayText);return cud(a.editIssueService,a.issueId,b)};
N3.prototype.onStatusChanged=function(a){var b=this,c;return y(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):z(d,wId(b.issueMarkAsDuplicateDialogService,b.issueId),3):d.return()}if(d.nextAddress!=2)return d.return();mnd(b.analytics,c);return d.return(bud(b.editIssueService,
b.issueId,c))})};N3.prototype.isSaving$=function(a){var b=this;return this.distinctIssueId$.pipe(A(function(c){return b.editIssueService.savingState(c)}),zf(function(c){return Std(c,a)}))};N3.prototype.getAccessLimitLevelDisplay=function(a){return Qpb(a)};N3.\u0275fac=function(a){return new (a||N3)};
N3.\u0275cmp=C({type:N3,selectors:[["edit-issue-metadata"]],inputs:{issueId:"issueId"},features:[Gx],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","inputValidator","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"],[3,"valuesChange","readonly","defaultLineCount","title","type","values","tooltip","listFieldDisabled"],[3,"valueChange","name","title","type","value","tooltip","readonly","disabled"],[3,"save","issue","field","readonly","disabled"]],template:function(a,b){a&1&&(F(0,KVb,113,172),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.issue$))?0:-1,c)}},dependencies:[OU,$U,zU,I3,hK,fT,AK,uK,vK,zK,wK,xW,K3,YU,iz,MA,tY,oy,kT,KY,J3,M3,EV,DV,NK,py],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 NYd=["descriptionArea"],OYd=["container"],O3=function(){LO.call(this);var a=this;this.cdr=q(MO,{self:!0});this.issueFullFridge=q(RO);this.eventsForIssueFridge=q(vO);this.editStatusUpdateDialogService=q(x3);this.statusUpdateFactory=q(z3);this.statusUpdateService=q(w3);this.issueCommentDialogsService=q(LX);this.contextSensitiveRegistry=q(KP);this.issuePermissionService=q(NP);this.clipboard=q(bQ);this.snackBar=q(LD);this.analytics=q(PO);this.activeSession=q(Zu);this.playbookService=q(RP);this.appSearchState=
q(gS);this.recommendationTriggerService=q(QP);this.enableTriageRecommendations=this.activeSession.getFlag("enablePlaybook")||this.activeSession.getFlag("enableTriageClientM1");this.closeSidebar=new KO;this.navigateToNextIssue=new KO;this.navigateToPreviousIssue=new KO;this.issueId$=new vf(1);this.dedupeRecommendation$=this.issueId$.pipe(zf(function(b){return Zpd(a.recommendationTriggerService,b)}),wf({bufferSize:1,refCount:!0}));this.playbookRecommendation$=he([this.issueId$,this.appSearchState.queryState$]).pipe(zf(function(b){var c=
l(b);b=c.next().value;c=c.next().value;return c.query?pqd(a.playbookService,b,c.query):be(void 0)}));this.issue$=this.issueId$.pipe(Af(this.destroyed$),zf(function(b){return a.issueFullFridge.watch(b)}),wf({bufferSize:1,refCount:!0}));this.componentId$=this.issue$.pipe(A(function(b){return(b==null?void 0:b.snapshot[0].componentId)||void 0}));this.accessLevel$=this.issue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.events$=this.issueId$.pipe(Af(this.destroyed$),
zf(function(b){return a.eventsForIssueFridge.watch(b)}),A(function(b){return(b==null?void 0:b.events)||[]}));this.firstEvent$=this.events$.pipe(A(function(b){return b.length>0?b[0]:void 0}));this.statusUpdate$=this.issue$.pipe(A(function(b){return b==null?void 0:b.statusUpdate}));this.statusUpdateNote$=this.statusUpdate$.pipe(te(ln),A(function(b){return{unlinkifiedComment:b.updateText,formattedComment:b.formattedText}}));this.userCanEditStatusUpdate$=this.issuePermissionService.hasAclToEdit$;this.hasStatusUpdate$=
this.statusUpdate$.pipe(A(function(b){return!!b&&b.updateText!==""}));this.firstNote$=this.events$.pipe(Af(this.destroyed$),A(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}}),wf({bufferSize:1,refCount:!0}));this.userCanEditDescription$=this.firstEvent$.pipe(zf(function(b){return b?a.issuePermissionService.canEditComment$(b):be(!1)}));this.hasDescription$=
this.events$.pipe(Af(this.destroyed$),A(function(b){return b&&b.length>0&&iWa(b[0])}));this.isFieldsExpanded=this.isDescriptionExpanded=this.isStatusUpdateExpanded=!0;this.editTitleMode=this.isSavingTitle=!1;this.draftTitle="";this.FormattingMode=fo;this.descriptionHasMore=!0;this.containerScrolled=this.showFullDescription=!1;this.destroyed$.subscribe(function(){PVb(a)});this.issueId$.pipe(Af(this.destroyed$)).subscribe(function(){PVb(a);a.showFullDescription=!1});this.firstNote$.pipe(Af(this.destroyed$)).subscribe(function(){PYd(a)})};
Z(O3,LO);O3.\u0275dir=LO.\u0275dir;O3.prototype.ngOnInit=function(){this.enableTriageRecommendations&&(this.isStatusUpdateExpanded=!1)};O3.prototype.ngAfterViewInit=function(){var a=this;this.issueId$.pipe(Af(this.destroyed$)).subscribe(function(){a.container.nativeElement.scrollTop=0})};var PYd=function(a){setTimeout(function(){var b;a.descriptionHasMore=((b=a.descriptionArea)==null?void 0:b.nativeElement.scrollHeight)>130;a.cdr.detectChanges()})};
O3.prototype.copyIssueId=function(a){this.clipboard.copy(a);this.snackBar.open("IssueId copied","",{duration:2E3});this.analytics.trackEvent("issueSidebar","copyIssueId")};
O3.prototype.editStatusUpdate=function(){var a=this,b,c,d,e,f,g,k,m;return y(function(r){switch(r.nextAddress){case 1:return z(r,ee(a.issueId$),2);case 2:return b=r.yieldResult,z(r,ee(a.componentId$),3);case 3:return c=r.yieldResult,z(r,ee(a.statusUpdate$),4);case 4:if((d=r.yieldResult)!=null){e=d;r.jumpTo(5);break}return z(r,lYd(a.statusUpdateFactory,b),6);case 6:e=r.yieldResult;case 5:return f=e,z(r,ee(a.accessLevel$),7);case 7:return k=(g=r.yieldResult)&&g==="INTERNAL"?"INTERNAL":"EXTERNAL",z(r,
a.editStatusUpdateDialogService.show(f,k,c),8);case 8:m=r.yieldResult;if(!m)return r.return();a.statusUpdateService.update(m).subscribe(function(w){a.analytics.trackEvent("issueSidebar","edit","statusUpdate",w.updateText.length===0);a.issueFullFridge.manualUpdate(b,function(x){x.statusUpdate=w});a.issueFullFridge.poke(b)});$d(r)}})};
var eWb=function(a){var b,c;return y(function(d){switch(d.nextAddress){case 1:return z(d,ee(a.issueId$),2);case 2:return b=d.yieldResult,z(d,ee(a.firstEvent$),3);case 3:return(c=d.yieldResult)?z(d,tzb(a.issueCommentDialogsService,b,c),4):d.return();case 4:return z(d,a.eventsForIssueFridge.poke(b),5);case 5:a.analytics.trackEvent("issueSidebar","edit","description",iWa(c)),$d(d)}})},NVb=function(a){var b;return y(function(c){if(c.nextAddress==1)return z(c,ee(a.issue$),2);b=c.yieldResult;if(!b)return c.return();
a.draftTitle=b.snapshot[0].title;a.editTitleMode=!0;$d(c)})},PVb=function(a){a.isSavingTitle||(a.draftTitle="",a.editTitleMode=!1)};O3.prototype.saveTitle=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,ee(a.issue$),2);b=c.yieldResult;if(!b||b.snapshot[0].title===a.draftTitle)return PVb(a),c.return();a.isSavingTitle=!0;qnd(a.issueFullFridge,b.issueId,a.draftTitle).subscribe(function(){a.analytics.trackEvent("issueSidebar","edit","title");a.isSavingTitle=!1;PVb(a)});$d(c)})};
O3.prototype.upvoted=function(a){this.analytics.trackEvent("issueSidebar","toggle","vote",a)};da.Object.defineProperties(O3.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,PYd(this))}}});
O3.\u0275fac=function(a){return new (a||O3)};
O3.\u0275cmp=C({type:O3,selectors:[["issue-sidebar"]],viewQuery:function(a,b){a&1&&(kg(NYd,5),kg(OYd,5));if(a&2){var c;og(c=pg())&&(b.content=c.first);og(c=pg())&&(b.container=c.first)}},inputs:{issueId:"issueId"},outputs:{closeSidebar:"closeSidebar",navigateToNextIssue:"navigateToNextIssue",navigateToPreviousIssue:"navigateToPreviousIssue"},features:[Ig([MO]),Ff],decls:24,vars:14,consts:[["container",""],["spinner",""],["insightsCard",""],["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","flex-kids-y"],[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"],["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,"margin-s-bottom",3,"initiallyCollapsed"],[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"],["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"],[1,"card","description"],[1,"card","ai-suggestion"],[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"],["svgIcon","arrow-down",1,"icon-s"],["svgIcon","arrow-up",1,"icon-s"],[1,"fields-area","margin-top","flex-kids-y"],["type","button","mat-icon-button","","aria-label","Edit the status update","matTooltip","Edit the status update","matTooltipPosition","above",1,"small","edit-button",3,"click"],["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"],[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"],["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"],[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"],["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"],[1,"description-note"],[1,"description-show-more","margin-s-top"],[3,
"click"],["svgIcon","devai","color","primary",1,"icon-s"],[1,"recommendation"],[3,"recommendation","showTitle"],[3,"issueId"],[1,"text-center"]],template:function(a,b){if(a&1){var c=t();K(0,"div",4,0);N("scroll",function(){u(c);b.containerScrolled=b.container.nativeElement.scrollTop===0?!1:!0;return v()});K(2,"header")(3,"div",5)(4,"div",6);F(5,LVb,6,3);U(6,"async");L();K(7,"div",7);F(8,MVb,1,3,"b-app-vote-button",8);U(9,"async");K(10,"button",9);N("click",function(){u(c);return v(b.navigateToPreviousIssue.emit())});
M(11,"mat-icon",10);L();K(12,"button",11);N("click",function(){u(c);return v(b.navigateToNextIssue.emit())});M(13,"mat-icon",12);L();K(14,"button",13);N("click",function(){u(c);return v(b.closeSidebar.emit())});M(15,"mat-icon",14);L()()();F(16,VVb,4,2,"div",15);U(17,"async");L();K(18,"div",16);F(19,yWb,39,34,"div",17);U(20,"async");Mf(21,AWb,1,1,"ng-container");L()();E(22,BWb,2,0,"ng-template",null,1,Og)}if(a&2){var d,e,f,g;B(2);yg("elevated",b.containerScrolled);B(3);G((d=W(6,6,b.issueId$))?5:-1,
d);B(3);G((e=W(9,8,b.issue$))?8:-1,e);B(8);G((f=W(17,10,b.issue$))?16:-1,f);B(3);G((g=W(20,12,b.issue$))?19:21,g)}},dependencies:[wW,HB,N3,kW,mC,xi,PB,WB,ZA,XA,TA,VA,DB,qB,BB,qC,EB,oC,hK,C3,iz,MA,oy,$S,k_,VS,py],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:640px;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[_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:-moz-fill-available;width:-webkit-fill-available}.status-update[_ngcontent-%COMP%]{padding-left:12px;border-left:4px solid;border-left-color:#1a73e8;border-left-color:var(--primary)}.ai-suggestion[_ngcontent-%COMP%]{position:relative;padding-left:12px}.ai-suggestion[_ngcontent-%COMP%]:before{border-radius:4px 0 0 4px;content:"";position:absolute;top:0;left:0;width:4px;height:100%;background:-webkit-gradient(linear,left top,left bottom,color-stop(.34%,var(--ai-border-linear-gradient-0)),color-stop(34%,var(--ai-border-linear-gradient-34)),color-stop(67%,var(--ai-border-linear-gradient-67)),to(var(--ai-border-linear-gradient-100)));background:-webkit-linear-gradient(top,var(--ai-border-linear-gradient-0) .34%,var(--ai-border-linear-gradient-34) 34%,var(--ai-border-linear-gradient-67) 67%,var(--ai-border-linear-gradient-100) 100%);background:linear-gradient(180deg,var(--ai-border-linear-gradient-0) .34%,var(--ai-border-linear-gradient-34) 34%,var(--ai-border-linear-gradient-67) 67%,var(--ai-border-linear-gradient-100) 100%);z-index:1}.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}.recommendation[_ngcontent-%COMP%]{margin-top:12px}\n/*# sourceMappingURL=issue_sidebar.css.map */']});var QYd=[[["",8,"tooltip-content"]],[["",8,"chip-content"]]],P3=function(){this.compactMode=this.labelOnlyMode=!1};P3.prototype.ngOnInit=function(){};P3.\u0275fac=function(a){return new (a||P3)};
P3.\u0275cmp=C({type:P3,selectors:[["b-base-chip"]],inputs:{labelOnlyMode:"labelOnlyMode",compactMode:"compactMode",labelClass:"labelClass",hovercardAriaLabel:"hovercardAriaLabel"},ngContentSelectors:[".tooltip-content",".chip-content"],decls:9,vars:7,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"]],template:function(a,
b){a&1&&(fg(QYd),K(0,"span",1)(1,"onedev-hovercard",null,0)(3,"div",2)(4,"div",3),gg(5),L()()(),K(6,"div",4)(7,"span",5),gg(8,1),L()()());if(a&2){a=Q(2);B(3);Jf("aria-label",b.hovercardAriaLabel);B(3);I("onedevHovercardTrigger",a)("onedevHovercardActive",!b.labelOnlyMode);B();var c;zg((c=b.labelClass)!=null?c:"");yg("compact-chip",b.compactMode)}},dependencies:[AK,uK,zK],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 Q3=function(){this.documentationLinks=q(OQ);this.documentationLink=Tu()};Q3.prototype.ngOnChanges=function(){this.retentionState?this.retentionExpireTime=to(this.retentionState.scheduledDeletionTime):this.retentionExpireTime=void 0};Q3.\u0275fac=function(a){return new (a||Q3)};
Q3.\u0275cmp=C({type:Q3,selectors:[["retention-help-text"]],inputs:{retentionState:"retentionState",modifiedTime:"modifiedTime"},features:[Gx],decls:1,vars:1,consts:[["target","_blank",3,"href"],[3,"mode","timestamp","paddingLeftPx"]],template:function(a,b){a&1&&F(0,EWb,4,2);a&2&&G(b.retentionState&&b.modifiedTime?0:-1)},dependencies:[DT],encapsulation:2});var R3=function(){this.dateFormatter=q(gR);this.compactMode=!1;this.text=""};R3.prototype.ngOnChanges=function(){var a;((a=this.retentionState)==null?void 0:a.scheduledDeletionTime)!=null?this.text=nwb(to(this.retentionState.scheduledDeletionTime),!this.compactMode):this.text="Indefinite"};R3.\u0275fac=function(a){return new (a||R3)};
R3.\u0275cmp=C({type:R3,selectors:[["retention-text"]],inputs:{retentionState:"retentionState",compactMode:"compactMode"},features:[Gx],decls:1,vars:1,template:function(a,b){a&1&&S(0);a&2&&Ag(b.text)},encapsulation:2});var S3=function(){this.documentationLinks=q(OQ);this.showRetentionInfo=this.dangerZone=this.labelOnlyMode=this.compactMode=this.showOnlyInDangerZone=!1};S3.prototype.ngOnChanges=function(){this.retentionState&&this.retentionState.retentionPeriod&&this.retentionState.scheduledDeletionTime?(this.dangerZone=GWb(this.retentionState),this.showRetentionInfo=this.showOnlyInDangerZone&&this.dangerZone||!this.showOnlyInDangerZone):this.showRetentionInfo=!1};S3.\u0275fac=function(a){return new (a||S3)};
S3.\u0275cmp=C({type:S3,selectors:[["b-retention-chip"]],inputs:{showOnlyInDangerZone:"showOnlyInDangerZone",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode",retentionState:"retentionState",modifiedTime:"modifiedTime"},features:[Gx],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&&F(0,
FWb,5,7,"b-base-chip",0);a&2&&G(b.showRetentionInfo?0:-1)},dependencies:[P3,Q3,R3],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 RYd=["issueSidenavContainer"],CZb=function(){return[]},dYb=function(a){return{id:a}},T3=function(){var a=this;this.activeSession=q(Zu);this.cdr=q(MO,{self:!0});this.elementRef=q(Gd);this.teamsService=q(BP);this.ngZone=q(Tg);this.userPreferencesManager=q(VP);this.hotlistFridge=q(UN);this.issueFullFridge=q(RO);this.bLocation=q(US);this.issuePagination=q(v1);this.paths=q(wV);this.errorHandler=q(ZM);this.$log=q(XM);this.domSafe=q($P);this.trackerHelpers=q(WQ);this.anayltics=q(PO);this.playbookService=
q(RP);this.appSearchState=q(gS);this.dismissalService=q($V);this.ISSUE_STATUS_JS_ICON_NAME=did;this.STATUS_JS_FULL_TEXT=Um;this.STATUS_JS_TERSE=Zhd;this.lastCheckedIndex=null;this.focusedRowIndexChange=new KO;this.columns=[];this.columnsChange=new KO;this.enableColumnSaving=!1;this.sort=null;this.enableSidebar=!1;this.sortChange=new KO;this.rowClick=new KO;this.init=new KO;this.onRowDragDrop=new KO;this.onNextPage=new KO;this.onPrevPage=new KO;this.selectionCallbacks=[];this.GET_ISSUE_ACCESS_LEVEL_TITLE=
Qpb;this.isLoadingTeams=!0;this.isSidebarIlpIconEnabled=this.activeSession.getFlag("enableSidebarIlpIcon");this.isPlaybookEnabled=this.activeSession.getFlag("enablePlaybook")||this.activeSession.getFlag("enableTriageClientM1");this.isIssueSidebarOpen=this.isIssueSidebarEnabled=!1;this.hoveredRowIndex=null;this.destroyed$=new vf(1);this.searchQuery$=this.appSearchState.queryState$.pipe(A(function(c){return c.query||void 0}));this.searchQuery$.pipe(zf(function(c){return c?iqd(a.playbookService,c).pipe(A(function(d){return!!d})):
be(!1)}));this.showInactiveWarning$=this.activeSession.getFlag("enableInactiveFeatures")&&this.activeSession.isInternalSession()?he([this.searchQuery$,kDd(this.dismissalService,"inactive-features-warning")]).pipe(A(function(c){var d=l(c);c=d.next().value;d=d.next().value;return!(c==null||!c.includes("status:open"))&&!(c==null?0:c.includes("status:inactive"))&&!d})):be(!1);this.issueIds$=new Xj([]);this.distinctIssueIds$=this.issueIds$.pipe(of());this.issueRecommendations$=this.distinctIssueIds$.pipe(zf(function(c){return a.isPlaybookEnabled&&
c.length!==0?eqd(a.playbookService.recommendationTriggerService,c).pipe(hf(function(){return be([])})):be([])}),A(function(c){var d=new Map;if(c.length===0)return d;c=Nq(c,function(g){return g.resource});c=l(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=os(e.resource);f&&!d.has(f)&&d.set(f,e)}return d}));this.starInProgress={};this.readUnreadOptOut=this.activeSession.getFlag("readUnreadOptOut");var b=Ma($Rb);this.activeSession.isInternalSession()||(La(b,"minSlo"),La(b,"responseSlo"),La(b,
"assignmentSlo"),La(b,"closureSlo"),La(b,"deletionTime"),La(b,"team"),La(b,"estimate"),La(b,"estimateTotalOpen"),La(b,"estimateTotalComplete"),La(b,"escalationOwner"));this.availableColumns=b.map(aSb);this.dragDropLogic=new bYd({ngZone:this.ngZone,nativeElement:this.elementRef.nativeElement,rowFinder:function(c){return SYd(a,c)},onRowDragDrop:function(c){a.onRowDragDrop.emit(c)}})};
T3.prototype.ngOnInit=function(){var a=this;this.dragDropLogic.setup();this.userPreferencesManager.listViewPreferences$.pipe(Af(this.destroyed$)).subscribe(function(b){a.listViewPrefs=b;a.cdr.detectChanges()});this.isIssueSidebarEnabled=this.enableSidebar;this.init.emit(this)};
T3.prototype.ngOnChanges=function(a){if(a.searchResults){var b,c=JSa(((b=this.searchResults)==null?void 0:b.issues.map(function(f){return new Set([].concat(n(f.hotlistId||[])))}))||[]);this.hotlistFridge.watchSet([].concat(n(c)));var d;b=((d=this.searchResults)==null?void 0:d.issues.map(function(f){return f.id}))||[];this.issueIds$.next(b)}if(a.searchResults||a.columns)for(d=l(this.columns),b=d.next();!b.done;b=d.next())b.value.label==="TEAM"&&TYd(this);if(a.searchResults){d=a.searchResults.currentValue;
var e;a=new Set(((e=a.searchResults.previousValue)==null?void 0:e.issues.filter(function(f){return f.selected}).map(function(f){return f.id}))||[]);e=new Set((d==null?void 0:d.issues.filter(function(f){return f.selected}).map(function(f){return f.id}))||[]);dTa(a,e)||zu(this)}};T3.prototype.ngOnDestroy=function(){this.dragDropLogic.tearDown();this.destroyed$.next()};var qXb=function(a){a.isIssueSidebarOpen=!0;a.cdr.detectChanges()};T3.prototype.focus=function(){this.grid.focus()};
T3.prototype.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()}zu(this)};var UYd=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()}zu(a)};T3.prototype.hasSelectedIssues=function(){return this.searchResults?this.searchResults.issues.some(function(a){return a.selected}):!1};
var TWb=function(a){return a.searchResults?a.searchResults.issues.every(function(b){return b.selected}):!1},VYd=function(a){return a.searchResults?a.searchResults.issues.some(function(b){return b.selected}):!1},SWb=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"};
T3.prototype.getSelectedIssues=function(){return this.searchResults?this.searchResults.issues.filter(function(a){return a.selected}):[]};T3.prototype.getAllIssues=function(){return this.searchResults?this.searchResults.issues:[]};
var XYd=function(a){if(WYd(a)&&a.focusedRowIndex!=null&&a.searchResults){var b=a.searchResults.issues[a.focusedRowIndex];b&&(b.selected=!b.selected,a.cdr.detectChanges(),zu(a))}},RWb=function(a){if(a.searchResults){for(var b=!VYd(a),c=l(a.searchResults.issues),d=c.next();!d.done;d=c.next())d.value.selected=b;a.cdr.detectChanges();zu(a)}},HWb=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()&&LTd(a.issuePagination,a.searchResults.endIndex+1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onNextPage.emit()})},IWb=function(a){a.focusedRowIndex!=null&&a.focusedRowIndex>0?(a.focusedRowIndex--,a.focusedRowIndexChange.emit(a.focusedRowIndex),a.cdr.detectChanges()):a.searchResults&&a.searchResults.hasPreviousPage()&&LTd(a.issuePagination,a.searchResults.startIndex-1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onPrevPage.emit()})},
YYd=function(a,b){b=b===void 0?{}:b;var c=a.getFocusedIssue();c&&(b.openInNewTab?a.domSafe.openInNewTab(As(c.issueId)):a.bLocation.setUrl(As(c.issueId)))};T3.prototype.getFocusedIssue=function(){return WYd(this)&&this.focusedRowIndex!=null&&this.searchResults?this.searchResults.issues[this.focusedRowIndex]:null};
var ZYd=function(a,b){a.selectionCallbacks.push(b);b()},zu=function(a){a=l(a.selectionCallbacks);for(var b=a.next();!b.done;b=a.next())b=b.value,b()},$Yd=function(a){WYd(a)&&a.focusedRowIndex!=null&&a.searchResults&&a.toggleStar(a.searchResults.issues[a.focusedRowIndex])},aZd=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();SO(a.issueFullFridge,c.map(function(f){return f.issueId}),{markRead:b,
userActivityType:"MARK_AS_READ_OR_UNREAD"}).then(function(f){for(var g=l(c),k=g.next();!k.done;k=g.next()){var m=void 0;k.value.lastViewedTime=(m=f)!=null?m:null}}).catch(function(){for(var f=l(c),g=f.next();!g.done;g=f.next())g=g.value,g.isRead=!!g.lastViewedTime&&g.lastViewedTime>=g.majorModifiedTime}).finally(function(){a.cdr.detectChanges()})}};
T3.prototype.toggleStar=function(a){var b=this;a&&!this.starInProgress[a.issueId]&&(a.starred=!a.starred,this.starInProgress[a.issueId]=!0,ond(this.issueFullFridge,String(a.issueId),a.starred).pipe(mf(1),Af(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()}))};
T3.prototype.issueDescription=function(a){return(a.isClosed?"Closed ":this.readUnreadOptOut||a.isRead?"":"Unread ")+"Issue ID "+a.id+" titled: "+a.title};
var WYd=function(a){return a.searchResults!=null&&a.focusedRowIndex!=null&&a.focusedRowIndex>=0&&a.focusedRowIndex<a.searchResults.issues.length},SYd=function(a,b){return b?a.searchResults?a.searchResults.issues.findIndex(function(c){return c.id===b}):-1:-1},TYd=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,Jpd(a.teamsService,[].concat(n(b))).pipe(Af(a.destroyed$)).subscribe(function(e){if(a.searchResults)for(var f=
l(a.searchResults.issues),g=f.next();!g.done;g=f.next()){g=g.value;var k=String(g.teamId);k!=="0"&&(k=e.get(k))&&(g.team=k.name)}a.isLoadingTeams=!1;a.cdr.detectChanges()})):a.isLoadingTeams=!1}};T3.prototype.isIssueGridColumn=function(){return!0};T3.prototype.getComponentPath=function(a){return Im(a)?a.join(" > "):(a=Lu(this.trackerHelpers,a))&&a.componentPathName?a.componentPathName.join(" > "):""};T3.\u0275fac=function(a){return new (a||T3)};
T3.\u0275cmp=C({type:T3,selectors:[["b-issues-grid"]],viewQuery:function(a,b){a&1&&(kg(q3,7),kg(RYd,5));if(a&2){var c;og(c=pg())&&(b.grid=c.first);og(c=pg())&&(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"},features:[Ig([MO]),Gx],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,"callout-container"],[1,"keep-focus-ring",3,"columnsChange","focusedRowIndexChange","hoveredRowIndex","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","bv2-grid-cell-recommendation",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,"bv2-grid-cell-variable-height","rtl-component-path",4,"forViewCell"],["class","clickable first-letter-capitalized",4,"forViewCell"],["messageType","info","format","app"],[1,"italic"],["href","http://go/buganizer/concepts/inactive-issues",1,"hover-link"],["mat-button","",3,"click"],[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","no-padding","align-items-center"],
[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"],[3,"isParentRowActive"],[1,"bv2-hotlist-chips"],[1,"flex-kids-x","align-items-center","right-aligned-container"],[3,"onClick","isParentRowActive"],[3,"id","removable"],[3,"recommendation","isParentRowActive"],[3,"onClick","recommendation",
"isParentRowActive"],[1,"priority-cell","clickable"],[1,"bv2-priority",3,"low","high","p0"],[1,"bv2-priority"],[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"],[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&&(K(0,"div"),F(1,LWb,6,6,"mat-sidenav-container",5)(2,NWb,1,1,
"ng-container"),L(),E(3,DZb,60,68,"ng-template",null,0,Og)(5,FZb,5,2,"ng-template",null,1,Og));a&2&&(B(),G(b.isIssueSidebarEnabled?1:2))},dependencies:[u3,dYd,uT,vT,s3,SXd,UXd,DT,TXd,ZA,XA,TA,qV,AK,uK,vK,zK,wK,v3,xW,fW,O3,vW,iz,FA,DL,EL,CL,oy,TR,q3,r3,BT,S3,t3,n3,l3,yV,MU,NV,Yyd,py,nU,qU,pU],styles:["mat-sidenav-container.sidebar-enabled[_ngcontent-%COMP%]{height:calc(100vh - 100px)}[_nghost-%COMP%]     .title-cell b-hotlist-chip{margin-bottom:1px}[_nghost-%COMP%]   div.bv2-grid-cell-container.no-padding[_ngcontent-%COMP%]{padding:0}b-sidebar-toggle[_ngcontent-%COMP%]{margin-left:auto}.right-aligned-container[_ngcontent-%COMP%]{margin-left:auto;flex-grow:0}/*# sourceMappingURL=issues_grid.css.map */"],
changeDetection:0});var bZd=new xu({name:"focused",sortable:!1,draggable:!1,isMetadata:!0}),cZd=new xu({name:"draghandle",sortable:!1,draggable:!1,isMetadata:!0}),dZd=new xu({name:"selected",sortable:!1,draggable:!1,isMetadata:!0}),eZd=new xu({name:"starred",sortable:!1,draggable:!1,isMetadata:!0}),fZd=new xu({name:"position",sortable:!0,draggable:!1,fullLabel:"Position",label:"POS",isMetadata:!0});var U3=function(){LO.apply(this,arguments);var a=this;this.snackBar=q(LD);this.issuePicker=q(pX);this.issueApi=q(uO);this.issueAddedToHotlist=new KO;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});gZd(a,a.id,b)}};this.handleSuccessCall=function(b){b.errors&&b.errors.length?(b="Failed to add issue(s) to hotlist. "+
TWa(b.errors),a.snackBar.open(b,void 0,{duration:2500,panelClass:"error"})):(a.issueAddedToHotlist.emit(),a.snackBar.open("Successfully added to hotlist",void 0,{duration:2500}))};this.gotErr=function(b){var c,d,e,f,g=(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(g,"close",{panelClass:"error"})}};Z(U3,LO);U3.\u0275dir=LO.\u0275dir;
var gZd=function(a,b,c){a.issueApi.issueBulkEdit({bulkEditOps:[{actions:[{fieldName:"hotlists",value:b,actionType:"ADD"}],issueIds:c}]}).then(function(d){a.handleSuccessCall(d)},a.gotErr)};U3.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(U3)))(b||U3)}}();
U3.\u0275cmp=C({type:U3,selectors:[["hotlist-add-issue-btn"]],inputs:{id:[0,"hotlistId","id"]},outputs:{issueAddedToHotlist:"issueAddedToHotlist"},features:[Ff],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&&(K(0,"button",0),N("click",function(){b.issuePicker.open({title:"Add Issues to this Hotlist",allowMultipleIds:!0},b.onCloseIssuePicker)}),S(1," Add Issue(s) "),L())},dependencies:[ZA,XA,TA,hK,
MA],encapsulation:2});var V3=function(){LO.call(this);var a=this;this.fridge=q(UN);this.snackBar=q(LD);this.dialog=q(PQ);this.events=q(DN);this.id$=new vf(1);this.hotlist$=this.id$.pipe(zf(function(b){return a.fridge.watch(b)}),wf({refCount:!0,bufferSize:1}));this.archived$=this.hotlist$.pipe(A(function(b){return!(b==null||!b.archived)}),of());this.archiveActionLabel$=this.archived$.pipe(A(function(b){return b?"Unarchive":"Archive"}));this.archiveActionTooltip$=this.archived$.pipe(A(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(iq(c)||"Error "+d+" the hotlist","close",{panelClass:"error"})}};this.hotlist$.pipe(Af(this.destroyed$)).subscribe(function(b){a.latestHotlist=b})};Z(V3,LO);V3.\u0275dir=LO.\u0275dir;
V3.prototype.isThinking=function(a){return this.fridge.isThinking(a)};V3.prototype.ngOnChanges=function(a){var b;(a=(b=a.hotlistId)==null?void 0:b.currentValue)&&this.id$.next(a)};
var iZd=function(a){if(a.latestHotlist!=null){var b=!a.latestHotlist.archived;b?a.dialog.open({title:"Archive Hotlist",content:Dh("Do you want to archive this hotlist?"),isDestructive:!0,onConfirm:function(){hZd(a,b)}}):hZd(a,b)}},hZd=function(a,b){a.fridge.save(Object.assign({},a.latestHotlist,{archived:b})).subscribe({next:a.didSave(b),error:a.gotErr(b)})};V3.\u0275fac=function(a){return new (a||V3)};
V3.\u0275cmp=C({type:V3,selectors:[["hotlist-archive-btn"]],inputs:{hotlistId:"hotlistId"},features:[Ff,Gx],decls:4,vars:7,consts:[["type","button","mat-button","",1,"medium",3,"click","disabled","matTooltip"]],template:function(a,b){a&1&&(K(0,"button",0),U(1,"async"),N("click",function(){return iZd(b)}),S(2),U(3,"async"),L());if(a&2){var c;I("disabled",b.isThinking(b.hotlistId))("matTooltip",(c=W(1,3,b.archiveActionTooltip$))!=null?c:"");B(2);T(" ",W(3,5,b.archiveActionLabel$)," ")}},dependencies:[ZA,
XA,TA,hK,MA,py],encapsulation:2});var W3=function(){R2.apply(this,arguments);this.estadoService=q(k3);this.refreshMonitor=q(DO);this.isPlaybookEnabled=this.activeSession.getFlag("enablePlaybook");this.init=new KO;this.onRefresh=new KO;this.isHotlistAdmin=!1;this.onExportCsv=new KO;this.showHotlistButtons=!1;this.isNonPublicSession=this.activeSession.isNonPublicSession();var a=this.estadoService;this.enableEstadoInAppBar=a.enableEstado&&!Is(a.activeSession);this.enableBulkEditUi=!this.activeSession.userRequiresCaptcha();this.controllerName=
"gridControls"};Z(W3,R2);W3.\u0275dir=R2.\u0275dir;W3.prototype.ngOnInit=function(){this.init.emit(this)};W3.prototype.ngOnChanges=function(a){var b=this;a.grid&&this.grid&&ZYd(this.grid,function(){b.onSelectionChange()})};W3.prototype.getSelectedIssues=function(){var a,b;return(b=(a=this.grid)==null?void 0:a.getSelectedIssues())!=null?b:[]};var HZb=function(a){var b,c;return(c=(b=a.grid)==null?void 0:b.getAllIssues().map(function(d){return d.issueId}))!=null?c:[]};
W3.prototype.refresh=function(){this.refreshMonitor.refreshRequest.next();this.onRefresh.emit()};W3.prototype.openInEstado=function(){this.estadoService.openInEstado()};var jZd=function(a){return a.hasSelectedIssues()&&a.isNonPublicSession};W3.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(W3)))(b||W3)}}();
W3.\u0275cmp=C({type:W3,selectors:[["b-grid-controls"]],inputs:{grid:"grid",isHotlistAdmin:"isHotlistAdmin",currentHotlistId:"currentHotlistId",showHotlistButtons:"showHotlistButtons"},outputs:{init:"init",onRefresh:"onRefresh",onExportCsv:"onExportCsv"},features:[Ig([MO]),Ff,Gx],decls:12,vars:9,consts:[["addCommentDialog",""],["size","large","format","icon","tooltip","Refresh","bAriaLabel","Refresh",1,"refresh-button",3,"onAction"],["name","refresh","size","large"],[3,"enableBulkEstimatedEffortOption",
"readStatePrompt"],[3,"issueIds"],[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=t();K(0,"b-button",1);N("onAction",function(){u(c);return v(b.refresh())});M(1,"b-icon",2);L();F(2,GZb,2,4,"b-app-bar-bulk-edit-menus",3);F(3,IZb,1,1,"playbook-controls",4);F(4,JZb,1,2,"b-copy-issue-id-button",5);F(5,KZb,
2,2,"div",6);F(6,NZb,2,2);F(7,PZb,3,3,"b-button",7);K(8,"b-app-bar-more-menu",8);N("exportCsvClicked",function(){u(c);return v(b.onExportCsv.emit())})("flagAsSpamClicked",function(){u(c);return v(JWd(b))});L();K(9,"b-state-modal",9);N("save",function(){u(c);return v(HWd(b))})("close",function(){u(c);return v(b.hotkeys.unpause())});L();E(10,SZb,11,6,"ng-template",null,0,Og)}a&2&&(B(2),G(b.hasSelectedIssues()?2:-1),B(),G(b.isPlaybookEnabled?3:-1),B(),G(b.hasSelectedIssues()?4:-1),B(),G(b.enableBulkEditUi&&
b.hasSelectedIssues()?5:-1),B(),G(b.showHotlistButtons&&!b.hasSelectedIssues()?6:-1),B(),G(b.enableEstadoInAppBar?7:-1),B(),I("showExportCsv",b.isNonPublicSession||djd(b.activeSession))("showFlagIssuesAsSpam",jZd(b)),B(),I("externalWarnings",b.externalWarnings))},dependencies:[k1,YT,qY,n2,N2,ZA,XA,TA,U3,V3,M2,hS,mB,hB,lB,kB,l1,WS,GX,P2,py],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});var kZd=function(a){return{displayText:"Admins",values:a}},lZd=function(a){return[a]},mZd=function(a){return{displayText:"Appenders",values:a}},nZd=Dh("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?"),X3=function(){var a=q(HX);LO.call(this);var b=this;this.hotlistAccessPolicyFridge=q(yO);this.links=q(OQ);this.snackBar=
q(LD);this.events=q(DN);this.dialog=q(PQ);this.permissions=q(mP);this.userApi=q(TN);this.activeSession=q(Zu);this.hotlistId$=new vf(1);this.acl$=this.hotlistId$.pipe(zf(function(c){return b.hotlistAccessPolicyFridge.watch(c)}));this.latestCompactPolicy={};this.admins=[];this.appenders=[];this.readers=[];this.accessControlLink=ssd(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:nZd,isDestructive:!0,onConfirm:b.doSave}):b.doSave()};this.doSave=function(){if(b.hotlistId!=null){var c=b.isRevokingAdmin(),d={id:b.hotlistId,admins:Rs(b.admins),appenders:Rs(b.appenders),editors:null,readers:Rs(b.readers),implicitAccess:null,restrictedReaders:null,restrictedPlusReaders:null,inheritedAdmins:null,implicitAppenders:null,implicitEditors:null,implicitReaders:null};b.hotlistAccessPolicyFridge.save(d).subscribe({next:b.didSave(c,
d.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(iq(c)||"Error saving the hotlist access policy","close",{panelClass:"error"})};this.doStar=function(){b.hotlistId&&b.userApi.addUserBookmark({resourceType:"HOTLIST",resourceId:b.hotlistId}).then(function(){b.events.hotlistChanged.next()})};this.onPressRevert=
function(){b.resetEdits()};this.isChanged=function(){var c=b.latestCompactPolicy,d;if(!Gm((d=c.admins)!=null?d:[],b.admins))return!0;var e;if(!Gm((e=c.appenders)!=null?e:[],b.appenders))return!0;var f;return Gm((f=c.readers)!=null?f:[],b.readers)?!1:!0};this.hasNoChanges=function(){return!b.isChanged()};this.acl$.pipe(Af(this.destroyed$)).subscribe(function(c){b.latestPolicy=c;var d,e,f;b.latestCompactPolicy={admins:Qs((d=b.latestPolicy)==null?void 0:d.admins),appenders:Qs((e=b.latestPolicy)==null?
void 0:e.appenders),readers:Qs((f=b.latestPolicy)==null?void 0:f.readers)};b.resetEdits()});this.subscriptions.add(IX(a,this.isChanged,!1))};Z(X3,LO);X3.\u0275dir=LO.\u0275dir;var oZd=function(a){return[].concat(n(new Set([].concat(n(a.admins),n(a.appenders)))))};X3.prototype.ngOnChanges=function(a){var b;(a=(b=a.hotlistId)==null?void 0:b.currentValue)&&this.hotlistId$.next(a)};
X3.prototype.resetEdits=function(){var a;this.admins=[].concat(n((a=this.latestCompactPolicy.admins)!=null?a:[]));var b;this.appenders=[].concat(n((b=this.latestCompactPolicy.appenders)!=null?b:[]));var c;this.readers=[].concat(n((c=this.latestCompactPolicy.readers)!=null?c:[]));this.allAppenders=oZd(this)};X3.prototype.isRevokingAdmin=function(){var a=this.admins,b,c=(b=this.latestCompactPolicy.admins)!=null?b:[];return this.isRevokingDirectAdmin(a,c,this.activeSession.getUserEmail())};
X3.prototype.isRevokingDirectAdmin=function(a,b,c){c=c===void 0?"":c;if(v1a(a,b))return!1;c="USER:"+c;b=b.includes(c);a=!a.includes(c);return b&&a};X3.\u0275fac=function(a){return new (a||X3)};
X3.\u0275cmp=C({type:X3,selectors:[["b-edit-hotlist-acl"]],inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},features:[Ff,Gx],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&&(K(0,"form",0)(1,"label"),S(2,"Admins"),L(),K(3,"p",1),S(4,"Edit access controls, edit name and description, reorder hotlist, add/remove issues"),L(),K(5,"b-multi-user-input",2),N("usersChange",function(c){b.admins=c;b.allAppenders=oZd(b)})("isValid",function(c){return b.validity.admins=c}),L(),K(6,"label"),S(7,"View and append"),
L(),K(8,"p",1),S(9,"Reorder hotlist, add/remove issues"),L(),K(10,"b-multi-user-input",3),N("usersChange",function(c){b.appenders=c;b.allAppenders=oZd(b)})("isValid",function(c){return b.validity.appenders=c}),L(),K(11,"label"),S(12,"View only"),L(),K(13,"p",1),S(14,"View the hotlist"),L(),K(15,"b-multi-user-input",4),N("usersChange",function(c){b.readers=c})("isValid",function(c){return b.validity.readers=c}),L()(),K(16,"p"),S(17," Users can see which issues are in a hotlist, even when they don't have view access to the hotlist. See "),
K(18,"a",5),S(19,"access control documentation"),L(),S(20," for an explanation of the settings.\n"),L(),F(21,TZb,5,4,"div",6));a&2&&(B(5),yg("disabled",b.isReadOnly),I("users",b.admins),B(5),yg("disabled",b.isReadOnly),I("users",b.appenders)("includeAliases",!0)("containerChips",Kg(18,lZd,Kg(16,kZd,b.admins))),B(5),yg("disabled",b.isReadOnly),I("users",b.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Kg(22,lZd,Kg(20,mZd,b.allAppenders))),B(3),I("href",b.accessControlLink,
Me),B(3),G(b.isReadOnly?-1:21))},dependencies:[mC,XB,QB,UB,ZA,XA,TA,hK,MA,sW],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 pZd=["hotlistName"],Y3=function(){LO.call(this);var a=this;this.fridge=q(UN);this.snackBar=q(LD);this.events=q(DN);this.checkBeforeExit=q(HX);this.isReadOnly=!1;this.id$=new vf(1);this.hotlist$=this.id$.pipe(zf(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(iq(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!Gm(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(Af(this.destroyed$)).subscribe(function(b){a.gotHotlist(b)});this.subscriptions.add(IX(this.checkBeforeExit,
this.isChanged,!1))};Z(Y3,LO);Y3.\u0275dir=LO.\u0275dir;Y3.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){var b;(b=a.hotlistName)==null||b.nativeElement.focus()})};Y3.prototype.ngOnChanges=function(a){var b;(a=(b=a.hotlistId)==null?void 0:b.currentValue)&&this.id$.next(a)};Y3.prototype.resetEdits=function(a){var b;this.localEdits=(b=Hm(a))!=null?b:{}};Y3.\u0275fac=function(a){return new (a||Y3)};
Y3.\u0275cmp=C({type:Y3,selectors:[["b-edit-hotlist-basic"]],viewQuery:function(a,b){a&1&&kg(pZd,5);if(a&2){var c;og(c=pg())&&(b.hotlistName=c.first)}},inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},features:[Ff,Gx],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=t();K(0,"form",1)(1,"label",2);S(2,"Name");L();K(3,"input",3,0);Eg("ngModelChange",function(d){u(c);Dg(b.localEdits.name,d)||
(b.localEdits.name=d);return v(d)});L();K(5,"label",4);S(6,"Description");L();K(7,"textarea",5);Eg("ngModelChange",function(d){u(c);Dg(b.localEdits.description,d)||(b.localEdits.description=d);return v(d)});S(8,"  ");L();F(9,UZb,7,7,"div",6);L()}a&2&&(B(3),I("disabled",b.isReadOnly||b.isArchived),Cg("ngModel",b.localEdits.name),B(4),I("disabled",b.isReadOnly||b.isArchived),Cg("ngModel",b.localEdits.description),B(2),G(b.isReadOnly?-1:9))},dependencies:[mC,XB,xi,PB,QB,hC,WB,UB,ZA,XA,TA,hK,V3,MA,py],
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 Z3=function(){LO.apply(this,arguments);var a=this;this.hotlists=q(UN);this.acls=q(yO);this.id$=new vf(1);this.hotlist$=this.id$.pipe(zf(function(b){return a.hotlists.watch(b)}))};Z(Z3,LO);Z3.\u0275dir=LO.\u0275dir;Z3.prototype.isThinking=function(a){var b=a?"hotlists/"+a:void 0;return this.hotlists.isThinking(a)||this.acls.isThinking(b)};Z3.prototype.ngOnChanges=function(a){var b;(a=(b=a.hotlistId)==null?void 0:b.currentValue)&&this.id$.next(a)};
Z3.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(Z3)))(b||Z3)}}();
Z3.\u0275cmp=C({type:Z3,selectors:[["b-edit-hotlist-header"]],inputs:{hotlistId:"hotlistId"},features:[Ff,Gx],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&&(K(0,"header",0)(1,"h2")(2,"span",1),S(3),L(),F(4,VZb,1,1),U(5,"async"),L(),F(6,WZb,2,0,"strong",2),U(7,"async"),F(8,XZb,1,0,"b-spinner"),L());if(a&2){var c,d;B(3);T(" Hotlist ",b.hotlistId,": ");B();G((c=W(5,4,b.hotlist$))?4:-1,c);B(2);G(((d=W(7,6,
b.hotlist$))==null?0:d.archived)?6:-1);B(2);G(b.isThinking(b.hotlistId)?8:-1)}},dependencies:[VS,py],styles:["[_nghost-%COMP%] {\n      display: block;\n    }"]});var a4=function(){LO.apply(this,arguments);this.activeSession=q(Zu);this.ROUTES=zs;this.id$=new vf(1);this.enableBulkEditUi=!this.activeSession.userRequiresCaptcha()};Z(a4,LO);a4.\u0275dir=LO.\u0275dir;a4.prototype.ngOnChanges=function(a){var b;(a=(b=a.hotlistId)==null?void 0:b.currentValue)&&this.id$.next(a)};a4.prototype.onPressBack=function(){var a;(a=window.history)==null||a.back()};a4.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(a4)))(b||a4)}}();
a4.\u0275cmp=C({type:a4,selectors:[["b-edit-hotlist-toolbar"]],inputs:{hotlistId:"hotlistId"},features:[Ff,Gx],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&&(K(0,"section",0)(1,"b-button",
1),N("onAction",function(){return b.onPressBack()}),M(2,"b-icon",2),L(),K(3,"a",3),S(4," View Issues "),L(),F(5,YZb,2,3,"hotlist-add-issue-btn",4),L());a&2&&(B(3),I("href",b.ROUTES.viewHotlist.makeHref(b.hotlistId),Me),B(2),G(b.enableBulkEditUi?5:-1))},dependencies:[YT,ZA,XA,TA,hK,U3,hS,MA,py],styles:[".button-bar[_ngcontent-%COMP%] {\n      display: flex;\n      align-items: center;\n      height: 46px;\n      box-sizing: border-box;\n    }"]});var qZd=new Map([[403,"You do not have permission to view this Hotlist."],[404,"This Hotlist does not exist."]]),b4=function(){this.routeParams=q(hR);this.pageTitle=q(w1);this.permissions=q(mP);this.hotlists=q(UN);this.window=q(ZP);this.id=this.routeParams.hotlistId;this.resourceId="hotlists/"+this.id;this.isAdmin$=this.permissions.watch(this.resourceId).pipe(A(function(a){return a==null?void 0:a.admin}));this.hotlistErrorMsg$=this.hotlists.error$.pipe(A(function(a){var b;return(b=a.status)!=null?
b:-1}),A(function(a){var b;return(b=qZd.get(a))!=null?b:"unknown error"}),yf(void 0));this.tabIndex=0};b4.prototype.ngOnInit=function(){this.pageTitle.setTitle("Edit Hotlist "+this.id);this.window.location.hash.includes("access")&&(this.tabIndex=1)};b4.\u0275fac=function(a){return new (a||b4)};
b4.\u0275cmp=C({type:b4,selectors:[["edit-hotlist"]],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&&(F(0,$Zb,12,14),U(1,"async"),F(2,a_b,6,1),U(3,"async"));if(a&2){var c;G(W(1,2,b.hotlistErrorMsg$)===void 0?0:-1);B(2);G((c=W(3,4,b.hotlistErrorMsg$))?2:-1,c)}},dependencies:[X3,Y3,Z3,a4,jT,cL,bL,YK,ZK,py],encapsulation:2});var c4=function(){};c4.\u0275fac=function(a){return new (a||c4)};c4.\u0275cmp=C({type:c4,selectors:[["b-error-banner"]],inputs:{error:"error"},decls:1,vars:1,consts:[["messageType","error"]],template:function(a,b){a&1&&F(0,b_b,3,1,"b-callout",0);a&2&&G(b.error?0:-1)},dependencies:[uT,vT],encapsulation:2});var d4=function(){};d4.\u0275fac=function(a){return new (a||d4)};d4.\u0275mod=$e({type:d4});d4.\u0275inj=Dc({imports:[FN,wT,c4]});var rZd=[b4,X3,Y3,Z3,a4,V3,U3],e4=function(){};e4.\u0275fac=function(a){return new (a||e4)};e4.\u0275mod=$e({type:e4});e4.\u0275inj=Dc({imports:[FN,mC,ZA,iK,ZT,sT,cL,xT,XS,d4,UW,oT,rZd]});var f4=function(){};f4.\u0275fac=function(a){return new (a||f4)};f4.\u0275mod=$e({type:f4});f4.\u0275inj=Dc({imports:[n1,ZT,y_,FN,SW,u2,e4,T2,xT,ZA,pB,iK,XS,U2,C_,O2,Hxd,W3]});var g4=function(){LO.call(this);this.element=q(Gd);this.bLocation=q(US);this.hotkeys=q(dT);this.cdr=q(MO,{self:!0});this.focusedIndex=0;this.convertUserToString=Rm;this.hotlists=[];this.registerKeys()};Z(g4,LO);g4.\u0275dir=LO.\u0275dir;h=g4.prototype;h.setFocusOnIndex=function(a){this.focusedIndex=a};h.isFocused=function(a){return this.focusedIndex===a};h.selectNext=function(){this.focusedIndex+1>=this.hotlists.length||(this.focusedIndex++,this.scrollToFocusedIndex())};
h.selectPrevious=function(){this.focusedIndex-1<0||(this.focusedIndex--,this.scrollToFocusedIndex())};
h.registerKeys=function(){var a=this,b=eT(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)};h.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)}}};h.renderRowLabel=function(a){return this.hotlists[a].name};h.editHotlist=function(a){this.bLocation.path(zs.editHotlist.makeHref(a.hotlistId))};
g4.\u0275fac=function(a){return new (a||g4)};
g4.\u0275cmp=C({type:g4,selectors:[["b-hotlist-grid"]],inputs:{hotlists:"hotlists"},features:[Ig([MO]),Ff],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&&(Sf(0,"table",0)(1,"thead")(2,"tr",1),Uf(3,"th",2),Sf(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),S(8," Hotlist name "),Tf()()()(),Sf(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),S(13," Description "),Tf()()()(),Sf(14,"th")(15,"div",3)(16,"div",4)(17,"div",5),S(18," Admins "),Tf()()()(),
Sf(19,"th")(20,"div",3)(21,"div",4)(22,"div",5),S(23," ID "),Tf()()()()()(),Sf(24,"tbody"),Pf(25,e_b,12,8,"tr",6,Of),Tf()());a&2&&(B(25),Qf(b.hotlists))},encapsulation:2});var h4=function(){};h4.\u0275fac=function(a){return new (a||h4)};h4.\u0275mod=$e({type:h4});h4.\u0275inj=Dc({imports:[FN]});var i4=function(){this.bLocation=q(US);this.butterBar=q(JM)},sZd=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};i4.prototype.getCount=function(){var a=sZd(this,"c");return a?Jm(a):null};var tZd=function(a){return(a=sZd(a,"p"))?Jm(a):null};i4.prototype.getQuery=function(){return sZd(this,"q")};
i4.prototype.getDisplayColumns=function(){var a=this.bLocation.search().d;return a?(Array.isArray(a)?a:[a]).map(ou).filter(ln):null};i4.prototype.getSortColumns=function(){var a=this.bLocation.search().s;return a?(Array.isArray(a)?a:[a]).map(XLb).filter(ln):null};
var j4=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 uZd(e)}));b.sortColumns!==void 0&&d("s",b.sortColumns==null?null:(b.sortColumns||[]).map(function(e){var f=e.direction=="ASCENDING"?"asc":"desc";return uZd(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)},uZd=function(a){return a.isCustomField()?String(a.customFieldId):a.type.toLowerCase()};i4.\u0275fac=function(a){return new (a||i4)};i4.\u0275prov=Cc({token:i4,factory:i4.\u0275fac,providedIn:"root"});var k4=function(){this.urlPreferences=q(i4);this.userPreferencesManager=q(VP);this.customFieldFridge=q(dO)};k4.prototype.fetch=function(a,b){a=this.getParameters(a,b===void 0?null:b);return{searchPreferences:Fs({page:a.page,query:a.query,resultsPerPage:a.resultsPerPage,sortColumns:a.sortColumns}),displayColumns:a.displayColumns}};
k4.prototype.getParameters=function(a,b){var c=this,d=b?function(){return vZd(b)}:function(){return wZd(c)},e=b?function(){return xZd(b)}:function(){return yZd(c)};d=Promise.resolve(this.urlPreferences.getDisplayColumns()).then(function(k){return l4(k)}).then(null,d).then(function(k){return l4(k)}).then(null,wMc(a.displayColumns)).then(function(k){return zZd(c,k)});e=Promise.resolve(this.urlPreferences.getSortColumns()).then(function(k){return l4(k)}).then(null,e).then(function(k){return l4(k)}).then(null,
wMc(a.sortColumns));var f=Promise.resolve(this.urlPreferences.getCount()).then(function(k){return l4(k)}).then(null,function(){return AZd(c)}).then(function(k){return l4(k)}).then(null,wMc(a.resultsPerPage)),g=Promise.resolve(this.urlPreferences.getQuery()).then(function(k){return l4(k)}).then(null,function(){return BZd(b,function(k){return k.query})}).then(null,wMc(a.query));a=tZd(this.urlPreferences)||a.page;return{displayColumns:d,sortColumns:e,resultsPerPage:f,query:g,page:a}};
var l4=function(a){return a==null?Promise.reject(null):a},vZd=function(a){return BZd(a,function(b){return b.displayColumn}).then(function(b){return CZd(b)})},xZd=function(a){return BZd(a,function(b){return b.sortOrder}).then(function(b){return DZd(b)})},yZd=function(a){return ee(a.userPreferencesManager.sortColumnsPreferences$).then(function(b){return l4(b)}).then(function(b){return DZd(b)})},wZd=function(a){return ee(a.userPreferencesManager.displayColumnsPreferences$).then(function(b){return l4(b)}).then(function(b){return CZd(b)})},
AZd=function(a){return ee(a.userPreferencesManager.preferences$.pipe(A(function(b){var c;return(c=b.resultsPerPage)!=null?c:null}))).then(function(b){return l4(b)})},BZd=function(a,b){return a?a.then(function(c){c=b(c);return c==null?Promise.reject(null):c}):Promise.reject(null)},CZd=function(a){if(!a||!a.length)return null;a=Nq(a,function(b){return b.customFieldId||b.customFieldName||b.type});return a.map(function(b){return new nu({customFieldId:b.customFieldId||void 0,customFieldName:b.customFieldName||
void 0,type:b.type})})},DZd=function(a){return a&&a.length?a.map(function(b){return b.column!==void 0?new qu(new nu(b.column),b.order):new qu(new nu(b.field),b.direction)}).filter(function(b){return b.fieldId.type!="CUSTOM_FIELD"||b.fieldId.customFieldId!=null}):null},zZd=function(a,b){function c(){for(var k=l(b),m=k.next();!m.done;m=k.next())if(m=m.value,m.isCustomField()&&!m.customFieldName){var r=d[m.customFieldId];m.customFieldName=r?r:"Custom field "+m.customFieldId}return b}if(!b)return Promise.resolve([]);
for(var d={},e=[],f=l(b),g=f.next();!g.done;g=f.next())g=g.value,g.customFieldId&&g.isCustomField()&&(g.customFieldName?d[g.customFieldId]=g.customFieldName:e.push(ee(a.customFieldFridge.watch(g.customFieldId)).then(function(k){k&&(d[k.customFieldId]=k.name)})));return Promise.all(e).then(c,c)};k4.\u0275fac=function(a){return new (a||k4)};k4.\u0275prov=Cc({token:k4,factory:k4.\u0275fac,providedIn:"root"});var m4=function(){LO.call(this);var a=this;this.cdr=q(MO);this.bLocation=q(US);this.$log=q(XM);this.butterBar=q(JM);this.analytics=q(PO);this.issuePagination=q(v1);this.gridPreferencesFetcher=q(k4);this.paths=q(wV);this.errorHandler=q(ZM);this.domSafe=q($P);this.timeout=q(YM);this.hotkeys=q(dT);this.appSearchState=q(gS);this.componentFridge=q(AN);this.issueFullFridge=q(RO);this.activeSession=q(Zu);this.window=q(ZP);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 KO;this.resultsLoaded=new KO;this.selectionChange=new KO;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||HWb(b)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue in the current panel",onPress:function(){var b;(b=a.issuesGrid)==null||IWb(b)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var b;(b=a.issuesGrid)==null||XYd(b)}},{keys:["s"],displayAs:"s",description:"Star/Unstar the current issue",onPress:function(){var b;(b=a.issuesGrid)==null||$Yd(b)}},{keys:[js("i")],displayAs:"Shift+i",description:"Mark as read",
onPress:function(){var b;(b=a.issuesGrid)==null||aZd(b,!0)}},{keys:[js("u")],displayAs:"Shift+u",description:"Mark as unread",onPress:function(){var b;(b=a.issuesGrid)==null||aZd(b,!1)}},{keys:[ks("*","a")],displayAs:"* then a",description:"Select all issues in the current panel",onPress:function(){var b;(b=a.issuesGrid)==null||b.selectAll()}},{keys:[ks("*","n")],displayAs:"* then n",description:"Deselect all issues in the current panel",onPress:function(){var b;(b=a.issuesGrid)==null||UYd(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||YYd(d)}else{var e;(e=a.issuesGrid)==null||YYd(e)}}}];this.destroyed$.subscribe(function(){var b;(b=a.unregisterHotkeys)==null||b.call(a)})};Z(m4,LO);m4.\u0275dir=LO.\u0275dir;
m4.prototype.columnsChange=function(a){this.issueColumns=a};m4.prototype.ngOnInit=function(){this.getIssues();EZd(this)};var EZd=function(a){var b;(b=a.unregisterHotkeys)==null||b.call(a);a.isFocused?a.unregisterHotkeys=eT(a.hotkeys,{title:"Bookmark Group Dashboard",hotkeys:a.BASE_HOTKEYS}):a.unregisterHotkeys=void 0},w_b=function(a,b){a.issuesGrid=b;ZYd(a.issuesGrid,function(){var c,d={panelId:a.panel.panelId,selectedIssues:(c=a.issuesGrid)==null?void 0:c.getSelectedIssues()};a.selectionChange.emit(d)})};
h=m4.prototype;h.setSort=function(a,b,c){c=c===void 0?!0:c;var d=ou(a);if(d==null)this.$log.warn("WARNING: Invalid column name: "+a);else{var e=new qu(d,b=="ASC"?"ASCENDING":"DESCENDING");Dba(this.sortPreferences,function(f){return Gm(f.fieldId,e.fieldId)});this.sortPreferences=c?[e].concat(this.sortPreferences.slice(0,2)):[e];this.page=1;this.refreshResults()}};
h.getSort=function(){if(!this.sortPreferences.length)return null;var a=this.sortPreferences[0];a={field:a.fieldId.type=="CUSTOM_FIELD"?String(a.fieldId.customFieldId):YSa(a.fieldId.type),direction:a.direction=="ASCENDING"?"ASC":"DESC"};Gm(a,this.cachedSort)||(this.cachedSort=a);return this.cachedSort};h.initColumns=function(a,b){this.displayColumns=a;this.issueColumnsInternal=[].concat(n(b),n(dSb(a)));this.initialIssueColumns=Hm(this.issueColumns);this.isColumnSaveEnabled=!0};
h.goToIssue=function(a,b,c){c&&c.target.tagName==="A"||(this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"viewIssue",b?"read":"unread"),a=As(a),c&&uq(c)?this.domSafe.openInNewTab(a):this.bLocation.setUrl(a))};h.goToPage=function(a){this.page=a;this.getIssues()};h.refreshResults=function(){KTd(this.issuePagination);this.getIssues()};h.exportCsv=function(){Iqd(this.domSafe,this.getCsvUrl())};h.getCsvUrl=function(){this.$log.warn("WARNING: Method getCsvUrl() not implemented.");return""};
h.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()})};
h.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 HTd(b.issuePagination,e)});a.catch(function(e){typeof e==="number"?
b.goToPage(e):e&&b.errorHandler.errorHandler(null,e)});return Fs({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=Hm(b.sortPreferences));d.displayColumns.then(function(g){b.initColumns(g,b.getMetaColumns(f))});b.resultsLoaded.emit(b.searchResults.issues);
b.timeout.schedule(function(){var g=b.issuePagination.getFocusedIssue();g!=-1&&(b.focusedRowIndex=g-f.startIndex)})})};
h.subscribeToIssueChanges=function(a){var b=this,c;(c=this.issueSubscriptions)==null||c.unsubscribe();this.issueSubscriptions=new Od;a=l(a);for(c=a.next();!c.done;c=a.next())this.issueSubscriptions.add(this.issueFullFridge.watch(c.value.id).pipe(te(ln),Af(this.destroyed$)).subscribe(function(d){var e,f;return y(function(g){switch(g.nextAddress){case 1:if(!b.searchResults){g.jumpTo(2);break}if(!d.snapshot[0].componentId){e=void 0;g.jumpTo(3);break}return z(g,ee(b.componentFridge.watch(d.snapshot[0].componentId,
{trustUncertainMemory:!0})),4);case 4:e=g.yieldResult;case 3:f=e;if(!f||!b.searchResults)return g.return();CTd(b.searchResults,[{issue:d,component:f}]);b.searchResults=b.searchResults.clone();case 2:b.cdr.detectChanges(),$d(g)}})}))};h.getGridPreferencesDefaults=function(){return{page:this.page,displayColumns:m4.DEFAULT_COLUMNS,sortColumns:[],query:"",resultsPerPage:25}};
h.save=function(){var a=this,b=eSb(this.issueColumns.slice((this.searchResults?this.getMetaColumns(this.searchResults):m4.DEFAULT_META_COLUMNS).length)).map(function(c){return new nu(c)});this.resource.displayColumn=b;b=this.sortPreferences.map(function(c){return{direction:c.direction,field:c.fieldId}});this.resource.sortOrder=b;fs(this.butterBar,"Saving changes to panel...");this.saveResource().then(function(){a.initialIssueColumns=Hm(a.issueColumns);a.initialSortPreferences=Hm(a.sortPreferences);
a.cdr.detectChanges()})};h.discardChanges=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"discardChanges");this.issueColumns=[].concat(n(this.initialIssueColumns||[]));this.initialSortPreferences&&!Gm(this.initialSortPreferences,this.sortPreferences)&&(Bba(this.sortPreferences),et(Gba,this.sortPreferences,void 0,0).apply(null,this.initialSortPreferences),this.refreshResults())};
h.hasParamChanges=function(){return this.resource&&this.isEditable()?this.initialIssueColumns&&!Gm(this.initialIssueColumns,this.issueColumns)?!0:!!this.initialSortPreferences&&!Gm(this.initialSortPreferences,this.sortPreferences):!1};h.isEditable=function(){var a=this;return!!this.resource&&this.resource.adminUsers.some(function(b){return b.emailAddress===a.currentUserEmail})};h.getMetaColumns=function(){return m4.DEFAULT_META_COLUMNS};
h.getSearchParams=function(a){a=Hm(a);a.resultsPerPage=10;a.page=this.page;this.sortPreferences.length&&(a.sortColumns=this.sortPreferences);a.returnUrl=this.bLocation.getUrl();return a};
da.Object.defineProperties(m4.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){Gm(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&&EZd(this)},
get:function(){return this.focusedRowIndexInternal}},isFocused:{configurable:!0,enumerable:!0,get:function(){return this.focusedRowIndex!==null}}});m4.DEFAULT_META_COLUMNS=[bZd,dZd,eZd];m4.DEFAULT_COLUMNS=HXd.map(ou).filter(ln);m4.\u0275fac=function(a){return new (a||m4)};
m4.\u0275cmp=C({type:m4,selectors:[["b-base-issues-list"]],viewQuery:function(a,b){a&1&&kg(T3,5);if(a&2){var c;og(c=pg())&&(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:[Ff],decls:0,vars:0,template:function(){},encapsulation:2});var n4=function(){this.dialog=q(PQ);this.appEvents=q(DN);this.last=this.first=!1};n4.prototype.removePanel=function(){var a=this;this.dialog.open({title:"Remove Item?",content:Dh("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)}})};n4.\u0275fac=function(a){return new (a||n4)};
n4.\u0275cmp=C({type:n4,selectors:[["b-panel-controls"]],inputs:{panelId:"panelId",first:"first",last:"last"},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&&(K(0,"div")(1,"button",1),M(2,"mat-icon",2),L(),K(3,"mat-menu",null,0),E(5,j_b,6,4,"ng-template",3),L()());a&2&&(a=Q(4),B(),I("matMenuTriggerFor",a))},dependencies:[ZA,XA,VA,OJ,NJ,LF,JF,KF,OF,iz],encapsulation:2});var o4=function(){};o4.\u0275fac=function(a){return new (a||o4)};o4.\u0275mod=$e({type:o4});o4.\u0275inj=Dc({imports:[FN,OJ,ZA,n4]});var p4=function(){};p4.\u0275fac=function(a){return new (a||p4)};p4.\u0275mod=$e({type:p4});p4.\u0275inj=Dc({imports:[FN,AK,l3]});var q4=function(){};q4.\u0275fac=function(a){return new (a||q4)};q4.\u0275mod=$e({type:q4});q4.\u0275inj=Dc({imports:[FN,p4,m3]});var r4=function(){};r4.\u0275fac=function(a){return new (a||r4)};r4.\u0275mod=$e({type:r4});r4.\u0275inj=Dc({imports:[FN,AK,q4,n3]});var s4=function(){};s4.\u0275fac=function(a){return new (a||s4)};s4.\u0275mod=$e({type:s4});s4.\u0275inj=Dc({imports:[FN,iK,F2,q3,o3]});var FZd=function(){};FZd.\u0275fac=function(a){return new (a||FZd)};FZd.\u0275mod=$e({type:FZd});FZd.\u0275inj=Dc({imports:[FN,OJ,YJ,iK,ZA,xT,s4,s3]});var GZd=[t3],HZd=function(){};HZd.\u0275fac=function(a){return new (a||HZd)};HZd.\u0275mod=$e({type:HZd});HZd.\u0275inj=Dc({imports:[FN,ZA,kz,GZd]});var t4=function(){};t4.\u0275fac=function(a){return new (a||t4)};t4.\u0275mod=$e({type:t4});t4.\u0275inj=Dc({imports:[FN,p4,u3]});var u4=function(){};u4.\u0275fac=function(a){return new (a||u4)};u4.\u0275mod=$e({type:u4});u4.\u0275inj=Dc({imports:[NZ,FN,ZA,iK,AK,kz,B3]});var v4=function(){};v4.\u0275fac=function(a){return new (a||v4)};v4.\u0275mod=$e({type:v4});v4.\u0275inj=Dc({imports:[FN,tT,G_,ZA,u4,kz,XS,c0,C3]});var w4=function(){};w4.\u0275fac=function(a){return new (a||w4)};w4.\u0275mod=$e({type:w4});w4.\u0275inj=Dc({imports:[FN,iK,JY,WT,H3,AK,I3]});var x4=function(){};x4.\u0275fac=function(a){return new (a||x4)};x4.\u0275mod=$e({type:x4});x4.\u0275inj=Dc({imports:[FN,iK,JY,AK,J3]});var y4=function(){};y4.\u0275fac=function(a){return new (a||y4)};y4.\u0275mod=$e({type:y4});y4.\u0275inj=Dc({imports:[FN,nY,yU,nC,qT,I2]});var z4=function(){};z4.\u0275fac=function(a){return new (a||z4)};z4.\u0275mod=$e({type:z4});z4.\u0275inj=Dc({imports:[FN,iK,ZA,AK,t4,GU,q4,y4,uA,vU,K3]});var A4=function(){};A4.\u0275fac=function(a){return new (a||A4)};A4.\u0275mod=$e({type:A4});A4.\u0275inj=Dc({imports:[ZT,wT,FN,mC,ZA,pB,kS,sT,iK,WT,M3,L3]});var IZd={},JZd=(IZd.COMFORTABLE=330,IZd.COZY=300,IZd.COMPACT=270,IZd),B4=function(){LO.call(this);var a=this;this.userPreferencesManager=q(VP);this.RIGHT_SIDEBAR_MIN_WIDTH=245;this.density$=this.userPreferencesManager.preferences$.pipe(A(function(b){var c;return(c=b.themePreferences)==null?void 0:c.density}));this.sidebarWidthPreference$=this.userPreferencesManager.preferences$.pipe(A(function(b){var c;return(c=b.layoutPreferences)==null?void 0:c.rightSidebarWidth}));this.rightSidebarWidthChanged$=
new rf;this.currentSidebarWidth$=he([this.density$,this.sidebarWidthPreference$,this.rightSidebarWidthChanged$.pipe(yf(void 0))]).pipe(A(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:JZd[b!=null?b:"COMFORTABLE"]}));he([this.rightSidebarWidthChanged$.pipe(of()),this.sidebarWidthPreference$]).pipe(te(function(b){var c=l(b);b=c.next().value;return c.next().value!==b}),zf(function(b){var c=l(b);b=c.next().value;c.next();return xqd(a.userPreferencesManager,
{rightSidebarWidth:b})}),Af(this.destroyed$)).subscribe()};Z(B4,LO);B4.\u0275dir=LO.\u0275dir;B4.prototype.ngOnInit=function(){};B4.\u0275fac=function(a){return new (a||B4)};
B4.\u0275cmp=C({type:B4,selectors:[["issue-metadata-sidebar"]],inputs:{issueId:"issueId"},features:[Ff],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&&(K(0,"h3",0),S(1,"Issue metadata"),L(),K(2,"b-resizable-sidebar",1),U(3,"async"),N("widthChanged",function(d){return b.rightSidebarWidthChanged$.next(d)}),K(4,"div",2)(5,"div",3),F(6,k_b,1,1,"edit-issue-metadata",4),L()()());
if(a&2){B(2);var c;I("minWidth",b.RIGHT_SIDEBAR_MIN_WIDTH)("size",(c=W(3,3,b.currentSidebarWidth$))!=null?c:0);B(4);G(b.issueId?6:-1)}},dependencies:[N3,lT,py],styles:["[_nghost-%COMP%] {\n      display: inherit;\n    }"],changeDetection:0});var C4=function(){};C4.\u0275fac=function(a){return new (a||C4)};C4.\u0275mod=$e({type:C4});C4.\u0275inj=Dc({imports:[sU,PU,FN,aV,BU,w4,x4,JY,gT,AK,XW,z4,ZU,iK,oT,A4,s_,EV,RU,xZ,A_,F_,E_,N3,B4]});var KZd=function(){};KZd.\u0275fac=function(a){return new (a||KZd)};KZd.\u0275mod=$e({type:KZd});KZd.\u0275inj=Dc({imports:[ZA,iK,mC,DB,qC,IB,QU,RU,FN,v4,YW,vU,sU,XS,C4,tT,lW,WW,d0,O3]});var D4=function(){};D4.\u0275fac=function(a){return new (a||D4)};D4.\u0275mod=$e({type:D4});D4.\u0275inj=Dc({imports:[FN,AK,P3]});var E4=function(){};E4.\u0275fac=function(a){return new (a||E4)};E4.\u0275mod=$e({type:E4});E4.\u0275inj=Dc({imports:[FN,D4,GU,S3,Q3]});var F4=function(){};F4.\u0275fac=function(a){return new (a||F4)};F4.\u0275mod=$e({type:F4});F4.\u0275inj=Dc({imports:[eYd,FN,OJ,YJ,iK,ZA,pB,IA,FL,xT,s4,p4,r4,GU,t4,sU,aT,r_,E4,cX,SW,g1,D2,AK,XW,KZd,NU,ZW,VW,GXd,FZd,kyd,HZd,wT,v3,T3]});var G4=function(){this.hotlistsApi=q(PN);this.butterBar=q(JM);this.appEvents=q(DN)};
G4.prototype.repositionIssue=function(a,b,c,d,e,f){var g=this,k=b[0].position,m=k>b[1].position,r=b[c],w=b[d].position;Pba(b,c,d);f==null||f();fs(this.butterBar,"Saving...",0);return this.hotlistsApi.repositionHotlistIssue(a,r.issueId,w).then(function(){for(var x=k,D=l(b),H=D.next();!H.done;H=D.next())H.value.position=x,x+=m?-1:1;f==null||f();fs(g.butterBar,"Saved issue position.",4E3);g.appEvents.hotlistChanged.next({hotlistId:a,origin:e});return g.hotlistsApi.get(a)})};
G4.\u0275fac=function(a){return new (a||G4)};G4.\u0275prov=Cc({token:G4,factory:G4.\u0275fac,providedIn:"root"});var H4=function(){this.pageChange=new KO;this.resultsPerPageChange=new KO;this.resultsPerPageFixed=!1;this.resultsPerPageOptions=[10,25,50,100,250]};H4.prototype.nextPage=function(){this.searchResults&&this.pageChange.emit({page:this.searchResults.params.page+1})};H4.prototype.prevPage=function(){this.searchResults&&this.pageChange.emit({page:this.searchResults.params.page-1})};
da.Object.defineProperties(H4.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}})}}});H4.\u0275fac=function(a){return new (a||H4)};
H4.\u0275cmp=C({type:H4,selectors:[["b-pagination"]],inputs:{searchResults:"searchResults",resultsPerPageFixed:"resultsPerPageFixed"},outputs:{pageChange:"pageChange",resultsPerPageChange:"resultsPerPageChange"},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","matTooltip",
"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","matTooltip","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&&(K(0,"div",0),F(1,l_b,1,1,"b-actions-menu",1),F(2,m_b,6,3,"span",2),K(3,"button",
3),N("click",function(){return b.prevPage()})("keydown.enter",function(c){b.prevPage();return c.stopPropagation()}),M(4,"mat-icon",4),L(),K(5,"button",5),N("click",function(){return b.nextPage()})("keydown.enter",function(c){b.nextPage();return c.stopPropagation()}),M(6,"mat-icon",6),L()());a&2&&(B(),G(b.searchResults&&b.searchResults.issues.length>0&&!b.resultsPerPageFixed?1:-1),B(),G(b.searchResults&&b.searchResults.issues.length>0?2:-1),B(),I("disabled",!(b.searchResults==null?0:b.searchResults.hasPreviousPage())),
B(2),I("disabled",!(b.searchResults==null?0:b.searchResults.hasNextPage())))},dependencies:[UY,xV,ZA,XA,VA,hK,iz,MA],encapsulation:2});var I4=function(){};I4.\u0275fac=function(a){return new (a||I4)};I4.\u0275mod=$e({type:I4});I4.\u0275inj=Dc({imports:[FN,ZA,NZ,f1,iK,H4]});var J4=function(){m4.apply(this,arguments);this.hotlists=q(G4);this.hotlistApi=q(PN);this.appEvents=q(DN);this.ROUTES=zs;this.resource=this.resultsPerPage=null};Z(J4,m4);J4.\u0275dir=m4.\u0275dir;h=J4.prototype;h.ngOnInit=function(){m4.prototype.ngOnInit.call(this)};h.setSort=function(a,b){var c=this.getSort();a==="position"||c&&c.field==="position"?m4.prototype.setSort.call(this,a,b,!1):m4.prototype.setSort.call(this,a,b)};
h.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};
h.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"});fs(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()};h.getGridPreferencesDefaults=function(){return Object.assign({},m4.prototype.getGridPreferencesDefaults.call(this),{query:"hotlistId:"+this.hotlistId})};h.getMetaColumns=function(a){a=a.params.sortColumns||[];return a.length==0||a.length==1&&a[0].fieldId.type=="POSITION"?LZd:MZd};h.getSearchParams=function(a){a=m4.prototype.getSearchParams.call(this,a);a.hotlistId=this.hotlistId;this.resultsPerPage&&(a.resultsPerPage=this.resultsPerPage);return a};
h.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")})};J4.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(J4)))(b||J4)}}();
J4.\u0275cmp=C({type:J4,selectors:[["b-hotlist-panel"]],inputs:{hotlistId:"hotlistId",resultsPerPage:"resultsPerPage"},features:[Ig([MO]),Ff],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&&(K(0,"div",0)(1,"div",1)(2,"div",2),F(3,n_b,2,0,"div"),F(4,o_b,2,0,"div"),F(5,r_b,8,6,"div"),L(),F(6,s_b,5,0,"div",3),K(7,"b-pagination",4),N("pageChange",function(c){return b.goToPage(c.page)}),L()(),F(8,y_b,4,3,"div"),L());a&2&&(Jf("aria-busy",b.isLoading),B(3),G(b.resource||b.isLoading?-1:3),B(),G(!b.resource&&b.isLoading?4:-1),B(),G(b.resource?5:-1),B(),G(b.hasParamChanges()?6:-1),B(),I("searchResults",b.searchResults)("resultsPerPageFixed",
!0),B(),G(b.resource?8:-1))},dependencies:[ZA,XA,TA,hK,T3,MA,H4,n4,VS],encapsulation:2});var MZd=[bZd,dZd,eZd,fZd],LZd=[bZd,cZd,dZd,eZd,fZd],K4=function(){};K4.\u0275fac=function(a){return new (a||K4)};K4.\u0275mod=$e({type:K4});K4.\u0275inj=Dc({imports:[FN,F4,ZA,iK,I4,o4,XS,J4]});var L4=function(){m4.apply(this,arguments);this.savedSearchApi=q(XN);this.resource=this.resultsPerPage=null};Z(L4,m4);L4.\u0275dir=m4.\u0275dir;L4.prototype.ngOnInit=function(){m4.prototype.ngOnInit.call(this)};L4.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};L4.prototype.saveResource=function(){return Promise.resolve()};
L4.prototype.getSearchParams=function(a){a=m4.prototype.getSearchParams.call(this,a);this.resultsPerPage&&(a.resultsPerPage=this.resultsPerPage);return a};L4.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(L4)))(b||L4)}}();
L4.\u0275cmp=C({type:L4,selectors:[["b-saved-search-panel"]],inputs:{savedSearchId:"savedSearchId",resultsPerPage:"resultsPerPage"},features:[Ig([MO]),Ff],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&&(K(0,"div",0)(1,"div",1)(2,"div",2),F(3,z_b,2,0,"div"),F(4,A_b,2,0,"div"),F(5,D_b,8,6,"div",3),L(),K(6,"b-pagination",4),N("pageChange",function(c){return b.goToPage(c.page)}),L()(),F(7,I_b,4,3,"div"),L());a&
2&&(Jf("aria-busy",b.isLoading),B(3),G(b.resource||b.isLoading?-1:3),B(),G(!b.resource&&b.isLoading?4:-1),B(),G(b.resource?5:-1),B(),I("searchResults",b.searchResults)("resultsPerPageFixed",!0),B(),G(b.resource?7:-1))},dependencies:[hK,T3,MA,H4,n4,VS],encapsulation:2});var M4=function(){};M4.\u0275fac=function(a){return new (a||M4)};M4.\u0275mod=$e({type:M4});M4.\u0275inj=Dc({imports:[FN,F4,iK,I4,o4,XS,L4]});var N4=function(){this.label="Team"};N4.prototype.ngOnInit=function(){};N4.\u0275fac=function(a){return new (a||N4)};
N4.\u0275cmp=C({type:N4,selectors:[["b-team-breadcrumb"]],inputs:{teamPath:"teamPath",label:"label"},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&&(K(0,"div",0)(1,"span",1),Pf(2,J_b,3,4,"span",2,Of),L()());a&2&&(Jf("aria-label",b.label),B(2),Qf(b.teamPath))},dependencies:[EF],encapsulation:2});var O4=function(){};O4.\u0275fac=function(a){return new (a||O4)};O4.\u0275mod=$e({type:O4});O4.\u0275inj=Dc({imports:[FN,LU]});var NZd=["form"],OZd=["numberInput"],PZd=/^\d+\.?\d*$/,QZd={DAYS:0,YEARS:1,0:"DAYS",1:"YEARS"},P4=function(){this.disabled=!1;this.ariaLabel="";this.durationDaysChange=new KO;this.displayUnits=0;this.TimeUnit=QZd};
P4.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()})};P4.prototype.ngAfterViewInit=function(){};
P4.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))};P4.prototype.ngOnDestroy=function(){this.formSubscription&&this.formSubscription.unsubscribe()};P4.\u0275fac=function(a){return new (a||P4)};
P4.\u0275cmp=C({type:P4,selectors:[["b-duration-picker"]],viewQuery:function(a,b){a&1&&(kg(NZd,7),kg(OZd,7));if(a&2){var c;og(c=pg())&&(b.form=c.first);og(c=pg())&&(b.numberInput=c.first)}},inputs:{durationDays:"durationDays",disabled:"disabled",ariaLabel:"ariaLabel"},outputs:{durationDaysChange:"durationDaysChange"},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=t();K(0,"form",null,0)(2,"div",2)(3,"mat-form-field",3)(4,"mat-label");S(5," Custom Duration ");L();K(6,"input",4,1);N("keydown",function(d){u(c);switch(d.key){case "-":case "e":case "E":d.preventDefault()}return v()})("paste",function(d){u(c);var e=d.clipboardData.getData("Text");PZd.test(e)||d.preventDefault();return v()});
L()();K(8,"mat-form-field",3)(9,"mat-select",5)(10,"mat-option",6);S(11,"days");L();K(12,"mat-option",6);S(13,"year(s)");L()()()()()}a&2&&(B(6),I("ngModel",b.displayNumber)("disabled",b.disabled),Jf("aria-label",b.ariaLabel),B(3),I("ngModel",b.displayUnits)("disabled",b.disabled),B(),I("value",b.TimeUnit.DAYS),B(2),I("value",b.TimeUnit.YEARS))},dependencies:[mC,XB,xi,YB,PB,QB,gC,WB,UB,DB,qB,BB,tB,qC,EB,oC,qT,pT,hI,GA],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 RZd=function(){};RZd.\u0275fac=function(a){return new (a||RZd)};RZd.\u0275mod=$e({type:RZd});RZd.\u0275inj=Dc({imports:[FN,mC,qC,DB,qT,lW,P4]});var Q4=function(){this.dialogRef=q(dB);this.data=q(fB);this.documentationLinks=q(OQ)};Q4.prototype.getDisablingFieldsHelpLink=function(){return this.documentationLinks.getDisablingFieldsHelpLink()};Q4.prototype.onNoClick=function(){this.dialogRef.close(!1)};Q4.\u0275fac=function(a){return new (a||Q4)};
Q4.\u0275cmp=C({type:Q4,selectors:[["b-field-state-change-confirmation-dialog"]],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&&(K(0,"h1",0),S(1),L(),K(2,"div",1)(3,"p"),S(4," The "),
K(5,"strong"),S(6),L(),S(7," field will change state from "),K(8,"strong"),S(9),L(),S(10," to "),K(11,"strong"),S(12),L(),S(13,". "),L(),F(14,K_b,6,2,"p"),K(15,"p"),S(16,"Are you sure?"),L()(),K(17,"div",2)(18,"button",3),N("click",function(){return b.onNoClick()}),S(19," Cancel "),L(),K(20,"button",4),S(21," Confirm "),L()());a&2&&(B(),T("Field State Change for ",b.data.fieldName),B(5),Ag(b.data.fieldName),B(3),Ag(b.data.oldFieldState),B(3),Ag(b.data.newFieldState),B(2),G(b.data.noteText?14:-1),
B(6),I("mat-dialog-close",!0))},dependencies:[ZA,XA,TA,mB,hB,lB,kB],styles:[".notice[_ngcontent-%COMP%]{font-weight:bold}"]});var SZd=["fieldStateMenuButton"],R4=function(){this.dialog=q(gB);this.fieldName="";this.fieldState="INHERIT";this.confirmationDialog=this.enabledOnParent=!0;this.disabled=!1;this.fieldStateChange=new KO;this.FieldState=chd;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."}};R4.prototype.ngOnInit=function(){this.updateMenuButton()};R4.prototype.ngOnChanges=function(){this.updateMenuButton()};
var UZd=function(a,b){b!==a.fieldState&&(a.confirmationDialog?TZd(a,b):(a.fieldState=b,a.updateMenuButton(),a.fieldStateChange.emit(b)))},TZd=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);eB(a.dialog.open(Q4,{width:"500px",data:{fieldName:a.fieldName,oldFieldState:VZd(a,a.fieldState),
newFieldState:VZd(a,b),noteText:e}})).pipe(mf(1)).subscribe(function(f){f?(a.fieldState=b,a.updateMenuButton(),a.fieldStateChange.emit(b),a.disabled=!0):a.focus()})};R4.prototype.updateMenuButton=function(){this.defaultLabel="Default ("+(this.enabledOnParent?this.msgs.visibleName:this.msgs.hiddenName)+")";this.menuLabel=VZd(this,this.fieldState)};
var VZd=function(a,b){switch(b){case "INHERIT":return a.defaultLabel;case "DISABLED":return a.msgs.hiddenName;case "ENABLED":return a.msgs.visibleName;default:sb(b,"Unknown FieldState.")}};R4.prototype.focus=function(){this.disabled=!1;this.fieldStateMenuButton.nativeElement.focus()};R4.\u0275fac=function(a){return new (a||R4)};
R4.\u0275cmp=C({type:R4,selectors:[["b-field-state-menu"]],viewQuery:function(a,b){a&1&&kg(SZd,5,Gd);if(a&2){var c;og(c=pg())&&(b.fieldStateMenuButton=c.first)}},inputs:{fieldName:"fieldName",fieldState:"fieldState",enabledOnParent:"enabledOnParent",confirmationDialog:"confirmationDialog",disabled:"disabled"},outputs:{fieldStateChange:"fieldStateChange"},features:[Gx],decls:33,vars:17,consts:[["fieldStateMenuButton",""],["fieldStateMenu","matMenu"],["type","button","mat-button","",1,"field-state-menu-button",
"medium",3,"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=t();K(0,"div")(1,"button",2,0)(3,"div",3);M(4,"span",4)(5,"b-icon",5);L()()();K(6,"mat-menu",null,1)(8,"div",6)(9,"div",7)(10,"button",8);N("click",function(){u(c);return v(UZd(b,b.FieldState.INHERIT))});M(11,"b-icon",9);K(12,"div",10);S(13);L();K(14,"div",11);S(15);L()()();M(16,"mat-divider");K(17,"button",12);N("click",function(){u(c);return v(UZd(b,b.FieldState.DISABLED))});
K(18,"div",13)(19,"div",14);M(20,"b-icon",9);K(21,"div",10);S(22);L();K(23,"div",11);S(24);L()()()();K(25,"button",12);N("click",function(){u(c);return v(UZd(b,b.FieldState.ENABLED))});K(26,"div",13)(27,"div",14);M(28,"b-icon",9);K(29,"div",10);S(30);L();K(31,"div",11);S(32);L()()()()()()}a&2&&(a=Q(7),B(),yg("mat-stroked-button",!b.disabled),I("disabled",b.disabled)("matMenuTriggerFor",a),B(3),I("innerHTML",b.menuLabel,Le),B(6),yg("b-menu-item-checked",b.fieldState===b.FieldState.INHERIT),B(3),T(" ",
b.defaultLabel," "),B(2),T(" ",b.msgs.inheritDescription," "),B(2),yg("b-menu-item-checked",b.fieldState===b.FieldState.DISABLED),B(5),T(" ",b.msgs.hiddenName," "),B(2),T(" ",b.msgs.hiddenDescription," "),B(),yg("b-menu-item-checked",b.fieldState===b.FieldState.ENABLED),B(5),T(" ",b.msgs.visibleName," "),B(2),T(" ",b.msgs.visibleDescription," "))},dependencies:[ZA,XA,TA,OJ,NJ,LF,JF,OF,hS,XJ],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 S4=function(){};S4.\u0275fac=function(a){return new (a||S4)};S4.\u0275mod=$e({type:S4});S4.\u0275inj=Dc({imports:[FN,ZA,pB,YJ,OJ,xT,ZT,R4,Q4]});var T4=function(){this.dialogRef=q(dB);this.data=q(fB);this.issueId=this.data.issueId;this.issueTitle=this.data.issueTitle};T4.prototype.close=function(){this.dialogRef.close(!1)};T4.\u0275fac=function(a){return new (a||T4)};
T4.\u0275cmp=C({type:T4,selectors:[["b-unsubscribe-dialog"]],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&&(K(0,"h1",0),S(1,"Unsubscribe From Issue"),L(),K(2,"mat-dialog-content")(3,"div",1),S(4," Are you sure you would like to unsubscribe from the following issue? "),
L(),M(5,"br"),K(6,"div",2)(7,"a",3)(8,"span"),S(9),L()(),S(10," - "),K(11,"span"),S(12),L()(),M(13,"br"),K(14,"div",1),S(15," By unsubscribing, you will no longer receive email updates about this issue. "),L()(),K(16,"mat-dialog-actions")(17,"button",4),N("click",function(){return b.close()}),S(18," Cancel "),L(),K(19,"button",5),N("click",function(){b.dialogRef.close(!0)}),S(20," Unsubscribe "),L()());a&2&&(B(7),I("href",Gg("/issues/",b.issueId),Me),B(2),T("b/",b.issueId),B(3),Ag(b.issueTitle))},
dependencies:[ZA,XA,TA,mB,lB,kB],encapsulation:2});var U4=function(){this.activeSession=q(Zu);this.matDialogService=q(gB);this.issueFullFridge=q(RO);this.analytics=q(PO);this.routeParams=q(hR);this.iconOnly=!1;this.subscriptionChange=new KO;this.showNotificationSettings=new KO;this.menuLabel="Default";this.menuIcon="notifications_none_24px";this.isAnonymous=this.activeSession.isAnonymous();this.subscriptionInternal="UNKNOWN_SUBSCRIPTION";this.NotificationSubscription=ohd;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"}]])};
U4.prototype.ngOnInit=function(){WZd(this)};U4.prototype.ngOnChanges=function(){this.updateMenuButton()};U4.prototype.updateSubscription=function(a){a!==this.subscriptionInternal&&this.subscriptionChange.emit(a)};U4.prototype.updateMenuButton=function(){var a=this.subscriptions.get(this.subscriptionInternal);a&&(this.menuLabel=a.label,this.menuIcon=a.icon)};
var WZd=function(a){var b,c;y(function(d){if(d.nextAddress==1)return a.routeParams.unsubscribe!=="true"||a.subscription&&a.subscription==="UNSUBSCRIBED"?d.return():z(d,ee(a.issueFullFridge.watch(a.issueId)),2);if(d.nextAddress!=3){b=d.yieldResult;if(!b)return d.return();a.matDialogService.closeAll();return z(d,ee(eB(a.matDialogService.open(T4,{width:"400px",data:{issueId:a.issueId,issueTitle:b.snapshot[0].title}}))),3)}if(c=d.yieldResult)a.updateSubscription("UNSUBSCRIBED"),a.analytics.trackEvent("editIssue",
"unsubscribeUsingDialog");$d(d)})};da.Object.defineProperties(U4.prototype,{subscription:{configurable:!0,enumerable:!0,set:function(a){a!=null&&(this.subscriptionInternal=a)},get:function(){return this.subscriptionInternal}}});U4.\u0275fac=function(a){return new (a||U4)};
U4.\u0275cmp=C({type:U4,selectors:[["b-notification-menu"]],inputs:{subscription:"subscription",iconOnly:"iconOnly",issueId:"issueId"},outputs:{subscriptionChange:"subscriptionChange",showNotificationSettings:"showNotificationSettings"},features:[Gx],decls:63,vars:30,consts:[["notificationMenu","matMenu"],["allUpdates",""],["all",""],["majorUpdates",""],["major",""],["type","button","mat-button","","matTooltip","Notification menu",1,"notification-menu-button",3,"matMenuTriggerFor","disabled"],[1,
"notification-menu-button-inner"],["size","small",1,"icon",3,"name"],[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=t();K(0,"div")(1,"button",5)(2,"div",6);M(3,"b-icon",7);F(4,L_b,2,1);L()()();K(5,"mat-menu",null,0)(7,"div",8)(8,"div",9)(9,"button",10);N("click",function(){u(c);return v(b.updateSubscription(b.NotificationSubscription.UNKNOWN_SUBSCRIPTION))});M(10,"b-icon",11);K(11,"div",12);S(12," Default ");L();K(13,"div",13);S(14," receive emails based on your default settings. ");L()();M(15,"mat-divider",14);K(16,"button",15);N("click",function(f){u(c);return v(b.showNotificationSettings.emit(f))});
M(17,"b-icon",16);L()();M(18,"mat-divider");K(19,"div",17)(20,"button",18);N("click",function(){u(c);return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES))});K(21,"div",19);M(22,"b-icon",11);K(23,"div",12);S(24," All Updates ");L();K(25,"div",13);S(26," receive emails for major and minor updates. ");L()()();K(27,"button",20);N("click",function(){u(c);return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES))})("focus",function(){u(c);var f=Q(29);return v(f.toggle(!0))})("blur",
function(){u(c);var f=Q(29);return v(f.toggle(!1))});K(28,"xap-bubble",21,1);M(30,"mat-icon",22);E(31,M_b,13,0,"ng-template",null,2,Og);L()()();K(33,"div",17)(34,"button",23);N("click",function(){u(c);return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES))});K(35,"div",19);M(36,"b-icon",11);K(37,"div",12);S(38," Major Updates ");L();K(39,"div",13);S(40," receive emails for major updates only. ");L()()();K(41,"button",20);N("click",function(){u(c);return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES))})("focus",
function(){u(c);var f=Q(43);return v(f.toggle(!0))})("blur",function(){u(c);var f=Q(43);return v(f.toggle(!1))});K(42,"xap-bubble",21,3);M(44,"mat-icon",22);E(45,N_b,17,0,"ng-template",null,4,Og);L()()();K(47,"button",24);N("click",function(){u(c);return v(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY))});K(48,"div",17)(49,"div",19);M(50,"b-icon",11);K(51,"div",12);S(52," Closure Only ");L();K(53,"div",13);S(54," only receive emails when the issue is closed. ");L()()()();
K(55,"button",24);N("click",function(){u(c);return v(b.updateSubscription(b.NotificationSubscription.UNSUBSCRIBED))});K(56,"div",17)(57,"div",19);M(58,"b-icon",11);K(59,"div",12);S(60," None ");L();K(61,"div",13);S(62," unsubscribe from further email updates. ");L()()()()()()}if(a&2){a=Q(6);var d=Q(32),e=Q(46);B();yg("small",b.iconOnly)("medium",!b.iconOnly)("icon-only",b.iconOnly);I("matMenuTriggerFor",a)("disabled",b.isAnonymous);Jf("aria-label","Notifications Menu, current value is "+b.subscriptions.get(b.subscriptionInternal||
"UNKNOWN_SUBSCRIPTION").label);B(2);yg("black",b.menuIcon==="notifications-off");I("name",b.menuIcon);B();G(b.iconOnly?-1:4);B(5);yg("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNKNOWN_SUBSCRIPTION);B(6);I("vertical",!0);B(5);yg("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES);B(7);Jf("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.");
B();I("panelTemplate",d)("overlayPositions",b.bubblePosition);B(6);yg("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES);B(7);Jf("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.");B();I("panelTemplate",e)("overlayPositions",b.bubblePosition);B(5);yg("b-menu-item-checked",b.subscriptionInternal===
b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY);B(8);yg("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNSUBSCRIBED)}},dependencies:[ZA,XA,TA,OJ,NJ,LF,JF,OF,hK,hS,XJ,iz,MA,EV,DV],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 V4=function(){};V4.\u0275fac=function(a){return new (a||V4)};V4.\u0275mod=$e({type:V4});V4.\u0275inj=Dc({imports:[FN,ZA,YJ,OJ,xT,ZT,EV,iK,U4]});var W4=function(){this.sloApi=q(wP);this.cdr=q(MO,{self:!0});this.isDisabled=!1;this.dropdownChoices=null;this.onSloSelect=new KO;this.internalBoundId=this.selectedSlo=null;this.lastProcessedIndex=-1;this.requestIndex=0},XZd=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()};
W4.prototype.displayFn=function(a){return(a==null?void 0:a.name)||(a==null?void 0:a.sloId)||""};W4.prototype.updateSelectionOnChange=function(a){if(a=a.option.value)this.boundId=a.sloId;this.onSloSelect.emit(a);this.cdr.detectChanges()};
da.Object.defineProperties(W4.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)}}});W4.\u0275fac=function(a){return new (a||W4)};
W4.\u0275cmp=C({type:W4,selectors:[["slo-picker"]],inputs:{isDisabled:[0,"bv2Disabled","isDisabled"],placeholder:[0,"bv2Placeholder","placeholder"],boundId:"boundId"},outputs:{onSloSelect:"onSloSelect"},features:[Ig([MO])],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=t();K(0,"div",2)(1,"input",3,0);Eg("ngModelChange",function(d){u(c);Dg(b.selectedSlo,d)||(b.selectedSlo=d);return v(d)});N("click",function(){u(c);var d=Q(2);return v(XZd(b,d.value))})("input",function(){u(c);var d=Q(2);return v(XZd(b,d.value))});L();K(3,"mat-autocomplete",4,1);N("optionSelected",function(d){u(c);return v(b.updateSelectionOnChange(d))});Pf(5,O_b,2,2,"mat-option",5,Of);
L()()}a&2&&(a=Q(4),B(),I("placeholder",b.placeholder),Cg("ngModel",b.selectedSlo),I("disabled",b.isDisabled)("matAutocomplete",a),B(2),I("displayWith",b.displayFn),B(2),Qf(b.dropdownChoices))},dependencies:[mC,xi,PB,WB,lX,kX,hX,GA,iX],encapsulation:2});var X4=function(){};X4.\u0275fac=function(a){return new (a||X4)};X4.\u0275mod=$e({type:X4});X4.\u0275inj=Dc({imports:[FN,lX,mC,W4]});var Y4=function(){this.documentationLinks=q(OQ);this.activeSession=q(Zu);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.issueRetentionDisabled=!1;this.modelChange=new KO;this.validChange=new KO;this.indefiniteRetentionComponentsAllowlist=new Set(this.activeSession.getIndefiniteRetentionComponentsAllowlist());this.RetentionSelection=Ahd};
Y4.prototype.ngOnInit=function(){this.initialModel?this.model=this.initialModel:this.model={retentionSelection:"UNSPECIFIED_RETENTION",retentionPeriodDays:null,piiRetentionSelection:"UNSPECIFIED_RETENTION",piiRetentionPeriodDays:null,spiiRetentionPeriodDays:null};Au(this)};Y4.prototype.updateSelectionOnChange=function(a){this.model.retentionSelection=a;this.model.retentionPeriodDays=null;this.modelChange.emit(this.model);Au(this)};
var Au=function(a){var b;if(b=Y_b(a))b=(b=a.model.piiRetentionSelection)&&b!==a.RetentionSelection.UNSPECIFIED_RETENTION&&(a.model.piiRetentionSelection!==a.RetentionSelection.BUGANIZER_DEFAULT||!YZd(a))&&(a.model.piiRetentionSelection!==a.RetentionSelection.CUSTOM_PERIOD||ZZd(a));a.validChange.emit(b)},$Zd=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},Y_b=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)},Q_b=function(a){return a?UVa(a):"[unset period]"},ZZd=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},V_b=function(a){if(!Y_b(a)||ZZd(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 "+Q_b(e):"Restricted+ retention must not exceed Restricted retention."},YZd=function(a){return a.model.retentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&(!a.model.retentionPeriodDays||a.model.retentionPeriodDays<60)},Z_b=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};Y4.\u0275fac=function(a){return new (a||Y4)};
Y4.\u0275cmp=C({type:Y4,selectors:[["b-retention-settings-form"]],inputs:{initialModel:"initialModel",isExternal:"isExternal",issueRetentionDisabled:"issueRetentionDisabled",componentId:"componentId",componentPathInfo:"componentPathInfo"},outputs:{modelChange:"modelChange",validChange:"validChange"},decls:31,vars:31,consts:[["aria-label","Retention settings form",1,"issue-retention-form",3,"ngModelChange","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","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&&(K(0,"mat-radio-group",0),N("ngModelChange",
function(c){return b.updateSelectionOnChange(c)}),K(1,"p")(2,"b"),S(3,"Issue Retention"),L()(),K(4,"mat-radio-button",1),S(5," Buganizer default retention period (for minimal or no PII/SPII): 10 years "),L(),K(6,"mat-radio-button",2),S(7," Custom retention period "),F(8,P_b,2,0,"span",3),F(9,R_b,4,3,"div",4),F(10,S_b,13,0,"div",5),L(),K(11,"mat-radio-button",6),S(12),F(13,T_b,13,0,"div",7),L()(),K(14,"mat-radio-group",8),N("ngModelChange",function(c){b.model.piiRetentionSelection=c;b.model.piiRetentionPeriodDays=
null;b.model.spiiRetentionPeriodDays=null;b.modelChange.emit(b.model);Au(b)}),K(15,"p"),M(16,"br"),K(17,"b"),S(18,"Restricted Comments/Attachments Retention "),L(),K(19,"a",9),S(20,"Learn more "),L()(),K(21,"mat-radio-button",1),S(22," Buganizer default retention period : 60 days "),F(23,U_b,2,0,"span",3),L(),K(24,"mat-radio-button",10),S(25," Custom retention period "),F(26,W_b,2,1,"span",3),F(27,$_b,16,7,"div",4),L(),K(28,"mat-radio-button",6),S(29," Match Issue Retention "),F(30,a0b,3,0,"div",
11),L()());a&2&&(yg("empty-list-field-indication",b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION),I("disabled",b.issueRetentionDisabled)("name","retentionForm")("ngModel",b.model.retentionSelection),B(4),I("value",b.RetentionSelection.BUGANIZER_DEFAULT),B(2),I("value",b.RetentionSelection.CUSTOM_PERIOD),B(2),G(b.model.retentionSelection!==b.RetentionSelection.CUSTOM_PERIOD||b.model.retentionPeriodDays&&b.model.retentionPeriodDays>=30&&b.model.retentionPeriodDays<=7300?-1:
8),B(),G(b.model.retentionSelection===b.RetentionSelection.CUSTOM_PERIOD?9:-1),B(),G(b.model.retentionPeriodDays&&b.model.retentionPeriodDays>3650?10:-1),B(),I("disabled",!$Zd(b))("value",b.RetentionSelection.INDEFINITE_RETENTION),B(),T(" Indefinite retention period ",$Zd(b)?"":"(Internal components only)"," "),B(),G(b.model.retentionSelection===b.RetentionSelection.INDEFINITE_RETENTION?13:-1),B(),yg("empty-list-field-indication",b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION),
I("disabled",b.issueRetentionDisabled)("name","piiRetentionForm")("ngModel",b.model.piiRetentionSelection),B(5),I("rel",b.EXTERNAL_LINK_REL),Jf("href",b.documentationLinks.getRestrictedAccessHelpLink(),Me),B(2),I("value",b.RetentionSelection.BUGANIZER_DEFAULT),B(2),G(b.model.piiRetentionSelection===b.RetentionSelection.BUGANIZER_DEFAULT&&YZd(b)?23:-1),B(),If("aria-label","Custom Retention Period,"+V_b(b)),I("disabled",!Y_b(b))("value",b.RetentionSelection.CUSTOM_PERIOD),B(2),G(b.model.piiRetentionSelection!==
b.RetentionSelection.CUSTOM_PERIOD||ZZd(b)?-1:26),B(),G(b.model.piiRetentionSelection===b.RetentionSelection.CUSTOM_PERIOD?27:-1),B(),I("disabled",b.isExternal)("value",b.RetentionSelection.INDEFINITE_RETENTION),B(2),G(b.model.piiRetentionSelection===b.RetentionSelection.INDEFINITE_RETENTION&&Z_b(b)?30:-1))},dependencies:[P4,mC,PB,WB,jS,iS],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{--mat-radio-state-layer-size: 2.2em;align-items:flex-start}"],
changeDetection:0});var Z4=function(){};Z4.\u0275fac=function(a){return new (a||Z4)};Z4.\u0275mod=$e({type:Z4});Z4.\u0275inj=Dc({imports:[FN,mC,kS,RZd,Y4]});var a_d=function(){this.type="component";this.includeChildren=!1},b_d=function(){this.type="tracker"},c_d=function(){this.type="team";this.includeChildren=!1},d_d=function(){this.type="hotlist"},e_d=function(){this.type="savedsearch"},f_d=function(){this.type="customfield"};var g_d=function(a,b){this.query=a;this.cursorIdx=b;this.label=null;this.value={val:"",idx:0};this.value.idx=b},h_d="componentid c hotlistid h savedsearchid teamid trackerid".split(" "),i_d=h_d.concat("accesslevel archived assignee attachment attachmentanalysis attachmentcount blockedbyid blockingid canonicalid cc cccount collaborator collaboratorcount cl comment commentcount commenter created customfield descendantcount deleted deletionreason deletiontime duplicatecount effortlabel escalationowner foundin id inprod insight 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(" ")),
j_d="attachmentanalysis cl deleted deletionreason deletiontime escalationowner insight nearestslo postmortem staffingplaceholder staffingplaceholdercount staffinguser staffingusercount teamid".split(" "),k_d="(?:\\s|^)(-?)(customfield\\d+|"+i_d.join("|")+")(:|>|<|>=|<=|=)";var a5=function(){LO.call(this);var a=this;this.appSearchState=q(gS);this.trackerFridge=q(IP);this.trackerHelpers=q(WQ);this.customFieldsApi=q(cO);this.hotlistApi=q(PN);this.savedSearchApi=q(XN);this.componentActions=q(JV);this.teamsService=q(BP);this.activeSession=q(Zu);this.currentUserBookmarksFridge=q(ZN);this.query="";this.requestIndex=0;this.atomsWithoutOp=Object.freeze(new Set(["customfield"]));this.producers=[{match:function(e){return l_d(a,e)}},{updateHeader:function(e){return m_d(a,e)}},
{updateHeader:function(e){return n_d(a,e)}},{updateHeader:function(e){return o_d(a,e)}},{updateHeader:function(e){return p_d(a,e)}},{updateHeader:function(e){return q_d(a,e)}},{updateHeader:function(e){return r_d(a,e)}}];this.currentSearchContext=null;this.items=[];this.acHeader=null;this.acRefreshed$=new rf;this.refreshRequest$=new rf;this.refreshRequest$.pipe(kf(250),Af(this.destroyed$)).subscribe(function(e){s_d(a,e.currentRequestIndex,e.currentSearchContext)});this.sessionIsInternal=this.activeSession.isInternalSession();
var b=new Set(i_d);if(!this.sessionIsInternal)for(var c=l(j_d),d=c.next();!d.done;d=c.next())b.delete(d.value);this.isTrackerSearchEnabled()||b.delete("trackerid");this.atoms=Object.freeze(b)};Z(a5,LO);a5.\u0275dir=LO.\u0275dir;a5.prototype.isTrackerSearchEnabled=function(){return!Is(this.activeSession)};
var s_d=function(a,b,c){for(var d=!1,e=!1,f=[],g=l(a.producers),k=g.next();!k.done;k=g.next())k=k.value,k.match&&f.push(k.match(c).then(function(m){d||(d=!0,a.items=[]);b<a.requestIndex||a.items.push.apply(a.items,n(m))}).catch(function(m){return m})),k.updateHeader&&f.push(k.updateHeader(c).then(function(m){e||(e=!0,a.acHeader=null);b<a.requestIndex||(a.acHeader=m)}).catch(function(m){return m}));Promise.all(f).finally(function(){d||(a.items=[]);e||(a.acHeader=null);a.acRefreshed$.next()})},l_d=
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 t_d(a,b);if(b.label){if(b.label.customFieldId)return u_d(a,b);switch(b.label.val){case "archived":return Promise.resolve(Du(v_d,b.value,!0));case "componentid":case "c":return w_d(a,b);case "deleted":return x_d(b);case "deletionreason":return Promise.resolve(Du(y_d,
b.value,!0));case "hotlistid":case "h":return z_d(a,b);case "savedsearchid":return A_d(a,b);case "status":case "is":return Promise.resolve(Du(B_d,b.value,!0));case "trackerid":return C_d(a,b);case "teamid":return D_d(a,b);case "type":case "t":return a.matchType(b);case "priority":case "p":return Promise.resolve(Du(E_d,b.value,!0));case "severity":case "s":return Promise.resolve(Du(F_d,b.value,!0));case "inprod":case "star":case "mute":return x_d(b);case "accesslevel":return Promise.resolve(Du(G_d,
b.value,!0));case "staffingplaceholder":return Promise.resolve(Du(H_d,b.value,!0));default:return Promise.reject(null)}}if(!b.value.val)return Promise.reject(null);c=[];d=d0b(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 g=b.value.idx+(d.negated?1:0);g={type:"atom",startIdx:g,endIdx:g+b.value.val.length,completionValue:f+(a.atomsWithoutOp.has(f)?"":":"),enableShadowPlaceholder:!0};c.push({trackId:"atom:"+f,name:f,completionCfg:g})}c.sort(function(k,
m){return wa(k.name,m.name)});return Promise.resolve(c)},t_d=function(a,b){var c=b.value.val.replace(/^(cf|customfield)/,""),d=Rwd(a.appSearchState);if(!c&&!d)return Promise.reject(null);var e=Wsd(a.trackerHelpers)||[];return a.customFieldsApi.query({query:d?"componentid:"+d+" "+c:c,trackerIds:e}).then(function(f){return I_d(a,b,f)})},I_d=function(a,b,c){var d=c.customFields.map(function(g){return g.componentId}).filter(ln);d.length>0&&a.componentActions.bulkLoad(d);d=[];c=l(c.customFields);for(var e=
c.next(),f={};!e.done;f={customField$jscomp$30:void 0},e=c.next())f.customField$jscomp$30=e.value,e=a.getComponentPathNames(f.customField$jscomp$30).then(function(g){return function(k){var m=g.customField$jscomp$30,r=b.value.val,w=m.customFieldId,x=b.value.idx;return{id:w,componentPathNames:k,name:m.name,trackId:"customField:"+w,completionCfg:{type:"customField",startIdx:x,endIdx:x+r.length,completionValue:"customfield"+w+":",matchingString:r}}}}(f)),d.push(e);return Promise.all(d)};
a5.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 u_d=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 Du(d,b.value,!1,!1)}):Promise.reject(null)};
a5.prototype.matchType=function(a){return Promise.resolve(Du(J_d,a.value,!0))};
var x_d=function(a){if(!a.label)return Promise.reject(null);var b=a.label.val;return Promise.resolve(Du([{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))},w_d=function(a,b){var c=b.value.val;return!c||Cu(c,!0)?Promise.reject(null):a.componentActions.search(c,!1).then(function(d){return a.processResponse(b,
d)})};
a5.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$19:void 0,startIdx$jscomp$4:void 0,endIdx$jscomp$4:void 0},e=b.next()){e=e.value;var g=e.componentId;f.startIdx$jscomp$4=a.value.idx;f.endIdx$jscomp$4=f.startIdx$jscomp$4+c.length;f.paths$jscomp$19=Lu(this.trackerHelpers,e.componentPathInfo);f={id:g,name:e.name,description:e.description,trackId:"component:"+g,accessLimit:e.accessLimit,trackerId:e.trackerId,completionCfg:{type:"component",startIdx:f.startIdx$jscomp$4,
endIdx:f.endIdx$jscomp$4,completionValue:g,matchingString:c},componentPath:f.paths$jscomp$19.componentPathId.map(function(k){return function(m,r){return{trackId:"subcomponent:"+m,id:m,name:k.paths$jscomp$19.componentPathName[r],completionCfg:{type:"component",completionValue:m,startIdx:k.startIdx$jscomp$4,endIdx:k.endIdx$jscomp$4}}}}(f))};d.push(f)}return d};
var D_d=function(a,b){var c=b.value.val;if(!a.sessionIsInternal||!c||Cu(c,!0))return Promise.reject(null);var d=Io();DP(a.teamsService,c).pipe(Af(a.destroyed$)).subscribe(function(e){var f=b.value.idx,g=f+c.length,k=[];e=l(e);for(var m=e.next(),r={};!m.done;r={pathNames$jscomp$5:void 0},m=e.next())m=m.value,r.pathNames$jscomp$5=m.pathNames,r={trackId:"team:"+m.teamId,name:m.name,id:m.teamId,label:"Team "+m.teamId,pathIds:m.pathIds,pathNames:m.pathNames,description:m.description,completionCfg:{type:"team",
startIdx:f,endIdx:g,completionValue:String(m.teamId),matchingString:c},teamPath:m.pathIds.map(function(w){return function(x,D){return{trackId:"team:"+x,id:x,name:w.pathNames$jscomp$5[D],completionCfg:{type:"team",completionValue:String(x),startIdx:f,endIdx:g}}}}(r))},k.push(r);d.resolve(k)},function(){d.reject()});return d.promise},m_d=function(a,b){if(!b.label||b.label.val!=="componentid"&&b.label.val!=="c")return Promise.reject(null);var c=new a_d;b=b.value.val;return Cu(b,!0)?(ta(b,"+")&&(b=b.slice(0,
b.length-1),c.includeChildren=!0),a.componentActions.get(b).then(function(d){var e;Is(a.activeSession)&&d.trackerId!==((e=a.activeSession.getTracker())==null?void 0:e.trackerId)||(c.component=d);return c})):Promise.resolve(c)},p_d=function(a,b){if(!a.isTrackerSearchEnabled()||!b.label||b.label.val!=="trackerid")return Promise.reject(null);var c=new b_d,d=Io();b=b.value.val;Cu(b)?a.trackerFridge.watch(b).pipe(Af(a.destroyed$)).subscribe(function(e){c.tracker=e;d.resolve(c)}):b&&d.resolve(c);return d.promise},
r_d=function(a,b){if(!a.sessionIsInternal||!b.label||b.label.val!=="teamid")return Promise.reject(null);var c=new c_d,d=Io(),e=b.value.val;Cu(e,!0)?(ta(e,"+")&&(e=e.slice(0,e.length-1),c.includeChildren=!0),DP(a.teamsService,e).pipe(Af(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},n_d=function(a,b){if(!b.label||b.label.val!=="hotlistid"&&b.label.val!=="h")return Promise.reject(null);var c=new d_d;b=b.value.val;return Cu(b)?a.hotlistApi.get(b).then(function(d){c.hotlist=d;return c}):b?Promise.reject(null):Promise.resolve(c)},o_d=function(a,b){if(!b.label||b.label.val!=="savedsearchid")return Promise.reject(null);var c=new e_d;b=b.value.val;return Cu(b)?a.savedSearchApi.get(b).then(function(d){c.savedSearch=d;return c}):b?Promise.reject(null):Promise.resolve(c)},
q_d=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]),ur("search-usage","customfield");else return Promise.reject(null);var d=new f_d;return c?a.customFieldsApi.get(c).then(function(e){d.customField=e;return d}):Promise.resolve(d)},C_d=function(a,b){var c=b.value.val;if(!a.isTrackerSearchEnabled()||!c||Cu(c,!0))return Promise.reject(null);var d=Io();a.trackerFridge.watchMany({filter:c,
pageSize:5}).pipe(Af(a.destroyed$)).subscribe(function(e){var f=b.value.idx,g=f+c.length,k=[];e=l(e.results);for(var m=e.next();!m.done;m=e.next())m=m.value,k.push({trackId:"trackerid:"+m.trackerId,name:m.name,id:m.trackerId,label:"Tracker "+m.trackerId,completionCfg:{type:"tracker",startIdx:f,endIdx:g,completionValue:m.trackerId,matchingString:c}});d.resolve(k)});return d.promise},z_d=function(a,b){return Cu(b.value.val)?Promise.reject(null):ee($N(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 Du(c,b.value,!1,!0)})},A_d=function(a,b){return Cu(b.value.val)?Promise.reject(null):ee(vld(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 Du(c,b.value,!1,!0)})};
a5.\u0275fac=function(a){return new (a||a5)};a5.\u0275prov=Cc({token:a5,factory:a5.\u0275fac,providedIn:"root"});
var B_d="accepted assigned closed duplicate fixed inactive infeasible intended_behavior new not_reproducible obsolete open verified".split(" ").map(function(a){return Eu({name:a,label:"Status",type:"status"})}),J_d="bug customer_issue feature_request internal_cleanup process vulnerability privacy_issue program project feature milestone epic story task".split(" ").map(function(a){return Eu({name:a,label:"Type",type:"type",trackIdPrefix:"bugType"})}),E_d=["p0","p1","p2","p3","p4"].map(function(a){return Eu({name:a,
label:"Priority",type:"priority"})}),F_d=["s0","s1","s2","s3","s4"].map(function(a){return Eu({name:a,label:"Severity",type:"severity"})}),v_d=["all","true","false"].map(function(a){return Eu({name:a,label:"Archived",type:"archived"})}),y_d=["abuse","pii","user_request","retention"].map(function(a){return Eu({name:a,label:"Deletion Reason",type:"deletionreason",trackIdPrefix:"deletionReason"})}),G_d=[["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 Eu({name:b,label:"Issue access level",type:"accesslevel",id:a})}),H_d=[["swe",AM.SWE],["sre",AM.SRE],["pm",AM.PM],["tpgm",AM.TPGM],["ux",AM.UX],["uxd",AM.UXD],["uxr",AM.UXR],["datasci",AM.DATASCI],["ld",AM.LD],["devrel",AM.DEVREL],["tw",AM.TW],["gtm",AM.GTM],["ce",AM.CE],["other",AM.OTHER]].map(function(a){var b=l(a);a=b.next().value;b=b.next().value;return Eu({name:b,label:"Staffing - Placeholder",
type:"staffingplaceholder",id:a})});var b5=function(){this.cdr=q(MO,{self:!0});this.optionsChange=new KO};b5.prototype.ngOnInit=function(){K_d(this)};b5.prototype.onSelectionChanged=function(){K_d(this);L_d(this);this.optionsChange.emit(this.options)};
var K_d=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},L_d=function(a){a.validator&&(a.errorString=a.validator(),a.cdr.detectChanges())},M_d=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);L_d(a)},N_d=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(", ")};b5.\u0275fac=function(a){return new (a||b5)};
b5.\u0275cmp=C({type:b5,selectors:[["slo-element-property-picker"]],inputs:{selectAllText:"selectAllText",validator:"validator",options:"options"},outputs:{optionsChange:"optionsChange"},features:[Ig([MO])],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=t();K(0,"div")(1,"button",1)(2,"div",2)(3,"span",3);S(4);S(5," \u00a0 ");L();M(6,"mat-icon",4);L()();K(7,"mat-menu",null,0)(9,"div",5);N("click",function(d){u(c);return v(M_d(b,
d))});K(10,"mat-checkbox",6);N("change",function(d){u(c);b.selectAllValue=d.checked;return v(M_d(b))});S(11);L()();M(12,"mat-divider");Pf(13,e0b,4,3,"div",7,Of);U(15,"keyvalue");L();F(16,f0b,2,1,"div",8);L()}a&2&&(a=Q(8),B(),yg("ng-invalid",!!b.errorString),I("matMenuTriggerFor",a),B(3),T(" ",N_d(b)," "),B(5),Jf("aria-checked",b.selectAllValue),B(),I("checked",!!b.selectAllValue)("indeterminate",b.selectAllValue===null),B(),T(" ",b.selectAllText," "),B(2),Qf(W(15,9,b.options.propertyValues)),B(3),
G(b.errorString?16:-1))},dependencies:[ZA,XA,TA,PK,OK,wI,OJ,NJ,LF,JF,OF,XJ,iz,uy],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 O_d=function(a,b){this.displayString=a;this.value=b},P_d=function(a){this.propertyValues=a},Q_d=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},b1b=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};P_d.prototype.setAll=function(a){for(var b in this.propertyValues)this.propertyValues[b].value=a};var c5=function(){};c5.\u0275fac=function(a){return new (a||c5)};c5.\u0275mod=$e({type:c5});c5.\u0275inj=Dc({imports:[FN,PK,OJ,YJ,ZA,b5]});var R_d=function(a,b){this.name=a;this.secondsPerUnit=b},r0b=new R_d("minute",60),s0b=new R_d("hour",3600),t0b=new R_d("day",86400),d5=function(){this.errorString=null;this.objectiveDurationChange=new KO;this.objectiveBusinessDaysChange=new KO;this.intervalUnit=t0b};d5.prototype.ngOnInit=function(){S_d(this)};d5.prototype.ngOnChanges=function(a){[a.objectiveBusinessDays,a.objectiveDuration,a.dayType].some(function(b){return b&&!b.firstChange})&&S_d(this)};
var i0b=function(a,b){b=b.name;Jm(a.intervalString)!==1&&(b+="s");return b},q0b=function(a){return a.dayType==="BUSINESS"},S_d=function(a){!q0b(a)&&T_d(a,t0b)||T_d(a,s0b)||T_d(a,r0b);if(a.objectiveBusinessDays!=0||a.businessDayString!="")a.businessDayString=""+a.objectiveBusinessDays},T_d=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):(q0b(a)?[r0b,s0b]:[r0b,s0b,t0b]).includes(a.intervalUnit)||
(a.intervalUnit=b),!0):!1},l0b=function(a){a.validator&&(a.errorString=a.validator(a.intervalString,a.businessDayString));o0b(a);p0b(a)},o0b=function(a){a.objectiveDuration.seconds=a.intervalUnit.secondsPerUnit*(Jm(a.intervalString)||0);a.objectiveDurationChange.emit(a.objectiveDuration)},p0b=function(a){a.objectiveBusinessDays=Jm(a.businessDayString)||0;a.objectiveBusinessDaysChange.emit(a.objectiveBusinessDays)};d5.\u0275fac=function(a){return new (a||d5)};
d5.\u0275cmp=C({type:d5,selectors:[["slo-objective-selector"]],inputs:{isDisabled:"isDisabled",validator:"validator",dayType:"dayType",objectiveDuration:"objectiveDuration",objectiveBusinessDays:"objectiveBusinessDays"},outputs:{objectiveDurationChange:"objectiveDurationChange",objectiveBusinessDaysChange:"objectiveBusinessDaysChange"},features:[Gx],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&&F(0,k0b,3,2,"span",0)(1,u0b,7,5,"span",1);a&2&&G(b.isDisabled?0:1)},dependencies:[mC,xi,PB,WB,qT,pT,hI,GA],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 U_d=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"]])},Y_d=function(a,b){var c=new V_d,d=W_d(b,"type",function(f){var g=f.toUpperCase(),k=new X_d;a.typeStringToEnum.has(g)?k.value=g: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=W_d(b,"priority",function(f){var g=
f.toUpperCase(),k=new X_d;a.priorityStringToEnum.has(g)?k.value=g: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=W_d(b,"postmortem",function(f){var g=f.toUpperCase(),k=new X_d;a.postmortemValuesToCanonical.has(g)?k.value=g: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},W_d=function(a,b,c){var d=new Z_d;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};U_d.\u0275fac=function(a){return new (a||U_d)};U_d.\u0275prov=Cc({token:U_d,factory:U_d.\u0275fac,providedIn:"root"});
var V_d=function(){this.types=[];this.priorities=[];this.postmortemValues=[];this.error=""},Z_d=function(){this.values=[];this.error=""},X_d=function(){this.error=this.value=""};var e5=function(){};e5.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};e5.\u0275fac=function(a){return new (a||e5)};e5.\u0275dir=af({type:e5,selectors:[["","customValidators",""]],inputs:{validators:[0,"customValidators","validators"]},features:[Ig([{provide:LB,useExisting:e5,multi:!0}])]});var f5=function(){this.constants=q(SQ);this.sloParseService=q(U_d);this.confirmationDialogService=q(PQ);this.collection=[];this.boundCollection=[];this.onCollectionUpdate=new KO;this.onValidation=new KO;this.metricChoices=["METRIC_UNSPECIFIED"].concat(mpd);this.dayTypes=["CALENDAR","BUSINESS"];mpd.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};f5.prototype.updateValidity=function(){this.canPerformActions=!this.openRow};
var e1b=function(a,b,c){c1b(a);a=l(a.collection);for(var d=a.next();!d.done;d=a.next())d.value.canEdit=!1;b.startEditing();c&&c.stopPropagation()},h1b=function(a,b,c){c=k1b(a,b,c);var d=c.newOffset;c.valid&&(c1b(a),La(a.collection,b),La(a.boundCollection,b.sloElement),a.collection.splice(d,0,b),a.boundCollection.splice(d,0,b.sloElement),$_d(a))},k1b=function(a,b,c){b=a.collection.indexOf(b)+c;return{valid:b>=0&&b<a.collection.length,newOffset:b}},c1b=function(a){a=l(a.collection);for(var b=a.next();!b.done;b=
a.next())b=b.value,b.stopEditing(),b.canEdit=!0},a0d=function(a,b){var c=b.map(function(d){return new g5(d,a)});a.openRow=null;a.collection=c;a.boundCollection=b;a.updateValidity()},S0b=function(a){return a==="METRIC_UNSPECIFIED"?" - ":npd.get(a)},E0b=function(a,b){return b!=="TYPE_UNSPECIFIED"&&a.constants.issueTypesDisplayNames.has(b)?a.constants.issueTypesDisplayNames.get(b):" - "},K0b=function(a,b){return b!=="PRIORITY_UNSPECIFIED"&&a.constants.issuePrioritiesDisplayNames.has(b)?a.constants.issuePrioritiesDisplayNames.get(b):
" - "};f5.prototype.removeElement=function(a){c1b(this);La(this.collection,a);La(this.boundCollection,a.sloElement);$_d(this)};
var x0b=function(a,b){a.confirmationDialogService.open({title:"Are you sure you'd like to clear all the rules?",content:Dh("This won't take effect until you save the changes, but any local changes will be lost."),onConfirm:function(){a.collection=[];a.boundCollection=[];$_d(a)},onDismiss:function(){}});b.stopPropagation()},v0b=function(a,b){var c=new g5({metric:"METRIC_UNSPECIFIED",matcher:"",dayType:"DAY_TYPE_UNSPECIFIED",objective:{seconds:0,nanos:0},businessDays:0},a,!0);e1b(a,c);a.collection.splice(b,
0,c);a.boundCollection.splice(b,0,c.sloElement);$_d(a)};f5.prototype.onDrop=function(a){h1b(this,this.collection[a.previousIndex],a.currentIndex-a.previousIndex)};var $_d=function(a){a.onCollectionUpdate.emit(a.boundCollection)};
da.Object.defineProperties(f5.prototype,{collectionInput:{configurable:!0,enumerable:!0,set:function(a){a0d(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}}});f5.\u0275fac=function(a){return new (a||f5)};
f5.\u0275cmp=C({type:f5,selectors:[["slo-elements-picker"]],inputs:{collectionInput:[0,"collection","collectionInput"],isDisabled:"isDisabled"},outputs:{onCollectionUpdate:"onCollectionUpdate",onValidation:"onValidation"},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&&(K(0,"div",1)(1,"div")(2,"div")(3,"label",2),S(4,"Rules"),L(),K(5,"a",3),
M(6,"b-icon",4),L(),F(7,y0b,6,3,"span",5),L(),K(8,"table",6)(9,"thead")(10,"tr",7)(11,"th",8),S(12,"Order"),L(),K(13,"th",9),S(14,"Type"),L(),K(15,"th",10),S(16,"Priority"),L(),K(17,"th",11),S(18,"Postmortem"),L(),K(19,"th",12),S(20,"Metric"),L(),K(21,"th",13),S(22,"Objective"),L(),K(23,"th",14),S(24," Day Type "),L(),M(25,"th",15),L()(),F(26,n1b,3,2,"tbody",16),L(),K(27,"div"),F(28,o1b,2,0,"div",17),L()()());a&2&&(B(6),I("name","help-outline")("size","small"),B(),G(b.isDisabled?-1:7),B(19),G(b.collection&&
b.collection.length!=0?26:-1),B(2),G(b.collection&&b.collection.length!=0?-1:28))},dependencies:[VU,WU,e5,mC,PB,hC,WB,DB,qB,BB,OJ,NJ,LF,JF,OF,qT,pT,hI,GA,hK,hS,MA,b5,d5],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 g5=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=Q_d(d.priorityPickerValues)?null:"Priority can't be empty";d.priorityPickerValid=e===null;return e};this.validateTypePicker=function(){var e=Q_d(d.typePickerValues)?null:"Type can't be empty";d.typePickerValid=
e===null;return e};this.validatePostmortemPicker=function(){var e=Q_d(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=b0d(a.objective);this.selectedObjectiveBusinessDays=a.businessDays;this.canEdit=!b.isDisabled;this.metricValidators={required:function(e){return c0d(d,e)}};d0d(this);this.typePickerValues=e0d(this.controllerReference.sloParseService.enumTypeToString.keys(),function(e){return d.parseResult.types.length===
0||d.parseResult.types.includes(e)},function(e){return E0b(d.controllerReference,e)});this.priorityPickerValues=e0d(this.controllerReference.sloParseService.enumPriorityToString.keys(),function(e){return d.parseResult.priorities.length===0||d.parseResult.priorities.includes(e)},function(e){return K0b(d.controllerReference,e)});this.postmortemPickerValues=e0d(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();c0d(this,this.selectedMetric)},b0d=function(a){return a?a:{seconds:86400,nanos:0}};g5.prototype.isEditing=function(){return this.isEditingInternal};g5.prototype.isValid=function(){return this.priorityPickerValid&&this.typePickerValid&&this.postmortemPickerValid&&this.metricSelectorValid&&this.objectiveValid};
var c0d=function(a,b){b=b!=="METRIC_UNSPECIFIED";return a.metricSelectorValid=b};
g5.prototype.stopEditing=function(){this.isEditingInternal&&(this.isValid()||this.isNewElement)&&(this.controllerReference.openRow=null,this.controllerReference.updateValidity(),this.isEditingInternal=this.isNewElement=!1,this.canEdit=!0,f0d(this),this.sloElement.metric=this.selectedMetric,this.sloElement.dayType=this.selectedDayType,this.sloElement.objective=this.selectedObjectiveDuration,this.sloElement.businessDays=this.selectedObjectiveBusinessDays,d0d(this))};
var f0d=function(a){var b=a.getEnumValues(a.typePickerValues),c=a.getEnumValues(a.priorityPickerValues),d=a.getEnumValues(a.postmortemPickerValues);b=g0d(b,function(f){return a.controllerReference.sloParseService.enumTypeToString.get(f)});c=g0d(c,function(f){return a.controllerReference.sloParseService.enumPriorityToString.get(f)});d=g0d(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};g5.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 g0d=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("|")+")"};
g5.prototype.startEditing=function(){this.isEditingInternal||(this.controllerReference.canPerformActions=!1,this.controllerReference.openRow=this,this.controllerReference.updateValidity(),this.canEdit=!1,this.isEditingInternal=!0,d0d(this))};var d0d=function(a){a.parseResult=Y_d(a.controllerReference.sloParseService,a.matcherText)},e0d=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),g=c(e);d[""+e]=new O_d(g,f)}return new P_d(d)};var h5=function(){};h5.\u0275fac=function(a){return new (a||h5)};h5.\u0275mod=$e({type:h5});h5.\u0275inj=Dc({imports:[FN,mC,qT,d5]});var i5=function(){};i5.\u0275fac=function(a){return new (a||i5)};i5.\u0275mod=$e({type:i5});i5.\u0275inj=Dc({imports:[FN]});var j5=function(){};j5.\u0275fac=function(a){return new (a||j5)};j5.\u0275mod=$e({type:j5});j5.\u0275inj=Dc({imports:[FN,i5,XU,mC,xT,DB,OJ,qT,iK,c5,h5,f5]});var k5=function(){LO.apply(this,arguments);this.element=q(Gd);this.cdr=q(MO,{self:!0});this.location=q(US);this.hotkeys=q(dT);this.focusedIndex=0;this.slos=[]};Z(k5,LO);k5.\u0275dir=LO.\u0275dir;h=k5.prototype;h.setFocusOnIndex=function(a){this.focusedIndex=a};h.isFocused=function(a){return this.focusedIndex===a};h.selectNext=function(){this.focusedIndex+1>=this.slos.length||(this.focusedIndex++,this.scrollToFocusedIndex())};
h.selectPrevious=function(){this.focusedIndex-1<0||(this.focusedIndex--,this.scrollToFocusedIndex())};
h.ngOnInit=function(){var a=this,b=eT(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)};h.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)}}};h.renderRowLabel=function(a){return this.slos[a].name};h.editSlo=function(a){this.location.path(zs.editSlo.makeHref(a.sloId))};
k5.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(k5)))(b||k5)}}();
k5.\u0275cmp=C({type:k5,selectors:[["b-slo-grid"]],inputs:{slos:"slos"},features:[Ig([MO]),Ff],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&&(Sf(0,"table",0)(1,"thead")(2,"tr",1),Uf(3,"th",2),Sf(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),S(8," SLO name "),Tf()()()(),Sf(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),S(13," Description "),Tf()()()()()(),Sf(14,"tbody"),Pf(15,p1b,7,7,"tr",6,Of),Tf()());a&2&&(B(15),Qf(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 l5=function(){};l5.\u0275fac=function(a){return new (a||l5)};l5.\u0275mod=$e({type:l5});l5.\u0275inj=Dc({imports:[FN]});var h0d=function(){this.log=q(XM);this.dateFormatter=q(gR)},j0d=function(a,b){var c=gOb(b.addMask.paths),d=gOb(b.removeMask.paths),e={author:b.author||null,timestamp:b.timestamp||null,diffs:[]},f=b.add;b=b.remove;for(var g=l(new Set([].concat(n(c),n(d)))),k=g.next();!k.done;k=g.next()){var m=k.value;k=opd.get(m);if(m==="name"){var r=su(d,m,b.name);m=su(c,m,f.name);e.diffs.push(tu(k,r,m))}else if(m==="description")r=su(d,m,b.description),m=su(c,m,f.description),e.diffs.push(tu(k,r,m));else if(m===
"parentId")r=su(d,m,String(b.parentId)),m=su(c,m,String(f.parentId)),e.diffs.push(tu(k,r,m));else if(m==="elements"){var w=f.elements;r=hOb(d,m,b.elements.map(function(x){return i0d(x)}));m=hOb(c,m,w.map(function(x){return i0d(x)}));e.diffs.push({fieldName:k,diffType:"COLLECTION",diff:{removed:r,added:m}})}else a.log.error("Unsupported diff field.")}return e},i0d=function(a){var b=a.matcher,c=npd.get(a.metric),d=Y0b.get(a.dayType),e=[];a.businessDays>0&&e.push(a.businessDays+" day"+(a.businessDays>
1?"s":""));a.objective.seconds>0&&e.push(y9a(a.objective.seconds*1E3));return'("'+b+'", '+c+") - "+(d+" days - "+e.join(", "))};h0d.\u0275fac=function(a){return new (a||h0d)};h0d.\u0275prov=Cc({token:h0d,factory:h0d.\u0275fac,providedIn:"root"});var k0d=function(){};k0d.\u0275fac=function(a){return new (a||k0d)};k0d.\u0275mod=$e({type:k0d});k0d.\u0275inj=Dc({imports:[FN,ZA,pB,T4]});var n0d=function(a,b){this.$log=b;this.templateAttributes={};this.templateCustomFields={};b=l(l0d);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"?Aa(f):""}):e=typeof d==="string"?Aa(d):"";this.templateAttributes[c]=e}b=l(m0d);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(":"),xa(c)||(this.templateCustomFields[b[0]]=c)},p0d=function(a){return Object.keys(a.templateCustomFields||{}).length!==0||o0d.some(function(b){return a.templateAttributes[b]!=null})},u0d=function(a,b,c){c!=null&&(q0d(a,c),r0d(a,b,c),s0d(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;t0d[d](b,e)}a.templateAttributes={};a.templateCustomFields={}},r0d=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 g=e.next();for(f={};!g.done;f={customFieldId$jscomp$29:void 0},g=e.next()){var k=l(g.value);g=k.next().value;k=k.next().value;f.customFieldId$jscomp$29=Jm(g);k={customFieldId:f.customFieldId$jscomp$29,value:k};g=a.getCustomFieldValue(k,c);d[f.customFieldId$jscomp$29]!=null?(f=b.customField.findIndex(function(m){return function(r){return r.customFieldId===
m.customFieldId$jscomp$29}}(f)),b.customField[f]=g):(b.customField.push(g),d[k.customFieldId]=g)}};
n0d.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=gTa(a.value)||void 0;break;case "ENUM":c.enumValue=a.value;break;case "NUMERIC":c.numericValue=hTa(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 gTa(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 hTa(e)}).filter(function(e){return e!==null});c.repeatedNumericValue={values:d};break;default:this.$log.warn("Invalid custom field type '"+b+"'.")}}return c};n0d.prototype.getCustomFieldType=function(a,b){var c,d;return(d=(c=b[a.customFieldId])==null?void 0:c.type)!=null?d:""};
var q0d=function(a,b){a.templateCustomFields=Ki(a.templateCustomFields,function(c,d){return!!b[d]})},s0d=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(g){return function(k){return g.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:"")}}}},l0d="title type priority severity assignee verifier reporter collaborators cc hotlistIds blockedByIssueIds blockingIssueIds foundIn targetedTo".split(" "),m0d=["inProd"],o0d="severity foundIn inProd reporter verifier targetedTo blockedByIssueIds blockingIssueIds".split(" "),m5={},t0d=(m5.cc=function(a,b){a.ccUsers=
t1b(b,a.ccUsers||[])},m5.collaborators=function(a,b){a.collaboratorsUsers=t1b(b,a.collaboratorsUsers||[])},m5.title=function(a,b){typeof b==="string"&&(a.title=b)},m5.assignee=function(a,b){s1b(b,function(c){a.assigneeUser=c})},m5.reporter=function(a,b){s1b(b,function(c){a.reporterUser=c})},m5.verifier=function(a,b){s1b(b,function(c){a.verifierUser=c})},m5.hotlistIds=function(a,b){if(b=q1b(b)){a.hotlistId||(a.hotlistId=[]);b=l(b);for(var c=b.next();!c.done;c=b.next())a.hotlistId.push(c.value)}},m5.blockingIssueIds=
function(a,b){if(b=q1b(b))a.blockingIssueId=b.map(String)},m5.blockedByIssueIds=function(a,b){if(b=q1b(b))a.blockedByIssueId=b.map(String)},m5.foundIn=function(a,b){typeof b==="string"&&(a.foundInVersion=b.split(","))},m5.targetedTo=function(a,b){typeof b==="string"&&(a.targetedToVersion=b.split(","))},m5.inProd=function(a,b){a.inProd=b==="true"},m5.priority=function(a,b){if(b=r1b(Gsd,b))a.priority=lTa(b)},m5.severity=function(a,b){if(b=r1b(Lsd,b))a.severity=nTa(b)},m5.type=function(a,b){if(b=r1b(Isd,
b))a.type=mTa(b)},m5);var n5=function(){this.issueRelationshipApi=q(VO);this.issueApi=q(uO)};
n5.prototype.bulkEdit=function(a){var b=this,c,d,e,f,g,k,m,r,w,x,D,H,J;return y(function(O){switch(O.nextAddress){case 1:c=a.actions[0];d=String(c.value);e=a.issueIds;f=c.actionType;if(f!=="ADD"&&f!=="REMOVE")throw Error("wg");g={};k=[];m=[];r=z1a(e);w=l(r.reverse());x=w.next();case 2:if(x.done){O.jumpTo(4);break}D=x.value;Vd(O,5);return f==="ADD"?(H=D.map(function(R){return{targetIssueId:R,afterIssueId:void 0}}),z(O,ee(Nnd(b.issueRelationshipApi,d,H)),8)):z(O,ee(Ond(b.issueRelationshipApi,d,D)),
8);case 8:return z(O,b.issueApi.batchGetIssuesFull(D).then(function(R){return R.map(function(V){return g[V.issueId]=V})}),11);case 11:bk(O,3);break;case 5:J=Zd(O);if(!hq(J))throw J;m.push(J);k.push.apply(k,n(D));case 3:x=w.next();O.jumpTo(2);break;case 4:return O.return({finishedIssues:g,notFinishedIssueIds:k,errors:m})}})};n5.\u0275fac=function(a){return new (a||n5)};n5.\u0275prov=Cc({token:n5,factory:n5.\u0275fac,providedIn:"root"});var v0d=function(){this.issueApi=q(uO);this.templatesApi=q(CN);this.errorHandler=q(ZM);this.userAccess=q(lO);this.activeSession=q(Zu)},x0d=function(a,b){b=a.issueApi.getIssueFull(b).then(function(c){var d=Object,e=d.assign,f=Ia(c.snapshot),g,k=(g=c.description)==null?void 0:g.unlinkifiedComment,m;g=(m=c.description)==null?void 0:m.formattedComment;f.comment=k?k.trim():g?JVa(g):"";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 w0d(a,c)});b.catch(function(c){a.errorHandler.errorHandler(null,c)});return b},w0d=function(a,b){var c=b.snapshot.hotlistId;if(!c)return b;var d=c.map(function(e){return mO(a.userAccess,"appender","hotlists/"+e)});return Promise.all(d).then(function(e){b.snapshot.hotlistId=c.filter(function(f,g){return e[g]});return b})};v0d.\u0275fac=function(a){return new (a||v0d)};v0d.\u0275prov=Cc({token:v0d,factory:v0d.\u0275fac,providedIn:"root"});var o5=function(){this.bLocation=q(US);this.routeParams=q(hR);this.domSafe=q($P)},y0d=function(a,b,c){var d=a.routeParams.redirectUrl;if(d&&d.startsWith("http")){if(c&&ta(d,"id=")||ta(d,"bugId="))d+=c;Iqd(a.domSafe,d)}else{var e;a.bLocation.replaceUrl((e=d)!=null?e:b)}};o5.\u0275fac=function(a){return new (a||o5)};o5.\u0275prov=Cc({token:o5,factory:o5.\u0275fac,providedIn:"root"});var z0d={provide:fld,useValue:function(a){return a.replace(/(action\/components\/[0-9]+)\/(move|updateSlo|updateTeam)/,"$1")},multi:!0},A0d={provide:fld,useValue:function(a){return a.replace(/(action\/hotlists\/[0-9]+)\/archive/,"$1")},multi:!0};var p5=function(){this.activeSession=q(Zu)};p5.prototype.intercept=function(a,b){if(a.url.startsWith("https://"))return b.handle(a);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)};p5.\u0275fac=function(a){return new (a||p5)};p5.\u0275prov=Cc({token:p5,factory:p5.\u0275fac,providedIn:"root"});var B0d={provide:zFc,useExisting:p5,multi:!0};var q5=function(){this.http=q(Zy)};Z(q5,RM);h=q5.prototype;h.get=function(a){return this.request("get",a)};h.delete=function(a){return this.request("delete",a)};h.post=function(a){return this.request("post",a,a.body)};h.put=function(a){return this.request("put",a,a.body)};h.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=Vda(c);c=(e=f)!=null?e:null;return this.http.request(a,b.url,Object.assign({},d,{body:c})).pipe(A(u1b(b.responseConstructor)))};
q5.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(q5)))(b||q5)}}();q5.\u0275prov=Cc({token:q5,factory:q5.\u0275fac,providedIn:"root"});var r5=function(){this.jspbExecutor=q(q5)};Z(r5,SM);r5.prototype.get=function(a){return ee(this.jspbExecutor.get(a))};r5.prototype.delete=function(a){return ee(this.jspbExecutor.delete(a))};r5.prototype.post=function(a){return ee(this.jspbExecutor.post(a))};r5.prototype.put=function(a){return ee(this.jspbExecutor.put(a))};
r5.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(r5)))(b||r5)}}();r5.\u0275prov=Cc({token:r5,factory:r5.\u0275fac,providedIn:"root"});var C0d=function(){};C0d.\u0275fac=function(a){return new (a||C0d)};C0d.\u0275mod=$e({type:C0d});C0d.\u0275inj=Dc({providers:[{provide:RM,useExisting:q5},{provide:SM,useExisting:r5}],imports:[FN]});var s5=function(){var a=this;this.fridge=q(AN);this.userAccess=q(lO);this.currentComponentId="";this.providedComponentId$=new vf(1);this.accessCheckIsThinking$=new Xj(!0);this.component$=this.providedComponentId$.pipe(zf(function(b){return a.fridge.watch(b)}));this.userIsComponentReader$=this.providedComponentId$.pipe(zf(function(b){b!==a.currentComponentId&&(a.accessCheckIsThinking$.next(!0),a.currentComponentId=b);return mO(a.userAccess,"reader","components/"+b).then(function(c){return c},function(){return!1}).finally(function(){a.accessCheckIsThinking$.next(!1)})}));
this.isReady$=he([this.fridge.thinking$,this.accessCheckIsThinking$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return!b&&!c}),yf(!1));this.manageComponentLink=""};s5.prototype.ngOnInit=function(){this.currentComponentId=this.componentId};s5.prototype.ngOnChanges=function(){this.providedComponentId$.next(this.componentId);this.manageComponentLink="/components/"+this.componentId};s5.\u0275fac=function(a){return new (a||s5)};
s5.\u0275cmp=C({type:s5,selectors:[["b-async-component"]],inputs:{componentId:"componentId"},features:[Gx],decls:5,vars:6,consts:[[3,"isReady"],[3,"href"]],template:function(a,b){a&1&&(K(0,"b-async-data-placeholder",0),U(1,"async"),F(2,v1b,3,4,"a",1),U(3,"async"),Mf(4,w1b,2,1,"output"),L());a&2&&(I("isReady",W(1,2,b.isReady$)),B(2),G(W(3,4,b.userIsComponentReader$)?2:4))},dependencies:[dW,py],encapsulation:2});var u5=function(){this.documentationLinks=q(OQ);this.activeSession=q(Zu);this.loginRedirector=q(t5);this.isAnonymous=this.activeSession.isAnonymous();this.signInProgressing=this.showIssueMetadataContainer=!1};
da.Object.defineProperties(u5.prototype,{issueMetadata:{configurable:!0,enumerable:!0,set:function(a){if(a){this.issueId=a.issueId;this.issueLastModified=to(a.modifiedTime);a.teamId&&(this.issueTeamId=a.teamId);if(a=a.issueState){this.issueType=Tm(a.type);var b;this.issueStatus=(b=Um.get(a.status))!=null?b:"";this.issuePriority=a.priority;this.issueSeverity=cid[a.severity];this.issueComponentId=String(a.componentId);this.accessLimitLevel=Qpb(a.accessLimitLevel)}this.showIssueMetadataContainer=!0}else this.showIssueMetadataContainer=
!1}}});u5.\u0275fac=function(a){return new (a||u5)};
u5.\u0275cmp=C({type:u5,selectors:[["b-access-denied-metadata"]],inputs:{issueMetadata:"issueMetadata"},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",3,"click"]],template:function(a,
b){a&1&&(K(0,"div",2)(1,"h3",3),S(2," Access is denied to this issue "),L(),F(3,y1b,1,1,"ng-container"),F(4,A1b,1,1,"ng-container"),L(),E(5,D1b,40,13,"ng-template",null,0,Og)(7,G1b,5,1,"ng-template",null,1,Og));a&2&&(B(3),G(b.showIssueMetadataContainer?3:-1),B(),G(b.isAnonymous?4:-1))},dependencies:[s5,ZA,XA,TA,hW,oy,VS,MU,sy],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 t5=function(){this.bLocation=q(US)};t5.prototype.redirect=function(){var a=Bh("/loginRedirect?continue="+encodeURIComponent(this.bLocation.getUrl()));(0,Lh.locationReplace)(a)};t5.\u0275fac=function(a){return new (a||t5)};t5.\u0275prov=Cc({token:t5,factory:t5.\u0275fac,providedIn:"root"});var D0d=function(){};D0d.\u0275fac=function(a){return new (a||D0d)};D0d.\u0275mod=$e({type:D0d});D0d.\u0275inj=Dc({imports:[FN,dX,s5]});var v5=function(){};v5.\u0275fac=function(a){return new (a||v5)};v5.\u0275mod=$e({type:v5});v5.\u0275inj=Dc({imports:[FN,D0d,YW,NU,ZA,XS,u5]});var E0d=Symbol("yg"),F0d=RegExp("today([+-]\\d+)?"),x5=function(){this.ruleConfigService=q(w5)};
x5.prototype.build=function(a){if(a.customField)var b=a.customField.type==="DATE"?new y5(a,z5(this.ruleConfigService)):a.customField.type==="ENUM"?new G0d(a,z5(this.ruleConfigService)):a.customField.type==="REPEATED_ENUM"?new H0d(a,z5(this.ruleConfigService)):a.customField.type==="NUMERIC"?new A5(a,z5(this.ruleConfigService)):new B5(a,z5(this.ruleConfigService));else b=a.label.field,b=z5(this.ruleConfigService)[b],b=new (b&&b.ruleCtor||C5)(a,z5(this.ruleConfigService));b[E0d](a);return b};
var p3b=function(a,b,c){return a.build({label:{field:b,customFieldId:c&&c.customFieldId||void 0},operator:"EQ",negated:!1,type:"",customField:c})};x5.\u0275fac=function(a){return new (a||x5)};x5.\u0275prov=Cc({token:x5,factory:x5.\u0275fac,providedIn:"root"});
var I0d=["OR","AND","NAND"],J0d=["OR","NAND"],K0d="LT GT LE GE RANGE NRANGE DURATION NDURATION OR".split(" "),L0d=["AND","OR","NAND"],M0d=["OR","LT","GT","LE","GE"],C5=function(a,b){this.ruleConfigLookup=b;this.values=[];this.type="";this.isPendingCustomField=!1;this.label=a.label};C5.prototype[E0d]=function(a){this.initType(a);this.initValues(a)};
C5.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]};C5.prototype.initValues=function(a){this.values=(a.values||[]).map(function(b){return{value:b.simpleValues[0].value}})};
var N0d=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}};
C5.prototype.toString=function(){var a=N0d(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=O0d(this);return(a.negated?"-":"")+d+(d?c[a.operator]:"")+b};var O0d=function(a){var b=a.label.field,c=a.ruleConfigLookup[b];return c&&(c=c.queryLabel,c!=null)?c:YSa(b).toLowerCase()+(a.label.customFieldId||"")};C5.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value}).filter(function(a){return a})};
C5.prototype.getWidgetType=function(){return"default"};C5.prototype.isValid=function(){return this.getLegalTypes().includes(this.type)};C5.prototype.getLegalTypes=function(){return I0d};var P0d=[],D5=function(a,b){C5.call(this,a,b);this.enumValues={}};Z(D5,C5);h=D5.prototype;h.getLegalTypes=function(){return J0d};h.getWidgetType=function(){return"enum"};
h.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[H1b(b.value.simpleValues[0].value)]=!0};h.valuesToStrings=function(){return Object.keys(Ki(this.enumValues,function(a){return a}))};h.getOptions=function(){return P0d};var Q0d=Oba().map(function(a){return{id:"p"+a,label:"P"+a}}),R0d=function(a,b){D5.call(this,a,b)};Z(R0d,D5);
R0d.prototype.getOptions=function(){return Q0d};var S0d=Oba().map(function(a){return{id:"s"+a,label:"S"+a}}),T0d=function(a,b){D5.call(this,a,b)};Z(T0d,D5);T0d.prototype.getOptions=function(){return S0d};
var U0d=[{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"}],V0d=function(a,b){D5.call(this,a,b)};Z(V0d,D5);V0d.prototype.getOptions=function(){return U0d};
var W0d=[{id:"open"},{id:"new",group:"open"},{id:"assigned",group:"open"},{id:"accepted",group:"open"},{id:"closed"},{id:"fixed"},{id:"verified"},{id:"duplicate"},{id:"inactive"},{id:"infeasible"},{id:"intended_behavior",label:"intended behavior"},{id:"not_reproducible",label:"not reproducible"},{id:"obsolete"}],X0d=function(a,b){D5.call(this,a,b)};Z(X0d,D5);X0d.prototype.getOptions=function(){return W0d};
var Y0d=[{id:"abuse"},{id:"pii"},{id:"user_request",label:"user request"},{id:"retention"}],Z0d=function(a,b){D5.call(this,a,b)};Z(Z0d,D5);Z0d.prototype.getOptions=function(){return Y0d};var $0d=[{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"}],a1d=function(a,b){D5.call(this,a,b)};Z(a1d,D5);a1d.prototype.getOptions=function(){return $0d};
var b1d=[{id:"swe",label:or.SWE,tooltip:AM.SWE},{id:"sre",label:or.SRE,tooltip:AM.SRE},{id:"pm",label:or.PM,tooltip:AM.PM},{id:"tpgm",label:or.TPGM,tooltip:AM.TPGM},{id:"ux",label:or.UX,tooltip:AM.UX},{id:"uxd",label:or.UXD,tooltip:AM.UXD},{id:"uxr",label:or.UXR,tooltip:AM.UXR},{id:"datasci",label:or.DATASCI,tooltip:AM.DATASCI},{id:"ld",label:or.LD,tooltip:AM.LD},{id:"devrel",label:or.DEVREL,tooltip:AM.DEVREL},{id:"tw",label:or.TW,tooltip:AM.TW},{id:"gtm",label:or.GTM,tooltip:AM.GTM},{id:"ce",label:or.CE,
tooltip:AM.CE},{id:"other",label:or.OTHER}],c1d=function(){D5.apply(this,arguments)};Z(c1d,D5);c1d.prototype.getOptions=function(){return b1d};var G0d=function(a,b){D5.call(this,a,b);this.allowedValues=[]};Z(G0d,D5);G0d.prototype[E0d]=function(a){this.allowedValues=a.customField.allowedValue.map(function(b){return{label:b,id:H1b(b)}});D5.prototype[E0d].call(this,a)};G0d.prototype.valuesToStrings=function(){return Object.keys(Ki(this.enumValues,function(a){return a})).map(function(a){return'"'+a+'"'})};
G0d.prototype.getOptions=function(){return this.allowedValues};var H0d=function(a,b){C5.call(this,a,b);this.allowedValues=[];var c,d;this.allowedValues=(d=(c=a.customField)==null?void 0:c.allowedValue)!=null?d:[]};Z(H0d,C5);H0d.prototype.getWidgetType=function(){return"repeated-enum"};H0d.prototype.getOptions=function(){return this.allowedValues};var Ku=function(a,b){C5.call(this,a,b);this.csv=""};Z(Ku,C5);Ku.prototype.getWidgetType=function(){return"csv"};
Ku.prototype.initValues=function(a){this.csv=(a.values||[]).map(function(b){return b.simpleValues[0].value}).join(",")};Ku.prototype.valuesToStrings=function(){return this.csv.split(",").map(function(a){return a.trim()}).filter(function(a){return a})};var E5=function(a,b){Ku.call(this,a,b)};Z(E5,Ku);E5.prototype.getWidgetType=function(){return"id"};
E5.prototype.valuesToStrings=function(){return Ku.prototype.valuesToStrings.call(this).map(function(a){return a.toLowerCase()==="none"?"none":a.toLowerCase()==="any"?"any":String(Jm(a))})};var d1d=function(a,b){Ku.call(this,a,b)};Z(d1d,E5);d1d.prototype.getLegalTypes=function(){return J0d};var F5=function(a,b){Ku.call(this,a,b)};Z(F5,Ku);F5.prototype.getWidgetType=function(){return"user"};var G5=function(a,b){Ku.call(this,a,b)};Z(G5,F5);G5.prototype.getLegalTypes=function(){return J0d};
var y5=function(a,b){C5.call(this,a,b);this.dateTo=this.dateFrom=this.duration=""};Z(y5,C5);var V2b=function(a){return a&&typeof a==="string"?a:""};y5.prototype.initType=function(a){C5.prototype.initType.call(this,a);var b=a.values&&a.values[0];b&&(b.type==="RANGE"?this.type=a.negated?"NRANGE":"RANGE":ta(b.simpleValues[0].value,"d")&&(this.type=a.negated?"NDURATION":"DURATION"))};y5.prototype.getWidgetType=function(){return"date"};
y5.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=e1d(b),this.type==="RANGE"||this.type==="NRANGE")this.dateTo=e1d(a.values[0].simpleValues[1].value)}};
y5.prototype.valuesToStrings=function(){if(this.type==="DURATION"||this.type==="NDURATION"){var a=Jm(this.duration);return!a||isNaN(a)?[]:[a+"d"]}if(this.type==="RANGE"||this.type==="NRANGE"){a=this.dateFrom&&f1d(this.dateFrom)||(new Bm).toIsoString(!0);var b=this.dateTo&&f1d(this.dateTo)||(new Bm).toIsoString(!0);return[a+".."+b]}return[this.dateFrom&&f1d(this.dateFrom)||(new Bm).toIsoString(!0)]};
var g1d=function(a){return String(a.getMonth()+1)+"/"+String(a.getDate())+"/"+String(a.getFullYear())},e1d=function(a){if(F0d.test(a))return a;var b=new Dm(2E3);a=Aa(a);var c=a.indexOf("T")==-1?" ":"T";a=a.split(c);var d=a[0].match(eYc);if(d){var e=Number(d[2]),f=Number(d[3]),g=Number(d[4]);c=Number(d[5]);var k=Number(d[6])||1;b.setFullYear(Number(d[1]));g?(b.setDate(1),b.setMonth(0),b.add(new BG("d",g-1))):c?(b.setMonth(0),b.setDate(1),d=b.getDay()||7,b.add(new BG("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(gYc);if(a)if(c=c.substring(0,c.length-a[0].length),a[0]==="Z")var m=0;else m=Number(a[2])*60+Number(a[3]),m*=a[1]=="-"?1:-1;if(g=c.match(fYc)){if(a){a=b.getYear();c=b.getMonth();k=b.getDate();d=Number(g[1]);e=Number(g[2])||0;f=Number(g[3])||0;var r=g[4]?Number(g[4])*1E3:0;(g=a>=0&&a<100)&&(a+=400);a=Date.UTC(a,c,k,d,e,f,r);g&&(a-=126227808E5);b.setTime(a+m*6E4)}else b.setHours(Number(g[1])),
b.setMinutes(Number(g[2])||0),b.setSeconds(Number(g[3])||0),b.setMilliseconds(g[4]?Number(g[4])*1E3:0);c=!0}else c=!1}return g1d(c?b:null)},f1d=function(a){if(F0d.test(a))return a;a=a.split("/").map(Number);return(new Bm(a[2],a[0]-1,a[1])).toIsoString(!0)};y5.prototype.getLegalTypes=function(){return K0d};var H5=function(a,b){C5.call(this,a,b)};Z(H5,C5);H5.prototype.getWidgetType=function(){return"bool"};
H5.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"};H5.prototype.toString=function(){return O0d(this)+":"+(this.type==="OR")};H5.prototype.getLegalTypes=function(){return J0d};var h1d=function(a,b){C5.call(this,a,b)};Z(h1d,C5);h1d.prototype.getWidgetType=function(){return"boolwithall"};
h1d.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")};h1d.prototype.toString=function(){var a=O0d(this)+":";switch(this.type){case "OR":return a+"true";case "NAND":return a+"false";default:return a+"all"}};
h1d.prototype.getLegalTypes=function(){return L0d};var B5=function(a,b){C5.call(this,a,b)};Z(B5,C5);B5.prototype.getWidgetType=function(){return"text"};B5.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}})};B5.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value.includes(" ")?'"'+a.value+'"':a.value})};
var i1d=function(a,b){C5.call(this,a,b)};Z(i1d,C5);i1d.prototype.getWidgetType=function(){return"component"};i1d.prototype.initValues=function(a){a.values&&(this.values=a.values.map(function(b){b=b.simpleValues[0].value;var c={value:b,includeSubs:!1};ta(b,"+")&&(b=b.slice(0,b.length-1),c.value=b,c.includeSubs=!0);return c}))};i1d.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};
var j1d=function(a,b){C5.call(this,a,b)};Z(j1d,C5);j1d.prototype.initValues=function(a){a.values&&(this.values=a.values.map(function(b){b=b.simpleValues[0].value;var c={value:b,includeSubs:!1};ta(b,"+")&&(b=b.slice(0,b.length-1),c.value=b,c.includeSubs=!0);return c}))};j1d.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};var k1d=function(a,b){C5.call(this,a,b)};Z(k1d,C5);k1d.prototype.getWidgetType=function(){return"tracker"};
var l1d=function(a,b){C5.call(this,a,b)};Z(l1d,j1d);l1d.prototype.getWidgetType=function(){return"team"};var m1d=function(a,b){C5.call(this,a,b)};Z(m1d,C5);m1d.prototype.getWidgetType=function(){return"hotlist"};var n1d=function(a,b){C5.call(this,a,b)};Z(n1d,C5);n1d.prototype.getWidgetType=function(){return"savedsearch"};var A5=function(a,b){Ku.call(this,a,b)};Z(A5,Ku);A5.prototype.getWidgetType=function(){return"number"};A5.prototype.getLegalTypes=function(){return M0d};
var o1d=function(a,b){y5.call(this,a,b)};Z(o1d,y5);o1d.prototype.initType=function(a){y5.prototype.initType.call(this,a);a.negated&&(this.type="ERR")};
var I5={},p1d=(I5.ATTACHMENT={ruleCtor:B5,name:"Attachment name"},I5.COMMENT={ruleCtor:B5},I5.TITLE={ruleCtor:B5},I5.ASSIGNEE={ruleCtor:G5},I5.MODIFIER={ruleCtor:F5},I5.REPORTER={ruleCtor:G5},I5.VERIFIER={ruleCtor:G5},I5.CC={ruleCtor:F5},I5.COLLABORATOR={ruleCtor:F5},I5.COMPONENT_ID={ruleCtor:i1d,name:"Component"},I5.TRACKER_ID={ruleCtor:k1d,name:"Tracker"},I5.TYPE={ruleCtor:V0d},I5.STATUS={ruleCtor:X0d},I5.PRIORITY={ruleCtor:R0d},I5.SEVERITY={ruleCtor:T0d},I5.BLOCKED_BY_ID={ruleCtor:E5},I5.BLOCKING_ID=
{ruleCtor:E5},I5.PARENT_ID={ruleCtor:E5},I5.CANONICAL_ID={ruleCtor:d1d},I5.ID={ruleCtor:d1d},I5.FOUND_IN={ruleCtor:Ku},I5.TARGETED_TO={ruleCtor:Ku},I5.VERIFIED_IN={ruleCtor:Ku},I5.CL={ruleCtor:Ku,name:"Changelists"},I5.MODIFIED={ruleCtor:y5},I5.RESOLVED={ruleCtor:o1d},I5.CREATED={ruleCtor:y5},I5.VERIFIED={ruleCtor:o1d},I5.DELETION_TIME={ruleCtor:y5,name:"Deletion time"},I5.SAVED_SEARCH_ID={ruleCtor:n1d,name:"Saved search"},I5.HOTLIST_ID={ruleCtor:m1d,name:"Hotlist"},I5.STAR={ruleCtor:H5,name:"Starred"},
I5.MUTE={ruleCtor:H5,name:"Muted"},I5.VOTE={ruleCtor:H5,name:"Upvoted by me"},I5.IN_PROD={ruleCtor:H5,name:"In production"},I5.CC_COUNT={ruleCtor:A5},I5.COLLABORATOR_COUNT={ruleCtor:A5},I5.DUPLICATE_COUNT={ruleCtor:A5},I5.VOTE_COUNT={ruleCtor:A5},I5.COMMENT_COUNT={ruleCtor:A5},I5.DESCENDANT_COUNT={ruleCtor:A5},I5.OPEN_DESCENDANT_COUNT={ruleCtor:A5},I5.ONE_DAY_VIEW_COUNT={ruleCtor:A5},I5.SEVEN_DAY_VIEW_COUNT={ruleCtor:A5},I5.THIRTY_DAY_VIEW_COUNT={ruleCtor:A5},I5.ATTACHMENT_COUNT={ruleCtor:A5},I5.LAST_MODIFIER=
{ruleCtor:G5,name:"Last Modified By"},I5.COMMENTER={ruleCtor:F5},I5.LAST_COMMENTER={ruleCtor:G5},I5.ARCHIVED={ruleCtor:h1d},I5.IS_DELETED={ruleCtor:H5,name:"Deleted",queryLabel:"deleted"},I5.DELETION_REASON={ruleCtor:Z0d,name:"Deletion reason"},I5.ACCESS_LEVEL={ruleCtor:a1d,name:"Issue access level"},I5._TEXT_={ruleCtor:B5,queryLabel:"",name:"All fields"},I5),q1d=Object.assign({},p1d,{EFFORT_LABEL:{ruleCtor:Ku},MENTION:{ruleCtor:F5},MIN_SLO_TARGET:{ruleCtor:y5,name:"Nearest SLO",queryLabel:"nearestslo"},
POSTMORTEM:{ruleCtor:Ku,name:"Postmortems"},STAFFING_PLACEHOLDER_COUNT:{ruleCtor:A5,name:"Staffing - Placeholder Count",queryLabel:"staffingplaceholdercount"},STAFFING_USER:{ruleCtor:F5,name:"Staffing - User",queryLabel:"staffinguser"},STAFFING_USER_COUNT:{ruleCtor:A5,name:"Staffing - User Count",queryLabel:"staffingusercount"},TEAM_ID:{ruleCtor:l1d,name:"Team"},INSIGHT:{ruleCtor:B5},ATTACHMENT_ANALYSIS:{ruleCtor:B5}}),r1d={ESCALATION_OWNER:{ruleCtor:G5}},w5=function(){this.activeSession=q(Zu)},z5=
function(a){var b={STAFFING_PLACEHOLDER:{ruleCtor:c1d,name:"Staffing - Placeholder",queryLabel:"staffingplaceholder"}};return a.activeSession.isExternalSession()?p1d:Object.assign({},b,q1d,r1d)};w5.\u0275fac=function(a){return new (a||w5)};w5.\u0275prov=Cc({token:w5,factory:w5.\u0275fac,providedIn:"root"});var s1d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(s1d,X);h=s1d.prototype;h.getField=function(){return Ri(this,1)};h.getCustomFieldId=function(){return Hn(this,2)};h.getCustomFieldId_asString=function(){return En(this,2)};h.setCustomFieldId=function(a){return ao(this,2,a)};h.hasCustomFieldId=function(){return Lb(um(this,2))!=null};var N1b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(N1b,X);h=N1b.prototype;h.getType=function(){return Ri(this,1)};h.setType=function(a){return Yn(this,1,a)};h.hasType=function(){return ym(this,1)};h.getValue=function(){return Fi(this,2)};h.setValue=function(a){return Gj(this,2,a)};h.hasValue=function(){return xm(this,2)};var t1d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(t1d,X);h=t1d.prototype;h.getType=function(){return Ri(this,1)};h.setType=function(a){return Yn(this,1,a)};h.hasType=function(){return ym(this,1)};h.getValuesList=function(a){return Wi(this,t1d,2,Xi(a))};h.setValuesList=function(a){return ij(this,2,a)};h.setValues=function(a,b){dx(this,2,t1d,a,b)};var V1b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(V1b,X);h=V1b.prototype;h.getType=function(){return Ri(this,1)};h.setType=function(a){return Yn(this,1,a)};h.hasType=function(){return ym(this,1)};h.getValuesList=function(a){return Wi(this,t1d,2,Xi(a))};h.setValuesList=function(a){return ij(this,2,a)};h.setValues=function(a,b){dx(this,2,t1d,a,b)};h.getLabel=function(){return Y(this,s1d,4)};h.setLabel=function(a){return hj(this,s1d,4,a)};
h.hasLabel=function(){return Si(this,s1d,4)};var Fu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Fu.messageId)};Z(Fu,X);Fu.prototype.getType=function(){return Ri(this,1,void 0,fb)};Fu.prototype.setType=function(a){return Yn(this,1,a,fb)};Fu.prototype.hasType=function(){return ym(this,1,fb)};Fu.messageId="b.QueryBuilderResponse";var S1b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,S1b.messageId)};Z(S1b,X);S1b.messageId="b.SyntaxErrorResponse";var u1d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,u1d.messageId)};Z(u1d,X);u1d.prototype.getKindCase=function(){return Oo(this,T1b,fb)};var T1b=[1,2];u1d.messageId="b.QueryBuilderResponseOrError";var v1d=function(){this.executor=q(SM)},w1d=function(a,b){b=kq(b);return a.executor.get({url:"action/issue_query_parse/"+b,responseConstructor:u1d}).then(W1b).then(function(c){var d;(d=c.syntaxErrorResponse)!=null?c=d:(c=c.queryBuilderResponse,c={type:c.type,expressions:c.expressions.map(I1b)});return c})};v1d.\u0275fac=function(a){return new (a||v1d)};v1d.\u0275prov=Cc({token:v1d,factory:v1d.\u0275fac,providedIn:"root"});var J5=function(){var a=this;this.showPlaceholder=!1;this.customFieldTitle="";this.allowMultiSelect=!1;this.selectedValues=[];this.allowedValues=[];this.disabled=!1;this.onValueChange=new KO;this.onApplyChanges=new KO;this.onCancelChanges=new KO;this.searchQuery$=new rf;this.hasPendingChanges=!1;this.selectedValuesMap={};this.oldSelectedValuesMap={};this.suggestedValues$=this.searchQuery$.pipe(kf(300),of(),A(function(b){var c=b.toLowerCase();return a.allowedValues.filter(function(d){return za(d.toLowerCase(),
c)})}))};h=J5.prototype;h.ngOnInit=function(){Cva(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};h.ngAfterViewInit=function(){};h.getPlaceholder=function(){return this.showPlaceholder?"Select "+this.customFieldTitle:""};
h.onSpace=function(a){var b;this.allowMultiSelect&&((b=this.autocompleteTrigger)==null?0:b.activeOption)&&(this.toggleSelection(this.autocompleteTrigger.activeOption.value),a.preventDefault(),a.stopPropagation())};h.search=function(a){this.searchQuery$.next(a)};h.handleSelectionChange=function(){this.hasPendingChanges=!Gm(this.oldSelectedValuesMap,this.selectedValuesMap)};h.toggleSelection=function(a){this.selectedValuesMap[a]=!this.selectedValuesMap[a];this.handleSelectionChange()};
var $1b=function(a,b){a.allowMultiSelect?(b=Object.keys(Ki(a.selectedValuesMap,function(c){return c})),a.onApplyChanges.emit(b)):a.onValueChange.emit(b==null?void 0:b.option.value)};J5.prototype.cancel=function(){this.onCancelChanges.emit()};J5.\u0275fac=function(a){return new (a||J5)};
J5.\u0275cmp=C({type:J5,selectors:[["b-custom-repeated-enum-picker"]],viewQuery:function(a,b){a&1&&kg(iX,7);if(a&2){var c;og(c=pg())&&(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"},
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=t();K(0,"input",2,0);N("click",function(){u(c);var e=Q(1);return v(b.search(e.value))})("input",function(){u(c);var e=Q(1);return v(b.search(e.value))})("keydown.space",function(e){u(c);return v(b.onSpace(e))});L();K(2,"mat-autocomplete",
3,1);N("optionSelected",function(e){u(c);return v($1b(b,e))});Pf(4,Z1b,3,2,"mat-option",4,Of);U(6,"async");L();F(7,a2b,5,5,"div",5)}if(a&2){a=Q(3);I("placeholder",b.getPlaceholder())("ngModel",b.currentInputValue)("disabled",b.disabled)("matAutocomplete",a);Jf("aria-disabled",b.disabled);B(2);I("hideSingleSelectionIndicator",!0);B(2);var d;Qf((d=W(6,7,b.suggestedValues$))!=null?d:b.currentInputValue?[]:b.allowedValues);B(3);G(b.allowMultiSelect?7:-1)}},dependencies:[mC,xi,PB,WB,lX,kX,hX,GA,iX,ZA,
XA,TA,PK,OK,wI,iz,py],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 K5=function(){var a=this;this.trackerFridge=q(IP);this.placeholder="Choose Tracker";this.disabled=!1;this.onTrackerSelect=new KO;this.searchQuery$=new rf;this.trackerSuggestions$=this.searchQuery$.pipe(kf(300),of(),zf(function(b){return a.trackerFridge.watchMany({filter:b,pageSize:5})}),A(function(b){return b.results}));this.displayFn=function(b){return b?b.name:""}};K5.prototype.ngAfterViewInit=function(){};K5.prototype.updateSelectionOnChange=function(a){this.onTrackerSelect.emit(a.option.value)};
K5.prototype.search=function(a){this.searchQuery$.next(a)};K5.\u0275fac=function(a){return new (a||K5)};
K5.\u0275cmp=C({type:K5,selectors:[["b-tracker-picker"]],viewQuery:function(a,b){a&1&&kg(iX,7);if(a&2){var c;og(c=pg())&&(b.autocompleteTrigger=c.first)}},inputs:{selectedTracker:"selectedTracker",placeholder:"placeholder",disabled:"disabled"},outputs:{onTrackerSelect:"onTrackerSelect"},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=t();K(0,"input",2,0);N("click",function(){u(c);var d=Q(1);return v(b.search(d.value))})("input",function(){u(c);var d=Q(1);return v(b.search(d.value))});L();K(2,"mat-autocomplete",3,1);N("optionSelected",function(d){u(c);return v(b.updateSelectionOnChange(d))});Pf(4,b2b,3,2,"mat-option",4,Of);U(6,"async");L()}a&2&&(a=Q(3),I("placeholder",b.placeholder)("ngModel",
b.selectedTracker)("disabled",b.disabled)("matAutocomplete",a),Jf("aria-disabled",b.disabled),B(2),I("displayWith",b.displayFn),B(2),Qf(W(6,6,b.trackerSuggestions$)))},dependencies:[mC,xi,PB,WB,lX,kX,hX,GA,iX,py],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 L5=function(){LO.apply(this,arguments);this.analytics=q(PO);this.customFieldsApi=q(cO);this.savedSearchApi=q(XN);this.hotlistApi=q(PN);this.trackerFridge=q(IP);this.issueSearchResources=q(v1d);this.activeSession=q(Zu);this.elementRef=q(Gd);this.errorHandler=q(ZM);this.componentActions=q(JV);this.teamsService=q(BP);this.searchRuleConfigService=q(w5);this.searchRuleFactory=q(x5);this.cdr=q(MO,{self:!0});this.trackerHelpers=q(WQ);this.currentUserBookmarksFridge=q(ZN);this.candidateEmailAutocompleteDenylist=
["me","none","any"];this.sessionIsInternal=this.activeSession.isInternalSession();this.isTrackerSearchEnabled=!1;this.typeLabels=L5.TYPE_LABELS;this.globalTypeLabels=L5.GLOBAL_TYPE_LABELS;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};
Z(L5,LO);L5.\u0275dir=LO.\u0275dir;var x1d=function(a){var b=[];Ji(z5(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,wdb(d)]))},a);b.sort(function(c,d){return Iba(c[1],d[1])});b.push(["SAVED_SEARCH_ID","Saved search"]);b.push(["CUSTOM_FIELD","Custom field"]);return b};L5.prototype.schedule=function(a){this.subscriptions.add(pe.schedule(a))};
L5.prototype.ngOnInit=function(){this.cdr.detectChanges()};L5.prototype.ngOnChanges=function(a){a.isTrackerSearchEnabled&&(this.availableLabels=x1d(this))};
var z1d=function(a,b){a.reset();b?y1d(a,b):(a.expressions=L5.DEFAULT_FIELDS.map(function(c){return p3b(a.searchRuleFactory,c)}),a.state="SUCCESS");ee(vld(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()});ee($N(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()},y1d=function(a,b){w1d(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 A1d(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()})},A1d=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?B1d(a,b.label.customFieldId).then(function(c){b.customField=
c;return C1d(a,b)}):Promise.resolve(C1d(a,b))},B1d=function(a,b){return a.customFields[b]?Promise.resolve(a.customFields[b]):a.customFieldsApi.get(b).then(function(c){return a.customFields[b]=c})},C1d=function(a,b){b=b.type==="ERR"?null:a.searchRuleFactory.build(b);if(!b||b&&!b.isValid())return null;D1d(a,b);return b},D1d=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=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]||E1d(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]||F1d(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})}};L5.prototype.fetchComponent=function(a){var b=this;this.componentActions.get(a).then(function(c){var d;Is(b.activeSession)&&c.trackerId!==((d=b.activeSession.getTracker())==null?void 0:d.trackerId)||(b.components[a]=c)})};
var E1d=function(a,b){a.trackerFridge.watch(b).pipe(Af(a.destroyed$)).subscribe(function(c){c&&(a.trackers[b]=c)})},F1d=function(a,b){DP(a.teamsService,b).pipe(hf(function(){return be([])}),Af(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:""}})},G1d=function(a){var b=a.expressionType==="AND"?" ":" | ";return iBc(a.expressions.map(function(c){return c.label?
c.toString():""})).join(b)};L5.prototype.getState=function(){return this.state};L5.prototype.reset=function(){this.expressionType="AND";this.expressions=[];this.state="INIT"};
var s3b=function(a,b){var c=a.expressions[b],d=c.label;d.field==="CUSTOM_FIELD"?c.isPendingCustomField=!0:(a.expressions[b]=p3b(a.searchRuleFactory,d.field),q3b(a,a.expressions[b]));a.cdr.detectChanges()},q3b=function(a,b){var c=b.getWidgetType();c==="component"||c==="savedsearch"||c==="hotlist"||c==="text"||c==="team"||c==="tracker"||c==="repeatedenum"?Iu(a,b):c==="date"&&(b.dateFrom||(b.dateFrom=g1d(new Bm)),b.dateTo||(b.dateTo=g1d(new Bm)))};
L5.prototype.addExpression=function(a){this.expressions.push({label:{field:a}});s3b(this,this.expressions.length-1)};L5.prototype.removeExpression=function(a){La(this.expressions,a);this.cdr.detectChanges()};
var Iu=function(a,b){var c={value:""};b.values.push(c);b.label.field==="COMPONENT_ID"?y2b(a,c):b.label.field==="TRACKER_ID"?F2b(a,c):b.label.field==="TEAM_ID"?M2b(a,c):b.label.field==="CUSTOM_FIELD"?h2b(a,c):Ju(a,c);a.cdr.detectChanges()},Hu=function(a,b,c){La(b.values,c);b.values.length||a.removeExpression(b);a.cdr.detectChanges()};
L5.prototype.getDateValue=function(a){var b,c=a.match(F0d);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 Ju=function(a,b){a.chipUnderEdit=b;a.cdr.detectChanges()},y2b=function(a,b){Ju(a,b);a.componentUnderEdit=b.value?Hm(a.components[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-component-picker input").focus()})},h2b=function(a,b){Ju(a,b);a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-adv-search-custom-repeated-enum-chip input").focus()})},F2b=function(a,b){Ju(a,b);a.trackerUnderEdit=b.value?Hm(a.trackers[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-tracker-picker input").focus()})},
M2b=function(a,b){Ju(a,b);a.teamUnderEdit=b.value?Hm(a.teams[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})},Gu=function(a){a.chipUnderEdit=null;a.cdr.detectChanges()},O2b=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;Gu(a);a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})};
L5.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]};L5.prototype.getCustomFieldName=function(a){return(a=a.label.customFieldId)?this.customFields[a].name||String(a):""};L5.prototype.getComponentPath=function(a){if(!a)return"";var b=Lu(this.trackerHelpers,a.componentPathInfo);return b&&b.componentPathName?b.componentPathName.join(" > "):a.name};
L5.GLOBAL_TYPE_LABELS={AND:"Match all (AND)",OR:"Match any (OR)"};
L5.TYPE_LABELS={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"}};
L5.DEFAULT_FIELDS=["COMPONENT_ID","ASSIGNEE","STATUS","_TEXT_"];L5.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(L5)))(b||L5)}}();
L5.\u0275cmp=C({type:L5,selectors:[["b-advanced-search"]],inputs:{isTrackerSearchEnabled:"isTrackerSearchEnabled"},features:[Ig([MO]),Ff,Gx],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","matTooltip"],["aria-label",
"Add one or more user names, separated by comma","placeholder","One or more user names, comma-separated",3,"valueChange","value","candidateDenylist"],["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&&F(0,v3b,14,3,"div",1);a&2&&G(b.getState()==="SUCCESS"?0:-1)},
dependencies:[C2,J5,mC,xi,PB,iC,WB,ZA,XA,TA,PK,OK,wI,DB,qB,BB,OJ,NJ,LF,JF,OF,qT,pT,hI,GA,hK,Y2,iz,MA,lV,VV,h1,K5,uy,Zyd],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%]{--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;margin-right:5px;text-align:center;display:inline-block}.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 H1d=function(){};H1d.\u0275fac=function(a){return new (a||H1d)};H1d.\u0275mod=$e({type:H1d});H1d.\u0275inj=Dc({imports:[FN,lX,mC,ZA,PK,J5]});var I1d=function(){};I1d.\u0275fac=function(a){return new (a||I1d)};I1d.\u0275mod=$e({type:I1d});I1d.\u0275inj=Dc({imports:[FN,lX,PK,iK,mC,K5]});var M5=function(){};M5.\u0275fac=function(a){return new (a||M5)};M5.\u0275mod=$e({type:M5});M5.\u0275inj=Dc({imports:[L5,sU,FN,D2,H1d,mC,ZA,PK,DB,qC,OJ,qT,iK,i3,u_,fX,j1,I1d]});var N5=function(){this.domSafe=q($P);this.buttonLabel="";this.alertMode=this.menuMode=!1},w3b=function(a){Sr(a.domSafe,"https://g3doc.corp.google.com/company/teams/buganizer/release-notes/b3-releasenotes.md")};N5.\u0275fac=function(a){return new (a||N5)};
N5.\u0275cmp=C({type:N5,selectors:[["b-whats-new-button"]],inputs:{buttonLabel:"buttonLabel",menuMode:"menuMode",alertMode:"alertMode"},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&&F(0,x3b,2,1,"button",0)(1,y3b,3,3,"button",1);a&2&&G(b.menuMode?0:1)},dependencies:[ZA,XA,VA,hK,iz,JF,MA],styles:["[_nghost-%COMP%] { display: flex; }"]});var O5=function(){LO.apply(this,arguments);this.session=q(Zu);this.appsEvents=q(DN);this.prefsManager=q(VP);this.enableWhatsNewDialog=this.session.getFlag("enableWhatsNewDialog");this.ThemePreferencesDensity=Sgd;this.density="COMFORTABLE"};Z(O5,LO);O5.\u0275dir=LO.\u0275dir;h=O5.prototype;h.ngOnInit=function(){var a=this;this.prefsManager.preferences$.pipe(Af(this.destroyed$)).subscribe(function(b){if(b==null?0:b.themePreferences)a.density=b.themePreferences.density})};h.setDensity=function(a){this.appsEvents.topBarEvents.setDensity.next(a)};
h.browseComponents=function(a){this.appsEvents.topBarEvents.browseComponents.next({newTab:a.ctrlKey||a.metaKey})};h.manageHotlists=function(a){this.appsEvents.topBarEvents.manageHotlists.next({newTab:a.ctrlKey||a.metaKey})};h.manageSlos=function(a){this.appsEvents.topBarEvents.manageSlos.next({newTab:a.ctrlKey||a.metaKey})};h.showSettings=function(a){this.appsEvents.topBarEvents.openSettings.next({newTab:a.ctrlKey||a.metaKey})};
O5.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(O5)))(b||O5)}}();
O5.\u0275cmp=C({type:O5,selectors:[["b-app-settings-menu"]],features:[Ff],decls:27,vars:12,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"],["buttonLabel","Release Notes",3,"menuMode"]],template:function(a,b){if(a&1){var c=t();K(0,"button",1);M(1,"mat-icon",2);L();K(2,"mat-menu",null,0)(4,"div",3);S(5,"Display Density");
L();K(6,"button",4);N("click",function(){u(c);return v(b.setDensity(b.ThemePreferencesDensity.COMFORTABLE))});K(7,"span",5);M(8,"mat-icon",6);L();S(9," Comfortable ");L();K(10,"button",7);N("click",function(){u(c);return v(b.setDensity(b.ThemePreferencesDensity.COZY))});K(11,"span",5);M(12,"mat-icon",6);L();S(13," Cozy ");L();K(14,"button",8);N("click",function(){u(c);return v(b.setDensity(b.ThemePreferencesDensity.COMPACT))});K(15,"span",5);M(16,"mat-icon",6);L();S(17," Compact ");L();M(18,"mat-divider");
K(19,"button",9);N("click",function(d){u(c);return v(b.browseComponents(d))});S(20,"Browse components");L();K(21,"button",9);N("click",function(d){u(c);return v(b.manageHotlists(d))});S(22,"Manage hotlists");L();E(23,z3b,2,0,"button",10);K(24,"button",9);N("click",function(d){u(c);return v(b.showSettings(d))});S(25,"Settings");L();F(26,A3b,2,1);L()}a&2&&(a=Q(3),I("disabled",b.session.isAnonymous())("matMenuTriggerFor",a),B(6),yg("b-menu-item-checked",b.density===b.ThemePreferencesDensity.COMFORTABLE),
Jf("aria-checked",b.density===b.ThemePreferencesDensity.COMFORTABLE),B(4),yg("b-menu-item-checked",b.density===b.ThemePreferencesDensity.COZY),Jf("aria-checked",b.density===b.ThemePreferencesDensity.COZY),B(4),yg("b-menu-item-checked",b.density===b.ThemePreferencesDensity.COMPACT),Jf("aria-checked",b.density===b.ThemePreferencesDensity.COMPACT),B(12),G(b.enableWhatsNewDialog?26:-1))},dependencies:[ZA,XA,VA,OJ,NJ,LF,JF,OF,hK,$Y,XJ,iz,MA,N5],encapsulation:2,changeDetection:0});var P5=function(){this.theme=q(fV);this.isDark=!1;this.iconName="dark-mode-filled"};P5.prototype.ngOnInit=function(){this.theme.loadLocalDarkmode();J1d(this)};var J1d=function(a){a.isDark=a.theme.clientDarkmodeSubject.getValue();a.iconName=a.isDark?"brightness-high":"dark-mode-filled"};P5.\u0275fac=function(a){return new (a||P5)};
P5.\u0275cmp=C({type:P5,selectors:[["theme-change-btn"]],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&&(K(0,"button",0),N("click",function(){var c=b.theme;c.setLocalDarkmode(!c.clientDarkmodeSubject.getValue());c.clientStreamzService&&Ocd(c.clientStreamzService,"toggleDarkmode",!c.clientDarkmodeSubject.getValue());iBd(c,!c.clientDarkmodeSubject.getValue());
J1d(b)}),M(1,"mat-icon",1),L());a&2&&(B(),I("svgIcon",b.iconName))},dependencies:[ZA,XA,VA,hK,iz,MA],encapsulation:2});var K1d=function(){this.session=q(Zu);this.userFeedback=q(TY);this.domSafe=q($P);this.docLinks=q(OQ);this.enableWhatsNewDialog=this.session.getFlag("enableWhatsNewDialog");this.majorReleaseNotesUpdated=this.session.getFlag("majorReleaseNotesUpdated")};K1d.\u0275fac=function(a){return new (a||K1d)};
K1d.\u0275cmp=C({type:K1d,selectors:[["b-app-actions"]],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&&(M(0,"theme-change-btn"),F(1,B3b,1,1,"b-whats-new-button",0),E(2,C3b,2,0,"button",1),K(3,"button",2),N("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)}),M(4,"mat-icon",3),L(),M(5,"b-app-settings-menu"));a&2&&(B(),G(b.enableWhatsNewDialog?1:-1))},dependencies:[O5,ZA,XA,VA,hK,$Y,
iz,MA,P5,N5],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 E3b=function(a){return[a]},F3b=function(){return[]},Q5=function(){this.activeSession=q(Zu);this.clickMenu=new KO;this.showMenu=!1;this.clickLogo=new KO;this.chips=[]};Q5.prototype.ngOnInit=function(){this.showMenu=!this.activeSession.isAnonymous()&&this.clickMenu.observed};Q5.\u0275fac=function(a){return new (a||Q5)};
Q5.\u0275cmp=C({type:Q5,selectors:[["app-logo"]],inputs:{imgSrc:"imgSrc",imgSrcDark:"imgSrcDark",href:"href",name:"name",chips:"chips"},outputs:{clickMenu:"clickMenu",clickLogo:"clickLogo"},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,"class"],["type","button","mat-icon-button","","aria-label","Expand/Collapse Navigation",
1,"menu",3,"click"],["svgIcon","menu-18px"],[1,"b-chip"]],template:function(a,b){a&1&&(fg(),F(0,D3b,2,0,"button",0),K(1,"a",1),N("click",function(){return b.clickLogo.emit()}),M(2,"img",2)(3,"img",3),K(4,"h1"),S(5),L()(),gg(6),Pf(7,G3b,2,6,"output",4,Of));a&2&&(G(b.showMenu?0:-1),B(),Jf("href",b.href?b.href:void 0,Me),B(),I("src",b.imgSrc,Me),B(),I("src",b.imgSrcDark||b.imgSrc,Me),B(2),Ag(b.name),B(2),Qf(b.chips))},dependencies:[ZA,XA,VA,iz],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 R5=function(){this.events=q(DN);this.imageUrls=q(LV);this.environmentType="QA";this.frontendAccessMode="INTERNAL";this.href="/";this.chips=[];this.name="Buganizer"};R5.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"})};
R5.prototype.ngOnChanges=function(a){if(a.tracker||a.frontendAccessMode)this.name=this.getAppName()};R5.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:sb(this.frontendAccessMode,"unknown frontend access mode.")}};
da.Object.defineProperties(R5.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"}}});R5.\u0275fac=function(a){return new (a||R5)};
R5.\u0275cmp=C({type:R5,selectors:[["b-app-logo"]],inputs:{environmentType:"environmentType",frontendAccessMode:"frontendAccessMode",tracker:"tracker",href:"href"},features:[Gx],decls:1,vars:5,consts:[[3,"clickMenu","name","href","chips","imgSrc","imgSrcDark"]],template:function(a,b){a&1&&(K(0,"app-logo",0),N("clickMenu",function(){return b.events.onClickAppMenuIcon.next()}),L());a&2&&I("name",b.name)("href",b.href)("chips",b.chips)("imgSrc",b.imgSrc)("imgSrcDark",b.imgSrcDark)},dependencies:[Q5],
encapsulation:2,changeDetection:0});var S5=function(){this.isActive=!1;this.optionClicked=new KO};S5.prototype.ngOnInit=function(){};S5.prototype.onClick=function(){this.optionClicked.emit(this.index)};S5.\u0275fac=function(a){return new (a||S5)};
S5.\u0275cmp=C({type:S5,selectors:[["b-app-search-auto-complete-option"]],hostVars:2,hostBindings:function(a,b){a&1&&N("click",function(){return b.onClick()});a&2&&yg("active",b.isActive)},inputs:{isActive:"isActive",index:"index"},outputs:{optionClicked:"optionClicked"},ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"content","gmat-subtitle-2"]],template:function(a){a&1&&(fg(),Sf(0,"div",0),gg(1),Tf())},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 T5=function(){this.ref=q(MO,{self:!0});this.hostElement=q(Gd);this.trackerHelpers=q(WQ);this.items=[];this.header=null;this.itemSelected=new KO;this.activeItemChanged=new KO;this.SPECIAL_ITEM_TYPES="issue hotlist savedsearch atom component customField team tracker".split(" ")};T5.prototype.ngOnChanges=function(a){a.items&&(this.items.length>0?(this.activeItemIndex=0,this.activeItemChanged.emit(this.items[0])):this.clearActiveItem(),this.ref.markForCheck())};T5.prototype.ngAfterViewInit=function(){};
var g4b=function(a){var b=P(3);r4b(a);b.itemSelected.emit(a)};T5.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(),L1d(this))};
T5.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(),L1d(this))};var M1d=function(a){a.activeItemIndex!=null&&a.itemSelected.emit(a.items[a.activeItemIndex])};T5.prototype.clearActiveItem=function(){this.activeItemIndex=void 0;this.activeItemChanged.emit(void 0)};
var N1d=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}},L1d=function(a){var b=a.itemElements.find(function(c,d){return d===a.activeItemIndex});b&&wtc(b.nativeElement,a.hostElement.nativeElement)},r4b=function(a){ur("search","autocomplete-select",a.completionCfg.type||"unknown_type",isNaN(Number(a.id))?1:Number(a.id))};T5.\u0275fac=function(a){return new (a||T5)};
T5.\u0275cmp=C({type:T5,selectors:[["b-app-search-auto-complete-list"]],viewQuery:function(a,b){a&1&&kg(S5,5,Gd);if(a&2){var c;og(c=pg())&&(b.itemElements=c)}},inputs:{items:"items",header:"header"},outputs:{itemSelected:"itemSelected",activeItemChanged:"activeItemChanged"},features:[Ig([MO]),Gx],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&&(F(0,a4b,7,6,"div",0),K(1,"div",1),Pf(2,s4b,10,13,"b-app-search-auto-complete-option",2,Of),L());a&2&&(G(b.header&&b.header.type?0:-1),B(2),Qf(b.items))},dependencies:[FV,S5,NV,qy],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 O1d=["box"],P1d=["initialFocus"],Q1d=["finalFocus"],U5=function(){this.documentationLinks=q(OQ);this.appSearchState=q(gS);this.activeSession=q(Zu);this.placeholder="";this.isSearchDisabled=!1;this.autoCompleteItems=[];this.autoCompleteHeader=null;this.onAdvancedSearchOpen=new KO;this.onAdvancedSearchClose=new KO;this.onAdvancedSearchSubmit=new KO;this.onSaveSearch=new KO;this.dropdownStatus="closed";this.searchName="";this.searchHelpLink=this.documentationLinks.baseDocumentationUrl+"/concepts/search-query-language";
this.destroyed$=new rf;this.currentQuery$=this.appSearchState.queryState$.pipe(A(function(a){return a.query}));this.autoCompleteItemSelected$=new rf;this.isAnonymous=this.activeSession.isAnonymous()};
U5.prototype.ngOnInit=function(){var a=this;this.autoCompleteItemSelected$.pipe(Df(this.currentQuery$),Af(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()})};
U5.prototype.ngAfterViewInit=function(){var a=this;this.appSearchState.queryState$.pipe(te(function(b){return!b.setViaInteraction}),Af(this.destroyed$)).subscribe(function(b){var c=b.query;b=b.cursorPosition;a.inputBox.nativeElement.value=c;b!=null&&(c=a.inputBox.nativeElement,t4b(c)&&(c.selectionStart=b,c.selectionEnd=b))})};U5.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};
var R1d=function(a){a.appSearchState.searchTriggered$.next("keyboard")},S1d=function(a,b){a.dropdownStatus="auto_complete";a.acList.clearActiveItem();var c=u4b(a.inputBox.nativeElement,!0)[0];c=c===u4b(a.inputBox.nativeElement,!1)[1]?c:void 0;a.appSearchState.queryState$.next({query:b,cursorPosition:c,setViaInteraction:!0})};U5.prototype.onInputFocus=function(){this.dropdownStatus="auto_complete"};
U5.prototype.handleKeydown=function(a){switch(a.key){case "Escape":if(!V5(this))return;T1d(this);break;case "ArrowUp":if(!V5(this))return;this.acList.setPreviousItemActive();break;case "ArrowDown":if(!V5(this))return;this.acList.setNextItemActive();break;case "Tab":case "ArrowRight":if(!V5(this)){S1d(this,this.inputBox.nativeElement.value);return}M1d(this.acList);break;case "ArrowLeft":S1d(this,this.inputBox.nativeElement.value);return;case "Enter":V5(this)?this.acList.activeItemIndex!=null?M1d(this.acList):
R1d(this):R1d(this);break;default:return}a.preventDefault();a.stopPropagation()};U5.prototype.submitAdvancedSearch=function(){this.onAdvancedSearchSubmit.emit();U1d(this)};
var T1d=function(a){a.dropdownStatus==="auto_complete"&&(a.dropdownStatus="closed")},U1d=function(a){a.dropdownStatus==="advanced_search"&&(a.dropdownStatus="closed",a.onAdvancedSearchClose.emit())},V5=function(a){return a.dropdownStatus==="auto_complete"&&a.autoCompleteItems.length>0},V1d=function(a){return a.dropdownStatus==="auto_complete"&&a.autoCompleteHeader!=null},W1d=function(a){return a.dropdownStatus==="advanced_search"};
U5.prototype.saveSearch=function(){this.searchName&&(this.onSaveSearch.emit(this.searchName),this.searchName="",U1d(this))};var X1d=function(a,b){b.shiftKey&&b.key==="Tab"&&a.advancedSearchFinalFocus&&setTimeout(function(){return a.advancedSearchFinalFocus.nativeElement.focus()})},v4b=function(a){a.advancedSearchInitialFocus&&setTimeout(function(){return a.advancedSearchInitialFocus.nativeElement.focus()})};U5.\u0275fac=function(a){return new (a||U5)};
U5.\u0275cmp=C({type:U5,selectors:[["b-app-search-box"]],viewQuery:function(a,b){a&1&&(kg(T5,7),kg(O1d,5),kg(P1d,7,Gd),kg(Q1d,7));if(a&2){var c;og(c=pg())&&(b.acList=c.first);og(c=pg())&&(b.inputBox=c.first);og(c=pg())&&(b.advancedSearchInitialFocus=c.first);og(c=pg())&&(b.advancedSearchFinalFocus=c.first)}},inputs:{placeholder:"placeholder",isSearchDisabled:"isSearchDisabled",autoCompleteItems:"autoCompleteItems",autoCompleteHeader:"autoCompleteHeader"},outputs:{onAdvancedSearchOpen:"onAdvancedSearchOpen",
onAdvancedSearchClose:"onAdvancedSearchClose",onAdvancedSearchSubmit:"onAdvancedSearchSubmit",onSaveSearch:"onSaveSearch"},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=t();fg();K(0,"div",3);N("clickOutside",function(){u(c);T1d(b);return v()});K(1,"div",4)(2,"button",5);N("click",function(){u(c);return v(R1d(b))});M(3,"mat-icon",6);L();K(4,"textarea",7,0);N("keydown",function(d){u(c);return v(b.handleKeydown(d))})("input",function(){u(c);var d=Q(5);return v(S1d(b,d.value))})("click",
function(){u(c);var d=Q(5);return v(S1d(b,d.value))})("focus",function(){u(c);return v(b.onInputFocus())});L();K(6,"button",8);N("click",function(){u(c);b.dropdownStatus="advanced_search";b.onAdvancedSearchOpen.emit();return v()});M(7,"mat-icon",9);L()();K(8,"aside",10)(9,"b-app-search-auto-complete-list",11);N("itemSelected",function(d){u(c);return v(b.autoCompleteItemSelected$.next(d))});L();K(10,"div",12)(11,"div",13)(12,"button",14,1);N("keydown",function(d){u(c);return v(X1d(b,d))})("click",
function(){u(c);return v(U1d(b))});M(14,"mat-icon",15);L()();K(15,"div",16);gg(16);L();K(17,"div",17)(18,"button",18);N("click",function(){u(c);return v(b.submitAdvancedSearch())});S(19," Search ");L();K(20,"a",19);S(21,"Search help ");M(22,"mat-icon",20);L();F(23,w4b,5,2,"div",21);L()()()()}a&2&&(yg("dropdown-opened",V5(b)||V1d(b)||W1d(b)),B(),yg("hidden",W1d(b)),B(3),I("placeholder",b.placeholder),Jf("aria-activedescendant",N1d(b.acList))("aria-expanded",V5(b)||V1d(b)),B(4),yg("advanced-search-open",
W1d(b)),B(),yg("hidden",!(V5(b)||V1d(b))),I("items",b.autoCompleteItems)("header",b.autoCompleteHeader),B(),yg("hidden",!W1d(b)),B(2),I("disabled",b.isSearchDisabled),B(6),I("disabled",b.isSearchDisabled),B(2),Jf("href",b.searchHelpLink,Me),B(3),G(b.isAnonymous?-1:23))},dependencies:[T5,Vz,HB,mY,mC,xi,PB,WB,ZA,XA,TA,VA,hK,iz,MA],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:8px 0;margin-left:5px;height:24px;line-height:24px;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 Y1d=function(){this.activeSession=q(Zu);this.logoEnvironmentType="QA";this.logoFrontendAccessMode="INTERNAL";this.isSearchDisabled=!1;this.searchBoxPlaceholder="";this.searchBoxAutoCompleteItems=[];this.searchBoxAutoCompleteHeader=null;this.searchBoxOnAdvancedSearchOpen=new KO;this.searchBoxOnAdvancedSearchClose=new KO;this.searchBoxOnAdvancedSearchSubmit=new KO;this.searchBoxOnSaveSearch=new KO;this.currentTracker=this.activeSession.getTracker()},Z1d=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()})};Y1d.\u0275fac=function(a){return new (a||Y1d)};
Y1d.\u0275cmp=C({type:Y1d,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"},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&&(fg(),M(0,"b-app-logo",0),K(1,"div",1)(2,"button",2),N("click",function(){return Z1d()})("keydown.enter",function(){return Z1d()}),S(3," Skip Navigation "),L()(),K(4,"b-app-search-box",3),N("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)}),
gg(5),L(),M(6,"b-app-actions"));a&2&&(I("environmentType",b.logoEnvironmentType)("frontendAccessMode",b.logoFrontendAccessMode)("tracker",b.currentTracker),B(4),I("placeholder",b.searchBoxPlaceholder)("autoCompleteItems",b.searchBoxAutoCompleteItems)("autoCompleteHeader",b.searchBoxAutoCompleteHeader)("isSearchDisabled",b.isSearchDisabled))},dependencies:[K1d,R5,U5,ZA,XA,TA],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 $1d=function(){};$1d.\u0275fac=function(a){return new (a||$1d)};$1d.\u0275mod=$e({type:$1d});$1d.\u0275inj=Dc({imports:[FN,pB,ZA,fK,SY]});var a2d=function(){};a2d.\u0275fac=function(a){return new (a||a2d)};a2d.\u0275mod=$e({type:a2d});a2d.\u0275inj=Dc({imports:[FN,ZA,OJ,iK,N5]});var b2d=[Q5],c2d=function(){};c2d.\u0275fac=function(a){return new (a||c2d)};c2d.\u0275mod=$e({type:c2d});c2d.\u0275inj=Dc({imports:[FN,ZA,iK,b2d]});var d2d=function(){};d2d.\u0275fac=function(a){return new (a||d2d)};d2d.\u0275mod=$e({type:d2d});d2d.\u0275inj=Dc({imports:[FN]});var e2d=function(){};e2d.\u0275fac=function(a){return new (a||e2d)};e2d.\u0275mod=$e({type:e2d});e2d.\u0275inj=Dc({providers:[fV]});var f2d=function(){};f2d.\u0275fac=function(a){return new (a||f2d)};f2d.\u0275mod=$e({type:f2d});f2d.\u0275inj=Dc({imports:[FN,ZA,iK,e2d,P5]});var W5=function(){};W5.\u0275fac=function(a){return new (a||W5)};W5.\u0275mod=$e({type:W5});W5.\u0275inj=Dc({imports:[FN,OJ,ZA,YJ,iK,bA,mC,nY,a2d,g2,c2d,SW,IB,d2d,f2d,$1d,cX,R5,O5,K1d,U5,Y1d,T5,S5]});var g2d=function(){};g2d.\u0275fac=function(a){return new (a||g2d)};g2d.\u0275mod=$e({type:g2d});g2d.\u0275inj=Dc({imports:[FN,ZA,pB,G2]});var h2d=function(){};h2d.\u0275fac=function(a){return new (a||h2d)};h2d.\u0275mod=$e({type:h2d});h2d.\u0275inj=Dc({imports:[FN,mC,ZA,qC,DB,pB,fX,H2]});var X5=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 KO;this.selectedChange=new KO;this.cardTitleChange=new KO;this.onSaveButtonClicked=new KO;this.onCancelButtonClicked=
new KO;this.isInheritedChange=new KO;this.isExpanded=!1};X5.prototype.expand=function(){this.isExpanded=!0};X5.prototype.collapse=function(){this.isExpanded=!1};X5.prototype.onSave=function(){this.collapse();this.onSaveButtonClicked.emit()};X5.prototype.onCancel=function(){this.collapse();this.onCancelButtonClicked.emit()};X5.\u0275fac=function(a){return new (a||X5)};
X5.\u0275cmp=C({type:X5,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"},ngContentSelectors:["*"],decls:10,vars:13,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"],["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&&(fg(),K(0,"div",0)(1,"div",1)(2,"mat-checkbox",2),N("change",function(c){b.selected=c.checked;b.expand();b.selectedChange.emit(b.selected)}),L(),F(3,x4b,2,3,"span",3)(4,C4b,3,7),K(5,"button",4),N("click",function(){b.isExpanded?b.collapse():b.expand()}),F(6,D4b,1,0,"mat-icon",5)(7,E4b,1,0,"mat-icon",
6),L()(),F(8,F4b,2,0,"div",7),F(9,K4b,9,6,"div",8),L());a&2&&(Jf("aria-expanded",b.isExpanded),B(2),yg("expanded-checkbox",b.isExpanded),I("disabled",b.disabled)("checked",b.selected),If("aria-label",b.cardTitle),B(),G(b.isExpanded?4:3),B(2),zg(b.isExpanded?"collapse-toggle":"expand-toggle"),Jf("aria-label",b.isExpanded?"Collapse editor":"Expand editor"),B(),G(b.isExpanded?6:7),B(2),G(b.isExpanded?8:-1),B(),G(b.isExpanded?9:-1))},dependencies:[mC,xi,PB,hC,iC,WB,ZA,XA,TA,VA,PK,OK,wI,DB,qB,BB,tB,qC,
EB,oC,qT,pT,hI,iI,GA,aU,$T,lS,hK,XJ,iz,MA],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 Y5=function(){};Y5.\u0275fac=function(a){return new (a||Y5)};Y5.\u0275mod=$e({type:Y5});Y5.\u0275inj=Dc({imports:[FN,mC,PK,ZA,aU,qT,YJ,qC,iK,X5]});var i2d=function(){this.dialogRef=q(dB);this.data=q(fB);this.selected=this.data.sharedFields[0];this.options=this.data.sharedFields};i2d.\u0275fac=function(a){return new (a||i2d)};
i2d.\u0275cmp=C({type:i2d,selectors:[["activate-shared-field-dialog"]],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&&(K(0,"h1",0),S(1,
"Activate a shared field"),L(),K(2,"div",1),F(3,M4b,4,1,"mat-form-field")(4,N4b,1,0),F(5,O4b,4,0,"div"),L(),K(6,"footer",2)(7,"button",3),N("click",function(){return b.dialogRef.close()}),S(8,"Cancel"),L(),K(9,"button",4),N("click",function(){return b.dialogRef.close(b.selected)}),S(10,"Confirm"),L()());a&2&&(B(3),G(b.options.length>0?3:4),B(2),G(b.options.length>0?5:-1))},dependencies:[ZA,XA,TA,DB,qB,BB,qT,pT,hI,GA,mB,lB,kB],encapsulation:2});var Z5=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Z5,X);Z5.prototype.getComponentId=function(){return Hn(this,1)};Z5.prototype.getComponentId_asString=function(){return Ln(this,1)};Z5.prototype.setComponentId=function(a){return ap(this,1,a)};Z5.prototype.setFieldId=function(a){return dx(this,2,hp,a)};var j2d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(j2d,X);h=j2d.prototype;h.getComponentId=function(){return Hn(this,1)};h.getComponentId_asString=function(){return Ln(this,1)};h.setComponentId=function(a){return ap(this,1,a)};h.getFieldConfigsV2List=function(){return Wi(this,yq,2,Xi())};h.setFieldConfigsV2List=function(a){return ij(this,2,a)};var k2d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,k2d.messageId)};Z(k2d,X);k2d.prototype.getIt=function(){return Y(this,Z5,2,fb)};k2d.prototype.setIt=function(a){return hj(this,Z5,2,a,fb)};k2d.messageId="b.ReorderFieldsRequest";var l2d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,l2d.messageId)};Z(l2d,X);l2d.prototype.getIt=function(){return Y(this,j2d,1,fb)};l2d.prototype.setIt=function(a){return hj(this,j2d,1,a,fb)};l2d.messageId="b.UpdateFieldConfigsV2Request";var m2d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(m2d,X);m2d.prototype.getFieldConfigsV2List=function(){return Wi(this,yq,1,Xi())};m2d.prototype.setFieldConfigsV2List=function(a){return ij(this,1,a)};var n2d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,n2d.messageId)};Z(n2d,X);n2d.prototype.getIt=function(){return Y(this,m2d,1,fb)};n2d.prototype.setIt=function(a){return hj(this,m2d,1,a,fb)};n2d.messageId="b.UpdateFieldConfigsV2Response";var $5=function(){this.executor=q(RM)};$5.prototype.reorder=function(a,b){var c=new k2d,d=c.setIt;var e=(new Z5).setComponentId(a);b=b.map(zYa);e=ij(e,2,b);c=d.call(c,e);return this.executor.post({url:"action/components/"+a+"/reorder",body:c,responseConstructor:null})};var o2d=function(a,b,c){c=(new l2d).setIt((new j2d).setComponentId(b).setFieldConfigsV2List(c.map(B0a)));return a.executor.put({url:"action/components/"+b+"/update_field_configs_v2",body:c,responseConstructor:n2d}).pipe(A(function(d){return d.getIt().getFieldConfigsV2List().map(w0a)}))};
$5.\u0275fac=function(a){return new (a||$5)};$5.\u0275prov=Cc({token:$5,factory:$5.\u0275fac,providedIn:"root"});var p2d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(p2d,X);h=p2d.prototype;h.getComponentId=function(){return Hn(this,1)};h.getComponentId_asString=function(){return Ln(this,1)};h.setComponentId=function(a){return ap(this,1,a)};h.getCustomFieldId=function(){return Hn(this,2)};h.getCustomFieldId_asString=function(){return Ln(this,2)};h.setCustomFieldId=function(a){return ap(this,2,a)};var q2d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(q2d,X);h=q2d.prototype;h.getComponentId=function(){return Hn(this,1)};h.getComponentId_asString=function(){return Ln(this,1)};h.setComponentId=function(a){return ap(this,1,a)};h.getCustomFieldId=function(){return Hn(this,2)};h.getCustomFieldId_asString=function(){return Ln(this,2)};h.setCustomFieldId=function(a){return ap(this,2,a)};var r2d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,r2d.messageId)};Z(r2d,X);r2d.prototype.getIt=function(){return Y(this,p2d,1,fb)};r2d.prototype.setIt=function(a){return hj(this,p2d,1,a,fb)};r2d.messageId="b.AddSharedCustomFieldToComponentRequest";var s2d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,s2d.messageId)};Z(s2d,X);s2d.prototype.getIt=function(){return Y(this,q2d,1,fb)};s2d.prototype.setIt=function(a){return hj(this,q2d,1,a,fb)};s2d.messageId="b.RemoveSharedCustomFieldFromComponentRequest";var a6=function(){this.executor=q(SM)};a6.prototype.add=function(a,b){var c="/action/components/"+a+"/add_shared_custom_field";a=(new r2d).setIt((new p2d).setComponentId(a).setCustomFieldId(b));return this.executor.post({url:c,body:a,responseConstructor:null})};a6.prototype.remove=function(a,b){var c="/action/components/"+a+"/remove_shared_custom_field";a=(new s2d).setIt((new q2d).setComponentId(a).setCustomFieldId(b));return this.executor.post({url:c,body:a,responseConstructor:null})};
a6.\u0275fac=function(a){return new (a||a6)};a6.\u0275prov=Cc({token:a6,factory:a6.\u0275fac,providedIn:"root"});var t2d=["fieldStateMenu"],S4b=function(a){return{type:a}},u2d=["SILENT","MINOR","MAJOR"],b6=function(){LO.apply(this,arguments);this.customFieldsApi=q(cO);this.checkBeforeExit=q(HX);this.butterBar=q(JM);this.analytics=q(PO);this.routeParams=q(hR);this.componentActions=q(JV);this.fieldConfigService=q($5);this.sharedCustomFieldApi=q(a6);this.documentationLinks=q(OQ);this.paths=q(wV);this.confirmationDialog=q(PQ);this.appEvents=q(DN);this.dialog=q(gB);this.activeSession=q(Zu);this.customFieldHelper=
q(kR);this.sharedFieldCandidates=B9a({isInternal:this.activeSession.isInternalSession(),isProd:Ms(this.activeSession)});this.ROUTES=zs;this.FieldType=AU;this.ListFieldType=zAd;this.getSingleEditFieldType=Meb;this.getListFieldType=rgb;this.isRepeated=uYa;this.typeChoices=["TEXT","DATE","ENUM","NUMERIC"];this.secondaryTypes=["Single","Multiple"];this.significanceChoices=u2d;this.customFields=[];this.inheritedCustomFields=[];this.sharedFields=[];this.componentIdsToNames={};this.isLoading=!1;this.editableField=
null;this.allowedValues=[];this.originalEditableFieldValue=null;this.componentId=String(this.routeParams.componentId)};Z(b6,LO);b6.\u0275dir=LO.\u0275dir;b6.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(IX(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!0));this.loadCustomFields()};
b6.prototype.ngOnChanges=function(){var a=new Map;if(this.parentComponent)for(var b=lR(this.customFieldHelper,this.parentComponent),c=0;c<b.length;c++){var d=b[c];a.set(d.customFieldId,d.enabledOnIssues)}this.fieldsEnabledOnParentComponent=a};
b6.prototype.editField=function(a){window.scrollTo({top:0,behavior:"smooth"});if(!this.hasUnsavedChanges()||iId(this.checkBeforeExit))this.editableField=Hm(this.customFields[a]),this.originalEditableFieldValue=Hm(this.editableField),this.serverError=null,this.setType(this.editableField.type),W4b(this,this.editableField.allowedValue)};
var h5b=function(a,b){var c=a.customFields[b];a.confirmationDialog.open({title:"Deleting field: "+c.name,content:Dh("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)}})};
b6.prototype.doDelete=function(a){var b=this;fs(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");fs(b.butterBar,"Deleted field: "+a.name,2E3);b.loadCustomFields()})};
b6.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=iq(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)};b6.prototype.cancel=function(){this.originalEditableFieldValue=this.editableField=null};
var Z4b=function(a,b){var c=a.editableField.type,d=c==="TEXT"&&VSa(b)?b:void 0,e=c==="DATE"&&b&&GSa(b)?b:void 0,f=c==="ENUM"&&VSa(b)?b:void 0,g=c==="NUMERIC"&&USa(b)?b:void 0,k=c==="REPEATED_TEXT"&&Im(b)?{values:b}:void 0,m=c==="REPEATED_DATE"&&Array.isArray(b)&&b.every(GSa)?{values:b}:void 0,r=c==="REPEATED_ENUM"&&Im(b)?{values:b}:void 0;b=c==="REPEATED_NUMERIC"&&WSa(b)?{values:b}:void 0;a.editableField.typedDefaultValue={customFieldId:a.editableField.customFieldId,textValue:d,dateValue:e,enumValue:f,
numericValue:g,repeatedTextValue:k,repeatedDateValue:m,repeatedEnumValue:r,repeatedNumericValue:b}};b6.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 W4b=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}}):[]};b6.prototype.hasUnsavedChanges=function(){return this.editableField&&!Gm(this.editableField,this.originalEditableFieldValue)?!0:!1};
b6.prototype.loadCustomFields=function(){var a=this;var b=b===void 0?!1:b;b||(this.isLoading=!0);return this.componentActions.get(this.componentId).then(function(c){var d=lR(a.customFieldHelper,c),e=[];a.componentIdsToNames={};var f,g=((f=c.componentPathInfo)==null?void 0:f.componentPathId)||[];for(f=0;f<g.length;f++)e.push(c.componentPathInfo.componentPathName[f]),a.componentIdsToNames[c.componentPathInfo.componentPathId[f]]=e.join(" > ");a.editableField=null;a.originalEditableFieldValue=null;b||
(a.isLoading=!1);c=function(m,r){return wa(m.name,r.name)};a.customFields=d.filter(function(m){return a.componentId===m.componentId}).sort(c);a.inheritedCustomFields=d.filter(function(m){return a.componentId!==m.componentId&&!m.shared}).sort(c);var k=new Map(d.filter(function(m){return a.componentId!==m.componentId&&m.shared}).map(function(m){return[m.customFieldId,m]}));a.sharedFields=a.sharedFieldCandidates.map(function(m){return k.get(m.customFieldId)}).filter(ln);a.appEvents.customFieldsModified.next(d)})};
b6.prototype.trackClick=function(a){this.analytics.trackEvent("editComponent","click",a)};var $4b=function(a){var b;return(a=(b=a.editableField)==null?void 0:b.typedDefaultValue)?Lm(a):null};b6.prototype.getListFieldValues=function(){var a,b=(a=this.editableField)==null?void 0:a.typedDefaultValue,c,d;return(d=(c=b?Lm(b):null)==null?void 0:c.values)!=null?d:null};b6.prototype.setFieldSignificance=function(a){this.editableField.fieldSignificance=a};
var v5b=function(a){var b={sharedFields:w5b(a)};eB(a.dialog.open(i2d,{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()})})},q5b=function(a,b){a.confirmationDialog.open({title:"Deactivate shared field",content:Dh("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()})}})},w5b=function(a){var b=a.sharedFields.map(function(c){return c.customFieldId});return a.sharedFieldCandidates.filter(function(c){return!b.includes(c.customFieldId)})};b6.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(b6)))(b||b6)}}();
b6.\u0275cmp=C({type:b6,selectors:[["b-component-custom-fields"]],viewQuery:function(a,b){a&1&&kg(t2d,5);if(a&2){var c;og(c=pg())&&(b.fieldStateMenus=c)}},inputs:{editMode:"editMode",isSaving:"isSaving",component:"component",parentComponent:"parentComponent"},features:[Ff,Gx],decls:4,vars:2,consts:[["typeHelp",""],["enumMenu","matMenu"],["secondaryMenu","matMenu"],["significanceHelp",""],["significanceMenu","matMenu"],["card","onedevHovercard"],["cardBody",""],[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"],[1,"enabled-field"],[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"],[3,"class"],[1,"ancestor-component-note"],[1,"header-label"],[3,"click","onedevHovercardTrigger","href"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"],["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&&(K(0,"div",7),F(1,e5b,70,29,"div",8),F(2,f5b,2,1,"div",9)(3,y5b,29,8,"div"),L());a&2&&(B(),G(b.editableField&&!b.isLoading?1:-1),B(),G(b.isLoading?2:3))},dependencies:[GV,E2,zU,kW,mC,XB,xi,PB,QB,hC,WB,UB,ZA,XA,TA,OJ,NJ,LF,JF,KF,OF,hK,AK,uK,vK,zK,wK,hS,YU,MA,EF,VS,Yyd,nU,pU],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 c6=function(){};c6.\u0275fac=function(a){return new (a||c6)};c6.\u0275mod=$e({type:c6});c6.\u0275inj=Dc({imports:[FN,mC,ZU,BU,xT,S4,AK,T_,iK,OJ,ZA,qT,lW,F2,sU,XS,pB,b6,i2d]});var d6=function(){this.options=[];this.disabled=!1;this.removeAtIndex=new KO;this.addRow=new KO;this.optionsChange=new KO};d6.prototype.valueChange=function(a,b){this.options[b].value=Number(a.target.value);this.optionsChange.emit(this.options)};d6.prototype.drop=function(a){ts(this.options,a.previousIndex,a.currentIndex);this.optionsChange.emit(this.options)};d6.\u0275fac=function(a){return new (a||d6)};
d6.\u0275cmp=C({type:d6,selectors:[["b-config-grid"]],inputs:{options:"options",disabled:"disabled"},outputs:{removeAtIndex:"removeAtIndex",addRow:"addRow",optionsChange:"optionsChange"},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&&(K(0,"div",2)(1,"div",
3)(2,"span",4),S(3," Dropdown value "),L()(),K(4,"div",5)(5,"span",6),S(6," Average days "),L(),M(7,"mat-icon",7),L()(),K(8,"div",8),N("cdkDropListDropped",function(c){return b.drop(c)}),Pf(9,A5b,12,13,"div",9,Of),L(),F(11,B5b,2,0,"button",10));a&2&&(B(2),yg("muted",b.disabled),B(3),yg("muted",b.disabled),B(2),I("matTooltip","All estimated effort types map to an average number of days."),B(2),Qf(b.options),B(2),G(b.disabled?-1:11))},dependencies:[VU,TU,WU,ZA,XA,TA,VA,DB,qB,BB,qC,EB,oC,hK,iz,MA],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 e6=function(){this.disabled=!1;this.valueChange=new KO};e6.prototype.onValueChange=function(a){this.valueChange.emit(Number(a.target.value))};e6.\u0275fac=function(a){return new (a||e6)};
e6.\u0275cmp=C({type:e6,selectors:[["b-numeric-config"]],inputs:{disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},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=t();K(0,"div",1)(1,"div",2)(2,"span",3);S(3," Time ");L();K(4,"span",4);S(5,"1");L()();K(6,"div",2)(7,"div",5)(8,"span",6);S(9," Average days ");L();M(10,"mat-icon",7);L();
K(11,"mat-form-field",8)(12,"input",9,0);N("change",function(d){u(c);return v(b.onValueChange(d))});L()()()()}a&2&&(B(2),yg("muted",b.disabled),B(6),yg("muted",b.disabled),B(2),I("matTooltip","All estimated effort types map to an average number of days."),B(),I("appearance","outline"),B(),I("disabled",b.disabled)("value",b.value))},dependencies:[DB,qB,BB,qC,EB,oC,hK,iz,MA],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 f6=function(){this.disabled=!1;this.updateEffortSpec=new KO;this.configurationOptions=[v2d,w2d,x2d];this.estimatedEffortFieldEnabled=this.inherit=!1;this.name="Estimated effort";this.numericSpecMultiplier=1;this.enumSpecOptions=[];this.aggregationRules=Whd;this.selectedAggregationRule=this.aggregationRules.SUM};f6.prototype.ngOnInit=function(){(this.originalEffortSpec=this.effortSpec)&&this.effortSpec.numericSpec&&(this.originalSelectedEffortConfig=x2d)};
f6.prototype.ngOnChanges=function(a){a.effortSpec&&this.effortSpec&&(this.originalEffortSpec=Hm(this.effortSpec),this.setValues(this.effortSpec))};
f6.prototype.setValues=function(a){if(a.numericSpec){this.selectedEffortConfig=x2d;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 g;this.inherit=(g=a.inherit)!=null?g:!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 y2d=function(a){var b,c,d;if(((b=a.effortSpec)==null?0:b.enumSpec)&&!a.selectedEffortConfig||((c=a.selectedEffortConfig)==null?void 0:c.displayText)===v2d.displayText||((d=a.selectedEffortConfig)==null?void 0:d.displayText)===w2d.displayText)return"enum";var e;return((e=a.selectedEffortConfig)==null?void 0:e.displayText)===x2d.displayText?"numeric":"empty"};f6.prototype.addRow=function(){this.enumSpecOptions.push({label:null,value:null})};
f6.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 z2d=function(a){a.selectedEffortConfig=void 0;a.enumSpecOptions=[];a.effortSpec=void 0;a.name="Estimated effort"};f6.\u0275fac=function(a){return new (a||f6)};
f6.\u0275cmp=C({type:f6,selectors:[["b-estimated-effort-config"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec",disabled:"disabled"},outputs:{updateEffortSpec:"updateEffortSpec"},features:[Gx],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=t();K(0,"b-collapsible-card",1);Eg("cardTitleChange",function(e){u(c);Dg(b.name,e)||(b.name=e);return v(e)});N("dropdownSelectionChanged",
function(e){u(c);b.selectedEffortConfig=e;e.displayText===v2d.displayText?(b.enumSpecOptions=[].concat(n(A2d)),b.name="Story points"):e.displayText===w2d.displayText?(b.enumSpecOptions=[].concat(n(B2d)),b.name="T-shirt sizes"):e.displayText===x2d.displayText&&(b.numericSpecMultiplier=1,b.name="Days");b.estimatedEffortFieldEnabled=!0;return v()})("onSaveButtonClicked",function(){u(c);if(b.estimatedEffortFieldEnabled){var e={name:b.name,inherit:b.inherit};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)===x2d.displayText)e.numericSpec={multiplier:b.numericSpecMultiplier};else if(b.enumSpecOptions.length>0){f=[];for(var g=l(b.enumSpecOptions),k=g.next();!k.done;k=g.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){u(c);b.estimatedEffortFieldEnabled=e;b.estimatedEffortFieldEnabled||z2d(b);return v()})("onCancelButtonClicked",function(){u(c);b.effortSpec=b.originalEffortSpec;b.selectedEffortConfig=b.originalSelectedEffortConfig;b.effortSpec?b.setValues(b.effortSpec):(b.estimatedEffortFieldEnabled=!1,z2d(b));return v()})("isInheritedChange",function(e){u(c);(e=e.checked)?(b.setValues(b.parentEffortSpec?b.parentEffortSpec:{name:"Estimated effort"}),b.effortSpec=
b.parentEffortSpec,b.effortSpec||z2d(b)):b.effortSpec&&(b.setValues({}),z2d(b));b.inherit=e;return v()});K(1,"div",2);F(2,D5b,1,1,"ng-container")(3,E5b,1,2,"b-numeric-config",3)(4,F5b,0,0);L();F(5,G5b,23,13,"div",4);L();E(6,H5b,1,2,"ng-template",null,0,Og)}if(a&2){var d;Cg("cardTitle",b.name);I("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);B(2);G((d=y2d(b))==="enum"?2:d==="numeric"?3:d==="empty"?4:-1);B(3);G(b.estimatedEffortFieldEnabled?5:-1)}},dependencies:function(){return[X5,d6,ZA,XA,VA,DB,qB,BB,qT,pT,hI,iI,GA,hK,iz,MA,oy,e6,C2d]},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 A2d=[{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}],B2d=[{label:"XS",value:1},{label:"S",value:3},{label:"M",value:5},{label:"L",value:10},{label:"XL",value:20}],v2d={displayText:"Story points",icon:"story-point-24px"},w2d={displayText:"T-shirt sizes",icon:"t-shirt-24px"},x2d={displayText:"Time",icon:"time-24px"},C2d=function(){};
C2d.prototype.transform=function(a){switch(a){case "MAX":return"Max Point";default:return"Simple Sum"}};C2d.\u0275fac=function(a){return new (a||C2d)};C2d.\u0275pipe=cf({name:"aggregationRuleText",type:C2d,pure:!0});var D2d=function(){this.disabled=!1;this.updateComponent=new KO};D2d.\u0275fac=function(a){return new (a||D2d)};
D2d.\u0275cmp=C({type:D2d,selectors:[["b-component-standard-fields"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec",disabled:"disabled"},outputs:{updateComponent:"updateComponent"},decls:4,vars:3,consts:[[1,"padded","field-container"],[1,"margin-bottom"],[3,"updateEffortSpec","effortSpec","parentEffortSpec","disabled"]],template:function(a,b){a&1&&(K(0,"div",0)(1,"div",1),S(2,"Once activated, standard fields appear in the right panel of all issues."),L(),K(3,"b-estimated-effort-config",
2),N("updateEffortSpec",function(c){b.updateComponent.emit(c)}),L()());a&2&&(B(3),I("effortSpec",b.effortSpec)("parentEffortSpec",b.parentEffortSpec)("disabled",b.disabled))},dependencies:[f6],styles:[".field-container[_ngcontent-%COMP%]{max-width:1100px}"]});var g6=function(){};g6.\u0275fac=function(a){return new (a||g6)};g6.\u0275mod=$e({type:g6});g6.\u0275inj=Dc({imports:[FN,qC,ZA,PK,Y5,iK,qT,XU,f6,d6,e6]});var h6=function(){};h6.\u0275fac=function(a){return new (a||h6)};h6.\u0275mod=$e({type:h6});h6.\u0275inj=Dc({imports:[FN,Y5,g6,D2d]});var i6=function(){var a=this;this.teamsService=q(BP);this.anchorTarget="_blank";this.useInternalLink=this.isTopLevel=this.isAdmin=!1;this.modelChange=new KO;this.inherit=!1;this.selectedTeam$=new rf;this.teamIdChanged$=new vf(1);this.placeholder$=this.teamIdChanged$.pipe(A(function(b){return b==="0"?!a.isAdmin||!a.isTopLevel&&a.inherit?"No team selected":"Type to search for a team (leave blank to disable)":""}),yf(""));this.teamFromId$=this.teamIdChanged$.pipe(zf(function(b){return b==="0"?be(new iLb([b],
[""],"")):CP(a.teamsService,b).pipe(A(function(c){return new iLb([],c.collapsedPathNames,c.description)}))}));this.displayedTeam$=se(this.teamFromId$,this.selectedTeam$);this.warningType$=this.teamIdChanged$.pipe(zf(function(b){return b==="0"?be("MISSING"):a.teamsService.getTeam(b).pipe(A(function(c){return!c||c.deleted?"DELETED":"VALID"}))}))};
i6.prototype.updateSelectionOnChange=function(a){ur("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);E2d(this)};var E2d=function(a){a.inherit=a.model.inherit;a.teamIdChanged$.next(a.model.id)};i6.prototype.ngOnInit=function(){Object.assign({},this.model);E2d(this)};var L5b=function(a){return a.model.id&&a.model.id!=="0"};
i6.prototype.getMomaTeamLink=function(){return L5b(this)?"https://moma.corp.google.com/team/"+this.model.id:null};i6.\u0275fac=function(a){return new (a||i6)};
i6.\u0275cmp=C({type:i6,selectors:[["b-component-team-picker"]],inputs:{parentModel:"parentModel",model:"model",anchorTarget:"anchorTarget",isAdmin:"isAdmin",isTopLevel:"isTopLevel",useInternalLink:"useInternalLink"},outputs:{modelChange:"modelChange"},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&&(K(0,"div"),F(1,J5b,1,1),U(2,"async"),F(3,K5b,3,2,"div",0),K(4,"div",1)(5,"label",2),S(6,"Team selection"),L(),K(7,"b-team-picker",3),U(8,"async"),U(9,"async"),N("onTeamSelect",function(d){return b.updateSelectionOnChange(d)})("onEmptyQuery",function(){b.model.id="0";b.modelChange.emit(b.model);E2d(b)}),L(),F(10,N5b,1,1)(11,P5b,1,1),L()());if(a&2){var c;B();G((c=W(2,
6,b.warningType$))?1:-1,c);B(2);G(b.isTopLevel?-1:3);B(4);I("placeholder",W(8,8,b.placeholder$))("disabled",!b.isAdmin||!b.isTopLevel&&b.inherit)("teamSelected",W(9,10,b.displayedTeam$));B(3);G(b.useInternalLink?10:11)}},dependencies:[ZA,XA,VA,PK,OK,wI,hK,iz,MA,EF,h1,M3,py],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 j6=function(){};j6.\u0275fac=function(a){return new (a||j6)};j6.\u0275mod=$e({type:j6});j6.\u0275inj=Dc({imports:[FN,lX,PK,iK,j1,A4,mC,ZA,i6]});var F2d=[$Z],k6=function(){};k6.\u0275fac=function(a){return new (a||k6)};k6.\u0275mod=$e({type:k6});k6.\u0275inj=Dc({imports:[FN,XU,ZA,xI,kz,F2d]});var G2d=function(){};G2d.\u0275fac=function(a){return new (a||G2d)};G2d.\u0275mod=$e({type:G2d});G2d.\u0275inj=Dc({imports:[k6,ZA,pB,a_]});var H2d=function(){};H2d.\u0275fac=function(a){return new (a||H2d)};H2d.\u0275mod=$e({type:H2d});H2d.\u0275inj=Dc({imports:[FN,yU,pB,y4,J2]});var I2d=function(){};I2d.\u0275fac=function(a){return new (a||I2d)};I2d.\u0275mod=$e({type:I2d});I2d.\u0275inj=Dc({imports:[FN,mC,ZA,pB,qC,DB,WT,K2]});var J2d=function(){};J2d.\u0275fac=function(a){return new (a||J2d)};J2d.\u0275mod=$e({type:J2d});J2d.\u0275inj=Dc({imports:[FN,mC,ZA,qC,DB,pB,L2]});var l6=function(){this.dialogData=q(fB);this.dialogRef=q(dB);this.originalItems=this.dialogData.fields.map(function(a){return{name:a.name,data:a}});this.items=[].concat(n(this.originalItems));this.fieldOrdering=this.dialogData.orderingCustomized;this.hasChanges=!1};l6.prototype.onClose=function(){var a=this.items.map(function(b){return b.data});this.dialogRef.close(a)};l6.\u0275fac=function(a){return new (a||l6)};
l6.\u0275cmp=C({type:l6,selectors:[["b-field-reorder-dialog"]],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=t();K(0,"div",1)(1,"div",2)(2,"h1",3);S(3," Reorder custom fields ");L();K(4,"button",4);N("click",function(){u(c);var d=Q(8);return v(sPd(d))});M(5,"mat-icon",5);L()()();K(6,"div",6)(7,"b-reorder-items",7,0);N("items",function(d){u(c);return v(b.items=d)})("hasChanges",function(d){u(c);return v(b.hasChanges=
d)});L()();K(9,"div",8)(10,"button",9);N("click",function(){u(c);return v(b.dialogRef.close())});S(11," Cancel ");L();K(12,"button",10);N("click",function(){u(c);return v(b.onClose())});S(13," Save ");L()()}a&2&&(B(7),I("originalItems",b.originalItems),B(5),I("disabled",b.fieldOrdering==="CUSTOMIZED"&&!b.hasChanges))},dependencies:[ZA,XA,TA,VA,hK,mB,lB,kB,iz,MA,$Z],encapsulation:2});var m6=function(){this.matDialog=q(gB);this.confirmationDialog=q(PQ);this.fieldConfigService=q($5);this.analytics=q(PO);this.butterBar=q(JM);this.fields=[];this.isAdmin=!1;this.onReload=new KO;this.displayedColumn=["index","name","type","required","customFieldId"]},c6b=function(a){return eB(a.matDialog.open(l6,{width:"500PX",autoFocus:!1,data:{fields:a.fields,orderingCustomized:a.fieldOrdering}})).subscribe(function(b){b&&K2d(a,b)})},d6b=function(a){a.confirmationDialog.open({title:"Reset ordering?",
content:Dh("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()}})},K2d=function(a,b){a.analytics.trackEvent("fieldOrdering","reorderFields");var c=b.map(function(d){return{customFieldId:d.customFieldId}});a.componentId?(fs(a.butterBar,"Saving...",0),a.fieldConfigService.reorder(a.componentId,c).subscribe(function(){fs(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.")};
m6.prototype.reset=function(){var a=this;this.analytics.trackEvent("fieldOrdering","resetFields");this.componentId?(fs(this.butterBar,"Resetting orderings..."),this.fieldConfigService.executor.post({url:"action/components/"+this.componentId+"/unorder",body:null,responseConstructor:null}).subscribe(function(){fs(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.")};
m6.\u0275fac=function(a){return new (a||m6)};
m6.\u0275cmp=C({type:m6,selectors:[["b-field-reorder"]],inputs:{fields:"fields",componentId:"componentId",fieldOrdering:"fieldOrdering",isAdmin:"isAdmin"},outputs:{onReload:"onReload"},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&&(K(0,"div",0)(1,"div",1)(2,"table",2),Vf(3,3),E(4,Q5b,2,0,"th",4)(5,R5b,2,1,"td",5),Wf(),Vf(6,6),E(7,S5b,2,0,"th",4)(8,T5b,2,1,"td",5),Wf(),Vf(9,7),E(10,U5b,2,0,"th",4)(11,V5b,3,3,"td",5),Wf(),Vf(12,
8),E(13,W5b,2,0,"th",4)(14,X5b,2,1,"td",5),Wf(),Vf(15,9),E(16,Y5b,2,0,"th",4)(17,Z5b,2,1,"td",5),Wf(),E(18,$5b,1,0,"tr",10)(19,a6b,1,0,"tr",11),L(),F(20,b6b,2,0,"div",12),L(),F(21,e6b,6,2,"div",13),L());a&2&&(B(2),I("dataSource",b.fields),B(16),I("matHeaderRowDef",b.displayedColumn),B(),I("matRowDefColumns",b.displayedColumn),B(),G(b.fields.length===0?20:-1),B(),G(b.isAdmin?21:-1))},dependencies:[ZA,XA,TA,GW,FW,QS,DS,JS,FS,CS,LS,GS,IS,MS,OS,JEd],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 n6=function(){};n6.\u0275fac=function(a){return new (a||n6)};n6.\u0275mod=$e({type:n6});n6.\u0275inj=Dc({imports:[FN,ZA,pB,zsd]});var o6=function(){};o6.\u0275fac=function(a){return new (a||o6)};o6.\u0275mod=$e({type:o6});o6.\u0275inj=Dc({imports:[FN,ZA,pB,GW,iK,n6,RW,k6,m6,l6]});var L2d=function(){this.analytics=q(PO);this.filename=this.packageName=this.issueId="";this.lineNumbers=[];this.changeNumber=0},g6b=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="+M2d+a.issueId+N2d;a.changeNumber&&(c+="&rcl="+a.changeNumber);Array.isArray(b)?c+="&l="+b.join(","):b&&(c+="&l="+b);return c}};
L2d.prototype.trackClick=function(a){this.analytics.trackEvent("codeMentions","clickCodeSearchLink",a)};L2d.\u0275fac=function(a){return new (a||L2d)};
L2d.\u0275cmp=C({type:L2d,selectors:[["b-file-mention"]],inputs:{issueId:"issueId",packageName:"packageName",filename:"filename",lineNumbers:"lineNumbers",changeNumber:"changeNumber"},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&&(Sf(0,"div",0)(1,"a",1),eg("click",function(){return b.trackClick("fileName")}),
S(2),Tf(),F(3,f6b,2,1,"span")(4,i6b,6,0,"span"),Tf());a&2&&(B(),Rf("href",g6b(b,b.lineNumbers),Me),B(),T(" ",b.filename," "),B(),G(b.lineNumbers.length<=10&&b.packageName!="wiki"?4:3))},encapsulation:2});var M2d=encodeURIComponent("content:(https?://)?b(uganizer)?(\\.corp(\\.google\\.com)?)?/(issues/|issue\\?id=)?"),N2d=encodeURIComponent("(\\b|$)");var p6=function(){};p6.\u0275fac=function(a){return new (a||p6)};p6.\u0275mod=$e({type:p6});p6.\u0275inj=Dc({imports:[FN]});var r6b=function(a,b){return b.category},q6=function(){var a=this;this.bLocation=q(US);this.destroyRef=q(Be);this.dynamicScrollIntoView=q(VZ);this.elementRef=q(Gd);this.contextSensitiveRegistry=q(KP);this.imageUrls=q(LV);this.scrolledOnScreenService=q(mT);this.issueEnrichmentService=q(J0);this.loggedViewEnrichments=new Set;this.loggedImpressionEnrichments=new Set;this.onScreenSubscriptions=new Map;this.ROBOT_SLEEPING=this.imageUrls.ROBOT_SLEEPING;this.FIRST_PARTY_ENRICHMENTS=QRd;this.LOGO_PURPLE=
this.imageUrls.LOGO_PURPLE;this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(te(ln),of());this.enrichments$=this.issueEnrichmentService.issueEnrichments$.pipe(Bf(function(b){a.logImpressions(b)}));this.scrollToInsight=hD(function(){var b=a.bLocation.hash();b&&POd(a.dynamicScrollIntoView,{elementId:b,parentElement:a.elementRef.nativeElement,scrollableContainerId:"insights-accordion",scrollPadding:60}).pipe(oj(a.destroyRef)).subscribe()},200)};h=q6.prototype;
h.ngOnInit=function(){var a=this;this.scrollToInsight();this.destroyRef.onDestroy(function(){for(var b=l(a.onScreenSubscriptions.values()),c=b.next();!c.done;c=b.next())c.value.unsubscribe();a.onScreenSubscriptions.clear()})};h.onExpand=function(a,b){var c=this;this.logIssueUserEventForIssueEnrichment("EVENT_TYPE_OPEN",a.category);setTimeout(function(){c.maybeSetupOnScreenDetection(a.category,b._body.nativeElement)},0)};
h.logImpressions=function(a){var b=this,c,d,e,f,g;return y(function(k){if(k.nextAddress==1)return z(k,ee(b.issueId$),2);c=k.yieldResult;d=l(a);for(e=d.next();!e.done;e=d.next())f=e.value,g=f.category,b.loggedImpressionEnrichments.has(g)||(b.loggedImpressionEnrichments.add(g),b.issueEnrichmentService.logIssueUserEventForIssueEnrichment(c,"EVENT_TYPE_IMPRESSION",g));$d(k)})};
h.logIssueUserEventForIssueEnrichment=function(a,b){var c=this,d;return y(function(e){if(e.nextAddress==1)return z(e,ee(c.issueId$),2);d=e.yieldResult;c.issueEnrichmentService.logIssueUserEventForIssueEnrichment(d,a,b);$d(e)})};
h.maybeSetupOnScreenDetection=function(a,b){var c=this,d,e,f;y(function(g){if(g.nextAddress==1){if(c.loggedViewEnrichments.has(a))return g.return();(d=c.onScreenSubscriptions.get(a))&&d.unsubscribe();return z(g,ee(c.issueId$),2)}e=g.yieldResult;f=ayd(c.scrolledOnScreenService,b,{emitOnPartial:!0,durationOnScreenMs:3E3}).pipe(oj(c.destroyRef)).subscribe(function(){if(!c.loggedViewEnrichments.has(a)){c.issueEnrichmentService.logIssueUserEventForIssueEnrichment(e,"EVENT_TYPE_VIEW",a);c.loggedViewEnrichments.add(a);
var k;(k=c.onScreenSubscriptions.get(a))==null||k.unsubscribe();c.onScreenSubscriptions.delete(a)}});c.onScreenSubscriptions.set(a,f);$d(g)})};q6.\u0275fac=function(a){return new (a||q6)};
q6.\u0275cmp=C({type:q6,selectors:[["b-insights"]],viewQuery:function(a,b){a&1&&kg(iL,5);if(a&2){var c;og(c=pg())&&(b.accordion=c.first)}},decls:5,vars:4,consts:[["expansionPanel",""],["commentPresenter",""],[1,"carded","bg-main"],[1,"padded-top","centered-inside"],[1,"empty-state","layout-centered-column","gap"],["aria-hidden","true","alt","",3,"src"],[1,"type-l"],[1,"muted"],["type","button","mat-stroked-button","","color","primary",1,"small","gmat-button","expand-all",3,"click"],["type","button",
"mat-stroked-button","","color","primary",1,"small","gmat-button","collapse-all",3,"click"],["multi","","id","insights-accordion"],[3,"expanded","id"],[3,"opened","closed","expanded","id"],["aria-hidden","true","alt","",1,"first-party-logo","margin-s-right",3,"src"],[3,"formattedComment"],[1,"insights-date"],["mode","datetime",3,"timestamp"],[3,"enrichment"]],template:function(a,b){a&1&&(bg(0),U(1,"async"),F(2,j6b,7,1,"section",2)(3,s6b,7,0)(4,t6b,2,0,"div",3));a&2&&(a=cg(W(1,1,b.enrichments$)),B(2),
G(a&&a.length===0?2:a&&a.length>0?3:4))},dependencies:[eS,DT,ZA,XA,TA,B3,iL,fL,eed,gL,hL,VS,py],styles:["[_nghost-%COMP%]{display:block;padding:8px}button.gmat-button[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--surface-default);margin:0 8px 8px 0}.empty-state[_ngcontent-%COMP%]{padding:32px 0;max-width:30rem}.empty-state[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:150px;min-height:163px}.insights-date[_ngcontent-%COMP%]{margin-top:4px}.first-party-logo[_ngcontent-%COMP%]{width:24px;height:24px}"],
changeDetection:0});var O2d=[q6],P2d=function(){};P2d.\u0275fac=function(a){return new (a||P2d)};P2d.\u0275mod=$e({type:P2d});P2d.\u0275inj=Dc({imports:[FN,tT,GU,ZA,u4,WA,jL,kz,XS,c0,O2d]});var Q2d=function(){return{width:400}},R2d=function(){return[]},r6=function(){var a=this;this.bLocation=q(US);this.analytics=q(PO);this.activeSession=q(Zu);this.componentActions=q(JV);this.cdr=q(MO,{self:!0});this.routeParams=q(hR);this.includeArchived$=new Xj(!1);this.createComponentPath=zs.createComponent.makeHref();this.isInternalSession=this.activeSession.isInternalSession();this.trackerRootComponent$=le(function(){return be(a.activeSession.getTracker())}).pipe(zf(function(b){return b?a.componentActions.get(b.componentId):
be(void 0)}));this.topLevelComponents$=he([this.trackerRootComponent$,this.includeArchived$]).pipe(zf(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&&w6b(this,String(this.routeParams.componentId),ee(this.topLevelComponents$))},w6b=function(a,b,c){a.componentActions.get(b).then(function(d){for(var e=Fba(d.componentPathInfo.componentPathId,0,d.componentPathInfo.componentPathId.length-
1),f={0:c},g=l(e),k=g.next();!k.done;k=g.next())k=k.value,f[k]=a.componentActions.getChildren(k,a.includeArchived);return Fs(f).then(function(m){for(var r=m[0],w=null,x=l(e),D=x.next(),H={};!D.done;H={parentId$jscomp$28:void 0},D=x.next()){H.parentId$jscomp$28=D.value;D=void 0;var J=(D=r.find(function(O){return function(R){return R.componentId===O.parentId$jscomp$28}}(H)))!=null?D:null;J&&(J.children=m[H.parentId$jscomp$28],J.showChildren=!0,r=J.children,w=J.componentId)}w&&d.archived&&!a.includeArchived&&
(b=w);a.cdr.detectChanges();setTimeout(function(){var O=a.componentTree,R=b,V=IVd(R);V&&V.click();A2(O,R)})})})};da.Object.defineProperties(r6.prototype,{includeArchived:{configurable:!0,enumerable:!0,get:function(){return this.includeArchived$.value}}});r6.\u0275fac=function(a){return new (a||r6)};
r6.\u0275cmp=C({type:r6,selectors:[["b-list-components-page"]],features:[Ig([MO])],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=t();K(0,"h2",1);S(1,"Browse Components");L();K(2,"div",2)(3,"div",3);F(4,u6b,2,1,"a",4);K(5,"button",5);S(6," Search Components ");L();E(7,v6b,4,6,"ng-template",null,0,Og);F(9,x6b,3,4,"div",6);L()();K(10,
"div",7);F(11,y6b,2,0,"div",8);U(12,"async");K(13,"component-tree-list",9);U(14,"async");U(15,"async");N("init",function(g){u(c);return v(b.componentTree=g)});L()()}if(a&2){a=Q(8);B(4);G(b.isInternalSession?4:-1);B();I("xapInlineDialogClick",a)("overlaySize",Jg(13,Q2d));B(4);G(b.isInternalSession?9:-1);B(2);var d;G((d=W(12,7,b.topLevelComponents$))!=null&&d?-1:11);B(2);var e,f;I("components",(e=W(14,9,b.topLevelComponents$))!=null?e:Jg(14,R2d))("includeArchived",(f=W(15,11,b.includeArchived$))!=null?
f:!1)}},dependencies:[z2,ZA,XA,TA,bU,VS,VV,DD,CD,GD,py],styles:[".component-picker-dialog[_ngcontent-%COMP%]{width:400px}.component-picker-dialog[_ngcontent-%COMP%]     input{box-sizing:border-box}"]});var S2d=function(){};S2d.\u0275fac=function(a){return new (a||S2d)};S2d.\u0275mod=$e({type:S2d});S2d.\u0275inj=Dc({imports:[FN,XS,g1,QU,RU,lX,cU,ZA,B2,fX,r6]});var T2d=function(){this.issueId="";this.packageMentionSet={packageName:"",fileMentionSet:[]};this.displayPackageName=!1};T2d.\u0275fac=function(a){return new (a||T2d)};
T2d.\u0275cmp=C({type:T2d,selectors:[["b-package-mentions-listing"]],inputs:{issueId:"issueId",packageMentionSet:"packageMentionSet",displayPackageName:"displayPackageName"},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&&(K(0,"div",0),F(1,z6b,2,1,"p",1),K(2,"ul"),Pf(3,A6b,2,5,"li",null,Of),L()());a&2&&(B(),G(b.displayPackageName?1:-1),B(2),Qf(b.packageMentionSet.fileMentionSet))},
dependencies:[L2d],encapsulation:2});var s6=function(){};s6.\u0275fac=function(a){return new (a||s6)};s6.\u0275mod=$e({type:s6});s6.\u0275inj=Dc({imports:[FN,p6,T2d]});var U2d=function(){};U2d.\u0275fac=function(a){return new (a||U2d)};U2d.\u0275mod=$e({type:U2d});U2d.\u0275inj=Dc({imports:[FN,mC,ZA,pB,qC,DB,u_,Q2]});var t6=function(){this.activeSession=q(Zu)};t6.prototype.ngOnInit=function(){};var V2d=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};t6.\u0275fac=function(a){return new (a||t6)};
t6.\u0275cmp=C({type:t6,selectors:[["b-tracker-account-menu-hack"]],inputs:{trackerInternalBaseUrl:"trackerInternalBaseUrl",trackerExternalBaseUrl:"trackerExternalBaseUrl"},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&&(M(0,"button",1),K(1,"mat-menu",2,0)(3,
"div",3),F(4,B6b,2,1,"div",4),M(5,"hr"),K(6,"a",5),S(7,"Switch accounts"),L(),M(8,"hr"),K(9,"a",5),S(10,"Sign out of all accounts"),L()()());a&2&&(a=Q(2),I("matMenuTriggerFor",a),B(4),G(b.activeSession.getUserEmail()?4:-1),B(2),I("href","https://accounts.google.com/AccountChooser?hl=en&osid=1&continue="+encodeURIComponent(V2d(b)),Me),B(3),I("href","https://accounts.google.com/Logout?hl=en&continue="+encodeURIComponent(V2d(b)),Me))},dependencies:[OJ,NJ,LF,JF,OF],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 u6=function(){LO.apply(this,arguments);this.trackerCheckboxValues={}};Z(u6,LO);u6.\u0275dir=LO.\u0275dir;u6.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 W2d=function(a){return Object.keys(Ki(a.trackerCheckboxValues,function(b){return b}))};
u6.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(u6)))(b||u6)}}();
u6.\u0275cmp=C({type:u6,selectors:[["b-tracker-search"]],inputs:{currentTrackerId:"currentTrackerId",availableTrackers:"availableTrackers"},features:[Ff,Gx],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&&(K(0,"div",0)(1,"div",1)(2,
"div",2)(3,"span"),S(4,"Select a tracker"),L(),F(5,C6b,2,0,"span",3),L(),K(6,"div",4),Pf(7,D6b,3,2,"div",5,Of),L()()());a&2&&(yg("hidden",!(b.availableTrackers&&b.availableTrackers.length>1)),B(5),G(W2d(b).length!==0?-1:5),B(2),Qf(b.availableTrackers))},dependencies:[PK,OK,wI],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 v6=function(){var a=q(DN),b=q(wV);LO.call(this);var c=this;this.analytics=q(PO);this.location=q(US);this.prefsManager=q(VP);this.domSafe=q($P);this.prefsManager.preferences$.pipe(Af(this.destroyed$)).subscribe(function(d){c.prefs=d});a.topBarEvents.browseComponents.pipe(Af(this.destroyed$)).subscribe(function(d){d=d.newTab;X2d(c,zs.listComponents.makeHref(),d)});a.topBarEvents.manageHotlists.pipe(Af(this.destroyed$)).subscribe(function(d){d=d.newTab;X2d(c,zs.listHotlists.makeHref(),d)});a.topBarEvents.manageSlos.pipe(Af(this.destroyed$)).subscribe(function(d){d=
d.newTab;X2d(c,zs.listSlos.makeHref(),d)});a.topBarEvents.setDensity.pipe(Af(this.destroyed$)).subscribe(function(d){c.setDensity(d)});a.topBarEvents.openSettings.pipe(Af(this.destroyed$)).subscribe(function(d){var e=d.newTab;X2d(c,b.settings(d.settingsTabName),e)})};Z(v6,LO);v6.\u0275dir=LO.\u0275dir;var X2d=function(a,b,c){c?a.domSafe.openInNewTab(b):a.location.setUrl(b)};
v6.prototype.setDensity=function(a){this.prefs.themePreferences&&(this.prefs.themePreferences.density=a,this.prefsManager.save(this.prefs).pipe(mf(1),Af(this.destroyed$)).subscribe(),this.analytics.trackEvent("preferences","setDisplayDensity",a))};v6.\u0275fac=function(a){return new (a||v6)};v6.\u0275prov=Cc({token:v6,factory:v6.\u0275fac,providedIn:"root"});var Y2d=function(){this.hideAppChromeHelper=q(a2);this.hideAppChrome=this.hideAppChromeHelper.hideAppChrome};Y2d.\u0275fac=function(a){return new (a||Y2d)};Y2d.\u0275cmp=C({type:Y2d,selectors:[["b-top-bar-outlet"]],decls:1,vars:1,template:function(a,b){a&1&&F(0,E6b,1,0,"b-top-bar-outlet-body");a&2&&G(b.hideAppChrome()===!1?0:-1)},dependencies:function(){return[w6]},encapsulation:2});
var w6=function(){LO.call(this);var a=this;this.activeSession=q(Zu);this.searchAcData=q(a5);this.savedSearchApi=q(XN);this.butterBar=q(JM);this.bLocation=q(US);this.paths=q(wV);this.analytics=q(PO);this.appEvents=q(DN);this.appSearchState=q(gS);this.trackerFridge=q(IP);this.errorHandler=q(ZM);q(v6);this.frontendAccessMode=this.activeSession.getFrontendAccessMode();this.environmentType=this.activeSession.getEnvironmentType();this.items=[];this.acHeader=null;this.currentQuery="";this.enableTrackersAccountHack=
this.activeSession.getFlag("enableTrackersAccountHack");this.currentTracker=this.activeSession.getTracker();this.associatedTrackers$=le(function(){var b,c;return be((c=(b=a.currentTracker)==null?void 0:b.associatedTrackerIds)!=null?c:[])}).pipe(zf(function(b){return a.trackerFridge.watchSet(b)}));this.availableTrackers$=this.associatedTrackers$.pipe(A(function(b){return a.currentTracker?[a.currentTracker].concat(n(b)):[]}));this.searchAcData.acRefreshed$.pipe(Af(this.destroyed$)).subscribe(function(){a.items=
a.searchAcData.items;a.acHeader=a.searchAcData.acHeader});this.trackerFridge.error$.pipe(Af(this.destroyed$)).subscribe(function(b){b.status!==403&&a.errorHandler.errorHandler(null,b)})};Z(w6,LO);w6.\u0275dir=LO.\u0275dir;var Z2d=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"}};
w6.prototype.ngOnInit=function(){var a=this;this.appSearchState.queryState$.pipe(Af(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,g=d.cursorIdx;if(g<0||g>f.length)throw Error("vg");e=new g_d(f,g);if(f){var k=f.slice(0,g);for(var m=!1,r=-1,w=-1;(r=k.indexOf('"',r+1))>-1;)m=!m,w=r;k=m?w:-1;if(k>-1)e.value={val:f.slice(k,g),idx:k};else if(k=f.slice(g),m=k.search("\\s"),
(k=c0b(f.slice(0,g)+(m>-1?k.slice(0,m):k),k_d))?(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){m=k.idx+(k.negated?1:0)+k.val.length+k.operator.length+(k.customFieldId?k.customFieldId.length:0);f=f.slice(m);r=Math.max(g-m,0);w=k;if(f.charAt(0)==="("){b:{w=[];for(var x=/[()]/g,D;(D=x.exec(f))!=null;){var H=w[w.length-1];if(H&&H!==D[0]){if(w.pop(),
!w.length){w=D.index>=r;break b}}else w.push(D[0])}w=!0}w=w?2:0}else w=h_d.includes(w.val)&&f.search("^\\d")===-1?1:0;switch(w){case 2:g=h_d.includes(k.val)?Bu(f,r,"([()|]\\s*|OR\\s+|AND\\s+|NOT\\s+|-|\\b\\d+\\s+)","[()|\\s-]"):Bu(f,r,"[()|\\s-]");/(OR|AND|NOT|-)$/.test(g.val)&&(g.val="",g.idx=r);e.value=g;break;case 1:e.value=Bu(f,r,"[()|]","[()|,\\s]");break;case 0:e.value=Bu(f,r,"[\\s()|]");f.slice(0,r).search("[\\s()|]")>-1&&(k=null,r=c0b(f,"(?:\\s|^)(?:-?)(customfield|cf)"))&&(e.value=b0b(f,
r.index-r[1].length,g));break;default:sb(w,"unknown ValueType.")}e.value.idx+=m;e.label=k}else k=c0b(f,"(?:\\s|^)(?:-?)(customfield|cf)"),e.value=k?b0b(f,k.index-k[1].length,g):Bu(f,g,"[\\s()]")}d.currentSearchContext=e}d.currentSearchContext&&(e=d.currentSearchContext,g=++d.requestIndex,d.refreshRequest$.next({currentRequestIndex:g,currentSearchContext:e}));a.currentQuery=c.query});var b=this.appSearchState.queryState$.pipe(A(function(c){return c.query}));this.appSearchState.searchTriggered$.pipe(Df(b),
Af(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=iab(c),g=f.filters,k=f.text,m=f.complexSyntax,r=f.resourceIds;f=[g,k,r].reduce(eWa);g=[g?"filters":void 0,k?"text":void 0,r?"ids":void 0].filter(Boolean).join("-");m?e.track(d,"complex"):g?e.track(d,g,f):e.track(d,"UNHANDLED");d=Ia(e.searchHandlerStack);d===void 0?e.$log.warn("No search function installed."):d(c)})};
w6.prototype.ngAfterViewInit=function(){z1d(this.advancedSearchCtrl,this.appSearchState.currentQuery)};var $2d=function(a){if(a.advancedSearchCtrl)return a.advancedSearchCtrl.getState()!=="SUCCESS"?a.currentQuery:G1d(a.advancedSearchCtrl).trim()};h=w6.prototype;h.onAdvancedSearchOpen=function(){this.advancedSearchCtrl&&($2d(this)!==this.currentQuery||this.advancedSearchCtrl.getState()!=="SUCCESS")&&z1d(this.advancedSearchCtrl,this.currentQuery)};
h.onAdvancedSearchClose=function(){var a,b;this.appSearchState.selectedTrackerIds$.next((b=(a=this.trackerSearchCtrl)==null?void 0:W2d(a))!=null?b:[]);this.advancedSearchCtrl&&(a=$2d(this),a!==void 0&&a!==this.currentQuery&&this.appSearchState.queryState$.next({query:a,cursorPosition:void 0,setViaInteraction:!1}))};
h.submitAdvancedSearch=function(){var a,b;this.appSearchState.selectedTrackerIds$.next((b=(a=this.trackerSearchCtrl)==null?void 0:W2d(a))!=null?b:[]);this.advancedSearchCtrl&&(a=$2d(this),a!==void 0&&(this.appSearchState.queryState$.next({query:a,cursorPosition:void 0,setViaInteraction:!1}),this.appSearchState.searchTriggered$.next("ui-builder")))};
h.saveSearch=function(a){var b=this;if(this.advancedSearchCtrl){var c=$2d(this);c!==void 0&&(fs(this.butterBar,"Saving saved search.",1E3),this.savedSearchApi.create(a,c).then(function(d){b.appEvents.savedSearchModified.next();d=d.searchId;fs(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(iq(d))}))}};
h.isSearchDisabled=function(){return!!this.trackerSearchCtrl&&W2d(this.trackerSearchCtrl).length===0};w6.\u0275fac=function(a){return new (a||w6)};
w6.\u0275cmp=C({type:w6,selectors:[["b-top-bar-outlet-body"]],viewQuery:function(a,b){a&1&&(kg(L5,5),kg(u6,5));if(a&2){var c;og(c=pg())&&(b.advancedSearchCtrl=c.first);og(c=pg())&&(b.trackerSearchCtrl=c.first)}},features:[Ff],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&&(K(0,"b-app-top-bar",0),N("searchBoxOnAdvancedSearchOpen",function(){return b.onAdvancedSearchOpen()})("searchBoxOnAdvancedSearchClose",function(){return b.onAdvancedSearchClose()})("searchBoxOnAdvancedSearchSubmit",function(){return b.submitAdvancedSearch()})("searchBoxOnSaveSearch",
function(c){return b.saveSearch(c)}),F(1,F6b,2,4,"b-tracker-search",1),M(2,"b-advanced-search",2),F(3,G6b,4,0,"div",3),F(4,J6b,3,2,"div",4),F(5,K6b,2,0,"div",4),L(),F(6,L6b,1,2,"b-tracker-account-menu-hack",5));a&2&&(I("logoFrontendAccessMode",b.frontendAccessMode)("logoEnvironmentType",b.environmentType)("searchBoxPlaceholder",Z2d(b,b.currentTracker))("searchBoxAutoCompleteItems",b.items)("searchBoxAutoCompleteHeader",b.acHeader)("isSearchDisabled",b.isSearchDisabled()),B(),G(b.currentTracker?1:
-1),B(),I("isTrackerSearchEnabled",!b.currentTracker),B(),G((b.advancedSearchCtrl==null?null:b.advancedSearchCtrl.getState())==="INIT"?3:-1),B(),G((b.advancedSearchCtrl==null?null:b.advancedSearchCtrl.getState())==="NOT_REPRESENTABLE"||(b.advancedSearchCtrl==null?null:b.advancedSearchCtrl.getState())==="SYNTAX_ERROR"?4:-1),B(),G((b.advancedSearchCtrl==null?null:b.advancedSearchCtrl.getState())==="SERVER_ERROR"?5:-1),B(),G(b.enableTrackersAccountHack&&!b.activeSession.isAnonymous()&&b.currentTracker?
6:-1))},dependencies:[L5,Y1d,iz,VS,t6,u6,py],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 a3d=function(){};a3d.\u0275fac=function(a){return new (a||a3d)};a3d.\u0275mod=$e({type:a3d});a3d.\u0275inj=Dc({imports:[FN,PK,u6]});var b3d=function(){};b3d.\u0275fac=function(a){return new (a||b3d)};b3d.\u0275mod=$e({type:b3d});b3d.\u0275inj=Dc({imports:[FN,M5,a3d,W5,XS,OJ,Y2d,w6,t6]});var x6=function(){this.dialogRef=q(dB);this.data=q(fB);this.updateDiffs=this.data.updateDiffs;this.userToDisplay=Om;this.DiffType=Uhd};x6.prototype.close=function(){this.dialogRef.close()};x6.\u0275fac=function(a){return new (a||x6)};
x6.\u0275cmp=C({type:x6,selectors:[["b-update-history-modal"]],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,"user"],[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&&(K(0,"div",0)(1,"ul",1),Pf(2,V6b,11,3,"li",2,Of),L()(),K(4,"div",3)(5,"button",4),N("click",function(){return b.close()}),S(6," Close "),L()());a&2&&(B(2),Qf(b.updateDiffs))},dependencies:[DT,ZA,XA,TA,mB,lB,jU,mU],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 c3d=function(){};c3d.\u0275fac=function(a){return new (a||c3d)};c3d.\u0275mod=$e({type:c3d});c3d.\u0275inj=Dc({imports:[FN,ZA,pB,vU,GU,x6]});var y6=function(){this.paths=q(wV);this.bLocation=q(US)};y6.prototype.visit=function(a){a.event&&(a.event.preventDefault(),a.event.stopPropagation());var b=a.elementId;a=As(a.issueId)+(b?"#"+b:"");this.bLocation.setUrl(a)};y6.\u0275fac=function(a){return new (a||y6)};y6.\u0275prov=Cc({token:y6,factory:y6.\u0275fac,providedIn:"root"});var d3d={provide:yQ,useExisting:y6};var e3d=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}}();Ww(Mu,Oi);Mu.prototype.wrap=function(a){return f3d(this,a)};var g3d=function(a,b){return(b?"__wrapper_":"__protected_")+Owa(a)+"__"},f3d=function(a,b){var c=g3d(a,!0);b[c]||((b[c]=h3d(a,b))[g3d(a,!1)]=b);return b[c]},h3d=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[g3d(a,!1)]=b;return c};
Mu.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 i3d(a);};
var j3d=function(a,b){var c=ra.window||ra.globalThis,d=c[b];if(!d)throw Error("zg`"+b);c[b]=function(e,f){typeof e==="string"&&(e=et(BAc,e));e&&(arguments[0]=e=f3d(a,e));if(d.apply)return d.apply(this,arguments);var g=e;if(arguments.length>2){var k=Array.prototype.slice.call(arguments,2);g=function(){e.apply(this,k)}}return d(g,f)};c[b][g3d(a,!1)]=d};
Mu.prototype.disposeInternal=function(){var a=ra.window||ra.globalThis;var b=a.setTimeout;b=b[g3d(this,!1)]||b;a.setTimeout=b;b=a.setInterval;b=b[g3d(this,!1)]||b;a.setInterval=b;Mu.superClass_.disposeInternal.call(this)};var i3d=function(a){oa.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)};Ww(i3d,oa);var l3d=function(a,b,c){Aj.call(this);this.contextProvider_=b||null;this.additionalArguments_={};this.xhrSender_=k3d;this.handlerUrl_=a;if(!c){this.errorHandler_=null;this.errorHandler_=new Mu(Dj(this.handleException,this));j3d(this.errorHandler_,"setTimeout");j3d(this.errorHandler_,"setInterval");a=this.errorHandler_;b=ra.window||ra.globalThis;c=["requestAnimationFrame","mozRequestAnimationFrame","webkitAnimationFrame","msRequestAnimationFrame"];for(var d=0;d<c.length;d++){var e=c[d];c[d]in b&&j3d(a,
e)}a=this.errorHandler_;ELc=!0;b=Dj(a.wrap,a);for(c=0;c<CLc.length;c++)CLc[c](b);DLc.push(a)}};Ww(l3d,Aj);var m3d=function(a,b){at.call(this,"r");this.error=a;this.context=b};Ww(m3d,at);var k3d=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 g=l(f.value);f=g.next().value;g=g.next().value;e[f]=g}}else e=d;Gtb(a,null,b,c,e)};
l3d.prototype.handleException=function(a,b){a=a.error||a;b=b?Li(b):{};a instanceof Error&&Hva(b,a.__closure__error__context__984382||{});var c=dGc(a);if(this.contextProvider_)try{this.contextProvider_(c,b)}catch(e){}var d=c.message.substring(0,1900);a instanceof oa&&!a.reportErrorToServer||n3d(this,d,c.fileName,c.lineNumber,c.stack,b);try{this.dispatchEvent(new m3d(c,b))}catch(e){}};
var n3d=function(a,b,c,d,e,f){try{var g=Qva(a.handlerUrl_,"script",c,"error",b,"line",d);Bva(a.additionalArguments_)||(g=Rva(g,a.additionalArguments_));b={};b.trace=e;if(f)for(var k in f)b["context."+k]=f[k];var m=Pva(b);a.xhrSender_(g,"POST",m,a.extraHeaders_)}catch(r){}};l3d.prototype.disposeInternal=function(){Ii(this.errorHandler_);l3d.superClass_.disposeInternal.call(this)};var z6=function(){this.jsBuild="839391619";this.buildLabel="buganizer.frontend_20251202.10_p0"};z6.\u0275fac=function(a){return new (a||z6)};z6.\u0275prov=Cc({token:z6,factory:z6.\u0275fac,providedIn:"root"});var A6=function(){};A6.prototype.reportingEnabled=function(){return e3d!==4};A6.\u0275fac=function(a){return new (a||A6)};A6.\u0275prov=Cc({token:A6,factory:A6.\u0275fac,providedIn:"root"});
var B6=function(){var a=this;this.appContext=q(A6);this.context={};this.reportingExtensions=[];var b=q(z6);this.jsDebugErrorReporter=new l3d("/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)},o3d=function(a,b){b="Error: "+b;console.error("ErrorReporter: ",b);if(a.appContext.reportingEnabled())try{throw Error(b);}catch(c){for(W6b(c),n3d(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()}};B6.prototype.reportError=function(a){console.error("ErrorReporter: ",(a==null?void 0:a.stack)||a);if(this.appContext.reportingEnabled()){W6b(a);this.jsDebugErrorReporter.handleException(a);a=l(this.reportingExtensions);for(var b=a.next();!b.done;b=a.next())b.value.onReportedError()}};B6.\u0275fac=function(a){return new (a||B6)};
B6.\u0275prov=Cc({token:B6,factory:B6.\u0275fac,providedIn:"root"});var C6=function(){this.reporter=q(B6)};
C6.prototype.handleError=function(a){if(hq(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)nn("omitting eye3 reporting of",a);else if(typeof a==="string")o3d(this.reporter,a);else if(a instanceof Error||!hq(a)){b=dGc(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 o3d(this.reporter,
iq(a))};C6.\u0275fac=function(a){return new (a||C6)};C6.\u0275prov=Cc({token:C6,factory:C6.\u0275fac,providedIn:"root"});var D6=function(){this.activeSession=q(Zu)};Z(D6,A6);D6.prototype.reportingEnabled=function(){return this.activeSession.getFlag("reportErrors")};D6.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(D6)))(b||D6)}}();D6.\u0275prov=Cc({token:D6,factory:D6.\u0275fac,providedIn:"root"});
var p3d={provide:Qx,useExisting:C6},q3d={provide:A6,useExisting:D6},r3d={provide:z6,useValue:{jsBuild:"839391619",buildLabel:"buganizer.frontend_20251202.10_p0"}};var E6=function(){};E6.\u0275fac=function(a){return new (a||E6)};E6.\u0275cmp=C({type:E6,selectors:[["b-empty"]],decls:0,vars:0,template:function(){},encapsulation:2});var s3d=function(){};s3d.\u0275fac=function(a){return new (a||s3d)};s3d.\u0275mod=$e({type:s3d});s3d.\u0275inj=Dc({});var F6=function(){};Z(F6,yF);F6.prototype.store=function(){};F6.prototype.retrieve=function(){return null};F6.prototype.shouldReuseRoute=function(a,b){return a.routeConfig===b.routeConfig&&Gm(a.params,b.params)};F6.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(F6)))(b||F6)}}();F6.\u0275prov=Cc({token:F6,factory:F6.\u0275fac,providedIn:"root"});var G6=function(){this.router=q(CF)};G6.prototype.canActivate=function(a,b){return b.url.includes("#ISSUE_HistoryHeader")?(b=l(b.url.split("#ISSUE_HistoryHeader")),a=b.next().value,b=b.next().value,DF(this.router,[a],{fragment:b&&!isNaN(Number(b))?"comment"+b:void 0})):b.url==="/attention"?DF(this.router,["home"]):!0};G6.\u0275fac=function(a){return new (a||G6)};G6.\u0275prov=Cc({token:G6,factory:G6.\u0275fac,providedIn:"root"});var t3d=/^(\d+)$/,H6=function(){this.butterBar=q(JM);this.paramNamesToCheck=new Set(Object.values(Bkd))};H6.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=Nm(d);if(!t3d.test(d)||isNaN(e)||!Number.isInteger(e))return this.butterBar.showWarning("The URL parameter "+c+' has the malformed value "'+d+'".'),!1}return!0};H6.\u0275fac=function(a){return new (a||H6)};
H6.\u0275prov=Cc({token:H6,factory:H6.\u0275fac,providedIn:"root"});var I6=function(){this.routeParamsValidator=q(H6)};I6.prototype.canActivate=function(a){return this.routeParamsValidator.validate(a.params)};I6.\u0275fac=function(a){return new (a||I6)};I6.\u0275prov=Cc({token:I6,factory:I6.\u0275fac,providedIn:"root"});var J6=function(){this.activeSession=q(Zu);this.router=q(CF)};J6.prototype.canActivate=function(){return this.activeSession.isAnonymous()?DF(this.router,["issues"]):!0};J6.\u0275fac=function(a){return new (a||J6)};J6.\u0275prov=Cc({token:J6,factory:J6.\u0275fac,providedIn:"root"});var u3d=function(){this.userPreferences=q(VP)},v3d=function(a){a=Pr(a.userPreferences.homepagePreferences$);if(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"}};
u3d.\u0275fac=function(a){return new (a||u3d)};u3d.\u0275prov=Cc({token:u3d,factory:u3d.\u0275fac,providedIn:"root"});var K6=function(){this.router=q(CF);this.homepageRedirection=q(u3d)};K6.prototype.canActivate=function(){return DF(this.router,[v3d(this.homepageRedirection)])};K6.\u0275fac=function(a){return new (a||K6)};K6.\u0275prov=Cc({token:K6,factory:K6.\u0275fac,providedIn:"root"});var w3d={ANDROID:"Android",CHROME:"ChromeOS",IOS:"iOS",LINUX:"Linux",MAC:"Mac",UNKNOWN:"Unknown",WINDOWS:"Windows"};var Wzc={default:"1363614",apps:"1456886",blink:"1456407",devtools:"1457055",enterprise:"1456152",extensions:"1456110",installer:"1456937",media:"1456190",network:"1456527",sync:"1457192",ui:"1457123",webstore:"1457238"},Vzc={default:"402888",apps:"422083",blink:"421442",devtools:"422123",enterprise:"421726",extensions:"422130",installer:"421863",media:"421886",network:"421924",sync:"422168",ui:"422198",webstore:"422443"},x3d=["media-bugs@chromium.org"],y3d=["chrome-sync-monorail@google.com"];var z3d={USER:"USER",DEVELOPER:"DEVELOPER",VULN_REPORTER:"VULN_REPORTER",CONTRIBUTOR:"CONTRIBUTOR"},A3d={INPUT:"INPUT",TEXT:"TEXT",SELECT:"SELECT"},B3d=new bd("CustomQuestionsConfig"),C3d=new bd("ComponentIds"),D3d=new bd("CustomFieldIds"),E3d=new bd("HotlistIds");var L6=function(){this.componentIds=q(C3d);this.persona="USER";this.categoryChange=new KO;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:x3d},{title:"Content",description:"Problems with webpages not working correctly",value:"CONTENT"},{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:y3d},{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)};
L6.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)})};L6.\u0275fac=function(a){return new (a||L6)};
L6.\u0275cmp=C({type:L6,selectors:[["wizard-category-select"]],inputs:{persona:"persona",category:"category"},outputs:{categoryChange:"categoryChange"},features:[Gx],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&&(K(0,"mat-form-field",0)(1,"mat-select",1),N("valueChange",function(d){b.category=d;b.categoryChange.emit(b.category)}),
K(2,"mat-select-trigger"),S(3),L(),Pf(4,Y6b,5,3,"mat-option",2,Of),L()());if(a&2){B();I("value",b.category);B(2);var c;T(" ",(c=b.category==null?null:b.category.title)!=null?c:""," ");B();Qf(b.options[b.persona])}},dependencies:[DB,qB,BB,qT,pT,hI,iI,GA],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 Z6b=function(a){return{question:a}},M6=function(){this.config=q(B3d);this.CustomQuestionType=A3d;this.responses=new KO;this.model=Object.assign({},this.config)};M6.prototype.ngOnInit=function(){};var e7b=function(a){var b=a.model[a.category].filter(function(c){return!!c.response});a.responses.emit(b)};M6.\u0275fac=function(a){return new (a||M6)};
M6.\u0275cmp=C({type:M6,selectors:[["wizard-custom-questions"]],inputs:{category:"category"},outputs:{responses:"responses"},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&&(Pf(0,$6b,1,4,"ng-container",4,Of),E(2,
d7b,3,1,"ng-template",null,0,Og)(4,f7b,3,3,"ng-template",null,1,Og)(6,g7b,4,3,"ng-template",null,2,Og)(8,k7b,6,4,"ng-template",null,3,Og));a&2&&Qf(b.model[b.category])},dependencies:[mC,xi,PB,WB,DB,qB,BB,qC,EB,oC,qT,pT,hI,GA,oy],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 F3d=function(){this.Persona=z3d;this.persona="USER";this.personaChange=new KO};F3d.\u0275fac=function(a){return new (a||F3d)};
F3d.\u0275cmp=C({type:F3d,selectors:[["wizard-persona-picker"]],inputs:{persona:"persona"},outputs:{personaChange:"personaChange"},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&&(K(0,"div")(1,"mat-radio-group",0),N("ngModelChange",function(c){b.persona=c;b.personaChange.emit(b.persona)}),K(2,"mat-radio-button",1),S(3," End User "),K(4,"div",2),S(5," I am trying to use a website. "),
L()(),K(6,"mat-radio-button",1),S(7," Web Developer "),K(8,"div",2),S(9," I am trying to build something on a website. "),L()(),K(10,"mat-radio-button",3),S(11," Vulnerability Reporter "),K(12,"div",2),S(13," I am reporting a possible security vulnerability. "),L()(),K(14,"mat-radio-button",1),S(15," Chromium Contributor "),K(16,"div",2),S(17," I know about a problem in specific tests or code. "),L()()()());a&2&&(B(),I("ngModel",b.persona),B(),I("value",b.Persona.USER),B(4),I("value",b.Persona.DEVELOPER),
B(4),I("value",b.Persona.VULN_REPORTER),B(4),I("value",b.Persona.CONTRIBUTOR))},dependencies:[mC,PB,WB,jS,iS],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 G3d=new bd("GM2_CARD_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var H3d=function(a){this.options=a;if(a.disableGmatStyle)throw Error("eb");};H3d.\u0275fac=function(a){return new (a||H3d)(Ve(G3d))};H3d.\u0275dir=af({type:H3d,selectors:[["mat-card"]],hostAttrs:[1,"gmat-mdc-card"],standalone:!1});var N6=function(){};N6.\u0275fac=function(a){return new (a||N6)};N6.\u0275mod=$e({type:N6});N6.\u0275inj=Dc({imports:[tV]});var I3d=function(){this._template=q(hg)};I3d.\u0275fac=function(a){return new (a||I3d)};I3d.\u0275dir=af({type:I3d,selectors:[["ng-template","matStepContent",""]]});var O6=function(){this._elementRef=q(Gd)};O6.prototype.focus=function(){this._elementRef.nativeElement.focus()};O6.\u0275fac=function(a){return new (a||O6)};O6.\u0275dir=af({type:O6,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]});var P6=function(){this.template=q(hg)};P6.\u0275fac=function(a){return new (a||P6)};P6.\u0275dir=af({type:P6,selectors:[["","cdkStepLabel",""]]});var J3d=new bd("STEPPER_GLOBAL_OPTIONS"),R6=function(){var a=this;this._stepper=q(Q6);this._interacted=qg.apply(null,[!1].concat(n([])));this.interactedStream=new ui;this._state=qg.apply(null,[void 0].concat(n([])));this._editable=qg.apply(null,[!0].concat(n([])));this.optional=!1;this._completedOverride=qg.apply(null,[null].concat(n([])));this.index=qg.apply(null,[-1].concat(n([])));this.isSelected=ah.apply(null,[function(){return a._stepper.selectedIndex===a.index()}].concat(n([])));this.indicatorType=
ah.apply(null,[function(){var c=a.isSelected(),d=a.completed,e,f=(e=a._state())!=null?e:"number";e=a._editable();return a._showError()&&a.hasError&&!c?"error":a._displayDefaultIndicatorType?!d||c?"number":e?"edit":"done":d&&!c?"done":d&&c?f:e&&c?"edit":f}].concat(n([])));this.isNavigable=ah.apply(null,[function(){var c=a.isSelected();return a.completed||c||!a._stepper.linear}].concat(n([])));this._customError=qg.apply(null,[null].concat(n([])));var b=q(J3d,{optional:!0});this._stepperOptions=b?b:
{};this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1};h=R6.prototype;h._getDefaultError=function(){var a;return this.interacted&&!((a=this.stepControl)==null||!a.invalid)};h.select=function(){this._stepper.selected=this};
h.reset=function(){this._interacted.set(!1);this._completedOverride()!=null&&this._completedOverride.set(!1);this._customError()!=null&&this._customError.set(!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()}};h.ngOnChanges=function(){this._stepper._stateChanged()};h._markAsInteracted=function(){this._interacted()||(this._interacted.set(!0),this.interactedStream.emit(this))};
h._showError=function(){var a;return(a=this._stepperOptions.showError)!=null?a:this._customError()!=null};
da.Object.defineProperties(R6.prototype,{interacted:{configurable:!0,enumerable:!0,get:function(){return this._interacted()},set:function(a){this._interacted.set(a)}},state:{configurable:!0,enumerable:!0,get:function(){return this._state()},set:function(a){this._state.set(a)}},editable:{configurable:!0,enumerable:!0,get:function(){return this._editable()},set:function(a){this._editable.set(a)}},completed:{configurable:!0,enumerable:!0,get:function(){var a=this._completedOverride(),b=this._interacted();
return a!=null?a:b&&(!this.stepControl||this.stepControl.valid)},set:function(a){this._completedOverride.set(a)}},hasError:{configurable:!0,enumerable:!0,get:function(){var a=this._customError();return a==null?this._getDefaultError():a},set:function(a){this._customError.set(a)}}});R6.\u0275fac=function(a){return new (a||R6)};
R6.\u0275cmp=C({type:R6,selectors:[["cdk-step"]],contentQueries:function(a,b,c){a&1&&(lg(c,P6,5),lg(c,OB,5));if(a&2){var d;og(d=pg())&&(b.stepLabel=d.first);og(d=pg())&&(b._childForms=d)}},viewQuery:function(a,b){a&1&&kg(hg,7);if(a&2){var c;og(c=pg())&&(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",bh],optional:[2,
"optional","optional",bh],completed:[2,"completed","completed",bh],hasError:[2,"hasError","hasError",bh]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[Gx],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(fg(),Hf(0,l7b,1,0,"ng-template"))},encapsulation:2,changeDetection:0});
var Q6=function(){this._dir=q(ii,{optional:!0});this._changeDetectorRef=q(Yx);this._elementRef=q(Gd);this._destroyed=new rf;this.steps=new jg;this._sortedHeaders=new jg;this.linear=!1;this._selectedIndex=qg.apply(null,[0].concat(n([])));this.selectionChange=new ui;this.selectedIndexChange=new ui;this._groupId=q(hi).getId("cdk-stepper-");this._orientation="horizontal"};h=Q6.prototype;
h.ngAfterContentInit=function(){var a=this;this._steps.changes.pipe(yf(this._steps),Af(this._destroyed)).subscribe(function(b){a.steps.reset(b.filter(function(c){return c._stepper===a}));a.steps.forEach(function(c,d){return c.index.set(d)});ng(a.steps)})};
h.ngAfterViewInit=function(){var a=this;this._stepHeader.changes.pipe(yf(this._stepHeader),Af(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}));ng(a._sortedHeaders)});this._keyManager=Mz(Oz(Lz(new Rz(this._sortedHeaders))),this._orientation==="vertical");Pz(this._keyManager,this.selectedIndex);(this._dir?this._dir.change:be()).pipe(yf(this._layoutDirection()),
Af(this._destroyed)).subscribe(function(d){var e;return(e=a._keyManager)==null?void 0:Nz(e,d)});Pz(this._keyManager,this.selectedIndex);this.steps.changes.subscribe(function(){a.selected||a._selectedIndex.set(Math.max(a.selectedIndex-1,0))});this._isValidIndex(this.selectedIndex)||this._selectedIndex.set(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()}};
h.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();this.steps.destroy();this._sortedHeaders.destroy();this._destroyed.next();this._destroyed.complete()};h.next=function(){this.selectedIndex=Math.min(this._selectedIndex()+1,this.steps.length-1)};h.previous=function(){this.selectedIndex=Math.max(this._selectedIndex()-1,0)};h.reset=function(){this._updateSelectedItemIndex(0);this.steps.forEach(function(a){return a.reset()});this._stateChanged()};
h._getStepLabelId=function(a){return this._groupId+"-label-"+a};h._getStepContentId=function(a){return this._groupId+"-content-"+a};h._stateChanged=function(){this._changeDetectorRef.markForCheck()};h._getAnimationDirection=function(a){a-=this._selectedIndex();return a<0?this._layoutDirection()==="rtl"?"next":"previous":a>0?this._layoutDirection()==="rtl"?"previous":"next":"current"};h._getFocusIndex=function(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()};
h._updateSelectedItemIndex=function(a){var b=this.steps.toArray(),c=this._selectedIndex();this.selectionChange.emit({selectedIndex:a,previouslySelectedIndex:c,selectedStep:b[a],previouslySelectedStep:b[c]});this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(a):Pz(this._keyManager,a));this._selectedIndex.set(a);this.selectedIndexChange.emit(a);this._stateChanged()};
h._onKeydown=function(a){var b=Nh(a),c=a.keyCode,d=this._keyManager;(d==null?void 0:d.activeItemIndex)==null||b||c!==32&&c!==13?d==null||PGc(d,"keyboard").onKeydown(a):(this.selectedIndex=d.activeItemIndex,a.preventDefault())};h._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};
h._layoutDirection=function(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"};h._containsFocus=function(){var a=this._elementRef.nativeElement,b=Ph();return a===b||a.contains(b)};h._isValidIndex=function(a){return a>-1&&(!this.steps||a<this.steps.length)};
da.Object.defineProperties(Q6.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.set(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&&Mz(this._keyManager,a==="vertical")}}});Q6.\u0275fac=function(a){return new (a||Q6)};
Q6.\u0275dir=af({type:Q6,selectors:[["","cdkStepper",""]],contentQueries:function(a,b,c){a&1&&(lg(c,R6,5),lg(c,O6,5));if(a&2){var d;og(d=pg())&&(b._steps=d);og(d=pg())&&(b._stepHeader=d)}},inputs:{linear:[2,"linear","linear",bh],selectedIndex:[2,"selectedIndex","selectedIndex",ch],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]});var K3d=function(){this._stepper=q(Q6);this.type="submit"};K3d.\u0275fac=function(a){return new (a||K3d)};K3d.\u0275dir=af({type:K3d,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(a,b){a&1&&N("click",function(){return b._stepper.next()});a&2&&Rf("type",b.type)},inputs:{type:"type"}});var L3d=function(){this._stepper=q(Q6);this.type="button"};L3d.\u0275fac=function(a){return new (a||L3d)};
L3d.\u0275dir=af({type:L3d,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(a,b){a&1&&N("click",function(){return b._stepper.previous()});a&2&&Rf("type",b.type)},inputs:{type:"type"}});var M3d=function(){};M3d.\u0275fac=function(a){return new (a||M3d)};M3d.\u0275mod=$e({type:M3d});M3d.\u0275inj=Dc({imports:[jz]});var S6=function(){P6.apply(this,arguments)};Z(S6,P6);S6.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(S6)))(b||S6)}}();S6.\u0275dir=af({type:S6,selectors:[["","matStepLabel",""]],features:[Ff]});var N3d=function(){this.changes=new rf;this.optionalLabel="Optional";this.completedLabel="Completed";this.editableLabel="Editable"};N3d.\u0275fac=function(a){return new (a||N3d)};N3d.\u0275prov=Cc({token:N3d,factory:N3d.\u0275fac,providedIn:"root"});var m7b=function(a,b,c){return{index:a,active:b,optional:c}},T6=function(){this._elementRef=q(Gd);this._intl=q(N3d);this._focusMonitor=q(mz);var a=q(fi);a.load(BA);a.load(gz);var b=q(Yx);this._intlSubscription=this._intl.changes.subscribe(function(){return b.markForCheck()})};Z(T6,O6);T6.\u0275dir=O6.\u0275dir;h=T6.prototype;h.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0)};h.ngOnDestroy=function(){this._intlSubscription.unsubscribe();this._focusMonitor.stopMonitoring(this._elementRef)};
h.focus=function(a,b){a?nz(this._focusMonitor,this._elementRef,a,b):this._elementRef.nativeElement.focus(b)};h._stringLabel=function(){return this.label instanceof S6?null:this.label};h._templateLabel=function(){return this.label instanceof S6?this.label:null};h._getHostElement=function(){return this._elementRef.nativeElement};h._getDefaultTextForState=function(a){return a=="number"?""+(this.index+1):a=="edit"?"create":a=="error"?"warning":a};
h._hasEmptyLabel=function(){return!this._stringLabel()&&!this._templateLabel()&&!this._hasOptionalLabel()&&!this._hasErrorLabel()};h._hasOptionalLabel=function(){return this.optional&&this.state!=="error"};h._hasErrorLabel=function(){return this.state==="error"};T6.\u0275fac=function(a){return new (a||T6)};
T6.\u0275cmp=C({type:T6,selectors:[["mat-step-header"]],hostAttrs:["role","",1,"mat-step-header"],hostVars:4,hostBindings:function(a,b){a&2&&(zg("mat-"+(b.color||"primary")),yg("mat-step-header-empty-label",b._hasEmptyLabel()))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[Ff],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&&(M(0,"div",0),K(1,"div")(2,"div",1),F(3,n7b,1,6,"ng-container",2)(4,s7b,2,1),L()(),K(5,"div",3),F(6,t7b,2,1,"div",4)(7,u7b,2,1,"div",4),F(8,v7b,2,1,"div",5),
F(9,w7b,2,1,"div",6),L());if(a&2){var c;I("matRippleTrigger",b._getHostElement())("matRippleDisabled",b.disableRipple);B();zg(Gg("mat-step-icon-state-",b.state," mat-step-icon"));yg("mat-step-icon-selected",b.selected);B(2);G(b.iconOverrides&&b.iconOverrides[b.state]?3:4);B(2);yg("mat-step-label-active",b.active)("mat-step-label-selected",b.selected)("mat-step-label-error",b.state=="error");B();G((c=b._templateLabel())?6:b._stringLabel()?7:-1,c);B(2);G(b._hasOptionalLabel()?8:-1);B();G(b._hasErrorLabel()?
9:-1)}},dependencies:[EA,oy,iz],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-on-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-on-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-header-empty-label .mat-step-label{min-width:0}.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, var(--mat-sys-primary));color:var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary))}.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 U6=function(){K3d.apply(this,arguments)};Z(U6,K3d);U6.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(U6)))(b||U6)}}();U6.\u0275dir=af({type:U6,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(a,b){a&2&&Rf("type",b.type)},features:[Ff]});var V6=function(){L3d.apply(this,arguments)};Z(V6,L3d);V6.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(V6)))(b||V6)}}();
V6.\u0275dir=af({type:V6,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(a,b){a&2&&Rf("type",b.type)},features:[Ff]});var O3d=function(){this.templateRef=q(hg)};O3d.\u0275fac=function(a){return new (a||O3d)};O3d.\u0275dir=af({type:O3d,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}});var P3d=["*"],Q3d=["animatedContainer"],A7b=function(a){return{steps:a}},G7b=function(a){return{step:a}},W6=function(){R6.apply(this,arguments);this._errorStateMatcher=q(AA,{skipSelf:!0});this._viewContainerRef=q(ig);this._isSelected=Od.EMPTY;this.stepLabel=void 0};Z(W6,R6);
W6.prototype.ngAfterContentInit=function(){var a=this;this._isSelected=this._stepper.steps.changes.pipe(zf(function(){return a._stepper.selectionChange.pipe(A(function(b){return b.selectedStep===a}),yf(a._stepper.selected===a))})).subscribe(function(b){b&&a._lazyContent&&!a._portal&&(a._portal=new mA(a._lazyContent._template,a._viewContainerRef))})};W6.prototype.ngOnDestroy=function(){this._isSelected.unsubscribe()};
W6.prototype.isErrorState=function(a,b){var c=!!(a&&a.invalid&&this.interacted);return this._errorStateMatcher.isErrorState(a,b)||c};W6.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(W6)))(b||W6)}}();
W6.\u0275cmp=C({type:W6,selectors:[["mat-step"]],contentQueries:function(a,b,c){a&1&&(lg(c,S6,5),lg(c,I3d,5));if(a&2){var d;og(d=pg())&&(b.stepLabel=d.first);og(d=pg())&&(b._lazyContent=d.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[Ig([{provide:AA,useExisting:W6},{provide:R6,useExisting:W6}]),Ff],ngContentSelectors:P3d,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(a){a&1&&(fg(),E(0,y7b,2,1,"ng-template"))},dependencies:[pA],encapsulation:2,
changeDetection:0});
var X6=function(){Q6.call(this);var a=this;this._ngZone=q(Tg);this._renderer=q(ji);this._animationsDisabled=ti();this._isAnimating=qg.apply(null,[!1].concat(n([])));this._steps=this._stepHeader=void 0;this.steps=new jg;this.animationDone=new ui;this.labelPosition="end";this.headerPosition="top";this.headerPrefix=Qg.apply(null,[null].concat(n([])));this._iconOverrides={};this._animationDuration="";this._isServer=!q(bi).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=q(Gd).nativeElement.nodeName.toLowerCase()==="mat-vertical-stepper"?"vertical":"horizontal"};Z(X6,Q6);X6.\u0275dir=Q6.\u0275dir;h=X6.prototype;
h.ngAfterContentInit=function(){var a=this;Q6.prototype.ngAfterContentInit.call(this);this._icons.forEach(function(b){return a._iconOverrides[b.name]=b.templateRef});this.steps.changes.pipe(Af(this._destroyed)).subscribe(function(){return a._stateChanged()});this.selectedIndexChange.pipe(Af(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)})};h.ngAfterViewInit=function(){var a=this;Q6.prototype.ngAfterViewInit.call(this);if(typeof queueMicrotask==="function"){var b=!1;this._animatedContainers.changes.pipe(yf(null),Af(this._destroyed)).subscribe(function(){return queueMicrotask(function(){b||(b=!0,a.animationDone.emit());a._stateChanged()})})}};
h.ngOnDestroy=function(){Q6.prototype.ngOnDestroy.call(this);var a;(a=this._cleanupTransition)==null||a.call(this)};h._getAnimationDuration=function(){return this._animationsDisabled?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms"};h._onAnimationDone=function(){this._isAnimating.set(!1);this.animationDone.emit()};
da.Object.defineProperties(X6.prototype,{animationDuration:{configurable:!0,enumerable:!0,get:function(){return this._animationDuration},set:function(a){this._animationDuration=/^\d+$/.test(a)?a+"ms":a}}});X6.\u0275fac=function(a){return new (a||X6)};
X6.\u0275cmp=C({type:X6,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(a,b,c){a&1&&(lg(c,W6,5),lg(c,O3d,5));if(a&2){var d;og(d=pg())&&(b._steps=d);og(d=pg())&&(b._icons=d)}},viewQuery:function(a,b){a&1&&(kg(T6,5),kg(Q3d,5));if(a&2){var c;og(c=pg())&&(b._stepHeader=c);og(c=pg())&&(b._animatedContainers=c)}},hostVars:14,hostBindings:function(a,b){a&2&&(xg("--mat-stepper-animation-duration",b._getAnimationDuration()),yg("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",headerPrefix:[1,
"headerPrefix"],animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[Ig([{provide:Q6,useExisting:X6}]),Ff],ngContentSelectors:P3d,decls:7,vars:2,consts:[["stepTemplate",""],["horizontalStepsTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-vertical-stepper-wrapper"],[1,"mat-horizontal-stepper-header-wrapper"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,
"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","region",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"],["aria-orientation","horizontal",
"role","tablist",1,"mat-horizontal-stepper-header-container"],[1,"mat-stepper-horizontal-line"]],template:function(a,b){a&1&&(fg(),F(0,z7b,1,0),F(1,E7b,6,1,"div",3)(2,I7b,4,1,"div",4),E(3,J7b,1,27,"ng-template",null,0,Og)(5,M7b,3,0,"ng-template",null,1,Og));if(a&2){var c;G(b._isServer?0:-1);B();G((c=b.orientation)==="horizontal"?1:c==="vertical"?2:-1)}},dependencies:[oy,T6],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-wrapper{align-items:center;display:flex}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center;flex-grow:1}.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;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.mat-step-header-empty-label .mat-step-icon{margin:0}.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 R3d=function(){};R3d.\u0275fac=function(a){return new (a||R3d)};R3d.\u0275mod=$e({type:R3d});R3d.\u0275inj=Dc({providers:[AA],imports:[qA,M3d,kz,HA,X6,T6,jz]});var S3d=["summary"],T3d=["reproSteps"],U3d=["description"],V3d=function(a){return{nonEmptyValidator:a}},W3d=function(a,b){return{reproStepsValidator:a,nonEmptyValidator:b}},Q7b=function(){return{noWizard:"true"}},X3d=[Sm("security@chromium.org")],Y6=function(){this.activeSession=q(Zu);this.analytics=q(PO);this.butterBar=q(JM);this.currentUser=q(Y1);this.componentIds=q(C3d);this.customFieldIds=q(D3d);this.hotlistIds=q(E3d);this.issueApi=q(uO);this.paths=q(wV);this.redirectUrl=q(o5);this.userAccess=
q(lO);this.Persona=z3d;this.PlatformOs=w3d;var a=X6b(),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:[],chromeFeedback:"NO"};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},O7b=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:sb(b)}};h=Y6.prototype;
h.nonEmptyValidator=function(a){return(a==null?void 0:a.trim().length)===0?!1:!0};h.reproStepsValidator=function(a){return a==="1. \n2. \n3. "?!1:!0};h.isCaptchaValid=function(){return!this.enableRecaptcha||this.recaptchaResponse!==""};h.enableSubmit=function(){this.isSubmitEnabled=!0};h.uploadFile=function(a){a=this.attachmentUploader.upload(a);this.addUpload(a)};h.addUpload=function(a){this.uploads.push(a)};h.removeUpload=function(a){La(this.uploads,a)};
h.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(Hm(c.blobRef));return a};
h.submit=function(){var a=this,b,c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:var k="BUG",m=null,r=null,w="P2",x="S2",D=[a.hotlistIds.unconfirmed];a.model.regression==="Yes"&&D.push(a.hotlistIds.chromiumRegression);var H,J,O,R=(O=(H=a.model.category)==null?void 0:(J=H.ccEmails)==null?void 0:J.map(Sm).filter(ln))!=null?O:[],V;((V=a.model.category)==null?void 0:V.value)==="SECURITY"&&(k="VULNERABILITY",w="P4",x="S4",m="LIMIT_VIEW",r=X3d);var ba;H=((ba=a.model.category)==null?void 0:ba.componentId)||
a.componentIds.default;ba=a.model.summary;J=$7b(a.model,a.customFieldIds);O=a.model;V=O.chromeFeedback;var pa="0";V==="DESKTOP"?pa="237":V==="ANDROID"?pa="282":V==="IOS"&&(pa="5031434");V=pa==="0"?"":"Has Chrome Feedback with description matching the bug title: https://listnr.corp.google.com/product/"+(pa+"/reports?searchText="+encodeURIComponent(O.summary)+"&filter=0&dateRange=30");var ua;pa="\n# Steps to reproduce the problem\n"+O.reproSteps+"\n\n# Problem Description\n"+O.description+"\n\n"+(O.comments.length>
0?"\n# Additional Comments\n"+O.comments:"")+"\n\n# Summary\n"+O.summary+"\n\n"+b8b(O.customQuestionResponses)+"\n\n# Additional Data\nCategory: "+((ua=O.category)==null?void 0:ua.title)+" \\\nChrome Channel: "+O.channel+" \\\nRegression: "+O.regression+" \\\n"+V;pa=pa.replace(/^\n/,"");b={componentId:H,type:k,status:"NEW",priority:w,severity:x,title:ba,customField:J,comment:pa.replace(/\n{3,}/g,"\n\n"),formattingMode:"MARKDOWN",inProd:!0,isArchived:!1,reporterUser:a.currentUser.user,issueAccessLimitLevel:m,
collaboratorsUsers:r,staffing:null,ccUsers:[a.currentUser.user].concat(n(R)),hotlistId:D,assigneeUser:null,verifierUser:null,duplicateOfIssueId:null,blockedByIssueId:null,blockingIssueId:null,changelist:null,gerritChanges:null,incidents:null,postmortems:null,foundInVersion:null,targetedToVersion:null,verifiedInVersion:null,retention:null,isDeleted:null,deletionReason:null,duplicateIssueId:null,sloStartTime:null,sloEndTime:null,sloSnoozeType:null};fs(a.butterBar,"Saving...",0);Vd(g,2);return z(g,a.issueApi.createIssueWithWizard({snapshot:b,
attachments:a.getAttachments(),recaptchaToken:a.enableRecaptcha?a.recaptchaResponse:void 0}),4);case 4:c=g.yieldResult;d=c.issueId;if(!d)throw Error("Ag");a.butterBar.dismiss();a.analytics.trackEvent("createIssue","fileAndRedirect","wizard",!0);return z(g,mO(a.userAccess,"reader","issues/"+d),5);case 5:(e=g.yieldResult)?y0d(a.redirectUrl,As(d),String(d)):(fs(a.butterBar,"New issue created: "+d+" (view access not granted)",0),y0d(a.redirectUrl,a.paths.listIssues()));bk(g,0);break;case 2:f=Zd(g),fs(a.butterBar,
"Failed to create issue: "+f),$d(g)}})};Y6.\u0275fac=function(a){return new (a||Y6)};
Y6.\u0275cmp=C({type:Y6,selectors:[["chrome-wizard"]],viewQuery:function(a,b){a&1&&(kg(S3d,5),kg(T3d,5),kg(U3d,5),kg(fY,5));if(a&2){var c;og(c=pg())&&(b.summaryControl=c.first);og(c=pg())&&(b.reproStepsControl=c.first);og(c=pg())&&(b.descriptionControl=c.first);og(c=pg())&&(b.attachmentUploader=c.first)}},inputs:{fullScreen:"fullScreen"},decls:141,vars:47,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"],["appearance","outline","aria-label","Did you send the Chrome feedback report?"],["value","NO"],["value","DESKTOP"],["value","ANDROID"],["value","IOS"],["value","OTHER"],
["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=t();K(0,"mat-stepper",3)(1,"mat-step",4)(2,"h2");S(3,"Report an issue with Chromium");L();K(4,"h3");S(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. ");L();M(6,"br");K(7,"h4",5);S(8,"Please select your following role:");L();K(9,"wizard-persona-picker",6);N("personaChange",function(f){u(c);b.model.category=void 0;b.model.persona=
f;return v()});L();F(10,P7b,20,6)(11,R7b,10,2,"div");L();K(12,"mat-step",7)(13,"h2");S(14);L();K(15,"h3");S(16,"Please confirm that the following version information is correct.");L();K(17,"h4",8);S(18,"Operating System:");L();K(19,"mat-form-field",9)(20,"mat-select",10);Eg("ngModelChange",function(f){u(c);Dg(b.model.os,f)||(b.model.os=f);return v(f)});K(21,"mat-option",11);S(22,"Android");L();K(23,"mat-option",11);S(24,"Chrome OS");L();K(25,"mat-option",11);S(26,"iOS");L();K(27,"mat-option",11);
S(28,"Linux");L();K(29,"mat-option",11);S(30,"Mac OS");L();K(31,"mat-option",11);S(32,"Windows");L();K(33,"mat-option",11);S(34,"Unknown/Other");L()()();K(35,"h4",12);S(36,"Channel:");L();K(37,"mat-form-field",13)(38,"mat-select",14);Eg("ngModelChange",function(f){u(c);Dg(b.model.channel,f)||(b.model.channel=f);return v(f)});K(39,"mat-option",15);S(40,"Not sure");L();K(41,"mat-option",16);S(42,"Stable");L();K(43,"mat-option",17);S(44,"Beta");L();K(45,"mat-option",18);S(46,"Dev");L();K(47,"mat-option",
19);S(48,"Canary");L()()();M(49,"br");K(50,"h4",8);S(51,"Chrome version:");L();K(52,"mat-form-field",20)(53,"input",21);Eg("ngModelChange",function(f){u(c);Dg(b.model.version,f)||(b.model.version=f);return v(f)});L()();K(54,"h4",5);S(55,"Please enter a one line summary (100 character limit)");L();K(56,"mat-form-field",22)(57,"textarea",23,0);Eg("ngModelChange",function(f){u(c);Dg(b.model.summary,f)||(b.model.summary=f);return v(f)});S(59,"      ");L();F(60,S7b,2,0,"mat-error");L();K(61,"h4");S(62,
" (Optional) Send a Chrome feedback report to help the investigation");L();K(63,"p");S(64," This is often necessary to reproduce an issue which isn't consistent in reproducing for all users. ");L();K(65,"ol")(66,"li");S(67," Open Chrome. Go to Help > Report an issue. ");L();K(68,"li");S(69,' The description should be the same as the "one line summary" above. ');L();K(70,"li");S(71," Send the report. ");L()();K(72,"h4");S(73," Did you send the Chrome feedback report?");L();K(74,"mat-form-field",24)(75,
"mat-select",14);Eg("ngModelChange",function(f){u(c);Dg(b.model.chromeFeedback,f)||(b.model.chromeFeedback=f);return v(f)});K(76,"mat-option",25);S(77,"No - I didn't.");L();K(78,"mat-option",26);S(79,"Yes - I did on Windows, Linux or Mac OS.");L();K(80,"mat-option",27);S(81,"Yes - I did on Android.");L();K(82,"mat-option",28);S(83,"Yes - I did on iOS.");L();K(84,"mat-option",29);S(85,"Yes - I did on other platform.");L()()();K(86,"h4",5);S(87,"Steps to reproduce problem (5000 character limit)");L();
K(88,"mat-form-field",22)(89,"textarea",30,1);Eg("ngModelChange",function(f){u(c);Dg(b.model.reproSteps,f)||(b.model.reproSteps=f);return v(f)});S(91,"      ");L();F(92,T7b,2,0,"mat-error");L();K(93,"h4",5);S(94,"Please describe the problem (5000 character limit)");L();K(95,"mat-form-field",22)(96,"textarea",31,2);Eg("ngModelChange",function(f){u(c);Dg(b.model.description,f)||(b.model.description=f);return v(f)});S(98,"      ");L();F(99,U7b,2,0,"mat-error");L();K(100,"h4");S(101,"Did this work before?");
L();K(102,"mat-form-field",32)(103,"mat-select",14);Eg("ngModelChange",function(f){u(c);Dg(b.model.regression,f)||(b.model.regression=f);return v(f)});K(104,"mat-option",33);S(105,"Not applicable or don't know");L();K(106,"mat-option",34);S(107,"Yes - This is a regression");L();K(108,"mat-option",35);S(109,"No - I think it never worked");L()()();K(110,"div",36)(111,"button",37);M(112,"mat-icon",38);S(113," Back ");L();K(114,"button",39);S(115," Next ");M(116,"mat-icon",40);L()()();K(117,"mat-step",
41)(118,"h2");S(119,"Extra information about the issue");L();F(120,V7b,1,1,"wizard-custom-questions",42);K(121,"h4");S(122,"Additional comments");L();K(123,"mat-form-field",22)(124,"textarea",43);Eg("ngModelChange",function(f){u(c);Dg(b.model.comments,f)||(b.model.comments=f);return v(f)});L()();K(125,"h4");S(126,"Upload any relevant attachments");L();K(127,"b-attachment-uploader",44);N("onUploadComplete",function(){u(c);return v(b.enableSubmit())})("onUploadCancel",function(f){u(c);b.removeUpload(f);
return v(b.enableSubmit())});L();K(128,"div",45)(129,"b-attachment-selector",46);N("onSelect",function(f){u(c);b.uploadFile(f);b.isSubmitEnabled=!1;return v()});L();S(130," You can include multiple attachments. ");L();F(131,W7b,2,0,"div",47);K(132,"div",36)(133,"button",37);M(134,"mat-icon",38);S(135," Back ");L();K(136,"button",48);N("click",function(){u(c);return v(b.submit())});S(137," Submit ");L()()();E(138,X7b,0,0,"ng-template",49)(139,Y7b,0,0,"ng-template",50)(140,Z7b,0,0,"ng-template",51);
L()}if(a&2){a=Q(58);var d=Q(90),e=Q(97);yg("bv2-view",b.fullScreen)("hide-dots",b.model.persona===b.Persona.CONTRIBUTOR);I("disableRipple",!0);B();I("completed",O7b(b,0));B(8);I("persona",b.model.persona);B();G(b.model.persona!==b.Persona.CONTRIBUTOR?10:11);B(2);If("aria-label",Gg("Details for problems with ",b.model.category==null?null:b.model.category.title));I("completed",O7b(b,1));B(2);T("Details for problems with ",b.model.category==null?null:b.model.category.title);B(6);Cg("ngModel",b.model.os);
B();I("value",b.PlatformOs.ANDROID);B(2);I("value",b.PlatformOs.CHROME);B(2);I("value",b.PlatformOs.IOS);B(2);I("value",b.PlatformOs.LINUX);B(2);I("value",b.PlatformOs.MAC);B(2);I("value",b.PlatformOs.WINDOWS);B(2);I("value",b.PlatformOs.UNKNOWN);B(5);Cg("ngModel",b.model.channel);B(15);Cg("ngModel",b.model.version);B(4);Cg("ngModel",b.model.summary);I("customValidators",Kg(40,V3d,b.nonEmptyValidator));B(3);G(a.invalid&&(a.dirty||a.touched)?60:-1);B(15);Cg("ngModel",b.model.chromeFeedback);B(14);
Cg("ngModel",b.model.reproSteps);I("customValidators",Lg(42,W3d,b.reproStepsValidator,b.nonEmptyValidator));B(3);G(d.invalid&&(d.dirty||d.touched)?92:-1);B(4);Cg("ngModel",b.model.description);I("customValidators",Kg(45,V3d,b.nonEmptyValidator));B(3);G(e.invalid&&(e.dirty||e.touched)?99:-1);B(4);Cg("ngModel",b.model.regression);B(11);I("disabled",!O7b(b,1));B(6);G(b.model.category?120:-1);B(4);Cg("ngModel",b.model.comments);B(3);I("uploads",b.uploads);B(2);I("includeTextLabel",!0);B(2);G(b.enableRecaptcha?
131:-1);B(5);I("disabled",!b.isSubmitEnabled||!b.isCaptchaValid())}},dependencies:[cY,fY,L6,M6,e5,mC,xi,PB,hC,iC,WB,ZA,XA,TA,N6,H3d,NBd,OBd,QBd,PK,OK,wI,DB,qB,BB,rB,qC,EB,oC,qT,pT,hI,GA,iz,W6,X6,O3d,U6,V6,F3d,GX],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 Z6=function(){this.activeSession=q(Zu);this.routeParams=q(hR);this.router=q(CF);this.userAccess=q(lO);this.rootComponentId=this.activeSession.getEnvironmentType()==="QA"?Vzc.default:Wzc.default};
Z6.prototype.canActivate=function(){var a=this,b,c;return y(function(d){if(d.nextAddress==1)return(c=a.activeSession.getFlag("enableChromeWizard")&&((b=a.activeSession.getTracker())==null?void 0:b.trackerId)==="157"&&!a.routeParams.template&&!a.routeParams.noWizard)?z(d,mO(a.userAccess,"writer","components/"+a.rootComponentId+"/issueDefaults"),3):d.jumpTo(2);d.nextAddress!=2&&(c=!d.yieldResult);return c?d.return(DF(a.router,["issues/wizard"])):d.return(!0)})};
Z6.\u0275fac=function(a){return new (a||Z6)};Z6.\u0275prov=Cc({token:Z6,factory:Z6.\u0275fac,providedIn:"root"});var $6=function(){var a=this;this.userResources=q(TN);this.history=q(U1);this.router=q(CF);this.activeSession=q(Zu);this.viewIssues=Nr;this.createIssue=q7a;this.componentSettings=r7a;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})};$6.prototype.back=function(){V1(this.history)};$6.prototype.filterTrackerComponents=function(a){return!this.trackerId||a.trackerId===this.trackerId};$6.\u0275fac=function(a){return new (a||$6)};
$6.\u0275cmp=C({type:$6,selectors:[["components-screen-wrapper"]],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&&(K(0,"article",2)(1,"header",3)(2,"div",4)(3,
"button",5),N("click",function(){return b.back()}),M(4,"mat-icon",6),L(),K(5,"h2"),S(6,"Components"),L()(),K(7,"div",7),F(8,c8b,2,0,"a",8),K(9,"b-slide-toggle",9),N("modelChange",function(d){return b.includeArchived=d}),L()()(),K(10,"section",10)(11,"h3"),S(12,"Search"),L(),K(13,"b-team-component-picker",11),N("selectedComponentChange",function(d){d!=null&&hu(b.router,r7a(d.componentId).path)}),L(),K(14,"h3",12),S(15,"Recent Components"),L(),K(16,"div",13),F(17,g8b,4,1),U(18,"async"),L(),K(19,"p",
14)(20,"a",15),S(21,"See all Components"),L()()()());if(a&2){var c;B(8);G(b.isInternalSession?8:-1);B();I("model",b.includeArchived);B(4);I("includeArchived",b.includeArchived)("placeholder",b.placeholder)("ariaLabel",b.placeholder);B(4);G((c=W(18,6,b.recentComponents$))?17:-1,c)}},dependencies:[FV,IV,ZA,XA,TA,VA,hK,AK,uK,vK,zK,wK,iz,MA,bU,EF,EN,VV,NV,py],encapsulation:2});var Y3d=["bookmarkGroupName"],a7=function(){var a=q(HX);LO.call(this);var b=this;this.location=q(US);this.appHistory=q(U1);this.snackBar=q(LD);this.bookmarkGroupsApi=q(lN);this.paths=q(wV);this.analytics=q(PO);this.errorHandler=q(ZM);this.appEvents=q(DN);this.error="";this.isSaving=!1;this.bookmarkGroupUnderEdit=new TB({name:new VB("",vi),description:new VB("")});this.subscriptions.add(IX(a,function(){return!(!b.name()&&!b.description())},!1))};Z(a7,LO);a7.\u0275dir=LO.\u0275dir;h=a7.prototype;
h.ngAfterViewInit=function(){this.bookmarkGroupName.nativeElement.focus()};
h.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)}))};h.validate=function(){if(this.name()==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};h.back=function(){V1(this.appHistory)};h.revertChanges=function(){this.bookmarkGroupUnderEdit.reset()};h.name=function(){var a,b=(a=this.bookmarkGroupUnderEdit.get("name"))==null?void 0:a.value;return b?b:""};
h.description=function(){var a,b=(a=this.bookmarkGroupUnderEdit.get("description"))==null?void 0:a.value;return b?b:""};a7.\u0275fac=function(a){return new (a||a7)};
a7.\u0275cmp=C({type:a7,selectors:[["b-create-bookmark-group"]],viewQuery:function(a,b){a&1&&kg(Y3d,5);if(a&2){var c;og(c=pg())&&(b.bookmarkGroupName=c.first)}},features:[Ff],decls:27,vars:9,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"],["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=t();K(0,"div",1)(1,"div",2)(2,"button",3);N("click",function(){u(c);return v(b.back())});M(3,"mat-icon",4);L();K(4,"h2");S(5,"Create a new bookmark group");L()()();K(6,"div",5)(7,"div",6)(8,"form",7);M(9,"b-error-banner",8);K(10,"div",9)(11,"label",10);S(12,"Name");L();M(13,"input",11,0);L();K(15,"div",9)(16,"label",12);S(17,"Description");L();K(18,"textarea",13);S(19,"        ");L()();K(20,"p",14);S(21," Advanced settings such as selected items and access controls may be defined once the bookmark group is created. ");
L();K(22,"div",15)(23,"button",16);N("click",function(){u(c);return v(b.save())});S(24," Save ");L();K(25,"button",17);N("click",function(){u(c);return v(b.revertChanges())});S(26," Revert changes ");L()()()()()}a&2&&(B(8),I("formGroup",b.bookmarkGroupUnderEdit),B(),I("error",b.error),B(),yg("bv2-edit-resource-readonly",b.isSaving),B(3),I("disabled",b.isSaving),B(2),yg("bv2-edit-resource-readonly",b.isSaving),B(3),I("disabled",b.isSaving),B(5),I("disabled",b.isSaving))},dependencies:[c4,mC,XB,xi,
PB,QB,hC,ZA,XA,TA,VA,hK,iz,MA,nC,dC,cC],encapsulation:2});var Z3d=["form"],b7=function(){LO.call(this);this.butterBar=q(JM);this.paths=q(wV);this.routeParams=q(hR);this.analytics=q(PO);this.appHistory=q(U1);this.bLocation=q(US);this.activeSession=q(Zu);this.documentationLinks=q(OQ);this.componentActions=q(JV);this.component={parentComponentId:"",name:"",description:"",commentEditState:"DISABLED"};this.parentComponentInternal=null;this.sessionIsExternal=this.activeSession.isExternalSession();this.commentEditsEnabled=this.componentIsValid=this.retentionIsValid=
this.isSaving=!1;this.routeParams.parentId&&this.loadParentComponent(String(this.routeParams.parentId))};Z(b7,LO);b7.\u0275dir=LO.\u0275dir;h=b7.prototype;h.ngAfterViewInit=function(){};
h.create=function(){var a=this;this.validate()&&(fs(this.butterBar,"Saving component...",0),this.isSaving=!0,this.component.parentComponentId=this.parentComponent.componentId,this.componentActions.create(this.component).then(function(b){fs(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(zs.editComponent.makeHref(b.componentId))},a.activeSession.getCreateComponentRedirectDelay())}).catch(function(b){a.butterBar.showWarning(iq(b),0);a.isSaving=!1}))};h.back=function(){V1(this.appHistory)};
h.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};h.loadParentComponent=function(a){var b=this;this.componentActions.getUncached(a).then(function(c){b.parentComponent=c})};
h.setCommentEditState=function(a){this.commentEditsEnabled=a;this.component.commentEditState=this.commentEditsEnabled?"ENABLED":"DISABLED"};h.onComponentSelect=function(a){this.parentComponent=a;$3d(this)};h.accessCheckComplete=function(a){this.componentIsValid=a;$3d(this)};
var $3d=function(a){a.parentComponent?(a.component.commentEditState=a.parentComponent.commentEditState,a.commentEditsEnabled=a.component.commentEditState==="ENABLED"):(a.component.commentEditState="DISABLED",a.commentEditsEnabled=!1)};da.Object.defineProperties(b7.prototype,{parentComponent:{configurable:!0,enumerable:!0,get:function(){return this.parentComponentInternal},set:function(a){this.parentComponentInternal=a;$3d(this)}}});b7.\u0275fac=function(a){return new (a||b7)};
b7.\u0275cmp=C({type:b7,selectors:[["create-component-page"]],viewQuery:function(a,b){a&1&&kg(Z3d,5);if(a&2){var c;og(c=pg())&&(b.createComponentForm=c.first)}},features:[Ff],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=t();K(0,"div",1)(1,"div",2)(2,"b-button",3);N("onAction",function(){u(c);return v(b.back())});M(3,"b-icon",4);L()()();K(4,"div",5)(5,"h2",6);S(6,"Create component");L();K(7,"div",7)(8,"form",8,0);M(10,"b-error-banner",
9);K(11,"div",10)(12,"label",11)(13,"span",12);S(14,"Name");L()();K(15,"input",13);Eg("ngModelChange",function(d){u(c);Dg(b.component.name,d)||(b.component.name=d);return v(d)});L()();K(16,"div",10)(17,"label",14)(18,"span",12);S(19,"Description");L()();K(20,"textarea",15);Eg("ngModelChange",function(d){u(c);Dg(b.component.description,d)||(b.component.description=d);return v(d)});S(21,"        ");L()();K(22,"div",10)(23,"label",16)(24,"span",12);S(25,"Parent Component");L()();K(26,"b-team-component-picker",
17);N("selectedComponentChange",function(d){u(c);return v(b.onComponentSelect(d!=null?d:null))})("accessCheckComplete",function(d){u(c);return v(b.accessCheckComplete(d))});L()();K(27,"div",18)(28,"div",19)(29,"mat-checkbox",20);N("change",function(d){u(c);return v(b.setCommentEditState(d.checked))});L()();K(30,"div")(31,"strong",21);S(32,"Editable Comments");L();K(33,"div",22);S(34," When checked, users with comment access can modify their own issue comments, and editors can modify the first issue comment. ");
F(35,i8b,2,1,"a",23);L()()();K(36,"div",10)(37,"label",24)(38,"span",12);S(39,"Retention Settings");L()();K(40,"div",21)(41,"p");S(42,"Please choose a period of time to retain the data stored in this component.");M(43,"br");K(44,"a",23);S(45," Learn more ");L()()();K(46,"div",25)(47,"b-retention-settings-form",26);N("modelChange",function(d){u(c);return v(b.component.retentionSettings=d)})("validChange",function(d){u(c);return v(b.retentionIsValid=d)});L()()();K(48,"p",27);S(49," Advanced settings such as custom field and access controls may be defined once the component is created. ");
L();K(50,"div",28)(51,"b-button",29);N("onAction",function(){u(c);return v(b.create())});S(52," Save ");L();K(53,"b-button",30);N("onAction",function(){u(c);return v(b.back())});S(54," Discard ");L()()()()()}a&2&&(B(8),yg("show-errors",b.error),B(2),I("error",b.error),B(),yg("bv2-edit-resource-readonly",b.isSaving),B(4),I("bFocus",!0),Cg("ngModel",b.component.name),I("disabled",b.isSaving)("required",!0),B(),yg("bv2-edit-resource-readonly",b.isSaving),B(4),Cg("ngModel",b.component.description),I("disabled",
b.isSaving),B(2),yg("bv2-edit-resource-readonly",b.isSaving),B(4),I("selectedComponent",b.parentComponent)("placeholder","Choose Component")("isRequired",!0)("checkAdminAccess",!0),B(),yg("bv2-edit-resource-readonly",b.isSaving),B(2),I("checked",b.commentEditsEnabled),B(6),G(b.sessionIsExternal?-1:35),B(9),I("href",Tu(),Me),B(2),yg("bv2-edit-resource-readonly",b.isSaving),B(),I("issueRetentionDisabled",b.isSaving)("isExternal",rt(b.parentComponent))("componentPathInfo",b.parentComponent==null?null:
b.parentComponent.componentPathInfo)("initialModel",b.component.retentionSettings),B(4),I("disabled",b.isSaving||!b.componentIsValid),B(2),I("disabled",b.isSaving))},dependencies:[YT,c4,kW,mC,XB,xi,PB,QB,hC,WB,UB,PK,OK,wI,hS,Y4,VV],styles:["b-team-component-picker[_ngcontent-%COMP%]{display:block;width:600px}\n/*# sourceMappingURL=create_component_page.css.map */"]});var a4d=["hotlistName"],c7=function(){var a=q(HX);LO.call(this);var b=this;this.location=q(US);this.appHistory=q(U1);this.snackBar=q(LD);this.hotlistApi=q(PN);this.analytics=q(PO);this.errorHandler=q(ZM);this.appEvents=q(DN);this.error="";this.isSaving=!1;this.hotlistUnderEdit=new TB({name:new VB("",vi),description:new VB("")});this.subscriptions.add(IX(a,function(){return!(!b.name()&&!b.description())},!1))};Z(c7,LO);c7.\u0275dir=LO.\u0275dir;h=c7.prototype;h.ngAfterViewInit=function(){this.hotlistName.nativeElement.focus()};
h.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(zs.editHotlist.makeHref(b.hotlistId));a.revertChanges()}).catch(function(b){a.isSaving=
!1;a.errorHandler.errorHandler(null,b)}))};h.validate=function(){if(this.name()==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};h.back=function(){V1(this.appHistory)};h.revertChanges=function(){this.hotlistUnderEdit.reset()};h.name=function(){var a,b=(a=this.hotlistUnderEdit.get("name"))==null?void 0:a.value;return b?b:""};h.description=function(){var a,b=(a=this.hotlistUnderEdit.get("description"))==null?void 0:a.value;return b?b:""};
c7.\u0275fac=function(a){return new (a||c7)};
c7.\u0275cmp=C({type:c7,selectors:[["b-create-hotlist"]],viewQuery:function(a,b){a&1&&kg(a4d,5);if(a&2){var c;og(c=pg())&&(b.hotlistName=c.first)}},features:[Ff],decls:27,vars:9,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"],["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=t();K(0,"div",1)(1,"div",
2)(2,"button",3);N("click",function(){u(c);return v(b.back())});M(3,"mat-icon",4);L();K(4,"h2");S(5,"Create a new hotlist");L()()();K(6,"div",5)(7,"div",6)(8,"form",7);M(9,"b-error-banner",8);K(10,"div",9)(11,"label",10);S(12,"Name");L();M(13,"input",11,0);L();K(15,"div",9)(16,"label",12);S(17,"Description");L();K(18,"textarea",13);S(19,"        ");L()();K(20,"p",14);S(21," Advanced settings such as access controls may be defined once the hotlist is created. ");L();K(22,"div",15)(23,"button",16);
N("click",function(){u(c);return v(b.save())});S(24," Save ");L();K(25,"button",17);N("click",function(){u(c);return v(b.revertChanges())});S(26," Revert changes ");L()()()()()}a&2&&(B(8),I("formGroup",b.hotlistUnderEdit),B(),I("error",b.error),B(),yg("bv2-edit-resource-readonly",b.isSaving),B(3),I("disabled",b.isSaving),B(2),yg("bv2-edit-resource-readonly",b.isSaving),B(3),I("disabled",b.isSaving),B(5),I("disabled",b.isSaving))},dependencies:[c4,mC,XB,xi,PB,QB,hC,ZA,XA,TA,VA,hK,iz,MA,nC,dC,cC],encapsulation:2});var d7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,d7.messageId)};Z(d7,X);d7.prototype.getContent=function(){return Fi(this,1,void 0,fb)};d7.prototype.setContent=function(a){return Gj(this,1,a,fb)};d7.prototype.hasContent=function(){return xm(this,1,fb)};d7.messageId="b.LlmGenericRequest";var b4d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,b4d.messageId)};Z(b4d,X);b4d.messageId="b.LlmGenericResponse";var e7=function(){this.executor=q(SM)};e7.prototype.suggestIssueTitle=function(a){a=(new d7).setContent(a);return this.executor.post({url:"/action/llm/suggest_title",body:a,responseConstructor:b4d}).then(function(b){var c;return(c=Fi(b,1,void 0,fb))!=null?c:""})};e7.\u0275fac=function(a){return new (a||e7)};e7.\u0275prov=Cc({token:e7,factory:e7.\u0275fac,providedIn:"root"});var f7=function(){this.isGeneratingTitle=new Xj(!1);this.generatedTitle=new Xj(null);this.suggestTitleRequested=new rf};f7.\u0275fac=function(a){return new (a||f7)};f7.\u0275prov=Cc({token:f7,factory:f7.\u0275fac,providedIn:"root"});var g7=function(){LO.call(this);var a=this;this.activeSession=q(Zu);this.butterBar=q(JM);this.analytics=q(PO);this.llmSuggestTitleService=q(f7);this.llmApi=q(e7);this.suggestedTitle=new KO;this.enableSuggestTitle=this.activeSession.getFlag("enableSuggestTitle")||!1;this.llmSuggestTitleService.suggestTitleRequested.asObservable().pipe(Af(this.destroyed$)).subscribe(function(){a.suggestIssueTitle()})};Z(g7,LO);g7.\u0275dir=LO.\u0275dir;
g7.prototype.suggestIssueTitle=function(){var a=this,b;return y(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 z(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);fs(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);$d(c)})};g7.\u0275fac=function(a){return new (a||g7)};
g7.\u0275cmp=C({type:g7,selectors:[["llm-suggest-title-button"]],inputs:{description:"description"},outputs:{suggestedTitle:"suggestedTitle"},features:[Ff],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&&(K(0,"button",0),N("click",function(){return b.suggestIssueTitle()}),M(1,"mat-icon",1),S(2," Suggest title\n"),L());a&2&&I("matTooltip",b.description.value===""?"Enter a description to suggest a title":"Generate AI-suggested title for this issue")("disabled",b.description.value==="")},dependencies:[ZA,XA,TA,hK,iz,MA],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 c4d=[[["","mainSegment",""]],[["","dropdownSegment",""]]],d4d=function(){this.mainSegment=!0};d4d.\u0275fac=function(a){return new (a||d4d)};d4d.\u0275dir=af({type:d4d,selectors:[["button","mainSegment",""]],hostVars:2,hostBindings:function(a,b){a&2&&yg("main-segment",b.mainSegment)}});var h7=function(){this.dropdownAriaLabel=this.dropdownTooltip="";this.disabled=!1;this.size="large";this.dialogClosed=new KO;this.dialogOpened=new KO};h7.prototype.ngAfterContentInit=function(){};
h7.prototype.ngOnChanges=function(a){a.dropdownTooltip&&!this.dropdownAriaLabel&&(this.dropdownAriaLabel=this.dropdownTooltip)};da.Object.defineProperties(h7.prototype,{expanded:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.trigger)==null?void 0:a.isOpen)!=null?b:!1}}});h7.\u0275fac=function(a){return new (a||h7)};
h7.\u0275cmp=C({type:h7,selectors:[["split-button"]],contentQueries:function(a,b,c){a&1&&lg(c,d4d,5);if(a&2){var d;og(d=pg())&&(b.mainSegment=d.first)}},viewQuery:function(a,b){a&1&&kg(LT,5);if(a&2){var c;og(c=pg())&&(b.trigger=c.first)}},hostVars:2,hostBindings:function(a,b){a&2&&yg("expanded",b.expanded)},inputs:{dropdownTooltip:"dropdownTooltip",dropdownAriaLabel:"dropdownAriaLabel",disabled:"disabled",size:"size"},outputs:{dialogClosed:"dialogClosed",dialogOpened:"dialogOpened"},exportAs:["splitButton"],
features:[Gx],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=t();fg(c4d);gg(0);K(1,"button",
2,0);N("click",function(){u(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 g;(g=b.trigger)==null||g.open()}return v()})("onedevPopupPanelTriggerOpened",function(){u(c);return v(b.dialogOpened.emit())})("onedevPopupPanelTriggerClosed",function(){u(c);return v(b.dialogClosed.emit())});M(3,"mat-icon",3);L();K(4,"onedev-popup-panel",4,1)(6,"div",5);gg(7,1);L()()}a&2&&(a=Q(5),B(),zg(Gg("dropdown-button ",b.size)),I("onedevPopupPanelTriggerFor",
a)("matTooltip",b.dropdownTooltip)("disabled",b.disabled),Jf("aria-label",b.dropdownAriaLabel))},dependencies:[ZA,XA,VA,hK,iz,MA,VT,KT,LT],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 e4d=new Map([["TOTALLY_INCORRECT","Totally incorrect"],["MISSING_IMPORTANT_INFO","Missing important info"],["OTHER","Other"]]),i7=function(){LO.apply(this,arguments);this.butterBar=q(JM);this.analytics=q(PO);this.llmSuggestTitleService=q(f7);this.suggestionAccepted=new KO;this.isGeneratingTitle$=this.llmSuggestTitleService.isGeneratingTitle.asObservable().pipe(wf({refCount:!0,bufferSize:1}));this.suggestedTitle$=this.llmSuggestTitleService.generatedTitle.asObservable().pipe(wf({refCount:!0,bufferSize:1}));
this.isVisible$=he([this.llmSuggestTitleService.isGeneratingTitle.asObservable(),this.llmSuggestTitleService.generatedTitle.asObservable()]).pipe(Af(this.destroyed$),A(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=e4d};Z(i7,LO);i7.\u0275dir=LO.\u0275dir;
var m8b=function(a){var b;return y(function(c){if(c.nextAddress==1)return z(c,ee(a.llmSuggestTitleService.generatedTitle.asObservable()),2);b=c.yieldResult;if(!b)return c.return();a.analytics.trackEvent("llm","accept","title");a.suggestionAccepted.emit(b);a.llmSuggestTitleService.generatedTitle.next(null);$d(c)})};i7.prototype.close=function(){this.llmSuggestTitleService.generatedTitle.next(null)};i7.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(i7)))(b||i7)}}();
i7.\u0275cmp=C({type:i7,selectors:[["llm-suggest-title-preview"]],outputs:{suggestionAccepted:"suggestionAccepted"},features:[Ff],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&&(F(0,n8b,27,13,"div",1),U(1,"async"));a&2&&G(W(1,1,b.isVisible$)?0:-1)},dependencies:[ZA,XA,TA,VA,hK,iz,JF,MA,VS,h7,d4d,py],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 j7=function(){LO.call(this);var a=this;this.similarIssuesApi=q(bW);this.analytics=q(PO);this.activeSession=q(Zu);this.hasSearched=this.isLoading=!1;this.loadedIssueCount=0;this.componentId$=new vf(1);this.contextRaw$=new vf(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(A(function(b){return b.trim()}),te(function(b){return b.length>=7}),kf(200));this.issues$=he([this.componentId$,this.searchString$]).pipe(zf(function(b){var c=l(b);b=c.next().value;c=c.next().value;a.isLoading=!0;return wDd(a.similarIssuesApi,{scope:"componentId:"+b+" modified:365d status:open",scopeSortOrder:"vote_count desc",maxResults:15,keyword:c})}),hf(function(b){pn("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 be({similarIssues:[],scores:[]})}),A(function(b){return r8b(b)}),Bf(function(b){a.isLoading=!1;a.hasSearched=!0;a.loadedIssueCount=b.length}));this.issueIds$=this.issues$.pipe(A(function(b){return b.map(function(c){return c.issueId})}));this.subscriptions.add(this.issues$.pipe(A(function(b){return b.length})).subscribe(function(b){a.analytics.trackEvent("similarIssues",
"loaded","possible-dupes-"+b,b)}))};Z(j7,LO);j7.\u0275dir=LO.\u0275dir;
da.Object.defineProperties(j7.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 Pr(this.componentId$)}},context:{configurable:!0,enumerable:!0,set:function(a){this.contextRaw$.next(a!=null?a:"")}}});
j7.\u0275fac=function(a){return new (a||j7)};
j7.\u0275cmp=C({type:j7,selectors:[["similar-issues"]],hostVars:4,hostBindings:function(a,b){a&2&&yg("thinking-on-empty",b.isThinkingOnEmpty)("is-empty-state",b.isEmpty)},inputs:{componentId:"componentId",context:"context"},features:[Ff],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&&(K(0,"div",0),M(1,"mat-icon",1),K(2,"h3",2),S(3,"Possible duplicates"),L(),F(4,o8b,2,0,"a",3),F(5,p8b,1,0,"b-spinner"),L(),F(6,q8b,1,3,"b-issues-table",4),U(7,"async"));if(a&2){var c;B(4);G(b.isInternal?4:-1);B();G(b.isLoading&&!b.isThinkingOnEmpty?5:-1);B();G((c=W(7,3,b.issueIds$))?6:-1,c)}},dependencies:[ZA,XA,VA,hK,g_,iz,MA,VS,py],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 f4d=["popOver"],t8b=function(a){return{$implicit:a}},B8b=function(a){return{editingValue:a}},k7=function(){this.injector=q(xe);this.val="";this.allowMultipleLines=!0;this.disabled=this.centerEditIcon=this.newlineWithEnterKey=!1;this.overlayMinWidth=null;this.hasBackdrop=!0;this.openPopOverOnInit=this.fitPopoverToViewport=!1;this.required=Qg.apply(null,[!1].concat(n([])));this.valueChange=new ui;this.editorOpen=new ui;this.editing=this.headerFocused=!1;this.editingValue=new VB("",{nonNullable:!0});
this.onChange=function(){};this.onTouched=function(){}};Z(k7,OT);h=k7.prototype;h.ngOnInit=function(){var a=this.injector.get(NB,null),b;(a==null?0:(b=a.control)==null?0:b.validator)&&this.editingValue._assignValidators(a.control.validator);this.required()&&(a=this.editingValue,b=Wta(a._rawValidators),a._assignValidators(b))};h.ngAfterViewInit=function(){this.openPopOverOnInit&&this.startEditing()};h.valueChanged=function(){return this.editingValue.value!==this.value};
h.startEditing=function(){this.disabled||(this.onTouched(),this.editing=!0,this.editingValue.setValue(this.value),this.popOver.open(),this.editorOpen.emit({isOpen:!0}))};h.stopEditing=function(a){this.editing=!1;(this.required()?this.editingValue.valid: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})):this.editorOpen.emit({isOpen:!1,closeAction:1})};
h.writeValue=function(a){a!=null&&(this.val=a,this.editing||this.editingValue.setValue(a))};h.isActive=function(){return this.headerFocused||this.editing};h.registerOnChange=function(a){this.onChange=a};h.registerOnTouched=function(a){this.onTouched=a};h.setDisabledState=function(a){this.disabled=a};da.Object.defineProperties(k7.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});
k7.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(k7)))(b||k7)}}();
k7.\u0275cmp=C({type:k7,selectors:[["onedev-text-field"]],viewQuery:function(a,b){a&1&&kg(f4d,7);if(a&2){var c;og(c=pg())&&(b.popOver=c.first)}},inputs:{value:"value",allowMultipleLines:"allowMultipleLines",multilineMaxLines:"multilineMaxLines",newlineWithEnterKey:"newlineWithEnterKey",centerEditIcon:"centerEditIcon",disabled:"disabled",labelledById:"labelledById",valueTemplate:"valueTemplate",overlayMinWidth:"overlayMinWidth",editorTemplate:"editorTemplate",hasBackdrop:"hasBackdrop",fitPopoverToViewport:"fitPopoverToViewport",
openPopOverOnInit:"openPopOverOnInit",required:[1,"required"]},outputs:{valueChange:"valueChange",editorOpen:"editorOpen"},standalone:!1,features:[Ig([{provide:KB,useExisting:Tc(function(){return k7}),multi:!0},{provide:OT,useExisting:Tc(function(){return k7}),multi:!0}]),Ff],decls:11,vars:11,consts:[["anchor",""],["standardValueDisplay",""],["popOver","onedevPopOverEditPanel"],["inputTemplate",""],["singleLineTemplate",""],["type","button",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","minWidth","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","required","cdkAutosizeMaxRows",4,"ngIf","ngIfElse"],["spellcheck","false","autocomplete","off","cdkTextareaAutosize","","cdkAutosizeMinRows","1",3,"formControl","required","cdkAutosizeMaxRows"],["spellcheck","false","autocomplete","off",3,"formControl"]],template:function(a,b){if(a&1){var c=t();K(0,"button",5,0);N("click",function(){u(c);return v(b.startEditing())})("focus",
function(){u(c);return v(b.headerFocused=!0)})("blur",function(){u(c);return v(b.headerFocused=!1)});K(2,"span");E(3,u8b,2,4,"ng-container",6)(4,v8b,1,1,"ng-template",null,1,Og);L();E(6,w8b,2,2,"svg",7);L();K(7,"onedev-pop-over-edit-panel",8,2);N("closedWithAction",function(f){u(c);return v(b.stopEditing(f))});L();E(9,D8b,2,2,"ng-template",null,3,Og)}if(a&2){a=Q(1);var d=Q(5),e=Q(10);Jf("aria-labelledby",b.labelledById);B(3);I("ngIf",b.valueTemplate)("ngIfElse",d);B(3);I("ngIf",!b.disabled);B();I("anchor",
a)("minWidth",b.overlayMinWidth)("editorTemplate",e)("newlineWithEnterKey",b.newlineWithEnterKey)("hasBackdrop",b.hasBackdrop)("fitToViewport",b.fitPopoverToViewport)("saveDisabled",b.editingValue.invalid)}},dependencies:[jy,oy,xi,PB,hC,HB,uY,bC],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 l7=function(){};l7.\u0275fac=function(a){return new (a||l7)};l7.\u0275mod=$e({type:l7});l7.\u0275inj=Dc({imports:[xy,mC,IB,xY,nC]});var g4d=["descriptionConfirmDialog"],r9b=function(){return[]},U9b=function(){return{standalone:!1}},h4d=new bd("titleBannedWordsChecker"),i4d=new bd("descriptionBannedWordsChecker"),j4d={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?"}},m7=function(){LO.call(this);var a=this;this.routeParams=q(hR);this.hotkeys=q(dT);this.checkBeforeExit=q(HX);this.constants=q(SQ);this.ngZone=q(Tg);this.$log=q(XM);this.reloadService=q(B1);this.paths=q(wV);this.redirectUrl=q(o5);this.userAccess=q(lO);this.accessPolicy=q(tN);this.bLocation=q(US);this.appHistory=q(U1);this.issueTemplate=
q(v0d);this.issueTypeDialog=q(QQ);this.componentActions=q(JV);this.activeSession=q(Zu);this.draftStore=q(NQ);this.analytics=q(PO);this.issueApi=q(uO);this.hotlistApi=q(PN);this.butterBar=q(JM);this.errorHandler=q(ZM);this.matDialogService=q(gB);this.appEvents=q(DN);this.userPreferencesManager=q(VP);this.cdr=q(MO,{self:!0});this.issueRelationshipsFridge=q(XO);this.issueFullFridge=q(RO);this.componentFridge=q(AN);this.clearcut=q(HO);this.jspbPrincipalTypes=q(nP);this.trackerFridge=q(IP);this.customFieldHelper=
q(kR);this.titleBannedWordsChecker=q(h4d);this.descriptionBannedWordsChecker=q(i4d);this.confirmIssueAccessLimitSettingsService=q(f3);this.componentTemplateApi=q(CN);this.dismissalService=q($V);this.hostElement=q(Gd);this.currentUserBookmarksFridge=q(ZN);this.staffingDialogService=q(c3);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=Nr;this.userEmail=this.activeSession.getUserEmail();this.sessionIsExternal=this.activeSession.isExternalSession();this.enableRecaptcha=this.activeSession.userRequiresCaptcha();this.parseStringArray=Ou;this.joinStringArray=Nu;this.hotlistMap={};this.hotlists=[];this.templateTitle=this.templateComment="";this.appliedTemplate=null;this.urlTemplate=new n0d(this.routeParams,this.$log);this.isLoadingComponent=!1;this.descriptionBoxId="bv2-description";this.availablePredefinedTemplates=
[];this.selectedTemplateInternal=this.availableExistingIssueTemplate=null;this.autocompleteConfigService=q(gV);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.fieldConfigsV2=
[];this.customFieldAllowedValuesMap={};this.issue=Hm(Y9b);this.verifierText=this.reporterText=this.assigneeText=null;this.collaboratorsText=this.ccsText="";this.collaboratorGroupsText=[];this.audience="EXTERNAL";this.selectedComponent=null;this.selectedAccessLimitLevel="LIMIT_NONE";this.selectedComponentProcessedPromise=Promise.resolve(void 0);this.useCodefont=!1;this.hasAdvancedFieldsInUrlTemplate=p0d(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=lTa;this.toIssueSeverity=nTa;this.FieldType=AU;this.initialized=!1;this.trackerComponent$=le(function(){return be(a.activeSession.getTracker())}).pipe(zf(function(c){return c?a.componentFridge.watch(c.componentId).pipe(yf(void 0)):be(void 0)}));
this.trackerId$=new Xj(void 0);this.tracker$=this.trackerId$.pipe(zf(function(c){return c?a.trackerFridge.watch(c):be(void 0)}));this.titleAfterBlur$=new rf;this.similarIssuesSearchString$=this.titleAfterBlur$.pipe(nf(100));this.trackerCollaboratorGroups=[];this.enableSuggestTitle=this.activeSession.getFlag("enableSuggestTitle")&&this.activeSession.isInternalSession();this.onAnyClick=function(c){q0a(c).match("SIMILAR-ISSUES")&&(a.everClickedSimilarIssues=!0,a.analytics.trackEvent("similarIssues",
"click"))};this.getSingleEditFieldType=Meb;this.getListFieldType=rgb;this.didConfirmNavigateAway=function(){a.everShowedIssueHovercard||a.everClickedSimilarIssues?a.analytics.trackEvent("createIssue","abandon-happy"):a.analytics.trackEvent("createIssue","abandon-normal")};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.frontendIsInternalOrPartner=this.activeSession.isInternalSession()||LM(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.editIssueTypeChoices;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;W9b(this.issue,this);this.routeParams.description?this.comment=new fR(this.routeParams.description,!0):(b=this.draftStore.$window.sessionStorage.getItem(Zr("0"))||"",this.comment=new fR(b));this.comment.formattingMode=k4d(this);b=l4d(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(eT(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,m4d(this,this.componentRequestedInUrl)):this.componentAutocomplete?n4d(this,this.componentAutocomplete):(u0d(this.urlTemplate,this.issue),this.updateSelectedHotlists());this.templateIssueRequestedInUrl&&
(this.newIssueStarted=!0,o4d(this));this.originalIssueCopy=Hm(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(IX(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},
!1))};Z(m7,LO);m7.\u0275dir=LO.\u0275dir;m7.prototype.handleAutocompleteSelection=function(a,b){b==="assignee"?this.assigneeText=a:b==="verifier"?this.verifierText=a:this.reporterText=a;n7(this)};m7.prototype.isCaptchaValid=function(){return!this.enableRecaptcha||this.recaptchaResponse!==""};
var p4d=function(a){if(!a.templateTitle||!a.templateComment)return!1;var b=R9a(a.comment.value,a.templateComment);return R9a(a.issue.title,a.templateTitle)&&b},Q9b=function(a){return a.isSaving||a.isNavigatingAway||!a.canCreateNewIssuesInComponent||!a.isCaptchaValid()||!1};
m7.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||q4d(a,b))}))};m7.prototype.ngOnDestroy=function(){LO.prototype.ngOnDestroy.call(this);this.hostElement.nativeElement.removeEventListener("click",this.onAnyClick,!0)};
var n7=function(a){a.initialized&&a.ngZone.run(function(){a.cdr.detectChanges()})};m7.prototype.back=function(){V1(this.appHistory)};m7.prototype.onAccessLimitLevelSelected=function(a){this.selectedAccessLimitLevel=a};
var q4d=function(a,b){a.selectedComponent=b;a.selectedComponent?(a.issue=Object.assign({},a.issue,{componentId:a.selectedComponent.componentId}),a.originalIssueCopy.componentId=a.selectedComponent.componentId,r4d(a),a.audience=rt(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):(Dva(a.issue,"componentId"),a.audience="EXTERNAL");a.submitRequested=!1;s4d(a);a.selectedComponentProcessedPromise=Promise.all([t4d(a),u4d(a)]).then(function(){});return a.selectedComponentProcessedPromise};m7.prototype.isLiteralModeSupported=function(){return!this.selectedTemplate};
var v4d=function(a){a.assigneeText=a.assigneeText?a.assigneeText:null;a.verifierText=a.verifierText?a.verifierText:null;a.reporterText=a.reporterText?a.reporterText:null},I8b=function(a){return Zpb(a.selectedComponent)?"External Google partners may be able to see this issue.":st(a.selectedComponent)?"Public users may be able to see this issue.":""};
m7.prototype.getCollaboratorGroupsString=function(){return this.collaboratorGroupsText.length===0?"":this.collaboratorGroupsText.length>1?this.collaboratorGroupsText.length+" groups selected":this.collaboratorGroupsText[0]};m7.prototype.updateCollaboratorGroups=function(a){a&&a.collaboratorGroups&&(this.trackerCollaboratorGroups=Pm(a.collaboratorGroups),this.separateCollaboratorGroups())};
m7.prototype.separateCollaboratorGroups=function(){for(var a=[],b=new Set(this.trackerCollaboratorGroups),c=l(Ou(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=Nu(a);if(this.collaboratorGroupsText.length>0&&!st(this.selectedComponent)){var e;(e=this.advancedFieldsZippy)==null||e.open()}};
var o4d=function(a){var b=Number(a.templateIssueRequestedInUrl);Number.isNaN(b)?a.butterBar.showWarning("Invalid template_issue specified"):(a.availableExistingIssueTemplate=new w4d(b,"issue","Issue "+b,!1,"",!1),a.selectedTemplate=a.availableExistingIssueTemplate)},t4d=function(a){a.availablePredefinedTemplates=[];a.selectedTemplate&&a.selectedTemplate.type==="predefined"&&!x4d(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;xa(pu(f))&&(f=e.default?"(default template)":"(unnamed template)");return new w4d(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]);n7(a)}).catch(function(){a.butterBar.showWarning("Unable to load templates for this component")}):Promise.resolve(void 0)},x4d=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},u4d=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=mO(a.userAccess,"appender","components/"+b).then(function(f){a.canCreateNewIssuesInComponent=f;n7(a)}),e=mO(a.userAccess,
"writer",c).then(function(f){a.canEditIssuesInComponent=f;n7(a)});c=mO(a.userAccess,"reader",c).then(function(f){a.canViewIssuesInComponent=f;n7(a)});b=a.accessPolicy.checkComponentImplicitAccessEnabled(b).then(function(f){a.componentHasExpandedAccessEnabled=f;n7(a)});return Promise.all([d,e,c,b]).then(function(){y4d(a);n7(a)}).catch(function(f){a.$log.warn(f)}).finally(function(){a.createAclLoading=!1})},z4d=function(a,b){var c;st(a.selectedComponent)&&(c=a.selectedComponent)!=null&&c.trackerId&&
!Is(a.activeSession)&&a.canEditIssuesInComponent?(b=b.issueAccessLimitLevel||"LIMIT_NONE",b==="LIMIT_VIEW"||b==="LIMIT_VIEW_TRUSTED"?a.selectedAccessLimitLevel=b:(a.selectedAccessLimitLevel="LIMIT_VIEW_TRUSTED",fs(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.":"")))):a.selectedAccessLimitLevel=b.issueAccessLimitLevel||
"LIMIT_NONE"},C4d=function(a){a.selectedTemplate&&(a.selectedTemplate.type==="predefined"&&a.selectedComponent?a.componentTemplateApi.get(a.selectedTemplate.componentId,a.selectedTemplate.id).then(A4d(a,a.selectedComponent)).then(function(b){B4d(a,b)}).then(function(){n7(a)}).catch(function(b){a.butterBar.showWarning(b.message)}):a.selectedTemplate.type==="issue"&&(x0d(a.issueTemplate,String(a.selectedTemplate.id)).then(function(b){var c;if(Is(a.activeSession)&&((c=a.activeSession.getTracker())==
null?void 0:c.trackerId)!==b.trackerId)throw Error("Bg");c=Promise.resolve();!a.selectedComponent&&b.snapshot.componentId&&(c=m4d(a,b.snapshot.componentId));return c.then(function(){B4d(a,b)})}).catch(function(b){a.butterBar.showWarning(b.message)}),ee(a.issueFullFridge.watch(String(a.selectedTemplate.id))).then(function(b){var c;(c=a.parentIssueIds)!=null&&c.length||(a.parentIssueIds=b==null?void 0:b.parentIssueIds)})),a.selectedTemplate.id!==a.preferredTemplateId&&a.analytics.trackEvent("createIssue",
"changeTemplate"),s4d(a))},B4d=function(a,b){b=Object.assign(Hm(Y9b),b.snapshot);a.selectedComponent&&(b.componentId=a.selectedComponent.componentId);var c=Hm(b);v4d(a);X9b(a,a.issue);var d=Hm(a.issue);if(a.appliedTemplate)for(var e=l(Object.keys(a.appliedTemplate)),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.appliedTemplate[f];if(Array.isArray(g)&&Array.isArray(d[f])){g=l(g);for(var k=g.next();!k.done;k=g.next())QSa(d[f],k.value)}else Gm(g,d[f])&&delete d[f]}a.appliedTemplate=c;Z9b(b,d);d=c.comment||
"";a.comment.value!==a.templateComment&&(rtd(a.comment)||d===""||a.comment.value===d||(a.templateComment=d,D4d(a,a.comment.value)),b.comment=a.comment.value,b.formattingMode=c.formattingMode);a.templateComment=d;var m;a.templateCommentFormattingMode=(m=c.formattingMode)!=null?m:void 0;a.templateTitle=c.title||"";b.reporterUser=Sm(a.userEmail);z4d(a,b);a.issue=b;W9b(a.issue,a);y4d(a);v4d(a);X9b(a,a.issue);a.comment.value=a.issue.comment||"";a.issue.comment&&a.issue.formattingMode&&(a.comment.formattingMode=
a.issue.formattingMode);u0d(a.urlTemplate,a.issue,a.customFieldMap);W9b(a.issue,a);a.originalIssueCopy=Hm(a.issue);a.loadHotlists(a.issue.hotlistId).then(function(){a.updateSelectedHotlists();a.originalIssueCopy.hotlistId=Hm(a.issue.hotlistId);n7(a)});E4d(a);a.collaboratorGroupsText=[];a.separateCollaboratorGroups();F4d(a)};
m7.prototype.isValid=function(){return!(K8b(this).length!==0||L8b(this).length!==0)&&!!(this.isBlockedByIssueIdValid&&this.isBlockingIssueIdValid&&this.isParentIssueIdsValid&&this.isCollaboratorsValid)&&!R8b(this.comment)&&!0};
var K8b=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})},L8b=function(a){return(a.issue.customField||[]).filter(function(b){return a.isCustomFieldRequired(b)&&Mm(b)}).map(function(b){return'custom field "'+a.getCustomFieldName(b)+'"'})},G4d=function(a){var b=Ou(a.collaboratorsText);return b.length!==0&&a.canEditIssuesInComponent?
kpd(a.jspbPrincipalTypes,b,!1).then(function(c){a.invalidCollaboratorsInput=Object.entries(c).filter(function(d){d=l(d);d.next();d=d.next().value;return(d==null?void 0:d.principalType)!=="USER"}).map(function(d){return l(d).next().value});return a.invalidCollaboratorsInput.length===0}).catch(function(c){a.butterBar.showWarning(c.message);return!1}):Promise.resolve(!0)},w9b=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)},E4d=function(a){if(wva(a.customFieldMap,function(c){return c.required||!1})||a.hasAdvancedFieldsInUrlTemplate){var b;(b=a.advancedFieldsZippy)==null||b.open()}};h=m7.prototype;h.getCustomFieldType=function(a){var b,c;return(c=(b=this.customFieldMap[a.customFieldId])==null?void 0:b.type)!=null?c:""};h.getCustomFieldName=function(a){return(a=this.customFieldMap[a.customFieldId])?a.name:""};
h.getCustomFieldAllowedValues=function(a){return(a=this.customFieldMap[a.customFieldId])&&a.allowedValue?a.allowedValue:null};h.getCustomFieldValue=function(a){return Lm(a)};h.getDateValue=function(a){return a};
h.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})};h.isCustomFieldRequired=function(a){return this.customFieldMap[a.customFieldId]?this.canEditIssuesInComponent&&!!this.customFieldMap[a.customFieldId].required:!1};h.getListFieldValues=function(a){var b,c;return(c=(b=Lm(a))==null?void 0:b.values)!=null?c:null};
h.saveCommentDraft=function(){this.descriptionBannedWordsChecker.reset();var a=this.comment.value;a===this.templateComment&&(a="");this.draftStore.$window.sessionStorage.setItem(Zr("0"),a);this.issue=Object.assign({},this.issue,{comment:a})};h.discard=function(){this.draftStore.$window.sessionStorage.removeItem(Zr("0"));dUd(this.reloadService)};
h.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")};h.removeHotlist=function(a){var b;La((b=this.issue.hotlistId)!=null?b:null,a);this.updateSelectedHotlists()};
h.setTitle=function(a){this.titleBannedWordsChecker.reset();this.issue=Object.assign({},this.issue,{title:a})};var $8b=function(a){var b,c,d=(c=(b=a.issue.title)==null?void 0:b.trim())!=null?c:"";a.titleAfterBlur$.next(d)};m7.prototype.setPriority=function(a){this.issue=Object.assign({},this.issue,{priority:lTa(a)});var b;this.analytics.trackEvent("createIssue","changePriority",(b=this.issue.priority)!=null?b:void 0)};
m7.prototype.editStaffing=function(){var a=this,b,c,d,e;return y(function(f){if(f.nextAddress==1)return z(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});$d(f)})};
m7.prototype.setIssueType=function(a){this.issue=Object.assign({},this.issue,{type:mTa(a)});var b;this.analytics.trackEvent("createIssue","changeType",(b=this.issue.type)!=null?b:void 0);F4d(this)};m7.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)});Jba(this.selectedHotlists,function(b,c){return wa(b.name,c.name)})};
var H4d=function(a,b){var c,d,e,f,g,k,m,r,w,x,D;return y(function(H){switch(H.nextAddress){case 1:c=String(b.issueId);d=a.parentIssueIds;if(!d){H.jumpTo(2);break}e=[];return d.length===1?z(H,a.issueRelationshipsFridge.assignParentToIssues(d[0],[{issueId:c,afterIssueId:a.afterIssueId}]),6):z(H,Xnd(a.issueRelationshipsFridge,c,d),5);case 5:g=H.yieldResult;e=g.notAdded;f=g.errors;H.jumpTo(4);break;case 6:k=H.yieldResult,e=k.notAdded,f=k.errors;case 4:e.length&&a.butterBar.showWarning("Unable to add "+
e+" as parent(s). "+f);case 2:m=a.childrenIssueIds;if((r=m)==null||!r.length){H.jumpTo(7);break}return z(H,a.issueRelationshipsFridge.assignParentToIssues(c,m.map(function(J){return{issueId:J}})),8);case 8:w=H.yieldResult,x=w.notAdded,D=w.errors,x.length&&a.butterBar.showWarning("Unable to add "+x+" as children. "+D);case 7:return H.return(b)}})},P9b=function(a,b,c){var d,e,f,g,k,m,r,w,x,D,H,J,O,R,V,ba,pa,ua,ma,Da,ja,va;return y(function(ya){switch(ya.nextAddress){case 1:return a.sessionIsExternal&&
p4d(a)?(I4d(a),ya.return()):z(ya,G4d(a),2);case 2:a.isCollaboratorsValid=ya.yieldResult;d=a.issue;a.submitRequested=!0;if(!a.isValid()){if(e=document.querySelector(".bv2-view"))e.scrollTop=0;return ya.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||(g={title:f.snapshot.title,componentId:f.snapshot.componentId,comment:f.snapshot.comment,formattingMode:f.snapshot.formattingMode,cc:a.canViewIssuesInComponent||
a.componentHasExpandedAccessEnabled?[a.userEmail]:[]},f.snapshot=g);f.snapshot=Ki(f.snapshot,function(Sa){return typeof Sa!=="string"||!xa(Sa)});f.snapshot.customField&&(f.snapshot.customField=f.snapshot.customField.filter(function(Sa){return!Mm(Sa)}));X9b(a,f.snapshot);if(a.trackerId$.value&&f.snapshot.type==="VULNERABILITY"&&(k=H9a(a.activeSession.getEnvironmentType(),a.trackerId$.value),k!==void 0)){f.snapshot.collaboratorsUsers||(f.snapshot.collaboratorsUsers=[]);m=l(k);for(r=m.next();!r.done;r=
m.next())w=r.value,f.snapshot.collaboratorsUsers.push(w);f.snapshot.issueAccessLimitLevel="LIMIT_VIEW"}a.collaboratorGroupsText.length>0&&(f.snapshot.collaboratorsUsers=rTa(a.collaboratorGroupsText).concat(f.snapshot.collaboratorsUsers||[]));f.snapshot.assigneeUser&&(f.snapshot.status="ASSIGNED");x=function(){a.isSaving=!0;a.newIssueStarted=!1;fs(a.butterBar,"Creating...",0);a.issueApi.createIssue(f).then(function(Sa){return H4d(a,Sa)}).then(function(Sa){a.draftStore.$window.sessionStorage.removeItem(Zr("0"));
a.originalIssueCopy=Hm(a.issue);a.analytics.trackEvent("createIssue","create",a.comment.formattingMode==="MARKDOWN"?"markdown":"non markdown");J4d(a);a.collaboratorGroupsText.length>0&&a.analytics.trackEvent("quickAddCollaborators","create","create_issue:"+Sa.issueId);var ab,rb;((ab=a.selectedTemplate)==null?0:ab.inheritable)&&a.selectedTemplate.componentId!==((rb=a.selectedComponent)==null?void 0:rb.componentId)&&a.analytics.trackEvent("templateInheritance","create","issue:"+Sa.issueId);c?(a.analytics.trackEvent("createIssue",
"fileAndRedirect","component",d.componentId?Number(d.componentId):void 0),a.butterBar.dismiss(),a.isNavigatingAway=!0,a.isSaving=!1,mO(a.userAccess,"reader","issues/"+Sa.issueId).then(function(ac){ac?y0d(a.redirectUrl,As(Sa.issueId),String(Sa.issueId)):(fs(a.butterBar,"New issue created: "+Sa.issueId+" (view access not granted)",0),y0d(a.redirectUrl,a.paths.listIssues()));n7(a)}).catch(function(ac){a.errorHandler.errorHandler(null,ac);a.isNavigatingAway=!1})):(a.analytics.trackEvent("createIssue",
"fileAndNew","component",d.componentId?Number(d.componentId):void 0),ab={},Cid(a.butterBar,Fh(["New issue created: ",Gh("a",(ab.href=As(Sa.issueId),ab),String(Sa.issueId))]),0),d.title=a.templateTitle,a.comment=new fR(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=Hm(a.issue));n7(a)}).catch(function(Sa){Sa.status===403&&hq(Sa)?$M(a.errorHandler,iq(Sa)):a.errorHandler.errorHandler(null,Sa);a.isSaving=!1;a.submitRequested=!1;a.newIssueStarted=!1}).finally(function(){a.titleBannedWordsChecker.reset();a.descriptionBannedWordsChecker.reset()})};return z(ya,K4d(a),3);case 3:return(D=ya.yieldResult)?z(ya,L4d(a),4):ya.return();case 4:return(H=ya.yieldResult)?z(ya,cXd(a.confirmIssueAccessLimitSettingsService,{assigneeUser:(J=
f.snapshot.assigneeUser)==null?void 0:J.emailAddress,verifierUser:(O=f.snapshot.verifierUser)==null?void 0:O.emailAddress,ccUsers:(R=f.snapshot.ccUsers)==null?void 0:R.map(function(Sa){return Sa.emailAddress}).filter(ln),collaboratorsUsers:(V=f.snapshot.collaboratorsUsers)==null?void 0:V.map(function(Sa){return Sa==null?void 0:Sa.emailAddress}).filter(ln),issueAccessLimitLevel:f.snapshot.issueAccessLimitLevel,currentUserEmail:a.activeSession.getUserEmail(),canEditIssuesInComponent:a.canEditIssuesInComponent,
confirmationDialogText:j4d}),5):ya.return();case 5:return(ba=ya.yieldResult)?z(ya,a.titleBannedWordsChecker.check((pa=a.issue.title)!=null?pa:"",M4d(a),f.snapshot.componentId),6):ya.return();case 6:return ua=ya.yieldResult,z(ya,a.descriptionBannedWordsChecker.check((ma=a.issue.comment)!=null?ma:"",M4d(a),f.snapshot.componentId),7);case 7:Da=ya.yieldResult;if(!ua||!Da)return(ja=b)==null||ja.preventDefault(),(va=b)==null||va.stopPropagation(),ya.return();x();$d(ya)}})},I4d=function(a){a.isSaving=!0;
fs(a.butterBar,"Creating...",0);setTimeout(function(){fs(a.butterBar,"New issue cr\u00e6ted");a.isSaving=!1;y0d(a.redirectUrl,a.paths.listIssues())},500)},M4d=function(a){return!!a.selectedComponent&&!!a.selectedComponent.accessLimit&&a.selectedComponent.accessLimit.accessLevel==="EXTERNAL_PUBLIC"},K4d=function(a){var b,c,d;return y(function(e){if(e.nextAddress==1)return b="create-issue",z(e,a.dismissalService.isDismissed(Nkb(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):z(e,ee(eB(a.matDialogService.open(aW,{width:"500px",data:{action:b,content:Dh("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)})},L4d=function(a){var b=Io();!a.canEditIssuesInComponent||a.issue.type!=="VULNERABILITY"&&a.issue.type!=="PRIVACY_ISSUE"?
b.resolve(!0):Bsd(a.issueTypeDialog,a.issue.type,function(){b.resolve(!0)},function(){b.resolve(!1)});return b.promise},n4d=function(a,b){a.isLoadingComponent=!0;a.componentActions.search(b).then(function(c){c.length===1?(q4d(a,c[0]),n7(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})},m4d=function(a,b){a.isLoadingComponent=!0;return a.componentActions.getUncached(b).then(function(c){var d;
if(Is(a.activeSession)&&((d=a.activeSession.getTracker())==null?void 0:d.trackerId)!==c.trackerId)throw Error("Cg");q4d(a,c);n7(a)}).catch(function(){a.butterBar.showWarning("Component ID "+b+" does not exist or you do not have access.")}).finally(function(){a.isLoadingComponent=!1})};m7.prototype.hasUnsavedChanges=function(){var a=$9b(this.issue),b=$9b(this.originalIssueCopy);return!Gm(a,b)||this.comment.value!==this.originalIssueCopy.comment};
var D4d=function(a,b){eB(a.matDialogService.open(a.descriptionConfirmDialog,{data:b})).pipe(qf()).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="")})},s4d=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)))},G8b=function(a){return a.sessionIsExternal?!1:Zpb(a.selectedComponent)},H8b=function(a){return MM(a.activeSession)?
!1:st(a.selectedComponent)},r4d=function(a){if(a.selectedComponent&&a.selectedComponent.componentPathInfo&&a.selectedComponent.componentPathInfo.allCustomField){var b=lR(a.customFieldHelper,a.selectedComponent);a.customFieldMap=a$b(b);a.customFieldAllowedValuesMap=b$b(b);var c;b=(c=a.selectedComponent.componentPathInfo.componentPathId)!=null?c:[];var d,e=(d=a.selectedComponent.componentPathInfo.fieldConfigsV2Map)!=null?d:new Map;a.fieldConfigsV2=[].concat(n(b)).reverse().flatMap(function(f){var g;
return(g=e.get(f))!=null?g:[]});F4d(a)}},F4d=function(a){if(a.issue.customField){a.issue.customField=a.issue.customField.filter(function(g){return a.customFieldMap[g.customFieldId]});for(var b=new Set(a.issue.customField.map(function(g){return g.customFieldId})),c=l(Object.values(a.customFieldMap)),d=c.next();!d.done;d=c.next())d=d.value,b.has(d.customFieldId)||a.issue.customField.push(d.typedDefaultValue||{customFieldId:d.customFieldId});var e=a.issue.type,f=e&&a.fieldConfigsV2.find(function(g){return g.issueTypes.has(e)})||
a.fieldConfigsV2.find(function(g){return!g.issueTypes.size});a.issue.customField=a.issue.customField.filter(function(g){var k,m;return(m=f==null?void 0:(k=f.customFieldConfigs)==null?void 0:k.get(g.customFieldId))!=null?m:!0});a.originalIssueCopy.customField=a.issue.customField}},y4d=function(a){!a.canViewIssuesInComponent&&!a.componentHasExpandedAccessEnabled||Ou(a.ccsText).includes(a.userEmail)||(a.ccsText=a.userEmail+", "+a.ccsText)};h=m7.prototype;
h.fetchUserHotlists=function(){var a=this;ee($N(this.currentUserBookmarksFridge)).then(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next())a.addHotlist(c.value);n7(a)}).catch(function(b){a.errorHandler.errorHandler(null,b)})};h.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&La(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};
h.createHotlist=function(a){var b=this;this.analytics.trackEvent("baseIssue","createHotlist");fs(this.butterBar,"Creating hotlist "+a.name+"...",0);this.hotlistApi.createHotlist(a.name).then(function(c){fs(b.butterBar,"Hotlist "+a.name+" created successfully.");b.addHotlist(c);b.appEvents.hotlistCreated.next();a.successCallback(c);n7(b)}).catch(a.errorCallback)};
h.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);n7(b);return d},function(){var d=b.hotlistMap[c];Dva(b.hotlistMap,c);La(b.hotlists,d);a.errorCallback()})};h.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(){n7(b)})};
var l4d=function(a){var b;switch(((b=a.format)==null?void 0:b.toLowerCase())||""){case "plain":return"PLAIN";case "markdown":return"MARKDOWN"}},k4d=function(a){var b;return((b=WP(a.userPreferencesManager).commentFormattingPreferences)==null?void 0:b.lastPublishMode)||"PLAIN"};
m7.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(Af(this.destroyed$)).subscribe(function(e){e&&(a.judgementForNewContent=e.contentJudgement)})};m7.prototype.showContentJudgementDialog=function(a){return eB(this.matDialogService.open(rX,{panelClass:"no-jitter",width:"500px",data:a}))};
var J4d=function(a){var b=(new Date).getTime()-a.startTime.getTime();if(b>0){var c=Math.min(b,108E5);lnd("createIssue",c,"new-ui");a.analytics.trackEvent("createIssue","createIssue","time-to-create-new-ui",c);IO(a.clearcut,b,"createIssue-fromNewIssuePage")}a.startTime=new Date},A4d=function(a,b){return function(c){var d=wo(c.snapshot.customField,function(m){return m.customFieldId}),e=[],f=lR(a.customFieldHelper,b);f=l(f);for(var g=f.next();!g.done;g=f.next()){g=g.value;var k=g.customFieldId;d.has(k)?
e.push(d.get(k)):g.typedDefaultValue?e.push(g.typedDefaultValue):e.push({customFieldId:k})}return Object.assign({},c,{snapshot:Object.assign({},c.snapshot,{customField:e})})}};da.Object.defineProperties(m7.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(){C4d(b)})}}}});
m7.\u0275fac=function(a){return new (a||m7)};
m7.\u0275cmp=C({type:m7,selectors:[["b-create-issue-page"]],viewQuery:function(a,b){a&1&&(kg(M2,5),kg(qY,5),kg(g4d,5),kg(fL,5));if(a&2){var c;og(c=pg())&&(b.hotlistPicker=c.first);og(c=pg())&&(b.commentBox=c.first);og(c=pg())&&(b.descriptionConfirmDialog=c.first);og(c=pg())&&(b.advancedFieldsZippy=c.first)}},features:[Ig([MO,{provide:h4d,useClass:AW},{provide:i4d,useClass:AW}]),Ff],decls:31,vars:13,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"],[1,"bv2-create-component-external-warning",3,"partner","public"],["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"],[1,"bv2-create-component-external-warning"],[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","flex-kids-x","align-items-center"],["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"],[1,"banned-words-warning","break-word"],[1,"bv2-create-field","bv2-create-issue-assignee"],[1,"bv2-create-field","bv2-create-issue-collaborators"],[1,"bv2-create-field","bv2-create-issue-cc"],
[1,"bv2-create-issue-details"],["for","bv2-description"],[3,"commentChange","onChange","onSubmit","onRestrict","supportsPreview","comment","disabled","judgementForNewContent","placeholder","idForAriaLabel","audience","showRestrictionOptions","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,"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,"click","matTooltip"],[1,"icon-s",3,"svgIcon"],["for","bv2-assignee-peoplekit"],[1,"overflow-hidden"],["id","bv2-assignee-peoplekit","type","text","name","assignee",1,"bv2-create-issue-textfield",3,"emailChange",
"email"],["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,"valueChange","ariaLabel","value"],["for","bv2-ccs-peoplekit"],["id","bv2-ccs-peoplekit",
"type","text","name","ccs","aria-expanded","true",1,"bv2-create-issue-textfield",3,"valueChange","ariaLabel","value"],["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"],["for","bv2-reporter-peoplekit","matTooltip","Set the reporter of this issue."],["id","bv2-reporter-peoplekit","name","reporter","type","text",3,"emailChange","email"],["for","bv2-verifier-peoplekit",
"matTooltip","Set the verifier of this issue."],["id","bv2-verifier-peoplekit","name","verifier","type","text",3,"emailChange","email"],["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"],["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-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","matTooltip"],[3,"id","value","required","labelledById"],[3,"id","value","required"],[3,"value","options","includeEmptyOption","labelledById"],[3,"valueChange","id","value","required","labelledById"],[3,"valueChange","id","value","required"],[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=t();K(0,"h2",7);S(1,"Create issue");L();K(2,"div",8)(3,"div",9)(4,"button",10);N("click",function(){u(c);return v(b.back())});M(5,"mat-icon",11);L();K(6,"h2");S(7,"Create Issue");L();F(8,E8b,1,2,"b-hotlist-picker",12);F(9,F8b,2,1,"a",13);L()();K(10,"div",14)(11,"div")(12,"div",15)(13,"form",16);F(14,J8b,6,8,"div",17);F(15,S8b,4,3,"div",18);F(16,U8b,3,0,
"div",19);K(17,"div",20)(18,"div",21)(19,"div",22)(20,"label",23);S(21,"Component");L()();K(22,"div",24)(23,"b-team-component-picker",25);N("selectedComponentChange",function(e){u(c);return v(q4d(b,e!=null?e:null))});L()()();F(24,X8b,12,4,"div",26);L();F(25,Y8b,3,0,"div",27);F(26,R9b,54,63,"div");L()()()();E(27,S9b,11,2,"ng-template",null,0,Og)(29,V9b,6,4,"ng-template",null,1,Og)}if(a&2){var d;B(8);G(b.canEditIssuesInComponent?8:-1);B();G((d=b.issue.componentId)?9:-1,d);B(4);yg("submitted",b.submitRequested);
B();G(G8b(b)||H8b(b)?14:-1);B();G(b.submitRequested&&!b.isValid()?15:-1);B();G(b.selectedHotlists.length>0?16:-1);B(7);I("selectedComponent",b.selectedComponent)("shouldFocus",!b.componentRequestedInUrl&&!b.templateIssueRequestedInUrl)("isRequired",!0);B();G(b.availablePredefinedTemplates.length>0||b.availableExistingIssueTemplate!=null?24:-1);B();G(b.isLoadingComponent||b.componentRequestedInUrl==null&&b.selectedComponent==null||b.canCreateNewIssuesInComponent||b.createAclLoading||!b.selectedComponent?
-1:25);B();G(b.canCreateNewIssuesInComponent||b.createAclLoading||!b.selectedComponent?26:-1)}},dependencies:[OX,YT,Vz,qY,kW,mC,XB,xi,PB,QB,hC,jC,WB,UB,ZA,XA,TA,VA,DB,qB,BB,rB,OJ,NJ,LF,JF,OF,qT,pT,hI,iI,GA,aU,$T,lS,hK,pV,M2,hS,Y2,YU,g7,i7,YS,mB,hB,lB,kB,XJ,fL,gL,hL,iz,MA,oy,H3,G3,lV,t_,GX,EN,j7,WT,PT,VV,l7,k7,py,nU,QW],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-button-text-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)}\n/*# sourceMappingURL=create_issue_page.css.map */"]});
var Y9b={hotlistId:[],comment:"",severity:"S2",inProd:!1,customField:[]},w4d=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 N4d=["form"],o7=function(){this.bLocation=q(US);this.sloApi=q(wP);this.errorHandler=q(ZM);this.analytics=q(PO);this.butterBar=q(JM);this.appHistory=q(U1);this.sloUnderEdit={sloId:"0",parentId:"0",name:"",description:"",elements:[],effectiveElements:[],alertState:"OFF",isArchived:!1};this.isSaving=this.elementPickerIsValid=!1;this.createSloForm=null;this.error=""};h=o7.prototype;h.ngAfterViewInit=function(){};
h.save=function(){var a=this;if(!this.validate())return Promise.reject(Error("Dg"));fs(this.butterBar,"Saving SLO...",0);this.isSaving=!0;return this.sloApi.create(this.sloUnderEdit).then(function(b){fs(a.butterBar,"SLO "+b.name+" saved.",2E3);a.analytics.trackEvent("SLO","create");a.bLocation.replaceUrl(zs.editSlo.makeHref(b.sloId))}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.isSaving=!1})};h.back=function(){V1(this.appHistory)};
h.revertChanges=function(){this.sloUnderEdit.name="";this.sloUnderEdit.description="";this.sloUnderEdit.elements=[]};h.updateCollection=function(a){this.sloUnderEdit.elements=a};h.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};o7.\u0275fac=function(a){return new (a||o7)};
o7.\u0275cmp=C({type:o7,selectors:[["create-slo-page"]],viewQuery:function(a,b){a&1&&kg(N4d,5);if(a&2){var c;og(c=pg())&&(b.createSloForm=c.first)}},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=t();K(0,"div",
1)(1,"div",2)(2,"b-button",3);N("onAction",function(){u(c);return v(b.back())});M(3,"b-icon",4);L()()();K(4,"div",5)(5,"h2",6)(6,"span",7);S(7,"Create a new SLO");L()();K(8,"div",8)(9,"form",9,0);M(11,"b-error-banner",10);K(12,"div",11)(13,"label",12);S(14,"Name");L();K(15,"input",13);N("ngModelChange",function(d){u(c);return v(b.sloUnderEdit.name=d)});L()();K(16,"div",11)(17,"label",14);S(18,"Description");L();K(19,"textarea",15);N("ngModelChange",function(d){u(c);return v(b.sloUnderEdit.description=
d)});S(20,"        ");L()();K(21,"div",11)(22,"slo-elements-picker",16);N("onCollectionUpdate",function(d){u(c);return v(b.updateCollection(d))})("onValidation",function(d){u(c);return v(b.elementPickerIsValid=d)});L()();K(23,"p",17);S(24," Access controls may be defined once the slo is created. ");L();K(25,"div",18)(26,"b-button",19);N("onAction",function(){u(c);return v(b.save())});S(27," Save ");L();K(28,"b-button",20);N("onAction",function(){u(c);return v(b.revertChanges())});S(29," Revert changes ");
L()()()()()}a&2&&(B(9),yg("show-errors",b.error),B(2),I("error",b.error),B(),yg("bv2-edit-resource-readonly",b.isSaving),B(3),I("required",!0)("bFocus",!0)("ngModel",b.sloUnderEdit.name)("disabled",b.isSaving),B(),yg("bv2-edit-resource-readonly",b.isSaving),B(3),I("ngModel",b.sloUnderEdit.description)("disabled",b.isSaving),B(3),I("isDisabled",!1)("collection",b.sloUnderEdit.elements),B(4),I("disabled",b.isSaving||(b.createSloForm==null?null:b.createSloForm.pending)||(b.createSloForm==null?null:b.createSloForm.invalid)||
!b.elementPickerIsValid),B(2),I("disabled",!(b.sloUnderEdit.name!==""||b.sloUnderEdit.description!==""||b.sloUnderEdit.elements.length>0)))},dependencies:[YT,c4,kW,mC,XB,xi,PB,QB,hC,WB,UB,hS,f5],encapsulation:2});var O4d=function(){this.nextPanelId=1};O4d.\u0275fac=function(a){return new (a||O4d)};O4d.\u0275prov=Cc({token:O4d,factory:O4d.\u0275fac,providedIn:"root"});var p7=function(){LO.apply(this,arguments);this.cdr=q(MO);this.paths=q(wV);this.bLocation=q(US);this.$log=q(XM);this.analytics=q(PO);this.issueApi=q(uO);this.userApi=q(TN);this.bookmarkGroupsApi=q(lN);this.hotlistApi=q(PN);this.butterBar=q(JM);this.pageTitle=q(w1);this.dashboards=q(O4d);this.routeParams=q(hR);this.appSearchState=q(gS);this.userAccess=q(lO);this.errorHandler=q(ZM);this.statusMessages=q(VQ);this.urlPreferences=q(i4);this.appEvents=q(DN);this.hotlistFridge=q(UN);this.activeSession=q(Zu);
this.issueFullFridge=q(RO);this.currentUserBookmarksFridge=q(ZN);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;this.resultsPerPage=null;this.Number=Number;this.String=String};Z(p7,LO);p7.\u0275dir=LO.\u0275dir;
p7.prototype.ngOnInit=function(){var a=this;this.resultsPerPage=this.urlPreferences.getCount();this.userApi.getUserBookmark("BOOKMARK_GROUP",this.routeParams.groupId).then(function(){a.isStarred=!0;a.cdr.detectChanges()}).catch(function(){});this.loadBookmarkGroup().then(function(b){P4d(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){Q4d(a,b,function(c){return c+1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveUp.subscribe(function(b){Q4d(a,b,function(c){return c-1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToTop.subscribe(function(b){Q4d(a,b,function(){return 0})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToBottom.subscribe(function(b){Q4d(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 g$b=function(a,b){var c=b.panelId;b=b.selectedIssues;if(a=R4d(a,c))a.selectedIssues=b!=null?b:[]},f$b=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)},R4d=function(a,b){return a.panels.find(function(c){return c.panelId===b})},S4d=function(a,b){a=a.panels.findIndex(function(c){return c.panelId===b});return a!==-1?a:void 0};h=p7.prototype;
h.fetchUserHotlists=function(){var a=this;ee($N(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];Gm(d,c)||(d&&La(a.hotlistChoices,d),a.hotlistChoices.push(c),a.hotlistMap[c.hotlistId]=c,a.cdr.detectChanges())}}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
h.createHotlist=function(a){var b=this;var c=a.name;var d=a.successCallback;a=a.errorCallback;this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"createHotlist");fs(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);fs(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)};
h.loadHotlist=function(a){var b=this;var c=a.hotlistId;var d=a.successCallback;a=a.errorCallback;fs(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)};h.addHotlist=function(a){this.hotlistMap[a.hotlistId]||(this.hotlistMap[a.hotlistId]=a,this.hotlistChoices.push(a))};
h.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)})};
h.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();fs(this.butterBar,"Marking "+a[0].issueIds.length+" issues  "+(d?"read":"unread")+"...",0);return SO(this.issueFullFridge,a[0].issueIds,{markRead:d,userActivityType:"MARK_AS_READ_OR_UNREAD"}).then(function(k){fs(c.butterBar,
"Issues marked "+(d?"read":"unread")+".");for(var m=l(c.panels),r=m.next();!r.done;r=m.next()){r=l(r.value.selectedIssues);for(var w=r.next();!w.done;w=r.next()){var x=void 0;w.value.lastViewedTime=(x=k)!=null?x:null}}}).catch(function(k){for(var m=l(c.panels),r=m.next();!r.done;r=m.next()){r=l(r.value.selectedIssues);for(var w=r.next();!w.done;w=r.next())w=w.value,w.isRead=!!w.lastViewedTime&&w.lastViewedTime>=w.majorModifiedTime}c.errorHandler.errorHandler(null,k)}).finally(function(){c.cdr.detectChanges()})}e=
m9a(a).map(function(k){return k.fieldName});this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"bulkEdit",e.join(","));var g={bulkEditOps:a};fs(this.butterBar,"Saving changes...",0);return this.issueApi.issueBulkEdit(g,b).then(function(k){for(var m=l([].concat(n(c.searchPanels),n(c.hotlistPanels))),r=m.next();!r.done;r=m.next()){r=r.value;var w=k;if(r.searchResults){r.searchResults=r.searchResults.clone();for(var x=0,D=l(r.searchResults.issues),H=D.next();!H.done;H=D.next()){H=H.value;if(w.affectedIssues[H.issueId]){var J=
w.affectedIssues[H.issueId];J=ygb(J,w.componentMap[Number(Ia(J.snapshot).componentId)]);J.selected=H.selected;r.searchResults.issues[x]=J;r.resultsLoaded.emit([r.searchResults.issues[x]])}x++}}}k.errors&&k.errors.length?(m=TWa(k.errors),c.butterBar.showWarning("Failed to update issue(s) "+m+"."),c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"bulkEditError",""+k.errors.length)):(k=Tsd(c.statusMessages,g))?fs(c.butterBar,k):fs(c.butterBar,"Saved "+n9a(a).length+" issue(s).")}).catch(function(k){c.errorHandler.errorHandler(null,
k)})};h.loadBookmarkGroup=function(){var a=this,b,c;return y(function(d){if(d.nextAddress==1)return Vd(d,2),z(d,a.bookmarkGroupsApi.get(a.groupId),4);if(d.nextAddress!=2)return b=d.yieldResult,a.isAdmin=b.adminUsers.some(function(e){return e.emailAddress===a.userEmail}),a.pageTitle.setTitle(b.name),d.return(b);c=Zd(d);aN(a.errorHandler,c);throw c;})};var P4d=function(a,b){a.panels=(b.item||[]).map(function(c,d){return T4d(a,c,d===0?0:void 0)}).filter(ln)};
p7.prototype.removePanel=function(a){var b=this,c=R4d(this,a);c!=null&&(fs(this.butterBar,"Saving changes...",0),a=Hm(this.bookmarkGroup),a.item=a.item.filter(function(d){return!U4d(b,c,d)}),V4d(this,a))};
var Q4d=function(a,b,c){b=S4d(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=Hm(a.bookmarkGroup);var e,f=(e=a.bookmarkGroup)==null?void 0:e.item.findIndex(function(g){return U4d(a,d,g)});f!==void 0&&(Pba(b.item,f,c),V4d(a,b))}}},V4d=function(a,b){a.bookmarkGroupsApi.update(b).then(function(c){a.bookmarkGroup=c;W4d(a,a.bookmarkGroup.item);fs(a.butterBar,"Bookmark group saved.",4E3);a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:a.bookmarkGroup.bookmarkGroupId});
a.cdr.detectChanges()},function(c){a.errorHandler.errorHandler(null,c)})},U4d=function(a,b,c){switch(b.type){case "HOTLIST":return c.hotlistId===b.resourceId;case "SAVED_SEARCH":return c.savedSearchId===String(b.resourceId);default:return a.$log.warn("Unknown type of a panel: "+b.type),!1}},X4d=function(a,b){return a.panels.find(function(c){return U4d(a,c,b)})},T4d=function(a,b,c){var d=null,e=null;switch(b.resourceType){case "HOTLIST":d="HOTLIST";var f;e=(f=b.hotlistId)!=null?f:null;break;case "SAVED_SEARCH":d=
"SAVED_SEARCH";var g;e=(g=b.savedSearchId)!=null?g:null;break;default:a.$log.warn("Unsupported item: "+b)}if(d&&e)return a=a.dashboards,b=a.nextPanelId,a.nextPanelId++,{panelId:b,resourceId:e,type:d,focusedRowIndex:c!=null?c:null,selectedIssues:[]}},W4d=function(a,b){a.panels=b.map(function(c){var d;return(d=X4d(a,c))!=null?d:T4d(a,c)}).filter(ln)};
p7.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)})};p7.prototype.editBookmarkGroup=function(){this.bLocation.setUrl(this.paths.editBookmarkGroup(this.bookmarkGroup.bookmarkGroupId))};
p7.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(p7)))(b||p7)}}();
p7.\u0275cmp=C({type:p7,selectors:[["dashboard-page"]],viewQuery:function(a,b){a&1&&(kg(L4,5),kg(J4,5));if(a&2){var c;og(c=pg())&&(b.searchPanels=c);og(c=pg())&&(b.hotlistPanels=c)}},features:[Ig([MO]),Ff],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","resultsPerPage"],[3,"panel","isDashboardEditable","focusedRowIndex","hotlistId","first","last","resultsPerPage"],
[3,"focusedRowIndexChange","selectionChange","resultsLoaded","panel","isDashboardEditable","focusedRowIndex","savedSearchId","first","last","resultsPerPage"],[3,"focusedRowIndexChange","selectionChange","resultsLoaded","panel","isDashboardEditable","focusedRowIndex","hotlistId","first","last","resultsPerPage"]],template:function(a,b){a&1&&(K(0,"h2",0),S(1,"Dashboard"),L(),K(2,"div",1)(3,"div",2),S(4,"Bookmark groups dashboard"),L(),K(5,"b-dashboard-controls",3),N("onSave",function(c){return b.sendBulkEditRequest(c.bulkEditOps,
c.recaptchaToken)})("onCreateHotlist",function(c){return b.createHotlist(c)})("onLoadHotlist",function(c){return b.loadHotlist(c)}),L()(),K(6,"div",4),F(7,e$b,8,2,"div"),Pf(8,j$b,3,1,"div",null,Of),L());a&2&&(B(5),I("hotlistChoices",b.hotlistChoices)("panels",b.panels),B(),I("bFocus",!0),B(),G(b.bookmarkGroup?7:-1),B(),Qf(b.panels))},dependencies:[V2,kW,hK,J4,MA,L4,yV],encapsulation:2});var Y4d=function(){};Y4d.\u0275fac=function(a){return new (a||Y4d)};Y4d.\u0275mod=$e({type:Y4d});
Y4d.\u0275inj=Dc({imports:[W2,g1,M4,K4,FN,lW,iK,p7]});var Z4d=["editBookmarkGroupItemsContainer"],$4d=["bookmarkGroupName"],K$b=function(a){return{displayText:"Admins",values:a}},J$b=function(a){return[a]},q7=function(){LO.call(this);var a=this;this.routeParams=q(hR);this.location=q(US);this.activeSession=q(Zu);this.butterBar=q(JM);this.accessPolicyApi=q(tN);this.bookmarkGroupsApi=q(lN);this.hotlistApi=q(PN);this.paths=q(wV);this.appHistory=q(U1);this.pageTitle=q(w1);this.userAccess=q(lO);this.errorHandler=q(ZM);this.appEvents=q(DN);this.snackBar=q(LD);
this.confirmationDialog=q(PQ);this.checkBeforeExit=q(HX);this.cdr=q(MO,{self:!0});this.documentationLinks=q(OQ);this.currentUserBookmarksFridge=q(ZN);this.selectedTabIndex=0;this.accessPolicyUnderEdit=Ss();this.flattenedAccessPolicy=Ss();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);a5d(this);b5d(this);Promise.all([b,c]).then(function(){var d;(d=a.bookmarkGroupNameInput)==null||d.nativeElement.focus()});this.subscriptions.add(IX(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));b=function(){a5d(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(){b5d(a)}))};Z(q7,LO);q7.\u0275dir=LO.\u0275dir;h=q7.prototype;h.ngOnInit=function(){this.location.hash()==="access"&&(this.selectedTabIndex=1)};h.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)};h.back=function(){V1(this.appHistory)};
h.isArchived=function(){return this.bookmarkGroup?this.bookmarkGroup.archived:!1};h.isSaving=function(){return this.isUpdating||this.isArchiving};h.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};h.hasUnsavedMetadataChanges=function(){return!Gm(this.bookmarkGroup,this.bookmarkGroupUnderEdit)};h.hasUnsavedAccessPolicyChanges=function(){return!Gm(this.flattenedAccessPolicy,this.accessPolicyUnderEdit)};
h.isEditDisabled=function(){return this.isSaving()||!this.isAdmin};h.revertMetadataChanges=function(){this.bookmarkGroupUnderEdit=Hm(this.bookmarkGroup);this.error="";this.selectedHotlistIds=[c5d(this.bookmarkGroup.item.filter(function(a){return a.hasOwnProperty("hotlistId")}))];d5d(this)};h.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=Hm(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};h.saveMetadata=function(){this.validate()&&this.doSaveMetadata()};
h.saveAccessPolicy=function(){var a=this;this.accessPolicyUnderEdit.admins.includes("USER:"+this.currentUserEmail)?this.doSaveAccessPolicy():this.confirmationDialog.open({title:"Change bookmark group admins",content:Dh("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()}})};
h.validate=function(){if(this.bookmarkGroupUnderEdit.name==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};h.archive=function(){var a=this;this.confirmationDialog.open({title:"Archive bookmark group",content:Dh("Do you want to archive this bookmark group?"),isDestructive:!0,onConfirm:function(){e5d(a,"archive")}})};
h.unarchive=function(){var a=this;this.confirmationDialog.open({title:"Unarchive bookmark group",content:Dh("Do you want to unarchive this bookmark group?"),onConfirm:function(){e5d(a,"unarchive")}})};
h.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});f5d(a,d);a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:c})}).catch(function(d){a.errorHandler.errorHandler(null,d)}).finally(function(){a.isUpdating=
!1})};
h.doSaveAccessPolicy=function(){var a=this;try{var b=Us(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=Ts(c);a.accessPolicyUnderEdit=Hm(a.flattenedAccessPolicy);
a.loadUserAccess(a.bookmarkGroup.bookmarkGroupId)},function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isUpdating=!1})};
var e5d=function(a,b){var c=Hm(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});f5d(a,d)}).catch(function(d){a.errorHandler.errorHandler(null,d)}).finally(function(){a.isArchiving=!1})};
q7.prototype.loadBookmarkGroup=function(a){var b=this;this.isLoading=!0;return this.bookmarkGroupsApi.get(a).then(function(c){f5d(b,c);b.selectedHotlistIds=[c5d(b.bookmarkGroup.item)];d5d(b);b.pageTitle.setTitle("Bookmark group: "+c.name);b.cdr.detectChanges()},function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1})};var f5d=function(a,b){a.bookmarkGroup=b;a.bookmarkGroupUnderEdit=Hm(a.bookmarkGroup)};
q7.prototype.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("BOOKMARK_GROUP",a).then(function(c){b.flattenedAccessPolicy=Ts(c);b.accessPolicyUnderEdit=Hm(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};q7.prototype.loadUserAccess=function(a){var b=this;return mO(this.userAccess,"admin","bookmarkGroups/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
var a5d=function(a){ee($N(a.currentUserBookmarksFridge)).then(function(b){a.userHotlists=b;a.cdr.detectChanges()})},b5d=function(a){a.userSavedSearches=null;ee(vld(a.currentUserBookmarksFridge)).then(function(b){a.userSavedSearches=b;d5d(a);a.cdr.detectChanges()})},d5d=function(a){if(a.userSavedSearches&&a.bookmarkGroupUnderEdit!=null){var b=g5d(a.bookmarkGroupUnderEdit.item.filter(function(c){return c.hasOwnProperty("savedSearchId")}));a.savedSearchChoices=a.userSavedSearches.filter(function(c){return!b.includes(c.searchId)})}},
n$b=function(a,b){var c=Number(b);Dba(a.bookmarkGroupUnderEdit.item,function(e){return e.hotlistId===c});h5d(a,c);var d;(d=a.editBookmarkGroupItemsContainer)==null||d.nativeElement.focus()},p$b=function(a,b){Dba(a.bookmarkGroupUnderEdit.item,function(d){return d.savedSearchId===b});d5d(a);var c;(c=a.editBookmarkGroupItemsContainer)==null||c.nativeElement.focus()},C$b=function(a,b){switch(b.resourceType){case "SAVED_SEARCH":return a.paths.viewSavedSearch(b.savedSearchId);case "HOTLIST":return zs.viewHotlist.makeHref(b.hotlistId);
case "BOOKMARK_GROUP":return a.paths.viewBookmarkGroup(b.bookmarkGroupId);default:sb(b.resourceType)}},x$b=function(a,b){for(var c=l(Object.entries(b.newSelectionMap)),d=c.next(),e={};!d.done;e={id$jscomp$655:void 0},d=c.next()){var f=l(d.value);d=f.next().value;f=f.next().value;e.id$jscomp$655=Jm(d);f&&!b.oldSelectionMap[e.id$jscomp$655]?(A$b(a,e.id$jscomp$655),e=a.userHotlists.find(function(g){return function(k){return k.hotlistId===g.id$jscomp$655}}(e)),a.bookmarkGroupUnderEdit.item.push({hotlistId:e.hotlistId,
name:e.name,resourceType:"HOTLIST"})):b.oldSelectionMap[e.id$jscomp$655]&&!f&&(h5d(a,e.id$jscomp$655),Dba(a.bookmarkGroupUnderEdit.item,function(g){return function(k){return k.hotlistId===g.id$jscomp$655}}(e)))}},A$b=function(a,b){a.selectedHotlistIds[0].push(b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},h5d=function(a,b){La(a.selectedHotlistIds[0],b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},t$b=function(a,b){g5d(a.bookmarkGroupUnderEdit.item).indexOf(b.searchId)===-1&&a.bookmarkGroupUnderEdit.item.push({name:b.name,
resourceType:"SAVED_SEARCH",savedSearchId:b.searchId});setTimeout(function(){d5d(a)})},g5d=function(a){return a?bTa(a,"savedSearchId"):[]},c5d=function(a){return bTa(a,"hotlistId")},y$b=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)},z$b=function(a,
b){return a.hotlistApi.get(b.hotlistId).then(function(c){a.userHotlists.push(c);b.successCallback(c);return c},b.errorCallback)};q7.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:sb(a.resourceType)}};q7.\u0275fac=function(a){return new (a||q7)};
q7.\u0275cmp=C({type:q7,selectors:[["b-edit-bookmark-group"]],viewQuery:function(a,b){a&1&&(kg(Z4d,5),kg($4d,5),kg(YK,5,Gd));if(a&2){var c;og(c=pg())&&(b.editBookmarkGroupItemsContainer=c.first);og(c=pg())&&(b.bookmarkGroupNameInput=c.first);og(c=pg())&&(b.tabs=c)}},features:[Ig([MO]),Ff],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"],["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"],["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&&(K(0,"div",3)(1,"div",4)(2,"div",5)(3,"button",6),N("click",function(){return b.back()}),M(4,"mat-icon",7),L(),F(5,k$b,2,1,"button",8),F(6,l$b,2,1,"button",8),L()()(),K(7,"div",9),F(8,L$b,46,35),L());a&2&&(B(5),G(b.isAdmin&&!b.isArchived()?5:-1),B(),G(b.isAdmin&&b.isArchived()?6:-1),B(2),G(!b.isLoading&&b.bookmarkGroup.bookmarkGroupId?8:-1))},dependencies:[c4,mC,xi,PB,hC,WB,ZA,XA,TA,VA,OJ,NJ,LF,JF,KF,
OF,cL,bL,YK,ZK,hK,qV,M2,H1,iz,MA,sW],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 i5d=["savedSearchNameInput"],R$b=function(a){return{displayText:"Admins",values:a}},Q$b=function(a){return[a]},r7=function(){LO.call(this);var a=this;this.routeParams=q(hR);this.location=q(US);this.accessPolicyApi=q(tN);this.savedSearchApi=q(XN);this.paths=q(wV);this.appHistory=q(U1);this.butterBar=q(JM);this.pageTitle=q(w1);this.documentationLinks=q(OQ);this.userAccess=q(lO);this.errorHandler=q(ZM);this.snackBar=q(LD);this.confirmationDialog=q(PQ);this.cdr=q(MO,{self:!0});this.appEvents=q(DN);
this.activeSession=q(Zu);this.checkBeforeExit=q(HX);this.selectedTabIndex=0;this.isDeleting=this.isUpdating=this.isAdmin=this.isLoading=!1;this.isReaderFieldValid=this.isAdminsFieldValid=!0;this.currentUserEmail=this.activeSession.getUserEmail();this.accessPolicyUnderEdit=Ss();this.flattenedAccessPolicy=Ss();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(IX(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1))};Z(r7,LO);r7.\u0275dir=LO.\u0275dir;h=r7.prototype;h.ngOnInit=function(){this.location.hash()==="access"&&(this.selectedTabIndex=1)};h.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)};
h.loadSavedSearch=function(a){var b=this;this.isLoading=!0;return this.savedSearchApi.get(a).then(function(c){b.savedSearch=c;b.savedSearchUnderEdit=Hm(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()})};
h.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("SAVED_SEARCH",a).then(function(c){b.flattenedAccessPolicy=Ts(c);b.accessPolicyUnderEdit=Hm(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};h.loadUserAccess=function(a){var b=this;return mO(this.userAccess,"admin","savedSearches/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
h.isSaving=function(){return this.isUpdating||this.isDeleting};h.isEditDisabled=function(){return this.isSaving()||!this.isAdmin};h.back=function(){V1(this.appHistory)};h.revertMetadataChanges=function(){this.savedSearchUnderEdit=Hm(this.savedSearch);this.error=""};h.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=Hm(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};h.hasUnsavedMetadataChanges=function(){return!Gm(this.savedSearch,this.savedSearchUnderEdit)};
h.hasUnsavedAccessPolicyChanges=function(){return!Gm(this.flattenedAccessPolicy,this.accessPolicyUnderEdit)};h.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};
h.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=Hm(b);a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId})}).catch(function(b){a.errorHandler.errorHandler(null,
b)}).finally(function(){a.isUpdating=!1}))};h.validate=function(){if(this.savedSearchUnderEdit.name==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};
h.saveAccessPolicy=function(){var a=this;this.accessPolicyUnderEdit.admins.includes("USER:"+this.currentUserEmail)?this.doSaveAccessPolicy():this.confirmationDialog.open({title:"Change saved search admins",content:Dh("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()}})};
h.doSaveAccessPolicy=function(){var a=this;try{var b=Us(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=Ts(c);a.accessPolicyUnderEdit=Hm(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(iq(c),0)}).finally(function(){a.isUpdating=!1})};h.delete=function(){var a=this;this.confirmationDialog.open({title:"Delete saved search",content:Dh("Do you want to delete this saved search?"),isDestructive:!0,onConfirm:function(){a.doDelete()}})};
h.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"});Dxd(a.location,"/")}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.isDeleting=!1})};
r7.\u0275fac=function(a){return new (a||r7)};
r7.\u0275cmp=C({type:r7,selectors:[["b-edit-saved-search"]],viewQuery:function(a,b){a&1&&(kg(i5d,5),kg(YK,5,Gd));if(a&2){var c;og(c=pg())&&(b.savedSearchName=c.first);og(c=pg())&&(b.tabs=c)}},features:[Ig([MO]),Ff],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"],["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"],["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&&(K(0,"div",1)(1,"div",2)(2,"div",3)(3,"button",4),N("click",function(){return b.back()}),M(4,"mat-icon",5),L(),F(5,M$b,2,1,"button",6),L()()(),K(6,"div",7),F(7,N$b,3,0,"div",8),
F(8,S$b,50,34),L());a&2&&(B(5),G(b.isAdmin?5:-1),B(2),G(b.isLoading||b.savedSearch?-1:7),B(),G(!b.isLoading&&b.savedSearch?8:-1))},dependencies:[c4,mC,xi,PB,hC,WB,ZA,XA,TA,VA,cL,bL,YK,ZK,hK,iz,MA,sW],encapsulation:2});var j5d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(j5d,X);j5d.prototype.getSloId_asLegacyNumberOrString=function(){return Vp(this,1)};j5d.prototype.getSloId_asString=function(){return Ln(this,1)};j5d.prototype.setSloId=function(a){return ap(this,1,a)};var k5d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(k5d,X);h=k5d.prototype;h.getAuthor=function(){return Y(this,Zm,1)};h.setAuthor=function(a){hj(this,Zm,1,a)};h.hasAuthor=function(){return Si(this,Zm,1)};h.getTimestamp=function(){return Y(this,nj,2)};h.setTimestamp=function(a){return hj(this,nj,2,a)};h.hasTimestamp=function(){return Si(this,nj,2)};h.getAdd=function(){return Y(this,Mr,3)};h.setAdd=function(a){return hj(this,Mr,3,a)};
h.getRemove=function(){return Y(this,Mr,4)};h.setRemove=function(a){return hj(this,Mr,4,a)};h.getAddMask=function(){return Y(this,Xq,5)};h.getMutableAddMask=function(){return cj(this,Xq,5)};h.setAddMask=function(a){return hj(this,Xq,5,a)};h.getRemoveMask=function(){return Y(this,Xq,6)};h.getMutableRemoveMask=function(){return cj(this,Xq,6)};h.setRemoveMask=function(a){return hj(this,Xq,6,a)};h.getFieldUpdatesList=function(){return Wi(this,Eld,7,Xi())};var l5d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(l5d,X);var m5d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,m5d.messageId)};Z(m5d,X);m5d.prototype.getIt=function(){return Y(this,l5d,1,fb)};m5d.prototype.setIt=function(a){return hj(this,l5d,1,a,fb)};m5d.messageId="b.ListSloUpdatesResponse";var s7=function(){this.executor=q(SM);this.bCacheFactory=q(JN);this.sloHistories=this.bCacheFactory.get("slo_histories-second-level-cache")||this.bCacheFactory.create("slo_histories-second-level-cache",{capacity:25})};s7.prototype.get=function(a){var b=this.sloHistories.get(String(a));return b!==void 0?b:this.sloHistories.put(String(a),n5d(this,a))};
var n5d=function(a,b){var c=(new j5d).setSloId(Number(b));return a.executor.post({url:"action/slos/"+b+"/updates",body:c,responseConstructor:m5d}).then(function(d){d=d.getIt();return{updates:Wi(d,k5d,1,Xi()).map(iZa)}})};s7.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};s7.prototype.invalidateCache=function(a){this.sloHistories.remove(String(a))};s7.\u0275fac=function(a){return new (a||s7)};s7.\u0275prov=Cc({token:s7,factory:s7.\u0275fac,providedIn:"root"});var bac=function(a){return{displayText:"Admins",values:a}},aac=function(a){return[a]},t7=function(){var a=q(Zu),b=q(HX);LO.call(this);var c=this;this.routeParams=q(hR);this.bLocation=q(US);this.appHistory=q(U1);this.butterBar=q(JM);this.pageTitle=q(w1);this.documentationLinks=q(OQ);this.userAccess=q(lO);this.accessPolicyApi=q(tN);this.sloApi=q(wP);this.sloUpdatesApi=q(s7);this.sloUpdatesService=q(h0d);this.errorHandler=q(ZM);this.matDialogService=q(gB);this.analytics=q(PO);this.confirmationDialogService=
q(PQ);this.appEvents=q(DN);this.editableAccessPolicy=Ss();this.flattenedAccessPolicy=Ss();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(IX(b,function(){return c.hasUnsavedChanges()},!1));b=this.routeParams.sloId;this.resourceName=wq("SLO",
Jm(b));if(this.sloEnabled=a.isInternalSession())o5d(this,b),this.loadUserAccess(b),this.loadAccessPolicy(b),p5d(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()};Z(t7,LO);t7.\u0275dir=LO.\u0275dir;
t7.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)};t7.prototype.ngOnInit=function(){this.bLocation.hash()==="access"&&(this.selectedTabIndex=1)};t7.prototype.updateCollection=function(a){this.editableCopy&&(this.editableCopy.elements=a)};
var o5d=function(a,b){a.isLoading=!0;a.sloApi.get(b).then(function(c){a.slo=c;a.slo.elements||(a.slo.elements=[]);a.editableCopy=Hm(a.slo);a.pageTitle.setTitle("SLO: "+c.name)}).catch(function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isLoading=!1})};
t7.prototype.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("SLO",Number(a)).then(function(c){b.flattenedAccessPolicy=Ts(c);b.editableAccessPolicy=Hm(b.flattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)})};var q5d=function(a,b){return a.sloUpdatesApi.get(b).then(function(c){a.historyDiffs=c.updates.map(function(d){return j0d(a.sloUpdatesService,d)})}).catch(function(c){a.errorHandler.errorHandler(null,c)})};h=t7.prototype;
h.loadUserAccess=function(a){var b=this;mO(this.userAccess,"admin",wq("SLO",Jm(a))).then(function(c){b.isAdminInternal=c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};h.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};h.hasUnsavedMetadataChanges=function(){return!Gm(this.slo,this.editableCopy)};h.hasUnsavedAccessPolicyChanges=function(){return!Gm(this.flattenedAccessPolicy,this.editableAccessPolicy)};
h.saveMetadata=function(){var a=this;r5d(this.slo.elements,this.editableCopy.elements)?this.save():this.confirmationDialogService.open({title:"Save SLO changes?",content:Fh([Dh("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."),Gh("br"),Gh("br"),Dh("Please combine changes into as few updates as possible.")]),onConfirm:function(){a.save()},onDismiss:gD})};
var W$b=function(a,b){if(!a.hasUnsavedMetadataChanges()){var c=function(){a.editableCopy.isArchived=b;a.save()};b?a.confirmationDialogService.open({title:"Archive SLO?",content:Dh("Archiving this SLO will prevent new usages of the SLO, and will hide the SLO from most searches."),onConfirm:c,onDismiss:gD}):c()}},r5d=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};
t7.prototype.save=function(){var a=this,b=this.editableCopy;fs(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.';r5d(a.slo.elements,a.editableCopy.elements)||(d+=" Propagating this change may take several hours.");fs(a.butterBar,d);a.slo=c;a.slo.elements||(a.slo.elements=[]);a.editableCopy=Hm(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})};t7.prototype.saveAccessPolicy=function(){var a=this;this.isRevokingAdmin()?this.confirmationDialogService.open({title:"Change SLO admins",content:Dh("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:gD}):this.doSaveAccessPolicy()};
t7.prototype.doSaveAccessPolicy=function(){var a=this;try{var b=Us(this.editableAccessPolicy)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);this.butterBar.showWarning(b);return}this.isUpdating=!0;fs(this.butterBar,"Saving access settings...");this.accessPolicyApi.update("SLO",this.slo.sloId,b).then(function(c){fs(a.butterBar,"Access settings saved.");a.flattenedAccessPolicy=Ts(c);a.editableAccessPolicy=Hm(a.flattenedAccessPolicy);a.loadUserAccess(a.slo.sloId);a.analytics.trackEvent("editSlo",
"updateAccessPolicy")},function(c){a.butterBar.showWarning(iq(c),0)}).finally(function(){a.isUpdating=!1})};t7.prototype.isRevokingAdmin=function(){return this.isRevokingDirectAdmin()};
var p5d=function(a,b){q5d(a,b).then(function(){if(a.historyDiffs&&a.historyDiffs.length){var c=a.historyDiffs[0],d=a.historyDiffs[a.historyDiffs.length-1];c.author&&Rm(c.author)==="buganizer-system@google.com"&&(a.isImportedFromBugScope=!0);d.author&&Rm(d.author)==="buganizer-system@google.com"&&(a.isUneditedFromBugScope=!0)}})};h=t7.prototype;
h.isRevokingDirectAdmin=function(){if(Gm(this.flattenedAccessPolicy.admins,this.editableAccessPolicy.admins))return!1;var a="USER:"+this.currentUserEmail;return this.flattenedAccessPolicy.admins.includes(a)&&!this.editableAccessPolicy.admins.includes(a)};
h.revertMetadataChanges=function(){var a=this;r5d(this.slo.elements,this.editableCopy.elements)?this.editableCopy=Hm(this.slo):this.confirmationDialogService.open({title:"Revert SLO changes?",content:Fh([Dh("Revert all changes to this SLO?")]),onConfirm:function(){a.editableCopy=Hm(a.slo)},onDismiss:gD})};h.revertAccessPolicyChanges=function(){this.editableAccessPolicy=Hm(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};h.isSaving=function(){return this.isUpdating};
h.back=function(){V1(this.appHistory)};h.isEditDisabled=function(){return!this.editableCopy||this.isSaving()||!this.isAdmin()};h.isAdmin=function(){return this.isAdminInternal};h.showUpdateHistoryModal=function(){var a=this;q5d(this,this.slo.sloId).then(function(){a.matDialogService.open(x6,{width:"600px",data:{updateDiffs:a.historyDiffs}});a.analytics.trackEvent("updateHistoryModal","open");a.analytics.trackEvent("editSlo","viewHistory")})};t7.\u0275fac=function(a){return new (a||t7)};
t7.\u0275cmp=C({type:t7,selectors:[["edit-slo-page"]],viewQuery:function(a,b){a&1&&kg(YK,5,Gd);if(a&2){var c;og(c=pg())&&(b.tabs=c)}},features:[Ff],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","containerChips"],
["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&&(K(0,"div",1)(1,"div",2)(2,"b-button",3),N("onAction",function(){return b.back()}),M(3,"b-icon",4),L()()(),K(4,"div",5),F(5,T$b,2,0,"div",6),F(6,cac,55,37,"div"),L());a&2&&(B(5),G(b.isLoading?
5:-1),B(),G(!b.isLoading&&b.slo&&b.slo.sloId&&b.editableCopy?6:-1))},dependencies:[YT,mC,XB,xi,PB,QB,hC,WB,UB,PK,OK,wI,cL,bL,YK,ZK,hS,sW,f5,VS],encapsulation:2});var u7=function(){LO.apply(this,arguments);var a=this;this.contextSensitiveRegistry=q(KP);this.issueFullFridge=q(RO);this.issuePicker=q(pX);this.snackBar=q(LD);this.imageUrls=q(LV);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(A(function(b){return{path:"/issues",params:{q:"blockedbyid:"+b}}}));this.issue$=this.id$.pipe(zf(function(b){return b?
a.issueFullFridge.watch(b):be(void 0)}));this.blockingIds$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockingIssueId)!=null?c:[]}));this.issuesBeingBlocked$=this.blockingIds$.pipe(zf(function(b){return a.issueFullFridge.watchSet(b)}));this.blockedAndOpen$=this.issuesBeingBlocked$.pipe(A(function(b){return b.filter(Bo)}));this.blockedAndOpenIds$=this.blockedAndOpen$.pipe(A(function(b){return b.map(function(c){return String(c.issueId)})}));this.blockedAndClosed$=this.issuesBeingBlocked$.pipe(A(function(b){return b.filter(function(c){return rWa(c)})}));
this.blockedAndClosedIds$=this.blockedAndClosed$.pipe(A(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(){s5d(a,b)},title:"Remove this relationship",icon:"clear"}]};this.didChooseBlocking=function(b){var c;return y(function(d){if(d.nextAddress==1)return z(d,ee(a.id$),2);c=d.yieldResult;return c==null?d.return():z(d,a.issueFullFridge.addBlocking(c,
b).catch(a.gotErr),0)})};this.gotErr=function(b){a.snackBar.open(iq(b)||"Error with network request","close",{panelClass:"error"})}};Z(u7,LO);u7.\u0275dir=LO.\u0275dir;var dac=function(a){a.issuePicker.open({title:"Add Blocking",allowMultipleIds:!0,edgeType:"blocking"},a.didChooseBlocking)},s5d=function(a,b){var c;y(function(d){if(d.nextAddress==1)return z(d,ee(a.id$),2);c=d.yieldResult;return c==null?d.return():z(d,a.issueFullFridge.removeBlocking(c,[String(b)]).catch(a.gotErr),0)})};
u7.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(u7)))(b||u7)}}();
u7.\u0275cmp=C({type:u7,selectors:[["ng-component"]],features:[Ff],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&&(K(0,"section",0),F(1,rac,2,1),U(2,"async"),L(),F(3,sac,2,0,"aside",1),U(4,"async"));if(a&2){var c;
B();G((c=W(2,2,b.blockingIds$))?1:-1,c);B(2);G(W(4,4,b.thinking$)?3:-1)}},dependencies:[ZA,XA,TA,VA,hK,g_,MA,EF,VS,py],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 t5d=function(){};t5d.\u0275fac=function(a){return new (a||t5d)};t5d.\u0275mod=$e({type:t5d});t5d.\u0275inj=Dc({imports:[FN,ez,KI,mC,nC,ZA,cL,iK,XW,AK,oT,XS,b0,u7]});var v7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,v7.messageId)};Z(v7,X);v7.prototype.getIssueId=function(){return Hn(this,1,void 0,fb)};v7.prototype.getIssueId_asString=function(){return En(this,1,void 0,fb)};v7.prototype.setIssueId=function(a){return ao(this,1,a,void 0,fb)};v7.messageId="b.MonorailIssueRedirectRequest";var w7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,w7.messageId)};Z(w7,X);w7.prototype.getUrl=function(){return Y(this,wm,1,fb)};w7.prototype.setUrl=function(a){return hj(this,wm,1,a,fb)};w7.prototype.hasUrl=function(){return Si(this,wm,1,fb)};w7.messageId="b.MonorailIssueRedirectResponse";var u5d=function(){this.executor=q(RM)},v5d=function(a,b){b=(new v7).setIssueId(b);return a.executor.post({url:"action/monorailIssueRedirect",body:b,responseConstructor:w7}).pipe(A(function(c){return kGa(c.getUrl())}),hf(function(){return be(null)}))};u5d.\u0275fac=function(a){return new (a||u5d)};u5d.\u0275prov=Cc({token:u5d,factory:u5d.\u0275fac,providedIn:"root"});var Bac=function(a,b){return b.issueId},w5d={BLOCKED_BY_ISSUES:"blocked_by",PARENT_ISSUES:"parent"},x7=function(){LO.apply(this,arguments);var a=this;this.issueFullFridge=q(RO);this.router=q(CF);this.STATUS_JS_TERSE=Zhd;this.ListIssuesHovercardMode=w5d;this.mode="blocked_by";this.currentIssueId="";this.issueIds$=new vf(1);this.init=new vf(1);this.issues$=this.issueIds$.pipe(te(ln),zf(function(b){return a.issueFullFridge.watchSet(b)}),A(function(b){return a.mode==="parent"?b.filter(uWa):b.filter(Bo)}))};
Z(x7,LO);x7.\u0275dir=LO.\u0275dir;x7.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":return"high";default:return"low"}};var yac=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 g=l(f.value);f=g.next().value;g=g.next().value;d+=g;d=f<c.length-1?d+"|":d+")"}c={q:d};a.router.navigate([zs.listIssues.makeHref()],{queryParams:c})})};
x7.prototype.ngOnInit=function(){var a=this;this.issues$.pipe(Af(this.destroyed$)).subscribe(function(){a.init.next()})};da.Object.defineProperties(x7.prototype,{issueIds:{configurable:!0,enumerable:!0,set:function(a){this.issueIds$.next(a)}}});x7.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(x7)))(b||x7)}}();
x7.\u0275cmp=C({type:x7,selectors:[["b-list-issues-card"]],inputs:{mode:"mode",currentIssueId:"currentIssueId",issueIds:"issueIds",hovercardInstance:"hovercardInstance"},outputs:{init:"init"},features:[Ff],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,"class"],["type","button","mat-button","",1,"primary","small",3,"click"]],template:function(a,b){a&1&&(F(0,Cac,8,4,"div",0),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.issues$))?0:-1,c)}},dependencies:[ZA,XA,TA,iz,EF,py],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 y7=function(){this.issueFullFridge=q(RO);this.paths=q(wV);this.cdr=q(Yx);this.ancestors=new Map;this.issueId="";this.ListIssuesHovercardMode=w5d;this.reorderedAncestors=[];this.issueIdToTitle=new Map;this.multiParentIssueIds=[]};y7.prototype.ngOnChanges=function(a){var b=this;a.ancestors&&x5d(this).then(function(c){b.issueIdToTitle=c;b.cdr.markForCheck()})};y7.prototype.getIssueLink=function(a){return As(a)};
var x5d=function(a){var b,c,d;return y(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=Oq(a.reorderedAncestors);return d.length===0?e.return(new Map):e.return(ee(he(d.map(function(f){return a.issueFullFridge.watch(f)})).pipe(A(function(f){return f.filter(ln)}),A(function(f){var g=new Map;f=l(f);
for(var k=f.next();!k.done;k=f.next())k=k.value,g.set(k.issueId,k.snapshot[0].title);return g}))))})};y7.\u0275fac=function(a){return new (a||y7)};
y7.\u0275cmp=C({type:y7,selectors:[["ancestors-breadcrumbs"]],inputs:{ancestors:"ancestors",issueId:"issueId"},features:[Gx],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&&(M(0,"mat-icon",2),F(1,Fac,6,5),Pf(2,Gac,3,5,null,null,Of));a&2&&(B(),G(b.multiParentIssueIds.length>1?1:-1),B(),Qf(b.reorderedAncestors))},dependencies:[AK,uK,vK,zK,wK,zQ,x7,iz],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}"],
changeDetection:0});var z7=function(){var a=this;this.issueFullFridge=q(RO);this.hotlistFridge=q(UN);this.hotlistPicker=q(BV);this.issueId$=new vf(1);this.issue$=this.issueId$.pipe(zf(function(b){return a.issueFullFridge.watch(b)}));this.hotlistsOnIssue$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].hotlistId)!=null?c:[]}));this.count$=this.hotlistsOnIssue$.pipe(A(function(b){return b==null?void 0:b.length}),yf(0));this.label$=this.count$.pipe(A(function(b){return b>0?"Hotlists ("+b+")":
"Hotlists"}));this.isDisabled$=this.hotlistFridge.saving$;this.HOTKEYS=ns};z7.prototype.onClick=function(){bCd(this.hotlistPicker,this.issue$)};da.Object.defineProperties(z7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(String(a))}}});z7.\u0275fac=function(a){return new (a||z7)};
z7.\u0275cmp=C({type:z7,selectors:[["hotlist-picker-btn"]],inputs:{issueId:"issueId"},decls:4,vars:7,consts:[["type","button","mat-stroked-button","",1,"small",3,"onHotkey","click","hotkey","disabled"]],template:function(a,b){a&1&&(K(0,"button",0),U(1,"async"),N("onHotkey",function(){return b.onClick()})("click",function(){return b.onClick()}),S(2),U(3,"async"),L());a&2&&(I("hotkey",b.HOTKEYS.OPEN_HOTLIST_PICKER)("disabled",W(1,3,b.isDisabled$)),B(2),T(" ",W(3,5,b.label$),"\n"))},dependencies:[ZA,
XA,TA,fT,py],encapsulation:2});var y5d=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()}}}},z5d=function(a,b){return b.isInternal?{type:"action",label:"Request issue deletion...",title:"Request issue deletion",action:function(){a.requestIssueDeletion()}}:void 0},A5d=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)}}},B5d=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()}}},C5d=function(a,b){var c=b.isArchived;var d=b.isInternal;var e=b.isDeleted;if(!c&&!e&&d&&b.enableIrmIntegrationMenu)return{type:"action",label:"Create incident from bug...",title:"Create incident from bug... (requires Edit Issues permission)",
icon:"new_releases_24px",disabled:!b.permissions.writer,action:function(){a.escalateToIncident()}}},D5d=function(a,b){if(b.isInternal&&b.isDuckieChatEnabled)return{type:"action",label:"Ask Buganizer Agent (Teamfood)",title:"Ask Buganizer Agent (Teamfood)",icon:"chat_spark_24px",action:function(){a.openDuckieChat()}}};var E5d=function(a){return{isDupe:a}},A7=function(){LO.apply(this,arguments);var a=this;this.issueFullFridge=q(RO);this.permissionsFridge=q(mP);this.issuePicker=q(pX);this.snackBar=q(LD);this.eventsForIssueFridge=q(vO);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 vf(1);this.issue$=this.issueId$.pipe(zf(function(b){return a.issueFullFridge.watch(b)}));this.isDupe$=this.issue$.pipe(A(function(b){var c;
return!!(b==null?0:(c=b.snapshot[0])==null?0:c.duplicateOfIssueId)}));this.permissions$=this.issueId$.pipe(zf(function(b){return a.permissionsFridge.watch(vq(b))}));this.canEdit$=this.permissions$.pipe(A(function(b){return!(b==null||!b.writer)}),yf(!0));this.didChooseCanonical=function(b){return function(c){(c=c[0])&&snd(a.issueFullFridge,c,b).then(function(){a.eventsForIssueFridge.poke(b)}).catch(a.gotErr)}};this.gotErr=function(b){a.snackBar.open(iq(b)||"Error with network request","close",{panelClass:"error"})}};
Z(A7,LO);A7.\u0275dir=LO.\u0275dir;
var Hac=function(a){var b,c,d;return y(function(e){switch(e.nextAddress){case 1:return a.disabled||a.issueFullFridge.isSaving(a.internalIssueId)?e.return():z(e,ee(a.canEdit$),2);case 2:return(b=e.yieldResult)?z(e,ee(a.isDupe$),3):e.return();case 3:return c=e.yieldResult,z(e,ee(a.issue$),4);case 4:d=e.yieldResult;if(d==null)return e.return();c?F5d(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));$d(e)}})},F5d=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)};da.Object.defineProperties(A7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)}}});A7.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(A7)))(b||A7)}}();
A7.\u0275cmp=C({type:A7,selectors:[["smart-dupe-btn"]],inputs:{disabled:"disabled",issueId:"issueId"},features:[Ff],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&&(F(0,Iac,3,5,"button",0),U(1,"async"));if(a&2){var c;G((c=Kg(3,E5d,W(1,1,b.isDupe$)))?0:-1,c)}},dependencies:[ZA,XA,TA,py],encapsulation:2});var B7=function(){this.label=""};B7.prototype.toggle=function(){this.hovercardTrigger&&this.hovercardTrigger.toggle(!this.hovercardTrigger.isExpanded())};B7.\u0275fac=function(a){return new (a||B7)};
B7.\u0275cmp=C({type:B7,selectors:[["help-hover"]],viewQuery:function(a,b){a&1&&kg(zK,5);if(a&2){var c;og(c=pg())&&(b.hovercardTrigger=c.first)}},inputs:{label:"label",content:"content"},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&&(K(0,"onedev-hovercard",null,0)(2,"div",1)(3,"div",2),F(4,Kac,1,
1,"ng-container"),L()()(),M(5,"mat-icon",3));a&2&&(a=Q(1),B(2),Jf("aria-label",b.label),B(2),G(b.content?4:-1),B(),I("onedevHovercardTrigger",a))},dependencies:[AK,uK,zK,iz,oy],encapsulation:2});var G5d=function(){};G5d.\u0275fac=function(a){return new (a||G5d)};G5d.\u0275mod=$e({type:G5d});G5d.\u0275inj=Dc({imports:[FN,AK,B7]});var Pac=function(a,b){return b.label},C7=function(){LO.apply(this,arguments);var a=this;this.issueFullFridge=q(RO);this.issuePermissionService=q(NP);this.activeSession=q(Zu);this.appEvents=q(DN);this.issueArchiveService=q(O0);this.domSafe=q($P);this.editIssueService=q(tR);this.matDialogService=q(gB);this.analytics=q(PO);this.llmChatService=q(CZ);this.issueId$=new vf(1);this.retentionEnabled=this.activeSession.isInternalSession();this.HOTKEYS=ns;this.issue$=this.issueId$.pipe(zf(function(b){return a.issueFullFridge.watch(b)}));
this.issueDerivedProperties$=this.issue$.pipe(A(function(b){var c,d,e,f,g,k,m;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:(m=b==null?void 0:(e=b.aggregatedData)==null?void 0:e.voteCount)!=null?m:0,notificationSubscription:kn(b==null?void 0:(f=b.userData)==null?void 0:f.notificationSubscription),retentionState:b==
null?void 0:(g=b.aggregatedData)==null?void 0:g.retentionState}}));this.menuItems$=H5d(this);this.state$=he([this.issueId$,this.issueDerivedProperties$,this.menuItems$]).pipe(A(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})}))};Z(C7,LO);C7.\u0275dir=LO.\u0275dir;h=C7.prototype;h.onAction=function(a,b){return y(function(c){if(c.nextAddress==1)return z(c,Gs(0),2);a.action(b);$d(c)})};
h.updateSubscription=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return z(d,ee(b.issueId$),2);if(d.nextAddress!=3)return(c=d.yieldResult)?z(d,b.editIssueService.updateSubscription(c,a),3):d.return();b.analytics.trackEvent("editIssue","updateSubscription",a);$d(d)})};h.showNotificationSettings=function(a){this.appEvents.topBarEvents.openSettings.next({newTab:a.ctrlKey||a.metaKey,settingsTabName:"notifications"})};
h.showIndefiniteRetentionDialog=function(a){var b=this,c;return y(function(d){return d.nextAddress==1?b.editIssueService.savingState(a).get("retention")?d.return():z(d,ee(eB(b.matDialogService.open(jDd,{maxWidth:560}))),2):(c=d.yieldResult)?z(d,b.editIssueService.updateIssueRetention(a,"INDEFINITE"),0):d.jumpTo(0)})};
h.showComponentRetentionDialog=function(a){var b=this,c;return y(function(d){return d.nextAddress==1?b.editIssueService.savingState(a).get("retention")?d.return():z(d,ee(eB(b.matDialogService.open(fDd,{maxWidth:560}))),2):(c=d.yieldResult)?z(d,b.editIssueService.updateIssueRetention(a,"COMPONENT_DEFAULT"),0):d.jumpTo(0)})};
h.showFlagAsSpamDialog=function(a){var b=this,c;return y(function(d){return d.nextAddress==1?z(d,ee(eB(b.matDialogService.open(iDd,{maxWidth:560}))),2):(c=d.yieldResult)?z(d,hud(b.editIssueService,String(a)),0):d.jumpTo(0)})};
var H5d=function(a){var b={escalateToIncident:function(){var c;return y(function(d){if(d.nextAddress==1)return z(d,ee(a.issueId$),2);c=d.yieldResult;if(!c)return d.return();var e=a.domSafe,f=e.openInNewTab;var g=Ms(a.activeSession)?"http://irm/?create-from-bug="+c:"http://irm-dev/?create-from-bug="+c;f.call(e,g);$d(d)})},requestIssueDeletion:function(){a.domSafe.openInNewTab(Mkb(a.activeSession.isInternalSession()))},showIndefiniteRetentionDialog:function(){var c;return y(function(d){return d.nextAddress==
1?z(d,ee(a.issueId$),2):(c=d.yieldResult)?z(d,a.showIndefiniteRetentionDialog(c),0):d.return()})},showComponentRetentionDialog:function(){var c;return y(function(d){return d.nextAddress==1?z(d,ee(a.issueId$),2):(c=d.yieldResult)?z(d,a.showComponentRetentionDialog(c),0):d.return()})},submitArchivalState:function(c){var d;return y(function(e){return e.nextAddress==1?z(e,ee(a.issueId$),2):(d=e.yieldResult)?z(e,a.issueArchiveService.submitArchivalState(d,c),0):e.return()})},showFlagAsSpamDialog:function(){var c;
return y(function(d){return d.nextAddress==1?z(d,ee(a.issueId$),2):(c=d.yieldResult)?z(d,a.showFlagAsSpamDialog(c),0):d.return()})},openDuckieChat:function(){a.appEvents.openIssueDetailsPageSidebar.next()}};return he([a.issue$,a.issuePermissionService.userIsComponentAdmin$,a.issuePermissionService.issuePermissions$,a.llmChatService.isDuckieChatEnabled$]).pipe(A(function(c){var d=l(c);c=d.next().value;var e=d.next().value;var f=d.next().value;d=d.next().value;var g;f={permissions:f,accessLevel:S7a(c),
isArchived:(g=c==null?void 0:c.isArchived)!=null?g:!1,isDeleted:Q7a(c),isInternal:a.activeSession.isInternalSession(),isComponentAdmin:e,retentionOverride:V7a(c),retentionState:Y7a(c),enableIrmIntegrationMenu:a.activeSession.getFlag("enableIrmIntegrationMenu"),isDuckieChatEnabled:d};return[C5d(b,f),A5d(b,f),B5d(b,f),z5d(b,f),y5d(b,f),D5d(b,f)].filter(ln)}))};da.Object.defineProperties(C7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});
C7.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(C7)))(b||C7)}}();
C7.\u0275cmp=C({type:C7,selectors:[["issue-header-actions"]],viewQuery:function(a,b){a&1&&kg(B7,5);if(a&2){var c;og(c=pg())&&(b.helpHover=c.first)}},inputs:{issueId:"issueId"},features:[Ff],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"],["type","button",
"mat-icon-button","","aria-label","More actions","matTooltip","More actions",1,"medium",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],[1,"issue-header-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&&(F(0,Qac,14,11),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.state$))?0:-1,c)}},dependencies:[wW,ZA,XA,VA,OJ,NJ,LF,JF,OF,hK,B7,fT,z7,iz,MA,U4,Q3,R3,A7,py],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-header-actions-menu .mat-mdc-menu-content button.mat-mdc-menu-item.informational-only mat-icon.mat-icon{vertical-align:text-bottom}"],
changeDetection:0});var D7=function(){LO.call(this);var a=this;this.issueDetailsBrain=q(LP);this.issuePagination=q(v1);this.issueInteractionsTracking=q(pR);this.bLocation=q(US);this.paths=q(wV);this.refreshMonitor=q(DO);this.butterBar=q(JM);this.internalSearchResults$=new Xj(null);this.searchResults$=this.internalSearchResults$.pipe(of(),zf(function(b){return b?b.changed$:be(null)}));this.issueId$=this.issueDetailsBrain.id$;this.totalText$=this.searchResults$.pipe(A(function(b){var c;return(c=b==null?void 0:b.totalText)!=
null?c:""}));this.backNavigationLabel$=this.searchResults$.pipe(A(function(b){return(b==null?0:b.params.returnUrl)?"Back to previous search":"Go home"}));this.issueIndex$=he([this.searchResults$,this.issueId$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d;return(d=c&&(b==null?void 0:BTd(b,c)))!=null?d:-1}));this.hasPreviousIssue$=he([this.searchResults$,this.issueId$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d;if(d=c)b==null?b=0:(c=BTd(b,c),b=c==
null||c===-1?!1:c>b.startIndex||b.params.page>1),d=b;return!!d}));this.hasNextIssue$=he([this.searchResults$,this.issueId$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d;if(d=c)b==null?b=0:(c=BTd(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(){I5d(a)}));this.subscriptions.add(this.issueDetailsBrain.id$.subscribe(function(b){a.issueId=b;I5d(a)}))};Z(D7,LO);
D7.\u0275dir=LO.\u0275dir;
var J5d=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)},Uac=function(a){var b=Pr(a.hasNextIssue$),c=Pr(a.issueIndex$);b&&c&&K5d(a,c+1)},Tac=function(a){var b=Pr(a.hasPreviousIssue$),c=Pr(a.issueIndex$);b&&c&&K5d(a,c-1)},I5d=function(a){var b,c,d;y(function(e){if(e.nextAddress==1)return z(e,JTd(a.issuePagination).catch(Rac),2);b=e.yieldResult;
a.internalSearchResults$.next((c=b)!=null?c:null);if(!b||!a.issueId)return e.return();d=BTd(b,a.issueId);return d===-1?e.jumpTo(0):z(e,LTd(a.issuePagination,d).catch(Rac),0)})},K5d=function(a,b){LTd(a.issuePagination,b).then(function(c){a.bLocation.setUrl(As(c))},function(){a.butterBar.showWarning("Can't find issue id for index '"+b+"'")})};D7.\u0275fac=function(a){return new (a||D7)};D7.\u0275prov=Cc({token:D7,factory:D7.\u0275fac,providedIn:"root"});var L5d=function(){this.currentSearchResults=q(D7);this.HOTKEYS=ns};L5d.\u0275fac=function(a){return new (a||L5d)};
L5d.\u0275cmp=C({type:L5d,selectors:[["b-pagination-one-issue"]],decls:2,vars:3,consts:[["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&&(F(0,Vac,8,13),U(1,
"async"));if(a&2){var c;G((c=W(1,1,b.currentSearchResults.issueIndex$))?0:-1,c)}},dependencies:[ZA,XA,VA,hK,fT,iz,MA,py],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 M5d=function(){var a=this;this.brain=q(LP);this.accessIndicatorService=q(uW);this.INTERNAL="INTERNAL";this.issue$=this.brain.issueJs$.pipe(te(ln));this.retentionState$=this.issue$.pipe(A(function(b){var c;return(c=b.aggregatedData)==null?void 0:c.retentionState}));this.modifiedTime$=this.issue$.pipe(A(function(b){var c;return((c=b.aggregatedData)==null?0:c.modifiedTimeMicros)?b.aggregatedData.modifiedTimeMicros/1E3:void 0}),te(ln));this.accessLevel$=this.issue$.pipe(A(function(b){var c;return(c=
b.accessLimit)==null?void 0:c.accessLevel}),te(ln));this.issueAccessLimitLevel$=this.issue$.pipe(A(function(b){return b.snapshot[0].issueAccessLimitLevel}));this.issueId$=this.issue$.pipe(A(function(b){return b.issueId}));this.hasAccessIndicator$=this.issue$.pipe(zf(function(b){return mEd(a.accessIndicatorService,b.issueId)}),A(function(b){return b.type!=="no_indicator"}));this.state$=he([this.retentionState$,this.issueAccessLimitLevel$,this.modifiedTime$,this.issueId$,this.brain.componentId$,he([this.accessLevel$,
this.hasAccessIndicator$])]).pipe(A(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 g=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:GWb(b),isShowingPublicPartner:c!=="INTERNAL",modifiedTime:e,accessLevel:c,issueId:f,componentId:g,issueAccessLimitLevel:d,
hasAccessIndicator:k}}))};M5d.\u0275fac=function(a){return new (a||M5d)};M5d.\u0275cmp=C({type:M5d,selectors:[["issue-chip-indicators"]],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&&(F(0,$ac,1,1),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.state$))?0:-1,c)}},dependencies:[rY,vW,S3,py],encapsulation:2});var E7=function(){this.teamsService=q(BP);this.onTeamLoaded=new vf(1);this.teamName$=new Xj("");this.isTeamLoaded=!1};E7.prototype.ngOnChanges=function(a){var b=this;a.teamId&&this.teamId!==null&&(this.teamId?CP(this.teamsService,this.teamId).pipe(mf(1),A(function(c){return c.name})).subscribe(function(c){b.teamName$.next(c);b.isTeamLoaded=!0;b.onTeamLoaded.next(b.isTeamLoaded)}):(this.isTeamLoaded=!0,this.onTeamLoaded.next(this.isTeamLoaded)))};E7.\u0275fac=function(a){return new (a||E7)};
E7.\u0275cmp=C({type:E7,selectors:[["b-team-chip"]],inputs:{componentId:"componentId",teamId:"teamId"},outputs:{onTeamLoaded:"onTeamLoaded"},features:[Gx],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&&(K(0,"b-async-data-placeholder",1),F(1,abc,4,4,"div",2),U(2,"async"),L(),K(3,"onedev-hovercard",null,0),Vf(5),M(6,"b-team-card",
3),Wf(),L());if(a&2){I("isReady",b.isTeamLoaded);B();G(W(2,4,b.teamName$)?1:-1);B(5);var c;I("componentId",b.componentId||void 0)("teamId",(c=b.teamId==null?null:b.teamId.toString())!=null?c:"0")}},dependencies:[dW,AK,uK,zK,iz,KU,py],styles:["[_nghost-%COMP%]{min-height:22px}mat-icon[_ngcontent-%COMP%]{margin-right:4px;vertical-align:middle}"],changeDetection:0});var F7=function(){LO.apply(this,arguments);var a=this;this.issueFullFridge=q(RO);this.issuePermissionService=q(NP);this.router=q(CF);this.refreshMonitor=q(DO);this.currentSearchResults=q(D7);this.trackerHelpers=q(WQ);this.eventsForIssueFridge=q(vO);this.cdr=q(Yx);this.starToggleDisabled=!1;this.issueId$=new vf(1);this.internalIssueId="";this.isTeamLoaded=!1;this.ListIssuesHovercardMode=w5d;this.blockedIdsToUrlQuery=function(b){if(!(b.length<2))return{q:"blockingid:"+a.issueId}};this.HOTKEYS=ns;this.issue$=
this.issueId$.pipe(zf(function(b){return a.issueFullFridge.watch(b)}));this.issueTitle$=this.issue$.pipe(A(function(b){return b==null?void 0:b.snapshot[0].title}));this.starred$=this.issue$.pipe(A(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(A(function(b){return kn(b==null?void 0:b.snapshot[0].componentId)}));this.ancestors$=this.issue$.pipe(A(function(b){return kn(b==null?void 0:b.ancestors)}));this.hasAncestors$=
this.ancestors$.pipe(A(function(b){return!!(b&&b.size>0)}));this.teamId$=this.issue$.pipe(A(function(b){var c;return kn(b==null?void 0:(c=b.aggregatedData)==null?void 0:c.teamId)}));this.blockedByids$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockedByIssueId)!=null?c:[]}));this.issuesBlockedByCount$=this.blockedByids$.pipe(zf(function(b){return a.issueFullFridge.watchSet(b)}),A(function(b){return b.filter(Bo)}),A(function(b){return b.length}));this.blockedByids$.pipe(A(kbc));
this.blockedByids$.pipe(A(this.blockedIdsToUrlQuery));this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$;this.status$=this.issue$.pipe(A(function(b){return(b==null?void 0:b.snapshot[0].status)||void 0}));this.statusCssClass$=this.status$.pipe(A(function(b){return a.computeStatusCssClass(b)}));this.prettyStatus$=this.status$.pipe(te(ln),A(function(b){var c;return(c=Um.get(b))!=null?c:""}));this.statusIsFeatured$=this.status$.pipe(A(function(b){return!!aid[b]}));
this.toggleStar=function(){var b;return y(function(c){if(c.nextAddress==1)return z(c,ee(a.starred$),2);b=c.yieldResult;a.starToggleDisabled=!0;ond(a.issueFullFridge,a.issueId,!b).pipe(qf(),Af(a.destroyed$)).subscribe(function(){a.starToggleDisabled=!1;a.cdr.markForCheck()});$d(c)})};this.toggleStarDebounced=hD(this.toggleStar,1E3)};Z(F7,LO);F7.\u0275dir=LO.\u0275dir;F7.prototype.computeStatusCssClass=function(a){return a?"status-"+a:""};F7.prototype.refresh=function(){this.refreshMonitor.refreshRequest.next()};
da.Object.defineProperties(F7.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)},get:function(){return this.internalIssueId}}});F7.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(F7)))(b||F7)}}();
F7.\u0275cmp=C({type:F7,selectors:[["issue-header"]],inputs:{issueId:"issueId"},features:[Ff],decls:39,vars:49,consts:[["withAncestorsBreadcrumbs",""],["card","onedevHovercard"],["cardBody",""],[1,"padded-s","border-bottom"],[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=t();K(0,"div",3);U(1,"async");U(2,"async");U(3,"async");M(4,"aside",4);U(5,"async");U(6,"async");K(7,"div",5)(8,"div",6);F(9,cbc,1,1,"ng-container");U(10,"async");Mf(11,ebc,4,7);E(12,hbc,4,7,"ng-template",null,0,Og);L();K(14,"div",7);M(15,"b-pagination-one-issue");L()();K(16,"div",8)(17,"div",9)(18,"div",10)(19,"button",11);U(20,"async");U(21,"async");N("onHotkey",function(){u(c);return v(J5d(b.currentSearchResults))})("click",function(){u(c);
return v(J5d(b.currentSearchResults))});M(22,"mat-icon",12);L();K(23,"button",13);N("onHotkey",function(){u(c);return v(b.refresh())})("click",function(){u(c);return v(b.refresh())});M(24,"mat-icon",14);L();K(25,"b-star-toggle",15);U(26,"async");N("starClicked",function(){u(c);return v(b.toggleStar())})("onHotkey",function(){u(c);return v(b.toggleStarDebounced())});L()();M(27,"issue-chip-indicators");L();K(28,"div",7)(29,"issue-title",16);U(30,"async");U(31,"async");U(32,"async");N("titleChanged",
function(){u(c);b.eventsForIssueFridge.poke(b.issueId);b.cdr.markForCheck();return v()});L();F(33,ibc,3,2,"div",17);U(34,"async");K(35,"onedev-hovercard",null,1);E(37,jbc,4,7,"ng-container",18);L();M(38,"issue-header-actions",19);L()()()}if(a&2){var d;zg(W(1,23,b.statusCssClass$));yg("overline",W(2,25,b.statusIsFeatured$))("color-field",W(3,27,b.statusIsFeatured$));B(4);I("title",Hg("[",W(5,29,b.prettyStatus$),"] ",W(6,31,b.issueTitle$)));B(5);G(W(10,33,b.hasAncestors$)?9:11);B(10);var e;I("hotkey",
b.HOTKEYS.GO_UP_TO_LIST)("matTooltip",(e=W(20,35,b.currentSearchResults.backNavigationLabel$))!=null?e:"");Jf("aria-label",W(21,37,b.currentSearchResults.backNavigationLabel$));B(4);I("hotkey",b.HOTKEYS.REFRESH_ISSUE);B(2);var f;I("starred",(f=W(26,39,b.starred$))!=null?f:!1)("disabled",b.starToggleDisabled)("hotkey",b.HOTKEYS.TOGGLE_STAR);B(4);I("title",W(30,41,b.issueTitle$))("componentId",W(31,43,b.componentId$))("issueId",b.issueId)("hasAclToEdit",W(32,45,b.issuePermissionService.hasAclToEdit$));
B(4);G((d=W(34,47,b.issuesBlockedByCount$))?33:-1,d);B(5);I("issueId",b.issueId)}},dependencies:[y7,NX,ZA,XA,VA,hK,fT,AK,uK,vK,zK,wK,M5d,C7,fW,ZZ,x7,iz,MA,oy,L5d,yV,E7,py],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)}"],
changeDetection:0});var N5d={INITIAL:0,ABSTENTION_RUNNING:1,ABSTENTION_SUCCESS:2,ABSTENTION_FAILED:3,ABSTENTION_ERROR:4,PLANNING:5,PLANNING_SUCCESS:6,PLANNING_ERROR:7,GENERATING:8,LOADING:9,GENERATION_SUCCESS:10,ERROR:11,GENERATION_SUCCESS_INELIGIBLE:12,GENERATION_FAILED_INELIGIBLE:13,HIDDEN:14,0:"INITIAL",1:"ABSTENTION_RUNNING",2:"ABSTENTION_SUCCESS",3:"ABSTENTION_FAILED",4:"ABSTENTION_ERROR",5:"PLANNING",6:"PLANNING_SUCCESS",7:"PLANNING_ERROR",8:"GENERATING",9:"LOADING",10:"GENERATION_SUCCESS",11:"ERROR",12:"GENERATION_SUCCESS_INELIGIBLE",
13:"GENERATION_FAILED_INELIGIBLE",14:"HIDDEN"},G7={},O5d=(G7[0]={message:"Let Fix Agent attempt a fix in the background"},G7[1]={message:"Analyzing the bug description"},G7[2]={message:"Bug Approved for AI Fix"},G7[3]={message:"The Bug is not approved for AI Fix"},G7[4]={message:"Failed to analyze the bug description"},G7[5]={message:"Generating the plan"},G7[6]={message:"Generated a plan"},G7[7]={message:"Failed to generate the plan"},G7[8]={message:"Generating suggestion. It could take a while. Please check back later and refresh your page."},
G7[9]={message:"Loading AI suggested fix status."},G7[10]={message:"Fix ready for review."},G7[11]={message:"AI was unable to fix this issue. You can try again on another issue."},G7[12]={message:"A previously generated fix exists. This issue is not eligible for regenerating."},G7[13]={message:"A previously failed generation exists. This issue is not eligible for regenerating."},G7[14]={message:"Not eligible for AI fix."},G7),H7=function(){var a=this;this.activeSession=q(Zu);this.tailwindApi=q(HZ);
this.contextSensitiveRegistry=q(KP);this.ignoredIssuesCache=new vOd(100);this.pollingObservable=null;this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(A(jn),of(),wf({bufferSize:1,refCount:!0}));this.planForCurrentIssueSubject=new Xj(void 0);this.planForCurrentIssueSubject.asObservable();this.runForCurrentIssue$=new Xj(void 0);this.statusForCurrentIssue$=new Xj(0);this.issueEligibility$=new Xj(void 0);this.isEnabledForCurrentIssue$=this.issueId$.pipe(zf(function(c){return c&&a.activeSession.getFlag("enableTailwind")&&
a.activeSession.isInternalSession()&&!a.ignoredIssuesCache.hasKey(c)?a.tailwindApi.getIssueEligibility(c).pipe(A(function(d){return d.eligibilityState==="ELIGIBLE_NOT_STARTED"||d.eligibilityState==="EXISTING"||d.eligibilityState==="INELIGIBLE_EXISTING"}),hf(function(){return be(!1)})):be(!1)}),wf({bufferSize:1,refCount:!0}));var b=Lo("llm_suggested_bug_fix_ignored_issues")();yOd(this.ignoredIssuesCache,b!=null?b:void 0)};h=H7.prototype;
h.startPollingForSuggestion=function(a){var b=this;return this.pollingObservable?this.pollingObservable:this.pollingObservable=le(function(){return tOd(b.tailwindApi,a)}).pipe(Bf(function(c){b.isRunComplete(c)&&b.runForCurrentIssue$.next(c)}),A(function(c){if(!b.isRunComplete(c))throw Error("hg");return b.isRunSuccessful(c)?10:11}),axb(),hf(function(c){return c.message==="Not completed"?be(8):be(11)}),pf(function(){b.pollingObservable=null}))};h.createFixPlan=function(a){return this.tailwindApi.createFixPlan({issueId:a}).pipe(A(function(b){return b.toolFlywayId}))};
h.getInitialStatus=function(a){var b=this;return this.tailwindApi.getIssueEligibility(a).pipe(zf(function(c){switch(c.eligibilityState){case "INELIGIBLE":return be(14);case "ELIGIBLE_NOT_STARTED":return be(0);case "EXISTING":case "INELIGIBLE_EXISTING":return tOd(b.tailwindApi,c.runMetadata.runId).pipe(Bf(function(d){b.isRunComplete(d)&&b.runForCurrentIssue$.next(d)}),A(function(d){return b.isRunComplete(d)?b.isRunSuccessful(d)?c.eligibilityState==="EXISTING"?10:12:c.eligibilityState==="EXISTING"?
11:13:8}),hf(function(){return be(11)}),yf(9));default:return be(0)}}),mf(2),hf(function(){return be(11)}))};h.ignoreSuggestion=function(a){isNaN(Number(a))||(wOd(this.ignoredIssuesCache,a),ajd("llm_suggested_bug_fix_ignored_issues")(xOd(this.ignoredIssuesCache)))};h.createRun=function(a){return this.tailwindApi.createRun(a)};h.retryRun=function(a,b,c){return this.tailwindApi.retryRun({issueId:a,userInstructions:b,previousRunId:c})};h.isRunComplete=function(a){return a.metadata!==void 0};
h.isRunSuccessful=function(a){var b;a=Number((b=a.results)==null?void 0:b.oclNumber);return!Number.isNaN(a)&&a>0};H7.\u0275fac=function(a){return new (a||H7)};H7.\u0275prov=Cc({token:H7,factory:H7.\u0275fac,providedIn:"root"});var I7=function(){LO.apply(this,arguments);this.llmSuggestedBugFixServiceV3=q(H7);this.LlmSuggestionStatusV3=N5d;this.STATUS_DATA_V3=O5d;this.activeSession=q(Zu);this.enableTailwindMissionControl=this.activeSession.getFlag("enableTailwindMissionControl");this.issueEligibility$=this.llmSuggestedBugFixServiceV3.issueEligibility$;this.statusForCurrentIssue$=this.llmSuggestedBugFixServiceV3.statusForCurrentIssue$;this.showAbstentionSuccess$=this.statusForCurrentIssue$.pipe(A(function(b){return b===2||
b===3||b===4||b===5||b===6||b===7||b===8||b===9||b===10||b===11}));var a={};this.ABSTENTION_REASON_MESSAGES=(a.REJECTION_REASON_UNSPECIFIED={message:"The AI Fix could not be started due to an unspecified reason. Please try again later."},a.BUG_RESTRICTED={message:"The AI Fix cannot run because access to this bug is restricted. Please go through  go/buganizer-access."},a.CONTAINS_GUITAR_LINK={message:"The bug description contains links to Guitar. The AI Fix does not currently support analyzing issues tied to Guitar test results."},
a.CONTAINS_LISTNR_LINK={message:"The bug description includes a Listnr link. AI Fixes are not supported for issues originating from Listnr feedback reports."},a.CONTAINS_MULTIMEDIA={message:"The bug description contains multimedia (e.g., images, videos). The AI Fix cannot process multimedia content yet."},a.CREATOR_IS_MACHINE={message:"This bug was created by an automated system. The current version does not support bugs created by automated systems."},a.HAS_EXISTING_CLS={message:"This issue already has one or more associated changelists. The AI Fix is intended for issues without existing code changes."},
a.INELIGIBLE_ISSUE_STATUS={message:'The bug\'s current status is not eligible for an AI Fix. Please ensure the status is "New", "Assigned", or "Accepted".'},a.INELIGIBLE_ISSUE_TYPE={message:"The bug type is not supported by the AI Fix."},a.INTERNAL_ERROR={message:"An internal error prevented the AI Fix from starting. Please try again later."},a.ISSUE_NOT_ACCESSIBLE={message:"The AI Fix system could not access this issue. Please go through  go/buganizer-access"},a.IS_GOOGLE_FEEDBACK_REPORT={message:"This issue is a Google Feedback report, which is not supported by the AI Fix process."},
a.IS_SUBSPACE_ALERT={message:"This issue is a Subspace alert. The AI Fix does not currently handle automated alerts from Subspace."},a.MENTIONS_SPECIFIC_ACCELERATORS={message:"The bug description mentions specific hardware accelerators. The AI Fix is not yet equipped to handle accelerator-related issues."},a.MENTIONS_TPU_GPU={message:"The bug description mentions TPUs or GPUs. AI Fixes are not currently supported for issues involving specialized hardware."},a.MISSING_DESCRIPTION={message:"The bug description is missing. A detailed description is required for the AI to understand and attempt a fix."},
a.MISSING_TITLE={message:"The bug title is missing. A clear title is needed for the AI to process the issue."},a.REPORTER_IS_MACHINE={message:"This bug was reported by an automated system. The system does not support bugs reported by automated systems currently."},a.INELIGIBLE_GOOSE_CL_PREDICTION={message:"Based on AI analysis, this issue is unlikely to be resolved with a code change. The AI Fix will not proceed."},a.LOW_GOOSE_SUCCESS_PROBABILITY={message:"The AI has low confidence in successfully generating a fix for this issue. To avoid potential errors, the AI Fix will not be started."},
a.FILTERED_BY_COMPONENT={message:"The AI Fix is not enabled for this component."},a)};Z(I7,LO);I7.\u0275dir=LO.\u0275dir;I7.prototype.ngOnInit=function(){};I7.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(I7)))(b||I7)}}();
I7.\u0275cmp=C({type:I7,selectors:[["b-planner-sidebar"]],inputs:{issueId:"issueId"},features:[Ff],decls:9,vars:10,consts:[[1,"planner-sidebar-container","flex-kids-y","padded-x","padded-bottom"],[1,"padded-s","flex-kids-x","align-items-center","gap-s"],["svgIcon","success",1,"ai-success","icon-s"],[1,"ai-icon-wrapper","pos-rel"],["svgIcon","spark_24px",1,"shrink-0","ai-icon"],[1,"ai-overlay-spinner","ai-gradient",3,"large"],["svgIcon","error",1,"ai-error","icon-s"]],template:function(a,b){a&1&&(K(0,
"div",0),bg(1),U(2,"async"),bg(3),U(4,"async"),bg(5),U(6,"async"),F(7,lbc,4,1,"div",1),F(8,pbc,2,1),L());a&2&&(B(),a=cg(W(2,2,b.statusForCurrentIssue$)),B(2),cg(W(4,5,b.issueEligibility$)),b=W(6,8,b.showAbstentionSuccess$),B(4),G(b?7:-1),B(),G(a?8:-1))},dependencies:[kz,iz,VS,py],styles:[".ai-success[_ngcontent-%COMP%]{color:var(--green-text)}.ai-icon-wrapper[_ngcontent-%COMP%]{width:36px;height:36px}.ai-icon[_ngcontent-%COMP%]{color:var(--blue-text);position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ai-overlay-spinner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}\n/*# sourceMappingURL=planner_sidebar.css.map */"],
changeDetection:0});var P5d=["container"],J7=function(){this.analytics=q(PO);this.contextSensitiveRegistry=q(KP);this.activeSession=q(Zu);this.containerScrolled=!1;this.enableTailwindV3=this.activeSession.getFlag("enableTailwindV3")&&this.activeSession.isInternalSession();this.issueId$=this.contextSensitiveRegistry.getIssueId()};J7.prototype.ngOnInit=function(){var a=this;return y(function(b){a.analytics.trackEvent("tailwind","createPlan");$d(b)})};
J7.prototype.checkContainerScroll=function(){this.containerScrolled=this.container.nativeElement.scrollTop===0?!1:!0};J7.\u0275fac=function(a){return new (a||J7)};
J7.\u0275cmp=C({type:J7,selectors:[["tailwind-planner-sidebar"]],viewQuery:function(a,b){a&1&&kg(P5d,5);if(a&2){var c;og(c=pg())&&(b.container=c.first)}},decls:14,vars:5,consts:[["container",""],[1,"container",3,"scroll"],[1,"flex-kids-x","space-between","tailwind-header","padded-s"],[1,"flex-kids-x","align-items-center"],[1,"devai-logo-wrapper"],["svgIcon","devai"],[1,"heading-m","margin-s-left"],[1,"padded-s"],[3,"issueId"],[1,"no-issue-selected"]],template:function(a,b){if(a&1){var c=t();K(0,"div",
1,0);N("scroll",function(){u(c);return v(b.checkContainerScroll())});K(2,"header",2)(3,"div",3)(4,"div",4);M(5,"mat-icon",5);L();K(6,"span",6);S(7,"Fix Agent");L()()();K(8,"div",7)(9,"p");S(10,"Hi, I am the Fix agent. I can analyze bug report and use the command tools, code search tool and rabbit tools to fix bug and create CL. I'll start analyzing this bug.");L()();F(11,qbc,1,1,"b-planner-sidebar",8);U(12,"async");Mf(13,rbc,2,0,"div",9);L()}if(a&2){var d;B(2);yg("elevated",b.containerScrolled);B(9);
G((d=W(12,3,b.issueId$))?11:13,d)}},dependencies:[iz,I7,py],styles:[".container[_ngcontent-%COMP%]{display:block;width:400px;height:100%;overflow-y:scroll}header[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--dialog-bg);position:-webkit-sticky;position:sticky;top:0;z-index:2}.tailwind-header[_ngcontent-%COMP%]   .ai-icon[_ngcontent-%COMP%]{color:#9334e6;color:var(--purple-text)}\n/*# sourceMappingURL=tailwind_planner_sidebar.css.map */"],changeDetection:0});var K7=function(){LO.apply(this,arguments);this.data=q(fB)};Z(K7,LO);K7.\u0275dir=LO.\u0275dir;K7.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(K7)))(b||K7)}}();
K7.\u0275cmp=C({type:K7,selectors:[["b-tailwind-info-dialog"]],features:[Ff],decls:14,vars:1,consts:[["matDialogTitle",""],["tabindex","0"],[1,"flex-kids-y","gap"],[1,"prompt-container","bg-off-main","carded"],[1,"prompt-header","heading-xs"],[1,"prompt-text","overflow","pre-line"],[1,"step-container","carded","flex-kids-y","gap"],["align","end"],["mat-button","","mat-dialog-close",""],[1,"step-number","muted"],[1,"step-header","heading-xs"],[1,"step-text","pre-line","break-word"],[1,"step-text",
"bg-off-main","carded","overflow","codefont"],[1,"bold-text"],[1,"key-text"],[1,"value-text"],[1,"output-text","overflow","pre-line"]],template:function(a,b){a&1&&(K(0,"h2",0),S(1,"AI suggested fix steps"),L(),K(2,"mat-dialog-content",1)(3,"div",2)(4,"div",3)(5,"h3",4),S(6,"Prompt:"),L(),K(7,"p",5),S(8),L()(),Pf(9,Abc,5,3,"div",6,Of),L()(),K(11,"mat-dialog-actions",7)(12,"button",8),S(13,"Close"),L()());a&2&&(B(8),T(" ",b.data.prompt," "),B(),Qf(b.data.steps))},dependencies:[ZA,XA,TA,mB,hB,lB,kB,
uy],styles:["p[_ngcontent-%COMP%]{font-weight:500}.bold-text[_ngcontent-%COMP%]{font-weight:700}.step-number[_ngcontent-%COMP%]{font-weight:700;font-size:.8em;text-transform:uppercase}.value-text[_ngcontent-%COMP%]{color:var(--green-text)}.key-text[_ngcontent-%COMP%]{color:var(--purple-text)}\n/*# sourceMappingURL=tailwind_info_dialog.css.map */"],changeDetection:0});var L7=function(){var a=this;this.formatter=q(TP);this.llmSuggestedBugFixService=q(JZ);this.analytics=q(PO);this.domSafe=q($P);this.dialog=q(gB);this.dialogConfig={minWidth:"300px",maxWidth:"75vw",maxHeight:"80vh"};this.runResults$=this.llmSuggestedBugFixService.runForCurrentIssue$.pipe(A(function(b){return b==null?void 0:b.results}));this.trajectory$=this.runResults$.pipe(A(function(b){return b==null?void 0:b.trajectory}));this.problemIdentification$=this.runResults$.pipe(zf(function(b){var c,d,
e,f;return y(function(g){return g.nextAddress==1?z(g,Q5d(a,(f=(c=b)==null?void 0:(d=c.summary)==null?void 0:(e=d.problemIdentificationSection)==null?void 0:e.entries)!=null?f:[]),2):g.return(g.yieldResult)})}));this.solution$=this.runResults$.pipe(zf(function(b){var c,d,e,f;return y(function(g){return g.nextAddress==1?z(g,Q5d(a,(f=(c=b)==null?void 0:(d=c.summary)==null?void 0:(e=d.solutionSection)==null?void 0:e.entries)!=null?f:[]),2):g.return(g.yieldResult)})}));this.codeChange$=this.runResults$.pipe(zf(function(b){var c,
d,e,f;return y(function(g){return g.nextAddress==1?z(g,Q5d(a,(f=(c=b)==null?void 0:(d=c.summary)==null?void 0:(e=d.codeChangeSection)==null?void 0:e.entries)!=null?f:[]),2):g.return(g.yieldResult)})}));this.vm$=he({runResults:this.runResults$,problemIdentificationSummaries:this.problemIdentification$,solutionSummaries:this.solution$,codeChangeSummaries:this.codeChange$,trajectory:this.trajectory$})},Q5d=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return c=b.map(function(f){f=a.formatter.format({comment:f,
formattingMode:"MARKDOWN",audience:"INTERNAL",idPrefix:"bug2code"}).pipe(A(function(g){var k,m;return(m=g==null?void 0:(k=g.markdownFormat)==null?void 0:k.content)!=null?m:null}));return ee(f)}),z(e,Promise.all(c),2);d=e.yieldResult;return e.return(d.filter(ln))})};L7.prototype.handleViewInCritique=function(a){a&&(this.domSafe.openInNewTab("https://critique.corp.google.com/"+a),this.analytics.trackEvent("tailwind","viewInCritique",this.issueId))};
L7.prototype.openTailwindInfoDialog=function(a){this.analytics.trackEvent("tailwind","openTrajectoryDialog",this.issueId);this.dialog.open(K7,Object.assign({},{data:a},this.dialogConfig))};L7.\u0275fac=function(a){return new (a||L7)};
L7.\u0275cmp=C({type:L7,selectors:[["b-bug2code-sidebar"]],inputs:{issueId:"issueId"},decls:3,vars:3,consts:[[1,"tailwind-run-summary","flex-kids-y","padded-x","padded-bottom"],[1,"flex-kids-x","align-items-center","gap-s"],["svgIcon","success",1,"ai-success","icon-s"],[1,"summary-group","flex-kids-y","gap-s"],[1,"summary-item","pos-rel",3,"innerHTML"],[1,"summary-item","pos-rel"],["target","_blank",3,"href"],[1,"grow-1"],[1,"summary-controls","flex-kids-x","justify-flex-end","gap-s"],"mat-stroked-button;;color;primary;matTooltip;Show attempted steps taken by the AI. In a dialog.".split(";"),
["mat-stroked-button","","color","primary","matTooltip","Show attempted steps taken by the AI. In a dialog.",3,"click"],["mat-stroked-button","","color","primary",3,"click"],["mat-flat-button","","color","primary",3,"click"]],template:function(a,b){a&1&&(K(0,"div",0),F(1,Lbc,4,4),U(2,"async"),L());if(a&2){var c;B();G((c=W(2,1,b.vm$))?1:-1,c)}},dependencies:[ZA,XA,TA,iz,MA,py],styles:[".tailwind-run-summary[_ngcontent-%COMP%]{min-height:calc(100% - 5rem)}.ai-success[_ngcontent-%COMP%]{color:var(--green-text)}.summary-group[_ngcontent-%COMP%]{border-left:1px solid var(--hairline);list-style-type:disc;margin-left:.5rem}.summary-group[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], .summary-group[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-left:-.5rem}.summary-controls[_ngcontent-%COMP%]{margin-top:2em}[_nghost-%COMP%]   .summary-group[_ngcontent-%COMP%]   .summary-item[_ngcontent-%COMP%]     code{color:#137333;color:var(--green-text)}\n/*# sourceMappingURL=bug2code_sidebar.css.map */"]});var R5d=["container"],M7=function(){this.appEvents=q(DN);this.analytics=q(PO);this.contextSensitiveRegistry=q(KP);this.containerScrolled=!1;this.issueId$=this.contextSensitiveRegistry.getIssueId()};M7.prototype.ngOnInit=function(){var a=this;return y(function(b){a.analytics.trackEvent("tailwind","open");$d(b)})};M7.prototype.closeSidebar=function(){var a=this;return y(function(b){a.appEvents.closeIssueDetailsPageSidebar.next();a.analytics.trackEvent("tailwind","close");$d(b)})};
M7.prototype.checkContainerScroll=function(){this.containerScrolled=this.container.nativeElement.scrollTop===0?!1:!0};M7.\u0275fac=function(a){return new (a||M7)};
M7.\u0275cmp=C({type:M7,selectors:[["tailwind-sidebar"]],viewQuery:function(a,b){a&1&&kg(R5d,5);if(a&2){var c;og(c=pg())&&(b.container=c.first)}},decls:14,vars:8,consts:[["container",""],[1,"container",3,"scroll"],[1,"flex-kids-x","space-between","tailwind-header","padded-s"],[1,"flex-kids-x","align-items-center"],["svgIcon","spark_24px",1,"ai-icon"],[1,"heading-m","margin-s-left"],[1,"flex-kids-x","gap-s"],["type","button","mat-icon-button","","aria-label","close sidebar","matTooltip","Close sidebar",
1,"close-button",3,"click"],["svgIcon","close"],[3,"issueId"],[1,"no-issue-selected"]],template:function(a,b){if(a&1){var c=t();K(0,"div",1,0);N("scroll",function(){u(c);return v(b.checkContainerScroll())});K(2,"header",2)(3,"div",3);M(4,"mat-icon",4);K(5,"span",5);S(6,"AI generated fix");L()();K(7,"div",6)(8,"button",7);N("click",function(){u(c);return v(b.closeSidebar())});M(9,"mat-icon",8);L()()();F(10,Mbc,1,1,"b-bug2code-sidebar",9);U(11,"async");F(12,Nbc,2,0,"div",10);U(13,"async");L()}if(a&
2){var d;B(2);yg("elevated",b.containerScrolled);B(8);G((d=W(11,4,b.issueId$))?10:-1,d);B(2);G(W(13,6,b.issueId$)?-1:12)}},dependencies:[L7,ZA,XA,VA,iz,MA,py],styles:[".container[_ngcontent-%COMP%]{display:block;width:400px;height:100%;overflow-y:scroll}header[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--dialog-bg);position:-webkit-sticky;position:sticky;top:0;z-index:2}.tailwind-header[_ngcontent-%COMP%]   .ai-icon[_ngcontent-%COMP%]{color:#9334e6;color:var(--purple-text)}"]});var N7=function(){var a=this;this.trackerHelpers=q(WQ);this.trackerFridge=q(IP);this.activeSession=q(Zu);this.issueTrackerId$=new Xj(void 0);var b;this.currentTrackerId=(b=this.activeSession.getTracker())==null?void 0:b.trackerId;this.showTrackerBanner$=this.issueTrackerId$.pipe(A(function(c){return!a.currentTrackerId&&!!c}));this.tracker$=this.issueTrackerId$.pipe(zf(function(c){return c?a.trackerFridge.watch(c):be(void 0)}));this.trackerRedirectUrl$=this.tracker$.pipe(A(function(c){return Xt(a.trackerHelpers,
String(a.issueId),c)}))};da.Object.defineProperties(N7.prototype,{trackerId:{configurable:!0,enumerable:!0,set:function(a){this.issueTrackerId$.next(a||void 0)}}});N7.\u0275fac=function(a){return new (a||N7)};
N7.\u0275cmp=C({type:N7,selectors:[["b-tracker-banner"]],inputs:{issueId:"issueId",trackerId:"trackerId"},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&&(F(0,Obc,7,6,"div",0),U(1,"async"),U(2,"async"));if(a&2){var c;G((c=W(1,1,b.showTrackerBanner$)&&W(2,3,b.tracker$))?0:-1,c)}},dependencies:[ZA,XA,TA,py],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 O7=function(){var a=this;this.trackerHelpers=q(WQ);this.trackerFridge=q(IP);this.activeSession=q(Zu);this.imageUrls=q(LV);this.activatedRoute=q(Wj);this.trackerId$=new Xj(void 0);this.tracker$=this.trackerId$.pipe(zf(function(b){return b?a.trackerFridge.watch(b):be(void 0)}));this.trackerName$=this.tracker$.pipe(A(function(b){return b?b.name:a.activeSession.getAppName()}));this.currentTrackerLogo$=be(this.getLogoUrl(this.activeSession.getTracker()));this.trackerLogo$=this.tracker$.pipe(A(function(b){return a.getLogoUrl(b)}));
this.trackerRedirectUrl$=he([this.tracker$,this.activatedRoute.fragment]).pipe(A(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?Xt(a.trackerHelpers,c,b)+d:Xsd(a.trackerHelpers,c)+d}))};
O7.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:""};O7.prototype.ngOnChanges=function(a){a.issue&&this.issue&&this.trackerId$.next(this.issue.trackerId);a.component&&this.component&&this.trackerId$.next(this.component.trackerId)};
da.Object.defineProperties(O7.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 Tm((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=Um.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}}});O7.\u0275fac=function(a){return new (a||O7)};
O7.\u0275cmp=C({type:O7,selectors:[["b-tracker-redirect"]],inputs:{issue:"issue",component:"component"},features:[Gx],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&&F(0,Qbc,15,13,"div",
0);a&2&&G(b.showResourceContainer?0:-1)},dependencies:[ZA,XA,TA,hK,iz,MA,py],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 P7=function(){this.dynamicScrollIntoView=q(VZ);this.paths=q(wV);this.routeParams=q(hR);this.baseIssueReferenceResolver=q(y6);this.destroyed$=new vf(1);var a;this.issueId=(a=this.routeParams.issueId)!=null?a:""};
P7.prototype.visit=function(a){a.event&&(a.event.preventDefault(),a.event.stopPropagation());a.issueId&&a.issueId!==this.issueId||!a.elementId?this.baseIssueReferenceResolver.visit(a):(POd(this.dynamicScrollIntoView,{elementId:a.elementId,parentElement:document.body,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(Af(this.destroyed$)).subscribe(),history&&history.pushState(null,"",As(this.issueId)+"#"+a.elementId))};P7.prototype.ngOnDestroy=function(){this.destroyed$.next()};
P7.\u0275fac=function(a){return new (a||P7)};P7.\u0275prov=Cc({token:P7,factory:P7.\u0275fac});var S5d=function(){LO.call(this);var a=this;this.el=q(Gd);this.router=q(CF);this.router.events.pipe(te(v5a),Af(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(te(u5a),Af(this.destroyed$)).subscribe(function(b){Rbc(a.el.nativeElement,["scrollY",a.rememberScroll,b.url].join("-"))})};
Z(S5d,LO);S5d.\u0275fac=function(a){return new (a||S5d)};S5d.\u0275dir=af({type:S5d,selectors:[["","rememberScroll",""]],inputs:{rememberScroll:"rememberScroll"},features:[Ff]});var T5d=function(){};T5d.\u0275fac=function(a){return new (a||T5d)};T5d.\u0275mod=$e({type:T5d});T5d.\u0275inj=Dc({imports:[FN]});var Vbc=function(a){return{monorailRedirectUrl:a}},vcc=function(){return{exact:!0}},Q7=function(){LO.apply(this,arguments);var a=this;this.contextSensitiveRegistry=q(KP);this.issueFullFridge=q(RO);this.activeSession=q(Zu);this.permissions=q(NP);this.editIssueService=q(tR);this.counts=q(K0);this.appEvents=q(DN);this.issueInteractionsTracking=q(pR);this.checkBeforeExit=q(HX);this.butterBar=q(JM);this.routerEvents=q(OO);this.refreshMonitor=q(DO);this.eventsForIssueFridge=q(vO);this.currentUserBookmarksFridge=
q(ZN);this.permissionsFridge=q(mP);this.issueRelationshipsFridge=q(XO);this.issueService=q(AO);this.errorHandler=q(ZM);this.monorailIssueRedirectApi=q(u5d);this.domSafe=q($P);this.llmSuggestedBugFixService=q(JZ);this.llmSuggestedBugFixServiceV3=q(H7);this.llmChatService=q(CZ);this.id$=this.contextSensitiveRegistry.getIssueId().pipe(te(ln));this.issue$=this.id$.pipe(zf(function(b){return a.issueFullFridge.watch(b)}));this.readyForView$=nia(this.issue$.pipe(A(function(b){return{success:!!b}})),this.issueFullFridge.error$.pipe(Df(this.id$),
te(function(b){var c=l(b);b=c.next().value;c=c.next().value;return!(!c||c!==b.idOrKey)}),A(function(){return{success:!1}})));this.mainIssueLoadError$=this.issueFullFridge.error$.pipe(Df(this.id$),te(function(b){var c=l(b);b=c.next().value;c=c.next().value;return!(!c||c!==b.idOrKey)}),zf(function(b){b=l(b);var c=b.next().value;b=b.next().value;switch(c.status){case 403:return be({status:c.status});case 404:return v5d(a.monorailIssueRedirectApi,b).pipe(A(function(d){return{status:c.status,monorailRedirectUrl:d==
null?void 0:d.toString()}}));default:return be({status:c.status})}}),wf({refCount:!0,bufferSize:1}));this.issueTrackerId$=this.issue$.pipe(A(function(b){return b==null?void 0:b.trackerId}));this.showTrackerRedirect$=this.issueTrackerId$.pipe(A(function(b){var c,d=(c=a.activeSession.getTracker())==null?void 0:c.trackerId;return!!d&&d!==b}));this.snapshot$=this.issue$.pipe(A(function(b){return b==null?void 0:b.snapshot[0]}));this.archived$=this.snapshot$.pipe(A(function(b){return b==null?void 0:b.isArchived}));
this.deleted$=this.snapshot$.pipe(A(function(b){return b==null?void 0:b.isDeleted}));this.undeleteButtonTooltip$=this.permissions.canUndeleteIssue$.pipe(A(function(b){return b?void 0:"Only issue admins can undelete issues"}));this.inArchivedComponent$=this.issue$.pipe(A(function(b){return(b==null?void 0:b.isArchived)&&!(b==null?0:b.snapshot[0].isArchived)}));this.status$=this.issue$.pipe(A(function(b){return(b==null?void 0:b.snapshot[0].status)||void 0}));this.prettyStatus$=this.status$.pipe(te(ln),
A(function(b){var c;return(c=Um.get(b))!=null?c:""}));this.isInactive$=this.status$.pipe(A(function(b){return b==="INACTIVE"}));this.title$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].title)!=null?c:""}));this.issuesBeingBlocked$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockingIssueId)!=null?c:[]}),nf(1E3),zf(function(b){return a.issueFullFridge.watchSet(b)}));this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].duplicateIssueId)!=
null?c:[]}),nf(1E3),zf(function(b){return a.issueFullFridge.watchSet(b)}));this.issueMetadata$=le(function(){return a.id$}).pipe(te(ln),zf(function(b){return a.issueService.getMetadata(b)}),wf({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(n(this.activeSession.getFlag("enableCodeMentionsUi")?[{link:"./todos",title:"TODOs",count$:this.counts.countTodosDisplay$}]:[]),n(this.activeSession.isInternalSession()?[{link:"./insights",title:"Insights",count$:this.counts.countInsightsDisplay$}]:[]));this.isIssueDetailsPageSidebarOpen$=se(this.appEvents.openIssueDetailsPageSidebar.pipe(A(function(){return!0})),this.appEvents.closeIssueDetailsPageSidebar.pipe(A(function(){return!1}))).pipe(yf(!1));
this.issueDetailsOptions$=he({isTailwindEnabledForCurrentIssue:this.llmSuggestedBugFixService.isEnabledForCurrentIssue$,isLlmChatEnabled:this.llmChatService.isLlmChatEnabled$,isIssueDetailsPageSidebarOpen:this.isIssueDetailsPageSidebarOpen$,enableTailwindPlannerSidebar:this.llmSuggestedBugFixServiceV3.isEnabledForCurrentIssue$}).pipe(A(function(b){return{enableTailwindSidebar:b.isTailwindEnabledForCurrentIssue,enableLlmChat:b.isLlmChatEnabled,isIssueDetailsPageSidebarOpen:b.isIssueDetailsPageSidebarOpen,
enableTailwindPlannerSidebar:b.enableTailwindPlannerSidebar}}),wf({bufferSize:1,refCount:!0}))};Z(Q7,LO);Q7.\u0275dir=LO.\u0275dir;Q7.prototype.ngAfterViewInit=function(){var a=this;this.issueDetailsOptions$.pipe(Af(this.destroyed$)).subscribe(function(b){if((b.enableTailwindSidebar||b.enableLlmChat||b.enableTailwindPlannerSidebar)&&b.isIssueDetailsPageSidebarOpen){var c;(c=a.matSideNav)==null||c.open()}else{var d;(d=a.matSideNav)==null||d.close()}})};
Q7.prototype.ngOnInit=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,ee(a.id$),2);b=c.yieldResult;a.appEvents.issueViewed.next(b);Ftd(a.issueInteractionsTracking,b);a.subscriptions.add(a.mainIssueLoadError$.subscribe(function(d){return y(function(e){if(e.nextAddress==1)return d.status===403?e.return():d.monorailRedirectUrl?z(e,Gs(1E3),3):e.jumpTo(2);if(e.nextAddress!=2)return Iqd(a.domSafe,d.monorailRedirectUrl),e.return();a.errorHandler.errorHandler(null,d);$d(e)})}));
a.subscriptions.add(IX(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(te(ln),mf(1)).subscribe(function(d){SO(a.issueFullFridge,[d.issueId],{userActivityType:"VIEW"})}));a.subscriptions.add(a.refreshMonitor.getObservable().subscribe(function(){a.issueInteractionsTracking.trackNavigation("refresh");a.permissionsFridge.poke(vq(b));
a.issueRelationshipsFridge.poke(b);a.issueFullFridge.poke(b);a.eventsForIssueFridge.poke(b);a.currentUserBookmarksFridge.pokeAll();SO(a.issueFullFridge,[b],{userActivityType:"RELOAD"})}));a.destroyed$.subscribe(function(){var d=a.issueInteractionsTracking,e=d.getState(b);d.trackDestroy("edit-count",e.editCount);var f=Date.now()-e.startTime;Gtd(d,f,"idp-time-on-page",e.variations);d.onUserActiveStatusUpdate(b,!1);d.issueToTrackingState.delete(b);d.stopActivityTracking$.next();a.editIssueService.clear(b)});
$d(c)})};Q7.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(Q7)))(b||Q7)}}();
Q7.\u0275cmp=C({type:Q7,selectors:[["issue-details-wrapper"]],viewQuery:function(a,b){a&1&&kg(DL,5);if(a&2){var c;og(c=pg())&&(b.matSideNav=c.first)}},features:[Ig([MO,vR,{provide:yQ,useClass:P7}]),Ff],decls:17,vars:7,consts:[["mainContent",""],["sidebarContent",""],["showIssueDetails",""],["showMonorailRedirect",""],["showNoAccessScreen",""],["tabPanel",""],["rla","routerLinkActive"],[1,"a11y-only"],["hasBackdrop","false","autosize","true",1,"overflow-on-print-media"],[1,"overflow-on-print-media"],
[3,"ngTemplateOutlet"],["mode","side","position","end",3,"autoFocus","disableClose"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[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"],["messageType","info",1,"border-bottom",3,"format"],[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"],["href","http://go/buganizer/concepts/issues#major-updates","target","_blank"],["href","https://developers.google.com/issue-tracker/concepts/issues#major_edits","target","_blank"],["href","http://go/b-inactive-issues","target","_blank"],[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&&(F(0,Sbc,2,1,"h2",7),U(1,"async"),K(2,"mat-sidenav-container",8)(3,"mat-sidenav-content",9),Xf(4,10),L(),K(5,"mat-sidenav",11),Xf(6,10),L()(),E(7,$bc,2,3,"ng-template",
null,0,Og)(9,fcc,2,3,"ng-template",null,1,Og)(11,Bcc,3,3,"ng-template",null,2,Og)(13,Ccc,4,2,"ng-template",null,3,Og)(15,Fcc,3,1,"ng-template",null,4,Og));if(a&2){var c;a=Q(8);var d=Q(10);G((c=W(1,5,b.id$))?0:-1,c);B(4);I("ngTemplateOutlet",a);B();I("autoFocus",!0)("disableClose",!0);B();I("ngTemplateOutlet",d)}},dependencies:[u5,uT,vT,Vz,ZA,XA,TA,cL,Vdd,$K,Tdd,aL,hK,F7,B4,Q_,DL,EL,CL,MA,oy,S5d,EF,FF,oF,J7,M7,N7,O7,py],styles:["[mat-tab-nav-bar][_ngcontent-%COMP%]{padding-left:8px;border-bottom:1px solid var(--divider)}[_nghost-%COMP%]   mat-sidenav-container[_ngcontent-%COMP%]{height:100%;--mat-sidenav-content-background-color: transparent;--mat-sidenav-container-divider-color: var(--divider)}[_nghost-%COMP%]{display:block;width:100%;height:100%}"]});var R7=function(){LO.apply(this,arguments);var a=this;this.issueFullFridge=q(RO);this.butterBar=q(JM);this.duplicateIssueIds$=new Xj([]);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"}]}};Z(R7,LO);R7.\u0275dir=LO.\u0275dir;
R7.prototype.ngOnInit=function(){};R7.prototype.removeDuplicate=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return Vd(d,2),z(d,b.issueFullFridge.removeDuplicate(b.issueId,a),4);if(d.nextAddress!=2)return bk(d,0);c=Zd(d);b.butterBar.showWarning("Could not remove duplicate "+a+". "+c);$d(d)})};da.Object.defineProperties(R7.prototype,{duplicateIds:{configurable:!0,enumerable:!0,set:function(a){this.duplicateIssueIds$.next((a!=null?a:[]).map(function(b){return String(b)}))}}});
R7.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(R7)))(b||R7)}}();R7.\u0275cmp=C({type:R7,selectors:[["b-duplicates-table"]],inputs:{duplicateIds:"duplicateIds",issueId:"issueId"},features:[Ff],decls:2,vars:3,consts:[[3,"issueIds","menuItemFactory","tableColumns","initialSort"]],template:function(a,b){a&1&&(F(0,Gcc,1,4,"b-issues-table",0),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.duplicateIssueIds$))?0:-1,c)}},dependencies:[g_,py],encapsulation:2,changeDetection:0});var S7=function(){LO.apply(this,arguments);var a=this;this.paramsService=q(JP);this.issueFullFridge=q(RO);this.issuePicker=q(pX);this.snackBar=q(LD);this.counts=q(K0);this.imageUrls=q(LV);this.ROBOT_SLEEPING=this.imageUrls.ROBOT_SLEEPING;this.id$=this.paramsService.issueId$;this.dupeUrl$=this.id$.pipe(A(function(b){return{path:"/issues",params:{q:"canonicalid:"+b}}}));this.issue$=this.id$.pipe(te(ln),zf(function(b){return a.issueFullFridge.watch(b)}));this.duplicateIds$=this.issue$.pipe(A(function(b){var c;
return(c=b==null?void 0:b.snapshot[0].duplicateIssueId)!=null?c:[]}));this.duplicatesCount$=this.duplicateIds$.pipe(zf(function(b){return b.length===0?be(0):a.counts.duplicatesDualCount$.pipe(A(function(c){return c.total.count}))}));this.showTable$=this.duplicatesCount$.pipe(A(function(b){return b>0}),yf(!0));this.didChooseDupes=function(b){var c,d;return y(function(e){if(e.nextAddress==1)return z(e,ee(a.id$),2);c=e.yieldResult;if(c==null)return e.return();d=b[0];return z(e,snd(a.issueFullFridge,
c,d).catch(a.gotErr),0)})};this.gotErr=function(b){a.snackBar.open(iq(b)||"Error with network request","close",{panelClass:"error"})}};Z(S7,LO);S7.\u0275dir=LO.\u0275dir;S7.prototype.isThinking=function(){return this.issueFullFridge.isThinking()};var Hcc=function(a){a.issuePicker.open({title:"Add Duplicate",allowMultipleIds:!1,edgeType:"duplicate"},a.didChooseDupes)};S7.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(S7)))(b||S7)}}();
S7.\u0275cmp=C({type:S7,selectors:[["b-issue-duplicates"]],features:[Ff],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&&(K(0,"section",0),F(1,Mcc,3,3),U(2,"async"),L(),F(3,Ncc,2,0,"aside",1));if(a&2){var c;B();G((c=W(2,2,b.duplicateIds$))?1:-1,c);B(2);G(b.isThinking()?3:-1)}},dependencies:[R7,ZA,XA,TA,hK,MA,EF,
VS,py],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 U5d=function(){};U5d.\u0275fac=function(a){return new (a||U5d)};U5d.\u0275mod=$e({type:U5d});U5d.\u0275inj=Dc({imports:[FN,ez,KI,mC,nC,ZA,cL,iK,AK,XW,oT,XS,b0,S7,R7]});var T7=function(){LO.apply(this,arguments);var a=this;this.issueFullFridge=q(RO);this.issueTypeToDisplay=Tm;this.STATUS_JS_FULL_TEXT=Um;this.STATUS_JS_TERSE=Zhd;this.DUPLICATE="DUPLICATE";this.id$=new vf(1);this.issue$=this.id$.pipe(zf(function(b){return a.issueFullFridge.watch(b)}));this.priority$=this.issue$.pipe(A(function(b){return(b==null?void 0:b.snapshot[0].priority)||void 0}));this.type$=this.issue$.pipe(A(function(b){var c;return(c=b==null?void 0:b.snapshot[0].type)!=null?c:void 0}));this.canonicalId$=
this.issue$.pipe(A(function(b){return b==null?void 0:b.snapshot[0].duplicateOfIssueId}));this.status$=this.issue$.pipe(A(function(b){return(b==null?void 0:b.snapshot[0].status)||void 0}));this.statusForChip$=this.status$.pipe(A(function(b){return aid[b]?b:void 0}));this.statusCssClass$=this.status$.pipe(A(function(b){return a.computeStatusCssClass(b)}))};Z(T7,LO);T7.\u0275dir=LO.\u0275dir;T7.prototype.computeStatusCssClass=function(a){return a?"status-"+a:""};
da.Object.defineProperties(T7.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});T7.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(T7)))(b||T7)}}();
T7.\u0275cmp=C({type:T7,selectors:[["issue-description-area"]],inputs:{id:"id"},features:[Ff],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&&(K(0,"div",2)(1,"div",3),F(2,Pcc,6,10,"div"),U(3,"async"),F(4,Qcc,2,4,"span",4),U(5,"async"),M(6,"b-issue-priority-display",5),U(7,"async"),L(),F(8,Rcc,1,1,"b-issue-hotlists",6),U(9,"async"),L(),K(10,"onedev-hovercard",null,0),E(12,Scc,3,4,"b-issue-card",7),L());if(a&2){var c,d,e;B(2);G((c=W(3,4,b.statusForChip$))?2:-1,c);B(2);G((d=W(5,6,b.type$))?4:-1,d);B(2);I("issuePriority",W(7,8,b.priority$));B(2);G((e=W(9,10,b.id$))?8:-1,e)}},dependencies:[AK,uK,vK,zK,wK,xW,YZ,hW,
EF,py],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 U7=function(){this.message=q(HD);this.snackbarRef=q(ID);this.DEFAULT_MESSAGE="New data is available. Click to refresh."};U7.prototype.onDismiss=function(a){this.snackbarRef.dismiss();a.stopPropagation()};U7.\u0275fac=function(a){return new (a||U7)};
U7.\u0275cmp=C({type:U7,selectors:[["refresh-data-notification"]],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&&(K(0,"div",0),N("click",function(){return b.snackbarRef.dismissWithAction()}),
M(1,"mat-icon",1),K(2,"p",2),S(3),L()(),K(4,"button",3),N("click",function(c){return b.onDismiss(c)}),M(5,"mat-icon",4),L());a&2&&(B(3),T(" ",b.message||b.DEFAULT_MESSAGE," "))},dependencies:[ZA,XA,VA,iz],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 V5d=function(){this.snackbar=q(LD)},W5d=function(a){var b=ns.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(U7,c);return a.currentSnackBar};V5d.\u0275fac=function(a){return new (a||V5d)};V5d.\u0275prov=Cc({token:V5d,factory:V5d.\u0275fac,providedIn:"root"});var V7=function(){LO.apply(this,arguments);var a=this;this.eventsForIssue=q(vO);this.issueFullFridge=q(RO);this.preferences=q(VP);this.commentHistoryDialogService=q(XY);this.issueDetailsBrain=q(LP);this.errorHandler=q(ZM);this.refreshDataNotification=q(V5d);this.eventsForIssueWatcher=q(BX);this.analytics=q(PO);this.appEvents=q(DN);this.id$=new vf(1);this.events$=this.id$.pipe(zf(function(b){return a.eventsForIssue.watch(b)}),A(function(b){var c;return(c=b==null?void 0:b.events)!=null?c:[]}));this.issue$=
this.id$.pipe(zf(function(b){return a.issueFullFridge.watch(b)}));this.accessLevel$=this.issue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.enableInlineScreenshots$=this.preferences.showInlineImages$.pipe(A(Boolean),yf(!0))};Z(V7,LO);V7.\u0275dir=LO.\u0275dir;
V7.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=Pr(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(XHd(this.eventsForIssueWatcher,Pr(this.id$)).subscribe(function(){X5d(a)}));this.subscriptions.add(this.events$.subscribe(function(){var b;
(b=a.refreshDataNotification.currentSnackBar)==null||b.dismiss()}));this.destroyed$.pipe(mf(1)).subscribe(function(){var b;(b=a.refreshDataNotification.currentSnackBar)==null||b.dismiss()})};
var X5d=function(a){a.analytics.trackEvent("pushUpdate","display","comment");W5d(a.refreshDataNotification).afterDismissed().subscribe(function(b){b.dismissedByAction?(a.analytics.trackEvent("pushUpdate","fetchResource","comment"),a.issueFullFridge.poke(Pr(a.id$)),a.eventsForIssue.poke(Pr(a.id$)),a.appEvents.scrollToCommentBox.next()):a.analytics.trackEvent("pushUpdate","dismiss","comment")})};da.Object.defineProperties(V7.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});
V7.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(V7)))(b||V7)}}();
V7.\u0275cmp=C({type:V7,selectors:[["issue-event-list"]],inputs:{id:"id"},features:[Ff],decls:6,vars:15,consts:[[3,"issueId","events","issueAccessLevel","showFullHistory"]],template:function(a,b){a&1&&(M(0,"b-event-stream",0),U(1,"async"),U(2,"async"),U(3,"async"),U(4,"async"),U(5,"async"));a&2&&(I("issueId",W(1,5,b.id$))("events",W(2,7,b.events$))("issueAccessLevel",W(3,9,b.accessLevel$))("showFullHistory",W(4,11,b.preferences.showFullHistory$)),Jf("data-will-inline-screenshots",W(5,13,b.enableInlineScreenshots$)?
!0:null))},dependencies:[WZ,py],styles:["[_nghost-%COMP%]     .bv2-edit-issue-history-stream {\n      padding-left: 0;\n    }"]});var Ucc=function(a){return{data:a}},Y5d=function(){this.dialogRef=q(dB);this.data=q(fB);this.userInstructions=""};Y5d.\u0275fac=function(a){return new (a||Y5d)};
Y5d.\u0275cmp=C({type:Y5d,selectors:[["b-retry-run-dialog"]],decls:24,vars:5,consts:[["tailwindInfo",""],[1,"dialog"],["mat-dialog-title",""],["tabindex","0"],[1,"flex-kids-y","gap"],["appearance","outline",1,"retry-instructions","w-100"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMaxRows","10","placeholder","e.g. a different root cause, a specific code path, or a similar fixed bug.",3,"ngModelChange","ngModel"],[1,"mat-elevation-z0","bg-secondary","bordered"],["align","end"],["type","button",
"mat-stroked-button","",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","color","primary",1,"medium",3,"mat-dialog-close","disabled"],["matExpansionPanelContent",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"flex-kids-y","gap","tailwind-info"],[1,"prompt-container","bg-off-main","carded"],[1,"prompt-header","heading-xs"],[1,"prompt-text","overflow","pre-line"],[1,"step-container","carded","flex-kids-y","gap"],[1,"step-number","muted"],[1,"step-header","heading-xs"],
[1,"step-text","pre-line","break-word"],[1,"step-text","bg-off-main","carded","overflow","codefont"],[1,"bold-text"],[1,"key-text"],[1,"value-text"],[1,"output-text","overflow","pre-line"]],template:function(a,b){if(a&1){var c=t();K(0,"article",1)(1,"h2",2);S(2," Retry AI fix ");L();K(3,"mat-dialog-content",3)(4,"div",4)(5,"p");S(6," Please review the details and summary of the last run. If available, use the ");K(7,"b");S(8,"View Steps Taken");L();S(9," button for more context before providing additional instructions. ");
L();K(10,"p");S(11," For example, your instructions could address a different root cause, a specific code path, or a past, similar bug, with linked CLs. ");L();K(12,"mat-form-field",5)(13,"mat-label");S(14,"Provide instructions (Optional)");L();K(15,"textarea",6);Eg("ngModelChange",function(d){u(c);Dg(b.userInstructions,d)||(b.userInstructions=d);return v(d)});L()();F(16,Vcc,5,4,"mat-expansion-panel",7);L()();K(17,"mat-dialog-actions",8)(18,"button",9);S(19," Cancel ");L();K(20,"button",10);S(21,
" Retry ");L()()();E(22,edc,8,1,"ng-template",11,0,Og)}a&2&&(B(15),Cg("ngModel",b.userInstructions),B(),G(b.data.trajectory?16:-1),B(2),I("mat-dialog-close",void 0),B(2),I("mat-dialog-close",b.userInstructions)("disabled",!b.userInstructions))},dependencies:[HB,mC,xi,PB,WB,ZA,XA,TA,DB,qB,BB,tB,qC,EB,oC,mB,hB,lB,kB,fL,$dd,gL,hL,oy,uy],styles:[".dialog[_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:24px;gap:4px;-moz-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.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%]{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;gap:8px}.dialog[_ngcontent-%COMP%]   .retry-instructions[_ngcontent-%COMP%]{width:100%}.dialog[_ngcontent-%COMP%]   .retry-instructions[_ngcontent-%COMP%]   textarea[matInput][_ngcontent-%COMP%]{overflow-y:hidden;resize:none}.dialog[_ngcontent-%COMP%]   .actions[_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;gap:12px}.dialog[_ngcontent-%COMP%]   h2[mat-dialog-title][_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;font-weight:400;font-size:1.5rem}.dialog[_ngcontent-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]{background-color:inherit;border:none;color:var(--mat-dialog-supporting-text-color);margin-top:-1rem}.dialog[_ngcontent-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]   mat-expansion-panel-header[_ngcontent-%COMP%]{padding-left:.5rem}.dialog[_ngcontent-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]   mat-panel-title[_ngcontent-%COMP%]{color:inherit}.dialog[_ngcontent-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]   .tailwind-info[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-weight:500}.dialog[_ngcontent-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]   .tailwind-info[_ngcontent-%COMP%]   .bold-text[_ngcontent-%COMP%]{font-weight:700}.dialog[_ngcontent-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]   .tailwind-info[_ngcontent-%COMP%]   .step-number[_ngcontent-%COMP%]{font-weight:700;font-size:.8em;text-transform:uppercase}.dialog[_ngcontent-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]   .tailwind-info[_ngcontent-%COMP%]   .value-text[_ngcontent-%COMP%]{color:var(--green-text)}.dialog[_ngcontent-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]   .tailwind-info[_ngcontent-%COMP%]   .key-text[_ngcontent-%COMP%]{color:var(--purple-text)}\n/*# sourceMappingURL=retry_run_dialog.css.map */"],
changeDetection:0});var W7=function(){},Z5d=function(a){var b=Mo("buganizer-homepage-tailwind-runs")();b||(b=[]);b.includes(a)||b.push(a);No("buganizer-homepage-tailwind-runs")(b)},$5d=function(){var a=Mo("buganizer-homepage-tailwind-runs")()||[];return Array.isArray(a)?[].concat(n(a)):[]},X7=function(a){var b=$5d();b.includes(a)&&(b.splice(b.indexOf(a),1),No("buganizer-homepage-tailwind-runs")(b))};W7.\u0275fac=function(a){return new (a||W7)};W7.\u0275prov=Cc({token:W7,factory:W7.\u0275fac,providedIn:"root"});var Pu=function(a){return{status:a}},Y7=function(){this.destroyRef=q(Be);this.errorHandler=q(ZM);this.llmSuggestedBugFixService=q(JZ);this.refreshMonitor=q(DO);this.activeSession=q(Zu);this.analytics=q(PO);this.appEvents=q(DN);this.domSafe=q($P);q(W7);this.tasksService=q(jP);this.dialog=q(gB);this.dialogConfig={minWidth:"300px",maxWidth:"75vw",maxHeight:"80vh"};this.issueId="";this.status$=new Xj(7);this.ignored$=new Xj(!1);this.showLlmSuggestion$=he({isEnabled:this.llmSuggestedBugFixService.isEnabledForCurrentIssue$,
ignored:this.ignored$}).pipe(A(function(a){var b=a.isEnabled;a=a.ignored;return b&&!a}));this.statusMessage$=this.status$.pipe(A(function(a){return AOd[a].message}));this.isInternalSession=this.activeSession.isInternalSession();this.LlmSuggestionStatus=zOd;this.enableTailwindMissionControl=this.activeSession.getFlag("enableTailwindMissionControl")};
Y7.prototype.ngOnInit=function(){var a=this;this.refreshMonitor.getObservable().pipe(yf(null)).pipe(zf(function(){return a.llmSuggestedBugFixService.getInitialStatus(a.issueId)}),oj(this.destroyRef)).subscribe(function(b){a.status$.next(b)});this.showLlmSuggestion$.pipe(te(Boolean),mf(1),oj(this.destroyRef)).subscribe(function(){a.analytics.trackEvent("tailwind","view",a.issueId)})};
var udc=function(a){a.analytics.trackEvent("tailwind","generate",a.issueId);a.status$.next(1);a.enableTailwindMissionControl&&(Z5d(a.issueId),a6d(a,a.issueId));a.llmSuggestedBugFixService.createRun(a.issueId).pipe(oj(a.destroyRef),zf(function(b){return b.runId?a.llmSuggestedBugFixService.startPollingForSuggestion(b.runId):(a.status$.next(4),be(4))})).subscribe(function(b){a.status$.next(b)})};h=Y7.prototype;
h.handleViewSummary=function(){this.openSidebar();this.analytics.trackEvent("tailwind","display",this.issueId);X7(this.issueId)};h.handleViewInCritique=function(){var a,b,c,d=(c=(a=this.llmSuggestedBugFixService.runForCurrentIssue$.value)==null?void 0:(b=a.results)==null?void 0:b.oclNumber)!=null?c:"";d&&(this.domSafe.openInNewTab("https://critique.corp.google.com/"+d),this.analytics.trackEvent("tailwind","viewInCritique",this.issueId),X7(this.issueId))};h.openSidebar=function(){this.appEvents.openIssueDetailsPageSidebar.next()};
h.ignore=function(){this.llmSuggestedBugFixService.ignoreSuggestion(this.issueId);this.ignored$.next(!0)};h.openTailwindInfoDialog=function(){this.analytics.trackEvent("tailwind","openTrajectoryDialog",this.issueId);var a,b;this.dialog.open(K7,Object.assign({},{data:(a=this.llmSuggestedBugFixService.runForCurrentIssue$.value)==null?void 0:(b=a.results)==null?void 0:b.trajectory},this.dialogConfig));X7(this.issueId)};
h.hasTrajectoryData=function(){var a,b,c=(a=this.llmSuggestedBugFixService.runForCurrentIssue$.value)==null?void 0:(b=a.results)==null?void 0:b.trajectory;return c!==void 0&&c.prompt!==""&&c.steps.length>0};
var Cdc=function(a){var b,c=(b=a.llmSuggestedBugFixService.runForCurrentIssue$.value)==null?void 0:b.metadata,d,e;eB(a.dialog.open(Y5d,Object.assign({},{data:a.hasTrajectoryData()?{trajectory:(d=a.llmSuggestedBugFixService.runForCurrentIssue$.value)==null?void 0:(e=d.results)==null?void 0:e.trajectory}:{}},a.dialogConfig))).subscribe(function(f){if(f!==void 0){a.status$.next(1);var g;a.llmSuggestedBugFixService.retryRun(a.issueId,f,(g=c==null?void 0:c.runId)!=null?g:"").pipe(oj(a.destroyRef),zf(function(k){return k.runId?
a.llmSuggestedBugFixService.startPollingForSuggestion(k.runId):(a.status$.next(4),be(4))})).subscribe(function(k){a.status$.next(k)})}})},a6d=function(a,b){b="b/"+b;var c=new Dm;c.setSeconds(c.getSeconds()+6);Uod(a.tasksService,[b],{seconds:c.getTime()/1E3,nanos:0}).pipe(oj(a.destroyRef),nf(3E3)).subscribe(function(){},function(d){return void a.errorHandler.errorHandler(null,d)})};Y7.prototype.ignore=Y7.prototype.ignore;Y7.\u0275fac=function(a){return new (a||Y7)};
Y7.\u0275cmp=C({type:Y7,selectors:[["llm-suggested-bug-fix"]],inputs:{issueId:"issueId"},decls:14,vars:6,consts:[["initialButtons",""],["generatingButtons",""],["suggestionAvailableButtons",""],["errorButtons",""],["retryButton",""],["aiHelp",""],[1,"carded","margin-s-sides","margin-s-bottom","bg-main","flex-kids-x","align-items-center","ai-highlighted"],[1,"ai-icon-wrapper","pos-rel"],["svgIcon","spark_24px","color","primary",1,"margin-xs-right","shrink-0","ai-icon"],[1,"ai-loader"],[1,"uppercase",
"badged","early-access"],[3,"panelTemplate"],["aria-label","AI help information"],["svgIcon","help-outline",1,"icon-s"],["target","_blank","href","http://go/passerine-feedback","matTooltip","Provide feedback for this feature.","aria-label","Provide feedback for this feature",1,"feedback-icon","feedback-button"],["svgIcon","feedback-outline",1,"icon-s"],[1,"flex-kids-x","grow-1","justify-flex-end"],[4,"ngTemplateOutlet"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","color","primary",
"mat-flat-button","","matTooltip","Generate a LLM-suggested CL for this bug.",1,"small","margin-s-left",3,"click"],["type","button","color","secondary","mat-stroked-button","","matTooltip","Ignore the LLM-suggested fix feature for this bug.",1,"small","margin-s-left",3,"click"],["type","button","color","secondary","mat-stroked-button","","matTooltip","View the summary of the LLM-suggested fix in the side panel.",1,"small","margin-s-left",3,"click"],["type","button","color","primary","mat-flat-button",
"","matTooltip","View the LLM-suggested CL for this bug in Critique.",1,"small","margin-s-left",3,"click"],["type","button","color","primary","mat-button","","matTooltip","Show attempted steps taken by the AI. In a dialog.",1,"small","margin-s-left"],["type","button","color","primary","mat-button","","matTooltip","Show attempted steps taken by the AI. In a dialog.",1,"small","margin-s-left",3,"click"],["type","button","color","primary","mat-flat-button","","matTooltip","Retry generating the LLM-suggested CL for this bug.",
1,"small","margin-s-left"],["type","button","color","primary","mat-flat-button","","matTooltip","Retry generating the LLM-suggested CL for this bug.",1,"small","margin-s-left",3,"click"]],template:function(a,b){a&1&&(bg(0),U(1,"async"),F(2,tdc,21,6,"div",6),U(3,"async"),E(4,vdc,4,0,"ng-template",null,0,Og)(6,wdc,0,0,"ng-template",null,1,Og)(8,ydc,5,4,"ng-template",null,2,Og)(10,Bdc,2,5,"ng-template",null,3,Og)(12,Edc,1,1,"ng-template",null,4,Og));a&2&&(a=cg(W(1,1,b.status$)),B(2),G(b.isInternalSession&&
W(3,4,b.showLlmSuggestion$)&&a!==b.LlmSuggestionStatus.HIDDEN?2:-1))},dependencies:[ZA,XA,TA,iz,MA,oy,EV,DV,NK,py],styles:['.bg-main[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg)}.ai-highlighted[_ngcontent-%COMP%]{background:var(--purple-bg);position:relative}.ai-highlighted[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;border-radius:4px 0 0 4px;background:-webkit-linear-gradient(315deg,var(--insights-purple) 0,var(--insights-pink) 100%);background:linear-gradient(135deg,var(--insights-purple) 0,var(--insights-pink) 100%)}.ai-highlighted[_ngcontent-%COMP%]   .ai-icon[_ngcontent-%COMP%]{color:var(--purple-text)}.ai-highlighted[_ngcontent-%COMP%]   .ai-icon-wrapper[_ngcontent-%COMP%]{margin-right:.5em}.ai-highlighted[_ngcontent-%COMP%]   .ai-loader[_ngcontent-%COMP%]{position:absolute;top:-.1em;left:-.1em;width:2.1em;height:2.1em;border-radius:50%;-webkit-animation:_ngcontent-%COMP%_rotate 1s linear infinite;animation:_ngcontent-%COMP%_rotate 1s linear infinite}.ai-highlighted[_ngcontent-%COMP%]   .ai-loader[_ngcontent-%COMP%]:before{content:"";-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;inset:0;border-radius:50%;border:2px solid var(--purple-text);-webkit-animation:_ngcontent-%COMP%_clipSpinner 2s linear infinite alternate;animation:_ngcontent-%COMP%_clipSpinner 2s linear infinite alternate}@-webkit-keyframes _ngcontent-%COMP%_rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes _ngcontent-%COMP%_rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes _ngcontent-%COMP%_clipSpinner{0%{-webkit-clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0);clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}25%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0);clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}50%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}75%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)}to{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}}@keyframes _ngcontent-%COMP%_clipSpinner{0%{-webkit-clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0);clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}25%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0);clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}50%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}75%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)}to{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}}.ai-highlighted[_ngcontent-%COMP%]   button[mat-stroked-button][_ngcontent-%COMP%]{background:var(--background)}.generate[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.generate[_ngcontent-%COMP%]:hover{color:var(--blue-800);background:-webkit-linear-gradient(315deg,#d3e3fd,#d0f8ff,#a8c7fa,#99f0ff,#d3e3fd,#d3e3fd,#d0f8ff,#a8c7fa,#99f0ff,#d3e3fd) 50%/1500% 1500%;background:linear-gradient(135deg,#d3e3fd,#d0f8ff,#a8c7fa,#99f0ff,#d3e3fd,#d3e3fd,#d0f8ff,#a8c7fa,#99f0ff,#d3e3fd) 50%/1500% 1500%;-webkit-animation:_ngcontent-%COMP%_shimmer 2.1s linear infinite;animation:_ngcontent-%COMP%_shimmer 2.1s linear infinite}@-webkit-keyframes _ngcontent-%COMP%_shimmer{0%{background-position:100% 100%}to{background-position:top 37.5% left 37.5%}}@keyframes _ngcontent-%COMP%_shimmer{0%{background-position:100% 100%}to{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)}  .tailwind-info-dialog p{font-weight:500}  .tailwind-info-dialog .bold-text{font-weight:700}  .tailwind-info-dialog .step-number{font-weight:700;font-size:.8em;text-transform:uppercase}  .tailwind-info-dialog .value-text{color:var(--green-text)}  .tailwind-info-dialog .key-text{color:var(--purple-text)}'],
changeDetection:0});var Mdc=function(a){return{status:a}},Rdc=function(a,b){return{status:a,hasTrajectoryData:b}},Z7=function(){this.destroyRef=q(Be);this.llmSuggestedBugFixServiceV3=q(H7);this.refreshMonitor=q(DO);this.activeSession=q(Zu);this.analytics=q(PO);this.appEvents=q(DN);this.domSafe=q($P);q(W7);this.dialog=q(gB);this.dialogConfig={minWidth:"300px",maxWidth:"75vw",maxHeight:"80vh"};this.issueId="";this.ignored$=new Xj(!1);this.showLlmSuggestion$=he({isEnabled:this.llmSuggestedBugFixServiceV3.isEnabledForCurrentIssue$,
ignored:this.ignored$}).pipe(A(function(a){var b=a.isEnabled;a=a.ignored;return b&&!a}));this.statusMessage$=this.llmSuggestedBugFixServiceV3.statusForCurrentIssue$.pipe(A(function(a){return a<=8?O5d[0].message:O5d[a].message}));this.isInternalSession=this.activeSession.isInternalSession();this.LlmSuggestionStatusV3=N5d;this.enableTailwindMissionControl=this.activeSession.getFlag("enableTailwindMissionControl");this.status$=this.llmSuggestedBugFixServiceV3.statusForCurrentIssue$;this.hasTrajectoryData$=
this.llmSuggestedBugFixServiceV3.runForCurrentIssue$.pipe(A(function(a){var b;a=a==null?void 0:(b=a.results)==null?void 0:b.trajectory;return a!==void 0&&a.prompt!==""&&a.steps.length>0}),yf(!1));this.shouldShowActionBar$=this.isInternalSession?he({showLlmSuggestion:this.showLlmSuggestion$,status:this.status$}).pipe(A(function(a){var b=a.showLlmSuggestion;a=a.status;return b&&a!==14})):be(!1)};
Z7.prototype.ngOnInit=function(){var a=this;this.refreshMonitor.getObservable().pipe(yf(null)).pipe(zf(function(){return a.llmSuggestedBugFixServiceV3.getInitialStatus(a.issueId)}),oj(this.destroyRef)).subscribe(function(b){a.llmSuggestedBugFixServiceV3.statusForCurrentIssue$.next(b)});this.showLlmSuggestion$.pipe(te(Boolean),mf(1),oj(this.destroyRef)).subscribe(function(){a.analytics.trackEvent("tailwind","view",a.issueId)})};
var Zdc=function(a){a.appEvents.openIssueDetailsPageSidebar.next();a.llmSuggestedBugFixServiceV3.statusForCurrentIssue$.next(1);be(!0).pipe(nf(2E3),A(function(){return 2}),oj(a.destroyRef),zf(function(b){a.llmSuggestedBugFixServiceV3.statusForCurrentIssue$.next(b);a.llmSuggestedBugFixServiceV3.statusForCurrentIssue$.next(5);return a.llmSuggestedBugFixServiceV3.createFixPlan(a.issueId)}),zf(function(b){return b?be({status:6}):(a.llmSuggestedBugFixServiceV3.statusForCurrentIssue$.next(7),be({status:7,
fixPlan:void 0}))})).subscribe(function(b){a.llmSuggestedBugFixServiceV3.statusForCurrentIssue$.next(b.status);a.llmSuggestedBugFixServiceV3.planForCurrentIssueSubject.next(b.fixPlan)})};h=Z7.prototype;h.handleViewSummary=function(){this.openSidebar();this.analytics.trackEvent("tailwind","display",this.issueId);X7(this.issueId)};
h.handleViewInCritique=function(){var a,b,c,d=(c=(a=this.llmSuggestedBugFixServiceV3.runForCurrentIssue$.value)==null?void 0:(b=a.results)==null?void 0:b.oclNumber)!=null?c:"";d&&(this.domSafe.openInNewTab("https://critique.corp.google.com/"+d),this.analytics.trackEvent("tailwind","viewInCritique",this.issueId),X7(this.issueId))};h.openSidebar=function(){this.appEvents.openIssueDetailsPageSidebar.next()};h.ignore=function(){this.llmSuggestedBugFixServiceV3.ignoreSuggestion(this.issueId);this.ignored$.next(!0)};
h.openTailwindInfoDialog=function(){this.analytics.trackEvent("tailwind","openTrajectoryDialog",this.issueId);var a,b;this.dialog.open(K7,Object.assign({},{data:(a=this.llmSuggestedBugFixServiceV3.runForCurrentIssue$.value)==null?void 0:(b=a.results)==null?void 0:b.trajectory},this.dialogConfig));X7(this.issueId)};Z7.prototype.ignore=Z7.prototype.ignore;Z7.\u0275fac=function(a){return new (a||Z7)};
Z7.\u0275cmp=C({type:Z7,selectors:[["tailwind-action-bar"]],inputs:{issueId:"issueId"},decls:14,vars:3,consts:[["planningButtons",""],["initialButtons",""],["generatingButtons",""],["suggestionAvailableButtons",""],["errorButtons",""],["retryButton",""],["aiHelp",""],[1,"carded","margin-s-sides","margin-s-bottom","bg-main","flex-kids-x","align-items-center","ai-highlighted"],[1,"ai-icon-wrapper","pos-rel"],["svgIcon","devai","color","primary",1,"margin-xs-right","shrink-0","ai-icon"],[1,"ai-loader"],
[1,"uppercase","badged","early-access"],[3,"panelTemplate"],["aria-label","AI help information"],["svgIcon","help-outline",1,"icon-s"],["target","_blank","href","http://go/passerine-feedback","matTooltip","Provide feedback for this feature.","aria-label","Provide feedback for this feature",1,"feedback-icon","feedback-button"],["svgIcon","feedback-outline",1,"icon-s"],[1,"flex-kids-x","grow-1","justify-flex-end"],[4,"ngTemplateOutlet"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",
"color","primary","mat-stroked-button","","matTooltip","Ignore the LLM-suggested fix feature for this bug.",1,"margin-s-left",3,"click"],["type","button","color","primary","mat-flat-button","","matTooltip","Generate a LLM-suggested CL for this bug.",1,"start-ai-fix-button","margin-s-left",3,"click"],["type","button","color","secondary","mat-stroked-button","","matTooltip","View the summary of the LLM-suggested fix in the side panel.",1,"small","margin-s-left",3,"click"],["type","button","color","primary",
"mat-flat-button","","matTooltip","View the LLM-suggested CL for this bug in Critique.",1,"small","margin-s-left",3,"click"],["type","button","color","primary","mat-button","","matTooltip","Show attempted steps taken by the AI. In a dialog.",1,"small","margin-s-left"],["type","button","color","primary","mat-button","","matTooltip","Show attempted steps taken by the AI. In a dialog.",1,"small","margin-s-left",3,"click"],["type","button","color","primary","mat-flat-button","","matTooltip","Retry generating the LLM-suggested CL for this bug.",
1,"small","margin-s-left"],["type","button","color","primary","mat-flat-button","","matTooltip","Retry generating the LLM-suggested CL for this bug.",1,"small","margin-s-left",3,"click"]],template:function(a,b){a&1&&(F(0,Xdc,27,12,"div",7),U(1,"async"),E(2,Ydc,0,0,"ng-template",null,0,Og)(4,$dc,4,0,"ng-template",null,1,Og)(6,aec,0,0,"ng-template",null,2,Og)(8,cec,5,4,"ng-template",null,3,Og)(10,fec,2,5,"ng-template",null,4,Og)(12,hec,1,1,"ng-template",null,5,Og));a&2&&G(W(1,1,b.shouldShowActionBar$)?
0:-1)},dependencies:[ZA,XA,TA,iz,MA,oy,EV,DV,NK,py],styles:['.bg-main[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg)}.ai-highlighted[_ngcontent-%COMP%]{background:var(--purple-bg);position:relative}.ai-highlighted[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:4px;height:100%;border-radius:4px 0 0 4px;background:-webkit-linear-gradient(315deg,var(--insights-purple) 0,var(--insights-pink) 100%);background:linear-gradient(135deg,var(--insights-purple) 0,var(--insights-pink) 100%)}.ai-highlighted[_ngcontent-%COMP%]   .ai-icon[_ngcontent-%COMP%]{color:var(--purple-text)}.ai-highlighted[_ngcontent-%COMP%]   .ai-icon-wrapper[_ngcontent-%COMP%]{margin-right:.5em}.ai-highlighted[_ngcontent-%COMP%]   .ai-loader[_ngcontent-%COMP%]{position:absolute;top:-.5em;left:-.4em;width:2.7em;height:2.7em;border-radius:50%;-webkit-animation:_ngcontent-%COMP%_rotate 1s linear infinite;animation:_ngcontent-%COMP%_rotate 1s linear infinite}.ai-highlighted[_ngcontent-%COMP%]   .ai-loader[_ngcontent-%COMP%]:before{content:"";-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;inset:0;border-radius:50%;border:2px solid var(--blue-text);-webkit-animation:_ngcontent-%COMP%_clipSpinner 2s linear infinite alternate;animation:_ngcontent-%COMP%_clipSpinner 2s linear infinite alternate}@-webkit-keyframes _ngcontent-%COMP%_rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes _ngcontent-%COMP%_rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes _ngcontent-%COMP%_clipSpinner{0%{-webkit-clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0);clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}25%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0);clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}50%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}75%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)}to{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}}@keyframes _ngcontent-%COMP%_clipSpinner{0%{-webkit-clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0);clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}25%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0);clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}50%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}75%{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)}to{-webkit-clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0);clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}}.ai-highlighted[_ngcontent-%COMP%]   button[mat-stroked-button][_ngcontent-%COMP%]{background:var(--background)}.generate[_ngcontent-%COMP%]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.generate[_ngcontent-%COMP%]:hover{color:var(--blue-800);background:-webkit-linear-gradient(315deg,#d3e3fd,#d0f8ff,#a8c7fa,#99f0ff,#d3e3fd,#d3e3fd,#d0f8ff,#a8c7fa,#99f0ff,#d3e3fd) 50%/1500% 1500%;background:linear-gradient(135deg,#d3e3fd,#d0f8ff,#a8c7fa,#99f0ff,#d3e3fd,#d3e3fd,#d0f8ff,#a8c7fa,#99f0ff,#d3e3fd) 50%/1500% 1500%;-webkit-animation:_ngcontent-%COMP%_shimmer 2.1s linear infinite;animation:_ngcontent-%COMP%_shimmer 2.1s linear infinite}@-webkit-keyframes _ngcontent-%COMP%_shimmer{0%{background-position:100% 100%}to{background-position:top 37.5% left 37.5%}}@keyframes _ngcontent-%COMP%_shimmer{0%{background-position:100% 100%}to{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)}'],
changeDetection:0});var $7=function(){this.issueReferenceResolver=q(yQ);this.userToLossyEmail=Rm};$7.prototype.ngOnInit=function(){};$7.prototype.getCommentNumberLink=function(a){return p7a(this.issueId,{comment:a})};$7.prototype.scrollCommentIntoView=function(a,b){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+b,event:a})};$7.\u0275fac=function(a){return new (a||$7)};
$7.\u0275cmp=C({type:$7,selectors:[["comments-info"]],inputs:{issueId:"issueId",comments:"comments"},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&&Pf(0,mec,5,3,"span",1,Of);a&2&&Qf(b.comments)},dependencies:[AK,uK,zK,UR,EN,PW],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 a8=function(){LO.apply(this,arguments);this.ngZone=q(Tg)};Z(a8,LO);a8.\u0275dir=LO.\u0275dir;var b6d=function(a,b){return(new Sd(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(Af(a.destroyed$))};a8.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(a8)))(b||a8)}}();a8.\u0275prov=Cc({token:a8,factory:a8.\u0275fac,providedIn:"root"});var c6d=["imagesSummaryWidget"],b8=function(){var a=this;this.resizeService=q(a8);this.router=q(CF);this.route=q(Wj);this.imageLinks$=new vf(1);this.paginate=!1;this.container$=new vf(1);this.containerResize$=this.container$.pipe(A(function(b){return b.nativeElement}),zf(function(b){return b6d(a.resizeService,b)}));this.issueId$=new vf(1);this.lastRenderedImageIndex$=new Xj(0);this.allImages$=this.imageLinks$.pipe(A(function(b){b=b.map(function(c){if(c.comment){var d=M$a(c.href);if(d)return{src:d,
comment:c.comment}}}).filter(ln);return uec(b)}));this.maxImagesInOneRow$=this.containerResize$.pipe(A(function(b){return Math.floor((b.width-16)/216)}),wf({refCount:!0,bufferSize:1}));this.initialNumberOfImages$=this.maxImagesInOneRow$.pipe(A(function(b){return b*(a.paginate?4:2)}));this.imagesToRender$=he([this.initialNumberOfImages$,this.allImages$,this.lastRenderedImageIndex$]).pipe(A(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)}),A(function(b){return b.map(function(c){var d;return Object.assign({},c,{srcCorp:(d=M$a(c.src,!0))!=null?d:""})})}),of())},oec=function(a,b){var c,d,e,f;return y(function(g){if(g.nextAddress==1)return z(g,ee(a.maxImagesInOneRow$),2);if(c=g.yieldResult)d=Math.floor(b/c),e=d+4,f=e*c,a.lastRenderedImageIndex$.next(f);$d(g)})};b8.prototype.goToResourcesTab=function(){this.router.navigate(["./resources"],{relativeTo:this.route})};b8.prototype.ngOnInit=function(){this.issueId$.next(this.issueId)};
b8.prototype.ngAfterContentInit=function(){this.container$.next(this.container)};da.Object.defineProperties(b8.prototype,{imageLinks:{configurable:!0,enumerable:!0,set:function(a){this.imageLinks$.next(a)},get:function(){return Pr(this.imageLinks$)}}});b8.\u0275fac=function(a){return new (a||b8)};
b8.\u0275cmp=C({type:b8,selectors:[["inline-images-summary"]],viewQuery:function(a,b){a&1&&kg(c6d,7);if(a&2){var c;og(c=pg())&&(b.container=c.first)}},inputs:{issueId:"issueId",imageLinks:"imageLinks",paginate:"paginate"},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&&(K(0,"div",null,0),F(2,tec,2,3),U(3,"async"),L());if(a&2){var c;B(2);G((c=W(3,1,b.allImages$))?2:-1,c)}},dependencies:function(){return[$7,ZA,XA,TA,ZR,py,d6d]},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 d6d=function(){};d6d.prototype.transform=function(a){return a.split(".png")[0]};d6d.\u0275fac=function(a){return new (a||d6d)};d6d.\u0275pipe=cf({name:"removePngExtension",type:d6d,pure:!0});var e6d={ANY_ISSUE_EDIT:"SW-any-issue-edit",DUPES:"SW-dupes",IMAGES:"SW-images",MENTIONED_ISSUES:"SW-mentioned-bugs",LINKS:"SW-links",SIMILAR_ISSUES:"SW-similar-issues",ASSIGN_TO_REPORTER:"SW-assign-to-reporter",COMPONENT_ROUTING:"SW-component-routing"},Dfc=[].concat(n(Object.values(e6d)));var f6d=function(a,b){var c=this;this.issueInteractionsTracking=a;this.analytics=b;this.recordInteractionOnce=nXa(function(d){c.analytics.trackEvent("editIssue","click",d)});this.recordImpressionOnce=nXa(function(){c.analytics.trackEvent("editIssue","view","SW")})},Uec=function(a,b,c){a.recordInteractionOnce(c);Qu(a.issueInteractionsTracking,b,c+"-content-interacted");Qu(a.issueInteractionsTracking,b,"SW-content-interacted")};var c8=function(){this.activeSession=q(Zu);this.trackerHelpers=q(WQ);this.linkText=this.rightText=this.leftText="";this.isExternalLink=!1;this.issueId=this.originalHref=this.redirectedHref=""};
c8.prototype.ngOnChanges=function(){var a;a:{var b=(a=this.sourceComment)==null?void 0:a.formattedComment;if(b){if(b.markdownFormat){a=Bec(b.markdownFormat.content);break a}if(b.literalFormat){a=Bec(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(Bec(c));break a}}a=void 0}if(a=a&&g6d(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(h6d.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(h6d.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="",es(this.relatedLink)?c=b=this.relatedLink.href:N$a(this.relatedLink)&&(a=this.relatedLink.issueId,b=this.getIssueUrl(this.relatedLink.issueId),c=this.relatedLink.issueId,c=this.activeSession.isInternalSession()?fTa(Xt(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 g6d=function(a,b){if(a.relatedLink){if(N$a(a.relatedLink)){var c=a.relatedLink.issueId;return[].concat(n(b.querySelectorAll("a"))).find(function(e){return e.dataset.bIssueId===c})}if(es(a.relatedLink)){var d=a.relatedLink;return[].concat(n(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(g){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})}}};
c8.prototype.getIssueUrl=function(a){return Xt(this.trackerHelpers,a)};c8.\u0275fac=function(a){return new (a||c8)};
c8.\u0275cmp=C({type:c8,selectors:[["mentioned-link-with-context"]],inputs:{sourceComment:"sourceComment",relatedLink:"relatedLink"},features:[Gx],decls:7,vars:3,consts:[[1,"wrapper"],["aria-hidden","true",1,"muted","margin-xs-right","left-justify-parent"],[3,"href","originalHref"],["aria-hidden","true",1,"muted","margin-xs-left","right"],[1,"left-justify-child"],[3,"href","issueId"],["target","_blank",1,"keep-focus-ring",3,"href"]],template:function(a,b){a&1&&(K(0,"div",0),S(1," \u201c "),F(2,vec,
3,1,"span",1),F(3,wec,2,3,"b-external-hyperlink-widget",2)(4,zec,2,1),F(5,Aec,2,1,"span",3),S(6," \u201d\n"),L());a&2&&(B(2),G(b.leftText?2:-1),B(),G(b.isExternalLink?3:4),B(2),G(b.rightText?5:-1))},dependencies:[xQ,zQ],styles:["[_nghost-%COMP%]{overflow:hidden}.wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}.right[_ngcontent-%COMP%], .left-justify-parent[_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-justify-parent[_ngcontent-%COMP%]{flex-shrink:1000000;max-width:max(80%,200px)}.left-justify-parent[_ngcontent-%COMP%]{direction:rtl;text-align:left}.left-justify-child[_ngcontent-%COMP%]{direction:ltr;unicode-bidi:bidi-override}"],
changeDetection:0});var h6d=new Set(["BR"]);var d8=function(){var a=this;this.activeSession=q(Zu);this.issueFullFridge=q(RO);this.router=q(CF);this.route=q(Wj);this.issueReferenceResolver=q(yQ);this.issueReferences$=new vf(1);this.currentIssueId$=new vf(1);this.paginate=!1;this.lastRenderedMentionedIssueIndex$=new Xj(10);this.issuesMap$=this.issueReferences$.pipe(te(ln),zf(function(b){var c=Oq(b.map(function(d){return d.issueId}));return a.issueFullFridge.watchSet(c).pipe(A(function(d){return new Map(d.map(function(e){return[e==null?void 0:
e.issueId.toString(),e]}))}),A(function(d){return new Map(c.map(function(e){return[e,d.get(e)]}))}))}));this.issueReferencesMap$=this.issueReferences$.pipe(te(ln),A(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$=he([this.issueReferencesMap$,this.issuesMap$]).pipe(A(function(b){b=l(b);var c=b.next().value;b=b.next().value;return[].concat(n(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),g=f==null?void 0:f.map(function(k){var m,r,w=(m=k.comment)==null?void 0:(r=m.userPerformingActionUser)==null?void 0:r.emailAddress;return{commentNumber:k.sourceCommentNumber,author:(w==null?void 0:w.split("@")[0])+"@",issueEvent:k.comment}});return{hasViewAccess:!!e,issueId:d,shortIssueUrl:fTa(a.activeSession.getAppBaseUrl(),d),sourceComments:g,title:e==null?void 0:e.snapshot[0].title,priority:e?e.snapshot[0].priority:
null,relatedLinks:f}})}));this.mentionedIssuesToRender$=he([this.allMentionedIssues$,this.lastRenderedMentionedIssueIndex$]).pipe(A(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)}))};d8.prototype.getCommentNumberLink=function(a){return p7a(this.issueId,{comment:a})};d8.prototype.scrollCommentIntoView=function(a,b){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+b,event:a})};
d8.prototype.goToResourcesTab=function(){this.router.navigate(["./resources"],{relativeTo:this.route})};da.Object.defineProperties(d8.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}}});d8.\u0275fac=function(a){return new (a||d8)};
d8.\u0275cmp=C({type:d8,selectors:[["b-mentioned-issues"]],inputs:{issueReferences:"issueReferences",currentIssueId:"currentIssueId",paginate:"paginate"},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&&(F(0,Iec,2,3),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.mentionedIssuesToRender$))?0:-1,c)}},dependencies:function(){return[$7,ZA,XA,TA,hK,hW,MA,c8,py,i6d]},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 i6d=function(){};i6d.prototype.transform=function(a){return a.map(function(b){return b.issueEvent}).filter(ln)};i6d.\u0275fac=function(a){return new (a||i6d)};i6d.\u0275pipe=cf({name:"toIssueEvents",type:i6d,pure:!0});var Nec=function(a,b){return b[0].href},e8=function(){var a=this;this.router=q(CF);this.route=q(Wj);this.allLinks$=new vf(1);this.issueId$=new vf(1);this.lastRenderedRelatedLinkIndex$=new Xj(10);this.paginate=!1;this.allLinkGroups$=this.allLinks$.pipe(A(function(b){return y1a(b,function(c){return c.href})}));this.linkGroupsToRender$=he([this.allLinkGroups$,this.lastRenderedRelatedLinkIndex$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return a.paginate?Rec(b,c):b.length===6?Rec(b,
6):Rec(b,5)}))};e8.prototype.ngOnInit=function(){};e8.prototype.goToResourcesTab=function(){this.router.navigate(["./resources"],{relativeTo:this.route})};da.Object.defineProperties(e8.prototype,{links:{configurable:!0,enumerable:!0,set:function(a){this.allLinks$.next(a)},get:function(){throw Error("Eg");}},issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)},get:function(){return Pr(this.issueId$)}}});e8.\u0275fac=function(a){return new (a||e8)};
e8.\u0275cmp=C({type:e8,selectors:[["related-links-widget"]],inputs:{links:"links",issueId:"issueId",paginate:"paginate"},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&&(F(0,Pec,2,3),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.allLinkGroups$))?0:-1,c)}},dependencies:function(){return[$7,ZA,XA,TA,c8,py,j6d]},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 Qec=yn(function(a){return Math.min.apply(Math,n(a.map(function(b){return b.sourceCommentNumber})))},zn),j6d=function(){};j6d.prototype.transform=function(a){return a.map(function(b){return b.comment}).filter(ln)};j6d.\u0275fac=function(a){return new (a||j6d)};j6d.\u0275pipe=cf({name:"toComments",type:j6d,pure:!0});var Vec=function(){return[]},f8=function(){LO.apply(this,arguments);var a=this;this.activeSession=q(Zu);this.userPreferencesManager=q(VP);this.issueInteractionsTracking=q(pR);this.issueFullFridge=q(RO);this.analytics=q(PO);this.eventsForIssueFridge=q(vO);this.similarIssuesApi=q(bW);this.issueEnrichmentFridge=q(zO);this.issuePermissionService=q(NP);this.issueRecommendationFridge=q(TO);this.recommendationTriggerService=q(QP);this.TabKeys=e6d;this.enableTriageRecommendations=this.activeSession.getFlag("enablePlaybook")||
this.activeSession.getFlag("enableTriageClientM1");this.issueId$=new vf(1);this.alwaysStartCollapsed=!1;this.issue$=this.issueId$.pipe(zf(function(b){return a.issueFullFridge.watch(b)}),te(ln),wf({bufferSize:1,refCount:!0}));this.commentNumberToEventMap$=this.issueId$.pipe(zf(function(b){return a.eventsForIssueFridge.watch(b)}),A(function(b){var c;return(c=b==null?void 0:b.events)!=null?c:[]}),A(function(b){return new Map(b.filter(function(c){return!!c.commentNumber}).map(function(c){return[c.commentNumber,
c]}))}),wf({bufferSize:1,refCount:!0}));this.relatedLinks$=he([this.issue$,this.commentNumberToEventMap$]).pipe(A(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)})}))||[]}),wf({bufferSize:1,refCount:!0}));this.imageLinks$=this.relatedLinks$.pipe(A(function(b){return b.filter(J$a)}),wf({bufferSize:1,refCount:!0}));this.distinctImageLinksCount$=this.imageLinks$.pipe(A(function(b){return Nq(b,
function(c){return M$a(c.href)})}),A(function(b){return b.length}),wf({bufferSize:1,refCount:!0}));this.shouldShowImages$=this.imageLinks$.pipe(A(function(b){return a.activeSession.isInternalSession()&&k6d(a,b)}),wf({bufferSize:1,refCount:!0}));this.issues$=this.relatedLinks$.pipe(A(function(b){return b.filter(N$a)}));this.distinctIssuesCount$=this.issues$.pipe(A(function(b){return b.filter(function(c){return c.issueId!==a.issueId})}),A(function(b){return Nq(b,function(c){return c.issueId})}),A(function(b){return b.length}));
this.shouldShowIssues$=this.distinctIssuesCount$.pipe(A(Boolean));this.otherLinks$=this.relatedLinks$.pipe(A(function(b){return b.filter(O$a)}),wf({bufferSize:1,refCount:!0}));this.distinctOtherLinksCount$=this.otherLinks$.pipe(A(function(b){return Nq(b,function(c){return c.href})}),A(function(b){return b.length}),wf({bufferSize:1,refCount:!0}));this.shouldShowLinks$=this.otherLinks$.pipe(A(function(b){return a.shouldShowLinks(b)}),wf({bufferSize:1,refCount:!0}));this.similarIssueIds$=this.issueId$.pipe(te(ln),
zf(function(b){return xDd(a.similarIssuesApi,{issueId:Number(b),embeddingType:2})}),A(function(b){return b.similarIssues}),A(function(b){return b.map(function(c){return c.issueId})}),wf({bufferSize:1,refCount:!0}));this.similarIssuesEnrichments$=(this.enableSimilarIssuesEnrichments=this.activeSession.isInternalSession())?this.issueId$.pipe(zf(function(b){return a.issueEnrichmentFridge.watch(b)}),A(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})}),wf({bufferSize:1,refCount:!0})):be([]);this.shouldShowSimilarIssues$=he([this.similarIssueIds$,this.similarIssuesEnrichments$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b.length>0||c.length>0}));this.dedupeCanonicalRecommendation$=this.issueId$.pipe(zf(function(b){return Zpd(a.recommendationTriggerService,b)}),wf({bufferSize:1,refCount:!0}));this.dedupeBatchRecommendation$=this.issueId$.pipe(zf(function(b){return $pd(a.recommendationTriggerService,
b)}),wf({bufferSize:1,refCount:!0}));this.dedupeRecommendation$=he([this.dedupeCanonicalRecommendation$,this.dedupeBatchRecommendation$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b!=null?b:c}),wf({bufferSize:1,refCount:!0}));this.shouldShowDupeSuggestions$=this.dedupeRecommendation$.pipe(A(Boolean));this.enableNeedsInfoUi=this.activeSession.getFlag("enableNeedsInfoUi");this.assignToReporterRecommendation$=this.issueId$.pipe(zf(function(b){return aqd(a.recommendationTriggerService,
b)}));this.shouldShowAssignToReporterSuggestion$=this.assignToReporterRecommendation$.pipe(A(Boolean));this.componentRoutingRecommendation$=this.issueId$.pipe(zf(function(b){return bqd(a.recommendationTriggerService,b)}));this.shouldShowComponentRoutingSuggestion$=this.componentRoutingRecommendation$.pipe(A(Boolean));this.anyIssueEditRecommendation$=this.issueId$.pipe(zf(function(b){return cqd(a.recommendationTriggerService,b)}));this.shouldShowAnyIssueEditSuggestion$=be(this.enableTriageRecommendations).pipe(zf(function(b){return b?
a.anyIssueEditRecommendation$:be(void 0)}),A(function(b){var c,d,e,f=(b==null?void 0:(c=b.content)==null?void 0:(d=c.issueModification)==null?void 0:(e=d.addState)==null?void 0:e.status)==="DUPLICATE";return!!b&&!f}));this.tabKeys$=he([this.shouldShowAnyIssueEditSuggestion$.pipe(A(function(b){return{show:b,key:"SW-any-issue-edit"}})),this.shouldShowAssignToReporterSuggestion$.pipe(A(function(b){return{show:b,key:"SW-assign-to-reporter"}})),this.shouldShowComponentRoutingSuggestion$.pipe(A(function(b){return{show:b,
key:"SW-component-routing"}})),this.shouldShowDupeSuggestions$.pipe(A(function(b){return{show:b,key:"SW-dupes"}})),this.shouldShowSimilarIssues$.pipe(A(function(b){return{show:b,key:"SW-similar-issues"}})),this.shouldShowImages$.pipe(A(function(b){return{show:b,key:"SW-images"}})),this.shouldShowIssues$.pipe(A(function(b){return{show:b,key:"SW-mentioned-bugs"}})),this.shouldShowLinks$.pipe(A(function(b){return{show:b,key:"SW-links"}}))]).pipe(A(function(b){return b.filter(function(c){return c.show}).map(function(c){return c.key})}));
this.shouldShowSummaryCard$=this.tabKeys$.pipe(A(function(b){return!!b.length}),nf(0,Rr));this.initiallyExpandedTabs=Dfc.map(function(b){return Bqd(a.userPreferencesManager,b)?void 0:b}).filter(ln);this.onTabExpanded$=new KO;this.issueSummaryTracking=new f6d(this.issueInteractionsTracking,this.analytics)};Z(f8,LO);f8.\u0275dir=LO.\u0275dir;
f8.prototype.ngOnInit=function(){var a=this;this.alwaysStartCollapsed&&(this.initiallyExpandedTabs=[]);this.subscriptions.add(this.onTabExpanded$.pipe(kf(1E3),zf(function(b){var c=b.allTabKeys;var d=b.expandedTabKeys;return Aqd(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())Qu(c.issueInteractionsTracking,
d,f.value+"-available");b.size>0&&Qu(c.issueInteractionsTracking,d,"SW-available")}))};f8.prototype.shouldShowLinks=function(a){return a.length===0||a.every(function(b){return b.sourceCommentNumber===1})?!1:!0};var k6d=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 WP(a.userPreferencesManager).showInlineImages&&b?!1:!0};
da.Object.defineProperties(f8.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)},get:function(){return Pr(this.issueId$)}}});f8.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(f8)))(b||f8)}}();
f8.\u0275cmp=C({type:f8,selectors:[["issue-summary-card"]],inputs:{issueId:"issueId",alwaysStartCollapsed:"alwaysStartCollapsed"},features:[Ff],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"],["ariaLabel","Toggle suggestion duplicate issues",3,"key"],["ariaLabel","Toggle suggestion Assign to reporter",3,"key"],["ariaLabel","Toggle reroute suggestion",3,"key"],["ariaLabel","Toggle any issue edit suggestion",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"],["svgIcon","tab_close_24px","color","primary",1,"icon-s"],[1,"rounded",3,"recommendation"],["svgIcon","keyboard_return_24px","color","primary",1,
"icon-s"],["svgIcon","route_24px","color","primary",1,"icon-s"],[1,"rounded",3,"showTitle","recommendation"]],template:function(a,b){a&1&&(K(0,"h3",0),S(1,"Issue summary"),L(),F(2,Efc,23,14,"expandable-tabs",1),U(3,"async"));if(a&2){var c;B(2);G((c=W(3,1,b.tabKeys$))?2:-1,c)}},dependencies:[iZ,fZ,gZ,hZ,jZ,b8,iz,d8,k_,e8,h_,py],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}"],
changeDetection:0});var g8=function(){this.matDialog=q(gB)};g8.prototype.show=function(a){this.dialog=this.matDialog.open(h8,{width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{statusUpdates:a}});return ee(eB(this.dialog))};g8.\u0275fac=function(a){return new (a||g8)};g8.\u0275prov=Cc({token:g8,factory:g8.\u0275fac,providedIn:"root"});var h8=function(){LO.apply(this,arguments);this.data=q(fB);this.dialogService=q(g8);this.dialogRef=q(dB);this.statusUpdates=this.data.statusUpdates};Z(h8,LO);h8.\u0275dir=LO.\u0275dir;
h8.prototype.ngOnInit=function(){var a=this;this.dialogRef.keydownEvents().pipe(Af(this.destroyed$)).subscribe(function(b){if(b.key==="Escape"){var c;(c=a.dialogService.dialog)==null||c.close()}});this.dialogRef.backdropClick().pipe(Af(this.destroyed$)).subscribe(function(){var b;(b=a.dialogService.dialog)==null||b.close()})};h8.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(h8)))(b||h8)}}();
h8.\u0275cmp=C({type:h8,selectors:[["ng-component"]],features:[Ff],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&&(K(0,"h1",0),S(1,"History for Status Update"),L(),K(2,"section",1)(3,"ul",2),Pf(4,Ffc,19,12,"li",3,Of),L()(),K(6,"footer",4)(7,"button",5),S(8," Close "),L()());a&2&&(B(4),Qf(b.statusUpdates),B(3),I("mat-dialog-close",void 0))},dependencies:[DT,ZA,XA,TA,mB,hB,lB,kB,TR,kU,mU,sR,qU],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}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 l6d=["noteContainer"],Sfc=function(a){return[a]},m6d={FRESH:0,STALE:1,NONE:2,0:"FRESH",1:"STALE",2:"NONE"},i8=function(){LO.apply(this,arguments);var a=this;this.activeSession=q(Zu);this.analytics=q(PO);this.confirmationDialogService=q(PQ);this.currentUser=q(Y1);this.editStatusUpdateDialogService=q(x3);this.statusUpdateFactory=q(z3);this.errorHandler=q(ZM);this.issueFullFridge=q(RO);this.issuePermissionService=q(NP);this.statusUpdateService=q(w3);this.statusUpdateHistoryDialogService=q(g8);this.userPreferencesManager=
q(VP);this.log=q(XM);this.Freshness=m6d;this.UiState=n6d;this.FormattingMode=fo;this.issueId$=new vf(1);this.issue$=this.issueId$.pipe(zf(function(b){return a.issueFullFridge.watch(b)}));this.componentId$=this.issue$.pipe(A(function(b){return b==null?void 0:b.snapshot[0].componentId}));this.accessLevel$=this.issue$.pipe(A(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.issue$.pipe(A(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(A(function(b){return b==null?void 0:b.statusUpdate}));this.statusUpdateAsNote$=this.statusUpdate$.pipe(te(ln),A(function(b){return{unlinkifiedComment:b.updateText,formattedComment:b.formattedText}}));this.semanticClass$=this.statusUpdate$.pipe(A(function(b){var c;return(c=N9a(b==null?void 0:b.updateText))!=null?c:""}));this.statusIsEmpty$=this.statusUpdate$.pipe(A(function(b){return((b==null?void 0:b.updateText)||"").trim()===""}));
this.freshnessIndicator$=he([this.statusIsEmpty$,this.statusUpdate$]).pipe(A(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(A(function(b){return b?1:2}),yf(0));this.formattingModeOverride$=new Xj(void 0);this.formattingMode$=he([this.statusUpdate$,this.formattingModeOverride$]).pipe(A(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$=he([this.issueId$,this.statusUpdate$,this.issuePermissionService.hasAclToEdit$,this.issuePermissionService.hasAclToAdmin$,this.formattingMode$]).pipe(A(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 g=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()}});g&&k.push({type:"action",label:"Show editing history",action:function(){o6d(a,
d)}});e&&f&&k.push({type:"action",label:"Delete Status Update",action:function(){a.confirmationDialogService.open({title:"Delete Status Update?",content:Dh("\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(p6d);return k}));this.showEditButton$=this.issuePermissionService.hasAclToEdit$};Z(i8,LO);i8.\u0275dir=LO.\u0275dir;
i8.prototype.ngOnInit=function(){var a=this;setTimeout(function(){var b,c;return y(function(d){if(d.nextAddress==1)return z(d,ee(a.uiState$.pipe(te(function(e){return e!==0}))),2);b=d.yieldResult;c=Ufc(b);a.analytics.trackEvent("issue","statusUpdateDisplay",c);$d(d)})},1E3)};i8.prototype.ngAfterViewInit=function(){var a;((a=this.noteContainer)==null?void 0:a.nativeElement.scrollHeight)>84&&(this.isCollapsed=!0)};
i8.prototype.editStatusUpdate=function(){var a=this,b,c,d,e,f,g,k,m,r,w;return y(function(x){switch(x.nextAddress){case 1:return z(x,ee(a.issueId$),2);case 2:return b=x.yieldResult,z(x,ee(a.componentId$),3);case 3:return c=x.yieldResult,z(x,ee(a.statusUpdate$),4);case 4:if((d=x.yieldResult)!=null){e=d;x.jumpTo(5);break}return z(x,lYd(a.statusUpdateFactory,b),6);case 6:e=x.yieldResult;case 5:return f=e,z(x,ee(a.accessLevel$),7);case 7:return g=x.yieldResult,k=g==="INTERNAL"?"INTERNAL":"EXTERNAL",z(x,
a.editStatusUpdateDialogService.show(f,k,c),8);case 8:m=x.yieldResult;if(m==null)return x.return();Vd(x,9);return z(x,ee(a.statusUpdateService.update(m)),11);case 11:r=x.yieldResult;a.didSave(b,r);bk(x,0);break;case 9:w=Zd(x),hq(w)?a.errorHandler.errorHandler(null,w):a.log.warn(w),$d(x)}})};
var Ifc=function(a){var b,c;return y(function(d){if(d.nextAddress==1)return z(d,ee(a.issueId$),2);if(d.nextAddress!=3)return b=d.yieldResult,z(d,ee(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)});$d(d)})};i8.prototype.didSave=function(a,b){this.issueFullFridge.manualUpdate(a,function(c){c.statusUpdate=b});this.issueFullFridge.poke(a)};
var o6d=function(a,b){var c;y(function(d){if(d.nextAddress==1)return z(d,ee(jYd(a.statusUpdateService,b)),2);c=d.yieldResult;a.statusUpdateHistoryDialogService.show(c);$d(d)})};i8.prototype.doDelete=function(){var a=this,b;y(function(c){if(c.nextAddress==1)return z(c,ee(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)});$d(c)})};
da.Object.defineProperties(i8.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});i8.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(i8)))(b||i8)}}();
i8.\u0275cmp=C({type:i8,selectors:[["status-update"]],viewQuery:function(a,b){a&1&&kg(l6d,5);if(a&2){var c;og(c=pg())&&(b.noteContainer=c.first)}},inputs:{issueId:"issueId"},features:[Ff],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&&(F(0,Tfc,5,13,"div",2),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.uiState$))?0:-1,c)}},dependencies:[UY,DT,ZA,XA,TA,hK,AK,uK,zK,UR,iz,MA,$S,py,PW],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 n6d={LOADING:0,EMPTY:1,NORMAL:2,0:"LOADING",1:"EMPTY",2:"NORMAL"},p6d={type:"action",label:"Using the Status Update field...",action:function(){(0,Lh.windowOpen)(window,"https://developers.google.com/issue-tracker/concepts/status-update","_blank")},icon:"help-outline",className:"border-top"};var j8=function(){LO.apply(this,arguments);var a=this;this.brain=q(LP);this.preferences=q(VP);this.scrollTiming=q(e2);this.analytics=q(PO);this.element=q(Gd);this.editIssueService=q(tR);this.appEvents=q(DN);this.routePerformance=q(N0);this.clearcut=q(HO);this.activeSession=q(Zu);this.id$=this.brain.id$;this.enableTailwind=this.activeSession.getFlag("enableTailwind")&&this.activeSession.isInternalSession();this.enableTailwindV3=this.activeSession.getFlag("enableTailwindV3")&&this.activeSession.isInternalSession();
this.showRecentEventsFirst=!1;this.comment$=this.id$.pipe(te(ln),zf(function(b){return a.editIssueService.issueCommentDraft(b).comment$}));this.finishedRendering$=he([this.brain.eventsJs$.pipe(nf(0)),p0a("#AddCommentBox textarea",this.element.nativeElement)]).pipe(mf(1))};Z(j8,LO);j8.\u0275dir=LO.\u0275dir;
j8.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(te(ln),Af(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b});this.destroyed$.subscribe(function(){q6d(a)});p0a("#comment1 .critical-feature",this.element.nativeElement).pipe(Af(this.destroyed$)).subscribe(function(){var b=function(){YRd(a.routePerformance,"issue-details-w-comments")};requestAnimationFrame(b);setTimeout(b)});this.subscriptions.add(this.brain.eventsJs$.pipe(qf()).subscribe(function(b){r6d(a,
b)}));this.subscriptions.add(this.finishedRendering$.pipe(Df(this.comment$)).subscribe(function(b){b=l(b);b.next();b.next().value.hasContent()&&a.appEvents.scrollToCommentBox.next()}))};
var r6d=function(a,b){b=b.some(function(c){var d,e,f;return((f=(d=c.commentReactions)==null?void 0:(e=d.get("UPVOTE"))==null?void 0:e.count)!=null?f:0)>0});a.analytics.trackEvent("editIssue","view",b?"hasUpvoteReaction":"noUpvoteReaction")},q6d=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);IO(a.clearcut,e,"idp-time-scrolling-comments-recentFirst-"+a.showRecentEventsFirst)}};j8.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(j8)))(b||j8)}}();
j8.\u0275cmp=C({type:j8,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&N("unload",function(){q6d(b)},Id)},features:[Ff],decls:7,vars:10,consts:[["insightsCard",""],["issueSummaryCard",""],["id","bv2-edit-issue-details-scroll","tabindex","-1",1,"bv2-edit-issue-details-scroll",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,"margin-s-sides","margin-s-bottom"],
[3,"issueId"],[1,"carded","margin-s-sides","margin-s-bottom","bg-main","highlighted-left",3,"id"],[1,"carded","margined-s","bg-main",3,"issueId"],[1,"carded","margined-s","bg-main"],[3,"id"]],template:function(a,b){a&1&&(K(0,"div",2),F(1,Xfc,9,8),U(2,"async"),F(3,Yfc,3,5,"issue-summary-card",3),U(4,"async"),F(5,agc,5,5,"div",4),U(6,"async"),L());if(a&2){var c,d,e;I("bFocus",!0);B();G((c=W(2,4,b.id$))?1:-1,c);B(2);G((d=W(4,6,b.id$))?3:-1,d);B(2);G((e=W(6,8,b.id$))?5:-1,e)}},dependencies:[XZ,kW,C3,
OZ,T7,V7,f8,Y7,sY,i8,Z7,py],styles:["issue-summary-card[_ngcontent-%COMP%]{padding:8px}.summary[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg)}"]});var s6d=function(){};s6d.\u0275fac=function(a){return new (a||s6d)};s6d.\u0275mod=$e({type:s6d});s6d.\u0275inj=Dc({imports:[FN,YJ,pB,PK,ZA,dK,sT,mC,nC,g1,iK,bA,AV,zV]});var k8=function(){LO.apply(this,arguments);this.prefs=q(VP);this.cdr=q(Yx);this.analytics=q(PO);this.butterBar=q(JM);this.on$=this.prefs.showFullHistory$;this.isSaving=!1;this.tooltip$=this.on$.pipe(A(function(a){return a?"(Showing full history) Click for major events only":"(Showing major events) Click for full history"}),yf(""))};Z(k8,LO);k8.\u0275dir=LO.\u0275dir;
k8.prototype.onClick=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return a.isSaving?c.return():z(c,ee(a.on$),2);b=c.yieldResult;a.save(!b);$d(c)})};
k8.prototype.save=function(a){var b=this;this.analytics.trackEvent("editIssue","toggleShowFullHistory",String(a));this.isSaving=!0;var c=ee(this.prefs.save({showFullHistory:a}));c.then(function(){b.isSaving=!1;b.cdr.markForCheck()});c.catch(function(){b.butterBar.showWarning('Couldn\'t save "full history" setting.');b.isSaving=!1;b.cdr.markForCheck()});this.prefs.save({commentFilterPreferences:{commentFilter:a?"FULL_HISTORY":"ALL_COMMENTS"}}).pipe(Af(this.destroyed$)).subscribe()};
k8.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(k8)))(b||k8)}}();
k8.\u0275cmp=C({type:k8,selectors:[["smart-full-history-btn"]],features:[Ff],decls:7,vars:15,consts:[["type","button","mat-icon-button","",3,"click","matTooltip","disabled"],["svgIcon","history",1,"icon-s"]],template:function(a,b){a&1&&(K(0,"button",0),U(1,"async"),U(2,"async"),U(3,"async"),U(4,"async"),N("click",function(){return b.onClick()}),F(5,bgc,1,0,"b-spinner")(6,cgc,1,0,"mat-icon",1),L());a&2&&(yg("on",W(1,7,b.on$)),I("matTooltip",W(2,9,b.tooltip$))("disabled",b.isSaving),Jf("aria-pressed",
W(3,11,b.on$))("aria-label",W(4,13,b.tooltip$)),B(5),G(b.isSaving?5:6))},dependencies:[ZA,XA,VA,hK,iz,MA,VS,py],styles:["mat-icon[_ngcontent-%COMP%] {\n      display: flex;\n      margin: 0 auto;\n    }\n    [_nghost-%COMP%]     .on .mat-mdc-progress-spinner circle {\n      stroke: var(--text-inverse); \n\n    }"],changeDetection:0});var l8=function(){LO.apply(this,arguments);this.prefs=q(VP)};Z(l8,LO);l8.\u0275dir=LO.\u0275dir;l8.prototype.onChange=function(a){this.prefs.save({useCodefont:a.checked}).pipe(Af(this.destroyed$)).subscribe()};l8.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(l8)))(b||l8)}}();
l8.\u0275cmp=C({type:l8,selectors:[["b-toggle-code-font"]],features:[Ff],ngContentSelectors:["*"],decls:3,vars:3,consts:[["matTooltip","Use a monospace typeface to display all comments",3,"change","checked"]],template:function(a,b){a&1&&(fg(),K(0,"mat-slide-toggle",0),U(1,"async"),N("change",function(c){return b.onChange(c)}),gg(2),L());a&2&&I("checked",W(1,1,b.prefs.codeFont$))},dependencies:[aU,$T,lS,hK,MA,py],styles:["mat-slide-toggle[_ngcontent-%COMP%] {font-size: 14px; }"],changeDetection:0});var t6d=[l8,k8,A7],m8=function(){};m8.\u0275fac=function(a){return new (a||m8)};m8.\u0275mod=$e({type:m8});m8.\u0275inj=Dc({imports:[FN,ZA,PK,pB,aU,sT,iK,XS,t6d]});var u6d=function(){};u6d.\u0275fac=function(a){return new (a||u6d)};u6d.\u0275mod=$e({type:u6d});u6d.\u0275inj=Dc({providers:[BV],imports:[FN,SW,ZA,iK,s6d,p_,AK,XW,X_,ZW,YW,Y_,m8,g1,T7]});var v6d=function(){};v6d.\u0275fac=function(a){return new (a||v6d)};v6d.\u0275mod=$e({type:v6d});v6d.\u0275inj=Dc({imports:[FN,ZA,sT,U7]});var w6d=function(){};w6d.\u0275fac=function(a){return new (a||w6d)};w6d.\u0275mod=$e({type:w6d});w6d.\u0275inj=Dc({imports:[tT,FN,V_,S_,ZW,Y_,ZA,iK,XS,g1,v6d,vU,sT,V7]});var n8=function(){};n8.\u0275fac=function(a){return new (a||n8)};n8.\u0275mod=$e({type:n8});n8.\u0275inj=Dc({imports:[L7,FN,mC,ZA,pB,DB,qC,Y7,jL,NA,I7,Y5d,XS,Z7,K7,EV,RU]});var o8=function(){};o8.\u0275fac=function(a){return new (a||o8)};o8.\u0275mod=$e({type:o8});o8.\u0275inj=Dc({imports:[FN,AK,bT,RW,$7]});var p8=function(){};p8.\u0275fac=function(a){return new (a||p8)};p8.\u0275mod=$e({type:p8});p8.\u0275inj=Dc({imports:[o8,FN,AK,bT,ZA,RW,oT,b8]});var x6d=function(){this.isSelected=!0;this.isSelectedChange=new KO};x6d.prototype.ngOnInit=function(){};x6d.\u0275fac=function(a){return new (a||x6d)};
x6d.\u0275cmp=C({type:x6d,selectors:[["issue-summary-chip"]],inputs:{isSelected:"isSelected",icon:"icon",ariaLabel:"ariaLabel"},outputs:{isSelectedChange:"isSelectedChange"},ngContentSelectors:["*"],decls:4,vars:6,consts:[["type","button","role","switch",1,"chip","keep-focus-ring",3,"click"]],template:function(a,b){a&1&&(fg(),K(0,"button",0),N("click",function(){b.isSelected=!b.isSelected;b.isSelectedChange.emit(b.isSelected)}),F(1,dgc,2,0,"mat-icon"),F(2,egc,2,1,"mat-icon"),gg(3),L());a&2&&(yg("muted",
!b.isSelected),Jf("aria-label",b.ariaLabel)("aria-checked",b.isSelected),B(),G(b.isSelected?1:-1),B(),G(!b.isSelected&&b.icon?2:-1))},dependencies:[iz],styles:[".chip.muted[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--base-bg);border:1px solid;border-color:#dadce0;border-color:var(--divider)}.chip[_ngcontent-%COMP%]{background-color:#e8f0fe;background-color:var(--primary-c50);border:0;border-radius:15px;display:inline-flex;align-items:center;height:30px;padding:0 16px}.chip[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:4px}.chip[_ngcontent-%COMP%]:hover{filter:brightness(95%)}"]});var q8=function(){};q8.\u0275fac=function(a){return new (a||q8)};q8.\u0275mod=$e({type:q8});q8.\u0275inj=Dc({imports:[tT,FN,sU,c8]});var r8=function(){};r8.\u0275fac=function(a){return new (a||r8)};r8.\u0275mod=$e({type:r8});r8.\u0275inj=Dc({imports:[FN,YW,ZA,iK,q8,aT,o8,d8]});var s8=function(){};s8.\u0275fac=function(a){return new (a||s8)};s8.\u0275mod=$e({type:s8});s8.\u0275inj=Dc({imports:[o8,FN,ZA,q8,e8]});var y6d=function(){};y6d.\u0275fac=function(a){return new (a||y6d)};y6d.\u0275mod=$e({type:y6d});y6d.\u0275inj=Dc({imports:[FN,G_,p8,r8,s8,c0,d0,f8,x6d]});var z6d=function(){};z6d.\u0275fac=function(a){return new (a||z6d)};z6d.\u0275mod=$e({type:z6d});z6d.\u0275inj=Dc({imports:[pB,PK,FN,uA,ZA,tT,oY,y3]});var A6d=function(){this.FormattingMode=fo};A6d.prototype.ngOnInit=function(){};A6d.\u0275fac=function(a){return new (a||A6d)};A6d.\u0275cmp=C({type:A6d,selectors:[["status-update-text-display"]],inputs:{statusUpdate:"statusUpdate"},decls:4,vars:1,consts:[["updateText",""],[3,"formattedComment"]],template:function(a,b){a&1&&(F(0,fgc,1,1,"b-formatted-comment-presenter",1)(1,ggc,2,1,"p"),E(2,hgc,2,1,"ng-template",null,0,Og));a&2&&G(b.statusUpdate.formattedText?0:1)},dependencies:[eS],encapsulation:2});var t8=function(){};t8.\u0275fac=function(a){return new (a||t8)};t8.\u0275mod=$e({type:t8});t8.\u0275inj=Dc({imports:[tT,FN,A6d]});var B6d=function(){};B6d.\u0275fac=function(a){return new (a||B6d)};B6d.\u0275mod=$e({type:B6d});B6d.\u0275inj=Dc({imports:[FN,GU,ZA,pB,uA,aT,RW,sU,t8,vU,h8]});var C6d=function(){};C6d.\u0275fac=function(a){return new (a||C6d)};C6d.\u0275mod=$e({type:C6d});C6d.\u0275inj=Dc({imports:[NZ,tT,FN,GU,z6d,AK,bT,ZA,iK,RW,B6d,t8,i8]});var D6d=function(){};D6d.\u0275fac=function(a){return new (a||D6d)};D6d.\u0275mod=$e({type:D6d});D6d.\u0275inj=Dc({imports:[FN,KI,ez,mC,ZA,pB,cL,nC,W_,lW,v4,u6d,S_,w6d,y6d,r8,D_,oT,C6d,vU,XS,n8,j8]});var E6d=function(){var a=this;this.activeSession=q(Zu);this.issueFullFridge=q(RO);this.issueDetailsBrain=q(LP);this.eventsForIssueFridge=q(vO);this.isInternalSession=this.activeSession.isInternalSession();this.issue$=this.issueDetailsBrain.id$.pipe(zf(function(b){return b?a.issueFullFridge.watch(b):be(void 0)}),te(ln));this.commentNumberToEventMap$=this.issue$.pipe(A(function(b){return b.issueId}),zf(function(b){return a.eventsForIssueFridge.watch(b)}),A(function(b){var c;return(c=b==null?void 0:
b.events)!=null?c:[]}),A(function(b){return new Map(b.filter(function(c){return!!c.commentNumber}).map(function(c){return[c.commentNumber,c]}))}));this.relatedLinks$=he([this.issue$,this.commentNumberToEventMap$]).pipe(A(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(A(function(b){return b.filter(N$a)}));
this.imageLinks$=this.relatedLinks$.pipe(A(function(b){return b.filter(J$a)}));this.otherLinks$=this.relatedLinks$.pipe(A(function(b){return b.filter(O$a)}))};E6d.\u0275fac=function(a){return new (a||E6d)};
E6d.\u0275cmp=C({type:E6d,selectors:[["b-issue-resources"]],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&&(K(0,"section",0),F(1,pgc,6,9),U(2,"async"),L());if(a&2){var c;B();G((c=W(2,1,b.issue$))?1:-1,c)}},dependencies:[b8,iz,d8,e8,
py],styles:["[_nghost-%COMP%]{display:block;padding:8px}h4[_ngcontent-%COMP%]{margin:16px 0}mat-icon[_ngcontent-%COMP%]{vertical-align:text-bottom}"]});var F6d=function(){};F6d.\u0275fac=function(a){return new (a||F6d)};F6d.\u0275mod=$e({type:F6d});F6d.\u0275inj=Dc({imports:[FN,r8,p8,s8,E6d]});var u8=function(){var a=this;this.brain=q(LP);this.codeMentions=q(B0);this.imageUrls=q(LV);this.ROBOT_SLEEPING=this.imageUrls.ROBOT_SLEEPING;this.id$=this.brain.id$.pipe(te(ln));this.codeMentionsState$=this.id$.pipe(zf(function(b){return ERd(a.codeMentions,b)}))};u8.prototype.displayPackageNames=function(a){return this.codeMentions.displayPackageNames(a)};u8.prototype.trackSqueegeeClick=function(){this.codeMentions.trackSqueegeeClick()};u8.\u0275fac=function(a){return new (a||u8)};
u8.\u0275cmp=C({type:u8,selectors:[["issue-todos"]],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&&(K(0,"section",0),F(1,ugc,2,3),U(2,"async"),L());if(a&2){var c;B();G((c=W(2,
1,b.id$))?1:-1,c)}},dependencies:[T2d,py],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 v8=function(){this.cdr=q(MO,{self:!0});this.errorHandler=q(ZM);this.currentUserBookmarksFridge=q(ZN);this.isLoading=!1;this.hotlists=[];this.createHotlistPath=zs.createHotlist.makeHref()};v8.prototype.ngOnInit=function(){this.fetchUserHotlists()};v8.prototype.fetchUserHotlists=function(){var a=this;this.isLoading=!0;ee($N(this.currentUserBookmarksFridge)).then(function(b){a.hotlists=b;a.isLoading=!1;a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
v8.\u0275fac=function(a){return new (a||v8)};
v8.\u0275cmp=C({type:v8,selectors:[["list-hotlists-page"]],features:[Ig([MO])],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&&(K(0,"h2",0),S(1,"Browse Hotlists"),L(),K(2,"div",1)(3,"a",2),S(4," Create Hotlist "),L()(),K(5,"div",3),F(6,vgc,1,1,"b-spinner",4)(7,wgc,1,1,"b-hotlist-grid",5),L());a&2&&(B(3),I("href",b.createHotlistPath,Me),B(3),G(b.isLoading?
6:7))},dependencies:[ZA,XA,TA,g4,VS],encapsulation:2});var G6d=new Set(["issueId","modifiedTime","createdTime"]),w8=function(){LO.call(this);var a=this;this.cdr=q(MO);this.routerEvents=q(OO);this.window=q(ZP);this.bLocation=q(US);this.$log=q(XM);this.issueApi=q(uO);this.hotlistApi=q(PN);this.activeSession=q(Zu);this.butterBar=q(JM);this.analytics=q(PO);this.appSearchState=q(gS);this.issuePagination=q(v1);this.userPreferencesManager=q(VP);this.urlPreferences=q(i4);this.gridPreferencesFetcher=q(k4);this.paths=q(wV);this.timeout=q(YM);this.errorHandler=
q(ZM);this.statusMessages=q(VQ);this.domSafe=q($P);this.appEvents=q(DN);this.hotlistFridge=q(UN);this.issueFullFridge=q(RO);this.batchIssueRelationshipsService=q(n5);this.componentFridge=q(AN);this.currentUserBookmarksFridge=q(ZN);this.implicitTriageService=q(FQ);this.clearcut=q(HO);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=[];this.BASE_HOTKEYS=[{keys:["j"],displayAs:"j",description:"Move to the next issue",onPress:function(){var b;(b=a.resultsGrid)==null||HWb(b)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue",onPress:function(){var b;(b=a.resultsGrid)==null||IWb(b)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var b;(b=a.resultsGrid)==null||XYd(b)}},{keys:["s"],
displayAs:"s",description:"Star/Unstar the current issue",onPress:function(){var b;(b=a.resultsGrid)==null||$Yd(b)}},{keys:[js("i")],displayAs:"Shift+i",description:"Mark as read",onPress:function(){var b;(b=a.resultsGrid)==null||aZd(b,!0)}},{keys:[js("u")],displayAs:"Shift+u",description:"Mark as unread",onPress:function(){var b;(b=a.resultsGrid)==null||aZd(b,!1)}},{keys:[ks("*","a")],displayAs:"* then a",description:"Select all issues on this page",onPress:function(){var b;(b=a.resultsGrid)==null||
b.selectAll()}},{keys:[ks("*","n")],displayAs:"* then n",description:"Deselect all issues on this page",onPress:function(){var b;(b=a.resultsGrid)==null||UYd(b)}},{keys:["a"],displayAs:"a",description:"Change assignee",onPress:function(){var b;(b=a.gridControls)==null||yWd(b,null,0)}},{keys:["d"],displayAs:"d",description:"Mark as duplicate",onPress:function(){var b;(b=a.gridControls)==null||yWd(b,xTa,3)}},{keys:["h"],displayAs:"h",description:"Edit hotlists",onPress:function(){var b;(b=a.gridControls)==
null||b.openHotlistPicker()}},{keys:["r"],displayAs:"r",description:"Add comment",onPress:function(){var b;(b=a.gridControls)==null||DWd(b)}},{keys:["u",js("r")],displayAs:"u / Shift+r",description:"Refresh search results",onPress:function(){return a.refreshResults()}},{keys:[ks("p","0"),ks("p","1"),ks("p","2"),ks("p","3"),ks("p","4")],displayAs:"p <n>",description:"Mark selected issues as priority n",onPress:function(b){a.resultsGrid&&a.sendBulkEditRequest([{actions:[{fieldName:"priority",value:"P"+
b}],issueIds:a.resultsGrid.getSelectedIssues().map(function(c){return c.issueId})}])}},{keys:[Vab("ENTER")],displayAs:"Ctrl+Enter",description:"Open current issue in new tab",onPress:function(){var b=a.window.document.activeElement;if(b.tagName==="A"){var c=a.paths.getBaseUrl();if(b.href&&!b.href.startsWith(c)){a.domSafe.openInNewTab(b.href);return}}var d;(d=a.resultsGrid)==null||YYd(d,{openInNewTab:!0})}},{keys:["o","ENTER"],displayAs:"o / Enter",description:"Open the current issue",onPress:function(b){var c=
a.window.document.activeElement,d;if(c){var e=(d=Bpa(T3))==null?void 0:d.selector;d=e?(c==null?void 0:c.closest(e))!=null:!1}else d=!1;if(b===1&&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 f;(f=a.resultsGrid)==null||YYd(f)}else if(b===2){var g;(g=a.resultsGrid)==null||YYd(g,{openInNewTab:!0})}else if(d){var k;(k=a.resultsGrid)==null||YYd(k)}}},{keys:[js("o"),js("ENTER")],displayAs:"Shift+o / Shift+Enter",
description:"Toggle current issue in sidebar",onPress:function(b){var c=a.window.document.activeElement;b===1&&c.tagName==="A"&&c.href?Sr(a.domSafe,c.href):(b=a.resultsGrid)!=null&&(b.isIssueSidebarOpen=!b.isIssueSidebarOpen,b.cdr.detectChanges())}}]};Z(w8,LO);
w8.prototype.ngOnInit=function(){var a=this;H6d(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(Af(this.destroyed$)).subscribe(function(){H6d(a)})};var I6d=function(a){var b=[].concat(n(HXd));a.activeSession.isInternalSession()&&(a=b.indexOf("issueId"),b.splice(a,0,"minSlo"));return b.map(ou).filter(ln)};
w8.prototype.fetchUserHotlists=function(){var a=this;ee($N(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];Gm(d,c)||(d&&La(a.hotlistChoices,d),a.hotlistChoices.push(c),a.hotlistMap[c.hotlistId]=c,a.cdr.detectChanges())}}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var H6d=function(a){return J6d(a).then(function(){return a.getIssues()}).then(function(){return a.searchResults?(a.subscribeToIssueChanges(a.searchResults.issues),K6d(a,a.searchResults.startIndex,a.searchResults.endIndex)):Promise.resolve()}).finally(function(){a.cdr.detectChanges()})};
w8.prototype.subscribeToIssueChanges=function(a){var b=this,c;(c=this.issueSubscriptions)==null||c.unsubscribe();this.issueSubscriptions=new Od;a=l(a);for(c=a.next();!c.done;c=a.next())this.issueSubscriptions.add(this.issueFullFridge.watch(c.value.id).pipe(te(ln),Af(this.destroyed$)).subscribe(function(d){var e,f;return y(function(g){switch(g.nextAddress){case 1:if(!b.searchResults){g.jumpTo(2);break}if(!d.snapshot[0].componentId){e=void 0;g.jumpTo(3);break}return z(g,ee(b.componentFridge.watch(d.snapshot[0].componentId,
{trustUncertainMemory:!0})),4);case 4:e=g.yieldResult;case 3:f=e;if(!f||!b.searchResults)return g.return();CTd(b.searchResults,[{issue:d,component:f}]);b.searchResults=b.searchResults.clone();case 2:b.cdr.detectChanges(),$d(g)}})}))};
var L6d=function(a){return a.window.document.activeElement!=null&&a.window.document.activeElement!==a.window.document.body},J6d=function(a){var b=Io();L6d(a)&&a.window.document.activeElement.blur();a.timeout.schedule(function(){b.resolve()});return b.promise},K6d=function(a,b,c){var d=Io();L6d(a)||M6d(a,b,c);a.timeout.schedule(function(){d.resolve()});return d.promise},N6d=function(a,b){if(b.maySkipResults){b=Fh(["Too many matching results. Some issues may be omitted.",Gh("br"),"Please try to restrict your search further or change the sort column to either CREATED or LAST MODIFIED. "]);
var c={};c=Gh("a",(c.href="http://go/buganizer-faq#restrict-search",c),"go/buganizer-faq");c=Fh([Gh("br"),"See ",c," for more details."]);b=a.activeSession.isInternalSession()?Eh([b,c]):b;Cid(a.butterBar,b)}};h=w8.prototype;
h.setSort=function(a,b,c){c=c===void 0?!0:c;var d=ou(a);if(d){var e=new qu(d,b==="ASC"?"ASCENDING":"DESCENDING");Dba(this.sortPreferences,function(f){return Gm(f.fieldId,e.fieldId)});!c||G6d.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)};
h.getSort=function(){if(!this.sortPreferences.length)return null;var a=this.sortPreferences[0];a={field:a.fieldId.type==="CUSTOM_FIELD"?String(a.fieldId.customFieldId):YSa(a.fieldId.type),direction:a.direction==="ASCENDING"?"ASC":"DESC"};Gm(a,this.cachedSort)||(this.cachedSort=a);return this.cachedSort};h.saveSortColumns=function(a){j4(this.urlPreferences,{sortColumns:a,page:1})};
h.initColumns=function(a,b){var c=this;b=b===void 0?w8.DEFAULT_META_COLUMNS:b;a.then(function(d){c.displayColumns=d;c.metaColumns=b;c.isColumnSaveEnabled=!0;c.issueColumnsInternal=[].concat(n(b),n(dSb(d)));c.cdr.detectChanges()})};h.saveColumns=function(a){this.displayColumns=a.map(function(b){return ou(b.name)});j4(this.urlPreferences,{displayColumns:this.displayColumns})};
h.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=As(a),c&&(c.ctrlKey||c.metaKey||c.button===1)?this.domSafe.openInNewTab(a):c&&c.shiftKey?Sr(this.domSafe,a):this.bLocation.setUrl(a))};h.goToPage=function(a){this.bLocation.search("p",a)};var Ru=function(a,b,c){b!==void 0&&a.goToPage(b+c)};w8.prototype.refreshResults=function(){KTd(this.issuePagination);return H6d(this)};
w8.prototype.hasResults=function(){return this.searchResults&&this.searchResults.issues.length>0};
w8.prototype.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||DTd(f,e,d)}this.cdr.detectChanges();fs(this.butterBar,"Saving changes...",0);return SO(this.issueFullFridge,a[0].issueIds,{markRead:d,userActivityType:"MARK_AS_READ_OR_UNREAD"}).then(function(m){for(var r=l(a[0].issueIds),
w=r.next();!w.done;w=r.next()){w=w.value;var x=void 0,D=void 0;(x=c.searchResults)==null||DTd(x,w,void 0,(D=m)!=null?D:null)}fs(c.butterBar,"Successfully marked issues "+(d?"read.":"unread."))}).catch(function(m){for(var r=l(a[0].issueIds),w=r.next();!w.done;w=r.next()){w=w.value;var x=void 0;(x=c.searchResults)==null||DTd(x,w)}c.errorHandler.errorHandler(null,m)}).finally(function(){c.cdr.detectChanges()})}e=m9a(a).map(function(m){return m.fieldName});this.analytics.trackEvent(this.ANALYTICS_CATEGORY,
"bulkEdit",e.join(","));var g={bulkEditOps:a};fs(this.butterBar,"Saving changes...",0);if(a.length===1&&a[0].actions.length===1&&a[0].actions[0].fieldName==="parentId")return this.batchIssueRelationshipsService.bulkEdit(a[0]).then(function(m){if(c.searchResults){c.searchResults=c.searchResults.clone();for(var r=l(c.searchResults.issues.entries()),w=r.next();!w.done;w=r.next()){var x=l(w.value);w=x.next().value;x=x.next().value;m.finishedIssues[x.issueId]&&(w=c.searchResults.issues[w],xgb(w,m.finishedIssues[x.issueId],
null),c.loadHotlists(w),Object.assign(c.customFieldMap,w.customFieldMap))}c.cdr.detectChanges()}x=a[0];r=m.notFinishedIssueIds;w=String(x.actions[0].value);x=x.actions[0].actionType;if(x!=="ADD"&&x!=="REMOVE")throw Error("wg");r.length?(c.butterBar.showWarning("Failed to update issue(s) "+r.join(", ")+"."),c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"bulkEditError",""+r.length)):fs(c.butterBar,(x==="ADD"?"Added child issue(s) to parent ["+w+"]":"Removed child issue(s) from parent ["+w+"]")+" on "+
String(Object.keys(m.finishedIssues).length)+" issues.");c.cdr.detectChanges()}).catch(function(m){c.errorHandler.errorHandler(null,m)});var k=new Date;return this.issueApi.issueBulkEdit(g,b).then(function(m){if(c.searchResults){c.searchResults=c.searchResults.clone();for(var r=l(c.searchResults.issues.entries()),w=r.next();!w.done;w=r.next()){var x=l(w.value);w=x.next().value;x=x.next().value;if(m.affectedIssues[x.issueId]){x=m.affectedIssues[x.issueId];var D=Ia(x.snapshot).componentId;w=c.searchResults.issues[w];
xgb(w,x,D?m.componentMap[D]:void 0);c.loadHotlists(w);Object.assign(c.customFieldMap,w.customFieldMap)}}c.cdr.detectChanges()}O6d(c,g,m,k);r=new Map;w=l(g.bulkEditOps);for(x=w.next();!x.done;x=w.next()){x=x.value;D=l(x.issueIds);for(var H=D.next();!H.done;H=D.next()){H=H.value;var J=void 0,O=(J=r.get(H))!=null?J:[];O.push.apply(O,n(x.actions));r.set(H,O)}}var R;m=l((R=m.errors)!=null?R:[]);for(R=m.next();!R.done;R=m.next())r.delete(R.value.issueId);R=l(r.entries());for(m=R.next();!m.done;m=R.next())r=
l(m.value),m=r.next().value,r=r.next().value,Ord(c.implicitTriageService,m,r);c.cdr.detectChanges()}).catch(function(m){c.errorHandler.errorHandler(null,m)})};
var O6d=function(a,b,c,d){b.bulkEditOps.every(function(e){return e.actions.every(function(f){return(f.actionType==="ADD"||f.actionType==="REMOVE")&&f.fieldName==="hotlists"})})&&d&&IO(a.clearcut,(new Date).getTime()-d.getTime(),"issueBulkEditApiCall-hotlistEditTime");c.errors&&c.errors.length?(b="Failed to update issue(s) "+(TWa(c.errors)+"."),a.butterBar.showWarning(b),a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"bulkEditError",""+c.errors.length)):(c=Tsd(a.statusMessages,b,a.customFieldMap))?(d&&
IO(a.clearcut,(new Date).getTime()-d.getTime(),"issueBulkEditApiCall-fromIssueListPage"),fs(a.butterBar,c)):fs(a.butterBar,"Saved "+n9a(b.bulkEditOps).length+" issue(s).")};h=w8.prototype;
h.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(){})}};h.addHotlist=function(a){this.hotlistMap[a.hotlistId]||(this.hotlistMap[a.hotlistId]=a,this.hotlistChoices.push(a))};
h.createHotlist=function(a){var b=this;var c=a.name;var d=a.successCallback;a=a.errorCallback;this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"createHotlist");fs(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);fs(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)};
h.loadHotlist=function(a){var b=this;var c=a.hotlistId;var d=a.successCallback;a=a.errorCallback;fs(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)};h.exportCsv=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"exportCsv");Iqd(this.domSafe,this.getCsvUrl())};
h.saveResultsPerPage=function(a){var b=this;this.userPreferencesManager.save({resultsPerPage:a}).pipe(Af(this.destroyed$)).subscribe(function(){b.resultsPerPage=a;j4(b.urlPreferences,{page:1});b.analytics.trackEvent(b.ANALYTICS_CATEGORY,"resultsPerPageSave",a.toString());b.refreshResults();b.cdr.detectChanges()},function(c){nn(c)})};
var M6d=function(a,b,c){var d=a.issuePagination.getFocusedIssue();a.timeout.schedule(function(){if(d>=b&&d<=c)a.focusedRowIndex=d-b;else{MTd(a.issuePagination);a.focusedRowIndex=0;var e=document.querySelector(".bv2-view");e&&(e.scrollTop=0)}a.cdr.detectChanges()})};w8.prototype.onColumnsChange=function(){P6d()};var P6d=function(){setTimeout(function(){var a=document.querySelector(".b-select-all-toggle");a&&a.focus()})};
da.Object.defineProperties(w8.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){Gm(this.issueColumnsInternal,a)||(this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"columnModification",x5a(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)))}}});w8.DEFAULT_META_COLUMNS=[bZd,dZd,eZd];
w8.\u0275fac=function(a){return new (a||w8)};w8.\u0275dir=af({type:w8,features:[Ff]});var Agc=function(){return{q:"status:open"}},x8=function(){w8.apply(this,arguments);this.hotkeys=q(dT);this.pageTitle=q(w1);this.routePerformance=q(N0);this.element=q(Gd);this.imageUrls=q(LV);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 rf};Z(x8,w8);x8.\u0275dir=w8.\u0275dir;h=x8.prototype;
h.ngOnInit=function(){var a=this;w8.prototype.ngOnInit.call(this);this.subscriptions.add(eT(this.hotkeys,{title:"Issue List",hotkeys:this.BASE_HOTKEYS}));this.subscriptions.add(this.userPreferencesManager.listViewPreferences$.subscribe(function(b){a.showHotlists=b.showHotlists}))};
h.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="",Lwd(this.appSearchState,this.query),this.searchResults=null,this.setPageTitle(),this.isLoading=!1):(this.routePerformance.ignoringNextNav=!0,j4(this.urlPreferences,{query:"assignee:"+this.currentUserEmail+" status:open"},!0)),Promise.resolve(void 0);Lwd(this.appSearchState,
this.query);b=Pwd(this.appSearchState);if(b>0)return Dxd(this.bLocation,zs.viewHotlist.makeHref(b)),j4(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);if(b=Qwd(this.appSearchState))return Dxd(this.bLocation,this.paths.viewSavedSearch(b)),j4(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);this.searchResults=null;this.isLoading=!0;this.setPageTitle();this.subscriptions.add(ke(qe(0).pipe(rla()),p0a("b-issues-grid, #no-results",this.element.nativeElement)).subscribe(function(){var c=
function(){YRd(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()})};
h.doSearch=function(){var a=this;this.cancelConcurrentlyRunningSearches$.next(new Q6d);var b=this.gridPreferencesFetcher.fetch({resultsPerPage:25,page:1,query:"",sortColumns:[],displayColumns:I6d(this)}),c=Promise.race([b.searchPreferences.then(function(f){f=Hm(f);f.query=a.query;f.returnUrl=a.bLocation.getUrl();f.trackerIds=a.appSearchState.currentTrackerScope;return HTd(a.issuePagination,f)}),ee(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 Q6d||N6d(a,f)}).catch(function(f){typeof f==="number"?j4(a.urlPreferences,{page:f}):a.errorHandler.errorHandler(null,f)});b=b.displayColumns;this.initColumns(b);return Fs({searchResultsPage:c,displayColumns:b}).then(function(f){var g=f.searchResultsPage;if(g instanceof Q6d)return!1;a.searchResults=g;a.page=g.params.page;a.sortPreferences=
g.params.sortColumns||[];a.loadHotlists();a.cdr.detectChanges();a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"issueSearch",f.displayColumns.join("|")+" ("+a.sortPreferences.join("|")+")");return!0})};h.saveColumns=function(a){this.displayColumns=a.map(function(b){return ou(b.name)});Cqd(this.userPreferencesManager,eSb(a)).pipe(Af(this.destroyed$)).subscribe()};
h.setPageTitle=function(){this.appSearchState.currentQuery===Mwd(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===Owd(this.currentUserEmail)?this.pageTitle.setTitle("To be verified"):this.pageTitle.setTitle(this.query)};
h.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(Af(this.destroyed$)).subscribe(function(){j4(b.urlPreferences,{sortColumns:a,page:1});P6d();var e=b.bLocation.search();Gm(c,e)&&b.refreshResults()})};h.getCsvUrl=function(){return hhb(this.query,this.appSearchState.currentTrackerScope,this.sortPreferences,this.displayColumns,this.showHotlists)};
x8.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(x8)))(b||x8)}}();
x8.\u0275cmp=C({type:x8,selectors:[["list-issues-page"]],features:[Ig([MO]),Ff],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&&(K(0,"h2",0),S(1,"Issue search results"),L(),K(2,"div",1)(3,"b-grid-controls",2),N("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()}),L(),K(4,"div",3)(5,"b-pagination",4),N("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",function(c){return b.saveResultsPerPage(c.option)}),L()()(),K(6,"div",5),F(7,xgc,4,1,"div",6),F(8,Dgc,6,
4,"div",7),F(9,Egc,2,6,"div",8),L());a&2&&(B(3),I("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices),B(2),I("searchResults",b.searchResults),B(),Jf("aria-busy",b.isLoading),B(),G(b.isLoading?7:-1),B(),G(b.isLoading||b.hasResults()?-1:8),B(),G(!b.isLoading&&b.hasResults()?9:-1))},dependencies:[kW,W3,v3,T3,H4,EF,VS],styles:[".empty-state-img[_ngcontent-%COMP%]{max-width:320px;max-height:320px;padding-bottom:56px}/*# sourceMappingURL=list_issues.css.map */"]});var Q6d=function(){},R6d=function(){};
R6d.\u0275fac=function(a){return new (a||R6d)};R6d.\u0275mod=$e({type:R6d});R6d.\u0275inj=Dc({imports:[f4,I4,F4,wT,FN,XS,lW,mC,iT,c1,q0,v3,x8]});var S6d=function(){};S6d.\u0275fac=function(a){return new (a||S6d)};S6d.\u0275cmp=C({type:S6d,selectors:[["b-list-playbooks"]],decls:2,vars:0,template:function(a){a&1&&(Sf(0,"div"),S(1," List playbooks page! "),Tf())},encapsulation:2,changeDetection:0});var y8=function(){this.cdr=q(MO,{self:!0});this.sloApi=q(wP);this.errorHandler=q(ZM);this.activeSession=q(Zu);this.isLoading=!1;this.activeSlos=[];this.archivedSlos=[];this.createSloPath=zs.createSlo.makeHref();this.sloEnabled=this.activeSession.isInternalSession();this.areArchivedSlosExpanded=!1};y8.prototype.ngOnInit=function(){this.sloEnabled&&T6d(this)};
var T6d=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)})};y8.\u0275fac=function(a){return new (a||y8)};
y8.\u0275cmp=C({type:y8,selectors:[["list-slos-page"]],features:[Ig([MO])],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&&(K(0,"div",0)(1,"a",
1),S(2," Create SLO "),L()(),K(3,"div",2),F(4,Fgc,5,0,"div",3),F(5,Ggc,1,1,"b-spinner",4)(6,Mgc,7,6),L());a&2&&(B(),I("href",b.createSloPath,Me),B(3),G(b.sloEnabled?4:-1),B(),G(b.isLoading?5:6))},dependencies:[ZA,XA,TA,iz,k5,VS],encapsulation:2});var U0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(U0a,X);h=U0a.prototype;h.getAuthor=function(){return Y(this,Zm,1)};h.setAuthor=function(a){hj(this,Zm,1,a)};h.hasAuthor=function(){return Si(this,Zm,1)};h.getTimestamp=function(){return Y(this,nj,2)};h.setTimestamp=function(a){return hj(this,nj,2,a)};h.hasTimestamp=function(){return Si(this,nj,2)};h.getAdd=function(){return Y(this,Gq,3)};h.setAdd=function(a){return hj(this,Gq,3,a)};
h.getRemove=function(){return Y(this,Gq,4)};h.setRemove=function(a){return hj(this,Gq,4,a)};h.getAddMask=function(){return Y(this,Xq,5)};h.getMutableAddMask=function(){return cj(this,Xq,5)};h.setAddMask=function(a){return hj(this,Xq,5,a)};h.getRemoveMask=function(){return Y(this,Xq,6)};h.getMutableRemoveMask=function(){return cj(this,Xq,6)};h.setRemoveMask=function(a){return hj(this,Xq,6,a)};var U6d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(U6d,X);var V6d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,V6d.messageId)};Z(V6d,X);V6d.prototype.getIt=function(){return Y(this,U6d,2,fb)};V6d.prototype.setIt=function(a){return hj(this,U6d,2,a,fb)};V6d.messageId="b.ComponentHistory";var z8=function(){this.executor=q(SM);this.bCacheFactory=q(JN);this.componentHistoriesCache=this.bCacheFactory.get("component_histories-second-level-cache")||this.bCacheFactory.create("component_histories-second-level-cache",{capacity:25})};z8.prototype.get=function(a){var b=this.componentHistoriesCache.get(a);return b?b:this.componentHistoriesCache.put(a,this.executor.get({url:"action/component_updates/"+a,responseConstructor:V6d}).then(V0a))};
z8.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};z8.prototype.invalidateCache=function(a){this.componentHistoriesCache.remove(a)};z8.\u0275fac=function(a){return new (a||z8)};z8.\u0275prov=Cc({token:z8,factory:z8.\u0275fac,providedIn:"root"});var W6d=["nameInput"],X6d=function(){return["delimiter"]},Rgc=function(a,b){return b.key},Y6d={type:"delimiter",text:"Fields inherited from parent components"},Z6d={type:"delimiter",text:"Shared Custom fields"},A8=function(){this.constants=q(SQ);this.fb=(new lC).nonNullable;this.issueTypeToDisplay=Tm;this.displayedColumns="visibility name id type description required default".split(" ");this.trackBy=function(a,b){return b.type==="customField"?""+b.customField.customFieldId:b.text};this.isDelimiterRow=
function(a,b){return b.type==="delimiter"};this.isCustomFieldRow=function(a,b){return b.type==="customField"};this.existingConfiguredIssueTypes=new Set;this.onSave=new KO;this.onCancel=new KO;this.conflictingIssueTypes$=be("")};
A8.prototype.ngOnInit=function(){var a=this,b,c;this.owningComponentId=(c=(b=this.configUnderEdit)==null?void 0:b.componentId)!=null?c:this.currentComponentId;this.customFieldsMap=new Map(this.customFields.map(function(f){return[f.customFieldId,f]}));this.hideIssueTypes=this.disallowIssueTypes||this.configUnderEdit!==void 0&&this.configUnderEdit.issueTypes.size===0;var d,e;this.nameForm=this.fb.control((e=(d=this.configUnderEdit)==null?void 0:d.name)!=null?e:"",[vi]);this.issueTypesForms=$6d(this);
a7d(this);this.validationForm=this.fb.group({name:this.nameForm,issueTypes:this.fb.array(Array.from(this.issueTypesForms.values())),customFieldConfigs:this.fb.array(this.customFieldRows.map(function(f){return f.formControl}))},{validators:[function(f){return a.hideIssueTypes||f.get("issueTypes").controls.some(function(g){return g.value})?null:{missingRequiredIssueTypes:!0}}]});this.partialVisibilityState$=new Xj(this.getVisibilityState(this.validationForm.controls.customFieldConfigs.value));this.validationForm.controls.customFieldConfigs.valueChanges.subscribe(function(f){a.partialVisibilityState$.next(a.getVisibilityState(f))});
this.isReadOnly?this.validationForm.disable():this.conflictingIssueTypes$=this.validationForm.controls.issueTypes.valueChanges.pipe(yf(this.issueTypesForms),A(function(){return Array.from(a.issueTypesForms.entries()).filter(function(f){var g=l(f);f=g.next().value;return g.next().value.value&&a.existingConfiguredIssueTypes.has(f)}).map(function(f){f=l(f).next().value;return Tm(f)}).join(", ")}))};A8.prototype.ngAfterViewInit=function(){this.isReadOnly||this.nameInput.nativeElement.focus()};
A8.prototype.getVisibilityState=function(a){var b=a.some(function(c){return c});a=a.some(function(c){return!c});return b&&a?"some":b?"all":"none"};
var b7d=function(a){return{name:a.nameForm.value,issueTypes:new Set([].concat(n(a.issueTypesForms.entries())).filter(function(b){b=l(b);b.next();return b.next().value.value}).map(function(b){return l(b).next().value})),customFieldConfigs:new Map(a.customFieldRows.map(function(b){return[b.customField.customFieldId,b.formControl.value]}))}},a7d=function(a){var b,c,d=(c=(b=a.configUnderEdit)==null?void 0:b.customFieldConfigs)!=null?c:new Map;a.customFieldRows=a.customFields.filter(function(f){return a.customFieldsMap.has(f.customFieldId)}).map(function(f){var g;
return{type:"customField",customField:f,formControl:a.fb.control((g=d.get(f.customFieldId))!=null?g:!0)}});var e=function(f,g){return f.customField.name.localeCompare(g.customField.name)};b=a.customFieldRows.filter(function(f){return f.customField.shared}).sort(e);c=a.customFieldRows.filter(function(f){return!f.customField.shared&&f.customField.componentId===a.owningComponentId}).sort(e);e=a.customFieldRows.filter(function(f){return!f.customField.shared&&f.customField.componentId!==a.owningComponentId}).sort(e);
a.tableRows=[].concat(n(c),n(e.length>0?[Y6d]:[]),n(e),n(b.length>0?[Z6d]:[]),n(b))},$6d=function(a){var b,c,d=(c=(b=a.configUnderEdit)==null?void 0:b.issueTypes)!=null?c:new Set;return new Map(a.constants.editIssueTypes.map(function(e){var f;return[e,a.fb.control((f=d.has(e))!=null?f:!1)]}))};A8.prototype.cancel=function(){this.onCancel.emit()};A8.prototype.save=function(){this.onSave.emit(b7d(this))};A8.\u0275fac=function(a){return new (a||A8)};
A8.\u0275cmp=C({type:A8,selectors:[["b-field-configuration-editor"]],viewQuery:function(a,b){a&1&&kg(W6d,5);if(a&2){var c;og(c=pg())&&(b.nameInput=c.first)}},inputs:{currentComponentId:"currentComponentId",customFields:"customFields",disallowIssueTypes:"disallowIssueTypes",configUnderEdit:"configUnderEdit",isReadOnly:"isReadOnly",existingConfiguredIssueTypes:"existingConfiguredIssueTypes"},outputs:{onSave:"onSave",onCancel:"onCancel"},decls:41,vars:15,consts:[["nameInput",""],[1,"top-row"],["appearance",
"outline","subscriptSizing","dynamic",1,"field-configuration-name-field"],["matInput","","type","text","required","","aria-required","true","autocomplete","off",3,"formControl"],["type","button","mat-stroked-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"medium","save",3,"disabled"],[1,"custom-field-selections"],["mat-table","",3,"dataSource","trackBy"],["matColumnDef","delimiter"],["mat-cell","",4,"matCellDef"],["matColumnDef","visibility"],["mat-header-cell",
"",4,"matHeaderCellDef"],["matColumnDef","name"],["matColumnDef","id"],["matColumnDef","type"],["matColumnDef","description"],["matColumnDef","required"],["matColumnDef","default"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"disabled-field",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["type","button","mat-flat-button","","color","primary",1,"medium","save",3,"click","disabled"],["messageType","caution"],[1,"issue-type-header"],
[1,"issue-type-description"],[1,"issue-type-checkboxes"],[3,"formControl"],[1,"flex-kids-x","align-items-center","gap-s"],[1,"icon-s","muted",3,"svgIcon"],["mat-cell",""],["mat-header-cell",""],["aria-label","All Fields Visibility",1,"all-visibility-checkbox",3,"change","disabled","checked","indeterminate"],["aria-label","Field visibility",1,"visibility-checkbox",3,"formControl"],[3,"customFieldValue"],["mat-header-row",""],["mat-row",""]],template:function(a,b){if(a&1){var c=t();K(0,"div")(1,"div",
1)(2,"mat-form-field",2)(3,"mat-label");S(4," Configuration name ");L();M(5,"input",3,0);L();K(7,"button",4);N("click",function(){u(c);return v(b.cancel())});S(8);L();F(9,Ngc,2,1,"button",5);L();F(10,Sgc,10,5);bg(11);U(12,"async");K(13,"div",6)(14,"table",7);Vf(15,8);E(16,Tgc,3,2,"td",9);Wf();Vf(17,10);E(18,Ugc,3,3,"th",11)(19,Vgc,2,1,"td",9);Wf();Vf(20,12);E(21,Wgc,2,0,"th",11)(22,Xgc,2,1,"td",9);Wf();Vf(23,13);E(24,Ygc,2,0,"th",11)(25,Zgc,3,1,"td",9);Wf();Vf(26,14);E(27,$gc,2,0,"th",11)(28,ahc,
3,3,"td",9);Wf();Vf(29,15);E(30,bhc,2,0,"th",11)(31,chc,2,1,"td",9);Wf();Vf(32,16);E(33,dhc,2,0,"th",11)(34,ehc,3,3,"td",9);Wf();Vf(35,17);E(36,fhc,2,0,"th",11)(37,ghc,2,1,"td",9);Wf();E(38,hhc,1,0,"tr",18)(39,ihc,1,2,"tr",19)(40,jhc,1,0,"tr",20);L()()()}a&2&&(B(5),I("formControl",b.nameForm),B(3),T(" ",b.isReadOnly?"Close":"Cancel"," "),B(),G(b.isReadOnly?-1:9),B(),G(b.hideIssueTypes?-1:10),B(),cg(W(12,11,b.partialVisibilityState$)),B(3),I("dataSource",b.tableRows)("trackBy",b.trackBy),B(24),I("matHeaderRowDef",
b.displayedColumns),B(),I("matRowDefColumns",b.displayedColumns)("matRowDefWhen",b.isCustomFieldRow),B(),I("matRowDefColumns",Jg(14,X6d))("matRowDefWhen",b.isDelimiterRow))},dependencies:[uT,vT,E2,mC,xi,PB,hC,ZA,XA,TA,PK,OK,wI,DB,qB,BB,tB,qC,EB,oC,GW,FW,QS,DS,JS,FS,CS,LS,GS,IS,MS,OS,iz,nC,bC,py,nU,uy,pU],styles:[".issue-type-checkboxes[_ngcontent-%COMP%]{display:grid;gap:8px;grid-template-columns:1fr 1fr 1fr 1fr;margin:16px}.field-configuration-name-field[_ngcontent-%COMP%]{width:100%;margin:16px 0px}.issue-type-description[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted);margin-bottom:8px}.top-row[_ngcontent-%COMP%]{width:100%;display:flex;gap:8px;align-items:center}.top-row[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{flex-grow:4}.top-row[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{min-width:200px}tr.disabled-field[_ngcontent-%COMP%]{opacity:.6}"],
changeDetection:0});var B8=function(){this.dialogData=q(fB);this.dialogRef=q(dB);this.originalItems=this.dialogData.configs.map(function(a){return{name:a.name,data:a}});this.items=[].concat(n(this.originalItems));this.hasChanges=!1};B8.prototype.onClose=function(){var a=this.items.map(function(b){return b.data});this.dialogRef.close(a)};B8.\u0275fac=function(a){return new (a||B8)};
B8.\u0275cmp=C({type:B8,selectors:[["b-field-configuration-reorder-dialog"]],decls:11,vars:2,consts:[["reorderItems",""],["mat-dialog-title",""],[1,"margin-none"],["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=t();K(0,"div",1)(1,
"h1",2);S(2," Reorder Field Configurations ");L()();K(3,"div",3)(4,"b-reorder-items",4,0);N("items",function(d){u(c);return v(b.items=d)})("hasChanges",function(d){u(c);return v(b.hasChanges=d)});L()();K(6,"div",5)(7,"button",6);N("click",function(){u(c);return v(b.dialogRef.close())});S(8," Cancel ");L();K(9,"button",7);N("click",function(){u(c);return v(b.onClose())});S(10," Save ");L()()}a&2&&(B(4),I("originalItems",b.originalItems),B(5),I("disabled",!b.hasChanges))},dependencies:[ZA,XA,TA,mB,
lB,kB,$Z],encapsulation:2,changeDetection:0});var Xhc=function(){return["section-title"]},yhc=function(a){return{row:a}},c7d={text:"Typed configurations inherited by this component",rowType:"sectionTitle"},d7d={text:"Default configurations inherited by this component",rowType:"sectionTitle"},e7d={text:"Default configuration owned by this component",rowType:"sectionTitle"},C8=function(){this.matDialog=q(gB);this.confirmationDialog=q(PQ);this.fieldConfigService=q($5);this.butterBar=q(JM);this.appEvents=q(DN);this.constants=q(SQ);this.documentationLinks=
q(OQ);this.activeSession=q(Zu);this.isInternalSession=this.activeSession.isInternalSession();this.ROUTES=zs;this.issueTypeToDisplay=Tm;this.componentIds=[];this.componentIdsToPaths={};this.currentComponentConfigs=[];this.ownDefaultFieldConfig=void 0;this.ownTypedFieldConfigs=[];this.customFields=[];this.allTableRows$=new Xj([]);this.state$=new Xj({view:"list"});this.displayedColumns=["name","types","inherited-from","actions"];this.isSectionTitleRow=function(a,b){return b.rowType==="sectionTitle"}};
C8.prototype.ngOnInit=function(){var a;this.componentIds=[].concat(n((a=this.componentPathInfo.componentPathId)!=null?a:[])).reverse();this.currentComponentId=this.componentIds[0];var b;this.customFields=(b=this.componentPathInfo.allCustomField)!=null?b:[];a=this.componentPathInfo;b={};var c=[],d,e=(d=a.componentPathId)!=null?d:[];for(d=0;d<e.length;d++){var f=e[d];c.push(a.componentPathName[d]);b[f]=c.join(" > ")}this.componentIdsToPaths=b;var g;a=(g=this.componentPathInfo.fieldConfigsV2Map.get(this.currentComponentId))!=
null?g:[];f7d(this,a)};
var f7d=function(a,b){a.currentComponentConfigs=b;a.ownDefaultFieldConfig=void 0;var c=[];b=[];for(var d=[],e=l(a.componentIds),f=e.next();!f.done;f=e.next()){f=f.value;var g=f===a.currentComponentId?a.currentComponentConfigs:a.componentPathInfo.fieldConfigsV2Map.get(f);if(g)if(f===a.currentComponentId)for(f=l(g),g=f.next();!g.done;g=f.next())g=g.value,g.issueTypes.size?b.push(g):a.ownDefaultFieldConfig=g;else for(f=l(g),g=f.next();!g.done;g=f.next())g=g.value,g.issueTypes.size?d.push(g):c.push(g)}e=
[];b.length>0&&e.push.apply(e,n(g7d(a,b)));d.length>0&&(e.push(c7d),e.push.apply(e,n(g7d(a,d))));a.ownDefaultFieldConfig&&(e.push(e7d),e.push.apply(e,n(g7d(a,[a.ownDefaultFieldConfig]))));c.length>0&&(e.push(d7d),e.push.apply(e,n(g7d(a,c))));c=new Set;d=e.filter(function(m){return m.rowType==="fieldConfig"});d=l(d);for(f=d.next();!f.done;f=d.next())if(f=f.value,f.issueTypes&&f.effectiveIssueTypes){g=l(f.issueTypes);for(var k=g.next();!k.done;k=g.next())k=k.value,c.has(k)&&f.effectiveIssueTypes.delete(k),
c.add(k)}a.ownTypedFieldConfigs=b;a.allTableRows$.next(e)},lhc=function(a,b){return new Set(a.ownTypedFieldConfigs.filter(function(c){return c!==b}).flatMap(function(c){return[].concat(n(c.issueTypes))}))},khc=function(a,b,c){var d=Array.from(a.currentComponentConfigs,function(e){return e===b?c:e});h7d(a,d)},Vhc=function(a,b,c){a.state$.next({view:"create",config:b,disallowIssueTypes:!!c})},phc=function(a,b){b.componentId=a.currentComponentId;h7d(a,[].concat(n(a.currentComponentConfigs),[b]))};
C8.prototype.cancelEdit=function(){this.state$.next({view:"list"})};
var Nhc=function(a,b){a.confirmationDialog.open({title:"Delete field configuration?",content:Dh("Are you sure you want to delete the "+b.name+"? This cannot be undone."),onConfirm:function(){h7d(a,a.currentComponentConfigs.filter(function(c){return c!==b}))}})},Whc=function(a){return eB(a.matDialog.open(B8,{width:"500PX",autoFocus:!1,data:{configs:a.ownTypedFieldConfigs}})).subscribe(function(b){b&&(a.ownDefaultFieldConfig&&b.push(a.ownDefaultFieldConfig),h7d(a,b))})},h7d=function(a,b){a.state$.next({view:"list"});
if(a.currentComponentId){var c=a.currentComponentId;o2d(a.fieldConfigService,c,b).subscribe(function(d){a.appEvents.componentModified.next(c);f7d(a,d);fs(a.butterBar,"Field configurations saved",3E3)},function(){a.butterBar.showWarning("Saving field configurations failed, please refresh the page.",5E3)})}},nhc=function(a,b){return a.customFields.filter(function(c){return b.customFieldConfigs.has(c.customFieldId)})},g7d=function(a,b){return b.map(function(c){var d;return{inherited:c.componentId!==
a.currentComponentId,name:c.name,isDefault:!((d=c.issueTypes)==null?0:d.size),issueTypes:c.issueTypes,effectiveIssueTypes:new Set(c.issueTypes),owningComponentId:c.componentId,rowType:"fieldConfig",data:c}})};C8.\u0275fac=function(a){return new (a||C8)};
C8.\u0275cmp=C({type:C8,selectors:[["b-field-configuration"]],inputs:{componentPathInfo:"componentPathInfo",isAdmin:"isAdmin"},decls:3,vars:4,consts:[["deleteDialog",""],["actionButtons",""],["issueTypes",""],["card","onedevHovercard"],["cardBody",""],[3,"currentComponentId","customFields","configUnderEdit","isReadOnly","existingConfiguredIssueTypes"],[3,"currentComponentId","customFields","configUnderEdit","isReadOnly"],[3,"currentComponentId","customFields","disallowIssueTypes","configUnderEdit",
"existingConfiguredIssueTypes"],[3,"onSave","onCancel","currentComponentId","customFields","configUnderEdit","isReadOnly","existingConfiguredIssueTypes"],[3,"onCancel","currentComponentId","customFields","configUnderEdit","isReadOnly"],[3,"onSave","onCancel","currentComponentId","customFields","disallowIssueTypes","configUnderEdit","existingConfiguredIssueTypes"],[1,"component-banner","config-help-banner"],["aria-label","Learn more about field ordering","target","_blank",1,"keep-underline","keep-focus-ring",
3,"href"],["mat-table","",3,"dataSource"],["matColumnDef","section-title"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","types"],["matColumnDef","inherited-from"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","section-title-row",4,"matRowDef","matRowDefColumns","matRowDefWhen"],[1,"no-custom-fields-message"],[1,"edit-button-row"],["type",
"button","mat-flat-button","","aria-label","Create new configuration in this component",1,"create-new-configuration",3,"click","disabled"],["type","button","mat-flat-button","","aria-label","Create new configuration in this component",1,"create-new-default-configuration",3,"click","disabled"],["type","button","mat-flat-button","","aria-label","Create new configuration in this component",1,"reorder-button",3,"click","disabled"],["mat-cell",""],["mat-header-cell",""],[1,"flex-kids-x","align-items-center",
"gap-s"],["svgIcon","help-outline",1,"icon-s","muted",3,"onedevHovercardTrigger"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"config-component-path"],[1,"header-label"],[3,"onedevHovercardTrigger","href"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"section-title-row"],["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"],[1,"action-buttons-row"],["type","button","mat-button","","aria-label","View configuration",1,"view-configuration"],["type","button","mat-button","","aria-label","Create copy of configuration",1,"create-copy-configuration"],["type","button","mat-button","","aria-label","Create copy of configuration",1,"create-copy-configuration",3,"click"],["type","button",
"mat-button","","aria-label","Edit configuration",1,"edit-configuration",3,"click"],["type","button","mat-button","","aria-label","Delete configuration",1,"delete-configuration",3,"click"],["type","button","mat-button","","aria-label","View configuration",1,"view-configuration",3,"click"],[1,"issue-types-cell"],[1,"icon-s","muted",3,"svgIcon","non-applicable"],[1,"icon-s","muted",3,"svgIcon"]],template:function(a,b){a&1&&(bg(0),U(1,"async"),F(2,Zhc,4,1));a&2&&(a=cg(W(1,1,b.state$)),B(2),G(a?2:-1))},
dependencies:[GV,A8,ZA,XA,TA,GW,FW,QS,DS,JS,FS,CS,LS,GS,IS,MS,OS,AK,uK,vK,zK,wK,mB,hB,lB,XJ,iz,oy,py],styles:[".edit-button-row[_ngcontent-%COMP%]{padding:10px 0}.mat-column-types[_ngcontent-%COMP%]{white-space:pre-line}table[_ngcontent-%COMP%]{margin-top:10px}.section-title-row[_ngcontent-%COMP%]{height:32px}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)}td[_ngcontent-%COMP%]{border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}td[_ngcontent-%COMP%]   .config-row-name[_ngcontent-%COMP%]{padding:8px}td[_ngcontent-%COMP%]   .action-buttons-row[_ngcontent-%COMP%]{display:flex;gap:8px;flex-direction:row}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}.example-custom-placeholder[_ngcontent-%COMP%]{background:#ccc;border:dotted 3px #999;min-height:40px;width:100%}.mat-column-name[_ngcontent-%COMP%]{width:300px}.mat-column-types[_ngcontent-%COMP%]{width:200px}.mat-column-inherited-from[_ngcontent-%COMP%]{width:300px}.mat-column-actions[_ngcontent-%COMP%]{width:300px}.issue-types-cell[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.non-applicable[_ngcontent-%COMP%]{color:var(--text-disabled);text-decoration:line-through}"],
changeDetection:0});var D8=function(){};D8.prototype.ngOnInit=function(){};D8.\u0275fac=function(a){return new (a||D8)};D8.\u0275cmp=C({type:D8,selectors:[["slo-inheritance-breadcrumbs"]],inputs:{componentPath:"componentPath",teamPath:"teamPath"},decls:2,vars:2,consts:[[3,"teamPath"],["componentPathsLinkTo","settings",3,"componentPathInfo"]],template:function(a,b){a&1&&(F(0,$hc,3,1),F(1,aic,3,1));a&2&&(G(b.teamPath?0:-1),B(),G(b.componentPath?1:-1))},dependencies:[HV,N4],styles:["b-component-breadcrumb[_ngcontent-%COMP%], b-team-breadcrumb[_ngcontent-%COMP%]{display:inline-block}"]});var i7d={BASIC:"basic",CUSTOM_FIELDS:"customFields",FIELD_ORDERING:"fieldOrdering",FIELD_VISIBILITY:"fieldVisibility",TEMPLATES:"templates",ACCESS:"access"},j7d={},k7d=(j7d[0]="access",j7d[1]="access_permissions",j7d),E8=function(){LO.call(this);var a=this;this.bLocation=q(US);this.route=q(Wj);this.TAB_LIST="basic customFields fieldOrdering fieldVisibility templates access".split(" ");this.Tab=i7d;this.selectedTabIndex=this.tabIndex("basic");this.selectedAccessSubTabIndex=0;this.componentReady$=new rf;
this.componentReady$.subscribe(function(){a.selectedTabIndex=a.tabIndex("basic");a.route.fragment.pipe(Af(a.destroyed$)).subscribe(function(b){if(b==="basic")a.selectedTabIndex=a.tabIndex("basic");else if(b==="customFields")a.selectedTabIndex=a.tabIndex("customFields");else if(b==="fieldOrdering")a.selectedTabIndex=a.tabIndex("fieldOrdering");else if(b==="templates")a.selectedTabIndex=a.tabIndex("templates");else if(b==="fieldVisibility")a.selectedTabIndex=a.tabIndex("fieldVisibility");else if(b===
"access"||b==="access"||b==="access_permissions")a.selectedTabIndex=a.tabIndex("access"),b==="access_permissions"&&(a.selectedAccessSubTabIndex=1),lkc(a)})})};Z(E8,LO);E8.\u0275dir=LO.\u0275dir;E8.prototype.tabIndex=function(a){a=this.TAB_LIST.indexOf(a);return a!==-1?a:0};
E8.prototype.tabChange=function(a){if(a===this.tabIndex("access")&&this.selectedAccessSubTabIndex>0){var b,c=(b=k7d[a])!=null?b:"access";this.bLocation.hash(c,!0)}else b=(c=this.TAB_LIST[a])!=null?c:null,this.bLocation.hash(b,!0);this.selectedTabIndex=a};var lkc=function(a){a.selectedAccessSubTabIndex===1?a.bLocation.hash("access_permissions",!0):a.selectedAccessSubTabIndex===0&&a.bLocation.hash("access",!0)};E8.\u0275fac=function(a){return new (a||E8)};
E8.\u0275prov=Cc({token:E8,factory:E8.\u0275fac,providedIn:"root"});var fic=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(fic,X);var l7d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,l7d.messageId)};Z(l7d,X);l7d.messageId="b.BatchGroupMetadataResult";var G8=function(){var a=this;this.groupMetadataResources=q(F8);this.bulkGetter=q(jO).adapt(function(b){return a.groupMetadataResources.bulkGet(b).then(function(c){var d=bic(c);return jBc(b,function(e){return d[e]||null})})})};G8.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"}})};G8.\u0275fac=function(a){return new (a||G8)};
G8.\u0275prov=Cc({token:G8,factory:G8.\u0275fac,providedIn:"root"});var F8=function(){this.executor=q(SM)};F8.prototype.bulkGet=function(a){a=[].concat(n(new Set(a)));a=kq(a.join(","));return this.executor.get({url:"action/group_metadata/"+a,responseConstructor:l7d}).then(gic)};F8.\u0275fac=function(a){return new (a||F8)};F8.\u0275prov=Cc({token:F8,factory:F8.\u0275fac,providedIn:"root"});var hic=[{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 H8=function(){var a=this;this.activeSession=q(Zu);this.confirmationDialogService=q(PQ);this.documentationLinks=q(OQ);this.groupMetadata=q(G8);this.componentReaders=[];this.enableRostersChecks=this.activeSession.getFlag("enableRostersChecks");this.enableComponentAutomationCheck=this.activeSession.getFlag("enableComponentAutomationCheck");this.isPublic=function(){return st(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:Dh("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:Dh('"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){ric(a.activeSession.getUserEmail(),
a.componentFlattenedAccessPolicy,a.componentAccessPolicyUnderEdit)?a.confirmationDialogService.open({title:"Component Administrators Changed",content:Dh("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){qic(a.issueDefaultFlattenedAccessPolicy,a.issueDefaultAccessPolicyUnderEdit)?a.confirmationDialogService.open({title:"Group Removed from Restricted+ Readers",content:Dh("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=ulb(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=Oq([].concat(n(Km(a.componentAccessPolicyUnderEdit.admins,a.componentFlattenedAccessPolicy.admins)),n(Km(a.issueDefaultAccessPolicyUnderEdit.admins,a.issueDefaultFlattenedAccessPolicy.admins)),n(Km(a.issueDefaultAccessPolicyUnderEdit.editors,a.issueDefaultFlattenedAccessPolicy.editors)),n(Km(a.issueDefaultAccessPolicyUnderEdit.appenders,
a.issueDefaultFlattenedAccessPolicy.appenders)),n(Km(a.issueDefaultAccessPolicyUnderEdit.readers,a.issueDefaultFlattenedAccessPolicy.readers)),n(Km(a.issueDefaultAccessPolicyUnderEdit.restrictedReaders,a.issueDefaultFlattenedAccessPolicy.restrictedReaders)),n(Km(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=lic(b);b=pic(b);if(c.size===0&&b.size===0)return Promise.resolve(!0);var d=mic(c.size,b.size);c=nic(c);b=oic(b);var e=Fh([c,c===Lj?Lj:Gh("br"),b]);c={};e=Fh([e,Gh("p",{},Fh(["Please review the ",Gh("a",(c.href=wsd(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()&&kic(a.issueDefaultAccessPolicyUnderEdit,a.issueDefaultFlattenedAccessPolicy)){var c={};c=Fh([Gh("p",{},"You are about to give a broad category of users permissions on a public component."),Gh("p",{},Fh(["Please review the ",Gh("a",(c.href=vsd(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=Gh("a",(b.href=Es(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:Eh(["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:Eh(["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(n(iic(a.issueDefaultFlattenedAccessPolicy,a.issueDefaultAccessPolicyUnderEdit)),n(iic(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=ulb(e.value),(oTa(e)?SVa(e.user.emailAddress):e.group!==void 0&&SVa(e.group.emailAddress))&&c.add(e)}return[].concat(n(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=Gh("a",(d.href=tsd(a.documentationLinks),d)," automation account documentation");a.confirmationDialogService.open({title:"Adding automation accounts",content:Fh([Dh("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"),Gh("wbr"),d,Dh("."),Gh.apply(null,["ol",{}].concat(n(b.map(function(e){if(oTa(e)){var f;
return Gh("li",{},Dh((f=e.user.emailAddress)!=null?f:""))}if(e.group!==void 0){var g;return Gh("li",{},Dh((g=e.group.emailAddress)!=null?g:""))}throw Error("Fg`"+JSON.stringify(e));})))),Gh("br",{}),Dh("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 y(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 z(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)}})}},m7d=function(a,b){var c=b.component;var d=b.originalComponent;var e=b.componentReaders;var f=b.componentAccessPolicyUnderEdit;var g=b.componentFlattenedAccessPolicy;var k=b.issueDefaultAccessPolicyUnderEdit;var m=b.issueDefaultFlattenedAccessPolicy;var r,w;return y(function(x){if(x.nextAddress==1)return a.component=c,a.originalComponent=d,a.componentReaders=e,a.componentAccessPolicyUnderEdit=
f,a.componentFlattenedAccessPolicy=g,a.issueDefaultAccessPolicyUnderEdit=k,a.issueDefaultFlattenedAccessPolicy=m,r=[a.performAccessLimitCheck,a.performDeletedAccountsCheck,a.performAdminAccessRemovalCheck,a.performRestrictedPlusGroupRemovalCheck,a.performAddedLargeOrOpenGroupCheck,a.performAddedNewInternalAliasesCheck,a.performChangedImplicitAccessCheck,a.performAutomationUserAccessCheck],z(x,a.runValidation(r),2);w=x.yieldResult;return x.return(w)})};H8.\u0275fac=function(a){return new (a||H8)};
H8.\u0275prov=Cc({token:H8,factory:H8.\u0275fac});var I8=function(){LO.apply(this,arguments);this.principalTypes=q(oP);this.componentReaders=[];this.templates=[]};Z(I8,LO);I8.\u0275dir=LO.\u0275dir;
I8.prototype.ngOnChanges=function(){var a=this.componentAccessPolicy,b=this.issueAccessPolicy,c=new Set([].concat(n(this.componentReaders))),d=new Set([].concat(n(a.admins),n(a.inheritedAdmins)));a=new Set([].concat(n(d),n(a.appenders)));var e=new Set([].concat(n(b.admins))),f=new Set([].concat(n(e),n(b.editors))),g=new Set([].concat(n(f),n(b.appenders))),k=new Set([].concat(n(b.restrictedPlusReaders))),m=new Set([].concat(n(k),n(b.restrictedReaders)));b=new Set([].concat(n(m),n(g),n(b.readers)));
this.templates=[{permission:"Admin Components",principals:[].concat(n(d)).map(Su)},{permission:"Create Issues",principals:[].concat(n(a)).map(Su)},{permission:"Admin Issues",principals:[].concat(n(e)).map(Su)},{permission:"Edit Issues",principals:[].concat(n(f)).map(Su)},{permission:"Comment on Issues",principals:[].concat(n(g)).map(Su)},{permission:"View Issues",principals:[].concat(n(b)).map(Su)},{permission:"View Components",principals:[].concat(n(c)).map(Su)},{permission:"View Restricted",principals:[].concat(n(m)).map(Su)},
{permission:"View Restricted+",principals:[].concat(n(k)).map(Su)}];n7d(this,this.templates)};
var n7d=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":lpd(a.principalTypes,e.principal$jscomp$15.value,!0).then(function(f){return function(g){f.principal$jscomp$15.detailedUserType=g.detailedUserType}}(e))}};
I8.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(I8)))(b||I8)}}();
I8.\u0275cmp=C({type:I8,selectors:[["permissions-view"]],inputs:{issueAccessPolicy:"issueAccessPolicy",componentAccessPolicy:"componentAccessPolicy",componentReaders:"componentReaders",accessLevel:"accessLevel"},features:[Ff,Gx],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&&(K(0,"table")(1,"tr",0)(2,"th",1),S(3,"Permission"),L(),K(4,
"th",1),S(5,"Users With Permission"),L()(),Pf(6,tic,6,1,"tr",2,Of),L());a&2&&(B(6),Qf(b.templates))},dependencies:[qW],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 o7d=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"}),J8={},p7d=(J8.issueAdmin=new Set(["issueEditor"]),J8.issueEditor=new Set(["issueAppender"]),J8.issueAppender=new Set(["issueReader"]),J8.issueRestrictedReader=
new Set(["issueReader"]),J8.issueRestrictedPlusReader=new Set(["issueRestrictedReader"]),J8.issueReader=new Set(["componentReader"]),J8.componentAdmin=new Set(["componentAppender"]),J8.componentAppender=new Set(["componentReader"]),J8.componentReader=new Set,J8),Eic=$Va(o7d,function(a){return p7d[a]}),Cic=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"}),K8={},q7d=(K8.componentAdmin=new Set(["componentAdmin","issueAdmin"]),K8.issueAdmin=new Set(["issueAdmin","componentAppender"]),K8.issueEditor=new Set(["issueEditor","componentAppender"]),K8.issueContributor=new Set(["issueAppender","componentAppender"]),K8.componentAdminOnly=new Set(["componentAdmin"]),
K8.issueCreator=new Set(["componentAppender"]),K8.issueAdminOnly=new Set(["issueAdmin"]),K8.issueEditorExisting=new Set(["issueEditor"]),K8.issueCommenter=new Set(["issueAppender"]),K8.restrictedPlusViewer=new Set(["issueRestrictedPlusReader"]),K8.restrictedViewer=new Set(["issueRestrictedReader"]),K8.issueViewer=new Set(["issueReader"]),K8),Bic=$Va(Cic,function(a){return q7d[a]}),r7d=Fic(),Aic=$Va(Cic,function(a){a=[].concat(n(Bic.get(a))).flatMap(function(b){return[].concat(n(r7d.get(b)))});return new Set(a)}),
Dic=$Va(Cic,function(a){return new Set(Cic.filter(function(b){return b!==a&&MSa(Aic.get(b),Aic.get(a))}))});var Iic={componentAdmin:[],componentAdminOnly:[],issueAdminOnly:[],inheritedComponentAdmin:[],issueAdmin:[],editor:[],contributor:[],viewer:[],editExistingIssuesOnly:[],createIssuesOnly:[],commentOnly:[],viewRestricted:[],viewRestrictedPlus:[]},s7d={admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null};var L8=function(){var a=this;this.accessPolicyApi=q(tN);this.errorHandler=q(ZM);this.butterBar=q(JM);this.userAccess=q(lO);this.componentActions=q(JV);this.componentValidator=q(H8);this.analytics=q(PO);this.isAdmin=!1;this.rolesMap=Iic;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=s7d;this.componentAccessPolicyUnderEdit=Ss();this.issueDefaultAccessPolicyUnderEdit=Ss()};
L8.prototype.hasUnsavedAccessLimitChanges=function(){var a=this.originalComponent,b=this.component;return a&&b?a.accessLimit.accessLevel!==b.accessLimit.accessLevel:!1};
var t7d=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;fs(a.butterBar,"Changed access level.")},function(b){a.component.accessLimit.accessLevel=a.originalComponent.accessLimit.accessLevel;
var c="Could not change access level. ";hq(b)&&(c+=iq(b));a.butterBar.showWarning(c)}).finally(function(){a.isUpdatingAccessLimit=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit})};L8.prototype.updateComponentAndOriginalComponent=function(a){this.component=Hm(a);this.originalComponent=Hm(a)};
L8.prototype.loadComponent=function(){var a=this;return this.componentActions.getUncached(this.componentId).then(function(b){a.updateComponentAndOriginalComponent(b);b.parentComponentId&&a.loadParentComponent(b.parentComponentId)}).catch(function(b){a.errorHandler.errorHandler(null,b)})};L8.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)})};
L8.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=Ts(c);b.componentAccessPolicyUnderEdit=Hm(b.componentFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.accessPolicyApi.get("ISSUE_DEFAULTS",this.componentId).then(function(c){b.issueDefaultFlattenedAccessPolicy=
Ts(c);b.issueDefaultAccessPolicyUnderEdit=Hm(b.issueDefaultFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.loadComponent(),this.loadUserAccess(this.componentId)]).then(function(){})};
var u7d=function(a){a.rolesMap=Jic({componentAccessPolicy:a.componentAccessPolicyUnderEdit,issueAccessPolicy:a.issueDefaultAccessPolicyUnderEdit})},v7d=function(a,b){var c=a.issueDefaultAccessPolicyUnderEdit,d=a.issueDefaultFlattenedAccessPolicy;return d&&Lic(d,c)?a.accessPolicyApi.update("ISSUE_DEFAULTS",a.componentId,b):Promise.resolve(void 0)},w7d=function(a){var b=Kic(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy);var c=a.issueDefaultAccessPolicyUnderEdit;a=a.issueDefaultFlattenedAccessPolicy;
c=!(!a||!Lic(a,c));return b||c},x7d=function(a,b){return Kic(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy)?a.accessPolicyApi.get("COMPONENT",a.componentId).then(function(c){var d=Ts(c);if(Kic(d,a.componentAccessPolicyUnderEdit)){if(Kic(d,a.componentFlattenedAccessPolicy))return Promise.reject(new qjd("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)};L8.prototype.loadUserAccess=function(a){var b=this;return mO(this.userAccess,"admin","components/"+a).then(function(c){b.isAdmin=c;return b.isAdmin?Promise.resolve(!0):mO(b.userAccess,"writer","components/"+a)}).catch(function(c){b.errorHandler.errorHandler(null,c);return Promise.resolve(!1)})};
L8.prototype.doSaveAccessPolicy=function(){var a=this;try{var b=Us(this.componentAccessPolicyUnderEdit);var c=Us(this.issueDefaultAccessPolicyUnderEdit)}catch(d){return c="An unknown problem occurred",d instanceof Error&&(c=d.message),this.butterBar.showWarning(c),Promise.resolve()}if(w7d(this))return this.isSaving=this.isUpdatingAccessPolicy=!0,fs(this.butterBar,"Saving access settings...",0),v7d(this,c).then(function(d){d&&(b.readers=[].concat(n(d.admins||[]),n(d.editors||[]),n(d.appenders||[]),
n(d.readers||[]),n(d.restrictedPlusReaders||[]),n(d.restrictedReaders||[])));return x7d(a,b).catch(function(e){var f;return y(function(g){if(g.nextAddress==1)return f=Us(a.issueDefaultFlattenedAccessPolicy),z(g,v7d(a,f),2);throw e;})})}).then(function(){return t7d(a)}).then(function(){return a.initialize()}).then(function(){var d=a.rolesMap;u7d(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},g={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=Mic({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=Mic(f,g);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")}fs(a.butterBar,"Access settings saved",
0)}).catch(function(d){a.butterBar.showWarning(iq(d),0)}).finally(function(){return y(function(d){if(d.nextAddress==1)return z(d,a.loadUserAccess(a.componentId),2);a.isUpdatingAccessPolicy=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit;$d(d)})});u7d(this);return t7d(this)};
var y7d=function(a,b){b=Gic(b);a.issueDefaultAccessPolicyUnderEdit=Object.assign({},a.issueDefaultAccessPolicyUnderEdit,b.issuesPermissions);a.componentAccessPolicyUnderEdit=Object.assign({},a.componentAccessPolicyUnderEdit,b.componentPermissions)},Yic=function(a,b){a.component&&a.originalComponent&&a.componentFlattenedAccessPolicy&&a.componentAccessPolicyUnderEdit&&a.issueDefaultFlattenedAccessPolicy&&a.issueDefaultAccessPolicyUnderEdit?(y7d(a,b),m7d(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();fs(a.butterBar,"Update failed: Invalid changes to component permissions",0);return Promise.resolve()})):Promise.resolve()};
da.Object.defineProperties(L8.prototype,{componentAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Gm(a,this.componentAccessPolicyUnderEditInternal)||(this.componentAccessPolicyUnderEditInternal=a,this.componentReaders=Hic({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.componentAccessPolicyUnderEditInternal}},issueDefaultAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){Gm(a,
this.issueDefaultAccessPolicyUnderEditInternal)||(this.issueDefaultAccessPolicyUnderEditInternal=a,this.componentReaders=Hic({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.issueDefaultAccessPolicyUnderEditInternal}}});L8.\u0275fac=function(a){return new (a||L8)};L8.\u0275prov=Cc({token:L8,factory:L8.\u0275fac});var M8=function(){this.activeSession=q(Zu);this.documentationLinks=q(OQ);this.rolesEditor=q(L8);this.AccessLevelStrings=Igd};M8.prototype.getRecentIssuesLink=function(){return Nr(this.rolesEditor.component.componentId,{includeArchived:this.rolesEditor.component?this.rolesEditor.component.archived:!1})};M8.prototype.isParentPartner=function(){return!(!this.rolesEditor.parentComponent||!Zpb(this.rolesEditor.parentComponent))};
M8.prototype.isParentPublic=function(){return!(!this.rolesEditor.parentComponent||!st(this.rolesEditor.parentComponent))};M8.\u0275fac=function(a){return new (a||M8)};
M8.\u0275cmp=C({type:M8,selectors:[["access-limit-settings"]],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&&(F(0,Ric,18,7,"div",
0),K(1,"div",1)(2,"p"),S(3," Access to issues is granted per component using the settings below. All settings provide access to view the component. "),K(4,"a",2),S(5,"Learn more"),L()()());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=rt(b.rolesEditor.parentComponent)||rt(b.rolesEditor.component);break a}}else{a=!1;break a}a=void 0}G(a?0:-1);B(4);I("href",Gg("",Es(b.documentationLinks),
"#recommended-role-based-permissions-configurations"),Me)}},dependencies:[mC,xi,ZB,PB,WB],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 N8=function(){this.documentationLinks=q(OQ);this.rolesEditor=q(L8)};N8.prototype.isAccessEditDisabled=function(){return this.rolesEditor.isSaving||!this.rolesEditor.isAdmin};N8.prototype.setImplicitAccess=function(a){this.rolesEditor.implicitAccess.setValue(a)};N8.\u0275fac=function(a){return new (a||N8)};
N8.\u0275cmp=C({type:N8,selectors:[["expanded-access-settings"]],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&&(K(0,"div",0)(1,"span",1)(2,"mat-checkbox",2),N("change",function(c){return b.setImplicitAccess(c.checked)}),L()(),K(3,"div",3)(4,"strong",4),S(5,"Expanded access"),L(),K(6,"div",5),S(7," When checked, assignees, verifiers, and collaborators can edit issues for this component, and CC'd users can add comments. "),K(8,"a",6),S(9,"Learn more"),L()()()());a&2&&(yg("bv2-edit-resource-readonly",b.isAccessEditDisabled()),B(2),I("checked",
b.rolesEditor.implicitAccess.getValue())("disabled",b.isAccessEditDisabled()),B(6),I("href",Gg("",Es(b.documentationLinks),"#expanded-access"),Me))},dependencies:[PK,OK,wI],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 Sic=function(){return{}},Uic=function(a,b){return{displayText:a,values:b}},Tic=function(a){return[a]},Vic=function(){return[]},O8=function(){this.rolesTableData=[];this.canEdit=!1;this.rolesMapUpdated=new KO;this.formIsValid=new KO;this.aclFormValidity=new Map};O8.prototype.getIconName=function(a,b){switch(a.grantedPermissions[b]){case "inherited":return"issue-status-verified";case !0:return"done";default:return"issue-status-wont-fix"}};
O8.prototype.getTooltip=function(a,b){return a.grantedPermissions[b]==="inherited"?"The permission is granted to this component and inherited by all child components.":""};O8.prototype.updateRolesMap=function(a,b){this.rolesMapUpdated.emit({role:a,assignees:b})};O8.\u0275fac=function(a){return new (a||O8)};
O8.\u0275cmp=C({type:O8,selectors:[["roles-view-table"]],inputs:{rolesTableData:"rolesTableData",canEdit:"canEdit",accessLevel:"accessLevel"},outputs:{rolesMapUpdated:"rolesMapUpdated",formIsValid:"formIsValid"},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","matTooltipPosition","after",3,"name","matTooltip"],["size","large",3,"name"]],template:function(a,b){a&1&&(K(0,"table")(1,"thead")(2,"tr")(3,"th",0),S(4,"Role Assignments"),L(),K(5,"th",0)(6,"h6"),S(7,"Admin Components"),L()(),K(8,"th",0)(9,"h6"),S(10,"Create Issues"),L()(),K(11,"th",0)(12,"h6"),S(13,"Admin Issues"),L()(),K(14,"th",0)(15,"h6"),S(16,"Edit Issues"),L()(),K(17,"th",0)(18,"h6"),S(19,"Comment on Issues"),L()(),K(20,"th",0)(21,"h6"),S(22,"View Issues"),
L()(),K(23,"th",0)(24,"h6"),S(25,"View Restricted"),L()(),K(26,"th",0)(27,"h6"),S(28,"View Restricted+"),L()()()(),K(29,"tbody"),Pf(30,Wic,25,31,"tr",null,Of),L()());a&2&&(B(30),Qf(b.rolesTableData))},dependencies:[ZA,XA,VA,hK,hS,iz,MA,sW],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;--mat-icon-button-icon-size: 16px}[_nghost-%COMP%]     b-icon{width:2em;margin:30px 0px}/*# sourceMappingURL=roles_view_table.css.map */"]});var P8=function(){this.rolesMap=Iic;this.isSaving=!1;this.saveRolesMap=new KO;this.rolesUnderEdit=Iic;this.formIsValid=!0;this.standardRolesTableData=[];this.advancedRolesTableData=[]},z7d=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:"inherited",createIssues:"inherited",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:"inherited",createIssues:"inherited",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},A7d=function(a){return a.advancedRolesTableData.some(function(b){return b.users.length>0})},B7d=function(a){a.rolesUnderEdit=Object.assign({},a.rolesMap)};h=P8.prototype;h.ngOnInit=function(){B7d(this);z7d(this)};
h.ngOnChanges=function(a){a.rolesMap&&B7d(this);z7d(this)};h.updateRolesMap=function(a){var b={};this.rolesUnderEdit=Object.assign({},this.rolesUnderEdit,(b[a.role]=a.assignees,b))};h.getComponentAccessLevel=function(){if(this.component.accessLimit)return this.component.accessLimit.accessLevel};h.hasUnsavedAccessLimitChanges=function(){return this.rolesEditor.hasUnsavedAccessLimitChanges()};h.canEdit=function(){return!this.isSaving&&this.rolesEditor.isAdmin};
h.canSave=function(){return this.canEdit()&&(!Gm(this.rolesMap,this.rolesUnderEdit)||this.rolesEditor.implicitAccess.isUpdated()||this.hasUnsavedAccessLimitChanges())&&this.formIsValid};P8.\u0275fac=function(a){return new (a||P8)};
P8.\u0275cmp=C({type:P8,selectors:[["roles-view"]],inputs:{rolesMap:"rolesMap",isSaving:"isSaving",component:"component",rolesEditor:"rolesEditor"},outputs:{saveRolesMap:"saveRolesMap"},features:[Gx],decls:12,vars:9,consts:[[3,"rolesMapUpdated","formIsValid","rolesTableData","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&&(M(0,"access-limit-settings"),K(1,"roles-view-table",0),N("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",function(c){return b.formIsValid=c}),L(),K(2,"mat-expansion-panel",1)(3,"mat-expansion-panel-header")(4,"mat-panel-title"),S(5," Advanced Roles "),L()(),K(6,"roles-view-table",0),N("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",function(c){return b.formIsValid=
c}),L()(),M(7,"expanded-access-settings"),K(8,"button",2),N("click",function(){b.canSave()&&b.saveRolesMap.emit(b.rolesUnderEdit)}),S(9,"Update"),L(),K(10,"button",3),N("click",function(){B7d(b);z7d(b)}),S(11," Revert Changes\n"),L());a&2&&(B(),I("rolesTableData",b.standardRolesTableData)("canEdit",b.canEdit())("accessLevel",b.getComponentAccessLevel()),B(),I("expanded",A7d(b)),B(4),I("rolesTableData",b.advancedRolesTableData)("canEdit",b.canEdit())("accessLevel",b.getComponentAccessLevel()),B(2),
I("disabled",!b.canSave()),B(2),I("disabled",!!Gm(b.rolesMap,b.rolesUnderEdit)))},dependencies:[M8,N8,ZA,XA,TA,fL,gL,hL,O8],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 Q8=function(){LO.apply(this,arguments);this.rolesEditor=q(L8);this.route=q(Wj);this.tabIndex=0;this.onTabChange=new KO;this.selectedTabIndex=this.tabIndex};Z(Q8,LO);Q8.\u0275dir=LO.\u0275dir;Q8.prototype.ngOnChanges=function(a){var b;a=(b=a.tabIndex)==null?void 0:b.currentValue;a!=null&&(this.selectedTabIndex=a)};
Q8.prototype.ngOnInit=function(){var a=this;this.selectedTabIndex=this.tabIndex;this.route.paramMap.pipe(A(function(b){return b.get("componentId")}),te(ln),zf(function(b){return a.rolesEditor.initialize(b)}),Af(this.destroyed$)).subscribe(function(){u7d(a.rolesEditor)})};
Q8.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)};Q8.prototype.isSaving=function(){return this.rolesEditor.isSaving};Q8.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(Q8)))(b||Q8)}}();
Q8.\u0275cmp=C({type:Q8,selectors:[["role-based-permissions"]],viewQuery:function(a,b){a&1&&kg(YK,5,Gd);if(a&2){var c;og(c=pg())&&(b.tabs=c)}},inputs:{tabIndex:"tabIndex"},outputs:{onTabChange:"onTabChange"},features:[Ig([L8,H8]),Ff,Gx],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&&(F(0,Xic,2,0,"div",0),F(1,Zic,7,9,"div"));a&2&&(G((b.rolesEditor.component==null?0:b.rolesEditor.component.componentId)?-1:0),B(),G((b.rolesEditor.component==null?0:b.rolesEditor.component.componentId)?1:-1))},dependencies:[cL,bL,YK,ZK,I8,P8,VS],styles:["/*# sourceMappingURL=role_based_permissions.css.map */"]});var C7d=["archiveDialog"],D7d=["archiveButton"],E7d=["metadataForm"],R8=function(){LO.apply(this,arguments);var a=this;this.cdr=q(MO,{self:!0});this.routeParams=q(hR);this.bLocation=q(US);this.templatesApi=q(CN);this.paths=q(wV);this.appHistory=q(U1);this.butterBar=q(JM);this.pageTitle=q(w1);this.activeSession=q(Zu);this.documentationLinks=q(OQ);this.matDialogService=q(gB);this.analytics=q(PO);this.checkBeforeExit=q(HX);this.userAccess=q(lO);this.componentActions=q(JV);this.errorHandler=q(ZM);this.componentUpdates=
q(pVd);this.componentUpdatesApi=q(z8);this.confirmationDialogService=q(PQ);this.appEvents=q(DN);this.teamsService=q(BP);this.sloApi=q(vP);this.sloService=q(wP);this.trackerHelpers=q(WQ);this.tabsService=q(E8);this.customFieldHelper=q(kR);this.componentId$=new vf(1);this.componentListRoute=s7a;this.showSloInheritancePath=!1;this.component$=new Xj(null);this.componentTrackerId$=this.component$.pipe(A(function(b){return b==null?void 0:b.trackerId}));this.showTrackerRedirect$=this.componentTrackerId$.pipe(A(function(b){var c,
d=(c=a.activeSession.getTracker())==null?void 0:c.trackerId;return!!d&&d!==b}));this.parentComponent$=new Xj(null);this.componentTeam$=new Xj(null);this.team$=this.componentTeam$.pipe(zf(function(b){return(b=b==null?void 0:b.id)&&b!=="0"?CP(a.teamsService,b):be(null)}));this.parentComponentTeam$=this.parentComponent$.pipe(zf(function(b){var c;return(b=b==null?void 0:(c=b.team)==null?void 0:c.id)&&b!=="0"?CP(a.teamsService,b):be(null)}));this.inheritedSloMetadata$=he([this.component$,this.parentComponent$,
this.team$]).pipe(A(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(of(),zf(function(b){var c=void 0;b&&(b.containerType==="TEAM"?c=b.content.sloId:b.containerType===
"COMPONENT"&&(c=b.content.id));return c?a.sloService.get(c).then(function(d){return{id:c,slo:d}}):be({id:"0"})}));this.sloPolicySource$=this.inheritedSloMetadata$.pipe(of(),zf(function(b){if(!b)return be({name:"None",type:"none"});b=wkc(b);var c=b.sourceTeamId,d=b.sourceComponentId;return c&&c!=="0"?a.teamsService.getTeam(c).pipe(A(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"}}})):d?a.componentActions.get(d).then(function(e){var f;
return{name:(f=e.name)!=null?f:d,type:"component",link:{path:"/components/"+d+"/edit"}}}):be(null)}));this.policySourcePath$=he([this.component$,this.team$,this.parentComponentTeam$,this.inheritedSloMetadata$]).pipe(A(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=wkc(c);c=f.sourceComponentId;d=ykc(d,f.sourceTeamId,b.team,e);return c===null?{componentPath:null,teamPath:d}:{componentPath:xkc(b,c),
teamPath:d}}));this.component=null;this.orderedCustomFields=[];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=this.activeSession.getFlag("enableSloLockingUi");this.enableInactiveFeatures=this.activeSession.getFlag("enableInactiveFeatures")&&this.activeSession.isInternalSession();this.sloLocked$=this.componentId$.pipe(te(Boolean),zf(function(b){return a.sloApi.executor.get({url:"action/components/"+b+"/slo_edit_policy",responseConstructor:rpd}).pipe(A(b7a))}));this.getSloManagementLink=t7a};Z(R8,LO);R8.\u0275dir=LO.\u0275dir;
R8.prototype.ngOnInit=function(){var a=this;this.componentId=String(this.routeParams.componentId);this.componentId$.next(String(this.componentId));this.sessionIsExternal=this.activeSession.isExternalSession();this.sessionIsInternal=this.activeSession.isInternalSession();this.subscriptions.add(IX(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));this.loadUserAccess(this.componentId);F7d(this);this.componentHistoryUiEnabled=this.activeSession.isInternalSession();G7d(this);this.subscriptions.add(this.appEvents.customFieldsModified.subscribe(function(b){a.orderedCustomFields=
zkc(b)}));this.hasInitialized=!0;this.tabsService.componentReady$.next()};var G7d=function(a){a=[H7d(a,a.componentId),a.loadComponent(a.componentId),a.loadTemplates(a.componentId)];return Promise.all(a).then(function(){})};h=R8.prototype;h.isAdmin=function(){return this.isAdminInternal};h.isSaving=function(){return this.isUpdating||this.isArchiving};h.isArchived=function(){return this.component?this.component.archived:!1};h.isPublic=function(){return st(this.component)};h.isExternal=function(){return rt(this.component)};
h.isParentPublic=function(){return!(!this.parentComponent||!st(this.parentComponent))};h.isParentPartner=function(){return!(!this.parentComponent||!Zpb(this.parentComponent))};var Ojc=function(a){if(!a.component||!a.component.slo)return!1;var b=!!a.component.team&&a.component.team.id!=="0";return a.component.parentComponentId?!a.component.slo.inherit:b};R8.prototype.hasUnsavedMetadataChanges=function(){return!(Gm(this.component,this.originalComponent)&&Gm(this.parentComponent,this.originalParentComponent))};
R8.prototype.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()};
var I7d=function(a){var b=Io();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:Dh("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},J7d=function(a){var b=Io();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:Fh([Dh('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.'),Gh("br",{}),Gh("br",{}),Dh('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.'),
Gh("br",{}),Gh("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};R8.prototype.saveMetadata=function(){var a=this;return K7d(this)?J7d(this).then(function(b){return b?I7d(a):Promise.resolve(!1)}).then(function(b){b&&a.doSaveMetadata().then(function(){return G7d(a)})}):Promise.resolve()};
R8.prototype.doSaveMetadata=function(){var a=this;this.isUpdating=!0;fs(this.butterBar,"Saving changes ...",0);return L7d(this).then(function(){a.parentComponent&&(a.component.parentComponentId=a.parentComponent.componentId)}).then(function(){return M7d(a)}).then(function(){return N7d(a)}).then(function(){return O7d(a)}).then(function(){fs(a.butterBar,"Save complete.")}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.componentUpdatesApi.invalidateCache(a.componentId);
a.isUpdating=!1})};
var L7d=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)},M7d=function(a){return a.component.slo&&!Gm(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)},N7d=function(a){return a.component.team&&!Gm(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)},O7d=function(a){return P7d(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)},P7d=function(a){var b=Hm(a.component);b.team=a.originalComponent.team;b.slo=a.originalComponent.slo;b.parentComponentId=a.originalComponent.parentComponentId;return!Gm(a.originalComponent,b)},K7d=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};R8.prototype.getComponentAccessLevel=function(){if(this.component&&this.component.accessLimit)return this.component.accessLimit.accessLevel};var H7d=function(a,b){return a.componentActions.getChildren(b).then(function(c){a.childComponents=c}).catch(function(c){a.errorHandler.errorHandler(null,c)})};
R8.prototype.revertMetadataChanges=function(){this.updateComponentAndOriginalComponent(this.originalComponent);this.error="";this.parentComponent=Hm(this.originalParentComponent);this.parentComponent$.next(this.parentComponent);this.commentEditsEnabled=this.component.commentEditState=="ENABLED"};var ckc=function(a){a.componentActions.getUncached(a.componentId).then(function(b){b=lR(a.customFieldHelper,b);a.orderedCustomFields=zkc(b)})};
R8.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&&b.loadParentComponent(c.parentComponentId);var d=lR(b.customFieldHelper,c);b.orderedCustomFields=zkc(d);b.pageTitle.setTitle("Component: "+c.name);b.archiveAction=c.archived?"Unarchive":"Archive";b.commentEditsEnabled=c.commentEditState=="ENABLED";b.component.parentComponentId||(b.isParentComponentRequired=
!1)}).catch(function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1;b.hasInitialized&&b.cdr.detectChanges()})};R8.prototype.loadUserAccess=function(a){var b=this,c=wq("COMPONENT",a);mO(this.userAccess,"admin",c).then(function(d){b.isAdminInternal=d;return b.isAdminInternal?!0:mO(b.userAccess,"writer",c)}).then(function(d){b.isEditorInternal=d}).catch(function(d){b.errorHandler.errorHandler(null,d)})};
var F7d=function(a){mO(a.userAccess,"writer",wq("COMPONENT_SLO",a.componentId)).then(function(b){a.isComponentSloEditor=b})},ljc=function(a){var b,c=Lu(a.trackerHelpers,(b=a.parentComponent)==null?void 0:b.componentPathInfo);return Is(a.activeSession)&&(!c||!c.componentPathId||c.componentPathId.length===0)},Uu=function(a){return a.isSaving()||!a.isEditorInternal};h=R8.prototype;h.isAccessEditDisabled=function(){return this.isSaving()||!this.isAdmin()};
h.loadParentComponent=function(a){var b=this;this.componentActions.get(a).then(function(c){b.parentComponent=c;b.parentComponent$.next(b.parentComponent);b.originalParentComponent=Hm(c);return c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};h.getRecentIssuesLink=function(){var a=this.isArchived();return Nr(this.componentId,{includeArchived:a})};h.componentPermissions=function(a){return{path:"/components/"+a,fragment:this.tabsService.Tab.ACCESS}};
h.createIssue=function(){this.trackClick("createIssue");var a={};this.bLocation.setUrl(this.paths.createIssue((a.component=String(this.component.componentId),a)))};h.createChild=function(){this.bLocation.setUrl(zs.createComponent.makeHref(this.component.componentId))};h.trackClick=function(a){this.analytics.trackEvent("editComponent","click",a)};
var $ic=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,fs(a.butterBar,"Looking up subcomponents...",0),a.componentActions.getDescendants(a.component.componentId).then(function(b){a.butterBar.dismiss();a.descendants=b;eB(a.matDialogService.open(a.confirmArchiveDialog,{restoreFocus:!1})).pipe(Af(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.")};
R8.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 UVa(a);case "UNSPECIFIED_RETENTION":return"Retention period unspecified";default:sb(b,"unexpected value "+b+"!")}};
R8.prototype.archive=function(){var a=this;this.isArchiving=!0;fs(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);fs(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;fs(a.butterBar,"Could not "+a.archiveAction.toLowerCase()+" component: "+(hq(b)?iq(b):b));a.isArchiving=!1})};
R8.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(),g={};g=b.paths.createIssue((g.component=a||void 0,g.template=d.templateId?String(d.templateId):void 0,g));return{name:e,description:d.description||"",url:f+g}})}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
R8.prototype.setCommentEditState=function(a){this.commentEditsEnabled=a;this.component.commentEditState=this.commentEditsEnabled?"ENABLED":"DISABLED"};
var Q7d=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=gOb(d.addMask.paths),g=gOb(d.removeMask.paths),k={author:d.author||null,timestamp:d.timestamp||null,diffs:[]},m=d.add;d=d.remove;for(var r=l(new Set([].concat(n(f),n(g)))),w=r.next();!w.done;w=r.next()){var x=w.value;if(w=nVd.get(x))if(x==="name"){var D=su(g,x,d.name);x=su(f,x,m.name);k.diffs.push(tu(w,D,x))}else if(x==="description")D=
su(g,x,d.description),x=su(f,x,m.description),k.diffs.push(tu(w,D,x));else if(x==="parentComponentId")D=su(g,x,String(d.parentComponentId)),x=su(f,x,String(m.parentComponentId)),k.diffs.push(tu(w,D,x));else if(x==="isArchived")D=su(g,x,String(d.archived)),x=su(f,x,String(m.archived)),k.diffs.push(tu(w,D,x));else if(x==="commentEditState"){var H=oVd.get(d.commentEditState);D=oVd.get(m.commentEditState);H&&D&&(H=su(g,x,H),x=su(f,x,D),k.diffs.push(tu(w,H,x)))}else x==="defaultTemplateId"?(D=su(g,x,String(d.defaultTemplateId)),
x=su(f,x,String(m.defaultTemplateId)),k.diffs.push(tu(w,D,x))):x==="slo"?e.sessionIsInternal&&(D=su(g,x,mOb(d.slo)),x=su(f,x,mOb(m.slo)),k.diffs.push(tu(w,D,x))):x==="team"?e.sessionIsInternal&&(D=su(g,x,nOb(d.team)),x=su(f,x,nOb(m.team)),k.diffs.push(tu(w,D,x))):x==="retentionSettings"?(D=su(g,x,kOb(d.retentionSettings)),x=su(f,x,kOb(m.retentionSettings)),k.diffs.push(tu(w,D,x))):e.$log.error("Unsupported diff field "+x)}return k}).filter(function(d){return d.diffs.length})}).catch(function(c){a.errorHandler.errorHandler(null,
c)}):Promise.reject(Error())};R8.prototype.showUpdateHistoryModal=function(){var a=this;Q7d(this,this.componentId).then(function(){a.matDialogService.open(x6,{width:"600px",data:{updateDiffs:a.updateDiffs}});a.analytics.trackEvent("updateHistoryModal","open");a.analytics.trackEvent("component","viewHistory")})};R8.prototype.onSloChange=function(a){a?this.component.slo.id=a.sloId:this.component.slo.id=void 0;a&&R7d(this)};
var Kjc=function(a){var b=!!a.parentComponent,c=a.component.team.id!=="0";return a.isComponentSloEditor&&(c||b)},Qjc=function(a){var b=!a.component.team||a.component.team.id==="0",c=!a.parentComponent;return a.isComponentSloEditor&&(!a.component.slo.inherit||c&&b)},ujc=function(a){var b,c,d,e;y(function(f){b=!a.component.parentComponentId;c=a.component.team.id!=="0";return(a.component.parentComponentId?!a.component.team.inherit&&a.component.team.id!=="0":a.component.team.id!=="0")||b&&c?z(f,ee(a.team$.pipe(A(function(g){a.component.slo.id=
g.slo.sloId;R7d(a)}))),0):(d=S7d(a),e=d.id,a.component.slo.id=e,R7d(a),f.jumpTo(0))})},qjc=function(a){var b,c;return((b=a.component)==null?void 0:(c=b.autoInactivationSettings)==null?void 0:c.state)==="ENABLED"},rjc=function(a){var b,c;return Uu(a)||a.parentComponent!=null&&!!((b=a.component)==null?0:(c=b.autoInactivationSettings)==null?0:c.inherit)},Pjc=function(a){var b=a.parentComponent||a.isParentComponentRequired;return a.component.team.id!=="0"||b?!0:!1},S7d=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}},$jc=function(a,b){fs(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;fs(a.butterBar,((f=a.component.effortSpec)==null?void 0:f.name)+" saved")}else fs(a.butterBar,"Estimated Effort saved")}).catch(function(c){a.errorHandler.errorHandler(null,c)}))};R8.prototype.updateComponentAndOriginalComponent=function(a){this.component=Hm(a);this.component$.next(this.component);this.originalComponent=Hm(a);var b;this.componentTeam$.next((b=this.component.team)!=null?b:null);R7d(this)};R8.prototype.back=function(){V1(this.appHistory)};
var R7d=function(a){var b;((b=a.component)==null?0:b.slo)?a.isEnableSloChecked=a.component.slo.id!==void 0:a.isEnableSloChecked=!1};R8.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(R8)))(b||R8)}}();
R8.\u0275cmp=C({type:R8,selectors:[["manage-component-page"]],viewQuery:function(a,b){a&1&&(kg(C7d,5),kg(D7d,5),kg(E7d,5));if(a&2){var c;og(c=pg())&&(b.confirmArchiveDialog=c.first);og(c=pg())&&(b.archiveButton=c.first);og(c=pg())&&(b.metadataForm=c.first)}},features:[Ig([MO]),Ff],decls:3,vars:3,consts:[["archiveDialog",""],["archiveButton",""],["basic",""],["customFields",""],["fieldOrdering",""],["fieldVisibility",""],["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","Field Visibility",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"],["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","Inactive issues",1,"edit-field",3,"bv2-edit-resource-readonly"],["role","region","tabindex","0","aria-label","Inactive issues",1,"edit-field"],["target","_blank","aria-label","Learn more about inactive issues","href","http://go/buganizer/concepts/inactive-issues",1,"keep-underline","keep-focus-ring"],[1,"edit-field"],[3,"change","checked","disabled"],[1,"italic"],["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,"updateComponent","effortSpec","parentEffortSpec","disabled"],["aria-label","Custom Fields",
1,"heading-m","padded-x","margin-top"],[3,"editMode","isSaving","component","parentComponent"],[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,"isAdmin","componentPathInfo"],[3,"componentId","supportCustomFields"],[1,"component-field"],[3,"href"],[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&&(F(0,ukc,11,3),U(1,"async"),Mf(2,vkc,2,1,"div",9));a&2&&G(W(1,1,b.showTrackerRedirect$)?2:0)},dependencies:[FV,YT,Vz,HV,l2,b6,D2d,i6,g3,c4,C8,m6,mC,XB,xi,PB,QB,hC,WB,UB,ZA,XA,TA,VA,PK,OK,wI,aU,$T,lS,cL,bL,YK,ZK,hK,hS,mB,hB,lB,kB,iz,MA,oy,Y4,Q8,EN,D8,W4,VS,VV,NV,O7,py,ry],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 T7d=["deleteTriageDialog"],zlc=function(a){return{value:a}},Ykc=function(a){return[a]},Zkc=function(){return[]},U7d={BASIC:"basic",SLO:"slo",MAPPINGS:"componentMapping",TRIAGE:"triage",ACCESS:"accessControl"},S8=function(){LO.call(this);var a=this;this.activeSession=q(Zu);this.accessPolicyApi=q(tN);this.appHistory=q(U1);this.butterBar=q(JM);this.checkBeforeExit=q(HX);this.componentActions=q(JV);this.errorHandler=q(ZM);this.location=q(US);this.matDialogService=q(gB);this.pageTitle=q(w1);this.routeParams=
q(hR);this.teamsService=q(BP);this.userAccess=q(lO);this.starredTeamsService=q(HQ);this.sloApi=q(vP);this.sloService=q(wP);this.triageViewConfigDialogService=q(e0);this.destroyRef=q(Be);this.tableColumns=["starred","name","actions"];this.originalSloLock=!1;this.canEditSloLock=!0;this.sloJustification$=new Xj("");this.error="";this.justificationRequiredText="Justification is required to override the org SLO.";this.selectedTabIndex=0;this.teamId=this.routeParams.teamId;this.team$=new vf(1);this.teamSlo$=
this.team$.pipe(A(function(b){return b.slo}));this.isEscalationOwnerValid=!1;this.escalationOwnerInvalidErrorMessage="";this.escalationOwnerEmail$=new Xj("");this.escalationOwner$=new Xj("");this.escalationOwnerUserValidators={escalationOwnerNotUser:function(b){if(b){b=l(b);for(var c=b.next();!c.done;c=b.next())if(!c.value.startsWith("USER:"))return!1}return!0}};this.escalationOwnerGooglerValidators={escalationOwnerNotGoogler:function(b){if(b){b=l(b);for(var c=b.next();!c.done;c=b.next())if(!c.value.startsWith("UNRESTRICTED_GOOGLER:"))return!1}return!0}};
this.starredTriageViews$=this.starredTeamsService.starredTriageViews$;this.teamAdmins$=Ud(this.accessPolicyApi.get("TEAM",this.teamId)).pipe(A(function(b){return b.admins.filter(oTa).map(Ns)}));this.teamLeads$=this.team$.pipe(A(function(b){return b.members.filter(function(c){return c.isLead}).map(function(c){var d,e;return"USER:"+((e=(d=c.user)==null?void 0:d.emailAddress)!=null?e:"")})}));this.adminsAndLeads$=he([this.teamAdmins$,this.teamLeads$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=
c.next().value;var d=new Set(b);c=c.filter(function(e){return!d.has(e)});return[].concat(n(b),n(c))}));this.originalSloDelegates$=new Xj([]);this.sloDelegates$=le(function(){return a.accessPolicyApi.get("TEAM_SLO",a.teamId)}).pipe(A(function(b){return b.admins.map(Ns)}));this.sloDelegates=[];this.associatedComponents$=Ud(this.componentActions.search("overrideteamid:"+this.teamId));this.childTeams$=this.teamsService.getChildTeams([this.teamId]).pipe(A(function(b){return b.values().next().value}));
this.teamPath$=this.team$.pipe(A(function(b){var c=b.pathNames;return b.pathIds.map(function(d,e){return{id:d,name:c[e]}})}));this.isRootTeam$=this.teamPath$.pipe(A(function(b){return b.length<=1?!0:!1}));this.parentTeam$=he([this.isRootTeam$,this.teamPath$]).pipe(zf(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b?be(null):a.teamsService.getTeam(c[c.length-2].id)}));this.parentTeam=null;this.inheritedSlo$=this.parentTeam$.pipe(zf(function(b){var c=b==null?void 0:b.slo.sloId;return c&&
c!=="0"?a.sloService.get(c).then(function(d){return{id:c,link:t7a(c),slo:d}}):be({id:"0"})}));this.sloPolicySource$=he([this.parentTeam$,this.teamPath$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d=b==null?void 0:b.slo.sourceTeamId;b=c.find(function(e){return e.id===d});return d&&b?{name:b.name,link:{path:"/teams/"+d+"/edit",fragment:"slo"}}:null}));this.sloLock$=this.sloApi.executor.get({url:"action/teams/"+this.teamId+"/slo_edit_policy",responseConstructor:spd}).pipe(A(a7a));
this.Tab=U7d;this.enableSloLockingUi=this.activeSession.getFlag("enableSloLockingUi");this.enableTeamScope=this.activeSession.getFlag("enableTeamScope")&&this.activeSession.isInternalSession();this.enableTeamAdmin=this.activeSession.getFlag("enableTeamAdmin")&&this.activeSession.isInternalSession();this.isSloInheritEnabled$=new Xj(!0);this.isOwnerInheritEnabled$=new Xj(!0);this.sloId$=new Xj("0");this.enableSloCheckedInternal=!1;this.sloLocked$=new Xj(!1);this.hasSloReadAccess$=this.sloId$.pipe(zf(function(b){return mO(a.userAccess,
"reader","slos/"+b)}),yf(!1));this.sloPickerLink$=he([this.sloId$,this.hasSloReadAccess$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b&&Number(b)>0&&c?t7a(b):null}));this.hasUnsavedChanges$=he([this.team$,this.sloId$,this.isSloInheritEnabled$,this.isOwnerInheritEnabled$,this.sloLocked$,this.sloJustification$,this.escalationOwnerEmail$]).pipe(A(function(b){var c=l(b);var d=c.next().value;b=c.next().value;var e=c.next().value;var f=c.next().value;var g=c.next().value;var k=
c.next().value;c=c.next().value;var m=d.slo,r,w;d=(r=d.extra)==null?void 0:(w=r.escalationOwnerOverride)==null?void 0:w.emailAddress;var x;return m.inherit!==e||m.sloId!==b||g!==a.originalSloLock||m.comment!==k||d!==((x=f?void 0:{emailAddress:c})==null?void 0:x.emailAddress)}));this.hasUnsavedChanges=!1;this.teamExperiments={id:this.teamId,triage:[{id:0}],playbooks:[]};this.hasTeamEditAccess=this.hasSloEditAccess=!1;this.starInProgress={};this.team$.pipe(oj(this.destroyRef)).subscribe(function(b){a.pageTitle.setTitle("Team: "+
b.name)});mO(this.userAccess,"writer","teams/"+this.teamId+"/slo").then(function(b){a.hasSloEditAccess=b});mO(this.userAccess,"writer","teams/"+this.teamId).then(function(b){a.hasTeamEditAccess=b});this.hasUnsavedChanges$.pipe(oj(this.destroyRef)).subscribe(function(b){a.hasUnsavedChanges=b});this.subscriptions.add(IX(this.checkBeforeExit,function(){return a.hasUnsavedChanges},!1))};Z(S8,LO);S8.\u0275dir=LO.\u0275dir;
S8.prototype.ngOnInit=function(){var a=this,b,c,d,e,f,g;return y(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.selectedTabIndex=4),Vd(k,2),z(k,ee(a.teamsService.get(a.teamId)),4);case 4:c=k.yieldResult;bk(k,3);break;case 2:return Zd(k),a.butterBar.showWarning("Unable to fetch team ID '"+a.teamId+
"'"),k.return();case 3:return a.team$.next(c),blc(a),d=a.originalSloDelegates$,e=d.next,z(k,ee(a.sloDelegates$),5);case 5:return e.call(d,k.yieldResult),a.sloDelegates=a.originalSloDelegates$.getValue(),z(k,ee(a.parentTeam$),6);case 6:a.parentTeam=k.yieldResult||null;if(!a.enableTeamScope){k.jumpTo(0);break}return z(k,ee(Kpd(a.teamsService,a.teamId)).catch(function(){}),8);case 8:f=k.yieldResult,a.teamExperiments=(g=f)!=null?g:{id:a.teamId,triage:[{id:0}],playbooks:[]},$d(k)}})};
S8.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)};S8.prototype.onSloChange=function(a){a&&(this.sloId=a.sloId)};
var alc=function(a,b){var c,d,e,f,g,k,m;return y(function(r){switch(r.nextAddress){case 1:if(!a.validate())return r.return();fs(a.butterBar,"Saving changes...",0);Vd(r,2);if(((c=b.extra)==null?void 0:(d=c.escalationOwner)==null?void 0:d.emailAddress)===a.escalationOwnerEmail){r.jumpTo(4);break}var w,x;var D=a.teamsService.updateTeam(Object.assign({},b,{extra:{escalationOwner:{emailAddress:a.escalationOwnerEmail},defaultEscalationOwner:{emailAddress:(w=b.extra)==null?void 0:(x=w.defaultEscalationOwner)==
null?void 0:x.emailAddress},escalationOwnerOverride:a.isOwnerInheritEnabled?void 0:{emailAddress:a.escalationOwnerEmail}}}));return z(r,ee(D),5);case 5:e=r.yieldResult,a.team$.next(e);case 4:if(a.sloLocked===a.originalSloLock){r.jumpTo(6);break}D=a.sloApi;w=a.teamId;x=a.sloLocked;var H=new ppd;x=cn(H,2,x?1:2).setTeamId(Number(w));D=D.executor.post({url:"action/teams/"+w+"/slo_edit_policy",responseConstructor:vpd,body:x}).pipe(A(a7a));return z(r,ee(D),7);case 7:f=r.yieldResult,a.originalSloLock=f;
case 6:g=b.slo;if(g.inherit===a.isSloInheritEnabled&&g.sloId===a.sloId&&a.originalSloLock===a.sloLocked&&g.comment===a.sloJustification){r.jumpTo(8);break}x={sloId:a.sloId,inherit:a.isSloInheritEnabled,comment:a.isSloInheritEnabled?"":a.sloJustification$.getValue(),sourceTeamId:"0"};D=a.teamsService;w=a.teamId;x=(new Ipd).setIt(H0a(x));D=D.executor.post({url:"/action/teams/"+w+"/update_slo",body:x,responseConstructor:yP}).pipe(A(i7a));return z(r,ee(D),9);case 9:k=r.yieldResult,a.team$.next(k);case 8:fs(a.butterBar,
"Save complete.");bk(r,0);break;case 2:m=Zd(r),aN(a.errorHandler,m),$d(r)}})},V7d=function(a){var b,c;y(function(d){if(d.nextAddress==1)return fs(a.butterBar,"Saving changes...",0),z(d,ee(Lpd(a.teamsService,a.teamExperiments)),2);b=d.yieldResult;fs(a.butterBar,"Save complete.");a.teamExperiments=(c=b)!=null?c:{id:a.teamId,triage:[{id:0}],playbooks:[]};$d(d)})},wlc=function(a){var b,c,d;return y(function(e){if(e.nextAddress==1){try{b=Us(Ss()),b.admins=Rs(a.sloDelegates)}catch(f){return c="An unknown problem occurred",
f instanceof Error&&(c=f.message),a.butterBar.showWarning(c),e.return()}fs(a.butterBar,"Saving changes...",0);Vd(e,2);return z(e,a.accessPolicyApi.update("TEAM_SLO",a.teamId,b).then(function(){fs(a.butterBar,"Save complete.");a.originalSloDelegates$.next(a.sloDelegates)}),4)}if(e.nextAddress!=2)return bk(e,0);d=Zd(e);a.butterBar.showWarning(iq(d));return e.return()})},xlc=function(a){return y(function(b){a.sloDelegates=a.originalSloDelegates$.getValue();$d(b)})};
S8.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};S8.prototype.isTriageStarred=function(a,b,c){return c.some(function(d){return d.triageId===a.toString()&&d.teamId===b})};
var Wkc=function(a){var b;y(function(c){if(c.nextAddress==1)return z(c,a.getDefaultEscalationOwner(),2);b=c.yieldResult;a.escalationOwner=b?"USER:"+b:"";$d(c)})},W7d=function(a){var b,c,d,e,f,g,k,m,r,w,x,D;y(function(H){if(H.nextAddress==1)return z(H,ee(a.team$),2);b=H.yieldResult;c=b.extra;f=(d=c)==null?void 0:(e=d.escalationOwner)==null?void 0:e.emailAddress;m=(g=c)==null?void 0:(k=g.escalationOwnerOverride)==null?void 0:k.emailAddress;w=(r=m)!=null?r:f;a.escalationOwner=w?"USER:"+w:"";a.isOwnerInheritEnabled=
((x=c)==null?void 0:x.escalationOwnerOverride)===void 0;a.isOwnerInheritEnabled||m===""||f===m||(a.escalationOwnerInvalidErrorMessage="Selected owner is invalid, falling back to default owner: "+((D=f)!=null?D:""));$d(H)})};
S8.prototype.getDefaultEscalationOwner=function(){var a=this,b,c,d,e,f,g,k,m,r;return y(function(w){if(w.nextAddress==1)return z(w,ee(a.team$),2);if(w.nextAddress!=3)return b=w.yieldResult,(e=(c=b.extra)==null?void 0:(d=c.defaultEscalationOwner)==null?void 0:d.emailAddress)?w.return(e):z(w,ee(a.parentTeam$),3);f=w.yieldResult;return w.return((r=(g=f)==null?void 0:(k=g.extra)==null?void 0:(m=k.escalationOwner)==null?void 0:m.emailAddress)!=null?r:"")})};
var X7d=function(a){ee(a.teamSlo$).then(function(b){a.sloId=b.sloId;a.isSloInheritEnabled=b.inherit;a.sloJustification$.next(b.comment)})},Y7d=function(a){ee(a.sloLock$).then(function(b){a.originalSloLock=b;a.sloLocked=b})},blc=function(a){a.error="";W7d(a);X7d(a);a.enableSloLockingUi&&Y7d(a)};S8.prototype.back=function(){V1(this.appHistory)};S8.prototype.getTriageLink=function(a,b){return zs.viewTriage.makeHref(b,a)};
S8.prototype.toggleStar=function(a,b){var c=this,d;return y(function(e){if(e.nextAddress==1){d=a+":"+b;if(c.starInProgress[d])return e.jumpTo(0);c.starInProgress[d]=!0;return z(e,Qrd(c.starredTeamsService,a.toString(),b),3)}c.starInProgress[d]=!1;$d(e)})};
var plc=function(a,b,c){var d,e,f,g;return y(function(k){if(k.nextAddress==1){d=a.teamExperiments.triage.find(function(m){return m.id===b});if(!d)return k.return();e={teamExperiments:a.teamExperiments,teamName:c.name,triage:d};return z(k,ee(be(a.triageViewConfigDialogService.show(e))),2)}if(k.nextAddress!=3)return(f=k.yieldResult)?z(k,ee(Kpd(a.teamsService,a.teamId)),3):k.return();if(g=k.yieldResult)a.teamExperiments=g;$d(k)})},tlc=function(a,b){var c,d,e;return y(function(f){if(f.nextAddress==1)return c=
{teamExperiments:a.teamExperiments,teamName:b.name},z(f,ee(be(a.triageViewConfigDialogService.show(c))),2);if(f.nextAddress!=3)return(d=f.yieldResult)?z(f,ee(Kpd(a.teamsService,a.teamId)),3):f.return();if(e=f.yieldResult)a.teamExperiments=e;$d(f)})},Z7d=function(a,b){var c=a.teamExperiments.triage.findIndex(function(d){return d.id===b});c!==-1&&(a.teamExperiments.triage.splice(c,1),V7d(a))},nlc=function(a,b){eB(a.matDialogService.open(a.deleteTriageDialog,{data:b})).pipe(oj(a.destroyRef)).subscribe(function(c){c&&
Z7d(a,b.id)})};
da.Object.defineProperties(S8.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()}}});S8.\u0275fac=function(a){return new (a||S8)};
S8.\u0275cmp=C({type:S8,selectors:[["manage-team-page"]],viewQuery:function(a,b){a&1&&(kg(T7d,5),kg(YK,5,Gd));if(a&2){var c;og(c=pg())&&(b.deleteTriageDialog=c.first);og(c=pg())&&(b.tabs=c)}},features:[Ff],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","matTooltip","Go back",1,"large",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"],["idForInputBox","Users who can manage SLO associations on teams and associated components","ariaLabel",
"SLO delegates",3,"usersChange","users","includeAliases","includeViewAliases"],[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"],[1,"owner-invalid-error-message"],["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",""],["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=t();K(0,"div",1)(1,"div",2)(2,"div",3)(3,"button",4);N("click",function(){u(c);return v(b.back())});M(4,"mat-icon",5);L()()()();K(5,"div",6);F(6,Alc,111,50);U(7,"async");L();E(8,Blc,7,3,"ng-template",null,0,Og)}if(a&2){var d;B(6);G((d=W(7,1,b.team$))?6:-1,d)}},dependencies:[Vz,c4,mC,xi,PB,hC,WB,ZA,XA,TA,VA,PK,OK,wI,aU,$T,lS,GW,FW,QS,DS,JS,FS,CS,LS,GS,IS,MS,OS,cL,bL,YK,ZK,
hK,mB,hB,lB,iz,MA,sW,EF,EN,W4,yV,N4,py],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%}.owner-invalid-error-message[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad);font-size:.8125rem;line-height:18px;margin:0 0 1em;padding:9px 0}/*# sourceMappingURL=manage_team.css.map */"]});var $7d=["content"],a8d=["task_input"],Ilc=function(a,b){return b.id},b8d=new RegExp(/b-qa\/(\d+)|b-qa.corp.google.com\/issues\/(\d+)/,"i"),c8d=new RegExp(/b\/(\d+)|b.corp.google.com\/issues\/(\d+)|buganizer.corp.google.com\/issues\/(\d+)|b-nightly\/(\d+)|b-nightly.corp.google.com\/issues\/(\d+)|buganizer-nightly.corp.google.com\/issues\/(\d+)/,"i"),d8d=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"),e8d=new RegExp(/docs.google.com\/(?:document|spreadsheets|presentation)\/d\/([^\/]+)|drive.google.com\/file\/d\/([^\/]+)/,"i"),f8d=new RegExp(/([^\/]+)-review.staging-git.corp.google.com\/c\/(.+)\/\+\/(\d+)|([^\/]+)-review.git.corp.google.com\/c\/(.+)\/\+\/(\d+)/,"i"),g8d=new RegExp(/irm\/(\w+)|irm\.corp\.google\.com\/incidents\/(\w+)/,"i"),T8=function(){LO.call(this);var a=this;this.destroyRef=q(Be);this.window=q(ZP);this.activeSession=q(Zu);this.errorHandler=q(ZM);this.butterBar=q(JM);this.focusEscapeNotifierFactory=
q(ET);this.tasksService=q(jP);this.analytics=q(PO);this.isInternalSession=this.activeSession.isInternalSession();this.cancelClicked=new KO;this.saveClicked=new KO;this.focusEscaped=new KO;this.addTasksForm=new VB("",[vi,function(b){var c;(c=b.value==="")||(b=b.value,c=(Ms(a.activeSession)?c8d:b8d).test(b)||d8d.test(b)||e8d.test(b)||f8d.test(b)||g8d.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.gtaskListIds$=this.isInternalSession?Zod(this.tasksService).pipe(oj(this.destroyRef),hf(function(b){console.error("Error fetching task list:",b);return be([])})):be([]);this.saving=!1;this.validationErrorMessage="";this.fb=q(lC);this.gTaskForm=this.fb.group({title:["",vi],details:[""],date:[null],taskListId:["",vi]});this.urlPlaceholder="ex: "+this.window.location.origin+"/issues/123456";this.dynamicBuganizerUrlPattern=new RegExp(qs(this.window.location.hostname)+
"\\/(?:issues\\/)?(\\d+)","i")};Z(T8,LO);T8.\u0275dir=LO.\u0275dir;T8.prototype.ngAfterViewInit=function(){var a=this;this.focusEscapeNotifier=this.focusEscapeNotifierFactory.create(this.content.nativeElement);this.focusEscapeNotifier.escapeSubject$.pipe(Af(this.destroyed$)).subscribe(function(b){if(b===0){var c;(c=a.focusEscapeNotifier)==null||yGc(c)}else{var d;(d=a.focusEscapeNotifier)==null||qz(d)}});this.analytics.trackEvent("taskDialog","open","addTaskDialog")};
T8.prototype.saveChanges=function(){var a=this;this.saving=!0;this.analytics.trackEvent("manualSignal","add","dialog");var b=this.parseUrl(this.addTasksForm.value),c=h8d(this,this.addTasksForm.value)?3E3:0;Tod(this.tasksService,[b],!0).pipe(nf(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)})};
var h8d=function(a,b){return a.activeSession.isInternalSession()&&(Ms(a.activeSession)?c8d:b8d).test(b)||a.dynamicBuganizerUrlPattern.test(b)?!0:!1};
T8.prototype.parseUrl=function(a){if(this.activeSession.isInternalSession()){var b=Ms(this.activeSession)?c8d:b8d;if(b.test(a))return"b/"+a.match(b).slice(1).find(function(c){return!!c})}if(d8d.test(a))return"cl/"+a.match(d8d).slice(1).find(function(c){return!!c});if(e8d.test(a))return"drive/"+a.match(e8d).slice(1).find(function(c){return!!c});if(f8d.test(a))return a=a.match(f8d),a[1]?"gerrit/"+a[1]+"."+a[2]+"~"+a[3]:"gerrit/"+a[4]+"."+a[5]+"~"+a[6];if(g8d.test(a))return"irm/"+a.match(g8d).slice(1).find(function(c){return!!c});
if(h8d(this,a)&&(a=a.match(this.dynamicBuganizerUrlPattern),a!=null))return"b/"+a.slice(1).find(function(c){return!!c});throw Error("Gg");};
T8.prototype.saveGTask=function(a){var b=this;this.saving=!0;this.tasksService.saveGTask(a).pipe(oj(this.destroyRef),zf(function(c){return Tod(b.tasksService,[c],!0)}),pf(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)}})};
T8.prototype.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)};
da.Object.defineProperties(T8.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")}}});T8.\u0275fac=function(a){return new (a||T8)};
T8.\u0275cmp=C({type:T8,selectors:[["b-add-task-dialog"]],viewQuery:function(a,b){a&1&&(kg($7d,7),kg(a8d,5));if(a&2){var c;og(c=pg())&&(b.content=c.first);og(c=pg())&&(b.taskInput=c.first)}},outputs:{cancelClicked:"cancelClicked",saveClicked:"saveClicked",focusEscaped:"focusEscaped"},features:[Ff],decls:8,vars:1,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&&(K(0,"div",6,0),E(2,Elc,14,5,"ng-template",null,1,Og)(4,Jlc,
30,10,"ng-template",null,2,Og),F(6,Mlc,5,2,"mat-tab-group",7)(7,Olc,1,1,"ng-container"),L());a&2&&(B(6),G(b.isInternalSession?6:7))},dependencies:[mC,XB,xi,PB,QB,hC,iC,ZA,XA,TA,DB,qB,BB,sB,rB,uB,qT,pT,hI,GA,cL,bL,YK,ZK,vQ,tQ,uQ,iz,oC,oy,nC,bC,dC,cC,py],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 i8d=[{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"}],U8=function(){LO.call(this);var a=this;this.overlay=q(rA);this.element=q(Gd);this.openOnEnter=this.openOnClick=!0;this.taskAdded=new KO;this.onClose=new KO;this.opened=!1;this.destroyed$.subscribe(function(){var b;(b=a.overlayRef)==
null||b.dispose()})};Z(U8,LO);h=U8.prototype;h.onHostEnter=function(a){this.openOnEnter&&this.open();a.preventDefault();a.stopPropagation()};h.onClickHost=function(a){this.openOnClick&&this.open();a.preventDefault();a.stopPropagation()};h.open=function(){this.opened||(this.overlayRef=this.createOverlay(),this.attach(),this.opened=!0)};h.close=function(){if(this.opened){var a;(a=this.overlayRef)==null||a.dispose();this.overlayRef=void 0;this.opened=!1;this.onClose.emit()}};
h.onHostTab=function(a){this.opened&&this.addTaskContent&&this.addTaskContent.focusEscapeNotifier&&(qz(this.addTaskContent.focusEscapeNotifier),a.preventDefault())};h.onHostShiftTab=function(a){this.addTaskContent&&this.addTaskContent.focusEscapeNotifier&&(yGc(this.addTaskContent.focusEscapeNotifier),a.preventDefault())};
h.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};
h.attach=function(){var a=this,b=new lA(T8),c;this.addTaskContent=(c=this.overlayRef)==null?void 0:c.attach(b).instance;setTimeout(function(){a.connectValues();var d;(d=a.addTaskContent)==null||d.taskInput.nativeElement.focus();var e;(e=a.overlayRef)==null||e.updatePosition()})};h.getPositionStrategy=function(){return dA(eA(fA(jA(this.overlay.position(),this.element)),8),i8d)};h.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
h.connectValues=function(){var a=this;if(this.addTaskContent&&this.overlayRef){var b=se(this.overlayRef._detachments,this.destroyed$);this.addTaskContent.saveClicked.pipe(Af(b)).subscribe(function(){a.taskAdded.emit()});se(this.addTaskContent.saveClicked,this.addTaskContent.cancelClicked,this.overlayRef.backdropClick(),this.overlayRef.keydownEvents().pipe(te(function(c){return c.code==="Escape"}))).pipe(Af(b)).subscribe(function(){a.close()})}};U8.\u0275fac=function(a){return new (a||U8)};
U8.\u0275dir=af({type:U8,selectors:[["","bAddTaskDialogToggle",""]],hostAttrs:["aria-haspopup","true"],hostVars:1,hostBindings:function(a,b){a&1&&N("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&&Jf("aria-expanded",b.opened||void 0)},inputs:{openOnClick:"openOnClick",openOnEnter:"openOnEnter"},outputs:{taskAdded:"taskAdded",onClose:"onClose"},
exportAs:["bAddTaskDialogToggle"],features:[Ff]});var j8d=function(){};j8d.prototype.transform=function(a){var b=a.comeBackTimestamp;return"Upcoming out of office starting "+k8d.format(new Date(a.futureOooTimestamp.seconds*1E3))+" - back on "+k8d.format(new Date(b.seconds*1E3))};j8d.\u0275fac=function(a){return new (a||j8d)};j8d.\u0275pipe=cf({name:"futureAvailability",type:j8d,pure:!0});var k8d=new yl(HG.WEEKDAY_MONTH_DAY_MEDIUM);var V8=function(){this.activeSession=q(Zu);this.hovercardReady$=new vf(1);this.environmentType=this.activeSession.getEnvironmentType()};V8.prototype.ngOnInit=function(){this.hovercardReady$.next()};V8.prototype.getBaseUrl=function(){switch(this.environmentType){case "PROD":case "NIGHTLY":return"https://taskflow.corp.google.com";default:return"https://taskflow-autopush.corp.google.com"}};V8.\u0275fac=function(a){return new (a||V8)};
V8.\u0275cmp=C({type:V8,selectors:[["iteration-card"]],inputs:{iteration:"iteration"},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&&F(0,Plc,13,7,"div",0);a&2&&G(b.iteration?
0:-1)},dependencies:[DT,iz],encapsulation:2});var W8=function(){this.analytics=q(PO);this.domSafe=q($P);this.activeSession=q(Zu);this.environmentType=this.activeSession.getEnvironmentType()};W8.prototype.trackHoverEvent=function(){this.analytics.trackEvent("missionControl","hover","iteration-chip")};W8.prototype.getBaseUrl=function(){switch(this.environmentType){case "PROD":case "NIGHTLY":return"https://taskflow.corp.google.com";default:return"https://taskflow-autopush.corp.google.com"}};W8.\u0275fac=function(a){return new (a||W8)};
W8.\u0275cmp=C({type:W8,selectors:[["iteration-chip"]],inputs:{iteration:"iteration"},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&&F(0,Rlc,5,1);a&2&&G(b.iteration?0:-1)},dependencies:[AK,uK,vK,zK,wK,V8],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 Wu=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","Configurable 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"]]),Nmc=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"]]),l8d=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 Vu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Vu,X);h=Vu.prototype;h.getId=function(){return Hn(this,1)};h.getId_asLegacyNumberOrString=function(){return Vp(this,1)};h.getId_asString=function(){return Ln(this,1)};h.setId=function(a){return ap(this,1,a)};h.getFrequency=function(){return Ri(this,2)};h.setFrequency=function(a){return cn(this,2,a)};h.getOrdinal=function(){return Wm(this,3)};h.setOrdinal=function(a){return sn(this,3,a)};
h.getTimeZone=function(){return Y(this,Gr,4)};h.setTimeZone=function(a){return hj(this,Gr,4,a)};h.hasTimeZone=function(){return Si(this,Gr,4)};h.getTimeOfDay=function(){return Y(this,Hr,5)};h.setTimeOfDay=function(a){return hj(this,Hr,5,a)};h.getDisplayName=function(){return Fi(this,6)};h.setDisplayName=function(a){return $m(this,6,a)};h.getQuery=function(){return Fi(this,7)};h.setQuery=function(a){return $m(this,7,a)};h.clearQuery=function(){ex(this,7)};
h.getLastUpdatedTimestamp=function(){return Y(this,nj,12)};var X8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,X8.messageId)};Z(X8,X);X8.prototype.getSubscription=function(){return Y(this,Vu,1,fb)};X8.prototype.setSubscription=function(a){return hj(this,Vu,1,a,fb)};X8.messageId="b.ConfigurableAlertSubscriptionRequest";var Y8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,Y8.messageId)};Z(Y8,X);Y8.prototype.getSubscription=function(){return Y(this,Vu,1,fb)};Y8.prototype.setSubscription=function(a){return hj(this,Vu,1,a,fb)};Y8.messageId="b.ConfigurableAlertSubscriptionResponse";var m8d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,m8d.messageId)};Z(m8d,X);m8d.prototype.getSubscriptionsList=function(){return Wi(this,Vu,1,Xi(),fb)};m8d.messageId="b.ListConfigurableAlertSubscriptionsResponse";var Z8=function(){this.executor=q(RM)};h=Z8.prototype;h.create=function(a){return this.executor.post({url:"action/configurable_alert_subscriptions",body:(new X8).setSubscription(cmc(a)),responseConstructor:Y8}).pipe(A(function(b){if(b=b.getSubscription())return bmc(b);throw Error("Ig");}))};h.list=function(){return this.executor.get({url:"action/configurable_alert_subscriptions",responseConstructor:m8d}).pipe(A(function(a){return a.getSubscriptionsList().map(bmc)}))};
h.get=function(a){return this.executor.get({url:"action/configurable_alert_subscriptions/"+a,responseConstructor:Y8}).pipe(A(function(b){if(b=b.getSubscription())return bmc(b);throw Error("Jg");}))};h.update=function(a){return this.executor.post({url:"action/configurable_alert_subscriptions/"+a.id,body:(new X8).setSubscription(cmc(a)),responseConstructor:Y8}).pipe(A(function(b){if(b=b.getSubscription())return bmc(b);throw Error("Ig");}))};
h.delete=function(a){return this.executor.delete({url:"action/configurable_alert_subscriptions/"+a,responseConstructor:fN}).pipe(A(function(){}))};Z8.\u0275fac=function(a){return new (a||Z8)};Z8.\u0275prov=Cc({token:Z8,factory:Z8.\u0275fac,providedIn:"root"});var $8=function(){dN.call(this,{freshUntil:36E5,ancientAfter:2592E5});var a=this;this.api=q(Z8);this.recordType="configurable_alert";this.idForRecord=function(d){return d.id};this.isEqual=Gm;var b=q(DO),c=q(Be);b.getObservable().pipe(oj(c)).subscribe(function(){a.invalidate()})};Z($8,dN);h=$8.prototype;h.fetchOne=function(a){return this.api.get(a)};h.list=function(){return this.api.list()};h.create=function(a){return this.api.create(a)};h.update=function(a){var b=this;return this.api.update(a).pipe(Bf(function(c){b.invalidate(c.id)}))};
h.delete=function(a){var b=this;return this.api.delete(a).pipe(Bf(function(){b.invalidate(a)}))};$8.\u0275fac=function(a){return new (a||$8)};$8.\u0275prov=Cc({token:$8,factory:$8.\u0275fac,providedIn:"root"});var emc=function(a){return{subscriptionId:a}},dmc=function(a){return{path:"/settings/configurable-alerts",queryParams:a}},gmc=function(a){return{q:a,s:"modified_time:desc"}},fmc=function(a){return{path:"/issues",queryParams:a}},a9=function(){var a=this;this.fridge=q($8);this.subscriptionId$=new vf(1);this.data$=this.subscriptionId$.pipe(zf(function(b){return a.fridge.watch(b)}),te(ln));this.contentReady$=this.data$.pipe(A(function(){}))};
da.Object.defineProperties(a9.prototype,{subscriptionId:{configurable:!0,enumerable:!0,set:function(a){this.subscriptionId$.next(a)}}});a9.\u0275fac=function(a){return new (a||a9)};
a9.\u0275cmp=C({type:a9,selectors:[["configurable-alert-card"]],inputs:{subscriptionId:"subscriptionId"},decls:2,vars:3,consts:[[1,"carded","bg-main"],[1,"flex-kids-x","gap-s"],[1,"flex-kids-x","space-between"],["mat-button","","type","button",1,"medium",3,"routerLinkObj"],["mat-flat-button","","type","button",1,"medium","primary",3,"routerLinkObj"]],template:function(a,b){a&1&&(F(0,hmc,11,12,"div",0),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.data$))?0:-1,c)}},dependencies:[ZA,XA,TA,EN,py],styles:["[_nghost-%COMP%]{display:block;height:100%;max-width:700px;max-height:500px;overflow-y:auto;background:var(--surface-default)}"],
changeDetection:0});var b9=function(){var a=this;this.tasksApi=q(jP);this.analytics=q(PO);this.fileId$=new vf(1);this.commentId$=new vf(1);this.mentionedDriveComment$=he([this.fileId$,this.commentId$]).pipe(zf(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=a.tasksApi;var e=new mod;b=$m(e,1,b).setCommentId(d);return c.executor.post({url:"action/tasks/latest_drive_mention",responseConstructor:cP,body:b}).pipe(A(J6a))}),Bf(function(){a.contentReady$.next()}));this.contentReady$=new vf(1)};
b9.prototype.ngOnInit=function(){this.analytics.trackEvent("mentionsCard","view","hovercard")};da.Object.defineProperties(b9.prototype,{fileId:{configurable:!0,enumerable:!0,set:function(a){this.fileId$.next(a)}},commentId:{configurable:!0,enumerable:!0,set:function(a){this.commentId$.next(a)}}});b9.\u0275fac=function(a){return new (a||b9)};
b9.\u0275cmp=C({type:b9,selectors:[["mentioned-drive-comments-card"]],inputs:{fileId:"fileId",commentId:"commentId",lastMentionLink:"lastMentionLink"},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&&(F(0,kmc,11,4,"div",0),U(1,"async"));
if(a&2){var c;G((c=W(1,1,b.mentionedDriveComment$))?0:-1,c)}},dependencies:[DT,kU,py],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 pmc=function(a,b){return b.commentNumber},c9=function(){var a=this;this.issueCommentsBatchApi=q(wO);this.analytics=q(PO);this.issueId$=new Xj("");this.commentNumbers$=new Xj([]);this.mentionedComments$=he([this.issueId$,this.commentNumbers$]).pipe(zf(function(b){var c=l(b);b=c.next().value;c=c.next().value;return a.issueCommentsBatchApi.batchGet(b,c)}),Bf(function(){a.contentReady$.next()}));this.contentReady$=new vf(1);this.thumbsDownClicked=this.thumbsUpClicked=this.hasReacted=!1};
c9.prototype.ngOnInit=function(){this.analytics.trackEvent("mentionsCard","view","hovercard")};c9.prototype.getCommentNumberLink=function(a,b){return p7a(a,{comment:b})};c9.prototype.trackThumbsUp=function(){this.thumbsUpClicked=this.hasReacted=!0;this.analytics.trackEvent("needsResponse","accept",n8d(this))};c9.prototype.trackThumbsDown=function(){this.thumbsDownClicked=this.hasReacted=!0;this.analytics.trackEvent("needsResponse","reject",n8d(this))};
var n8d=function(a){return JSON.stringify({id:a.issueId$.value,commentNumber:a.commentNumbers$.value})};da.Object.defineProperties(c9.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}},commentNumbers:{configurable:!0,enumerable:!0,set:function(a){this.commentNumbers$.next(a)}}});c9.\u0275fac=function(a){return new (a||c9)};
c9.\u0275cmp=C({type:c9,selectors:[["mentioned-issue-comments-card"]],inputs:{issueId:"issueId",commentNumbers:"commentNumbers",needsResponse:"needsResponse"},decls:2,vars:3,consts:[[1,"carded","bg-main"],[3,"margin-s-bottom","padded-s-bottom","border-bottom"],[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"],["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"]],template:function(a,
b){a&1&&(F(0,qmc,5,0,"div",0),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.mentionedComments$))?0:-1,c)}},dependencies:[DT,iz,$S,EN,kU,py],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 smc=function(a){return{signal:a}},Dmc=function(){return[]},vmc=function(a,b){return b.type},o8d=function(){this.activeSession=q(Zu);this.signals=[];this.SIGNAL_TO_DISPLAY_TEXT=Wu;this.SIGNAL_TO_ACTION_TEXT=l8d;this.getSignalUrgency=$lc;this.getHighestPrioritySignal=amc;this.enableTailwindMissionControl=this.activeSession.isInternalSession()&&this.activeSession.getFlag("enableTailwind")&&this.activeSession.getFlag("enableTailwindMissionControl")},ymc=function(a,b){return a.filter(function(c){return c!==
b}).map(function(c){return Wu.get(c.type)}).join("; ")},Kmc=function(a,b){return(b.type==="MENTIONED_NEEDS_RESPONSE"||b.type==="COMMENT_MENTIONS_ME")&&b.commentNumbers!=null&&b.commentNumbers.length>0&&a.issueId!=null},Lmc=function(a){return a.type==="TAGGED_IN_COMMENT"&&a.driveFileId!=null&&a.driveCommentId!=null},Mmc=function(a){return!(a.type!=="CONFIGURABLE_ALERT"||!a.configurableAlertSubscriptionId)};o8d.\u0275fac=function(a){return new (a||o8d)};
o8d.\u0275cmp=C({type:o8d,selectors:[["needs-attention-signals-cell"]],inputs:{issueId:"issueId",signals:"signals",tailwindRunStatus:"tailwindRunStatus"},decls:4,vars:1,consts:[["signalChip",""],["tooltip","matTooltip"],["signalHovercard","onedevHovercard"],["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,"mouseenter","mouseleave","onedevHovercardActive","onedevHovercardTrigger",
"matTooltip"],[3,"onedevIsHovercardReady","issueId","commentNumbers","needsResponse"],[3,"onedevIsHovercardReady","fileId","commentId","lastMentionLink"],[3,"onedevIsHovercardReady","subscriptionId"],[3,"onedevIsHovercardReady","issueId","commentNumbers","needsResponse",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","fileId","commentId","lastMentionLink",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","subscriptionId",4,"onedevHovercardLazyBody"]],template:function(a,b){a&1&&(F(0,
wmc,3,0,"div",4)(1,Amc,1,1),E(2,Omc,10,12,"ng-template",null,0,Og));a&2&&G(b.signals.length<3?0:1)},dependencies:[a9,hK,AK,uK,vK,zK,wK,MA,b9,c9,oy],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)}"],
changeDetection:0});var p8d=function(){this.tasksService=q(jP);this.okrIds=[];this.hovercardReady$=new vf(1);this.teamObjectives$=be([])};p8d.prototype.ngOnInit=function(){this.teamObjectives$=Yod(this.tasksService,q8d(this.okrIds));this.hovercardReady$.next()};
var q8d=function(a){a=a.map(function(b){return b.includes("/keyResults")?b.substring(0,b.indexOf("/keyResults")):b});return[].concat(n(new Set(a)))},Smc=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},Tmc=function(a,b){if(b.includes("/keyResults")){var c,d;return(c=Smc(a,b))==null?void 0:(d=c.keyResults)==null?void 0:
d.find(function(e){return b.indexOf(e.keyResultId)>0})}},Pmc=function(a){return a&&a!=="RATING_UNSPECIFIED"?" \u2022 "+a:""};p8d.\u0275fac=function(a){return new (a||p8d)};
p8d.\u0275cmp=C({type:p8d,selectors:[["okr-card"]],inputs:{okrIds:"okrIds"},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&&(F(0,Vmc,4,0,"div",0),U(1,"async"));if(a&2){var c;G((c=W(1,1,b.teamObjectives$))?0:-1,c)}},dependencies:[py],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 d9=function(){this.analytics=q(PO);this.okrIds=[]};d9.prototype.trackHoverEvent=function(){this.analytics.trackEvent("missionControl","hover","okr-chip")};d9.\u0275fac=function(a){return new (a||d9)};
d9.\u0275cmp=C({type:d9,selectors:[["okr-chip"]],inputs:{okrIds:"okrIds"},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&&F(0,Xmc,5,1);a&2&&G(b.okrIds&&b.okrIds.length>0?0:-1)},dependencies:[AK,uK,vK,zK,wK,p8d],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 r8d=function(){this.hovercardReady$=new vf(1)};r8d.prototype.ngOnInit=function(){this.hovercardReady$.next()};r8d.\u0275fac=function(a){return new (a||r8d)};
r8d.\u0275cmp=C({type:r8d,selectors:[["stale-task-card"]],inputs:{taskId:"taskId"},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&&F(0,Ymc,8,0,"div",0);a&2&&G(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 s8d=function(){this.hovercardConfig={showDelay:250,hideDelay:250,position:[uPa,sm],triggerKey:[]}};s8d.\u0275fac=function(a){return new (a||s8d)};
s8d.\u0275cmp=C({type:s8d,selectors:[["stale-task-indicator"]],inputs:{taskId:"taskId",lastAlertTimestamp:"lastAlertTimestamp"},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&&(Vf(0),K(1,"div",2),M(2,"mat-icon",
3),S(3),L(),K(4,"onedev-hovercard",null,0),E(6,Zmc,2,2,"stale-task-card",4),L(),Wf());a&2&&(a=Q(5),B(),I("onedevHovercardTrigger",a)("onedevHovercardConfig",b.hovercardConfig),B(2),b=b.lastAlertTimestamp?(b=ps(b.lastAlertTimestamp.seconds,!0))?b+", respond?":"":"",T(" ",b," "))},dependencies:[AK,uK,vK,zK,wK,iz,r8d],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 t8d=["menuTrigger"],e9=function(){this.SIGNAL_TO_DISPLAY_TEXT=Wu;this.DEFINITIONS=dpd;this.analytics=q(PO);this.signalFilterKeys=[];this.selectedSignals=[];this.source="BUGANIZER";this.changeFilteredSignals=new KO;this.chipSelectionStateChanged=new KO};e9.prototype.ngOnInit=function(){this.currentSelectedSignals=new Set(this.selectedSignals);this.selectAllToggle=f9(this)};e9.prototype.openMenu=function(){this.menuTrigger.openMenu()};
e9.prototype.signalFilterChange=function(){var a=[].concat(n(this.currentSelectedSignals));this.changeFilteredSignals.emit(a);u8d(this,new Set(this.selectedSignals),new Set(a))};var v8d=function(a){return[].concat(n(a.signalFilterKeys)).sort(function(b,c){var d,e;return((d=Wu.get(b))!=null?d:"").localeCompare((e=Wu.get(c))!=null?e:"")})},f9=function(a){return a.currentSelectedSignals.size===a.signalFilterKeys.length};
e9.prototype.onCheckboxChange=function(a){this.currentSelectedSignals.has(a)?this.currentSelectedSignals.delete(a):this.currentSelectedSignals.add(a);this.selectAllToggle=f9(this);this.chipSelectionStateChanged.emit(this.currentSelectedSignals.size>0&&!f9(this)||f9(this))};var u8d=function(a,b,c){a.signalFilterKeys.forEach(function(d){b.has(d)!==c.has(d)&&a.analytics.trackEvent("needsAttention","toggle",a.source+"-"+Wu.get(d)+"-"+(c.has(d)?"checked":"unchecked"))})};
e9.\u0275fac=function(a){return new (a||e9)};
e9.\u0275cmp=C({type:e9,selectors:[["signal-list-dropdown"]],viewQuery:function(a,b){a&1&&kg(t8d,5);if(a&2){var c;og(c=pg())&&(b.menuTrigger=c.first)}},inputs:{signalFilterKeys:"signalFilterKeys",selectedSignals:"selectedSignals",source:"source"},outputs:{changeFilteredSignals:"changeFilteredSignals",chipSelectionStateChanged:"chipSelectionStateChanged"},decls:11,vars:5,consts:[["menuTrigger","matMenuTrigger"],["signalFilterMenu",""],["mat-icon-button","",1,"dropdown-btn",3,"keydown.enter","keydown.space",
"keyup.enter","keyup.space","click","matTooltip","matMenuTriggerFor"],["svgIcon","arrow-dropdown",1,"icon-s"],[3,"closed"],["mat-menu-item","",3,"click"],[3,"indeterminate","checked"],["mat-menu-item",""],[3,"checked"]],template:function(a,b){if(a&1){var c=t();K(0,"button",2,0);N("keydown.enter",function(d){u(c);return v(d.stopPropagation())})("keydown.space",function(d){u(c);return v(d.stopPropagation())})("keyup.enter",function(){u(c);return v(b.openMenu())})("keyup.space",function(){u(c);return v(b.openMenu())})("click",
function(d){u(c);return v(d.stopPropagation())});M(2,"mat-icon",3);L();K(3,"mat-menu",4,1);N("closed",function(){u(c);return v(b.signalFilterChange())});K(5,"button",5);N("click",function(d){u(c);b.selectAllToggle=!b.selectAllToggle;b.currentSelectedSignals=b.selectAllToggle?new Set(b.signalFilterKeys):new Set;b.chipSelectionStateChanged.emit(b.currentSelectedSignals.size>0&&!f9(b)||f9(b));return v(d.stopPropagation())});K(6,"mat-checkbox",6);S(7," Select all alerts ");L()();M(8,"mat-divider");Pf(9,
$mc,3,2,"button",7,Of);L()}a&2&&(a=Q(4),I("matTooltip","Filter "+dpd[b.source].displayName+" alerts")("matMenuTriggerFor",a),Jf("aria-label",dpd[b.source].displayName+" dropdown"),B(6),I("indeterminate",b.currentSelectedSignals.size>0&&!f9(b))("checked",f9(b)),B(3),Qf(v8d(b)))},dependencies:[ZA,XA,VA,PK,OK,wI,OJ,NJ,LF,JF,OF,hK,XJ,iz,MA],encapsulation:2});var w8d=["menuTrigger"],g9=function(){this.filteredSignalsSource=q(v0);this.activeSession=q(Zu);this.DEFINITIONS=dpd;this.SIGNAL_TO_DISPLAY_TEXT=Wu;this.FILTERED_SIGNALS=Hm(this.filteredSignalsSource.activeSession.isInternalSession()?epd:fpd);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 KO;this.changeSourceFilter=new KO;this.signals={};this.chipsSelected={}};
g9.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")};
g9.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})};
g9.prototype.sourceFilterChange=function(a){this.chipsSelected[a]=!this.chipsSelected[a];a=[];for(var b=l(this.sourceFilterKeys),c=b.next();!c.done;c=b.next())c=c.value,this.chipsSelected[c]&&a.push(c);this.changeSourceFilter.emit(a)};g9.prototype.openMenu=function(){this.menuTrigger.openMenu()};
var cnc=function(a,b){var c;return(c=a.signals[b])!=null?c:[]},bnc=function(a,b){switch(b){case "BUGANIZER":return[].concat(n(a.FILTERED_SIGNALS.buganizerSignals));case "DRIVE":return[].concat(n(a.FILTERED_SIGNALS.driveSignals));case "GERRIT":return[].concat(n(a.FILTERED_SIGNALS.gerritSignals));case "GOOGLE_TASKS":return[].concat(n(a.FILTERED_SIGNALS.googleTasksSignals));case "CRITIQUE":return[].concat(n(a.FILTERED_SIGNALS.changelistSignals));case "IRM":return[].concat(n(a.FILTERED_SIGNALS.irmSignals));
default:return[]}};g9.\u0275fac=function(a){return new (a||g9)};
g9.\u0275cmp=C({type:g9,selectors:[["signal-filter-chips"]],viewQuery:function(a,b){a&1&&kg(w8d,5);if(a&2){var c;og(c=pg())&&(b.menuTrigger=c.first)}},inputs:{sourceFilterKeys:"sourceFilterKeys",selectedSignals:"selectedSignals",selectedSources:"selectedSources"},outputs:{changeSourceAndFilteredSignals:"changeSourceAndFilteredSignals",changeSourceFilter:"changeSourceFilter"},decls:3,vars:0,consts:[["aria-label","Source selection","role","group",1,"split-chips-row"],[1,"split-chip",3,"expanded"],[1,
"split-chip"],["mat-button","",1,"source-chip",3,"click"],["svgIcon","done",3,"class"],[3,"matTooltip"],[3,"changeFilteredSignals","chipSelectionStateChanged","signalFilterKeys","selectedSignals","source"],["svgIcon","done"]],template:function(a,b){a&1&&(K(0,"div",0),Pf(1,enc,1,1,null,null,Of),L());a&2&&(B(),Qf(b.sourceFilterKeys))},dependencies:[ZA,XA,TA,hK,iz,MA,e9],styles:[".split-chips-row[_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;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:8px 0}[_nghost-%COMP%]     .split-chip{border:1px solid;border-color:#dadce0;border-color:var(--hairline);border-radius:8px;display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex;overflow:hidden;height:30px;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;margin-right:8px}[_nghost-%COMP%]     .split-chip .source-chip{color:#5f6368;color:var(--text-muted);cursor:pointer;border-radius:8px 0 0 8px}.dark-mode   [_nghost-%COMP%]     .split-chip .source-chip{color:#202124;color:var(--text)}[_nghost-%COMP%]     .split-chip .checkmark{vertical-align:top}[_nghost-%COMP%]     .split-chip signal-list-dropdown .dropdown-btn{border-left:1px solid;border-color:transparent;border-color:var(--row-default-bg);border-radius:0;width:30px}[_nghost-%COMP%]     .split-chip signal-list-dropdown .dropdown-btn:hover{border-color:#dadce0;border-color:var(--divider)}[_nghost-%COMP%]     .split-chip signal-list-dropdown .mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:0}[_nghost-%COMP%]     .split-chip.expanded{border-color:transparent;background-color:#e8f0fe;background-color:var(--primary-c50)}[_nghost-%COMP%]     .split-chip.expanded .source-chip{color:#174ea6;color:var(--primary-c900)}.dark-mode   [_nghost-%COMP%]     .split-chip.expanded .source-chip{color:#1a73e8;color:var(--text-primary)}[_nghost-%COMP%]     .split-chip.expanded signal-list-dropdown mat-icon{color:#174ea6;color:var(--primary-c900)}.dark-mode   [_nghost-%COMP%]     .split-chip.expanded signal-list-dropdown mat-icon{color:#1a73e8;color:var(--text-primary)}"]});var x8d=["menuTrigger"],y8d={label:"Last 1 day",numberOfDays:1},z8d={label:"Last 7 days",numberOfDays:7},A8d={label:"Last 30 days",numberOfDays:30},B8d={label:"Last 90 days",numberOfDays:90},C8d=[y8d,z8d,A8d,B8d],D8d={1:y8d,7:z8d,30:A8d,90:B8d},h9=function(){this.timeBoundaries=C8d;this.change=new KO};h9.prototype.getLabel=function(a){if(a==null)return"";var b,c;return(c=(b=D8d[a])==null?void 0:b.label)!=null?c:""};h9.prototype.openMenu=function(){this.menuTrigger.openMenu()};
h9.\u0275fac=function(a){return new (a||h9)};
h9.\u0275cmp=C({type:h9,selectors:[["time-boundary-filter"]],viewQuery:function(a,b){a&1&&kg(x8d,5);if(a&2){var c;og(c=pg())&&(b.menuTrigger=c.first)}},inputs:{selectedTimeBoundary:"selectedTimeBoundary"},outputs:{change:"change"},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=t();K(0,"mat-chip-listbox",2)(1,"mat-chip-option",3,0);N("keyup.enter",function(){u(c);return v(b.openMenu())})("keyup.space",function(){u(c);return v(b.openMenu())});S(3);M(4,"mat-icon",4);L()();K(5,"mat-menu",5,1);Pf(7,fnc,2,
2,"button",6,Of);L()}a&2&&(a=Q(6),I("selectable",!1),B(),I("matMenuTriggerFor",a),B(2),T(" ",b.getLabel(b.selectedTimeBoundary)," "),B(4),Qf(b.timeBoundaries))},dependencies:[JK,BK,IK,HK,GK,OJ,NJ,LF,JF,OF,iz],encapsulation:2});var E8d=function(){return{originX:"start",originY:"bottom",overlayX:"end",overlayY:"top"}},F8d=function(a){return[a]},i9=function(){this.isSnoozed=!0;this.snooze=new KO;this.unsnooze=new KO;this.isOpen=new KO;this.currentPickerDateTime=this.tomorrow;this.timePickerOpen=!1};i9.prototype.stopPropagation=function(a){a.stopPropagation()};i9.prototype.onOpen=function(a){this.isOpen.emit(a)};var G8d=function(a,b){a.setHours(b);a.setMinutes(0);a.setSeconds(0);a.setMilliseconds(0)};
da.Object.defineProperties(i9.prototype,{datePickerOrigin:{configurable:!0,enumerable:!0,get:function(){return this.datePickerAnchor._elementRef}},now:{configurable:!0,enumerable:!0,get:function(){return new Dm}},laterToday:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.getHours()>=12?a.add(new BG("h",3)):G8d(a,15);return a}},tomorrow:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.add(new BG("d",1));G8d(a,8);return a}},nextWeek:{configurable:!0,enumerable:!0,get:function(){var a=
this.now;a.setDate(a.getDate()+(7-a.getDay())%7+1);G8d(a,8);return a}},nextMonth:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.add(new BG("d",30));G8d(a,8);return a}}});i9.\u0275fac=function(a){return new (a||i9)};
i9.\u0275cmp=C({type:i9,selectors:[["snooze-menu"]],viewQuery:function(a,b){a&1&&kg(LF,7);if(a&2){var c;og(c=pg())&&(b.menu=c.first)}},inputs:{isSnoozed:"isSnoozed",datePickerAnchor:"datePickerAnchor"},outputs:{snooze:"snooze",unsnooze:"unsnooze",isOpen:"isOpen"},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=t();K(0,"mat-menu",1);N("closed",function(d){u(c);if(d!=="click")b.onOpen(!1);return v()});K(1,"span",2);N("click",function(d){u(c);return v(b.stopPropagation(d))});S(2," Snooze until... ");L();K(3,"div",3)(4,"button",4);N("click",function(){u(c);var d=b.laterToday;d&&b.snooze.emit(d);b.onOpen(!1);return v()});S(5," Later today ");K(6,"span",5);M(7,"b-formatted-date-time",
6);L()();K(8,"button",4);N("click",function(){u(c);var d=b.tomorrow;d&&b.snooze.emit(d);b.onOpen(!1);return v()});S(9," Tomorrow ");K(10,"span",5);M(11,"b-formatted-date-time",6);L()();K(12,"button",4);N("click",function(){u(c);var d=b.nextWeek;d&&b.snooze.emit(d);b.onOpen(!1);return v()});S(13," Next week ");K(14,"span",5);M(15,"b-formatted-date-time",6);L()();K(16,"button",4);N("click",function(){u(c);var d=b.nextMonth;d&&b.snooze.emit(d);b.onOpen(!1);return v()});S(17," Next Month ");K(18,"span",
5);M(19,"b-formatted-date-time",6);L()()();K(20,"div",7);F(21,gnc,3,0,"button",8);K(22,"button",9,0);N("keydown.enter",function(){u(c);b.timePickerOpen=!b.timePickerOpen;return v()})("keydown.space",function(){u(c);b.timePickerOpen=!b.timePickerOpen;return v()})("click",function(){u(c);b.timePickerOpen=!b.timePickerOpen;return v()});M(24,"mat-icon",10);S(25," Pick date & time ");L()()();E(26,hnc,2,5,"ng-template",11)}a&2&&(B(7),I("date",b.laterToday),B(4),I("date",b.tomorrow),B(4),I("date",b.nextWeek),
B(4),I("date",b.nextMonth),B(2),G(b.isSnoozed?21:-1),B(5),I("cdkConnectedOverlayOrigin",b.datePickerOrigin)("cdkConnectedOverlayOpen",b.timePickerOpen)("cdkConnectedOverlayPositions",Kg(9,F8d,Jg(8,E8d))))},dependencies:[tA,sA,mY,FT,DT,iz,LF,JF],styles:[".date[_ngcontent-%COMP%]{padding-left:20px;float:right}.title[_ngcontent-%COMP%]{padding:15px;font-size:.8rem;font-weight:700}"],changeDetection:0});var H8d=[5433823,5418819,5421028,5122552,5422257];var I8d=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 ui},J8d=function(a){return H8d.some(function(b){var c;return(c=a.hotlistIds)==null?void 0:c.includes(b)})};I8d.\u0275fac=function(a){return new (a||I8d)};
I8d.\u0275cmp=C({type:I8d,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&&E(0,inc,5,1,"ng-container",0);a&2&&I("ngIf",J8d(b))},dependencies:[jy,TT],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 j9=function(){};j9.\u0275fac=function(a){return new (a||j9)};j9.\u0275mod=$e({type:j9});j9.\u0275inj=Dc({imports:[xy,wR,UT]});var k9=function(){LO.call(this);var a=this;this.errorHandler=q(ZM);this.tasksService=q(jP);this.missionControlPrefs=q(w0);this.domSafe=q($P);this.router=q(CF);this.appEvents=q(DN);this.analytics=q(PO);this.clipboard=q(bQ);this.activeSession=q(Zu);this.needsAttentionTaskFridge=q(lP);this.butterBar=q(JM);q(W7);this.tailwindApi=q(HZ);this.OPTIONAL_SOURCE_FILTERS=["GERRIT","GOOGLE_TASKS","IRM"];this.ALL_NEEDS_ATTENTION_SOURCE_FILTERS=[].concat(n(apd),n(this.OPTIONAL_SOURCE_FILTERS));this.EXTERNAL_NEEDS_ATTENTION_SOURCE_FILTERS=
bpd;this.SOURCE_FILTERS=this.activeSession.isInternalSession()?this.ALL_NEEDS_ATTENTION_SOURCE_FILTERS:this.EXTERNAL_NEEDS_ATTENTION_SOURCE_FILTERS;this.ALL_FILTERED_SIGNALS=epd;this.enableTailwindMissionControl=this.activeSession.isInternalSession()&&this.activeSession.getFlag("enableTailwind")&&this.activeSession.getFlag("enableTailwindMissionControl");this.refreshTable=new rf;this.SIGNAL_TO_DISPLAY_TEXT=Wu;this.SIGNAL_TO_ACTION_TEXT=l8d;this.TaskResourceType=Khd;this.SignalStatus=umd;this.sources$=
this.missionControlPrefs.needsAttentionSources$;this.filteredSignals$=this.missionControlPrefs.needsAttentionFilteredSignals$;this.timeBoundary$=this.missionControlPrefs.prefs$.pipe(A(function(b){var c;return(c=b==null?void 0:b.needsAttentionDaysOld)!=null?c:30}));this.signalStatusFilter$=new Xj(0);this.allNeedsAttention$=new Xj([]);this.tasksQuery$=he([this.timeBoundary$,this.sources$,this.signalStatusFilter$,this.filteredSignals$]).pipe(Af(this.destroyed$),of(function(b,c){return Gm(b,c)}),zf(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 Fr(f)});return a.needsAttentionTaskFridge.watchMany({maxTaskAgeDays:b,sources:d,signalFilter:e,filterSignals:c})}),wf({bufferSize:1,refCount:!0}));this.workItems$=this.tasksQuery$.pipe(zf(function(b){return a.activeSession.isExternalSession()?be([]):Xod(a.tasksService,ooc(b.results)).pipe(hf(function(c){a.errorHandler.errorHandler(null,c);return be([])}))}));this.liteTasks$=he([this.tasksQuery$,
this.workItems$,this.filteredSignals$]).pipe(A(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;var e=moc(d);d=noc(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 Ylc(b,(f=a.signalStatusFilter$.getValue())!=null?f:0,e,d,c)}));this.liteTasksWithTailwindInfo$=this.liteTasks$.pipe(zf(function(b){if(!a.enableTailwindMissionControl)return be(b);
var c=new Set($5d());if(!c.size)return be(b);var d=b.filter(function(f){return poc(f,c)}).map(function(f){return f.issueId}).filter(function(f){return!!f});if(!d.length)return be(b);b=b.map(function(f){return f.issueId?d.includes(f.issueId)?Object.assign({},f,{action:"View Issue",tailwindRunStatus:"RUN_STATUS_UNSPECIFIED"}):f:f});var e=uOd(a.tailwindApi,d).pipe(A(function(f){return f.issueRunStatuses})).pipe(A(function(f){return f.map(function(g){a:switch(g.runStatus){case "RUN_STATUS_SUCCESS":var k=
"View AI fix";break a;case "RUN_STATUS_FAILURE":k="Retry AI fix";break a;default:k="View Issue"}return{issueId:g.issueId,status:g.runStatus,action:k}})}));return me([e,be(b)]).pipe(A(function(f){var g=l(f);f=g.next().value;g=g.next().value;var k=new Map(f.map(function(m){return[m.issueId,m]}));return g.map(function(m){var r=m.issueId?k.get(m.issueId):void 0;return r&&r.action?Object.assign({},m,{action:r.action,tailwindRunStatus:r.status}):m})}),yf(b))}),wf({bufferSize:1,refCount:!0}));this.dismissButtonLabel$=
this.signalStatusFilter$.pipe(A(function(b){return b===1?"Un-dismiss":"Dismiss"}));this.dismissButtonTooltip$=this.signalStatusFilter$.pipe(A(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(A(function(b){return b===2?"Snooze Options":"Snooze"}));this.snoozeButtonTooltip$=this.signalStatusFilter$.pipe(A(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 Wz(!0,[]);this.DEFAULT_NUM_ROWS_DISPLAYED=this.numDisplayedRows=
10;this.getSignalUrgency=$lc;this.getHighestPrioritySignal=amc;he([this.liteTasksWithTailwindInfo$]).pipe(A(function(b){b=l(b).next().value;b.sort(function(c,d){return to(d.lastAlertTimestamp)-to(c.lastAlertTimestamp)});return b}),Af(this.destroyed$)).subscribe(function(b){a.allNeedsAttention$.next(b)});he([this.timeBoundary$,this.sources$,this.filteredSignals$]).pipe(of(function(b,c){return Gm(b,c)}),zf(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 Fr(e)});
return a.needsAttentionTaskFridge.watchMany({maxTaskAgeDays:b,sources:d,signalFilter:0,filterSignals:c})}),Af(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(Af(this.destroyed$)).subscribe(function(b){a.errorHandler.errorHandler(null,b)})};Z(k9,LO);
k9.\u0275dir=LO.\u0275dir;k9.prototype.ngOnInit=function(){this.refreshTable.pipe(Af(this.destroyed$)).subscribe(this.refreshTaskData.bind(this))};
k9.prototype.refreshTaskData=function(){var a=this,b,c,d,e,f,g,k,m;return y(function(r){switch(r.nextAddress){case 1:return z(r,ee(a.timeBoundary$),2);case 2:return c=(b=r.yieldResult)!=null?b:0,z(r,ee(a.sources$),3);case 3:return e=((d=r.yieldResult)!=null?d:[]).map(function(w){return Fr(w)}),z(r,ee(a.signalStatusFilter$),4);case 4:return g=(f=r.yieldResult)!=null?f:0,z(r,ee(a.filteredSignals$),5);case 5:return m=(k=r.yieldResult)!=null?k:a.ALL_FILTERED_SIGNALS,z(r,Xjd(a.needsAttentionTaskFridge,
{maxTaskAgeDays:c,sources:e,signalFilter:g,filterSignals:m}),0)}})};k9.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,n(a)))};k9.prototype.dismissAlert=function(a){unc(this,[a.id]);if(this.enableTailwindMissionControl&&a.issueId){var b=a.tailwindRunStatus;a.issueId&&(b!=="RUN_STATUS_SUCCESS"&&b!=="RUN_STATUS_FAILURE"||X7(a.issueId))}};
var xnc=function(a,b,c){!c||c.getTime()>(new Date).getTime()?(Uod(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)}),K8d(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")},Znc=function(a){if(a=Cdb(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"}};
k9.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=du(b.id),b=zs.viewIssue.makeHref(b),uq(a)?this.domSafe.openInNewTab(b):(a==null?0:a.shiftKey)?Sr(this.domSafe,b):hu(this.router,b);else{var e;this.domSafe.openInNewTab((e=b.lastMentionLink)!=null?
e:b.link)}}};
k9.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(loc(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);L8d(this,a,b);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)};k9.prototype.setNumDisplayedRows=function(a){this.numDisplayedRows=a.length>this.numDisplayedRows?a.length:10};
var Anc=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"||f.type==="IRM_MANUAL_SIGNAL"})}))!=null?d:!1},unc=function(a,b){var c,d;y(function(e){if(e.nextAddress==1)return z(e,ee(a.signalStatusFilter$),
2);c=e.yieldResult;Sod(a.tasksService,b,c!==1).subscribe(function(){},function(f){return void a.errorHandler.errorHandler(null,f)});d=new Set(b);return z(e,K8d(a,d),0)})},znc=function(a){var b=a.selection.selected,c=Anc(a);a.analytics.trackEvent("manualSignal",c?"add":"remove","bulkControls",b.length);Tod(a.tasksService,b,c).subscribe(function(){a.refreshTaskData()},function(d){return void a.errorHandler.errorHandler(null,d)});a.selection.clear()};
k9.prototype.copyIdOrLink=function(a){a.type==="ISSUE"?(a=du(a.id))&&this.clipboard.copy(a):this.clipboard.copy(a.link)};k9.prototype.sendDmaAnalytics=function(){this.analytics.trackEvent("missionControl","click","dmaChip")};k9.prototype.extractLastDigits=function(a){var b;return(b=du(a))!=null?b:""};var Jnc=function(a){return a.type==="ISSUE"?"/issues/"+a.issueId:a.lastMentionLink?a.lastMentionLink:a.link};
k9.prototype.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)};k9.prototype.hasFutureAvailability=function(a){var b,c;return!!(((b=a.futureAvailability)==null?0:b.futureOooTimestamp)&&((c=a.futureAvailability)==null?0:c.comeBackTimestamp))};
var K8d=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return c=a.allNeedsAttention$.getValue(),a.allNeedsAttention$.next(c.filter(function(f){return!b.has(f.id)})),z(e,ee(a.signalStatusFilter$),2);d=e.yieldResult;d===0&&a.appEvents.missionControlTaskCount.next(c.filter(function(f){return!b.has(f.id)}).length);$d(e)})},L8d=function(a,b,c){M8d(a,b,c);N8d(a,b,c)},M8d=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)},N8d=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)};k9.\u0275fac=function(a){return new (a||k9)};
k9.\u0275cmp=C({type:k9,selectors:[["b-needs-attention-table"]],inputs:{refreshTable:"refreshTable"},features:[Ff],decls:15,vars:13,consts:[["pickerToggle","bAddTaskDialogToggle"],["bulkSnoozeButton",""],["snoozeMenu",""],["snoozeButton",""],["gmat-tabs","","matAlignTabs","start","matStretchTabs","false","preserveContent","",3,"selectedIndexChange","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"],["mat-tab-label",""],[1,"tab-label",3,"matTooltip"],[1,"padded-s-x",3,"sourceFilterKeys","selectedSources","selectedSignals"],[1,"padded-s-x",3,"changeSourceAndFilteredSignals","changeSourceFilter","sourceFilterKeys","selectedSources","selectedSignals"],[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","aria-hidden","false","matTooltipPosition","left",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","datePickerAnchor"],["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","tailwindRunStatus"],["mat-button","","tabindex","0","role","link",1,"primary","action-button",3,"href"],["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&&(K(0,"mat-tab-group",4),N("selectedIndexChange",function(e){return b.onTabIndexChange(e)}),Pf(1,knc,2,0,"mat-tab",null,Of),L(),K(3,"div",5)(4,"span",6),S(5,"Sources"),L(),F(6,mnc,2,3),U(7,"async"),F(8,nnc,1,1,"time-boundary-filter",
7),U(9,"async"),F(10,onc,4,0,"div",8),L(),F(11,joc,2,3),U(12,"async"),U(13,"async"),Mf(14,koc,2,1,"div",9));if(a&2){var c,d;I("selectedIndex",0);B();Qf(b.tabData);B(5);G((c=W(7,5,b.sources$))?6:-1,c);B(2);G((d=W(9,7,b.timeBoundary$))?8:-1,d);B(2);G(b.signalStatusFilter$.getValue()===b.SignalStatus.ACTIVE?10:-1);B();G(W(12,9,b.liteTasksWithTailwindInfo$)&&!W(13,11,b.loading$)?11:14)}},dependencies:[U8,j9,I8d,DT,ZA,XA,TA,VA,PK,OK,wI,GW,FW,QS,DS,JS,FS,CS,LS,GS,IS,MS,OS,PS,cL,bL,XK,YK,ZK,hK,hW,vW,W8,
iz,OF,MA,o8d,d9,g9,i9,VS,s8d,h9,py,vy,j8d],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}"],
changeDetection:0});var l9=function(){LO.call(this);var a=this;this.prefsService=q(w0);this.appEvents=q(DN);this.analytics=q(PO);this.numNeedsAttentionTasks$=this.appEvents.missionControlTaskCount;this.refreshData=new rf;this.numNeedsAttentionTasks$.pipe(te(ln),mf(1),Af(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(n(apd));var d;b=(d=this.prefsService.prefs.needsAttentionDaysOld)!=null?d:30;this.analytics.trackEvent("missionControl","view","needsAttention-sources-"+c.join(",")+"-"+b)};Z(l9,LO);l9.\u0275dir=LO.\u0275dir;l9.prototype.isCollapsed=function(){return this.prefsService.isCollapsed("needs-attention-wrapper")};l9.prototype.ariaLabelForToggleButton=function(){return this.isCollapsed()?"Expand needs attention section":"Collapse needs attention section"};
l9.prototype.toggleCollapsed=function(){this.prefsService.toggleCollapsed("needs-attention-wrapper")};l9.\u0275fac=function(a){return new (a||l9)};
l9.\u0275cmp=C({type:l9,selectors:[["needs-attention-wrapper"]],inputs:{refreshData:"refreshData"},features:[Ff],decls:10,vars:7,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","",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&&(K(0,"div",0)(1,"header",1)(2,"h3",2),S(3," Needs attention "),L(),M(4,"mat-icon",3),K(5,"button",4),N("click",function(){return b.toggleCollapsed()}),M(6,"mat-icon",5),L(),F(7,qoc,3,1,"div",6),U(8,"async"),L(),F(9,roc,2,1,"div",7),L());if(a&2){var c;yg("collapsed",b.isCollapsed());B(5);Jf("aria-label",b.ariaLabelForToggleButton());B(2);
G((c=W(8,5,b.numNeedsAttentionTasks$))?7:-1,c);B(2);G(b.isCollapsed()?-1:9)}},dependencies:[ZA,XA,VA,hK,iz,MA,k9,py],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 m9=function(){this.DEFINITIONS=dpd;this.sourceFilterKeys=[];this.selectedSources=[];this.change=new KO};m9.prototype.sourceFilterChange=function(a){this.selectedSources=a.value;this.change.emit(a.value)};m9.\u0275fac=function(a){return new (a||m9)};
m9.\u0275cmp=C({type:m9,selectors:[["source-filter-chips"]],inputs:{sourceFilterKeys:"sourceFilterKeys",selectedSources:"selectedSources"},outputs:{change:"change"},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&&(K(0,"mat-chip-listbox",0),N("change",function(c){return b.sourceFilterChange(c)}),Pf(1,toc,1,1,null,null,Of),L());a&2&&(B(),Qf(b.sourceFilterKeys))},dependencies:[JK,
BK,IK,HK,hK,MA],encapsulation:2});var ipc=function(){return[]},jpc=function(){return["moreRows"]},n9=function(){LO.call(this);var a=this;this.prefsService=q(w0);this.issueFridge=q(GO);this.router=q(CF);this.domSafe=q($P);this.analytics=q(PO);this.errorHandler=q(ZM);this.activeSession=q(Zu);this.clipboard=q(bQ);this.myTasksFridge=q(kP);this.tasksService=q(jP);this.isInternalSession=this.activeSession.isInternalSession();this.OPTIONAL_SOURCE_FILTERS=["GERRIT","IRM"];this.MY_TASK_DEFAULT_FILTERS=[].concat(n(cpd),n(this.OPTIONAL_SOURCE_FILTERS));
this.ONLY_OWNED_TASK_FILTERS=[].concat(n(this.MY_TASK_DEFAULT_FILTERS),["GOOGLE_TASKS"]);this.TaskResourceType=Khd;this.taskResourceTypeToIcon=M4a;this.extractLastDigits=du;this.tableColumns=[].concat(n(nPd));this.tableOptions=Object.assign({},qPd,{showActiveIndicator:!1,rowLimit:10});this.refreshData=new rf;this.manualSignalTriggered=new KO;this.sources$=this.prefsService.myTasksSources$;this.timeBoundary$=this.prefsService.prefs$.pipe(A(function(e){var f;return(f=e==null?void 0:e.myTasksDaysOld)!=
null?f:7}));var b;this.INITIAL_TAB_INDEX=(b=uRd(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.isSavingManualSignal=!1;var c;this.tabData=[{label:"Owned",description:"Tasks you own or are the author of",liteTasks:new Xj([]),loading:!0},{label:"Collaborating",description:"Tasks you're working on or contributing to (but don't own)",liteTasks:new Xj([]),loading:!0},{label:"Following",description:"Tasks you're tracking or have recent activities on",
liteTasks:new Xj([]),loading:!0},uoc(this.issueFridge,(c=this.activeSession.getTracker())==null?void 0:c.trackerId)].filter(ln);this.myTasks$=he([this.timeBoundary$,this.sources$]).pipe(Af(this.destroyed$),of(function(e,f){return e[0]===f[0]&&Gm(e[1],f[1])}),zf(function(e){var f=l(e);e=f.next().value;f=f.next().value;var g=new Set(f.map(function(k){return Fr(k)}));return a.myTasksFridge.watchMany({maxTaskAgeDays:e,sources:Array.from(g),issueFilter:voc(f)})}));this.displayColumns="type title modified role created options".split(" ");
this.DEFAULT_NUM_ROWS_DISPLAYED=this.numDisplayedRows=10;this.myTasks$.pipe(Af(this.destroyed$)).subscribe(function(e){var f=e.results;e=f.filter(function(w){return w.resourceRelationships.filter(function(x){return x.category==="OWNER"}).length>0}).sort(qpc);var g=f.filter(function(w){return w.resourceRelationships.filter(function(x){return x.category==="COLLABORATOR"}).length>0}).sort(qpc);f=f.filter(function(w){return w.resourceRelationships.filter(function(x){return x.category==="FOLLOWING"}).length>
0}).sort(qpc);var k;(k=a.tabData[0].liteTasks)==null||k.next(e);var m;(m=a.tabData[1].liteTasks)==null||m.next(g);var r;(r=a.tabData[2].liteTasks)==null||r.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(Af(this.destroyed$)).subscribe(function(e){a.errorHandler.errorHandler(null,e)})};Z(n9,LO);
n9.\u0275dir=LO.\u0275dir;h=n9.prototype;h.ngOnInit=function(){var a=this;this.refreshData.pipe(Af(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 Fr(e)}));a.myTasksFridge.watchMany({maxTaskAgeDays:c,sources:Array.from(d),issueFilter:voc(b)})})};h.toggleCollapsed=function(){this.prefsService.toggleCollapsed("mc-my-tasks")};h.isCollapsed=function(){return this.prefsService.isCollapsed("mc-my-tasks")};
h.ariaLabelForToggleButton=function(){return this.isCollapsed()?"Expand recent items section":"Collapse recent items section"};h.setNumDisplayedRows=function(a){this.numDisplayedRows=a.length>this.numDisplayedRows?a.length:10};h.onTabIndexChange=function(a){sKb(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};
h.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=du(b.taskId),b=zs.viewIssue.makeHref(b),uq(a)?this.domSafe.openInNewTab(b):a&&a.shiftKey?Sr(this.domSafe,b):hu(this.router,b)):this.domSafe.openInNewTab(b.externalLink))}};
h.copyIdOrLink=function(a){a.taskResourceType==="ISSUE"?(a=du(a.taskId),this.clipboard.copy(a)):this.clipboard.copy(a.externalLink)};var Yoc=function(a,b){a.isSavingManualSignal=!0;a.analytics.trackEvent("manualSignal","add","myTasksRow");var c=b.taskResourceType==="ISSUE"?3E3:0;Tod(a.tasksService,[b.taskId],!0).pipe(nf(c)).subscribe(function(){a.manualSignalTriggered.emit(b);a.isSavingManualSignal=!1},function(d){a.errorHandler.errorHandler(null,d);a.isSavingManualSignal=!1})};
n9.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)};n9.prototype.sendDmaAnalytics=function(){this.analytics.trackEvent("missionControl","click","dmaChip")};n9.prototype.getIds=function(a){return a.map(function(b){return b.issueId})};
var Koc=function(a){return a==="P0"||a==="P1"};n9.\u0275fac=function(a){return new (a||n9)};
n9.\u0275cmp=C({type:n9,selectors:[["my-tasks"]],inputs:{refreshData:"refreshData"},outputs:{manualSignalTriggered:"manualSignalTriggered"},features:[Ff],decls:8,vars:4,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","",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"],[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",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&&(K(0,"div",0)(1,"header",1)(2,"h3",2),S(3," Recent items "),L(),M(4,"mat-icon",3),K(5,"button",4),N("click",function(){return b.toggleCollapsed()}),M(6,"mat-icon",5),L()(),F(7,ppc,4,1,"div",6),L());a&2&&(yg("collapsed",
b.isCollapsed()),B(5),Jf("aria-label",b.ariaLabelForToggleButton()),B(2),G(b.isCollapsed()?-1:7))},dependencies:[j9,I8d,DT,ZA,XA,TA,VA,GW,FW,QS,DS,JS,FS,CS,LS,ES,KS,GS,IS,HS,MS,OS,NS,PS,cL,bL,XK,YK,ZK,hK,hW,g_,vW,iz,MA,m9,VS,h9,py],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 o9=function(){LO.call(this);var a=this;this.hostElement=q(Gd);this.analytics=q(PO);this.userFeedback=q(TY);this.prefsService=q(w0);this.hatsService=q(oX);this.appSearchState=q(gS);this.activeSession=q(Zu);this.isInternalSession=this.activeSession.isInternalSession();this.HOTKEYS=ns;this.refreshAllMissionControlData=new rf;this.refreshNeedsAttentionData=new rf;this.captureAnyClick=function(b){b=q0a(b);for(var c=l(Object.entries(O8d)),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(Af(this.destroyed$)).subscribe(function(){a.refreshNeedsAttentionData.next()})};Z(o9,LO);o9.\u0275dir=LO.\u0275dir;
o9.prototype.ngOnInit=function(){var a=this;setTimeout(function(){a.appSearchState.clear()});this.hostElement.nativeElement.addEventListener("click",this.captureAnyClick,!0);var b=l(P8d(this)),c=b.next().value;b=b.next().value;this.analytics.trackEvent("missionControl","sections-on-load",c,b);kFd(this.hatsService,"u5xoTzKbb0g6pPHSLo10WcCoiLmK").pipe(Af(this.destroyed$)).subscribe()};
o9.prototype.ngOnDestroy=function(){LO.prototype.ngOnDestroy.call(this);this.hostElement.nativeElement.removeEventListener("click",this.captureAnyClick,!0)};var P8d=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]};o9.prototype.refresh=function(){this.refreshAllMissionControlData.next()};
o9.\u0275fac=function(a){return new (a||o9)};
o9.\u0275cmp=C({type:o9,selectors:[["ng-component"]],features:[Ff],decls:10,vars:5,consts:[[1,"a11y-only"],["cdkScrollable","",1,"padded-s","flex-kids-y","gap-s","pos-fill","bg-off-main","overflow","overflow-on-print-media",3,"onHotkey","hotkey"],["class","flex-kids-x align-items-center justify-flex-end info-row",4,"ngIf"],[1,"a"],[3,"refreshData"],[1,"t"],[3,"manualSignalTriggered","refreshData"],[1,"w"],[1,"flex-kids-x","align-items-center","justify-flex-end","info-row"],["type","button","mat-stroked-button",
"",1,"small",3,"click"]],template:function(a,b){a&1&&(K(0,"h2",0),S(1,"Mission Control"),L(),K(2,"div",1),N("onHotkey",function(){return b.refresh()}),E(3,spc,3,0,"div",2),K(4,"section",3),M(5,"needs-attention-wrapper",4),L(),K(6,"section",5)(7,"my-tasks",6),N("manualSignalTriggered",function(){return b.refreshNeedsAttentionData.next()}),L()(),K(8,"section",7),M(9,"work-areas-wrapper-card",4),L()());a&2&&(B(2),I("hotkey",b.HOTKEYS.REFRESH_ISSUE_LIST),B(),I("ngIf",b.isInternalSession),B(2),I("refreshData",
b.refreshNeedsAttentionData),B(2),I("refreshData",b.refreshAllMissionControlData),B(2),I("refreshData",b.refreshAllMissionControlData))},dependencies:[Vz,ZA,XA,TA,fT,n9,l9,jy,b1],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 O8d={"NEEDS-ATTENTION-WRAPPER":"needs-attention","MY-TASKS":"my-tasks","MY-TASKS-V1":"my-tasks","WORK-AREAS-WRAPPER-CARD":"work-areas"};var Q8d=["playbookEditor"],R8d={PLAYBOOK:"playbook",SETTINGS:"settings",VERSIONS:"versionHistory",TOOLS:"tools"},p9=function(){this.changeDetectorRef=q(MO);this.formBuilder=q(lC);this.teamExperimentalFieldsFridge=q(FP);this.FormattingMode=fo;this.Tab=R8d;this.selectedTabIndex=0;this.showMarkdownPreview=this.isEditing=!1;this.playbook$=this.teamExperimentalFieldsFridge.watch("8953708121").pipe(A(function(a){return a==null?void 0:a.playbooks[0]}));this.playbook={playbookId:"123",version:1,archived:!1,
name:"Buganizer team playbook",description:"Hardcoded playbook for testing",filter:'componentid:94581+ status:open -customfield52812:(\\"triaged\\" | \\"needs decision\\")',prompt:""};this.playbookForm=this.formBuilder.group({instructions:["",vi]})};p9.prototype.startEdit=function(a){a||(a="");this.playbookForm.patchValue({instructions:a});this.isEditing=!0;this.changeDetectorRef.detectChanges();var b;(b=this.playbookEditor)==null||b.nativeElement.focus()};
p9.prototype.cancelEdit=function(){this.isEditing=!1};p9.\u0275fac=function(a){return new (a||p9)};
p9.\u0275cmp=C({type:p9,selectors:[["b-playbook"]],viewQuery:function(a,b){a&1&&kg(Q8d,5);if(a&2){var c;og(c=pg())&&(b.playbookEditor=c.first)}},features:[Ig([MO])],decls:13,vars:4,consts:[["playbookEditor",""],[1,"pos-fill","flex-kids-y"],[1,"border-bottom","padded-s-sides","flex-kids-x","align-items-center","gap-xs"],["svgIcon","devai"],["svgIcon","chevron-right",1,"icon-s","muted"],[1,"flex-kids-x","gap-s","grow-1","overflow","overflow-on-print-media","padded-l"],[1,"flex-1","flex-kids-y"],[1,
"uppercase","muted"],["gmat-tabs","","mat-align-tabs","start",1,"tabs",3,"selectedIndexChange","selectedIndex"],["label","Playbook",1,"flex-1","flex-kids-y",3,"id"],[1,"flex-kids-y","playbook-container",3,"formGroup"],[1,"shrink-0"],[1,"stats-panel","muted","type-m","padded-s-x","padded-xs-y"],[1,"grow-1","playbook-preview"],["formControlName","instructions","placeholder","Enter playbook instructions",1,"full-height","full-width"],[1,"unset-background",3,"comment","formattingMode"],[1,"flex-kids-x",
"gap-s","border-top","padded-x","padded-s-y","shrink-0","align-items-center"],["mat-raised-button","","type","button","color","primary",1,"margin-left-auto"],["gmat-checkbox","",3,"change","checked"],[1,"grow-1"],["mat-button","","type","button",1,"margin-left-auto",3,"click"],["mat-raised-button","","color","primary","type","button",3,"click","disabled"],["mat-raised-button","","type","button","color","primary",1,"margin-left-auto",3,"click"]],template:function(a,b){a&1&&(K(0,"div",1)(1,"header",
2),M(2,"mat-icon",3),K(3,"h2"),S(4,"Buganizer AI"),L(),M(5,"mat-icon",4),K(6,"h2"),S(7,"Triage agent"),L(),M(8,"mat-icon",4),K(9,"h2"),S(10),L()(),F(11,ypc,12,3,"div",5),U(12,"async"),L());if(a&2){var c;B(10);Ag(b.playbook.name);B();G((c=W(12,2,b.playbook$))?11:-1,c)}},dependencies:[mC,xi,PB,QB,ZA,XA,TA,PK,OK,wI,cL,bL,YK,ZK,fS,iz,nC,dC,cC,py],styles:[".stats-panel[_ngcontent-%COMP%], .tabs[_ngcontent-%COMP%]{border:1px solid var(--hairline);border-radius:4px}.playbook-container[_ngcontent-%COMP%]{height:80dvh}.playbook-container[_ngcontent-%COMP%]   .playbook-preview[_ngcontent-%COMP%]{min-height:0;overflow-y:auto}.playbook-container[_ngcontent-%COMP%]   .playbook-preview.editing[_ngcontent-%COMP%]{overflow-y:hidden}.playbook-container[_ngcontent-%COMP%]   .playbook-preview[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{resize:none}.stats-panel[_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;height:calc(80dvh + 27px);width:350px}"],
changeDetection:0});var S8d=function(){this.timeZones=q(RQ);this.label="Time zone";this.timezoneId="";this.fullWidth=this.disabled=!1;this.timezoneIdChange=new KO;this.timeZoneOptions$=Esd(this.timeZones).pipe(A(function(a){return a.sort(Apc)}))};S8d.\u0275fac=function(a){return new (a||S8d)};
S8d.\u0275cmp=C({type:S8d,selectors:[["b-timezone-picker"]],inputs:{label:"label",timezoneId:"timezoneId",disabled:"disabled",fullWidth:"fullWidth"},outputs:{timezoneIdChange:"timezoneIdChange"},decls:7,vars:7,consts:[["appearance","outline",1,"form-field-wide-select"],[3,"ngModelChange","disabled","ngModel"],[3,"value"]],template:function(a,b){a&1&&(K(0,"mat-form-field",0)(1,"mat-label"),S(2),L(),K(3,"mat-select",1),N("ngModelChange",function(c){b.timezoneId!==c&&(b.timezoneId=c,b.timezoneIdChange.emit(b.timezoneId))}),
Pf(4,zpc,2,2,"mat-option",2,Of),U(6,"async"),L()());a&2&&(yg("full-width",b.fullWidth),B(2),T(" ",b.label," "),B(),I("disabled",b.disabled)("ngModel",b.timezoneId),B(),Qf(W(6,5,b.timeZoneOptions$)))},dependencies:[mC,PB,WB,DB,qB,BB,tB,qT,pT,hI,GA,py],styles:["[_nghost-%COMP%]     .mat-form-field-infix { width: fit-content; }","mat-form-field[_ngcontent-%COMP%] { font-size: 16px; }"]});var q9=function(){var a=this;this.dateFormatter=q(gR);this.destroyRef=q(Be);this.frequency$=new Xj("weekly");this.ordinal$=new Xj(1);this.timeZoneId$=new Xj("America/Los_Angeles");this.timeOfDay$=new Xj({hours:9,minutes:0,seconds:0,nanos:0});this.ordinalOrZero$=he([this.frequency$,this.ordinal$]).pipe(A(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b==="daily"?0:c}));this.frequencyChange=new KO;this.ordinalChange=new KO;this.timeOfDayChange=new KO;this.timeZoneIdChange=new KO;this.frequencyOptions=
T8d;this.repeatOnOptions=new Map([["daily",[]],["weekly",U8d],["monthly",V8d]]);this.DAILY="daily";this.repeatAtOptions=W8d.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=Ipc};
q9.prototype.ngOnInit=function(){var a=this;this.frequency$.pipe(of(),xf(1),oj(this.destroyRef)).subscribe(function(b){a.frequencyChange.emit(b)});this.ordinal$.pipe(of(),xf(1),te(function(b){return b!==0}),oj(this.destroyRef)).subscribe(function(b){a.ordinalChange.emit(b)});this.timeOfDay$.pipe(of(Ipc),xf(1),oj(this.destroyRef)).subscribe(function(b){a.timeOfDayChange.emit(b)});this.timeZoneId$.pipe(of(),xf(1),oj(this.destroyRef)).subscribe(function(b){a.timeZoneIdChange.emit(b)})};
da.Object.defineProperties(q9.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)}}});q9.\u0275fac=function(a){return new (a||q9)};
q9.\u0275cmp=C({type:q9,selectors:[["b-delivery-frequency-subform"]],inputs:{frequency:"frequency",ordinal:"ordinal",timeOfDay:"timeOfDay",timeZoneId:"timeZoneId"},outputs:{frequencyChange:"frequencyChange",ordinalChange:"ordinalChange",timeOfDayChange:"timeOfDayChange",timeZoneIdChange:"timeZoneIdChange"},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&&(F(0,Cpc,7,1,"div"),U(1,"async"),F(2,Epc,7,1,"div"),U(3,"async"),F(4,Gpc,7,2,"div"),U(5,"async"),F(6,Hpc,2,2,"div"),U(7,"async"));if(a&2){var c,d,e,f;G((c=W(1,4,b.frequency$))?0:-1,c);B(2);G((d=W(3,6,b.ordinalOrZero$))?2:-1,d);B(2);G((e=W(5,8,b.timeOfDay$))?4:-1,e);B(2);G((f=W(7,10,b.timeZoneId$))?6:-1,f)}},dependencies:[mC,PB,WB,DB,qB,BB,tB,qT,pT,hI,GA,S8d,py],encapsulation:2,changeDetection:0});
var T8d=[{frequency:"daily",display:"Daily"},{frequency:"weekly",display:"Weekly"},{frequency:"monthly",display:"Monthly"}],U8d=[{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"}],V8d=[].concat(n(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"}}),W8d=[].concat(n(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 X8d=["dialogContent"],r9=function(){var a=this;this.matDialog=q(gB);this.fridge=q($8);this.confirmationDialogService=q(PQ);this.destroyRef=q(Be);this.init$=new Xj(!1);this.columnsToDisplay=["name","overflow-warning","actions"];this.refreshOwnedSubscriptions$=new Xj(void 0);this.ownedSubscriptions$=this.refreshOwnedSubscriptions$.pipe(zf(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 Xj(!1);var b=q(Wj);this.init$.pipe(te(function(c){return c}),zf(function(){return b.queryParams}),te(function(c){return c.subscriptionId}),zf(function(c){return a.fridge.watch(c.subscriptionId,{trustMemory:!1,trustUncertainMemory:!1})}),oj(this.destroyRef)).subscribe(function(c){c&&a.openDialog(c)})};r9.prototype.ngOnInit=function(){this.init$.next(!0)};r9.prototype.openDialog=function(a){this.dialogRef=this.matDialog.open(this.dialogContent,{data:a,width:"500px"})};
r9.prototype.setFrequency=function(a,b){a.frequency=b;a.ordinal=b==="daily"?0:1};r9.prototype.save=function(a){var b=this;this.isSaving$.next(!0);(a.id==="0"?this.fridge.create(a):this.fridge.update(a)).pipe(mf(1),oj(this.destroyRef)).subscribe(function(c){b.isSaving$.next(!1);b.refreshOwnedSubscriptions$.next();if(c.isOverflowing)Y8d(b,c);else{var d;(d=b.dialogRef)==null||d.close()}})};
var Y8d=function(a,b){b.query.endsWith(" created:30d")?a.confirmationDialogService.open({title:"Configurable alert returns too many results",content:Dh("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:Dh('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()}})};r9.prototype.openConfirmDeleteDialog=function(a){var b=this;this.confirmationDialogService.open({title:"Delete a configurable alert",content:Dh("Delete `"+a.displayName+"`?"),confirmButtonText:"Delete",isDestructive:!0,onConfirm:function(){b.fridge.delete(a.id).pipe(oj(b.destroyRef)).subscribe(function(){b.refreshOwnedSubscriptions$.next()})}})};
r9.\u0275fac=function(a){return new (a||r9)};
r9.\u0275cmp=C({type:r9,selectors:[["b-configurable-alert-settings"]],viewQuery:function(a,b){a&1&&kg(X8d,7);if(a&2){var c;og(c=pg())&&(b.dialogContent=c.first)}},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","",3,"routerLinkObj"],["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=t();K(0,"div",3)(1,"div",4)(2,"p",5);S(3,"Subscriptions");L()();K(4,"div");E(5,Jpc,1,0,"ng-container",6);K(6,"div")(7,
"button",7);N("click",function(){u(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}}))});S(8," Create configurable alert ");L()()()();E(9,Tpc,13,3,"ng-template",null,0,Og)(11,$pc,29,14,"ng-template",null,1,Og)}a&2&&(a=
Q(10),B(5),I("ngTemplateOutlet",a))},dependencies:[q9,mC,xi,PB,WB,ZA,XA,TA,VA,DB,qB,BB,tB,qC,EB,oC,OJ,NJ,LF,JF,OF,aU,$T,lS,GW,FW,QS,DS,JS,FS,CS,LS,GS,IS,MS,OS,hK,mB,hB,lB,kB,XJ,iz,MA,oy,EN,VS,py],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 Z8d=function(a,b){this.name=a;this.resourceType=b;this.options=[]};Z8d.prototype.shouldDisplay=function(){return!0};Z8d.prototype.hasOptions=function(){return!1};Z8d.prototype.getDefaultOptionId=function(){return null};var $8d=function(a,b){this.name=a;this.resourceType=b;this.options=[]};$8d.prototype.shouldDisplay=function(){return this.options.length>0};$8d.prototype.hasOptions=function(){return this.options.length>0};
$8d.prototype.getDefaultOptionId=function(){return this.hasOptions()?this.options[0].id:null};
var a9d=function(a,b){this.id=a;this.name=b},c9d=function(a,b,c,d,e){var f=this;this.butterBar=a;this.sidebar=b;this.userPreferencesManager=c;this.cdr=d;this.appEvents=e;this.selectedOptionId=null;this.subscriptions=new Od;this.missionControlMainOption=new Z8d("Home","MISSION_CONTROL");this.assignedToMeMainOption=new Z8d("Assigned to me","ASSIGNED_TO_ME");this.hotlistMainOption=new $8d("Hotlist","HOTLIST");this.savedSearchMainOption=new $8d("Saved search","SAVED_SEARCH");this.bookmarkGroupMainOption=
new $8d("Bookmark group","BOOKMARK_GROUP");this.mainOptions=[this.assignedToMeMainOption,this.hotlistMainOption,this.savedSearchMainOption,this.bookmarkGroupMainOption,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];b9d(this);
this.subscriptions.add(this.appEvents.sidebarUpdated.subscribe(function(){b9d(f);f.cdr.detectChanges()}));this.subscriptions.add(this.userPreferencesManager.preferences$.subscribe(function(g){g.homepagePreferences&&(g=g.homepagePreferences,g.resourceType?f.selectedMainOption=f.resourceMainOptions[g.resourceType]||f.mainOptions[0]:f.selectedMainOption=f.missionControlMainOption,f.selectedOptionId=g.resourceId||null,b9d(f))}))};c9d.prototype.destroy=function(){this.subscriptions.unsubscribe()};
var dqc=function(a){fs(a.butterBar,"Saving preferences...",0);var b={resourceType:a.selectedMainOption.resourceType};a.selectedMainOption.hasOptions()&&a.selectedOptionId&&(b.resourceId=a.selectedOptionId);zqd(a.userPreferencesManager,b).subscribe(function(){fs(a.butterBar,"Preferences saved.",4E3)})},b9d=function(a){function b(c){return new a9d(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 a9d(String(a.selectedOptionId),a.selectedMainOption.name+" "+a.selectedOptionId)))};var s9=function(){LO.call(this);this.cdr=q(MO,{self:!0});this.userPreferencesManager=q(VP);this.butterBar=q(JM);this.activeSession=q(Zu);this.documentationLinks=q(OQ);this.analytics=q(PO);this.sidebar=q(C1);this.appEvents=q(DN);this.constants=q(SQ);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.activeSession.isInternalSession();this.appName=this.activeSession.getAppName();this.timeZones.push.apply(this.timeZones,n(this.constants.supportedTimeZones.map(function(a){return{value:a.id,label:a.name}})));this.sloEnabled=this.activeSession.isInternalSession();this.showBugScreensaverSetting=
this.activeSession.isInternalSession();this.showInlineImagesSetting=this.activeSession.isInternalSession()};Z(s9,LO);s9.\u0275dir=LO.\u0275dir;s9.prototype.ngOnInit=function(){var a=this;this.destroyed$.subscribe(function(){var b;(b=a.preferredHomepage)==null||b.destroy()});this.preferredHomepage=new c9d(this.butterBar,this.sidebar,this.userPreferencesManager,this.cdr,this.appEvents);this.userPreferencesManager.preferences$.pipe(Af(this.destroyed$)).subscribe(function(b){a.userPreferences=b;a.cdr.detectChanges()})};
s9.prototype.save=function(a,b,c){var d=this;fs(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){fs(d.butterBar,"Preferences saved.",4E3)});this.analytics.trackEvent("preferences",a,b,c)};
var jqc=function(a){var b;return((b=a.userPreferences.commentFormattingPreferences)==null?void 0:b.commentDisplayOverride)==="LITERAL"},kqc=function(a){var b;return((b=a.userPreferences.commentFormattingPreferences)==null?void 0:b.commentCreateOverride)==="LITERAL"};s9.prototype.getShowInlineImages=function(){var a;return(a=this.userPreferences.showInlineImages)!=null?a:!1};
da.Object.defineProperties(s9.prototype,{hideBadgeInNav:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.userPreferences)==null?0:(b=a.missionControlPreferences)==null?0:b.hideBadgeInNav)}}});s9.\u0275fac=function(a){return new (a||s9)};
s9.\u0275cmp=C({type:s9,selectors:[["b-general-settings"]],features:[Ig([MO]),Ff],decls:74,vars:12,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"],["id","hide-nav-badge",3,"change","checked"],[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","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&&(K(0,"div")(1,"div",0)(2,"div",1)(3,"p",2),S(4,"Preferred homepage"),L(),K(5,"p",3),S(6," Select your preferred homepage when first opening the app. "),K(7,"a",4),S(8," Learn more "),L()()(),K(9,"div")(10,"div")(11,"mat-form-field",5)(12,"mat-label",6),S(13," Current selection "),L(),K(14,"mat-select",7),Eg("ngModelChange",function(c){Dg(b.preferredHomepage.selectedMainOption,c)||(b.preferredHomepage.selectedMainOption=c);return c}),N("selectionChange",
function(){var c=b.preferredHomepage;c.selectedOptionId=c.selectedMainOption.getDefaultOptionId();dqc(c);c.cdr.detectChanges()}),Pf(15,bqc,1,1,null,null,Of),L()(),F(17,eqc,4,1,"mat-form-field",5),L(),K(18,"div")(19,"mat-slide-toggle",8),N("change",function(c){c=c.checked;if(b.userPreferences){var d;b.userPreferences.missionControlPreferences=(d=b.userPreferences.missionControlPreferences)!=null?d:{};d=!c;b.userPreferences.missionControlPreferences.hideBadgeInNav=d;b.save("hideBadgeInNav",String(d))}}),
S(20,' Show red "attention" badge in left navigation '),L()()()(),M(21,"hr",9),K(22,"div",0)(23,"div",1)(24,"p",2),S(25,"Date/time formatting settings"),L(),K(26,"p",3),S(27," Select how you want dates and times to be formatted. "),K(28,"a",4),S(29," Learn more "),L()()(),K(30,"div")(31,"div")(32,"mat-form-field",10)(33,"mat-label",11),S(34," Dates "),L(),K(35,"mat-select",12),Eg("ngModelChange",function(c){Dg(b.userPreferences.dateTimePreferences.calendarFormat,c)||(b.userPreferences.dateTimePreferences.calendarFormat=
c);return c}),N("selectionChange",function(){return b.save("saveDateTimePreferences")}),Pf(36,fqc,2,2,"mat-option",13,Of),L()()(),K(38,"div")(39,"mat-form-field",14)(40,"mat-label",15),S(41," Times "),L(),K(42,"mat-select",12),Eg("ngModelChange",function(c){Dg(b.userPreferences.dateTimePreferences.timeFormat,c)||(b.userPreferences.dateTimePreferences.timeFormat=c);return c}),N("selectionChange",function(){return b.save("saveDateTimePreferences")}),Pf(43,gqc,2,2,"mat-option",13,Of),L()()(),K(45,"div")(46,
"mat-form-field",16)(47,"mat-label",17),S(48," Time Zones "),L(),K(49,"mat-select",12),Eg("ngModelChange",function(c){Dg(b.userPreferences.dateTimePreferences.timeZone,c)||(b.userPreferences.dateTimePreferences.timeZone=c);return c}),N("selectionChange",function(){return b.save("saveDateTimePreferences")}),Pf(50,hqc,2,2,"mat-option",13,Of),L()()()()(),M(52,"hr",9),K(53,"div",0)(54,"div",1)(55,"p",2),S(56,"Keyboard settings"),L()(),K(57,"div")(58,"div")(59,"mat-slide-toggle",18),N("change",function(c){b.userPreferences.keyboardPreferences.enableAllHotkeys=
c.checked;return b.save("saveKeyboardPreferences")}),S(60," Enable all hotkeys "),L()()()(),M(61,"hr",9),K(62,"div",0)(63,"div",1)(64,"p",2),S(65,"Display settings"),L()(),K(66,"div")(67,"div",19)(68,"b-toggle-code-font",20),S(69," Force comments to display with code font "),L()(),F(70,iqc,3,1,"div",19),L()(),F(71,lqc,12,2),M(72,"hr",9),F(73,mqc,8,1,"div",0),L());a&2&&(B(7),I("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-a-homepage",Me),B(7),Cg("ngModel",b.preferredHomepage.selectedMainOption),
B(),Qf(b.preferredHomepage.mainOptions),B(2),G(b.preferredHomepage.selectedMainOption.hasOptions()?17:-1),B(2),I("checked",!b.hideBadgeInNav),B(9),I("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-date-time-formatting",Me),B(7),Cg("ngModel",b.userPreferences.dateTimePreferences.calendarFormat),B(),Qf(b.dateFormats),B(6),Cg("ngModel",b.userPreferences.dateTimePreferences.timeFormat),B(),Qf(b.timeFormats),B(6),Cg("ngModel",b.userPreferences.dateTimePreferences.timeZone),B(),Qf(b.timeZones),
B(9),I("checked",b.userPreferences.keyboardPreferences.enableAllHotkeys),B(11),G(b.showInlineImagesSetting?70:-1),B(),G(b.showForcePlainTextSettings?71:-1),B(2),G(b.showBugScreensaverSetting?73:-1))},dependencies:[mC,PB,WB,DB,qB,BB,tB,qT,pT,hI,GA,aU,$T,lS,hK,MA,l8],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 t9=function(){LO.call(this);var a=this;this.userPreferencesManager=q(VP);this.butterBar=q(JM);this.documentationLinks=q(OQ);this.analytics=q(PO);this.priorities=["ALL","IMPORTANT","CLOSURE_ONLY","MINIMAL"];this.userPreferencesManager.preferences$.pipe(Af(this.destroyed$)).subscribe(function(b){a.userPreferences=b})};Z(t9,LO);t9.\u0275dir=LO.\u0275dir;
t9.prototype.save=function(a,b,c){var d=this;fs(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){fs(d.butterBar,"Preferences saved.",4E3)});this.analytics.trackEvent("preferences",a,b,c)};t9.\u0275fac=function(a){return new (a||t9)};
t9.\u0275cmp=C({type:t9,selectors:[["b-notification-settings"]],features:[Ff],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&&(K(0,"div",0)(1,"div",1)(2,"p",2),S(3,"Notification settings"),L(),K(4,"p",3),S(5," Select the level of email you want to receive for each issue role. "),K(6,"a",4),S(7," Learn more "),L()()(),K(8,"div")(9,"div")(10,"mat-form-field",5)(11,"mat-label",6),S(12," Assignee "),L(),K(13,"mat-select",7),Eg("ngModelChange",
function(c){Dg(b.userPreferences.notificationPreferences.assignedPriority,c)||(b.userPreferences.notificationPreferences.assignedPriority=c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Pf(14,nqc,3,4,"mat-option",8,Of),L()()(),K(16,"div")(17,"mat-form-field",9)(18,"mat-label",10),S(19," Reporter "),L(),K(20,"mat-select",7),Eg("ngModelChange",function(c){Dg(b.userPreferences.notificationPreferences.reportedPriority,c)||(b.userPreferences.notificationPreferences.reportedPriority=
c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Pf(21,oqc,3,4,"mat-option",8,Of),L()()(),K(23,"div")(24,"mat-form-field",11)(25,"mat-label",12),S(26," Verifier "),L(),K(27,"mat-select",7),Eg("ngModelChange",function(c){Dg(b.userPreferences.notificationPreferences.verifiedPriority,c)||(b.userPreferences.notificationPreferences.verifiedPriority=c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Pf(28,pqc,3,4,"mat-option",
8,Of),L()()(),K(30,"div")(31,"mat-form-field",13)(32,"mat-label",14),S(33," Collaborator "),L(),K(34,"mat-select",7),Eg("ngModelChange",function(c){Dg(b.userPreferences.notificationPreferences.collaboratorPriority,c)||(b.userPreferences.notificationPreferences.collaboratorPriority=c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Pf(35,qqc,3,4,"mat-option",8,Of),L()()(),K(37,"div")(38,"mat-form-field",15)(39,"mat-label",16),S(40," CC'd "),L(),K(41,"mat-select",
7),Eg("ngModelChange",function(c){Dg(b.userPreferences.notificationPreferences.ccdPriority,c)||(b.userPreferences.notificationPreferences.ccdPriority=c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Pf(42,rqc,3,4,"mat-option",8,Of),L()()(),K(44,"div")(45,"mat-form-field",17)(46,"mat-label",18),S(47," Starred "),L(),K(48,"mat-select",7),Eg("ngModelChange",function(c){Dg(b.userPreferences.notificationPreferences.starredPriority,c)||(b.userPreferences.notificationPreferences.starredPriority=
c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Pf(49,sqc,3,4,"mat-option",8,Of),L()()(),K(51,"div")(52,"mat-slide-toggle",19),N("change",function(c){b.userPreferences.notificationPreferences.excludeChangesByMe=c.checked;return b.save("saveNotificationPreferences")}),S(53," Exclude edits made by you "),L()()()());a&2&&(B(6),I("href",b.documentationLinks.baseDocumentationUrl+"/concepts/settings#email",Me),B(7),Cg("ngModel",b.userPreferences.notificationPreferences.assignedPriority),
B(),Qf(b.priorities),B(6),Cg("ngModel",b.userPreferences.notificationPreferences.reportedPriority),B(),Qf(b.priorities),B(6),Cg("ngModel",b.userPreferences.notificationPreferences.verifiedPriority),B(),Qf(b.priorities),B(6),Cg("ngModel",b.userPreferences.notificationPreferences.collaboratorPriority),B(),Qf(b.priorities),B(6),Cg("ngModel",b.userPreferences.notificationPreferences.ccdPriority),B(),Qf(b.priorities),B(6),Cg("ngModel",b.userPreferences.notificationPreferences.starredPriority),B(),Qf(b.priorities),
B(3),I("checked",b.userPreferences.notificationPreferences.excludeChangesByMe))},dependencies:[mC,PB,WB,DB,qB,BB,tB,qT,pT,hI,GA,aU,$T,lS,hK,MA,Xyd],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 d9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,d9d.messageId)};Z(d9d,X);d9d.prototype.getSubscriptionsList=function(){return Wi(this,Jr,1,Xi(),fb)};d9d.messageId="b.ListSloReportSubscriptionsResponse";var u9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,u9.messageId)};Z(u9,X);u9.prototype.getSubscription=function(){return Y(this,Jr,1,fb)};u9.prototype.setSubscription=function(a){return hj(this,Jr,1,a,fb)};u9.messageId="b.SloReportSubscriptionRequest";var v9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,0,v9.messageId)};Z(v9,X);v9.prototype.getSubscription=function(){return Y(this,Jr,1,fb)};v9.prototype.setSubscription=function(a){return hj(this,Jr,1,a,fb)};v9.messageId="b.SloReportSubscriptionResponse";var w9=function(){this.executor=q(RM)};h=w9.prototype;h.get=function(a){return this.executor.get({url:"action/slo_report_subscriptions/"+a,responseConstructor:v9}).pipe(A(function(b){if(b=b.getSubscription())return d7a(b);throw Error("Kg");}))};h.list=function(){return this.executor.get({url:"action/slo_report_subscriptions",responseConstructor:d9d}).pipe(A(function(a){return a.getSubscriptionsList().map(d7a)}))};
h.create=function(a){if(a.id!==0)throw Error("Lg");return this.executor.post({url:"action/slo_report_subscriptions",body:(new u9).setSubscription(e7a(a)),responseConstructor:v9}).pipe(A(function(b){if(b=b.getSubscription())return d7a(b);throw Error("Ig");}))};
h.update=function(a){if(a.id===0)throw Error("Mg");return this.executor.post({url:"action/slo_report_subscriptions/"+a.id,body:(new u9).setSubscription(e7a(a)),responseConstructor:v9}).pipe(A(function(b){if(b=b.getSubscription())return d7a(b);throw Error("Ig");}))};h.delete=function(a){return this.executor.delete({url:"action/slo_report_subscriptions/"+a,responseConstructor:fN}).pipe(A(function(){}))};w9.\u0275fac=function(a){return new (a||w9)};w9.\u0275prov=Cc({token:w9,factory:w9.\u0275fac,providedIn:"root"});var e9d=["sloSubscriptionDialog"],x9=function(){LO.apply(this,arguments);var a=this;this.dateFormatter=q(gR);this.api=q(w9);this.currentUser=q(Y1);this.dialog=q(gB);this.timeZones=q(RQ);this.confirmationDialogService=q(PQ);this.principalTypes=q(oP);this.analytics=q(PO);this.butterBar=q(JM);this.constants=q(SQ);this.activeSession=q(Zu);this.subscriptions$=new Xj([]);this.isBasicMode$=this.subscriptions$.pipe(A(function(b){return b.length===0||b.length===1&&b[0].lead.emailAddress===a.currentUser.email}));
this.userSubscription$=this.subscriptions$.pipe(A(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:f9d[9].timeOfDay,daysRemaining:0,types:["BUG","CUSTOMER_ISSUE","VULNERABILITY","PRIVACY_ISSUE"],sloIds:[]}}));this.isThinking$=new Xj(!1);this.inputHasFocus=!1;this.repeatAtOptions$=
he(f9d.map(function(b){return be(a.dateFormatter.format("HH:mma",void 0,b.date)).pipe(A(function(c){return{timeOfDay:b.timeOfDay,display:c}}))}));this.ceoSelected=this.dialogInvalidEmailFormat=!1;this.emailToUser=Sm;this.columns=["scope","frequency","actions"];this.frequencyDisplayMap=new Map(g9d.map(function(b){return[b.frequency,b.display]}));this.timeZoneDisplayMap$=Esd(this.timeZones).pipe(mf(1),A(function(b){return new Map(b.map(function(c){return[c.id,c.displayName]}))}),wf({bufferSize:1,refCount:!0}));
this.hourOfDayDisplayMap$=this.repeatAtOptions$.pipe(mf(1),A(function(b){return new Map(b.map(function(c){return[c.timeOfDay.hours,c.display]}))}),wf({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")}]};Z(x9,LO);x9.\u0275dir=LO.\u0275dir;x9.prototype.ngOnInit=function(){h9d(this)};
var Bqc=function(a){a.userSubscription$.pipe(mf(1),zf(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(){h9d(a)})},h9d=function(a){a.isThinking$.next(!0);a.api.list().pipe(mf(1)).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)})},Xu=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");h9d(a);a.newSloId=void 0},function(c){c.status===404&&(a.butterBar.showWarning("Subscription does not exist"),h9d(a))})},i9d=function(a,b){a.isThinking$.next(!0);a.api.delete(b.id).subscribe(function(){a.analytics.trackEvent("sloReports","deleteSubscription");h9d(a)})};h=x9.prototype;
h.openConfirmDeleteDialog=function(a){var b=this;this.confirmationDialogService.open({title:"Delete a subscription",content:Dh("You will no longer receive reports from '"+a.lead.emailAddress+"'."),confirmButtonText:"Delete",isDestructive:!0,onConfirm:function(){i9d(b,a)}})};h.setFrequency=function(a,b){b.frequency=a;a!=="daily"?b.ordinal=1:delete b.ordinal;Xu(this,b)};h.setTimeZone=function(a,b){Xu(this,Object.assign({},b,{timeZone:Object.assign({},b.timeZone,{id:a})}))};
h.setDaysRemaining=function(a){if(this.inputDaysRemaining!==a.daysRemaining){var b;Xu(this,Object.assign({},a,{daysRemaining:(b=this.inputDaysRemaining)!=null?b:0}))}};h.setIssueType=function(a,b){Xu(this,Object.assign({},b,{types:a}))};
var zqc=function(a,b){a.newSloId&&!b.sloIds.includes(a.newSloId)&&Xu(a,Object.assign({},b,{sloIds:[].concat(n(b.sloIds),[a.newSloId])}))},wqc=function(a,b,c){if(b.sloIds.includes(c)){var d=b.sloIds.filter(function(e){return e!==c});Xu(a,Object.assign({},b,{sloIds:d}))}},Vqc=function(a,b){a.newSloId&&!b.sloIds.includes(a.newSloId)&&(b.sloIds.push(a.newSloId),a.newSloId=void 0)},Sqc=function(a,b){if(a.sloIds.includes(b)){var c=a.sloIds.filter(function(d){return d!==b});a.sloIds=c}};
x9.prototype.openDialog=function(a){this.sloSubscriptionDialog&&(a||(a={id:0,frequency:"weekly",ordinal:1,timeZone:{id:"America/Los_Angeles"},timeOfDay:f9d[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:Hm(a),panelClass:"slo-report-subscription-dialog",width:"500px"}))};
var Wqc=function(a,b){return y(function(c){if(c.nextAddress==1)return a.dialogRef&&b.lead!==void 0?z(c,j9d(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");h9d(a)}):Xu(a,b);a.dialogRef.close();$d(c)})},j9d=function(a,
b){var c;return y(function(d){if(d.nextAddress==1)return so(b)?z(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))})};x9.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(x9)))(b||x9)}}();
x9.\u0275cmp=C({type:x9,selectors:[["b-slo-reports-settings"]],viewQuery:function(a,b){a&1&&kg(e9d,7);if(a&2){var c;og(c=pg())&&(b.sloSubscriptionDialog=c.first)}},features:[Ff],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"],[3,"emailChange","asMatInput","email","required","placeholder"],["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=t();F(0,Dqc,11,3);U(1,"async");K(2,"div",2)(3,"div",3)(4,"p",4);S(5,"Advanced settings");L();K(6,"p",5);S(7," Add subscriptions to receive other user's reports. ");
K(8,"a",6);S(9,"Learn more");L()()();K(10,"div",7)(11,"div",8)(12,"button",9);U(13,"async");N("click",function(){u(c);return v(b.openDialog())});S(14," Create subscription ");L()();F(15,Eqc,1,0,"b-spinner");U(16,"async");F(17,Oqc,12,3,"table",10);U(18,"async");U(19,"async");L()();E(20,Xqc,42,16,"ng-template",null,0,Og)}a&2&&(G(W(1,4,b.isBasicMode$)?0:-1),B(12),I("disabled",W(13,6,b.isThinking$)),B(3),G(W(16,8,b.isThinking$)?15:-1),B(2),G(W(18,10,b.isBasicMode$)||W(19,12,b.isThinking$)?-1:17))},dependencies:[q9,
mC,xi,YB,PB,WB,ZA,XA,TA,VA,DB,qB,BB,tB,sB,rB,qC,EB,oC,OJ,NJ,LF,JF,OF,qT,pT,hI,GA,aU,$T,lS,GW,FW,QS,DS,JS,FS,CS,LS,GS,IS,MS,OS,hK,mB,hB,lB,kB,iz,MA,t_,VS,py],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 g9d=[{frequency:"daily",display:"Daily"},{frequency:"weekly",display:"Weekly"},{frequency:"monthly",display:"Monthly"}],Iqc=[{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"}],f9d=[].concat(n(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 y9=function(){this.activeSession=q(Zu);this.location=q(US);this.routeParams=q(hR);this.isInternalSession=this.activeSession.isInternalSession();this.selectedTabIndex=0};y9.prototype.ngAfterViewInit=function(){this.selectedTabIndex=k9d(this,this.routeParams.settingsTab)};y9.prototype.tabChange=function(a){if(this.selectedTabIndex!==a){this.selectedTabIndex=a;var b,c,d=(b=this.tabs)==null?void 0:(c=b.get(a))==null?void 0:c.id;d?this.location.setUrl(zs.settingsTab.makeHref(d)):this.location.setUrl(zs.settings.makeHref())}};
var k9d=function(a,b){a=a.tabs.toArray().findIndex(function(c){return c.id===b});return a<0?0:a};y9.\u0275fac=function(a){return new (a||y9)};
y9.\u0275cmp=C({type:y9,selectors:[["b-settings"]],viewQuery:function(a,b){a&1&&kg(YK,5);if(a&2){var c;og(c=pg())&&(b.tabs=c)}},decls:10,vars:2,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&&(K(0,"p",0),S(1,"Settings"),L(),K(2,
"mat-tab-group",1),N("selectedIndexChange",function(c){return b.tabChange(c)}),K(3,"mat-tab",2),E(4,Yqc,2,0,"ng-template",3),L(),K(5,"mat-tab",4),E(6,Zqc,2,0,"ng-template",3),L(),K(7,"mat-tab",5),E(8,$qc,2,0,"ng-template",3),L(),F(9,brc,2,0,"mat-tab",6),L());a&2&&(B(2),I("selectedIndex",b.selectedTabIndex),B(7),G(b.isInternalSession?9:-1))},dependencies:[r9,s9,cL,bL,UK,YK,ZK,t9,x9],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 l9d=function(){this.activatedRoute=q(Wj);this.routeParams=q(hR);this.issueId=this.routeParams.issueId;this.attachmentId=this.routeParams.attachmentId;this.mimeType=Iab(this.activatedRoute.snapshot.queryParamMap).mimeType};l9d.\u0275fac=function(a){return new (a||l9d)};
l9d.\u0275cmp=C({type:l9d,selectors:[["view-attachment-page"]],decls:1,vars:3,consts:[[3,"issueId","attachmentId","mimeType"]],template:function(a,b){a&1&&M(0,"attachment-preview",0);a&2&&I("issueId",b.issueId)("attachmentId",b.attachmentId)("mimeType",b.mimeType)},dependencies:[cZ],encapsulation:2});var z9=function(){LO.apply(this,arguments);this.cdr=q(MO,{self:!0});this.routeParams=q(hR);this.bLocation=q(US);this.pageTitle=q(w1);this.userApi=q(TN);this.bookmarkGroupsApi=q(lN);this.paths=q(wV);this.appEvents=q(DN);this.activeSession=q(Zu);this.isStarred=!1;this.userEmail=this.activeSession.getUserEmail();this.bookmarkGroup=null};Z(z9,LO);z9.\u0275dir=LO.\u0275dir;h=z9.prototype;
h.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)}))};h.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)};
h.openEditBookmarkGroup=function(){this.bLocation.setUrl(this.paths.editBookmarkGroup(this.bookmarkGroup.bookmarkGroupId))};h.getUserEmail=function(){return this.userEmail};h.isEditable=function(){return!!this.bookmarkGroup&&!!this.userIsAdmin};h.getUrl=function(a){switch(a.resourceType){case "SAVED_SEARCH":return this.paths.viewSavedSearch(a.savedSearchId);case "HOTLIST":return zs.viewHotlist.makeHref(a.hotlistId);default:throw Error("Ng`"+a.resourceType);}};
h.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("Ng`"+a.resourceType);}};z9.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(z9)))(b||z9)}}();
z9.\u0275cmp=C({type:z9,selectors:[["view-bookmark-group-page"]],features:[Ig([MO]),Ff],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&&(K(0,"h2",0),S(1),L(),M(2,"div",1),K(3,"div",2),F(4,frc,13,3,"div"),L());a&2&&(B(),T("View Bookmark Group ",b.bookmarkGroup==null?null:b.bookmarkGroup.name),B(2),Jf("aria-busy",!b.bookmarkGroup),B(),G(b.bookmarkGroup?4:-1))},dependencies:[hK,MA,yV],encapsulation:2});var m9d=function(){};
m9d.\u0275fac=function(a){return new (a||m9d)};m9d.\u0275mod=$e({type:m9d});m9d.\u0275inj=Dc({imports:[FN,g1,iK,z9]});var A9=function(){w8.apply(this,arguments);this.ngZone=q(Tg);this.userApi=q(TN);this.hotlists=q(G4);this.hotkeys=q(dT);this.pageTitle=q(w1);this.userAccess=q(lO);this.routeParams=q(hR);this.mcPrefs=q(w0);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};Z(A9,w8);A9.\u0275dir=w8.\u0275dir;
A9.prototype.ngOnInit=function(){var a=this;w8.prototype.ngOnInit.call(this);this.subscriptions.add(eT(this.hotkeys,{title:"Hotlist",hotkeys:[].concat(n(this.BASE_HOTKEYS),[{keys:[js("j")],displayAs:"Shift+j",description:"Move the current issue down (when sorting by POS)",onPress:function(){n9d(a,1)}},{keys:[js("k")],displayAs:"Shift+k",description:"Move the current issue up (when sorting by POS)",onPress:function(){n9d(a,-1)}}])}));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(b){b&&
Number(b.hotlistId)===Number(a.hotlistId)&&b.origin!=="view-hotlist"&&o9d(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)};
A9.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)}};
A9.prototype.loadUserAccess=function(a){var b=this;mO(this.userAccess,"admin","hotlists/"+a).then(function(c){b.isAdmin=c},function(c){b.errorHandler.errorHandler(null,c)});mO(this.userAccess,"appender","hotlists/"+a).then(function(c){b.canAppend=c},function(c){b.errorHandler.errorHandler(null,c)})};
A9.prototype.getIssues=function(){var a=this;this.searchResults=null;this.isLoading=!0;Lwd(this.appSearchState,"hotlistid:"+this.hotlistId);var b=this.hotlist?Promise.resolve(this.hotlist):o9d(this);return this.doSearch(b).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
var o9d=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};
A9.prototype.doSearch=function(a){var b=this,c=HXd.map(ou).filter(ln),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=Hm(f);f.query=d;f.returnUrl=b.bLocation.getUrl();f.hotlistId=b.hotlistId;f.trackerIds=b.appSearchState.currentTrackerScope;return HTd(b.issuePagination,f)});a.then(function(f){N6d(b,
f)}).catch(function(f){typeof f==="number"?j4(b.urlPreferences,{page:f}):b.errorHandler.errorHandler(null,f)});return Fs({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,p9d(b)?A9.META_COLUMNS_DRAGGABLE:A9.META_COLUMNS);b.loadHotlists();b.cdr.detectChanges()}).catch(function(){})};
var p9d=function(a){return a.sortPreferences.length===0||a.sortPreferences.length===1&&a.sortPreferences[0].fieldId.type==="POSITION"};A9.prototype.getCsvUrl=function(){var a=this.appSearchState.currentTrackerScope,b=this.displayColumns,c=this.showHotlists,d="action/hotlists/"+this.hotlistId+"/issues/csv",e=fhb(this.sortPreferences);(b=ghb(b))&&(b="position,"+b);return Qva(d,"trackerIds",a,"s",e,"c",b,"h",c)};
A9.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 n9d=function(a,b){if(a.searchResults&&!a.repositioning&&p9d(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||HWb(f)}else if(b===-1){var g;(g=a.resultsGrid)==null||IWb(g)}a.repositionIssue(e,c,!0)}}};h=A9.prototype;
h.save=function(){var a=this;if(this.hotlist){var b=this.hotlist,c=this.urlPreferences.getDisplayColumns();if(c){var d=x5a(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}});fs(this.butterBar,"Saving changes to hotlist...");q9d(this,b).then(function(e){fs(a.butterBar,'Saved changes to hotlist "'+
e.name+'".');j4(a.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null});a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"savedParams",d)})}};h.discardChanges=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"discardChanges");j4(this.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null})};h.hasParamChanges=function(){return this.hotlist&&this.isEditable()?!(!this.urlPreferences.getSortColumns()&&!this.urlPreferences.getDisplayColumns()):!1};
h.isEditable=function(){return this.hotlist!=null&&this.isAdmin};h.isDirectAdmin=function(){return this.hotlist?Pm(this.hotlist.adminUsers).includes(this.currentUserEmail):!1};h.setSort=function(a,b){var c=this.getSort();a==="position"||c&&c.field==="position"?w8.prototype.setSort.call(this,a,b,!1):w8.prototype.setSort.call(this,a,b)};
var q9d=function(a,b){return a.hotlistApi.updateMetadata(b.hotlistId,b).then(function(c){a.hotlist=c;r9d(a,c.hotlistId);return c},function(c){a.errorHandler.errorHandler(null,c);return Promise.reject(c)})},r9d=function(a,b){a.appEvents.hotlistChanged.next({hotlistId:b,origin:"view-hotlist"})};
A9.prototype.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=Nm(this.hotlistId),c=function(){r9d(a,b)};this.isStarred?this.userApi.addUserBookmark({resourceType:"HOTLIST",resourceId:b}).then(c):this.userApi.removeUserBookmark({resourceType:"HOTLIST",resourceId:b}).then(c)};A9.prototype.openEditHotlist=function(){this.bLocation.setUrl(zs.editHotlist.makeHref(this.hotlistId))};A9.prototype.addToMissionControl=function(a){a!=null&&(this.mcPrefs.addHotlist(a),this.bLocation.setUrl(this.paths.home()))};
A9.prototype.showAddToMcButton=function(a){var b=this.activeSession.isInternalSession();a=a<=500;var c=!this.mcPrefs.hasHotlist(this.hotlistId);return b&&a&&c};A9.META_COLUMNS=[bZd,dZd,eZd,fZd];A9.META_COLUMNS_DRAGGABLE=[bZd,cZd,dZd,eZd,fZd];A9.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(A9)))(b||A9)}}();
A9.\u0275cmp=C({type:A9,selectors:[["view-hotlist-page"]],features:[Ig([MO]),Ff],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&&(K(0,"div",0)(1,"b-grid-controls",1),N("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()}),L(),F(2,hrc,1,1),K(3,"div",2)(4,"b-pagination",3),N("pageChange",function(d){return b.goToPage(d.page)})("resultsPerPageChange",
function(d){return b.saveResultsPerPage(d.option)}),L()()(),K(5,"div",4),F(6,rrc,9,7,"div",5),F(7,src,4,1,"div",6),F(8,vrc,3,2,"div",7),F(9,wrc,2,6,"div",8),L());if(a&2){var c;B();I("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices)("showHotlistButtons",b.canAppend)("currentHotlistId",b.hotlistId)("isHotlistAdmin",b.isAdmin);B();G((c=b.searchResults==null?null:b.searchResults.numResults)?2:-1,c);B(2);I("searchResults",b.searchResults);B();Jf("aria-busy",b.isLoading);B();G(b.isInitializing?-1:
6);B();G(b.isLoading?7:-1);B();G(b.isLoading||b.hasResults()?-1:8);B();G(!b.isLoading&&b.hasResults()?9:-1)}},dependencies:[kW,ZA,XA,TA,hK,W3,T3,MA,H4,VS,yV],encapsulation:2});var s9d=function(){};s9d.\u0275fac=function(a){return new (a||s9d)};s9d.\u0275mod=$e({type:s9d});s9d.\u0275inj=Dc({imports:[f4,I4,g1,F4,iK,FN,XS,lW,ZA,mC,iT,c1,q0,A9]});var B9=function(){w8.apply(this,arguments);this.savedSearchApi=q(XN);this.hotkeys=q(dT);this.pageTitle=q(w1);this.userAccess=q(lO);this.routeParams=q(hR);this.mcPrefs=q(w0);this.ANALYTICS_CATEGORY="savedSearchIssues";this.isAdmin=!1;this.savedSearchId=this.routeParams.savedSearchId;this.savedSearch=null;this.isLoading=!0;this.showHotlists=!1};Z(B9,w8);B9.\u0275dir=w8.\u0275dir;h=B9.prototype;
h.ngOnInit=function(){var a=this;w8.prototype.ngOnInit.call(this);this.subscriptions.add(eT(this.hotkeys,{title:"Saved Search",hotkeys:this.BASE_HOTKEYS}));this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(function(b){b&&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(Swd(this.appSearchState,function(b){a.savedSearch?j4(a.urlPreferences,{query:b}):(b=a.paths.listIssues({q:b}),a.bLocation.setUrl(b))}));this.loadUserAccess(this.savedSearchId)};h.loadUserAccess=function(a){var b=this;mO(this.userAccess,"admin","savedSearches/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
h.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};
h.getIssues=function(){var a=this,b=this.urlPreferences.getQuery()||"savedsearchid:"+this.savedSearchId;Lwd(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()})};
h.doSearch=function(a){var b=this;a=this.gridPreferencesFetcher.fetch({resultsPerPage:25,page:1,query:"",sortColumns:[],displayColumns:I6d(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;Lwd(b.appSearchState,d.query);b.exitLink=b.paths.listIssues({q:d.query});b.cdr.detectChanges();d=Hm(d);d.returnUrl=b.bLocation.getUrl();d.trackerIds=
b.appSearchState.currentTrackerScope;return HTd(b.issuePagination,d)});c.then(function(d){N6d(b,d)}).catch(function(d){typeof d==="number"?j4(b.urlPreferences,{page:d}):d&&b.errorHandler.errorHandler(null,d)});this.initColumns(a.displayColumns);return Fs({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(){})};
h.isEditable=function(){return!!this.savedSearch&&this.isAdmin};h.getCsvUrl=function(){return hhb(this.searchParams.query,this.appSearchState.currentTrackerScope,this.sortPreferences,this.displayColumns,this.showHotlists)};
h.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;fs(this.butterBar,"Saving changes to search...");this.savedSearchApi.update(this.savedSearch.searchId,this.savedSearch).then(function(c){fs(a.butterBar,'Saved changes to search "'+
c.name+'".');a.savedSearch=c;j4(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)})};h.discardChanges=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"discardChanges");j4(this.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null})};
h.hasParamChanges=function(){return this.savedSearch?!!(this.urlPreferences.getQuery()&&this.urlPreferences.getQuery()!==this.savedSearch.query||this.urlPreferences.getSortColumns()||this.urlPreferences.getDisplayColumns()):!1};h.openEditSavedSearch=function(){this.bLocation.setUrl(this.paths.editSavedSearch(this.savedSearchId))};h.addToMissionControl=function(a){a!=null&&(wRd(this.mcPrefs,HAb(a)),this.bLocation.setUrl(this.paths.home()))};
h.showAddToMcButton=function(a){var b=this.activeSession.isInternalSession();a=a<=500;var c=!this.mcPrefs.hasSavedSearch(this.savedSearchId);return b&&a&&c};B9.\u0275fac=function(){var a;return function(b){return(a||(a=Ed(B9)))(b||B9)}}();
B9.\u0275cmp=C({type:B9,selectors:[["view-saved-search-page"]],features:[Ig([MO]),Ff],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&&(K(0,"div",0)(1,"b-grid-controls",1),N("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()}),L(),F(2,yrc,1,1),K(3,"div",2)(4,"b-pagination",3),N("pageChange",function(d){return b.goToPage(d.page)})("resultsPerPageChange",
function(d){return b.saveResultsPerPage(d.option)}),L()()(),K(5,"div",4)(6,"div",5),F(7,Erc,3,1,"div",6),F(8,Grc,7,2,"div",7),L(),F(9,Mrc,3,1,"div"),L());if(a&2){var c;B();I("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices);B();G((c=b.searchResults==null?null:b.searchResults.numResults)?2:-1,c);B(2);I("searchResults",b.searchResults);B();Jf("aria-busy",b.isLoading);B(2);G(b.isInitializing?-1:7);B();G(b.hasParamChanges()?8:-1);B();G(b.savedSearch?9:-1)}},dependencies:[kW,ZA,XA,TA,hK,W3,v3,T3,
MA,H4,VS],encapsulation:2});var t9d=function(){};t9d.\u0275fac=function(a){return new (a||t9d)};t9d.\u0275mod=$e({type:t9d});t9d.\u0275inj=Dc({imports:[f4,I4,F4,FN,iK,XS,lW,ZA,mC,iT,c1,q0,v3,B9]});var u9d={path:zs.viewIssue.routeDeclarationPath,component:Q7,children:[{path:"",pathMatch:"full",component:j8},{path:"dependencies",component:X0},{path:"dupes",component:S7},{path:"blocking",component:u7},{path:"resources",component:E6d}].concat(n(Yu("enableCodeMentionsUi",{path:"todos",component:u8})),n(Nrc(function(){var a=po();return FVa(a)==="INTERNAL"},{path:"insights",component:q6})))},v9d=[{path:"",component:E6,canActivateGuards:[K6]},{title:ru("Issues"),path:zs.listIssues.routeDeclarationPath,
component:x8},{title:ru("New issue"),path:zs.createIssue.routeDeclarationPath,component:m7,canActivateGuards:[Z6]}].concat(n(Nrc(function(){var a;if(a=AXa("enableChromeWizard")){var b;a=((b=po().tracker)==null?void 0:b.trackerId)==="157"}return a},{title:ru("New issue"),path:zs.createIssueChromeWizard.routeDeclarationPath,component:Y6})),[u9d,{title:ru("Browse All Components"),path:zs.listComponentsGlobal.routeDeclarationPath,component:r6},{title:ru("Browse Components"),path:zs.listComponents.routeDeclarationPath,
component:$6},{title:ru("Create component"),path:zs.createComponent.routeDeclarationPath,component:b7},{title:ru("Component"),path:zs.editComponent.routeDeclarationPath,component:R8},{path:"components/:componentId/manage",redirectTo:zs.editComponent.routeDeclarationPath},{path:"components/:componentId",redirectTo:zs.editComponent.routeDeclarationPath}],n(Yu("enableTeamScope",{title:ru("Triage"),path:zs.viewTriage.routeDeclarationPath,component:e1})),n(Yu("enableTeamScope",{title:ru("Triage"),path:zs.viewTriageDashboard.routeDeclarationPath,
component:n0})),n(Yu("enableTeamScope",{title:ru("Issue Themes"),path:zs.viewIssueThemes.routeDeclarationPath,component:l0})),n(Yu("enableTeamScope",{title:ru("Triage"),path:zs.triageSettings.routeDeclarationPath,component:i1})),n(Yu("enableTriageClientM1",{title:ru("Playbook"),path:zs.viewPlaybook.routeDeclarationPath,component:p9})),n(Yu("enableTriageClientM1",{title:ru("Manage playbooks"),path:zs.listPlaybooks.routeDeclarationPath,component:S6d})),[{title:ru("Team"),path:zs.editTeam.routeDeclarationPath,
component:S8},{path:"teams/:teamId",redirectTo:zs.editTeam.routeDeclarationPath},{title:ru("Create Bookmark Group"),path:zs.createBookmarkGroup.routeDeclarationPath,component:a7},{title:ru("Bookmark Group"),path:zs.viewBookmarkGroup.routeDeclarationPath,component:z9},{title:ru("Bookmark Group"),path:zs.editBookmarkGroup.routeDeclarationPath,component:q7},{title:ru("Create Hotlist"),path:zs.createHotlist.routeDeclarationPath,component:c7},{title:ru("Hotlist"),path:zs.viewHotlist.routeDeclarationPath,
component:A9},{title:ru("Edit Hotlist"),path:zs.editHotlist.routeDeclarationPath,component:b4},{title:ru("Create SLO"),path:zs.createSlo.routeDeclarationPath,component:o7},{title:ru("SLO"),path:zs.viewSlo.routeDeclarationPath,component:t7},{title:ru("SLO"),path:zs.editSlo.routeDeclarationPath,component:t7},{title:ru("Saved search"),path:zs.editSavedSearch.routeDeclarationPath,component:r7},{title:ru("All of my hotlists"),path:zs.listHotlists.routeDeclarationPath,component:v8},{title:ru("Manage SLOs"),
path:zs.listSlos.routeDeclarationPath,component:y8},{title:ru("Saved search"),path:zs.viewSavedSearch.routeDeclarationPath,component:B9},{title:ru("Dashboard"),path:zs.viewDashboard.routeDeclarationPath,component:p7},{title:ru("Settings"),path:zs.settingsTab.routeDeclarationPath,component:y9},{title:ru("Settings"),path:zs.settings.routeDeclarationPath,component:y9},{title:ru("View Attachment"),path:zs.viewAttachment.routeDeclarationPath,component:l9d,hideAppChrome:!0},{title:ru("Home"),path:zs.home.routeDeclarationPath,
component:o9,canActivateGuards:[J6]},{path:"**",component:E6,canActivateGuards:[K6]}]);var C9=function(){};C9.\u0275fac=function(a){return new (a||C9)};C9.\u0275mod=$e({type:C9});C9.\u0275inj=Dc({imports:[FN,YW,ZA,x7]});var w9d=function(){};w9d.\u0275fac=function(a){return new (a||w9d)};w9d.\u0275mod=$e({type:w9d});w9d.\u0275inj=Dc({imports:[FN,tT,AK,XW,C9,y7]});var x9d=function(){};x9d.\u0275fac=function(a){return new (a||x9d)};x9d.\u0275mod=$e({type:x9d});x9d.\u0275inj=Dc({imports:[FN,gT,ZA,pB,z7]});var y9d=function(){};y9d.\u0275fac=function(a){return new (a||y9d)};y9d.\u0275mod=$e({type:y9d});y9d.\u0275inj=Dc({imports:[WW,FN,G5d,gT,ZA,YJ,OJ,iK,V4,E4,m8,x9d,C7]});var z9d=function(){};z9d.\u0275fac=function(a){return new (a||z9d)};z9d.\u0275mod=$e({type:z9d});z9d.\u0275inj=Dc({imports:[FN,gT,ZA,iK,L5d]});var A9d=[M5d],B9d=function(){};B9d.\u0275fac=function(a){return new (a||B9d)};B9d.\u0275mod=$e({type:B9d});B9d.\u0275inj=Dc({imports:[B_,FN,iK,PK,aU,ZA,XS,SW,E4,VW,A9d]});var C9d=function(){};C9d.\u0275fac=function(a){return new (a||C9d)};C9d.\u0275mod=$e({type:C9d});C9d.\u0275inj=Dc({imports:[FN,dX,AK,LU,E7]});var D9d=function(){};D9d.\u0275fac=function(a){return new (a||D9d)};D9d.\u0275mod=$e({type:D9d});D9d.\u0275inj=Dc({imports:[w9d,dX,FN,o_,T_,gT,AK,ZW,Y_,C9,ZA,YJ,iK,g1,LU,C9d,z9d,y9d,B9d,F7]});var E9d=function(){};E9d.\u0275fac=function(a){return new (a||E9d)};E9d.\u0275mod=$e({type:E9d});E9d.\u0275inj=Dc({imports:[n8,FN,XS,ZA,wT,NA,M7,J7]});var F9d=function(){};F9d.\u0275fac=function(a){return new (a||F9d)};F9d.\u0275mod=$e({type:F9d});F9d.\u0275inj=Dc({imports:[FN,ZA,N7]});var D9=function(){};D9.\u0275fac=function(a){return new (a||D9)};D9.\u0275mod=$e({type:D9});D9.\u0275inj=Dc({imports:[FN,GU,ZA,iK,O7]});var E9=function(){};E9.\u0275fac=function(a){return new (a||E9)};E9.\u0275mod=$e({type:E9});E9.\u0275inj=Dc({imports:[v5,KI,ez,FN,wT,aA,tT,SW,mC,E9d,D9d,C4,R_,ZA,pB,FL,cL,iK,nC,T5d,E4,oT,F9d,D9,Q7]});var G9d=function(){};G9d.\u0275fac=function(a){return new (a||G9d)};G9d.\u0275mod=$e({type:G9d});G9d.\u0275inj=Dc({imports:[FN,s6,u8]});var H9d=function(){};H9d.\u0275fac=function(a){return new (a||H9d)};H9d.\u0275mod=$e({type:H9d});H9d.\u0275inj=Dc({imports:[FN,ez,KI,mC,nC,ZA,cL,oT,WW,E9,D6d,Y0,t5d,U5d,G9d,F6d]});var I9d=v9d.map(function(a){var b=a.redirectTo?void 0:[G6,I6].concat(n(a.canActivateGuards||[])),c;return{title:a.title,path:a.path,redirectTo:a.redirectTo,component:a.component,canDeactivate:[HX],canActivate:b,children:a.children,isRootRoute:!0,hideAppChrome:(c=a.hideAppChrome)!=null?c:!1}});I9d.push({path:"**",canActivate:["dontActivate"],component:E6,isRootRoute:!0,hideAppChrome:!1});
var J9d=po().appBaseHref,K9d,F9={initialNavigation:"disabled"},L9d=(F9==null?0:F9.errorHandler)?{provide:QUc,useValue:F9.errorHandler}:[],M9d=(F9==null?0:F9.useHash)?{provide:Ay,useClass:Cy}:{provide:Ay,useClass:By},N9d={provide:wVc,useFactory:function(){var a=q(NEc),b=q(tF);b.scrollOffset&&PEc(a,b.scrollOffset);return new HF(b)}},O9d=(F9==null?0:F9.preloadingStrategy)?Rza(0,[{provide:CVc,useExisting:GF},{provide:sVc,useExisting:F9.preloadingStrategy}]).\u0275providers:[],P9d;
(F9==null?0:F9.initialNavigation)?P9d=[F9.initialNavigation==="disabled"?Rza(3,[ala(function(){jVc(q(CF))}),{provide:BVc,useValue:2}]).\u0275providers:[],F9.initialNavigation==="enabledBlocking"?Rza(2,[{provide:MCc,useValue:!0},{provide:BVc,useValue:0},ala(function(){var a=q(xe);return a.get(JEc,Promise.resolve()).then(function(){return new Promise(function(b){var c=a.get(CF),d=a.get(AVc);Qza(c,function(){b(!0)});a.get(xF).afterPreactivation=function(){b(!0);return d.closed?be(void 0):d};c.initialNavigation()})})})]).\u0275providers:
[]]:P9d=[];var Q9d=P9d,R9d=(F9==null?0:F9.bindToComponentInputs)?Rza(8,[pF,{provide:oUc,useExisting:pF}]).\u0275providers:[],S9d;if(F9==null?0:F9.enableViewTransitions){we("NgRouterViewTransitions");var T9d=[{provide:OUc,useValue:Pza},{provide:Nza,useValue:Object.assign({},{skipNextTransition:!1},void 0)}];S9d=Rza(9,T9d).\u0275providers}else S9d=[];
K9d={ngModule:IF,providers:[DVc,[],{provide:Lza,multi:!0,useValue:[]},[],L9d,{provide:tF,useValue:F9?F9:{}},M9d,N9d,O9d,Q9d,R9d,S9d,[{provide:EVc,useFactory:function(){var a=q(xe);return function(b){var c=a.get(Yg);if(b===c.components[0]){b=a.get(CF);var d=a.get(AVc);a.get(BVc)===1&&b.initialNavigation();var e;(e=a.get(CVc,null,{optional:!0}))==null||tVc(e);var f;(f=a.get(wVc,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:PDc,multi:!0,useExisting:EVc}]]};var U9d=function(){var a=q(CF),b=q(JP);a.config=I9d.map(Hya);a.navigated=!1;a.initialNavigation();Upd(b)};U9d.\u0275fac=function(a){return new (a||U9d)};U9d.\u0275mod=$e({type:U9d});U9d.\u0275inj=Dc({providers:[{provide:"dontActivate",useValue:function(){return!1}},{provide:yF,useExisting:F6},{provide:MEc,useValue:J9d},I6,G6],imports:[K9d,s3d,H9d,IF]});var V9d=new bd("Environment");var W9d=new bd("Worktracker API Key");var X9d=new bd("G3C API Keys");var Y9d=function(){};Y9d.\u0275fac=function(a){return new (a||Y9d)};Y9d.\u0275mod=$e({type:Y9d});Y9d.\u0275inj=Dc({providers:[{provide:V9d,useFactory:Orc},{provide:X9d,useValue:{prodApiKey:"AIzaSyB9Ljnt9FDyfTnTH2yeDn6lGM40PQm6Gsk",stagingApiKey:"AIzaSyCYqhU0fWA9T487wYfx1ogB9z2mNJ9AQco",autopushApiKey:"AIzaSyBEveljwBki0sKCHdprNdJJPZrqTnIwIcM"}},{provide:W9d,useValue:"AIzaSyAVSCxcE30nYSaySrZXBXCTumqIjorZA2c"}]});var G9=function(a){this.lookupId_=a;this.displayName_="";this.forceDisplayNameOverride_=!1},Twc=function(a){return new G9(a)};G9.prototype.getId=function(){return this.lookupId_};G9.prototype.setDisplayName=function(a){this.displayName_=a;return this};G9.prototype.getDisplayName=function(){return this.displayName_};var Uwc=function(a,b){a.forceDisplayNameOverride_=b;return a};G9.prototype.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride_};
G9.prototype.equals=function(a){return a?this===a?!0:this.getId().equals(a.getId())&&this.getDisplayName()===a.getDisplayName()&&this.getForceDisplayNameOverride()===a.getForceDisplayNameOverride():!1};var Prc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Prc,X);Prc.prototype.setEnabled=function(a,b){return wc(this,1,zb,b,a,Ab,void 0,1)};Prc.prototype.setDisabled=function(a,b){wc(this,2,zb,b,a,Ab,void 0,1)};var Z9d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Z9d,X);h=Z9d.prototype;h.getEnableClearcut=function(){return $i(this,1)};h.setEnableClearcut=function(a){return jj(this,1,a)};h.getClientId=function(){return Ri(this,2)};h.setClientId=function(a){return Yn(this,2,a)};h.getSocialApplication=function(){return Ri(this,3)};h.getSocialApplicationOrUndefined=function(){return Op(this,3)};h.getComponentFlow=function(){return Ri(this,4)};
h.setComponentFlow=function(a){return Yn(this,4,a)};h.getInterfaceType=function(){return Ri(this,5)};h.setInterfaceType=function(a){return Yn(this,5,a)};var H9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(H9,X);H9.prototype.getEnableAutocompleteLegalese=function(){return $i(this,11)};var I9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(I9,X);I9.prototype.getApplication=function(){return Ri(this,1)};I9.prototype.setApplication=function(a){return Yn(this,1,a)};I9.prototype.getApplicationOrUndefined=function(){return Op(this,1)};I9.prototype.getIsEnabled=function(){return $i(this,2)};var $9d=[0,vC,-16];var a$d=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(a$d,X);h=a$d.prototype;h.getClearcut=function(){return Y(this,Z9d,1)};h.setClearcut=function(a){hj(this,Z9d,1,a)};h.hasClearcut=function(){return Si(this,Z9d,1)};h.getExperiments=function(){return Y(this,I9,2)};h.setExperiments=function(a){return hj(this,I9,2,a)};h.hasExperiments=function(){return Si(this,I9,2)};h.getEnableAutocompleteLegalese=function(){return $i(this,13,!0)};var b$d=pva(a$d);var c$d;var d$d=function(){var a=bwc(c$d||(c$d=b$d('[[true,49,740,4],[7,true],null,null,null,null,null,null,null,"core_features",[[3,4,1,5]],null,false,false]')));a.hasClearcut()||a.setClearcut(new Z9d);a.hasExperiments()||a.setExperiments(new I9);this.internal=a};var e$d=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};
e$d.prototype.create=function(a){for(var b=this,c=l(this.coreTypeOrder.filter(function(g){var k=b.configurationKey;return b.container.configurations.hasCoreType(g,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("Og");};
e$d.prototype.decorate=function(a,b,c){var d=this,e,f=(e=this.getCompatibleTypes(b))!=null?e:new Set;return this.decoratorTypeOrder.filter(function(g){var k=d.configurationKey;return d.container.configurations.hasDecoratorType(g,k===void 0?"\ud83c\udf68":k)&&f.has(g)}).map(function(g){return d.container.getDecoratorFactory(g)}).filter(function(g){return g==null?void 0:g.shouldCreate(c)}).reduce(function(g,k){return k.create(c,g)},a)};var f$d=function(){this.core=new Set;this.decorators=new Set};f$d.prototype.addCoreType=function(a){this.core.add(a)};f$d.prototype.addDecoratorType=function(a){this.decorators.add(a)};f$d.prototype.hasCoreType=function(a){return this.core.has(a)};f$d.prototype.hasDecoratorType=function(a){return this.decorators.has(a)};var g$d=function(){this.configurations=new Map};h=g$d.prototype;h.addCoreType=function(a,b){this.configurations.has(b)||this.configurations.set(b,new f$d);this.configurations.get(b).addCoreType(a)};
h.addDecoratorType=function(a,b){this.configurations.has(b)||this.configurations.set(b,new f$d);this.configurations.get(b).addDecoratorType(a)};h.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)))};h.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)))};
h.clear=function(){this.configurations.clear()};var h$d=function(){this.core=new Map;this.decorator=new Map};h=h$d.prototype;h.addCoreFactory=function(a,b){this.core.has(a)||this.core.set(a,b)};h.addDecoratorFactory=function(a,b){this.decorator.has(a)||this.decorator.set(a,b)};h.getCoreFactory=function(a){return this.core.get(a)};h.getDecoratorFactory=function(a){return this.decorator.get(a)};h.clear=function(){this.core.clear();this.decorator.clear()};
var J9=function(a){var b=this;var c=a.coreTypeOrder;var d=a.decoratorTypeOrder;var e=a.extractor;a=a.getCompatibleTypes;this.configurations=new g$d;this.factories=new h$d;this.coreTypeOrder=c;this.decoratorTypeOrder=d;this.extractor=e;this.getCompatibleTypes=a;i$d.set(this,function(){b.configurations.clear();b.factories.clear()})};
J9.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)};J9.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)};J9.prototype.getCoreFactory=function(a){return this.factories.getCoreFactory(a)};
J9.prototype.getDecoratorFactory=function(a){return this.factories.getDecoratorFactory(a)};var jtc=function(a,b){b=b===void 0?"\ud83c\udf68":b;return new e$d(a.coreTypeOrder,a.decoratorTypeOrder,a.getCompatibleTypes,a,a.extractor,b===void 0?"\ud83c\udf68":b)},i$d=new Map;var ev=new J9({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$d={},k$d={},l$d={},m$d={},n$d={},K9=function(){throw Error("Pg");};K9.prototype.contentDir=null;K9.prototype.getContent=function(){return this.content};K9.prototype.toString=function(){return this.content};K9.prototype.toSafeHtml=function(){if(this.contentKind!==j$d)throw Error("Qg");return sh(this.toString())};var o$d=function(){K9.call(this)};Ww(o$d,K9);o$d.prototype.contentKind=j$d;var p$d=function(){K9.call(this)};Ww(p$d,K9);p$d.prototype.contentKind=k$d;p$d.prototype.contentDir=1;var q$d=function(a){if(a!=null)switch(a.contentDir){case 1:return 1;case -1:return-1;case 0:return 0}return null},Ov=function(a){return L9(a,j$d)?a:a instanceof rh?Qv(uh(a).toString()):Qv(String(String(a)).replace(r$d,s$d),q$d(a))},Qv=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}}(o$d),t$d=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c){return new b(String(c))}}(p$d),
N9=function(a){return a instanceof M9?u$d(a)?!0:!!a.getContent():a instanceof K9?!!a.getContent():!!a},Lwc=function(a){return Ov(a)},Uv=function(a){return L9(a,j$d)?a:Qv(v$d(a,w$d),q$d(a))},x$d=RegExp("^<(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\\b"),v$d=function(a,b){if(!b)return Trc(String(a),function(){return""}).replace(y$d,"&lt;");a=String(a).replace(/\[/g,"&#91;");var c=[],d=[];a=Trc(a,function(f,g){if(g&&(g=g.toLowerCase(),b.hasOwnProperty(g)&&
b[g])){var k=c.length,m="</",r="";if(f.charAt(1)!=="/"){m="<";for(var w;w=z$d.exec(f);)if(w[1]&&w[1].toLowerCase()==="dir"){if(f=w[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")r=' dir="'+f+'"'}break}z$d.lastIndex=0}c[k]=m+g+">";d[k]=r;return"["+k+"]"}return""});a=String(a).replace(A$d,s$d);var e=B$d(c);a=a.replace(/\[(\d+)\]/g,function(f,g){return d[g]&&c[g]?c[g].substr(0,c[g].length-1)+d[g]+">":c[g]});return a+e},Rrc=RegExp.prototype.hasOwnProperty("sticky"),
Src=new RegExp((Rrc?"":"^")+"(?:!|/?([a-zA-Z][a-zA-Z0-9:-]*))",Rrc?"gy":"g"),C$d=function(a,b){a=a.replace(/<\//g,"<\\/").replace(/\]\]>/g,"]]\\>");return b?a.replace(/{/g," \\{").replace(/}/g," \\}").replace(/\/\*/g,"/ *").replace(/\\$/,"\\ "):a},B$d=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]="":x$d.test(e)||b.push("</"+
e.substring(1))}return b.reverse().join("")},Nv=function(a){L9(a,j$d)?(a=v$d(a.getContent()),a=String(a).replace(A$d,s$d)):a=String(a).replace(r$d,s$d);return a},D$d=function(a){L9(a,m$d)&&(a=a.getContent());return(a&&!a.startsWith(" ")?" ":"")+a},G$d=function(a){return String(a).replace(E$d,F$d)},Pv=function(a){L9(a,k$d)||L9(a,l$d)?a=String(a).replace(E$d,F$d):Ah(a)?a=G$d(Tqa(a)):a instanceof wh?a=G$d(yh(a).toString()):(a=String(a),a=H$d.test(a)?a.replace(E$d,F$d):"about:invalid#zSoyz");return a},
J$d=function(a){L9(a,k$d)||L9(a,l$d)?a=String(a).replace(E$d,F$d):Ah(a)?a=G$d(Tqa(a)):a instanceof wh?a=G$d(yh(a).toString()):(a=String(a),a=I$d.test(a)?a.replace(E$d,F$d):"about:invalid#zSoyz");return a},O9=function(a){return L9(a,n$d)?C$d(a.getContent(),!1):a==null?"":a instanceof Qqa?C$d(Rqa(a),!1):C$d(String(a),!0)},L9=function(a,b){return a!=null&&a.contentKind===b},M9=function(){K9.call(this)};Z(M9,o$d);
var Rv=function(a,b){a.parts!==void 0?a.parts.push(b):a.content+=b;return a},Tv=function(a,b){a.parts!==void 0?a.parts.push(b):b instanceof M9?b.content!==void 0?a.content+=b.getContent():(a.parts=[a.content,b],a.content=void 0):a.content+=b;return a};M9.prototype.getContent=function(){if(this.content!==void 0)return this.content;for(var a="",b=l(this.parts),c=b.next();!c.done;c=b.next())a+=c.value;return a};M9.prototype.toString=function(){return this.getContent()};
var u$d=function(a){var b;a=l((b=a.parts)!=null?b:[]);for(b=a.next();!b.done;b=a.next())if(b=b.value,b instanceof M9&&u$d(b))return!0;return!1},Sv=function(){function a(){this.content=""}a.prototype=M9.prototype;return function(){return new a}}(),K$d={"\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;"},s$d=function(a){return K$d[a]},L$d={"\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"},F$d=function(a){return L$d[a]},r$d=/[\x00\x22\x26\x27\x3c\x3e]/g,A$d=/[\x00\x22\x27\x3c\x3e]/g,E$d=/[\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,H$d=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,I$d=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^ftp:|^data:image\/[a-z0-9+-]+;base64,[a-z0-9+\/]+=*$|^blob:/i,M$d=/^(?!on|src|(?:action|archive|background|cite|classid|codebase|content|data|dsync|href|http-equiv|longdesc|style|usemap)\s*$)(?:[a-z0-9_$:-]*)$/i,
N$d=function(a){a=String(a);return M$d.test(a)?a:"zSoyz"},y$d=/</g,w$d={b:!0,br:!0,em:!0,i:!0,s:!0,strong:!0,sub:!0,sup:!0,u:!0},z$d=/([a-zA-Z][a-zA-Z0-9:\-]*)[\t\n\r\u0020]*=[\t\n\r\u0020]*("[^"]*"|'[^']*')/g;var Urc={};var bsc=function(a){var b=a.imageUrls,c=a.backupUrl,d=a.size,e=a.preloadSize,f=a.pixelRatio;a=Rv(Sv(),'<div class="'+Nv("peoplekitComponentsAvatarImplAvatarContainer")+'" style="width: '+Nv(O9(d))+"px; height: "+Nv(O9(d))+'px"><div peoplekit-id="'+Nv("YLEF4c")+'" class="'+Nv("peoplekitComponentsAvatarImplAvatar")+'" style="width: '+Nv(O9(d))+"px; height: "+Nv(O9(d))+'px">');b=b.length===1?Rv(Tv(Rv(Sv(),'<div class="'+Nv("peoplekitComponentsAvatarImplContainer")+'">'),P9(b[0],c,d,e,f)),"</div>"):b.length===
2?Rv(Tv(Rv(Tv(Rv(Tv(Rv(Sv(),'<div class="'+Nv("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Nv("peoplekitComponentsAvatarImplColumn")+'">'),P9(b[0],c,d,e,f)),"</div>"),O$d()),'<div class="'+Nv("peoplekitComponentsAvatarImplColumn")+'">'),P9(b[1],c,d,e,f)),"</div></div>"):b.length===3?Rv(Tv(Rv(Tv(Rv(Tv(Rv(Tv(Rv(Tv(Rv(Sv(),'<div class="'+Nv("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Nv("peoplekitComponentsAvatarImplColumn")+'">'),P9(b[0],c,d,e,f)),"</div>"),O$d()),'<div class="'+
Nv("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Nv("peoplekitComponentsAvatarImplRow")+'">'),P9(b[1],c,Math.round(d*.5),e,f)),"</div>"),O$d()),'<div class="'+Nv("peoplekitComponentsAvatarImplRow")+'">'),P9(b[2],c,Math.round(d*.5),e,f)),"</div></div></div>"):Rv(Tv(Rv(Tv(Rv(Tv(Rv(Tv(Rv(Tv(Rv(Tv(Rv(Tv(Rv(Sv(),'<div class="'+Nv("peoplekitComponentsAvatarImplContainer")+'"><div class="'+Nv("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Nv("peoplekitComponentsAvatarImplRow")+'">'),P9(b[0],
c,Math.round(d*.5),e,f)),"</div>"),O$d()),'<div class="'+Nv("peoplekitComponentsAvatarImplRow")+'">'),P9(b[2],c,Math.round(d*.5),e,f)),"</div></div>"),O$d()),'<div class="'+Nv("peoplekitComponentsAvatarImplColumn")+'"><div class="'+Nv("peoplekitComponentsAvatarImplRow")+'">'),P9(b[1],c,Math.round(d*.5),e,f)),"</div>"),O$d()),'<div class="'+Nv("peoplekitComponentsAvatarImplRow")+'">'),P9(b[3],c,Math.round(d*.5),e,f)),"</div></div></div>");b=Tv(Sv(),b);return Rv(Tv(Rv(Tv(a,b),'</div><div peoplekit-id="'+
Nv("Btuy5e")+'" class="'+Nv("peoplekitComponentsAvatarImplAvatarBadge")+'">'),Qv('<img class="'+Nv("peoplekitComponentsAvatarImplBadgeIconImage")+'" peoplekit-id="'+Nv("m6fZne")+'" draggable="false" alt="">')),"</div></div>")},P9=function(a,b,c,d,e){var f=Rv(Sv(),'<div peoplekit-id="'+Nv("IHgMKc")+'" class="'+Nv("peoplekitComponentsAvatarImplImageRoot")+'">'),g=Pv(rwd(a,c,c,e));g=t$d(g);a=Pv(rwd(a,d,d,e));a=t$d(a);b=Pv(rwd(b,c,c,e));b=t$d(b);g=Rv(f,'<img peoplekit-id="'+Nv("HiaYvf")+'" class="'+Nv("peoplekitComponentsAvatarImplImage")+
'" style="width: '+Nv(O9(c))+"px; height: "+Nv(O9(c))+'px;" data-preload-src="'+Nv(a)+'" data-src="'+Nv(g)+'" data-backup-src="'+Nv(b)+'" draggable="false" alt="">');c=Qv('<svg xmlns="http://www.w3.org/2000/svg" height="'+Nv(c)+'px" viewBox="0 0 24 24" width="'+Nv(c)+'px" class="'+Nv("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>');
Rv(Tv(g,c),"</div>");return f},O$d=function(){return Qv('<div class="'+Nv("peoplekitComponentsAvatarImplDivider")+'"></div>')};var P$d=new Map([[0,"light_theme"],[1,"dark_theme"]]);var Xrc=!pv&&!nba();var Q$d=new Map([[1,"badge_active"],[2,"badge_inactive"],[3,"badge_idle"],[4,"badge_do_not_disturb"],[5,"badge_video"]]),R$d=new Map([[1,"Active."],[2,"Inactive."],[3,"Idle."],[4,"Do Not Disturb."],[5,"In Video Call."]]),dsc=function(a,b){this.appearance=b;this.root=a;S$d(this)};h=dsc.prototype;
h.setBadge=function(a){var b=av(this.root,"Btuy5e");if(a.badgeType===0)b.classList.remove("visible");else{var c=Q$d.get(a.badgeType)||"";if(c){var d=this.appearance.getTheme();c="https://www.gstatic.com/people/peoplekit/icons/"+(P$d.get(d)||"light_theme")+"/"+c+".svg"}else c="";a=R$d.get(a.badgeType)||"";d=av(b,"m6fZne");c&&(d.src=c);d.alt=a;b.classList.add("visible")}};h.getAllIds=function(){return[]};h.updateWaldo=function(){};h.updateHubAvailabilityDot=function(){};
h.getSupportedIntelligenceFeatures=function(){return[]};h.initializeIntelligence=function(){};
var S$d=function(a){a=l(Vrc(a.root,"IHgMKc"));for(var b=a.next(),c={};!b.done;c={img$jscomp$13:void 0,src$jscomp$70:void 0,imageRoot:void 0,backupSrc:void 0},b=a.next())c.imageRoot=b.value,c.img$jscomp$13=av(c.imageRoot,"HiaYvf"),b=Zrc(c.img$jscomp$13,"preloadSrc"),c.src$jscomp$70=Zrc(c.img$jscomp$13,"src"),c.backupSrc=Zrc(c.img$jscomp$13,"backupSrc"),$rc(c.src$jscomp$70)?c.img$jscomp$13.src=c.src$jscomp$70:$rc(b)?(c.img$jscomp$13.src=b,ht(function(d){return function(){d.img$jscomp$13.src=d.src$jscomp$70}}(c),
0)):(c.imageRoot.classList.add("isLoading"),c.img$jscomp$13.onload=function(d){return function(){d.imageRoot.classList.remove("isLoading")}}(c),c.img$jscomp$13.onerror=function(d){return function(){d.img$jscomp$13.getAttribute("src")===d.backupSrc?(d.img$jscomp$13.onerror=null,d.imageRoot.classList.remove("isLoading"),d.imageRoot.classList.add("isNotLoaded")):d.img$jscomp$13.src=d.backupSrc}}(c),c.img$jscomp$13.src=c.src$jscomp$70)};var asc=function(){this.style=this.theme=this.density=0};h=asc.prototype;h.getDensity=function(){return this.density};h.setDensity=function(a){this.density=a};h.getTheme=function(){return this.theme};h.setTheme=function(a){this.theme=a};h.getStyle=function(){return this.style};h.setStyle=function(a){this.style=a};var msc=yt.getInstance();var osc=function(a){a=a.memberCount;return(new em("{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 tsc=yt.getInstance();var vsc=function(a,b,c){var d=this;this.root=a;this.selection=b;this.selectionsState=c;this.isDisabledInternal=!1;this.deleteButton=av(this.root,"bxvLg");this.eventHandler=dv(this);this.eventHandler.listen(this.deleteButton,"click",function(){d.onDeleteButtonClick()})};h=vsc.prototype;h.onDeleteButtonClick=function(){this.selectionsState.deselect(this.selection,8)};h.toggleSelection=function(){};h.activate=function(){this.root.classList.add("isActive");this.root.setAttribute("aria-selected","true")};
h.deactivate=function(){this.root.classList.remove("isActive");this.root.setAttribute("aria-selected","false")};h.isActive=function(){return this.root.classList.contains("isActive")};h.spotlight=function(){this.root.classList.add("isSpotlit")};h.unspotlight=function(){this.root.classList.remove("isSpotlit")};h.disable=function(){this.root.classList.add("isDisabled");this.isDisabledInternal=!0};h.enable=function(){this.root.classList.remove("isDisabled");this.isDisabledInternal=!1};h.isDisabled=function(){return this.isDisabledInternal};
h.drag=function(){this.root.classList.add("isDragged")};h.undrag=function(){this.root.classList.remove("isDragged")};h.edit=function(){};h.unedit=function(){};h.dispose=function(){this.eventHandler.removeAll()};h.getRoot=function(){return this.root};h.getSelection=function(){return this.selection};h.setDisambiguationLabel=function(){};h.onKeyDown=function(){};h.onContextMenu=function(){return function(){}};h.getAllIds=function(){return[this.selection.id()]};h.updateWaldo=function(){};
h.updateHubAvailabilityDot=function(){};h.getSupportedIntelligenceFeatures=function(){return[]};h.initializeIntelligence=function(){};var T$d=function(a,b,c,d,e,f,g,k,m,r){d=d?Nv(d):e?Nv("isWarning"):"";return Rv(Tv(Rv(Tv(Rv(Tv(Rv(Sv(),'<div role="option" class="'+Nv("peoplekitComponentsChipChip")+" "+d+" "+(f?Nv("isDeletionDisabled"):"")+" "+(g?Nv(g):"")+'" id="'+Nv(a)+'" peoplekit-id="'+Nv("XPtOyb")+'" data-hovercard-id="'+Nv(c)+'" data-name="'+Nv(b)+'"'+(f?"":' aria-describedby="'+Nv(a)+'-db"')+'><div class="'+Nv("peoplekitComponentsChipChipRow")+" "+Nv("peoplekitComponentsChipChipContainer")+'"><div class="'+Nv("peoplekitComponentsChipLeft")+
'">'),Ov(k)),'</div><div class="'+Nv("peoplekitComponentsChipCenter")+'">'),Ov(m)),'</div><div class="'+Nv("peoplekitComponentsChipRight")+'">'),Ov(r)),'</div></div><div peoplekit-id="'+Nv("QL45qe")+'"></div></div>')},U$d=function(a){return Rv(Tv(Rv(Sv(),'<div class="'+Nv("peoplekitComponentsChipAvatar")+'"><div class="'+Nv("peoplekitComponentsChipAvatarContainer")+'" peoplekit-id="'+Nv("d6MZcd")+'"></div>'),N9(a)?Ov(a):""),"</div>")},V$d=function(a){var b=Sv();a=Rv(Sv(),'<div class="'+Nv("peoplekitComponentsChipAvatarExclamationOverlay")+
" "+(a?Nv(a):"")+'"><div class="'+Nv("peoplekitComponentsChipExclamationIcon")+" "+(a?Nv(a):"")+'">');var c=Qv('<svg viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M11 14V5h2v9Zm0 5v-2h2v2Z"/></svg>');return Tv(b,U$d(Rv(Tv(a,c),"</div></div>")))},W$d=function(a){return Qv('<div class="'+Nv("peoplekitComponentsChipLabelContainer")+'"><div class="'+Nv("peoplekitComponentsChipLabel")+" "+Nv("peoplekitComponentsChipLabelRow")+'"><div class="'+Nv("peoplekitComponentsChipDisplayLabel")+
'" translate="no">'+Lwc(Uv(a))+'</div><div class="'+Nv("peoplekitComponentsChipDisambiguationLabel")+'" peoplekit-id="'+Nv("hyPgpe")+'" translate="no"></div></div></div>')},X$d=function(a){var b=Sv();a=Rv(b,'<div id="'+Nv(a)+'-db" peoplekit-id="'+Nv("bxvLg")+'" class="'+Nv("peoplekitComponentsChipDeleteButton")+'" aria-hidden="true" aria-label="'+Nv("Press delete to remove this chip")+'">');var c=Qv('<svg xmlns="https://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" class="'+(Nv("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>'));Rv(Tv(a,c),"</div>");return b};var usc=function(a){var b=a.id,c=a.label,d=a.name,e=a.hovercardId,f=a.stateClass,g=a.isWarning,k=a.isDeletionDisabled;a=a.customChipClass;return Tv(Sv(),T$d(b,d,e,f,g,k,a,Tv(Sv(),f?V$d(f):U$d()),Tv(Sv(),W$d(c)),Tv(Sv(),X$d(b))))};var zsc=function(a,b,c){var d=this;this.root=a;this.selection=b;this.selectionsState=c;this.isDisabledInternal=!1;this.deleteButton=av(this.root,"bxvLg");this.eventHandler=dv(this);this.eventHandler.listen(this.deleteButton,"click",function(){return d.onDeleteButtonClick()})};h=zsc.prototype;h.onDeleteButtonClick=function(){this.selectionsState.deselect(this.selection,8)};h.toggleSelection=function(){};
h.activate=function(){this.root.classList.add("isActive");this.root.setAttribute("aria-selected","true")};h.deactivate=function(){this.root.classList.remove("isActive");this.root.setAttribute("aria-selected","false")};h.isActive=function(){return this.root.classList.contains("isActive")};h.spotlight=function(){this.root.classList.add("isSpotlit")};h.unspotlight=function(){this.root.classList.remove("isSpotlit")};h.disable=function(){this.root.classList.add("isDisabled");this.isDisabledInternal=!0};
h.enable=function(){this.root.classList.remove("isDisabled");this.isDisabledInternal=!1};h.isDisabled=function(){return this.isDisabledInternal};h.drag=function(){this.root.classList.add("isDragged")};h.undrag=function(){this.root.classList.remove("isDragged")};h.edit=function(){};h.unedit=function(){};h.dispose=function(){this.eventHandler.removeAll()};h.getRoot=function(){return this.root};h.getSelection=function(){return this.selection};h.setDisambiguationLabel=function(){};h.onKeyDown=function(){};
h.onContextMenu=function(){return function(){}};h.getAllIds=function(){return[this.selection.id()]};h.updateWaldo=function(){};h.updateHubAvailabilityDot=function(){};h.getSupportedIntelligenceFeatures=function(){return[]};h.initializeIntelligence=function(){};var ysc=function(a){var b=a.id,c=a.hovercardId,d=a.name,e=a.label,f=a.avatarSize;a=a.isDeletionDisabled;return Tv(Sv(),T$d(b,d,c,"",!1,a,void 0,Qv('<div class="'+Nv("peoplekitComponentsChipPlaceholderAvatarPlaceholder")+" "+Nv("peoplekitComponentsChipPlaceholderShimmer")+'" style="width: '+Nv(O9(f))+"px; height: "+Nv(O9(f))+'px;"></div>'),Tv(Sv(),e?W$d(e):'<div class="'+Nv("peoplekitComponentsChipPlaceholderLabelPlaceholder")+" "+Nv("peoplekitComponentsChipPlaceholderShimmer")+'"></div>'),Tv(Sv(),
X$d(b))))};var Q9=function(a){this.delegate=a};h=Q9.prototype;h.toggleSelection=function(){this.delegate.toggleSelection()};h.activate=function(){this.delegate.activate()};h.deactivate=function(){this.delegate.deactivate()};h.isActive=function(){return this.delegate.isActive()};h.spotlight=function(){this.delegate.spotlight()};h.unspotlight=function(){this.delegate.unspotlight()};h.disable=function(){this.delegate.disable()};h.enable=function(){this.delegate.enable()};h.isDisabled=function(){return this.delegate.isDisabled()};
h.drag=function(){this.delegate.drag()};h.undrag=function(){this.delegate.undrag()};h.edit=function(){this.delegate.edit()};h.unedit=function(){this.delegate.unedit()};h.dispose=function(){this.delegate.dispose()};h.getRoot=function(){return this.delegate.getRoot()};h.getSelection=function(){return this.delegate.getSelection()};h.setDisambiguationLabel=function(a){this.delegate.setDisambiguationLabel(a)};h.onKeyDown=function(a){this.delegate.onKeyDown(a)};
h.onContextMenu=function(a,b){return this.delegate.onContextMenu(a,b)};h.getAllIds=function(){return this.delegate.getAllIds()};h.updateWaldo=function(a,b){this.delegate.updateWaldo(a,b)};h.updateHubAvailabilityDot=function(a,b){this.delegate.updateHubAvailabilityDot(a,b)};h.getSupportedIntelligenceFeatures=function(){return this.delegate.getSupportedIntelligenceFeatures()};h.initializeIntelligence=function(){this.delegate.initializeIntelligence()};var Y$d=Object.freeze(new tj(NaN,NaN)),Z$d=Object.freeze(new Fj(NaN,NaN,NaN,NaN)),kv=function(a,b){this.root=a;this.options=b;this.lastPosition=Y$d;this.lastBounds=Z$d;this.anchorUpdateTimer=new kE(15);this.eventHandler=dv(this);this.attach()};kv.prototype.attach=function(){var a=this;this.eventHandler.listen(this.anchorUpdateTimer,"tick",function(){return $$d(a)})};kv.prototype.isShown=function(){return this.root.style.display!="none"};kv.prototype.dispose=function(){this.hide();this.eventHandler.removeAll()};
kv.prototype.show=function(a){this.anchor=a;this.lastPosition=Y$d;this.lastBounds=Z$d;Lt(this.root,!0);$$d(this);this.anchorUpdateTimer.start()};
var $$d=function(a){var b;if(b=a.anchor){if(!(b=!a.lastPosition.equals(fv(a.anchor)))){b=a.lastBounds;var c=Isc(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=Isc(c),b=(c=Jsc(c))?b.intersection(Ksc(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;jv(b,"","");b.style.height=fJd("",!0);var g=Psc(c,e,b,f,d);c=Psc(c,e^1,b,f^1,d);
g.height>=c.height||!d?Qsc(b,g):Qsc(b,c);a.lastPosition=fv(a.anchor);a.lastBounds=Isc(a.root)}};kv.prototype.hide=function(){this.root.style.cssText="";Lt(this.root,!1);this.anchorUpdateTimer.stop();this.lastPosition=Y$d;this.lastBounds=Z$d};var Tsc=function(a,b,c){this.tooltip=a;this.showDelayMs=b;this.hideDelayMs=c;this.displayed=!1;this.eventHandler=dv(this)};Tsc.prototype.showTooltip=function(){aae(this);if(!this.isDisplayed()&&this.anchor){this.displayed=!0;var a;(a=this.showCallback)==null||a.call(this);R9(this)}};Tsc.prototype.hideTooltip=function(){R9(this);if(this.isDisplayed()&&this.anchor){this.displayed=!1;var a;(a=this.hideCallback)==null||a.call(this);aae(this)}else R9(this)};Tsc.prototype.isDisplayed=function(){return this.displayed};
var bae=function(a,b){a.hideCallback=b.hideTooltipCallback;a.showCallback=b.showTooltipCallback},fae=function(a,b){if(a.anchor)throw Error("Rg");a.anchor=b;cae(a);dae(a);eae(a)},gae=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)},hae=function(a){aae(a);R9(a);a.showTimeout=setTimeout(function(){a.showTooltip()},a.showDelayMs)},iae=function(a){aae(a);R9(a);a.hideTimeout=
setTimeout(function(){a.hideTooltip()},a.hideDelayMs)},cae=function(a){if(!a.anchor)throw Error("Sg");a.eventHandler.listen(a.anchor,"mouseover",function(){a.isDisplayed()?a.showTooltip():hae(a)});a.eventHandler.listen(a.anchor,"touchstart",function(){hae(a)});a.eventHandler.listen(a.anchor,"focusin",function(b){a.tooltip.contains(b.relatedTarget)||hae(a)});a.eventHandler.listen(a.anchor,"touchend",function(){R9(a)});a.eventHandler.listen(a.anchor,"touchcancel",function(){R9(a)});a.eventHandler.listen(a.anchor,
"mouseout",function(){iae(a)});a.eventHandler.listen(a.anchor,"focusout",function(){a.hideTooltip()})},dae=function(a){a.eventHandler.listen(a.tooltip,"mouseover",function(){hae(a)});a.eventHandler.listen(a.tooltip,"mouseout",function(){iae(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()})},eae=function(a){a.eventHandler.listen(window,"touchmove",function(){iae(a)});a.eventHandler.listen(window,
"focus",function(b){b.target!==a.anchor&&iae(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()})},R9=function(a){clearTimeout(a.showTimeout);a.showTimeout=void 0},aae=function(a){clearTimeout(a.hideTimeout);a.hideTimeout=void 0};var Usc=function(a,b){this.tooltip=a;this.tooltipEventTracker=b;this.popupService=Rsc(this.tooltip,{anchorCorner:3,popupCorner:2})},Zsc=function(a,b){fae(a.tooltipEventTracker,b);bae(a.tooltipEventTracker,{showTooltipCallback:function(){a.showTooltipCallback()},hideTooltipCallback:function(){a.hideTooltipCallback()}})};h=Usc.prototype;h.showTooltip=function(){this.tooltipEventTracker.showTooltip()};h.hideTooltip=function(){this.tooltipEventTracker.hideTooltip()};h.getRoot=function(){return this.tooltip};
h.isDisplayed=function(){return this.tooltipEventTracker.isDisplayed()};h.showTooltipCallback=function(){this.popupService.show(this.tooltipEventTracker.anchor)};h.hideTooltipCallback=function(){this.popupService.hide()};var Ssc=function(a){var b=a.label,c=a.ariaLabel,d=a.classes,e=a.attributes;return Qv('<div id="'+Nv(a.id)+'" peoplekit-id="'+Nv("suEOdc")+'" class="'+Nv("peoplekitComponentsTooltipImplTooltip")+(d?" "+Nv(d):"")+'" style="display: none;" aria-hidden="true"'+(c?' aria-label="'+Nv(c)+'"':"")+(N9(e)?D$d(L9(e,m$d)?e.getContent():N$d(e)):"")+">"+Ov(b)+"</div>")};var lv=function(a,b,c){this.delegate=a;var d=a.getRoot();/-[a-z]/.test("hovercardId")||(Xrc&&d.dataset?(/-[a-z]/.test("hovercardId")?0:Xrc&&d.dataset?"hovercardId"in d.dataset:d.hasAttribute?d.hasAttribute("data-"+Yrc("hovercardId")):d.getAttribute("data-"+Yrc("hovercardId")))&&delete d.dataset.hovercardId:d.removeAttribute("data-"+Yrc("hovercardId")));d="tt-"+a.getSelection().id().toString();this.tooltip=Vsc(a.getRoot(),d,{label:b,ariaLabel:c});Zsc(this.tooltip,a.getRoot())};Z(lv,Q9);
lv.prototype.dispose=function(){gae(this.tooltip.tooltipEventTracker);Q9.prototype.dispose.call(this)};lv.prototype.spotlight=function(){Q9.prototype.spotlight.call(this);this.tooltip.showTooltip()};lv.prototype.unspotlight=function(){Q9.prototype.unspotlight.call(this);this.tooltip.hideTooltip()};lv.prototype.drag=function(){Q9.prototype.drag.call(this);this.tooltip.hideTooltip()};var ov=new J9({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 $sc=function(a,b,c,d,e,f){var g=this;this.root=a;this.enabledIcon=b;this.disabledIcon=c;this.tooltip=d;this.disableDomNavigation=e;this.internalIsDisabled=!1;this.eventHandler=dv(this);this.onClick=f;this.eventHandler.listen(this.root,"click",function(k){var m;(m=g.onClick)==null||m.call(g,k)});this.disableDomNavigation?this.root.tabIndex=-1:(this.eventHandler.listen(this.root,"focus",function(){g.activate()}),this.eventHandler.listen(this.root,"blur",function(){g.deactivate()}))};h=$sc.prototype;
h.getRoot=function(){return this.root};h.enable=function(){this.root.disabled=!1;var a=this.root.querySelector("img");a&&(a.src=this.enabledIcon);this.internalIsDisabled=!1};h.disable=function(){this.root.disabled=!0;var a=this.root.querySelector("img");a&&this.disabledIcon&&(a.src=this.disabledIcon);this.internalIsDisabled=!0};h.isDisabled=function(){return this.internalIsDisabled};h.dispose=function(){this.eventHandler.removeAll();this.onClick=void 0;this.tooltip&&gae(this.tooltip.tooltipEventTracker)};
h.activate=function(){this.root.classList.add("isFocused");this.tooltip&&this.tooltip.showTooltip()};h.deactivate=function(){this.root.classList.remove("isFocused");this.tooltip&&this.tooltip.hideTooltip()};h.isActive=function(){return this.root.classList.contains("isFocused")};var jae=0;var Ysc=function(a){var b=a.icon,c=a.tooltipLabel,d=a.ariaLabel;a=Sv();c=(c=c?"tt-c"+jae++:"")?' data-tooltip-id="'+Nv(c)+'" aria-labelledby="'+Nv(c)+'"':d?' aria-label="'+Nv(d)+'"':"";Rv(Tv(Rv(a,'<button class="'+Nv("peoplekitComponentsButtonIconIconButton")+'"'+c+">"),Qv('<span><img src="'+Nv(J$d(b))+'" draggable="false" aria-hidden="true" alt="" class="'+Nv("peoplekitComponentsButtonIconAdaptableIcon")+'"/></span>')),"</button>");return a};var S9=function(a){this.delegate=a};h=S9.prototype;h.getAllIds=function(){return this.delegate.getAllIds()};h.toggleSelection=function(){this.delegate.toggleSelection()};h.activate=function(){this.delegate.activate()};h.deactivate=function(){this.delegate.deactivate()};h.spotlight=function(){this.delegate.spotlight()};h.unspotlight=function(){this.delegate.unspotlight()};h.getRoot=function(){return this.delegate.getRoot()};h.getSelection=function(){return this.delegate.getSelection()};
h.onKeyDown=function(a){this.delegate.onKeyDown(a)};h.onContextMenu=function(a,b){return this.delegate.onContextMenu(a,b)};h.updateWaldo=function(a,b){this.delegate.updateWaldo(a,b)};h.updateHubAvailabilityDot=function(a,b){this.delegate.updateHubAvailabilityDot(a,b)};h.getSupportedIntelligenceFeatures=function(){return this.delegate.getSupportedIntelligenceFeatures()};h.initializeIntelligence=function(){this.delegate.initializeIntelligence()};h.addTag=function(a){this.delegate.addTag(a)};
h.setMetaIcon=function(a){this.delegate.setMetaIcon(a)};h.dispose=function(){this.delegate.dispose()};var mwc=new Map([["pcw-select",3],["pcw-deselect",3],["pcw-click",3],["pcw-input",15]]);var btc=function(a,b,c,d){this.delegate=a;var e=this;this.secondaryActionConfig=c;for(var f=av(a.getRoot(),"QChpEe");f.firstChild;)f.removeChild(f.firstChild);this.secondaryActionButton=atc(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&&Zab(this.buttonRoot,"menuitem");mv({element:this.buttonRoot,veid:163534,actions:["impression",
"pcw-click"],componentId:"peoplekitweb"});this.secondaryActionButton.onClick=function(g){var k;(k=c.onClick)==null||k.call(c,g);e.buttonRoot.dispatchEvent(nv(e.buttonRoot))};this.eventHandler=dv(this);this.eventHandler.listen(a.getRoot(),"mouseover",this.displaySecondaryActionButton);this.eventHandler.listen(a.getRoot(),"mouseleave",this.hideSecondaryActionButton)};Z(btc,S9);h=btc.prototype;h.activate=function(){this.getRoot().classList.add("isActive");this.displaySecondaryActionButton()};
h.deactivate=function(){this.getRoot().classList.remove("isActive");this.secondaryActionButton.deactivate();this.hideSecondaryActionButton()};
h.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(),ls(this.buttonRoot,"hidden","true"),a.stopPropagation(),a.preventDefault()):(this.secondaryActionButton.activate(),ls(this.buttonRoot,"hidden","false"),a.stopPropagation(),a.preventDefault())}if(c||
b&&this.secondaryActionButton.isActive())this.buttonRoot.click(),a.stopPropagation(),a.preventDefault()};h.dispose=function(){this.eventHandler.removeAll();this.secondaryActionButton.dispose();S9.prototype.dispose.call(this)};h.displaySecondaryActionButton=function(){this.buttonRoot.style.display=""};h.hideSecondaryActionButton=function(){this.getRoot().classList.contains("isActive")||(this.buttonRoot.style.display="none")};var kae=function(){this.label="";this.type=0};h=kae.prototype;h.getAutocompleteGroupingType=function(){return this.type};h.setAutocompleteGroupingType=function(a){this.type=a};h.getAutocompleteGroupingLabel=function(){return this.label};h.setAutocompleteGroupingLabel=function(a){this.label=a};h.getAutocompleteCustomGrouping=function(){return this.customGrouping};var lae=function(){this.warnForExternalSelections=!1;this.decorationConfigRequest=function(){};this.resultCustomizationCallback=function(){return{}}};h=lae.prototype;h.getAllowResultDeselection=function(){return!1};h.getWarnForExternalSelections=function(){return this.warnForExternalSelections};h.getResultDecorationConfigRequestCallback=function(){return this.decorationConfigRequest};h.getResultCustomizationCallback=function(){return this.resultCustomizationCallback};
h.setResultCustomizationCallback=function(a){this.resultCustomizationCallback=a};var mae=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 kae;this.result=new lae;this.appearance=new asc};h=mae.prototype;h.getEnvironmentConfig=function(){return this.environmentConfig};h.getAutocompleteHeader=function(){return this.header};
h.setAutocompleteHeader=function(a){this.header=a};h.getShowSuggestions=function(){return this.showSuggestions};h.setShowSuggestions=function(a){this.showSuggestions=a};h.getAutocompleteMaxResultsBeforeScroll=function(){return this.maxResultsBeforeScroll};h.setAutocompleteMaxResultsBeforeScroll=function(a){this.maxResultsBeforeScroll=Math.max(Math.min(20,a),3)};h.getMoveAutocompleteAboveAnchorIfOffscreen=function(){return this.moveAutocompleteAboveAnchorIfOffscreen};
h.setMoveAutocompleteAboveAnchorIfOffscreen=function(a){this.moveAutocompleteAboveAnchorIfOffscreen=a};h.getAutoActivateFirstSuggestion=function(){return this.autoActivateFirstSuggestion};h.setAutoActivateFirstSuggestion=function(a){this.autoActivateFirstSuggestion=a};h.getAutoActivateFirstSearchResult=function(){return this.autoActivateFirstSearchResult};h.setAutoActivateFirstSearchResult=function(a){this.autoActivateFirstSearchResult=a};h.setEntryPoint=function(a){this.entryPoint=a};
h.getEntryPoint=function(){return this.entryPoint};h.getNoResultsMessage=function(){return this.noResultsMessage};h.setNoResultsMessage=function(a){this.noResultsMessage=a};h.getUseTabForResultSelection=function(){return!0};h.getClearSelectionsOnSearch=function(){return this.clearSelectionsOnSearch};h.setClearSelectionsOnSearch=function(a){this.clearSelectionsOnSearch=a};h.getAutocompleteGroupingType=function(){return this.grouping.getAutocompleteGroupingType()};h.setAutocompleteGroupingType=function(a){this.grouping.setAutocompleteGroupingType(a)};
h.getAutocompleteGroupingLabel=function(){return this.grouping.getAutocompleteGroupingLabel()};h.setAutocompleteGroupingLabel=function(a){this.grouping.setAutocompleteGroupingLabel(a)};h.getAutocompleteCustomGrouping=function(){return this.grouping.getAutocompleteCustomGrouping()};h.getAllowResultDeselection=function(){return this.result.getAllowResultDeselection()};h.getWarnForExternalSelections=function(){return this.result.getWarnForExternalSelections()};
h.getResultDecorationConfigRequestCallback=function(){return this.result.getResultDecorationConfigRequestCallback()};h.getResultCustomizationCallback=function(){return this.result.getResultCustomizationCallback()};h.setResultCustomizationCallback=function(a){this.result.setResultCustomizationCallback(a)};h.getDensity=function(){return this.appearance.getDensity()};h.setDensity=function(a){this.appearance.setDensity(a)};h.getTheme=function(){return this.appearance.getTheme()};h.setTheme=function(a){this.appearance.setTheme(a)};
h.getStyle=function(){return this.appearance.getStyle()};h.setStyle=function(a){this.appearance.setStyle(a)};var nae=function(a){this.environmentConfig=a;this.autocomplete=new mae(a);this.autocomplete.setClearSelectionsOnSearch(!0)};h=nae.prototype;h.getEnvironmentConfig=function(){return this.environmentConfig};h.getAutocompleteHeader=function(){return this.autocomplete.getAutocompleteHeader()};h.setAutocompleteHeader=function(a){this.autocomplete.setAutocompleteHeader(a)};h.getShowSuggestions=function(){return this.autocomplete.getShowSuggestions()};h.setShowSuggestions=function(a){this.autocomplete.setShowSuggestions(a)};
h.getAutocompleteMaxResultsBeforeScroll=function(){return this.autocomplete.getAutocompleteMaxResultsBeforeScroll()};h.setAutocompleteMaxResultsBeforeScroll=function(a){this.autocomplete.setAutocompleteMaxResultsBeforeScroll(a)};h.getMoveAutocompleteAboveAnchorIfOffscreen=function(){return this.autocomplete.getMoveAutocompleteAboveAnchorIfOffscreen()};h.setMoveAutocompleteAboveAnchorIfOffscreen=function(a){this.autocomplete.setMoveAutocompleteAboveAnchorIfOffscreen(a)};
h.getAutoActivateFirstSuggestion=function(){return this.autocomplete.getAutoActivateFirstSuggestion()};h.setAutoActivateFirstSuggestion=function(a){this.autocomplete.setAutoActivateFirstSuggestion(a)};h.getAutoActivateFirstSearchResult=function(){return this.autocomplete.getAutoActivateFirstSearchResult()};h.setAutoActivateFirstSearchResult=function(a){this.autocomplete.setAutoActivateFirstSearchResult(a)};h.setEntryPoint=function(a){this.autocomplete.setEntryPoint(a)};h.getEntryPoint=function(){return this.autocomplete.getEntryPoint()};
h.getNoResultsMessage=function(){return this.autocomplete.getNoResultsMessage()};h.setNoResultsMessage=function(a){this.autocomplete.setNoResultsMessage(a)};h.getUseTabForResultSelection=function(){return this.autocomplete.getUseTabForResultSelection()};h.getClearSelectionsOnSearch=function(){return this.autocomplete.getClearSelectionsOnSearch()};h.setClearSelectionsOnSearch=function(a){this.autocomplete.setClearSelectionsOnSearch(a)};h.getAutocompleteGroupingType=function(){return this.autocomplete.getAutocompleteGroupingType()};
h.setAutocompleteGroupingType=function(a){this.autocomplete.setAutocompleteGroupingType(a)};h.getAutocompleteGroupingLabel=function(){return this.autocomplete.getAutocompleteGroupingLabel()};h.setAutocompleteGroupingLabel=function(a){this.autocomplete.setAutocompleteGroupingLabel(a)};h.getAutocompleteCustomGrouping=function(){return this.autocomplete.getAutocompleteCustomGrouping()};h.getAllowResultDeselection=function(){return this.autocomplete.getAllowResultDeselection()};
h.getWarnForExternalSelections=function(){return this.autocomplete.getWarnForExternalSelections()};h.getResultDecorationConfigRequestCallback=function(){return this.autocomplete.getResultDecorationConfigRequestCallback()};h.getResultCustomizationCallback=function(){return this.autocomplete.getResultCustomizationCallback()};h.setResultCustomizationCallback=function(a){this.autocomplete.setResultCustomizationCallback(a)};h.getDensity=function(){return this.autocomplete.getDensity()};h.setDensity=function(a){this.autocomplete.setDensity(a)};
h.getTheme=function(){return this.autocomplete.getTheme()};h.setTheme=function(a){this.autocomplete.setTheme(a)};h.getStyle=function(){return this.autocomplete.getStyle()};h.setStyle=function(a){this.autocomplete.setStyle(a)};var mtc=function(a){this.onHide=a;this.menuItemConfigs=[]};mtc.prototype.isSupported=function(a){return oae(this,a).length>0};
mtc.prototype.configure=function(a){var b=this,c=a.contextMenu,d=a.selection,e=a.activatableRoot,f=new Map;a=l(oae(this,d.result()));for(var g=a.next();!g.done;g=a.next()){g=g.value;var k=g.getContextMenuItemOptions();c.append(k);f.set(k.id,g)}pae(c,function(m){f.get(m.id).onContextMenuItemClick({options:m,selection:d,activatableRoot:e})});qae(c,function(){var m;(m=b.onHide)==null||m.call(b)})};var oae=function(a,b){return a.menuItemConfigs.filter(function(c){return c.isSupported(b)})};var ktc=new J9({coreTypeOrder:[0],decoratorTypeOrder:[0],extractor:function(a){return a},getCompatibleTypes:function(){return new Set([0])}});var ptc=function(){this.groupingDecorators=[]};var ntc=function(a){this.contextMenuConfigurator=a;this.resultCustomizationDecorators=[]};var ttc=function(a){this.root=a;this.length=0;this.isInteractive=!0};h=ttc.prototype;h.getItems=function(){return Array.from(this.root.childNodes)};h.append=function(a){this.root.appendChild(a);++this.length};h.insert=function(a,b){if(a<0||a>this.length)throw new RangeError("Ug");if(a===this.length)this.append(b);else{var c=this.getItems();this.root.insertBefore(b,c[a]);++this.length}};
h.remove=function(a){if(a<0||a>=this.length)throw new RangeError("Ug");var b=this.getItems();this.root.removeChild(b[a]);--this.length};h.clear=function(){aE(this.root);this.length=0};h.getRoot=function(){return this.root};var rtc=function(a){return Qv('<ul id="'+Nv(a.id)+'" peoplekit-id="'+Nv("rymPhb")+'" role="listbox" aria-multiselectable="true" class="'+Nv("peoplekitComponentsListImplList")+'"></ul>')};var stc=yt.getInstance();var rae=function(a){this.isActive=!1;this.multiActivateAnchorIndex=this.spotlightIndex=-1;this.secondaryEventTargets=[];this.list=[].concat(n([]));this.shouldWrap=!!a.shouldWrap;this.activeItems=new Set([]);this.hideContextMenu=function(){}};h=rae.prototype;
h.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))};
h.insert=function(a,b,c){this.list.splice.apply(this.list,[a,0].concat(n(b)));c?(sae(this),tae(this,a,a+b.length-1),this.spotlightIndex=a,this.list[this.spotlightIndex].spotlight()):a>=0&&a<=this.spotlightIndex&&(this.spotlightIndex+=b.length)};h.size=function(){return this.list.length};
h.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};h.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};
h.goToItem=function(a,b){a=this.list.indexOf(a);return this.goToIndex(a,b)};
h.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:sae(this);uae(this);break;case 3:uae(this);break;case 1:a=ftc(this.spotlightIndex,c,this.multiActivateAnchorIndex);b=ftc(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);tae(this,this.multiActivateAnchorIndex,this.spotlightIndex)}this.list[this.spotlightIndex].spotlight();return!0};
h.activateAll=function(){if(!(this.list.length<=0)){var a=this.spotlightIndex>=0?this.spotlightIndex:this.list.length-1;sae(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)}};h.getSpotlitItem=function(){return this.isActive?this.list[this.spotlightIndex]:void 0};h.getActiveItems=function(){var a=this;return this.list.filter(function(b){return a.activeItems.has(b)})};
h.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}};h.getIndexOf=function(a){return this.list.indexOf(a)};h.clear=function(){this.reset();this.list.length=0};h.reset=function(){this.hideContextMenu();sae(this);var a=this.getSpotlitItem();a&&a.unspotlight();this.spotlightIndex=-1;this.isActive=!1};h.setSecondaryEventTargets=function(a){this.secondaryEventTargets=a};
h.onKeyDown=function(a){var b=[this.getSpotlitItem()].concat(n(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}};h.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 uae=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},sae=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()},tae=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 ytc=function(a){this.delegate=a};h=ytc.prototype;h.prev=function(a){a=this.delegate.prev(a);vae(this);return a};h.next=function(a){a=this.delegate.next(a);vae(this);return a};h.size=function(){return this.delegate.size()};h.goToItem=function(a,b){a=this.delegate.goToItem(a,b);vae(this);return a};h.goToIndex=function(a,b){a=this.delegate.goToIndex(a,b);vae(this);return a};h.activateAll=function(){this.delegate.activateAll()};h.getSpotlitItem=function(){return this.delegate.getSpotlitItem()};
h.getActiveItems=function(){return this.delegate.getActiveItems()};h.getItem=function(a){return this.delegate.getItem(a)};h.getIndexOf=function(a){return this.delegate.getIndexOf(a)};h.clear=function(){this.delegate.clear()};h.reset=function(){this.delegate.reset()};h.setSecondaryEventTargets=function(a){this.delegate.setSecondaryEventTargets(a)};h.onKeyDown=function(a){this.delegate.onKeyDown(a)};h.onContextMenu=function(a,b){this.delegate.onContextMenu(a,b)};
h.remove=function(a,b){this.delegate.remove(a,b)};h.insert=function(a,b,c){this.delegate.insert(a,b,c)};var vae=function(a){(a=a.delegate.getSpotlitItem())&&xtc(a.getRoot())};var T9=function(a,b,c,d){this.list=a;this.navigatable=b;this.intelligentCollection=c;this.collapsibleConfig=d;this.items=[];this.isCollapsed=!1};T9.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)};T9.prototype.getItems=function(){return this.isCollapsed?[]:this.items};
T9.prototype.dispose=function(){for(var a=l(this.items),b=a.next();!b.done;b=a.next())b.value.dispose();this.items=[]};var wae=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",xtc(c));a.isCollapsed=b}};var Xtc=function(a,b,c,d){this.list=a;this.navigatable=b;this.intelligentCollection=c;this.resultListItemFactory=d};h=Xtc.prototype;h.append=function(a,b){a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.getOrCreateSection(c).append(this.resultListItemFactory.create(c,b))};h.getOrCreateSection=function(){this.section||(this.section=new T9(this.list,this.navigatable,this.intelligentCollection));return this.section};
h.clear=function(){var a;(a=this.section)==null||a.dispose();this.section=void 0;this.list.clear();this.navigatable.clear();this.intelligentCollection.clear()};h.reset=function(){this.navigatable.reset()};h.getItems=function(){var a,b;return(b=(a=this.section)==null?void 0:a.getItems())!=null?b:[]};h.done=function(){};var xae=function(a,b){this.itemsSection=a;this.groupingHeader=b};xae.prototype.append=function(a){this.itemsSection.append(a)};xae.prototype.getItems=function(){return this.itemsSection.getItems()};xae.prototype.dispose=function(){this.groupingHeader.dispose();this.itemsSection.dispose()};var yae=function(a){var b=a.listId;return Qv('<div id="'+Nv(a.id)+'" peoplekit-id="'+Nv("E9WxSb")+'" role="listitem"><div role="group"><div peoplekit-id="'+Nv("Bm3u4d")+'"></div><div id="'+Nv(b)+'" role="region" class="'+Nv("peoplekitComponentsResultListCoreGroupSectionListContainer")+'" peoplekit-id="'+Nv("tjneg")+'"></div></div></div>')};var U9=function(a){this.delegate=a};h=U9.prototype;h.getRoot=function(){return this.delegate.getRoot()};h.getHeader=function(){return this.delegate.getHeader()};h.getActionItems=function(){return this.delegate.getActionItems()};h.dispose=function(){this.delegate.dispose()};h.setCollapsible=function(a){this.delegate.setCollapsible(a)};h.getCollapsible=function(){return this.delegate.getCollapsible()};h.getActivatable=function(){return this.delegate.getActivatable()};var zae=function(a){var b=a.id,c=a.groupName;a=a.classes;return Qv('<div class="'+Nv("peoplekitComponentsGroupingHeaderCollapsibleChevronContainer")+" "+(a?" "+Nv(a):"")+'" peoplekit-id="'+Nv("wgPSWd")+'" id="'+Nv(b)+'" role="button" aria-expanded="false" aria-label="'+Nv("To expand "+c+" group, press enter")+'"><svg class="'+Nv("peoplekitComponentsGroupingHeaderCollapsibleChevron")+'" viewBox="0 0 24 24" height="24" width="24" aria-hidden="true"><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>')},
Aae=function(a){return"To "+a.action+" "+a.groupName+" group, press enter"};var qv=function(a,b){this.delegate=a;var c=this;this.isCollapsed=b;this.eventHandler=dv(this);this.chevron=$u(zae,{id:cv(yt.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(),d.preventDefault())}});this.eventHandler.listen(this.getRoot(),
"click",this.toggleView);av(this.getRoot(),"QChpEe").appendChild(this.chevron);b||(this.chevron.classList.toggle("rotate"),ls(this.chevron,"expanded",!0),bbb(this.chevron,Aae({groupName:this.getHeader(),action:"collapse"})))};Z(qv,U9);qv.prototype.getActionItems=function(){return this.groupingHeaderActionItems};qv.prototype.dispose=function(){this.eventHandler.removeAll();U9.prototype.dispose.call(this)};
qv.prototype.setCollapsible=function(a){U9.prototype.setCollapsible.call(this,a);wae(a,this.isCollapsed);this.chevron.setAttribute("aria-controls",a.collapsibleConfig.resultListContainer.id);Bae(this)};qv.prototype.toggleView=function(){this.isCollapsed=!this.isCollapsed;this.chevron.classList.toggle("rotate");wae(this.getCollapsible(),this.isCollapsed);Bae(this)};
var Bae=function(a){var b=a.isCollapsed?"expand":"collapse";ls(a.chevron,"expanded",!a.isCollapsed);bbb(a.chevron,Aae({groupName:a.getHeader(),action:b}))};var Btc=function(a){var b=this;this.root=a;this.internalIsDisabled=!1;this.eventHandler=dv(this);this.eventHandler.listen(this.root,"click",function(c){var d;(d=b.onClick)==null||d.call(b,c)})};h=Btc.prototype;h.getRoot=function(){return this.root};h.enable=function(){this.root.classList.remove("isDisabled");this.root.disabled=!1;this.root.setAttribute("aria-disabled","false");this.internalIsDisabled=!1};
h.disable=function(){this.root.classList.add("isDisabled");this.root.disabled=!0;this.root.setAttribute("aria-disabled","true");this.internalIsDisabled=!0};h.isDisabled=function(){return this.internalIsDisabled};h.dispose=function(){this.eventHandler.removeAll();this.onClick=void 0};var Atc=function(a){a=a.label;return Qv('<button class="'+Nv("peoplekitComponentsButtonLabelLabelButton")+'">'+Ov(a)+"</button>")};var Mwc=function(a,b,c){var d=this;this.root=a;this.actionListeners=[];this.eventHandler=dv(this);this.actionButtons=new Map;this.actionButtons.set(0,b);this.actionButtons.set(1,c);b.onClick=function(){d.dispatchAction(0)};c.onClick=function(){d.dispatchAction(1)};this.dialog=av(this.root,"Sx9Kwc");this.startFocusableElement=av(this.root,"tYwGbe");this.endFocusableElement=av(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.eventHandler.listen(this.root,"keydown",function(e){e.stopPropagation()});this.eventHandler.listen(this.root,"keyup",function(e){e.stopPropagation()});
this.eventHandler.listen(this.root,"keypress",function(e){e.stopPropagation()});this.focusFirstFocusableElement()};h=Mwc.prototype;h.subscribeToAction=function(a){this.actionListeners.push(a)};h.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(nv(a))}};h.disableAction=function(a){(a=this.actionButtons.get(a))&&a.disable()};
h.enableAction=function(a){(a=this.actionButtons.get(a))&&a.enable()};h.getRoot=function(){return this.root};h.onDialogClick=function(a){a.stopPropagation()};h.onDialogKeyDown=function(a){a.keyCode===27&&(this.dispatchAction(0),a.stopPropagation())};h.onStartFocusableElementFocus=function(){this.focusLastFocusableElement()};h.onEndFocusableElementFocus=function(){this.focusFirstFocusableElement()};h.focusFirstFocusableElement=function(){var a=Wrc(this.dialog);a.length&&a[0].focus()};
h.focusLastFocusableElement=function(){var a=Wrc(this.dialog);a.length&&a[a.length-1].focus()};h.onScrimClick=function(){this.dispatchAction(0)};h.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 Htc=function(a){var b=a.content,c=a.header,d=a.confirmAction;a=a.labelId;return Rv(Tv(Tv(Rv(Tv(Rv(Tv(Rv(Sv(),'<div peoplekit-id="'+Nv("GGAcbc")+'" class="'+Nv("peoplekitComponentsDialogImplScrim")+'"><div peoplekit-id="'+Nv("tYwGbe")+'" tabindex="0" role="application"></div><div peoplekit-id="'+Nv("Sx9Kwc")+'" class="'+Nv("peoplekitComponentsDialogImplDialog")+'" tabindex="-1" role="dialog" aria-modal="true"'+(a?' aria-labelledby="'+Nv(a)+'"':"")+">"),N9(c)?Ov(c):""),'<div class="'+Nv("peoplekitComponentsDialogImplContent")+
'">'),Ov(b)),'</div><div class="'+Nv("peoplekitComponentsDialogImplActions")+'">'),Tv(Sv(),Cae("IbE0S"))),d?Tv(Tv(Sv(),Qv('<div class="'+Nv("peoplekitComponentsDialogImplActionDivider")+'"></div>')),Tv(Sv(),Cae("McfNlf"))):""),'</div></div><div peoplekit-id="'+Nv("dYgZK")+'" tabindex="0" role="application"></div></div>')},Cae=function(a){return Qv('<div peoplekit-id="'+Nv(a)+'"></div>')},Dae=function(a){a=a.header;return Qv('<div class="'+Nv("peoplekitComponentsDialogImplTextHeader")+'">'+Ov(a)+"</div>")};var Itc=function(a,b){var c=this;this.root=a;this.closeButton=b;this.actionListeners=[];this.eventHandler=dv(this);this.dialog=av(this.root,"Sx9Kwc");this.startFocusableElement=av(this.root,"tYwGbe");this.endFocusableElement=av(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()};h=Itc.prototype;h.subscribeToAction=function(a){this.actionListeners.push(a)};h.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)};h.disableAction=function(){this.closeButton.disable()};
h.enableAction=function(){this.closeButton.enable()};h.getRoot=function(){return this.root};h.dispose=function(){this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.eventHandler.removeAll();this.actionListeners.length=0;this.closeButton.dispose()};h.onDialogClick=function(a){a.stopPropagation()};h.onDialogKeyDown=function(a){a.keyCode===27&&(this.dispatchAction(2),a.stopPropagation())};h.onStartFocusableElementFocus=function(){this.focusLastFocusableElement()};
h.onEndFocusableElementFocus=function(){this.focusFirstFocusableElement()};h.focusFirstFocusableElement=function(){var a=Wrc(this.dialog);a.length&&a[0].focus()};h.focusLastFocusableElement=function(){var a=Wrc(this.dialog);a.length&&a[a.length-1].focus()};h.onScrimClick=function(){this.dispatchAction(2)};var Dtc=new Map([[0,"peoplekitStyleLegacy"],[1,"peopleKitStyleGm3"]]);var Ftc=new Map([[0,"peoplekitThemeLight"],[1,"peoplekitThemeDark"]]);var Eae=function(a){var b=a.learnMoreLinkUrl,c=a.learnMoreLinkText;return Qv("<div>"+Ov(a.description)+'  <a href="'+Nv(Pv(b))+'" target="_blank" class="'+Nv("peoplekitComponentsGroupingHeaderInfoLearnMoreLink")+'" peoplekit-id="'+Nv("lh87ke")+'">'+Ov(c)+"</a></div>")},Fae=function(a){var b=a.id,c=a.ariaLabel;a=a.classes;return Qv('<div class="'+Nv("peoplekitComponentsGroupingHeaderInfoInfoIconContainer")+" "+(a?" "+Nv(a):"")+'" peoplekit-id="'+Nv("CLghmc")+'" id="'+Nv(b)+'" aria-label="'+Nv(c)+'" role="button"><svg class="'+
Nv("peoplekitComponentsGroupingHeaderInfoInfoIcon")+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true"><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 Mtc=function(a,b,c,d){this.delegate=a;var e=this;this.infoGroupConfig=b;this.appearanceConfig=c;this.infoGroupingHeaderVeIds=d;this.infoIcon=$u(Fae,{id:cv(yt.getInstance()),ariaLabel:"For more information about "+this.getHeader()+", press enter.",classes:"TdcT2c"});av(this.getRoot(),"xiK4Cd").appendChild(this.infoIcon);this.infoGroupingHeaderVeIds.infoIconVeId!==void 0&&mv({element:this.infoIcon,veid:this.infoGroupingHeaderVeIds.infoIconVeId,actions:["impression","pcw-click"],componentId:"peoplekitweb"});
this.eventHandler=dv(this);this.eventHandler.listen(this.infoIcon,"click",function(){Gae(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&&(Gae(e),f.stopPropagation(),f.preventDefault())}})};Z(Mtc,U9);
var Gae=function(a){a.infoIcon.dispatchEvent(nv(a.infoIcon));var b=Dae({header:a.infoGroupConfig.infoDialogHeader}),c=Eae({description:a.infoGroupConfig.learnMoreMessage,learnMoreLinkUrl:a.infoGroupConfig.learnMoreUrl,learnMoreLinkText:a.infoGroupConfig.learnMoreLinkText}),d=a.getRoot().ownerDocument.activeElement,e=a.getRoot().closest('[class~="aU4VQc"]'),f=Jtc(e,c,a.appearanceConfig,b),g=av(f.getRoot(),"lh87ke");a.infoGroupingHeaderVeIds.learnMoreLinkVeId!==void 0&&mv({element:g,veid:a.infoGroupingHeaderVeIds.learnMoreLinkVeId,
actions:["impression","pcw-click"],componentId:"peoplekitweb"});a.eventHandler.listen(g,"click",function(){g.dispatchEvent(nv(g))});f.subscribeToAction(function(k){k===2&&(f.dispose(),d&&d.focus())})};Mtc.prototype.getActionItems=function(){return this.groupingHeaderActionItems};Mtc.prototype.dispose=function(){this.eventHandler.removeAll();U9.prototype.dispose.call(this)};var Ltc=function(a,b){this.root=a;this.header=b};h=Ltc.prototype;h.getHeader=function(){return this.header};h.getActionItems=function(){return[]};h.dispose=function(){};h.getRoot=function(){return this.root};h.setCollapsible=function(a){this.collapsible=a};h.getCollapsible=function(){return this.collapsible};h.getActivatable=function(){};var Ktc=function(a){var b=a.id,c=a.header;a=Sv();b=Qv('<div class="'+Nv("peoplekitComponentsGroupingHeaderGroupingHeader")+'" id="'+Nv(b)+'" peoplekit-id="'+Nv("XLuqBd")+'"><div class="'+Nv("peoplekitComponentsGroupingHeaderGroupingHeaderRow")+'"><div class="'+Nv("peoplekitComponentsGroupingHeaderHeader")+'">'+Ov(c)+'</div><div class="'+Nv("peoplekitComponentsGroupingHeaderAction")+'"><div class="'+Nv("peoplekitComponentsGroupingHeaderActionRow")+'"><div class="'+Nv("peoplekitComponentsGroupingHeaderLeft")+
'" peoplekit-id="'+Nv("xiK4Cd")+'"></div><div class="'+Nv("peoplekitComponentsGroupingHeaderRight")+'" peoplekit-id="'+Nv("QChpEe")+'"></div></div></div></div></div>');return Tv(a,b)};var Ntc=function(a){this.delegate=a};Z(Ntc,U9);h=Ntc.prototype;h.activate=function(){};h.deactivate=function(){};h.getSelection=function(){throw Error("Vg");};h.toggleSelection=function(){};h.onContextMenu=function(){return function(){}};h.spotlight=function(){var a=this.getActionItems();a.length&&(this.activeActionItemIndex=0,a[this.activeActionItemIndex].focus())};
h.unspotlight=function(){this.activeActionItemIndex!==void 0&&(this.getActionItems()[this.activeActionItemIndex].unfocus(),this.activeActionItemIndex=void 0)};
h.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()}}};h.getActivatable=function(){return this};var Hae=function(a,b,c,d,e,f){this.list=a;this.navigatable=b;this.intelligentCollection=c;this.appearanceConfig=d;this.resultListItemFactory=e;this.grouping=f;this.sections=[]};h=Hae.prototype;h.append=function(a,b){a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.getOrCreateSection(c).append(this.resultListItemFactory.create(c,b))};
h.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=Otc(a,this.appearanceConfig);c=this.createSection(c);this.sections.push({section:c,groupId:b});return c};h.getItems=function(){return Iae(this).flatMap(function(a){return a.getItems()})};h.reset=function(a){this.grouping.reset(a);this.navigatable.reset()};
h.clear=function(){var a=Iae(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};h.done=function(){};var Iae=function(a){a=new Set(a.sections.map(function(b){return b.section}));return[].concat(n(a.values()))};var Ptc=function(){Hae.apply(this,arguments)};Z(Ptc,Hae);
Ptc.prototype.createSection=function(a){var b=cv(yt.getInstance()),c=cv(yt.getInstance()),d=$u(yae,{id:b,listId:c});this.list.append(d);var e=av(d,"tjneg");b=utc(e);if(a){av(d,"Bm3u4d").appendChild(a.getRoot());c=this.navigatable;var f=this.intelligentCollection;e={collapsibleResultListContainer:e,collapsibleSectionRoot:d};d=a.getActivatable();var g;d&&(c.insert(c.size(),[d],!1),e&&(g={sectionRoot:e.collapsibleSectionRoot,resultListContainer:e.collapsibleResultListContainer,before:d}));b=new T9(b,
c,f,g);g&&d&&d.setCollapsible(b);return new xae(b,a)}return new T9(b,this.navigatable,this.intelligentCollection)};var Wtc=function(a,b){this.delegate=a;this.grouping=b;this.demotedResults=new Map};h=Wtc.prototype;h.append=function(a,b){var c=[];a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=this.grouping,f=e.getGroupId(d);Rtc(e.groupConfigs[f])?(e=this.grouping.getGroupId(d),f=this.demotedResults.get(e)||[],f.push({result:d,resultContext:b}),this.demotedResults.set(e,f)):c.push(d)}c.length>0&&this.delegate.append(c,b)};h.getItems=function(){return this.delegate.getItems()};
h.clear=function(){this.delegate.clear();this.demotedResults.clear()};h.reset=function(a){this.delegate.reset(a)};h.done=function(){for(var a=l(this.demotedResults.values()),b=a.next();!b.done;b=a.next()){b=l(b.value);for(var c=b.next();!c.done;c=b.next())c=c.value,this.delegate.append([c.result],c.resultContext)}this.demotedResults.clear();this.delegate.done()};var Stc=function(){Hae.apply(this,arguments)};Z(Stc,Hae);Stc.prototype.createSection=function(a){this.section||(this.section=new T9(this.list,this.navigatable,this.intelligentCollection));a&&this.list.append(a.getRoot());return this.section};Stc.prototype.clear=function(){Hae.prototype.clear.call(this);this.section=void 0};var Jae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Jae,X);Jae.prototype.getEnablePersonalizedQueryMatching=function(){return $i(this,7)};var wv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(wv,X);wv.prototype.getRequestType=function(){return Ri(this,1)};wv.prototype.setRequestType=function(a){return Yn(this,1,a)};var Kae=[0,AKc,99,[0,vC,nKc],[0],[0],[0,vC,-8],[0,vC],[0,vC,uC],$9d,[0,vC],[0,vC,-1]];var Lae=function(){var a=new wv,b=new H9;this.experimentFlags_=hj(a,H9,107,b)};Lae.prototype.getExperimentFlags=function(){return this.experimentFlags_};Lae.prototype.getExperimentIds=function(){return[]};var gwc=function(a,b){this.cache=b;this.overriddenExperiments=Y(a,H9,3)||new H9};gwc.prototype.getExperiments=function(){var a,b=((a=this.cache.getExperimentFlags())==null?void 0:Y(a,H9,107))||new H9;a=this.overriddenExperiments;Zi(a,3)&&(a=$i(a,3),jj(b,3,a));return b};gwc.prototype.getExperimentIds=function(){return this.cache.getExperimentIds()};var Mae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Mae,X);h=Mae.prototype;h.getCacheStaleSec=function(){return Wm(this,4,14400)};h.getCacheExpiredSec=function(){return Wm(this,5,63158400)};h.getRpcTimeoutSec=function(){return Wm(this,7,60)};h.getApiKey=function(){return Fi(this,8)};h.setApiKey=function(a){return Gj(this,8,a)};h.getEnableClearcut=function(){return $i(this,13,!0)};h.setEnableClearcut=function(a){return jj(this,13,a)};var dwc=pva(Mae);var cwc;var Nae=function(){};Nae.prototype.getExperimentFlags=function(){return new wv};Nae.prototype.getExperimentIds=function(){return[]};var Dv=function(){};Dv.prototype.prefetch=function(){};Dv.prototype.loadExperiments=function(){return new Nae};var V9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(V9,X);V9.prototype.getVersion=function(){return Hn(this,1)};V9.prototype.setVersion=function(a){return Nn(this,1,a)};V9.prototype.getVersionOrUndefined=function(){return Cw(this,1)};V9.prototype.getVersionOrUndefined_asString=function(){return ix(this,1)};var W9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(W9,X);h=W9.prototype;h.getApplication=function(){return Ri(this,1)};h.setApplication=function(a){return Yn(this,1,a)};h.getApplicationOrUndefined=function(){return Op(this,1)};h.getVersion=function(){return Hn(this,2)};h.setVersion=function(a){return Nn(this,2,a)};h.getVersionOrUndefined=function(){return Cw(this,2)};h.getVersionOrUndefined_asString=function(){return ix(this,2)};var Oae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Oae,X);h=Oae.prototype;h.getRequestType=function(){return Ri(this,1)};h.setRequestType=function(a){return Yn(this,1,a)};h.getProfileId=function(){return Fi(this,2)};h.getProfileId_legacyNullable=function(){return Ml(this,2)};h.setProfileId=function(a){return Gj(this,2,a)};h.hasProfileId=function(){return xm(this,2)};h.getCaller=function(){return Y(this,V9,3)};h.setCaller=function(a){return hj(this,V9,3,a)};
h.getInstanceId=function(){return Fi(this,4)};h.setInstanceId=function(a){return Gj(this,4,a)};h.clearInstanceId=function(){ex(this,4)};h.hasInstanceId=function(){return xm(this,4)};h.getInstanceIdOrUndefined=function(){return mx(this,4)};h.getClient=function(){return Y(this,W9,5)};h.setClient=function(a){return hj(this,W9,5,a)};h.hasClient=function(){return Si(this,W9,5)};var uv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(uv,X);h=uv.prototype;h.getErrorType=function(){return Ri(this,2,1)};h.setErrorType=function(a){return Yn(this,2,a)};h.hasErrorType=function(){return ym(this,2)};h.getErrorMessage=function(){return Fi(this,3)};h.setErrorMessage=function(a){Gj(this,3,a)};h.getStatusCode=function(){return Ri(this,4)};h.setStatusCode=function(a){Yn(this,4,a)};h.hasStatusCode=function(){return ym(this,4)};var zuc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(zuc,X);h=zuc.prototype;h.getExperimentFlags=function(){return Y(this,wv,1)};h.setExperimentFlags=function(a){return hj(this,wv,1,a)};h.hasExperimentFlags=function(){return Si(this,wv,1)};h.getError=function(){return Y(this,uv,2)};h.setError=function(a){hj(this,uv,2,a)};h.hasError=function(){return Si(this,uv,2)};h.getSource=function(){return Ri(this,3)};h.setSource=function(a){return Yn(this,3,a)};
h.hasSource=function(){return ym(this,3)};h.getSourceOrUndefined=function(){return Op(this,3)};h.getInstanceId=function(){return Fi(this,4)};h.setInstanceId=function(a){return Gj(this,4,a)};h.clearInstanceId=function(){ex(this,4)};h.hasInstanceId=function(){return xm(this,4)};h.getInstanceIdOrUndefined=function(){return mx(this,4)};h.getExperimentIdsList=function(a){return Ym(this,5,Xi(a))};h.setExperimentIdsList=function(a){return tc(this,5,a,Bb)};h.getExperimentIds=function(){return nx(this,5)};
h.setExperimentIds=function(a){wc(this,5,Bb,void 0,a,Cb,void 0,1)};var cuc=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?#]*)?\/u\/(\d)\//,auc=/([#].*?&|[#])authuser=([^&#]*)\b/,buc=/([?][^#]*?&|[?])authuser=([^&#]*)\b/;var Pae=function(a,b){this.client_=a;this.runtime_=b;iuc();this.apiKey_=a.getApiKey();this.apiRoot_=Fi(this.client_,10)||huc("peoplestackwebexperiments-pa",this.runtime_.getPeopleApiEnv())};Pae.prototype.getClient=function(){return this.client_};Pae.prototype.getApiKey=function(){return this.apiKey_};var X9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(X9,X);h=X9.prototype;h.getExperimentFlags=function(){return Y(this,wv,1)};h.setExperimentFlags=function(a){return hj(this,wv,1,a)};h.hasExperimentFlags=function(){return Si(this,wv,1)};h.getObfuscatedGaiaId=function(){return Ml(this,2)};h.getObfuscatedGaiaId_legacyNullable=function(){return Ml(this,2)};h.setObfuscatedGaiaId=function(a){return Gj(this,2,a)};h.getExperimentIdsList=function(a){return Ym(this,3,Xi(a))};
h.setExperimentIdsList=function(a){return tc(this,3,a,Bb)};h.getExperimentIds=function(){return nx(this,3)};h.setExperimentIds=function(a){wc(this,3,Bb,void 0,a,Cb,void 0,1)};var Qae=Hi(X9);var Rae=[0,Kae,wC,pKc];var Sae=function(a){var b=void 0;b=b===void 0?Date.now:b;this.clientConfig_=a;this.now_=b},Tae=function(a,b,c){a=a.now_()-c*1E3;return b>a};Sae.prototype.getCacheState=function(a){var b=this.clientConfig_.getClient();b=Wm(b,3,1800);if(Tae(this,a,b))return 1;b=this.clientConfig_.getClient().getCacheStaleSec();if(Tae(this,a,b))return 2;b=this.clientConfig_.getClient().getCacheExpiredSec();return Tae(this,a,b)?3:4};var Uae=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Uae,X);h=Uae.prototype;h.getExperiments=function(){return Y(this,X9,2)};h.setExperiments=function(a){return hj(this,X9,2,a)};h.hasExperiments=function(){return Si(this,X9,2)};h.getInstanceId=function(){return Fi(this,4)};h.setInstanceId=function(a){return Gj(this,4,a)};h.clearInstanceId=function(){ex(this,4)};h.hasInstanceId=function(){return xm(this,4)};h.getInstanceIdOrUndefined=function(){return mx(this,4)};var Vae=[0,wC,Rae,nKc,wC];var Wae=kva(Uae,Vae),Xae=function(a){return function(b){var c=new lva;Yua(b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c,Vua(a));return eca(mva(c))}}(Vae);var Y9=function(a,b){b=Error.call(this,b!=null?b:"{statusCode: "+a+"}");this.message=b.message;"stack"in b&&(this.stack=b.stack);this.statusCode=a;this.name="StatusCodeError";Object.setPrototypeOf(this,this.constructor.prototype)};Z(Y9,Error);var vv=function(a,b,c){b=b===void 0?2:b;Y9.call(this,b,c===void 0?"{errorType: "+a+", statusCode: "+b+"}":c);this.name="ExperimentsError";this.type=a};Z(vv,Y9);var Yae=new vv(6);var Zae=function(){};Ww(Zae,muc);Zae.prototype.getCount=function(){for(var a=0,b=l(this),c=b.next();!c.done;c=b.next())a++;return a};Zae.prototype[Symbol.iterator]=function(){return Wkd(this.__iterator__(!0)).toEs6()};Zae.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)};Ww(nuc,Zae);h=nuc.prototype;h.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){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;this.cachedIsStorageAvailable_=b}return this.cachedIsStorageAvailable_};
h.set=function(a,b){Z9(this);try{this.storage_.setItem(a,b)}catch(c){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};h.get=function(a){Z9(this);a=this.storage_.getItem(a);if(typeof a!=="string"&&a!==null)throw"Storage mechanism: Invalid value was encountered";return a};h.remove=function(a){Z9(this);this.storage_.removeItem(a)};h.getCount=function(){Z9(this);return this.storage_.length};
h.__iterator__=function(a){Z9(this);var b=0,c=this.storage_,d=new Tkd;d.next=function(){if(b>=c.length)return Ukd;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};h.clear=function(){Z9(this);this.storage_.clear()};h.key=function(a){Z9(this);return this.storage_.key(a)};var Z9=function(a){if(a.storage_==null)throw Error("Wg");a.isAvailable()||sa(Error("Wg"))};Ww(ouc,nuc);Ww(tv,Zae);tv.prototype.set=function(a,b){this.mechanism_.set(this.prefix_+a,b)};tv.prototype.get=function(a){return this.mechanism_.get(this.prefix_+a)};tv.prototype.remove=function(a){this.mechanism_.remove(this.prefix_+a)};
tv.prototype.__iterator__=function(a){var b=this.mechanism_[Symbol.iterator](),c=this,d=new Tkd;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 puc=["PeopleStackExperiments"],$ae=new Set([4,0]),Euc=function(a,b){b=b===void 0?new ouc:b;this.clientConfig_=a;this.transformer_=new Sae(this.clientConfig_);this.localStorage_=b;this.storage_=new tv(this.localStorage_,"pse/591286274")};Euc.prototype.set=function(a,b){var c=luc(a,b.getObfuscatedGaiaId_legacyNullable());if(!c)throw Yae;var d=new Uae;b=Gj(d,1,c).setExperiments(b);d=Date.now();a=Nn(b,3,d).setInstanceId(a.getInstanceId());this.storage_.set(c,Rda(Xae(a)));return c};
Euc.prototype.get=function(a){a=luc(a);if(!a)return null;a=this.storage_.get(a);if(!a)return null;a=abe(a);if(a&&this.transformer_.getCacheState(qn(Hn(a,3)))!==4){var b=this.transformer_,c;var d={keyPath:Fi(a,1),experiments:(c=a.getExperiments())!=null?c:new X9,lastUpdated:new Date(qn(Hn(a,3))),state:b.getCacheState(qn(Hn(a,3))),instanceId:a.getInstanceId()}}else d=null;return d};var abe=function(a){if(!a)return null;try{return Wae(a)}catch(b){return null}};
Euc.prototype.delete=function(a){this.storage_.remove(a);return!0};
Euc.prototype.clean=function(){for(var a=[].concat(n(this.storage_)),b=l(a),c=b.next();!c.done;c=b.next()){c=c.value;var d=$ae,e=d.has,f;a:{if(c&&(f=abe(this.storage_.get(c)))&&Gn(f,3)){f=this.transformer_.getCacheState(qn(Hn(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(g){if(g==="Storage mechanism: Quota exceeded"){a=!0;break a}}a=!1}a&&this.storage_.clear();a=l(quc(this.localStorage_));for(b=a.next();!b.done;b=
a.next())b.value.clear()};var Fuc=function(a){var b=void 0;b=b===void 0?new Map:b;this.clientConfig_=a;this.transformer_=new Sae(this.clientConfig_);this.cache_=b};Fuc.prototype.set=function(a,b){var c=luc(a,b.getObfuscatedGaiaId_legacyNullable());if(!c)throw Yae;a={keyPath:c,experiments:b,lastUpdated:new Date,state:1,instanceId:a.getInstanceId()};this.cache_.set(c,a);return c};
Fuc.prototype.get=function(a){a=luc(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};Fuc.prototype.delete=function(a){this.cache_.delete(a);return!0};Fuc.prototype.clean=function(){var a=this;this.cache_.forEach(function(b,c){a.transformer_.getCacheState(b.lastUpdated.getTime())===4&&a.cache_.delete(c)})};var bbe=function(){};h=bbe.prototype;h.start=function(){};h.stop=function(){};h.count=function(){};h.latency=function(){};h.error=function(){};h.status=function(){};h.logError=function(){};var cbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(cbe,X);h=cbe.prototype;h.getCaller=function(){return Y(this,V9,1)};h.setCaller=function(a){return hj(this,V9,1,a)};h.getClient=function(){return Y(this,W9,2)};h.setClient=function(a){return hj(this,W9,2,a)};h.hasClient=function(){return Si(this,W9,2)};var dbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(dbe,X);h=dbe.prototype;h.getRequestType=function(){return Ri(this,1)};h.setRequestType=function(a){return Yn(this,1,a)};h.setProperties=function(a){return hj(this,cbe,3,a)};h.getInstanceId=function(){return Fi(this,4)};h.setInstanceId=function(a){return Gj(this,4,a)};h.clearInstanceId=function(){ex(this,4)};h.hasInstanceId=function(){return xm(this,4)};h.getInstanceIdOrUndefined=function(){return mx(this,4)};var ebe=new DC("/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",dbe,X9,function(a){return a.serialize()},Qae);var fbe=function(a){this.client_=new ZMc({format:"jspb"});this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};fbe.prototype.getExperimentFlags=function(a,b){return vD(this.client_,this.hostname_+"/$rpc/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",a,b||{},ebe)};var gbe=function(a,b){this.clientRequest_=a;this.rpcClient_=b;this.metric_=new bbe};gbe.prototype.getMetric=function(){return this.metric_};gbe.prototype.send=function(a){var b=this,c;return y(function(d){var e=(new cbe).setCaller(b.clientRequest_.getCaller()).setClient(b.clientRequest_.getClient());c=(new dbe).setRequestType(b.clientRequest_.getRequestType()).setInstanceId(b.clientRequest_.getInstanceIdOrUndefined()).setProperties(e);return d.return(b.rpcClient_.getExperimentFlags(c,a))})};
gbe.prototype.close=function(){};gbe.prototype.processResponse=function(a){return a};var hbe=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 ibe=function(a,b){Y9.call(this,a,b===void 0?"RpcError ("+a+")":b)};Z(ibe,Y9);var jbe=function(a,b){this.config_=a;this.request_=b;this.resolver_=new qPc;this.state_=0};h=jbe.prototype;h.resultPromise=function(){return this.resolver_.promise};h.isPending=function(){return this.state_===1};h.cancel=function(){switch(this.state_){case 1:this.state_=2;this.onError_("CANCELLED");break;case 0:this.state_=3;var a=new ibe(1,"CANCELLED");this.resolver_.reject(a.statusCode)}};
h.send=function(){var a=this;if(this.state_!==0)return this.resultPromise();var b=guc(this.config_.apiKey);this.config_.customAuthHeaders&&(b=Object.assign({},b,this.config_.customAuthHeaders));this.state_=1;b=this.request_.send(b);vuc(b,this.config_.timeoutSec*1E3).finally(function(){a.state_=2}).then(function(c){a:{if(a.state_!==3)if(c){try{var d=a.request_.processResponse(c)}catch(e){a.onError_(e,2);c=void 0;break a}try{a.resolver_.resolve(d),a.request_.close(0)}finally{a.state_=3}}else a.onError_(c);
c=void 0}return c},function(c){return a.onError_(c)});return this.resultPromise()};
h.onError_=function(a,b){b=b===void 0?0:b;if(this.state_!==3){if(a==="TIMEOUT")a=new ibe(4,"TIMEOUT");else if(a==="CANCELLED")a=new ibe(1,"CANCELLED");else if(!(a instanceof Y9)){var c=2;if(gq(a)){var d;isFinite((d=a.code)!=null?d:NaN)&&(c=a.code);c===2&&(c=sv("result.error.code",a)||a.status,c=Number(c),c=hbe.has(c)?hbe.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,b===3&&(c=14)))}a=new ibe(c)}try{var e=a instanceof
Y9?a.statusCode:2;!this.config_.authErrorHandler||e!==16&&e!==7||this.config_.authErrorHandler();this.resolver_.reject(e);this.request_.close(e,b)}finally{this.state_=3}}};var kbe=Symbol("Yg"),lbe=function(){};lbe.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[kbe]=d)}return c})};var mbe=function(a){this.request_=a;this.metric_=this.request_.getMetric();this.metric_.start("total");this.metric_.start("blocked");this.contentLength_=0};mbe.prototype.getMetric=function(){return this.metric_};mbe.prototype.send=function(a){this.metric_.stop("blocked");this.metric_.count();this.metric_.start("network");return this.request_.send(a)};
mbe.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[kbe]||0}};mbe.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 nbe=function(a){this.config_=a;this.pendingRpcs_=new Set},pbe=function(a,b){b=new mbe(b);b=new jbe(a.config_,b);a.pendingRpcs_.add(b);obe(a,b);return b.resultPromise()},obe=function(a,b){y(function(c){if(c.nextAddress==1)return Vd(c,2,3),z(c,b.send(),3);if(c.nextAddress!=2)return Wd(c),a.pendingRpcs_.delete(b),Yd(c,0);Zd(c);return c.jumpTo(3)})};var Cuc=function(a){this.clientConfig_=a;this.inflightRequests_=new Map;a={apiKey:this.clientConfig_.getApiKey(),timeoutSec:this.clientConfig_.getClient().getRpcTimeoutSec()};this.dispatcher_=new nbe(a);this.rpcClient_=new fbe(this.clientConfig_.apiRoot_)},rbe=function(a,b){var c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:var m=qbe(b);if(c=a.inflightRequests_.get(m)||null)return k.return(c);d=new gbe(b,a.rpcClient_);Vd(k,2,3);e=pbe(a.dispatcher_,d);m=qbe(b);a.inflightRequests_.set(m,
e);return z(k,e,5);case 5:return f=k.yieldResult,k.return(f);case 3:Wd(k);m=qbe(b);a.inflightRequests_.delete(m);Yd(k,0);break;case 2:g=Zd(k);if(Number.isFinite(g))throw new vv(7,g);throw new vv(7);}})},qbe=function(a){a=kuc(a);if(!a)throw Yae;return a};var sbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(sbe,X);var rzc=function(a){var b=new sbe;return Gj(b,1,a)};h=sbe.prototype;h.getLogSource=function(){return Ri(this,2,-1)};h.setLogSource=function(a){return Yn(this,2,a)};h.getApplication=function(){return Ri(this,3)};h.setApplication=function(a){return Yn(this,3,a)};h.getApplicationOrUndefined=function(){return Op(this,3)};h.getVersion=function(){return Fi(this,4)};h.setVersion=function(a){return Gj(this,4,a)};
h.getVersionOrUndefined=function(){return mx(this,4)};h.getBaselineCl=function(){return Wm(this,5)};h.setBaselineCl=function(a){return Wn(this,5,a)};h.hasBaselineCl=function(){return Bn(this,5)};h.getBaselineClOrUndefined=function(){return lx(this,5)};h.getEnableClearcut=function(){return $i(this,6)};h.setEnableClearcut=function(a){return jj(this,6,a)};var qzc=function(a,b){return tc(a,7,b,Bb)};h=sbe.prototype;h.setClientAgent=function(a){return Yn(this,8,a)};
h.getClientAgentOrUndefined=function(){return Op(this,8)};h.setEventSource=function(a){Yn(this,9,a)};h.getEventSourceOrUndefined=function(){return Op(this,9)};h.setEventSourceId=function(a){Wn(this,14,a)};h.getEventSourceIdOrUndefined=function(){return lx(this,14)};h.getClearcutUrl=function(){return Fi(this,10)};h.setClearcutUrl=function(a){Gj(this,10,a)};h.setEnvironment=function(a){return Yn(this,11,a)};h.getEnvironmentOrUndefined=function(){return Op(this,11)};
h.getPeoplekitEntryPoint=function(){return Ri(this,12)};h.setPeoplekitEntryPoint=function(a){return Yn(this,12,a)};h.getPeoplekitEntryPointOrUndefined=function(){return Op(this,12)};h.setSharekitEntryPoint=function(a){Yn(this,13,a)};h.getSharekitEntryPointOrUndefined=function(){return Op(this,13)};var tbe,ube=(tbe=window)==null?void 0:tbe.performance,vbe,wbe=ube==null?void 0:(vbe=ube.timing)==null?void 0:vbe.navigationStart,ZAd=wbe&&ube?function(){var a;return wbe+((a=ube==null?void 0:ube.now())!=null?a:0)}:function(){return Date.now()};var xbe=function(a){this.start_=a;this.end_=NaN};xbe.prototype.duration=function(){return this.end_-this.start_};xbe.prototype.stop=function(a){this.end_=a;return this.duration()};var $9=function(a){var b=b===void 0?ZAd:b;this.source_=a;this.nowFn_=b;this.durations_=new Map;this.lastLabel_="_"};$9.prototype.source=function(){return this.source_};var ybe=function(a,b){b&&(a.lastLabel_=b);return a.lastLabel_};
$9.prototype.duration=function(a){a=ybe(this,a===void 0?"":a);return this.durations_.has(a)?this.durations_.get(a).duration():NaN};var zbe=function(a,b){return wuc(a.duration(b===void 0?"":b))};$9.prototype.toString=function(a,b){b=b===void 0?1:b;return this.duration(a===void 0?"":a).toFixed(b)};$9.prototype.start=function(a){a=a===void 0?"":a;var b=this.nowFn_();a=ybe(this,a);this.durations_.set(a,new xbe(b));return this};
$9.prototype.stop=function(a){a=a===void 0?"":a;var b=this.nowFn_();a=ybe(this,a);this.durations_.has(a)&&this.durations_.get(a).stop(b);return this};$9.prototype.clear=function(){this.durations_.clear();return this};var Abe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Abe,X);var kzc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(kzc,X);h=kzc.prototype;h.getQueryId=function(){return rx(this,1)};h.setQueryId=function(a){return Nn(this,1,a)};h.setSelectionId=function(a){return Nn(this,2,a)};h.getInstanceId=function(){return Ml(this,4)};h.setInstanceId=function(a){return Gj(this,4,a)};h.clearInstanceId=function(){ex(this,4)};h.hasInstanceId=function(){return xm(this,4)};h.getInstanceIdOrUndefined=function(){return mx(this,4)};
h.getAffinityVersion=function(){return qx(this,5)};h.setAffinityVersion=function(a){Wn(this,5,a)};h.getAffinityVersionOrUndefined=function(){return lx(this,5)};var Bbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Bbe,X);h=Bbe.prototype;h.getQueryLength=function(){return qx(this,1)};h.setQueryLength=function(a){return Wn(this,1,a)};h.hasQueryLength=function(){return Bn(this,1)};h.getQuery=function(){return Ml(this,2)};h.setQuery=function(a){return Gj(this,2,a)};h.clearQuery=function(){ex(this,2)};h.hasQuery=function(){return xm(this,2)};var Cbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Cbe,X);Cbe.prototype.setLatencyUsec=function(a){Wn(this,1,a)};var a$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(a$,X);h=a$.prototype;h.getColumn=function(){return qx(this,2)};h.setColumn=function(a){return Wn(this,2,a)};h.getType=function(){return rw(this,3)};h.setType=function(a){return Yn(this,3,a)};h.hasType=function(){return ym(this,3)};var b$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(b$,X);b$.prototype.getExistingSelectionsCount=function(){return qx(this,1)};b$.prototype.setExistingSelectionsCount=function(a){Wn(this,1,a)};b$.prototype.getPosition=function(){return Y(this,a$,2)};b$.prototype.setPosition=function(a){return hj(this,a$,2,a)};var c$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(c$,X);h=c$.prototype;h.setDevice=function(a){return Yn(this,1,a)};h.getApplication=function(){return Ri(this,2)};h.setApplication=function(a){return Yn(this,2,a)};h.getApplicationOrUndefined=function(){return Op(this,2)};h.setPlatform=function(a){Yn(this,3,a)};var d$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(d$,X);h=d$.prototype;h.setEventSource=function(a){Yn(this,2,a)};h.getEventSourceOrUndefined=function(){return Op(this,2)};h.setEventSourceId=function(a){Wn(this,15,a)};h.getEventSourceIdOrUndefined=function(){return lx(this,15)};h.getSocialClient=function(){return Y(this,c$,3)};h.setSocialClient=function(a){return hj(this,c$,3,a)};h.setVersionName=function(a){return Gj(this,5,a)};
h.getBaselineCl=function(){return rx(this,7)};h.setBaselineCl=function(a){return Nn(this,7,a)};h.hasBaselineCl=function(){return Gn(this,7)};h.getBaselineClOrUndefined=function(){return Cw(this,7)};h.setClientAgent=function(a){return Yn(this,9,a)};h.getClientAgentOrUndefined=function(){return Op(this,9)};h.getPeoplekitEntryPoint=function(){return rw(this,11)};h.setPeoplekitEntryPoint=function(a){return Yn(this,11,a)};h.getPeoplekitEntryPointOrUndefined=function(){return Op(this,11)};
h.setEnvironment=function(a){return Yn(this,13,a)};h.getEnvironmentOrUndefined=function(){return Op(this,13)};h.setSharekitEntryPoint=function(a){Yn(this,14,a)};h.getSharekitEntryPointOrUndefined=function(){return Op(this,14)};var e$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(e$,X);h=e$.prototype;h.getType=function(){return rw(this,5)};h.setType=function(a){return Yn(this,5,a)};h.hasType=function(){return ym(this,5)};h.getEmail=function(){return Ml(this,1)};h.getEmail_legacyNullable=function(){return Ml(this,1)};h.setEmail=function(a){return Gj(this,1,a)};h.hasEmail=function(){return xm(this,1)};h.getPhone=function(){return Ml(this,2)};
h.getPhone_legacyNullable=function(){return Ml(this,2)};h.setPhone=function(a){return Gj(this,2,a)};h.getObfuscatedGaiaId=function(){return Ml(this,3)};h.getObfuscatedGaiaId_legacyNullable=function(){return Ml(this,3)};h.setObfuscatedGaiaId=function(a){return Gj(this,3,a)};h.getContactId=function(){return rx(this,4)};h.setContactId=function(a){return Nn(this,4,a)};h.getGroupId=function(){return Ml(this,6)};h.setGroupId=function(a){Gj(this,6,a)};h.hasGroupId=function(){return xm(this,6)};var f$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(f$,X);f$.prototype.getName=function(){return Ml(this,1)};f$.prototype.setName=function(a){return Gj(this,1,a)};f$.prototype.hasName=function(){return xm(this,1)};f$.prototype.getNameOrUndefined=function(){return mx(this,1)};var g$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(g$,X);h=g$.prototype;h.getPosition=function(){return Y(this,a$,1)};h.setPosition=function(a){return hj(this,a$,1,a)};h.getProvenance=function(){return px(this,3)};h.setProvenance=function(a){return wc(this,3,zb,void 0,a,Ab,void 0,1)};h.getIsBoosted=function(){return jw(this,6)};h.setIsBoosted=function(a){jj(this,6,a)};h.getIsPlaceholder=function(){return jw(this,7)};h.setIsPlaceholder=function(a){jj(this,7,a)};
h.getIsSelf=function(){return jw(this,11)};h.getQueryId=function(){return rx(this,15)};h.setQueryId=function(a){return Nn(this,15,a)};h.setSelectionId=function(a){return Nn(this,16,a)};var Dbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Dbe,X);h=Dbe.prototype;h.getLoggingId=function(){return Ml(this,1)};h.setLoggingId=function(a){Gj(this,1,a)};h.getMetadata=function(){return Y(this,g$,3)};h.getMutableMetadata=function(){return cj(this,g$,3)};h.setMetadata=function(a){hj(this,g$,3,a)};h.hasMetadata=function(){return Si(this,g$,3)};var h$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(h$,X);h$.prototype.getAffinityVersion=function(){return qx(this,2)};h$.prototype.setAffinityVersion=function(a){Wn(this,2,a)};h$.prototype.getAffinityVersionOrUndefined=function(){return lx(this,2)};var Ebe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Ebe,X);h=Ebe.prototype;h.getEventType=function(){return rw(this,1)};h.getEventType_legacyNullable=function(){return rw(this,1)};h.setEventType=function(a){return Yn(this,1,a)};h.getMetadata=function(){return Y(this,h$,4)};h.getMutableMetadata=function(){return cj(this,h$,4)};h.setMetadata=function(a){hj(this,h$,4,a)};h.hasMetadata=function(){return Si(this,h$,4)};
h.getClientInterface=function(){return Y(this,d$,5)};h.setClientInterface=function(a){return hj(this,d$,5,a)};var Fbe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Fbe,X);h=Fbe.prototype;h.getInstanceId=function(){return Fi(this,1)};h.setInstanceId=function(a){return Gj(this,1,a)};h.clearInstanceId=function(){ex(this,1)};h.hasInstanceId=function(){return xm(this,1)};h.getInstanceIdOrUndefined=function(){return mx(this,1)};h.getRequestId=function(){return Fi(this,2)};h.getRequestType=function(){return Ri(this,4)};h.setRequestType=function(a){return Yn(this,4,a)};
h.getSourceType=function(){return Ri(this,6)};h.setSourceType=function(a){return Yn(this,6,a)};h.getClient=function(){return Ri(this,7)};h.setClient=function(a){return Yn(this,7,a)};h.hasClient=function(){return ym(this,7)};h.getErrorType=function(){return Ri(this,8)};h.setErrorType=function(a){return Yn(this,8,a)};h.hasErrorType=function(){return ym(this,8)};h.getStatusCode=function(){return Ri(this,10)};h.setStatusCode=function(a){Yn(this,10,a)};h.hasStatusCode=function(){return ym(this,10)};var Duc=function(a){var b=a.getClient();a=a.runtime_.getPeopleApiEnv();this.logContext_=rzc("PeopleExperiments").setEnvironment(a).setLogSource(1250).setVersion("1.0.1").setBaselineCl(839130764).setEnableClearcut(b.getEnableClearcut())};h=Duc.prototype;h.getLogContext=function(){return this.logContext_};h.createCountMetric=function(){throw Error("Eg");};h.createStatusMetric=function(){throw Error("Eg");};h.createErrorMetric=function(){throw Error("Eg");};
h.createLatencyMetric=function(a,b){a=b.source();b=Math.round(b.duration()*1E3);Nn(a,3,b);return a};var Zvc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Zvc,X);var Yvc=function(a,b){return tc(a,3,b,Bb)};var Gbe=zj(function(a,b,c,d,e,f){f=f===void 0?"":f;a=new EE(a,b);f&&(a.destinationUrl=f);d&&hRc(a,function(){return guc().Authorization});a.setProductID(e||109303191);if(c==null?0:c.length)c=Yvc(new Zvc,c),a.setClearExperimentIds(c);return a.build()});var Hbe=function(a,b){this.clearcut_=a;this.logContextFactory_=b;this.device_=tba()||Ea("iPod")?4:Ea("iPad")?5:sba()?xuc()?3:2:(hba&&Ca?Ca.mobile:!xuc()&&(Ea("iPod")||Ea("iPhone")||Ea("Android")||Ea("IEMobile")))||xuc()?0:1},Ibe=function(a){var b=a.getLogContext(),c=null;if(b.getEnableClearcut()){var d,e;c=b.getLogSource();var f=duc();var g=Ym(b,7,Xi(en));c=Gbe(c,f,g,(e=(d=iV.clearcut)==null?void 0:d.preferOauth)!=null?e:!1,Wm(b,15),b.getClearcutUrl())}return new Hbe(c,a)},Jbe=function(a){var b=a.logContextFactory_.getLogContext(),
c=new c$;c.setApplication(b.getApplicationOrUndefined());c.setDevice(a.device_);a=new d$;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},Kbe=function(a,b){var c=new nE;oQc(c,b.serialize());a.clearcut_&&a.clearcut_.dispatch(c)};var Lbe=function(a,b){this.clearcut_=a;this.logEventFactory_=b},Pvc=function(a){return new Lbe(Ibe(a),a)};Lbe.prototype.logError=function(a){var b=Jbe(this.clearcut_);(a=this.logEventFactory_.createErrorMetric(b,a))&&Kbe(this.clearcut_,a)};var Ovc=function(a){this.clearcut_=a};h=Ovc.prototype;h.start=function(a,b){a.start(b);return this};h.stop=function(a,b){a.stop(b);return this};h.count=function(a,b){var c=this.clearcut_;b=b===void 0?1:b;var d=Jbe(c.clearcut_);(a=c.logEventFactory_.createCountMetric(d,a,b))&&Kbe(c.clearcut_,a);return this};h.status=function(a,b){var c=this.clearcut_,d=Jbe(c.clearcut_);(a=c.logEventFactory_.createStatusMetric(d,a,b))&&Kbe(c.clearcut_,a);return this};
h.latency=function(a){var b=this.clearcut_,c=Jbe(b.clearcut_);(a=b.logEventFactory_.createLatencyMetric(c,a))&&Kbe(b.clearcut_,a);return this};h.error=function(a){this.clearcut_.logError(a);return this};h.logError=function(){};h.logInfo=function(){return this};var Mbe=function(a,b){this.metrics_=a;this.state_=new $9(b);this.label_="total";this.source=b};Mbe.prototype.start=function(){this.metrics_.start(this.state_,this.label_)};Mbe.prototype.stop=function(){this.metrics_.stop(this.state_,this.label_);this.metrics_.latency(this.state_)};var Guc=function(a,b,c){this.worker_=a;this.metrics_=new Ovc(Pvc(b));this.runtimeConfig_=c},Nbe=function(a,b,c){var d,e,f=new Fbe,g=iuc();f=Gj(f,2,g).setRequestType(b.getRequestType());b=Yn(f,5,c).setClient((e=(d=b.getClient())==null?void 0:d.getApplicationOrUndefined())!=null?e:0);return Yn(b,9,a.runtimeConfig_.getPeopleApiEnv())},Obe=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())};Guc.prototype.updateExperimentsCache=function(a,b){b=b===void 0?2:b;var c=this,d,e,f;return y(function(g){if(g.nextAddress==1)return d=Nbe(c,a,b),e=new Mbe(c.metrics_,d),e.start(),z(g,c.worker_.updateExperimentsCache(a,b),2);f=g.yieldResult;Obe(f,d);e.stop();return g.return(f)})};
Guc.prototype.getCachedExperiments=function(a,b){b=b===void 0?0:b;var c=Nbe(this,a,b),d=new Mbe(this.metrics_,c);d.start();a=this.worker_.getCachedExperiments(a,b);Obe(a,c);d.stop();return a};var Pbe=function(a){this.timer=a;this.count=0},Iuc=function(a,b){this.clientConfig_=a;this.worker_=b;this.refreshers_=new Map;a=this.clientConfig_.getClient();this.refreshRateMs_=Wm(a,11,14400)*1E3;this.eventHandler_=new Pi(this)};Iuc.prototype.updateExperimentsCache=function(a,b){try{return Qbe(this,a),this.worker_.updateExperimentsCache(a,b)}catch(c){return Promise.resolve(Auc(c))}};Iuc.prototype.getCachedExperiments=function(a,b){try{return Qbe(this,a),this.worker_.getCachedExperiments(a,b)}catch(c){return Auc(c)}};
var Qbe=function(a,b){var c=kuc(b);if(!c)throw new vv(6);if(a.refreshers_.has(c))a.refreshers_.get(c).count=0;else{var d=new kE(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=a.clientConfig_.getClient();f=Wm(f,12,18);e.count>=f&&(e.timer.stop(),a.refreshers_.delete(c))}});d.start();a.refreshers_.set(c,new Pbe(d))}a.refreshers_.get(c)};var Rbe=function(){},Huc=function(a,b){this.cache_=a;this.loader_=b};
Huc.prototype.updateExperimentsCache=function(a,b){var c=this,d,e,f,g;return y(function(k){if(k.nextAddress==1){e=d=null;try{d=Sbe(c,a)}catch(x){e=x}if(d&&d.state!==3)return k.return(c.getCachedExperiments(a,b));Vd(k,3);return z(k,Tbe(c,a),5)}if(k.nextAddress!=3){f=k.yieldResult;var m=k.return,r=f,w=e;w=w===void 0?null:w;r=(new zuc).setExperimentFlags(r.getExperimentFlags()).setExperimentIdsList(r.getExperimentIdsList()).setSource(1).setInstanceId(a.getInstanceIdOrUndefined());w&&r.setError(yuc(w));
return m.call(k,r)}g=Zd(k);return k.return(Auc(g))})};Huc.prototype.getCachedExperiments=function(a){try{var b=Sbe(this,a);if(b){var c=(new zuc).setExperimentFlags(b.experiments.getExperimentFlags()).setExperimentIdsList(b.experiments.getExperimentIdsList()).setInstanceId(b.instanceId).setSource(2);b.state!==1&&Tbe(this,a).catch(Rbe);return c}Tbe(this,a).catch(Rbe);return Auc()}catch(d){return Auc(d)}};
var Sbe=function(a,b){try{var c=a.cache_.get(b);return c&&c.experiments.hasExperimentFlags()?c:null}catch(d){if(d instanceof vv)throw d;throw new vv(3);}},Tbe=function(a,b){var c,d;return y(function(e){if(e.nextAddress==1)return Vd(e,2),b.hasInstanceId()||b.setInstanceId(iuc()),z(e,rbe(a.loader_,b),4);if(e.nextAddress!=2)return c=e.yieldResult,a.cache_.set(b,c),e.return(c);d=Zd(e);if(d instanceof vv)throw d;throw new vv(2);})};var Buc;var Ube=function(a){this.clientConfig_=a;this.worker_=Juc(this.clientConfig_)};Ube.prototype.getCachedExperiments=function(a){return this.worker_.getCachedExperiments(a,0)};var fwc=function(){this.peopleApiEnv_=4};fwc.prototype.getPeopleApiEnv=function(){return this.peopleApiEnv_};fwc.prototype.setPeopleApiEnv=function(a){this.peopleApiEnv_=a;return this};var Vbe=function(a,b){this.client_=a;this.request_=b;this.response_=null};Vbe.prototype.getExperimentFlags=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentFlags()};Vbe.prototype.getExperimentIds=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentIdsList(en)};var ewc=function(a,b){this.clientConfig_=a;this.requestType_=b;this.version_=839130764};ewc.prototype.prefetch=function(a){var b=new Pae(this.clientConfig_,new fwc);a=Wbe(this,a,"");Juc(b).updateExperimentsCache(a,2)};ewc.prototype.loadExperiments=function(a,b,c){var d=new Pae(this.clientConfig_,b),e=Wbe(this,a,c);Juc(d).updateExperimentsCache(e,2);b=new Pae(this.clientConfig_,b);b=new Ube(b);a=Wbe(this,a,c);return new Vbe(b,a)};
var Wbe=function(a,b,c){var d=(new V9).setVersion(a.version_);b=(new W9).setApplication(b);return(new Oae).setProfileId(c).setRequestType(a.requestType_).setCaller(d).setClient(b)};var Muc=new gwc(new I9,new Lae);var Nuc=yt.getInstance();var Ouc=yt.getInstance();var Xbe=new yl(HG.WEEKDAY_MONTH_DAY_MEDIUM),Ybe=new yl(7);new yl(HG.WEEKDAY_MONTH_DAY_MEDIUM);var Zbe=new Map([[0,2],[1,1],[2,3],[3,4],[4,2],[5,5]]);var $be=function(a){var b=a.iconUrl,c=a.altText,d=a.persistentText,e=a.styleClass,f=a.fontIcon,g=a.customTagClass,k=a.tooltipLabel;a=Sv();e=g||e;g=k?"tt-c"+jae++:"";e=Rv(a,'<div class="'+Nv("peoplekitComponentsTagTag")+" "+(e?Nv(e):"")+'" peoplekit-id="'+Nv("mQXP")+'"'+(g?' data-tooltip-id="'+Nv(g)+'" aria-labelledby="'+Nv(g)+'"':"")+">");N9(b)||N9(f)?(g=Sv(),b=N9(b)?'<img class="'+Nv("peoplekitComponentsTagIcon")+'" src="'+Nv(J$d(b))+'" alt="'+Nv(c)+'">':N9(f)?'<span class="google-symbols '+Nv("peoplekitComponentsTagIcon")+
'">'+Ov(f)+"</span>":"",b=Qv(b),c=Rv(Tv(g,b),"<div"+(d?"":' class="'+Nv("peoplekitComponentsTagUnrollingAltText")+'"')+'><div class="'+Nv("peoplekitComponentsTagText")+'">'+Ov(c)+"</div></div>")):c='<div class="'+Nv("peoplekitComponentsTagText")+'">'+Ov(c)+"</div>";Rv(Tv(e,c),"</div>");return a};var ace=function(a,b){a:switch(a.style||0){case 1:var c="isWarning";break a;default:c=""}this.tagElement=$u($be,Object.assign({},a,{styleClass:c}));a.tooltipLabel&&(c=this.tagElement.getAttribute("data-tooltip-id")||"",this.tooltip=Vsc(b,c,{label:a.tooltipLabel}),Zsc(this.tooltip,this.tagElement))};ace.prototype.getRoot=function(){return this.tagElement};ace.prototype.dispose=function(){this.tooltip&&gae(this.tooltip.tooltipEventTracker)};var i$=function(a,b,c,d,e,f,g){var k=this;this.root=a;this.avatar=e;this.features=f;this.popupsContainer=g;this.isIntelligenceInitialized=this.isOutOfOffice=!1;this.tags=[];bce(this,{tags:d});htc(a,b.getPrimaryTarget());c.getResultDecorationConfigRequestCallback()(b,function(m){bce(k,m)})};h=i$.prototype;h.getAllIds=function(){return[]};h.toggleSelection=function(){};h.activate=function(){this.root.classList.add("isActive")};h.deactivate=function(){this.root.classList.remove("isActive")};
h.spotlight=function(){};h.unspotlight=function(){};h.getRoot=function(){return this.root};h.getSelection=function(){throw Error("Vg");};h.onKeyDown=function(){};h.onContextMenu=function(){return function(){}};
h.updateWaldo=function(a){if(this.getSupportedIntelligenceFeatures().includes(1)){var b=av(this.root,"Z306Oe");if(this.isOutOfOffice=a.getCurrentStatus()===4){if(a.getCurrentStatus()!==4)throw Error("Zg");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 "+Ybe.format(c):"Out of office - back on "+Xbe.format(c);DOc(b,String(c));this.root.classList.add("isOutOfOffice")}else DOc(b,
""),this.root.classList.remove("isOutOfOffice")}};h.updateHubAvailabilityDot=function(a){this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:Zbe.get(a.getType()||0)||2})};h.getSupportedIntelligenceFeatures=function(){return this.features};h.addTag=function(a){var b=av(this.root,"x00ATb"),c=this.popupsContainer.get("jGsbz");a=new ace(a,c);this.tags.push(a);b.appendChild(a.getRoot())};
h.setMetaIcon=function(a){var b=Vrc(this.root,"SC3Htd")[0];b&&(b.src=a.iconUrl,b.alt=a.altText)};var bce=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)};i$.prototype.initializeIntelligence=function(){this.isIntelligenceInitialized||(this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:2}),this.isIntelligenceInitialized=!0)};i$.prototype.dispose=function(){this.tags.forEach(function(a){a.dispose()})};var cce=function(a,b,c,d){this.loggingToken=d;this.lookupWithOverride=Uwc(Twc(a).setDisplayName(b),c)};cce.prototype.getLoggingToken=function(){return this.loggingToken};var dce=function(){};dce.prototype.getDisplayNameMatches=function(){return[]};dce.prototype.getDisplayValueMatches=function(){return[]};dce.prototype.getGivenNameMatches=function(){return[]};var ece=new dce;var Quc=function(a,b,c){this.resultType_=a;this.targets_=b;this.memberCount_=c};h=Quc.prototype;h.getResultType=function(){return this.resultType_};h.getTargetList=function(){return this.targets_};h.getMemberList=function(){return[]};h.getTotalMemberCount=function(){return this.memberCount_};h.getPrimaryTarget=function(){throw Error("$g");};h.getDisplayName=function(){return""};h.getDisplayValue=function(){return""};h.getDescription=function(){return""};h.getPhotoUrl=function(){return""};
h.getIsBoosted=function(){return!1};h.getMatchInfo=function(){return ece};h.getExtendedData=function(){return null};var fce=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 gce=function(a){this.id_=a;this.value_=this.id_.getOriginalValue();this.description_=this.canonicalValue_="";this.name_=null;this.photo_=aw(this.id_)?dBd:cBd;this.tags_=[];this.sourceIds_=Izc.includes(this.id_.getType())?[this.id_]:[];this.id_.getType()===8&&this.sourceIds_.push(Jxc(this.id_.getOriginalValue()));this.isMe_=this.id_.getType()===17;this.dataSource_=0;this.resultType_=fce.get(this.id_.getType())||0;this.personLoggingId_=this.fieldLoggingId_="";this.orgState_=0;this.extendedData_=
this.reachabilityInfo_=this.originatingField_=this.emailSecurityInfo_=null};h=gce.prototype;h.getId=function(){return this.id_};h.getTargetType=function(){return this.id_.getType()};h.getValue=function(){return this.value_};h.setValue=function(a){this.value_=xv(a);return this};h.getDisplayValue=function(){switch(this.getTargetType()){case 8:var a=this.getOriginatingField();return xv(a&&a.getValue());case 1:case 2:case 6:case 7:return this.getValue();default:return""}};
h.getCanonicalValue=function(){return this.canonicalValue_||this.value_};h.setCanonicalValue=function(a){this.canonicalValue_=xv(a);return this};h.getName=function(){return this.name_};h.setName=function(a){this.name_=a;return this};h.getDescription=function(){return this.description_};h.setDescription=function(a){this.description_=xv(a);return this};h.getPhoto=function(){return this.photo_};h.setPhoto=function(a){a&&a.getUrl()&&a.getType()!==1?this.photo_=a:this.photo_=aw(this.id_)?dBd:cBd};
h.getTagList=function(){return this.tags_};h.setTagList=function(a){this.tags_=a||[]};h.getSourceIdList=function(){return this.sourceIds_};h.getProfileId=function(){return this.getSourceIdList().filter(function(a){return a.getType()===3}).map(function(a){return a.getOriginalValue()}).find(Boolean)||""};h.getContactId=function(){return this.getSourceIdList().filter(function(a){return a.getType()===4}).map(function(a){return a.getOriginalValue()}).find(Boolean)||""};h.getLoggingToken=function(){return new xw};
h.getIsMe=function(){return this.isMe_};h.setIsMe=function(a){this.isMe_=a;return this};h.getDataSource=function(){return this.dataSource_};h.setDataSource=function(a){this.dataSource_=a;return this};h.getResultType=function(){return this.resultType_};h.setResultType=function(a){this.resultType_=a;return this};h.getFieldLoggingId=function(){return this.fieldLoggingId_};h.setFieldLoggingId=function(a){this.fieldLoggingId_=xv(a)};h.getPersonLoggingId=function(){return this.personLoggingId_};
h.setPersonLoggingId=function(a){this.personLoggingId_=xv(a)};h.getOrgState=function(){return this.orgState_};h.setOrgState=function(a){this.orgState_=a};h.getOriginatingField=function(){return this.originatingField_};var pyc=function(a,b){a.originatingField_=b;return a};h=gce.prototype;h.getEmailSecurityInfo=function(){return this.emailSecurityInfo_};h.setEmailSecurityInfo=function(a){this.emailSecurityInfo_=a};h.getReachabilityInfo=function(){return this.reachabilityInfo_};
h.setReachabilityInfo=function(a){this.reachabilityInfo_=a};h.getExtendedData=function(){return this.extendedData_};h.setExtendedData=function(a){this.extendedData_=a};var uw=function(a){return new gce(a)};var Suc=function(a,b,c,d){this.internalId=a;this.displayNameOverride=b;this.forceDisplayNameOverride=c;a=uw(this.internalId).setDataSource(3);this.internalResult=ys(Ruc(0,[a]));this.internalSelectionToken=new cce(this.internalId,this.displayNameOverride,this.forceDisplayNameOverride,d)};h=Suc.prototype;h.id=function(){return this.internalId};h.selectionToken=function(){return this.internalSelectionToken};h.result=function(){return this.internalResult};h.getDisplayNameOverride=function(){return this.displayNameOverride};
h.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride};h.getDisplayNameWithOverrideApplied=function(){return this.displayNameOverride};h.isPlaceholder=function(){return!0};var hce=function(a,b,c,d,e,f){this.delegate=new i$(a,b,c,d,e,[2],f);this.id=b.getPrimaryTarget().getId();this.selection=Tuc(hw)};Z(hce,S9);hce.prototype.getAllIds=function(){return[this.id]};hce.prototype.getSelection=function(){return this.selection};var ice=function(a,b,c,d,e,f,g,k){d=d===void 0?"":d;e=e===void 0?!1:e;return Rv(Tv(Rv(Tv(Rv(Tv(Rv(Sv(),'<div role="option" class="'+Nv("peoplekitComponentsResultlistitemResultListItem")+" "+Nv(d)+'" id="'+Nv(a)+'" peoplekit-id="'+Nv(a)+'" aria-disabled="'+Nv(e)+'" aria-selected="false"><div class="'+Nv("peoplekitComponentsResultlistitemResultListItemRow")+'"><div class="'+Nv("peoplekitComponentsResultlistitemLeft")+'" data-hovercard-id="'+Nv(b)+'" data-name="'+Nv(Uv(c))+'">'),Ov(f)),'</div><div class="'+
Nv("peoplekitComponentsResultlistitemCenter")+'">'),Ov(g)),'</div><div class="'+Nv("peoplekitComponentsResultlistitemRight")+'" peoplekit-id="'+Nv("QChpEe")+'">'),Ov(k)),'</div></div><div peoplekit-id="'+Nv("Z306Oe")+'" class="'+Nv("peoplekitComponentsResultlistitemOutOfOffice")+'"></div></div>')},jce=function(a,b,c){return Qv('<div class="'+Nv("peoplekitComponentsResultlistitemLabelContainer")+'"><div class="'+Nv("peoplekitComponentsResultlistitemLabel")+" "+Nv("peoplekitComponentsResultlistitemLabelRow")+
'"><div class="'+Nv("peoplekitComponentsResultlistitemLabelText")+'" data-name="'+Nv(Uv(a))+'" translate="no">'+Lwc(Uv(a))+'</div><div peoplekit-id="'+Nv("x00ATb")+'" class="'+Nv("peoplekitComponentsResultlistitemTags")+'"></div></div>'+(b?'<div class="'+Nv("peoplekitComponentsResultlistitemSublabel")+" "+Nv("peoplekitComponentsResultlistitemLabelRow")+'"><div class="'+Nv("peoplekitComponentsResultlistitemSublabelText")+'" data-name="'+Nv(Uv(a))+'"'+(c?"":' translate="no"')+">"+Lwc(Uv(b))+"</div></div>":
"")+"</div>")},kce=function(a){return Rv(Tv(Rv(Sv(),'<div class="'+Nv("peoplekitComponentsResultlistitemAvatar")+'"><div class="'+Nv("peoplekitComponentsResultlistitemAvatarContainer")+'" peoplekit-id="'+Nv("d6MZcd")+'"></div>'),N9(a)?Ov(a):""),"</div>")},lce=function(){var a=Sv(),b=Rv(Sv(),'<div class="'+Nv("peoplekitComponentsResultlistitemAvatarSelectionOverlay")+'"><div class="'+Nv("peoplekitComponentsResultlistitemWhiteCheck")+'">');var c=Qv('<svg viewBox="0 0 24 24" class="'+(Nv("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 Tv(a,kce(Rv(Tv(b,c),"</div></div>")))},mce=function(){return Qv('<img class="'+Nv("peoplekitComponentsResultlistitemMetaIcon")+'" peoplekit-id="'+Nv("SC3Htd")+'" alt="" src=""/>')};var nce=function(a){var b=a.id,c=a.hovercardId,d=a.label,e=a.sublabel,f=a.densityClass,g=a.disableReason;a=a.allowSublabelTranslation;return Tv(Sv(),ice(b,c,d,"isDisabled "+f,!0,Tv(Sv(),kce()),Tv(Sv(),jce(d,e,a)),Rv(Tv(Rv(Sv(),'<div class="'+Nv("peoplekitComponentsResultlistitemDisabledDisableReasonContainer")+'">'),Ov(g)),"</div>")))},oce=function(){var a=Sv(),b='<div class="'+Nv("peoplekitComponentsResultlistitemDisabledIconIndicator")+'" aria-label="';a=Rv(a,b+Nv(". Already selected")+'">');b=
Qv('<svg xmlns="http://www.w3.org/2000/svg" height="18px" viewBox="0 0 24 24" width="18px" class="'+(Nv("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 Rv(Tv(a,b),"</div>")};var Vuc=function(a){this.delegate=a;var b=this;this.eventHandler=dv(this);this.eventHandler.listen(this.getRoot(),"click",function(c){b.onClick(c)})};Z(Vuc,S9);Vuc.prototype.onClick=function(){this.toggleSelection()};var Xuc=function(a,b,c,d){this.internalResult=a;this.displayNameOverride=b;this.forceDisplayNameOverride=c;a=this.internalResult.getTargetList()[0];if(!a)throw new RangeError("ah");this.target=a;d=d||this.target.getLoggingToken();a=this.target.getId();this.internalSelectionToken=new cce(a,this.displayNameOverride,this.forceDisplayNameOverride,d)};h=Xuc.prototype;h.id=function(){return this.target.getId()};h.selectionToken=function(){return this.internalSelectionToken};h.result=function(){return this.internalResult};
h.getDisplayNameOverride=function(){return this.displayNameOverride};h.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride};h.getDisplayNameWithOverrideApplied=function(){return this.forceDisplayNameOverride?this.displayNameOverride:this.displayNameOverride||this.internalResult.getDisplayName()};h.isPlaceholder=function(){return!1};var pce=function(a){this.groupLoggingToken=a.getPrimaryTarget().getLoggingToken();this.explodedMembers=a.getMemberList().map(function(b){return Yuc(b)})};pce.prototype.getLoggingToken=function(){return this.groupLoggingToken};var qce=function(a,b,c,d,e,f,g){this.delegate=new i$(a,b,d,e,f,[],g);this.root=a;this.result=b;this.selectionsState=c;this.id=b.getPrimaryTarget().getId();this.selection=Tuc(hw)};Z(qce,S9);qce.prototype.getAllIds=function(){return[this.id]};qce.prototype.toggleSelection=function(){var a=new pce(this.result);this.selectionsState.selectExplodingGroup(a,1);this.root.dispatchEvent(rsc("pcw-select",this.root))};qce.prototype.getSelection=function(){return this.selection};var rce=function(a){var b=a.id,c=a.hovercardId,d=a.label,e=a.sublabel,f=a.densityClass;a=a.allowSublabelTranslation;return Tv(Sv(),ice(b,c,d,f,void 0,Tv(Sv(),kce()),Tv(Sv(),jce(d,e,a)),Tv(Sv(),mce())))};var tce=function(a,b){this.delegate=a;var c=this;this.selectionsState=b;this.id=a.getAllIds()[0];b.get(this.id)&&sce(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){sce(c,d)};j$(this.selectionsState,this.onDeselectionCallback);k$(this.selectionsState,this.onSelectionCallback)};Z(tce,S9);
tce.prototype.toggleSelection=function(){if(this.selectionsState.get(this.id)){var a=this.getRoot();a=rsc("pcw-deselect",a)}else a=this.getRoot(),a=rsc("pcw-select",a);this.getRoot().dispatchEvent(a);this.selectionsState.toggle(this.getSelection(),1)};var sce=function(a,b){b.id().equals(a.id)&&(a.getRoot().classList.add("isSelected"),a.getRoot().setAttribute("aria-selected","true"))};tce.prototype.dispose=function(){this.selectionsState.deselectionCallbacks.remove(this.onDeselectionCallback);this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback)};var uce=function(a,b,c,d,e,f,g,k){this.delegate=new i$(a,b,d,e,f,[2],k);this.selectionsState=c;this.clientConfig=g;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||Yuc(b,b.getDisplayName())};Z(uce,S9);uce.prototype.onContextMenu=function(a,b){$i(this.clientConfig.internal,7)&&a.preventDefault();return S9.prototype.onContextMenu.call(this,a,b)};uce.prototype.getAllIds=function(){return[this.id]};uce.prototype.getSelection=function(){return this.selection};var vce=function(a){var b=a.id,c=a.hovercardId,d=a.label,e=a.sublabel,f=a.densityClass;a=a.allowSublabelTranslation;return Tv(Sv(),ice(b,c,d,f,void 0,Tv(Sv(),lce()),Tv(Sv(),jce(d,e,a)),Tv(Sv(),mce())))};var wce=function(a,b,c,d,e,f,g,k){this.delegate=new i$(a,b,d,e,f,[],k);this.selectionsState=c;this.clientConfig=g;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||Yuc(b)};Z(wce,S9);wce.prototype.onContextMenu=function(a,b){$i(this.clientConfig.internal,7)&&a.preventDefault();return S9.prototype.onContextMenu.call(this,a,b)};wce.prototype.getAllIds=function(){return[this.id]};wce.prototype.getSelection=function(){return this.selection};var xce=function(a){var b=a.id,c=a.hovercardId,d=a.label,e=a.sublabel,f=a.densityClass;a=a.allowSublabelTranslation;return Tv(Sv(),ice(b,c,d,f,void 0,Tv(Sv(),lce()),Tv(Sv(),jce(d,e,a)),Tv(Sv(),mce())))};ov.addCoreFactory({type:0,factory:{create:function(a){var b=a.result,c=a.resultConfig,d=a.resultCustomizationConfig,e=a.appearanceConfig,f=a.selectionsState,g=a.clientConfig,k=a.popupsContainer;a=Luc(a);var m=$u(vce,a);mv({element:m,veid:25285,actions:["impression","pcw-select","pcw-deselect"],pairs:[Zuc(b.getPrimaryTarget().getLoggingToken())],componentId:"peoplekitweb"});var r=av(m,"d6MZcd"),w=Ztc(e.getDensity()),x;d=(x=d.backupAvatarUrl)!=null?x:"";e=bv(r,a.photos,w,w,e,d);b=new uce(m,b,f,c,a.tags,
e,g,k);return Wuc(new tce(b,f))},shouldCreate:function(){return!0}},configurationKey:void 0});
ov.addCoreFactory({type:1,factory:{create:function(a){var b=Uuc(a),c=a.result,d=a.resultConfig,e=a.appearanceConfig,f=a.resultCustomizationConfig,g=a.popupsContainer,k=c.getPrimaryTarget().getId();a=aw(k)||TAd(k)?Puc(a):Luc(a);k=Object;var m=k.assign;a:switch(b){case 1:var r=oce();break a;case 2:r=f.showSelectedIndicatorForDisabled?oce():Qv("");break a;default:r='<div class="'+Nv("peoplekitComponentsResultlistitemDisabledTextIndicator")+'">',r=Qv(r+"DISABLED</div>")}k=$u(nce,m.call(k,{},a,{disableReason:r}));
(b===1||b===2&&f.showSelectedIndicatorForDisabled)&&k.setAttribute("aria-selected","true");b=av(k,"d6MZcd");m=Ztc(e.getDensity());var w;f=(w=f.backupAvatarUrl)!=null?w:"";e=bv(b,a.photos,m,m,e,f);return new hce(k,c,d,a.tags,e,g)},shouldCreate:function(a){return Uuc(a)!==0}},configurationKey:void 0});
ov.addCoreFactory({type:2,factory:{create:function(a){var b=a.result,c=a.resultConfig,d=a.appearanceConfig,e=a.resultCustomizationConfig,f=a.clientConfig,g=a.selectionsState,k=a.popupsContainer;a=Puc(a);var m=$u(xce,a);mv({element:m,veid:25285,actions:["impression","pcw-select","pcw-deselect"],pairs:[Zuc(b.getPrimaryTarget().getLoggingToken())],componentId:"peoplekitweb"});var r=av(m,"d6MZcd"),w=Ztc(d.getDensity()),x;e=(x=e.backupAvatarUrl)!=null?x:"";d=bv(r,a.photos,w,w,d,e);b=new wce(m,b,g,c,a.tags,
d,f,k);return Wuc(new tce(b,g))},shouldCreate:function(a){return aw(a.result.getPrimaryTarget().getId())}},configurationKey:void 0});
ov.addCoreFactory({type:3,factory:{create:function(a){var b=a.result,c=a.resultConfig,d=a.resultCustomizationConfig,e=a.appearanceConfig,f=a.selectionsState,g=a.popupsContainer;a=Puc(a);var k=$u(rce,a);mv({element:k,veid:25285,actions:["impression","pcw-select","pcw-deselect"],pairs:[Zuc(b.getPrimaryTarget().getLoggingToken())],componentId:"peoplekitweb"});var m=av(k,"d6MZcd"),r=Ztc(e.getDensity()),w;d=(w=d.backupAvatarUrl)!=null?w:"";e=bv(m,a.photos,r,r,e,d);return Wuc(new qce(k,b,f,c,a.tags,e,g))},
shouldCreate:function(a){return TAd(a.result.getPrimaryTarget().getId())}},configurationKey:void 0});var $uc=function(a,b,c,d,e,f,g,k,m){this.selectionsState=a;this.resultConfig=b;this.injectableResultConfig=c;this.appearanceConfig=d;this.clientConfig=e;this.isRightToLeft=f;this.interactions=g;this.ariaParent=k;this.popupsContainer=m};
$uc.prototype.create=function(a,b){var c=this.selectionsState,d=this.resultConfig,e=this.appearanceConfig,f=this.clientConfig,g=this.isRightToLeft(),k=this.interactions,m=this.injectableResultConfig,r=this.resultConfig.getResultCustomizationCallback()(a,b);m=l(m.resultCustomizationDecorators);for(var w=m.next();!w.done;w=m.next())w=w.value,w=w(r,a,b),r=Object.assign({},r,w);a={result:a,selectionsState:c,resultConfig:d,appearanceConfig:e,clientConfig:f,isRightToLeft:g,interactions:k,resultCustomizationConfig:r,
ariaParent:this.ariaParent,popupsContainer:this.popupsContainer,contextMenuConfigurator:this.injectableResultConfig.contextMenuConfigurator};b=Qrc(this.clientConfig);return jtc(ov,b).create(a)};var bvc=function(a,b,c,d,e,f,g,k,m,r,w){var x=this;this.list=a;this.resultConfig=b;this.injectableResultConfig=c;this.appearanceConfig=d;this.clientConfig=e;this.selectionsState=f;this.interactions=g;this.ariaParent=m;this.popupsContainer=r;this.grouping=w;this.navigatable=ztc(new rae({shouldWrap:!0}));this.intelligentComponentCollection=k.create();this.sectionController=Ytc(this.list,this.navigatable,this.intelligentComponentCollection,this.appearanceConfig,avc(this.selectionsState,this.resultConfig,
this.injectableResultConfig,this.appearanceConfig,this.clientConfig,function(){return gv(x.list.getRoot())},this.interactions,this.ariaParent,this.popupsContainer),this.grouping)};h=bvc.prototype;h.append=function(a,b){this.sectionController.append(a,b)};h.clear=function(){this.sectionController.clear();this.popupsContainer.clear()};h.reset=function(a){this.sectionController.reset(a)};h.getNavigatable=function(){return this.navigatable};h.getResultListItems=function(){return this.sectionController.getItems()};
h.done=function(){this.sectionController.done()};var kvc=function(a,b,c){this.delegate=a;this.interactions=b;this.health=c};h=kvc.prototype;h.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,zv(f)),f;}};h.clear=function(){try{this.delegate.clear()}catch(a){throw this.health.createError(4,zv(a)),a;}};h.reset=function(a){try{this.delegate.reset(a)}catch(b){throw this.health.createError(5,zv(b)),b;}};
h.getNavigatable=function(){return this.delegate.getNavigatable()};h.getResultListItems=function(){return this.delegate.getResultListItems()};h.done=function(){this.delegate.done()};var jvc=function(a){a=a.header;return Qv('<div peoplekit-id="'+Nv("aittld")+'">'+(a.length>0?'<div class="'+Nv("peoplekitUiResultlistHeader")+'">'+Ov(a)+"</div>":"")+'<div peoplekit-id="'+Nv("tjneg")+'"></div></div>')};var Txc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Txc,X);var Uxc=new xC(417869137,kw,Txc);var yce=function(){return"Google makes suggestions based on your interactions."};var zce=function(a){this.labels=a;this.isSuggest=!1;this.hiddenSuggestionsLabel=Qv("Hidden suggestions").toString();a={infoType:1,infoDialogHeader:"How suggestions work",learnMoreMessage:yce(),learnMoreUrl:dvc(),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)};zce.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(Uxc))==null?void 0:Op(c,1))===1?"HIDDEN":"SEARCH"}b=a}return b};zce.prototype.reset=function(a){this.isSuggest=!a.trim()};var evc=[zce];var gvc=function(){this.isSuggest=!1;var a={infoType:1,infoDialogHeader:"How suggestions work",learnMoreMessage:yce(),learnMoreUrl:dvc(),learnMoreLinkText:"Learn more about suggestions."},b={};this.groupConfigs=(b.SUGGEST={headerText:"Suggestions",infoGroupConfig:a},b.SEARCH={headerText:"Search Results",infoGroupConfig:a},b)};gvc.prototype.getGroupId=function(a){return a.getResultType()===7?"CUSTOM":this.isSuggest?"SUGGEST":"SEARCH"};gvc.prototype.reset=function(a){this.isSuggest=!a.trim()};var hvc=function(a){this.label=a;a={};this.groupConfigs=(a.directory={headerText:this.label},a.non_directory={},a)};hvc.prototype.getGroupId=function(a){return a.getTargetList().some(function(b){return b.getDataSource()!==2})?"non_directory":"directory"};hvc.prototype.reset=function(){};var ivc=function(a){this.label=a;a={};this.groupConfigs=(a.suggestions={headerText:this.label},a)};ivc.prototype.getGroupId=function(a){return a.getResultType()!==7?"suggestions":"non_suggestions"};ivc.prototype.reset=function(){};var Av=function(a,b){this.ariaParent=a;this.delegate=b};h=Av.prototype;h.update=function(){var a=this.getSpotlitItem();a?(a=a.getRoot(),ms(this.ariaParent,a)):ms(this.ariaParent,null)};h.prev=function(a){a=this.delegate.prev(a);this.update();return a};h.next=function(a){a=this.delegate.next(a);this.update();return a};h.size=function(){return this.delegate.size()};h.goToItem=function(a,b){a=this.delegate.goToItem(a,b);this.update();return a};
h.goToIndex=function(a,b){a=this.delegate.goToIndex(a,b);this.update();return a};h.activateAll=function(){this.delegate.activateAll()};h.getSpotlitItem=function(){return this.delegate.getSpotlitItem()};h.getActiveItems=function(){return this.delegate.getActiveItems()};h.getItem=function(a){return this.delegate.getItem(a)};h.getIndexOf=function(a){return this.delegate.getIndexOf(a)};h.clear=function(){this.delegate.clear();this.update()};h.reset=function(){this.delegate.reset();this.update()};
h.setSecondaryEventTargets=function(a){this.delegate.setSecondaryEventTargets(a)};h.onKeyDown=function(a){this.delegate.onKeyDown(a)};h.onContextMenu=function(a,b){var c=this;this.delegate.onContextMenu(a,function(){c.update();b()})};h.remove=function(a,b){this.delegate.remove(a,b);this.update()};h.insert=function(a,b,c){this.delegate.insert(a,b,c);this.update()};var Ace=function(a,b){Av.call(this,a,b)};Z(Ace,Av);Ace.prototype.tabUpdate=function(){var a=this.getSpotlitItem();if(a){a=a.getRoot();var b=this.ariaParent;var c=abb(b,"activedescendant");b=iv(b).getElementById(c);(c=a.querySelector('[id="'+(a.id+'-2ab"]')))?ms(this.ariaParent,b===c?a:c):ovc(a)&&(a=Array.from(a.querySelectorAll('[class~="TdcT2c"]')),b=b?a.indexOf(b):-1,b!==-1&&ms(this.ariaParent,a[(b+1)%a.length]))}};
Ace.prototype.onKeyDown=function(a){a.event.keyCode===9&&this.tabUpdate();Av.prototype.onKeyDown.call(this,a)};Ace.prototype.next=function(a){a=Av.prototype.next.call(this,a);var b=this.getSpotlitItem();b&&(b=b.getRoot(),ovc(b)&&Bce(this,b));return a};Ace.prototype.prev=function(a){a=Av.prototype.prev.call(this,a);var b=this.getSpotlitItem();b&&(b=b.getRoot(),ovc(b)&&Bce(this,b));return a};var Bce=function(a,b){(b=b.querySelector('[class~="TdcT2c"]'))&&ms(a.ariaParent,b)};var Yv=function(a){this.event=a;this.hasStoppedPropagationInternal=!1};Yv.prototype.stopPropagation=function(){this.event.stopPropagation();this.hasStoppedPropagationInternal=!0};Yv.prototype.preventDefault=function(){this.event.preventDefault()};var pvc=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=dv(this)};h=pvc.prototype;
h.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(new Yv(d))});this.eventHandler.listen(this.input,"contextmenu",function(d){return c.onContextMenu(new Yv(d))});this.eventHandler.listen(this.input,"blur",function(d){return c.onBlur(d)})};h.detach=function(){this.eventHandler.removeAll();this.navigatable=this.input=null};
h.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())}};h.onClick=function(a,b){if(!this.navigatable)return!1;this.navigatable.goToItem(a,0);b.stopPropagation();return!0};h.onContextMenu=function(a){if(this.navigatable)this.navigatable.onContextMenu(a,function(){})};h.reset=function(){this.navigatable&&this.navigatable.reset()};h.onBlur=function(){this.reset()};var Cce=new $C;Cce.altKey=!0;Cce.keyCode=39;(new $C).keyCode=13;var Dce=function(){Oi.call(this)};Z(Dce,Oi);Dce.prototype.init=function(){};new Dce;var Ece=ra.URL,Fce;try{new Ece("http://example.com"),Fce=!0}catch(a){Fce=!1}
var Gce=Fce,Hce=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("&")},Jce=function(a){var b=Qt(document,"A");try{(0,Lh.setAnchorHref)(b,zh(a));var c=b.protocol}catch(e){throw Error("eh`"+a);}if(c===""||c===":"||c[c.length-1]!=":")throw Error("eh`"+a);if(!Ice.has(c))throw Error("eh`"+a);if(!b.hostname)throw Error("eh`"+
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}};Ice.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},Kce=function(a){if(Gce){try{var b=new Ece(a)}catch(d){throw Error("eh`"+a);}var c=Ice.get(b.protocol);if(!c)throw Error("eh`"+a);if(!b.hostname)throw Error("eh`"+
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=Jce(a);return b},Ice=new Map([["http:","80"],["https:","443"],["ws:","80"],["wss:","443"],["ftp:","21"]]),Lce=function(a){var b=Kce("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("fh");c.hash&&c.hash[0]!="#"&&(c.hash="#"+c.hash);a.search?a.search[0]!="?"&&(c.search="?"+a.search):a.searchParams&&(c.search="?"+Hce(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 Kce(a)};var Iw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Iw,X);var l$=function(a,b){return jj(a,1,b)};h=Iw.prototype;h.getProvenance=function(){return Ri(this,2)};h.setProvenance=function(a){return Yn(this,2,a)};h.getCode=function(){return Ri(this,3)};h.setCode=function(a){return Yn(this,3,a)};h.getCodeOrUndefined=function(){return Op(this,3)};var m$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(m$,X);m$.prototype.getSource=function(){return Y(this,Iw,1)};m$.prototype.setSource=function(a){return hj(this,Iw,1,a)};m$.prototype.hasSource=function(){return Si(this,Iw,1)};m$.prototype.getSourceOrUndefined=function(){return bCc(this,Iw,1)};var n$=function(a,b){return Yn(a,2,b)},o$=function(a,b){return Yn(a,3,b)};var Mce=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Mce,X);h=Mce.prototype;h.getQuery=function(){return Fi(this,1)};h.setQuery=function(a){return Gj(this,1,a)};h.clearQuery=function(){ex(this,1)};h.hasQuery=function(){return xm(this,1)};h.getIsFirstCallback=function(){return $i(this,2)};h.setIsFirstCallback=function(a){return jj(this,2,a)};h.getIsLastCallback=function(){return $i(this,3)};h.setIsLastCallback=function(a){return jj(this,3,a)};
h.setCallbackNumber=function(a){return Wn(this,4,a)};h.getNextPageToken=function(){return Fi(this,5)};h.getCode=function(){return Ri(this,6,2)};h.setCode=function(a){return Yn(this,6,a)};h.getCodeOrUndefined=function(){return Op(this,6)};h.getCacheState=function(){return Y(this,m$,7)};h.setCacheState=function(a){return hj(this,m$,7,a)};h.hasCacheState=function(){return Si(this,m$,7)};var tvc=function(a,b,c,d,e,f,g,k){this.root=a;this.navigationInput=b;this.resultList=c;this.session=d;this.health=e;this.config=f;this.noResultsMessage=g;this.clientConfig=k;this.attached=!1;this.resultsLoadingCompleteListeners=[];this.inputFocusListeners=[];this.inputBlurListeners=[];this.navigatable=new Ace(this.navigationInput,this.resultList.getNavigatable());this.navigatable.setSecondaryEventTargets([this]);this.navigationEventHandler=qvc({getPrevKeyCode:function(){return 38},getNextKeyCode:function(){return 40}},
{shouldReactToHomeEnd:!1});this.eventHandler=dv(this);gtc(this.root,0)};h=tvc.prototype;
h.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.showLoadingIndicator();gtc(this.root,1);if(a){var f=Nce(this.health);f.start();this.session.search(a,function(k){e.update(k,d,f,!0)})}else if(c){var g=Nce(this.health);g.start();this.session.suggest(function(k){e.update(k,d,g,!1)})}};h.focus=function(){var a;(a=this.navigationInput)==null||a.focus()};
h.hasFocus=function(){return this.navigationInput===this.navigationInput.ownerDocument.activeElement};h.refresh=function(){if(this.currentSearchState){var a=this.currentSearchState;this.search(a.query,a.anchor,a.showSuggestions,a.listener)}return!!this.currentSearchState};
h.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()}),$i(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(new Yv(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)}))};h.detach=function(){this.attached=!1;this.navigatable.reset();this.navigationEventHandler.detach();this.eventHandler.removeAll();this.session.cancel();gtc(this.root,0)};h.isShown=function(){return!0};h.canHide=function(){return!1};
h.dispose=function(){this.detach();this.root.parentNode&&this.root.parentNode.removeChild(this.root)};
h.update=function(a,b,c,d){this.hideLoadingIndicator();var e=a.getResults();a=a.getMetadata();var f=a.getQuery(),g=a.getIsLastCallback();this.resultList.append(e,{query:f});g&&this.resultList.done();e=this.resultList.getResultListItems();this.attach();var k=!1;e.length>0||this.navigatable.size()?(k=!0,this.root.classList.remove("noResults")):g&&(k=this.noResultsMessage.update({query:f}),this.root.classList.add("noResults"));b({count:e.length,hasContent:k});(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));g?(gtc(this.root,a.getCode()===0?2:3,a.getCode()),b={query:f,resultCount:e.length,results:e.map(function(m){return m.getSelection().result()})},Oce(this,b)):gtc(this.root,4);c.stop()};
h.onKeyDown=function(a){var b=a.event.keyCode===9&&!a.event.shiftKey,c=a.event.keyCode===13;if($i(this.clientConfig.internal,9)&&mvc(a)){if(a.preventDefault(),a.stopPropagation(),this.navigatable.getSpotlitItem())this.navigatable.onContextMenu(a,function(){})}else if(c||b&&this.config.getUseTabForResultSelection()){if(b=this.navigatable.getActiveItems(),b.length){b=l(b);for(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()))};h.getNavigatable=function(){return this.navigatable};h.getRoot=function(){return this.root};var Oce=function(a,b){a=l(a.resultsLoadingCompleteListeners);for(var c=a.next();!c.done;c=a.next())c=c.value,c(b)};tvc.prototype.showLoadingIndicator=function(){this.getRoot().classList.add("isLoading")};tvc.prototype.hideLoadingIndicator=function(){this.getRoot().classList.remove("isLoading")};var Pce=function(a){return Rv(Tv(Rv(Sv(),'<div tabindex="-1" class="'+Nv("peoplekitComponentsScrollboxScrollbar")+'" peoplekit-id="'+Nv("I8ejUe")+'">'),Ov(a)),"</div>")};var yvc=function(){var a=Rv(Tv(Rv(Sv(),'<div class="'+Nv("peoplekitComponentsAutocompleteInlineContainer")+'" peoplekit-id="'+Nv("yDHfq")+'"><div class="'+Nv("peoplekitComponentsAutocompleteInlineListContainer")+'">'),Pce(Qv('<div peoplekit-id="'+Nv("tjneg")+'"></div>'))),'</div><div class="'+Nv("peoplekitComponentsAutocompleteInlineCircularProgress")+'">');var b='<div class="'+Nv("peoplekitComponentsCircularprogressCircularProgress")+(" "+Nv("isActive"))+'" data-loadingmessage="'+Nv("Loading...")+
'" data-active="true"'+(N9()?D$d(L9(void 0,m$d)?(void 0).getContent():N$d()):"")+'><div class="'+Nv("peoplekitComponentsCircularprogressMessageContainer")+'" aria-live="polite" jsname="'+Nv("vyyg5")+'">'+Ov("Loading...")+'</div><div class="'+Nv("peoplekitComponentsCircularprogressCircularProgressContainer")+'"><div class="'+Nv("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Nv("peoplekitComponentsCircularprogressColorOne")+" "+Nv("exportColorOne")+'"><div class="'+Nv("peoplekitComponentsCircularprogressCircleClipper")+
" "+Nv("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Nv("peoplekitComponentsCircularprogressCircle")+" "+Nv("exportCircle")+'"></div></div><div class="'+Nv("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+Nv("peoplekitComponentsCircularprogressCircle")+" "+Nv("exportCircle")+'"></div></div><div class="'+Nv("peoplekitComponentsCircularprogressCircleClipper")+" "+Nv("peoplekitComponentsCircularprogressRight")+'"><div class="'+Nv("peoplekitComponentsCircularprogressCircle")+
" "+Nv("exportCircle")+'"></div></div></div><div class="'+Nv("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Nv("peoplekitComponentsCircularprogressColorTwo")+" "+Nv("exportColorTwo")+'"><div class="'+Nv("peoplekitComponentsCircularprogressCircleClipper")+" "+Nv("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Nv("peoplekitComponentsCircularprogressCircle")+" "+Nv("exportCircle")+'"></div></div><div class="'+Nv("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+
Nv("peoplekitComponentsCircularprogressCircle")+" "+Nv("exportCircle")+'"></div></div><div class="'+Nv("peoplekitComponentsCircularprogressCircleClipper")+" "+Nv("peoplekitComponentsCircularprogressRight")+'"><div class="'+Nv("peoplekitComponentsCircularprogressCircle")+" "+Nv("exportCircle")+'"></div></div></div><div class="'+Nv("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Nv("peoplekitComponentsCircularprogressColorThree")+" "+Nv("exportColorThree")+'"><div class="'+Nv("peoplekitComponentsCircularprogressCircleClipper")+
" "+Nv("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Nv("peoplekitComponentsCircularprogressCircle")+" "+Nv("exportCircle")+'"></div></div><div class="'+Nv("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+Nv("peoplekitComponentsCircularprogressCircle")+" "+Nv("exportCircle")+'"></div></div><div class="'+Nv("peoplekitComponentsCircularprogressCircleClipper")+" "+Nv("peoplekitComponentsCircularprogressRight")+'"><div class="'+Nv("peoplekitComponentsCircularprogressCircle")+
" "+Nv("exportCircle")+'"></div></div></div><div class="'+Nv("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+Nv("peoplekitComponentsCircularprogressColorFour")+" "+Nv("exportColorFour")+'"><div class="'+Nv("peoplekitComponentsCircularprogressCircleClipper")+" "+Nv("peoplekitComponentsCircularprogressLeft")+'"><div class="'+Nv("peoplekitComponentsCircularprogressCircle")+" "+Nv("exportCircle")+'"></div></div><div class="'+Nv("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+
Nv("peoplekitComponentsCircularprogressCircle")+" "+Nv("exportCircle")+'"></div></div><div class="'+Nv("peoplekitComponentsCircularprogressCircleClipper")+" "+Nv("peoplekitComponentsCircularprogressRight")+'"><div class="'+Nv("peoplekitComponentsCircularprogressCircle")+" "+Nv("exportCircle")+'"></div></div></div></div></div>';b=Qv(b);return Rv(Tv(a,b),'</div><div peoplekit-id="'+Nv("i2HSVe")+'"></div></div>')},Avc=function(){return Qv('<div class="'+Nv("peoplekitComponentsAutocompleteInlineNoResultsContainer")+
'"></div>')};var vvc=function(a){a=a||{};var b=a.primaryMessage,c=a.contextMessage,d=a.learnMoreUrl,e=a.urlText;a=a.jsname;a='<div class="'+Nv("peoplekitComponentsNoResultsMessageNoResultsMessage")+'"'+(a?' jsname="'+Nv(a)+'"':"")+'><p class="'+Nv("peoplekitComponentsNoResultsMessageHeader")+'">';a=b?a+Ov(b):a+"No results";a+="</p>";if(c||d)a+='<p class="'+Nv("peoplekitComponentsNoResultsMessageExplanation")+'">'+(c?Ov(c)+(d?" ":""):""),d&&(a+='<a jsname="'+Nv("viORvd")+'" class="'+Nv("peoplekitComponentsNoResultsMessageLearnMoreLink")+
'" target="_blank" href="'+Nv(Pv(d))+'">',a=e?a+Ov(e):a+"Learn more",a+="</a>"),a+="</p>";return Qv(a+"</div>")};var Bvc=function(a,b){this.parent=a;this.config=b};Bvc.prototype.update=function(a){this.root&&this.root.remove();a=this.config.display(a);if(!a)return!1;this.root=$u(vvc,a);this.parent.appendChild(this.root);return!0};var Cvc=function(){};Cvc.prototype.update=function(){return!1};var wvc=function(){};wvc.prototype.update=function(){return!0};var Qce=function(){return Qv('<div peoplekit-id="'+Nv("i2HSVe")+'"></div>')},Rce=function(a){return Qv('<div peoplekit-id="'+Nv(a.id)+'"></div>')};var zvc=function(a){this.parent=a;this.root=$u(Qce);this.parent.appendChild(this.root)};zvc.prototype.get=function(a){if(Vrc(this.root,a).length===0){var b=$u(Rce,{id:a});this.root.appendChild(b)}return av(this.root,a)};zvc.prototype.clear=function(){this.root.replaceChildren()};zvc.prototype.dispose=function(){this.root.remove()};zvc.prototype.getRoot=function(){return this.root};ktc.addCoreFactory({type:0,factory:{create:function(a){return{injectableResultConfig:a.injectableResultConfig,injectableAutocompleteGrouping:a.injectableAutocompleteGrouping}},shouldCreate:function(){return!0}},configurationKey:void 0});var Fvc=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=Rsc(this.root,{moveAboveAnchorIfOffscreen:this.config.getMoveAutocompleteAboveAnchorIfOffscreen()});this.inlineAutocomplete.getNavigatable().setSecondaryEventTargets([this.inlineAutocomplete,this]);this.eventHandler=dv(this);this.onSelectionCallback=function(){f.onSelect()};this.onSelectionAttemptedCallback=function(){f.onSelectAttempt()};
this.attach()};h=Fvc.prototype;h.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)})};h.attach=function(){var a=this;k$(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())})};h.onSelect=function(){this.hide()};
h.onSelectAttempt=function(){this.hide()};h.onKeyDown=function(a){this.isShown()&&a.event.keyCode===27&&(this.hide(),a.preventDefault(),a.stopPropagation())};h.detach=function(){this.hide()};h.isShown=function(){return this.popup.isShown()};h.canHide=function(){return!0};
h.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)};h.getNavigatable=function(){return this.inlineAutocomplete.getNavigatable()};h.getRoot=function(){return this.root};h.hasFocus=function(){return this.inlineAutocomplete.hasFocus()};
h.focus=function(){this.inlineAutocomplete.focus()};h.refresh=function(){return this.inlineAutocomplete.refresh()};h.showLoadingIndicator=function(){this.inlineAutocomplete.showLoadingIndicator()};h.hideLoadingIndicator=function(){this.inlineAutocomplete.hideLoadingIndicator()};h.update=function(a){a.hasContent&&this.show()};
h.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("Tg`"+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("Tg`"+c);}}this.root.style.width=fJd(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("Tg`"+a);}this.root.style.maxHeight=this.config.getAutocompleteMaxResultsBeforeScroll()*a+"px";this.popup.show(this.anchor)};h.hide=function(){this.popup.hide();this.navigationInput.setAttribute("aria-expanded","false");this.inlineAutocomplete.detach()};var Evc=function(){return Qv('<div class="'+Nv("peoplekitComponentsAutocompletePopupContainer")+'" peoplekit-id="'+Nv("noeiCf")+'" style="display: none;"></div>')};var Sce=function(){this.batches=new Map};Sce.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 Hvc=function(a,b){this.service=a;this.resolveComponents=b};
Hvc.prototype.update=function(a){var b=this;a=l([].concat(n(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){Tce(b,f.values,function(g,k,m){m.updateWaldo(k,g)})});break;case 2:c=c.withHubAvailabilityDot(function(f){Tce(b,f.values,function(g,k,m){m.updateHubAvailabilityDot(k,g)})})}c.execute()}}};
var Tce=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)),g=f.next();!g.done;g=f.next())c(e,d,g.value)}};var Uce=new Set([1,3,20]),Vce=function(a){var b=this;this.idToComponent=new Map;this.updater=Ivc(a,function(c){return b.resolveComponents(c)})};h=Vce.prototype;
h.append=function(a){var b=a.filter(function(f){return f.getAllIds().some(function(g){return Uce.has(g.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)};
h.remove=function(a){a=l(a);for(var b=a.next(),c={};!b.done;c={component$jscomp$145:void 0},b=a.next()){c.component$jscomp$145=b.value;b=l(c.component$jscomp$145.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(g){return g!==f.component$jscomp$145}}(c)))}}};h.resolveComponents=function(a){return this.idToComponent.get(String(a))||[]};
h.refresh=function(a){var b=new Sce;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)};h.clear=function(){this.idToComponent.clear()};var Wce=function(){};Wce.prototype.append=function(){};Wce.prototype.remove=function(){};Wce.prototype.refresh=function(){};Wce.prototype.clear=function(){};var lwc=function(a){this.peopleIntelligence=a};lwc.prototype.create=function(){return this.peopleIntelligence?new Vce(this.peopleIntelligence):new Wce};var Xce=Object.freeze(new Map([[5,1]]));var Yce=function(){this.entryPoint_=0};Yce.prototype.getPeoplekitEntryPoint=function(){return this.entryPoint_};Yce.prototype.setPeoplekitEntryPoint=function(a){this.entryPoint_=a;return this};Yce.prototype.serialize=function(){return[this.entryPoint_].toString()};var Zce=Object.freeze(new Yce);var $ce=function(){this.originator_=0};$ce.prototype.setOriginator=function(a){this.originator_=a;return this};$ce.prototype.getOriginator=function(){return this.originator_};var Lvc=function(a,b,c){var d=this;this.reporter=a.getReporter((new Yce).setPeoplekitEntryPoint(c));k$(b,function(e,f,g){d.select(e,g)},0);j$(b,function(e,f,g){d.deselect(e,g)},0);ade(b,function(e,f,g,k){d.replace(e,k)},0);bde(b,function(e,f){d.selectExplodingGroup(e,f)})};Lvc.prototype.display=function(a){this.reporter.reportDisplay(Jvc(a.getTargetList()))};Lvc.prototype.select=function(a,b){a.isPlaceholder()||cde(this,Bv([a]),b)};
Lvc.prototype.selectExplodingGroup=function(a,b){cde(this,[a.getLoggingToken()],b)};var cde=function(a,b,c){switch(c){case 1:case 12:case 5:a.reporter.reportSelect(b,(new $ce).setOriginator(Xce.get(c)||0));break;case 6:a.reporter.reportExternalSelect(b)}};h=Lvc.prototype;h.deselect=function(a,b){if(!a.isPlaceholder())switch(b){case 7:case 8:case 1:this.reporter.reportDeselect(Bv([a]))}};h.dismiss=function(a){this.reporter.reportDismiss(Bv(a))};h.save=function(a){this.reporter.reportSave(Bv(a))};
h.send=function(a){this.reporter.reportSend(Bv(a))};h.replace=function(a,b){switch(b){case 5:case 6:this.select(a,b)}};var dde=function(){this.isBatchingInternal=!1;this.timerId=this.lastBatchTime=0};dde.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=ht(function(){b.isBatchingInternal=!1;a()},d>100?0:100)}};dde.prototype.cancel=function(){ra.clearTimeout(this.timerId);this.isBatchingInternal=!1};var nwc=function(a,b,c,d,e,f){var g=this;this.root=a;this.autocomplete=b;this.selectionsState=c;this.interactions=d;this.tracker=e;this.config=f;this.selectionChangedListeners=[];this.selectionChangedAutoBatcher=new dde;k$(this.selectionsState,function(){g.notifySelectionChanged(!1)});j$(this.selectionsState,function(){g.notifySelectionChanged(!0)})};h=nwc.prototype;
h.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)})};h.select=function(a){this.selectionsState.select(a)};h.deselect=function(a){this.selectionsState.deselect(a)};h.isShown=function(){return this.autocomplete.isShown()};h.report=function(a){var b=b===void 0?[]:b;b=b.length?b:this.selectionsState.asArray();Kvc(this.interactions,a,b)};h.cancel=function(){this.autocomplete.detach()};
h.dispose=function(){this.tracker.stop();this.selectionChangedListeners.length=0;this.selectionsState.clear();this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.autocomplete.dispose()};h.subscribeToSelectionChanged=function(a){this.selectionChangedListeners.push({listener:a,listenToDeselections:!1})};
h.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 kwc=function(a){a=a||{};a=a.classes;return Qv('<div peoplekit-id="'+Nv("nVhUhf")+'"'+(a?' class="'+Nv(a)+'"':"")+"></div>")};var ede=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ede,X);h=ede.prototype;h.getClientId=function(){return Ri(this,1)};h.setClientId=function(a){return Yn(this,1,a)};h.getEntryPoint=function(){return Ri(this,5)};h.setEntryPoint=function(a){return Yn(this,5,a)};h.getSocialClient=function(){return Y(this,c$,2)};h.setSocialClient=function(a){return hj(this,c$,2,a)};h.setVersionName=function(a){return Gj(this,3,a)};h.getBaselineCl=function(){return Hn(this,4)};
h.setBaselineCl=function(a){return Nn(this,4,a)};h.hasBaselineCl=function(){return Gn(this,4)};h.getBaselineClOrUndefined=function(){return Cw(this,4)};h.getComponentFlow=function(){return Ri(this,7)};h.setComponentFlow=function(a){return Yn(this,7,a)};var p$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(p$,X);var fde=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(fde,X);fde.prototype.getLabel=function(){return Ri(this,1)};fde.prototype.setLabel=function(a){return Yn(this,1,a)};fde.prototype.hasLabel=function(){return ym(this,1)};fde.prototype.setCause=function(a){Yn(this,2,a)};var gde=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(gde,X);h=gde.prototype;h.getLabel=function(){return Ri(this,1)};h.setLabel=function(a){return Yn(this,1,a)};h.hasLabel=function(){return ym(this,1)};h.getValue=function(){return Hn(this,2,jb(1))};h.setValue=function(a){return Nn(this,2,a)};h.hasValue=function(){return Gn(this,2)};var q$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(q$,X);q$.prototype.getLabel=function(){return Fi(this,1)};q$.prototype.setLabel=function(a){return Gj(this,1,a)};q$.prototype.hasLabel=function(){return xm(this,1)};q$.prototype.setCause=function(a){Gj(this,2,a)};var r$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(r$,X);r$.prototype.getLabel=function(){return Ri(this,1)};r$.prototype.setLabel=function(a){return Yn(this,1,a)};r$.prototype.hasLabel=function(){return ym(this,1)};r$.prototype.setLatencyUsec=function(a){Nn(this,2,a)};var hde=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(hde,X);hde.prototype.getInterfaceType=function(){return Ri(this,1)};hde.prototype.setInterfaceType=function(a){return Yn(this,1,a)};var ide=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ide,X);h=ide.prototype;h.getCount=function(){return Y(this,gde,3)};h.getMutableCount=function(){return cj(this,gde,3)};h.setCount=function(a){return hj(this,gde,3,a)};h.getMutableLatency=function(){return cj(this,r$,4)};h.setLatency=function(a){hj(this,r$,4,a)};h.getError=function(){return Y(this,q$,5)};h.setError=function(a){hj(this,q$,5,a)};h.hasError=function(){return Si(this,q$,5)};var jde=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(jde,X);h=jde.prototype;h.getClientInterface=function(){return Y(this,ede,3)};h.setClientInterface=function(a){return hj(this,ede,3,a)};h.getMetadata=function(){return Y(this,p$,4)};h.getMutableMetadata=function(){return cj(this,p$,4)};h.setMetadata=function(a){hj(this,p$,4,a)};h.hasMetadata=function(){return Si(this,p$,4)};var Nvc=function(a,b){this.entryPoint=b;this.logContext=qzc(rzc("peoplekit.health").setLogSource(624).setApplication(a.getSocialApplicationOrUndefined()).setEnvironment(0).setVersion("1.0").setBaselineCl(839130764).setEnableClearcut(a.getEnableClearcut()),Muc.getExperimentIds());this.clientId=a.getClientId();this.componentFlow=a.getComponentFlow()};h=Nvc.prototype;h.getLogContext=function(){return this.logContext};
h.createCountMetric=function(a,b,c){b.source().getMutableCount().setValue(c);return kde(this,a,b)};h.createStatusMetric=function(){throw Error("Eg");};h.createLatencyMetric=function(a,b){b.source().getMutableLatency().setLatencyUsec(zbe(b,"total"));return kde(this,a,b)};h.createErrorMetric=function(a,b){return kde(this,a,b)};
var kde=function(a,b,c){a=(new jde).setClientInterface((new ede).setClientId(a.clientId).setSocialClient(b.getSocialClient()).setVersionName(a.getLogContext().getVersionOrUndefined()).setBaselineCl(a.getLogContext().getBaselineClOrUndefined()).setComponentFlow(a.componentFlow).setEntryPoint(a.entryPoint));c=c.source();return hj(a,ide,2,c)};var lde=function(a,b){this.metrics_=a;this.state_=new $9(b);this.source=b};lde.prototype.increment=function(a){this.metrics_.count(this.state_,a===void 0?1:a)};var mde=function(a,b){this.metrics_=a;this.state_=new $9(b);this.source=b};mde.prototype.report=function(){this.metrics_.error(this.state_)};var Rvc=function(a,b){this.metrics=a;this.userInterfaceType=b};Rvc.prototype.createCount=function(a,b){a=nde(this,a,3);a.getMutableCount().setLabel(b);return new lde(this.metrics,a)};Rvc.prototype.createError=function(a,b,c){a=nde(this,a,5);cj(a,fde,8).setLabel(b).setCause(c);return new mde(this.metrics,a)};var nde=function(a,b,c){var d=new ide;c=Yn(d,1,c);a=(new hde).setInterfaceType(a.userInterfaceType);b=Yn(a,2,b);return hj(c,hde,2,b)};var Qvc=function(a){this.trackers=a},Nce=function(a){a=a.trackers;var b=nde(a,2,4);b.getMutableLatency().setLabel(8);return new Mbe(a.metrics,b)};Qvc.prototype.createCount=function(a,b){return this.trackers.createCount(b===void 0?0:b,a)};Qvc.prototype.createError=function(a,b,c){return this.trackers.createError(c===void 0?0:c,a,b===void 0?0:b)};var s$=function(){this.itemsByPriority=[]};s$.prototype.add=function(a,b){this.itemsByPriority[b]||(this.itemsByPriority[b]=new Set);this.itemsByPriority[b].add(a)};s$.prototype.remove=function(a){for(var b=l(this.itemsByPriority),c=b.next();!c.done;c=b.next())(c=c.value)&&c.delete(a)};s$.prototype.asArray=function(){return this.itemsByPriority.flatMap(function(a){return[].concat(n(a))})};var Fv=function(){this.selectionCallbacks=new s$;this.deselectionCallbacks=new s$;this.selectionReplacedCallbacks=new s$;this.selectionAttemptedCallbacks=new s$;this.explodingGroupSelectionCallbacks=new s$;this.selectionsState=[]};
Fv.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 Tvc(a,b,c,this.selectionAttemptedCallbacks.asArray()),!1;b>=0?(this.selectionsState.splice(b,0,a),Tvc(a,b,c,this.selectionCallbacks.asArray())):(this.selectionsState.push(a),Tvc(a,this.selectionsState.length-1,c,this.selectionCallbacks.asArray()));return!0};
Fv.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)};Fv.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),Tvc(a,d,b,this.deselectionCallbacks.asArray()))};
Fv.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 k$=function(a,b,c){a.selectionCallbacks.add(b,c===void 0?2:c)},j$=function(a,b,c){a.deselectionCallbacks.add(b,c===void 0?2:c)},ade=function(a,b,c){a.selectionReplacedCallbacks.add(b,c===void 0?2:c)},bde=function(a,b){a.explodingGroupSelectionCallbacks.add(b,0)};h=Fv.prototype;
h.get=function(a){var b=String(a);return this.selectionsState.find(function(c){return b===String(c.id())})};h.at=function(a){return this.selectionsState[a]};h.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;Uvc(b,e,a,c,this.selectionReplacedCallbacks.asArray());return!0};
h.pop=function(a){a=a===void 0?0:a;var b=this.selectionsState.pop();if(b)return Tvc(b,this.selectionsState.length,a,this.deselectionCallbacks.asArray()),b};h.indexOf=function(a){var b=String(a);return this.selectionsState.findIndex(function(c){return b===String(c.id())})};h.asArray=function(){return this.selectionsState.slice()};h.size=function(){return this.selectionsState.length};h.clear=function(){for(;this.selectionsState.length>0;)this.deselect(this.selectionsState[0])};var ode=function(a){iE.call(this,a)};Z(ode,iE);var Vvc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Vvc,X);h=Vvc.prototype;h.getClientId=function(){return Ri(this,1)};h.setClientId=function(a){return Yn(this,1,a)};h.getEntryPoint=function(){return Ri(this,2)};h.setEntryPoint=function(a){return Yn(this,2,a)};h.getApplication=function(){return Ri(this,3)};h.setApplication=function(a){return Yn(this,3,a)};h.getApplicationOrUndefined=function(){return Op(this,3)};h.setVersionName=function(a){return Gj(this,4,a)};
h.getBaselineCl=function(){return Hn(this,5)};h.setBaselineCl=function(a){return Nn(this,5,a)};h.hasBaselineCl=function(){return Gn(this,5)};h.getBaselineClOrUndefined=function(){return Cw(this,5)};h.getMetadata=function(){return Y(this,p$,6)};h.getMutableMetadata=function(){return cj(this,p$,6)};h.setMetadata=function(a){hj(this,p$,6,a)};h.hasMetadata=function(){return Si(this,p$,6)};h.setSharekitEntryPoint=function(a){Yn(this,7,a)};h.getSharekitEntryPointOrUndefined=function(){return Op(this,7)};var Xvc=function(a){this.context_=a};Xvc.prototype.createNewTag=function(a){return new ode(a)};Xvc.prototype.addEventMetadata=function(a){oQc(a,this.context_.serialize())};var Wvc=function(a,b,c,d,e,f,g,k,m,r,w,x,D){e=e===void 0?!1:e;m=m===void 0?!1:m;k||(b=new EE(b,c),d&&(b.destinationUrl=d),f&&(b.backgroundJobDeferrer=f),k=b.build());lE.call(this,a,g||null,k,{expectXidTagComponents:e,backgroundJobDeferrer:f,traverseShadowDom:m},r,w,x);this.clearcut_=k;this.clearcut_.setClientSideLogOnlyForDevelopment(!1);a=this.clearcut_;a.useSendBeaconForFinalFlush=a.isSendBeaconSupported;this.clearcut_.useGetRequestForFinalFlush=!0;D&&this.clearcut_.setProductID(D)};Z(Wvc,lE);
Wvc.prototype.setClearcutClientInfo=function(a){this.clearcut_.setClearcutClientInfo(a)};Wvc.prototype.setBuildLabel=function(a){this.clearcut_.setBuildLabel(a)};Wvc.prototype.setClientSideLogOnlyForDevelopment=function(a){this.clearcut_.setClientSideLogOnlyForDevelopment(a)};var pde=function(a){this.tracker=a};var qde=function(a,b){this.root=a;this.handler=b;this.eventHandler=new Pi(this)};
qde.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){b.handler.tracker.logEvent(c.type,
c.target);c.stopPropagation()}))};qde.prototype.dispose=function(){var a;(a=this.observer)==null||a.disconnect();this.eventHandler.removeAll()};var $vc=function(a,b){this.root=a;this.tracker=b;this.observer=new qde(this.root,new pde(this.tracker))};$vc.prototype.start=function(a){mQc(this.tracker,this.root);for(var b=l(a),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;mE(this.tracker,c,d)}this.observer.observe([].concat(n(a.keys())))};$vc.prototype.stop=function(a){this.observer.dispose();a&&(a=this.tracker,a.transport&&a.transport.flush());this.tracker.dispose()};var rde=function(){this.queryScope_=0;this.targetCount_=1;this.displayNameWithOverrideApplied_=null},sde=function(a,b){a.displayNameWithOverrideApplied_=b;return a},tde=function(a,b){a.targetCount_=b;return a};rde.prototype.getTargetCount=function(){return this.targetCount_};rde.prototype.getQueryScope=function(){return this.queryScope_};rde.prototype.setQueryScope=function(a){this.queryScope_=a;return this};rde.prototype.getDisplayNameWithOverrideApplied=function(){return this.displayNameWithOverrideApplied_};var ude=function(){this.code_=2;this.cacheState_=new m$;this.similarIds_=[]};h=ude.prototype;h.getCode=function(){return this.code_};h.getCacheState=function(){return this.cacheState_};h.getSimilarIds=function(){return this.similarIds_};h.setCode=function(a){this.code_=a;return this};h.setCacheState=function(a){this.cacheState_=a;return this};var vde=function(a,b){this.disambiguationLabel_=a;this.metadata_=b};vde.prototype.getDisambiguationLabel=function(){return this.disambiguationLabel_};vde.prototype.getMetadata=function(){return this.metadata_};var txc=function(){this.filter_=null;this.originator_=this.queryScope_=0;this.useOriginalDisplayValue_=!1};h=txc.prototype;h.getFilter=function(){return this.filter_};h.setFilter=function(a){this.filter_=a;return this};h.getQueryScope=function(){return this.queryScope_};h.setQueryScope=function(a){this.queryScope_=a;return this};h.getOriginator=function(){return this.originator_};h.setOriginator=function(a){this.originator_=a;return this};h.getUseOriginalDisplayValue=function(){return this.useOriginalDisplayValue_};
h.setUseOriginalDisplayValue=function(a){this.useOriginalDisplayValue_=a;return this};h.clone=function(){return(new txc).setFilter(this.getFilter()).setOriginator(this.getOriginator()).setQueryScope(this.getQueryScope()).setUseOriginalDisplayValue(this.getUseOriginalDisplayValue())};var wde=function(){this.isLastCallback_=this.isFirstCallback_=!1;this.notFoundIdList_=[];this.code_=2;this.cacheState_=new m$};h=wde.prototype;h.getIsFirstCallback=function(){return this.isFirstCallback_};h.getIsLastCallback=function(){return this.isLastCallback_};h.getCode=function(){return this.code_};h.getCacheState=function(){return this.cacheState_};h.setIsFirstCallback=function(a){this.isFirstCallback_=a;return this};h.setIsLastCallback=function(a){this.isLastCallback_=a;return this};
h.setCallbackNumber=function(){return this};h.setCode=function(a){this.code_=a;return this};h.setCacheState=function(a){this.cacheState_=a;return this};var xde=function(a,b){this.results_=a;this.metadata_=b};xde.prototype.getResults=function(){return this.results_};xde.prototype.getMetadata=function(){return this.metadata_};var t$=function(a,b){this.results_=a;this.metadata_=b};t$.prototype.getResults=function(){return this.results_};t$.prototype.getMetadata=function(){return this.metadata_};var yde={create:function(a,b,c,d,e){e=e===void 0?new Ev:e;return jwc(a,b,c,d,new d$d,{sessionOptions:e})},createWith:function(a,b,c,d,e){e=e===void 0?{}:e;return jwc(a,b,c,d,new d$d,e)},createConfig:function(a){a=a===void 0?new mBd(iV.apiEnv,new nBd(iV.userProfileId)):a;return new nae(a)}};var zde=function(){this.warnForExternalSelections=!1;this.allowContactMethodEditing=!0;this.chipCustomizationCallback=function(){return{}}};h=zde.prototype;h.getWarnForExternalSelections=function(){return this.warnForExternalSelections};h.getAllowDisplayNameEditing=function(){return!1};h.getAllowContactMethodEditing=function(){return this.allowContactMethodEditing};h.setAllowContactMethodEditing=function(a){this.allowContactMethodEditing=a};h.getAllowChipDeletion=function(){return!0};
h.getShouldDisplayExternalSelectionIcon=function(){return!0};h.getAllowChipDragAndDrop=function(){return!0};h.getChipCustomizationCallback=function(){return this.chipCustomizationCallback};h.getAllowChipDisambiguation=function(){return!0};var Ade=function(a){this.entryPoint=0;this.environmentConfig=a;this.appearance=new asc;this.chip=new zde;this.chip.setAllowContactMethodEditing(!1);this.useOriginalDisplayValue=!1};h=Ade.prototype;h.setEntryPoint=function(a){this.entryPoint=a};h.getEntryPoint=function(){return this.entryPoint};h.getEnvironmentConfig=function(){return this.environmentConfig};h.getUseOriginalDisplayValue=function(){return this.useOriginalDisplayValue};
h.setUseOriginalDisplayValue=function(a){this.useOriginalDisplayValue=a};h.getWarnForExternalSelections=function(){return this.chip.getWarnForExternalSelections()};h.getAllowDisplayNameEditing=function(){return this.chip.getAllowDisplayNameEditing()};h.getAllowContactMethodEditing=function(){return this.chip.getAllowContactMethodEditing()};h.setAllowContactMethodEditing=function(a){this.chip.setAllowContactMethodEditing(a)};h.getAllowChipDeletion=function(){return this.chip.getAllowChipDeletion()};
h.getShouldDisplayExternalSelectionIcon=function(){return this.chip.getShouldDisplayExternalSelectionIcon()};h.getAllowChipDragAndDrop=function(){return this.chip.getAllowChipDragAndDrop()};h.getChipCustomizationCallback=function(){return this.chip.getChipCustomizationCallback()};h.getAllowChipDisambiguation=function(){return this.chip.getAllowChipDisambiguation()};h.getDensity=function(){return this.appearance.getDensity()};h.setDensity=function(a){this.appearance.setDensity(a)};h.getTheme=function(){return this.appearance.getTheme()};
h.setTheme=function(a){this.appearance.setTheme(a)};h.getStyle=function(){return this.appearance.getStyle()};h.setStyle=function(a){this.appearance.setStyle(a)};var Bde=function(a){this.entryPoint=0;this.helpText="";this.shouldAutofocus=!1;this.environmentConfig=a;this.autocomplete=new mae(this.environmentConfig);this.chipsBar=new Ade(this.environmentConfig);this.chipsBar.setAllowContactMethodEditing(!0)};h=Bde.prototype;h.getEnvironmentConfig=function(){return this.environmentConfig};h.setEntryPoint=function(a){this.entryPoint=a};h.getEntryPoint=function(){return this.entryPoint};h.getWarnForExternalSelections=function(){return this.chipsBar.getWarnForExternalSelections()};
h.getAllowDisplayNameEditing=function(){return this.chipsBar.getAllowDisplayNameEditing()};h.getAllowContactMethodEditing=function(){return this.chipsBar.getAllowContactMethodEditing()};h.setAllowContactMethodEditing=function(a){this.chipsBar.setAllowContactMethodEditing(a)};h.getAllowChipDeletion=function(){return this.chipsBar.getAllowChipDeletion()};h.getShouldDisplayExternalSelectionIcon=function(){return this.chipsBar.getShouldDisplayExternalSelectionIcon()};h.getAllowChipDragAndDrop=function(){return this.chipsBar.getAllowChipDragAndDrop()};
h.getChipCustomizationCallback=function(){return this.chipsBar.getChipCustomizationCallback()};h.getAllowChipDisambiguation=function(){return this.chipsBar.getAllowChipDisambiguation()};h.getUseOriginalDisplayValue=function(){return this.chipsBar.getUseOriginalDisplayValue()};h.setUseOriginalDisplayValue=function(a){this.chipsBar.setUseOriginalDisplayValue(a)};h.getAutocompleteHeader=function(){return this.autocomplete.getAutocompleteHeader()};h.setAutocompleteHeader=function(a){this.autocomplete.setAutocompleteHeader(a)};
h.getShowSuggestions=function(){return this.autocomplete.getShowSuggestions()};h.setShowSuggestions=function(a){this.autocomplete.setShowSuggestions(a)};h.getAutocompleteMaxResultsBeforeScroll=function(){return this.autocomplete.getAutocompleteMaxResultsBeforeScroll()};h.setAutocompleteMaxResultsBeforeScroll=function(a){this.autocomplete.setAutocompleteMaxResultsBeforeScroll(a)};h.getMoveAutocompleteAboveAnchorIfOffscreen=function(){return this.autocomplete.getMoveAutocompleteAboveAnchorIfOffscreen()};
h.setMoveAutocompleteAboveAnchorIfOffscreen=function(a){this.autocomplete.setMoveAutocompleteAboveAnchorIfOffscreen(a)};h.getAutoActivateFirstSuggestion=function(){return this.autocomplete.getAutoActivateFirstSuggestion()};h.setAutoActivateFirstSuggestion=function(a){this.autocomplete.setAutoActivateFirstSuggestion(a)};h.getAutoActivateFirstSearchResult=function(){return this.autocomplete.getAutoActivateFirstSearchResult()};h.setAutoActivateFirstSearchResult=function(a){this.autocomplete.setAutoActivateFirstSearchResult(a)};
h.getNoResultsMessage=function(){return this.autocomplete.getNoResultsMessage()};h.setNoResultsMessage=function(a){this.autocomplete.setNoResultsMessage(a)};h.getUseTabForResultSelection=function(){return this.autocomplete.getUseTabForResultSelection()};h.getAutocompleteGroupingType=function(){return this.autocomplete.getAutocompleteGroupingType()};h.setAutocompleteGroupingType=function(a){this.autocomplete.setAutocompleteGroupingType(a)};h.getAutocompleteGroupingLabel=function(){return this.autocomplete.getAutocompleteGroupingLabel()};
h.setAutocompleteGroupingLabel=function(a){this.autocomplete.setAutocompleteGroupingLabel(a)};h.getAutocompleteCustomGrouping=function(){return this.autocomplete.getAutocompleteCustomGrouping()};h.getAllowResultDeselection=function(){return this.autocomplete.getAllowResultDeselection()};h.getResultDecorationConfigRequestCallback=function(){return this.autocomplete.getResultDecorationConfigRequestCallback()};h.getResultCustomizationCallback=function(){return this.autocomplete.getResultCustomizationCallback()};
h.setResultCustomizationCallback=function(a){this.autocomplete.setResultCustomizationCallback(a)};h.getDensity=function(){return this.autocomplete.getDensity()};h.setDensity=function(a){this.autocomplete.setDensity(a)};h.getTheme=function(){return this.autocomplete.getTheme()};h.setTheme=function(a){this.autocomplete.setTheme(a)};h.getStyle=function(){return this.autocomplete.getStyle()};h.setStyle=function(a){this.autocomplete.setStyle(a)};var oxc=function(a){var b=a.multiSelectable,c=a.orientation,d=a.isKeyboardFocusable;a=a.ariaLabel;return Qv('<div class="'+Nv("peoplekitComponentsArialistboxAriaListBox")+'" peoplekit-id="'+Nv("pQPeT")+'" tabindex="'+Nv(d?0:-1)+'" role="listbox" aria-multiselectable="'+Nv(b)+'" aria-orientation="'+Nv(c)+'" aria-label="'+Nv(a)+'"></div>')};var Cde=function(a){Y9.call(this,9,a);this.name="LookupSelectorError"};Z(Cde,Y9);var Dde=new Map([[5,12],[12,8],[11,13],[13,14],[2,15],[6,7]]);var Zv=function(a,b,c,d){this.selectionsState=a;this.peopleStore=b;this.lookupOptions=c;this.health=d;this.disposed=!1};Zv.prototype.select=function(a,b,c){var d=this;c=c===void 0?-1:c;return this.disposed?Promise.reject(new Cde("LookupSelector is disposed.")):new Promise(function(e){Ede(d,a,b,c,e)})};
var Ede=function(a,b,c,d,e){var f=[],g=[];d=d>=0?d:a.selectionsState.size();b=l(b);for(var k=b.next();!k.done;k=b.next()){var m=Fde(k.value);k=m.lookupId;m=Tuc(k,m.displayNameOverride,m.forceDisplayNameOverride,m.loggingTokenOverride);a.selectionsState.select(m,d,c)&&(f.push(k),d++)}d=a.lookupOptions.clone().setOriginator(Xce.get(c)||0);a.peopleStore.lookup(f,function(r){Gde(a,r,g,c,e)},d)},Gde=function(a,b,c,d,e){if(a.disposed)e([]);else{var f=b.getResults(),g=0,k=0;f=l(f.entries());for(var m=f.next();!m.done;m=
f.next()){var r=l(m.value);m=r.next().value;var w=r=r.next().value,x=a.selectionsState.get(m);x&&(r=x.getDisplayNameOverride(),w=Yuc(w,r,x.getForceDisplayNameOverride(),x.selectionToken().getLoggingToken()),a.selectionsState.replace(m,w,d),r&&g++,w.getDisplayNameWithOverrideApplied()&&k++)}g=k-g;g>0&&(k=a.health,f=k.createCount,m=6,m=m===void 0?0:m,d=Dde.get(d)||m,f.call(k,53,d).increment(g));b=b.getMetadata();c.push.apply(c,n(b.notFoundIdList_));b.getIsLastCallback()&&(a.deselect(c),e(c))}};
Zv.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)};Zv.prototype.replace=function(a,b){var c=this;return this.disposed?Promise.reject(new Cde("LookupSelector is disposed.")):new Promise(function(d){Hde(c,a,b,d)})};
var Hde=function(a,b,c,d){var e=[],f=[];b=l(b.entries());for(var g=b.next();!g.done;g=b.next()){var k=l(g.value);g=k.next().value;k=k.next().value;var m=Fde(k);k=m.lookupId;m=Tuc(k,m.displayNameOverride,m.forceDisplayNameOverride,m.loggingTokenOverride);a.selectionsState.replace(g,m)&&f.push(k)}a.peopleStore.lookup(f,function(r){Gde(a,r,e,c,d)},a.lookupOptions)};Zv.prototype.dispose=function(){this.disposed=!0};
var Fde=function(a){if(a instanceof cce){var b=a.lookupWithOverride.getId();var c=a.lookupWithOverride.getDisplayName();var d=a.lookupWithOverride.getForceDisplayNameOverride();a=a.getLoggingToken()}else a instanceof G9?(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 fxc=function(a,b,c,d,e,f){var g=this;this.chipSet=a;this.selectionsState=b;this.undoRedoStack=c;this.lookupSelector=new Zv(b,d,e,f);this.onSelectionCallback=function(k,m,r){g.onSelect(r)};this.onSelectionReplacedCallback=function(k,m,r,w){w===9&&g.undoRedoStack.push()};this.onDeselectionCallback=function(k,m,r){g.onDeselect(r)};this.attach()};h=fxc.prototype;
h.attach=function(){k$(this.selectionsState,this.onSelectionCallback);ade(this.selectionsState,this.onSelectionReplacedCallback);j$(this.selectionsState,this.onDeselectionCallback)};h.select=function(a){a=this.lookupSelector.select(a,6);this.undoRedoStack.push();return a};h.deselect=function(a){this.lookupSelector.deselect(a);this.undoRedoStack.push()};h.replace=function(a){a=this.lookupSelector.replace(a,6);this.undoRedoStack.push();return a};h.focusLastChip=function(){return this.chipSet.focusLastChip()};
h.activateAllChips=function(){this.chipSet.activateAllChips()};h.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()};h.onSelect=function(a){a===1&&this.undoRedoStack.push()};h.onDeselect=function(a){switch(a){case 1:case 8:this.undoRedoStack.push()}};var Awc=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};h=Awc.prototype;h.append=function(a){this.root.insertBefore(a,this.marker);++this.length};h.insert=function(a,b){if(a<0||a>this.length)throw new RangeError("Ug");a===this.length?this.append(b):(this.root.insertBefore(b,this.root.childNodes[a]),++this.length)};
h.remove=function(a){if(a<0||a>=this.length)throw new RangeError("Ug");this.removeItem(this.root.childNodes[a])};h.removeItem=function(a){try{this.root.removeChild(a),--this.length}catch(b){}};h.clear=function(){for(;this.root.firstChild&&this.root.firstChild!==this.marker;)this.root.removeChild(this.root.firstChild);this.length=0};h.getRoot=function(){return this.root};h.getItems=function(){return Array.from(this.root.childNodes)};var xwc=function(a,b){this.root=a;this.options=b};h=xwc.prototype;h.activate=function(){this.root.classList.add("isActive")};h.deactivate=function(){this.root.classList.remove("isActive")};h.spotlight=function(){};h.unspotlight=function(){};h.getRoot=function(){return this.root};h.getSelection=function(){return Tuc(Hzc(this.options.id))};h.toggleSelection=function(){};h.onKeyDown=function(){};h.onContextMenu=function(){return function(){}};var wwc=function(a){var b=a.iconUrl,c=a.label,d=a.keyboardShortcut,e=a.densityClass,f=a.ariaLabel;a='<div role="menuitem" id="'+Nv(a.id)+'" peoplekit-id="'+Nv("UhZROb")+'" class="'+Nv("peoplekitComponentsContextmenuitemImplMenuItem")+" "+Nv(e)+'"'+(f?' aria-label="'+Nv(f)+'"':"")+'><div class="'+Nv("peoplekitComponentsContextmenuitemImplRow")+'">'+(N9(b)?'<img class="'+Nv("peoplekitComponentsContextmenuitemImplIcon")+" "+Nv("peoplekitComponentsContextmenuitemImplLeft")+'" src="'+Nv(J$d(b))+'" draggable="false" alt=""/>':
"")+'<div class="'+Nv("peoplekitComponentsContextmenuitemImplLabel")+" "+Nv("peoplekitComponentsContextmenuitemImplCenter")+'">'+Ov(c)+"</div>";d.length>0&&(a+='<div class="'+Nv("peoplekitComponentsContextmenuitemImplKeyboardShortcut")+" "+Nv("peoplekitComponentsContextmenuitemImplRight")+'"><span dir="ltr">',a+=Ov(d.join("+"))+"</span></div>");return Qv(a+"</div></div>")};var Gv=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 Iv=function(a,b,c,d,e){this.root=a;this.anchor=b;this.container=d;this.appearanceConfig=e;this.popup=Rsc(this.root,{});this.navigatable=nvc(c,new rae({shouldWrap:!0}));this.navigationEventHandler=qvc({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=dv(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.eventHandler.listen(this.root,"mousedown",function(f){f.preventDefault()});this.hide()};
Iv.prototype.append=function(a){var b=this;this.contextMenuItemOptions.set(a.id,a);var c=ywc(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(nv(e))}d.stopPropagation();Ide(b,a);b.hide()});this.navigatable.insert(this.navigatable.size(),[c],!1)};
Iv.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)};Iv.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()};
Iv.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(nv(c));b=b.getSelection().id().getValue();b=this.contextMenuItemOptions.get(b);Ide(this,b);this.hide();a.stopPropagation();a.preventDefault()}}};
var pae=function(a,b){a.itemSelectedCallbacks.add(b)},qae=function(a,b){a.afterHideCallbacks.add(b)},Ide=function(a,b){a=l(a.itemSelectedCallbacks.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c(b)};Iv.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 zwc=function(){return Qv('<div peoplekit-id="'+Nv("xl07Ob")+'" class="'+Nv("peoplekitComponentsContextmenuImplMenu")+'" role="menu"></div>')};var Jde=function(a,b,c,d,e,f,g){this.delegate=a;this.ariaParent=b;this.actionRequestCallbacks=c;this.chipConfig=d;this.appearanceConfig=e;this.clientConfig=f;this.chipCustomization=g;this.contextMenuContainer=av(Q9.prototype.getRoot.call(this),"QL45qe");a=Q9.prototype.getRoot.call(this).parentElement;Q9.prototype.getRoot.call(this).removeChild(this.contextMenuContainer);a.appendChild(this.contextMenuContainer)};Z(Jde,Q9);h=Jde.prototype;h.deactivate=function(){Q9.prototype.deactivate.call(this);u$(this)};
h.drag=function(){u$(this);Q9.prototype.drag.call(this)};h.dispose=function(){u$(this);Q9.prototype.dispose.call(this)};h.onKeyDown=function(a){var b;(b=this.contextMenu)==null||b.onKeyDown(a);Q9.prototype.onKeyDown.call(this,a)};
h.onContextMenu=function(a,b){var c=this;a.stopPropagation();a.preventDefault();this.isActive()?this.actionRequestCallbacks.spotlight():this.actionRequestCallbacks.activate();this.contextMenu&&u$(this);this.contextMenu=Bwc(this.contextMenuContainer,this.getRoot(),this.ariaParent,this.appearanceConfig);a=this.appearanceConfig.getTheme();this.contextMenu.append(qwc(a));$i(this.clientConfig.internal,4)&&Kde(this,a);this.chipConfig.getAllowChipDeletion()&&this.contextMenu.append(rwc(a));var d;!this.chipConfig.getAllowDisplayNameEditing()||
((d=this.chipCustomization.chipAction)==null?0:d.disableDisplayNameEditing)||this.contextMenu.append(swc(a));UAd(this.getSelection().id())&&this.chipConfig.getAllowContactMethodEditing()&&this.contextMenu.append(twc(a));rvc(this.getRoot())&&this.contextMenu.append(uwc(a));pae(this.contextMenu,function(e){switch(e.id){case "jCCvxc":c.actionRequestCallbacks.copyMethod(c);break;case "RkeQbd":case "N1uSwe":c.actionRequestCallbacks.copyContactMethod(c);break;case "UkZFS":c.actionRequestCallbacks.cut(c);
break;case "xTCd3":c.showHovercard();break;case "YCRBfe":c.edit();break;case "l1309":c.actionRequestCallbacks.editContactMethod(c);break;default:throw Error("hh`"+e.id);}u$(c)});qae(this.contextMenu,function(){u$(c);b()});this.contextMenu.show();return function(){u$(c)}};
var Kde=function(a,b){var c=a.getSelection().result().getDisplayValue();if(c){var d;if((d=a.contextMenu)!=null){var e=d.append;a=a.getSelection().id();QAd.includes(a.getType())?(b=Gv.get(b),c=Object.freeze({id:"RkeQbd",iconUrl:b==null?void 0:b.get("RkeQbd"),label:'Copy "'+c+'"',keyboardShortcut:[18,67],veid:134816})):(b=Gv.get(b),c=Object.freeze({id:"N1uSwe",iconUrl:b==null?void 0:b.get("N1uSwe"),label:'Copy "'+c+'"',keyboardShortcut:[18,67],veid:134816}));e.call(d,c)}}};
Jde.prototype.showHovercard=function(){this.isActive();this.getRoot();this.getSelection()};var u$=function(a){var b;(b=a.contextMenu)==null||b.dispose();a.contextMenu=void 0};var Lde=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Lde,X);var Mde=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Mde,X);Mde.prototype.getGroupIdHex=function(){return Fi(this,1)};var Nde=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Nde,X);Nde.prototype.getGroupIdHex=function(){return Fi(this,1)};var Lv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Lv,X);h=Lv.prototype;h.getGivenName=function(){return Fi(this,1)};h.setGivenName=function(a){return $m(this,1,a)};h.getFamilyName=function(){return Fi(this,2)};h.setFamilyName=function(a){return $m(this,2,a)};h.getEmailList=function(){return Xm(this,3,Xi())};h.setEmailList=function(a){return an(this,3,a)};h.addEmail=function(a){return Vq(this,3,a)};
h.removeEmail=function(a){return wc(this,3,Nb,void 0,a,Ob,void 0,1,!1,!0)};h.getEmail=function(){return ox(this,3)};h.setEmail=function(a){return zx(this,3,a)};var Ode=function(a){return Xm(a,4,Xi())},Iwc=function(a,b){return an(a,4,b)};Lv.prototype.getPhone=function(){return ox(this,4)};Lv.prototype.setPhone=function(a){return zx(this,4,a)};var v$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(v$,X);var Fwc=function(a){var b=new v$;return $m(b,1,a)};v$.prototype.getEdit=function(){return $i(this,2)};v$.prototype.setEdit=function(a){return sp(this,2,a)};v$.prototype.getIncludeTrash=function(){return $i(this,3)};var Jv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Jv,X);h=Jv.prototype;h.getObfuscatedGaiaId=function(){return Fi(this,1)};h.setObfuscatedGaiaId=function(a){return $m(this,1,a)};h.getEdit=function(){return $i(this,2)};h.setEdit=function(a){return sp(this,2,a)};h.getIncludeTrash=function(){return $i(this,3)};var w$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(w$,X);w$.prototype.getEdit=function(){return $i(this,2)};w$.prototype.setEdit=function(a){return sp(this,2,a)};w$.prototype.getIncludeTrash=function(){return $i(this,3)};var Pde=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Pde,X);Pde.prototype.getQuery=function(){return Fi(this,1)};Pde.prototype.setQuery=function(a){return $m(this,1,a)};Pde.prototype.clearQuery=function(){ex(this,1)};var Qde=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Qde,X);Qde.prototype.getQuery=function(){return Fi(this,1)};Qde.prototype.setQuery=function(a){return $m(this,1,a)};Qde.prototype.clearQuery=function(){ex(this,1)};var Kv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Kv,X);var Ewc=function(){var a=new Kv;return Vo(a,1,Rde,"0")};Kv.prototype.getAuthUser=function(){return So(this,17,Rde)};var Hwc=function(a,b){return op(a,3,x$,b)},Gwc=function(a,b){return op(a,9,x$,b)},Dwc=function(a,b){return op(a,10,x$,b)};Kv.prototype.getSearchParams=function(){return lm(this,Pde,13,x$)};Kv.prototype.setSearchParams=function(a){op(this,13,x$,a)};
var Rde=[1,17],x$=[2,3,4,5,6,7,8,9,10,11,13,14,15,16];var Cwc=function(a){switch(Oo(a,x$)){case 2:var b=lm(a,Lde,2,x$);b=$i(b,1);return y$(a,"",b?[["multisend_welcome","1"]]:null);case 3:return Sde(a);case 4:return y$(a,"/frequent");case 5:return y$(a,"/other");case 6:return y$(a,"/directory");case 7:return y$(a,"/label/"+z$(lm(a,Nde,7,x$).getGroupIdHex(),"GroupParams.GroupIdHex"));case 8:b=lm(a,w$,8,x$);b=Fi(b,1);b="/person/"+z$(b,"PersonByPersonIdParams.PersonId");var c=lm(a,w$,8,x$).getEdit()?[["edit","1"]]:lm(a,w$,8,x$).getIncludeTrash()?[["includeTrash",
"1"]]:[];return y$(a,b,c);case 9:return b="/p/"+z$(lm(a,Jv,9,x$).getObfuscatedGaiaId(),"PersonByObfuscatedGaiaIdParams.ObfuscatedGaiaId"),c=lm(a,Jv,9,x$).getEdit()?[["edit","1"]]:lm(a,Jv,9,x$).getIncludeTrash()?[["includeTrash","1"]]:[],y$(a,b,c);case 10:return b=lm(a,v$,10,x$),b=Fi(b,1),b="/contact/"+z$(b,"PersonByContactIdParams.ContactIdHex"),c=lm(a,v$,10,x$).getEdit()?[["edit","1"]]:lm(a,v$,10,x$).getIncludeTrash()?[["includeTrash","1"]]:[],y$(a,b,c);case 11:return b="/group/"+z$(lm(a,Mde,11,
x$).getGroupIdHex(),"DelegatedContactListParams.GroupIdHex")+"/",c=lm(a,Mde,11,x$),c=Fi(c,2),y$(a,b+z$(c,"DelegatedContactListParams.SyntheticGroupId"));case 13:return y$(a,"/search/"+z$(a.getSearchParams().getQuery(),"SearchParams.Query"));case 14:return y$(a,"/trash");case 15:return y$(a,"/trashsearch/"+z$(lm(a,Qde,15,x$).getQuery(),"TrashSearchParams.Query"));case 16:return y$(a,"/suggestions");default:throw Error("ih`"+Oo(a,x$));}},Sde=function(a){var b=[],c=pu(lm(a,Lv,3,x$).getGivenName());xa(c)||
b.push(["givenname",c]);c=pu(lm(a,Lv,3,x$).getFamilyName());xa(c)||b.push(["familyname",c]);c=lm(a,Lv,3,x$).getEmailList().filter(function(d){return!xa(d)}).toString();xa(c)||b.push(["email",c]);c=Ode(lm(a,Lv,3,x$)).filter(function(d){return!xa(d)}).toString();xa(c)||b.push(["phone",c]);return y$(a,"/new",b)},z$=function(a,b){if(xa(pu(a)))throw Error("jh`"+b);return a},y$=function(a,b,c){b=b===void 0?"":b;var d=pu(a.getAuthUser()).trim(),e=d||xa(pu(So(a,1,Rde)))||So(a,1,Rde)==="0"?"":"/u/"+So(a,1,
Rde),f=[];d&&f.push(["authuser",d]);(a=Ri(a,18))&&f.push(["bdSource",a]);c&&c.length>0&&f.push.apply(f,n(c));return(f.length>0?Lce({searchParams:f,pathname:e+b}):Lce({pathname:e+b})).href.substring(0,16384)};var Pwc=function(a,b){var c=this;this.dialog=a;this.textField=b;this.textField.checkValidity=Kwc;this.textField.onValidityChanged=function(d){return c.onValidityChanged(d)};this.textField.onInput=function(){c.nameLabel.textContent=c.textField.getValue()};this.nameLabel=av(this.dialog.getRoot(),"E0kCZc");this.eventHandler=dv(this);this.textField.focus();this.textField.select();Tde(this.textField);this.eventHandler.listen(this.textField.input,"keydown",function(d){switch(d.keyCode){case 13:c.dialog.dispatchAction(1),
d.stopPropagation(),d.preventDefault()}})};h=Pwc.prototype;h.subscribeToAction=function(a){this.dialog.subscribeToAction(a)};h.dispatchAction=function(a){this.dialog.dispatchAction(a)};h.enableAction=function(a){this.dialog.enableAction(a)};h.disableAction=function(a){this.dialog.disableAction(a)};h.getRoot=function(){return this.dialog.getRoot()};h.dispose=function(){this.dialog.dispose();this.textField.dispose();this.eventHandler.removeAll()};
h.onValidityChanged=function(a){a?this.dialog.enableAction(1):this.dialog.disableAction(1)};var Vv=function(a){var b=this;this.root=a;this.input=av(this.root,"YPqjbf");this.invalidMessage=av(this.root,"kyLNld");this.eventHandler=dv(this);this.eventHandler.listen(this.input,"input",function(c){var d;(d=b.onInput)==null||d.call(b,c);Tde(b)})};Vv.prototype.getRoot=function(){return this.root};Vv.prototype.focus=function(){this.input.focus()};Vv.prototype.select=function(){this.input.select()};Vv.prototype.getValue=function(){return this.input.value};
var Tde=function(a){if(a.checkValidity){var b=a.checkValidity(a.input.value);a.updateValidity(b)}};Vv.prototype.updateValidity=function(a){a.isValid?this.validate():this.invalidate(a.errorMessage||"")};Vv.prototype.validate=function(){this.root.classList.remove("isInvalid");this.invalidMessage.textContent="";var a;(a=this.onValidityChanged)==null||a.call(this,!0)};
Vv.prototype.invalidate=function(a){this.root.classList.add("isInvalid");this.invalidMessage.textContent=a;var b;(b=this.onValidityChanged)==null||b.call(this,!1)};Vv.prototype.dispose=function(){this.eventHandler.removeAll();this.onInput=this.onValidityChanged=this.checkValidity=void 0};var Nwc=function(a){var b=a.label,c=a.initialValue;a=a.id;return Qv('<div class="'+Nv("peoplekitComponentsTextfieldImplTextField")+'"><div class="'+Nv("peoplekitComponentsTextfieldImplInputContainer")+'"><label class="'+Nv("peoplekitComponentsTextfieldImplLabel")+'" for="'+Nv(a)+'">'+Ov(b)+'</label><input peoplekit-id="'+Nv("YPqjbf")+'" id="'+Nv(a)+'" class="'+Nv("peoplekitComponentsTextfieldImplInput")+'" value="'+Nv(c)+'" autocomplete="off" spellcheck="false"></div><div peoplekit-id="'+Nv("kyLNld")+
'" class="'+Nv("peoplekitComponentsTextfieldImplInvalidMessage")+'" role="alert"></div></div>')};var Owc=yt.getInstance();var Ude=function(a,b,c,d,e,f){var g=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=av(this.root,"bxvLg");this.eventHandler=dv(this);this.eventHandler.listen(this.deleteButton,"click",function(){return g.onDeleteButtonClick()})};h=Ude.prototype;h.onDeleteButtonClick=function(){this.selectionsState.deselect(this.selection,8)};
h.toggleSelection=function(){};h.activate=function(){this.root.classList.add("isActive");this.root.setAttribute("aria-selected","true")};h.deactivate=function(){this.root.classList.remove("isActive");this.root.setAttribute("aria-selected","false")};h.isActive=function(){return this.root.classList.contains("isActive")};h.spotlight=function(){this.root.classList.add("isSpotlit")};h.unspotlight=function(){this.root.classList.remove("isSpotlit")};
h.disable=function(){this.root.classList.add("isDisabled");this.isDisabledInternal=!0};h.enable=function(){this.root.classList.remove("isDisabled");this.isDisabledInternal=!1};h.isDisabled=function(){return this.isDisabledInternal};h.drag=function(){this.root.classList.add("isDragged")};h.undrag=function(){this.root.classList.remove("isDragged")};
h.edit=function(){var a=this;this.nameEditDialog&&this.nameEditDialog.dispose();var b=this.root.classList.contains("isActive"),c;this.nameEditDialog=Qwc(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=Yuc(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()})};h.unedit=function(){this.nameEditDialog&&(this.nameEditDialog.dispose(),this.nameEditDialog=null)};h.dispose=function(){this.eventHandler.removeAll();this.unedit()};h.getRoot=function(){return this.root};h.getSelection=function(){return this.selection};h.setDisambiguationLabel=function(a){var b=Vrc(this.root,"hyPgpe")[0];b&&(a?(b.classList.add("hasDisambiguationLabel"),DOc(b,"("+a+")")):b.classList.remove("hasDisambiguationLabel"))};
h.onKeyDown=function(){};h.onContextMenu=function(){return function(){}};h.getAllIds=function(){return[this.selection.id()]};h.updateWaldo=function(){};h.updateHubAvailabilityDot=function(){};h.getSupportedIntelligenceFeatures=function(){return[]};h.initializeIntelligence=function(){};var Vde=function(a){var b=a.id,c=a.label,d=a.name,e=a.hovercardId,f=a.stateClass,g=a.isWarning,k=a.isDeletionDisabled;a=a.customChipClass;return Tv(Sv(),T$d(b,d,e,f,g,k,a,Tv(Sv(),f?V$d(f):U$d()),Tv(Sv(),W$d(c)),Tv(Sv(),X$d(b))))};ev.addCoreFactory({type:2,factory:{create:function(a){var b=nsc(a.selection,a.chipConfig,a.chipCustomization),c=$u(Vde,b);bv(av(c,"d6MZcd"),b.photos,a.avatarSize,a.resultListItemAvatarSize,a.appearanceConfig);a.parent.appendChild(c);return{chip:new Ude(c,a.selection,a.selectionsState,a.actionRequestCallbacks,a.appearanceConfig,a.chipCustomization),root:c,state:0}},shouldCreate:function(){return!0}},configurationKey:void 0});
ev.addDecoratorFactory({type:2,configurationKey:void 0,factory:{create:function(a,b){return{chip:new Jde(b.chip,a.ariaParent,a.actionRequestCallbacks,a.chipConfig,a.appearanceConfig,a.clientConfig,a.chipCustomization),root:b.root,state:b.state}},shouldCreate:function(){return!0}}});
ev.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("gh`"+c);}}mv({element:a,veid:c,actions:["impression"],componentId:"peoplekitweb"});return b},shouldCreate:function(){return!0}}});var Xde=function(){return Rv(Tv(Rv(Sv(),'<div draggable="true" peoplekit-id="'+Nv("Svajxe")+'" class="'+Nv("peoplekitComponentsChipsetImplDraggableChip")+'">'),Wde()),"</div>")},Yde=function(){return Rv(Tv(Rv(Sv(),'<div draggable="false" peoplekit-id="'+Nv("shtr1e")+'" class="'+Nv("peoplekitComponentsChipsetImplNonDraggableChip")+'">'),Wde()),"</div>")},Zde=function(a){a=a.height;return Qv('<div peoplekit-id="'+Nv("tozrW")+'" class="'+Nv("peoplekitComponentsChipsetImplDropMarker")+'" style="height: '+
Nv(O9(a))+'px"></div>')},$de=function(){return Qv('<div peoplekit-id="'+Nv("DOyw7")+'" class="'+Nv("peoplekitComponentsChipsetImplDraggedChips")+'"></div>')},Wde=function(){return Qv('<div peoplekit-id="'+Nv("ubaLBe")+'" class="'+Nv("peoplekitComponentsChipsetImplChipContainer")+'"></div>')};var Xwc=function(a,b,c,d,e,f,g,k,m,r){this.selectionsState=a;this.undoRedoStack=b;this.container=c;this.dragImageRenderSandbox=d;this.navigatable=e;this.chipDropCallback=k;this.appearanceConfig=m;this.draggedChipsContainer=document.createElement("div");this.currentDropIndex=-1;this.draggedLookupIds=[];this.chipControllers=new Map;this.chipEventHandlers=new Map;this.eventHandler=dv(this);this.lookupSelector=new Zv(a,f,g,r);this.dropMarker=$u(Zde,{height:pwc(this.appearanceConfig.getDensity())});this.attach()};
Xwc.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=aee(a,a.chipControllers.size);A$(a);bee(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"),A$(a),b.stopPropagation(),b.preventDefault())});this.eventHandler.listen(this.container.getRoot(),"drop",function(b){cee(a,b)});Gtc(this.draggedChipsContainer,this.appearanceConfig.getTheme());this.dragImageRenderSandbox.appendChild(this.draggedChipsContainer)};
Xwc.prototype.listen=function(a,b,c){var d=this,e=String(a.id()),f=dv(c);f.listen(b,"dragstart",function(g){dee(d,a,g)});f.listen(b,"dragend",function(g){eee(d,g)});f.listen(b,"dragover",function(g){d.container.getRoot().classList.add("isDraggedOver");g=g.event_;if(g.dataTransfer.types.includes("text/lookupids")){var k=d.selectionsState.indexOf(a.id());var m=av(g.currentTarget,"ubaLBe").clientWidth,r=gv(d.container.getRoot());k=aee(d,g.offsetX<m/2?r?k+1:k:r?k:k+1);A$(d);bee(d,k);g.stopPropagation();
g.preventDefault()}d.container.getRoot()});f.listen(b,"drop",function(g){fee(d,g)});this.chipEventHandlers.set(e,f);this.chipControllers.set(e,c)};Xwc.prototype.unlisten=function(a){a=String(a);this.chipEventHandlers.get(a).removeAll();this.chipEventHandlers.delete(a);this.chipControllers.delete(a)};
var dee=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 Wwc(f.getSelection())}):a.draggedLookupIds=[Wwc(b)];a.draggedChips=$u($de);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();aE(a.draggedChipsContainer);a.draggedChipsContainer.appendChild(a.draggedChips);
c.dataTransfer.setDragImage(a.draggedChips,0,0);c.dataTransfer.setData("text/lookupids",Swc(a.draggedLookupIds));c.dataTransfer.effectAllowed="move";svc(a.container.getRoot())},eee=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()}A$(a);aE(a.draggedChipsContainer);
a.container.getRoot().classList.remove("isDraggedOver")},aee=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},bee=function(a,b){b!==a.currentDropIndex&&(a.container.insert(b,a.dropMarker),a.currentDropIndex=b)},A$=function(a){a.container.removeItem(a.dropMarker);a.currentDropIndex=-1},fee=function(a,b){a.container.getRoot().classList.remove("isDraggedOver");b=b.event_;var c=b.dataTransfer.getData("text/lookupids");
if(c){c=Vwc(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--;A$(a);a.lookupSelector.deselect(c.map(function(g){return g.getId()}));a.lookupSelector.select(c,2,d);b.stopPropagation();b.preventDefault();b.dataTransfer.dropEffect="move";a.currentDropIndex=-1;a.undoRedoStack.push()}else A$(a);aE(a.draggedChipsContainer);a.chipDropCallback()},cee=function(a,b){a.container.getRoot().classList.remove("isDraggedOver");
b=b.event_;var c=b.dataTransfer.getData("text/lookupids");c&&(c=Vwc(c),a.draggedLookupIds=[],A$(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());aE(a.draggedChipsContainer);a.chipDropCallback()};
Xwc.prototype.dispose=function(){this.eventHandler.removeAll();this.draggedChipsContainer.parentNode&&this.draggedChipsContainer.parentNode.removeChild(this.draggedChipsContainer);this.lookupSelector.dispose()};var gee=function(){};gee.prototype.listen=function(){};gee.prototype.unlisten=function(){};gee.prototype.dispose=function(){};var hee=function(){this.listeners=new Map},B$=function(a,b,c){b=JSON.stringify(b);var d=a.listeners.get(b)||[];a.listeners.set(b,[].concat(n(d),[c]))};hee.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)};hee.prototype.dispose=function(){this.listeners.clear()};var Xv=function(a,b,c,d,e,f,g,k,m,r,w){var x=this;this.selectionsState=a;this.undoRedoStack=b;this.container=c;this.peopleStore=d;this.appearanceConfig=f;this.chipConfig=g;this.clientConfig=k;this.callbacks=m;this.chipElements=new Map;this.chips=new Map;this.chipCustomizations=new Map;this.navigatable=nvc(c.getRoot(),ztc(new rae({shouldWrap:!1})));this.navigatable.setSecondaryEventTargets([this]);this.eventHandler=dv(this);this.chipEventHandlers=new Map;this.intelligentCollection=e.create();this.keyboardShortcutHandler=
new hee;iee(this);this.dragonDropHandler=this.chipConfig.getAllowChipDragAndDrop()?Ywc(a,b,c,this.container.getRoot().ownerDocument.body,this.navigatable,d,r,this.callbacks.chipDrop,this.appearanceConfig,w):new gee;this.eventHandler.listen(c.getRoot(),"keyup",function(D){D.keyCode!==9||D.target!==x.container.getRoot()||x.navigatable.getSpotlitItem()||(D.shiftKey?x.navigatable.prev(0):x.navigatable.next(0))});this.onSelectionCallback=function(D,H){x.insert(D,H)};this.onDeselectionCallback=function(D){x.remove(D.id())};
this.onSelectionReplacedCallback=function(D,H,J){x.replace(D,H,J)};k$(this.selectionsState,this.onSelectionCallback);j$(this.selectionsState,this.onDeselectionCallback);ade(this.selectionsState,this.onSelectionReplacedCallback)},iee=function(a){B$(a.keyboardShortcutHandler,[512,67],function(c){var d=a.navigatable.getSpotlitItem();a.copyMethod(d);a.navigatable.goToItem(d,2);c.stopPropagation()});B$(a.keyboardShortcutHandler,[18,67],function(c){var d=a.navigatable.getSpotlitItem();a.copyContactMethod(d);
a.navigatable.goToItem(d,2);c.stopPropagation()});B$(a.keyboardShortcutHandler,[512,88],function(c){a.chipConfig.getAllowChipDeletion()&&(a.cut(a.navigatable.getSpotlitItem(),3),c.stopPropagation())});B$(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()}};B$(a.keyboardShortcutHandler,[16,69],b);B$(a.keyboardShortcutHandler,[113],b);B$(a.keyboardShortcutHandler,[16,70],function(c){a.chipConfig.getAllowContactMethodEditing()&&(c.stopPropagation(),c.preventDefault(),jee(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()}};B$(a.keyboardShortcutHandler,[46],b);B$(a.keyboardShortcutHandler,[8],b);B$(a.keyboardShortcutHandler,[13],function(c){c.stopPropagation();c.preventDefault();a.callbacks.chipContextMenu(a.navigatable.getSpotlitItem(),c.event)})};Xv.prototype.insert=function(a,b){var c=String(a.id());this.chipElements.has(c)||kee(this,a,b)};
Xv.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()}};Xv.prototype.replace=function(a,b,c){this.remove(c);kee(this,a,b)};
var kee=function(a,b,c){var d=String(b.id()),e=a.chipConfig.getAllowChipDragAndDrop()?$u(Xde):$u(Yde);a.container.insert(c,e);a.chipElements.set(d,e);var f=av(e,"ubaLBe"),g=a.chipConfig.getChipCustomizationCallback()(b.result());a.chipCustomizations.set(d,g);var k=Rwc(f,a.container.getRoot(),b,a.selectionsState,{activate:function(){var m=b.id();m=a.chips.get(String(m));a.container.getRoot().focus();a.navigatable.goToItem(m,0)},spotlight:function(){var m=b.id();m=a.chips.get(String(m));a.container.getRoot().focus();
a.navigatable.goToItem(m,2)},copyMethod:function(m){a.copyMethod(m)},copyContactMethod:function(m){a.copyContactMethod(m)},cut:function(m){a.cut(m,4)},editContactMethod:function(){jee(a)}},a.appearanceConfig,a.chipConfig,a.clientConfig,g,gv(a.container.getRoot()));f=dv(k);a.dragonDropHandler.listen(b,e,k);f.listen(e,"click",function(m){a.callbacks.chipClick(k,m)});f.listen(e,"dblclick",function(m){a.callbacks.chipContextMenu(k,m)});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(),sde(tde(new rde,a.selectionsState.size()),b.getDisplayNameWithOverrideApplied())).then(function(m){k.setDisambiguationLabel(m.getDisambiguationLabel())})})};Xv.prototype.getNavigatable=function(){return this.navigatable};
Xv.prototype.focusLastChip=function(){this.container.getRoot().focus();return this.navigatable.goToIndex(this.navigatable.size()-1,0)};Xv.prototype.activateAllChips=function(){this.navigatable.activateAll()};
Xv.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 lee=function(a,b){return a.navigatable.getActiveItems().includes(b)?a.navigatable.getActiveItems().map(function(c){return c.getSelection()}):[b.getSelection()]};Xv.prototype.copyMethod=function(a){a=lee(this,a);bxc(a,this.container.getRoot())};Xv.prototype.copyContactMethod=function(a){a=a.getSelection();a.result().getDisplayValue()&&axc(a.result().getDisplayValue(),this.container.getRoot())};
Xv.prototype.cut=function(a,b){a=lee(this,a);bxc(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 jee=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())};
Xv.prototype.onKeyDown=function(a){a.event.target===this.container.getRoot()&&this.navigatable.getSpotlitItem()&&(this.keyboardShortcutHandler.handleEvent(a),this.undoRedoStack.onKeyDown(a))};var cxc=function(a,b){this.delegate=a;this.health=b};h=cxc.prototype;h.insert=function(a,b){try{this.delegate.insert(a,b)}catch(c){throw this.health.createError(6,zv(c)),c;}};h.remove=function(a){try{this.delegate.remove(a)}catch(b){throw this.health.createError(7,zv(b)),b;}};h.replace=function(a,b,c){try{this.delegate.replace(a,b,c)}catch(d){throw this.health.createError(8,zv(d)),d;}};h.getNavigatable=function(){return this.delegate.getNavigatable()};h.focusLastChip=function(){return this.delegate.focusLastChip()};
h.activateAllChips=function(){this.delegate.activateAllChips()};h.onKeyDown=function(a){this.delegate.onKeyDown(a)};h.dispose=function(){try{this.delegate.dispose()}catch(a){throw this.health.createError(9,zv(a)),a;}};var exc=function(a){this.input=this.navigatable=null;this.prevKeyCode=a.getPrevKeyCode();this.nextKeyCode=a.getNextKeyCode();this.navigatePastEndCallback=a.navigatePastEnd||function(){};this.eventHandler=dv(this)};h=exc.prototype;
h.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(new Yv(d))});this.eventHandler.listen(this.input,"contextmenu",function(d){return c.onContextMenu(new Yv(d))});this.eventHandler.listen(this.input,"blur",function(d){return c.onBlur(d)})};h.detach=function(){this.eventHandler.removeAll();this.navigatable=this.input=null};
h.onKeyDown=function(a){if(this.navigatable&&(this.navigatable.onKeyDown(a),!a.hasStoppedPropagationInternal)){var b=mee(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())}}};
h.onClick=function(a,b){if(!this.navigatable)return!1;this.navigatable.goToItem(a,mee(b));b.stopPropagation();return!0};h.onContextMenu=function(a){if(this.navigatable)this.navigatable.onContextMenu(a,function(){})};h.reset=function(){this.navigatable&&this.navigatable.reset()};var mee=function(a){return a.event.shiftKey?1:a.event.platformModifierKey?a.event.type==="keydown"?2:3:0};exc.prototype.onBlur=function(a){this.navigatable&&(this.navigatable.reset(),a.stopPropagation())};var nee=function(){};nee.prototype.call=function(a){a()};nee.prototype.cancel=function(){};var ixc=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"),oee=RegExp("^([\\s\n\r,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a]*)+","g"),pee=Object.freeze({startIndex:0,length:0,value:""});var nxc=function(a){a=a||{};a=a.max_height;var b=Sv(),c;a&&a>0?c=Rv(Tv(Rv(Sv(),'<div class="'+Nv("peoplekitComponentsSearchbarImplSearchBarContainer")+'" style="max-height: '+Nv(O9(a))+'px">'),Pce(Qv('<div peoplekit-id="'+Nv("kE8AEc")+'"></div>'))),"</div>"):c=Qv('<div class="'+Nv("peoplekitComponentsSearchbarImplSearchBarContainer")+'"><div peoplekit-id="'+Nv("kE8AEc")+'"></div></div>');return Tv(b,c)},pxc=function(a){var b=a.id,c=a.ariaLabel,d=a.helpText,e=a.shouldAutofocus,f=a.height;a=a.densityClass;
return Qv('<div class="'+Nv("peoplekitComponentsSearchbarImplSearchInputContainer")+'" style="height: '+Nv(O9(f))+'px" role="presentation"><input id="'+Nv(b)+'" class="'+Nv("peoplekitComponentsSearchbarImplSearchInput")+" "+Nv(a)+'" peoplekit-id="'+Nv("BbVjBd")+'" autocomplete="off" autocapitalize="off" autocorrect="off" spellcheck="false" aria-label="'+Nv(c)+'" aria-autocomplete="list" aria-haspopup="listbox" aria-expanded="false" placeholder="'+Nv(d)+'" size="'+Nv(d.length)+'" type="text" role="combobox"'+
(e?" autofocus":"")+'><span class="'+Nv("peoplekitComponentsSearchbarImplSearchInputWidthMeasurer")+" "+Nv(a)+'" peoplekit-id="'+Nv("nl4wje")+'"></span></div>')};var qee=[[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]],$v=function(a,b,c,d,e,f,g,k,m,r){var w=this;this.searchBarElement=a;this.chipsBar=b;this.inputContainer=c;this.autocomplete=d;this.selectionsState=e;this.undoRedoStack=f;this.config=m;this.prevQueryValue="";this.isDisposed=
!1;this.pasteLookupNotFoundListeners=[];this.manualLookupNotFoundListeners=[];this.inputElement=av(c,"BbVjBd");this.inputWidthMeasurer=av(c,"nl4wje");this.scrollBarElement=a.querySelector('[peoplekit-id="I8ejUe"]');this.updateMinWidthBatcher=new dde;this.autocompleteBatcher=new nee;this.lookupSelector=new Zv(this.selectionsState,g,k,r);this.eventHandler=dv(this);this.keyboardShortcutHandler=new hee;this.enterKeyDownListeners=[];this.query=pee;this.onSelectionCallback=function(){w.onSelect()};this.onSelectionAttemptedCallback=
function(){w.onSelectAttempt()};this.onDeselectionCallback=function(){w.onDeselect()};this.attach();C$(this);ree(this)};h=$v.prototype;h.select=function(a){return this.chipsBar.select(a)};h.deselect=function(a){this.chipsBar.deselect(a)};h.replace=function(a){return this.chipsBar.replace(a)};h.focus=function(){this.inputElement.focus()};
h.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};var see=function(a,b){a=l(a.pasteLookupNotFoundListeners);for(var c=a.next();!c.done;c=a.next())c=c.value,c(b)};$v.prototype.search=function(){D$(this,!1,!0)};
$v.prototype.attach=function(){var a=this;k$(this.selectionsState,this.onSelectionCallback);this.selectionsState.selectionAttemptedCallbacks.add(this.onSelectionAttemptedCallback,2);j$(this.selectionsState,this.onDeselectionCallback);this.eventHandler.listen(this.inputElement,"keydown",function(b){b=new Yv(b);a.keyboardShortcutHandler.handleEvent(b);if(!a.inputElement.value)a.undoRedoStack.onKeyDown(b)});this.eventHandler.listen(this.inputElement,"keyup",function(b){a.onKeyUp(b)});this.eventHandler.listen(this.inputElement,
"input",function(){a.onInput()});this.eventHandler.listen(this.inputElement,"paste",function(b){tee(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(){D$(a)});this.eventHandler.listen(this.searchBarElement,"click",function(){a.inputElement.focus()});uee(this)};
$v.prototype.detach=function(){this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback);this.selectionsState.selectionAttemptedCallbacks.remove(this.onSelectionAttemptedCallback);this.selectionsState.deselectionCallbacks.remove(this.onDeselectionCallback);this.eventHandler.removeAll()};
var D$=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;a.autocompleteBatcher.call(function(){a.query=kxc(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(){})})},wee=function(a){var b=a.inputElement.value;a.inputElement.value="";vee(a);var c=Mv(b);c=Twc(bw(c.address)).setDisplayName(c.getName());a.lookupSelector.select([c],
13).then(function(d){if(!a.isDisposed){if(d.length){a.inputElement.value=b;d={notFoundIds:d};for(var e=l(a.manualLookupNotFoundListeners),f=e.next();!f.done;f=e.next())f=f.value,f(d)}a.inputElement.setSelectionRange(a.inputElement.value.length,a.inputElement.value.length);C$(a);D$(a)}});a.undoRedoStack.push()};$v.prototype.onInput=function(){C$(this);D$(this)};
var xee=function(a,b){if(pv)return a.searchBarElement.ownerDocument.defaultView.clipboardData;a=b.event_;return a.type==="paste"?a.clipboardData:null},tee=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=xee(a,b))==null?void 0:e.getData("text"))||"";e=jxc(c);var f=new Map;e=e.map(function(g){var k=Mv(g.value),m=k.address?k.getName():"";k=k.address||k.getName();k=k.includes("@")?bw(k):Exc(k);m=Twc(k).setDisplayName(m);
f.set(String(k),g);return m});b.preventDefault();b.stopPropagation();a.lookupSelector.select(e,5).then(function(g){a.isDisposed||(a.inputElement.value=g.map(function(k){var m;return((m=f.get(String(k)))==null?void 0:m.value.trim())||""}).join(", "),g.length&&see(a,{notFoundIds:g}),a.inputElement.setSelectionRange(a.inputElement.value.length,a.inputElement.value.length),C$(a),D$(a))});a.undoRedoStack.push()}};$v.prototype.onInputFocus=function(){D$(this)};$v.prototype.onInputBlur=function(){vee(this)};
var C$=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"})},uee=function(a){var b=gv(a.searchBarElement)?39:37,c=function(d){!a.inputElement.value&&a.selectionsState.size()>0&&(a.chipsBar.focusLastChip(),d.stopPropagation())};B$(a.keyboardShortcutHandler,[8],c);B$(a.keyboardShortcutHandler,
[b],c);B$(a.keyboardShortcutHandler,[16,b],c);B$(a.keyboardShortcutHandler,[512,16,b],c);B$(a.keyboardShortcutHandler,[18,16,b],c);B$(a.keyboardShortcutHandler,[512,65],function(d){a.inputElement.value||(a.chipsBar.focusLastChip(),a.chipsBar.activateAllChips(),d.preventDefault(),d.stopPropagation())});B$(a.keyboardShortcutHandler,[40],function(d){a.inputElement.value||a.autocomplete.isShown()||(D$(a,!0),d.preventDefault(),d.stopPropagation())});B$(a.keyboardShortcutHandler,[13],function(d){if(a.inputElement.value){var e=
a.inputElement.value;e=e==null?!1:Mv(e).isValid();var f=!a.autocomplete.getNavigatable().size();e&&f&&(wee(a),d.preventDefault(),d.stopPropagation())}else if(!a.autocomplete.getNavigatable().getActiveItems().length){e=a.selectionsState.asArray();f=l(a.enterKeyDownListeners);for(var g=f.next();!g.done;g=f.next())g=g.value,g(e);d.preventDefault();d.stopPropagation()}});b=l(qee);for(c=b.next();!c.done;c=b.next())B$(a.keyboardShortcutHandler,c.value,function(d){d.stopPropagation()})};
$v.prototype.onKeyUp=function(a){a.keyCode!==37&&a.keyCode!==39||D$(this)};var vee=function(a){a.autocompleteBatcher.cancel();a.autocomplete.canHide()&&(a.autocomplete.detach(),a.prevQueryValue="")};
$v.prototype.onSelect=function(){yee(this);ree(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(oee,"");this.inputElement.setSelectionRange(this.query.startIndex,this.query.startIndex);
D$(this,!1,!1);C$(this)}};$v.prototype.onSelectAttempt=function(){this.onSelect()};$v.prototype.onDeselect=function(){this.autocomplete.isShown()&&D$(this,!1,!1);yee(this);ree(this);C$(this);this.selectionsState.size()<=0&&this.inputElement.focus()};
var yee=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,C$(a))},ree=function(a){var b=a.inputElement,c=b.setAttribute;a=a.selectionsState.size();c.call(b,"aria-description",(a===0?"None":""+a)+" selected")};var mxc=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=Kca(um(c.internal,3)))!=null?d:a;this.push()};mxc.prototype.push=function(){var a=this.selectionsState.asArray().map(Wwc),b=!1;this.undoStack.length!==0&&lxc(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};
mxc.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};mxc.prototype.clear=function(){this.undoStack.length=0;this.push()};
mxc.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 qxc=yt.getInstance();var uxc=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 dde;k$(this.selectionsState,function(){f.notifySelectionChanged()});j$(this.selectionsState,function(){f.notifySelectionChanged()});ade(this.selectionsState,function(){f.notifySelectionChanged()})};h=uxc.prototype;h.select=function(a){return this.searchBar.select(a)};h.deselect=function(a){this.searchBar.deselect(a)};
h.replace=function(a){return this.searchBar.replace(a)};h.subscribeToSelectionChanged=function(a){this.selectionChangedListeners.push(a)};h.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)})};h.focus=function(){this.searchBar.focus()};h.report=function(a){var b=this.selectionsState.asArray();Kvc(this.interactionReporter,a,b)};
h.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 sxc=function(a){a=a||{};a=a.classes;return Qv('<div peoplekit-id="'+Nv("P3anae")+'"'+(a?' class="'+Nv(a)+'"':"")+"></div>")};var zee={create:function(a,b,c,d){d=d===void 0?new Ev:d;return xxc(a,b,c,new d$d,{sessionOptions:d})},createWith:function(a,b,c,d){d=d===void 0?{}:d;return xxc(a,b,c,new d$d,d)},createConfig:function(a){a=a===void 0?new mBd(iV.apiEnv,new nBd(iV.userProfileId)):a;return new Bde(a)}};var Aee=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Aee,X);h=Aee.prototype;h.getEnableClearcut=function(){return $i(this,1)};h.setEnableClearcut=function(a){return jj(this,1,a)};h.getSocialApplication=function(){return Ri(this,2)};h.getSocialApplicationOrUndefined=function(){return Op(this,2)};h.setEventSources=function(a){dx(this,5,Fw,a)};var E$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(E$,X);E$.prototype.getApplication=function(){return Ri(this,1)};E$.prototype.setApplication=function(a){return Yn(this,1,a)};E$.prototype.getApplicationOrUndefined=function(){return Op(this,1)};E$.prototype.getIsEnabled=function(){return $i(this,2)};var Bee=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Bee,X);h=Bee.prototype;h.getSuggestMaxResults=function(){return Wm(this,1,10)};h.getSearchMaxResults=function(){return Wm(this,2,10)};h.getCacheStaleSec=function(){return tm(this,4,86400)};h.getCacheExpiredSec=function(){return tm(this,5,1209600)};h.getRpcTimeoutSec=function(){return tm(this,12,60)};h.getSuggestFormat=function(){return Ri(this,15,1)};h.getSearchFormat=function(){return Ri(this,16,1)};
h.getEnablePersonalizedQueryMatching=function(){return $i(this,35)};var F$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(F$,X);F$.prototype.getApiKey=function(){return Fi(this,1)};F$.prototype.setApiKey=function(a){return Gj(this,1,a)};var G$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(G$,X);G$.prototype.getClientId=function(){return Fi(this,1,"CLIENT_UNSPECIFIED")};G$.prototype.setClientId=function(a){return Gj(this,1,a)};G$.prototype.setAffinityType=function(a){return Gj(this,4,a)};var Cee=function(a){return Ri(a,5)};G$.prototype.setPhoneCanonicalizationInference=function(a){return Yn(this,19,a)};G$.prototype.getPhoneCanonicalizationInferenceOrUndefined=function(){return Op(this,19)};var Dee=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Dee,X);h=Dee.prototype;h.getClient=function(){return Y(this,Bee,1)};h.setClient=function(a){return hj(this,Bee,1,a)};h.hasClient=function(){return Si(this,Bee,1)};h.getGapi=function(){return Y(this,F$,2)};h.getPeopleApi=function(){return Y(this,G$,3)};h.getClearcut=function(){return Y(this,Aee,4)};h.setClearcut=function(a){hj(this,Aee,4,a)};h.hasClearcut=function(){return Si(this,Aee,4)};
h.getExperiments=function(){return Y(this,E$,5)};h.setExperiments=function(a){return hj(this,E$,5,a)};h.hasExperiments=function(){return Si(this,E$,5)};var Eee=pva(Dee);var Fee;var Gee=function(a,b){this.delegate_=a;this.runtimeConfig_=b||new vBd;a=this.getPeopleApi();On(a,7,Xi()).length||Ax(a,7,[2,8,1,7,10,11]);Xm(a,8,Xi()).length||an(a,8,["person.name","person.photo","person.email","person.phone","person.metadata"]);b=l(Xm(a,8,Xi()));for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c){case "person.name":case "person.email":case "person.phone":Vq(a,8,c+".metadata.verified")}};
Gee.prototype.getClient=function(){this.delegate_.hasClient()||this.delegate_.setClient(new Bee);return this.delegate_.getClient()};Gee.prototype.getGapi=function(){if(!Si(this.delegate_,F$,2)){var a=this.delegate_,b=new F$;hj(a,F$,2,b)}return this.delegate_.getGapi()};Gee.prototype.getPeopleApi=function(){if(!Si(this.delegate_,G$,3)){var a=this.delegate_,b=new G$;hj(a,G$,3,b)}return this.delegate_.getPeopleApi()};
Gee.prototype.getClearcut=function(){this.delegate_.hasClearcut()||this.delegate_.setClearcut(new Aee);return this.delegate_.getClearcut()};var Hee=function(a){a.delegate_.hasExperiments()||a.delegate_.setExperiments(new E$);return a.delegate_.getExperiments()};Gee.prototype.getAuthErrorHandler=function(){return this.runtimeConfig_.getAuthErrorHandler()};var Iee=function(a){a=a.getClient();return Wm(a,6,500)?Math.min(Math.round(Wm(a,6,500)/4),500):500};var Jee;var Ew=null;var Kee=function(){};Kee.prototype.processItem=function(){};var Lee=new Kee;var zxc=new Set([10,11]);var Mee=function(a){this.interleaveGroups_=$i(a,33)},Nee=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=Axc(d,e,f,!0);break a;default:d=Bxc(d,e,f)}}return d}).map(function(d){return String(d.id)})};var H$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(H$,X);H$.prototype.setPhoneCanonicalizationInference=function(a){return Yn(this,1,a)};H$.prototype.getPhoneCanonicalizationInferenceOrUndefined=function(){return Op(this,1)};var I$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(I$,X);I$.prototype.setDevice=function(a){return Yn(this,1,a)};var Oee=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Oee,X);var Pee=function(){var a=new Oee;return Yn(a,1,1)},Qee=function(a,b){return Gj(a,2,b)};var Ree=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Ree,X);h=Ree.prototype;h.setAffinityType=function(a){return Yn(this,1,a)};h.getQuery=function(){return Ml(this,2)};h.setQuery=function(a){return Gj(this,2,a)};h.clearQuery=function(){ex(this,2)};h.hasQuery=function(){return xm(this,2)};h.setClientInformation=function(a){hj(this,I$,3,a)};h.setMaxResults=function(a){return Wn(this,4,a)};h.setFormattingOptions=function(a){hj(this,H$,5,a)};
h.setDelegation=function(a){hj(this,Oee,6,a)};var See=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(See,X);var Tee=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Tee,X);h=Tee.prototype;h.getAffinityVersion=function(){return qx(this,1)};h.setAffinityVersion=function(a){Wn(this,1,a)};h.getAffinityVersionOrUndefined=function(){return lx(this,1)};h.setFeature=function(a){return dx(this,3,See,a)};h.setAffinityType=function(a){return Gj(this,4,a)};var Wxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,4)};Z(Wxc,X);var J$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(J$,X);J$.prototype.getValue=function(){return Ml(this,1)};J$.prototype.getValue_legacyNullable=function(){return Ml(this,1)};J$.prototype.setValue=function(a){return Gj(this,1,a)};J$.prototype.hasValue=function(){return xm(this,1)};var Uee=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Uee,X);h=Uee.prototype;h.getLoggingId=function(){return um(this,1,void 0,tw,oc)};h.setLoggingId=function(a){$r(this,1,db(a,!1,!0))};h.getValue=function(){return sx(this,2)};h.getValue_legacyNullable=function(){return sx(this,2)};h.setValue=function(a){return tx(this,2,a)};h.hasValue=function(){return um(this,2,void 0,void 0,ub)!=null};var Vee=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Vee,X);h=Vee.prototype;h.getValue=function(){return Ml(this,1)};h.getValue_legacyNullable=function(){return Ml(this,1)};h.setValue=function(a){return Gj(this,1,a)};h.hasValue=function(){return xm(this,1)};h.getGivenName=function(){return Ml(this,2)};h.setGivenName=function(a){return Gj(this,2,a)};h.hasGivenName=function(){return xm(this,2)};h.getFamilyName=function(){return Ml(this,3)};
h.setFamilyName=function(a){return Gj(this,3,a)};h.hasFamilyName=function(){return xm(this,3)};h.getSourceType=function(){return rw(this,4)};h.setSourceType=function(a){return Yn(this,4,a)};var Wee=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Wee,X);h=Wee.prototype;h.getUrl=function(){return Ml(this,1)};h.setUrl=function(a){return Gj(this,1,a)};h.hasUrl=function(){return xm(this,1)};h.getType=function(){return rw(this,2)};h.setType=function(a){return Yn(this,2,a)};h.hasType=function(){return ym(this,2)};h.getGlyph=function(){return Ml(this,3)};h.setGlyph=function(a){return Gj(this,3,a)};var K$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(K$,X);h=K$.prototype;h.getPhoto=function(){return Y(this,Wee,1)};h.setPhoto=function(a){hj(this,Wee,1,a)};h.hasPhoto=function(){return Si(this,Wee,1)};h.getName=function(){return Y(this,Vee,2)};h.setName=function(a){return hj(this,Vee,2,a)};h.hasName=function(){return Si(this,Vee,2)};h.getNameOrUndefined=function(){return bCc(this,Vee,2)};h.getAffinity=function(){return Y(this,Uee,3)};
h.hasAffinity=function(){return Si(this,Uee,3)};var L$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(L$,X);L$.prototype.getStatus=function(){return rw(this,2)};L$.prototype.setStatus=function(a){return Yn(this,2,a)};L$.prototype.hasStatus=function(){return ym(this,2)};var Xee=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Xee,X);var iyc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(iyc,X);iyc.prototype.getState=function(){return rw(this,2)};iyc.prototype.setState=function(a){return Yn(this,2,a)};var Yee=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Yee,X);Yee.prototype.getApplication=function(){return Ri(this,1)};Yee.prototype.setApplication=function(a){return Yn(this,1,a)};Yee.prototype.getApplicationOrUndefined=function(){return Op(this,1)};var M$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(M$,X);M$.prototype.getValue=function(){return Ml(this,1)};M$.prototype.getValue_legacyNullable=function(){return Ml(this,1)};M$.prototype.setValue=function(a){return Gj(this,1,a)};M$.prototype.hasValue=function(){return xm(this,1)};var Fxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Fxc,X);h=Fxc.prototype;h.getProfileId=function(){return Ml(this,1)};h.getProfileId_legacyNullable=function(){return Ml(this,1)};h.setProfileId=function(a){return Gj(this,1,a)};h.hasProfileId=function(){return xm(this,1)};h.getEmail=function(){return ww(this,2,ew)};h.getEmail_legacyNullable=function(){return ww(this,2,ew)};h.setEmail=function(a){return Vo(this,2,ew,a)};
h.hasEmail=function(){return Cr(this,2,ew)!=null};h.getPhone=function(){return ww(this,3,ew)};h.getPhone_legacyNullable=function(){return ww(this,3,ew)};h.setPhone=function(a){return Vo(this,3,ew,a)};h.getClientData=function(){return Ml(this,4)};h.hasClientData=function(){return xm(this,4)};var ew=[2,3];var Zee=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Zee,X);h=Zee.prototype;h.getDisplayValue=function(){return Ml(this,1)};h.getCanonicalValue=function(){return Ml(this,2)};h.setCanonicalValue=function(a){return Gj(this,2,a)};h.hasCanonicalValue=function(){return xm(this,2)};h.getOriginalValue=function(){return Ml(this,3)};var $ee=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z($ee,X);var afe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(afe,X);h=afe.prototype;h.getStatus=function(){return rw(this,1)};h.setStatus=function(a){return Yn(this,1,a)};h.hasStatus=function(){return ym(this,1)};h.getClientData=function(){return Ml(this,2)};h.hasClientData=function(){return xm(this,2)};var Ixc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Ixc,X);h=Ixc.prototype;h.getIdCase=function(){return Oo(this,N$)};h.getProfileId=function(){return ww(this,1,N$)};h.getProfileId_legacyNullable=function(){return ww(this,1,N$)};h.setProfileId=function(a){return Vo(this,1,N$,a)};h.hasProfileId=function(){return Cr(this,1,N$)!=null};h.getContactId=function(){return ww(this,2,N$)};h.setContactId=function(a){return Vo(this,2,N$,a)};var N$=[1,2];var bfe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(bfe,X);h=bfe.prototype;h.getValueCase=function(){return Oo(this,cw)};h.getDisplayInfo=function(){return Y(this,K$,1)};h.hasDisplayInfo=function(){return Si(this,K$,1)};h.getEmail=function(){return lm(this,M$,2,cw)};h.setEmail=function(a){return op(this,2,cw,a)};h.hasEmail=function(){return lj(this,M$,2,cw)};h.getPhone=function(){return lm(this,Zee,3,cw)};h.setPhone=function(a){return op(this,3,cw,a)};
h.getIsSelf=function(){return jw(this,6)};h.getTypeLabel=function(){return Ml(this,10)};h.getDisambiguationLabel=function(){return Y(this,J$,14)};h.setDisambiguationLabel=function(a){hj(this,J$,14,a)};var cw=[2,3,4];var cfe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(cfe,X);h=cfe.prototype;h.getDisplayInfo=function(){return Y(this,K$,1)};h.hasDisplayInfo=function(){return Si(this,K$,1)};h.getMembersList=function(){return Wi(this,bfe,2,Xi())};h.setMembersList=function(a){return ij(this,2,a)};h.getLabelId=function(){return Ml(this,3)};var iw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a,5)};Z(iw,X);iw.prototype.getIsPlaceholder=function(){return $i(this,2)};iw.prototype.setIsPlaceholder=function(a){jj(this,2,a)};iw.prototype.getContactId=function(){return Hn(this,4)};iw.prototype.setContactId=function(a){return Nn(this,4,a)};var dfe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(dfe,X);dfe.prototype.getAffinity=function(){return Y(this,Uee,2)};dfe.prototype.hasAffinity=function(){return Si(this,Uee,2)};var ryc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ryc,X);ryc.prototype.getIdCase=function(){return Oo(this,syc)};var syc=[1,2];var efe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(efe,X);h=efe.prototype;h.getDisplayInfo=function(){return Y(this,K$,1)};h.hasDisplayInfo=function(){return Si(this,K$,1)};h.getMembersList=function(){return Wi(this,dfe,2,Xi())};h.setMembersList=function(a){return ij(this,2,a)};h.getGroupId=function(){return Ml(this,4)};h.setGroupId=function(a){Gj(this,4,a)};h.hasGroupId=function(){return xm(this,4)};var O$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(O$,X);O$.prototype.getDataCase=function(){return Oo(this,ffe)};O$.prototype.clearData=function(){return fx(this,ffe)};O$.prototype.getGroup=function(){return lm(this,efe,2,ffe)};O$.prototype.setGroup=function(a){op(this,2,ffe,a)};var ffe=[1,2,3];var gfe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(gfe,X);var hfe=new DC("/peoplestack.PeopleStackAutocompleteService/Autocomplete",Ree,gfe,function(a){return a.serialize()},Hi(gfe));var ife=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ife,X);h=ife.prototype;h.setAffinityType=function(a){return Yn(this,1,a)};h.setClientInformation=function(a){hj(this,I$,2,a)};h.getName=function(){return Ml(this,3)};h.setName=function(a){return Gj(this,3,a)};h.hasName=function(){return xm(this,3)};h.getNameOrUndefined=function(){return mx(this,3)};var jfe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(jfe,X);jfe.prototype.getGroup=function(){return Y(this,efe,1)};jfe.prototype.setGroup=function(a){hj(this,efe,1,a)};var kfe=new DC("/peoplestack.PeopleStackAutocompleteService/CreateGroup",ife,jfe,function(a){return a.serialize()},Hi(jfe));var pw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(pw,X);h=pw.prototype;h.getIdCase=function(){return Oo(this,qw)};h.getEmail=function(){return ww(this,1,qw)};h.getEmail_legacyNullable=function(){return ww(this,1,qw)};h.setEmail=function(a){return Vo(this,1,qw,a)};h.hasEmail=function(){return Cr(this,1,qw)!=null};h.getPhone=function(){return ww(this,2,qw)};h.getPhone_legacyNullable=function(){return ww(this,2,qw)};h.setPhone=function(a){return Vo(this,2,qw,a)};
h.getProfileId=function(){return ww(this,3,qw)};h.getProfileId_legacyNullable=function(){return ww(this,3,qw)};h.setProfileId=function(a){return Vo(this,3,qw,a)};h.hasProfileId=function(){return Cr(this,3,qw)!=null};h.getContactId=function(){return ww(this,5,qw)};h.setContactId=function(a){return Vo(this,5,qw,a)};var qw=[1,2,3,4,5];var P$=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(P$,X);P$.prototype.setAffinityType=function(a){return Yn(this,1,a)};P$.prototype.setClientInformation=function(a){hj(this,I$,2,a)};var lfe=function(a,b){ij(a,3,b)};P$.prototype.setIds=function(a){return dx(this,3,pw,a)};P$.prototype.setFormattingOptions=function(a){hj(this,H$,4,a)};P$.prototype.setDelegation=function(a){hj(this,Oee,5,a)};var mfe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(mfe,X);mfe.prototype.clearResult=function(){return fx(this,nfe)};mfe.prototype.getId=function(){return Y(this,pw,1)};mfe.prototype.setId=function(a){return hj(this,pw,1,a)};var nfe=[2,3];var ofe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(ofe,X);var pfe=new DC("/peoplestack.PeopleStackAutocompleteService/Lookup",P$,ofe,function(a){return a.serialize()},Hi(ofe));var qfe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(qfe,X);qfe.prototype.setAffinityType=function(a){return Yn(this,1,a)};qfe.prototype.setClientInformation=function(a){hj(this,I$,2,a)};qfe.prototype.setDelegation=function(a){hj(this,Oee,3,a)};var rfe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(rfe,X);var sfe=new DC("/peoplestack.PeopleStackAutocompleteService/Warmup",qfe,rfe,function(a){return a.serialize()},Hi(rfe));var tfe=function(a){var b={unaryInterceptors:[new lbe]};b=b||{};b.format="jspb";this.client_=new ZMc(b);this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};tfe.prototype.autocomplete=function(a,b,c){return vD(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Autocomplete",a,b||{},hfe,c)};tfe.prototype.lookup=function(a,b,c){return vD(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Lookup",a,b||{},pfe,c)};
tfe.prototype.createGroup=function(a,b,c){return vD(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/CreateGroup",a,b||{},kfe,c)};var Bw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Bw,X);h=Bw.prototype;h.getTimestamp=function(){return Hn(this,1)};h.setTimestamp=function(a){return Nn(this,1,a)};h.hasTimestamp=function(){return Gn(this,1)};h.getAffinityVersion=function(){return Wm(this,2)};h.setAffinityVersion=function(a){Wn(this,2,a)};h.getAffinityVersionOrUndefined=function(){return lx(this,2)};h.getNextPageToken=function(){return Fi(this,4)};var Q$=function(a){return jj(a,5,!0)};
Bw.prototype.getCode=function(){return Ri(this,6)};Bw.prototype.setCode=function(a){return Yn(this,6,a)};Bw.prototype.getCodeOrUndefined=function(){return Op(this,6)};var Sxc=new xC(417869898,kw,iw);var Xxc=new xC(417866180,kw,Wxc);var ufe=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},Qxc=function(a){if(!a)return 0;a=Array.from(a).map(ufe);a.sort();for(var b=1,c=0,d=a.length;c<d;c++)b=(b<<5)-b+a[c];return b};var Cxc=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 vfe=function(a){this.leanResponseProcessorConfig_=a},wfe=function(a,b,c,d){d=d===void 0?!1:d;for(var e=[],f=Vxc(b),g=[],k=l(Wi(b,bfe,1,Xi())),m=k.next();!m.done;m=k.next()){m=m.value;var r=Hxc(m);if(r.equals(hw)){if(!a.leanResponseProcessorConfig_.allowEmptyTargets&&!d)continue;r=Rxc(m);if(!r)continue;r=Hzc(r)}g.push(String(r));var w=void 0,x=void 0;r={id:r,containerIds:Lxc(m),coalescedKeys:g,isMe:!!m.getIsSelf(),dataSource:Mxc(b,m),provenance:c,isPrimary:Pxc((w=m.getDisplayInfo())!=null?w:null),
itemAffinity:Oxc(b),fieldAffinity:Nxc((x=m.getDisplayInfo())!=null?x:null),contactMethod:m,person:b};f&&(r.resultExtendedData=f);if(w=Yxc(m))r.targetExtendedData=w;m=Wi(m,$ee,15,Xi());m.length>0&&(r.preferredSearchTerms=m.map(function(D){return Ml(D,1)}));e.push(r)}e.length&&e.every(function(D){return!D.isPrimary})&&(e[0].isPrimary=!0);return e},xfe=function(a,b,c){var d=Gzc(Dxc(Ml(b,5)),b.getGroupId()||""),e=b.getMembersList().map(function(m){return wfe(a,m,8,!0)}),f=e.filter(function(m){return m&&
m.length}).map(function(m){return String(m[0].id)}),g,k;d=[{id:d,containerIds:[d],memberKeys:f,totalMemberCount:(g=lx(b,3))!=null?g:void 0,provenance:c,isPrimary:!0,itemAffinity:Nxc((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,n(c.value));return d},yfe=function(a,b){var c=VAd(a.getLabelId()||""),d=a.getMembersList().map(function(g){if(g.hasEmail()&&g.getEmail().getValue()){var k,m;var r={id:bw(g.getEmail().getValue()),
containerIds:Lxc(g),contactMethod:g,provenance:8,isMe:!1,dataSource:1,isPrimary:Pxc((k=g.getDisplayInfo())!=null?k:null),itemAffinity:-Infinity,fieldAffinity:Nxc((m=g.getDisplayInfo())!=null?m:null)};if(g=Yxc(g))r.targetExtendedData=g}else r=null;return r}).filter(Boolean),e=d.map(function(g){return String(g.id)}),f;return[{id:c,containerIds:[c],memberKeys:e,totalMemberCount:d.length,provenance:b,dataSource:1,isPrimary:!0,itemAffinity:Nxc((f=a.getDisplayInfo())!=null?f:null),fieldAffinity:-Infinity,
isMe:!1,contactLabel:a}].concat(n(d))},zfe=function(a,b,c){switch(b.getDataCase()){case 1:return wfe(a,lm(b,dfe,1,ffe),c);case 2:return xfe(a,b.getGroup(),c);case 3:return yfe(lm(b,cfe,3,ffe),c);default:return[]}},Afe=function(a,b,c){return Wi(b,O$,1,Xi()).flatMap(function(d){return zfe(a,d,c)})};var Dw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Dw,X);Dw.prototype.getSessionState=function(){return Y(this,cV,1)};Dw.prototype.setSessionState=function(a){return hj(this,cV,1,a)};Dw.prototype.hasSessionState=function(){return Si(this,cV,1)};var nw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(nw,X);nw.prototype.hasNoChanges=function(){return Zi(this,12)};var mw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(mw,X);mw.prototype.getEventType=function(){return Ri(this,1)};mw.prototype.setEventType=function(a){return Yn(this,1,a)};var ow=function(a,b){return Yn(a,2,b)},Zxc=function(a,b){return Yn(a,3,b)};h=mw.prototype;h.getErrorType=function(){return Ri(this,6)};h.setErrorType=function(a){return Yn(this,6,a)};h.hasErrorType=function(){return ym(this,6)};h.getIdType=function(){return Ri(this,8)};
h.setIdType=function(a){Yn(this,8,a)};h.getResultIndex=function(){return Wm(this,9)};h.setResultIndex=function(a){Wn(this,9,a)};h.getToken=function(){return Fi(this,10)};h.setToken=function(a){Gj(this,10,a)};h.hasToken=function(){return xm(this,10)};h.getCacheState=function(){return Y(this,m$,11)};h.setCacheState=function(a){return hj(this,m$,11,a)};h.hasCacheState=function(){return Si(this,m$,11)};h.getQueryLength=function(){return Wm(this,14)};h.setQueryLength=function(a){return Wn(this,14,a)};
h.hasQueryLength=function(){return Bn(this,14)};h.getItemCount=function(){return Wm(this,15)};h.setItemCount=function(a){return Wn(this,15,a)};h.hasItemCount=function(){return Bn(this,15)};h.getLookupInfo=function(){return Y(this,nw,16)};h.getMutableLookupInfo=function(){return cj(this,nw,16)};h.setLookupInfo=function(a){return hj(this,nw,16,a)};h.hasLookupInfo=function(){return Si(this,nw,16)};h.getQueryScope=function(){return Ri(this,17)};h.setQueryScope=function(a){return Yn(this,17,a)};
h.hasQueryScope=function(){return ym(this,17)};var ayc=new Map([[0,1],[1,2],[2,3],[3,4]]);var Bfe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Bfe,X);h=Bfe.prototype;h.getLabel=function(){return rw(this,1)};h.setLabel=function(a){return Yn(this,1,a)};h.hasLabel=function(){return ym(this,1)};h.getItemCount=function(){return qx(this,2)};h.setItemCount=function(a){return Wn(this,2,a)};h.hasItemCount=function(){return Bn(this,2)};h.getLookupInfo=function(){return Y(this,nw,3)};h.getMutableLookupInfo=function(){return cj(this,nw,3)};
h.setLookupInfo=function(a){return hj(this,nw,3,a)};h.hasLookupInfo=function(){return Si(this,nw,3)};h.getQueryLength=function(){return qx(this,4)};h.setQueryLength=function(a){return Wn(this,4,a)};h.hasQueryLength=function(){return Bn(this,4)};h.getQueryScope=function(){return Ri(this,5)};h.setQueryScope=function(a){return Yn(this,5,a)};h.hasQueryScope=function(){return ym(this,5)};var Cfe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Cfe,X);var Dfe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Dfe,X);h=Dfe.prototype;h.getLabel=function(){return rw(this,1)};h.setLabel=function(a){return Yn(this,1,a)};h.hasLabel=function(){return ym(this,1)};h.getStatus=function(){return rw(this,2)};h.setStatus=function(a){return Yn(this,2,a)};h.hasStatus=function(){return ym(this,2)};h.setLatencyUsec=function(a){Nn(this,3,a)};h.getResultIndex=function(){return qx(this,4)};h.setResultIndex=function(a){Wn(this,4,a)};
h.getDataSource=function(){return rw(this,7)};h.setDataSource=function(a){return Yn(this,7,a)};h.hasDataSource=function(){return ym(this,7)};h.getItemCount=function(){return qx(this,8)};h.setItemCount=function(a){return Wn(this,8,a)};h.hasItemCount=function(){return Bn(this,8)};h.getResources=function(){return Y(this,Cfe,9)};h.getLookupInfo=function(){return Y(this,nw,10)};h.getMutableLookupInfo=function(){return cj(this,nw,10)};h.setLookupInfo=function(a){return hj(this,nw,10,a)};
h.hasLookupInfo=function(){return Si(this,nw,10)};h.getStatusCode=function(){return Ri(this,11,2)};h.setStatusCode=function(a){Yn(this,11,a)};h.hasStatusCode=function(){return ym(this,11)};h.getQueryLength=function(){return qx(this,13)};h.setQueryLength=function(a){return Wn(this,13,a)};h.hasQueryLength=function(){return Bn(this,13)};h.getQueryScope=function(){return Ri(this,14)};h.setQueryScope=function(a){return Yn(this,14,a)};h.hasQueryScope=function(){return ym(this,14)};var Efe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Efe,X);h=Efe.prototype;h.getDataSource=function(){return rw(this,3)};h.setDataSource=function(a){return Yn(this,3,a)};h.hasDataSource=function(){return ym(this,3)};h.getType=function(){return rw(this,4)};h.setType=function(a){return Yn(this,4,a)};h.hasType=function(){return ym(this,4)};h.getValue=function(){return Hn(this,2,jb(1))};h.setValue=function(a){return Nn(this,2,a)};
h.hasValue=function(){return Gn(this,2)};h.getLabel=function(){return Ml(this,1)};h.setLabel=function(a){return Gj(this,1,a)};h.hasLabel=function(){return xm(this,1)};var Ffe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Ffe,X);h=Ffe.prototype;h.getStatusCode=function(){return Ri(this,5,2)};h.setStatusCode=function(a){Yn(this,5,a)};h.hasStatusCode=function(){return ym(this,5)};h.getLabel=function(){return Ml(this,1)};h.setLabel=function(a){return Gj(this,1,a)};h.hasLabel=function(){return xm(this,1)};h.setCause=function(a){Gj(this,2,a)};h.getType=function(){return rw(this,3)};h.setType=function(a){return Yn(this,3,a)};
h.hasType=function(){return ym(this,3)};var Gfe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Gfe,X);h=Gfe.prototype;h.getType=function(){return rw(this,3)};h.setType=function(a){return Yn(this,3,a)};h.hasType=function(){return ym(this,3)};h.setLatencyUsec=function(a){Nn(this,2,a)};h.getLabel=function(){return Ml(this,1)};h.setLabel=function(a){return Gj(this,1,a)};h.hasLabel=function(){return xm(this,1)};var Hfe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Hfe,X);Hfe.prototype.getLabel=function(){return rw(this,1)};Hfe.prototype.setLabel=function(a){return Yn(this,1,a)};Hfe.prototype.hasLabel=function(){return ym(this,1)};var Ife=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Ife,X);h=Ife.prototype;h.getLabel=function(){return rw(this,1)};h.setLabel=function(a){return Yn(this,1,a)};h.hasLabel=function(){return ym(this,1)};h.getStatus=function(){return rw(this,2)};h.setStatus=function(a){return Yn(this,2,a)};h.hasStatus=function(){return ym(this,2)};h.setLatencyUsec=function(a){Nn(this,3,a)};h.hasErrorCode=function(){return Gn(this,4)};h.getStatusCode=function(){return Ri(this,7,2)};
h.setStatusCode=function(a){Yn(this,7,a)};h.hasStatusCode=function(){return ym(this,7)};var mzc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(mzc,X);h=mzc.prototype;h.getClientInterface=function(){return Y(this,d$,1)};h.setClientInterface=function(a){return hj(this,d$,1,a)};h.getEventType=function(){return rw(this,3)};h.getEventType_legacyNullable=function(){return rw(this,3)};h.setEventType=function(a){return Yn(this,3,a)};h.getCount=function(){return Y(this,Efe,4)};h.getMutableCount=function(){return cj(this,Efe,4)};
h.setCount=function(a){return hj(this,Efe,4,a)};h.getMutableLatency=function(){return cj(this,Gfe,5)};h.setLatency=function(a){hj(this,Gfe,5,a)};h.getError=function(){return Y(this,Ffe,6)};h.setError=function(a){hj(this,Ffe,6,a)};h.hasError=function(){return Si(this,Ffe,6)};var Jfe=function(a,b,c,d,e){this.leanResponseProcessor_=a;this.grpcClient_=b;this.clientConfig_=c;e?a=$xc(e):(a=new mw,Zxc(a.setEventType(4),4));this.sourceInfo_=a;this.provenance_=e?2:1;this.trackers_=d;this.query_=e;this.affinity_=Cee(c.getPeopleApi());this.searchMaxResults_=c.getClient().getSearchMaxResults();d=c.getClient();this.cacheSize_=Wm(d,3,500);this.phoneCanonicalizationInference_=c.getPeopleApi().getPhoneCanonicalizationInferenceOrUndefined();var f;this.delegatorId_=(f=c.runtimeConfig_.delegatorId_)!=
null?f:""};Jfe.prototype.getMetric=function(){return Kfe(this.trackers_,this.sourceInfo_)};
Jfe.prototype.send=function(a){var b=new Ree;b.setAffinityType(this.affinity_).setQuery(this.query_).setClientInformation((new I$).setDevice(1));this.query_.length?b.setMaxResults(this.searchMaxResults_):b.setMaxResults(this.cacheSize_);this.phoneCanonicalizationInference_!=null&&b.setFormattingOptions((new H$).setPhoneCanonicalizationInference(this.phoneCanonicalizationInference_));this.delegatorId_&&b.setDelegation(Qee(Pee(),this.delegatorId_));return this.grpcClient_.autocomplete(b,a)};
Jfe.prototype.processResponse=function(a){var b=Afe(this.leanResponseProcessor_,a,this.provenance_),c=new Bw;Si(a,Tee,2)&&c.setAffinityVersion(Y(a,Tee,2).getAffinityVersion());return{data:b,metadata:c}};Jfe.prototype.close=function(){};var Lfe=function(a,b,c,d,e,f){this.leanResponseProcessor_=a;this.grpcClient_=b;this.clientConfig_=c;a=new mw;Zxc(a.setEventType(4),7).setIdType(e);this.sourceInfo_=a;this.provenance_=3;this.keys_=f;this.type_=e;this.trackers_=d;this.affinity_=Cee(c.getPeopleApi());this.phoneCanonicalizationInference_=c.getPeopleApi().getPhoneCanonicalizationInferenceOrUndefined();var g;this.delegatorId_=(g=c.runtimeConfig_.delegatorId_)!=null?g:""};Lfe.prototype.getMetric=function(){return Kfe(this.trackers_,this.sourceInfo_)};
Lfe.prototype.send=function(a){var b=this,c=new P$;c.setAffinityType(this.affinity_).setClientInformation((new I$).setDevice(1));lfe(c,this.keys_.map(function(d){return hyc(b.type_,d)}).filter(function(d){return!!d}));this.phoneCanonicalizationInference_!=null&&c.setFormattingOptions((new H$).setPhoneCanonicalizationInference(this.phoneCanonicalizationInference_));this.delegatorId_&&c.setDelegation(Qee(Pee(),this.delegatorId_));return this.grpcClient_.lookup(c,a)};
Lfe.prototype.processResponse=function(a){var b=this.leanResponseProcessor_,c=this.provenance_,d=new Map;a=l(Wi(a,mfe,1,Xi()));for(var e=a.next();!e.done;e=a.next()){var f=e.value;if(lj(f,O$,2,nfe))switch(e=zfe(b,lm(f,O$,2,nfe),c),f.getId().getIdCase()){case 1:d.set(f.getId().getEmail_legacyNullable(),e);break;case 2:d.set(f.getId().getPhone_legacyNullable(),e);break;case 3:d.set(f.getId().getProfileId_legacyNullable(),e);break;case 4:var g=d,k=g.set;f=f.getId();f=ww(f,4,qw);k.call(g,f,e);break;case 5:d.set(f.getId().getContactId(),
e)}}return{data:d,metadata:new Bw}};Lfe.prototype.close=function(){};var Mfe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Mfe,X);var Nfe=new xC(342338249,rBd,Mfe);var Ofe=function(){};Ofe.prototype.write=function(a,b){var c=new Mfe;b=hj(c,gfe,1,b);lw(a,Nfe,b)};Ofe.prototype.read=function(a){return(a=a.getExtension(Nfe))?Y(a,gfe,1):null};var Pfe=function(a,b,c){this.grpcClient_=a;this.clientConfig_=b;this.sourceInfo_=$xc("");this.trackers_=c;this.affinity_=Cee(b.getPeopleApi());var d;this.delegatorId_=(d=b.runtimeConfig_.delegatorId_)!=null?d:""};Pfe.prototype.getMetric=function(){return Kfe(this.trackers_,this.sourceInfo_)};
Pfe.prototype.send=function(a){var b=new qfe;b.setAffinityType(this.affinity_).setClientInformation((new I$).setDevice(1));this.delegatorId_&&b.setDelegation(Qee(Pee(),this.delegatorId_));var c=this.grpcClient_;return vD(c.client_,c.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Warmup",b,a||{},sfe)};Pfe.prototype.processResponse=function(){return{data:[],metadata:new Bw}};Pfe.prototype.close=function(){};var Qfe=new HKc;var R$=function(a,b,c){this.delegate_=a;this.runtimeConfig_=b;this.offlineResponse_=c};R$.prototype.send=function(a){var b=this;return y(function(c){return b.runtimeConfig_.isOffline_()?c.return(Qfe):c.return(b.delegate_.send(a))})};R$.prototype.getMetric=function(){return this.delegate_.getMetric()};R$.prototype.processResponse=function(a){return a===Qfe?this.offlineResponse_:this.delegate_.processResponse(a)};R$.prototype.close=function(a){this.delegate_.close(a)};
var Rfe={data:[],metadata:Q$(new Bw).setCode(14)},Sfe={data:new Map,metadata:Q$(new Bw).setCode(14)};Q$(new Bw).setCode(14);Q$(new Bw).setCode(14);Q$(new Bw).setCode(14);Q$(new Bw).setCode(14);Q$(new Bw).setCode(14);Q$(new Bw).setCode(14);var Tfe=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Tfe,X);h=Tfe.prototype;h.getTimestamp=function(){return Hn(this,1)};h.setTimestamp=function(a){return Nn(this,1,a)};h.hasTimestamp=function(){return Gn(this,1)};h.getOwner=function(){return Fi(this,2)};h.setOwner=function(a){return Gj(this,2,a)};var Ufe=new xC(342656659,rBd,Tfe);var Vfe=function(a,b,c,d,e){this.delegate_=a;this.offlineStorage_=b;this.offlineDataTransformer_=c;this.owner_=d;this.storageTaskDelayMillis_=e;this.offlineMetadata_=null};Vfe.prototype.store_=function(a,b){var c=new rBd;lw(c,Ufe,(new Tfe).setTimestamp(b).setOwner(String(this.owner_)));this.offlineDataTransformer_.write(c,a);this.offlineStorage_.store(c)};
var Wfe=function(a){var b,c;return y(function(d){if(d.nextAddress==1)return Vd(d,2),z(d,a.offlineStorage_.fetch(),4);if(d.nextAddress!=2){b=d.yieldResult;if(!b)return d.return(null);a.offlineMetadata_=b.getExtension(Ufe);c=a.offlineMetadata_?Wv(a.offlineMetadata_.getOwner()):hw;return a.owner_.equals(c)?d.return(a.offlineDataTransformer_.read(b)):d.return(null)}Zd(d);return d.return(null)})};
Vfe.prototype.send=function(a){var b=this,c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:return Vd(k,2),z(k,b.delegate_.send(a),4);case 4:c=k.yieldResult;d=Date.now();if(c!==Qfe){k.jumpTo(5);break}return z(k,Wfe(b),6);case 6:return e=k.yieldResult,k.return(e||Qfe);case 5:return setTimeout(function(){b.store_(c,d)},b.storageTaskDelayMillis_),k.return(c);case 2:return f=Zd(k),z(k,Wfe(b),7);case 7:return(g=k.yieldResult)?k.return(g):k.return(Promise.reject(f))}})};
Vfe.prototype.getMetric=function(){return this.delegate_.getMetric()};Vfe.prototype.processResponse=function(a){a=this.delegate_.processResponse(a);if(!a||!this.offlineMetadata_||!this.offlineMetadata_.hasTimestamp())return a;a.metadata.setTimestamp(qn(this.offlineMetadata_.getTimestamp()));return a};Vfe.prototype.close=function(a){this.delegate_.close(a)};var Xfe=function(a,b){this.config_=a;this.trackers_=b;b=this.config_;var c;(c=b.runtimeConfig_.getApiKey())||(b.runtimeConfig_.getPeopleApiEnv()===7?(b=b.getGapi(),b=Fi(b,2)):b=b.getGapi().getApiKey(),c=b);b={apiKey:c,timeoutSec:a.getClient().getRpcTimeoutSec(),authErrorHandler:a.runtimeConfig_.getAuthErrorHandler(),customAuthHeaders:a.runtimeConfig_.customAuthHeaders_};this.dispatcher_=new nbe(b);b=huc("peoplestack-pa",a.runtimeConfig_.getPeopleApiEnv());this.grpcPeopleStackClient_=new tfe(b);this.offlineDataTransformer_=
new Ofe;a=a.getClient();a=$i(a,22);this.leanResponseProcessor_=new vfe({allowEmptyTargets:a})};
Xfe.prototype.loadRankedItems=function(){var a=new Jfe(this.leanResponseProcessor_,this.grpcPeopleStackClient_,this.config_,this.trackers_,"");a=new R$(a,this.config_.runtimeConfig_,Rfe);var b=this.config_,c=this.offlineDataTransformer_,d=b.runtimeConfig_.offlineStorage_;if(d){var e=b.runtimeConfig_.getUserEmail();e&&(e=bw(e),b=b.getPeopleApi(),b=Wm(b,14,5E3),a=new Vfe(a,d,c,e,b))}return pbe(this.dispatcher_,a)};
Xfe.prototype.warmUpServer=function(){var a=new Pfe(this.grpcPeopleStackClient_,this.config_,this.trackers_);a=new R$(a,this.config_.runtimeConfig_,Rfe);return pbe(this.dispatcher_,a)};Xfe.prototype.loadAutocompleteItems=function(a){var b=this.leanResponseProcessor_;var c=this.grpcPeopleStackClient_,d=this.config_,e=this.trackers_;a=a.getPrefix();b=new Jfe(b,c,d,e,a);b=new R$(b,this.config_.runtimeConfig_,Rfe);return pbe(this.dispatcher_,b)};
Xfe.prototype.loadLookupItems=function(a,b){a=new Lfe(this.leanResponseProcessor_,this.grpcPeopleStackClient_,this.config_,this.trackers_,a,b);a=new R$(a,this.config_.runtimeConfig_,Sfe);return pbe(this.dispatcher_,a)};var Yfe=function(a,b){this.isOrgStateEnabled_=a.runtimeConfig_.isOrgStateEnabled_;this.delegate_=b};Yfe.prototype.processItem=function(a){this.delegate_.processItem(a);a=a.target;this.isOrgStateEnabled_||a.setOrgState(0)};var jyc=new Map([[1,1],[2,2]]);var Zfe=function(a,b,c){this.encryptionSupport_=a;this.certificateStatus_=b;this.certificateExpirySec_=c};Zfe.prototype.getEncryptionSupport=function(){return this.encryptionSupport_};Zfe.prototype.getCertificateStatus=function(){return this.certificateStatus_};Zfe.prototype.getCertificateExpirySec=function(){return this.certificateExpirySec_};var Lzc=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 Zfe(a===4?c?4:3:c?2:1,a,b)};var Mzc=function(a,b){this.reachabilityStatus=a;this.clientData=b};Mzc.prototype.getReachabilityStatus=function(){return this.reachabilityStatus};Mzc.prototype.getClientData=function(){return this.clientData};var Jw=function(){this.iconUrl_=this.altText_=""};Jw.prototype.getAltText=function(){return this.altText_};Jw.prototype.setAltText=function(a){this.altText_=a||"";return this};Jw.prototype.getIconUrl=function(){return this.iconUrl_};Jw.prototype.setIconUrl=function(a){this.iconUrl_=a||"";return this};var nyc=new Map([[3,3],[1,2],[2,1]]),$fe=new Map([[2,1],[4,2],[3,3],[1,4]]),age=function(a){this.delegate_=a};
age.prototype.processItem=function(a){if(a.person||a.contactMethod){switch(a.contactMethod.getValueCase()){case 2:var b=a.contactMethod.getEmail();var c=sw(b.getValue()),d=a.id.normalizedValue_;c=uw(a.id).setValue(c).setCanonicalValue(d);if(Wi(b,L$,2,Xi()).length||Si(b,Xee,3)){d=1;var e=0;if(Wi(b,L$,2,Xi()).length){var f=Wi(b,L$,2,Xi())[0],g=Cw(f,1);e=(g==null?null:qn(g))||e;d=$fe.get(f.getStatus())||d}if(f=Si(b,Xee,3))f=Y(b,Xee,3),f=!!jw(f,1);d=Lzc(d,e,f)}else d=null;d&&c.setEmailSecurityInfo(d);
Si(b,Yee,4)&&(b=kyc(Y(b,Yee,4)),c.setOrgState(b));jw(a.contactMethod,7)&&c.setResultType(2);b=c;break;case 3:c=a.contactMethod.getPhone();b=sw(c.getCanonicalValue());c=sw(c.getOriginalValue())||sw(c.getDisplayValue())||b;b=uw(a.id).setValue(c).setCanonicalValue(b);break;case 4:b=lm(a.contactMethod,Fxc,4,cw);b=qyc(a,b);break;default:b=uw(a.id||hw)}b.setDataSource(a.dataSource||0);a.containerIds&&(b.sourceIds_=a.containerIds||[]);b.setIsMe(!!a.isMe);a.person&&a.person.hasAffinity()&&(c=b,d=c.setPersonLoggingId,
e=a.person.getAffinity(),e=hva(um(e,1,void 0,tw,oc)),d.call(c,ra.atob(e||"")));a.contactMethod.hasDisplayInfo()&&oyc(b,a.contactMethod.getDisplayInfo());xm(a.contactMethod,10)&&b.setTagList([(new Jw).setAltText(a.contactMethod.getTypeLabel())]);if(Si(a.contactMethod,afe,13)){d=Y(a.contactMethod,afe,13);switch(d.getStatus()){case 1:c=1;break;default:c=0}d=d.hasClientData()?d.getClientData():void 0;b.setReachabilityInfo(new Mzc(c,d))}a.targetExtendedData&&b.setExtendedData(a.targetExtendedData);a.target=
b}else a.group?tyc(a,a.group.getDisplayInfo()):a.contactLabel&&tyc(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 bge=function(a,b){this.metrics_=a;this.state_=new $9(b);this.source=b;this.label_="total"};bge.prototype.call=function(){this.metrics_.count(this.state_);this.metrics_.start(this.state_,this.label_)};bge.prototype.result=function(a){this.metrics_.stop(this.state_,this.label_);this.metrics_.status(this.state_,a)};var cge=function(a,b){this.metrics_=a;this.state_=new $9(b)};h=cge.prototype;h.start=function(a){this.metrics_.start(this.state_,a)};h.stop=function(a){this.metrics_.stop(this.state_,a)};h.count=function(){this.metrics_.count(this.state_)};h.latency=function(){this.metrics_.latency(this.state_)};h.error=function(){this.metrics_.error(this.state_)};
h.status=function(a,b,c){b=b===void 0?0:b;c=c===void 0?0:c;if(b){var d=this.state_.source();Yn(d,13,b)}c&&(b=this.state_.source(),Wn(b,12,c));this.metrics_.status(this.state_,a)};h.logError=function(a,b){this.metrics_.logError(a,b)};var dge=function(a){this.getSessionState=a};dge.prototype.attach=function(a,b){var c,d;b=(new Dw).setSessionState((d=b==null?void 0:(c=Y(b,Dw,18))==null?void 0:c.getSessionState())!=null?d:this.getSessionState().clone());hj(a,Dw,18,b);return a};var ege=function(){};ege.prototype.attach=function(a){return a};var fge=new ege;var gge=function(a,b){b=b===void 0?fge:b;this.metrics_=a;this.sessioninfo_=b};gge.prototype.error=function(a,b,c){var d=this.metrics_,e=this.sessioninfo_,f=e.attach,g=new mw;a=g.setEventType(3).setErrorType(a);Yn(a,7,b);return new mde(d,f.call(e,g,c))};gge.prototype.latency=function(a,b){var c=this.metrics_,d=this.sessioninfo_,e=d.attach,f=new mw,g=f.setEventType(2);Yn(g,5,a);return new Mbe(c,e.call(d,f,b))};
gge.prototype.count=function(a){var b=this.metrics_,c=this.sessioninfo_,d=c.attach,e=new mw,f=e.setEventType(1);Yn(f,4,a);return new lde(b,d.call(c,e))};gge.prototype.api=function(a){return new bge(this.metrics_,this.sessioninfo_.attach(a))};var Kfe=function(a,b){return new cge(a.metrics_,a.sessioninfo_.attach(b))},hge=function(a,b){return new gge(a.metrics_,b)};var ige=function(a,b){var c=a.getClient();this.ranker_=new Mee(c);this.loader_=new Xfe(a,b);b=Lee;b=b===void 0?Lee:b;this.targetFactory_=new Yfe(a,new age(b))};var jge=function(){this.cacheConfigurators_=[];this.grpcClient_=null};var kge=function(){this.bits_=[]};h=kge.prototype;h.and=function(a){for(var b=new kge,c=l(this),d=c.next();!d.done;d=c.next())d=d.value,a.bits_[d]&&(b.bits_[d]=!0);return b};h.or=function(a){for(var b=new kge,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};h.get=function(a){return!!this.bits_[a]};h.set=function(a){this.bits_[a]=!0};h.setAll=function(a,b){var c=a;for(a+=b;c<a;c++)this.bits_[c]=!0};
h.clear=function(a){this.bits_[a]=!1};h.clearAll=function(a,b){var c=a;for(a+=b;c<a;c++)this.bits_[c]=!1};kge.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 lge=function(a,b){this.key=a;this.terms=b};var S$=function(a,b,c){b=b===void 0?"":b;c=c===void 0?new kge:c;this.items_=a;this.prefix_=b;this.matchIndices_=c;this.childNodes_={};this.isExpanded_=b==="\u2026"},mge=function(a){return a.items_.map(function(b){return b.key})};S$.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 S$(b)};
var T$=function(a,b){for(var c=[],d=l(a.prefix_?a.matchIndices_:wyc(a.items_.length)),e=d.next();!e.done&&(e=b.loadOrSkip(a.items_[e.value].key),e==null||(c.push(e),!b.isDone()));e=d.next());return c};
S$.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),g=d;if(!g.isExpanded_){for(var k=l(g.prefix_?g.matchIndices_:wyc(g.items_.length)),m=k.next();!m.done;m=k.next()){var r=g;m=m.value;for(var w=r.prefix_+"\ufdc7",x=l(r.items_[m].terms),D=x.next();!D.done;D=x.next())D=D.value,D.length<=r.prefix_.length||D<r.prefix_||D>w||(D=D.charAt(r.prefix_.length),r.childNodes_[D]||(r.childNodes_[D]=new S$(r.items_,r.prefix_+D)),r.childNodes_[D].matchIndices_.set(m))}g.isExpanded_=
!0}d=d.childNodes_[f]||U$;if(d===U$)break}return d}).reduce(function(c,d){return c.and(d)}):this};var nge=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_&&nge(c)};S$.prototype.and=function(a){a=this.matchIndices_.and(a.matchIndices_);return new S$(this.items_,"\u2026",a)};S$.prototype.or=function(a){a=this.matchIndices_.or(a.matchIndices_);return new S$(this.items_,"\u2026",a)};var U$=new S$([]);
U$.isExpanded_=!0;var oge=function(a,b,c){this.expiry_=a;this.value_=b;this.stale_=c};oge.prototype.getExpiry=function(){return this.expiry_};oge.prototype.getValue=function(){return this.value_};oge.prototype.isExpired=function(){return this.expiry_<Date.now()};oge.prototype.isStale=function(){return this.stale_<Date.now()};var pge=function(a){this.shouldEvictItem_=a;this.items_=new Map};h=pge.prototype;h.size=function(){return this.items_.size};h.clear=function(){this.items_.clear()};h.has=function(a){return this.items_.has(a)};h.get=function(a){var b=this.items_.get(a);this.items_.has(a)&&(this.items_.delete(a),this.items_.set(a,b));return b};
h.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};h.delete=function(a){return this.items_.delete(a)};h.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 qge=function(){var a=new pge(function(){return a.size()>1E3});return a};var rge=function(a,b){var c=this;this.capacity_=a;this.itemFactory_=b;this.delegate_=new pge(function(d,e){return e.isExpired()||c.delegate_.size()>c.capacity_})};h=rge.prototype;h.get=function(a){var b=this.delegate_.get(a);if(b)if(b.isExpired())this.delegate_.delete(a);else return b.getValue()};h.set=function(a,b){b=this.itemFactory_(b);this.delegate_.set(a,b);return this};h.has=function(a){return!!this.get(a)};h.size=function(){return this.delegate_.size()};h.clear=function(){this.delegate_.clear()};
h.delete=function(a){return this.delegate_.delete(a)};h.compact=function(){return this.delegate_.compact()};var sge=function(a,b){return new rge(a,function(c){var d=Date.now()+b;return new oge(d,c,d)})};var xyc=function(a){this.delegate_=a};Z(xyc,dV);xyc.prototype.getIsBoosted=function(){return!0};var tge=function(a){this.keys_=new Set(a)};tge.prototype.loadOrSkip=function(a){return this.keys_.delete(a)?a:null};tge.prototype.isDone=function(){return!this.keys_.size};var uge=function(a){this.keys_=a;this.foundKeys_=new Set;this.delegate_=new tge(a)};uge.prototype.loadOrSkip=function(a){return this.delegate_.loadOrSkip(a)?(this.foundKeys_.add(a),!0):!1};uge.prototype.isDone=function(){return this.delegate_.isDone()};var vge=function(a){return a.keys_.filter(function(b){return!a.foundKeys_.has(b)})};var wge=new Iw,xge=function(a,b,c){this.itemResolver_=a;this.trieFactory_=b;this.indexes_=sge(Wm(c,31,5),tm(c,32,3600)*1E3)};h=xge.prototype;h.getCacheType=function(){return 2};h.flush=function(){this.indexes_.clear()};
h.fetch=function(a){var b=this,c,d,e,f;return y(function(g){if(g.nextAddress==1){c=a.getBoostKey();if(!c.cacheKey||b.indexes_.get(c.cacheKey))return g.return(wge);d=c.ids.map(function(k){var m=Wv(k);return SAd.includes(m.getType())?k:(m=yge(b.itemResolver_,k))?String(m.id):k});e=new uge(d);return z(g,zge(b.trieFactory_,e,a.getFormat(),c.primingTimeoutMillis),2)}f=g.yieldResult;b.indexes_.set(c.cacheKey,f);return g.return(wge)})};
h.search=function(a){var b=a.getBoostKey();if(!b.cacheKey)return[];this.indexes_.has(b.cacheKey)||this.fetch(a);return T$((this.indexes_.get(b.cacheKey)||U$).search(a.getTerms()),a.getCollector()).map(yyc)};h.index=function(){};h.getName=function(){};var Age=function(a,b,c){this.indexLatency_=a;this.searchLatency_=b;this.errorType_=c};Age.prototype.getErrorType=function(){return this.errorType_};var V$=function(a,b,c){this.delegate_=a;this.trackers_=b;this.indexingLabel_=c.indexLatency_;this.searchLabel_=c.searchLatency_;this.errorLabel_=c.getErrorType()};h=V$.prototype;h.getCacheType=function(){return this.delegate_.getCacheType()};h.flush=function(){try{this.delegate_.flush()}catch(a){throw this.trackers_.error(this.errorLabel_,15).report(),a;}};h.fetch=function(a){try{return this.delegate_.fetch(a)}catch(b){throw this.trackers_.error(this.errorLabel_,14).report(),b;}};
h.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()}};h.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()}};h.getName=function(){return this.delegate_.getName()};var Bge=new Age(60,61,34);var Cge=function(){};Cge.prototype.configure=function(a){var b=a.storage,c=a.trackers,d=a.trieFactory,e=a.prefixCaches;a=a.clientConfig.getClient();$i(a,30)&&(b=new xge(b,d,a),c=new V$(b,c,Bge),e.unshift(c))};var Dge=function(){return Date.now()},Ege=function(a,b,c){this.staleMillis_=a*1E3;this.expiredMillis_=b*1E3;this.nowFn_=c;this.timestamp_=0};h=Ege.prototype;h.isStale=function(){return this.timestamp_+this.staleMillis_<=this.nowFn_()};h.isExpired=function(){return this.timestamp_+this.expiredMillis_<=this.nowFn_()};h.getStatus=function(){return this.isExpired()?1:this.isStale()?3:2};h.getTimestamp=function(){return this.timestamp_};h.setTimestamp=function(a){this.timestamp_=a};
h.markAsFresh=function(){this.timestamp_=this.nowFn_()};var Ayc=new Map([[1,1],[2,2],[3,3],[8,6],[6,7],[7,5],[4,4],[9,9]]),zyc=new Map([[1,7],[2,5]]);var Fge=function(a,b){this.delegate_=a;this.extendedData_=b};Z(Fge,dV);Fge.prototype.getExtendedData=function(){return this.extendedData_};var Gge=function(a,b,c){this.group_=a;this.members_=b;this.totalMemberCount_=TAd(this.group_.getId())?this.members_.length:c;this.resultType_=fce.get(this.group_.getTargetType())||0};h=Gge.prototype;h.getResultType=function(){return this.resultType_};h.getTargetList=function(){return[this.group_]};h.getMemberList=function(){return this.members_};h.getTotalMemberCount=function(){return this.totalMemberCount_};h.getPrimaryTarget=function(){throw Error("$g");};h.getDisplayName=function(){return""};
h.getDisplayValue=function(){return""};h.getDescription=function(){return""};h.getPhotoUrl=function(){return""};h.getIsBoosted=function(){return!1};h.getMatchInfo=function(){return ece};h.getExtendedData=function(){return null};var Cyc=function(a,b){this.delegate_=a;this.loggingToken_=b};Z(Cyc,aBd);Cyc.prototype.getLoggingToken=function(){return this.loggingToken_};var Hge=function(a){this.itemResolver_=a};Hge.prototype.create=function(a,b){var c=this,d=Wv(a);a=yge(this.itemResolver_,a);if(!a)return null;if(aw(d))return d=(a.memberKeys||[]).map(function(g){return c.create(g,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(g){return yge(c.itemResolver_,g)}).filter(Boolean):[a];return Ige(f,d,b)};
var Ige=function(a,b,c){var d=[],e=0,f=null,g=null;a=l(a);for(var k=a.next();!k.done;k=a.next()){k=k.value;var m=k.target,r=m.getId().equals(b);if(!e||r)e=m.getResultType();m=Dyc(m,k.provenance,c);r?(g=void 0,f=(g=k.totalMemberCount)!=null?g:null,d.unshift(m),g=k.resultExtendedData):d.push(m)}b=Ruc(e,d,f);return g?new Fge(b,g):b};
Hge.prototype.createGroup=function(a,b,c){c=Dyc(a.target,a.provenance,c);var d,e=(d=a.totalMemberCount)!=null?d:null;b=ys(new Gge(c,b!=null?b:[],e!=null?e:null));return(a=a.resultExtendedData)?new Fge(b,a):b};var Eyc=[1,2,3,4,5,6,9,7,8],Jge=function(a,b){this.targetFactory_=a;this.resultFactory_=new Hge(this);a=b.getCacheStaleSec();var c=b.getCacheExpiredSec();var d=d===void 0?Dge:d;this.expiry_=new Ege(a,c,d);this.affinityVersion_=0;this.ttlStorage_=new Map;this.lruStorage_=sge(Wm(b,6,500),Wm(b,7,43200)*1E3);d=Set;b=On(b,25,Xi());this.idTypes_=new d(b)};Jge.prototype.load=function(a,b){var c;return(c=this.resultFactory_.create(a,b))!=null?c:null};
var yge=function(a,b){return a.ttlStorage_.get(b)||a.lruStorage_.get(b)||null};h=Jge.prototype;h.getExpiry=function(){return this.expiry_};h.getAffinityVersion=function(){return this.affinityVersion_};h.markAsFresh=function(a){this.affinityVersion_=a.getAffinityVersion();a.hasTimestamp()?this.expiry_.setTimestamp(qn(a.getTimestamp())):this.expiry_.markAsFresh();this.lruStorage_.compact()};
h.flush=function(){this.ttlStorage_.clear();this.lruStorage_.clear();this.affinityVersion_=0;this.expiry_.timestamp_=0};h.storeItems=function(a,b,c,d){c=c===void 0?!1:c;if(d=d===void 0?"":d){var e=b.findIndex(function(g){return String(g.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)};
h.store_=function(a,b,c,d){if(!this.idTypes_.size||!SAd.includes(b.id.getType())||this.idTypes_.has(b.id.getType())){var e=!1,f=String(b.id),g=(b.containerIds||[]).map(String),k=Kge(this,a,f);Lge(this,a,f,b,c)&&(k(f,b),e=!0);g=l(g);for(var m=g.next();!m.done;m=g.next())m=m.value,Lge(this,a,m,b,c)&&(k(m,b),e=!0);b.isMe&&(g=String(WAd),Lge(this,a,g,b,c)&&(k(g,b),e=!0));d&&f!==d&&Lge(this,a,d,b,c)&&(k(d,b),e=!0);e&&!b.target&&this.targetFactory_.processItem(b)}};
var Lge=function(a,b,c,d,e){var f=yge(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)?Gyc(d)&&!Gyc(f)||Mge(a,f)<Mge(a,d)||Fyc(d)<Fyc(f)||d.id.getType()===18&&f.id.getType()===18||Hyc(d)>Hyc(f)?!0:!1:String(d.id)===c},Mge=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},Kge=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 Nge=new Iw,Oge=function(a){this.trieFactory=a;this.root=U$};h=Oge.prototype;h.getCacheType=function(){return 2};h.flush=function(){this.root=U$};h.fetch=function(){var a=this;return y(function(b){if(a.root!==U$)return b.return(Nge);var c=a.trieFactory,d,e,f=(e=(d=c.trieRoots_.get(1))==null?void 0:mge(d))!=null?e:[];c=Pge(c,f,!0);a.root=new S$(c);return b.return(Nge)})};h.index=function(){};
h.search=function(a){if(a.isSuggestQuery())return[];this.root===U$&&this.fetch(a);return T$(this.root.search(a.getTerms()),a.getCollector()).map(yyc)};h.getName=function(){};var Qge=new Age(60,61,34);var Rge=function(){};Rge.prototype.configure=function(a){var b=a.trackers,c=a.trieFactory,d=a.prefixCaches;if(a=a.clientConfig.getClient().getEnablePersonalizedQueryMatching())Ew?(a=Ew.getExperimentFlags(),a=Y(a,Jae,104)||new Jae):a=new Jae,a=a.getEnablePersonalizedQueryMatching();a&&(b=new V$(new Oge(c),b,Qge),d.unshift(b))};var Iyc=function(a,b){this.delegate_=a;this.displayValue_=b};Z(Iyc,aBd);Iyc.prototype.getDisplayValue=function(){return this.displayValue_};var Kyc=function(){};Kyc.prototype.createFromLookupId=function(a){if(a.getType()!==1||!LAd(a.getOriginalValue()))return null;a=uw(a).setValue(a.getOriginalValue()).setDataSource(3);return Ruc(a.getResultType(),[a],null)};var Sge=function(){};Sge.prototype.createFromLookupId=function(){return null};var Lyc=new Sge;var Tge=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=Myc(e.getClient())};h=Tge.prototype;h.isCancelled=function(){return!1};h.getFormat=function(){return this.format};h.getOptions=function(){return this.options};h.queryScope=function(){return this.options.getQueryScope()};
h.getResultFilter=function(){return this.options.getFilter()};h.isDone=function(){return this.remainingIds.size===0};var Uge=function(a){return Array.from(a.remainingIds.values())};Tge.prototype.hasError=function(){return this.hasErrorCode};
Tge.prototype.notify=function(a,b,c){if(a.size||b.length||this.isDone()||Nyc(c.getCode())){var d=new Map,e=this.getResultFilter();a=l(a);for(var f=a.next();!f.done;f=a.next()){var g=l(f.value);f=g.next().value;g=g.next().value;this.notNotifiedIds.delete(String(f));(g=e?e.filterResult(g):g)&&g.getTargetList().length&&(d.set(f,g),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)),(g=this.placeholderFactory.createFromLookupId(f))&&
e&&(g=e.filterResult(g)),g&&g.getTargetList().length?d.set(f,g):a.push(f);d=Jyc(d,this.options);Nyc(c.getCode())&&(this.hasErrorCode=!0);e=(new wde).setCallbackNumber(this.callbackNumber).setIsFirstCallback(this.callbackNumber===0).setIsLastCallback(this.isDone()).setCode(c.getCode());e.notFoundIdList_=a;d=new xde(d,e);this.callbackNumber++;this.listener(d,c)}};var Vge=function(a,b,c){this.stages=a;this.indexer=b;this.clientConfig=c};Vge.prototype.flush=function(){this.indexer.flush()};
Vge.prototype.lookup=function(a,b,c,d){var e=this,f,g,k,m,r,w;return y(function(x){switch(x.nextAddress){case 1:(f=d.getFilter())==null||f.reset(""),g=new Tge(a,b,c,d,e.clientConfig),k=new Set,g.queryScope()!==1&&g.queryScope()!==2||k.add(2),g.queryScope()===3&&k.add(1),m=l(e.stages),r=m.next();case 2:if(r.done){x.jumpTo(4);break}w=r.value;if(g.isDone()||g.isCancelled()){x.jumpTo(4);break}if(k.has(w.getStageType())){x.jumpTo(3);break}return z(x,w.lookup(g),3);case 3:r=m.next();x.jumpTo(2);break;case 4:if(!g.isDone()){if(g.queryScope()===
0&&!g.hasError()){var D=e.indexer,H=Array.from(g.notNotifiedIds.values());H=l(H);for(var J=H.next();!J.done;J=H.next())J=String(J.value),D.notFoundIds.set(J,J)}g.notify(new Map,Uge(g),l$((new Iw).setProvenance(10),!1).setCode(0))}e.indexer.compact();return x.return()}})};var Wge=function(a,b){this.storage=a;a=b.getClient();this.notFoundIds=sge(Wm(a,10,500),tm(a,11,600)*1E3)};h=Wge.prototype;h.compact=function(){this.notFoundIds.compact()};h.flush=function(){this.notFoundIds.clear()};h.store=function(a,b,c,d){if(!$i(c,5))for(Q$(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(Gzc(a,String(c)));this.storeItems(e,d,c)}};h.storeItems=function(a,b,c){this.storage.storeItems(2,a,b,c)};
h.load=function(a,b,c){b=this.storage.load(String(a),b);c&&b&&(b=Lgb(a).filterResult(b));return b};var Xge={ids:[],cacheKey:"",primingTimeoutMillis:0};var Yge=function(){};Yge.prototype.loadOrSkip=function(){return null};Yge.prototype.resultCount=function(){return 0};Yge.prototype.isDone=function(){return!0};var Zge=new Yge;var $ge=function(){this.prefix_="";this.terms_=[];this.format_=0;this.collector_=Zge;this.boostKey_=Xge;this.listener_=function(){}};h=$ge.prototype;h.getPrefix=function(){return this.prefix_};h.getTerms=function(){return this.terms_};h.getFormat=function(){return this.format_};h.getCollector=function(){return this.collector_};h.getBoostKey=function(){return this.boostKey_};h.getListener=function(){return this.listener_};h.isDone=function(){return!0};h.isCancelled=function(){return!0};
h.isSuggestQuery=function(){return!0};h.isEmailAddress=function(){return!1};h.queryScope=function(){return 0};h.getResultFilter=function(){return null};h.shouldSkipCache=function(){return!1};var ahe=new $ge;var bhe=function(){this.fetchDone_=Promise.resolve((new Iw).setCode(0))};h=bhe.prototype;h.getCacheType=function(){return 0};h.flush=function(){};h.fetch=function(){return this.fetchDone_};h.index=function(){};h.search=function(){return[]};h.getName=function(){};var che=new bhe;var dhe=function(a){a=Array.from(new Set(a));this.primary_=a.find(function(b){return b.getCacheType()===1})||che;this.prefetched_=a.filter(function(b){return b.getCacheType()===2||b.getCacheType()===1});this.lazyLoaded_=a.filter(function(b){return b.getCacheType()===3})};
dhe.prototype.prefetch=function(a){var b=this,c,d,e,f,g;return y(function(k){if(k.nextAddress==1)return z(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();g=b.prefetched_.filter(function(m){return m!==b.primary_}).map(function(m){m.flush();return m.fetch(a)});return g.length?z(k,Promise.all(g),3):k.jumpTo(3)}return k.return(c)})};
dhe.prototype.warmUpSession=function(a){var b=this;if(a.queryScope()===1)return Promise.resolve([(new Iw).setProvenance(2).setCode(1)]);var c=this.prefetched_.filter(function(d){return d!==b.primary_});a.queryScope()!==2&&c.push.apply(c,n(this.lazyLoaded_));return Promise.all(c.map(function(d){return d.fetch(a)}))};
var ehe=function(a){var b=[a.primary_].concat(n(a.prefetched_.filter(function(d){return d!==a.primary_})),n(a.lazyLoaded_)).reverse();b=l(b);for(var c=b.next();!c.done;c=b.next())c.value.flush()},fhe=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,n(d.search(b)))}return c},hhe=function(a,b,c){var d,e,f,g,k;return y(function(m){if(m.nextAddress==1){if(b.queryScope()===2)return m.return();
d=a.lazyLoaded_.filter(function(r){return!b.shouldSkipCache(r.getName())});e=d[d.length-1];f=l(d);g=f.next()}if(m.nextAddress!=3){if(g.done)return m.jumpTo(0);k=g.value;return b.isDone()||b.isCancelled()?m.return():z(m,ghe(k,b,c,e===k),3)}g=f.next();return m.jumpTo(2)})},ghe=function(a,b,c,d){var e,f;return y(function(g){if(g.nextAddress==1)return b.queryScope()===1?(e=l$((new Iw).setProvenance(6).setCode(0),!1),g.jumpTo(2)):z(g,a.fetch(b),3);g.nextAddress!=2&&(e=g.yieldResult);if(b.isCancelled())return g.return();
f=a.search(b);c(f,e,d);$d(g)})};var ihe=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};h=ihe.prototype;h.getLastUpdatedTimestamp=function(){return this.storage_.getExpiry().getTimestamp()};h.getAffinityVersion=function(){return this.storage_.getAffinityVersion()};
h.warmUpCache=function(a){jhe(this,ahe);return this.cacheWarming_&&(a||this.storage_.getExpiry().isExpired())?this.cacheWarming_:Promise.resolve(o$(n$((new m$).setSource(l$(new Iw,!1).setProvenance(1).setCode(0)),W$(this)),W$(this)))};
h.warmUpSession=function(a){var b=this,c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:c=n$(new m$,W$(b));jhe(b,a);if(!b.cacheWarming_){k.jumpTo(2);break}return z(k,b.cacheWarming_,2);case 2:return Vd(k,4,5),b.sessionWarming_||(b.sessionWarming_=b.prefixSearch_.warmUpSession(a)),z(k,b.sessionWarming_,7);case 7:return d=k.yieldResult,e=d.find(function(m){return m.getProvenance()===2})||(new Iw).setProvenance(2).setCode(0),k.return(o$(c.setSource(e),W$(b)));case 5:Wd(k);b.sessionWarming_=
null;Yd(k,0);break;case 4:return f=Zd(k),g=f instanceof Iw?f:(new Iw).setProvenance(2).setCode(13),k.return(Promise.reject(o$(c.setSource(g),W$(b))))}})};
h.search=function(a){var b=this,c,d,e,f,g;return y(function(k){switch(k.nextAddress){case 1:khe(b);Vd(k,2);d=W$(b);jhe(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 z(k,b.cacheWarming_,7);case 7:c=k.yieldResult;case 5:if(!b.sessionWarming_){k.jumpTo(4);break}return z(k,b.sessionWarming_,4);case 4:return c||(c=o$(n$((new m$).setSource(l$(new Iw,!1).setProvenance(1).setCode(0)),d),W$(b)),jhe(b,
a)),z(k,lhe(b,a,c),10);case 10:bk(k,0);break;case 2:f=Zd(k);if(a.isCancelled())return k.return();f instanceof m$?c=f:(g=f instanceof Iw?f:(new Iw).setCode(13),o$(c.setSource(g),W$(b)));a.getListener()(new t$([],(new Mce).setQuery(a.getPrefix()).setIsLastCallback(!0).setCacheState(c).setCode(c.getSource().getCode())));$d(k)}})};
var lhe=function(a,b,c){var d,e,f,g;return y(function(k){if(k.nextAddress==1){if(b.isCancelled())return k.return();d=fhe(a.prefixSearch_,b);e=(new Mce).setIsLastCallback(b.isSuggestQuery()).setQuery(b.getPrefix()).setCode(c.getSource().getCode()).setCacheState(c);b.getListener()(new t$(d,e));if(e.getIsLastCallback())return k.return();f=!1;return z(k,hhe(a.prefixSearch_,b,function(m,r,w){r=(new Mce).setIsLastCallback(w).setQuery(b.getPrefix()).setCode(r.getCode()).setCacheState(o$(n$((new m$).setSource(r),
Op(c,2)),W$(a)));b.getListener()(new t$(m,r));r.getIsLastCallback()&&(f=!0)}),2)}f||b.isCancelled()||(g=(new Mce).setIsLastCallback(!0).setQuery(b.getPrefix()).setCode(0).setCacheState(o$(n$((new m$).setSource((new Iw).setProvenance(10).setCode(0)),Op(c,2)),W$(a))),b.getListener()(new t$([],g)));$d(k)})};
ihe.prototype.lookup=function(a,b,c){var d=this;khe(this);jhe(this,ahe);var e=n$(new m$,W$(this));this.lookupCache_.lookup(a,Ri(this.clientInfo_,17,1),function(f,g){e.setSource(g);o$(e,W$(d));f.getMetadata().setCacheState(e);b(f)},c)};
var jhe=function(a,b){if(a.storage_.getExpiry().isStale()&&(a.storage_.getExpiry().isExpired()&&a.storage_.getExpiry().getTimestamp()&&mhe(a),!a.cacheWarming_)){var c=W$(a);a.cacheWarming_=new Promise(function(d,e){var f,g,k,m;return y(function(r){switch(r.nextAddress){case 1:return f=n$(new m$,c),Vd(r,2,3),z(r,a.prefixSearch_.prefetch(b),5);case 5:g=r.yieldResult,o$(f,W$(a)).setSource(g),d(f);case 3:Wd(r);a.cacheWarming_=null;Yd(r,0);break;case 2:k=Zd(r),m=k instanceof Iw?k:(new Iw).setCode(13),
o$(f,W$(a)).setSource(m),e(f),r.jumpTo(3)}})})}},W$=function(a){return a.storage_.getExpiry().getStatus()},mhe=function(a){ehe(a.prefixSearch_);a.lookupCache_.flush();a.storage_.flush()},khe=function(a){var b=W$(a)===1?1:2;a.trackers_.count(b).increment()};var Syc={198:"AE",230:"ae",306:"IJ",307:"ij",338:"AE",339:"ae"};var Uyc=RegExp("[\\s,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a]+","g"),Tyc=/^[<"']|[>"']$/g,Qyc=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"),nhe=/[^a-z0-9]+/gi,Ryc=String.prototype.normalize?function(a){return a.normalize("NFKC")}:function(a){return a};var ohe=function(a){this.itemResolver_=a},qhe=function(a,b){if(!b.preferredSearchTerms)return[];a=Vyc(phe(a,b));var c=Vyc(b.preferredSearchTerms);return a.filter(function(d){return c.some(function(e){return d.startsWith(e)})})},phe=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,g=f.apply,k=e.split(nhe).filter(Boolean),m=k.length-
1;if(m>0){var r=k.join(".");k.push(k.join("-"));for(k.push(r);m>0;m--)k[m-1]+=k[m]}k.push(e);k.push(e.replace(Uyc,""));e[0]==="+"&&k.push("+"+k[0]);g.call(f,c,n(k));break;default:c.push(e)}b.preferredSearchTerms&&c.push.apply(c,n(b.preferredSearchTerms));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=yge(a.itemResolver_,d.value))&&phe(a,d,c);return c};var rhe=new txc,she=function(a,b,c){this.itemResolver_=a;this.lookupCache_=b;this.trackers_=c;this.indexer_=new ohe(a);this.trieRoots_=new Map},zge=function(a,b,c,d){var e=(a.trieRoots_.get(c)||U$).cloneNode(b);if(b.isDone())return a.trackers_.count(120).increment(),Promise.resolve(e);var f=a.trackers_.latency(95);f.start();var g=new Promise(function(k){var m=vge(b).map(Wv);a.lookupCache_.lookup(m,c,function(r){var w=Array.from(r.getResults().keys(),String);w=Pge(a,w,!1);Array.prototype.push.apply(e.items_,
w);nge(e);r.getMetadata().getIsLastCallback()&&(f.stop(),k(e))},rhe)});return uuc(g,e,d)},the=function(a,b){a=Pge(a,b,!1);return new S$(a)},Pge=function(a,b,c){var d=[];b=l(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=yge(a.itemResolver_,e);if(f){if(c){if(f=qhe(a.indexer_,f),f.length<1)continue}else f=Vyc(phe(a.indexer_,f));d.push(new lge(e,f))}}return d};var uhe=function(a,b){this.target_=a;this.displayName_=b;this.similarTargets_=[]};uhe.prototype.getSimilarIds=function(){return this.similarTargets_.map(function(a){return a.getId()})};
uhe.prototype.getDisambiguationLabel=function(){var a="";if(this.similarTargets_.length){var b=Wyc(this.target_.getDisplayValue());a=this.similarTargets_.some(function(d){return Wyc(d.getDisplayValue())===b});var c=this.similarTargets_.some(function(d){return Wyc(d.getDisplayValue())!==b});a=a&&c?this.target_.getDisplayValue():c?b:Xyc(this.target_.getDisplayValue())}return a};
uhe.prototype.filterResult=function(a){var b=this,c=Aw(this.target_.getDisplayValue());this.similarTargets_.push.apply(this.similarTargets_,n(a.getTargetList().filter(function(d){return d.getTargetType()===1&&Aw(d.getDisplayValue())!==c&&d.getName()&&Aw(d.getName().getDisplayName())===b.displayName_})));return null};uhe.prototype.reset=function(){this.similarTargets_=[]};var Yyc=/\S+@\S+\.\S+/,Zyc=/<|>|\(|\)/g;var vhe=function(){this.queryId_=0};vhe.prototype.getQueryId=function(){return this.queryId_};var whe=function(a,b){var c=new vhe;this.cache_=a;this.queryFactory_=b;this.querySession_=c};
whe.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 vde("",(new ude).setCode(0).setCacheState((new m$).setSource(l$(new Iw,!1).setProvenance(8).setCode(0))))):b.getTargetCount()>25||$yc(e,a.getDisplayValue())?Promise.resolve(new vde(a.getDisplayValue(),(new ude).setCode(0).setCacheState((new m$).setSource(l$(new Iw,
!1).setProvenance(8).setCode(0))))):new Promise(function(f){var g=new uhe(a,Aw(e)),k=xhe(c.queryFactory_,e,c.querySession_,(new Ev).setFilter(g).setQueryScope(b.getQueryScope()),function(m){if(m.getMetadata().getIsLastCallback()){var r=g.getDisambiguationLabel(),w=new ude,x=g.getSimilarIds();w.similarIds_=x;f(new vde(r,w.setCode(m.getMetadata().getCode()).setCacheState(m.getMetadata().getCacheState()||new m$)))}});c.cache_.search(k)})};var yhe=function(a){this.delegate=a};h=yhe.prototype;h.getLastUpdatedTimestamp=function(){return this.delegate.getLastUpdatedTimestamp()};h.getAffinityVersion=function(){return this.delegate.getAffinityVersion()};h.warmUpCache=function(a){return this.delegate.warmUpCache(a)};h.warmUpSession=function(a){var b=this;return y(function(c){return c.return(b.delegate.warmUpSession(a))})};h.search=function(a){var b=this;return y(function(c){return c.return(b.delegate.search(a))})};
h.lookup=function(a,b,c){this.delegate.lookup(a,b,c)};var zhe=function(){this.delegate=fBd};zhe.prototype.filterResult=function(a){return this.delegate.filterResult(a)};zhe.prototype.reset=function(a){this.delegate.reset(a)};var Ahe=function(a,b){a.delegate=b!=null?b:fBd};var Bhe=function(a){this.delegate=a};h=Bhe.prototype;h.getPrefix=function(){return this.delegate.getPrefix()};h.getTerms=function(){return this.delegate.getTerms()};h.getFormat=function(){return this.delegate.getFormat()};h.getCollector=function(){return this.delegate.getCollector()};h.getBoostKey=function(){return this.delegate.getBoostKey()};h.getListener=function(){return this.delegate.getListener()};h.isDone=function(){return this.delegate.isDone()};h.isCancelled=function(){return this.delegate.isCancelled()};
h.isSuggestQuery=function(){return this.delegate.isSuggestQuery()};h.isEmailAddress=function(){return this.delegate.isEmailAddress()};h.queryScope=function(){return this.delegate.queryScope()};h.getResultFilter=function(){return this.delegate.getResultFilter()};h.shouldSkipCache=function(a){return this.delegate.shouldSkipCache(a)};var Che=function(a,b){this.delegate_=a;this.limit_=b;this.count_=0};Che.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);if(!a)return null;this.count_++;return a};Che.prototype.resultCount=function(){return this.count_};Che.prototype.isDone=function(){return this.count_>=this.limit_||this.delegate_.isDone()};var Dhe=function(a,b,c,d){this.delegate=a;var e=this;this.isLastSlot=d;d=a.getCollector();c.limit>0&&(d=new Che(d,c.limit));this.collector=d;this.listener=function(g){var k=g.getMetadata();k.getIsLastCallback()&&k.setIsLastCallback(e.isLastSlot);e.delegate.getListener()(g)};d=[];c.filter&&(d.push(c.filter),c.filter.reset(a.getPrefix()));b&&d.push(b);this.resultFilter=d.length?Ngb.apply(null,n(d)):null;var f;this.scope=(f=c.scope)!=null?f:a.queryScope()};Z(Dhe,Bhe);h=Dhe.prototype;h.getCollector=function(){return this.collector};
h.getListener=function(){return this.listener};h.isDone=function(){return this.collector.isDone()};h.getResultFilter=function(){return this.resultFilter};h.queryScope=function(){return this.scope};var Ehe=function(a,b,c,d){this.delegate=a;this.slots=b;this.filterInterceptor=c;this.originalFilter=d};Z(Ehe,yhe);
Ehe.prototype.search=function(a){var b=this,c,d,e,f,g,k;return y(function(m){switch(m.nextAddress){case 1:c=new Set,a.isSuggestQuery()?c.add(2):c.add(1),a.isEmailAddress()||c.add(3),d=b.slots.filter(function(r){return!c.has(r.visibility)}),e=d.map(function(r,w){return new Dhe(a,b.originalFilter,r,w===d.length-1)}),f=l(e),g=f.next();case 2:if(g.done){m.jumpTo(4);break}k=g.value;if(a.isCancelled()||a.isDone()){m.jumpTo(4);break}Ahe(b.filterInterceptor,k.getResultFilter());return z(m,b.delegate.search(k),
3);case 3:g=f.next();m.jumpTo(2);break;case 4:return m.return()}})};var Fhe=function(a,b,c){this.delegate=a;var d=this;this.query_=b;this.terms_=Vyc([b]);this.id_=bw(b);this.listener_=function(e){var f=e.getResults().map(function(g){if(d.id_.equals(g.getPrimaryTarget().getId())&&g.getDisplayName()!==c){var k=(new lyc).setDisplayName(c),m=g.getPrimaryTarget();g=Hgb(g,new bBd(m,k))}return g});e=new t$(f,e.getMetadata());a.getListener()(e)}};Z(Fhe,Bhe);Fhe.prototype.getPrefix=function(){return this.query_};Fhe.prototype.getTerms=function(){return this.terms_};
Fhe.prototype.getListener=function(){return this.listener_};var Ghe=function(a,b,c){this.cache_=a;this.queryFactory_=b;this.querySession_=new vhe;this.clientInfo_=c};h=Ghe.prototype;h.warmUpSession=function(a){a=xhe(this.queryFactory_,"",this.querySession_,a,function(){});return this.cache_.warmUpSession(a)};h.suggest=function(a,b){a=xhe(this.queryFactory_,"",this.querySession_,b,a);this.cache_.search(a)};
h.search=function(a,b,c){a=xhe(this.queryFactory_,a,this.querySession_,c,b);$i(this.clientInfo_,28)&&(b=a.getPrefix(),b.includes("<")&&(c=Mv(b),c.isValid()||(c=Mv(b+">")),a=c.isValid()&&c.getName()?new Fhe(a,c.address,c.getName()):a));this.cache_.search(a)};h.cancel=function(){++this.querySession_.queryId_};h.getLastUpdatedTimestamp=function(){return this.cache_.getLastUpdatedTimestamp()};h.getAffinityVersion=function(){return this.cache_.getAffinityVersion()};
h.getReporter=function(){throw Error("Eg");};h.getSessionState=function(){throw Error("Eg");};var Hhe=function(a,b,c){var d=this;this.cache_=a;this.queryFactory_=b;this.clientInfo_=c;this.getSessionCache_=$i(c,34)?function(e){var f=d.cache_,g=e.slots_;if(g.length){var k=e.getFilter(),m=new zhe;e.setFilter(m);e=new Ehe(f,g,m,k)}else e=f;return e}:function(){return d.cache_}};Hhe.prototype.warmUpCache=function(){return this.cache_.warmUpCache(!1)};Hhe.prototype.lookup=function(a,b,c){this.cache_.lookup(a,b,c)};
Hhe.prototype.disambiguate=function(a,b){return(new whe(this.cache_,this.queryFactory_)).disambiguate(a,b)};Hhe.prototype.beginSession=function(a){a=this.getSessionCache_(a);return new Ghe(a,this.queryFactory_,this.clientInfo_)};var Ihe=function(){};h=Ihe.prototype;h.getCacheType=function(){return 3};h.flush=function(){};h.fetch=function(){return y(function(a){return a.return(l$(new Iw,!1).setProvenance(12).setCode(0))})};h.index=function(){};h.search=function(a){return a.isEmailAddress()?(a=a.getCollector().loadOrSkip(String(bw(a.getPrefix()))))?[a]:[]:[]};h.getName=function(){};var Jhe=function(){};Jhe.prototype.configure=function(a){var b=a.prefixCaches;a=a.clientConfig.getClient();$i(a,21)&&b.push(new Ihe)};var Khe=function(a,b,c,d,e,f,g,k){this.delegate_=a;this.prefix_=b;this.terms_=c;this.collector_=d;this.boostKey_=e;this.filter_=g;this.listener_=azc(this,f);this.isEmailAddress_=null;this.selectedCustomProviderNames_=k?new Set(k):null};h=Khe.prototype;h.getPrefix=function(){return this.prefix_};h.getTerms=function(){return this.terms_};h.getFormat=function(){return this.delegate_.getFormat()};h.getCollector=function(){return this.collector_};h.getBoostKey=function(){return this.boostKey_};
h.getListener=function(){return this.listener_};h.isDone=function(){return this.collector_.isDone()};h.isCancelled=function(){return this.delegate_.isCancelled()};h.isSuggestQuery=function(){return!this.prefix_};h.isEmailAddress=function(){this.isEmailAddress_===null&&(this.isEmailAddress_=LAd(this.prefix_));return this.isEmailAddress_};h.queryScope=function(){return this.delegate_.queryScope()};h.getResultFilter=function(){return this.filter_};
h.shouldSkipCache=function(a){return!(!this.selectedCustomProviderNames_||!a||this.selectedCustomProviderNames_.has(a))};var Lhe=function(a,b,c){this.format_=a;this.querySession_=b;this.queryScope_=c;this.id_=++this.querySession_.queryId_};Lhe.prototype.getFormat=function(){return this.format_};Lhe.prototype.isCancelled=function(){return this.querySession_.getQueryId()!==this.id_};Lhe.prototype.queryScope=function(){return this.queryScope_};var Mhe=function(){this.foundKeys_=new Set};Z(Mhe,eV);Mhe.prototype.shouldRemove=function(a){return this.foundKeys_.has(String(a.getId()))};Mhe.prototype.has=function(a){return this.foundKeys_.has(a)};Mhe.prototype.add=function(a){this.foundKeys_.add(a)};Mhe.prototype.reset=function(){this.foundKeys_.clear()};var Nhe=function(a){this.delegate_=a;this.filter_=new Mhe};Nhe.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};Nhe.prototype.resultCount=function(){return this.delegate_.resultCount()};Nhe.prototype.isDone=function(){return this.delegate_.isDone()};var Ohe=function(a,b,c){this.delegate_=a;this.filter_=b;this.filter_.reset(c)};Ohe.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);return a?(a=this.filter_.filterResult(a))&&a.getTargetList().length?a:null:null};Ohe.prototype.resultCount=function(){return this.delegate_.resultCount()};Ohe.prototype.isDone=function(){return this.delegate_.isDone()};var Phe=function(a,b){this.storage_=a;this.format_=b};Phe.prototype.loadOrSkip=function(a){return this.storage_.load(a,this.format_)||null};Phe.prototype.resultCount=function(){return 0};Phe.prototype.isDone=function(){return!1};var Qhe=[198,230,306,307,338,339],Rhe=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)"+qs(b),"g")})},bzc=function(a,b){var c=[];if(!b||!a.matchers_.length)return c;var d=Aw(b),e=d.indexOf("@"),f=e<0?-1:d.indexOf(".",e);a=l(a.matchers_);for(var g=a.next();!g.done;g=a.next()){g=g.value;g.lastIndex=0;for(var k=g.exec(d);k;k=
g.exec(d)){k=k.index;if((e>0||e===0&&f>e)&&k>e)break;c.push([k,g.lastIndex])}}c.sort(function(m,r){return m[0]-r[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++):Qhe.includes(a)&&e.push(f);b=l(c);for(f=b.next();!f.done;f=b.next()){f=f.value;a=l(d);for(g=a.next();!g.done;g=a.next())g=g.value,g<f[0]&&f[0]++,g<f[1]&&f[1]++;a=l(e);for(g=a.next();!g.done;g=
a.next())g=g.value,g<f[0]&&f[0]--,g<f[1]&&f[1]--}}return c};var czc=function(a,b){this.start_=a;this.end_=b};czc.prototype.getStart=function(){return this.start_};czc.prototype.getEnd=function(){return this.end_};var dzc=function(a,b,c){this.displayNameMatches_=a;this.displayValueMatches_=b;this.givenNameMatches_=c};dzc.prototype.getDisplayNameMatches=function(){return this.displayNameMatches_};dzc.prototype.getDisplayValueMatches=function(){return this.displayValueMatches_};dzc.prototype.getGivenNameMatches=function(){return this.givenNameMatches_};var She=function(a,b){this.delegate_=a;this.matcher_=b;this.memberList_=a.getMemberList().map(function(c){return new She(c,b)});this.matchInfo_=null};Z(She,dV);She.prototype.getMemberList=function(){return this.memberList_};She.prototype.getMatchInfo=function(){if(!this.matchInfo_){var a,b=((a=this.getDelegate().getPrimaryTarget().getName())==null?void 0:a.getGivenName())||"";this.matchInfo_=ezc(this.matcher_,this.getDelegate().getDisplayName(),this.getDelegate().getDisplayValue(),b)}return this.matchInfo_};var The=function(a,b){this.delegate_=a;this.matcher_=new Rhe(b)};The.prototype.loadOrSkip=function(a){return(a=this.delegate_.loadOrSkip(a))?new She(a,this.matcher_):null};The.prototype.resultCount=function(){return this.delegate_.resultCount()};The.prototype.isDone=function(){return this.delegate_.isDone()};var Uhe=function(a){var b=new Kyc;this.delegate=a;this.placeholderFactory=b};Uhe.prototype.loadOrSkip=function(a){var b;return(b=this.delegate.loadOrSkip(a))!=null?b:this.placeholderFactory.createFromLookupId(Wv(a))};Uhe.prototype.resultCount=function(){return this.delegate.resultCount()};Uhe.prototype.isDone=function(){return this.delegate.isDone()};var Vhe=/\s+/g,Whe=function(a,b){this.clientInfo_=a;this.storage_=b},xhe=function(a,b,c,d,e){var f=Vyc([b]);b=(b||"").replace(Vhe," ").trim();var g=!f.length;var k=a.clientInfo_;k=g?d.getSuggestFormat()||k.getSuggestFormat():d.getSearchFormat()||k.getSearchFormat();var m=a.clientInfo_;g=g?d.getSuggestMaxResults()||m.getSuggestMaxResults():d.getSearchMaxResults()||m.getSearchMaxResults();var r=d.boostIds_;m=d.primingTimeoutMillis_;if(r.length){r=r.map(String);var w=Qxc(r)+":"+r.length;m={ids:r,cacheKey:w,
primingTimeoutMillis:m}}else m=Xge;r=d.getFilter();w=b;var x=new Phe(a.storage_,k);$i(a.clientInfo_,21)&&LAd(w)&&(x=new Uhe(x));r&&(x=new Ohe(x,r,w));x=new Nhe(x);x=new Che(x,g);a=f.length?new The(x,f):x;g=d.getQueryScope();c=new Lhe(k,c,g);return new Khe(c,b,f,a,m,e,r,d.selectedCustomProviderNames_)};var Xhe=function(a){this.fetcher=a};Xhe.prototype.getStageType=function(){return 2};Xhe.prototype.lookup=function(a){var b=this,c,d,e,f,g,k,m,r,w;return y(function(x){switch(x.nextAddress){case 1:c=gzc(Uge(a)),d=l(c),e=d.next();case 2:if(e.done){x.jumpTo(4);break}f=e.value;g=l(f);k=g.next().value;m=g.next().value;r=k;w=m;if(!r){x.jumpTo(3);break}return z(x,b.fetcher.fetch(w,r,a.getFormat(),function(D,H){a.notify(D,[],H)},a.getOptions()),3);case 3:e=d.next();x.jumpTo(2);break;case 4:return x.return()}})};var Yhe=function(a,b){this.delegate=a;this.maxLookupChunkSize=Iee(b)};Yhe.prototype.fetch=function(a,b,c,d,e){var f=this,g,k,m;return y(function(r){switch(r.nextAddress){case 1:var w=f.maxLookupChunkSize;if(a.length)if(a.length<=w)w=[a];else{for(var x=[],D=0;D<a.length;D+=w){var H=a.slice(D,D+w);H.length&&x.push(H)}w=x}else w=[];g=l(w);k=g.next();case 2:if(k.done){r.jumpTo(4);break}m=k.value;return z(r,f.delegate.fetch(m,b,c,d,e),3);case 3:k=g.next();r.jumpTo(2);break;case 4:return r.return()}})};var Zhe=function(a){this.qos=a};Zhe.prototype.getIndex=function(){return String(this.qos)};var $he=new Zhe(1),aie=new Zhe(2);var bie=function(a,b,c){this.trackers=a;this.loader=b;this.indexer=c};
bie.prototype.fetch=function(a,b,c,d,e){var f=this,g,k,m,r,w,x,D,H,J,O,R;return y(function(V){switch(V.nextAddress){case 1:return g=b===3?4:3,k=l$((new Iw).setProvenance(g),!0).setCode(0),Vd(V,2),z(V,f.loader.loadLookupItems(b,a.map(function(ba){return ba.getOriginalValue()}),aie),4);case 4:m=V.yieldResult;m.metadata.getCode()&&k.setCode(m.metadata.getCode());r=e.getQueryScope()===3;try{f.indexer.store(b,m.data,m.metadata,r)}catch(ba){f.trackers.error(21,10).report(),k.setCode(13)}bk(V,3);break;case 2:w=
Zd(V),x=Number(w),k.setCode(isFinite(x)&&x?x:13);case 3:D=new Map;H=l(a);for(J=H.next();!J.done;J=H.next())O=J.value,(R=f.indexer.load(O,c,e.getUseOriginalDisplayValue()))&&D.set(O,R);d(D,k);return V.return()}})};var cie=function(a){this.indexer=a};cie.prototype.getStageType=function(){return 1};cie.prototype.lookup=function(a){var b=this,c,d,e,f,g,k;return y(function(m){c=new Map;d=[];e=l(Uge(a));for(f=e.next();!f.done;f=e.next())if(g=f.value,k=b.indexer.load(g,a.getFormat(),a.getOptions().getUseOriginalDisplayValue()))c.set(g,k);else{var r=b.indexer;(XAd(g)?r.notFoundIds.get(String(g)):1)&&d.push(g)}a.notify(c,d,l$((new Iw).setProvenance(6),!1).setCode(0));return m.return()})};var die=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"),eie=function(a,b,c,d,e){this.loader_=a;this.ranker_=b;this.trieFactory_=c;this.storage_=d;this.indexes_=sge(Wm(e,8,250),tm(e,9,3600)*1E3);this.notFound_=sge(Wm(e,10,500),tm(e,11,600)*1E3)};h=eie.prototype;h.getCacheType=function(){return 3};h.flush=function(){this.indexes_.clear();this.notFound_.clear()};
h.fetch=function(a){var b=this,c,d,e;return y(function(f){switch(f.nextAddress){case 1:c=l$(new Iw,!0).setProvenance(2).setCode(0);if(a.isSuggestQuery())return b.loader_.warmUpServer($he).catch(function(){}),f.return(c);if(b.canSkipFetch_(a))return f.return(l$(c,!1));Vd(f,2);return z(f,b.loader_.loadAutocompleteItems(a,aie),4);case 4:d=f.yieldResult;bk(f,3);break;case 2:return e=Zd(f),f.return(c.setCode(isFinite(e)?e:13));case 3:try{b.index(a,d.data,d.metadata)}catch(g){return f.return(c.setCode(13))}return f.return(c)}})};
h.search=function(a){if(a.isSuggestQuery())return[];var b=a.getPrefix(),c=this.indexes_.get(b);if(c)return T$(c.search([]),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?T$(c.search(a.getTerms()),a.getCollector()):[]};
h.index=function(a,b,c){if(!$i(c,5))if(Q$(c),b.length){c=Nee(this.ranker_,b,1);var d=a.queryScope()===3;this.storage_.storeItems(1,b,d);b=the(this.trieFactory_,c);this.indexes_.set(a.getPrefix(),b)}else this.notFound_.set(a.getPrefix(),a.getPrefix())};h.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(die))break;if(this.notFound_.has(c))return!0}return!1};
h.getName=function(){};var fie=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_};h=fie.prototype;h.getCacheType=function(){return 1};h.flush=function(){this.indexes_.clear()};
h.fetch=function(a){var b=this,c,d,e,f;return y(function(g){switch(g.nextAddress){case 1:return c=l$(new Iw,!0).setProvenance(1).setCode(0),d=b.storage_.getExpiry().isExpired()?aie:$he,Vd(g,2),z(g,b.loader_.loadRankedItems(d),4);case 4:e=g.yieldResult;bk(g,3);break;case 2:return f=Zd(g),g.return(c.setCode(isFinite(f)?f:13));case 3:try{b.index(a,e.data,e.metadata)}catch(k){c.setCode(13)}return g.return(c)}})};
h.search=function(a){return a.isSuggestQuery()||a.getTerms().length?T$((this.indexes_.get(a.getFormat())||U$).search(a.getTerms()),a.getCollector()):[]};h.index=function(a,b,c){if(!$i(c,5)){Q$(c);a=this.coalescedSortOrder_!==1?Nee(this.ranker_,b,this.coalescedSortOrder_):null;var d=Nee(this.ranker_,b,1);this.storage_.flush();this.storage_.storeItems(1,b);this.storage_.markAsFresh(c);b=the(this.trieFactory_,d);c=a?the(this.trieFactory_,a):b;this.indexes_.set(1,b);this.indexes_.set(2,c)}};
h.getName=function(){};var gie=new Age(27,32,33),hie=new Age(24,23,20);var iie=function(){};iie.prototype.configure=function(a){var b=a.trackers,c=a.storage,d=a.indexer,e=a.loader,f=a.trieFactory,g=a.prefixCaches,k=a.lookupStages,m=a.loaderFactory.ranker_,r=a.clientConfig.getClient();if(Wm(r,3,500)>0){var w=Ri(r,19,1);w=new fie(e,m,f,c,w);w=new V$(w,b,hie);g.push(w)}k.push(new cie(d));r.getSearchMaxResults()>0&&(c=new eie(e,m,f,c,r),b=new V$(c,b,gie),g.push(b));g=new bie(a.trackers,a.loader,a.indexer);g=new Yhe(g,a.clientConfig);k.push(new Xhe(g))};var jie=function(a){this.delegate=a};h=jie.prototype;h.warmUpSession=function(a){return this.delegate.warmUpSession(a)};h.suggest=function(a,b){this.delegate.suggest(a,b)};h.search=function(a,b,c){this.delegate.search(a,b,c)};h.cancel=function(){this.delegate.cancel()};h.getLastUpdatedTimestamp=function(){return this.delegate.getLastUpdatedTimestamp()};h.getAffinityVersion=function(){return this.delegate.getAffinityVersion()};h.getReporter=function(a){return this.delegate.getReporter(a)};
h.getSessionState=function(){return this.delegate.getSessionState()};var kie=function(a){this.delegate=a};kie.prototype.warmUpCache=function(){return this.delegate.warmUpCache()};kie.prototype.disambiguate=function(a,b){return this.delegate.disambiguate(a,b)};kie.prototype.lookup=function(a,b,c){this.delegate.lookup(a,b,c)};kie.prototype.beginSession=function(a){return this.delegate.beginSession(a)};var lie=function(a,b,c){this.idType_=a;this.id_=b;this.options_=c};lie.prototype.getId=function(){return this.id_};lie.prototype.getIndex=function(){return this.getId()+":"+this.idType_+":"+this.options_.getIndex()};var mie=function(a,b,c){this.idType_=a;this.ids_=b;this.options_=c};h=mie.prototype;h.getIds=function(){return this.ids_};h.getIdType=function(){return this.idType_};h.getOptions=function(){return this.options_};
h.getKeys=function(){var a=this;return this.getIds().map(function(b){return new lie(a.getIdType(),b,a.getOptions())})};h.setIds=function(a){this.ids_=a;return this};h.setIdType=function(a){this.idType_=a};h.setOptions=function(a){this.options_=a;return this};h.clone=function(){var a=this.getIdType(),b=this.getIds(),c=this.getOptions();return new mie(a,b,c)};var nie=function(a,b){this.ids_=new Set(b.getIds());this.parameters_=b.clone();this.loader_=a;this.resolver_=new qPc;this.isSent_=!1};nie.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)}};nie.prototype.promise=function(){return this.resolver_.promise};
nie.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 oie=function(a,b,c){this.delegate_=a;this.batchedRequest_=null;this.tracker_=b;this.maxRequestSize_=Iee(c);this.lastRequestCreationTime_=0};
oie.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 nie(this.delegate_,a);a=Date.now();var d=a-this.lastRequestCreationTime_;this.lastRequestCreationTime_=a;ht(function(){c===b.batchedRequest_&&(c.send(),b.batchedRequest_=null)},d>30?0:30)}return this.batchedRequest_.promise()};var pie=function(a,b){this.delegate_=a;this.inflightRequests_=qge();this.tracker_=b};
pie.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 g=f.getIndex();this.inflightRequests_.has(g)?c.add(this.inflightRequests_.get(g)):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 m=new nie(this.delegate_,k);m.send();c.add(m);a=l(k.getKeys());for(d=a.next();!d.done;d=
a.next())this.inflightRequests_.set(d.value.getIndex(),m);m.promise().catch(function(){}).finally(function(){for(var r=l(k.getKeys()),w=r.next();!w.done;w=r.next())b.inflightRequests_.delete(w.value.getIndex())})}c=Array.from(c);return Promise.all(c.map(function(r){return r.promise()})).then(function(r){return m?m.promise().then(function(w){return hzc(r,w.metadata)}):hzc(r)})};var qie=function(a){this.peopleLoader_=a};qie.prototype.load=function(a){return this.peopleLoader_.loadLookupItems(a.getIdType(),a.getIds(),a.getOptions())};var rie=function(a,b,c){this.peopleLoader_=a;this.gatedLoaders_=new Map;this.tracker_=b;this.clientConfig_=c};rie.prototype.load=function(a){if(!this.gatedLoaders_.has(a.getIdType())){var b=new qie(this.peopleLoader_);b=new oie(b,this.tracker_,this.clientConfig_);b=new pie(b,this.tracker_);this.gatedLoaders_.set(a.getIdType(),b)}return this.gatedLoaders_.get(a.getIdType()).load(a)};var sie=function(a,b,c){this.delegate_=a;this.trackers_=b;this.searchRequests_=new Map;this.lookupLoader_=new rie(this.delegate_,this.trackers_,c)},tie=function(a,b,c,d){var e,f;return y(function(g){if(g.nextAddress==1){e=b+":"+c;if(a.searchRequests_.has(e))return a.trackers_.count(b).increment(),g.return(a.searchRequests_.get(e));f=d();a.searchRequests_.set(e,f);Xd(g,2);return z(g,f,4)}if(g.nextAddress!=2)return g.return(g.yieldResult);Wd(g);a.searchRequests_.delete(e);return Yd(g,0)})};
sie.prototype.loadRankedItems=function(a){var b=this;return tie(this,81,"",function(){return b.delegate_.loadRankedItems(a)})};sie.prototype.warmUpServer=function(a){var b=this;return tie(this,82,"",function(){return b.delegate_.warmUpServer(a)})};sie.prototype.loadAutocompleteItems=function(a,b){var c=this;return tie(this,82,a.getPrefix(),function(){return c.delegate_.loadAutocompleteItems(a,b)})};sie.prototype.loadLookupItems=function(a,b,c){return this.lookupLoader_.load(new mie(a,b,c))};var uie=function(){return Date.now()},vie=function(a,b,c){this.delegate_=a;this.nowFn_=c;a=b.getClient();this.cacheFlushRateMillis_=tm(a,14,300)*1E3;b=b.getClient();this.serverWarmupRateMillis_=tm(b,13,60)*1E3;this.lastServerWarmup_=this.lastCacheFlush_=0};vie.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)};
vie.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)};vie.prototype.loadAutocompleteItems=function(a,b){return this.delegate_.loadAutocompleteItems(a,b)};vie.prototype.loadLookupItems=function(a,b,c){return this.delegate_.loadLookupItems(a,b,c)};var wie=function(a,b,c){this.delegate_=a;this.listener_=b;this.options_=c;this.delegate_.warmUpSession(c)};wie.prototype.suggest=function(a){a=a===void 0?this.listener_:a;this.delegate_.suggest(a,this.options_);return this};wie.prototype.search=function(a,b){b=b===void 0?this.listener_:b;this.delegate_.search(a,b,this.options_);return this};wie.prototype.cancel=function(){this.delegate_.cancel();return this};wie.prototype.getReporter=function(a){a=a===void 0?Zce:a;return this.delegate_.getReporter(a)};var xie=function(a,b){this.delegate_=a;this.members_=b;this.totalMemberCount_=TAd(a.getPrimaryTarget().getId())?b.length:a.getTotalMemberCount()};Z(xie,dV);xie.prototype.getMemberList=function(){return this.members_};xie.prototype.getTotalMemberCount=function(){return this.totalMemberCount_};var yie=function(a,b){this.filter_=a;this.filterEmptyExplodingGroups_=b};yie.prototype.filterResult=function(a){var b=this;if(!TAd(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:ys(new xie(a,c))};yie.prototype.reset=function(a){this.filter_.reset(a)};
var izc=function(a,b){this.filter_=Ngb(a,new yie(a,b))};izc.prototype.filterResult=function(a){return this.filter_.filterResult(a)};izc.prototype.reset=function(a){this.filter_.reset(a)};var zie=function(a){this.delegate_=a};zie.prototype.warmUpCache=function(){return this.delegate_.warmUpCache().then(function(){return Promise.resolve()},function(a){var b=2;a instanceof m$&&(a=a.getSource())&&(b=a.getCode());return Promise.reject(b)})};zie.prototype.disambiguate=function(a,b){b=b===void 0?new rde:b;return this.delegate_.disambiguate(a,b)};zie.prototype.lookup=function(a,b,c){c=c===void 0?new txc:c;c.setFilter(jzc(c.getFilter(),!0));this.delegate_.lookup(a,b,c);return this};
zie.prototype.beginSession=function(a,b){b=b===void 0?new Ev:b;b=b.clone();b.setFilter(jzc(b.getFilter(),b.filterEmptyExplodingGroups_));var c=this.delegate_.beginSession(b);return new wie(c,a,b)};var Aie=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]]),Bie=new Map([[2,13],[3,6]]),Cie=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 ozc=new Map([[1,1],[2,3],[3,5]]),Die=new Map([[1,2],[2,4],[3,5],[4,8],[6,15],[7,19],[12,21],[10,20]]),Eie=new Map([[1,2],[2,9],[3,6],[4,6],[6,15],[7,19],[12,21],[10,20]]),Fie=function(a,b){this.logContext_=szc(a,b)};h=Fie.prototype;h.getLogContext=function(){return this.logContext_};
h.createCountMetric=function(a,b,c){var d=b.source();Gie(d,a);var e=nzc(d);switch(d.getEventType()){case 1:d=e.setCount;b=b.source();b=Ri(b,4);var f=new Efe;f.setType(b);f.setValue(c);d.call(e,f);e.setEventType(1);break;case 4:case 5:c=b.source();c=Ri(c,3);d=new Hfe;d.setLabel(c);hj(e,Hfe,7,d);e.setEventType(4);break;case 6:case 7:c=b.source();d=Ri(c,2);b=new Bfe;c.hasItemCount()&&b.setItemCount(c.getItemCount());c.hasQueryLength()&&b.setQueryLength(c.getQueryLength());c.hasLookupInfo()&&b.setLookupInfo(c.getLookupInfo());
c.hasQueryScope()&&b.setQueryScope(c.getQueryScope());b.setLabel(d);hj(e,Bfe,9,b);e.setEventType(6);break;default:return null}e.setClientInterface(a);return e};
h.createStatusMetric=function(a,b,c){var d=b.source();Gie(d,a);var e=nzc(d);switch(d.getEventType()){case 4:case 5:d=b.source();var f=Ri(d,3);var g=Ri(d,13)||0;g=Bie.get(g)||Aie.get(c)||0;var k=zbe(b,"blocked"),m=zbe(b,"network"),r=zbe(b,"processed");b=new Ife;b.setLabel(f);b.setStatus(g);Nn(b,8,k);b.setLatencyUsec(m);Nn(b,9,r);b.setStatusCode(c);Wm(d,12)&&(d=Wm(d,12),Nn(b,6,d));hj(e,Ife,8,b);e.setEventType(5);break;case 6:case 7:f=b.source();g=Ri(f,2);d=new Dfe;d.setLabel(g);d.setStatusCode(c);f.hasItemCount()&&
d.setItemCount(f.getItemCount());f.hasQueryLength()&&d.setQueryLength(f.getQueryLength());f.hasLookupInfo()&&d.setLookupInfo(f.getLookupInfo());f.hasQueryScope()&&d.setQueryScope(f.getQueryScope());c===0&&(b=zbe(b,"total"),d.setLatencyUsec(b));c=Cie.get(c)||0;d.setStatus(c);c=f.getResultIndex();d.setResultIndex(c);if(b=f.getCacheState())c=pzc(rw(b,2)),Yn(d,5,c),c=pzc(rw(b,3)),Yn(d,6,c),c=d.setDataSource,f=b.getSource(),b=!$i(f,1),f=f.getProvenance(),b=(b?Eie.get(f):Die.get(f))||0,c.call(d,b);hj(e,
Dfe,10,d);e.setEventType(7);break;default:return null}e.setClientInterface(a);return e};h.createLatencyMetric=function(a,b){var c=b.source();Gie(c,a);if(c.getEventType()!==2)return null;var d=nzc(c);d.setClientInterface(a);a=d.setLatency;var e=b.source();e=Ri(e,5);b=zbe(b,"total");var f=new Gfe;f.setType(e);f.setLatencyUsec(b);a.call(d,f);d.setEventType(c.getEventType());return d};
h.createErrorMetric=function(a,b){var c=b.source();Gie(c,a);if(c.getEventType()!==3)return null;var d=nzc(c);d.setClientInterface(a);a=d.setError;var e=b.source();b=e.getErrorType();e=Ri(e,7);var f=new Ffe;f.setType(b);Yn(f,4,e);a.call(d,f);d.setEventType(c.getEventType());return d};var Gie=function(a,b){var c,d,e;a=(c=Y(a,Dw,18))==null?void 0:(d=c.getSessionState())==null?void 0:(e=Y(d,Fw,10))==null?void 0:Op(e,4);a!=null&&(b.setEventSource(a),b.setEventSourceId(a))};var Hie=function(a,b){this.delegate_=a;this.trackers_=b};h=Hie.prototype;h.reportDisplay=function(a){this.delegate_.reportDisplay(a)};h.reportSelect=function(a,b){b=b===void 0?new $ce:b;this.delegate_.reportSelect(a,b)};h.reportExternalSelect=function(a){this.delegate_.reportExternalSelect(a)};h.reportDeselect=function(a){this.delegate_.reportDeselect(a)};h.reportProceed=function(a){this.delegate_.reportProceed(a)};h.reportDismiss=function(){this.delegate_.reportDismiss();Iie(this)};
h.reportSave=function(a){this.delegate_.reportSave(a);Iie(this)};h.reportSecondaryAction=function(a){this.delegate_.reportSecondaryAction(a);Iie(this)};h.reportSend=function(a){this.delegate_.reportSend(a);Iie(this)};var Iie=function(a){a=a.trackers_;var b=a.api,c=new mw;ow(c.setEventType(6),3);b.call(a,c).call()};var tzc=function(a,b){this.delegate_=this.delegate=a;this.trackers_=b};Z(tzc,jie);
tzc.prototype.suggest=function(a,b){var c=this;try{var d=!1,e=!1,f=this.trackers_.api(gyc(b.getQueryScope()));f.call();this.delegate_.suggest(function(g){var k=g.getMetadata(),m=k.getCacheState();f.source.setCacheState(m);f.source.setItemCount(g.getResults().length);f.result(m.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(g)}catch(r){throw c.trackers_.error(22,11,f.source).report(),r;}finally{k.stop()}},b)}catch(g){throw this.trackers_.error(22,1).report(),g;}};
tzc.prototype.search=function(a,b,c){var d=this;try{var e=!1,f=!1,g=this.trackers_.api(fyc(a,c.getQueryScope()));g.call();this.delegate_.search(a,function(k){var m=k.getMetadata(),r=m.getCacheState();g.source.setCacheState(r);g.source.setItemCount(k.getResults().length);g.result(r.getSource().getCode());m.getIsFirstCallback()&&(e&&m.getCode()===0&&d.trackers_.error(23,19,g.source).report(),e=!0);m.getIsLastCallback()&&(f&&m.getCode()===0&&d.trackers_.error(23,20,g.source).report(),f=!0);m=d.trackers_.latency(91,
g.source);m.start();try{b(k)}catch(w){throw d.trackers_.error(23,11,g.source).report(),w;}finally{m.stop()}},c)}catch(k){throw this.trackers_.error(23,1).report(),k;}};tzc.prototype.getReporter=function(a){a=this.delegate_.getReporter(a);return new Hie(a,this.trackers_)};var Jie=function(a,b){this.delegate_=this.delegate=a;a=this.trackers_=b;b=a.api;var c=new mw;ow(c.setEventType(6),1);b.call(a,c).call()};Z(Jie,kie);
Jie.prototype.warmUpCache=function(){var a=this,b=this.trackers_.api(cyc());b.call();return this.delegate_.warmUpCache().then(function(c){b.source.setCacheState(c);b.result(c.getSource().getCode());return c},function(c){c instanceof m$?(b.source.setCacheState(c),b.result(c.getSource().getCode())):(a.trackers_.error(17,1).report(),c=(new m$).setSource((new Iw).setCode(2)));return Promise.reject(c)})};
Jie.prototype.lookup=function(a,b,c){var d=this;try{var e=!1,f=!1,g=this.trackers_.api(byc(a,c.getQueryScope()));g.call();this.delegate_.lookup(a,function(k){var m=k.getMetadata(),r=m.getCacheState();g.source.setCacheState(r);g.source.setItemCount(k.getResults().size);for(var w=0,x=0,D=0,H=0,J=l(k.getResults().keys()),O=J.next();!O.done;O=J.next()){O=O.value;UAd(O)?w++:QAd.includes(O.getType())?x++:RAd.includes(O.getType())&&D++;var R=void 0;((R=k.getResults().get(O))==null?0:R.getDisplayName())&&
H++}J=O=R=0;for(var V=l(m.notFoundIdList_),ba=V.next();!ba.done;ba=V.next())ba=ba.value,UAd(ba)?R++:QAd.includes(ba.getType())?O++:RAd.includes(ba.getType())&&J++;V=g.source.getMutableLookupInfo();w=Wn(V,2,w);x=Wn(w,1,x);D=Wn(x,3,D);D=Wn(D,5,R);D=Wn(D,4,O);D=Wn(D,6,J);Wn(D,14,H);g.result(r.getSource().getCode());m.getIsFirstCallback()&&(e&&m.getCode()===0&&d.trackers_.error(8,19).report(),e=!0);m.getIsLastCallback()&&(f&&m.getCode()===0&&d.trackers_.error(8,20).report(),f=!0);m=d.trackers_.latency(89);
m.start();try{b(k)}catch(pa){throw d.trackers_.error(8,11).report(),pa;}finally{m.stop()}},c)}catch(k){throw this.trackers_.error(8,1).report(),k;}};Jie.prototype.disambiguate=function(a,b){var c=this.trackers_.api(eyc());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})};
Jie.prototype.beginSession=function(a){this.trackers_.api(dyc()).call();var b=this.delegate_.beginSession(a);return uzc(b,hge(this.trackers_,new dge(function(){return b.getSessionState()})))};var Kie=function(a,b){this.clearcut_=a;this.logEventFactory_=b};Kie.prototype.report=function(a){var b=Jbe(this.clearcut_);a=this.logEventFactory_.eventsFactory_.create(b,a);a=l(a);for(b=a.next();!b.done;b=a.next())Kbe(this.clearcut_,b.value)};var Lie=function(a){this.clearcut_=a};Lie.prototype.report=function(a){this.clearcut_.report(a)};var Mie=function(a){this.writer_=a};var Nie=function(){};
Nie.prototype.create=function(a,b,c){var d=lzc(b),e=new Bbe;hj(e,kzc,3,d);c!==7&&b.hasQuery()&&(d=b.getQuery(),c===2&&e.setQuery(d),e.setQueryLength(d.length));var f=new Cbe;d=wuc(tm(b,9)-tm(b,8));Wn(f,2,d);d=new h$;hj(d,Bbe,1,e);hj(d,Cbe,6,f);e=new Abe;if(f=qn(Hn(b,6))){Nn(e,3,f*1E3);var g=(Date.now()-f)*1E3;Nn(e,2,g)}jj(e,1,!!f);hj(d,Abe,3,e);d.setAffinityVersion(b.getAffinityVersionOrUndefined());b=new Ebe;b.setEventType(c);b.setMetadata(d);b.setClientInterface(a.clone());return b};var Oie=function(){};Oie.prototype.extractPersonEventSource=function(a){a=vzc(a);return rw(a,4)};Oie.prototype.extractFieldEventSource=function(a){a=vzc(a);return rw(a,3)};var Pie=function(){};Pie.prototype.extractPersonEventSource=function(a){var b=Y(a,Fw,10)||new Fw;return(a.getQuery()||"").length?rw(b,2):rw(b,4)};Pie.prototype.extractFieldEventSource=function(a){var b=Y(a,Fw,10)||new Fw;return(a.getQuery()||"").length?rw(b,1):rw(b,3)};var Qie=function(){};Qie.prototype.extractPersonEventSource=function(a){a=wzc(a);return rw(a,4)};Qie.prototype.extractFieldEventSource=function(a){a=wzc(a);return rw(a,3)};var yzc=new Set([8]);var Rie=function(a,b,c){this.defaultTokenGroups_=a;this.additionTokenGroups_=b;this.replacementTokenGroups_=c};var Sie=new Map([[1,11],[2,12],[0,0]]),Tie=function(){};Tie.prototype.write=function(a,b,c){var d=new a$;Wn(d,1,c);c=new b$;c.setPosition(d);c.setExistingSelectionsCount(b.getExistingSelectionsCount());hj(a,b$,8,c);b=Sie.get(b.getContext());Ax(a,3,[b])};var Uie=new Map([[1,5],[2,4],[3,6],[7,13]]),Vie=function(){};Vie.prototype.write=function(a,b,c,d){var e=new a$;Wn(e,1,c);a.setPosition(e);c=Uie.get(b.getProvenance())||0;Ri(b,4)===1?c=14:d?c=3:Ri(b,4)===2?c=10:Ri(b,4)===3&&(c=15);Ax(a,3,[c])};var Wie=new Set([9,1,2]),Xie=function(){};Xie.prototype.write=function(a,b,c,d,e){var f=a.getMutableMetadata();if(e===3||c===8||c===10||c===9||c===2&&Wie.has(d))c=new e$,rw(b,7)!==1&&rw(b,7)!==7||c.setEmail(mx(b,3)),rw(b,7)!==2&&rw(b,7)!==5||c.setPhone(mx(b,3)),b.hasProfileId()&&c.setObfuscatedGaiaId(b.getProfileId()),b.hasGroupId()&&c.setGroupId(b.getGroupId()),hj(a,e$,4,c),a=new f$,a.setName(b.getNameOrUndefined()),hj(f,f$,2,a);f.setIsBoosted(b.getIsBoosted())};var Yie=function(a){var b=new Xie;this.metadataStateWriter_=a;this.contactInfoWriter_=b},Zie=function(a){var b;return((b=a.getInfo())==null?0:b.getIsPlaceholder())?!0:!1};var Ezc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=p(a)};Z(Ezc,X);h=Ezc.prototype;h.getEventType=function(){return Ri(this,1)};h.getEventType_legacyNullable=function(){return rw(this,1)};h.setEventType=function(a){return Yn(this,1,a)};h.getSessionState=function(){return Y(this,cV,2)};h.setSessionState=function(a){return hj(this,cV,2,a)};h.hasSessionState=function(){return Si(this,cV,2)};h.setEventSources=function(a){hj(this,Fw,4,a)};var $ie=function(){this.defaultEntityFactory_=new Mie(new Yie(new Vie));this.contextualEntityFactory_=new Mie(new Yie(new Tie));this.extensionFactory_=new Nie;this.defaultEventSourceExtractor_=new Pie;this.additionEventSourceExtractor_=new Oie;this.replacementEventSourceExtractor_=new Qie};
$ie.prototype.create=function(a,b){var c=b.getSessionState()||new cV,d=b.getEventType_legacyNullable();b=Wi(b,xw,3,Xi(en));var e=Azc(b,Czc);var f=e.get(0);b=e.get(1);e=e.get(2);f=f?[].concat(n(Azc(f,Bzc).values())):[];b=b?[].concat(n(Azc(b,Bzc).values())):[];e=e?[].concat(n(Azc(e,Bzc).values())):[];e=new Rie(f,b,e);b=[];f=l(e.defaultTokenGroups_);for(var g=f.next();!g.done;g=f.next())b.push.apply(b,n(aje(this,a,d,g.value,c,this.defaultEventSourceExtractor_,this.defaultEntityFactory_)));f=l(e.additionTokenGroups_);
for(g=f.next();!g.done;g=f.next())b.push.apply(b,n(aje(this,a,d,g.value,c,this.additionEventSourceExtractor_,this.contextualEntityFactory_)));e=l(e.replacementTokenGroups_);for(f=e.next();!f.done;f=e.next())b.push.apply(b,n(aje(this,a,d,f.value,c,this.replacementEventSourceExtractor_,this.contextualEntityFactory_)));return b};
var aje=function(a,b,c,d,e,f,g){var k=[];e=d[0].getSessionState()||e;var m=xzc(d).map(function(r){var w=new Dbe,x=g.writer_,D=w.getMetadata()||new g$;w.setMetadata(D);var H=yv(r)||new yw,J=r.getInfo()||new zw;x.metadataStateWriter_.write(D,H,Wm(H,2)||0,Zie(r));x.contactInfoWriter_.write(w,J,c,H.getProvenance()||0,Ri(H,4)||0);w.setLoggingId(mx(J,1));r=Y(w,e$,4)||new e$;hj(w,e$,4,r);r.setType(Op(J,8));return w});m.length&&k.push(bje(a,b,c,f.extractPersonEventSource(e),m,e));d=zzc(d).map(function(r){var w=
new Dbe,x=g.writer_,D=w.getMetadata()||new g$;w.setMetadata(D);var H=yv(r)||new yw,J=r.getInfo()||new zw;x.metadataStateWriter_.write(D,H,($i(J,9,!0)?Wm(H,2):Wm(H,1))||0,Zie(r));x.contactInfoWriter_.write(w,J,c,H.getProvenance()||0,Ri(H,4)||0);r=Y(w,e$,4)||new e$;hj(w,e$,4,r);Y(w,e$,4).setType(Op(J,7));w.setLoggingId(mx(J,2));return w});d.length&&k.push(bje(a,b,c,f.extractFieldEventSource(e),d,e));return k},bje=function(a,b,c,d,e,f){a=a.extensionFactory_.create(b,f,c);a.getClientInterface().setEventSource(d);
a.getClientInterface().setEventSourceId(d);ij(a,2,e);return a};var cje=function(a,b){var c=rzc("PeopleStore.BigBug"),d=c.setLogSource;var e=a.getClearcut();e=Ri(e,3,41);this.logContext_=qzc(d.call(c,e).setApplication(a.getClearcut().getSocialApplication()).setEnvironment(a.runtimeConfig_.getPeopleApiEnv()).setVersion("1004").setBaselineCl(839130764).setEnableClearcut(a.getClearcut().getEnableClearcut()),[].concat(n(a.runtimeConfig_.getExperiments().getExperimentIdsList()),n(Ew?Ew.getExperimentIds():[]))).setPeoplekitEntryPoint(b.getPeoplekitEntryPoint()).setClientAgent(2);
this.eventsFactory_=new $ie};cje.prototype.getLogContext=function(){return this.logContext_};var dje=function(a){this.clientConfig_=a;this.reportingCache_=new Map};dje.prototype.create=function(a){var b=a.serialize();this.reportingCache_.has(a.serialize())||(a=new cje(this.clientConfig_,a),a=new Lie(new Kie(Ibe(a),a)),this.reportingCache_.set(b,a));return this.reportingCache_.get(b)};var eje=function(a,b,c){this.reporting_=a;this.sharedSessionState_=b;this.peopleStore_=c};h=eje.prototype;h.reportDisplay=function(a){X$(this,Hw(a,1))};h.reportSelect=function(a,b){b=b===void 0?new $ce:b;if(b.getOriginator()!==0)for(var c=l(a),d=c.next();!d.done;d=c.next()){d=d.value;if(!Si(d,yw,2)){var e=d,f=new yw;hj(e,yw,2,f)}d=yv(d);Yn(d,4,b.getOriginator())}b=this.sharedSessionState_;c=qn(Hn(this.sharedSessionState_,4))+1;Nn(b,4,c);X$(this,Hw(a,2,this.sharedSessionState_))};
h.reportExternalSelect=function(a){for(var b=l(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!Si(c,yw,2)){var d=c,e=new yw;hj(d,yw,2,e)}c=yv(c);Yn(c,4,2)}b=this.sharedSessionState_;c=qn(Hn(this.sharedSessionState_,4))+1;Nn(b,4,c);X$(this,Hw(a,15,this.sharedSessionState_))};h.reportDeselect=function(a){X$(this,Hw(a,17,this.sharedSessionState_))};h.reportProceed=function(a){X$(this,Hw(a,10,this.sharedSessionState_))};
h.reportDismiss=function(){var a=this.sharedSessionState_,b=new Ezc;a=a.clone();b.setSessionState(a);b.setEventType(7);b.setEventSources(Y(a,Fw,10));X$(this,[b])};h.reportSave=function(a){X$(this,Hw(a,9,this.sharedSessionState_))};h.reportSecondaryAction=function(a){X$(this,Hw(a,19,this.sharedSessionState_))};h.reportSend=function(a){X$(this,Hw(a,8,this.sharedSessionState_,!0))};var X$=function(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next())a.reporting_.report(c.value)};var fje=function(a,b,c,d){this.delegate_=this.delegate=a;this.sharedSessionState_=c;Nn(this.sharedSessionState_,5,Math.floor(Math.random()*9007199254740991));Nn(this.sharedSessionState_,4,0);YAd(this.sharedSessionState_,0);this.reportingFactory_=b;this.peopleStore_=d};Z(fje,jie);
fje.prototype.suggest=function(a,b){var c=this,d=this.sharedSessionState_.clone();YAd(this.sharedSessionState_,qn(Hn(this.sharedSessionState_,3))+1);d.setQuery("");$Ad(d);var e=0;this.delegate_.suggest(function(f){e=gje(c,f.getResults(),Fzc(f),d,e);a(f)},b)};
fje.prototype.search=function(a,b,c){var d=this,e=this.sharedSessionState_.clone();YAd(this.sharedSessionState_,qn(Hn(this.sharedSessionState_,3))+1);e.setQuery(a);$Ad(e);var f=0;this.delegate_.search(a,function(g){f=gje(d,g.getResults(),Fzc(g),e,f);b(g)},c)};fje.prototype.getReporter=function(a){return new eje(this.reportingFactory_.create(a),this.sharedSessionState_,this.peopleStore_)};fje.prototype.getSessionState=function(){return this.sharedSessionState_};
var gje=function(a,b,c,d,e){d=d.clone();var f=ZAd();tx(d,9,f);f=a.delegate_.getLastUpdatedTimestamp();Nn(d,6,f);d.setAffinityVersion(a.delegate_.getAffinityVersion());a=l(b);for(b=a.next();!b.done;b=a.next()){var g=b.value;b=g.getIsBoosted();f=0;g=l(g.getTargetList());for(var k=g.next();!k.done;k=g.next()){k=k.value.getLoggingToken();cj(k,zw,1).setIsBoosted(b);var m=yv(k)||new yw;m.getProvenance()!==7&&m.setProvenance(c.getProvenance());Wn(m,2,e);Wn(m,1,f);hj(k,yw,2,m);k.setSessionState(d);f++}e++}return e};var hje=function(a,b,c){this.delegate_=this.delegate=a;this.reportingFactory_=b;this.instanceId_=iuc();this.clearcutConfig_=c};Z(hje,kie);
hje.prototype.lookup=function(a,b,c){this.delegate_.lookup(a,function(d){var e=Array.from(d.getResults().values()),f,g=d.getMetadata();g.getCacheState()&&(g=g.getCacheState(),g.hasSource()&&(f=g.getSource()));f=f||new Iw;g=c.getOriginator();e=l(e);for(var k=e.next();!k.done;k=e.next()){k=l(k.value.getTargetList());for(var m=k.next();!m.done;m=k.next()){m=m.value.getLoggingToken();var r=yv(m)||new yw;r.getProvenance()!==7&&r.setProvenance(f.getProvenance());Yn(r,4,g);hj(m,yw,2,r)}}b(d)},c)};
hje.prototype.beginSession=function(a){var b=new cV,c=ije(this,a);hj(b,Fw,10,c);c=jje(this,a);hj(b,Gw,12,c);b.setInstanceId(this.instanceId_);a=this.delegate_.beginSession(a);return new fje(a,this.reportingFactory_,b,this)};
var ije=function(a,b){a=Wi(a.clearcutConfig_,Fw,5,Xi());return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return c.getEntryPoint()===0})||new Fw},jje=function(a,b){a=Wi(a.clearcutConfig_,Gw,6,Xi());return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return c.getEntryPoint()===0})||new Gw};var kje=function(a,b,c,d,e){this.adapter_=a;this.targetFactory_=b;this.trieFactory_=c;this.storage_=d;this.ranker_=new Mee(e);this.indexes_=sge(Wm(e,8,250),tm(e,9,3600)*1E3);this.maxResults_=e.getSearchMaxResults()};h=kje.prototype;h.getCacheType=function(){return 3};h.flush=function(){this.indexes_.clear()};
h.fetch=function(a){var b=this,c,d;return y(function(e){switch(e.nextAddress){case 1:c=l$(new Iw,!0).setProvenance(7).setCode(0);if(b.canSkipFetch_(a))return e.return(l$(c,!1));Vd(e,2);return z(e,b.adapter_.search(a.getPrefix(),b.maxResults_),4);case 4:d=e.yieldResult;bk(e,3);break;case 2:return Zd(e),e.return(c.setCode(13));case 3:try{return b.index(a,d,new Bw),e.return(c)}catch(f){return e.return(c.setCode(13))}}})};
h.canSkipFetch_=function(a){return a.isSuggestQuery()?!0:a.queryScope()===3?!1:this.indexes_.has(a.getPrefix())?!0:!1};h.index=function(a,b){for(var c=Nee(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=the(this.trieFactory_,c);this.indexes_.set(a.getPrefix(),b)};h.search=function(a){return a.isSuggestQuery()||!this.indexes_.has(a.getPrefix())?[]:T$(this.indexes_.get(a.getPrefix()).search([]),a.getCollector())};
h.getName=function(){return this.adapter_.getName()};var lje=function(a,b,c){this.adapter_=a;this.targetFactory_=b;this.indexer_=c};lje.prototype.getStageType=function(){return 2};lje.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)};
lje.prototype.lookup=function(a){var b=this,c,d,e,f,g,k,m,r,w;return y(function(x){switch(x.nextAddress){case 1:return c=new Map,d=l$(new Iw,!0).setProvenance(7).setCode(0),e=a.queryScope()===3,f=Uge(a),Vd(x,2),z(x,b.adapter_.lookup(f),4);case 4:g=x.yieldResult;bk(x,3);break;case 2:return Zd(x),d.setCode(13),a.notify(c,[],d),x.return();case 3:b.index_(g,e);k=l(f);for(m=k.next();!m.done;m=k.next())r=m.value,(w=b.indexer_.load(r,a.getFormat(),a.getOptions().getUseOriginalDisplayValue()))&&c.set(r,w);
a.notify(c,[],d);$d(x)}})};var mje=function(a,b){this.delegate_=a;this.trackers_=b;this.name=a.name};mje.prototype.search=function(a){var b=this,c,d;return y(function(e){switch(e.nextAddress){case 1:return c=b.trackers_.latency(66),c.start(),Vd(e,2,3),z(e,b.delegate_.search(a),5);case 5:return e.return(e.yieldResult);case 3:Wd(e);c.stop();Yd(e,0);break;case 2:throw d=Zd(e),b.trackers_.error(36,11).report(),d;}})};
mje.prototype.lookup=function(a){var b=this,c,d;return y(function(e){switch(e.nextAddress){case 1:return c=b.trackers_.latency(67),c.start(),Vd(e,2,3),z(e,b.delegate_.lookup(a),5);case 5:return e.return(e.yieldResult);case 3:Wd(e);c.stop();Yd(e,0);break;case 2:throw d=Zd(e),b.trackers_.error(37,11).report(),d;}})};var nje=function(a,b){this.delegate_=a;this.trackers_=b;this.name=a.name};nje.prototype.getPosition=function(){try{return this.delegate_.getPosition()}catch(a){throw this.trackers_.error(38,11).report(),a;}};
nje.prototype.warmUpCache=function(){var a=this,b,c;return y(function(d){switch(d.nextAddress){case 1:return b=a.trackers_.latency(65),b.start(),Vd(d,2,3),z(d,a.delegate_.warmUpCache(),5);case 5:return d.return(d.yieldResult);case 3:Wd(d);b.stop();Yd(d,0);break;case 2:throw c=Zd(d),a.trackers_.error(35,11).report(),c;}})};nje.prototype.needsWarmUp=function(){try{return this.delegate_.needsWarmUp()}catch(a){throw this.trackers_.error(38,11).report(),a;}};var oje=function(a,b,c,d,e){this.adapter_=a;this.targetFactory_=b;this.trieFactory_=c;this.storage_=d;this.ranker_=new Mee(e);this.index_=U$};h=oje.prototype;h.getCacheType=function(){switch(this.adapter_.getPosition()){case 1:return 2;case 2:return 3;default:return 0}};h.flush=function(){this.index_=U$};
h.fetch=function(a){var b=this,c,d;return y(function(e){switch(e.nextAddress){case 1:c=l$(new Iw,!0).setProvenance(7).setCode(0);if(b.index_!=U$&&!b.adapter_.needsWarmUp())return e.return(l$(c,!1));Vd(e,2);return z(e,b.adapter_.warmUpCache(),4);case 4:d=e.yieldResult;bk(e,3);break;case 2:return Zd(e),e.return(c.setCode(13));case 3:try{return b.index(a,d,new Bw),e.return(c)}catch(f){return e.return(c.setCode(13))}}})};
h.index=function(a,b){a=Nee(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_=the(this.trieFactory_,a)};h.search=function(a){var b=this;this.adapter_.needsWarmUp()&&Promise.resolve().then(function(){return b.fetch(a)});return T$(this.index_.search(a.getTerms()),a.getCollector())};h.getName=function(){return this.adapter_.getName()};var pje=function(a,b){this.provider_=a;this.itemFactory_=b};pje.prototype.search=function(a,b){var c=this,d;return y(function(e){if(e.nextAddress==1)return b<1?e.return([]):z(e,c.provider_.search((new oBd).setQuery(a).setMaxResults(b)),2);d=e.yieldResult;return e.return(qje(d))})};pje.prototype.lookup=function(a){var b=this,c;return y(function(d){if(d.nextAddress==1)return a.length?z(d,b.provider_.lookup(a),2):d.return([]);c=d.yieldResult;return d.return(qje(c))})};pje.prototype.getName=function(){return this.provider_.name};var rje=function(a,b){this.provider_=a;this.itemFactory_=b};rje.prototype.getPosition=function(){return this.provider_.getPosition()};rje.prototype.needsWarmUp=function(){return this.provider_.needsWarmUp()};rje.prototype.warmUpCache=function(){var a=this,b;return y(function(c){if(c.nextAddress==1)return z(c,a.provider_.warmUpCache(),2);b=c.yieldResult;return c.return(qje(b))})};rje.prototype.getName=function(){return this.provider_.name};var sje=new Age(68,69,38);var tje=function(){},uje=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()),g=f.next();!g.done;g=f.next())g=Jzc(c,g.value,7),e.push(String(g.id)),g.coalescedKeys=e,d||(d=g),b.push(g);d&&aw(d.id)&&(e=void 0,d.totalMemberCount=(e=lx(c,4))!=null?e:void 0,d.memberKeys=c.getMemberList().map(function(k){var m=l(k.getTargetList());for(m=m.next();!m.done;m=m.next())return k=Jzc(k,m.value,8),b.push(k),String(k.id)}))}return b},qje=function(a){a=
Wi(a,Fgd,1,Xi());return uje(a)};var vje=function(a){this.delegate_=a};vje.prototype.processItem=function(a){a.target=Nzc(a);this.delegate_.processItem(a);a.resultData&&delete a.resultData;a.targetData&&delete a.targetData};var Ozc=function(){};
Ozc.prototype.configure=function(a){var b=a.clientConfig,c=a.trackers,d=a.storage,e=a.indexer,f=a.trieFactory,g=a.prefixCaches;a=a.lookupStages;var k=b.runtimeConfig_.customDataConfig_;if(k){var m=b.getClient(),r=new tje;var w=w===void 0?Lee:w;b=new Yfe(b,new vje(w));w=[];for(var x=l(k.staticDataProviders_.reverse()),D=x.next();!D.done;D=x.next()){D=D.value;var H=c,J=D;J=new nje(J,H);J=new oje(new rje(J,r),b,f,d,m);H=new V$(J,H,sje);switch(D.getPosition()){case 1:w.push(H);break;case 2:g.push(H);
break;default:throw Error("kh");}}w.length&&g.splice.apply(g,[0,0].concat(n(w)));k=l(k.dynamicDataProviders_);for(w=k.next();!w.done;w=k.next())w=w.value,x=c,D=w,D=new mje(D,x),D=new kje(new pje(D,r),b,f,d,m),x=new V$(D,x,sje),g.push(x),w=new mje(w,c),a.push(new lje(new pje(w,r),b,e))}};var wje={create:function(a){var b=bwc(Fee||(Fee=Eee('[[15,15,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,true],["AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s","ANVavNKl4mkR3DMa8R68PqYrNFuTUEjFCzfJB_o"],["BUGANIZER","BUGANIZER",null,"ISSUE_TRACKER_AFFINITY",47],[true,740,null,null,[[180,181,178,179]]],[7,true]]')));a=new Gee(b,a);a.runtimeConfig_.getExperiments().getProfileId()?Hee(a).getIsEnabled()?(b=bwc(Jee||(Jee=dwc('[null,null,null,null,null,null,null,"AIzaSyABqJ85_R2irnKzMtGBL0iHuyFBi6Efk1w"]'))),
b=new ewc(b,1)):b=new Dv:b=new Dv;var c=a.runtimeConfig_.getExperiments().getProfileId_legacyNullable(),d=a.runtimeConfig_;Ew=b.loadExperiments(Hee(a).getApplication(),(new fwc).setPeopleApiEnv(d.getPeopleApiEnv()),c);b={};c=new jge;d=l([Pzc]);for(var e=d.next();!e.done;e=d.next())e=e.value,c=e(c,b);c=c===void 0?new jge:c;b=a.getClearcut();b=new Fie(b,a.runtimeConfig_);b=new Ovc(Pvc(b));b=new gge(b);d=new ige(a,b);e=c;c=d.targetFactory_;var f=a.getClient();c=new Jge(c,f);var g=g===void 0?uie:g;g=
new vie(d.loader_,a,g);f=new sie(g,b,a);var k=[new iie,new Rge,new Cge].concat(n(e.cacheConfigurators_),[new Jhe]);e=[];var m=[],r=new Wge(c,a);g=new Vge(m,r,a);d={clientConfig:a,trackers:b,storage:c,indexer:r,loader:f,loaderFactory:d,trieFactory:new she(c,g,b),prefixCaches:e,lookupStages:m};f=l(k);for(k=f.next();!k.done;k=f.next())k.value.configure(d);d=new dhe(e);g=new ihe(a,b,d,g,c);d=a.getClient();c=new Whe(d,c);d=a.getClient();g=new Hhe(g,c,d);c=new dje(a);a=a.getClearcut();g=new hje(g,c,a);
g=new Jie(g,b);return new zie(g)}};var xje=function(){};xje.prototype.send=function(a,b){pxa(a);return this.makeRequest(a).then(function(c){return b?lxa(b,c):c})};var yje=function(a,b,c,d,e){this.gapiUrl=a;this.gapiKey=b;this.customGapiPromise=null;this.gapiConfigUpdates=c||{};this.gapiAuthParams=d||{};this.defaultApiId=e};Z(yje,xje);h=yje.prototype;h.getGapi=function(){var a=this;return(this.customGapiPromise||i$a()).then(function(b){b=b||window.gapi;a.setGapiConfig(b);return o$a(b,{apiKey:a.gapiKey,clientId:a.gapiAuthParams.clientId,scope:a.gapiAuthParams.scope,hostedDomain:a.gapiAuthParams.hostedDomain,fetchBasicProfile:a.gapiAuthParams.fetchBasicProfile}).then(function(){return b})})};
h.makeRequest=function(a){var b=this;return this.getGapi().then(function(c){return y(function(d){if(d.nextAddress==1)return b.gapiAuthParams.minAuthTokenTimeRemaining===void 0?d.jumpTo(2):z(d,n$a(c,b.gapiAuthParams.minAuthTokenTimeRemaining),2);b.setGapiConfig(c);return d.return(b.parseResponse(c.client.request(b.createRequestParams(a))))})})};
h.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}};h.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)})})};
h.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&l$a(a,b,this.gapiConfigUpdates[b])};yje.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var zje=function(){};zje.\u0275fac=function(a){return new (a||zje)};zje.\u0275mod=$e({type:zje});
zje.\u0275inj=Dc({providers:[{provide:Hud,useFactory:function(){var a=new yje("https://people-pa.googleapis.com","AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s",{withCredentials:!0,"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0}),b=Qzc();a.customGapiPromise=b;return new Pvd(a)}}],imports:[{ngModule:TW,providers:[jV,{provide:gBd,useFactory:function(){return{authRealm:1,peopleApiEnv:4,peopleStoreClient:wje,autocompleteFactory:yde}}}]},{ngModule:v_,providers:[aQd,
{provide:$Pd,useFactory:function(){return{authRealm:1,peopleApiEnv:4,peopleStoreClient:wje,searchBarFactory:zee}}}]}]});var Tzc={os:1223084,version:1223033},Szc={os:201569,version:201543};var Zzc={unconfirmed:5437934,chromiumRegression:5438261},Yzc={unconfirmed:1218157,chromiumRegression:1218155};var Y$={},Aje=(Y$.NETWORK_DOWNLOADING=[{type:"INPUT",question:"What specific URL can reproduce the problem?",answerPrefix:"Example URL: "}],Y$.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"}],Y$.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?"}}]}],Y$.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:Fh([Dh("What is the link to that software in "),Rzc("the Chrome Webstore","https://chrome.google.com/webstore"),Dh("?")]),answerPrefix:"WebStore page: "}],Y$.WEBSTORE=[{type:"INPUT",question:"What is the URL of the Chrome WebStore page that had the problem?",answerPrefix:"Webstore page: "}],
Y$.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"]}],Y$.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"]}],Y$.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"}}]}],Y$.SECURITY=[{type:"INPUT",question:"For crashes, what type of crash [tab, browser, etc.]:",answerPrefix:"Type of crash: "},{type:"TEXT",question:Fh([Dh("For crashes, what was the crash state? [See "),
Rzc("Reporting Crash Bugs","https://www.chromium.org/Home/chromium-security/reporting-security-bugs/#reporting-crash-bugs"),Dh(", 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: "}],Y$);var Bje=function(){};Bje.\u0275fac=function(a){return new (a||Bje)};Bje.\u0275mod=$e({type:Bje});Bje.\u0275inj=Dc({providers:[{provide:B3d,useValue:Aje},{provide:D3d,useFactory:Uzc},{provide:C3d,useFactory:Xzc},{provide:E3d,useFactory:$zc}],imports:[x_,FN,i5,mC,ZA,N6,PK,qC,kS,qT,R3d,C_,L6,M6,Y6,F3d]});var Cje=function(){};Cje.\u0275fac=function(a){return new (a||Cje)};Cje.\u0275mod=$e({type:Cje});Cje.\u0275inj=Dc({imports:[FN,ZA,iK,sT,mC,nC,d4,a7]});var Dje=function(){};Dje.\u0275fac=function(a){return new (a||Dje)};Dje.\u0275mod=$e({type:Dje});Dje.\u0275inj=Dc({imports:[ZT,FN,d4,lW,mC,xT,iK,PK,Z4,fX,b7]});var Eje=function(){};Eje.\u0275fac=function(a){return new (a||Eje)};Eje.\u0275mod=$e({type:Eje});Eje.\u0275inj=Dc({imports:[FN,ZA,iK,sT,mC,nC,d4,c7]});var Fje=function(){};Fje.\u0275fac=function(a){return new (a||Fje)};Fje.\u0275mod=$e({type:Fje});Fje.\u0275inj=Dc({imports:[FN,ZA,iK,VT,h7]});var Gje=function(){};Gje.\u0275fac=function(a){return new (a||Gje)};Gje.\u0275mod=$e({type:Gje});Gje.\u0275inj=Dc({imports:[FN,ZA,iK,XS,Fje,OJ,g7,i7]});var Hje=function(){};Hje.\u0275fac=function(a){return new (a||Hje)};Hje.\u0275mod=$e({type:Hje});Hje.\u0275inj=Dc({imports:[FN,XS,YW,XW,WW,b0,iK,AK,ZA,j7]});var Ije=function(){};Ije.\u0275fac=function(a){return new (a||Ije)};Ije.\u0275mod=$e({type:Ije});Ije.\u0275inj=Dc({imports:[ZT,y_,tT,WT,H3,DB,lW,mC,r_,T2,xT,i3,ZU,ZA,PK,qT,pB,jL,OJ,aU,iK,H3,sU,RW,nC,l7,fX,FN,bA,C_,z_,Gje,Hje,u_,v_,u_,YJ,m7]});var Jje=function(){};Jje.\u0275fac=function(a){return new (a||Jje)};Jje.\u0275mod=$e({type:Jje});Jje.\u0275inj=Dc({imports:[ZT,FN,d4,lW,mC,xT,iK,j5,o7]});var Kje=function(){};Kje.\u0275fac=function(a){return new (a||Kje)};Kje.\u0275mod=$e({type:Kje});Kje.\u0275inj=Dc({imports:[FN,iK,ZA,cL,d4,r_,T2,O1,sT,mC,nC,OJ,UW,q7]});var Lje=[KX],Mje=function(){};Mje.\u0275fac=function(a){return new (a||Mje)};Mje.\u0275mod=$e({type:Mje});Mje.\u0275inj=Dc({imports:[pB,PK,FN,uA,ZA,tT,oY,C_,Lje]});var Nje=function(){};Nje.\u0275fac=function(a){return new (a||Nje)};Nje.\u0275mod=$e({type:Nje});Nje.\u0275inj=Dc({imports:[FN,iK,ZA,cL,d4,sT,pB,mC,nC,OJ,UW,r7]});var Oje=function(){};Oje.\u0275fac=function(a){return new (a||Oje)};Oje.\u0275mod=$e({type:Oje});Oje.\u0275inj=Dc({imports:[ZT,FN,d4,mC,xT,cL,iK,UW,PK,j5,XS,t7]});var Pje=function(){};Pje.\u0275fac=function(a){return new (a||Pje)};Pje.\u0275mod=$e({type:Pje});Pje.\u0275inj=Dc({imports:[FN,h4,XS,ZA,v8]});var Qje=function(){};Qje.\u0275fac=function(a){return new (a||Qje)};Qje.\u0275mod=$e({type:Qje});Qje.\u0275inj=Dc({imports:[FN,ZA,l5,XS,y8]});var Rje=function(){};Rje.\u0275fac=function(a){return new (a||Rje)};Rje.\u0275mod=$e({type:Rje});Rje.\u0275inj=Dc({imports:[sU,FN,wT,T_,n6,F2,XU,mC,ZA,PK,pB,qC,qT,GW,iK,kz,YJ,AK,RW,nC,k6,C8,A8,B8]});var Sje=function(){};Sje.\u0275fac=function(a){return new (a||Sje)};Sje.\u0275mod=$e({type:Sje});Sje.\u0275inj=Dc({imports:[FN,v2,O4,D8]});var Tje=function(){};Tje.\u0275fac=function(a){return new (a||Tje)};Tje.\u0275mod=$e({type:Tje});Tje.\u0275inj=Dc({imports:[FN,SW,mC,cL,vU,UW,xT,jL,ZA,PK,iK,pB,XS,I8,Q8,P8,O8,M8,N8]});var Uje=function(){};Uje.\u0275fac=function(a){return new (a||Uje)};Uje.\u0275mod=$e({type:Uje});Uje.\u0275inj=Dc({imports:[ZT,FN,SW,v2,m2,c6,h6,j6,j3,d4,o6,Rje,mC,xT,ZA,PK,pB,qT,aU,cL,iK,UW,Z4,Tje,bA,Sje,X4,XS,fX,cX,D9,R8]});var Vje=function(){};Vje.\u0275fac=function(a){return new (a||Vje)};Vje.\u0275mod=$e({type:Vje});Vje.\u0275inj=Dc({imports:[FN,d4,mC,ZA,PK,pB,GW,cL,iK,aU,UW,bA,X4,g1,EW,O4,WQd,S8]});var Wje=function(){};Wje.\u0275fac=function(a){return new (a||Wje)};Wje.\u0275mod=$e({type:Wje});Wje.\u0275inj=Dc({imports:[FN,ZA,wQ,YJ,Dz,xU,mC,nC,CB,qT,kz,pC,cL,T8]});var Xje=function(){};Xje.\u0275fac=function(a){return new (a||Xje)};Xje.\u0275mod=$e({type:Xje});Xje.\u0275inj=Dc({imports:[FN,GU,V8]});var Yje=function(){};Yje.\u0275fac=function(a){return new (a||Yje)};Yje.\u0275mod=$e({type:Yje});Yje.\u0275inj=Dc({imports:[FN,Xje,AK,iK,W8]});var Zje=function(){};Zje.\u0275fac=function(a){return new (a||Zje)};Zje.\u0275mod=$e({type:Zje});Zje.\u0275inj=Dc({imports:[FN,vU,GU,tT,ZA,a9]});var $je=function(){};$je.\u0275fac=function(a){return new (a||$je)};$je.\u0275mod=$e({type:$je});$je.\u0275inj=Dc({imports:[FN,GU,vU,b9]});var ake=function(){};ake.\u0275fac=function(a){return new (a||ake)};ake.\u0275mod=$e({type:ake});ake.\u0275inj=Dc({imports:[FN,vU,GU,tT,c9]});var bke=function(){};bke.\u0275fac=function(a){return new (a||bke)};bke.\u0275mod=$e({type:bke});bke.\u0275inj=Dc({imports:[FN,iK,AK,ake,$je,Zje,o8d]});var cke=function(){};cke.\u0275fac=function(a){return new (a||cke)};cke.\u0275mod=$e({type:cke});cke.\u0275inj=Dc({imports:[FN,AK]});var dke=function(){};dke.\u0275fac=function(a){return new (a||dke)};dke.\u0275mod=$e({type:dke});dke.\u0275inj=Dc({imports:[FN,cke,AK,iK,d9]});var eke=function(){};eke.\u0275fac=function(a){return new (a||eke)};eke.\u0275mod=$e({type:eke});eke.\u0275inj=Dc({imports:[FN,AK]});var fke=function(){};fke.\u0275fac=function(a){return new (a||fke)};fke.\u0275mod=$e({type:fke});fke.\u0275inj=Dc({imports:[FN,iK,AK,eke,s8d]});var gke=function(){};gke.\u0275fac=function(a){return new (a||gke)};gke.\u0275mod=$e({type:gke});gke.\u0275inj=Dc({imports:[FN,JK,iK,OJ,PK,ZA,YJ,g9,e9]});var Z$=function(){};Z$.\u0275fac=function(a){return new (a||Z$)};Z$.\u0275mod=$e({type:Z$});Z$.\u0275inj=Dc({imports:[FN,JK,OJ,h9]});var hke=function(){};hke.\u0275fac=function(a){return new (a||hke)};hke.\u0275mod=$e({type:hke});hke.\u0275inj=Dc({imports:[FN,yU,GU,WA,kz,PF,uA,nY,i9]});var ike=function(){};ike.\u0275fac=function(a){return new (a||ike)};ike.\u0275mod=$e({type:ike});ike.\u0275inj=Dc({imports:[FN,GU,yU,GW,cL,PK,iK,ZA,gke,hke,Z$,XS,YW,SW,j9,VW,bke,fke,PF,dke,Yje,Wje,uA,k9]});var jke=function(){};jke.\u0275fac=function(a){return new (a||jke)};jke.\u0275mod=$e({type:jke});jke.\u0275inj=Dc({imports:[FN,ZA,ike,iK,l9]});var kke=function(){};kke.\u0275fac=function(a){return new (a||kke)};kke.\u0275mod=$e({type:kke});kke.\u0275inj=Dc({imports:[FN,JK,iK,m9]});var lke=function(){};lke.\u0275fac=function(a){return new (a||lke)};lke.\u0275mod=$e({type:lke});lke.\u0275inj=Dc({imports:[FN,YW,XS,kke,Z$,GU,SW,j9,VW,b0,ZA,cL,GW,iK,n9]});var mke=function(){};mke.\u0275fac=function(a){return new (a||mke)};mke.\u0275mod=$e({type:mke});mke.\u0275inj=Dc({imports:[FN,mC,ZA,iK,nC,c1,jke,lke,gT,bA,o9]});var nke=[p9],oke=function(){};oke.\u0275fac=function(a){return new (a||oke)};oke.\u0275mod=$e({type:oke});oke.\u0275inj=Dc({imports:[FN,tT,mC,ZA,PK,cL,CB,kz,pC,nC,nke]});var pke=function(){};pke.\u0275fac=function(a){return new (a||pke)};pke.\u0275mod=$e({type:pke});pke.\u0275inj=Dc({imports:[qT,FN,mC,S8d]});var qke=function(){};qke.\u0275fac=function(a){return new (a||qke)};qke.\u0275mod=$e({type:qke});qke.\u0275inj=Dc({imports:[wT,FN,mC,PK,ZA,pB,qT,qC,aU,GW,OJ,cL,iK,cU,YJ,sU,m8,pke,XS,kz,u_,s9,t9,y9,x9,r9,q9]});var rke=function(){};rke.\u0275fac=function(a){return new (a||rke)};rke.\u0275mod=$e({type:rke});rke.\u0275inj=Dc({imports:[FN,sT,ZA,Bid]});var ske={disableCheatSheet:!0};ske=ske===void 0?{}:ske;
var tke=[FN,jVd,eU,ez,KI,h2,i3,yU,q1,xT,P1,cU,s1,Z4,g1,Q1,ZW,ZT,o4,D2,n1,W5,b3d,H_,BU,ZU,aV,u2,WW,Jje,Oje,Qje,Pje,Y4d,R6d,s9d,t9d,Dje,Uje,Vje,m9d,h4,l5,j3,p6,s6,s4,gU,f4,W2,c3d,g2d,J2d,h2d,U2d,I2d,H2d,K4,M4,mDd,I4,U2,T1,wT,tT,oY,Mje,mFd,m1,S4,O1,PU,V4,k0d,D4,E4,S2d,M5,XS,kVd,NZ,LU,j1,j6,rke,o6,G2d,v5,vU,SW,GU,qke,HU,aT,p4,t4,j5,X4,q4,d4,Y5,Cje,Eje,g6,c5,B2,v2,GVd,m2,r4,F4,F2,pW,w4,x4,T2,h5,y4,z4,h6,i2,lVd,UW,e4,y_,c6,Kje,z1,Nje,Ije,mVd,E9,C0d,Y9d,mke,rTd,P2d,iyd,oke,az,{ngModule:HR,providers:[GR,
{provide:rvd,useFactory:function(a){a=new Kvd("https://appswaldo-pa.clients6.google.com",a.waldoApiKey,a.globalApiKey,Object.assign({},Rvd,a.gapiConfig),{scope:"https://www.googleapis.com/auth/calendar.readonly",clientId:a.clientId});return new Pvd(a)},deps:[Qvd]},{provide:Qvd,useFactory:function(){return{waldoApiKey:"AIzaSyDvxpDVHooCQawPUQkmQxwrtt-Xdp3Q3so",globalApiKey:"AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s",gapiConfig:{withCredentials:!0},clientId:"693999850130-un1os7r4h5lc2ujbjni9u6aqpvih8hde.apps.googleusercontent.com"}}}]},
{ngModule:Oxd,providers:[cT,{provide:Nxd,useValue:ske}]},zje];AXa("enableChromeWizard")&&tke.push(Bje);
var uke=[ala(function(){q(OO)}),jld,z0d,A0d,B0d,wTd,gnd,{provide:zdd,useValue:{animationDuration:"0ms",stretchTabs:!1}},{provide:JNd,useValue:{productName:"Buganizer",cooldownMilliseconds:864E5,enableUsageTracking:!0}},{provide:$Hc,useValue:{disableTooltipInteractivity:!0,showDelay:100,hideDelay:0}},{provide:eFd,useValue:"AIzaSyCBj23e6C2MNif_tvceM-CPTXcVDK3sarY"},{provide:hFd,useValue:"92912"},d3d,p3d,q3d,r3d],fy=function(){};
fy.prototype.ngDoBootstrap=function(a){nn("bootstrapping AppModule");a.bootstrap(iVd);a.bootstrap(Y2d)};fy.\u0275fac=function(a){return new (a||fy)};fy.\u0275mod=$e({type:fy});fy.\u0275inj=Dc({providers:[].concat(n(uke)),imports:[tke,U9d]});bD(document,"DOMContentLoaded",function(){mEc()});
}catch(e){__._DumpException(e)}
}).call(this,this.default_b);
// Google Inc.
